query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102 values |
|---|---|---|---|---|---|---|
Defines optional entry path. | public AddContentToZip path(final String path) {
this.path = path;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"interface Entry {\n\n /** The entry name separator as a string. */\n String SEPARATOR = ArchiveEntry.SEPARATOR;\n\n /** The entry name separator as a character. */\n char SEPARATOR_CHAR = ArchiveEntry.SEPARATOR_CHAR;\n\n /**\n * Denotes the entry name of the virtual root directory.\n * This name is used as the value of the <code>innerEntryName</code>\n * property if a <code>File</code> instance denotes an archive file.\n * <p>\n * This constant may be safely used for identity comparison.\n */\n String ROOT_NAME = \"\";\n}",
"@Override\r\n public String getPath(boolean arg0) {\n return null;\r\n }",
"public Object getEntryFilePath() {\n return this.entryFilePath;\n }",
"private Entry createEntry(String pattern) {\n\t\tEntry entry = null;\n\n\t\tif (pattern != null) {\n\t\t\tString item = pattern.trim();\n\t\t\tif (item.length() > 0) {\n\t\t\t\tentry = new Entry();\n\t\t\t\tentry.result = !item.startsWith(\"-\");\n\t\t\t\tentry.partial = item.endsWith(\".\");\n\t\t\t\tentry.classpath = entry.result ? item : item.substring(1).trim();\n\t\t\t}\n\t\t}\n\t\treturn entry;\n\t}",
"@Override\n\tpublic String getRealPath(String arg0) {\n\t\treturn null;\n\t}",
"public static void setDefaultPath(String path) {\n\t\tPATH = path;\n\t}",
"private String entryName(String name) {\n name = name.replace(File.separatorChar, '/');\n String matchPath = \"\";\n /* Need to add code to consolidate paths\n for (String path : paths) {\n if (name.startsWith(path)\n && (path.length() > matchPath.length())) {\n matchPath = path;\n }\n }\n */\n name = name.substring(matchPath.length());\n \n if (name.startsWith(\"/\")) {\n name = name.substring(1);\n } else if (name.startsWith(\"./\")) {\n name = name.substring(2);\n }\n return name;\n }",
"@Override\n\tprotected String getPathSeparator() {\n\t\treturn null;\n\t}",
"@Override\r\n public String getPath() {\n return null;\r\n }",
"private void setDefaultPath(){\n\t\tdownloadPath = System.getProperty(\"user.home\") + File.separator + \"Downloads\" + File.separator;\n\t\tif(!downloadPath.endsWith(File.separator)){\n\t\t\tdownloadPath += File.separator;\n\t\t}\n\t\tcurrentPath.setText(downloadPath);\n\t\tcurrentPath.setToolTipText(downloadPath);\n\t}",
"public HDInsightSparkActivity setEntryFilePath(Object entryFilePath) {\n this.entryFilePath = entryFilePath;\n return this;\n }",
"public void setResourcePath(String path) {\n appPathField.setText(path != null ? path : \"\");\n }",
"@Override protected void pathInit() {\r\n\r\n // place any initialization code here\r\n\r\n }",
"@Override\n\t\tpublic String getPathInfo() {\n\t\t\treturn null;\n\t\t}",
"public interface PathChooserHandler {\n\n /**\n * Invoked with the current entry's path property to use as a default value.\n * Implementations are expected to set the value back to this property when done.\n */\n void openChooser(Property<String> pathProperty);\n }",
"public void testExtendsEntry() {\n final LinkerDef baseLinker = new LinkerDef();\n baseLinker.setEntry(\"foo\");\n final LinkerDef extendedLinker = (LinkerDef) createExtendedProcessorDef(baseLinker);\n final String[] preArgs = getPreArguments(extendedLinker);\n assertEquals(\"-e\", preArgs[0]);\n assertEquals(\"foo\", preArgs[1]);\n }",
"public Entry(DirCacheEntry aDCE, String aPath) { _entry = aDCE; _path = aPath; }",
"@Override\r\n public String getPath() {\n return null;\r\n }",
"@Override\n\tpublic String getEntryId() {\n\t\treturn null;\n\t}",
"protected static void addEntryInList(String key, String entry) {\n if (hasEntryInList(key, entry))\n return ;\n\n String entries = getSPreference(key);\n if (TextUtils.isEmpty(entries))\n entries = entry;\n else\n entries = entries + \":\" + entry;\n\n setPreference(key, entries);\n }",
"public void setMainEntry(boolean value) {\n this.mainEntry = value;\n }",
"public void setMainEntry(boolean value) {\n this.mainEntry = value;\n }",
"public void setMainEntry(boolean value) {\n this.mainEntry = value;\n }",
"public void setMainEntry(boolean value) {\n this.mainEntry = value;\n }",
"private static DataBaseEntry createEntry(String line) {\n int eq = line.indexOf(\"=\");\n if (eq < 0) {\n System.err.println(\"not found '=' in line \" + line);\n }\n int hash = line.indexOf(\"#\");\n if (hash < 0) {\n System.err.println(\"not found '#' in line \" + line);\n }\n String file = line.substring(0, eq);\n String cwd = line.substring(eq+1, hash);\n String compileString = line.substring(hash+1);\n \n CompileLineEntryBuilder builder = new CompileLineEntryBuilder(file);\n for (String option : splitCommandLine(compileString)) {\n builder.handle(option);\n }\n return builder.createDataBaseEntry();\n }",
"public void buildPathPart(Appendable buffer, String uri) throws WebAppConfigurationException, IOException {\n buildPathPart(buffer, uri, null);\n }",
"public Entry()\n {\n this(null, null, true);\n }",
"private static boolean validateString(Map.Entry<String, CheckState> entry) {\n String prop = System.getProperty(entry.getKey());\n if (entry.getValue().isOptional && prop == null) {\n return true;\n }\n return prop != null && !\"\".equals(prop);\n }",
"private static boolean validateFileExists(Map.Entry<String, CheckState> entry) {\n String prop = System.getProperty(entry.getKey());\n if (entry.getValue().isOptional && prop == null) {\n return true;\n }\n\n if (prop == null || \"\".equals(prop)) {\n return false;\n }\n\n return Files.exists(new File(prop).toPath());\n }",
"public void addEntry(String key, ChoiceEntry entry){\n _entries.put(key, entry);\n }",
"public void initPath() {\r\n\t\tpath = new Path();\r\n\t}",
"@Override\n\t\tpublic String getRealPath(String path) {\n\t\t\treturn null;\n\t\t}",
"public String getPostPath(){\r\n\t\t \r\n\t\t String postPath = properties.getProperty(\"postPath\");\r\n\t\t if(postPath != null) return postPath;\r\n\t\t else throw new RuntimeException(\"postPath not specified in the configuration.properties file.\");\r\n\t }",
"public void setEntryId(String entryId) {\n this.entryId = entryId;\n }",
"public void add(FileSystemEntry entry);",
"public void setEntryName(String ename);",
"@Override\n public void setTplPath(String arg0) {\n\n }",
"@Override\n\tpublic String getRealPath(String path) {\n\t\treturn null;\n\t}",
"public TEntry(FileSystem fileSystem, TPath path) {\n this(new TFileFactory(fileSystem), path);\n }",
"public void setRing(String path);",
"protected void setupRequestPathExp(StringBuilder sb, RomanticTransaction tx) {\n final String requestPath = tx.getRequestPath();\n if (requestPath != null) {\n sb.append(\", \").append(requestPath);\n }\n }",
"public void registerConfigurationEntry(String key, Object entry);",
"MountPoint findDefaultMountPoint(String relatedContentId, String handlerKey);",
"private void handleCommandLineArgs(final String[] args) {\n if (args.length == 1) {\n final String value;\n if (args[0].startsWith(ToolArguments.MAP_FOLDER)) {\n value = getValue(args[0]);\n } else {\n value = args[0];\n }\n final File mapFolder = new File(value);\n if (mapFolder.exists()) {\n mapFolderLocation = mapFolder;\n } else {\n log.info(\"Could not find directory: \" + value);\n }\n } else if (args.length > 1) {\n log.info(\"Only argument allowed is the map directory.\");\n }\n // might be set by -D\n if (mapFolderLocation == null || mapFolderLocation.length() < 1) {\n final String value = System.getProperty(ToolArguments.MAP_FOLDER);\n if (value != null && value.length() > 0) {\n final File mapFolder = new File(value);\n if (mapFolder.exists()) {\n mapFolderLocation = mapFolder;\n } else {\n log.info(\"Could not find directory: \" + value);\n }\n }\n }\n }",
"public void buildPathPartWithServletPath(Appendable buffer) throws WebAppConfigurationException, IOException {\n buildPathPart(buffer, null, false);\n }",
"public MountRequest(String p){\n\t\tpath = p;\n\t}",
"public String pathOfItem(Pathable item) {\n return null; // todo: implement this method\n }",
"EntryNotFoundException() {\n super();\n }",
"public void init(final WiktionaryEntry entry) {\n\t\tthis.entry = entry;\n\t\tentryId = entry.getId();\n\t}",
"public JournalEntryLine() {\n this(DSL.name(\"JOURNAL_ENTRY_LINE\"), null);\n }",
"@Override\n\tpublic PathMatcher getPathMatcher(String arg0) {\n\t\treturn null;\n\t}",
"private char[] getPath() {\n\t\treturn null;\n\t}",
"@Nullable String getPath();",
"public Entry getEntry(String aPath)\n {\n if(getRepo()==null) return null;\n \n // Handle root special\n if(aPath.equals(\"/\")) return new Entry(null, aPath);\n \n // Get repository index and entry for path\n DirCache index = getIndex(); String path = aPath.substring(1);\n DirCacheEntry entry = index.getEntry(aPath.substring(1));\n boolean isDir = entry==null && index.getEntriesWithin(path).length>0;\n if(entry==null && !isDir) return null;\n \n // Create file for path and index entry\n return new Entry(entry, aPath);\n }",
"public MyPathResource() {\r\n }",
"public static PathAnchor none() {\n return None.INSTANCE;\n }",
"private String appendToPath(String aBase, String aTail) {\n \t\t//initialise with most likely layout\n \t\tString dBase = aBase;\n \t\tString dTail = aTail;\n \n \t\tif (!aBase.endsWith(\"/\")) { //$NON-NLS-1$\n \t\t\tdBase = aBase + \"/\"; //$NON-NLS-1$\n \t\t}\n \n \t\tif (aTail.startsWith(\"/\")) { //$NON-NLS-1$\n \t\t\tdTail = aTail.substring(1);\n \t\t}\n \n \t\treturn dBase + dTail;\n \t}",
"private void initPath() {\n this.IniFile = new IniFile();\n String configPath = this.getApplicationContext().getFilesDir()\n .getParentFile().getAbsolutePath();\n if (configPath.endsWith(\"/\") == false) {\n configPath = configPath + \"/\";\n }\n this.appIniFile = configPath + constants.USER_CONFIG_FILE_NAME;\n }",
"public void buildPathPart(Appendable buffer, String uri, Boolean appendDirSep) throws WebAppConfigurationException, IOException {\n if (servletPath == null) {\n throw new IllegalStateException(\"Servlet path is unknown\");\n }\n appendPathPart(buffer, uri, appendDirSep,\n webSiteProps.isWebappPathPrefixUrlBuild() ? webSiteProps.getWebappPathPrefix()+servletPath : servletPath); // SCIPIO\n }",
"public Builder setAddMountPoint(alluxio.proto.journal.File.AddMountPointEntry value) {\n if (addMountPointBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n addMountPoint_ = value;\n onChanged();\n } else {\n addMountPointBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000002;\n return this;\n }",
"public FileSystemEntry getEntry(String path);",
"public boolean isDir() { return _entry==null; }",
"public void addUrlArg(String key, String value);",
"protected void createHMetisInFilePath() {\n\t\tString file = \"\";\n\t\tfile += this.getRuntimeEnv().getOptionValue(PTArgString.OUTPUTDIR);\n\t\tfile += Utils.getFileSeparator();\n\t\tfile += \"TEMP_GRAPH_FILE.hgr\";\n\t\tthis.setHMetisInFile(file);\n\t}",
"protected void addEntries() {\r\n\t\t// default is to do nothing;\r\n\t}",
"private FileEntry() {\n // intentionally empty\n }",
"private void setPathToRootOfPostVersionLists() {\n if (postBlockTypeToInvestigate == PostBlockTypeToInvestigate.Text) {\n pathToSelectedRootOfPostVersionLists = Paths.get(\"testdata\", \"files to investigate\", \"text\");\n } else if (postBlockTypeToInvestigate == PostBlockTypeToInvestigate.Code) {\n pathToSelectedRootOfPostVersionLists = Paths.get(\"testdata\", \"files to investigate\", \"code\");\n }\n }",
"@Override\n\tpublic String getErrorPath() {\n\t\treturn null;\n\t}",
"protected Modification handleEntry(List historyEntry) {\n // Ignore unusual labels of directories which cause parsing errors that \n // look like this:\n //\n // ***** built *****\n // Version 4\n // Label: \"autobuild_test\"\n // User: Etucker Date: 6/26/01 Time: 11:53a\n // Labeled\n if ((historyEntry.size() > 4) && \n (((String) historyEntry.get(4)).startsWith(\"Labeled\"))) {\n return null;\n }\n \n \t\tModification mod = new Modification();\n String nameAndDateLine = (String) historyEntry.get(2);\n \t\tmod.userName = parseUser(nameAndDateLine);\n \t\tmod.modifiedTime = parseDate(nameAndDateLine);\n \n String folderLine = (String) historyEntry.get(0);\n String fileLine = (String) historyEntry.get(3);\n \t\tif (fileLine.startsWith(\"Checked in\")) {\n \t\t\tmod.type = \"checkin\";\n \t\t\tmod.comment = parseComment(historyEntry);\n \t\t\tmod.fileName = folderLine.substring(7, folderLine.indexOf(\" *\"));\n \t\t\tmod.folderName = fileLine.substring(12);\n \t\t} else if (fileLine.endsWith(\"Created\")) {\n mod.type = \"create\";\n } else {\n \t\t\tmod.folderName = folderLine.substring(7, folderLine.indexOf(\" *\"));\n int lastSpace = fileLine.lastIndexOf(\" \");\n if ( lastSpace != -1 ) {\n mod.fileName = fileLine.substring(0, lastSpace);\n } else {\n mod.fileName = fileLine;\n }\n \n if (fileLine.endsWith(\"added\")) {\n \t\t\t\tmod.type = \"add\";\n \t\t\t} else if (fileLine.endsWith(\"deleted\")) {\n \t\t\t\tmod.type = \"delete\";\n \t\t\t} else if (fileLine.endsWith(\"recovered\")) {\n \t\t\t\tmod.type = \"recover\";\n \t\t\t} else if (fileLine.endsWith(\"shared\")) {\n mod.type = \"branch\";\n }\n \t\t}\n \n \t\tif (_propertyOnDelete != null && \"delete\".equals(mod.type)) {\n _properties.put(_propertyOnDelete, \"true\");\n \t\t}\n \n if (_property != null) {\n \t\t_properties.put(_property, \"true\");\n }\n \n return mod;\n \t}",
"@Override\n\t\t\tpublic Set<java.util.Map.Entry<PathwayImpl, AnalysisResult>> entrySet() {\n\t\t\t\treturn null;\n\t\t\t}",
"public String getDisplayName(){return entryName;}",
"public ResourcePath() {\n //_externalFolder = \"file:///C:/Program%20Files/ESRI/GPT9/gpt/\";\n //_localFolder = \"gpt/\";\n}",
"@Override\r\n public MultivaluedMap<String, String> getPathParameters(boolean arg0) {\n return null;\r\n }",
"public void setPath(String path)\r\n/* 21: */ {\r\n/* 22:53 */ this.path = path;\r\n/* 23: */ }",
"public FilesystemEntryBean(String artist, String album, String song){\n this.artist = artist;\n this.album = album;\n this.song = song;\n\n isSong = (song != null && !song.trim().isEmpty());\n isAlbum = !isSong && (album != null && !album.trim().isEmpty());\n isArtist = !isSong && !isAlbum && (artist != null && !artist.trim().isEmpty());\n\n if (isArtist) {\n playActionUrl = null;\n listActionUrl = LIST_BASE_URL + \"/\" + artist;\n name = artist;\n }\n if (isAlbum) {\n playActionUrl = PLAY_BASE_URL + \"/\" + artist + \"/\" + album;\n listActionUrl = LIST_BASE_URL + \"/\" +artist + \"/\" + album;\n name = album;\n }\n if (isSong) {\n playActionUrl = PLAY_BASE_URL + \"/\" + artist + \"/\" + album + \"/\" + song;\n listActionUrl = null;\n name = song;\n }\n }",
"private String getDataPath()\n {\n Location location = Platform.getInstanceLocation();\n if (location == null) {\n return \"@none\";\n } else {\n return location.getURL().getPath();\n }\n }",
"public static void generateEnvVarEntry(VarListEntryType entry,\n\t\t\t\t\t\t\t\t\t\t\tString name,\n\t\t\t\t\t\t\t\t\t\t\tString description,\n\t\t\t\t\t\t\t\t\t\t\tString shortOptionLetter) {\n\t\t// Term\n\t\tTermType term = DocbookFactory.eINSTANCE.createTermType();\n\t\tentry.getTerm().add(term);\n\t\tEnvarType envar = DocbookFactory.eINSTANCE.createEnvarType();\n\t\tFeatureMapUtil.addText(envar.getMixed(), name);\n\t\tterm.getEnvar().add(envar);\n\t\t\n\t\t// Listitem\n\t\tListitemType listitem = DocbookFactory.eINSTANCE.createListitemType();\n\t\tentry.setListitem(listitem);\n\t\tParaType para = DocbookFactory.eINSTANCE.createParaType();\n\t\tlistitem.getPara().add(para);\n\t\tString content = description + \".\";\n\t\tif ((shortOptionLetter != null) && !shortOptionLetter.equals(\"\")) {\n\t\t\tcontent += \" Overridden by the -\" + shortOptionLetter + \" option.\";\n\t\t}\n\t\tFeatureMapUtil.addText(para.getMixed(), content);\n\t}",
"public boolean addPathField(Document document, DetailedUrl dUrl, boolean withoutTargetOrExtension) {\n boolean result = false;\n\n if (dUrl != null) {\n final String path = dUrl.getPath(withoutTargetOrExtension);\n result = addField(document, path);\n }\n\n return result;\n }",
"public void addMapEntry(String entry, boolean isLast) {\n checkNotNull(entry);\n if (isLast) {\n addLine(entry);\n } else {\n addLine(entry + ',');\n }\n }",
"private void setAssetPath(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n assetPath_ = value;\n }",
"String getDisplayableNodePath(String nodePath, boolean fallbackToHomePage) throws GWTJahiaServiceException;",
"public String getQueryAppendPath(QueryInfo queryInfo) {\n int i = AnonymousClass1.$SwitchMap$com$miui$gallery$search$SearchConstants$SearchType[queryInfo.getSearchType().ordinal()];\n if (i == 1) {\n return \"suggestion\";\n }\n if (i != 2) {\n return null;\n }\n return \"search\";\n }",
"@NotNull\n/* 52 */ public String getServerPath() { return this.myServerPath; }",
"public synchronized String getPath(long entry) throws IOException,\n EOFException {\n long startOfEntry = IDX_START_OF_CONTENT + (entry * bytesPerSlot);\n idx.seek(startOfEntry);\n if (idx.readChar() == '\\n')\n throw new IllegalStateException(\"No data at address \" + entry);\n idx.skipBytes(bytesPerId + bytesPerType - 2);\n \n byte[] bytes = new byte[bytesPerPath];\n idx.read(bytes);\n String line = new String(bytes, \"utf-8\");\n int delimiter = line.indexOf('\\n');\n if (delimiter < 1)\n throw new IllegalStateException(\"Found path without delimiter\");\n return new String(bytes, 0, delimiter - 1);\n }",
"public String putDefault(String key, String value) {\n return (String) defaultConfig.put(key, makePathAbsolute(key, value));\n }",
"public void setPathSuffix(String pathSuffix);",
"public boolean isClasspathEntry()\n {\n return m_classpath;\n }",
"public void setDefEntryData(String defEntryData)\n\t{\n\t\tthis.defEntryData = Toolbox.trim(defEntryData, 55);\n\t}",
"public void buildPathPartWithWebappPathPrefix(Appendable buffer) throws WebAppConfigurationException, IOException {\n buildPathPartWithWebappPathPrefix(buffer, null, false);\n }",
"public Entry(String n)\n {\n name = n;\n }",
"public void buildPathPartWithWebappPathPrefix(Appendable buffer, String uri) throws WebAppConfigurationException, IOException {\n buildPathPartWithWebappPathPrefix(buffer, uri, null);\n\n }",
"@Override\r\n public URI getAbsolutePath() {\n return null;\r\n }",
"public static void setHelpArgs(String root, String sub, String text) {\n\t\tif(!helpargs.containsKey(root)) return;\n\t\tif(helpargs.get(root) == null)\n\t\t{\n\t\t\t//create new hashmap\n\t\t\thelpargs.put(root, new HashMap<String, String>());\n\t\t}\n\t\t\n\t\thelpargs.get(root).put(sub, text);\n\t\tlast[0] = root;\n\t\tlast[1] = sub;\n\t}",
"private Element createManifestEntry (String location, URI format,\n\t\tboolean mainEntry)\n\t{\n\t\tElement element = new Element (\"content\", Utils.omexNs);\n\t\telement.setAttribute (\"location\", location);\n\t\telement.setAttribute (\"format\", format.toString ());\n\t\tif (mainEntry)\n\t\t\telement.setAttribute (\"master\", \"\" + mainEntry);\n\t\treturn element;\n\t}",
"@Override\r\n \tpublic File getLoadPath(String subArea) {\n \t\treturn null;\r\n \t}",
"private void setNote() {\n\t\tNoteOpt.add(\"-nd\");\n\t\tNoteOpt.add(\"/nd\");\n\t\tNoteOpt.add(\"notedetails\");\n\n\t}",
"public String getPath()\n\t{\n\t\treturn letter + \":/\";\n\t}",
"public Builder addPath(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensurePathIsMutable();\n path_.add(value);\n onChanged();\n return this;\n }",
"public void directoryPathPrompt() {\n System.out.println(\"Enter a file path to export the PDF of the schedule to.\");\n }",
"Path getMainCatalogueFilePath();",
"java.lang.String getEntryNode();"
] | [
"0.5600774",
"0.55813664",
"0.54234606",
"0.52855027",
"0.5211819",
"0.5098448",
"0.5086174",
"0.5040827",
"0.5017289",
"0.4988906",
"0.49846902",
"0.49749374",
"0.4962634",
"0.49316525",
"0.49211997",
"0.49119872",
"0.49055418",
"0.49054834",
"0.4893965",
"0.48647007",
"0.48385113",
"0.48385113",
"0.48385113",
"0.48385113",
"0.48335913",
"0.48269787",
"0.4755772",
"0.4750096",
"0.47489586",
"0.47408205",
"0.47296116",
"0.47251278",
"0.47233993",
"0.47192746",
"0.47023427",
"0.46999124",
"0.46824646",
"0.46780774",
"0.46738988",
"0.4653548",
"0.46533978",
"0.46512562",
"0.4635127",
"0.46348816",
"0.46292898",
"0.4625592",
"0.4624234",
"0.46047413",
"0.4587682",
"0.4565717",
"0.4565523",
"0.45638096",
"0.45608392",
"0.45596963",
"0.45510858",
"0.4546642",
"0.45378426",
"0.45319438",
"0.45239642",
"0.45209798",
"0.45204732",
"0.45201784",
"0.45172",
"0.4504498",
"0.4499702",
"0.44955584",
"0.4493032",
"0.44869232",
"0.44857648",
"0.44846332",
"0.44652078",
"0.44640833",
"0.44563287",
"0.44539562",
"0.4451686",
"0.44404036",
"0.44396883",
"0.44373682",
"0.44356558",
"0.44337085",
"0.44246727",
"0.44227675",
"0.44223943",
"0.4421998",
"0.44202572",
"0.44155633",
"0.4405166",
"0.44045627",
"0.43997803",
"0.4395883",
"0.43954694",
"0.43897954",
"0.43895647",
"0.43862814",
"0.43766767",
"0.437213",
"0.4370801",
"0.43669492",
"0.4361253",
"0.4359927",
"0.43567905"
] | 0.0 | -1 |
Stores the content into the ZIP. | public ZipBuilder save() throws IOException {
ZipUtil.addToZip(zos, bytes, path, comment);
return ZipBuilder.this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void writeArchive(Content content) throws Exception {\n\t\tString path = open();\n\t\tTranslateContent translate = new TranslateContent(content, path);\n\t\ttranslate.writeArchive();\n\n\t\t// compress archive file if +C used\n\t\tif (content.isCompressed()) {\n\t\t\tcompressArchive();\n\t\t}\n\t}",
"abstract public void store( String content, String path )\r\n throws Exception;",
"private void createZipEntry(ZipOutputStream out, String fileName, byte[] content) throws IOException\n\t{\n\t\tZipEntry entry = new ZipEntry(fileName);\n\t\tentry.setMethod(ZipEntry.DEFLATED);\n\t\tout.putNextEntry(entry);\n\t\tout.write(content);\n\t}",
"@Override\n\tpublic void store(InputStream inputStream, long contentLength, String contentType, String keyName) {\n\n\t}",
"public ZipBuilder save() throws IOException {\n\t\t\tZipUtil.addToZip(zos, file, path, comment, recursive);\n\t\t\treturn ZipBuilder.this;\n\t\t}",
"private void addToOutputStream(ZipOutputStream output, InputStream input, ZipEntry ze) throws IOException{\n try {\n output.putNextEntry(ze); \n } catch (ZipException zipEx) {\n //This entry already exists. So, go with the first one.\n input.close();\n return;\n }\n int numBytes = -1;\n while((numBytes = input.read(buffer)) > 0){\n output.write(buffer, 0, numBytes);\n }\n output.closeEntry();\n input.close();\n }",
"public void store(String namespace, String id, long version, String content) throws StageException;",
"protected void trunkStore() {\n LOG.info(\"Trunking state filestore: {}\", fileStore);\n FileOutputStream fos = null;\n try {\n fos = new FileOutputStream(fileStore);\n for (Map.Entry<String, String> entry : cache.entrySet()) {\n fos.write(entry.getKey().getBytes());\n fos.write(KEY_VALUE_DELIMITER.getBytes());\n fos.write(entry.getValue().getBytes());\n fos.write(STORE_DELIMITER.getBytes());\n }\n } catch (IOException e) {\n throw RuntimeCamelException.wrapRuntimeCamelException(e);\n } finally {\n IOHelper.close(fos, \"Trunking file state repository\", LOG);\n }\n }",
"public AddContentToZip path(final String path) {\n\t\t\tthis.path = path;\n\t\t\treturn this;\n\t\t}",
"@Override\n public synchronized void putContent(Consumer<OutputStream> outputStreamSupplier) throws IOException {\n // Delete a possibly prior written newContentFile\n Files.deleteIfExists(newContentFile);\n try (OutputStream out = newOutputStreamToNewTmpContent(true)) {\n outputStreamSupplier.accept(out);\n }\n FileUtils.moveAtomic(newContentTmpFile, newContentFile);\n }",
"private static void storingTheObjectToDisk1(InputStream objectContent, String key) {\n FileOutputStream fos = null;\n BufferedOutputStream bos = null;\n byte[] buff = new byte[50*1024];\n int count;\n try {\n bos = new BufferedOutputStream(new FileOutputStream(\"/home/ubuntu/\" + key));\n while( (count = objectContent.read(buff)) != -1)\n {\n bos.write(buff, 0, count);\n }\n bos.close();\n objectContent.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"protected boolean storeContents(final String contents,\n\t\t\tfinal File destination) {\n\t\tFileChannel fcDestination = null;\n\t\ttry {\n\t\t\tfinal ByteBuffer bb = ByteBuffer\n\t\t\t\t\t.allocateDirect(contents.length() * 2);\n\t\t\tbb.put(contents.getBytes());\n\t\t\tbb.flip();\n\t\t\tfcDestination = new FileOutputStream(destination).getChannel();\n\t\t\tfcDestination.write(bb);\n\t\t\treturn true;\n\t\t} catch (final Exception e) {\n\t\t\tthis.logger.exception(\"Unable to Store Contents [\" + destination\n\t\t\t\t\t+ \"]\", e);\n\t\t\treturn false;\n\t\t} finally {\n\t\t\tif (fcDestination != null) {\n\t\t\t\ttry {\n\t\t\t\t\tfcDestination.close();\n\t\t\t\t} catch (final Exception e) {\n\t\t\t\t\tthis.logger.exception(\"Unable to Close File Channel [\"\n\t\t\t\t\t\t\t+ fcDestination + \"]\", e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"public void zip() {\n\t\tif (zipFile != null) {\n\t\t\tlong start = System.currentTimeMillis();\n\t\t\ttry (ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(zipFile))) {\n\t\t\t\tzos.setLevel(ZipOutputStream.STORED);\n\t\t\t\tbyte[] buffer = new byte[4096];\n\t\t\t\tFiles.list(Paths.get(tool_builddir))\n\t\t\t\t\t\t.forEach(x -> {\n\t\t\t\t\t\t\tFile f = x.toFile();\n\t\t\t\t\t\t\tif (f.isFile() && !f.getName().contains(\".\")) {\n\t\t\t\t\t\t\t\ttry (FileInputStream fis = new FileInputStream(f)) {\n\t\t\t\t\t\t\t\t\tZipEntry zipEntry = new ZipEntry(f.getName());\n\t\t\t\t\t\t\t\t\tzos.putNextEntry(zipEntry);\n\t\t\t\t\t\t\t\t\tint count;\n\t\t\t\t\t\t\t\t\twhile ((count = fis.read(buffer)) >= 0) {\n\t\t\t\t\t\t\t\t\t\tzos.write(buffer, 0, count);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tzos.closeEntry();\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e);\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\tout.println(\"Zipped to '\" + zipFile + \"' - \" + Duration.ofMillis(System.currentTimeMillis() - start));\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t}",
"public synchronized void writeStore() {\n FileOutputStream fileStream = null;\n\n try {\n File storeFile = new File(getStoreName());\n File oldStoreFile = new File(oldStoreName);\n\n if (oldStoreFile.exists()) {\n oldStoreFile.delete();\n }\n\n if (storeFile.exists()) {\n storeFile.renameTo(oldStoreFile);\n }\n\n File newStoreFile = new File(getStoreName());\n\n // Make sure the needed directories exists\n if (!newStoreFile.getParentFile().exists()) {\n newStoreFile.getParentFile().mkdirs();\n }\n\n fileStream = new FileOutputStream(newStoreFile);\n ObjectOutputStream outStream = new ObjectOutputStream(fileStream);\n outStream.writeObject(store);\n } catch (Exception e) {\n LOGGER.log(Level.WARNING, Utility.expandStackTraceToString(e));\n } finally {\n if (fileStream != null) {\n try {\n fileStream.close();\n } catch (IOException e) {\n LOGGER.log(Level.WARNING, Utility.expandStackTraceToString(e));\n }\n }\n }\n }",
"private void addToZipStream(Path file, ZipOutputStream zipStream, String dirName)\r\n throws Exception {\r\n String inputFileName = file.toFile().getPath();\r\n try (FileInputStream inputStream = new FileInputStream(inputFileName)) {\r\n\r\n // create a new ZipEntry, which is basically another file\r\n // within the archive. We omit the path from the filename\r\n Path directory = Paths.get(dirName);\r\n ZipEntry entry = new ZipEntry(directory.relativize(file).toString());\r\n\r\n zipStream.putNextEntry(entry);\r\n\r\n // Now we copy the existing file into the zip archive. To do\r\n // this we write into the zip stream, the call to putNextEntry\r\n // above prepared the stream, we now write the bytes for this\r\n // entry. For another source such as an in memory array, you'd\r\n // just change where you read the information from.\r\n byte[] readBuffer = new byte[2048];\r\n int amountRead;\r\n int written = 0;\r\n\r\n while ((amountRead = inputStream.read(readBuffer)) > 0) {\r\n zipStream.write(readBuffer, 0, amountRead);\r\n written += amountRead;\r\n }\r\n } catch (IOException e) {\r\n throw new Exception(\"Unable to process \" + inputFileName, e);\r\n }\r\n }",
"private void addToZip(File directoryToZip, File file, ZipOutputStream zos) throws IOException {\r\n final int BUFFER_SIZE = 1024;\r\n FileInputStream fis = new FileInputStream(file);\r\n // we want the zipEntry's path to be a relative path that is relative\r\n // to the directory being zipped, so chop off the rest of the path\r\n String zipFilePath = file.getCanonicalPath().substring(\r\n (directoryToZip.getCanonicalPath().length() - directoryToZip.getName().length()),\r\n file.getCanonicalPath().length());\r\n ZipEntry zipEntry = new ZipEntry(zipFilePath);\r\n zos.putNextEntry(zipEntry);\r\n byte[] bytes = new byte[BUFFER_SIZE];\r\n int length;\r\n while ((length = fis.read(bytes)) >= 0) {\r\n zos.write(bytes, 0, length);\r\n }\r\n zos.closeEntry();\r\n fis.close();\r\n }",
"public void tozip() {\r\n\t\t//session.setAttribute(Constant.USER_SESSION_KEY, null);\r\n\t\tList<Netlog> result = null;\r\n\t\tInteger total = null;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t\tresult = (List<Netlog>)netlogDao.findNetlogByPage(1,10000);\r\n\t\t\t\ttotal= result.size();\r\n\t\t\t\t//total= netlogDao.findNetlogCount();\r\n\t\t\t\r\n\t\t} catch (SQLException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tNetlogs netlogs = new Netlogs(result);\r\n\t\tString path = this.getClass().getClassLoader().getResource(\"\").getPath();\r\n\t\tSystem.out.println(path);\r\n\t\tpath = path.replace(\"WEB-INF/classes/\", \"\");\r\n\t\tString path1 = path + \"netlog/\";\r\n\t\tLong time = System.currentTimeMillis()/1000;\r\n\t\tXml2Java.beanToXML(netlogs,path1+\"145-330000-\"+time.toString()+\"-00001-WA-SOURCE_NETLOG_0001-0.xml\");\r\n\r\n\t\tZipUtil.ZipMultiFile(path1, path+\"145-353030334-330300-330300-netlog-00001.zip\");\r\n\t}",
"public void newZipEntry(ZipEntry zipEntry, InputStream inputStream);",
"public void serialize(final OutputStream output) throws IOException {\r\n ZipOutputStream zipStream = new ZipOutputStream(output);\r\n WorkspaceComponentSerializer serializer = new WorkspaceComponentSerializer(\r\n zipStream);\r\n ArchiveContents archive = new ArchiveContents(workspace, serializer);\r\n\r\n workspace.preSerializationInit();\r\n\r\n // Serialize components\r\n serializeComponents(serializer, archive, zipStream);\r\n\r\n // Serialize couplings\r\n for (Coupling<?> coupling : workspace.getCouplingManager()\r\n .getCouplings()) {\r\n archive.addCoupling(coupling);\r\n }\r\n\r\n // Serialize update actions\r\n for (UpdateAction action : workspace.getUpdater().getUpdateManager()\r\n .getActionList()) {\r\n archive.addUpdateAction(action);\r\n }\r\n\r\n ZipEntry entry = new ZipEntry(\"contents.xml\");\r\n zipStream.putNextEntry(entry);\r\n archive.toXml(zipStream);\r\n zipStream.finish();\r\n }",
"private void compress()\n\t{\n\t\ttry\n\t\t{\n\t\t\tZipOutputStream rfoFile = new ZipOutputStream(new FileOutputStream(path + fileName)); \n\t\t\tFile dirToZip = new File(rfoDir); \n\t\t\tString[] fileList = dirToZip.list(); \n\t\t\tbyte[] buffer = new byte[4096]; \n\t\t\tint bytesIn = 0; \n\n\t\t\tfor(int i=0; i<fileList.length; i++) \n\t\t\t{ \n\t\t\t\tFile f = new File(dirToZip, fileList[i]); \n\t\t\t\tFileInputStream fis = new FileInputStream(f); \n\t\t\t\tString zEntry = f.getPath();\n\t\t\t\t//System.out.println(\"\\n\" + zEntry);\n\t\t\t\tint start = zEntry.indexOf(uniqueName);\n\t\t\t\tzEntry = zEntry.substring(start + uniqueName.length() + 1, zEntry.length());\n\t\t\t\t//System.out.println(tempDir);\n\t\t\t\t//System.out.println(zEntry + \"\\n\");\n\t\t\t\tZipEntry entry = new ZipEntry(zEntry); \n\t\t\t\trfoFile.putNextEntry(entry); \n\t\t\t\twhile((bytesIn = fis.read(buffer)) != -1) \n\t\t\t\t\trfoFile.write(buffer, 0, bytesIn); \n\t\t\t\tfis.close();\n\t\t\t}\n\t\t\trfoFile.close();\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.compress(): \" + e);\n\t\t}\n\t}",
"public void save(OutputStream out) throws IOException {\n\t\ttry (GZIPOutputStream zipOut = new GZIPOutputStream(out)) {\n\t\t\ttry (ObjectOutputStream objOut = new ObjectOutputStream(zipOut)) {\n\t\t\t\tobjOut.writeObject(this);\n\t\t\t}\n\t\t}\n\t}",
"public static void extractAndSaveFile(ZipInputStream zip,\n \t\t\tFileOutputStream destinationFile) throws IOException {\n \t\tByteArrayOutputStream out = readZipEntry(zip);\n \t\tdestinationFile.write(out.toByteArray());\n \t\tout.close();\n \t\tdestinationFile.close();\n \t}",
"public void zipFiles() {\r\n byte[] buffer = new byte[1024];\r\n try {\r\n\r\n // On rare occasions, there will be a semi colon in the title name,\r\n // ruining everything while zipping the file.\r\n if (title.contains(\":\") || title.contains(\".\")) {\r\n String temp = \"\";\r\n for (int i = 0; i < title.length(); i++) {\r\n \r\n if (title.charAt(i) == ':' || title.charAt(i) == '.') {\r\n \r\n } else {\r\n temp += title.charAt(i);\r\n }\r\n }\r\n title = temp;\r\n }\r\n System.out.println(\"File name: \" + title);\r\n \r\n FileOutputStream fos = new FileOutputStream(savePath + \"\\\\\" + title + \".zip\");\r\n ZipOutputStream zos = new ZipOutputStream(fos);\r\n \r\n for (String fileName : fileNames) {\r\n \r\n System.out.println(\"zipping file: \" + fileName);\r\n \r\n fileName = savePath + \"\\\\\" + fileName;\r\n File srcFile = new File(fileName);\r\n FileInputStream fis;\r\n if (srcFile.exists()) {\r\n fis = new FileInputStream(srcFile);\r\n \r\n zos.putNextEntry(new ZipEntry(srcFile.getName()));\r\n int length;\r\n while ((length = fis.read(buffer)) > 0) {\r\n zos.write(buffer, 0, length);\r\n }\r\n zos.closeEntry();\r\n fis.close();\r\n \r\n boolean success = (new File(fileName)).delete();\r\n }\r\n }\r\n zos.close();\r\n \r\n } catch (FileNotFoundException ex) {\r\n System.out.println(\"File not found!\");\r\n } catch (IOException ex) {\r\n }\r\n }",
"public static void saveToZip(String path) throws FileNotFoundException, IOException {\n //File and Zip Outoput Streams \n FileOutputStream fos = new FileOutputStream(path);\n ZipOutputStream zipOS = new ZipOutputStream(fos);\n //For every image, we create a temporally jpeg file\n //Then, with the createFileToZip function, we include it to the output zip file\n //Finally, we delete the jpeg image\n for (int i =0; i< imageNames.size(); i++) {\n File tempImage = new File(\"image_\"+Integer.toString(i)+\".jpg\");\n ImageIO.write(imageDict.get(imageNames.get(i)),\"jpg\",tempImage);\n createFileToZip(imageDict.get(imageNames.get(i)),\"image_\",i,zipOS);\n tempImage.delete();\n }\n zipOS.finish(); //Good practice!\n zipOS.close();\n }",
"int add(ContentInputStream data) throws ContentStoreException;",
"@Override\n public void createContent(OutputStream out) throws Exception {\n\n // make sure we have the path to load from\n IParameterProvider request = parameterProviders.get( \"request\" ); //$NON-NLS-1$\n String fullPath = request.getStringParameter(\"filepath\", null); //$NON-NLS-1$\n if( fullPath == null ) {\n errorMessage( Messages.getErrorString(\"SolutionRepo.ERROR_0001_NO_FILEPATH\"), out ); //$NON-NLS-1$\n return;\n }\n\n ActionInfo info = ActionInfo.parseActionString( fullPath );\n if( info == null ) {\n errorMessage( Messages.getErrorString(\"SolutionRepo.ERROR_0003_BAD_PATH\", fullPath), out ); //$NON-NLS-1$\n return;\n }\n \n ISolutionRepository repo = PentahoSystem.get(ISolutionRepository.class, userSession);\n\n // try to get the file from the repository\n// Document doc = repo.getResourceAsDocument(fullPath, ISolutionRepository.ACTION_EXECUTE);\n Document doc = repo.getNavigationUIDocument(null, fullPath, ISolutionRepository.ACTION_EXECUTE);\n\n if( doc != null ) {\n Element stateNode = (Element) doc.selectSingleNode( \"state-file/state\" ); //$NON-NLS-1$\n if( stateNode != null ) {\n // write the loaded state to the output stream\n out.write( stateNode.getText().getBytes( ) );\n return;\n }\n }\n \n out.write( Messages.getErrorString(\"SolutionRepo.ERROR_0001_LOAD_FAILED\", fullPath).getBytes() ); //$NON-NLS-1$\n \n }",
"public void save(Content c) {\n Path path = this.contentPath.resolve(c.getKey());\n\n try (DataOutputStream out = new DataOutputStream(new BufferedOutputStream(Files.newOutputStream(path)))) {\n // write version\n out.writeInt(2);\n\n // write name\n out.writeUTF(c.getKey());\n\n // write content type\n byte[] contextType = c.getContentType().getBytes();\n out.writeInt(contextType.length);\n out.write(contextType);\n\n // write expiry time\n out.writeLong(c.getExpiry());\n\n // write last modified\n out.writeLong(c.getLastModified());\n\n // write modifiable state data\n out.writeBoolean(c.isModifiable());\n if (c.isModifiable()) {\n out.writeUTF(c.getAuthKey());\n }\n\n // write encoding\n byte[] encoding = c.getEncoding().getBytes();\n out.writeInt(encoding.length);\n out.write(encoding);\n\n // write content\n out.writeInt(c.getContent().length);\n out.write(c.getContent());\n } catch (IOException e) {\n LOGGER.error(\"Exception occurred saving '\" + path + \"'\", e);\n }\n }",
"public void save() {\n Path root = Paths.get(storagePath);\n try {\n Files.copy(file.getInputStream(), root.resolve(file.getOriginalFilename()),\n StandardCopyOption.REPLACE_EXISTING);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private static void deploy(SQLiteDatabase sqlLiteDb, InputStream dbStream) throws IOException {\n ZipInputStream zis = new ZipInputStream(new BufferedInputStream(dbStream));\n ZipEntry entry = null;\n while ((entry = zis.getNextEntry()) != null) {\n Log.i(TAG, \"deploying zip entry: \" + entry);\n InputStreamReader dbReader = new InputStreamReader(zis);\n deploy(sqlLiteDb, dbReader);\n }\n }",
"public void storeContentsToFile(File destination) throws Exception {\n InputStream is = request.getInputStream();\n StreamHelper.copyStreamToFile(is, destination);\n }",
"public void persist() {\n\t\ttry {\n\t\t\tFileOutputStream fos = this._context.openFileOutput(\n\t\t\t\t\tConstants.CATALOG_XML_FILE_NAME, Context.MODE_PRIVATE);\n\t\t\tfos.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" ?>\\n\".getBytes());\n\t\t\tfos.write(\"<orders>\\n\".getBytes());\n\t\t\tfor (int i = 0; i < getOrderEntryCount(); i++) {\n\t\t\t\tOrderEntry oe = getOrderEntry(i);\n\t\t\t\tfos.write(oe.toXMLString().getBytes());\n\t\t\t}\n\t\t\tfos.write(\"</orders>\\n\".getBytes());\n\t\t\tfos.flush();\n\t\t\tfos.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tLog.d(Constants.LOGTAG, \" \" + OrderList.CLASSTAG\n\t\t\t\t\t+ \"Failed to write out file?\" + e.getMessage());\n\t\t}\n\t}",
"public void storePartCapturedContent() {\n // storePart only works for the classic external index format.\n // for internal, we just ignore it (will be fully stored eventually by final call to store())\n\n getDocWriter().storeInContentStore(null, new TextContent(content), captureContentFieldName, \"contents\");\n }",
"public void put(String content, String remotePath) throws Exception\r\n {\r\n\r\n if (cf.checkExists().forPath(remotePath) != null)\r\n cf.setData().forPath(remotePath, content.getBytes());\r\n else {\r\n cf.create().creatingParentsIfNeeded().forPath(remotePath, content.getBytes());\r\n }\r\n }",
"protected void writeContent(final String filename, final byte[] content) {\r\n\t\tFile file = new File(filename);\r\n\t\tif (file.exists()) {\r\n\t\t\tthrow new FileException(\"file [\" + file.getAbsolutePath() + \"] already exists\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFileOutputStream os = new FileOutputStream(file);\r\n\t\t\tos.write(content);\r\n\t\t\tos.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new FileException(\"could not write file [\" + file.getAbsolutePath() + \"]\", e);\r\n\t\t}\r\n\t}",
"public void save()\n\t{\n\t\ttry\n\t\t{\n\t\t\tgetConnection().commit();\n\t\t\tgetPreparedStatement(\"SET FILES SCRIPT FORMAT COMPRESSED\").execute();\n\t\t\t// causes a checkpoint automatically.\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\tm_logger.error(\"Couldn't cleanly save.\", e);\n\t\t}\n\t}",
"public void save(OutputStream os) throws IOException;",
"public void zip(String directoryInZip, \n String filePath) throws Exception\n {\n File thisFile = new File(filePath);\n\n if (thisFile.exists()) {\n\n try {\n FileInputStream fi = new FileInputStream(thisFile);\n\n origin = new BufferedInputStream(fi, BUFFER);\n\n ZipEntry entry = new ZipEntry(directoryInZip + File.separator\n + thisFile.getName());\n out.putNextEntry(entry);\n\n int count;\n while ((count = origin.read(data, 0, BUFFER)) != -1) {\n out.write(data, 0, count);\n }\n origin.close();\n\n } catch (FileNotFoundException e) {\n logger.error(\"File \" + filePath + \" not found !!\", e);\n } catch (IOException e) {\n logger.error(\"Could not write to Zip File \", e);\n throw new Exception(\"Could not write to Zip File \", e);\n }\n\n } else {\n // Log message if file does not exist\n logger.info(\"File \" + thisFile.getName()\n + \" does not exist on file system\");\n\n } \t\t\n }",
"public void setFileContents(Path path, String contents,\n\t\t\tCompressionType compressionType) throws IOException {\n\t\tfiles.put(path, MockStringContentFactory.getBytesFromString(contents,\n\t\t\t\tcompressionType));\n\t\tPath parent = path.getParent();\n\t\tif (parent != null) {\n\t\t\tsetFileContents(parent, DIRECTORY_MARKER_STRING);\n\t\t}\n\t}",
"private void addFile( ZipOutputStream output, File file, String prefix, boolean compress) throws IOException {\n //Make sure file exists\n long checksum = 0;\n if ( ! file .exists() ) {\n return ;\n }\n ZipEntry entry = new ZipEntry( getEntryName( file, prefix ) );\n entry .setTime( file .lastModified() );\n entry .setSize( file .length() );\n if (! compress){\n entry.setCrc(calcChecksum(file));\n }\n FileInputStream input = new FileInputStream( file );\n addToOutputStream(output, input, entry);\n }",
"protected static void zipDir(File zipDir, ZipOutputStream zos, String archiveSourceDir)\n throws IOException {\n String[] dirList = zipDir.list();\n byte[] readBuffer = new byte[40960];\n int bytesIn;\n //loop through dirList, and zip the files\n if (dirList != null) {\n for (String aDirList : dirList) {\n File f = new File(zipDir, aDirList);\n //place the zip entry in the ZipOutputStream object\n zos.putNextEntry(new ZipEntry(getZipEntryPath(f, archiveSourceDir)));\n if (f.isDirectory()) {\n //if the File object is a directory, call this\n //function again to add its content recursively\n zipDir(f, zos, archiveSourceDir);\n //loop again\n continue;\n }\n //if we reached here, the File object f was not a directory\n //create a FileInputStream on top of f\n try (FileInputStream fis = new FileInputStream(f)) {\n //now write the content of the file to the ZipOutputStream\n while ((bytesIn = fis.read(readBuffer)) != -1) {\n zos.write(readBuffer, 0, bytesIn);\n }\n }\n }\n }\n }",
"private void compressArchive() throws Exception {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"Compressing archive: \" + path);\n\t\t}\n\n\t\tFileOutputStream fout = new FileOutputStream(path + \".gz\");\n\t\tGZIPOutputStream gout = new GZIPOutputStream(fout);\n\t\tFileInputStream fin = new FileInputStream(path);\n\t\tbyte[] buf = new byte[blockSize];\n\t\tint len;\n\t\twhile ((len = fin.read(buf)) > 0) {\n\t\t\tgout.write(buf, 0, len);\n\t\t}\n\t\tfin.close();\n\n\t\t// flush and close gzip file\n\t\tgout.finish();\n\t\tgout.close();\n\n\t\t// unlink original archive\n\t\tFile file = new File(path);\n\t\tfile.delete();\n\t}",
"public static void zip(File src, OutputStream os) throws IOException {\n\t\tzip(src, os, Charset.defaultCharset().name(), true);\n\t}",
"private static void writeFile(ZipInputStream zipIn, String filePath) throws IOException {\n\n String parent = filePath.replace(filePath.substring(filePath.lastIndexOf('/')), \"\");\n createParents(parent);\n\n BufferedOutputStream bos = null;\n\n try {\n bos = new BufferedOutputStream(new FileOutputStream(filePath));\n byte[] bytesIn = new byte[BUFFER_SIZE];\n\n int read = 0;\n while ((read = zipIn.read(bytesIn)) != -1) {\n bos.write(bytesIn, 0, read);\n }\n\n } catch (IOException e) {\n System.err.println(e.getMessage());\n Errors.setUnzipperError(true);\n\n } finally {\n if (bos != null) {\n bos.close();\n }\n }\n }",
"public void save() {\n UTILS.write(FILE.getAbsolutePath(), data);\n }",
"private static void writeToFileInZip2 (FileSystem zipFs, String[] data) throws IOException {\r\n\t\tFiles.write(zipFs.getPath(\"/newFile2.txt\"), Arrays.asList(data), Charset.defaultCharset(), StandardOpenOption.CREATE);\r\n\t}",
"public static void zip(BasicShell shell, File archive, List<File> filesToZip) {\n\t\ttry {\n\t\t\tshell.printOut(\"Creating archive '\" + archive.getPath() + \"'.\");\n\t\t\tfinal BufferedOutputStream archiveStream = new BufferedOutputStream(new FileOutputStream(archive));\n\t\t\tZipOutputStream zipStream = new ZipOutputStream(archiveStream);\n\t\t\tzipStream.setLevel(7);\n\t\t\t\n\t\t\tString pwd = shell.pwd().getPath();\n\t\t\tfor ( File file : filesToZip) {\n\t\t\t\tString name = file.getPath();\n\t\t\t\tif (name.equals(pwd)) continue;\n\t\t\t\t\n\t\t\t\tif ( name.startsWith(pwd) ) {\n\t\t\t\t\tname = name.substring(pwd.length()+1);\n\t\t\t\t}\n\t\t\t\tZipEntry entry = new ZipEntry(name);\n\t\t\t\tzipStream.putNextEntry(entry);\n\t\t\t\tif ( file.isFile() ) {\n\t\t\t\t\tBufferedInputStream fileStream = new BufferedInputStream(new FileInputStream(file));\n\t\t\t\t\tbyte[] buffer = new byte[2048];\n\t\t\t\t\tint count = fileStream.read(buffer);\n\t\t\t\t\twhile ( count > -1 ) {\n\t\t\t\t\t\tzipStream.write(buffer, 0, count);\n\t\t\t\t\t\tcount = fileStream.read(buffer);\n\t\t\t\t\t}\n\t\t\t\t\tfileStream.close();\n\t\t\t\t}\n\t\t\t\tshell.printOut(\"File '\" + entry.getName() + \"' added.\");\n\t\t\t}\n\t\t\tzipStream.close();\n\t\t} catch (Exception e) {\n\t\t\tshell.getErrorHandler().handleError(Diagnostic.ERROR, e.getClass().getSimpleName() + \": \"+ e.getMessage());\n\t\t}\n\t}",
"public synchronized int store(FileOutputStream outputStream) throws IOException {\n WritableByteChannel channel = Channels.newChannel(outputStream);\n backingData.position(origo);\n channel.write(backingData); // TODO: Only write bytecount bytes\n return byteCount;\n }",
"public final void store(final OutputStream out) {\n if (s_log.isDebugEnabled()) {\n s_log.debug(\"Storing \" + this);\n }\n\n Assert.exists(out, OutputStream.class);\n\n try {\n m_props.store(out, s_header);\n } catch (IOException ioe) {\n throw new UncheckedWrapperException(ioe);\n }\n }",
"private long processSpecificationArchive(Publication publication, InputStream archiveContent) throws DAOException {\n\t\ttry {\n\t\t\tEntityManager em = getEntityManager();\n\t\t\tSpecificationCollator collator = new SpecificationCollator( publication );\n\t\t\tString archiveFilename = getArchiveFilename( publication );\n\t\t\tFileContent archiveFile = publication.getArchiveContent();\n\t\t\t\n\t\t\tlog.info(\"Saving File Content: \" + archiveFilename);\n\t\t\tif (archiveFile != null) {\n\t\t\t\tpersistFileContent( archiveFile, archiveContent );\n\t\t\t} else {\n\t\t\t\tarchiveFile = persistFileContent( archiveContent );\n\t\t\t\tpublication.setArchiveContent( archiveFile );\n\t\t\t}\n\t\t\tpublication.setArchiveFilename( archiveFilename );\n\t\t\tem.flush();\n\t\t\t\n\t\t\t// First Pass - Create the publication items for the new specification\n\t\t\ttry (InputStream archiveStream = new InflaterInputStream( new ByteArrayInputStream( archiveFile.getFileBytes() ) )) {\n\t\t\t\tZipInputStream zipStream = new ZipInputStream( archiveStream );\n\t\t\t\tZipEntry zipEntry;\n\t\t\t\t\n\t\t\t\twhile ((zipEntry = zipStream.getNextEntry()) != null) {\n\t\t\t\t\tif (zipEntry.isDirectory()) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\t\t} else if (collator.isReleaseNotes( zipEntry )) {\n\t\t\t\t\t\tFileContent releaseNotesFile = publication.getReleaseNotesContent();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (releaseNotesFile != null) {\n\t\t\t\t\t\t\tpersistFileContent( releaseNotesFile, zipStream );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tpublication.setReleaseNotesContent( persistFileContent( zipStream ) );\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpublication.setReleaseNotesFilename( collator.getFilename( zipEntry ) );\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tPublicationItem item = collator.addItem( zipEntry );\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (item != null) {\n\t\t\t\t\t\t\tlog.info(\"Saving File Content: \" + item.getItemFilename());\n\t\t\t\t\t\t\tFileContent itemFile = item.getItemContent();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (itemFile != null) {\n\t\t\t\t\t\t\t\tpersistFileContent( itemFile, zipStream );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\titem.setItemContent( persistFileContent( zipStream ) );\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\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.error(\"Error reading from publication archive.\", e);\n\t\t\t\tthrow new DAOException(\"Error reading from publication archive.\", e);\n\t\t\t}\n\t\t\t\n\t\t\t// Second Pass - Create publication items for any nested archives that fall under\n\t\t\t// the \"special case\" of a standalone nested archive that is the only member of\n\t\t\t// its publication group.\n\t\t\ttry (InputStream archiveStream = new InflaterInputStream( new ByteArrayInputStream( archiveFile.getFileBytes() ) )) {\n\t\t\t\tZipInputStream zipStream = new ZipInputStream( archiveStream );\n\t\t\t\tZipEntry zipEntry;\n\t\t\t\t\n\t\t\t\twhile ((zipEntry = zipStream.getNextEntry()) != null) {\n\t\t\t\t\tif (zipEntry.isDirectory()) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\t\t} else if (collator.isSpecialCaseArchive( zipEntry )) {\n\t\t\t\t\t\tZipInputStream nestedZipStream = new ZipInputStream( zipStream );\n\t\t\t\t\t\tZipEntry nestedEntry;\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile ((nestedEntry = nestedZipStream.getNextEntry()) != null) {\n\t\t\t\t\t\t\tif (nestedEntry.isDirectory()) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tPublicationItem item = collator.addArchiveItem( zipEntry, nestedEntry );\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (item != null) {\n\t\t\t\t\t\t\t\t\tlog.info(\"Saving File Content: \" + item.getItemFilename());\n\t\t\t\t\t\t\t\t\titem.setItemContent( persistFileContent( nestedZipStream ) );\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\t\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.error(\"Error reading from publication archive.\", e);\n\t\t\t\tthrow new DAOException(\"Error reading from publication archive.\", e);\n\t\t\t}\n\t\t\t\n\t\t\t// Finish by saving all of the non-file persistent records for the specification\n\t\t\t// and updating any items that have been removed\n\t\t\tif (publication.getId() < 0) {\n\t\t\t\tem.persist( publication );\n\t\t\t}\n\t\t\t\n\t\t\tfor (PublicationItem deletedItem : collator.getDeletedItems()) {\n\t\t\t\tdeletedItem.setRemoved( true );\n\t\t\t}\n\t\t\t\n\t\t\tfor (PublicationGroup group : collator.getGroups()) {\n\t\t\t\tboolean emptyGroup = true;\n\t\t\t\t\n\t\t\t\tif (group.getId() < 0) {\n\t\t\t\t\tem.persist( group );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (PublicationItem item : group.getPublicationItems()) {\n\t\t\t\t\tif (item.getId() < 0) {\n\t\t\t\t\t\tem.persist( item );\n\t\t\t\t\t}\n\t\t\t\t\temptyGroup &= item.isRemoved();\n\t\t\t\t}\n\t\t\t\tgroup.setRemoved( emptyGroup );\n\t\t\t}\n\t\t\tem.flush();\n\t\t\tDAOFactory.invalidateCollectionCache();\n\t\t\t\n\t\t\treturn publication.getId();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tlog.error(\"An error occurred while publishing the specification.\", e);\n\t\t\tthrow new DAOException(\"An error occurred while publishing the specification.\", e);\n\t\t}\n\t}",
"public static void PackageArchive(File directoryName, File fileName) throws IOException\r\n {\r\n final String ARCHIVE_XML = \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-16\\\"?>\\n<archive major_version=\\\"0\\\" minor_version=\\\"1\\\" />\";\r\n\r\n TarArchiveWriter archive = new TarArchiveWriter(new GZIPOutputStream(new FileOutputStream(fileName)));\r\n\r\n // Create the archive.xml file\r\n archive.writeFile(\"archive.xml\", ARCHIVE_XML);\r\n\r\n // Add the assets\r\n File dir = new File(directoryName, ArchiveConstants.ASSETS_PATH);\r\n String[] files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.ASSETS_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n // Add the objects\r\n dir = new File(directoryName, ArchiveConstants.OBJECTS_PATH);\r\n files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.OBJECTS_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n // Add the terrain(s)\r\n dir = new File(directoryName, ArchiveConstants.TERRAINS_PATH);\r\n files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.TERRAINS_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n // Add the parcels(s)\r\n dir = new File(directoryName, ArchiveConstants.LANDDATA_PATH);\r\n files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.LANDDATA_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n // Add the setting(s)\r\n dir = new File(directoryName, ArchiveConstants.SETTINGS_PATH);\r\n files = dir.list();\r\n for (String file : files)\r\n archive.writeFile(ArchiveConstants.SETTINGS_PATH + FilenameUtils.getName(file), FileUtils.readFileToByteArray(new File(dir, file)));\r\n\r\n archive.close();\r\n }",
"private void writeContent(OutputStream os) throws Exception {\n os.write(HTMLcontent.getBytes());\n}",
"public void save() {\n JAXB.marshal(this, new File(fileName));\n }",
"public void copyDataBase() throws IOException {\n InputStream assetInput = context.getAssets().open(ZIP_DB_NAME);\r\n Log.i(LOG_TAG, \"opened zip_db\");\r\n ZipInputStream zipIn = new ZipInputStream(assetInput);\r\n\r\n ZipEntry entry = zipIn.getNextEntry();\r\n\r\n entry.getName();\r\n\r\n // path to the just created empty database\r\n String DBFileName = DB_PATH + DB_NAME;\r\n\r\n OutputStream DBOutput = new FileOutputStream(DBFileName);\r\n\r\n byte[] buffer = new byte[1024];\r\n\r\n int length;\r\n\r\n while ((length = zipIn.read(buffer)) > 0) {\r\n DBOutput.write(buffer, 0, length);\r\n Log.i(LOG_TAG, \"zipread\" + length);\r\n }\r\n Log.i(LOG_TAG, \"read end\");\r\n // close the streams\r\n DBOutput.flush();\r\n DBOutput.close();\r\n\r\n zipIn.close();\r\n assetInput.close();\r\n }",
"public void setZippedWorkDir(byte[] value) {\n this.zippedWorkDir = value;\n }",
"public interface ZIPContent {\n\n /**\n * Set entry name for zip file.\n *\n * @param ename Entry name\n */\n public void setEntryName(String ename);\n\n /**\n * If model implement this method, return entry name in .epub file\n *\n * @return String entryname or null\n */\n public String getEntryName();\n}",
"void save() {\n File file = new File(main.myPath + \"state.xml\");\n Framework.backup(main.myPath + \"state.xml\");\n Framework.transform(stateDoc, new StreamResult(file), null);\n setDirty(false);\n }",
"void encode(StreamingContent content, OutputStream out) throws IOException;",
"public void saveCart() throws IOException {\n String fileName = userid + \"cart.txt\";\n File file=new File(fileName);\n if(file.exists())\n {\n FileOutputStream fos = new FileOutputStream(fileName);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(this.cartContents);\n oos.flush();\n oos.close();\n fos.close();\n }\n else{\n file.createNewFile();\n }\n }",
"private void parsePackageFile( Part part, HttpServletResponse resp ) throws IOException\n {\n String fileName = part.getSubmittedFileName();\n CompressionType compressionType = CompressionType.getCompressionType( fileName );\n\n try ( InputStream is = part.getInputStream() )\n {\n LocalRepository repo = getRepository();\n repo.put( is, compressionType );\n ok( resp, \"Package successfully saved\" );\n }\n catch ( IOException ex )\n {\n internalServerError( resp, \"Failed to upload package: \" + ex.getMessage() );\n }\n }",
"public void storeTestContent(String url) throws Exception {\n log.debug3(\"storeTestContent() url: \" + url);\n InputStream input = null;\n CIProperties props = null;\n // issue table of content\n if (url.endsWith(\"8601\") && url.contains(\"download\")) { \n // pdf\n input = new StringInputStream(\"\");\n props = getPdfProperties();\n } else if (url.endsWith(\"8110\")) {\n // abs - for metadata/\n input = new StringInputStream(abstractMetadata);\n props = getHtmlProperties();\n } else {\n \t// default blank html\n input = new StringInputStream(\"<html></html>\");\n props = getHtmlProperties();\n }\n UrlData ud = new UrlData(input, props, url);\n UrlCacher uc = au.makeUrlCacher(ud);\n uc.storeContent();\n }",
"private void save() {\r\n\t\tif (Store.save()) {\r\n\t\t\tSystem.out.println(\" > The store has been successfully saved in the file StoreData.\\n\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\" > An error occurred during saving.\\n\");\r\n\t\t}\r\n\t}",
"private void writeContent(String content) throws IOException {\n FileChannel ch = lockFile.getChannel();\n\n byte[] bytes = content.getBytes();\n\n ByteBuffer buf = ByteBuffer.allocate(bytes.length);\n buf.put(bytes);\n\n buf.flip();\n\n ch.write(buf, 1);\n\n ch.force(false);\n }",
"private void saveData() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // Insert the book only if mBookId matches DEFAULT_BOOK_ID\n // Otherwise update it\n // call finish in any case\n if (mBookId == DEFAULT_BOOK_ID) {\n mDb.bookDao().insertBook(bookEntry);\n } else {\n //update book\n bookEntry.setId(mBookId);\n mDb.bookDao().updateBook(bookEntry);\n }\n finish();\n }\n });\n }",
"public void save(DataOutput stream)\n throws IOException\n {\n stream.write(getBytes());\n }",
"private void addDirContents( ZipOutputStream output, File dir, String prefix, boolean compress ) throws IOException {\n String[] contents = dir .list();\n for ( int i = 0; i < contents .length; ++i ) {\n String name = contents[i];\n File file = new File( dir, name );\n if ( file .isDirectory() ) {\n addDirContents( output, file, prefix + name + '/', compress );\n }\n else {\n addFile( output, file, prefix, compress );\n }\n }\n }",
"public boolean ZipFile(String sSourceFilePath, String sDestinationZipFilePath, boolean bReplaceExisting) {\n byte[] buffer = new byte[30720];\n FileInputStream fin = null;\n FileOutputStream fout = null;\n ZipOutputStream zout = null;\n int length;\n String sZipEntryFileName = \"\";\n File objFile = null;\n try {\n //check for source file\n if (sSourceFilePath.trim().equalsIgnoreCase(\"\")) {\n throw new Exception(\"Invalid Source File : \" + sSourceFilePath);\n }\n objFile = new File(sSourceFilePath);\n if (!objFile.exists()) {\n throw new Exception(\"Source file not found : \" + sSourceFilePath);\n }\n\n //check for destination Zip file\n if (sDestinationZipFilePath.trim().equalsIgnoreCase(\"\") || sDestinationZipFilePath == null) {\n String stmp_Path = objFile.getAbsolutePath();\n String stmp_Name = objFile.getName();\n if (stmp_Name.contains(\".\")) { //check for removing extension\n int indx = 0;\n try {\n indx = stmp_Name.indexOf(\".\", stmp_Name.length() - 5);\n } catch (Exception e) {\n indx = 0;\n }\n if (indx <= 0) {\n indx = stmp_Name.length();\n }\n\n stmp_Name = stmp_Name.substring(0, indx);\n stmp_Name = stmp_Name + \".zip\";\n }\n sDestinationZipFilePath = stmp_Path + File.separator + stmp_Name;\n }\n\n objFile = new File(sDestinationZipFilePath);\n if (objFile.exists()) {\n if (bReplaceExisting) {\n objFile.delete();\n } else {\n throw new Exception(\"Destination ZipFile Already exists : \" + sDestinationZipFilePath);\n }\n }\n\n //Zipping File\n sZipEntryFileName = sSourceFilePath.substring(sSourceFilePath.lastIndexOf(\"\\\\\") + 1);\n fout = new FileOutputStream(sDestinationZipFilePath);\n zout = new ZipOutputStream(fout);\n fin = new FileInputStream(sSourceFilePath);\n zout.putNextEntry(new ZipEntry(sZipEntryFileName));\n while ((length = fin.read(buffer)) > 0) {\n zout.write(buffer, 0, length);\n }\n\n return true;\n\n } catch (Exception exp) {\n println(\"Src = \" + sSourceFilePath + \" : Dest = \" + sDestinationZipFilePath + \" : \" + exp.toString());\n return false;\n } finally {\n try {\n fin.close();\n } catch (Exception exp) {\n }\n try {\n zout.closeEntry();\n } catch (Exception exp) {\n }\n try {\n zout.close();\n } catch (Exception exp) {\n }\n }\n }",
"@Override\n public void run() {\n txt_Nombre.setVisible(false);\n //ocultamos el boton Enviar\n btnaceptar.setVisible(false);\n //ocultamos boton Eliminar archivo\n btnEliminarArchivo.setVisible(false);\n //Ocultamos boton Seleccionar archivo\n btnselecionar.setVisible(false);\n //preparamos la salida de datos del Zip\n ZipOutputStream zout;\n //preparamos la salida de datos para el archivo\n BufferedOutputStream bos;\n try {\n //creamos el archivo y lo guardamos \n ruta=nombreZip+\".zip\";\n //creamos el flujo de salida hacia el archivo Zip\n bos = new BufferedOutputStream(new FileOutputStream(ruta));\n zout = new ZipOutputStream(bos);\n int i=0;\n //Hacemos visibles todos los componentes de las barras de progreso\n lblGeneral.setVisible(true);\n barraGeneral.setVisible(true);\n barra.setVisible(true);\n barra.setStringPainted(true);\n //ponemosd de color verde la barra\n barraGeneral.setForeground(Color.GREEN);\n //habilitamos el String del porcentaje\n barraGeneral.setStringPainted(true);\n //ponemos el valor Maximo de la barra\n barraGeneral.setMaximum((int)(pesoTotal/100));\n //ponemos el valor Minimo\n barraGeneral.setMinimum(0);\n //variable para el progreso de la barra General\n long leidoTotal=0;\n lbInfo.setHorizontalAlignment(JLabel.LEFT);\n for (String documento : documentos) {\n //creamos una nueva entrada/ducumento para el Zip\n ZipEntry ze = new ZipEntry(nombres.get(i));\n //agregamos la entrada al Zip\n zout.putNextEntry(ze);\n //obtenemos el archivo \n File arch=new File(documentos.get(i));\n //Indicamos cual archivo se esta comprimiendo\n lbInfo.setText(\"comprimiendo: \"+arch.getName());\n //obtenemos el tamaño del archivo\n long tamañoArch=arch.length();\n //ponemos el valor maximo de a la barra individual\n barra.setMaximum((int)(tamañoArch/100));\n //ponemos el valor minimo\n barra.setMinimum(0);\n //cambiamos el color de la barra\n barra.setForeground(Color.GREEN);\n barra.setValue(0);\n //creamos el Stream de entrada del archivo\n BufferedInputStream bis=new BufferedInputStream(new FileInputStream(documentos.get(i)));\n //tamaño de buffer para lectura del archivo\n byte[] info=new byte[4096];\n //variable para el progreso de la barra individual\n long leido=0;\n //Ciclo para lectura del archivo\n while(leido<tamañoArch)\n {\n //Verifica que se puedan leer otros 4KB \n if((leido+4096)<tamañoArch)\n {\n //leemos 4KB del Archivo\n bis.read(info);\n //agregamos los 4KB a las variables de progreso\n leido+=4096;\n leidoTotal+=4096;\n }\n else\n {\n //si no se puede leer 4KB lee el resto del archivo\n int resto=(int)(tamañoArch-leido);\n //damos el tamaño al arreglo\n info=new byte[resto];\n //leemos el resto del archivo\n bis.read(info);\n //agregamos el resto del a las variables de progreso\n leido+=resto;\n leidoTotal+=resto;\n }\n //escribimos en el archivo Zip\n zout.write(info);\n //ponemos el valor en la barra individual\n barra.setValue((int)(leido/100));\n //ponemos el valor en la barra general\n barraGeneral.setValue((int)(leidoTotal/100));\n }\n //cerramos la escritura a la entradadel Zip\n zout.closeEntry();\n //aumentamos el valor del contador\n i++;\n }\n //cerramos la escritura al archivo Zip\n zout.close();\n } catch (FileNotFoundException ex) {\n Logger.getLogger(EnviarArchivo.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(EnviarArchivo.class.getName()).log(Level.SEVERE, null, ex);\n } \n //verificamos que tipo de envio se selecciono\n if(rbtnSimultaneo.isSelected())\n {\n //orden para archivos simultaneos y envios individuales\n orden.enviarArchivoSimultaneo(ruta,ip);\n }\n else\n {\n //orden para envio Secuencial\n orden.envioArchivoSecuencial(ruta);\n }\n //llamamos el metodo cerrar para cerrar la ventana\n cerrar();\n }",
"public void saveData() {\n\t\t//place to save notes e.g to file\n\t}",
"public abstract boolean moveToArchive(K id) throws ServiceException;",
"void saveFrom(String key, InputStream stream);",
"public void setZip(String zip);",
"protected void writeData(OutputStream out) throws IOException {\r\n out.write(content);\r\n }",
"private void addFilesToZip(List<File> files,String outputPath) throws IOException \r\n\t{\r\n\t\t// create a zip output stream\r\n\t\tString zipFileName = outputPath + File.separator + Constants.name + zipIndex + Constants.zipExtension;\r\n\t\tOutputStreamWithLength chunkedFile = new OutputStreamWithLength(zipFileName);\r\n\t\tzipOutputStream = new ZipOutputStream(chunkedFile);\r\n\t\tdouble totalBytesRead = 0L;\r\n\t\tint count = 10; \r\n\t\tfor(File file:files)\r\n\t\t{\r\n\t\t\t// reset the file index\r\n\t\t\tfileIndex = 0;\r\n\t\t\tString zipEntryPath = file.getAbsolutePath().substring(basePath.length() + 0);\r\n\t\t\t\r\n\t\t\tif(file.isDirectory())\r\n\t\t\t{\r\n\t\t\t\tZipEntry entry =new ZipEntry(zipEntryPath+\"/\");\r\n\t\t\t\tzipOutputStream.putNextEntry(entry);\r\n\t\t\t\tzipOutputStream.closeEntry();\r\n\t\t\t\tcontinue;\r\n\t\t\t}\t\t\t\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tzipEntryPath = zipEntryPath + Constants.fragmentLabel + fileIndex++;\r\n\t\t\t}\t\t\t\r\n\r\n\t\t\t// add the current file to the zip\r\n\t\t\tZipEntry entry =new ZipEntry(zipEntryPath);\r\n\t\t\tzipOutputStream.putNextEntry(entry);\r\n\r\n\t\t\tbyte[] buffer = new byte[1024]; \t \r\n\r\n\t\t\tFileInputStream inputFileStream = new FileInputStream(file);\r\n\t\t\tint len; \r\n\t\t\twhile ((len = inputFileStream.read(buffer)) > 0) \r\n\t\t\t{ \r\n\t\t\t\tif((chunkedFile.getCurrentWriteLength() + len ) > maxSplitSize){\r\n\t\t\t\t\t// close current zip output stream\r\n\t\t\t\t\tzipOutputStream.closeEntry();\r\n\t\t\t\t\tzipOutputStream.finish();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// reset the write length\r\n\t\t\t\t\tchunkedFile.setCurrentWriteLength(0);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// create new zip output stream\r\n\t\t\t\t\tzipIndex += 1;\r\n\t\t\t\t\tzipFileName = outputPath+ File.separator + Constants.name + zipIndex + Constants.zipExtension;\r\n\t\t\t\t\tchunkedFile = new OutputStreamWithLength(zipFileName);\r\n\t\t\t\t\tzipOutputStream = new ZipOutputStream(chunkedFile);\r\n\r\n\t\t\t\t\t// add the current file to write remaining bytes\r\n\t\t\t\t\tzipEntryPath = file.getAbsolutePath().substring(basePath.length() + 0);\r\n\t\t\t\t\tzipEntryPath = zipEntryPath + Constants.fragmentLabel + fileIndex++;\r\n\t\t\t\t\tentry = new ZipEntry(zipEntryPath);\r\n\t\t\t\t\tzipOutputStream.putNextEntry(entry);\r\n\r\n\t\t\t\t\t// write the bytes to the zip output stream\r\n\t\t\t\t\tzipOutputStream.write(buffer, 0, len);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t// write the bytes to the zip output stream\r\n\t\t\t\t\tzipOutputStream.write(buffer, 0, len);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Show progress\r\n\t\t\t\ttotalBytesRead += len;\r\n\t\t\t\tdouble progress = totalBytesRead / totalBytes;\r\n\t\t\t\tif (progress*100 > 10)\r\n\t\t\t\t{\r\n\t\t\t\t\ttotalBytesRead = 0L;\r\n\t\t\t\t\tcount += 10;\r\n\t\t\t\t\tSystem.out.println(\"Finished \" + count +\"%\");\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\t\t\t\r\n\t\t\tinputFileStream.close();\r\n\t\t}\r\n\r\n\t\tzipOutputStream.closeEntry();\r\n\t\tzipOutputStream.finish();\r\n\t}",
"private static File createTempFile(final byte[] data) throws IOException {\r\n \t// Genera el archivo zip temporal a partir del InputStream de entrada\r\n final File zipFile = File.createTempFile(\"sign\", \".zip\"); //$NON-NLS-1$ //$NON-NLS-2$\r\n final FileOutputStream fos = new FileOutputStream(zipFile);\r\n\r\n fos.write(data);\r\n fos.flush();\r\n fos.close();\r\n\r\n return zipFile;\r\n }",
"public void saveArchive() throws FileNotFoundException {\n jsonWriter.open();\n Archive archive = new Archive(cameraCollection, filmCollection);\n jsonWriter.write(archive);\n jsonWriter.close();\n }",
"void onUnzipCompleted(String output);",
"public void setZip(String s) {\r\n\t\tzip = s;\t\r\n\t}",
"void generateContent(OutputStream output) throws Exception;",
"public void save() \n throws IOException \n {\n File tickDir = new File(TextUtil.expand(TICKS_DIR));\n\n File tickFile = getTickFile(mExport);\n if (!mTicks.isEmpty() \n || (tickFile.exists() && !tickFile.getParentFile().equals(tickDir))) \n {\n tickFile.getParentFile().mkdirs();\n \n ZipOutputStream zip = new ZipOutputStream(new FileOutputStream(tickFile));\n try {\n String basename = mFile.getName();\n // file\n {\n ZipEntry fileEntry = new ZipEntry(basename);\n zip.putNextEntry(fileEntry);\n zip.write(mText.getBytes());\n zip.closeEntry();\n } \n // ticks\n {\n ZipEntry tickEntry = new ZipEntry(basename + TickConstants.TICK_ENTRY_EXT);\n zip.putNextEntry(tickEntry);\n zip.write(saveTicks());\n zip.closeEntry();\n }\n } finally {\n FileUtil.close(zip);\n }\n } else {\n tickFile.delete();\n }\n }",
"protected void attachFile(final File source, final String name) {\n try {\n final ZipEntry ze = new ZipEntry(name);\n _zip.putNextEntry(ze);\n final byte[] buffer = new byte[4096];\n try (FileInputStream in = new FileInputStream(source)) {\n int bytes;\n while ((bytes = in.read(buffer)) > 0) {\n _zip.write(buffer, 0, bytes);\n }\n }\n _zip.closeEntry();\n } catch (final IOException e) {\n throw new OpenGammaRuntimeException(\"Couldn't write \" + name + \" to ZIP file\", e);\n }\n }",
"private void zipActionListener( View v ) {\n SharedPreferences sp = Objects.requireNonNull( this.getContext() ).getSharedPreferences( Weather_Preference, 0 );\n SharedPreferences.Editor e = sp.edit();\n home.stopGPS();\n String inputZip = mZipView.getText().toString();\n if ( !inputZip.isEmpty() ) {\n if ( inputZip.length() > 4 ) {\n try {\n Integer.parseInt( inputZip );\n e.putString( ZIP_KEY, mZipView.getText().toString() );\n Toast.makeText( home, \"Zip Code Applied\\n\" + inputZip, Toast.LENGTH_SHORT ).show();\n\n } catch ( Exception except ) {\n Log.e( \"LOCATION INPUT INVALID\", \"[Settings Fragment]\" + String.valueOf( except ) );\n mZipView.setError( \"Invalid Postal Code!\" );\n }\n } else {\n mZipView.setError( \"Zip code must be 5 or more digits\" );\n }\n } else {\n mZipView.setError( \"Enter a Zip Code\" );\n }\n e.apply();\n }",
"public void save(Cacheable[] data) throws IOException, NullPointerException {\n validate(data);\n\n // write the header\n writeHeader(data);\n\n // write the data\n writeData(data);\n\n // close the file\n close();\n }",
"public void flush()\r\n {\r\n if ( content != null )\r\n {\r\n content.flush();\r\n }\r\n }",
"private static void createZipOrXmlFile(Document createdDocument) {\n if(attachmentList.size() > 0){\n File zipFile = new File(OUTPUT_ZIP_PATH);\n ZipOutputStream zipOutputStream = null;\n String fileName;\n byte[] decoded;\n\n try {\n zipOutputStream = new ZipOutputStream(new FileOutputStream(zipFile));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n for (Attachment attachment : attachmentList) {\n try {\n //create a new zip entry\n //add the zip entry and write the decoded data\n assert zipOutputStream != null;\n fileName = attachment.filename;\n decoded = attachment.data;\n ZipEntry imageOutputStream = new ZipEntry(ImportUtils.PHOTO_FILE_PATH + fileName);\n zipOutputStream.putNextEntry(imageOutputStream);\n zipOutputStream.write(decoded);\n\n } catch (IllegalArgumentException | IOException e) {\n e.printStackTrace();\n }\n }\n //add the xml after the attachments have been added\n ZipEntry xmlOutputStream = new ZipEntry(ImportUtils.GENERATED_XML_FILENAME);\n try {\n zipOutputStream.putNextEntry(xmlOutputStream);\n zipOutputStream.write(Entry.toBytes(createdDocument));\n //closing the stream\n //! not closing the stream can result in malformed zip files\n zipOutputStream.finish();\n zipOutputStream.flush();\n zipOutputStream.closeEntry();\n } catch (IOException e) {\n e.printStackTrace();\n\n }\n }else{\n //if no attachments found\n // add the xml file only\n OutputFormat format = OutputFormat.createPrettyPrint();\n try {\n OutputStream outputStream = new FileOutputStream(OUTPUT_XML_PATH);\n XMLWriter writer = new XMLWriter(outputStream, format);\n writer.write(createdDocument);\n } catch (IOException e ) {\n e.printStackTrace();\n }\n }\n }",
"private void grabarArchivo() {\n\t\tPrintWriter salida;\n\t\ttry {\n\t\t\tsalida = new PrintWriter(new FileWriter(super.salida));\n\t\t\tsalida.println(this.aDevolver);\n\t\t\tsalida.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void putEphemeral(String content, String remotePath) throws Exception\r\n {\r\n\r\n if (cf.checkExists().forPath(remotePath) != null)\r\n cf.setData().forPath(remotePath, content.getBytes());\r\n else {\r\n cf.create().creatingParentsIfNeeded().withMode(CreateMode.EPHEMERAL).forPath(remotePath, content.getBytes());\r\n }\r\n }",
"String store(InputStream is, String name, Properties meta) throws AlreadyExistentException, IOException;",
"void perform(Transaction tx,\n String userPrincipal,\n FedoraId fedoraId,\n String filename,\n String contentType,\n Collection<URI> digests,\n InputStream contentBody,\n long size,\n ExternalContent externalContent);",
"protected File createObjectArchive(String format, String jobId, JSONObject jobObject, String database, String collection, String query) throws IOException {\n\t\tFile archive = File.createTempFile(jobId, \".zip.tmp\");\n\t\tFileOutputStream fos = null;\n\t\tZipOutputStream zos = null;\n\n\t\t// try to add to the archive\n\t\ttry {\n\t\t\tfos = new FileOutputStream(archive);\n\t\t\tzos = new ZipOutputStream(fos);\n\t\t\tlogger.debug(String.format(\" [%s] Archive file: %s\", jobId, archive.getAbsolutePath()));\n\n\t\t\tint cursor = 0;\n\t\t\tint archived = 0;\n\n\t\t\tJSONObject initialJson = ObjectHelper.getInstance(authorizationHeader).search(query, database, collection, 0, 1);\n\t\t\tint total = initialJson.getInt(\"total\");\n\t\t\twhile(cursor < total) {\n\t\t\t\tJSONObject json = ObjectHelper.getInstance(authorizationHeader).search(query, database, collection, cursor, objectBatchSize);\n\t\t\t\tJSONArray items = json.getJSONArray(\"items\");\n\n\t\t\t\tfor (int i = 0; i < items.length(); i++) {\n\t\t\t\t\t// Get the item\n\t\t\t\t\tJSONObject item = items.getJSONObject(i);\n\t\t\t\t\t// Get the data to output\n\t\t\t\t\tString output = item.toString();\n\t\t\t\t\tif (\"xml\".equalsIgnoreCase(format))\n\t\t\t\t\toutput = XML.toString(new JSONObject(output.replaceAll(\"\\\\$\", \"\")), \"source\");\n\t\t\t\t\t// Define the filename\n\t\t\t\t\tString filename = item.getJSONObject(\"_id\").getString(\"$oid\") + \".\" + format;\n\t\t\t\t\t// Create a new entry in the zip file\n\t\t\t\t\tZipEntry ze = new ZipEntry(filename);\n\t\t\t\t\tzos.putNextEntry(ze);\n\t\t\t\t\tzos.write(output.getBytes());\n\t\t\t\t\tzos.closeEntry();\n\n\t\t\t\t\tarchived += 1;\n\t\t\t\t}\n\n\t\t\t\tlogger.debug(String.format(\" [%s] Archived items: %5d / %5d\", jobId, archived, total));\n\n\t\t\t\t// update the cursor\n\t\t\t\tcursor += objectBatchSize;\n\n\t\t\t\t// Update progress\n\t\t\t\tjobObject.put(\"progress\", PROGRESS_REQUESTINGDATA * cursor / total);\n\t\t\t\tObjectHelper.getInstance(authorizationHeader).updateObject(jobId, jobObject);\n\t\t\t}\n\n\t\t\tlogger.debug(String.format(\" [%s] ... Archiving completed: %s\", jobId, archive.getAbsolutePath()));\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e);\n\t\t} finally {\n\t\t\tif (zos != null)\n\t\t\t\tzos.close();\n\t\t\tif (fos != null)\n\t\t\t\tfos.close();\n\t\t}\n\n\t\treturn archive;\n\t}",
"public void setContent (ByteArray data ,boolean doCompress =true ){\r\n\t\t\tif(data != null && data.length > 0) {\r\n\t\t\t\tdata.position = 0;\r\n\t\t\t\tdata.readBytes(_content, 0, data.length());\r\n\t\t\t\t_crc32 = ChecksumUtil.CRC32(_content);\r\n\t\t\t\t_hasAdler32 = false;\r\n\t\t\t} else {\r\n\t\t\t\t_content.length = 0;\r\n\t\t\t\t_content.position = 0;\r\n\t\t\t\tisCompressed = false;\r\n\t\t\t}\r\n\t\t\tif(doCompress) {\r\n\t\t\t\tcompress();\r\n\t\t\t} else {\r\n\t\t\t\t_sizeUncompressed = _sizeCompressed = _content.length;\r\n\t\t\t}\r\n\t\t}",
"private static void createZipArchiv(String xmlStream, String path, String name) {\r\n\t\ttry {\r\n\t\t\tFile file = new File(path, name + \".xml\");\r\n\t\t\tif (!file.exists()) {\r\n\t\t\t\tfile.createNewFile();\r\n\t\t\t}\r\n\t\t\t//XMLStream in Datei schreiben\r\n\t\t\tPrintWriter writer = new PrintWriter(file);\r\n\t\t\twriter.write(xmlStream);\r\n\t\t\twriter.close();\r\n\t\t\t\r\n\t\t\t//Commando für die Shell um ein Tgz zu erstellen.\r\n\t\t\tString[] str = new String[] {\r\n\t\t\t\t\t\"/bin/bash\",\r\n\t\t\t\t\t\"-c\",\r\n\t\t\t\t\t\"tar cfvz \" + path + \"/\" + name + \".tgz -C \" + path + \" \" + name\r\n\t\t\t\t\t\t\t+ \".xml -C \" + path + \" \" + name + \".pdf\" };\r\n\r\n\t\t\t//Shell Aufruf\r\n\t\t\tProcess p = Runtime.getRuntime().exec(str);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tint timeout = 10;\r\n\t\t\twhile (!new File(path + name + \".tgz\").exists() && timeout != 0) {\r\n\t\t\t\t//warten bis Datei erstellt wurde oder 10 sec vergangen sind\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttimeout--;\r\n\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void addToJar(String name, InputStream content, IProgressMonitor monitor) throws JarException\n\t{\n\t\tIPath fullPath = new Path(name);\n\t\tif (!ResourceUtils.isValidPath(fullPath.makeAbsolute().toString(), IResource.FILE))\n\t\t{\n\t\t\tthrow new JarException(\"The name of the file to add is not a valid path\"); //$NON-NLS-1$\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tJarEntry entry;\n\t\t\tString[] seg = fullPath.segments();\n\t\t\tString destPath = \"\"; //$NON-NLS-1$\n\n\t\t\tfor (int i = 0; i < seg.length - 1; i++)\n\t\t\t{\n\t\t\t\tdestPath += seg[i] + \"/\"; //$NON-NLS-1$\n\t\t\t\tentry = new JarEntry(destPath);\n\t\t\t\tif (!entryList.contains(entry.getName()))\n\t\t\t\t{\n\t\t\t\t\tjarStream.putNextEntry(entry);\n\t\t\t\t\tjarStream.flush();\n\t\t\t\t\tjarStream.closeEntry();\n\t\t\t\t\tentryList.add(entry.getName());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// read the content input stream\n\t\t\tbyte[] buffer = new byte[BUFFER_SIZE];\n\t\t\tint byteNr;\n\t\t\t// last segment,the file\n\t\t\tdestPath += fullPath.lastSegment();\n\t\t\tentry = new JarEntry(destPath);\n\t\t\tjarStream.putNextEntry(entry);\n\t\t\tString fileName = fullPath.lastSegment().toString();\n\t\t\tif (monitor != null)\n\t\t\t{\n\t\t\t\tmonitor.beginTask(\"Adding file \" + fileName, content.available()); //$NON-NLS-1$\n\t\t\t}\n\t\t\twhile ((byteNr = content.read(buffer, 0, BUFFER_SIZE)) != -1)\n\t\t\t{\n\t\t\t\tif (monitor != null && monitor.isCanceled())\n\t\t\t\t{\n\t\t\t\t\tthrow (JarException) new JarException().initCause(new OperationCanceledException());\n\t\t\t\t}\n\t\t\t\tjarStream.write(buffer, 0, byteNr);\n\t\t\t\tif (monitor != null)\n\t\t\t\t{\n\t\t\t\t\tmonitor.worked(byteNr);\n\t\t\t\t}\n\t\t\t}\n\t\t\tjarStream.flush();\n\t\t\tjarStream.closeEntry();\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\tthrow (JarException) new JarException().initCause(e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif (monitor != null)\n\t\t\t{\n\t\t\t\tmonitor.done();\n\t\t\t}\n\t\t}\n\t}",
"public void save() {\r\n File distDataFile = new File(path);\r\n\r\n //String basePath = path;\r\n String endOfPath = path.substring(path.lastIndexOf(\"/\"));\r\n\r\n File rootDataFile;\r\n if (!path.contains(\"artists\")) {\r\n rootDataFile = new File(BASEDIR + \"/resources/data\" + endOfPath);\r\n } else {\r\n rootDataFile = new File(BASEDIR + \"/resources/data/artists\" + endOfPath);\r\n }\r\n\r\n File distTempFile = new File(path.substring(0, path.lastIndexOf(\"/\")) + \"/myTempFile.txt\");\r\n\r\n File rootTempFile;\r\n if (!path.contains(\"artists\")) {\r\n rootTempFile = new File(BASEDIR + \"/resources/data/myTempFile.txt\");\r\n } else {\r\n rootTempFile = new File(BASEDIR + \"/resources/data/artists/myTempFile.txt\");\r\n }\r\n \r\n try {\r\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(\r\n new FileOutputStream(distTempFile), \"UTF-8\"));\r\n\r\n for (String line : data) {\r\n bw.write(line);\r\n bw.newLine();\r\n }\r\n\r\n bw.close();\r\n distDataFile.delete();\r\n distTempFile.renameTo(distDataFile);\r\n\r\n BufferedWriter bw2 = new BufferedWriter(new OutputStreamWriter(\r\n new FileOutputStream(rootTempFile), \"UTF-8\"));\r\n\r\n for (String line : data) {\r\n bw2.write(line);\r\n bw2.newLine();\r\n }\r\n\r\n bw2.close();\r\n rootDataFile.delete();\r\n rootTempFile.renameTo(rootDataFile);\r\n } catch (IOException ex) {\r\n System.out.println(\"IOExceptoin in save1 : FileData\");\r\n }\r\n }",
"public void respaldo() {\n if (seleccionados != null && seleccionados.length > 0) {\n ZipOutputStream salidaZip; //Donde va a quedar el archivo zip\n\n File file = new File(FacesContext.getCurrentInstance()\n .getExternalContext()\n .getRealPath(\"/temporales/\") + archivoRespaldo + \".zip\");\n\n try {\n salidaZip\n = new ZipOutputStream(new FileOutputStream(file));\n ZipEntry entradaZip;\n\n for (String s : seleccionados) {\n if (s.contains(\"Paises\")) {\n\n entradaZip = new ZipEntry(\"paises.json\");\n salidaZip.putNextEntry(entradaZip);\n byte data[]\n = PaisGestion.generaJson().getBytes();\n salidaZip.write(data, 0, data.length);\n salidaZip.closeEntry();\n }\n }\n salidaZip.close();\n\n // Descargar el archivo zip\n //Se carga el zip en un arreglo de bytes...\n byte[] zip = Files.readAllBytes(file.toPath());\n\n //Generar la página de respuesta...\n HttpServletResponse respuesta\n = (HttpServletResponse) FacesContext\n .getCurrentInstance()\n .getExternalContext()\n .getResponse();\n\n ServletOutputStream salida\n = respuesta.getOutputStream();\n\n //Defino los encabezados de la página de respuesta\n respuesta.setContentType(\"application/zip\");\n respuesta.setHeader(\"Content-Disposition\",\n \"attachement; filename=\" + archivoRespaldo + \".zip\");\n\n salida.write(zip);\n salida.flush();\n\n //Todo listo\n FacesContext.getCurrentInstance().responseComplete();\n file.delete();\n } catch (FileNotFoundException ex) {\n Logger.getLogger(RespaldoController.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(RespaldoController.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }\n\n }",
"@Override\n\tpublic String store(InputStream inputStream, String fileName) {\n\t\treturn null;\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tFile LogFolder=new File(\"/sdcard/network_log\");\r\n\t\t\t\tif(!LogFolder.exists())\r\n\t\t\t\t{\r\n\t\t\t\t\t//not exist\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tFile[] LogList=LogFolder.listFiles();\r\n\t\t\t\t\tFile tempFolder=new File(\"/sdcard/.network_log_temp\");\r\n\t\t\t\t\tif(tempFolder.exists())\r\n\t\t\t\t\t\ttempFolder.delete();\r\n\t\t\t\t\ttempFolder.mkdir();\r\n\t\t\t\t\tFile tempZip=new File(\"/sdcard/.network_log_temp/temp.zip\");\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\ttempZip.createNewFile();\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString[] srcFilePath=new String[LogList.length];\r\n\t\t\t\t\tfor(int i=0;i<LogList.length;i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsrcFilePath[i]=LogList[i].getAbsolutePath();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString desFilePath=tempZip.getAbsolutePath();\r\n\t\t\t\t\t\r\n\t\t\t\t\tZipCompressor zc=new ZipCompressor();\r\n\t\t\t\t\tzc.zipCompress(srcFilePath, desFilePath);\r\n\t\t\t\t\t\r\n\t\t\t\t\tUploader ul=new Uploader(tempZip);\r\n\t\t\t\t\tul.start();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}",
"public static void store() {\r\n//\t\tSystem.out.println(\"mar\"+readMAR().getStr());\r\n\t\tString mar = new String(readMAR().getStr());\r\n\t\tTraceINF.write(\"Write memory \"+mar);\r\n\t\tFormatstr content = new Formatstr();\r\n\t\t\r\n\t\tcontent = readMBR();\r\n\t\tgetBank(mar)[Integer.parseInt(mar.substring(0, mar.length() - 2), 2)] = content.getStr();\r\n\t\tTraceINF.write(\"Write finished.\");\r\n\t}",
"public void setArchiver(String sArchiver);",
"private void updateFile() {\n try {\n this.taskStorage.save(this.taskList);\n this.aliasStorage.save(this.parser);\n } catch (IOException e) {\n System.out.println(\"Master i am unable to save the file!\");\n }\n }",
"private static void zipFolder(ZipOutputStream out, File folder) throws IOException {\n\n final int BUFFER = 2048;\n\n File[] fileList = folder.listFiles();\n BufferedInputStream origin;\n\n for (File file : fileList) {\n if (file.isDirectory()) {\n zipFolder(out, file);\n } else {\n byte data[] = new byte[BUFFER];\n\n String unmodifiedFilePath = file.getPath();\n FileInputStream fi = new FileInputStream(unmodifiedFilePath);\n\n origin = new BufferedInputStream(fi, BUFFER);\n ZipEntry entry = new ZipEntry(file.getName());\n\n out.putNextEntry(entry);\n\n int count;\n while ((count = origin.read(data, 0, BUFFER)) != -1) {\n out.write(data, 0, count);\n }\n\n out.closeEntry();\n origin.close();\n }\n }\n\n // Finish the zip stream and close it\n out.finish();\n out.close();\n }"
] | [
"0.6361827",
"0.5738215",
"0.5727646",
"0.55008113",
"0.54476136",
"0.5378546",
"0.5373098",
"0.52861434",
"0.5238124",
"0.5182399",
"0.5056666",
"0.5032724",
"0.49996433",
"0.499212",
"0.49816284",
"0.49781796",
"0.49723515",
"0.4971199",
"0.49403712",
"0.4928753",
"0.48988727",
"0.48700577",
"0.4862425",
"0.48603052",
"0.4851068",
"0.48487622",
"0.4846922",
"0.48426104",
"0.483462",
"0.480644",
"0.47709242",
"0.47608775",
"0.47583959",
"0.47462404",
"0.4740354",
"0.4735629",
"0.4730718",
"0.472884",
"0.47279748",
"0.47064966",
"0.4692986",
"0.46816096",
"0.46799862",
"0.46722552",
"0.4668856",
"0.46624017",
"0.46539262",
"0.46468207",
"0.4640249",
"0.46292403",
"0.4628069",
"0.4627389",
"0.46180755",
"0.46158233",
"0.45868835",
"0.45762214",
"0.45613346",
"0.45560285",
"0.45444992",
"0.45440307",
"0.45426187",
"0.4540169",
"0.44963822",
"0.44959417",
"0.44799647",
"0.44744307",
"0.44728395",
"0.44714043",
"0.44705856",
"0.44702742",
"0.44700074",
"0.44640082",
"0.44559708",
"0.4451982",
"0.44517297",
"0.4447164",
"0.44454968",
"0.44451088",
"0.4419058",
"0.4416729",
"0.44061607",
"0.44014755",
"0.43992573",
"0.43894428",
"0.4383871",
"0.4380401",
"0.43788865",
"0.43706864",
"0.43693045",
"0.43661708",
"0.4357686",
"0.43576726",
"0.43523636",
"0.43461972",
"0.43435776",
"0.4343103",
"0.43409535",
"0.4340085",
"0.43342608",
"0.4332998"
] | 0.6061013 | 1 |
TODO Autogenerated method stub | private void initView(View subview) {
lay_one = (ImageView) subview.findViewById(R.id.green);
lay_four = (ImageView) subview.findViewById(R.id.yelow);
lay_two = (ImageView) subview.findViewById(R.id.good);
lay_five = (ImageView) subview.findViewById(R.id.red_smiley);
lay_three = (ImageView) subview.findViewById(R.id.average);
lay_one.setOnClickListener(this);
lay_three.setOnClickListener(this);
lay_two.setOnClickListener(this);
lay_five.setOnClickListener(this);
lay_four.setOnClickListener(this);
} | {
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
] | 0.0 | -1 |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof Pessoa)) {
return false;
}
Pessoa other = (Pessoa) object;
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void setId(int id) { this.id = id; }",
"public void setId(int id) { this.id = id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public void setId(long id) { this.id = id; }",
"public void setId(long id) { this.id = id; }",
"public int getId(){ return id; }",
"public int getId() {return id;}",
"public int getId() {return Id;}",
"public int getId(){return id;}",
"public void setId(long id) {\n id_ = id;\n }",
"private int getId() {\r\n\t\treturn id;\r\n\t}",
"public Integer getId(){return id;}",
"public int id() {return id;}",
"public long getId(){return this.id;}",
"public int getId(){\r\n return this.id;\r\n }",
"@Override public String getID() { return id;}",
"public Long id() { return this.id; }",
"public Integer getId() { return id; }",
"@Override\n\tpublic Integer getId() {\n return id;\n }",
"@Override\n public Long getId () {\n return id;\n }",
"@Override\n public long getId() {\n return id;\n }",
"public Long getId() {return id;}",
"public Long getId() {return id;}",
"public String getId(){return id;}",
"@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}",
"public Integer getId() { return this.id; }",
"@Override\r\n public int getId() {\n return id;\r\n }",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"public int getId() {\n return id;\n }",
"public long getId() { return _id; }",
"public int getId() {\n/* 35 */ return this.id;\n/* */ }",
"public long getId() { return id; }",
"public long getId() { return id; }",
"public void setId(Long id) \n {\n this.id = id;\n }",
"@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}",
"public void setId(String id) {\n this.id = id;\n }",
"@Override\n\tpublic void setId(Long id) {\n\t}",
"public Long getId() {\n return id;\n }",
"public long getId() { return this.id; }",
"public int getId()\n {\n return id;\n }",
"public void setId(int id){\r\n this.id = id;\r\n }",
"protected abstract String getId();",
"@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}",
"@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}",
"public int getID() {return id;}",
"public int getID() {return id;}",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public String getId() { return id; }",
"@Override\n public int getField(int id) {\n return 0;\n }",
"public int getId ()\r\n {\r\n return id;\r\n }",
"public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }",
"public int getId(){\r\n return localId;\r\n }",
"void setId(int id) {\n this.id = id;\n }",
"@Override\n public Integer getId() {\n return id;\n }",
"@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"@Override\n public int getId() {\n return id;\n }",
"@Override\n public int getId() {\n return id;\n }",
"public void setId(int id)\n {\n this.id=id;\n }",
"@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }",
"@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}",
"public int getId()\r\n {\r\n return id;\r\n }",
"public void setId(Long id){\n this.id = id;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"final protected int getId() {\n\t\treturn id;\n\t}",
"private void clearId() {\n \n id_ = 0;\n }",
"public abstract Long getId();",
"public void setId(Long id) \r\n {\r\n this.id = id;\r\n }",
"@Override\n public long getId() {\n return this.id;\n }",
"public String getId(){ return id.get(); }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }",
"public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }",
"public Long getId() \n {\n return id;\n }",
"@Override\n\tpublic void setId(int id) {\n\n\t}",
"public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }",
"@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}",
"public int getID(){\n return id;\n }",
"public int getId()\n {\n return id;\n }",
"public String getID(){\n return Id;\n }"
] | [
"0.6893787",
"0.68366045",
"0.67026585",
"0.66388494",
"0.66388494",
"0.6589572",
"0.65758747",
"0.65758747",
"0.6572052",
"0.6572052",
"0.6572052",
"0.6572052",
"0.6572052",
"0.6572052",
"0.6559372",
"0.6559372",
"0.65421206",
"0.65220076",
"0.65133774",
"0.64854103",
"0.64749634",
"0.64241725",
"0.64168566",
"0.64142627",
"0.6399827",
"0.63643193",
"0.6352449",
"0.63488746",
"0.6345266",
"0.6321806",
"0.63165253",
"0.62988985",
"0.6291085",
"0.6291085",
"0.62805444",
"0.62686265",
"0.6264033",
"0.62625295",
"0.62595963",
"0.6256943",
"0.62536603",
"0.6249114",
"0.6245025",
"0.6245025",
"0.6242035",
"0.62364405",
"0.62364405",
"0.62288916",
"0.62212294",
"0.62180007",
"0.62172735",
"0.62092906",
"0.6206283",
"0.6199069",
"0.61987513",
"0.6189847",
"0.61871225",
"0.61871225",
"0.6186348",
"0.6186348",
"0.6186348",
"0.6182737",
"0.61816216",
"0.6173104",
"0.6171653",
"0.61645716",
"0.61633086",
"0.61591727",
"0.61544365",
"0.61544365",
"0.61544365",
"0.61544365",
"0.61544365",
"0.61544365",
"0.61544365",
"0.61528987",
"0.61528987",
"0.61394805",
"0.613151",
"0.61258125",
"0.612514",
"0.6102972",
"0.6101492",
"0.6101492",
"0.61005366",
"0.6100385",
"0.61003613",
"0.60977095",
"0.60967696",
"0.6092432",
"0.6090152",
"0.6090152",
"0.6090105",
"0.60887915",
"0.608704",
"0.6073338",
"0.60700667",
"0.60683453",
"0.6068084",
"0.6067373",
"0.6066998"
] | 0.0 | -1 |
Description: FaultInfoJpa Author: DIYILIU Update: 20180509 17:09 | public interface FaultInfoJpa extends JpaRepository<FaultInfo, Long> {
FaultInfo findById(long id);
/*
@Query("select f from FaultInfo f where endTime is null or endTime < startTime")
List<FaultInfo> findByEndTimeIsNullOrEndTimeBeforeStartTime();
*/
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\t\tpublic void onFault(Throwable fault) {\n\t\t\t\t\r\n\t\t\t}",
"public Object getFaultDetail() {\n\treturn this.faultDetail;\n }",
"@Override\r\n\tpublic Fault getFaultById(int faultId) {\r\n\t\tString sql = \"SELECT * FROM \" + Constants.FAULT_TABLE_NAME + \" WHERE \" + Constants.FAULT_TABLE_ID_COLUMN + \"=\" + faultId;\r\n\t\treturn jdbcTemplate.query(sql, new ResultSetExtractor<Fault>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic Fault extractData(ResultSet rs) throws SQLException, DataAccessException {\r\n\t\t\t\tif (rs.next()) {\r\n\t\t\t\t\tFault fault = new Fault();\r\n\t\t\t\t\t\r\n\t\t\t\t\tfault.setIdFault(rs.getInt(Constants.FAULT_TABLE_ID_COLUMN));\r\n\t\t fault.setDateTime(rs.getDate(Constants.FAULT_TABLE_DATE_TIME_COLUMN));\r\n\t\t fault.setProductId(rs.getString(Constants.FAULT_TABLE_PRODUCT_ID_COLUMN));\r\n\t\t fault.setProductSerialNumber(rs.getString(Constants.FAULT_TABLE_SERIAL_NUMBER_COLUMN));\r\n\t\t fault.setClientName(rs.getString(Constants.FAULT_TABLE_CLIENT_NAME_COLUMN));\r\n\t\t fault.setClientStreet(rs.getString(Constants.FAULT_TABLE_CLIENT_STREET_COLUMN));\r\n\t\t fault.setClientPostalCode(rs.getString(Constants.FAULT_TABLE_CLIENT_POSTAL_CODE));\r\n\t\t fault.setClientPlace(rs.getString(Constants.FAULT_TABLE_CLIENT_PLACE_COLUMN));\r\n\t\t fault.setClientPhoneOne(rs.getString(Constants.FAULT_TABLE_CLIENT_PHONE_ONE_COLUMN));\r\n\t\t fault.setClientPhoneTwo(rs.getString(Constants.FAULT_TABLE_CLIENT_PHONE_TWO_COLUMN));\r\n\t\t fault.setClientEmail(rs.getString(Constants.FAULT_TABLE_CLIENT_EMAIL_COLUMN));\r\n\t\t fault.setFaultDescription(rs.getString(Constants.FAULT_TABLE_FAULT_DESCRIPTION_COLUMN));\r\n\t\t fault.setFaultNote(rs.getString(Constants.FAULT_TABLE_FAULT_NOTE_COLUMN));\r\n\t\t fault.setFaultIssuedTo(rs.getString(Constants.FAULT_TABLE_FAULT_ISSUED_TO_COLUMN));\r\n\t\t fault.setFaultIssuedBy(rs.getString(Constants.FAULT_TABLE_FAULT_ISSUED_BY_COLUMN));\r\n\t\t fault.setFaultType(rs.getString(Constants.FAULT_TABLE_FAULT_TYPE_COLUMN));\r\n\t\t fault.setFaultPriority(rs.getString(Constants.FAULT_TABLE_FAULT_PRIORITY_COLUMN));\r\n\t\t fault.setFaultLat(rs.getDouble(Constants.FAULT_TABLE_FAULT_FAULT_LAT));\r\n\t\t fault.setFaultLng(rs.getDouble(Constants.FAULT_TABLE_FAULT_FAULT_LNG));\r\n\t\t\t\t\t\r\n\t\t \r\n\t\t\t\t\treturn fault;\r\n\t\t\t\t}\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t}",
"void populateFaultTable()\n\t{\n\t\tm_faultTable.addAction(\"stop\"); //$NON-NLS-1$\n\t\tm_faultTable.addAction(\"print\"); //$NON-NLS-1$\n\n\t\t// the faults we support\n\t\tm_faultTable.add(InvalidTargetFault.name);\n\t\tm_faultTable.add(RecursionLimitFault.name);\n\t\tm_faultTable.add(InvalidWithFault.name);\n\t\tm_faultTable.add(ProtoLimitFault.name);\n\t\tm_faultTable.add(InvalidURLFault.name);\n\t\tm_faultTable.add(ExceptionFault.name);\n\t\tm_faultTable.add(StackUnderFlowFault.name);\n\t\tm_faultTable.add(DivideByZeroFault.name);\n\t\tm_faultTable.add(ScriptTimeoutFault.name);\n//\t\tm_faultTable.add(ConsoleErrorFault.name);\n\n\t\t// nice description of the faults\n\t\tm_faultTable.putDescription(InvalidTargetFault.name, getLocalizationManager().getLocalizedTextString(\"invalidTargetFault\")); //$NON-NLS-1$\n\t\tm_faultTable.putDescription(RecursionLimitFault.name, getLocalizationManager().getLocalizedTextString(\"recursionLimitFault\")); //$NON-NLS-1$\n\t\tm_faultTable.putDescription(InvalidWithFault.name, getLocalizationManager().getLocalizedTextString(\"invalidWithFault\")); //$NON-NLS-1$\n\t\tm_faultTable.putDescription(ProtoLimitFault.name, getLocalizationManager().getLocalizedTextString(\"protoLimitFault\")); //$NON-NLS-1$\n\t\tm_faultTable.putDescription(InvalidURLFault.name, getLocalizationManager().getLocalizedTextString(\"invalidUrlFault\")); //$NON-NLS-1$\n\t\tm_faultTable.putDescription(ExceptionFault.name, getLocalizationManager().getLocalizedTextString(\"exceptionFault\")); //$NON-NLS-1$\n\t\tm_faultTable.putDescription(StackUnderFlowFault.name, getLocalizationManager().getLocalizedTextString(\"stackUnderflowFault\")); //$NON-NLS-1$\n\t\tm_faultTable.putDescription(DivideByZeroFault.name, getLocalizationManager().getLocalizedTextString(\"divideByZeroFault\")); //$NON-NLS-1$\n\t\tm_faultTable.putDescription(ScriptTimeoutFault.name, getLocalizationManager().getLocalizedTextString(\"scriptTimeoutFault\")); //$NON-NLS-1$\n//\t\tm_faultTable.putDescription(ConsoleErrorFault.name, \"ActionScript recoverable error\");\n\n\t\t// default values for the faults\n\t\tm_faultTable.action(InvalidTargetFault.name, \"stop\"); //$NON-NLS-1$\n\t\tm_faultTable.action(InvalidTargetFault.name, \"print\"); //$NON-NLS-1$\n\t\tm_faultTable.action(RecursionLimitFault.name, \"stop\"); //$NON-NLS-1$\n\t\tm_faultTable.action(RecursionLimitFault.name, \"print\"); //$NON-NLS-1$\n\t\tm_faultTable.action(InvalidWithFault.name, \"stop\"); //$NON-NLS-1$\n\t\tm_faultTable.action(InvalidWithFault.name, \"print\"); //$NON-NLS-1$\n\t\tm_faultTable.action(ProtoLimitFault.name, \"stop\"); //$NON-NLS-1$\n\t\tm_faultTable.action(ProtoLimitFault.name, \"print\"); //$NON-NLS-1$\n\t\tm_faultTable.action(InvalidURLFault.name, \"stop\"); //$NON-NLS-1$\n\t\tm_faultTable.action(InvalidURLFault.name, \"print\"); //$NON-NLS-1$\n\t\tm_faultTable.action(ExceptionFault.name, \"stop\"); //$NON-NLS-1$\n\t\tm_faultTable.action(ExceptionFault.name, \"print\"); //$NON-NLS-1$\n\t\tm_faultTable.action(StackUnderFlowFault.name, \"stop\"); //$NON-NLS-1$\n\t\tm_faultTable.action(StackUnderFlowFault.name, \"print\"); //$NON-NLS-1$\n\t\tm_faultTable.action(DivideByZeroFault.name, \"stop\"); //$NON-NLS-1$\n\t\tm_faultTable.action(DivideByZeroFault.name, \"print\"); //$NON-NLS-1$\n\t\tm_faultTable.action(ScriptTimeoutFault.name, \"stop\"); //$NON-NLS-1$\n\t\tm_faultTable.action(ScriptTimeoutFault.name, \"print\"); //$NON-NLS-1$\n//\t\tm_faultTable.action(ConsoleErrorFault.name, \"print\"); //$NON-NLS-1$\n//\t\tm_faultTable.action(ConsoleErrorFault.name, \"stop\"); //$NON-NLS-1$\n\t}",
"NamespacedProperty getFaultDetailExpression();",
"public SoapFaultInfo getFaultInfo()\r\n {\r\n return faultInfo;\r\n }",
"String getFaultStringValue();",
"public String getFaultMessage() {\n return faultMessage;\n }",
"String getFaultDetailValue();",
"com.microsoft.schemas.crm._2011.contracts.ArrayOfFaultType insertNewArrayOfFaultType(int i);",
"protected String getFaultName() {\n return mName;\n }",
"public String getFaultString() {\n return faultString;\n }",
"String getFaultReasonValue();",
"protected Element getFaultMessage() {\n return mElement;\n }",
"public LibraryWsFault getFaultInfo() {\n return fault;\n }",
"public QName getFaultDetailName() {\n\treturn this.faultDetailName;\n }",
"protected javax.wsdl.Fault getDefinedFault(ProcessInstance proc) {\n return (proc == null || getFaultName() == null) ? null \n : proc.getProcessDef().getInvocation().getOperation().getFault(getFaultName());\n }",
"@Override\r\n\tpublic void saveOrUpdate(Fault fault) {\r\n\r\n\t\t\r\n\t\tif(fault.getIdFault() > 0) {\r\n\t\t\t//update\r\n\t\t\t\r\n\t\t\tString sql = \"UPDATE \" + Constants.FAULT_TABLE_NAME + \" SET \"\r\n\t\t\t\t\t+ Constants.FAULT_TABLE_LAST_EDIT_COLUMN + \"=?, \"\r\n\t\t\t\t\t+ Constants.FAULT_TABLE_SERIAL_NUMBER_COLUMN + \"=?, \"\r\n\t\t\t\t\t+ Constants.FAULT_TABLE_PRODUCT_ID_COLUMN + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_NAME_COLUMN + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_STREET_COLUMN + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_POSTAL_CODE + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_PLACE_COLUMN + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_PHONE_ONE_COLUMN + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_PHONE_TWO_COLUMN + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_EMAIL_COLUMN + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_DESCRIPTION_COLUMN + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_NOTE_COLUMN + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_ISSUED_TO_COLUMN + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_ISSUED_BY_COLUMN + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_TYPE_COLUMN + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_PRIORITY_COLUMN + \"=? \"\r\n\t \t\t+ \"WHERE \" \r\n\t \t\t+ Constants.FAULT_TABLE_ID_COLUMN + \"=?\";\r\n\t \r\n\t\t\tjdbcTemplate.update(sql, \r\n\t\t\t\t\tfault.getLastEdit(),\r\n\t \t\tfault.getProductSerialNumber(),\r\n\t \t\tfault.getProductId(),\r\n\t \t\tfault.getClientName(), \r\n\t \t\tfault.getClientStreet(), \r\n\t \t\tfault.getClientPostalCode(),\r\n\t \t\tfault.getClientPlace(), \r\n\t \t\tfault.getClientPhoneOne(), \r\n\t \t\tfault.getClientPhoneTwo(), \r\n\t \t\tfault.getClientEmail(), \r\n\t \t\tfault.getFaultDescription(), \r\n\t \t\tfault.getFaultNote(), \r\n\t \t\tfault.getFaultIssuedTo(), \r\n\t \t\tfault.getFaultIssuedBy(),\r\n\t \t\tfault.getFaultType(), \r\n\t \t\tfault.getFaultPriority(),\r\n\t \t\tfault.getIdFault());\r\n\t \r\n\t\t}else {\r\n\t\t\t//insert\r\n\t\t\t\r\n\t\t\tString sql = \"INSERT INTO \" + Constants.FAULT_TABLE_NAME + \" (\"\r\n\t \t\t+ Constants.FAULT_TABLE_DATE_TIME_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_SERIAL_NUMBER_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_PRODUCT_ID_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_PRODUCT_TYPE_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_NAME_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_STREET_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_POSTAL_CODE + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_PLACE_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_PHONE_ONE_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_PHONE_TWO_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_EMAIL_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_DESCRIPTION_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_NOTE_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_ISSUED_TO_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_ISSUED_BY_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_TYPE_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_PRIORITY_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_STATUS_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_FAULT_LAT + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_FAULT_LNG + \")\"\r\n\t + \" VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\r\n\t \r\n\t\t\tjdbcTemplate.update(sql,\r\n\t \t\tfault.getDateTime(),\r\n\t \t\tfault.getProductSerialNumber(),\r\n\t \t\tfault.getProductId(), \r\n\t \t\tfault.getProductType(), \r\n\t \t\tfault.getClientName(), \r\n\t \t\tfault.getClientStreet(), \r\n\t \t\tfault.getClientPostalCode(),\r\n\t \t\tfault.getClientPlace(), \r\n\t \t\tfault.getClientPhoneOne(), \r\n\t \t\tfault.getClientPhoneTwo(), \r\n\t \t\tfault.getClientEmail(), \r\n\t \t\tfault.getFaultDescription(), \r\n\t \t\tfault.getFaultNote(), \r\n\t \t\tfault.getFaultIssuedTo(), \r\n\t \t\tfault.getFaultIssuedBy(),\r\n\t \t\tfault.getFaultType(), \r\n\t \t\tfault.getFaultPriority(),\r\n\t \t\tfault.getFaultStatus(),\r\n\t \t\tfault.getFaultLat(),\r\n\t \t\tfault.getFaultLng());\r\n\t\t}\r\n\t\t\r\n\t}",
"public interface FaultService\r\n{\r\n\t\r\n\t/**\r\n\t * Raise an exception based on the given exception/argument\r\n\t * @param e the thrown error\r\n\t * @param argument the processed argument\r\n\t * @return the wrapped exception\r\n\t * @throws FaultException the GEDI exception will be thrown\r\n\t */\r\n\tpublic FaultException raise(Throwable e, Object argument);\r\n\t\r\n\t\r\n\t/**\r\n\t * Raise an exception based on the given exception\r\n\t * @param e the thrown error\r\n\t * @return the wrapper exception\r\n\t * @throws FaultException the GEDI exception will be thrown\r\n\t */\r\n\tpublic FaultException raise(Throwable e);\r\n\t\r\n}",
"public String getFaultCode() {\n return faultCode;\n }",
"public java.util.Enumeration getFaultReport() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n return ejbRef().getFaultReport();\n }",
"com.microsoft.schemas.crm._2011.contracts.ArrayOfFaultType addNewArrayOfFaultType();",
"@Override\n public boolean handleFault(SOAPMessageContext smc) {\n return true;\n }",
"com.microsoft.schemas.crm._2011.contracts.ArrayOfFaultType getArrayOfFaultTypeArray(int i);",
"@Override\r\n\tpublic List<Fault> listToDoFaults() {\r\n\t\tString sql = \"SELECT * FROM \" + Constants.FAULT_TABLE_NAME + \" WHERE \" + Constants.FAULT_TABLE_FAULT_STATUS_COLUMN + \" = '\"+ Constants.FAULT_TABLE_TO_DO_STATUS +\"'\";\r\n\t List<Fault> faultsToDo = jdbcTemplate.query(sql, new RowMapper<Fault>() {\r\n\t \r\n\t @Override\r\n\t public Fault mapRow(ResultSet rs, int rowNum) throws SQLException {\r\n\t Fault faults = new Fault();\r\n\t \r\n\t faults.setIdFault(rs.getInt(Constants.FAULT_TABLE_ID_COLUMN));\r\n\t faults.setDateTime(rs.getDate(Constants.FAULT_TABLE_DATE_TIME_COLUMN));\r\n\t faults.setProductId(rs.getString(Constants.FAULT_TABLE_PRODUCT_ID_COLUMN));\r\n\t faults.setProductType(rs.getString(Constants.FAULT_TABLE_PRODUCT_TYPE_COLUMN));\r\n\t faults.setClientName(rs.getString(Constants.FAULT_TABLE_CLIENT_NAME_COLUMN));\r\n\t faults.setClientStreet(rs.getString(Constants.FAULT_TABLE_CLIENT_STREET_COLUMN));\r\n\t faults.setClientPostalCode(rs.getString(Constants.FAULT_TABLE_CLIENT_POSTAL_CODE));\r\n\t faults.setClientPlace(rs.getString(Constants.FAULT_TABLE_CLIENT_PLACE_COLUMN));\r\n\t faults.setClientPhoneOne(rs.getString(Constants.FAULT_TABLE_CLIENT_PHONE_ONE_COLUMN));\r\n\t faults.setClientPhoneTwo(rs.getString(Constants.FAULT_TABLE_CLIENT_PHONE_TWO_COLUMN));\r\n\t faults.setFaultDescription(rs.getString(Constants.FAULT_TABLE_FAULT_DESCRIPTION_COLUMN));\r\n\t faults.setFaultNote(rs.getString(Constants.FAULT_TABLE_FAULT_NOTE_COLUMN));\r\n\t faults.setFaultIssuedTo(rs.getString(Constants.FAULT_TABLE_FAULT_ISSUED_TO_COLUMN));\r\n\t faults.setFaultType(rs.getString(Constants.FAULT_TABLE_FAULT_TYPE_COLUMN));\r\n\t faults.setFaultPriority(rs.getString(Constants.FAULT_TABLE_FAULT_PRIORITY_COLUMN));\r\n\t faults.setFaultLat(rs.getDouble(Constants.FAULT_TABLE_FAULT_FAULT_LAT));\r\n\t faults.setFaultLng(rs.getDouble(Constants.FAULT_TABLE_FAULT_FAULT_LNG));\r\n\t \r\n\t return faults;\r\n\t }\r\n\t \r\n\t });\r\n\t \r\n\t return faultsToDo;\r\n\t\t\r\n\t}",
"public void faultsFound(String description) {\n if (status == 8) {\n status = 9;\n this.faultDescription = description;\n } else if (status == 10) {\n status = 12;\n this.faultDescription = description;\n }//END IF/ELSE\n }",
"@Override\r\n\tpublic boolean handleFault(SOAPMessageContext arg0) {\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic void archiveFault(int faultId) {\r\n\t\tString sql = \"UPDATE \" + Constants.FAULT_TABLE_NAME + \" SET \" + Constants.FAULT_TABLE_FAULT_STATUS_COLUMN + \"=? WHERE \" + Constants.FAULT_TABLE_ID_COLUMN + \"=?\";\r\n jdbcTemplate.update(sql, Constants.FAULT_TABLE_DONE_STATUS, faultId);\r\n\t}",
"public AdminServiceFacadeFault() {\n }",
"public interface IOprExceptionTypeService extends IBaseService<OprExceptionType, Long>{\r\n\r\n\t/**\r\n\t * 返回异常里面的节点数据SQL\r\n\t * @param map\r\n\t * @return\r\n\t * @throws Exception\r\n\t */\r\n\tpublic String getExceTypeNodeSql(Map<String, String> map) throws Exception;\r\n\t\r\n\t/*\r\n\tpublic String getExceptionTreeById(Long node);\r\n\t\r\n\tpublic Page getExceptionByParentId(Page page,Long id);\r\n\t\r\n\tpublic Page findAllException(Page page , List filter);\r\n\t\r\n\tpublic void saveExec(Long parentId,OprExceptionType oprExceptionType);*/\r\n}",
"public List<Class<?>> getSourceFaultTypes() {\n return faultTypes;\n }",
"com.microsoft.schemas.crm._2011.contracts.ArrayOfFaultType[] getArrayOfFaultTypeArray();",
"@Override\n public String toString() {\n return new ToStringBuilder(this)\n .append(\"faultCode\", faultCode)\n .append(\"faultString\", faultString)\n .toString();\n }",
"public void setFaultMessage(String faultMessage) {\n this.faultMessage = faultMessage;\n }",
"NamespacedProperty getFaultReasonExpression();",
"@Override\n\tpublic void handlerFault(String msg) {\n\t\tSystem.out.println(\"Emailing the error \" +msg);\n\t}",
"public FaultDetailException(QName faultDetailName, \n\t\t\t\tObject faultDetail) {\n\tthis.faultDetail = faultDetail;\n\tthis.faultDetailName = faultDetailName;\n }",
"@Override\r\n\tpublic List<Fault> listFaultsByServiceman (String serviceman) {\r\n\t\tString sql = \"SELECT * FROM \" + Constants.FAULT_TABLE_NAME + \" WHERE \" + Constants.FAULT_TABLE_FAULT_STATUS_COLUMN + \" = '\"+ Constants.FAULT_TABLE_TO_DO_STATUS +\"'\" + \" AND \" + \r\n\t\t\t\t\tConstants.FAULT_TABLE_FAULT_ISSUED_TO_COLUMN + \" = '\"+ serviceman +\"'\";\r\n\t List<Fault> faultsToDo = jdbcTemplate.query(sql, new RowMapper<Fault>() {\r\n\t \r\n\t @Override\r\n\t public Fault mapRow(ResultSet rs, int rowNum) throws SQLException {\r\n\t Fault faults = new Fault();\r\n\t \r\n\t faults.setIdFault(rs.getInt(Constants.FAULT_TABLE_ID_COLUMN));\r\n\t faults.setDateTime(rs.getDate(Constants.FAULT_TABLE_DATE_TIME_COLUMN));\r\n\t faults.setProductId(rs.getString(Constants.FAULT_TABLE_PRODUCT_ID_COLUMN));\r\n\t faults.setProductType(rs.getString(Constants.FAULT_TABLE_PRODUCT_TYPE_COLUMN));\r\n\t faults.setClientName(rs.getString(Constants.FAULT_TABLE_CLIENT_NAME_COLUMN));\r\n\t faults.setClientStreet(rs.getString(Constants.FAULT_TABLE_CLIENT_STREET_COLUMN));\r\n\t faults.setClientPostalCode(rs.getString(Constants.FAULT_TABLE_CLIENT_POSTAL_CODE));\r\n\t faults.setClientPlace(rs.getString(Constants.FAULT_TABLE_CLIENT_PLACE_COLUMN));\r\n\t faults.setClientPhoneOne(rs.getString(Constants.FAULT_TABLE_CLIENT_PHONE_ONE_COLUMN));\r\n\t faults.setClientPhoneTwo(rs.getString(Constants.FAULT_TABLE_CLIENT_PHONE_TWO_COLUMN));\r\n\t faults.setFaultDescription(rs.getString(Constants.FAULT_TABLE_FAULT_DESCRIPTION_COLUMN));\r\n\t faults.setFaultNote(rs.getString(Constants.FAULT_TABLE_FAULT_NOTE_COLUMN));\r\n\t faults.setFaultIssuedTo(rs.getString(Constants.FAULT_TABLE_FAULT_ISSUED_TO_COLUMN));\r\n\t faults.setFaultType(rs.getString(Constants.FAULT_TABLE_FAULT_TYPE_COLUMN));\r\n\t faults.setFaultPriority(rs.getString(Constants.FAULT_TABLE_FAULT_PRIORITY_COLUMN));\r\n\t faults.setFaultLat(rs.getDouble(Constants.FAULT_TABLE_FAULT_FAULT_LAT));\r\n\t faults.setFaultLng(rs.getDouble(Constants.FAULT_TABLE_FAULT_FAULT_LNG));\r\n\t \r\n\t return faults;\r\n\t }\r\n\t \r\n\t });\r\n\t \r\n\t return faultsToDo;\r\n\t\t\r\n\t}",
"public interface IAeFaultMatchingStrategy {\r\n /**\r\n * Select ths catch that is the best match for the given fault.\r\n *\r\n * @param aProvider\r\n * @param aIterOfCatches\r\n * @param aFault\r\n * @return IAeCatch or null. In the case of null, the catchAll or implicit fault handler will handle the fault.\r\n */\r\n public IAeCatch selectMatchingCatch(IAeContextWSDLProvider aProvider, Iterator aIterOfCatches, IAeFaultTypeInfo aFault);\r\n}",
"NamespacedProperty getFaultCodeExpression();",
"String getFaultActor();",
"public List<Map<String, Object>> ListFaultStatistics(Timestamp start, Timestamp end) {\n\t\treturn statisticsMapper.ListFaultStatistics(start,end);\n\t}",
"@Test\n public void testFaultSuperTypes() throws Exception {\n // InterfaceContract source = new MockContract(\"FooContract\");\n // DataType sourceFaultType = new DataTypeImpl<Type>(Exception.class,\n // Exception.class);\n // List<DataType> sourceFaultTypes = new ArrayList<DataType>();\n // sourceFaultTypes.add(0, sourceFaultType);\n // Operation opSource1 = newOperationImpl(\"op1\", null, null,\n // sourceFaultTypes, false, null);\n // Map<String, Operation> sourceOperations = new HashMap<String,\n // Operation>();\n // sourceOperations.put(\"op1\", opSource1);\n // source.getInterface().getOperations().addAll(sourceOperations.values());\n //\n // InterfaceContract target = new MockContract(\"FooContract\");\n // DataType targetFaultType = new\n // DataTypeImpl<Type>(TuscanyException.class, TuscanyException.class);\n // List<DataType> targetFaultTypes = new ArrayList<DataType>();\n // targetFaultTypes.add(0, targetFaultType);\n //\n // Operation opTarget = newOperationImpl(\"op1\", null, null,\n // targetFaultTypes, false, null);\n // Map<String, Operation> targetOperations = new HashMap<String,\n // Operation>();\n // targetOperations.put(\"op1\", opTarget);\n // target.getInterface().getOperations().addAll(targetOperations.values());\n // wireService.checkCompatibility(source, target, false);\n }",
"@Override\r\n\tpublic void deleteFault(int faultId) {\r\n\t\tString sql = \"DELETE FROM \" + Constants.FAULT_TABLE_NAME + \" WHERE \" + Constants.FAULT_TABLE_ID_COLUMN + \"=?\";\r\n\t jdbcTemplate.update(sql, faultId);\r\n\t}",
"public abstract void normalizeFault(Operation operation, String faultName, NormalizedMessage normMsg, DOMSource msgSource)\n throws MessagingException;",
"@Override\n\tpublic Map<String, Object> fingViolationCarInfo(String query) throws Exception {\n\t\treturn responsitory.fingViolationCarInfo(query);\n\t}",
"public List<Class<?>> getTargetFaultTypes() {\n return targetFaultTypes;\n }",
"public void objectCompletedWithFault(IAeFault aFault) throws AeBusinessProcessException;",
"@Override\n public MethodFault getExpectedMethodFault()\n {\n return new InvalidRequest();\n }",
"@Override\n public void loadEntityDetails() {\n \tsuper.loadEntityDetails();\n }",
"public List<Map<String, Object>> NewListFaultStatistics(Timestamp start, Timestamp end, int chainid) {\n\t\treturn statisticsMapper.NewListFaultStatistics(start,end,chainid);\n\t}",
"public int getFaultCode() {\n\t\treturn faultCode;\n\t}",
"void dumpFaultLine(FaultEvent e)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\t// use a slightly different format for ConsoleErrorFaults\n\t\tif (e instanceof ConsoleErrorFault)\n\t\t{\n\t\t\tsb.append(getLocalizationManager().getLocalizedTextString(\"linePrefixWhenDisplayingConsoleError\")); //$NON-NLS-1$\n\t\t\tsb.append(' ');\n\t\t\tsb.append(e.information);\n\n final String stackTrace = e.stackTrace();\n if (stackTrace != null && stackTrace.length() > 0) {\n sb.append(\"\\n\").append(stackTrace);\n }\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString name = e.name();\n\t\t\tsb.append(getLocalizationManager().getLocalizedTextString(\"linePrefixWhenDisplayingFault\")); //$NON-NLS-1$\n\t\t\tsb.append(' ');\n\t\t\tsb.append(name);\n\t\t\tif (e.information != null && e.information.length() > 0)\n\t\t\t{\n\t\t\t\tsb.append(getLocalizationManager().getLocalizedTextString(\"informationAboutFault\")); //$NON-NLS-1$\n\t\t\t\tsb.append(e.information);\n\t\t\t}\n\n final String stackTrace = e.stackTrace();\n if (stackTrace != null && stackTrace.length() > 0) {\n sb.append(\"\\n\").append(stackTrace);\n }\n\t\t}\n\t\tout( sb.toString() );\n\t}",
"public void addSourceFaultType(Class<?> type) {\n faultTypes.add(type);\n }",
"public AssertSoapFaultBuilder faultDetailResource(Resource resource) {\n return faultDetailResource(resource, FileUtils.getDefaultCharset());\n }",
"private static String getActionFromServiceModel(Message message,\n Exception fault) {\n String action = null;\n BindingOperationInfo bindingOpInfo =\n message.getExchange().get(BindingOperationInfo.class);\n if (bindingOpInfo != null) {\n if (bindingOpInfo.isUnwrappedCapable()) {\n bindingOpInfo = bindingOpInfo.getUnwrappedOperation();\n }\n if (fault == null) {\n action = (String) message.get(SoapBindingConstants.SOAP_ACTION);\n if (action == null) {\n SoapOperationInfo soi = \n bindingOpInfo.getExtensor(SoapOperationInfo.class);\n if (null != soi) {\n action = soi.getAction();\n }\n\n }\n if (action == null || \"\".equals(action)) {\n MessageInfo msgInfo = \n ContextUtils.isRequestor(message)\n ? bindingOpInfo.getOperationInfo().getInput()\n : bindingOpInfo.getOperationInfo().getOutput();\n String cachedAction = (String)msgInfo.getProperty(ACTION);\n if (cachedAction == null) {\n action = getActionFromMessageAttributes(msgInfo);\n } else {\n action = cachedAction;\n }\n }\n } else {\n Throwable t = fault.getCause();\n \n // FaultAction attribute is not defined in \n // http://www.w3.org/2005/02/addressing/wsdl schema\n for (BindingFaultInfo bfi : bindingOpInfo.getFaults()) {\n FaultInfo fi = bfi.getFaultInfo();\n if (t != null && t.getClass().isAssignableFrom(fi.getMessagePart(0).getTypeClass())) {\n if (fi.getExtensionAttributes() == null) {\n continue;\n }\n String attr = (String)\n fi.getExtensionAttributes().get(Names.WSAW_ACTION_QNAME);\n if (attr == null) {\n attr = (String) \n fi.getExtensionAttributes()\n .get(new QName(Names.WSA_NAMESPACE_WSDL_NAME_OLD,\n Names.WSAW_ACTION_NAME)); \n }\n if (attr != null) {\n action = attr;\n break;\n }\n }\n }\n }\n }\n LOG.fine(\"action determined from service model: \" + action);\n return action;\n }",
"NamespacedProperty getFaultStringExpression();",
"int sizeOfArrayOfFaultTypeArray();",
"public void setFaultCode(final String faultCode) {\n this.faultCode = faultCode;\n }",
"void removeArrayOfFaultType(int i);",
"public void setFaultString(final String faultString) {\n this.faultString = faultString;\n }",
"public void addTargetFaultType(Class<?> type) {\n targetFaultTypes.add(type);\n }",
"boolean handleFault(FaultEvent e)\n\t{\n\t\t// lookup what we need to do\n\t\tboolean requestResume = false;\n\t\tString name = e.name();\n\t\tboolean stop = true;\n\t\tboolean print = true;\n\t\ttry\n\t\t{\n\t\t\tprint = m_faultTable.is(name, \"print\"); //$NON-NLS-1$\n\t\t\tstop = m_faultTable.is(name, \"stop\"); //$NON-NLS-1$\n\t\t}\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\tif (Trace.error)\n\t\t\t{\n\t\t\t\tMap<String, Object> args = new HashMap<String, Object>();\n\t\t\t\targs.put(\"faultName\", name); //$NON-NLS-1$\n\t\t\t\tTrace.trace(getLocalizationManager().getLocalizedTextString(\"faultHasNoTableEntry\", args)); //$NON-NLS-1$\n\t\t\t\tnpe.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tif (e instanceof ExceptionFault)\n\t\t{\n\t\t\tExceptionFault ef = (ExceptionFault) e;\n\t\t\tValue thrownValue = ef.getThrownValue();\n\t\t\tif (thrownValue != null)\n\t\t\t{\n\t\t\t\tif (!ef.willExceptionBeCaught())\n\t\t\t\t{\n\t\t\t\t\tstop = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tstop = false;\n\n\t\t\t\t\tString typeName = thrownValue.getTypeName();\n\t\t\t\t\tint at = typeName.indexOf('@');\n\t\t\t\t\tif (at != -1)\n\t\t\t\t\t\ttypeName = typeName.substring(0, at);\n\n\t\t\t\t\tfor (int i=0; i<catchpointCount(); ++i)\n\t\t\t\t\t{\n\t\t\t\t\t\tCatchAction c = catchpointAt(i);\n\t\t\t\t\t\tString typeToCatch = c.getTypeToCatch();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (typeToCatch == null || getSession().evalIs(thrownValue, typeToCatch))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tstop = 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} catch (PlayerDebugException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\tstop = true;\n\t\t\t\t\t\t} catch (PlayerFaultException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\tstop = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!stop)\n\t\t\t\t\t\tprint = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// should we stop?\n\t\tif (!stop)\n\t\t\trequestResume = true;\n\n\t\tif (print)\n\t\t\tdumpFaultLine(e);\n\n\t\treturn requestResume;\n\t}",
"public void secondaryAddFaultReport(com.hps.july.persistence.FaultReport arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondaryAddFaultReport(arg0);\n }",
"@Test\n public void testFaultSuperTypesAndSuperset() throws Exception {\n // InterfaceContract source = new MockContract(\"FooContract\");\n // DataType sourceFaultType = new DataTypeImpl<Type>(Exception.class,\n // Exception.class);\n // DataType sourceFaultType2 = new\n // DataTypeImpl<Type>(RuntimeException.class, RuntimeException.class);\n // List<DataType> sourceFaultTypes = new ArrayList<DataType>();\n // sourceFaultTypes.add(0, sourceFaultType);\n // sourceFaultTypes.add(1, sourceFaultType2);\n // Operation opSource1 = newOperationImpl(\"op1\", null, null,\n // sourceFaultTypes, false, null);\n // Map<String, Operation> sourceOperations = new HashMap<String,\n // Operation>();\n // sourceOperations.put(\"op1\", opSource1);\n // source.getInterface().getOperations().addAll(sourceOperations.values());\n //\n // InterfaceContract target = new MockContract(\"FooContract\");\n // DataType targetFaultType = new\n // DataTypeImpl<Type>(TuscanyException.class, TuscanyException.class);\n // List<DataType> targetFaultTypes = new ArrayList<DataType>();\n // targetFaultTypes.add(0, targetFaultType);\n //\n // Operation opTarget = newOperationImpl(\"op1\", null, null,\n // targetFaultTypes, false, null);\n // Map<String, Operation> targetOperations = new HashMap<String,\n // Operation>();\n // targetOperations.put(\"op1\", opTarget);\n // target.getInterface().getOperations().addAll(targetOperations.values());\n // wireService.checkCompatibility(source, target, false);\n }",
"public abstract DOMSource denormalizeFault(Operation operation, String faultName, NormalizedMessage normMsg)\n throws MessagingException;",
"@Override\n public List<String> catchFaults(){\n List<String> errors = new ArrayList<>();\n severityLevels.forEach(level -> {\n if(level.equals(\"ERROR\")){\n errors.add(level);\n }\n });\n return errors;\n }",
"public void addFaultReport(com.hps.july.persistence.FaultReport arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().addFaultReport(arg0);\n }",
"@Override\n protected void checkIfStandardFaultCode(String faultCode, String uri)\n throws SOAPException {\n }",
"public boolean hasDetectedFault(int i) throws IllegalArgumentException{\n if(i< 0 || i >=getFaultsMatrix().length)\n throw new IllegalArgumentException(\"ith element not present in fault matrix\");\n return (getFaultsMatrix()[i] == 1);\n }",
"@Override\n public void populateServiceNotUpDiagnostics() {\n }",
"public Properties getStatus(List entitylist)\n/* */ {\n/* 898 */ Properties temp = com.adventnet.appmanager.fault.FaultUtil.getStatus(entitylist, false);\n/* 899 */ for (Enumeration keys = temp.propertyNames(); keys.hasMoreElements();)\n/* */ {\n/* 901 */ String entityStr = (String)keys.nextElement();\n/* 902 */ String mmessage = temp.getProperty(entityStr);\n/* 903 */ mmessage = mmessage.replaceAll(\"\\\"\", \""\");\n/* 904 */ temp.setProperty(entityStr, mmessage);\n/* */ }\n/* 906 */ return temp;\n/* */ }",
"@ApiOperation(value = \"Retorna la Ubicacion de Implemntacion enviado a buscar de la BD\", authorizations = {@Authorization(value = \"Token-PGC\")})\r\n @GetMapping(value = UBICACION_IMPLEMENTACION_ENDPOINT_FIND_BY_ID_UBIC_NIVEL_IMPL_2, produces = \"application/json; charset=UTF-8\")\r\n public HashMap<String, Object> getFindByIdNivelImplementacionAndIdNivelUbicacion(@ApiParam(value = \"Identificador de la Ubicacion de Implementacion a Buscar, segun el Nivel de Implementacion\", required = true)\r\n @PathVariable(\"idNivelImplementacion\") long idNivelImplementacion,\r\n @ApiParam(value = \"Identificador de la Ubicacion de Implementacion a Buscar, segun el Nivel de Ubicacion\", required = true)\r\n @PathVariable(\"idNivelUbicacion\") long idNivelUbicacion) throws Exception {\r\n //Ejecuta el try Cacth\r\n msgExceptions msgExeptions = new msgExceptions();\r\n\r\n try {\r\n // Busca el Nivel de Implementacion Solicitado\r\n TblNivelImplementacion _tblNivelImplementacion = _nivelImplementacionRepository.findByIdNivel( idNivelImplementacion );\r\n\r\n // Busca el Nivel de Ubicacion Solicitado\r\n TblNivelUbicacionImplementacion _tblNivelUbicacionImplementacion = _nivelUbicacionImplementacionRepository.findByIdNivelUbicacion( idNivelUbicacion );\r\n\r\n try {\r\n if ( _ubicacionImplementacionRepository.countByIdNivelImplementacionAndIdNivelUbicacion( _tblNivelImplementacion, _tblNivelUbicacionImplementacion ) == 0) {\r\n // Sobreescirbe el Metodo de Mensajes\r\n msgMethod = \"No se ha encontrado dato de la Ubicacion de Implementación consultado\";\r\n\r\n msgExeptions.map.put(\"error\", \"No data found\");\r\n\r\n //Retorno del json\r\n return msgExeptions.msgJson(msgMethod, 200);\r\n } else {\r\n //Sobreescirbe el Metodo de Mensajes\r\n msgMethod = \"Detalle de la de Ubicacion de Implementacion consultado\";\r\n msgExeptions.map.put(\"data\", _ubicacionImplementacionRepository.findByIdNivelImplementacionAndIdNivelUbicacion( _tblNivelImplementacion, _tblNivelUbicacionImplementacion ));\r\n\r\n //Retorno del json\r\n return msgExeptions.msgJson(msgMethod, 200);\r\n }\r\n } catch (Exception ex) {\r\n msgMethod = \"No se ha encontrado dato de la Ubicacion de Implementación consultada\";\r\n throw new RuntimeException(\"Se ha producido una excepción con el mensaje : \" + msgMethod, ex);\r\n }\r\n } catch (Exception ex) {\r\n msgMethod = \"No se ha encontrado dato de la Ubicacion de Implementación consultada\";\r\n throw new RuntimeException(\"Se ha producido una excepción con el mensaje : \" + msgMethod, ex);\r\n }\r\n }",
"@Test\n public void setResolutionConfigSlot_faultUpdate_unchanged() throws Exception {\n EqpAssmblBom lResolutionConfigSlot =\n createResolutionConfigSlot( CONFIG_SLOT_1_ATA, CONFIG_SLOT_1_NAME );\n SdFaultTable lExistingFault = createFault( lResolutionConfigSlot.getPk() );\n\n iService.setResolutionConfigSlot( lExistingFault, lResolutionConfigSlot.getAlternateKey(),\n HumanResourceKey.ADMIN );\n\n // Ensure no history note is logged on creation\n assertTrue( getFaultHistoryNotes( lExistingFault.getPk() ).isEmpty() );\n }",
"public Properties getStatus(List entitylist)\n/* */ {\n/* 907 */ Properties temp = com.adventnet.appmanager.fault.FaultUtil.getStatus(entitylist, false);\n/* 908 */ for (Enumeration keys = temp.propertyNames(); keys.hasMoreElements();)\n/* */ {\n/* 910 */ String entityStr = (String)keys.nextElement();\n/* 911 */ String mmessage = temp.getProperty(entityStr);\n/* 912 */ mmessage = mmessage.replaceAll(\"\\\"\", \""\");\n/* 913 */ temp.setProperty(entityStr, mmessage);\n/* */ }\n/* 915 */ return temp;\n/* */ }",
"@WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/error\")\n @RequestWrapper(localName = \"error\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericErrorType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void error(\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;",
"public void inquiryError() {\n\t\t\n\t}",
"@Service\npublic interface MS013002GetDetailService {\n /**\n * [Description]: Method find a holiday with id specification<br/>\n * [ Remarks ]:<br/>\n *\n * @param id\n * @return MS013002UpdateResponse - Model contain data what need to send to client\n */\n BaseResponse getDetail(long holidayID, int companyID);\n}",
"@Override\r\n\tpublic boolean handleFault(SOAPMessageContext smc) {\r\n\t\tSystem.out.println(\"Ignoring fault message...\");\r\n\t\treturn true;\r\n\t}",
"public LibraryWsFault() {\n // This constructor is intentionally empty. Nothing special is needed here.\n }",
"@ApiOperation(value = \"Retorna la Ubicacion de Implemntacion enviado a buscar de la BD\", authorizations = {@Authorization(value = \"Token-PGC\")})\r\n @GetMapping(value = UBICACION_IMPLEMENTACION_ENDPOINT_FIND_BY_ID_UBIC_NIVEL_IMPL, produces = \"application/json; charset=UTF-8\")\r\n public HashMap<String, Object> getFindByIdNivelUbicacion(@ApiParam(value = \"Identificador de la Ubicacion de Implementacion a Buscar, segun el Nivel de Ubicacion\", required = true)\r\n @PathVariable(\"idNivelUbicacion\") long idNivelUbicacion) throws Exception {\r\n //Ejecuta el try Cacth\r\n msgExceptions msgExeptions = new msgExceptions();\r\n\r\n try {\r\n // Busca el Nivel de Ubicacion Solicitado\r\n TblNivelUbicacionImplementacion _tblNivelUbicacionImplementacion = _nivelUbicacionImplementacionRepository.findByIdNivelUbicacion( idNivelUbicacion );\r\n\r\n try {\r\n if ( _ubicacionImplementacionRepository.findByIdNivelUbicacionImplementacion( _tblNivelUbicacionImplementacion ) == null) {\r\n // Sobreescirbe el Metodo de Mensajes\r\n msgMethod = \"No se ha encontrado dato de la Ubicacion de Implementación consultado\";\r\n\r\n msgExeptions.map.put(\"error\", \"No data found\");\r\n\r\n //Retorno del json\r\n return msgExeptions.msgJson(msgMethod, 400);\r\n } else {\r\n //Sobreescirbe el Metodo de Mensajes\r\n msgMethod = \"Detalle de la de Ubicacion de Implementacion consultado\";\r\n msgExeptions.map.put(\"data\", _ubicacionImplementacionRepository.findByIdNivelUbicacionImplementacion( _tblNivelUbicacionImplementacion ));\r\n\r\n //Retorno del json\r\n return msgExeptions.msgJson(msgMethod, 200);\r\n }\r\n } catch (Exception ex) {\r\n msgMethod = \"No se ha encontrado dato de la Ubicacion de Implementación consultada\";\r\n throw new RuntimeException(\"Se ha producido una excepción con el mensaje : \" + msgMethod, ex);\r\n }\r\n } catch (Exception ex) {\r\n msgMethod = \"No se ha encontrado dato de la Ubicacion de Implementación consultada\";\r\n throw new RuntimeException(\"Se ha producido una excepción con el mensaje : \" + msgMethod, ex);\r\n }\r\n }",
"public static void serializeSOAPFault(SOAPFault fault, XMLStreamWriter writer) throws XMLStreamException {\n\n\t\tOMSerializerUtil.serializeStartpart(fault, writer);\n\t\tOMElement e = null;\n\n\t\t// based on the namespace (SOAP1.1 vs SOAP1.2) to serialize accordingly\n\t\tif (fault.getNamespace().getNamespaceURI().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI)) {\n\t\t\t// SOAP1.2\n\t\t\te = fault.getFirstChildWithName(SOAP12Constants.QNAME_FAULT_CODE);\n\t\t\te.serialize(writer);\n\n\t\t\te = fault.getFirstChildWithName(SOAP12Constants.QNAME_FAULT_REASON);\n\t\t\te.serialize(writer);\n\n\t\t\te = fault.getFirstChildWithName(SOAP12Constants.QNAME_FAULT_DETAIL);\n\t\t\tOMSerializerUtil.serializeStartpart(e, writer);\n\n\t\t} else {\n\t\t\t// SOAP1.1\n\t\t\te = fault.getFirstChildWithName(SOAP11Constants.QNAME_FAULT_CODE);\n\t\t\te.serialize(writer);\n\n\t\t\te = fault.getFirstChildWithName(SOAP11Constants.QNAME_FAULT_REASON);\n\t\t\te.serialize(writer);\n\n\t\t\te = fault.getFirstChildWithName(SOAP11Constants.QNAME_FAULT_DETAIL);\n\t\t\tOMSerializerUtil.serializeStartpart(e, writer);\n\t\t}\n\t}",
"@ApiOperation(value = \"Retorna la Ubicacion de Implemntacion enviado a buscar de la BD\", authorizations = {@Authorization(value = \"Token-PGC\")})\r\n @GetMapping(value = UBICACION_IMPLEMENTACION_ENDPOINT_FIND_BY_ID_NIVEL_IMPL, produces = \"application/json; charset=UTF-8\")\r\n public HashMap<String, Object> getFindByIdNivelImplementacion(@ApiParam(value = \"Identificador de la Ubicacion de Implementacion a Buscar, segun el Nivel de Implementación\", required = true)\r\n @PathVariable(\"idNivelImplementacion\") long idNivelImplementacion) throws Exception {\r\n //Ejecuta el try Cacth\r\n msgExceptions msgExeptions = new msgExceptions();\r\n\r\n try {\r\n // Busca el Nivel de Implementacion Solicitado\r\n TblNivelImplementacion _tblNivelImplementacion = _nivelImplementacionRepository.findByIdNivel( idNivelImplementacion );\r\n\r\n try {\r\n if ( _ubicacionImplementacionRepository.findByIdNivelImplementacion( _tblNivelImplementacion ) == null) {\r\n // Sobreescirbe el Metodo de Mensajes\r\n msgMethod = \"No se ha encontrado dato de la Ubicacion de Implementación consultado\";\r\n\r\n msgExeptions.map.put(\"error\", \"No data found\");\r\n\r\n //Retorno del json\r\n return msgExeptions.msgJson(msgMethod, 400);\r\n } else {\r\n //Sobreescirbe el Metodo de Mensajes\r\n msgMethod = \"Detalle de la de Ubicacion de Implementacion consultado\";\r\n msgExeptions.map.put(\"data\", _ubicacionImplementacionRepository.findByIdNivelImplementacion( _tblNivelImplementacion ));\r\n\r\n //Retorno del json\r\n return msgExeptions.msgJson(msgMethod, 200);\r\n }\r\n } catch (Exception ex) {\r\n msgMethod = \"No se ha encontrado dato de la Ubicacion de Implementación consultada\";\r\n throw new RuntimeException(\"Se ha producido una excepción con el mensaje : \" + msgMethod, ex);\r\n }\r\n } catch (Exception ex) {\r\n msgMethod = \"No se ha encontrado dato de la Ubicacion de Implementación consultada\";\r\n throw new RuntimeException(\"Se ha producido una excepción con el mensaje : \" + msgMethod, ex);\r\n }\r\n }",
"public interface ViewDetailsExceptionCodes extends BaseExceptionCodes {\r\n /**\r\n * <p>\r\n * Exception code for TransactionAssessmentViewDetailsManagerException.\r\n * </p>\r\n */\r\n public final long FMS_WEB_07_ERR_0020 = 700020;\r\n\r\n /**\r\n * <p>\r\n * Exception code for TransactionAssessmentViewDetailsConfigurationException.\r\n * </p>\r\n */\r\n public final long FMS_WEB_07_ERR_0021 = 700021;\r\n\r\n /**\r\n * <p>\r\n * Exception code for TransactionAssessmentViewDetailsDaoException.\r\n * </p>\r\n */\r\n public final long FMS_WEB_07_ERR_0022 = 700022;\r\n}",
"void doHandle()\n\t{\n\t\t// should be at least on arg\n\t\tif (!hasMoreTokens())\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"argumentRequired\")); //$NON-NLS-1$\n\t\telse\n\t\t{\n\t\t\t// poor man's fix for supporting 'all' option\n\t\t\tString faultName = nextToken();\n\t\t\tObject[] names = new Object[] { faultName };\n\n\t\t\t// replace the single name with all of them\n\t\t\tif (faultName.equalsIgnoreCase(\"all\")) //$NON-NLS-1$\n\t\t\t\tnames = m_faultTable.names();\n\n\t\t\t// make sure we know about at least one\n\t\t if (!m_faultTable.exists((String)names[0]))\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"unrecognizedFault\")); //$NON-NLS-1$\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (!hasMoreTokens())\n\t\t\t\t\tlistFault((String)names[0]);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tString action = null;\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\twhile(hasMoreTokens())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taction = nextToken();\n\t\t\t\t\t\t\tfor(int i=0; i<names.length; i++)\n\t\t\t\t\t\t\t\tm_faultTable.action((String)names[i], action);\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\tMap<String, Object> args = new HashMap<String, Object>();\n\t\t\t\t\t\targs.put(\"action\", action); //$NON-NLS-1$\n\t\t\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"unrecognizedAction\", args)); //$NON-NLS-1$\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public interface TransferHospitalService extends ReadOnlyBaseService<HospitalReadOnly> {\n /**\n * 获取用户医院数据\n * @param hosId\n * @return\n * @throws InvocationTargetException\n * @throws IntrospectionException\n * @throws InstantiationException\n * @throws IllegalAccessException\n */\n HospitalReadOnly getHospital(Long hosId)throws InvocationTargetException, IntrospectionException, InstantiationException, IllegalAccessException ;\n\n}",
"void setArrayOfFaultTypeArray(int i, com.microsoft.schemas.crm._2011.contracts.ArrayOfFaultType arrayOfFaultType);",
"public TR069Exception(String message, int faultCode) {\n\t\tthis(message, faultCode, null);\n\t}",
"@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onRequestFail() {\n\n\t\t\t\t\t\t\t\t\t\t}",
"public void secondaryRemoveFaultReport(com.hps.july.persistence.FaultReport arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondaryRemoveFaultReport(arg0);\n }",
"public TR069Exception(String message, int faultCode, DmtException e) {\n\t\tsuper(message, e);\n\t\tthis.faultCode = faultCode;\n\t\tthis.dmtException = e;\n\t}",
"public interface ClientRequestInfo extends ClientRequestInfoOperations, org.omg.PortableInterceptor.RequestInfo, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public FaultException raise(Throwable e);",
"public interface NotMappedCause extends Cause {\n}",
"public Properties getStatus(List entitylist)\n/* */ {\n/* 901 */ Properties temp = FaultUtil.getStatus(entitylist, false);\n/* 902 */ for (Enumeration keys = temp.propertyNames(); keys.hasMoreElements();)\n/* */ {\n/* 904 */ String entityStr = (String)keys.nextElement();\n/* 905 */ String mmessage = temp.getProperty(entityStr);\n/* 906 */ mmessage = mmessage.replaceAll(\"\\\"\", \""\");\n/* 907 */ temp.setProperty(entityStr, mmessage);\n/* */ }\n/* 909 */ return temp;\n/* */ }",
"private boolean checkFaults() throws Exception {\n iLogger.info( \"Processing faults.\" );\n\n ResultSet lFaultResultSet = null;\n PreparedStatement lStatement = null;\n boolean lFailureFound = false;\n\n try {\n Class.forName( \"oracle.jdbc.OracleDriver\" );\n\n lStatement = iConnection.prepareStatement( getQuery( FAULT_QUERY_FILE ) );\n lFaultResultSet = lStatement.executeQuery();\n StringBuilder lQueryResults = new StringBuilder();\n\n // if an error is found, print results and toggle error boolean\n if ( lFaultResultSet.next() ) {\n\n iLogger.error( \"**** Fault validation Error Found: ****\" );\n lFailureFound = true;\n\n do {\n // collect query results for current row\n lQueryResults.append( \"TABLE: \" + lFaultResultSet.getString( \"TABLE\" ) + \", \" );\n lQueryResults\n .append( \"ASSMBL_CD: \" + lFaultResultSet.getString( \"ASSMBL_CD\" ) + \", \" );\n lQueryResults\n .append( \"PART_NO_OEM: \" + lFaultResultSet.getString( \"PART_NO_OEM\" ) + \", \" );\n lQueryResults\n .append( \"ATA_SYS_CD: \" + lFaultResultSet.getString( \"ATA_SYS_CD\" ) + \", \" );\n lQueryResults\n .append( \"RESULT_CD: \" + lFaultResultSet.getString( \"RESULT_CD\" ) + \", \" );\n lQueryResults\n .append( \"USER_DESC: \" + lFaultResultSet.getString( \"USER_DESC\" ) + \";\" );\n\n iLogger.error( lQueryResults );\n\n // clear StringBuilder for next result\n lQueryResults.setLength( 0 );\n\n } while ( lFaultResultSet.next() );\n } else {\n iLogger.info( \"No fault validation errors found.\" );\n lFailureFound = false;\n }\n\n } catch ( SQLException e ) {\n iLogger.error( e.toString() );\n\n // close Statement and ResultSet\n } finally {\n try {\n if ( lStatement != null ) {\n lStatement.close();\n }\n } catch ( Exception e ) {\n iLogger.error( e.toString() );\n }\n\n try {\n if ( lFaultResultSet != null ) {\n lFaultResultSet.close();\n }\n } catch ( Exception e ) {\n iLogger.error( e.toString() );\n }\n }\n return lFailureFound;\n\n }",
"public interface RecordEmergencyFacilitiesService extends Service<RecordEmergencyFacilities> {\n\n\n /**\n * 分页查询\n * @param recordEmergencyFacilitiesRequest 查询条件\n * @return 返回结果\n */\n public PageResult<RecordEmergencyFacilities> queryListPage(RecordEmergencyFacilitiesRequest recordEmergencyFacilitiesRequest);\n\n /**\n * 添加\n * @param recordEmergencyFacilitiesInputRequest 实体\n */\n public void add(RecordEmergencyFacilitiesInputRequest recordEmergencyFacilitiesInputRequest);\n\n /**\n * 删除\n * @param id 主键id\n */\n public void delete(Long id);\n\n /**\n * 修改\n * @param recordEmergencyFacilitiesInputRequest 实体\n */\n public void update(RecordEmergencyFacilitiesInputRequest recordEmergencyFacilitiesInputRequest);\n\n /**\n * 获取 应急设施调查表 信息\n * @param id 主键id\n * @return 返回结果\n */\n RecordEmergencyFacilitiesDetailResponse queryEmergencyFacilitiesDetail(Long id);\n}",
"@Override\n\tpublic Class<OperationInfo> dataClass() throws Exception {\n\t\treturn OperationInfo.class;\n\t}",
"@Test(timeout = 4000)\n public void test135() throws Throwable {\n NameSpec nameSpec0 = NameSpec.IF_REPRODUCIBLE;\n // Undeclared exception!\n try { \n SQLUtil.fkSpec((DBForeignKeyConstraint) null, nameSpec0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"public static boolean isFault(Message message) {\n return message != null\n && message.getExchange() != null\n && (message == message.getExchange().getInFaultMessage()\n || message == message.getExchange().getOutFaultMessage());\n }"
] | [
"0.6526123",
"0.60850626",
"0.60159194",
"0.5861579",
"0.58230716",
"0.58144575",
"0.5760012",
"0.5757161",
"0.5754777",
"0.57307374",
"0.565848",
"0.5626021",
"0.559371",
"0.5556963",
"0.55530584",
"0.5524773",
"0.55035764",
"0.54799324",
"0.5465532",
"0.544796",
"0.5441358",
"0.543379",
"0.5421223",
"0.54039",
"0.53865945",
"0.5349292",
"0.53376454",
"0.5333505",
"0.53213304",
"0.5295096",
"0.5285629",
"0.528186",
"0.5278645",
"0.52699566",
"0.525916",
"0.5250551",
"0.525017",
"0.5236787",
"0.5224674",
"0.52199227",
"0.52152747",
"0.5212572",
"0.5201366",
"0.51201075",
"0.5101222",
"0.5082721",
"0.50713",
"0.5064799",
"0.503766",
"0.50259525",
"0.49951458",
"0.49851125",
"0.49625486",
"0.49296445",
"0.49214",
"0.48908016",
"0.4867291",
"0.4851624",
"0.4849199",
"0.48356512",
"0.48239636",
"0.48074508",
"0.4802729",
"0.47953525",
"0.47925162",
"0.47888112",
"0.47634035",
"0.4748383",
"0.4747252",
"0.47289395",
"0.4717261",
"0.47134683",
"0.47115916",
"0.4710643",
"0.4707652",
"0.47045442",
"0.46985435",
"0.46886212",
"0.4686787",
"0.46798363",
"0.46714664",
"0.46657914",
"0.46475795",
"0.46460143",
"0.46402228",
"0.463447",
"0.46148235",
"0.459761",
"0.45962185",
"0.4589738",
"0.4584843",
"0.45819247",
"0.45815048",
"0.4578874",
"0.4565936",
"0.45621806",
"0.4554152",
"0.45531863",
"0.45407265",
"0.45337462"
] | 0.51785743 | 43 |
Method used to show error view | public void showError() {
mapView.setVisibility(View.GONE);
loadingLayout.setVisibility(View.GONE);
errorLayout.setVisibility(View.VISIBLE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void showError() {\n }",
"public void showError(String error);",
"private void showErrorView() {\n Log.d(\"lodd\", \"showSuccessView: hjfj91919515\");\n\n }",
"public void showError(String errorMessage);",
"public interface ErrorView {\n void showError(String message);\n}",
"public String getErrorView() {\r\n\t\treturn errorView;\r\n\t}",
"public interface ErrorView {\n void showError(String error);\n}",
"@Override\n\tpublic void showError(String message) {\n\t\t\n\t}",
"void showError(String errorMessage);",
"public abstract void showErrorBox(Throwable error);",
"void showError(String message);",
"void showError(String message);",
"private void showErrorMessage() {\n // hide the view for the list of movies\n mMoviesRecyclerView.setVisibility(View.INVISIBLE);\n // show the error message\n mErrorMessageDisplay.setVisibility(View.VISIBLE);\n }",
"private void showErrorMessage() {\n gridview.setVisibility(View.INVISIBLE);\n // Then, show the error\n errorTextView.setVisibility(View.VISIBLE);\n }",
"private void showError() {\n errorTextView.setVisibility(View.VISIBLE);\n errorButton.setVisibility(View.VISIBLE);\n errorButton.setEnabled(true);\n recyclerView.setVisibility(View.INVISIBLE);\n progressBar.setVisibility(View.INVISIBLE);\n noFavoriteMoviesTextView.setVisibility(View.INVISIBLE);\n }",
"void showError(Throwable throwable);",
"private void showErrorMessage() {\n /* First, hide the currently visible data */\n mRecyclerView.setVisibility(View.INVISIBLE);\n /* Then, show the error */\n mErrorMessageDisplay.setVisibility(View.VISIBLE);\n mLayout.setVisibility(View.INVISIBLE);\n }",
"void showErrorSnackbar();",
"void displayUserTakenError(){\n error.setVisible(true);\n }",
"@Override\n public void onFail(String error) {\n\n activity.displayView(MainScreenActivity.TABLE_FRAGMENT, null);\n Toast.makeText(activity, error, Toast.LENGTH_LONG).show();\n }",
"private void showErrorMessage() {\n /* First, hide the currently visible data */\n mRecyclerView.setVisibility(View.INVISIBLE);\n /* Then, show the error */\n mErrorMessageDisplay.setVisibility(View.VISIBLE);\n }",
"private void showErrorMessage() {\n // First, hide the currently visible data\n mRecyclerView.setVisibility(View.INVISIBLE);\n\n // Then, show the error\n mErrorMessageDisplay.setVisibility(View.VISIBLE);\n }",
"@RequestMapping(value=\"/errors\", method=RequestMethod.GET)\n\tpublic String renderErrorPage(final Model model, final HttpServletRequest request){\n\t\t// get the HttpStatusCode of the request\n\t\tfinal int error_code = getHttpStatusCode(request);\n\t\t//error_message is generated using the error_code\n\t\tfinal String error_message=errorService.generateErrorMessage(error_code);\n\t\t//get the logged in user\n\t\tString loggedInUser = request.getRemoteUser();\n\t\tmodel.addAttribute(\"loggedInUser\", loggedInUser);\n\t\t//error message is added to model\t\n\t\tmodel.addAttribute(\"errorMsg\", error_message);\n\t\t//errorPage jsp\n\t\treturn \"errors/errorPage\";\n\t}",
"public void showErrorMessage() {\n mErrorMessageDisplay.setVisibility(View.VISIBLE);\n mMoviesList.setVisibility(View.INVISIBLE);\n }",
"public void showErrorMessage() {\n\t\tthis.vm = null;\n\t\tplayButton.setText(\"►\");\n\n\t\tthis.remove(visualizerPanel);\n\t\tvisualizerPanel = new ErrorCard();\n\t\tvisualizerPanel.setPreferredSize(new Dimension(FRAME_WIDTH, FRAME_HEIGHT));\n\t\tthis.add(visualizerPanel);\n\t}",
"@Override\n public void onError(Throwable e) {\n Log.e(TAG, e.getMessage());\n _view.showMessage(R.string.msg_erro);\n }",
"@Override\n\tpublic void onRequestError(String reqID, Exception error) {\n\t\temptyView.showException((ZcdhException)error, this);\n\t}",
"void showErrorMsg(String string);",
"public void showLoadingError() {\n showError(MESSAGE_LOADING_ERROR);\n }",
"private void showErrorPage() {\n setContentView(R.layout.main);\n\n // The specified network connection is not available. Displays error message.\n WebView myWebView = (WebView) findViewById(R.id.webview);\n myWebView.loadData(getResources().getString(R.string.connection_error),\n \"text/html\", null);\n }",
"@Override\r\n\tpublic void showErrReq() {\n\t\tdialog.cancel();\r\n\t\tshowNetView(true);\r\n\t}",
"public String error();",
"@Override\n public void showError(@StringRes int messageId, @Nullable Object... args) {\n if (getView() != null) {\n //When we have the root view\n\n //Evaluating the message to be shown\n String messageToBeShown;\n if (args != null && args.length > 0) {\n //For the String Resource with args\n messageToBeShown = getString(messageId, args);\n } else {\n //For the String Resource without args\n messageToBeShown = getString(messageId);\n }\n\n if (!TextUtils.isEmpty(messageToBeShown)) {\n //Displaying the Snackbar message of indefinite time length\n //when we have the error message to be shown\n\n new SnackbarUtility(Snackbar.make(getView(), messageToBeShown, Snackbar.LENGTH_INDEFINITE))\n .revealCompleteMessage() //Removes the limit on max lines\n .setDismissAction(R.string.snackbar_action_ok) //For the Dismiss \"OK\" action\n .showSnack();\n }\n }\n }",
"public void error();",
"@RequestMapping(\"generalError\")\n\tpublic String error(HttpServletRequest request, HttpServletResponse response, Model model) {\n\t\tString classpath = \"javax.servlet.error\";\n\t\tInteger statusCode = (Integer) request.getAttribute(classpath + \".status_code\");\n\t\tThrowable throwable= (Throwable) request.getAttribute(classpath + \".exception\");\n\t\tString exceptionMessage= getExceptionMessage(throwable, statusCode);\n\t\tString requestUri = (String) request.getAttribute(classpath + \".request_uri\");\n\t\tif (requestUri == null) requestUri = \"Unknown\";\n\t\t\n\t\tString message = MessageFormat.format(\"{0} returned for {1} with message {2}\", statusCode, requestUri, exceptionMessage);\n\t\tmodel.addAttribute(\"errorMessage\", message);\n\t\treturn \"error/general\";\n\t}",
"private void showErrorMessage() {\n /* First, hide the currently visible data */\n mEmptyTextView.setText(\"No Internet Connection\");\n mRecyclerView.setVisibility(View.INVISIBLE);\n /* Then, show the error */\n mEmptyTextView.setVisibility(View.VISIBLE);\n }",
"private void showErrorMessage() {\n mCryptoRecyclerView.setVisibility(View.INVISIBLE); // set the visibility of the recycler to invisible\n mTvErrorMessage.setVisibility(View.VISIBLE); // set the visibility of the error message to visible\n }",
"public interface QuestView {\n\n void showError(String message);\n}",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tview.showErrorMessage(caught.getMessage());\n\t\t\t\tview.setLoading(false);\n\t\t\t}",
"private void showNodeDiscoveryError(){\n View view = getView();\n if(view != null) {\n Snackbar snackbar = Snackbar\n .make(getView(), \"Knoten nicht im Wlan gefunden!\", Snackbar.LENGTH_LONG);\n int colorSnackRetry = ResourcesCompat.getColor(getResources(), R.color.colorSnackRetry, null);\n snackbar.setActionTextColor(colorSnackRetry);\n snackbar.show();\n } else {\n Log.d(ShowNodeWebsiteFragment.class.toString(), \"View is null\");\n }\n }",
"@Override\n public void showError(Throwable throwable) {\n Toasts.show(throwable.getMessage());\n }",
"@Override\n public void showError(String error) {\n calledMethods.add(\"showError: \" + error);\n }",
"private void showError(String message){\n\t\tsetupErrorState();\n\t\tsynapseAlert.showError(message);\n\t}",
"private void showErrorDialog(int errorCode) {\n\t\t\n }",
"public void showErrorMessage(){\n Toast.makeText(context, R.string.generic_error_message, Toast.LENGTH_LONG).show();\n }",
"@Override\n\tprotected String showErrorMessage() {\n\t\treturn \"There has been an error. Payment cannot process at this time. Please check with your credit card compay.\";\n\t}",
"void showResultMoError(String e);",
"void showError() {\n Toast.makeText(this, \"Please select answers to all questions.\", Toast.LENGTH_SHORT).show();\n }",
"public void show(Object errorMessage){\n\t\tSystem.out.println(\"Woops, something bad happened\");\n\t\tSystem.out.println(errorMessage);\n\t}",
"private void showErrorMessage(){\n mErrorMessageDisplay.setVisibility(View.VISIBLE);\n mGridView.setVisibility(View.INVISIBLE);\n }",
"@ExceptionHandler(value = AccRunTimeException.class)\n public ModelAndView myErrorHandler(AccRunTimeException ex) {\n ModelAndView modelAndView = new ModelAndView();\n //指定错误页面的模板页\n modelAndView.setViewName(\"error\");\n modelAndView.addObject(\"code\", ex.getCode());\n modelAndView.addObject(\"message\", ex.getMessage());\n return modelAndView;\n }",
"public void displayErrors(ErrorBag errorBag) {\n showCommandErrorView();\n clearOldErrorsFromViews();\n displayFieldErrors(errorBag.getFieldErrors());\n displayNonFieldErrors(errorBag.getNonFieldErrors());\n }",
"void showError (String occurredWhile, String error) {\n\n// creates the VerticalBox for all elements\n VBox pane = new VBox();\n\n// creates all necessary labels, adds them to errPane\n Label genLabel = new Label(\"Error occured while \" + occurredWhile + \":\");\n Label errLabel = new Label(error);\n genLabel.setStyle(\"-fx-padding: 10, 10, 10, 10;\");\n errLabel.setStyle(\"-fx-padding: 10, 10, 10, 10;\");\n pane.getChildren().addAll(genLabel, errLabel);\n\n// creates a Scene, applies stylesheets\n Scene scene = new Scene(pane);\n scene.getStylesheets().add(getClass().getResource(\"stylesheet.css\").toExternalForm());\n scene.getStylesheets().add(stylesheet.toString());\n\n// creates a new errorWindow\n errorWindow = new Stage();\n errorWindow.setTitle(\"Error\");\n errorWindow.setResizable(false);\n errorWindow.setScene(scene);\n errorWindow.show();\n }",
"@Override\r\n\t\tpublic void error(ResponseError error) {\n\t\t\tTools.toastShow(error.getMessage());\r\n\t\t}",
"@Override\r\n\t\tpublic void error(ResponseError error) {\n\t\t\tTools.toastShow(error.getMessage());\r\n\t\t}",
"public static void showError (Exception e)\n\t{\n\t\tString message = getErrorMessage(e);\n\t\n\t\t// filter out cancelled actions by the user which end up as\n\t\t// ModelExceptions after veto\n\t\tif (message != null)\n\t\t{\n\t\t\tNotifyDescriptor desc = new NotifyDescriptor.Message(\n\t\t\t\tmessage, NotifyDescriptor.ERROR_MESSAGE);\n\n\t\t\tDialogDisplayer.getDefault().notify(desc);\n\t\t}\n\t}",
"void errorBox(String title, String message);",
"@Override\r\n\t\t\t\t\tpublic void error(ResponseError error) {\n\t\t\t\t\t\tTools.toastShow(error.getMessage());\r\n\t\t\t\t\t}",
"public void displayError(String e){\n\t\tJOptionPane.showMessageDialog(null, e, \"Error\", JOptionPane.ERROR_MESSAGE);\n\t}",
"private void displayError(Exception e)\n\t{\n\t\tJOptionPane.showMessageDialog(frame,\n\t\t\t\te.toString(),\n\t\t\t\t\"EXCEPTION\",\n\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t}",
"void showError(@StringRes int errorMessage);",
"@Override\r\n\tpublic void displayError(EntityPropertyCode code, String message) {\n\t}",
"private void displayValidationError() {\n\n\t\tif (null != validationErrorTitle) {\n\t\t\tvalidationErrorParent.toFront();\n\t\t\tAppController.showMessage(validationErrorParent, validationErrorMessage, validationErrorTitle,\n\t\t\t\tvalidationErrorType);\n\t\t}\n\n\t\tclearValidationError();\n\t}",
"public static void showError(Throwable throwable, Context context) {\n if (throwable instanceof HttpException) {\n HttpException httpException = (HttpException) throwable;\n try {\n String errorBody = Objects.requireNonNull(httpException.response().errorBody()).string();\n if (!TextUtils.isEmpty(errorBody)) {\n int errorCode = httpException.response().code();\n Gson gson = new Gson();\n ResponseModel responseModel = gson.fromJson(errorBody, ResponseModel.class);\n if (responseModel != null) {\n List<Error> errors = responseModel.getErrors();\n Error error = errors.get(0);\n switch (errorCode) {\n case 401: //un authentication\n /* Bundle bundle = new Bundle();\n bundle.putString(SecondaryActivity.KEY_FRAGMENT_TAG, SignInFragment.class.getName());\n if (context instanceof BaseAppCompatActivity) {\n BaseAppCompatActivity activity = (BaseAppCompatActivity) context;\n activity.startActivityAsRoot(SecondaryActivity.class.getName(), bundle);\n }*/\n break;\n case 400:\n showError(context, error.getErrorMessage());\n break;\n case 500:\n showError(context, error.getErrorMessage());\n break;\n default:\n showError(context, error.getErrorMessage());\n break;\n }\n }\n } else {\n showError(context, httpException.getMessage());\n }\n } catch (IOException e) {\n e.printStackTrace();\n } catch (JsonParseException jsonParseException) {\n jsonParseException.printStackTrace();\n }\n } else {\n showError(context, throwable.getMessage());\n }\n Logger.e(throwable, context.getClass().getSimpleName());\n }",
"void displayLoadingErrorMessage();",
"private void action_error(HttpServletRequest request, HttpServletResponse response) throws IOException {\n //assumiamo che l'eccezione sia passata tramite gli attributi della request\n //we assume that the exception has been passed using the request attributes \n Map data=new HashMap();\n \n Exception exception = (Exception) request.getAttribute(\"exception\");\n String message;\n if (exception != null && exception.getMessage() != null) {\n message = exception.getMessage();\n } else {\n message = \"Unknown error\";\n }\n data.put(\"errore\",message);\n FreeMarker.process(\"404error.html\",data, response, getServletContext()); \n }",
"private void showErrorToast() {\n }",
"void showForbiddenErrorSnackbar();",
"private void showErrors() {\n \t\tfor (Iterator it = this.errors.iterator(); it.hasNext();) {\n \t\t\ttry {\n \t\t\t\tObject err = it.next();\n \t\t\t\t\n \t\t\t\t/* errors can be represented by PositionedError, UnpositionedError or String */\n \t\t\t\tif (err instanceof PositionedError) {\n \t\t\t\t\tPositionedError error = (PositionedError)err;\n \t\t\t\t\tTokenReference token = error.getTokenReference();\n \t\n \t\t\t\t log.debug(\"file: \" + token.getFile() + \", \" + \"line: \" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n \t\t\t\t\t\t\t+ token.getLine() + \", \" + \"path: \" //$NON-NLS-1$//$NON-NLS-2$\n \t\t\t\t\t\t\t+ token.getPath());\n \n \t\t\t\t\tIResource resource = ProjectProperties.findResource(token\n \t\t\t\t\t\t\t.getPath().getAbsolutePath(), currentProject);\n \t\t\t\t\t\n \t\t\t\t\tIMarker marker = null;\n \t\t\t\t\tif (resource != null) {\n \t\t\t\t\t\tmarker = resource.createMarker(IMarker.PROBLEM);\n \t\t\t\t\t\tif (token.getLine() > 0) {\n \t\t\t\t\t\t\tmarker.setAttribute(IMarker.LINE_NUMBER, token.getLine());\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// for the cases, when error refers to a generated piece of code\n \t\t\t\t\t\tmarker = currentProject.createMarker(IMarker.PROBLEM);\n \t\t\t\t\t}\n \t\t\t\t\tmarker.setAttribute(IMarker.MESSAGE, error\n \t\t\t\t\t\t\t.getFormattedMessage().getMessage());\n \t\t\t\t\tmarker.setAttribute(IMarker.SEVERITY, new Integer(\n \t\t\t\t\t\t\tIMarker.SEVERITY_ERROR));\n \t\t\t\t}\n \t\t\t\telse { /* create unpositioned error at the scope of the project */\t\t\t\t\t\n \t\t\t\t\tString msg;\n \t\t\t\t\tif (err instanceof UnpositionedError) {\n \t\t\t\t\t\tmsg = ((UnpositionedError)err).getFormattedMessage().getMessage();\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tmsg = (String)err; // for internal errors\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\tIMarker marker = currentProject.createMarker(IMarker.PROBLEM);\n \t\t\t\t\tmarker.setAttribute(IMarker.MESSAGE, msg);\n \t\t\t\t\tmarker.setAttribute(IMarker.SEVERITY, new Integer(IMarker.SEVERITY_ERROR));\n \t\t\t\t}\n \t\t\t} \n \t\t\tcatch (Exception e) {\n\t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t}",
"@Override\n\tpublic ModelAndView resolveException(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler, Exception ex) {\n\t\tSystem.out.println(\"错误页面被拦截\");\n\t\treturn new ModelAndView(\"myError\"); \n\t}",
"private void displayError(Exception ex)\n {\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Error dialog\");\n alert.setHeaderText(null);\n alert.setContentText(ex.getMessage());\n\n alert.showAndWait();\n }",
"void displayErrorMessage(String message);",
"@Override\n\tpublic String getErrorPath() {\n\t\treturn \"/error\";\n\t}",
"@Override\r\n\tpublic String getErrorPath() {\n\t\treturn \"/error\";\r\n\t}",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"void setError();",
"private void displayErrorToast()\n {\n Toast.makeText(\n getApplicationContext(),\n \"Connection to the server failed, please try again!\",\n Toast.LENGTH_LONG ).show();\n }",
"public void displayError(String error) {\r\n MipavUtil.displayError(error);\r\n }",
"public void showNetErrorMessage() {\n showMessage(R.string.ic_net_error_tipinfo);\n }",
"private void check_displaysError() {\n onView(withId(R.id.title))\n .check(matches(withText(R.string.input_title_error)));\n onView(withId(R.id.subtitle))\n .check(matches(withText(R.string.input_subtitle_error)));\n\n // And the button to be labeled try again\n onView(withId(R.id.hint))\n .check(matches(isDisplayed()))\n .check(matches(withText(R.string.input_hint_error)));\n }",
"@GetMapping(\"/error\")\n public String handleError() {\n return \"ErrorPage\";\n }",
"public ModelAndView notifyAboutInvalidData() {\n \tSystem.out.println(\"radi ovo obavestenje\");\n this.template.convertAndSend(\"/nc/errors\", \"Registration failed\");\n //return \"Korisničko ime/email već postoji u sistemu\";\n String projectUrl = \"http://localhost:4200/registration/error\";\n\t\treturn new ModelAndView(\"redirect:\" + projectUrl);\n }",
"@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tToast.makeText(mInflatedView.getContext(),\n\t\t\t\t\t\t\t\t\t\"Error Mal\" + e.getMessage(),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t}",
"@Override\r\n public void showErrorScreen(int stringId){\r\n AppContext.getCurrent().getNavigationService().goToMainActivity();\r\n AppContext.getCurrent().getActivity().showErrorScreen(stringId);\r\n }",
"public abstract void showErrorBox(String errorMessage, Runnable callback);",
"private void showErrorAlert()\n {\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n \tbuilder.setMessage(getResources().getString(R.string.app_error_str))\n \t .setCancelable(false)\n \t .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int id) {\n \t dialog.cancel();\n \t }\n \t });\n \t \n \tAlertDialog alert = builder.create();\n \talert.show();\n }",
"private JFrame popError() {\n\t\tJFrame f = new JFrame();\n\t\tf.setTitle(\"Error!\");\n\t\tf.setSize(200, 200);\n\t\tf.setLocationRelativeTo(null);\n\t\tJPanel showResult = new JPanel();\n\t\tJTextArea area = new JTextArea(\"No such Record!\");\n\t\tshowResult.add(area);\n\t\tf.add(showResult);\n\t\tf.setVisible(true);\n\t\treturn f;\n\t}",
"private void displayError(@NonNull final Exception exception) {\n logTextView.setText(exception.toString());\n }",
"private void showError(String error){\n errorInformation.setText(error);\n errorPane.setVisible(true);\n fadeEffect(0,1,150,errorPane);\n playSound(\"src/media/sound/error.mp3\");\n }",
"@Override\n public void onError(Throwable arg0, boolean arg1) {\n hideLoading();\n System.out.println(arg0.getMessage());\n }",
"@Override\n public void onError(Throwable arg0, boolean arg1) {\n hideLoading();\n System.out.println(arg0.getMessage());\n }",
"@Override \n \tpublic void displayRecognitionError(String[] tokenNames, RecognitionException e) \n { \n String header = getErrorHeader(e);\n String message = getErrorMessage(e, tokenNames);\n errorMessages.add(header + \" \" + message);\n System.out.println(\"ERROR DETECTED : \" + header + \" \" + message);\n }",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"private void displayGenericError(String errorMessage)\n {\n AlertDialog errorDialog = AlertBuilder.buildErrorDialog(this, errorMessage);\n errorDialog.show();\n }",
"private void displayError(boolean visible) {\n\t\tsetVisible(true);\n\t\tsetLayout(new BorderLayout(0, 0));\n\t\tif (errorPanel == null) {\n\t\t\terrorPanel = new ErrorPanel();\n\t\t\terrorPanel.addActionListenerToButton(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent event) {\n\t\t\t\t\tif (getData()) {\n\t\t\t\t\t\tdisplayError(false);\n\t\t\t\t\t\tinit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\tif (visible){\n\t\t\tif (!this.isAncestorOf(errorPanel))\n\t\t\t\tadd(errorPanel);\n\t\t}\n\t\telse {\n\t\t\tif (this.isAncestorOf(errorPanel))\n\t\t\t\tremove(errorPanel);\n\t\t}\n\t\t\n\t}"
] | [
"0.79521835",
"0.77362186",
"0.77361816",
"0.7545361",
"0.7399887",
"0.73942226",
"0.7379408",
"0.7346692",
"0.7312394",
"0.7298499",
"0.72828734",
"0.72828734",
"0.7159312",
"0.70199424",
"0.6960995",
"0.6923159",
"0.691686",
"0.687156",
"0.686489",
"0.68564004",
"0.6830808",
"0.68156165",
"0.67723227",
"0.67425483",
"0.6727637",
"0.67030996",
"0.669152",
"0.66771495",
"0.66671365",
"0.66590047",
"0.66372705",
"0.66330886",
"0.6630908",
"0.6619568",
"0.66169447",
"0.6611914",
"0.6607502",
"0.6562971",
"0.65612245",
"0.6560708",
"0.6550036",
"0.6547235",
"0.6529826",
"0.6519113",
"0.6505237",
"0.650472",
"0.6482413",
"0.6479922",
"0.64561665",
"0.6440421",
"0.64390785",
"0.64297986",
"0.6425913",
"0.6416155",
"0.6416155",
"0.6398254",
"0.63920116",
"0.638854",
"0.6381584",
"0.6381132",
"0.6377374",
"0.63595104",
"0.6348541",
"0.6346887",
"0.6341572",
"0.63269687",
"0.6322297",
"0.6317144",
"0.62864023",
"0.6267869",
"0.6264168",
"0.6260599",
"0.6259596",
"0.62588334",
"0.6257815",
"0.6257815",
"0.6257815",
"0.6256027",
"0.6251581",
"0.6251018",
"0.6233361",
"0.623282",
"0.6230493",
"0.6208248",
"0.6201813",
"0.6201691",
"0.61737674",
"0.6173084",
"0.6170948",
"0.6166578",
"0.6152806",
"0.6146276",
"0.6146276",
"0.6135105",
"0.6128285",
"0.6128285",
"0.6128285",
"0.6128285",
"0.61247915",
"0.61163276"
] | 0.68150514 | 22 |
Method used to show the loading view | public void showLoading() {
loadingLayout.setVisibility(View.VISIBLE);
mapView.setVisibility(View.GONE);
errorLayout.setVisibility(View.GONE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void showLoadingView() {\n handleLoadingContainer(false /* showContent */, false /* showEmpty */, false /* animate */);\n }",
"public void showLoading() {\n }",
"public void showLoadingView() {\n mStateView.showViewLoading();\n }",
"@Override\n public void showLoading() {\n setRefresh(true);\n }",
"private void showLoading()\n {\n relLoadingPanel.setVisibility(View.VISIBLE);\n ViewHelper.setViewGroupEnabled(scrMainContainer, false);\n }",
"private void showLoading() {\n hideNoNetwork();\n mRecipesBinding.fragmentRecipesProgressBar.setVisibility(View.VISIBLE);\n }",
"private void showLoading() {\n mRecycleView.setVisibility(View.INVISIBLE);\n /* Finally, show the loading indicator */\n mLoadingIndicator.setVisibility(View.VISIBLE);\n }",
"void showLoading(boolean isLoading);",
"void showLoading(boolean visible);",
"@Override\n public void showLoading() {\n Log.i(Tag, \"showLoading\");\n }",
"protected void showLoader() {\n if (progressBar != null) {\n progressBar.setVisibility(View.VISIBLE);\n }\n if(getActivity()!=null) {\n getActivity().getWindow().setFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE,\n WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);\n }\n }",
"protected void showLoading()\n {\n progressBar = new ProgressDialog(this);\n progressBar.setTitle(\"Loading\");\n progressBar.setMessage(\"Wait while loading...\");\n progressBar.setCancelable(false); // disable dismiss by tapping outside of the dialog\n progressBar.show();\n }",
"protected final void showLoadingDialog() {\n }",
"private void displayLoader() {\n pDialog = new ProgressDialog(AddReviewActivity.this);\n pDialog.setMessage(\"Adding Review...Please wait...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n\n }",
"private void displayLoader() {\n pDialog = new ProgressDialog(DangKyActivity.this);\n pDialog.setMessage(\"Vui lòng đợi trong giây lát...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n\n }",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tloadingView.setVisibility(View.VISIBLE);\n\t\t}",
"@Override\n protected void onStartLoading() {\n progressBar.setVisibility(View.VISIBLE);\n forceLoad();\n }",
"@Override\r\n\tpublic void showLoading(boolean isLoading) {\r\n\t\tsetSupportProgressBarIndeterminateVisibility(isLoading);\r\n\t}",
"private void setLoadingDisplay() {\n if (swipeRefreshing) {\n footer.clear();\n setRefreshing(true);\n } else if (loading) {\n footer.setLoading();\n }\n }",
"public void showLoadingError() {\n showError(MESSAGE_LOADING_ERROR);\n }",
"private void showLoadingDialog() {\n mDefaultLoadingDialogFragment = new DefaultLoadingDialogFragment();\n mDefaultLoadingDialogFragment.show(getChildFragmentManager(), \"loadingDialog\");\n }",
"@Override public void showLoading() {\n LoginViewState vs = (LoginViewState) viewState;\n vs.setShowLoading();\n\n errorView.setVisibility(View.GONE);\n setFormEnabled(false);\n }",
"@Override\n protected void onStartLoading() {\n super.onStartLoading();\n\n mLoadingIndicator.setVisibility(View.VISIBLE);\n\n forceLoad();\n }",
"public void startLoading() {\n projects.clear();\n processContainer.setVisibility(View.VISIBLE);\n progressSpinner.setVisibility(View.VISIBLE);\n progressText.setVisibility(View.VISIBLE);\n progressText.setText(\"Getting Items...\"); // Text updated using SetProgress()\n listView.setVisibility(View.GONE);\n }",
"@Override\r\n\t\tprotected void onPreExecute() {\r\n\t\t\tsuper.onPreExecute();\r\n\t\t\tshowLoading();\r\n\t\t}",
"@Override\n public Void call(Long aLong) {\n if (mShowLoading) {\n mView.showLoading(true);\n }\n return null;\n }",
"private void displayLoader() {\n pDialog = new ProgressDialog(RegisterActivity.this);\n pDialog.setMessage(\"Signing Up.. Please wait...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n\n }",
"@Override\n public void hiddenLoading() {\n Log.i(Tag, \"hiddenLoading\");\n }",
"void showMainLoadingWheel();",
"public void showProgress(){\n loadMainActivity.setVisibility(View.VISIBLE);\n recyclerView.setVisibility(View.INVISIBLE);\n }",
"@Override\n\tpublic RemoteViews getLoadingView() {\n\t\treturn null;\n\t}",
"@Override\r\n\t\t\t\t\tpublic void onLoadingStarted(String arg0, View arg1) {\n\t\t\t\t\t}",
"@Override\n public Boolean isLoading() {\n return loadingInProgress;\n }",
"@Override\r\n\t\tpublic void onLoadingStarted(String arg0, View arg1) {\n\t\t\t\r\n\t\t}",
"private void showLoadedResults() {\n recyclerView.setVisibility(View.VISIBLE);\n errorMessageDisplayView.setVisibility(View.INVISIBLE);\n }",
"public interface ILoadingView {\n\n /**\n * The loading message which will be shown on the loading view.\n *\n * @return Loading message/text\n */\n String getLoadingMessage();\n}",
"@Override\n\t\t\t\t\t\tpublic void onLoadingStarted(String arg0, View arg1) {\n\t\t\t\t\t\t}",
"public final void showLoadingIndicator(boolean z) {\n if (z) {\n ProgressBar progressBar = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbLoadingAuctionSaleList);\n Intrinsics.checkExpressionValueIsNotNull(progressBar, \"pbLoadingAuctionSaleList\");\n progressBar.setVisibility(0);\n return;\n }\n ProgressBar progressBar2 = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbLoadingAuctionSaleList);\n Intrinsics.checkExpressionValueIsNotNull(progressBar2, \"pbLoadingAuctionSaleList\");\n progressBar2.setVisibility(8);\n }",
"public void setLoading(boolean loading) {\n this.loading = loading;\n }",
"public void setUploading()\n {\n jPanel4.setVisible(false);\n th.start();\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n settLoadingScr.setVisibility(View.VISIBLE);\n\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n settLoadingScr.setVisibility(View.VISIBLE);\n\n }",
"public void startLoading() {\r\n\t\tgetDisplay().setRowCount(0, true);\r\n\t\tlabel1.setHTML(\"\");\r\n\t\tlabel2.setHTML(\"\");\r\n\t}",
"@Override\n\t\t\t\t\tpublic void onLoadingStarted(String arg0, View arg1) {\n\n\t\t\t\t\t}",
"private void hideLoading()\n {\n relLoadingPanel.setVisibility(View.GONE);\n ViewHelper.setViewGroupEnabled(scrMainContainer, true);\n }",
"private void showLoadingView(LoadingViewHolder viewHolder, int position) {\n\n }",
"public RemoteViews getLoadingView() {\n return null;\n }",
"public RemoteViews getLoadingView() {\n return null;\n }",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tshowLoadingProgressDialog();\n\t\t}",
"@Override\n public void onLoadingStarted(String arg0, View arg1) {\n }",
"public void showLoadingScreen() {\n setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\n getSelectGameScreenIfActive().ifPresent(new Consumer<SelectGameScreen>() {\n @Override\n public void accept(SelectGameScreen gameScreen) {\n gameScreen.setDisabled();\n }\n });\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n mLoadingIndicator.setVisibility(View.VISIBLE);\n }",
"@Override\n protected void onPreExecute() {\n showLoadingProgressDialog();\n }",
"@Override\n protected void onPreExecute() {\n showLoadingProgressDialog();\n }",
"@Override\n public void hideLoading() {\n if (progressDialog!=null && progressDialog.isShowing()){\n progressDialog.dismiss();\n }\n }",
"protected void onStartLoading() { forceLoad();}",
"private void showLoadingDialogue(final String loadingMessage) {\n progressDialog.setMessage(loadingMessage);\n progressDialog.setCancelable(false);\n progressDialog.setIndeterminate(false);\n progressDialog.show();\n }",
"private void showProgressIndicator() {\n setProgressBarIndeterminateVisibility(true);\n setProgressBarIndeterminate(true);\n }",
"void displayLoadingErrorMessage();",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tloadingAlert.show();\n\t\t}",
"private void displayLoadingIndicator(Boolean displayIndicator){\n Log.d(LOG_TAG, \"displayLoadingIndicator() => \" + displayIndicator);\n if (displayIndicator){\n /* Display the loading indicator */\n mLoadingIndicator.setVisibility(View.VISIBLE);\n } else {\n /* Hide the loading indicator */\n mLoadingIndicator.setVisibility(View.INVISIBLE);\n }\n }",
"void setLoading(boolean isLoading);",
"public void showProgressDialog() {\r\n progressDialog.setMessage(getResources().getString(R.string.text_loading));\r\n progressDialog.setCancelable(false);\r\n progressDialog.show();\r\n }",
"@Override\n public void onLoadingStarted(String paramString, View paramView) {\n\n }",
"public String getLoaded() {\n if (isLoaded) {\n return ui.showLoaded();\n } else {\n return ui.showLoadingError();\n }\n }",
"public interface BaseView\n{\n void showLoading();\n void hideLoading();\n}",
"public boolean isLoading() {\n return mIsLoading;\n }",
"@Override\n protected void onPreExecute() {\n loading = new LoadingController();\n // Show a progress spinner\n loading.showProgress(UserEditActivity.this, viewLoading, true);\n }",
"@Override\n protected void onPreExecute() {\n loading = new LoadingController();\n // Show a progress spinner\n loading.showProgress(UserEditActivity.this, viewLoading, true);\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n\n\n LoadingView.setVisibility(show ? View.VISIBLE : View.GONE);\n LoadingView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n LoadingView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n LoadingView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n }",
"public void displayLoadingWindowServerDown()\r\n\t{\r\n\t\tloadingWindow.hideLoadingBar();\r\n\t\tloadingWindow.setDescription(\"The HVMK server is down. Please try again later.\");\r\n\t}",
"public void showContent() {\n\n mapView.setVisibility(View.VISIBLE);\n loadingLayout.setVisibility(View.GONE);\n errorLayout.setVisibility(View.GONE);\n\n }",
"public void showLoadProcessPage() {\r\n\t\tmainFrame.setTitle(null);\r\n\t\tmainFrame.showPage(loadProcessPage.getClass().getCanonicalName());\r\n\t}",
"private void showProgressIndication() {\n Log.i(TAG, \"loading contacts... \");\n // TODO: make this be a no-op if the progress indication is\n // already visible with the exact same title and message.\n\n dismissProgressIndication(); // Clean up any prior progress indication\n\n mProgressDialog = new ProgressDialog(this);\n mProgressDialog.setMessage(this.getResources().getString(R.string.contact_list_loading));\t\n mProgressDialog.setIndeterminate(true);\n mProgressDialog.setCancelable(false);\n mProgressDialog.show();\n }",
"private void hideLoadingAndUpdate() {\n image.setVisibility(View.VISIBLE);\n loadingBar.setVisibility(View.INVISIBLE);\n shareBtn.setVisibility(shareBtnVisibility);\n\n }",
"public interface DevLoadingViewManager {\n\n void showMessage(final String message);\n\n void updateProgress(\n final @Nullable String status, final @Nullable Integer done, final @Nullable Integer total);\n\n void hide();\n}",
"public final void showLoadingIndicator(boolean z) {\n if (z) {\n ProgressBar progressBar = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbReviewPayment);\n Intrinsics.checkExpressionValueIsNotNull(progressBar, \"pbReviewPayment\");\n progressBar.setVisibility(0);\n return;\n }\n ProgressBar progressBar2 = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbReviewPayment);\n Intrinsics.checkExpressionValueIsNotNull(progressBar2, \"pbReviewPayment\");\n progressBar2.setVisibility(8);\n }",
"@Override\n protected void onPreExecute() {\n mLytContainerLayout.setVisibility(View.GONE);\n mToolbar.setVisibility(View.GONE);\n mPrgLoading.setVisibility(View.VISIBLE);\n }",
"protected void hideLoader() {\n\n if (progressBar != null) {\n progressBar.setVisibility(View.INVISIBLE);\n }\n if(getActivity()!=null) {\n getActivity().getWindow().clearFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);\n }\n\n }",
"@Override\n protected void onStartLoading() {\n if (mMovieData != null) {\n deliverResult(mMovieData);\n } else {\n mLoadingIndicator.setVisibility(View.VISIBLE);\n forceLoad();\n }\n\n }",
"public final void showLoadingIndicator(boolean z) {\n if (z) {\n ProgressBar progressBar = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbLogin);\n if (progressBar != null) {\n progressBar.setVisibility(0);\n return;\n }\n return;\n }\n ProgressBar progressBar2 = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbLogin);\n if (progressBar2 != null) {\n progressBar2.setVisibility(8);\n }\n }",
"public boolean isShowing() {\n\t\tLinearLayout loading = (LinearLayout) findViewById(R.id.loading);\n\t\treturn loading.getVisibility() == View.VISIBLE;\n\t}",
"public interface ILoaderView extends IView {\n\n void showLoading(String loadingMessage);\n\n void hideLoading();\n\n void showError(String title, String message);\n\n}",
"private void progressStuff() {\n cd = new ConnectionDetector(getActivity());\n parser = new JSONParser();\n progress = new ProgressDialog(getActivity());\n progress.setMessage(getResources().getString(R.string.loading));\n progress.setIndeterminate(false);\n progress.setCancelable(true);\n // progress.show();\n }",
"public interface BaseView {\r\n void showLoading();\r\n void hideLoading();\r\n}",
"@Override\n\tpublic void showProgress() {\n\t\twaitDialog(true);\n\t}",
"@Override\n protected void onStartLoading() {\n if (idlingResource != null) {\n idlingResource.setIdleState(false);\n }\n\n if (recepts != null) {\n deliverResult(recepts);\n } else {\n mLoadingIndicator.setVisibility(View.VISIBLE);\n forceLoad();\n }\n }",
"protected abstract String getLoadingMessage();",
"public interface WjrLoadingDisplay {\r\n\r\n /**\r\n * Starts the view.\r\n * \r\n * @param container\r\n * The view container.\r\n */\r\n public void go(HasWidgets container);\r\n\r\n /**\r\n * Notifies loaded to the view.\r\n */\r\n public void notifyLoaded();\r\n}",
"public void showLoading(int progressableContentFrameId) {\n // Look up ProgressableContentFrame in map by its id\n ProgressableContentFrame progressableContentFrame = progressableContentFrames.get(progressableContentFrameId);\n\n // Show the progress container\n progressableContentFrame.findViewById(progressableContentFrame.getProgressContainerId())\n .setVisibility(View.VISIBLE);\n\n // Hide the content\n progressableContentFrame.findViewById(progressableContentFrame.getContentContainerId())\n .setVisibility(View.INVISIBLE);\n }",
"@Override\r\n\t\tpublic void onLoadingComplete(String arg0, View arg1, Bitmap arg2) {\n\t\t\tholder.app_icon.setVisibility(View.VISIBLE);\r\n\t\t}",
"private void showDataView() {\n mLoadingIndicator.setVisibility(View.INVISIBLE);\n /* Finally, make sure the data is visible */\n mRecycleView.setVisibility(View.VISIBLE);\n }",
"private Dialog buildLoadingDialog() {\n ProgressDialog dialog = new ProgressDialog(this);\n dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n dialog.setMessage(getText(R.string.dialog_loading));\n dialog.setIndeterminate(true);\n dialog.setCancelable(false);\n return dialog;\n }",
"@Override\r\n public void onPreResponse() {\r\n findViewById(R.id.loader).setVisibility(View.VISIBLE);\r\n findViewById(R.id.mainContainer).setVisibility(View.GONE);\r\n findViewById(R.id.errorText).setVisibility(View.GONE);\r\n\r\n }",
"public void startLoadAnim(String msg) {\n avi.smoothToShow();\n loadTv.setText(msg);\n loadTv.setVisibility(View.VISIBLE);\n loginContainer.setVisibility(View.INVISIBLE);\n }",
"public void showContentOrLoadingIndicator(boolean contentLoaded) {\n final View showView = contentLoaded ? mContentView : mLoadView;\n final View hideView = contentLoaded ? mLoadView : mContentView;\n countAnim++;\n // Set the \"show\" view to 0% opacity but visible, so that it is visible\n // (but fully transparent) during the animation.\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB)\n showView.setAlpha(0f);\n showView.setVisibility(View.VISIBLE);\n\n // Animate the \"show\" view to 100% opacity, and clear any animation listener set on\n // the view. Remember that listeners are not limited to the specific animation\n // describes in the chained method calls. Listeners are set on the\n // ViewPropertyAnimator object for the view, which persists across several\n // animations.\n showView.animate()\n .alpha(1f)\n .setDuration(300)\n .setListener(null);\n\n // Animate the \"hide\" view to 0% opacity. After the animation ends, set its visibility\n // to GONE as an optimization step (it won't participate in layout passes, etc.)\n hideView.animate()\n .alpha(0f)\n .setDuration(300)\n .setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n hideView.setVisibility(View.GONE);\n }\n });\n }",
"@Override\n public void onLoadingComplete(String arg0, View arg1, Bitmap arg2) {\n holder.imageView.setVisibility(View.VISIBLE);\n }",
"@Override\n public void showloading(String message) {\n progressDialog = new ProgressDialog(getActivity());\n progressDialog.setMessage(message);\n progressDialog.setIndeterminate(true);\n progressDialog.show();\n }",
"public void onFinishFetching() {\n\t\t\t\thideLoading();\n\t\t\t\tUiApplication.getUiApplication().invokeLater(new Runnable() {\n\t\t\t\t\t\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tUiApplication.getUiApplication().pushScreen(new HomeScreen());\n\t\t\t\t\t}\n\t\t\t\t});\t\n\t\t\t}",
"String getLoadingMessage();"
] | [
"0.85469824",
"0.8424872",
"0.8303928",
"0.8284237",
"0.8231309",
"0.82079226",
"0.8056969",
"0.8022479",
"0.8008287",
"0.79482853",
"0.7784498",
"0.778066",
"0.77576923",
"0.7721073",
"0.76814157",
"0.76092464",
"0.75830793",
"0.75604266",
"0.7408138",
"0.73036486",
"0.7228303",
"0.7215562",
"0.7189718",
"0.717848",
"0.71658343",
"0.71366215",
"0.710527",
"0.7064943",
"0.70594305",
"0.6979153",
"0.6959192",
"0.6911831",
"0.69006836",
"0.69005543",
"0.6880315",
"0.68594706",
"0.68260354",
"0.6819164",
"0.68109196",
"0.6810898",
"0.68055046",
"0.68055046",
"0.68051785",
"0.67917985",
"0.67810476",
"0.6773047",
"0.6757383",
"0.6757383",
"0.6751903",
"0.67492855",
"0.66921616",
"0.6690282",
"0.6687982",
"0.6687982",
"0.6686423",
"0.66791886",
"0.6673353",
"0.66615623",
"0.662744",
"0.6598342",
"0.6592775",
"0.6587474",
"0.6587413",
"0.658097",
"0.6570201",
"0.6566232",
"0.65585244",
"0.65554357",
"0.65554357",
"0.6554907",
"0.6553779",
"0.65527004",
"0.6550497",
"0.6546617",
"0.6543523",
"0.6543169",
"0.6540609",
"0.65372",
"0.6512709",
"0.6509218",
"0.6508154",
"0.650638",
"0.64963925",
"0.6477341",
"0.64772457",
"0.64424115",
"0.64276576",
"0.6420832",
"0.64169383",
"0.64159614",
"0.64151716",
"0.6413332",
"0.64047164",
"0.6396173",
"0.63947654",
"0.6389029",
"0.63883305",
"0.6381401",
"0.63531196",
"0.6349893"
] | 0.80597043 | 6 |
Method used to show the listView | public void showContent() {
mapView.setVisibility(View.VISIBLE);
loadingLayout.setVisibility(View.GONE);
errorLayout.setVisibility(View.GONE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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 }",
"private void showListView()\n {\n SimpleCursorAdapter adapter = new SimpleCursorAdapter(\n this,\n R.layout.dataview,\n soldierDataSource.getCursorALL(), //\n _allColumns,\n new int[]{ R.id.soldierid, R.id.username, R.id.insertedphone, R.id.password},\n 0);\n\n table.setAdapter(adapter);\n }",
"public void populateListView() {\n\n\n }",
"private void inicializaListView(){\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}",
"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 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}",
"private void viewList() {\r\n PrintListMenuView listMenu = new PrintListMenuView();\r\n listMenu.displayMenu();\r\n }",
"@Override\r\n\tpublic void goToShowList() {\n\t\t\r\n\t}",
"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 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 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 display()\n {\n tasksColumn.setCellValueFactory(new PropertyValueFactory<>(\"task\"));\n completionDateColumn.setCellValueFactory(new PropertyValueFactory<>(\"completionDate\"));\n completedColumn.setCellValueFactory(new PropertyValueFactory<>(\"completed\"));\n\n listView.getItems().add(Item.getToDoList().get(index));\n index++;\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 }",
"@Override\n\tpublic void initView() {\n\t\tmylis_show.setTitleText(\"我的物流\");\n\t\tlistView = mylis_listview.getRefreshableView();\n\t\t\n\t}",
"private void populateListView() {\n ArrayAdapter<Representative> adapter = new MyListAdapter();\n ListView list = (ListView) findViewById(R.id.repListView);\n list.setAdapter(adapter);\n }",
"protected void displayListView(ListView eventsList) {\n final ArrayAdapter adapter = new EventsAdapter(this, events);\n eventsList.setAdapter(adapter);\n eventsList.setVisibility(View.VISIBLE);\n }",
"private void showList() {\n try {\n swipeRefreshLayout.setVisibility(View.VISIBLE);\n tvMessage.setVisibility(View.GONE);\n\n /* to void duplicate data*/\n Set<NewsDetail> newsDetailSet = new HashSet<NewsDetail>(newsList);\n\n newsList.clear();\n newsList = new ArrayList<NewsDetail>(newsDetailSet);\n if (adapter == null) {\n adapter = new NewsListAdapter(mContext, newsList);\n listView.setAdapter(adapter);\n } else {\n adapter.notifyDataSetChanged();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"public abstract void executeListView(int pos);",
"private void showMyAdapt() {\n\t\tmyAdapt = new MyAdapt(this, persons);\n\t\tlistView.setAdapter(myAdapt);\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 }",
"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 }",
"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 }",
"ListView getShowReportListView();",
"@Override\n protected void initView() {\n mListView = (ListView) findViewById(R.id.list);\n ViewGroup.LayoutParams layoutParams = mListView.getLayoutParams();\n layoutParams.width = ViewGroup.LayoutParams.MATCH_PARENT;\n layoutParams.height = AppController.displayMetrics.heightPixels / 2;\n mListView.setLayoutParams(layoutParams);\n\n\n mSelectChatAdapter = new SelectChatAdapter(getContext());\n mListView.setAdapter(mSelectChatAdapter);\n mListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n goToHXMain(\n HXApplication.getInstance().parseUserFromID(HXHelper.yamContactList.get(position)\n .getFirendsUserInfo().getId(), HXConstant.TAG_SHOP));\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 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 }",
"void showTodoView();",
"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 }",
"private void showArrayAdaptView() {\n\t\tPersonAdapt personAdapt = new PersonAdapt(this, persons, R.layout.listview_item);\n\t\tlistView.setAdapter(personAdapt);\n\t}",
"private void showList() {\n\n if(USE_EXTERNAL_FILES_DIR) {\n mList = mFileUtil.getFileNameListInExternalFilesDir();\n } else {\n mList = mFileUtil.getFileListInAsset(FILE_EXT);\n }\n mAdapter.clear();\n mAdapter.addAll(mList);\n mAdapter.notifyDataSetChanged();\n mListView.invalidate();\n}",
"public void updateListView(){\n mAdapter = new ListViewAdapter(getActivity(),((MainActivity)getActivity()).getRockstarsList());\n mRockstarsListView.setAdapter(mAdapter);\n }",
"void onPrepareListView(ListView listView);",
"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 }",
"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}",
"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 setupListView() {\n potList = loadPotList();\n arrayofpots = potList.getPotDescriptions();\n refresher(arrayofpots);\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}",
"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 }",
"@Override\n\tprotected String getView() {\n\t\treturn ORSView.COLLEGE_LIST_VIEW;\n\t}",
"public void displayStudentFold(View view){\n\n classList = (ListView) findViewById(R.id.foldList);\n\n // get the student details\n list = new ArrayList<>();\n for (int i = 0; i < studentList.size(); i++) {\n list.add(studentList.get(i).getStudentName());\n }\n\n // sort the student list\n Collections.sort(studentList, new CustomComparator());\n\n adapter = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, list);\n\n classList.setOnItemClickListener(null); // does not go anywhere when clicked\n // TODO: onClick will take the user to the information about the student's attendance\n\n classList.setAdapter(adapter);\n\n }",
"public FriendsView() {\n initComponents();\n try\n {\n ShowList();\n }\n catch (Exception e)\n {\n \n }\n }",
"private void initListView() {\n listView = (ListView) findViewById(R.id.lv_pingpai_listview);\r\n pingpaiList = new ArrayList<>();\r\n adapter = new PingpaiAdapter(this, pingpaiList);\r\n listView.setAdapter(adapter);\r\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\r\n @Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\r\n Pingpai pingpai = (Pingpai) adapter.getItem(position);\r\n Intent intent = new Intent(PingpaiActivity.this, XinghaoActivity.class);\r\n intent.putExtra(\"pingpai\", pingpai);\r\n startActivity(intent);\r\n finish();\r\n\r\n }\r\n });\r\n// sortListView.setmOnTouchListener(new SortListView.OnTouchListener() {\r\n// @Override\r\n// public void onTouch(String s) {\r\n// Integer index = adapter.getPosition(s);\r\n// if (index != null) {\r\n// listView.setSelection(index);\r\n// }\r\n// }\r\n// });\r\n// listView.setAdapter(adapter);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_information, container, false);\n\n /*infoNetwork = new InfoNetwork();\n //list = infoNetwork.getInfoMain();*/\n\n /*listView = (ListView)view.findViewById(R.id.listView);\n\n informationAdapter = new InformationAdapter(getContext());\n informationAdapter.setList(list);\n listView.setAdapter(informationAdapter);\n\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n getActivity()\n .getSupportFragmentManager()\n .beginTransaction()\n .replace(R.id.fragmentContainer, new InfoDetailFragment())\n .addToBackStack(null)\n .commit();\n }\n });*/\n\n return view;\n }",
"private void populateListView() {\n ((MovieAdapter)((HeaderViewListAdapter)myListView.getAdapter()).getWrappedAdapter()).notifyDataSetChanged();\n\n // Check if the user selected a specific movie and start a new activity with only that movie's information.\n myListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Movie selectedMovie = movies.get(position);\n\n Intent intent = new Intent(MovieListActivity.this, MovieOverviewActivity.class);\n intent.putExtra(TITLE_KEY, selectedMovie.getTitle());\n intent.putExtra(RELEASE_DATE_KEY, selectedMovie.getReleaseDate());\n intent.putExtra(RATING_KEY, selectedMovie.getRating());\n intent.putExtra(OVERVIEW_KEY, selectedMovie.getOverview());\n intent.putExtra(POSTER_PATH_KEY, selectedMovie.getPosterURL());\n startActivity(intent);\n }\n });\n }",
"public void initView() {\n ArrayAdapter<String> arrayAdapter=new ArrayAdapter<String>(getView().getContext(),android.R.layout.simple_list_item_1,tracks);\n list.setAdapter(arrayAdapter);\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 populateListView() {\n\t\tappList = getPackages();\n\t\tListView lv = (ListView) findViewById(R.id.TheListView);\n\t\tList<String> appNames = new ArrayList<String>();\n\t\tList<Drawable> appIcons = new ArrayList<Drawable>();\n\t\tfor(PInfo pi : appList){\n\t\t\tappNames.add(pi.getAppname());\n\t\t\tappIcons.add(pi.getIcon());\n\t\t}\n\t\tCustomListViewAdapter adapter = new CustomListViewAdapter(this, R.layout.app_name_icon, appNames.toArray(new String[appNames.size()]),appIcons.toArray(new Drawable[appIcons.size()]));\n\t\tlv.setAdapter(adapter);\n\t\tlv.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View view, int position,\n\t\t\t\t\tlong id) {\n\t\t\t\tToast.makeText(GetAppActivity.this, \"You Chose\"+appList.get(position).appname, Toast.LENGTH_SHORT).show();\n\t\t\t\tif(appList.get(position).toOpen!=null){\n\t\t\t\tgridModel.addIntent(appList.get(position).toOpen);\n\t\t\t\tstartActivity(appList.get(position).toOpen);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t}",
"private void startListActivity() {\n\t\tCursor c = mDbHelper.fetchAllNotes(TableName);\n\t\tString[] from = new String[]{NotesDbAdapter.KEY_TITLE};\n\t\tint[] to = new int[] {android.R.id.text1 };\n\t\tnotes = new SimpleCursorAdapter(this,android.R.layout.simple_list_item_1,c,from, to);\n\t\t\n\t\t////\n\t\tlv = (ListView) findViewById(R.id.titleList2);\n\t\tlv.setAdapter(adapter);\n\t\t\n\t\tlv.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\t\t\t\tCursor c = mDbHelper.fetchNote(TableName,arg3);\n\t\t\t\t\t\t\t\tstartActivity(c.getString(1),c.getString(2),arg3);\n\t\t\t}\n\t\t});\n\t\tlv.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic boolean onItemLongClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tDialogButton a = new DialogButton(ctx,TableName,arg3);\n\t\t\t\ta.createEdit();\n\t\t\t\ta.show();\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\n\t\t\t\n\t\t});\n\t}",
"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 }",
"private void displayListView() {\n ArrayList<UserData> countryList = new ArrayList<UserData>();\n UserData country = new UserData(\"User1\",false);\n countryList.add(country);\n country = new UserData(\"User2\",false);\n countryList.add(country);\n country = new UserData(\"User3\",false);\n countryList.add(country);\n country = new UserData(\"User5\",false);\n countryList.add(country);\n country = new UserData(\"User6\",false);\n countryList.add(country);\n country = new UserData(\"User7\",false);\n countryList.add(country);\n country = new UserData(\"User8\",false);\n countryList.add(country);\n\n //create an ArrayAdaptar from the String Array\n dataAdapter = new MyCustomAdapter(getActivity(),\n R.layout.user_list_item, countryList);\n\n // Assign adapter to ListView\n listView.setAdapter(dataAdapter);\n\n\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n // When clicked, show a toast with the TextView text\n UserData country = (UserData) parent.getItemAtPosition(position);\n // Toast.makeText(getActivity(),\n // \"Clicked on Row: \" + country.getName(),\n // Toast.LENGTH_LONG).show();\n }\n });\n\n }",
"public void showMediaList(){\r\n mediaView.showMediaList(getMediaList());\r\n }",
"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 }",
"@Override\n public int getCount() {\n return listInfo.size();\n }",
"@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 }",
"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 initView() {\n listView = (ListView)findViewById(R.id.phonesListView);\n listView.setEmptyView(findViewById(R.id.emptyElement));\n adapter = new PhonesCursorAdapter(this,cursor,false);\n listView.setAdapter(adapter);\n listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE_MODAL);\n listView.setMultiChoiceModeListener(new AbsListView.MultiChoiceModeListener() {\n @Override\n public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) {\n\n }\n\n @Override\n public boolean onCreateActionMode(ActionMode mode, Menu menu) {\n MenuInflater menuInflater = mode.getMenuInflater();\n menuInflater.inflate(R.menu.list_menu,menu);\n return true;\n }\n\n @Override\n public boolean onPrepareActionMode(ActionMode mode, Menu menu) {\n return false;\n }\n\n @Override\n public boolean onActionItemClicked(ActionMode mode, MenuItem item) {\n switch (item.getItemId()){\n case R.id.deletePhones:\n deletePhones();\n return true;\n }\n return false;\n }\n\n @Override\n public void onDestroyActionMode(ActionMode mode) {\n\n }\n });\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n //Pobierz dane z bazy na temat wybranego obiektu i przekazuje do\n //kolejnej aktywnosci\n\n //pobieramy dane wybranego telefonu\n Cursor cursor = ResolverHelper.getData((int) id, MainListaActivity.this.getContentResolver());\n Bundle bundle = new Bundle();\n while(cursor.moveToNext()){\n bundle.putString(Constants._ID,cursor.getString(0));\n bundle.putString(Constants.PRODUCENT,cursor.getString(1));\n bundle.putString(Constants.MODEL_NAME,cursor.getString(2));\n bundle.putString(Constants.ANDR_VER,cursor.getString(3));\n bundle.putString(Constants.WWW,cursor.getString(4));\n }\n cursor.close();\n Intent intent = new Intent(MainListaActivity.this,PhoneActivity.class);\n intent.putExtras(bundle);\n startActivity(intent);\n }\n });\n }",
"private void showFriendList() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(this,R.style.AlertDialogCustom));\n\t\tbuilder.setTitle(\"好友列表\");\n\t\tView FriendListView = LayoutInflater.from(this).inflate(R.layout.friend_list_view, null);\n\t\t\n\t\tfinal ListView listView = (ListView) FriendListView.findViewById(R.id.mapfriendlistView);\n\t\tSimpleAdapter simple_adapter = new SimpleAdapter(LocationActivity.this,\n\t\tdataList, R.layout.list_item,\n\t\tnew String[] { \"image\", \"NickName\",\"Sex\",\"Date\" }, new int[] { R.id.image,\n\t\t\t\tR.id.map_AppID,R.id.map_Sex,R.id.map_Date });\n\t\tlistView.setAdapter(simple_adapter);\n\n\t\tlistView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View view, int position,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tSystem.out.println(position);\n\t\t\t\tshowFriendLatLng(position);\n\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n builder.setView(FriendListView);\n\t\tdialog = builder.create();\n\t\tdialog.show();\n\t\t\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 void setUpViews(){\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n // ListView Clicked item index\n Intent i = new Intent(getActivity(), MediaDetailActivity.class);\n Media media = lectures.get(position);\n i.putExtra(\"url\", media.getUrl());\n i.putExtra(\"type\", media.type);\n i.putExtra(\"author\", media.author);\n i.putExtra(\"author_image_url\", media.getImageUrl());\n i.putExtra(\"name\", media.getName());\n startActivity(i);\n }\n });\n }",
"@Override\r\n public int getCount() {\n return list.size();\r\n }",
"@Override\r\n public int getCount() {\n return list.size();\r\n }",
"private void initListView() {\n lv.setAdapter(new PathListViewAdapter(getActivity(), R.layout.file_list_row, values));\n lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n if (new File(values.get(position).getPath()).isDirectory()) {\n FileGridViewFragment fragment = new FileGridViewFragment();\n Bundle b = new Bundle();\n b.putString(\"dir\", values.get(position).getPath());\n b.putString(\"filetype\",getArguments().getString(\"filetype\"));\n fragment.setArguments(b);\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(contentId, fragment)\n .addToBackStack(getArguments().getString(\"filetype\")).commit();\n } else {\n Toast.makeText(getActivity(), values.get(position).getPath(), Toast.LENGTH_SHORT).show();\n }\n }\n });\n }",
"private void supaporn() {\n\t\tlistView = (ListView) findViewById(R.id.listView1);\n\t\tlists = new ArrayList<items_list>();\n\t\tadapter=new MyAdater();\n\t\tlistView.setAdapter(adapter);\n\t}",
"private void populateListView() {\n String[] myItems = {\"Blue\", \"green\", \"Purple\", \"red\"};\n\n //creating listviewadapter which is an array for storing the data and linking it according to the\n //custom listview\n\n ArrayAdapter<String> listViewAdapter = new ArrayAdapter<String>(this, R.layout.da_items, myItems);\n //linking the listview with our adapter to present data\n ListView Lv = (ListView)findViewById(R.id.listView_data);\n Lv.setAdapter(listViewAdapter);\n }",
"@Override\n public int getCount() {\n return listInfoList.size();\n }",
"public void refreshListClicked(View view){\n\n mPetList = ((ListView) findViewById(R.id.pet_list_view));\n\n final ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_expandable_list_item_1, petList);\n mPetList.setAdapter(adapter);\n }",
"private void updateListView() {\n fileList.getItems().setAll(files.readList());\n //System.out.println(System.currentTimeMillis() - start + \" мс\");\n }",
"private void updateListView() {\n adapter = new TableItemAdapter(this, tableItems);\n this.listView.setAdapter(adapter);\n }",
"private void showPopUp() {\n ListView listViewItems = new ListView(this);\n listViewItems.setAdapter(adapter);\n listViewItems.setAdapter(adapter);\n\n // put the ListView in the pop up\n alertDialog = new AlertDialog.Builder(MainActivity.this)\n .setView(listViewItems)\n .setTitle(\"alertDialog\")\n .show();\n }",
"public void onList( View view )\n {\n Intent intent = new Intent( this, ThingListActivity.class );\n\n startActivity( intent );\n }",
"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 public View getView(Context context) {\n this.mContext = context;\n LayoutInflater factory = LayoutInflater.from(context);\n View view = factory.inflate(R.layout.item_wifi, null);\n mlvWifi = (ListView) view.findViewById(R.id.mlswifi);\n mbtnWifiConnect = (TextView) view.findViewById(R.id.mtvwificon);\n\t\tlistOnItemLongclick();\n return view;\n }",
"private View createList( SyndFeed feed, Activity activity ) {\n\n LinearLayout mainPanel = new LinearLayout( activity );\n ListView listView = new ListView( activity );\n final FeedListAdapter feedListAdapter = new FeedListAdapter(activity, feed);\n listView.setOnItemClickListener( new AdapterView.OnItemClickListener()\n {\n public void onItemClick( AdapterView<?> parentView, View childView, int position, long id )\n {\n feedListAdapter.click( position );\n }\n } );\n listView.setAdapter(feedListAdapter);\n listView.setBackgroundColor(0xFFffeaab);\n mainPanel.addView(listView);\n return mainPanel;\n }",
"private void gotoCheckInListView() {\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}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLog.d(\"jsonlog\", \"on click of show list view\");\r\n\t\t\t\t\r\n\t\t\t\t detailsList = new ArrayList<HashMap<String,String>>();\r\n\t\t\t\turl = \"http://10.0.2.2:8080/allgreetings\";\r\n\t\t\t\t\r\n\t\t\t\tnew getjsonlist().execute();\r\n\t\t\t\t\r\n\t\t\t}",
"public void initLista(ListView<Colocacion> listView){\n DataColocacion datos=new DataColocacion();\n colocaciones = FXCollections.observableArrayList(datos.viewColocacion(\"viewall\"));\n colocaciondata=new FilteredList<Colocacion>(colocaciones, s->true);\n listView.setItems(colocaciondata);\n //para llenar las filas personalizadas\n\n listView.setCellFactory(new Callback<ListView<Colocacion>, ListCell<Colocacion>>() {\n @Override\n public ListCell<Colocacion> call(ListView<Colocacion> param) {\n ColocacionCell colocacionCell=new ColocacionCell();\n return colocacionCell;\n }\n });\n\n }",
"public void buildList(View v)\n {\n ListView lv = (ListView) v.findViewById(R.id.foodListView);\n this.foodListAdapter = new FoodListAdapter(this.getContext(), R.layout.adapter_food_list_row, this.foodAppState.allFoods.foodList,this);\n lv.setAdapter(this.foodListAdapter);\n\n Toast.makeText(this.getContext(), \"FoodListFragment.buildList\", Toast.LENGTH_SHORT).show();\n }",
"private void setOnListView() {\n\t\tlist.setItems(obs);\n\t\tlist.setCellFactory(new Callback<ListView<User>, ListCell<User>>(){\n\n\t\t\t@Override\n\t\t\tpublic ListCell<User> call(ListView<User> p) {\n\t\t\t\t\n\t\t\t\tListCell<User> cell = new ListCell<User>() {\n\t\t\t\t\t\n\t\t\t\t\t@Override \n\t\t\t\t\tprotected void updateItem(User s, boolean bln) {\n\t\t\t\t\t\tsuper.updateItem(s, bln);\n\t\t\t\t\t\tif(s != null) {\n\t\t\t\t\t\t\tsetText(s.getUserName());\n\t\t\t\t\t\t}else\n\t\t\t\t\t\t\tsetText(\"\");\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\treturn cell;\n\t\t\t}\n\t\t});\n\t}",
"public void toList(View view) {\n startActivity(new Intent(LaunchingActivity.this, ListActivity.class));\n }",
"@Override\n public int getCount() {\n return list.size();\n }",
"@Override\n public int getCount() {\n return list.size();\n }",
"private void showDashboardListView() {\n mEmptyView.setVisibility(View.INVISIBLE);\n mDashboardList.setVisibility(View.VISIBLE);\n }",
"private ListView getListView() {\n\t\treturn null;\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}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tshowListView();\r\n\t\t\t\tmPullRefreshScrollView.setLoadRefreshing();\r\n\t\t\t}",
"public static void addView() {\n\t\tListView listview = (ListView) main_detail.findViewById(R.id.listview);\n\t\tbaseAdapter = new BaseAdapter(getActivity(), new ArrayList<Object>()) {\n\t\t\t@Override\n\t\t\tpublic BaseView getView(Context context, Object data) {\n\t\t\t\tfinal ProfileRecommentItemView profileRecommentItemView = new ProfileRecommentItemView(context);\n\t\t\t\treturn profileRecommentItemView;\n\t\t\t}\n\t\t};\n\t\tbaseAdapter.clear();\n\t\tbaseAdapter.addAllItems(baseItemsCreditMain);\n\t\tbaseAdapter.notifyDataSetChanged();\n\t\tlistview.setOnItemClickListener(new OnItemClickListener() {\n\t\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tBaseItem baseItem = (BaseItem) parent.getItemAtPosition(position);\n//\t\t\t\tfinishEC(baseItem.getString(\"id_card\"));\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tlistview.setAdapter(baseAdapter);\n\t}",
"public void loadListView(ArrayList<LonelyPicture> picList){\n \t\n\t\t\t\t\n\n\t\t adapter = new ArrayAdapter<LonelyPicture>(getActivity().getApplicationContext(),\n\t\t android.R.layout.simple_list_item_multiple_choice, android.R.id.text1, picList);\n\t\t \n\n\t\t picListView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);\n\t\t picListView.setAdapter(adapter);\n\t\t\n\t\t \n\t\t //picListView = (ListView) findViewById(R.id.picListView);\n\t\t//will this really work?\n\t\t\n\t\t\t picListView = (ListView) getActivity().findViewById(R.id.picListView);\n\t\t\t picListView.setOnItemClickListener(new OnItemClickListener() {\n\t\t\t\t\t\n\t\t\t\t public void onItemClick(AdapterView<?> a, View v, int i, long l){\n\t\t\t\t\t MainActivity.fetch = (LonelyPicture) picListView.getItemAtPosition(i);\n\t\t\t\t\tMainActivity.printList.add((LonelyPicture) picListView.getItemAtPosition(i));\n\t\t\t\t\tButton right = (Button) getActivity().findViewById(R.id.show_and_back_button);\n\t\t\t\t\tright.setEnabled(true);\n\t\t\t\t\tLog.e(\"From picListFragment--guid\", MainActivity.fetch.getGUID());\n\t\t\t\t\t\n\t\t\t\t }});\n\t\t \n }",
"private void initListView(View view)\n {\n\n theListView = (ListView) view.findViewById(R.id.ml_list_view);\n theListAdapter = new TextAdapter(layoutInflater);\n theListView.setAdapter((ListAdapter) theListAdapter);\n\n }",
"public void refreshListView() {\n \n \tLog.i(\"refresh list view\", \"Enter\");\n \ttry {\n \t\tif(taskListCursor != null) {\n\t \t\ttaskListCursor.close();\n\t \t\ttaskListCursor = null;\n \t\t}\n FileDbAdapter fda = new FileDbAdapter();\n fda.open();\n \t\ttaskListCursor = fda.fetchTasksForSource(getSource(), true);\n \tfda.close();\n \t} catch (Exception e) {\n \t\te.printStackTrace(); \t// TODO handle exception\n \t}\n \ttasks.changeCursor(taskListCursor);\n \tstartManagingCursor(taskListCursor);\n \ttasks.notifyDataSetChanged();\n\n }",
"@Override\n public int getCount() {\n return list.size();\n }",
"@Override\n public int getCount() {\n return list.size();\n }",
"@Override\n public int getCount() {\n return list.size();\n }",
"@Override\n public int getCount() {\n return list.size();\n }",
"@Override\n public int getCount() {\n return list.size();\n }",
"@Override\n public int getCount() {\n return list.size();\n }",
"@Override\n public int getCount() {\n return list.size();\n }",
"@Override\n public int getCount() {\n return list.size();\n }",
"@Override\n public int getCount() {\n return list.size();\n }",
"@Override\n public int getCount() {\n return list.size();\n }"
] | [
"0.7821444",
"0.76669836",
"0.7426491",
"0.7405857",
"0.7314197",
"0.7305197",
"0.7303808",
"0.72066134",
"0.7072402",
"0.70572585",
"0.70389676",
"0.70315576",
"0.69906557",
"0.69690007",
"0.69383246",
"0.6922169",
"0.68933505",
"0.6887983",
"0.68377835",
"0.6837103",
"0.68177444",
"0.6813908",
"0.67871684",
"0.676772",
"0.67480093",
"0.66496015",
"0.66484267",
"0.66420764",
"0.6633524",
"0.66024",
"0.6575828",
"0.657159",
"0.65696883",
"0.6563893",
"0.6563837",
"0.65238845",
"0.6518525",
"0.6506696",
"0.6480025",
"0.6452301",
"0.64514107",
"0.64485943",
"0.644614",
"0.64453715",
"0.6443635",
"0.6438574",
"0.64194834",
"0.6395246",
"0.63812155",
"0.6358127",
"0.6343624",
"0.6338814",
"0.6335965",
"0.6334682",
"0.63222045",
"0.63186395",
"0.6316829",
"0.63132966",
"0.6305301",
"0.63036567",
"0.63014925",
"0.62933004",
"0.6283045",
"0.6278295",
"0.6278152",
"0.627742",
"0.627231",
"0.62721866",
"0.62682134",
"0.6261657",
"0.62611383",
"0.62600434",
"0.62595206",
"0.6258355",
"0.62512857",
"0.62493837",
"0.62481",
"0.6247215",
"0.6227403",
"0.6226314",
"0.6219883",
"0.62195146",
"0.62195146",
"0.621786",
"0.6217472",
"0.62169605",
"0.6213815",
"0.6213531",
"0.6212697",
"0.621267",
"0.62117344",
"0.6207584",
"0.6207584",
"0.6207584",
"0.6207584",
"0.6207584",
"0.6207584",
"0.6207584",
"0.6207584",
"0.6207584",
"0.6207584"
] | 0.0 | -1 |
Prepare the dialog by setting up a Builder. | private void showMapTypeSelectorDialog() {
final String fDialogTitle = getActivity().getString(R.string.select_map);
AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
builder.setTitle(fDialogTitle);
// Find the current map type to pre-check the item representing the current state.
int checkItem = map.getMapType() - 1;
// Add an OnClickListener to the dialog, so that the selection will be handled.
builder.setSingleChoiceItems(
MAP_TYPE_ITEMS,
checkItem,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int item) {
// Locally create a finalised object.
Log.d("DIALOG", String.valueOf(item));
// Perform an action depending on which item was selected.
switch (item) {
case 0:
map.setMapType(GoogleMap.MAP_TYPE_NORMAL);
break;
case 1:
map.setMapType(GoogleMap.MAP_TYPE_SATELLITE);
break;
case 2:
map.setMapType(GoogleMap.MAP_TYPE_TERRAIN);
break;
case 3:
map.setMapType(GoogleMap.MAP_TYPE_HYBRID);
break;
default:
break;
}
dialog.dismiss();
}
}
);
// Build the dialog and show it.
AlertDialog fMapTypeDialog = builder.create();
fMapTypeDialog.setCanceledOnTouchOutside(true);
fMapTypeDialog.show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}",
"private void initDialog() {\n }",
"private void createDialog() {\r\n final AlertDialog dialog = new AlertDialog.Builder(getActivity()).setView(R.layout.dialog_recorder_details)\r\n .setTitle(\"Recorder Info\").setPositiveButton(\"Start\", (dialog1, which) -> {\r\n EditText width = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_width);\r\n EditText height = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_height);\r\n CheckBox audio = (CheckBox) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_audio_checkbox);\r\n EditText fileName = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_filename_name);\r\n mServiceHandle.start(new RecordingInfo(Integer.parseInt(width.getText().toString()), Integer.parseInt(height.getText().toString()),\r\n audio.isChecked(), fileName.getText().toString()));\r\n dialog1.dismiss();\r\n }).setNegativeButton(\"Cancel\", (dialog1, which) -> {\r\n dialog1.dismiss();\r\n }).show();\r\n Point size = new Point();\r\n getActivity().getWindowManager().getDefaultDisplay().getRealSize(size);\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_width)).setText(Integer.toString(size.x));\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_height)).setText(Integer.toString(size.y));\r\n }",
"protected void 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}",
"private void setup(){\n\t\t\n\t\t//set the dialog title\n\t\tsetText(LocaleText.get(\"createSPSSFileDialog\"));\n\t\t//create the status text\n\t\tstatusLabel = new Label();\n\t\t\n\t\t//create the buttons\n\t\tButton btnCancel = new Button(LocaleText.get(\"close\"), new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tcancel();\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnCreate = new Button(LocaleText.get(\"createSPSSFileDialog\"), new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tcreateSPSSFile();\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnSave = new Button(LocaleText.get(\"save\"), new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tsave();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\t\t\n\t\t\n\t\t//update the languages in the form.\n\t\tFormHandler.updateLanguage(Context.getLocale(), Context.getLocale(), form);\n\t\t//add the languages to the language drop down\n\t\tfor(Locale l : form.getLocales())\n\t\t{\n\t\t\tlistBoxLanguages.addItem(l.getName());\n\t\t}\n\t\t\n\t\t//setup the text area\n\t\tspssText.setCharacterWidth(30);\n\t\tspssText.setPixelSize(300, 300);\n\t\t\n\t\t\n\t\tFlexCellFormatter formatter = table.getFlexCellFormatter();\n\t\t\n\t\t//now add stuff to the UI\n\t\tint row = 0;\n\t\ttable.setWidget(row, 0, new Label(LocaleText.get(\"language\")));\n\t\ttable.setWidget(row, 1, listBoxLanguages);\n\t\trow++;\n\t\ttable.setWidget(row, 0, spssText);\n\t\tformatter.setColSpan(row, 0, 2);\n\t\tformatter.setHeight(row, 0, \"300px\");\n\t\tformatter.setWidth(row, 0, \"300px\");\n\t\trow++;\n\t\ttable.setWidget(row, 0, statusLabel);\n\t\trow++;\n\t\ttable.setWidget(row, 0, btnCreate);\n\t\trow++;\n\t\ttable.setWidget(row, 0, btnSave);\n\t\ttable.setWidget(row, 1, btnCancel);\n\t\trow++;\n\t\ttable.setWidget(row, 0, appletHtml);\n\t\t\n\t\t\t\t\t\t\n\t\t//some random UI stuff to make everything nice and neat\n\t\tVerticalPanel panel = new VerticalPanel();\n\t\tFormUtil.maximizeWidget(panel);\n\t\tpanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);\n\t\tpanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);\n\t\tpanel.add(table);\n\t\t\n\t\tsetWidget(panel);\n\t\t\n\t\tsetWidth(\"200px\");\t\t\n\t}",
"public abstract void initDialog();",
"public ClassChoiceDialog(Context context) {\n // 通过LayoutInflater来加载一个xml的布局文件作为一个View对象\n this.context = context;\n initialView();\n dialog = builder.create();\n initListener();\n\n }",
"public void prepareBroadcast() {\r\n\t\ttheDialog.show();\r\n\t\ttry {\r\n\t\t\tthePres= new SimplePres( new QTFile( theDialog.getDirectory() + theDialog.getFile()), theCanvas );\r\n\t\t\tsetTitle(theDialog.getFile());\r\n\t\t\ttheCanvas.setClient( thePres.pDrawer, true );\r\n\r\n\t\t\tif (drawer == null)\r\n\t\t\t{\r\n\t\t\t\tdrawer = new StatDrawer(thePres);\t// draws the rate and time information\r\n\t\t\t\tdrawer.timeLabel = currTimeLabel;\r\n\t\t\t\tdrawer.rateLabel = currRateLabel;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tdrawer.setPres(thePres);\r\n\t\t}\r\n\t\tcatch (QTException qte) {\r\n\t\t\tqte.printStackTrace();\r\n\t\t} \r\n\t}",
"protected void alertBuilder(){\n SettingsDialogFragment settingsDialogFragment = new SettingsDialogFragment();\n settingsDialogFragment.show(getSupportFragmentManager(), \"Settings\");\n }",
"private void buildView() {\n this.setHeaderInfo(model.getHeaderInfo());\n\n CWButtonPanel buttonPanel = this.getButtonPanel();\n \n buttonPanel.add(saveButton);\n buttonPanel.add(saveAndCloseButton);\n buttonPanel.add(cancelButton);\n \n FormLayout layout = new FormLayout(\"pref, 4dlu, 200dlu, 4dlu, min\",\n \"pref, 2dlu, pref, 2dlu, pref, 2dlu, pref\"); // rows\n\n layout.setRowGroups(new int[][]{{1, 3, 5}});\n \n CellConstraints cc = new CellConstraints();\n this.getContentPanel().setLayout(layout);\n \n this.getContentPanel().add(nameLabel, cc.xy (1, 1));\n this.getContentPanel().add(nameTextField, cc.xy(3, 1));\n this.getContentPanel().add(descLabel, cc.xy(1, 3));\n this.getContentPanel().add(descTextField, cc.xy(3, 3));\n this.getContentPanel().add(amountLabel, cc.xy(1, 5));\n this.getContentPanel().add(amountTextField, cc.xy(3, 5));\n }",
"@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 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 }",
"public Dialog() {\n\t}",
"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 }",
"public StandardDialog() {\n super();\n init();\n }",
"private AlertDialog cargando() {\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n LayoutInflater inflater = getLayoutInflater();\n\n @SuppressLint(\"InflateParams\") View v = inflater.inflate(R.layout.loading, null);\n\n\n builder.setView(v);\n builder.setCancelable(false);\n\n return builder.create();\n\n }",
"private void initDialog() {\n Window subWindow = new Window(\"Sub-window\");\n \n FormLayout nameLayout = new FormLayout();\n TextField code = new TextField(\"Code\");\n code.setPlaceholder(\"Code\");\n \n TextField description = new TextField(\"Description\");\n description.setPlaceholder(\"Description\");\n \n Button confirm = new Button(\"Save\");\n confirm.addClickListener(listener -> insertRole(code.getValue(), description.getValue()));\n\n nameLayout.addComponent(code);\n nameLayout.addComponent(description);\n nameLayout.addComponent(confirm);\n \n subWindow.setContent(nameLayout);\n \n // Center it in the browser window\n subWindow.center();\n\n // Open it in the UI\n UI.getCurrent().addWindow(subWindow);\n\t}",
"private void initDialog() {\n dialog = new Dialog(context);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_custom_ok);\n }",
"private void initializateGUI() {\n\t\t\n\t\t\n\t\tthis.menuBar = buildMenuBar();\n\t\t\n\t\tthis.toolBar = buildToolBar();\n\t\t\n\t\tthis.container = (JComponent) ContainerViewFactory.getInstance().getContainerView(null);\n\t\t\n\t\tthis.status = buildStatusBar();\n\t\t\n\t\tscrollPane = new JScrollPane();\n\t\tscrollPane.getViewport().add(this.container);\n\t\t\n\t\ttextResources.getString(\"application.title\").ifPresent(super::setTitle);\n\n\t\tif (this.menuBar != null) {\n\t\t\tsuper.setJMenuBar(this.menuBar);\n\t\t}\n\t\tsuper.setPreferredSize(MINIMUM_SIZE);\n\t\tsuper.setMinimumSize(MINIMUM_SIZE);\n\t\tsuper.setMaximumSize(new Dimension(Short.MAX_VALUE, Short.MAX_VALUE));\n\n\t\tsuper.getRootPane().setPreferredSize(MINIMUM_SIZE);\n\t\tsuper.getRootPane().setMinimumSize(MINIMUM_SIZE);\t\t\n\t\tsuper.getRootPane().setMaximumSize(new Dimension(Short.MAX_VALUE, Short.MAX_VALUE));\n\t\t\n\t\tsuper.setLayout(new BorderLayout());\n\t\t\n\t\tsuper.add(toolBar, BorderLayout.NORTH);\n\t\tsuper.add(scrollPane, BorderLayout.CENTER);\n\t\tsuper.add(status, BorderLayout.SOUTH);\n\t\t\n\t\tsuper.addWindowListener(new WindowAdapter() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\tinitializationDialog = buildInitializationAction();\n\t\t\t\tinitializationDialog.setVisible(true);\n\t\t\t\tinitializationDialog.toFront();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tconfirmExitAction();\n\t\t\t}\n\t\t});\n\t\tthis.handlerInitializateGUI();\n\t}",
"private void buildDialogWindow(Ingredient aIng) {\n\t\t\n \t\tGridBagLayout layout = new GridBagLayout();\n GridBagConstraints lc = new GridBagConstraints();\n getContentPane().setLayout(layout);\n\n \n lc.anchor = GridBagConstraints.EAST;\n lc.insets = new Insets(5, 5, 5, 5);\n\n aLabel = new JLabel(\"Name\");\n lc.gridx = 0; lc.gridy = 0;\n lc.gridwidth = 1; lc.gridheight = 1;\n lc.weightx = 0.0; lc.weighty = 0.0;\n layout.setConstraints(aLabel, lc);\n getContentPane().add(aLabel);\n\n aLabel = new JLabel(\"Food Group\");\n lc.gridx = 0; lc.gridy = 1;\n lc.gridwidth = 1; lc.gridheight = 1;\n lc.weightx = 0.0; lc.weighty = 0.0;\n layout.setConstraints(aLabel, lc);\n getContentPane().add(aLabel);\n \n aLabel = new JLabel(\"Shelf Life\");\n lc.gridx = 0; lc.gridy = 2;\n lc.gridwidth = 1; lc.gridheight = 1;\n lc.weightx = 0.0; lc.weighty = 0.0;\n layout.setConstraints(aLabel, lc);\n getContentPane().add(aLabel);\n\n aLabel = new JLabel(\"Calories\");\n lc.gridx = 0; lc.gridy = 3;\n lc.gridwidth = 1; lc.gridheight = 1;\n lc.weightx = 0.0; lc.weighty = 0.0;\n layout.setConstraints(aLabel, lc);\n getContentPane().add(aLabel);\n\n \t\t// Add the name field\n\t\tnameField = new JTextField(aIng.getName());\n\t\tnameField.setFont(UIFont);\n lc.gridx = 1; lc.gridy = 0;\n lc.gridwidth = 3; lc.gridheight = 1;\n lc.fill = GridBagConstraints.BOTH;\n lc.weightx = 1.0; lc.weighty = 0.0;\n layout.setConstraints(nameField, lc);\n \t\tgetContentPane().add(nameField);\n\n\t\t// Add the address field\n\t\tfoodGroupField = new JTextField(aIng.getFoodGroup());\n\t\tfoodGroupField.setFont(UIFont);\n lc.gridx = 1; lc.gridy = 1;\n lc.gridwidth = 3; lc.gridheight = 1;\n lc.fill = GridBagConstraints.BOTH;\n lc.weightx = 1.0; lc.weighty = 0.0;\n layout.setConstraints(foodGroupField, lc);\n \t\tgetContentPane().add(foodGroupField);\n\n \t\tshelfLifeField = new JTextField(\"\"+aIng.getShelfLife());\n \t\tshelfLifeField.setFont(UIFont);\n lc.gridx = 1; lc.gridy = 2;\n lc.gridwidth = 3; lc.gridheight = 1;\n lc.fill = GridBagConstraints.BOTH;\n lc.weightx = 1.0; lc.weighty = 0.0;\n layout.setConstraints(shelfLifeField, lc);\n \t\tgetContentPane().add(shelfLifeField);\n \t\t\n \t\tcaloriesField = new JTextField(\"\"+aIng.getCalories());\n \t\tcaloriesField.setFont(UIFont);\n lc.gridx = 1; lc.gridy = 3;\n lc.gridwidth = 3; lc.gridheight = 1;\n lc.fill = GridBagConstraints.BOTH;\n lc.weightx = 1.0; lc.weighty = 0.0;\n layout.setConstraints(caloriesField, lc);\n \t\tgetContentPane().add(caloriesField);\n \t\t\n\t\t// Add the Update button\n\t\tupdateButton = new JButton(\"UPDATE\");\n lc.gridx = 1; lc.gridy = 6;\n lc.gridwidth = 1; lc.gridheight = 1;\n lc.weightx = 0.0; lc.weighty = 0.0;\n layout.setConstraints(updateButton, lc);\n \t\tgetContentPane().add(updateButton);\n \n\t\t// Add the Delete button\n\t\tdeleteButton = new JButton(\"DELETE\");\n lc.gridx = 2; lc.gridy = 6;\n lc.gridwidth = 1; lc.gridheight = 1;\n lc.weightx = 0.0; lc.weighty = 0.0;\n layout.setConstraints(deleteButton, lc);\n \t\tgetContentPane().add(deleteButton);\n\n \t\t// Add the Cancel button\n\t\tcancelButton = new JButton(\"CANCEL\");\n \n lc.gridx = 3; lc.gridy = 6;\n lc.gridwidth = 1; lc.gridheight = 1;\n lc.weightx = 0.0; lc.weighty = 0.0;\n layout.setConstraints(cancelButton, lc);\n \t\tgetContentPane().add(cancelButton);\n\t\t\n\t\t\n\t}",
"public ReorganizeDialog() { }",
"public Builder(){\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}",
"public PHConstDialog() {\n\t\tinitComponents();\n\t}",
"public InfoDialog() {\r\n\t\tcreateContents();\r\n\t}",
"public PacManUiBuilder() {\n this.defaultButtons = false;\n this.buttons = new LinkedHashMap<>();\n this.keyMappings = new HashMap<>();\n }",
"private void prepare()\n {\n\n MapButton mapButton = new MapButton(which);\n addObject(mapButton,58,57);\n Note note = new Note();\n addObject(note,1200,400);\n\n DropDownSuspects dropDownSuspects = new DropDownSuspects();\n addObject(dropDownSuspects,150,150);\n\n DropDownClues dropDownClues = new DropDownClues();\n addObject(dropDownClues,330,150);\n\n TestimonyFrame testimonyFrame = new TestimonyFrame();\n addObject(testimonyFrame,506,548);\n }",
"public void buildGui() {\n\t}",
"public FiltroGirosDialog() {\n \n }",
"private Builder() {\n\t\t}",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setTitle(\"Add Participant...\");\n builder.setMessage(\"Participant address:\");\n\n final EditText input = new EditText(getActivity());\n LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.MATCH_PARENT,\n LinearLayout.LayoutParams.MATCH_PARENT);\n input.setLayoutParams(lp);\n builder.setView(input); // uncomment this line\n\n\n builder.setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n mListener.onAddUserDialogAdd(input.getText().toString());\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n mListener.onAddUserDialogCancel();\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"private void setupGUI() {\n\t\tcollapsingToolbarLayout = (CollapsingToolbarLayout) findViewById(R.id.collapsingToolbarLayout);\n\t\tlogo = (SmartImageView) findViewById(R.id.logoo);\n\t\tnomePosto = (TextView) findViewById(R.id.nomeposto);\n\t\tdescrizione = (TextView) findViewById(R.id.descrizioneposto);\n\t\twebsite = (TextView) findViewById(R.id.websiteposto);\n\t\tnumtelefono = (TextView) findViewById(R.id.telefonoposto);\n\t\tcitta = (TextView) findViewById(R.id.cittaposto);\n\t\tbtnMappa = (FloatingActionButton) findViewById(R.id.fabbuttonmappa);\n\t\tgallery = (LinearLayout) findViewById(R.id.gallery);\n\t\tgalleryContainer = (CardView) findViewById(R.id.cv1);\n\t\t// rvofferte = (RecyclerView) findViewById(R.id.rvofferte);\n\t\t// LinearLayoutManager llm = new\n\t\t// LinearLayoutManager(DetPlaActivity.this);\n\t\t// rvofferte.setLayoutManager(llm);\n\t\t// rvofferte.setSaveEnabled(false);\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 }",
"public abstract Dialog createDialog(DialogDescriptor descriptor);",
"@Override\r\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\r\n\t\tAlertDialog.Builder builder = new Builder(this.getActivity());\r\n\t\tView view = LayoutInflater.from(getActivity()).inflate(\r\n\t\t\t\tR.layout.load_dialog, null);\r\n\r\n\t\tbuilder.setView(view);\r\n\t\tbuilder.setCancelable(false);\r\n\t\tdialog=builder.create();\r\n\t\treturn dialog;\r\n\t}",
"private void builder(){\r\n //Objects\r\n //Left\r\n canvasStackPane.setAlignment(Pos.TOP_LEFT);\r\n left1HintButton = new Button(\"Hint\");\r\n left2Button = new Button(\"New Graph\");\r\n left3Button = new Button(\"New GameMode\");\r\n left4Button = new Button(\"New GraphMode\");\r\n left5Button = new Button(\"Finished\");\r\n leftRestLabel = new Label();\r\n //Up\r\n upperLeftButton = new Label(\"Menu\");\r\n upperLeftButton.setAlignment(Pos.CENTER);\r\n upper1Label = new Label();\r\n upper2Label = new Label();\r\n upper3Label = new Label();\r\n upperRestLabel = new Label();\r\n //calculateVectors\r\n backPane.setPickOnBounds(false);\r\n textFieldVertices.setPromptText(\"Vertices\");\r\n textFieldEdges.setPromptText(\"Edges\");\r\n gameEnd.setSpacing(30);\r\n gameEnd.setAlignment(Pos.CENTER);\r\n gameWinStackPane.setAlignment(Pos.CENTER);\r\n hBoxWin.setAlignment(Pos.CENTER);\r\n hBoxWin.setSpacing(30);\r\n canvasStackPane.setPickOnBounds(true);\r\n canvas.setPickOnBounds(true);\r\n canvas.getGraphicsContext2D().setLineWidth(2.5);\r\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}",
"public void callSetupDialog(JDialog jParent, MainWindow oMain) {\n AllometryParameterEdit oWindow = new AllometryParameterEdit(jParent, m_oManager, oMain, this);\n oWindow.pack();\n oWindow.setLocationRelativeTo(null);\n oWindow.setVisible(true);\n }",
"public void setup() {\n self.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n // make dialog background unselectable\n self.setCanceledOnTouchOutside(false);\n }",
"private Builder() {\n }",
"private Builder() {\n }",
"@Override\r\n\t protected void onPrepareDialog(int id, Dialog dialog) {\n\t switch(id){\r\n\t case(ID_SCREENDIALOG):\r\n\t \tdialog.setTitle(\"Job Details\");\r\n\t \tButton myButton = new Button(this);\r\n\t \tmyButton.setText(\"Cancel\");\r\n\t \tmyButton.setBackgroundColor(Color.parseColor(\"#ff4c67\"));\r\n\t \tmyButton.setTextColor(Color.parseColor(\"#ffffff\"));\r\n\t \tRelativeLayout datlis = (RelativeLayout)screenDialog.findViewById(R.id.datalist01);\r\n\t \tLayoutParams lp = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);\r\n\t \tlp.addRule(RelativeLayout.BELOW, list.getId());\r\n\t \tdatlis.addView(myButton, lp);\r\n\t \tmyButton.setOnClickListener(dismissscreen);\r\n\t \t\r\n\t break;\r\n\t }\r\n\t }",
"@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 Builder() {}",
"public DebugConfigurationDialog() {\n configuration = new DataSourceConfiguration();\n initComponents();\n }",
"public RelationshipDialog() {\n super(getRTParent(), \"Add Relationship...\", true);\n getContentPane().setLayout(new BorderLayout(5,5));\n JPanel center = new JPanel(new GridLayout(5,2,5,5));\n center.add(new JLabel(\"From\")); \n center.add(new JLabel(\"To\"));\n\n String blanks[] = KeyMaker.blanks(getRTParent().getRootBundles().getGlobals());\n center.add(from_cb = new JComboBox(blanks));\n center.add(to_cb = new JComboBox(blanks));\n\n center.add(from_symbol_cb = new JComboBox(Utils.SHAPE_STRS));\n center.add(to_symbol_cb = new JComboBox(Utils.SHAPE_STRS));\n center.add(from_typed_cb = new JCheckBox(\"Field Typed\", false));\n center.add(to_typed_cb = new JCheckBox(\"Field Typed\", false));\n center.add(ignore_ns_cb = new JCheckBox(\"Ignore Not Sets\", true));\n getContentPane().add(\"Center\", center);\n\n getContentPane().add(\"North\", style_cb = new JComboBox(STYLE_STRS));\n\n JPanel bottom = new JPanel(new FlowLayout());\n JButton add_bt, cancel_bt;\n bottom.add(add_bt = new JButton(\"Add\"));\n bottom.add(cancel_bt = new JButton(\"Cancel\"));\n getContentPane().add(\"South\", bottom);\n\n // Add listeners\n cancel_bt.addActionListener(new ActionListener() { \n public void actionPerformed(ActionEvent ae) { setVisible(false); dispose(); } } );\n add_bt.addActionListener(new ActionListener() { \n public void actionPerformed(ActionEvent ae) {\n setVisible(false); dispose();\n\t addRelationship((String) from_cb.getSelectedItem(), \n\t (String) from_symbol_cb.getSelectedItem(),\n\t \t\t from_typed_cb.isSelected(),\n\t (String) to_cb.getSelectedItem(), \n\t (String) to_symbol_cb.getSelectedItem(),\n\t\t \t to_typed_cb.isSelected(),\n (String) style_cb.getSelectedItem(), \n\t\t\t ignore_ns_cb.isSelected(), \n\t\t\t false);\n } } );\n pack(); setVisible(true);\n }",
"private Dialogs () {\r\n\t}",
"private void prepare()\r\n {\r\n MenuButton menubutton = new MenuButton();\r\n addObject(menubutton, 268, 406);\r\n Tittle tittle2 = new Tittle();\r\n addObject(tittle2, 544, 422);\r\n Exit exit2 = new Exit();\r\n addObject(exit2, 863, 427);\r\n tittle2.setLocation(545, 401);\r\n exit2.setLocation(848, 414);\r\n tittle2.setLocation(545, 411);\r\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 }",
"private void init() {\n \n dialog = new JDialog(this.owner, charField.getName() + \" Post Composition\");\n compFieldPanel = new FieldPanel(false,false, null, this.selectionManager, this.editManager, null); // (searchParams)?\n //compFieldPanel.setSearchParams(searchParams);\n \n // MAIN GENUS TERM\n genusField = CharFieldGui.makePostCompTermList(charField,\"Genus\",minCompChars);\n genusField.setSelectionManager(this.selectionManager); // ??\n //genusField.setListSelectionModel(this.selectionModel);\n compFieldPanel.addCharFieldGuiToPanel(genusField);\n\n // REL-DIFF - put in 1 differentia\n addRelDiffGui();\n\n setGuiFromSelectedModel();\n\n // override FieldPanel preferred size which will set window size\n compFieldPanel.setPreferredSize(null);//new Dimension(700,160));\n dialog.add(compFieldPanel);\n addButtons();\n dialog.pack();\n dialog.setLocationRelativeTo(owner);\n dialog.setVisible(true);\n\n compCharChangeListener = new CompCharChangeListener();\n this.editManager.addCharChangeListener(compCharChangeListener);\n compCharSelectListener = new CompCharSelectListener();\n this.selectionModel.addListSelectionListener(compCharSelectListener);\n }",
"private void buildWaitingDialog(){\n\t\tmainDialog = new JDialog(mainWindow,\"Waiting for server...\");\n\t\tJPanel p1= new JPanel(new BorderLayout());\n\t\tp1.setBackground(Color.white);\n\n\t\t//waiting text\n\t\tJLabel lab = new JLabel(\"Please wait...\");\n\t\tlab.setFont( new Font(\"URW Gothic L\",Font.BOLD, 15));\n\t\tlab.setAlignmentX(Component.LEFT_ALIGNMENT);\n\t\tp1.add(lab, BorderLayout.NORTH);\n\t\t\n\t\t//waiting animation\n\t\tImageIcon gif = new ImageIcon (\"./client_images/load.gif\");\n\t\tJLabel imgLabel = new JLabel(gif);\n\t\tp1.add(imgLabel,BorderLayout.CENTER);\n\n\t\t//abort button to close client application\n\t\tJButton abort = new JButton (\"Abort\");\n\t\t//register anonymous listener class that closes up application\n\t\tabort.addActionListener (new ActionListener(){\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\t\t\tClientGui.this.closeUp();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t);\n\t\tp1.add(abort,BorderLayout.SOUTH);\n\n\t\t//dialog settings\n\t\tmainDialog.getContentPane().add(p1);\n\t\tmainDialog.setLocationRelativeTo(mainWindow);\n\t\tmainDialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\n\t\tmainDialog.setModal(true);\n\t\tmainDialog.setMinimumSize(new Dimension(300,200));\n\t\tmainDialog.setMaximumSize(new Dimension(300,200));\n\t\tmainDialog.setResizable(false);\n\t\tmainDialog.setVisible(true);\n\t\t\n\t}",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflator = getActivity().getLayoutInflater();\n View view = inflator.inflate(R.layout.informationdialog, datePicker);\n builder.setView(view);\n init(view);\n Dialog dialog = builder.create();\n\n //Dialog will not close automatically until user click on cancle button.\n setCancelable(false);\n return dialog;\n }",
"protected abstract JDialog createDialog();",
"@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 }",
"@Override\n protected void onPrepareDialog(int id, Dialog dialog) {\n \tToast.makeText(this, dialog.toString(), Toast.LENGTH_SHORT).show();\n }",
"public CustomDialog(String title) {\n\t\tsuper();\n\t\tsetTitle(title);\n\t\tinit();\n\t}",
"private Builder(Context context){ this.context=context;}",
"public NewDialog() {\n\t\t\t// super((java.awt.Frame)null, \"New Document\");\n\t\t\tsuper(\"JFLAP 7.0\");\n\t\t\tgetContentPane().setLayout(new GridLayout(0, 1));\n\t\t\tinitMenu();\n\t\t\tinitComponents();\n\t\t\tsetResizable(false);\n\t\t\tpack();\n\t\t\tthis.setLocation(50, 50);\n\n\t\t\taddWindowListener(new WindowAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void windowClosing(final WindowEvent event) {\n\t\t\t\t\tif (Universe.numberOfFrames() > 0) {\n\t\t\t\t\t\tNewDialog.this.setVisible(false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tQuitAction.beginQuit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"public Builder() {\n\t\t}",
"public AboutDialog( Frame frmParent_, \n String sAuthor_,\n String sRCSHeader_ ) \n {\n super( frmParent_, \"About\", true );\n\n _initLabels();\n \n String sRcsId = sRCSHeader_.replace('\\\\', '/');\n \n if (sRcsId.startsWith(\"$Header: \")) \n {\n _lblName.setText( _getName( sRcsId ) );\n _lblVersion.setText( _getVersion( sRcsId ) );\n _lblRealDate.setText( _getDateAndTime( sRcsId ) );\n }\n AutoGridBagLayout pAutoGridBagLayout = \n new AutoGridBagLayout( 0 );\n \n getContentPane().setLayout(pAutoGridBagLayout);\n \n ((JPanel)getContentPane()).setBorder\n ( BorderFactory.createEmptyBorder( 23, 38, 17, 38 ) );\n\n int strut = 6;\n\n // Program name\n _lblName.setFont( new Font( \"Dialog\", Font.BOLD, 14 ) );\n pAutoGridBagLayout.setExpandHorizontal();\n pAutoGridBagLayout.setAnchor( AutoGridBagLayout.WEST );\n getContentPane().add( _lblName );\n\n pAutoGridBagLayout.setExpandNone();\n getContentPane().add( new JLabel( \" \" ) );\n pAutoGridBagLayout.setExpandHorizontal();\n\n // Version\n getContentPane().add( _lblVersion );\n pAutoGridBagLayout.endLine();\n \n getContentPane().add( Box.createVerticalStrut( strut ) );\n pAutoGridBagLayout.endLine();\n\n // Autor\n getContentPane().add( _lblAuthor );\n pAutoGridBagLayout.skip();\n if ( !Util.isEmpty( sAuthor_ ) ) \n {\n _lblRealAuthor.setText( sAuthor_ );\n }\n getContentPane().add( _lblRealAuthor );\n pAutoGridBagLayout.endLine();\n\n getContentPane().add( Box.createVerticalStrut( strut ) );\n pAutoGridBagLayout.endLine();\n\n // Datum\n getContentPane().add( _lblDate );\n pAutoGridBagLayout.skip();\n getContentPane().add(_lblRealDate);\n pAutoGridBagLayout.endLine();\n\n getContentPane().add( Box.createVerticalStrut\n ( 3*strut + 1 ) );\n pAutoGridBagLayout.endLine();\n\n // OK Button\n _btnOK = new JButton(\"OK\");\n _btnOK.setFont( new Font( \"Dialog\", Font.BOLD, 12 ) );\n _btnOK.setPreferredSize\n ( new Dimension\n ( 75, _btnOK.getPreferredSize().height ) );\n SwingUtil.setDefaultButton( this, _btnOK );\n _btnOK.addActionListener( this );\n\n pAutoGridBagLayout.setExtend( 3, 1 );\n pAutoGridBagLayout.setAnchor( AutoGridBagLayout.CENTER );\n getContentPane().add(_btnOK);\n SwingUtil.setInitialFocus( this, _btnOK );\n\n pack();\n setSize( getPreferredSize() );\n SwingUtil.centerComponent(this);\n show();\n }",
"@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 }",
"private void setupOpnameImportDialog( ) {\n\t// Create modal dialog for editing opname record\n String title = \"Update Opname Import (\" + Integer.toString(opnameKeys.size()) + \" records)\";\n\tif ( parentObject instanceof JFrame ) {\n\t dialog = new JDialog( ( JFrame )parentObject, title, true );\n\t} else if ( parentObject instanceof JDialog ) {\n\t dialog = new JDialog( ( JDialog )parentObject, title, true );\n\t} else {\n\t logger.severe( \"Unexpected parent object class: \" +\n\t\t\t parentObject.getClass( ).getName( ) );\n\t return;\n\t}\n\n\t// Set grid bag layout manager\n\tContainer container = dialog.getContentPane( );\n\tcontainer.setLayout( new GridBagLayout( ) );\n GridBagConstraints constraints = new GridBagConstraints( );\n\n //////////////////////////////////////////\n // Import Type Combo Box, Import Datum\n //////////////////////////////////////////\n\n constraints.anchor = GridBagConstraints.EAST;\n constraints.insets = new Insets( 5, 20, 5, 5 );\n constraints.gridx = 0;\n constraints.gridy = 1;\n constraints.gridwidth = 1;\n container.add( new JLabel( \"Import:\" ), constraints );\n\n // Setup a JComboBox for ImportType\n importTypeComboBox = new ImportTypeComboBox( conn, defaultImportTypeId );\n importTypeComboBox.addActionListener( ( ActionEvent actionEvent ) -> {\n if (importTypeComboBox.getSelectedImportTypeId( ) == 0) {\n importDatumSpinner.setEnabled(false);\n }\n else {\n importDatumSpinner.setEnabled(true);\n }\n } );\n\n final JPanel importPanel = new JPanel();\n importPanel.add( importTypeComboBox );\n\n // Import datum\n GregorianCalendar calendar = new GregorianCalendar( );\n if (defaultImportDatum == null) {\n defaultImportDatum = calendar.getTime();\n }\n\n calendar.add( Calendar.YEAR, -50 );\n Date earliestDate = calendar.getTime( );\n calendar.add( Calendar.YEAR, 100 );\n Date latestDate = calendar.getTime( );\n SpinnerDateModel importDatumSpinnerDatemodel = new SpinnerDateModel(defaultImportDatum,\n earliestDate,\n latestDate,\n Calendar.DAY_OF_MONTH );\n importDatumSpinner = new JSpinner( importDatumSpinnerDatemodel );\n importDatumSpinner.setEditor( new JSpinner.DateEditor( importDatumSpinner, \"dd-MM-yyyy\" ) );\n importPanel.add( importDatumSpinner );\n\n // Set the import datum to enabled or disabled according to the selected medium type ID\n if (importTypeComboBox.getSelectedImportTypeId( ) == 0) {\n importDatumSpinner.setEnabled(false);\n }\n else {\n importDatumSpinner.setEnabled(true);\n }\n\n constraints.insets = new Insets( 5, 0, 5, 20 );\n constraints.anchor = GridBagConstraints.WEST;\n constraints.gridx = GridBagConstraints.RELATIVE;\n constraints.gridwidth = 2;\n container.add( importPanel, constraints );\n\n\n\t//////////////////////////////////////////\n\t// Update/Insert, Cancel buttons\n\t//////////////////////////////////////////\n\n\tJPanel buttonPanel = new JPanel( );\n\n\tActionListener buttonPanelActionListener = ( ActionEvent actionEvent ) -> {\n boolean result = true;\n\n if ( actionEvent.getActionCommand( ).equals( \"updateOpnameImport\" ) ) {\n result = updateOpnameImport( );\n }\n\n // Any other actionCommand, including cancel, has no action\n if ( result ) {\n dialog.setVisible( false );\n }\n };\n\n\tJButton editOpnameButton = new JButton( \"Update (\" + Integer.toString(opnameKeys.size()) + \" opname records)\");\n\teditOpnameButton.setActionCommand( \"updateOpnameImport\" );\n\teditOpnameButton.addActionListener( buttonPanelActionListener );\n\tbuttonPanel.add( editOpnameButton );\n\n\tJButton cancelOpnameButton = new JButton( \"Cancel\" );\n\tcancelOpnameButton.setActionCommand( \"cancelOpnameImport\" );\n\tcancelOpnameButton.addActionListener( buttonPanelActionListener );\n\tbuttonPanel.add( cancelOpnameButton );\n\n constraints.anchor = GridBagConstraints.CENTER;\n constraints.insets = new Insets( 5, 20, 20, 20 );\n\tconstraints.gridx = 0;\n\tconstraints.gridy = 14;\n\tconstraints.gridwidth = 3;\n\tcontainer.add( buttonPanel, constraints );\n\n // Default dialog size\n final Dimension dialogSize = new Dimension( 400, 150 );\n\tdialog.setSize( dialogSize );\n\tdialog.setDefaultCloseOperation( JFrame.DISPOSE_ON_CLOSE );\n\tdialog.setVisible( true );\n }",
"public Dialog<String> createDialog() {\n\t\t// Creating a dialog\n\t\tDialog<String> dialog = new Dialog<String>();\n\n\t\tButtonType type = new ButtonType(\"Ok\", ButtonData.OK_DONE);\n\t\tdialog.getDialogPane().getButtonTypes().add(type);\n\t\treturn dialog;\n\t}",
"public static Builder builder(){ return new Builder(); }",
"public Builder() {\n }",
"public Builder() { }",
"public CustomDialog(Dialog owner, String title) {\n\t\tsuper(owner, title);\n\t\tinit();\n\t}",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n return mDialog;\n }",
"public void init(){\r\n\t\t\r\n\t\ttry {\r\n\t\t\tSwingUtilities.invokeAndWait(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tbuildWindow();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.err.println(\"createGUI didn't complete successfully\");\r\n\t\t}\r\n\t}",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState)\n {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n //attempt to extract number\n number = ((TelephonyManager)((getActivity()).getSystemService(\n Context.TELEPHONY_SERVICE))).getLine1Number();\n\n //create edit text view\n input = new EditText(getActivity());\n input.setHint(R.string.phone_number_hint);\n input.setInputType(InputType.TYPE_CLASS_PHONE);\n input.addTextChangedListener(\n new PhoneNumberFormattingTextWatcher());\n //show edit text if phone number is unavailable\n input.setVisibility(((number == null) || \"\".equals(number))\n ? View.VISIBLE : View.GONE);\n\n builder.setView(input);\n builder.setTitle(R.string.generate_title);\n builder.setPositiveButton(R.string.generate_button, this);\n\n return builder.create();\n }",
"private Builder()\n {\n }",
"public Builder() {\n }",
"public Builder() {\n }",
"public Builder() {}",
"public Builder() {}",
"public Builder() {}",
"@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 }",
"private CommandView(CommandViewBuilder builder)\n\t{\n\t\tthis.commandBlock = builder.commandBlock;\n\t\tthis.textColor = builder.textColor;\n\t\tthis.backgroundColor = builder.backgroundColor;\n\t\tthis.highlightColor = builder.highlightColor;\n\t\t\n\t\tthis.root = new Group();\n\t\t\n\t\tconfigureViewAppearance();\n\t\tconfigureEventListeners();\n\t}",
"@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n return mDialog;\n }",
"public void setupDialog(Stage stage) {\n\t\tthis.stage = stage;\n\n\t\tcustomers = C195Application.getAllCustomers();\n\n\t\tcustomerTable.setItems(customers);\n\t}",
"public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog dialog = new DatePickerDialog(getActivity(), this, year, month, day);\n if(this.getMinDate() != null){\n dialog.getDatePicker().setMinDate(this.getMinDate().getTime());\n }\n\n if(this.getMaxDate() != null){\n dialog.getDatePicker().setMaxDate(this.getMaxDate().getTime());\n }\n\n if(getPositiveClickListner() != null){\n dialog.setButton(DialogInterface.BUTTON_POSITIVE, \"OK\", getPositiveClickListner());\n }\n return dialog;\n }",
"public void inicializar() {\r\n\t\ttry {\r\n\t\t\tsetDefaultLookAndFeelDecorated(true);\r\n\t\t\tcom.jtattoo.plaf.hifi.HiFiLookAndFeel.setTheme(\"Large-Font\", \"INSERT YOUR LICENSE KEY HERE\",\r\n\t\t\t\t\t\"Gallery of Fantastic Puzzles\");\r\n\t\t\tUIManager.setLookAndFeel(\"com.jtattoo.plaf.hifi.HiFiLookAndFeel\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t//Configuración del JDialog\r\n\t\tsetBounds(100, 100, 450, 300);\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\t\r\n\t\tgetContentPane().setLayout(new BorderLayout());\r\n\t\tcontentPanel.setLayout(new FlowLayout());\r\n\t\tcontentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tgetContentPane().add(contentPanel, BorderLayout.CENTER);\r\n\t\t\r\n\t\t//Componentes del JDialog\r\n\t\t{\r\n\t\t\t//TEXTO DE BIENVENIDA\r\n\t\t\tdtrpnBienve = new JEditorPane();\r\n\t\t\tdtrpnBienve.setOpaque(false);\r\n\t\t\tdtrpnBienve.setEditable(false);\r\n\t\t\tdtrpnBienve.setPreferredSize(new Dimension(400, 130));\r\n\t\t\tdtrpnBienve.setFont(new Font(\"Segoe UI\", Font.BOLD, 15));\r\n\t\t\tdtrpnBienve.setText(\r\n\t\t\t\t\t\"Bienvenido/a a GFPuzzles, la aplicación desarrollada por \\r\\nAlige Development para la Gestión de su Galería de Arte\\r\\n\\r\\nPara más información, consulte los siguientes \\r\\napartados del menú Ayuda.\");\r\n\t\t\tcontentPanel.add(dtrpnBienve);\r\n\t\t}\r\n\t\t{\r\n\t\t\t//ICONO CORPORATIVO\r\n\t\t\tlblNewLabel = new JLabel(\"\");\r\n\t\t\tlblNewLabel.setVerticalAlignment(SwingConstants.BOTTOM);\r\n\t\t\tlblNewLabel.setIcon(new ImageIcon(DialogBienve.class.getResource(\"/images/19-70x70.png\")));\r\n\t\t\tcontentPanel.add(lblNewLabel);\r\n\t\t}\r\n\t\t{\r\n\t\t\t//PANEL DESTINADO PARA LOS BOTONES\r\n\t\t\tbuttonPane = new JPanel();\r\n\t\t\tbuttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));\r\n\t\t\tgetContentPane().add(buttonPane, BorderLayout.SOUTH);\r\n\t\t\t{\r\n\t\t\t\t//BOTON OK\r\n\t\t\t\tbtnOkBienve = new JButton(\"OK\");\r\n\t\t\t\tbtnOkBienve.addActionListener(new ActionListener() {\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\t\tDialogBienve.this.dispose();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tbtnOkBienve.setActionCommand(\"OK\");\r\n\t\t\t\tbuttonPane.add(btnOkBienve);\r\n\t\t\t\tgetRootPane().setDefaultButton(btnOkBienve);\r\n\t\t\t}\r\n\t\t\t{\r\n\t\t\t\t//etiqueta utilizada para separar el icono del cuadro de texto\r\n\t\t\t\tlblNewLabel_1 = new JLabel(\"\");\r\n\t\t\t\tlblNewLabel_1.setPreferredSize(new Dimension(30, 14));\r\n\t\t\t\tlblNewLabel_1.setMinimumSize(new Dimension(246, 14));\r\n\t\t\t\tlblNewLabel_1.setMaximumSize(new Dimension(246, 14));\r\n\t\t\t\tbuttonPane.add(lblNewLabel_1);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n mYear = getArguments().getInt(\"year\");\n mMonth = getArguments().getInt(\"month\");\n mDay = getArguments().getInt(\"day\");\n mStart = getArguments().getBoolean(\"start\");\n\n // create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, mYear, mMonth, mDay);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }"
] | [
"0.65297675",
"0.636429",
"0.61694795",
"0.6043925",
"0.60164803",
"0.6002518",
"0.5969236",
"0.58714986",
"0.58032006",
"0.5711248",
"0.5711134",
"0.5688042",
"0.5676403",
"0.5676244",
"0.5648939",
"0.5600947",
"0.55893713",
"0.55786794",
"0.55539316",
"0.5550868",
"0.5537784",
"0.55256075",
"0.5524925",
"0.55192924",
"0.55164945",
"0.5497671",
"0.54968333",
"0.5492083",
"0.5491301",
"0.5489505",
"0.54892856",
"0.54565257",
"0.5456328",
"0.54542905",
"0.5453888",
"0.54520625",
"0.5450463",
"0.5445058",
"0.54202217",
"0.541277",
"0.541277",
"0.54072523",
"0.54067796",
"0.53989494",
"0.539349",
"0.53907484",
"0.5388945",
"0.5382144",
"0.5381824",
"0.5366084",
"0.53652126",
"0.5362377",
"0.5351851",
"0.5350619",
"0.53492564",
"0.5347352",
"0.534298",
"0.5339422",
"0.5337044",
"0.53277934",
"0.5319736",
"0.5313302",
"0.531105",
"0.5309382",
"0.53007036",
"0.52941185",
"0.5293084",
"0.5286855",
"0.52848816",
"0.5282161",
"0.52792805",
"0.52722985",
"0.52722985",
"0.5269625",
"0.5269625",
"0.5269625",
"0.52678",
"0.52673686",
"0.52658826",
"0.52640784",
"0.5262422",
"0.5261137",
"0.52593523",
"0.52539986",
"0.52539986",
"0.52539986",
"0.52539986",
"0.52539986",
"0.52539986",
"0.52539986",
"0.52539986",
"0.52539986",
"0.52539986",
"0.52539986",
"0.52539986",
"0.52539986",
"0.52539986",
"0.52539986",
"0.52539986",
"0.52539986",
"0.52539986"
] | 0.0 | -1 |
Locally create a finalised object. | public void onClick(DialogInterface dialog, int item) {
Log.d("DIALOG", String.valueOf(item));
// Perform an action depending on which item was selected.
switch (item) {
case 0:
map.setMapType(GoogleMap.MAP_TYPE_NORMAL);
break;
case 1:
map.setMapType(GoogleMap.MAP_TYPE_SATELLITE);
break;
case 2:
map.setMapType(GoogleMap.MAP_TYPE_TERRAIN);
break;
case 3:
map.setMapType(GoogleMap.MAP_TYPE_HYBRID);
break;
default:
break;
}
dialog.dismiss();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"OBJECT createOBJECT();",
"public void create(){}",
"public static CMFinal make() {\n return new CMFinal();\n }",
"public abstract String createNewObject(boolean fPromote_p, Object mode_p, OwResource resource_p, String strObjectClassName_p, OwPropertyCollection properties_p, OwPermissionCollection permissions_p, OwContentCollection content_p,\r\n OwObject parent_p, String strMimeType_p, String strMimeParameter_p, boolean fKeepCheckedOut_p) throws Exception;",
"@NonNull\n static MimicFinalClass create(MimicFinalClass instance,\n final BiFunction<String, Object, ?> afterCall) {\n return create(instance, (m, args) -> true, afterCall);\n }",
"public void create() {\n\t\t\n\t}",
"public void finalize(World world) { }",
"public abstract String createNewObject(boolean fPromote_p, Object mode_p, OwResource resource_p, String strObjectClassName_p, OwPropertyCollection properties_p, OwPermissionCollection permissions_p, OwContentCollection content_p,\r\n OwObject parent_p, String strMimeType_p, String strMimeParameter_p) throws Exception;",
"boolean finalise();",
"Promise.Completable<PooledObject<T>> createNew();",
"public abstract String createNewObject(OwResource resource_p, String strObjectClassName_p, OwPropertyCollection properties_p, OwPermissionCollection permissions_p, OwContentCollection content_p, OwObject parent_p, String strMimeType_p,\r\n String strMimeParameter_p) throws Exception;",
"public void finish() {\n System.out.println(name + \": Call explicit destroy()\");\n }",
"@Override\n\tpublic void generate() {\n\t\tJavaObject object = new JavaObject(objectType);\n\n\t\t// Fields\n\t\taddFields(object);\n\n\t\t// Empty constructor\n\t\taddEmptyConstructor(object);\n\n\t\t// Types constructor\n\t\taddTypesConstructor(object);\n\n\t\t// Clone constructor\n\t\taddCloneConstructor(object);\n\n\t\t// Setters\n\t\taddSetters(object);\n\n\t\t// Build!\n\t\taddBuild(object);\n\n\t\t// Done!\n\t\twrite(object);\n\t}",
"@Override\r\n\tpublic void create() {\n\t\t\r\n\t}",
"@Override\n\tpublic void create() {\n\t\t\n\t}",
"protected abstract Object createObjectInternal(ObjectInformation objectInformation) throws FillingException;",
"public abstract void finalizeIt();",
"public abstract T create(T obj);",
"public abstract OwObjectSkeleton createObjectSkeleton(OwObjectClass objectclass_p, OwResource resource_p) throws Exception;",
"public void finaliza(Orcamento orcamento) {\n\t\tthrow new RuntimeException(\"Orçamento já está em estado finalizado\");\n\t}",
"void finalizeStructure();",
"Object build();",
"@Override\n\tpublic void create() {\n\n\t}",
"public void finalize();",
"private ObjectFactory() { }",
"public LocalObject() {}",
"public abstract void create();",
"T create();",
"T create();",
"Oracion createOracion();",
"public abstract void finalize();",
"@Override\r\n\tpublic boolean create(Jeu obj) {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic void create() {\n\r\n\t}",
"ObjectResource createObjectResource();",
"public ObjectFactory() {}",
"public ObjectFactory() {}",
"public ObjectFactory() {}",
"@SuppressWarnings(\"unused\")\n private CreateOrUpdateObjectTypeResult() {\n }",
"Foco createFoco();",
"public Fatura finalizar() {\n \n setFinalizado(true);\n \n Fatura fatura = new Fatura();\n \n fatura.setData(LocalDateTime.now());\n fatura.setPedido(this);\n fatura.calcular();\n \n return fatura;\n }",
"Compleja createCompleja();",
"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\tpublic void create () {\n\n\t}",
"@Override()\r\n protected void finalize() {\r\n destroy();\r\n }",
"protected void finalize() throws Throwable\n\t{\n\t\tsuper.finalize();\n\t\tfinaliseHandle();\n\t\tfinaliseLoggerReference();\n\t}",
"public RubyObject createObject() {\n\t\treturn (RubyObject) RGSSProjectHelper.getInterpreter(project).runScriptlet(\"return RPG::Troop::Page.new\");\n\t}",
"RentalObject createRentalObject();",
"Object create(Object source);",
"protected abstract void construct();",
"public void finalize()\r\n\t{\n\t}",
"protected PyObject createObject(final PyObject pyClass, final Object[] args, final String[] keywords) {\n\t\treturn pyClass.__call__(convertArgs2Python(args), keywords);\n\t}",
"public abstract World create(World world);",
"Resource createResource();",
"public boolean Finalize() {\n\treturn Finalize(false);\n }",
"Active_Digital_Artifact createActive_Digital_Artifact();",
"public void create () {\n // TODO random generation of a ~100 x 100 x 100 world\n }",
"Snapshot create();",
"public Object createObject() {\n return klass.__call__().__tojava__(interfaceType);\n }",
"Parcelle createParcelle();",
"@POST\r\n public Response createResearchObject()\r\n throws BadRequestException, IllegalArgumentException, UriBuilderException, ConflictException,\r\n DigitalLibraryException, NotFoundException {\r\n LOGGER.debug(String.format(\"%s\\t\\tInit create RO\", new DateTime().toString()));\r\n String researchObjectId = request.getHeader(Constants.SLUG_HEADER);\r\n if (researchObjectId == null || researchObjectId.isEmpty()) {\r\n throw new BadRequestException(\"Research object ID is null or empty\");\r\n }\r\n URI uri = uriInfo.getAbsolutePathBuilder().path(researchObjectId).path(\"/\").build();\r\n ResearchObject researchObject = ResearchObject.findByUri(uri);\r\n if (researchObject != null) {\r\n throw new ConflictException(\"RO already exists\");\r\n }\r\n researchObject = new ResearchObject(uri);\r\n URI researchObjectURI = ROSRService.createResearchObject(researchObject);\r\n LOGGER.debug(String.format(\"%s\\t\\tRO created\", new DateTime().toString()));\r\n \r\n RDFFormat format = RDFFormat.forMIMEType(request.getHeader(Constants.ACCEPT_HEADER), RDFFormat.RDFXML);\r\n InputStream manifest = ROSRService.SMS.get().getNamedGraph(researchObject.getManifestUri(), format);\r\n ContentDisposition cd = ContentDisposition.type(format.getDefaultMIMEType())\r\n .fileName(ResearchObject.MANIFEST_PATH).build();\r\n \r\n LOGGER.debug(String.format(\"%s\\t\\tReturning\", new DateTime().toString()));\r\n return Response.created(researchObjectURI).entity(manifest).header(\"Content-disposition\", cd).build();\r\n }",
"T crear(T obj);",
"@Test\n public void Constructor_ObjectValues_InstanceCreated() {\n\t\ttry {\n Position position = make_PositionWithIntegerPoints(xCoordinate, yCoordinate, direction);\n Surface surface = make_SurfaceWithGivenDimensions(xDimension, yDimension);\n\t\t\tRover rover = make_RoverWithObjectValues(position, surface);\n\t\t}\n\t\tcatch (AssertionError assErr) {\n\t\t\t// Test passed.\n\t\t\treturn;\n\t\t}\n }",
"public Object makeResource();",
"protected Object create(Object object) {\n EntityManager em = getEntityManager();\n em.getTransaction().begin();\n try {\n em.persist(object);\n em.getTransaction().commit();\n LOG.debug(\"Persisted \" + object);\n } catch (Exception e) {\n LOG.error(\"Could not persist Object\", e);\n em.getTransaction().rollback();\n } finally {\n em.close();\n }\n return object;\n }",
"private SingleObject()\r\n {\r\n }",
"abstract Object build();",
"Passive_Digital_Artifact createPassive_Digital_Artifact();",
"Digital_Artifact createDigital_Artifact();",
"private PSUniqueObjectGenerator()\n {\n }",
"@Override// opcional\n public void finalize(){\n\n }",
"private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}",
"@Override\n public boolean isFinal() {\n return true;\n }",
"CreationData creationData();",
"public FMISComLocal create() throws javax.ejb.CreateException;",
"@SuppressWarnings(\"unused\")\n private CreateOrUpdateObjectAttributeResult() {\n }",
"Reproducible newInstance();",
"Klassenstufe createKlassenstufe();",
"@Override\n boolean isFinal() {\n return false;\n }",
"public static void Finalize() {\n isReady = false;\n\n try {\n for (RemoteField f : exported)\n UnicastRemoteObject.unexportObject(f, true);\n if (registry != null)\n UnicastRemoteObject.unexportObject(registry, true);\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(-1);\n }\n }",
"public void finalize() {\n AppMethodBeat.i(66593);\n if (this.mJitterBuffer != 0) {\n nativeDestoryJitterBuffer(this.mJitterBuffer);\n this.mJitterBuffer = 0;\n }\n AppMethodBeat.o(66593);\n }",
"public void createNewObject(Representation entity) throws ResourceException {\r\n\t\tT entry = createObjectFromHeaders(null, entity);\r\n\t\texecuteUpdate(entity, entry, createUpdateObject(entry));\r\n\r\n\t}",
"private void createObject(JSONObject delivery) {\n\t\t//TODO: create the Object\n\t}",
"protected abstract T newObject(Handle<T> paramHandle);",
"public abstract void setFinalized(Object src);",
"void create(T t);",
"public interface HeavyObjectFactory {\n\tpublic HeavyObject createObject();\n}",
"public void finalize()\n throws Throwable\n {\n pythonDecRef();\n }",
"public static void created() {\n\t\t// TODO\n\t}",
"public void _release() {\n throw new NO_IMPLEMENT(reason);\n }",
"public ObjectFactory() {\r\n\t}",
"@Override\n\tpublic void create(Owner owner) {\n\n\t}",
"public ObjectFactory() {\n\t}",
"default void createArtifact(\n com.google.cloud.aiplatform.v1.CreateArtifactRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Artifact> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateArtifactMethod(), responseObserver);\n }",
"public void setFinal() {\r\n\t\tthis.isFinal = true;\r\n\t}",
"Compuesta createCompuesta();",
"public void destruct() {\n\t\tif (super.getUsia() == 0) {\n\t\t\t// destructor Singa\n\t\t\tSystem.gc();\n\t\t\ttry {\n\n\t\t\t\tfinalize();\n\t\t\t} catch (Throwable throwable) {\n\t\t\t\tthrowable.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private SingleObject(){}",
"protected void finalize() throws Throwable\n\t{\n\t\tsuper.finalize();\n\t\tfinaliseLoggerReference();\n\t}",
"public Rule fresh (boolean asNewObject)\r\n\t{\r\n\t\tMap<String,String> newNames = new HashMap<String, String> ();\r\n\t\treturn fresh (newNames, asNewObject);\r\n\t}",
"@JRubyMethod(name = \"new\")\n public static IRubyObject newObject(ThreadContext ctx, IRubyObject self) {\n return self.rbClone().callMethod(ctx, \"reset\");\n }",
"protected void makeThreadObjectFinish() {\n\t\ttry {\n\t\t\tif (syncCommands != null) {\n\t\t\t\tsyncCommands.join();\n\t\t\t}\n\t\t} catch (Exception e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t}"
] | [
"0.5869533",
"0.5824853",
"0.57546526",
"0.5697713",
"0.56886655",
"0.56209826",
"0.5558911",
"0.5483041",
"0.5452868",
"0.5388552",
"0.5370326",
"0.53646606",
"0.53610945",
"0.535177",
"0.5321492",
"0.53046757",
"0.5294869",
"0.5284244",
"0.52766097",
"0.5222102",
"0.5215648",
"0.5206873",
"0.5204518",
"0.52039003",
"0.5201479",
"0.5200156",
"0.5190186",
"0.51877016",
"0.51877016",
"0.5186411",
"0.51621765",
"0.5130624",
"0.5123259",
"0.51195234",
"0.51170456",
"0.51170456",
"0.51170456",
"0.5116064",
"0.50870824",
"0.5083921",
"0.50760597",
"0.5073062",
"0.5063849",
"0.50609887",
"0.50598943",
"0.50597686",
"0.50575083",
"0.50440556",
"0.504395",
"0.50431347",
"0.5041842",
"0.5025486",
"0.5011371",
"0.49935412",
"0.49933922",
"0.49771547",
"0.49766296",
"0.497515",
"0.4969329",
"0.4966078",
"0.49457967",
"0.4941254",
"0.49337605",
"0.49335763",
"0.49328622",
"0.49315074",
"0.49295142",
"0.492036",
"0.49171507",
"0.49152705",
"0.49119276",
"0.4906914",
"0.49061948",
"0.4894959",
"0.48908484",
"0.48880482",
"0.48874304",
"0.48844948",
"0.48836586",
"0.488287",
"0.4881972",
"0.48804787",
"0.48750022",
"0.48738897",
"0.48723456",
"0.4868064",
"0.48617706",
"0.48601148",
"0.48565266",
"0.4851066",
"0.48353565",
"0.48322645",
"0.4830031",
"0.4821972",
"0.48209217",
"0.48190385",
"0.4817952",
"0.48056674",
"0.47995132",
"0.47983548",
"0.47839573"
] | 0.0 | -1 |
give a context to the calls from other activities | @Override
public void onAttach(Context context) {
super.onAttach(context);
if (context instanceof ParadasFragment.FragmentFromFragment) {
fragmentFromFragmentListener = (ParadasFragment.FragmentFromFragment) context;
} else {
throw new ClassCastException(context.toString() + " must implements MainScreenFragment.OnNewSurveyClicked");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic BaseActivity getContext() {\n\t\treturn this;\n\t}",
"@Override\n\tpublic BaseActivity getContext() {\n\t\treturn this;\n\t}",
"void getContext() {\n playerName = getIntent().getExtras().getString(\"player_name\");\n Log.i(\"DiplomaActivity\", \"getContext - Player name: \" + playerName);\n }",
"public static Activity getContext() {\n return instance;\n\n }",
"protected Activity getContext() {\n return contextWeakReference.get();\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n context=getContext();\n\n }",
"@Override\n\tpublic void starctActivity(Context context) {\n\n\t}",
"@Override\r\n\tpublic Context getContext()\r\n\t{\n\t\treturn this.getActivity().getApplicationContext();\r\n\t}",
"@Override\n\tpublic void starctActivity(Context context) {\n\t\t\n\t}",
"private Context getContext() {\n return mContext;\n }",
"private Context getContext() {\n return mContext;\n }",
"@Override\n public void onContext() {\n }",
"Context getContext();",
"Context context();",
"Context context();",
"@Override\n public Context getContext() {\n return this.getApplicationContext();\n }",
"private Context getApplicationContext() {\n\t\treturn this.cordova.getActivity().getApplicationContext();\n\t}",
"private Context getApplicationContext() {\n\t\treturn this.cordova.getActivity().getApplicationContext();\n\t}",
"Context createContext();",
"Context createContext();",
"void mo25261a(Context context);",
"public void setContext(Context context) {\n this.contextMain = context;\n }",
"NetworkActivity (Context setContext){\n this.context = setContext;\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n this.context = activity;\n }",
"@Override\n\tpublic void initContext(Activity act) {\n\t\tthis._activity = act;\n\t}",
"public void setContext(Context context) {\n this.context = context;\n }",
"@Override\n public Context getApplicationContext() {\n return mView.get().getApplicationContext();\n }",
"public final Context getContext() {\n return mContext;\n }",
"public Context getContext() {\n return mContext;\n }",
"@Override\n\tprotected Context getContext() {\n\t\treturn getActivity();\n\t}",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t\tcontext = activity;\n\t}",
"public abstract void mo36026a(Context context);",
"public void setContext(Context _context) {\n context = _context;\n }",
"@Override\r\n\tpublic void setContext(Context context) {\r\n\t\tthis.context = context;\r\n\t}",
"public Context getActivityContext(){\n return mActivityContext;\n }",
"Builder(Activity activity) {\n this.context = activity;\n }",
"public interface ActivityAware<E> {\r\n E getContextActivity();\r\n}",
"AndroidAppInterface(Context context) {\n this.mContext = context;\n }",
"public Context getContext() {\n\t\treturn mContext;\n\t}",
"public static void startUrself(Activity context) {\n\t\tIntent newActivity = new Intent(context, MainActivity.class);\n\t\tnewActivity.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\tcontext.startActivity(newActivity);\n\t\tcontext.finish();\n\t}",
"void setContext(Context context) {\n\t\tthis.context = context;\n\t}",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\n\t\tcontext = activity;\n\t}",
"public void activityCreated(Context ctx){\n //set Activity context - in this case there is only MainActivity\n mActivityContext = ctx;\n }",
"@Override\n public CallContext getCallContext() {\n return this.context;\n }",
"Context getContext() {\n Context context = mContextRef.get();\n return context != null ? context : AppUtil.getAppContext();\n }",
"long getCurrentContext();",
"public abstract Context context();",
"public static Context getContext(){\n return appContext;\n }",
"void mo97180a(Context context);",
"public synchronized static void setContext(Context con){\n\t\tcontext = con;\n\t}",
"private static Intent getIntent(Context context, Class<?> cls) {\n Intent intent = new Intent(context, cls);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n return intent;\n }",
"private Context getContextAsync() {\n return getActivity() == null ? IotSensorsApplication.getApplication().getApplicationContext() : getActivity();\n }",
"private Activity m33657b(Context context) {\n if (context instanceof Activity) {\n return (Activity) context;\n }\n if (context instanceof ContextWrapper) {\n return m33657b(((ContextWrapper) context).getBaseContext());\n }\n return null;\n }",
"private void opennointernetactivity(Context context) {\n NoInternetConnection_activity.startActivity((Activity) context);\n\n\n }",
"@Override\r\n\tpublic Context getContext() {\r\n\t\treturn this.context;\r\n\t}",
"public void launchLibraryActivity(View view){\n// joker=new Joker();\n// Intent myIntent = new Intent(getApplicationContext(), LibraryActivity.class);\n// myIntent.putExtra(\"key\",joker.getJoke());\n// startActivity(myIntent);\n new JokesFetchAsyncTask().execute(new Pair<Context, String>(this, \"Manfred\"));\n//\n\n// new JokesFetchAsyncTask().execute(getApplicationContext(),new Joker().getJoke());\n }",
"public Context getContext() {\n return this.mService.mContext;\n }",
"public abstract void makeContext();",
"private Intent m34055b(Context context) {\n Intent intent = new Intent();\n String str = \"package\";\n intent.putExtra(str, context.getPackageName());\n intent.putExtra(Constants.FLAG_PACKAGE_NAME, context.getPackageName());\n intent.setData(Uri.fromParts(str, context.getPackageName(), null));\n String str2 = \"com.huawei.systemmanager\";\n intent.setClassName(str2, \"com.huawei.permissionmanager.ui.MainActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n intent.setClassName(str2, \"com.huawei.systemmanager.addviewmonitor.AddViewMonitorActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n intent.setClassName(str2, \"com.huawei.notificationmanager.ui.NotificationManagmentActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n return m34053a(context);\n }",
"public Context getApplicationContext();",
"void mChapie(){\n Intent i = new Intent(context,Peminjaman.class);\n context.startActivity(i);\n\n }",
"public static void startActivity(Context context) {\n Intent homeIntent = new Intent(context, RequestActivity.class);\n context.startActivity(homeIntent);\n }",
"public static Context getContext() {\n\t\treturn context;\n\t}",
"public static Context getContext() {\n\t\treturn context;\n\t}",
"public FotomacAsyncTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }",
"public static void navigateToActivity(Context A, Class <?> B, int flags) {\n Intent myIntent = new Intent(A, B);\n myIntent.setFlags(flags);\n A.startActivity(myIntent);\n }",
"public String getContext() { return context; }",
"private void establishContext() {\n ParcelableNote encoded = getIntent().getParcelableExtra(NOTE_EXTRA);\n mCtx = (encoded == null) ? Context.CREATE : Context.UPDATE;\n\n if (mCtx == Context.UPDATE) {\n mNote = encoded.getNote();\n mTags.addAll(mNote.tags());\n\n EditText title = findViewById(R.id.edit_note_title);\n title.setText(mNote.title());\n EditText body = findViewById(R.id.edit_note_body);\n body.setText(mNote.body());\n }\n }",
"public static void startYourself(Context context) {\n Intent intent = new Intent(context, BookmarksActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n context.startActivity(intent);\n }",
"public MyServiceDataSingleton(Context context) {\r\n myContext = context;\r\n }",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n context=activity;\n userPreferences = new UserPreferences(context);\n jobManager = new JobManager(context);\n }",
"public static void navigateToActivity(Context A, Class <?> B) {\n Intent myIntent = new Intent(A, B);\n A.startActivity(myIntent);\n }",
"@Override\n protected void onResume() {\n// super.onResume();\n MyApplication.getInstance().setcontext(this);\n // Log.e(\"act_tenth_TAG\", \"onResume of :\" + this.getClass().getSimpleName().toString());\n\n\n super.onResume();\n }",
"public Context getContext() {\n return context;\n }",
"private PendingIntent openActivityPendingIntent(Context context) {\n Intent intent = new Intent(context, MainActivity.class);\n return PendingIntent.getActivity(context, 0, intent, 0);\n }",
"@Override\r\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\r\n\t\tcontext=this;\r\n\t}",
"@Override\n public Context getActivityContext() {\n return mView.get().getActivityContext();\n }",
"public MyApp() {\n sContext = this;\n }",
"@Override\n public void onAttach(@NonNull Context context) {\n super.onAttach(context);\n mIMainActivity = (IMainActivity) getActivity();\n }",
"public Context getContext() {\n return this.mContext;\n }",
"public Context getContext() {\n return this.mContext;\n }",
"public static void navigateToActivity(Context A, Class <?> B, Bundle extras, int flags) {\n Intent myIntent = new Intent(A, B);\n myIntent.putExtras(extras);\n myIntent.setFlags(flags);\n A.startActivity(myIntent);\n }",
"@Override\n\tpublic Void setContext(Context context) {\n\t\treturn null;\n\t}",
"void mstrange(){\n Intent i = new Intent(context,Pengembalian.class);\n context.startActivity(i);\n }",
"public static Context getAppContext() {\n return mContext;\n }",
"public Context getContext() {\r\n\t\treturn context;\r\n\t}",
"public void registrarDatos(Context context){\n Intent intent= new Intent(context, RegistroActivity.class);\n intent.putExtra(\"registro\",\"vacio\");\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent);\n }",
"protected GeoFenceActivity(Context context) {\n this.mContext = context;\n // Create a GeofenceService instance.\n geofenceService = LocationServices.getGeofenceService(mContext);\n geofenceList = new ArrayList<>();\n // Obtain a PendingIntent object.\n pendingIntent = getPendingIntent();\n TAG = \"geoFence\";\n geoFenceActivated = false;\n }",
"public Prefs(Activity context){\n this.preferences = context.getSharedPreferences(prefContext, Context.MODE_PRIVATE);\n this.context = context;\n\n }",
"private Intent m34058e(Context context) {\n Intent intent = new Intent();\n String str = \"com.iqoo.secure\";\n intent.setClassName(str, \"com.iqoo.secure.ui.phoneoptimize.FloatWindowManager\");\n intent.putExtra(C7887a.f26868th, context.getPackageName());\n if (m34054a(context, intent)) {\n return intent;\n }\n intent.setClassName(str, \"com.iqoo.secure.safeguard.SoftPermissionDetailActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n return m34053a(context);\n }",
"public Context getContext() {\n return contextMain;\n }",
"private DatabaseAccess(Context context) {\n this.openHelper = new MyDatabase(context);\n }",
"public LopAdaptor(Activity context, int resource){\n super(context ,resource);\n this.context=context;\n this.resource=resource;\n }",
"private void launchOtherTransaction(){\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }",
"public void setContext(Context c) {\n\t\tthis.mContext = c;\n\t}",
"public SporxAsyncTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }",
"static synchronized Context getContext() {\n checkState();\n return sInstance.mContext;\n }",
"public cl_context getContext() {\r\n return context;\r\n }",
"public LigTvAsyncTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }",
"@Override\n public void onClick(View view) {\n try {\n if (ol_Data.getEnglish().equals(\"Courses\")) {\n\n Intent cour = new Intent(ctx, AllCourses.class);\n cour.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n ctx.startActivity(cour);\n } else if (ol_Data.getEnglish().equals(\"Hijri Calender\")) {\n Intent nq = new Intent(ctx, CaldroidSampleActivity.class);\n nq.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n ctx.startActivity(nq);\n }else if (ol_Data.getEnglish().equals(\"Namaz Alarm\")) {\n Intent nq = new Intent(ctx, Muazzin.class);\n nq.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n ctx.startActivity(nq);\n }else if (ol_Data.getEnglish().equals(\"General Knowledge\")) {\n Intent nq = new Intent(ctx, GK.class);\n nq.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n ctx.startActivity(nq);\n }\n } catch (Exception e) {\n Toast.makeText(ctx, \"Error \" + e.getMessage(), Toast.LENGTH_LONG).show();\n }\n\n }",
"public static void startActivity(Activity context, Class<?> c, int requestCode, Bundle b) {\n\t\tIntent i;\n\t\ti = new Intent(context, c);\n\t\ti.putExtras(b);\n\t\tcontext.startActivityForResult(i, requestCode);\n\t}"
] | [
"0.713289",
"0.713289",
"0.7063644",
"0.70442873",
"0.69841766",
"0.6961372",
"0.69312596",
"0.6874359",
"0.6866885",
"0.67033607",
"0.67033607",
"0.66816866",
"0.6653624",
"0.66505426",
"0.66505426",
"0.6570754",
"0.65555716",
"0.65555716",
"0.65339375",
"0.65339375",
"0.6530196",
"0.6519119",
"0.64618284",
"0.64414597",
"0.64298576",
"0.63954496",
"0.6354561",
"0.63381684",
"0.6337818",
"0.631836",
"0.62962407",
"0.6272872",
"0.6259986",
"0.62547326",
"0.6254343",
"0.62423956",
"0.6239122",
"0.62318075",
"0.6223485",
"0.6218802",
"0.62182957",
"0.6213197",
"0.6195284",
"0.61947066",
"0.61856997",
"0.6154561",
"0.61506605",
"0.6146842",
"0.613665",
"0.61126435",
"0.609634",
"0.6090055",
"0.6076055",
"0.6073673",
"0.6069168",
"0.606131",
"0.60596263",
"0.6054319",
"0.6050646",
"0.6050279",
"0.6032264",
"0.6023425",
"0.6015311",
"0.6015311",
"0.6015261",
"0.5995756",
"0.5991858",
"0.5980726",
"0.59778565",
"0.59729826",
"0.5966098",
"0.59614927",
"0.5941469",
"0.594113",
"0.59391236",
"0.593254",
"0.59301794",
"0.5928686",
"0.59273016",
"0.59235567",
"0.59235567",
"0.5923396",
"0.59113914",
"0.5909949",
"0.59089744",
"0.5907668",
"0.59020144",
"0.58990586",
"0.5896489",
"0.5893713",
"0.5888084",
"0.5884425",
"0.5877024",
"0.5874622",
"0.58719397",
"0.5858598",
"0.58540195",
"0.585313",
"0.5840029",
"0.5837602",
"0.58333343"
] | 0.0 | -1 |
Defines the Type that extends the Order with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Order. | public OrderSetCustomTypeActionBuilder type(
Function<com.commercetools.api.models.type.TypeResourceIdentifierBuilder, com.commercetools.api.models.type.TypeResourceIdentifierBuilder> builder) {
this.type = builder.apply(com.commercetools.api.models.type.TypeResourceIdentifierBuilder.of()).build();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public OrderType(Type type) {\n\t\tsuper();\n\t\tthis.setType(type);\n\t}",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearORDERTYPE() {\n ORDER_TYPE = null;\n fieldSetFlags()[0] = false;\n return this;\n }",
"void setOrderType(OrderType inOrderType);",
"public void setOrderType(String orderType) {\r\n\t\tthis.orderType = orderType;\r\n\t}",
"public void setOrderType(Byte orderType) {\n this.orderType = orderType;\n }",
"OrderType getOrderType();",
"public String getOrderType() {\r\n\t\treturn orderType;\r\n\t}",
"public static OrderSetCustomTypeActionBuilder of() {\n return new OrderSetCustomTypeActionBuilder();\n }",
"io.opencannabis.schema.commerce.CommercialOrder.OrderType getType();",
"public OrderType getOrderType() {\r\n\t\treturn orderType;\r\n\t}",
"private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = true;\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = true;\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = true;\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = true;\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = true;\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = true;\n }\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearORDERTYPESID() {\n ORDER_TYPES_ID = null;\n fieldSetFlags()[10] = false;\n return this;\n }",
"public OrderSetCustomTypeActionBuilder fields(\n @Nullable final com.commercetools.api.models.type.FieldContainer fields) {\n this.fields = fields;\n return this;\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder setORDERTYPE(java.lang.CharSequence value) {\n validate(fields()[0], value);\n this.ORDER_TYPE = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"public LNDCDC_NCS_TCS_ORDER_TYPES() {}",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearORDERDESCRIPTION() {\n ORDER_DESCRIPTION = null;\n fieldSetFlags()[1] = false;\n return this;\n }",
"public io.opencannabis.schema.commerce.CommercialOrder.OrderType getType() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.CommercialOrder.OrderType result = io.opencannabis.schema.commerce.CommercialOrder.OrderType.valueOf(type_);\n return result == null ? io.opencannabis.schema.commerce.CommercialOrder.OrderType.UNRECOGNIZED : result;\n }",
"public io.opencannabis.schema.commerce.CommercialOrder.OrderType getType() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.CommercialOrder.OrderType result = io.opencannabis.schema.commerce.CommercialOrder.OrderType.valueOf(type_);\n return result == null ? io.opencannabis.schema.commerce.CommercialOrder.OrderType.UNRECOGNIZED : result;\n }",
"public Builder setType(io.opencannabis.schema.commerce.CommercialOrder.OrderType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n type_ = value.getNumber();\n onChanged();\n return this;\n }",
"private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = other.fieldSetFlags()[0];\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = other.fieldSetFlags()[1];\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = other.fieldSetFlags()[2];\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = other.fieldSetFlags()[3];\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = other.fieldSetFlags()[4];\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = other.fieldSetFlags()[5];\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = other.fieldSetFlags()[6];\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = other.fieldSetFlags()[7];\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = other.fieldSetFlags()[8];\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = other.fieldSetFlags()[9];\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = other.fieldSetFlags()[10];\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = other.fieldSetFlags()[11];\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = other.fieldSetFlags()[12];\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = other.fieldSetFlags()[13];\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = other.fieldSetFlags()[14];\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = other.fieldSetFlags()[15];\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = other.fieldSetFlags()[16];\n }\n }",
"public OrderSetCustomTypeActionBuilder type(\n @Nullable final com.commercetools.api.models.type.TypeResourceIdentifier type) {\n this.type = type;\n return this;\n }",
"public com.vodafone.global.er.decoupling.binding.request.PricePointType.CustomFieldsType createPricePointTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointTypeImpl.CustomFieldsTypeImpl();\n }",
"public com.vodafone.global.er.decoupling.binding.request.PricePointFullType.CustomFieldsType createPricePointFullTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointFullTypeImpl.CustomFieldsTypeImpl();\n }",
"public com.vodafone.global.er.decoupling.binding.request.CatalogPackageFullType.CustomFieldsType createCatalogPackageFullTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogPackageFullTypeImpl.CustomFieldsTypeImpl();\n }",
"public com.vodafone.global.er.decoupling.binding.request.CatalogServiceFullType.CustomFieldsType createCatalogServiceFullTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogServiceFullTypeImpl.CustomFieldsTypeImpl();\n }",
"public String getOrderType() {\n\t\treturn (String) get_Value(\"OrderType\");\n\t}",
"@Nonnull\n public static UBL23WriterBuilder <OrderType> order ()\n {\n return UBL23WriterBuilder.create (OrderType.class);\n }",
"FieldsType createFieldsType();",
"public ReocType() \r\n {\r\n super();\r\n }",
"public String\t\tgetOrderType();",
"public com.vodafone.global.er.decoupling.binding.request.CustomFieldType createCustomFieldType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CustomFieldTypeImpl();\n }",
"@Override\n\tpublic int add(Forge_Order_Detail t) {\n\t\treturn 0;\n\t}",
"@Override\n protected Type createNewTypeWithoutReflection(int field) {\n return null;\n }",
"public void setORDERTYPE(java.lang.CharSequence value) {\n this.ORDER_TYPE = value;\n }",
"public OrderSetCustomTypeActionBuilder withFields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainer> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of());\n return this;\n }",
"public static org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder newBuilder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder other) {\n if (other == null) {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder();\n } else {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder(other);\n }\n }",
"public OrderSetCustomTypeActionBuilder fields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainerBuilder> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of()).build();\n return this;\n }",
"public OrderSetCustomTypeAction build() {\n return new OrderSetCustomTypeActionImpl(type, fields);\n }",
"public Type() {\n super();\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearREVENUEDEFAULTIND() {\n REVENUE_DEFAULT_IND = null;\n fieldSetFlags()[7] = false;\n return this;\n }",
"public boolean hasORDERTYPE() {\n return fieldSetFlags()[0];\n }",
"public void markAsCustomSerialized(final ClassType firmType) {\n\t\tcustomSerializationMethods.put(firmType, new CustomSerializationMethods());\n\t}",
"public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }",
"public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }",
"public static org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder newBuilder() {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder();\n }",
"@Override\n protected List<String> getFieldOrder() {\n ArrayList<String> FieldOrder=new ArrayList<>();\n FieldOrder.add(\"infoType\");\n FieldOrder.add(\"info\");\n return FieldOrder;\n }",
"@Override\n\tprotected List<String> getFieldOrder() {\n\t\treturn Arrays.asList(\n\t\t\t\"nType\", \n\t\t\t\"szUnitID\", \n\t\t\t\"szCurID\", \n\t\t\t\"nValues\", \n\t\t\t\"nCount\", \n\t\t\t\"nStatus\" \n\t\t);\n\t}",
"public OrderType getCodeOrderType() {\nreturn this.codeOrderType;\n}",
"@Override\n public Type getType() {\n return null;\n }",
"FieldType createFieldType();",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearOTDFLTLENGTHCODE() {\n OT_DFLT_LENGTH_CODE = null;\n fieldSetFlags()[3] = false;\n return this;\n }",
"public static org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder newBuilder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES other) {\n if (other == null) {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder();\n } else {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder(other);\n }\n }",
"public Byte getOrderType() {\n return orderType;\n }",
"public java.lang.CharSequence getORDERTYPE() {\n return ORDER_TYPE;\n }",
"public TProductRentType() {\n this(DSL.name(\"t_product_rent_type\"), null);\n }",
"public java.lang.CharSequence getORDERTYPE() {\n return ORDER_TYPE;\n }",
"public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000008);\n type_ = fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType.FT_DEFAULT;\n onChanged();\n return this;\n }",
"@Override\n\tpublic Type getType() {\n\t\treturn null;\n\t}",
"@ClassVersion(\"$Id: NewOrReplaceOrder.java 16752 2013-11-14 02:54:13Z colin $\")\r\npublic interface NewOrReplaceOrder\r\n extends OrderBase, Serializable\r\n{\r\n /**\r\n * Gets the OrderType for the Order.\r\n *\r\n * @return the order type.\r\n */\r\n OrderType getOrderType();\r\n\r\n /**\r\n * Sets the OrderType for the Order.\r\n *\r\n * @param inOrderType the order type.\r\n */\r\n void setOrderType(OrderType inOrderType);\r\n\r\n /**\r\n * Gets the time in force value for the Order. If a value\r\n * is not specified, it defaults to\r\n * {@link org.marketcetera.trade.TimeInForce#Day}.\r\n *\r\n * @return the time in force value.\r\n */\r\n TimeInForce getTimeInForce();\r\n\r\n /**\r\n * Sets the time in force value for the Order.\r\n *\r\n * @param inTimeInForce the time in force value.\r\n */\r\n void setTimeInForce(TimeInForce inTimeInForce);\r\n\r\n /**\r\n * Gets the limit price for this order. A limit price should be\r\n * specified when the OrderType is {@link OrderType#Limit}.\r\n * This value is ignored if the OrderType is not {@link OrderType#Limit}.\r\n *\r\n *\r\n * @return the limit price for the order.\r\n */\r\n BigDecimal getPrice();\r\n\r\n /**\r\n * Sets the limit price for this order. A limit price should be\r\n * specified when the OrderType is {@link OrderType#Limit}.\r\n *\r\n * @param inPrice the limit price for the order.\r\n */\r\n void setPrice(BigDecimal inPrice);\r\n\r\n /**\r\n * Gets the order capacity value for this order.\r\n *\r\n * @return the order capacity value.\r\n */\r\n OrderCapacity getOrderCapacity();\r\n\r\n /**\r\n * Sets the order capacity value for this order.\r\n *\r\n * @param inOrderCapacity the order capacity value\r\n */\r\n void setOrderCapacity(OrderCapacity inOrderCapacity);\r\n\r\n /**\r\n * Gets the position effect for this order.\r\n *\r\n * @return the position effect value.\r\n */\r\n PositionEffect getPositionEffect();\r\n\r\n /**\r\n * Sets the position effect value for this order.\r\n *\r\n * @param inPositionEffect the position effect value.\r\n */\r\n void setPositionEffect(PositionEffect inPositionEffect);\r\n \r\n /**\r\n * Gets the display quantity for the Order.\r\n *\r\n * @return the display quantity.\r\n */\r\n BigDecimal getDisplayQuantity();\r\n\r\n /**\r\n * Sets the display quantity for the Order.\r\n *\r\n * @param inDisplayQuantity the display quantity.\r\n */\r\n void setDisplayQuantity(BigDecimal inDisplayQuantity);\r\n /**\r\n * Gets the broker algo value, if any.\r\n *\r\n * @return a <code>BrokerAlgo</code> value\r\n */\r\n BrokerAlgo getBrokerAlgo();\r\n /**\r\n * Sets the broker algo value.\r\n *\r\n * @param inBrokerAlgo a <code>BrokerAlgo</code> value\r\n */\r\n void setBrokerAlgo(BrokerAlgo inBrokerAlgo);\r\n}",
"@Override\r\n\tpublic String getType() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getType() {\n\t\treturn null;\r\n\t}",
"public void overrideFieldType(AnnotatedField<? super X> field, Type type) {\n\t\toverrideFieldType(field.getJavaMember(), type);\n\t}",
"@Override\n public String getType()\n {\n return \"OO\";\n }",
"public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000001);\n type_ = com.rpg.framework.database.Protocol.ItemType.ITEM_TYPE_USE;\n onChanged();\n return this;\n }",
"@Override\n public String getType() {\n return \"\";\n }",
"public OrderType(Integer id, String name) {\n\t\tsuper();\n\t\tthis.id = id;\n\t\tthis.name = name;\n\t}",
"public OrderSetCustomTypeAction buildUnchecked() {\n return new OrderSetCustomTypeActionImpl(type, fields);\n }",
"String getOrderTypeId();",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearREVENUEREPORTIND() {\n REVENUE_REPORT_IND = null;\n fieldSetFlags()[6] = false;\n return this;\n }",
"public com.vodafone.global.er.decoupling.binding.request.CustomFieldFullType createCustomFieldFullType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CustomFieldFullTypeImpl();\n }",
"public static OrderSetCustomTypeActionBuilder of(final OrderSetCustomTypeAction template) {\n OrderSetCustomTypeActionBuilder builder = new OrderSetCustomTypeActionBuilder();\n builder.type = template.getType();\n builder.fields = template.getFields();\n return builder;\n }",
"public maestro.payloads.FlyerFeaturedItem.Builder clearType() {\n type = null;\n fieldSetFlags()[0] = false;\n return this;\n }",
"public PurchaseType(java.lang.String code)\r\n {\r\n super(code);\r\n }",
"public Builder clearType() {\n\n\t\t\t\t\ttype_ = 0;\n\t\t\t\t\tonChanged();\n\t\t\t\t\treturn this;\n\t\t\t\t}",
"@Override\n public String getType(){\n return Type;\n }",
"public TExpressOrderRecord() {\n super(TExpressOrder.T_EXPRESS_ORDER);\n }",
"public Builder clearType() {\n\n\t\t\t\ttype_ = 0;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}",
"public Type() {\n\t\tsetSize();\n\t}",
"Builder addAdditionalType(String value);",
"public boolean isSetOrderType() {\n return this.orderType != null;\n }",
"public Builder clearType() {\n\n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }",
"public Builder clearType() {\n\n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }",
"public void\t\t\tsetOrderStatus(String orderType);",
"@Override\n public Class<OrderRecord> getRecordType() {\n return OrderRecord.class;\n }",
"public Builder clearOrderSize() {\n bitField0_ = (bitField0_ & ~0x00400000);\n orderSize_ = 0D;\n onChanged();\n return this;\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearOTDFLTUPFNTSCATIND() {\n OT_DFLT_UPFNT_SCAT_IND = null;\n fieldSetFlags()[5] = false;\n return this;\n }",
"protected GEDCOMType() {/* intentionally empty block */}",
"public PaymentType(String paymentType) {\n\t\tsuper();\n\t\tthis.paymentType = paymentType;\n\t}",
"public TypesAxis() {\r\n\t\tsuper(AxisTypes.class);\r\n\t}",
"@Override\n\tpublic String queryWaybillTypeByOrderNo(String orderNo) {\n\t\treturn null;\n\t}",
"com.google.privacy.dlp.v2.CustomInfoType.ExclusionType getExclusionType();",
"@Override\npublic String getType() {\n\treturn null;\n}",
"private FieldExtractor<OrderEntity> createOrderFieldExtractor() {\r\n BeanWrapperFieldExtractor<OrderEntity> extractor = new BeanWrapperFieldExtractor<>();\r\n extractor.setNames(new String[] {\"region\", \"country\", \"itemType\", \"salesChannel\",\r\n \"orderPriority\", \"orderDate\", \"orderId\", \"shipDate\", \"unitsSold\", \"unitPrice\", \"unitCost\",\r\n \"totalCost\", \"totalRevenue\", \"totalProfit\"});\r\n return extractor;\r\n }",
"FooterType createFooterType();",
"@Override\n public Type getType() {\n return type;\n }",
"@Override\n public Type getType() {\n return type;\n }",
"@Override\n public String getType() {\n return super.getType().toLowerCase();\n }",
"public Order() {\n this(DSL.name(\"order\"), null);\n }",
"Type() {\n }",
"public void addInludedTransportType(Integer includedTransportType);",
"public Builder clearType() {\n \n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }"
] | [
"0.6574137",
"0.65210414",
"0.60581577",
"0.60520816",
"0.6014551",
"0.59847605",
"0.58897847",
"0.5837726",
"0.58336955",
"0.579281",
"0.5786567",
"0.5758291",
"0.5755126",
"0.57541454",
"0.57510036",
"0.573086",
"0.5707166",
"0.56817794",
"0.5592659",
"0.5558051",
"0.55351764",
"0.5523761",
"0.55046296",
"0.5477921",
"0.54269767",
"0.542181",
"0.54182285",
"0.53839785",
"0.53664875",
"0.53502953",
"0.5307726",
"0.5225946",
"0.5223156",
"0.5220924",
"0.52197236",
"0.5207018",
"0.51788247",
"0.5168061",
"0.51601714",
"0.51399815",
"0.5132776",
"0.5103888",
"0.5094161",
"0.5094161",
"0.50895035",
"0.50853753",
"0.506092",
"0.50503254",
"0.50305074",
"0.501527",
"0.50097126",
"0.5009477",
"0.4983905",
"0.49728298",
"0.49642012",
"0.49426916",
"0.49313462",
"0.4930458",
"0.49191052",
"0.49181867",
"0.49181867",
"0.49090827",
"0.48954353",
"0.4889873",
"0.4885624",
"0.48809895",
"0.48790804",
"0.48786697",
"0.487696",
"0.4874101",
"0.48712236",
"0.48553994",
"0.48406547",
"0.4839886",
"0.48395932",
"0.48378435",
"0.4831703",
"0.48300683",
"0.4815767",
"0.48096675",
"0.48086748",
"0.48086748",
"0.48049447",
"0.48037693",
"0.48028514",
"0.48027378",
"0.47979483",
"0.47906673",
"0.47810304",
"0.47783694",
"0.47782817",
"0.47779086",
"0.4777255",
"0.47728997",
"0.47717127",
"0.47717127",
"0.47696573",
"0.47638065",
"0.47532105",
"0.47486898",
"0.47432297"
] | 0.0 | -1 |
Defines the Type that extends the Order with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Order. | public OrderSetCustomTypeActionBuilder withType(
Function<com.commercetools.api.models.type.TypeResourceIdentifierBuilder, com.commercetools.api.models.type.TypeResourceIdentifier> builder) {
this.type = builder.apply(com.commercetools.api.models.type.TypeResourceIdentifierBuilder.of());
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public OrderType(Type type) {\n\t\tsuper();\n\t\tthis.setType(type);\n\t}",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearORDERTYPE() {\n ORDER_TYPE = null;\n fieldSetFlags()[0] = false;\n return this;\n }",
"void setOrderType(OrderType inOrderType);",
"public void setOrderType(String orderType) {\r\n\t\tthis.orderType = orderType;\r\n\t}",
"public void setOrderType(Byte orderType) {\n this.orderType = orderType;\n }",
"OrderType getOrderType();",
"public String getOrderType() {\r\n\t\treturn orderType;\r\n\t}",
"public static OrderSetCustomTypeActionBuilder of() {\n return new OrderSetCustomTypeActionBuilder();\n }",
"io.opencannabis.schema.commerce.CommercialOrder.OrderType getType();",
"public OrderType getOrderType() {\r\n\t\treturn orderType;\r\n\t}",
"private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = true;\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = true;\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = true;\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = true;\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = true;\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = true;\n }\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearORDERTYPESID() {\n ORDER_TYPES_ID = null;\n fieldSetFlags()[10] = false;\n return this;\n }",
"public OrderSetCustomTypeActionBuilder fields(\n @Nullable final com.commercetools.api.models.type.FieldContainer fields) {\n this.fields = fields;\n return this;\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder setORDERTYPE(java.lang.CharSequence value) {\n validate(fields()[0], value);\n this.ORDER_TYPE = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"public LNDCDC_NCS_TCS_ORDER_TYPES() {}",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearORDERDESCRIPTION() {\n ORDER_DESCRIPTION = null;\n fieldSetFlags()[1] = false;\n return this;\n }",
"public io.opencannabis.schema.commerce.CommercialOrder.OrderType getType() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.CommercialOrder.OrderType result = io.opencannabis.schema.commerce.CommercialOrder.OrderType.valueOf(type_);\n return result == null ? io.opencannabis.schema.commerce.CommercialOrder.OrderType.UNRECOGNIZED : result;\n }",
"public io.opencannabis.schema.commerce.CommercialOrder.OrderType getType() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.CommercialOrder.OrderType result = io.opencannabis.schema.commerce.CommercialOrder.OrderType.valueOf(type_);\n return result == null ? io.opencannabis.schema.commerce.CommercialOrder.OrderType.UNRECOGNIZED : result;\n }",
"public Builder setType(io.opencannabis.schema.commerce.CommercialOrder.OrderType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n type_ = value.getNumber();\n onChanged();\n return this;\n }",
"private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = other.fieldSetFlags()[0];\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = other.fieldSetFlags()[1];\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = other.fieldSetFlags()[2];\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = other.fieldSetFlags()[3];\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = other.fieldSetFlags()[4];\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = other.fieldSetFlags()[5];\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = other.fieldSetFlags()[6];\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = other.fieldSetFlags()[7];\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = other.fieldSetFlags()[8];\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = other.fieldSetFlags()[9];\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = other.fieldSetFlags()[10];\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = other.fieldSetFlags()[11];\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = other.fieldSetFlags()[12];\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = other.fieldSetFlags()[13];\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = other.fieldSetFlags()[14];\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = other.fieldSetFlags()[15];\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = other.fieldSetFlags()[16];\n }\n }",
"public OrderSetCustomTypeActionBuilder type(\n @Nullable final com.commercetools.api.models.type.TypeResourceIdentifier type) {\n this.type = type;\n return this;\n }",
"public com.vodafone.global.er.decoupling.binding.request.PricePointType.CustomFieldsType createPricePointTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointTypeImpl.CustomFieldsTypeImpl();\n }",
"public com.vodafone.global.er.decoupling.binding.request.PricePointFullType.CustomFieldsType createPricePointFullTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointFullTypeImpl.CustomFieldsTypeImpl();\n }",
"public com.vodafone.global.er.decoupling.binding.request.CatalogPackageFullType.CustomFieldsType createCatalogPackageFullTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogPackageFullTypeImpl.CustomFieldsTypeImpl();\n }",
"public com.vodafone.global.er.decoupling.binding.request.CatalogServiceFullType.CustomFieldsType createCatalogServiceFullTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogServiceFullTypeImpl.CustomFieldsTypeImpl();\n }",
"public String getOrderType() {\n\t\treturn (String) get_Value(\"OrderType\");\n\t}",
"@Nonnull\n public static UBL23WriterBuilder <OrderType> order ()\n {\n return UBL23WriterBuilder.create (OrderType.class);\n }",
"FieldsType createFieldsType();",
"public ReocType() \r\n {\r\n super();\r\n }",
"public String\t\tgetOrderType();",
"public com.vodafone.global.er.decoupling.binding.request.CustomFieldType createCustomFieldType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CustomFieldTypeImpl();\n }",
"@Override\n protected Type createNewTypeWithoutReflection(int field) {\n return null;\n }",
"@Override\n\tpublic int add(Forge_Order_Detail t) {\n\t\treturn 0;\n\t}",
"public void setORDERTYPE(java.lang.CharSequence value) {\n this.ORDER_TYPE = value;\n }",
"public OrderSetCustomTypeActionBuilder withFields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainer> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of());\n return this;\n }",
"public static org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder newBuilder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder other) {\n if (other == null) {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder();\n } else {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder(other);\n }\n }",
"public OrderSetCustomTypeActionBuilder fields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainerBuilder> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of()).build();\n return this;\n }",
"public OrderSetCustomTypeAction build() {\n return new OrderSetCustomTypeActionImpl(type, fields);\n }",
"public Type() {\n super();\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearREVENUEDEFAULTIND() {\n REVENUE_DEFAULT_IND = null;\n fieldSetFlags()[7] = false;\n return this;\n }",
"public boolean hasORDERTYPE() {\n return fieldSetFlags()[0];\n }",
"public void markAsCustomSerialized(final ClassType firmType) {\n\t\tcustomSerializationMethods.put(firmType, new CustomSerializationMethods());\n\t}",
"public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }",
"public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }",
"public static org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder newBuilder() {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder();\n }",
"@Override\n protected List<String> getFieldOrder() {\n ArrayList<String> FieldOrder=new ArrayList<>();\n FieldOrder.add(\"infoType\");\n FieldOrder.add(\"info\");\n return FieldOrder;\n }",
"@Override\n\tprotected List<String> getFieldOrder() {\n\t\treturn Arrays.asList(\n\t\t\t\"nType\", \n\t\t\t\"szUnitID\", \n\t\t\t\"szCurID\", \n\t\t\t\"nValues\", \n\t\t\t\"nCount\", \n\t\t\t\"nStatus\" \n\t\t);\n\t}",
"public OrderType getCodeOrderType() {\nreturn this.codeOrderType;\n}",
"@Override\n public Type getType() {\n return null;\n }",
"FieldType createFieldType();",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearOTDFLTLENGTHCODE() {\n OT_DFLT_LENGTH_CODE = null;\n fieldSetFlags()[3] = false;\n return this;\n }",
"public static org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder newBuilder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES other) {\n if (other == null) {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder();\n } else {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder(other);\n }\n }",
"public Byte getOrderType() {\n return orderType;\n }",
"public java.lang.CharSequence getORDERTYPE() {\n return ORDER_TYPE;\n }",
"public TProductRentType() {\n this(DSL.name(\"t_product_rent_type\"), null);\n }",
"public java.lang.CharSequence getORDERTYPE() {\n return ORDER_TYPE;\n }",
"@Override\n\tpublic Type getType() {\n\t\treturn null;\n\t}",
"public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000008);\n type_ = fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType.FT_DEFAULT;\n onChanged();\n return this;\n }",
"@Override\r\n\tpublic String getType() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getType() {\n\t\treturn null;\r\n\t}",
"@ClassVersion(\"$Id: NewOrReplaceOrder.java 16752 2013-11-14 02:54:13Z colin $\")\r\npublic interface NewOrReplaceOrder\r\n extends OrderBase, Serializable\r\n{\r\n /**\r\n * Gets the OrderType for the Order.\r\n *\r\n * @return the order type.\r\n */\r\n OrderType getOrderType();\r\n\r\n /**\r\n * Sets the OrderType for the Order.\r\n *\r\n * @param inOrderType the order type.\r\n */\r\n void setOrderType(OrderType inOrderType);\r\n\r\n /**\r\n * Gets the time in force value for the Order. If a value\r\n * is not specified, it defaults to\r\n * {@link org.marketcetera.trade.TimeInForce#Day}.\r\n *\r\n * @return the time in force value.\r\n */\r\n TimeInForce getTimeInForce();\r\n\r\n /**\r\n * Sets the time in force value for the Order.\r\n *\r\n * @param inTimeInForce the time in force value.\r\n */\r\n void setTimeInForce(TimeInForce inTimeInForce);\r\n\r\n /**\r\n * Gets the limit price for this order. A limit price should be\r\n * specified when the OrderType is {@link OrderType#Limit}.\r\n * This value is ignored if the OrderType is not {@link OrderType#Limit}.\r\n *\r\n *\r\n * @return the limit price for the order.\r\n */\r\n BigDecimal getPrice();\r\n\r\n /**\r\n * Sets the limit price for this order. A limit price should be\r\n * specified when the OrderType is {@link OrderType#Limit}.\r\n *\r\n * @param inPrice the limit price for the order.\r\n */\r\n void setPrice(BigDecimal inPrice);\r\n\r\n /**\r\n * Gets the order capacity value for this order.\r\n *\r\n * @return the order capacity value.\r\n */\r\n OrderCapacity getOrderCapacity();\r\n\r\n /**\r\n * Sets the order capacity value for this order.\r\n *\r\n * @param inOrderCapacity the order capacity value\r\n */\r\n void setOrderCapacity(OrderCapacity inOrderCapacity);\r\n\r\n /**\r\n * Gets the position effect for this order.\r\n *\r\n * @return the position effect value.\r\n */\r\n PositionEffect getPositionEffect();\r\n\r\n /**\r\n * Sets the position effect value for this order.\r\n *\r\n * @param inPositionEffect the position effect value.\r\n */\r\n void setPositionEffect(PositionEffect inPositionEffect);\r\n \r\n /**\r\n * Gets the display quantity for the Order.\r\n *\r\n * @return the display quantity.\r\n */\r\n BigDecimal getDisplayQuantity();\r\n\r\n /**\r\n * Sets the display quantity for the Order.\r\n *\r\n * @param inDisplayQuantity the display quantity.\r\n */\r\n void setDisplayQuantity(BigDecimal inDisplayQuantity);\r\n /**\r\n * Gets the broker algo value, if any.\r\n *\r\n * @return a <code>BrokerAlgo</code> value\r\n */\r\n BrokerAlgo getBrokerAlgo();\r\n /**\r\n * Sets the broker algo value.\r\n *\r\n * @param inBrokerAlgo a <code>BrokerAlgo</code> value\r\n */\r\n void setBrokerAlgo(BrokerAlgo inBrokerAlgo);\r\n}",
"public void overrideFieldType(AnnotatedField<? super X> field, Type type) {\n\t\toverrideFieldType(field.getJavaMember(), type);\n\t}",
"@Override\n public String getType()\n {\n return \"OO\";\n }",
"public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000001);\n type_ = com.rpg.framework.database.Protocol.ItemType.ITEM_TYPE_USE;\n onChanged();\n return this;\n }",
"@Override\n public String getType() {\n return \"\";\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearREVENUEREPORTIND() {\n REVENUE_REPORT_IND = null;\n fieldSetFlags()[6] = false;\n return this;\n }",
"public OrderType(Integer id, String name) {\n\t\tsuper();\n\t\tthis.id = id;\n\t\tthis.name = name;\n\t}",
"public OrderSetCustomTypeAction buildUnchecked() {\n return new OrderSetCustomTypeActionImpl(type, fields);\n }",
"String getOrderTypeId();",
"public com.vodafone.global.er.decoupling.binding.request.CustomFieldFullType createCustomFieldFullType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CustomFieldFullTypeImpl();\n }",
"public static OrderSetCustomTypeActionBuilder of(final OrderSetCustomTypeAction template) {\n OrderSetCustomTypeActionBuilder builder = new OrderSetCustomTypeActionBuilder();\n builder.type = template.getType();\n builder.fields = template.getFields();\n return builder;\n }",
"public maestro.payloads.FlyerFeaturedItem.Builder clearType() {\n type = null;\n fieldSetFlags()[0] = false;\n return this;\n }",
"public Builder clearType() {\n\n\t\t\t\t\ttype_ = 0;\n\t\t\t\t\tonChanged();\n\t\t\t\t\treturn this;\n\t\t\t\t}",
"@Override\n public String getType(){\n return Type;\n }",
"public PurchaseType(java.lang.String code)\r\n {\r\n super(code);\r\n }",
"public TExpressOrderRecord() {\n super(TExpressOrder.T_EXPRESS_ORDER);\n }",
"public Builder clearType() {\n\n\t\t\t\ttype_ = 0;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}",
"public Type() {\n\t\tsetSize();\n\t}",
"Builder addAdditionalType(String value);",
"public Builder clearType() {\n\n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }",
"public Builder clearType() {\n\n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }",
"public boolean isSetOrderType() {\n return this.orderType != null;\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearOTDFLTUPFNTSCATIND() {\n OT_DFLT_UPFNT_SCAT_IND = null;\n fieldSetFlags()[5] = false;\n return this;\n }",
"public void\t\t\tsetOrderStatus(String orderType);",
"public Builder clearOrderSize() {\n bitField0_ = (bitField0_ & ~0x00400000);\n orderSize_ = 0D;\n onChanged();\n return this;\n }",
"@Override\n public Class<OrderRecord> getRecordType() {\n return OrderRecord.class;\n }",
"protected GEDCOMType() {/* intentionally empty block */}",
"public PaymentType(String paymentType) {\n\t\tsuper();\n\t\tthis.paymentType = paymentType;\n\t}",
"@Override\npublic String getType() {\n\treturn null;\n}",
"com.google.privacy.dlp.v2.CustomInfoType.ExclusionType getExclusionType();",
"public TypesAxis() {\r\n\t\tsuper(AxisTypes.class);\r\n\t}",
"@Override\n\tpublic String queryWaybillTypeByOrderNo(String orderNo) {\n\t\treturn null;\n\t}",
"private FieldExtractor<OrderEntity> createOrderFieldExtractor() {\r\n BeanWrapperFieldExtractor<OrderEntity> extractor = new BeanWrapperFieldExtractor<>();\r\n extractor.setNames(new String[] {\"region\", \"country\", \"itemType\", \"salesChannel\",\r\n \"orderPriority\", \"orderDate\", \"orderId\", \"shipDate\", \"unitsSold\", \"unitPrice\", \"unitCost\",\r\n \"totalCost\", \"totalRevenue\", \"totalProfit\"});\r\n return extractor;\r\n }",
"@Override\n public Type getType() {\n return type;\n }",
"@Override\n public Type getType() {\n return type;\n }",
"FooterType createFooterType();",
"@Override\n public String getType() {\n return super.getType().toLowerCase();\n }",
"public Order() {\n this(DSL.name(\"order\"), null);\n }",
"Type() {\n }",
"public void addInludedTransportType(Integer includedTransportType);",
"public Builder clearType() {\n \n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }"
] | [
"0.6572922",
"0.6522643",
"0.60571474",
"0.60513264",
"0.6013497",
"0.5983702",
"0.5889184",
"0.58358544",
"0.5832542",
"0.5792414",
"0.5784595",
"0.5759344",
"0.5754744",
"0.5752347",
"0.5749549",
"0.5731655",
"0.5707105",
"0.5681694",
"0.55907494",
"0.55564314",
"0.55353576",
"0.5523326",
"0.5505082",
"0.54784244",
"0.54275286",
"0.54210764",
"0.5416139",
"0.5385278",
"0.5368501",
"0.53491044",
"0.5306365",
"0.52264625",
"0.52234197",
"0.522018",
"0.5217393",
"0.52049756",
"0.5176626",
"0.5166437",
"0.51621646",
"0.5142748",
"0.51334596",
"0.51040614",
"0.50928766",
"0.50928766",
"0.50875944",
"0.5085409",
"0.50608313",
"0.50487876",
"0.50352174",
"0.50154144",
"0.5011111",
"0.5007524",
"0.49831647",
"0.49726245",
"0.49644613",
"0.4942521",
"0.49347618",
"0.49346086",
"0.49223194",
"0.49223194",
"0.49178433",
"0.491032",
"0.4897785",
"0.4893204",
"0.48891586",
"0.4880409",
"0.48782867",
"0.48782745",
"0.4877559",
"0.48749062",
"0.48683676",
"0.4859897",
"0.48442325",
"0.48417997",
"0.48402295",
"0.4836421",
"0.48359543",
"0.48321643",
"0.4814867",
"0.4812271",
"0.4812271",
"0.48097655",
"0.48044723",
"0.4804117",
"0.4802945",
"0.4802148",
"0.47999015",
"0.47921872",
"0.4782255",
"0.47812432",
"0.47807175",
"0.47779092",
"0.47747782",
"0.47746935",
"0.47746935",
"0.4774002",
"0.4773073",
"0.47612914",
"0.47551772",
"0.47497368",
"0.47468337"
] | 0.0 | -1 |
Defines the Type that extends the Order with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Order. | public OrderSetCustomTypeActionBuilder type(
@Nullable final com.commercetools.api.models.type.TypeResourceIdentifier type) {
this.type = type;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public OrderType(Type type) {\n\t\tsuper();\n\t\tthis.setType(type);\n\t}",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearORDERTYPE() {\n ORDER_TYPE = null;\n fieldSetFlags()[0] = false;\n return this;\n }",
"void setOrderType(OrderType inOrderType);",
"public void setOrderType(String orderType) {\r\n\t\tthis.orderType = orderType;\r\n\t}",
"public void setOrderType(Byte orderType) {\n this.orderType = orderType;\n }",
"OrderType getOrderType();",
"public String getOrderType() {\r\n\t\treturn orderType;\r\n\t}",
"public static OrderSetCustomTypeActionBuilder of() {\n return new OrderSetCustomTypeActionBuilder();\n }",
"io.opencannabis.schema.commerce.CommercialOrder.OrderType getType();",
"public OrderType getOrderType() {\r\n\t\treturn orderType;\r\n\t}",
"private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = true;\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = true;\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = true;\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = true;\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = true;\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = true;\n }\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearORDERTYPESID() {\n ORDER_TYPES_ID = null;\n fieldSetFlags()[10] = false;\n return this;\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder setORDERTYPE(java.lang.CharSequence value) {\n validate(fields()[0], value);\n this.ORDER_TYPE = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"public OrderSetCustomTypeActionBuilder fields(\n @Nullable final com.commercetools.api.models.type.FieldContainer fields) {\n this.fields = fields;\n return this;\n }",
"public LNDCDC_NCS_TCS_ORDER_TYPES() {}",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearORDERDESCRIPTION() {\n ORDER_DESCRIPTION = null;\n fieldSetFlags()[1] = false;\n return this;\n }",
"public io.opencannabis.schema.commerce.CommercialOrder.OrderType getType() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.CommercialOrder.OrderType result = io.opencannabis.schema.commerce.CommercialOrder.OrderType.valueOf(type_);\n return result == null ? io.opencannabis.schema.commerce.CommercialOrder.OrderType.UNRECOGNIZED : result;\n }",
"public io.opencannabis.schema.commerce.CommercialOrder.OrderType getType() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.CommercialOrder.OrderType result = io.opencannabis.schema.commerce.CommercialOrder.OrderType.valueOf(type_);\n return result == null ? io.opencannabis.schema.commerce.CommercialOrder.OrderType.UNRECOGNIZED : result;\n }",
"public Builder setType(io.opencannabis.schema.commerce.CommercialOrder.OrderType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n type_ = value.getNumber();\n onChanged();\n return this;\n }",
"private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = other.fieldSetFlags()[0];\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = other.fieldSetFlags()[1];\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = other.fieldSetFlags()[2];\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = other.fieldSetFlags()[3];\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = other.fieldSetFlags()[4];\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = other.fieldSetFlags()[5];\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = other.fieldSetFlags()[6];\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = other.fieldSetFlags()[7];\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = other.fieldSetFlags()[8];\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = other.fieldSetFlags()[9];\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = other.fieldSetFlags()[10];\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = other.fieldSetFlags()[11];\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = other.fieldSetFlags()[12];\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = other.fieldSetFlags()[13];\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = other.fieldSetFlags()[14];\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = other.fieldSetFlags()[15];\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = other.fieldSetFlags()[16];\n }\n }",
"public com.vodafone.global.er.decoupling.binding.request.PricePointType.CustomFieldsType createPricePointTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointTypeImpl.CustomFieldsTypeImpl();\n }",
"public com.vodafone.global.er.decoupling.binding.request.PricePointFullType.CustomFieldsType createPricePointFullTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointFullTypeImpl.CustomFieldsTypeImpl();\n }",
"public com.vodafone.global.er.decoupling.binding.request.CatalogPackageFullType.CustomFieldsType createCatalogPackageFullTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogPackageFullTypeImpl.CustomFieldsTypeImpl();\n }",
"public com.vodafone.global.er.decoupling.binding.request.CatalogServiceFullType.CustomFieldsType createCatalogServiceFullTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogServiceFullTypeImpl.CustomFieldsTypeImpl();\n }",
"public String getOrderType() {\n\t\treturn (String) get_Value(\"OrderType\");\n\t}",
"@Nonnull\n public static UBL23WriterBuilder <OrderType> order ()\n {\n return UBL23WriterBuilder.create (OrderType.class);\n }",
"FieldsType createFieldsType();",
"public ReocType() \r\n {\r\n super();\r\n }",
"public String\t\tgetOrderType();",
"public com.vodafone.global.er.decoupling.binding.request.CustomFieldType createCustomFieldType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CustomFieldTypeImpl();\n }",
"@Override\n\tpublic int add(Forge_Order_Detail t) {\n\t\treturn 0;\n\t}",
"@Override\n protected Type createNewTypeWithoutReflection(int field) {\n return null;\n }",
"public void setORDERTYPE(java.lang.CharSequence value) {\n this.ORDER_TYPE = value;\n }",
"public OrderSetCustomTypeActionBuilder withFields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainer> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of());\n return this;\n }",
"public static org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder newBuilder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder other) {\n if (other == null) {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder();\n } else {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder(other);\n }\n }",
"public OrderSetCustomTypeActionBuilder fields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainerBuilder> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of()).build();\n return this;\n }",
"public OrderSetCustomTypeAction build() {\n return new OrderSetCustomTypeActionImpl(type, fields);\n }",
"public Type() {\n super();\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearREVENUEDEFAULTIND() {\n REVENUE_DEFAULT_IND = null;\n fieldSetFlags()[7] = false;\n return this;\n }",
"public boolean hasORDERTYPE() {\n return fieldSetFlags()[0];\n }",
"public void markAsCustomSerialized(final ClassType firmType) {\n\t\tcustomSerializationMethods.put(firmType, new CustomSerializationMethods());\n\t}",
"public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }",
"public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }",
"public static org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder newBuilder() {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder();\n }",
"@Override\n protected List<String> getFieldOrder() {\n ArrayList<String> FieldOrder=new ArrayList<>();\n FieldOrder.add(\"infoType\");\n FieldOrder.add(\"info\");\n return FieldOrder;\n }",
"@Override\n\tprotected List<String> getFieldOrder() {\n\t\treturn Arrays.asList(\n\t\t\t\"nType\", \n\t\t\t\"szUnitID\", \n\t\t\t\"szCurID\", \n\t\t\t\"nValues\", \n\t\t\t\"nCount\", \n\t\t\t\"nStatus\" \n\t\t);\n\t}",
"public OrderType getCodeOrderType() {\nreturn this.codeOrderType;\n}",
"@Override\n public Type getType() {\n return null;\n }",
"FieldType createFieldType();",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearOTDFLTLENGTHCODE() {\n OT_DFLT_LENGTH_CODE = null;\n fieldSetFlags()[3] = false;\n return this;\n }",
"public static org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder newBuilder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES other) {\n if (other == null) {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder();\n } else {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder(other);\n }\n }",
"public Byte getOrderType() {\n return orderType;\n }",
"public java.lang.CharSequence getORDERTYPE() {\n return ORDER_TYPE;\n }",
"public TProductRentType() {\n this(DSL.name(\"t_product_rent_type\"), null);\n }",
"public java.lang.CharSequence getORDERTYPE() {\n return ORDER_TYPE;\n }",
"public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000008);\n type_ = fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType.FT_DEFAULT;\n onChanged();\n return this;\n }",
"@Override\n\tpublic Type getType() {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic String getType() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getType() {\n\t\treturn null;\r\n\t}",
"@ClassVersion(\"$Id: NewOrReplaceOrder.java 16752 2013-11-14 02:54:13Z colin $\")\r\npublic interface NewOrReplaceOrder\r\n extends OrderBase, Serializable\r\n{\r\n /**\r\n * Gets the OrderType for the Order.\r\n *\r\n * @return the order type.\r\n */\r\n OrderType getOrderType();\r\n\r\n /**\r\n * Sets the OrderType for the Order.\r\n *\r\n * @param inOrderType the order type.\r\n */\r\n void setOrderType(OrderType inOrderType);\r\n\r\n /**\r\n * Gets the time in force value for the Order. If a value\r\n * is not specified, it defaults to\r\n * {@link org.marketcetera.trade.TimeInForce#Day}.\r\n *\r\n * @return the time in force value.\r\n */\r\n TimeInForce getTimeInForce();\r\n\r\n /**\r\n * Sets the time in force value for the Order.\r\n *\r\n * @param inTimeInForce the time in force value.\r\n */\r\n void setTimeInForce(TimeInForce inTimeInForce);\r\n\r\n /**\r\n * Gets the limit price for this order. A limit price should be\r\n * specified when the OrderType is {@link OrderType#Limit}.\r\n * This value is ignored if the OrderType is not {@link OrderType#Limit}.\r\n *\r\n *\r\n * @return the limit price for the order.\r\n */\r\n BigDecimal getPrice();\r\n\r\n /**\r\n * Sets the limit price for this order. A limit price should be\r\n * specified when the OrderType is {@link OrderType#Limit}.\r\n *\r\n * @param inPrice the limit price for the order.\r\n */\r\n void setPrice(BigDecimal inPrice);\r\n\r\n /**\r\n * Gets the order capacity value for this order.\r\n *\r\n * @return the order capacity value.\r\n */\r\n OrderCapacity getOrderCapacity();\r\n\r\n /**\r\n * Sets the order capacity value for this order.\r\n *\r\n * @param inOrderCapacity the order capacity value\r\n */\r\n void setOrderCapacity(OrderCapacity inOrderCapacity);\r\n\r\n /**\r\n * Gets the position effect for this order.\r\n *\r\n * @return the position effect value.\r\n */\r\n PositionEffect getPositionEffect();\r\n\r\n /**\r\n * Sets the position effect value for this order.\r\n *\r\n * @param inPositionEffect the position effect value.\r\n */\r\n void setPositionEffect(PositionEffect inPositionEffect);\r\n \r\n /**\r\n * Gets the display quantity for the Order.\r\n *\r\n * @return the display quantity.\r\n */\r\n BigDecimal getDisplayQuantity();\r\n\r\n /**\r\n * Sets the display quantity for the Order.\r\n *\r\n * @param inDisplayQuantity the display quantity.\r\n */\r\n void setDisplayQuantity(BigDecimal inDisplayQuantity);\r\n /**\r\n * Gets the broker algo value, if any.\r\n *\r\n * @return a <code>BrokerAlgo</code> value\r\n */\r\n BrokerAlgo getBrokerAlgo();\r\n /**\r\n * Sets the broker algo value.\r\n *\r\n * @param inBrokerAlgo a <code>BrokerAlgo</code> value\r\n */\r\n void setBrokerAlgo(BrokerAlgo inBrokerAlgo);\r\n}",
"public void overrideFieldType(AnnotatedField<? super X> field, Type type) {\n\t\toverrideFieldType(field.getJavaMember(), type);\n\t}",
"@Override\n public String getType()\n {\n return \"OO\";\n }",
"public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000001);\n type_ = com.rpg.framework.database.Protocol.ItemType.ITEM_TYPE_USE;\n onChanged();\n return this;\n }",
"@Override\n public String getType() {\n return \"\";\n }",
"public OrderType(Integer id, String name) {\n\t\tsuper();\n\t\tthis.id = id;\n\t\tthis.name = name;\n\t}",
"String getOrderTypeId();",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearREVENUEREPORTIND() {\n REVENUE_REPORT_IND = null;\n fieldSetFlags()[6] = false;\n return this;\n }",
"public OrderSetCustomTypeAction buildUnchecked() {\n return new OrderSetCustomTypeActionImpl(type, fields);\n }",
"public com.vodafone.global.er.decoupling.binding.request.CustomFieldFullType createCustomFieldFullType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CustomFieldFullTypeImpl();\n }",
"public static OrderSetCustomTypeActionBuilder of(final OrderSetCustomTypeAction template) {\n OrderSetCustomTypeActionBuilder builder = new OrderSetCustomTypeActionBuilder();\n builder.type = template.getType();\n builder.fields = template.getFields();\n return builder;\n }",
"public maestro.payloads.FlyerFeaturedItem.Builder clearType() {\n type = null;\n fieldSetFlags()[0] = false;\n return this;\n }",
"public Builder clearType() {\n\n\t\t\t\t\ttype_ = 0;\n\t\t\t\t\tonChanged();\n\t\t\t\t\treturn this;\n\t\t\t\t}",
"@Override\n public String getType(){\n return Type;\n }",
"public PurchaseType(java.lang.String code)\r\n {\r\n super(code);\r\n }",
"public TExpressOrderRecord() {\n super(TExpressOrder.T_EXPRESS_ORDER);\n }",
"public Builder clearType() {\n\n\t\t\t\ttype_ = 0;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}",
"public Type() {\n\t\tsetSize();\n\t}",
"Builder addAdditionalType(String value);",
"public boolean isSetOrderType() {\n return this.orderType != null;\n }",
"public Builder clearType() {\n\n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }",
"public Builder clearType() {\n\n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }",
"public void\t\t\tsetOrderStatus(String orderType);",
"public Builder clearOrderSize() {\n bitField0_ = (bitField0_ & ~0x00400000);\n orderSize_ = 0D;\n onChanged();\n return this;\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearOTDFLTUPFNTSCATIND() {\n OT_DFLT_UPFNT_SCAT_IND = null;\n fieldSetFlags()[5] = false;\n return this;\n }",
"@Override\n public Class<OrderRecord> getRecordType() {\n return OrderRecord.class;\n }",
"protected GEDCOMType() {/* intentionally empty block */}",
"public PaymentType(String paymentType) {\n\t\tsuper();\n\t\tthis.paymentType = paymentType;\n\t}",
"public TypesAxis() {\r\n\t\tsuper(AxisTypes.class);\r\n\t}",
"@Override\npublic String getType() {\n\treturn null;\n}",
"com.google.privacy.dlp.v2.CustomInfoType.ExclusionType getExclusionType();",
"@Override\n\tpublic String queryWaybillTypeByOrderNo(String orderNo) {\n\t\treturn null;\n\t}",
"private FieldExtractor<OrderEntity> createOrderFieldExtractor() {\r\n BeanWrapperFieldExtractor<OrderEntity> extractor = new BeanWrapperFieldExtractor<>();\r\n extractor.setNames(new String[] {\"region\", \"country\", \"itemType\", \"salesChannel\",\r\n \"orderPriority\", \"orderDate\", \"orderId\", \"shipDate\", \"unitsSold\", \"unitPrice\", \"unitCost\",\r\n \"totalCost\", \"totalRevenue\", \"totalProfit\"});\r\n return extractor;\r\n }",
"@Override\n public Type getType() {\n return type;\n }",
"@Override\n public Type getType() {\n return type;\n }",
"FooterType createFooterType();",
"@Override\n public String getType() {\n return super.getType().toLowerCase();\n }",
"public Order() {\n this(DSL.name(\"order\"), null);\n }",
"Type() {\n }",
"public void addInludedTransportType(Integer includedTransportType);",
"public Builder clearType() {\n \n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }"
] | [
"0.6575545",
"0.65231144",
"0.60596234",
"0.60541767",
"0.6016441",
"0.5985902",
"0.5891228",
"0.5837232",
"0.58353245",
"0.5794289",
"0.57860285",
"0.5759861",
"0.57548034",
"0.5754538",
"0.57514966",
"0.5732663",
"0.57091254",
"0.56837237",
"0.5593388",
"0.55575347",
"0.5522189",
"0.5503425",
"0.5477098",
"0.5426249",
"0.5423161",
"0.54185843",
"0.5383834",
"0.53674185",
"0.53510565",
"0.530641",
"0.5225022",
"0.5224204",
"0.5221786",
"0.52186674",
"0.5206498",
"0.51777405",
"0.51676166",
"0.51616603",
"0.5141007",
"0.5133367",
"0.5104939",
"0.50926316",
"0.50926316",
"0.5089463",
"0.5085763",
"0.5061228",
"0.5051383",
"0.5033289",
"0.5015558",
"0.5009948",
"0.5009158",
"0.49850234",
"0.49739945",
"0.49641475",
"0.4943868",
"0.4932937",
"0.4932868",
"0.49205554",
"0.49205554",
"0.49194223",
"0.49104255",
"0.48969844",
"0.48922536",
"0.48878214",
"0.48807898",
"0.48796755",
"0.48786753",
"0.48786664",
"0.48735836",
"0.48704273",
"0.485773",
"0.48424256",
"0.48415512",
"0.48413247",
"0.48373288",
"0.4834212",
"0.48316514",
"0.4815436",
"0.48109528",
"0.48109064",
"0.48109064",
"0.4806582",
"0.48041087",
"0.4803904",
"0.4803363",
"0.47997716",
"0.4792304",
"0.47809693",
"0.47804087",
"0.47798723",
"0.47791332",
"0.47773498",
"0.4774247",
"0.4774247",
"0.47741875",
"0.477204",
"0.47633386",
"0.47550687",
"0.47494683",
"0.4745497"
] | 0.5537005 | 20 |
Sets the Custom Fields fields for the Order. | public OrderSetCustomTypeActionBuilder fields(
Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainerBuilder> builder) {
this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of()).build();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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 OrderSetCustomTypeActionBuilder fields(\n @Nullable final com.commercetools.api.models.type.FieldContainer fields) {\n this.fields = fields;\n return this;\n }",
"public void setFieldOrder(java.lang.Integer fieldOrder) {\n this.fieldOrder = fieldOrder;\n }",
"@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }",
"public OrderSetCustomTypeActionBuilder withFields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainer> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of());\n return this;\n }",
"void setOrder(Order order);",
"public void setupFields()\n {\n FieldInfo field = null;\n field = new FieldInfo(this, \"ID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"LastChanged\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Date.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Deleted\", 10, null, new Boolean(false));\n field.setDataClass(Boolean.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Description\", 25, null, null);\n field = new FieldInfo(this, \"CurrencyCode\", 3, null, null);\n field = new FieldInfo(this, \"LastRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"RateChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"RateChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"CostingRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"CostingChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"CostingChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"RoundAt\", 1, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, \"IntegerDesc\", 20, null, \"Dollar\");\n field = new FieldInfo(this, \"FractionDesc\", 20, null, null);\n field = new FieldInfo(this, \"FractionAmount\", 10, null, new Integer(100));\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"Sign\", 3, null, \"$\");\n field = new FieldInfo(this, \"LanguageID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"NaturalInteger\", 20, null, null);\n field = new FieldInfo(this, \"NaturalFraction\", 20, null, null);\n }",
"private void fillFields() {\n\t\tInteger owner = this.contractor.getOwner();\n\n\t\tnameField.setText(getTrimmedValue(this.contractor.getName()));\n\t\tlocationField.setText(getTrimmedValue(this.contractor.getLocation()));\n\t\townerField.setText(owner == null ? \"\" : owner.toString());\n\t\tsizeField.setText(contractor.getSize().toString());\n\t\trateField.setText(Contractor.RATE_FORMAT.format(this.contractor\n\t\t\t\t.getRate()));\n\t\tspecialtiesList.setListData(this.contractor.getSpecialties());\n\t}",
"private void populateFields() {\n\t\ttypeNameTF.setText(\"\");\n\t\tunitsTF.setText(\"\");\n\t\tunitMeasureTF.setText(\"\");\n\t\tvalidityDaysTF.setText(\"\");\n\t\treorderPointTF.setText(\"\");\n\t\tnotesTF.setText(\"\");\n\t\tstatusCB.getItems().addAll(\"Active\", \"Inactive\");\n\t\tstatusCB.setValue(\"Active\");\n\t}",
"public void setAllCustomFields(final SessionContext ctx, final Map<String,String> value)\n\t{\n\t\tsetProperty(ctx, CUSTOMFIELDS,value);\n\t}",
"@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZCNEW\", \"Y\"); // Generate new card?\n\t\ttransaction.setFieldValue(\"GZCMOD\", \"A\"); // Mode - this must be 'A' when adding\n\t\ttransaction.setFieldValue(\"GZCNM1\", \"TEST AUTO\"); // Card name 1\n\t}",
"public void setOrderPropertyColumns() {\n\t\t// Clave\n\t\tColumn<BmObject, String> codeColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getCode().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(codeColumn, SafeHtmlUtils.fromSafeConstant(\"Clave\"));\n\t\torderPropertyTaxGrid.setColumnWidth(codeColumn, 150, Unit.PX);\n\n\n\t\t\t// Descripcion\n\t\t\tColumn<BmObject, String> blockColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t@Override\n\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getDescription().toString();\n\t\t\t\t}\n\t\t\t};\n\t\t\torderPropertyTaxGrid.addColumn(blockColumn, SafeHtmlUtils.fromSafeConstant(\"Descripción\"));\n\t\t\torderPropertyTaxGrid.setColumnWidth(blockColumn, 150, Unit.PX);\n\n\t\t// Calle y numero\n\t\tColumn<BmObject, String> streetColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getStreet().toString() + \" \"\n\t\t\t\t\t\t+ \" #\" + ((BmoOrderPropertyTax)bmObject).getBmoProperty().getNumber().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(streetColumn, SafeHtmlUtils.fromSafeConstant(\"Calle y Número\"));\n\t\torderPropertyTaxGrid.setColumnWidth(streetColumn, 200, Unit.PX);\n\t\t\n\t\t//Meses\n\t\tColumn<BmObject, String> monthsColumn;\n\t\tmonthsColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t// con un asicrono obtener los meses de f.inicio y f.fin del pedido\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getQuantity().toString();\n//\t\t\t\treturn String.valueOf(months);\n\t\t\t}\n\t\t};\n//\t\tmonthsColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n//\t\t\t@Override\n//\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n//\t\t\t\tchangeOrderEquipmentDays(bmObject, value);\n//\t\t\t}\n//\t\t});\n\t\t\n\t\t\n\t\tSafeHtmlHeader daysHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t@Override \n\t\t\tpublic String asString() { \n\t\t\t\treturn \"<p style=\\\"text-center;\\\">Meses</p>\"; \n\t\t\t} \n\t\t}); \n\t\torderPropertyTaxGrid.addColumn(monthsColumn, daysHeader);\n\t\torderPropertyTaxGrid.setColumnWidth(monthsColumn, 50, Unit.PX);\n\t\tmonthsColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);\n//\t}\n\t\t\n\t// Precio\n\t\t\tColumn<BmObject, String> priceColumn;\n\t\t\t\tif (bmoOrder.getStatus().equals(BmoOrder.STATUS_REVISION)) {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new EditTextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tpriceColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n\t\t\t\t\t\t\tchangeOrderPropertyPrice(bmObject, value);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tSafeHtmlHeader priceHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t\t\t@Override \n\t\t\t\t\tpublic String asString() { \n\t\t\t\t\t\treturn \"<p style=\\\"text-align:right;\\\">Precio</p>\"; \n\t\t\t\t\t} \n\t\t\t\t}); \n\t\t\t\torderPropertyTaxGrid.addColumn(priceColumn, priceHeader);\n\t\t\t\torderPropertyTaxGrid.setColumnWidth(priceColumn, 50, Unit.PX);\n\t\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\n//\t\t\t\t@Override\n//\t\t\t\tpublic String getValue(BmObject bmObject) {\n//\t\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat()\n//\t\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getPrice().toDouble());\n//\t\t\t\t\treturn (formatted);\n//\t\t\t\t}\n//\t\t\t};\n//\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n//\t\t\torderPropertyTaxGrid.addColumn(priceColumn, SafeHtmlUtils.fromSafeConstant(\"Precio\"));\n\n\n\t\t// Total\n\t\tColumn<BmObject, String> totalColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat();\n\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getAmount().toDouble());\n\t\t\t\treturn (formatted);\n\t\t\t}\n\t\t};\n\t\ttotalColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\t\torderPropertyTaxGrid.addColumn(totalColumn, SafeHtmlUtils.fromSafeConstant(\"Total\"));\n\t}",
"public void setOrder(Order order){\n this.order = order;\n }",
"public void setFields(final List<Field> fields) {\n this.fields.addAll(fields);\n }",
"@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZCCD\", \"B1\"); // Charge code (2A)\n\t\ttransaction.setFieldValue(\"GZAMT\", \"5000\"); // Charge amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZWMN\", \"KSM2020\"); // Warning message (7A)\n\t\ttransaction.setFieldValue(\"GZFLG\", \"N\"); // Stop chqbook issue? (1A)\n\t}",
"private void setValues() {\n textViewPrice = findViewById(R.id.textViewPrice);\n textViewStoreName = findViewById(R.id.textViewStoreName);\n textViewLocation = findViewById(R.id.textViewLocation);\n buttonAcceptOrder = findViewById(R.id.buttonAcceptOrder);\n\n order = Parcels.unwrap(getIntent().getParcelableExtra(Order.class.getSimpleName()));\n\n textViewPrice.setText(\"$\" + decimalFormat.format(order.getPrice()));\n textViewStoreName.setText(\"Store: \"+ order.getStore().getName());\n textViewLocation.setText(\"Address: \" + order.getStore().getAddress());\n }",
"@Override\n\tpublic void setFields(FieldList fl) {\n\t\tlogger.debug(\"setFields :\");\n\t\tsuper.setFields(fl);\n\t}",
"public void setFields(List<AccountingLineViewField> fields) {\n this.fields = fields;\n }",
"private FieldExtractor<OrderEntity> createOrderFieldExtractor() {\r\n BeanWrapperFieldExtractor<OrderEntity> extractor = new BeanWrapperFieldExtractor<>();\r\n extractor.setNames(new String[] {\"region\", \"country\", \"itemType\", \"salesChannel\",\r\n \"orderPriority\", \"orderDate\", \"orderId\", \"shipDate\", \"unitsSold\", \"unitPrice\", \"unitCost\",\r\n \"totalCost\", \"totalRevenue\", \"totalProfit\"});\r\n return extractor;\r\n }",
"void setOrderType(OrderType inOrderType);",
"public void setOrder(Order order) {\n this.order = order;\n notifyChanged();\n }",
"private void setDataInFields() \n {\n quantityTxtFld.setText(farmer.getCropQuantity()+\"\");\n quantityTxtFld.setEnabled(false);\n }",
"public void setNewFieldOrder(List<Field> newOrder)\n\t{\n\t\tif (newOrder.size()!=fieldList.size())\n\t\t\tthrow new IllegalArgumentException(\"Field lists have different sizes\");\n\t\tfor (Field f: newOrder)\n\t\t\tif (!fieldList.contains(f))\n\t\t\t\tthrow new IllegalArgumentException(\"New field list has unexpected field: \"+f);\n\t\tfieldList=newOrder;\n\t}",
"protected void createFields()\n {\n createEffectiveLocalDtField();\n createDiscontinueLocalDtField();\n createScanTypeField();\n createContractNumberField();\n createContractTypeField();\n createProductTypeField();\n createStatusIndicatorField();\n createCivilMilitaryIndicatorField();\n createEntryUserIdField();\n createLastUpdateUserIdField();\n createLastUpdateTsField();\n }",
"void setOrder(int order){\r\n\t\t\tthis.order = order;\r\n\t\t}",
"public void setC_OrderLine_ID (int C_OrderLine_ID);",
"public void initDefaultValues() {\n setOrderActive(1);\n setProductQuantity(1);\n setBillingPhone1Blocked(0);\n setBillingPhone2Blocked(0);\n setOrderAvailabilityStatus(1);\n setDeliveryStatus(1);\n setMailedReminderToVendorStatus(0);\n setOrderCancelRequestStatus(0);\n setOrderCancellationToVendorStatus(0);\n setDisputeRaisedStatus(0);\n setOrderAcceptNewsletter(1);\n setOrderAcceptPromotionalMaterial(1);\n setBillingAdvanceAmount(0);\n setBillingBalanceAmount(0);\n setBillingGrossAmount(0f);\n setBillingMarginAmount(0f);\n setBillingNettCost(0f);\n setBillingPaymentGatewayRate(0f);\n setBillingStateId(0);\n setBillingTaxrate(0f);\n setBillingTotalAmount(0f);\n setCarYear(0);\n setCustomint1(0);\n setCustomint2(0);\n setCustPaymentMode(0);\n setCustPaymentStatus(0);\n setInvoiceId(0);\n setVendorPaymentMode(0);\n setShipmentRate(0);\n setShipmentCountryId(0);\n setShipmentCityId(0);\n setOrderType(0);\n setOrderStatus(0);\n setOrderRefundType(0);\n setOrderPriority(0);\n setOrderBulkType(0);\n setOrderCorporateType(0);\n setShipmentCityId(0);\n setShipmentCountryId(0);\n setShipmentRate(0f);\n setShipmentStateId(0);\n setOrderCancellationType(0);\n }",
"public void applyTo(NewOrReplaceOrder inOrder)\n {\n if(algoTags == null) {\n return;\n }\n Map<String,String> customFields = inOrder.getCustomFields();\n if(customFields == null) {\n customFields = new HashMap<String,String>();\n }\n for(BrokerAlgoTag algoTag : algoTags) {\n customFields.put(String.valueOf(algoTag.getTagSpec().getTag()),\n algoTag.getValue());\n }\n inOrder.setCustomFields(customFields);\n }",
"void setCreationDateTimes(final Order order) {\n final LocalDateTime now = LocalDateTime.now();\n order.setCreatedAt(now);\n order.setUpdatedAt(now);\n order.getData().setOrderedAt(now);\n }",
"public void setOrder(List<Order> order) {\n this.order = order;\n }",
"@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZBRNM\", \"LOND\"); // Branch mnemonic (4A)\n\t\ttransaction.setFieldValue(\"GZPBR\", \"IPS2\"); // Posting group id or user id, and group level (5A)\n\t\ttransaction.setFieldValue(\"GZVFR\", \"1000106\"); // Value from date (7S,0)\n\t\ttransaction.setFieldValue(\"GZBRND\", \"LOND\"); // Branch mnemonic (4A)\n\t\ttransaction.setFieldValue(\"GZDRF\", \"0014620010\"); // Users own reference for deals, reconciliation etc (16A)\n\t\ttransaction.setFieldValue(\"GZAMA\", \"1500-\"); // Ordinary amount in minor currency units (15P,0)\n\t\ttransaction.setFieldValue(\"GZCCY\", \"PHP\"); // Currency mnemonic (3A)\n\t\ttransaction.setFieldValue(\"GZNPE\", \"1\"); // Number of posting entries (5P,0)\n\t\ttransaction.setFieldValue(\"GZNR1\", \"STOP\"); // Narrative line 1 (35A)\n\t\ttransaction.setFieldValue(\"GZRFR\", \"N\"); // Referred item? (1A)\n\t\ttransaction.setFieldValue(\"GZAUT\", \"Y\"); // Authorised item? (1A)\n\t\ttransaction.setFieldValue(\"GZSSI\", \"N\"); // Special item? (1A)\n\t\ttransaction.setFieldValue(\"GZTTP\", \"C\"); // Transaction type (1A)\n\t\ttransaction.setFieldValue(\"GZHSRL\", \"0014620010\"); // Serial \"number\" forming the key to a stop order (16A)\n\t\ttransaction.setFieldValue(\"GZHAMT\", \"1500-\"); // Stop order amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZAUTC\", \"MASSEYR1\"); // Referred item authorisation code (12A)\n\t\ttransaction.setFieldValue(\"GZCED\", \"2\"); // Currency edit field (1A)\n\t\ttransaction.setFieldValue(\"GZCHQ\", \"N\"); // Cheque item? (1A)\n\t\ttransaction.setFieldValue(\"GZDRFN\", \"0\"); // Cheque serial number (16P,0)\n\t\ttransaction.setFieldValue(\"GZTCCY\", \"PHP\"); // Transaction currency (3A)\n\t\ttransaction.setFieldValue(\"GZTAMA\", \"1500\"); // Transaction amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZHCCY\", \"PHP\"); // Stop order currency (3A)\n\t\ttransaction.setFieldValue(\"GZPSQ7\", \"0000182\"); // 7 Long posting sequence number (7P,0)\n\t}",
"public void load(Order order) {\n\t\tm_order = order;\n\t\tfieldGroup.setItemDataSource(new BeanItem<Order>(m_order));\n }",
"private void buildFields() {\r\n buildField(txtPizzaName, GUIResource.getLabel(DIALOG, NAME_PIZZA), 0);\r\n buildField(txtCustomerName, GUIResource.getLabel(DIALOG, NAME_CUSTOMER), 1);\r\n buildField(txtPhone, GUIResource.getLabel(DIALOG, PHONE), 2);\r\n buildField(txtEmail, GUIResource.getLabel(DIALOG, EMAIL), 3);\r\n }",
"public void setOrderList() {\n\n\t\tint index = 0;\n\t\tlistModel.clear();\n\t\tfor (Order order : driver.getOrderDB().getCustomerOrderList()) {\n\t\t\tlistModel\n\t\t\t\t\t.addElement(textAlignment(\" \" + order.getId(), \"\" + order.getDate(), \"\"\n\t\t\t\t\t\t\t+ order.getPerson().getId(), \"\"\n\t\t\t\t\t\t\t+ order.getCurrentlyLoggedInStaff().getId()));\n\t\t\t// stockList.setSelectedIndex(orderListIndex);\n\t\t\tindex++;\n\t\t}\n\t}",
"public void initData(Order order) {\n tourDetailOrder.setText(order.getTour().getName());\n nameDetailOrder.setText(order.getClient().getName());\n packDetailOrder.setText(order.getPhotoPack().getDescription());\n statusDetailOrder.setText(order.getOrderStatus().getInfo());\n }",
"public void loadOrderByFields(IOrderedQuery orderedQuery)\r\n\t{\r\n\t\tif(this.orderByFields.isEmpty())\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// loop through order by fields\r\n\t\tfor(ResultField field : orderByFields)\r\n\t\t{\r\n\t\t\torderedQuery.addOrderByField(new QueryResultField(field.table.tableCode, field.fieldDetails.getDbColumnName(), field.code, field.orderType));\r\n\t\t}\r\n\t}",
"public void setOrder(int order) {\n mOrder = order;\n }",
"@Override\n\tprotected void initializeFields() {\n\n\t}",
"public void updatePropertyFields()\n {\n amountLabel .setText(retrieveText(\"AmountLabel\", amountLabel));\n reasonCodeLabel .setText(retrieveText(\"ReasonCodeLabel\", reasonCodeLabel));\n paidToLabel .setText(retrieveText(\"PaidToLabel\", paidToLabel));\n employeeIDLabel .setText(retrieveText(\"EmployeeIDLabel\", employeeIDLabel));\n addressLine1Label.setText(retrieveText(\"AddressLine1Label\", addressLine1Label));\n addressLine2Label.setText(retrieveText(\"AddressLine2Label\", addressLine2Label));\n addressLine3Label.setText(retrieveText(\"AddressLine3Label\", addressLine3Label));\n approvalCodeLabel.setText(retrieveText(\"ApprovalCodeLabel\", approvalCodeLabel));\n commentLabel .setText(retrieveText(\"CommentLabel\", commentLabel));\n\n amountField .setLabel(amountLabel);\n reasonCodeField .setLabel(reasonCodeLabel);\n paidToField .setLabel(paidToLabel);\n employeeIDField .setLabel(employeeIDLabel);\n addressLine1Field.setLabel(addressLine1Label);\n addressLine2Field.setLabel(addressLine2Label);\n addressLine3Field.setLabel(addressLine3Label);\n approvalCodeField.setLabel(approvalCodeLabel);\n commentField .setLabel(commentLabel);\n }",
"private void fillMandatoryFields_custom() {\n\n }",
"@JsonProperty(\"OrderLine\")\r\n\tpublic void setOrderLine(OrderLine orderLine) {\r\n\t\tthis.orderLine = orderLine;\r\n\t}",
"public void setOrderMoney(BigDecimal orderMoney) {\n this.orderMoney = orderMoney;\n }",
"public void setOrder(int order) {\n this.order = order;\n }",
"public void setOrder(int order) {\n this.order = order;\n }",
"private void setPhoneFields(Cursor cur) {\n\n\t\tint selectedColumn;\n\t\tint selectedColumnType;\n\t\tint preferredColumn;\n\t\tint phoneType;\n\t\tString customLabel = null;\n\n\t\t//\n\t\t// Get PhonesColums fields\n\t\t//\n\t\tselectedColumn = cur.getColumnIndex(Phone.NUMBER);\n\t\tselectedColumnType = cur.getColumnIndex(Phone.TYPE);\n\t\tpreferredColumn = cur.getColumnIndex(Phone.IS_PRIMARY);\n\t\tphoneType = cur.getInt(selectedColumnType);\n\t\tString phone = cur.getString(selectedColumn);\n\t\tboolean preferred = cur.getInt(preferredColumn) != 0;\n\t\tif (phoneType == Phone.TYPE_CUSTOM) {\n\t\t\tcustomLabel = cur.getString(cur.getColumnIndex(Phone.LABEL));\n\t\t}\n\n\t\tphones.add(new RowData(phoneType, phone, preferred, customLabel));\n\t}",
"public void setOrder(String id,String email);",
"public void setOrder(int value) {\n this.order = value;\n }",
"private void populateFields() {\n pedidos = pdao.listaTodos();\n cCliente = new HashSet();\n cEstado = new HashSet();\n cCidade = new HashSet();\n cFornecedor = new HashSet();\n\n for (int i = 0; i < pedidos.size(); i++) {\n cCliente.add(pedidos.get(i).getCliente().getNome());\n cEstado.add(pedidos.get(i).getCliente().getEstado());\n cCidade.add(pedidos.get(i).getCliente().getCidade());\n for (int j = 0; j < pedidos.get(i).getItens().size(); j++) {\n cFornecedor.add(pedidos.get(i).getItens().get(j).getProduto().getFornecedor().getNome());\n }\n }\n\n clientes = new ArrayList<>(cCliente);\n fornecedores = new ArrayList<>(cFornecedor);\n\n Iterator i = cCliente.iterator();\n while (i.hasNext()) {\n jCBCliente.addItem(i.next());\n }\n\n i = null;\n i = cEstado.iterator();\n while (i.hasNext()) {\n jCBEstado.addItem(i.next());\n }\n\n i = null;\n i = cCidade.iterator();\n while (i.hasNext()) {\n jCBCidade.addItem(i.next());\n }\n i = null;\n i = cFornecedor.iterator();\n while (i.hasNext()) {\n jCBFornecedor.addItem(i.next());\n }\n\n }",
"@Test\n public void updateShoppingCartConnectionCustomFieldsTest() throws ApiException {\n ShoppingCartConnection body = null;\n api.updateShoppingCartConnectionCustomFields(body);\n\n // TODO: test validations\n }",
"public void setOrder(Integer order) {\n this.order = order;\n }",
"public void setOrderDate(Date orderDate) {\n this.orderDate = orderDate;\n }",
"public SortObj(String field, int order) {\n super();\n this.field = field;\n this.order = order;\n }",
"public void setOrder(Integer order) {\n this.order = order;\n }",
"public void setOrder(Integer order) {\n this.order = order;\n }",
"protected void setComboBoxes() { Something was changed in the row.\n //\n final Map<String, Integer> fields = new HashMap<>();\n\n // Add the currentMeta fields...\n fields.putAll(inputFields);\n\n Set<String> keySet = fields.keySet();\n List<String> entries = new ArrayList<>(keySet);\n\n String[] fieldNames = entries.toArray(new String[entries.size()]);\n Const.sortStrings(fieldNames);\n // Key fields\n ciKey[2].setComboValues(fieldNames);\n ciKey[3].setComboValues(fieldNames);\n }",
"private void setNewFields(String[] fields) {\n for (String fieldName : fields) {\n setNewField(fieldName);\n }\n }",
"public CreateOrderRequest() {\n\t\t_pcs = new PropertyChangeSupport(this);\n\t}",
"public void setOrder(String Order) {\n this.Order = Order;\n }",
"private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = true;\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = true;\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = true;\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = true;\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = true;\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = true;\n }\n }",
"public void setFields(Map<String, String> fields) {\n this.fields = fields;\n }",
"void setFields(Set<F> fields);",
"@Override\n protected List<String> getFieldOrder() {\n ArrayList<String> FieldOrder= new ArrayList<String>();\n FieldOrder.add(\"dsapiVersionNo\");\n FieldOrder.add(\"sessionId\");\n FieldOrder.add(\"valueMark\");\n FieldOrder.add(\"fieldMark\");\n return FieldOrder;\n }",
"public final void setOrder_Customer(com.mendix.systemwideinterfaces.core.IContext context, simpleordermodule.proxies.Customer order_customer)\r\n\t{\r\n\t\tif (order_customer == null)\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.Order_Customer.toString(), null);\r\n\t\telse\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.Order_Customer.toString(), order_customer.getMendixObject().getId());\r\n\t}",
"public void setOrder(int order) {\n\t\tthis.order = order;\n\t}",
"public void setFields(FieldSet editedData) throws Exception {\n\t\tfor (String controlName : editedData.keySet()) {\n\t\t\tif (editedData.get(controlName) != null) {\n\t\t\t\tVoodooUtils.voodoo.log.fine(\"Editing field: \" + controlName);\n\t\t\t\tString toSet = editedData.get(controlName);\n\t\t\t\tVoodooUtils.pause(100);\n\t\t\t\tVoodooUtils.voodoo.log.fine(\"Setting \" + controlName + \" field to: \"\n\t\t\t\t\t\t+ toSet);\n\t\t\t\tgetEditField(controlName).set(toSet);\n\t\t\t\tVoodooUtils.pause(100);\n\t\t\t}\n\t\t}\n\t}",
"public void setOrder(final Integer order) {\n this.order = order;\n }",
"private void updateFieldValues(){\r\n \tgenChainLengthField.setText(String.valueOf(settings.genChainLength));\r\n \tgenChainLengthFluxField.setText(String.valueOf(settings.genChainLengthFlux));\r\n \tstepGenDistanceField.setText(String.valueOf(settings.stepGenDistance));\r\n \trowsField.setText(String.valueOf(settings.rows));\r\n \tcolsField.setText(String.valueOf(settings.cols));\r\n \tcellWidthField.setText(String.valueOf(settings.cellWidth));\r\n \tstartRowField.setText(String.valueOf(settings.startRow));\r\n \tstartColField.setText(String.valueOf(settings.startCol));\r\n \tendRowField.setText(String.valueOf(settings.endRow));\r\n \tendColField.setText(String.valueOf(settings.endCol));\r\n \tprogRevealRadiusField.setText(String.valueOf(settings.progRevealRadius));\r\n \tprogDrawCB.setSelected(settings.progDraw);\r\n \tprogDrawSpeedField.setText(String.valueOf(settings.progDrawSpeed));\r\n }",
"@Override\n\tprotected List<String> getFieldOrder() {\n\t\treturn Arrays.asList(\n\t\t\t\"nType\", \n\t\t\t\"szUnitID\", \n\t\t\t\"szCurID\", \n\t\t\t\"nValues\", \n\t\t\t\"nCount\", \n\t\t\t\"nStatus\" \n\t\t);\n\t}",
"public void setOrderType(Byte orderType) {\n this.orderType = orderType;\n }",
"public void setOrder(Integer order) {\n\t\tthis.order = order;\n\t}",
"public void setDateOrder(DateOrder dateOrder)\r\n {\r\n m_dateOrder = dateOrder;\r\n }",
"public void setEditableFields(EditableFields fields) {\n\n List<AbstractField> allFields = Arrays.asList(firstName, lastName, legalFirstName, legalLastName,\n nameIsLegalName, fanName, badgeNumber, phoneNumber, birthDate, email, zip, emergencyContactFullName,\n emergencyContactPhone, parentFormReceived, parentFullName, parentPhone, paidAmount,\n compedBadge, checkedIn);\n switch (fields) {\n case ALL:\n for (AbstractField field : allFields) {\n field.setEnabled(true);\n// field.setValidationVisible(true);\n }\n badgeNumber.setEnabled(false);\n badge.setEnabled(true);\n break;\n case NONE:\n for (AbstractField field : allFields) {\n field.setEnabled(false);\n }\n badgeNumber.setEnabled(false);\n badge.setEnabled(false);\n }\n }",
"public final void setOrder(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Integer order)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Order.toString(), order);\r\n\t}",
"public void setOrderTime(Date orderTime) {\n this.orderTime = orderTime;\n }",
"public void setOrders(ArrayList<Order> orders) {\n this.orders = orders;\n }",
"@Override\n\tpublic void setPositionOrder(int positionOrder) {\n\t\t_dmGTShipPosition.setPositionOrder(positionOrder);\n\t}",
"public MOrder( Properties ctx,int C_Order_ID,String trxName ) {\n super( ctx,C_Order_ID,trxName );\n\n // New\n\n if( C_Order_ID == 0 ) {\n setDocStatus( DOCSTATUS_Drafted );\n setDocAction( DOCACTION_Prepare );\n\n //\n\n setDeliveryRule( DELIVERYRULE_Availability );\n setFreightCostRule( FREIGHTCOSTRULE_FreightIncluded );\n setInvoiceRule( INVOICERULE_Immediate );\n setPaymentRule( PAYMENTRULE_OnCredit );\n setPriorityRule( PRIORITYRULE_Medium );\n setDeliveryViaRule( DELIVERYVIARULE_Pickup );\n\n //\n\n setIsDiscountPrinted( false );\n setIsSelected( false );\n setIsTaxIncluded( false );\n setIsSOTrx( true );\n setIsDropShip( false );\n setSendEMail( false );\n\n //\n\n setIsApproved( false );\n setIsPrinted( false );\n setIsCreditApproved( false );\n setIsDelivered( false );\n setIsInvoiced( false );\n setIsTransferred( false );\n setIsSelfService( false );\n\n //\n\n super.setProcessed( false );\n setProcessing( false );\n setPosted( false );\n setDateOrdered(Env.getTimestamp());\n setDateAcct(getDateOrdered());\n setDatePromised(getDateOrdered());\n setFreightAmt( Env.ZERO );\n setChargeAmt( Env.ZERO );\n setTotalLines( Env.ZERO );\n setGrandTotal( Env.ZERO );\n }\n }",
"public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }",
"public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }",
"public void updateNonDynamicFields() {\n\n\t}",
"public Order() {\n orderID = \"\";\n customerID = \"\";\n status = \"\";\n }",
"public getEmployeeCustomFieldsConf_args(getEmployeeCustomFieldsConf_args other) {\n __isset_bitfield = other.__isset_bitfield;\n this.companyId = other.companyId;\n }",
"private void updateFields(){\n\n updateTotalPay();\n updateTotalTip();\n updateTotalPayPerPerson();\n }",
"private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = other.fieldSetFlags()[0];\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = other.fieldSetFlags()[1];\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = other.fieldSetFlags()[2];\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = other.fieldSetFlags()[3];\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = other.fieldSetFlags()[4];\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = other.fieldSetFlags()[5];\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = other.fieldSetFlags()[6];\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = other.fieldSetFlags()[7];\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = other.fieldSetFlags()[8];\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = other.fieldSetFlags()[9];\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = other.fieldSetFlags()[10];\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = other.fieldSetFlags()[11];\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = other.fieldSetFlags()[12];\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = other.fieldSetFlags()[13];\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = other.fieldSetFlags()[14];\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = other.fieldSetFlags()[15];\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = other.fieldSetFlags()[16];\n }\n }",
"public void setOrderDate(String orderDate) {\r\n\t\tthis.orderDate = orderDate;\r\n\t}",
"@JsonSetter(\"orderId\")\r\n public void setOrderId (int value) { \r\n this.orderId = value;\r\n }",
"public static void setFields(DBFField[] fields) throws UnsupportedEncodingException {\r\n int i = 0;\r\n\r\n fields[i] = new DBFField();\r\n fields[i].setName(\"TIPREG\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(1);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DOCFEC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DOCSER\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DOCNUM\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(6);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODTIP\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODMOD\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODTER\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(5);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CTACON\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(12);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"BASEBAS\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n// fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPTBAS\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n// fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORNOR\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(6);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"RECBAS\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORREC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(6);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORTES\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORFIN\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(6);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"RFDPP\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DESHOR\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DESKM\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"TOTFAC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(14);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO1\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO1\");\r\n //fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n // Es numerico pero para insertar valor \"XXX,YY\" \r\n //hay que meterlo como string y despues cambiarlo en dbfmanager -> Structura\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO2\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO2\");\r\n // Misma razon que IMPVTO1\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO3\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO3\");\r\n // Misma razon que IMPVTO1\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO4\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO4\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO5\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO5\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO6\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO6\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DIETENT\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODFORPAG\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(3);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"TIPFORPAG\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(1);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n \r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"BASEIMPCC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n// logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n fields[i].setDecimalCount(0);\r\n// logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n //logger.log(Level.INFO, \"Total columnas en fichero .dbf = {0}\", i);\r\n }",
"public void setOrderId(int value) {\n this.orderId = value;\n }",
"protected void setProjectFields(final ArrayList<Field> fields) {\n\t\tthis._projectFields = fields;\n\t\t\n\t\t\n\t\t// Assign all special fields to their corresponding variables\n\t\tfor (Field field : fields) {\n\t\t\tif (field.getName().equals(\"Function Requirements\")) {\n\t\t\t\t_functionReq = field;\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"Data Requirements\")) {\n\t\t\t\t_dataReq = field;\n\t\t\t\t\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"Performance Requirements\")) {\n\t\t\t\t_performanceReq = field;\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"Glossary\")) {\n\t\t\t\t_glossary = field;\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"FP Parameters\")) {\n\t\t\t\t_fpParameters = field;\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"FP Influences\")){\n\t\t\t\t_fpInfluences = field;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t// Calculation\n\t\t_calcMethodEnum = CalculationEnum.notSet;\n\t\t_calcMethodInstance = null;\n\t\t\n\t}",
"public void setOrderId(Integer orderId) {\n this.orderId = orderId;\n }",
"public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }",
"public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }",
"public void setUserOrder(User userOrder) {\n this.userOrder = userOrder;\n }",
"public void setIdOrder(Long idOrder) {\n this.idOrder = idOrder;\n }",
"public void setOrderNumber(int value) {\n this.orderNumber = value;\n }",
"public void initData() {\n nameDetailOrder.setText(\"-\");\n tourDetailOrder.setText(\"-\");\n packDetailOrder.setText(\"-\");\n statusDetailOrder.setText(\"-\");\n }",
"public void setFields(Map<String,String> fields)\n\t{\n\t\tList<Field> localFields = new ArrayList<Field>();\n\t\tIterator<Map.Entry<String,String>> it = fields.entrySet().iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tMap.Entry<String,String> pairs = it.next();\n\t\t\tlocalFields.add(new Field(pairs.getKey(), pairs.getValue()));\n\t\t}\n\n\t\tsetFields(localFields);\n\t}",
"public void resetOrder(){\n\t\tcurrentOrder = new Order();\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\ttitle.setText(\"Order No \" + number);\n\t\tcustNameField.setText(\"\");\n\t\tmiddlePanel.reset();\n\t\tsubtotal.text.setText(CURR+\"0.00\");\n\t\tdiscount.text.setText(CURR+\"0.00\");\n\t\ttoPay.text.setText(CURR +\"0.00\");\n\t\tthis.repaint();\n\t\tthis.validate();\n\t}",
"public void setAllCustomFields(final Map<String,String> value)\n\t{\n\t\tsetAllCustomFields( getSession().getSessionContext(), value );\n\t}",
"private void setFields() {\n\t\tfirstname.setText(guest.getFirstName());\n\t\tlastname.setText(guest.getLastName());\n\t\tpassport.setText(guest.getPassportNumber());\n\t\ttelephone.setText(guest.getTelephoneNumber());\n\t\tarrival.setText(arrivalDate.toString());\n\t\tdeparture.setText(departureDate.toString());\n\n\t\tif (hotelChoice.getName() != null && hotelChoice.getName() != \"\"\n\t\t\t\t&& !(hotelChoice.getName() == Controller.DEFAULT_HOTEL_CHOICE)) {\n\t\t\thotel.setText(hotelChoice.getName());\n\t\t} else {\n\t\t\thotelChoice = new Hotel();\n\t\t\thotelChoice.setName(\"\");\n\t\t\thotel.clear();\n\t\t}\n\t\tif (roomQualityChoice.getQuality() != null && roomQualityChoice.getQuality() != \"\"\n\t\t\t\t&& !(roomQualityChoice.getQuality() == Controller.DEFAULT_QUALITY_CHOICE)) {\n\t\t\tquality.setText(roomQualityChoice.getQuality());\n\t\t} else {\n\t\t\troomQualityChoice = new RoomQuality();\n\t\t\troomQualityChoice.setQuality(\"\");\n\t\t\tquality.clear();\n\t\t}\n\t\tif (discountChoice > 0) {\n\t\t\tdiscount.setText(\"(-\" + discountChoice + \"%)\");\n\t\t}\n\n\t\tloadAvailableRooms();\n\n\t}"
] | [
"0.7055104",
"0.6646911",
"0.59782046",
"0.5917991",
"0.58140314",
"0.5659098",
"0.5654295",
"0.55874777",
"0.5557672",
"0.55417025",
"0.54912996",
"0.5469274",
"0.54373413",
"0.54334635",
"0.5421658",
"0.5419589",
"0.5413679",
"0.54070365",
"0.53773385",
"0.53564966",
"0.534957",
"0.53362924",
"0.5324578",
"0.5308703",
"0.528054",
"0.52413857",
"0.5190559",
"0.5188694",
"0.51870203",
"0.5160408",
"0.51586705",
"0.5147551",
"0.51380754",
"0.5128498",
"0.5116305",
"0.5089261",
"0.50661457",
"0.5057553",
"0.5051798",
"0.5049745",
"0.50475395",
"0.5032659",
"0.5021891",
"0.5021891",
"0.501715",
"0.498423",
"0.4979129",
"0.49748015",
"0.49605337",
"0.49462983",
"0.4945923",
"0.49420553",
"0.49395305",
"0.49395305",
"0.49343428",
"0.493046",
"0.49264225",
"0.4915649",
"0.4914483",
"0.49034333",
"0.48958614",
"0.48919564",
"0.48863715",
"0.4882025",
"0.48719105",
"0.48623374",
"0.4853847",
"0.48472735",
"0.48426515",
"0.48407984",
"0.483655",
"0.4819685",
"0.48163593",
"0.47907853",
"0.47894114",
"0.47811988",
"0.47713366",
"0.4770571",
"0.4770571",
"0.47704995",
"0.47600412",
"0.47592974",
"0.4756701",
"0.47547275",
"0.47439975",
"0.47431466",
"0.4734098",
"0.47226676",
"0.47151622",
"0.4706358",
"0.46968886",
"0.46968886",
"0.46932963",
"0.46904263",
"0.46896735",
"0.46856436",
"0.46735322",
"0.46711585",
"0.46705404",
"0.46700537"
] | 0.60133606 | 2 |
Sets the Custom Fields fields for the Order. | public OrderSetCustomTypeActionBuilder withFields(
Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainer> builder) {
this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of());
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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 OrderSetCustomTypeActionBuilder fields(\n @Nullable final com.commercetools.api.models.type.FieldContainer fields) {\n this.fields = fields;\n return this;\n }",
"public OrderSetCustomTypeActionBuilder fields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainerBuilder> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of()).build();\n return this;\n }",
"public void setFieldOrder(java.lang.Integer fieldOrder) {\n this.fieldOrder = fieldOrder;\n }",
"@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }",
"void setOrder(Order order);",
"public void setupFields()\n {\n FieldInfo field = null;\n field = new FieldInfo(this, \"ID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"LastChanged\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Date.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Deleted\", 10, null, new Boolean(false));\n field.setDataClass(Boolean.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Description\", 25, null, null);\n field = new FieldInfo(this, \"CurrencyCode\", 3, null, null);\n field = new FieldInfo(this, \"LastRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"RateChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"RateChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"CostingRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"CostingChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"CostingChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"RoundAt\", 1, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, \"IntegerDesc\", 20, null, \"Dollar\");\n field = new FieldInfo(this, \"FractionDesc\", 20, null, null);\n field = new FieldInfo(this, \"FractionAmount\", 10, null, new Integer(100));\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"Sign\", 3, null, \"$\");\n field = new FieldInfo(this, \"LanguageID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"NaturalInteger\", 20, null, null);\n field = new FieldInfo(this, \"NaturalFraction\", 20, null, null);\n }",
"private void fillFields() {\n\t\tInteger owner = this.contractor.getOwner();\n\n\t\tnameField.setText(getTrimmedValue(this.contractor.getName()));\n\t\tlocationField.setText(getTrimmedValue(this.contractor.getLocation()));\n\t\townerField.setText(owner == null ? \"\" : owner.toString());\n\t\tsizeField.setText(contractor.getSize().toString());\n\t\trateField.setText(Contractor.RATE_FORMAT.format(this.contractor\n\t\t\t\t.getRate()));\n\t\tspecialtiesList.setListData(this.contractor.getSpecialties());\n\t}",
"private void populateFields() {\n\t\ttypeNameTF.setText(\"\");\n\t\tunitsTF.setText(\"\");\n\t\tunitMeasureTF.setText(\"\");\n\t\tvalidityDaysTF.setText(\"\");\n\t\treorderPointTF.setText(\"\");\n\t\tnotesTF.setText(\"\");\n\t\tstatusCB.getItems().addAll(\"Active\", \"Inactive\");\n\t\tstatusCB.setValue(\"Active\");\n\t}",
"public void setAllCustomFields(final SessionContext ctx, final Map<String,String> value)\n\t{\n\t\tsetProperty(ctx, CUSTOMFIELDS,value);\n\t}",
"@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZCNEW\", \"Y\"); // Generate new card?\n\t\ttransaction.setFieldValue(\"GZCMOD\", \"A\"); // Mode - this must be 'A' when adding\n\t\ttransaction.setFieldValue(\"GZCNM1\", \"TEST AUTO\"); // Card name 1\n\t}",
"public void setOrderPropertyColumns() {\n\t\t// Clave\n\t\tColumn<BmObject, String> codeColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getCode().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(codeColumn, SafeHtmlUtils.fromSafeConstant(\"Clave\"));\n\t\torderPropertyTaxGrid.setColumnWidth(codeColumn, 150, Unit.PX);\n\n\n\t\t\t// Descripcion\n\t\t\tColumn<BmObject, String> blockColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t@Override\n\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getDescription().toString();\n\t\t\t\t}\n\t\t\t};\n\t\t\torderPropertyTaxGrid.addColumn(blockColumn, SafeHtmlUtils.fromSafeConstant(\"Descripción\"));\n\t\t\torderPropertyTaxGrid.setColumnWidth(blockColumn, 150, Unit.PX);\n\n\t\t// Calle y numero\n\t\tColumn<BmObject, String> streetColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getStreet().toString() + \" \"\n\t\t\t\t\t\t+ \" #\" + ((BmoOrderPropertyTax)bmObject).getBmoProperty().getNumber().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(streetColumn, SafeHtmlUtils.fromSafeConstant(\"Calle y Número\"));\n\t\torderPropertyTaxGrid.setColumnWidth(streetColumn, 200, Unit.PX);\n\t\t\n\t\t//Meses\n\t\tColumn<BmObject, String> monthsColumn;\n\t\tmonthsColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t// con un asicrono obtener los meses de f.inicio y f.fin del pedido\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getQuantity().toString();\n//\t\t\t\treturn String.valueOf(months);\n\t\t\t}\n\t\t};\n//\t\tmonthsColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n//\t\t\t@Override\n//\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n//\t\t\t\tchangeOrderEquipmentDays(bmObject, value);\n//\t\t\t}\n//\t\t});\n\t\t\n\t\t\n\t\tSafeHtmlHeader daysHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t@Override \n\t\t\tpublic String asString() { \n\t\t\t\treturn \"<p style=\\\"text-center;\\\">Meses</p>\"; \n\t\t\t} \n\t\t}); \n\t\torderPropertyTaxGrid.addColumn(monthsColumn, daysHeader);\n\t\torderPropertyTaxGrid.setColumnWidth(monthsColumn, 50, Unit.PX);\n\t\tmonthsColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);\n//\t}\n\t\t\n\t// Precio\n\t\t\tColumn<BmObject, String> priceColumn;\n\t\t\t\tif (bmoOrder.getStatus().equals(BmoOrder.STATUS_REVISION)) {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new EditTextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tpriceColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n\t\t\t\t\t\t\tchangeOrderPropertyPrice(bmObject, value);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tSafeHtmlHeader priceHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t\t\t@Override \n\t\t\t\t\tpublic String asString() { \n\t\t\t\t\t\treturn \"<p style=\\\"text-align:right;\\\">Precio</p>\"; \n\t\t\t\t\t} \n\t\t\t\t}); \n\t\t\t\torderPropertyTaxGrid.addColumn(priceColumn, priceHeader);\n\t\t\t\torderPropertyTaxGrid.setColumnWidth(priceColumn, 50, Unit.PX);\n\t\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\n//\t\t\t\t@Override\n//\t\t\t\tpublic String getValue(BmObject bmObject) {\n//\t\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat()\n//\t\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getPrice().toDouble());\n//\t\t\t\t\treturn (formatted);\n//\t\t\t\t}\n//\t\t\t};\n//\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n//\t\t\torderPropertyTaxGrid.addColumn(priceColumn, SafeHtmlUtils.fromSafeConstant(\"Precio\"));\n\n\n\t\t// Total\n\t\tColumn<BmObject, String> totalColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat();\n\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getAmount().toDouble());\n\t\t\t\treturn (formatted);\n\t\t\t}\n\t\t};\n\t\ttotalColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\t\torderPropertyTaxGrid.addColumn(totalColumn, SafeHtmlUtils.fromSafeConstant(\"Total\"));\n\t}",
"public void setOrder(Order order){\n this.order = order;\n }",
"public void setFields(final List<Field> fields) {\n this.fields.addAll(fields);\n }",
"@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZCCD\", \"B1\"); // Charge code (2A)\n\t\ttransaction.setFieldValue(\"GZAMT\", \"5000\"); // Charge amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZWMN\", \"KSM2020\"); // Warning message (7A)\n\t\ttransaction.setFieldValue(\"GZFLG\", \"N\"); // Stop chqbook issue? (1A)\n\t}",
"private void setValues() {\n textViewPrice = findViewById(R.id.textViewPrice);\n textViewStoreName = findViewById(R.id.textViewStoreName);\n textViewLocation = findViewById(R.id.textViewLocation);\n buttonAcceptOrder = findViewById(R.id.buttonAcceptOrder);\n\n order = Parcels.unwrap(getIntent().getParcelableExtra(Order.class.getSimpleName()));\n\n textViewPrice.setText(\"$\" + decimalFormat.format(order.getPrice()));\n textViewStoreName.setText(\"Store: \"+ order.getStore().getName());\n textViewLocation.setText(\"Address: \" + order.getStore().getAddress());\n }",
"@Override\n\tpublic void setFields(FieldList fl) {\n\t\tlogger.debug(\"setFields :\");\n\t\tsuper.setFields(fl);\n\t}",
"public void setFields(List<AccountingLineViewField> fields) {\n this.fields = fields;\n }",
"private FieldExtractor<OrderEntity> createOrderFieldExtractor() {\r\n BeanWrapperFieldExtractor<OrderEntity> extractor = new BeanWrapperFieldExtractor<>();\r\n extractor.setNames(new String[] {\"region\", \"country\", \"itemType\", \"salesChannel\",\r\n \"orderPriority\", \"orderDate\", \"orderId\", \"shipDate\", \"unitsSold\", \"unitPrice\", \"unitCost\",\r\n \"totalCost\", \"totalRevenue\", \"totalProfit\"});\r\n return extractor;\r\n }",
"void setOrderType(OrderType inOrderType);",
"public void setOrder(Order order) {\n this.order = order;\n notifyChanged();\n }",
"private void setDataInFields() \n {\n quantityTxtFld.setText(farmer.getCropQuantity()+\"\");\n quantityTxtFld.setEnabled(false);\n }",
"public void setNewFieldOrder(List<Field> newOrder)\n\t{\n\t\tif (newOrder.size()!=fieldList.size())\n\t\t\tthrow new IllegalArgumentException(\"Field lists have different sizes\");\n\t\tfor (Field f: newOrder)\n\t\t\tif (!fieldList.contains(f))\n\t\t\t\tthrow new IllegalArgumentException(\"New field list has unexpected field: \"+f);\n\t\tfieldList=newOrder;\n\t}",
"protected void createFields()\n {\n createEffectiveLocalDtField();\n createDiscontinueLocalDtField();\n createScanTypeField();\n createContractNumberField();\n createContractTypeField();\n createProductTypeField();\n createStatusIndicatorField();\n createCivilMilitaryIndicatorField();\n createEntryUserIdField();\n createLastUpdateUserIdField();\n createLastUpdateTsField();\n }",
"void setOrder(int order){\r\n\t\t\tthis.order = order;\r\n\t\t}",
"public void setC_OrderLine_ID (int C_OrderLine_ID);",
"public void applyTo(NewOrReplaceOrder inOrder)\n {\n if(algoTags == null) {\n return;\n }\n Map<String,String> customFields = inOrder.getCustomFields();\n if(customFields == null) {\n customFields = new HashMap<String,String>();\n }\n for(BrokerAlgoTag algoTag : algoTags) {\n customFields.put(String.valueOf(algoTag.getTagSpec().getTag()),\n algoTag.getValue());\n }\n inOrder.setCustomFields(customFields);\n }",
"public void initDefaultValues() {\n setOrderActive(1);\n setProductQuantity(1);\n setBillingPhone1Blocked(0);\n setBillingPhone2Blocked(0);\n setOrderAvailabilityStatus(1);\n setDeliveryStatus(1);\n setMailedReminderToVendorStatus(0);\n setOrderCancelRequestStatus(0);\n setOrderCancellationToVendorStatus(0);\n setDisputeRaisedStatus(0);\n setOrderAcceptNewsletter(1);\n setOrderAcceptPromotionalMaterial(1);\n setBillingAdvanceAmount(0);\n setBillingBalanceAmount(0);\n setBillingGrossAmount(0f);\n setBillingMarginAmount(0f);\n setBillingNettCost(0f);\n setBillingPaymentGatewayRate(0f);\n setBillingStateId(0);\n setBillingTaxrate(0f);\n setBillingTotalAmount(0f);\n setCarYear(0);\n setCustomint1(0);\n setCustomint2(0);\n setCustPaymentMode(0);\n setCustPaymentStatus(0);\n setInvoiceId(0);\n setVendorPaymentMode(0);\n setShipmentRate(0);\n setShipmentCountryId(0);\n setShipmentCityId(0);\n setOrderType(0);\n setOrderStatus(0);\n setOrderRefundType(0);\n setOrderPriority(0);\n setOrderBulkType(0);\n setOrderCorporateType(0);\n setShipmentCityId(0);\n setShipmentCountryId(0);\n setShipmentRate(0f);\n setShipmentStateId(0);\n setOrderCancellationType(0);\n }",
"void setCreationDateTimes(final Order order) {\n final LocalDateTime now = LocalDateTime.now();\n order.setCreatedAt(now);\n order.setUpdatedAt(now);\n order.getData().setOrderedAt(now);\n }",
"public void setOrder(List<Order> order) {\n this.order = order;\n }",
"@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZBRNM\", \"LOND\"); // Branch mnemonic (4A)\n\t\ttransaction.setFieldValue(\"GZPBR\", \"IPS2\"); // Posting group id or user id, and group level (5A)\n\t\ttransaction.setFieldValue(\"GZVFR\", \"1000106\"); // Value from date (7S,0)\n\t\ttransaction.setFieldValue(\"GZBRND\", \"LOND\"); // Branch mnemonic (4A)\n\t\ttransaction.setFieldValue(\"GZDRF\", \"0014620010\"); // Users own reference for deals, reconciliation etc (16A)\n\t\ttransaction.setFieldValue(\"GZAMA\", \"1500-\"); // Ordinary amount in minor currency units (15P,0)\n\t\ttransaction.setFieldValue(\"GZCCY\", \"PHP\"); // Currency mnemonic (3A)\n\t\ttransaction.setFieldValue(\"GZNPE\", \"1\"); // Number of posting entries (5P,0)\n\t\ttransaction.setFieldValue(\"GZNR1\", \"STOP\"); // Narrative line 1 (35A)\n\t\ttransaction.setFieldValue(\"GZRFR\", \"N\"); // Referred item? (1A)\n\t\ttransaction.setFieldValue(\"GZAUT\", \"Y\"); // Authorised item? (1A)\n\t\ttransaction.setFieldValue(\"GZSSI\", \"N\"); // Special item? (1A)\n\t\ttransaction.setFieldValue(\"GZTTP\", \"C\"); // Transaction type (1A)\n\t\ttransaction.setFieldValue(\"GZHSRL\", \"0014620010\"); // Serial \"number\" forming the key to a stop order (16A)\n\t\ttransaction.setFieldValue(\"GZHAMT\", \"1500-\"); // Stop order amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZAUTC\", \"MASSEYR1\"); // Referred item authorisation code (12A)\n\t\ttransaction.setFieldValue(\"GZCED\", \"2\"); // Currency edit field (1A)\n\t\ttransaction.setFieldValue(\"GZCHQ\", \"N\"); // Cheque item? (1A)\n\t\ttransaction.setFieldValue(\"GZDRFN\", \"0\"); // Cheque serial number (16P,0)\n\t\ttransaction.setFieldValue(\"GZTCCY\", \"PHP\"); // Transaction currency (3A)\n\t\ttransaction.setFieldValue(\"GZTAMA\", \"1500\"); // Transaction amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZHCCY\", \"PHP\"); // Stop order currency (3A)\n\t\ttransaction.setFieldValue(\"GZPSQ7\", \"0000182\"); // 7 Long posting sequence number (7P,0)\n\t}",
"public void load(Order order) {\n\t\tm_order = order;\n\t\tfieldGroup.setItemDataSource(new BeanItem<Order>(m_order));\n }",
"private void buildFields() {\r\n buildField(txtPizzaName, GUIResource.getLabel(DIALOG, NAME_PIZZA), 0);\r\n buildField(txtCustomerName, GUIResource.getLabel(DIALOG, NAME_CUSTOMER), 1);\r\n buildField(txtPhone, GUIResource.getLabel(DIALOG, PHONE), 2);\r\n buildField(txtEmail, GUIResource.getLabel(DIALOG, EMAIL), 3);\r\n }",
"public void setOrderList() {\n\n\t\tint index = 0;\n\t\tlistModel.clear();\n\t\tfor (Order order : driver.getOrderDB().getCustomerOrderList()) {\n\t\t\tlistModel\n\t\t\t\t\t.addElement(textAlignment(\" \" + order.getId(), \"\" + order.getDate(), \"\"\n\t\t\t\t\t\t\t+ order.getPerson().getId(), \"\"\n\t\t\t\t\t\t\t+ order.getCurrentlyLoggedInStaff().getId()));\n\t\t\t// stockList.setSelectedIndex(orderListIndex);\n\t\t\tindex++;\n\t\t}\n\t}",
"public void initData(Order order) {\n tourDetailOrder.setText(order.getTour().getName());\n nameDetailOrder.setText(order.getClient().getName());\n packDetailOrder.setText(order.getPhotoPack().getDescription());\n statusDetailOrder.setText(order.getOrderStatus().getInfo());\n }",
"public void loadOrderByFields(IOrderedQuery orderedQuery)\r\n\t{\r\n\t\tif(this.orderByFields.isEmpty())\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// loop through order by fields\r\n\t\tfor(ResultField field : orderByFields)\r\n\t\t{\r\n\t\t\torderedQuery.addOrderByField(new QueryResultField(field.table.tableCode, field.fieldDetails.getDbColumnName(), field.code, field.orderType));\r\n\t\t}\r\n\t}",
"public void setOrder(int order) {\n mOrder = order;\n }",
"@Override\n\tprotected void initializeFields() {\n\n\t}",
"@JsonProperty(\"OrderLine\")\r\n\tpublic void setOrderLine(OrderLine orderLine) {\r\n\t\tthis.orderLine = orderLine;\r\n\t}",
"public void updatePropertyFields()\n {\n amountLabel .setText(retrieveText(\"AmountLabel\", amountLabel));\n reasonCodeLabel .setText(retrieveText(\"ReasonCodeLabel\", reasonCodeLabel));\n paidToLabel .setText(retrieveText(\"PaidToLabel\", paidToLabel));\n employeeIDLabel .setText(retrieveText(\"EmployeeIDLabel\", employeeIDLabel));\n addressLine1Label.setText(retrieveText(\"AddressLine1Label\", addressLine1Label));\n addressLine2Label.setText(retrieveText(\"AddressLine2Label\", addressLine2Label));\n addressLine3Label.setText(retrieveText(\"AddressLine3Label\", addressLine3Label));\n approvalCodeLabel.setText(retrieveText(\"ApprovalCodeLabel\", approvalCodeLabel));\n commentLabel .setText(retrieveText(\"CommentLabel\", commentLabel));\n\n amountField .setLabel(amountLabel);\n reasonCodeField .setLabel(reasonCodeLabel);\n paidToField .setLabel(paidToLabel);\n employeeIDField .setLabel(employeeIDLabel);\n addressLine1Field.setLabel(addressLine1Label);\n addressLine2Field.setLabel(addressLine2Label);\n addressLine3Field.setLabel(addressLine3Label);\n approvalCodeField.setLabel(approvalCodeLabel);\n commentField .setLabel(commentLabel);\n }",
"private void fillMandatoryFields_custom() {\n\n }",
"public void setOrderMoney(BigDecimal orderMoney) {\n this.orderMoney = orderMoney;\n }",
"public void setOrder(int order) {\n this.order = order;\n }",
"public void setOrder(int order) {\n this.order = order;\n }",
"private void setPhoneFields(Cursor cur) {\n\n\t\tint selectedColumn;\n\t\tint selectedColumnType;\n\t\tint preferredColumn;\n\t\tint phoneType;\n\t\tString customLabel = null;\n\n\t\t//\n\t\t// Get PhonesColums fields\n\t\t//\n\t\tselectedColumn = cur.getColumnIndex(Phone.NUMBER);\n\t\tselectedColumnType = cur.getColumnIndex(Phone.TYPE);\n\t\tpreferredColumn = cur.getColumnIndex(Phone.IS_PRIMARY);\n\t\tphoneType = cur.getInt(selectedColumnType);\n\t\tString phone = cur.getString(selectedColumn);\n\t\tboolean preferred = cur.getInt(preferredColumn) != 0;\n\t\tif (phoneType == Phone.TYPE_CUSTOM) {\n\t\t\tcustomLabel = cur.getString(cur.getColumnIndex(Phone.LABEL));\n\t\t}\n\n\t\tphones.add(new RowData(phoneType, phone, preferred, customLabel));\n\t}",
"public void setOrder(String id,String email);",
"public void setOrder(int value) {\n this.order = value;\n }",
"private void populateFields() {\n pedidos = pdao.listaTodos();\n cCliente = new HashSet();\n cEstado = new HashSet();\n cCidade = new HashSet();\n cFornecedor = new HashSet();\n\n for (int i = 0; i < pedidos.size(); i++) {\n cCliente.add(pedidos.get(i).getCliente().getNome());\n cEstado.add(pedidos.get(i).getCliente().getEstado());\n cCidade.add(pedidos.get(i).getCliente().getCidade());\n for (int j = 0; j < pedidos.get(i).getItens().size(); j++) {\n cFornecedor.add(pedidos.get(i).getItens().get(j).getProduto().getFornecedor().getNome());\n }\n }\n\n clientes = new ArrayList<>(cCliente);\n fornecedores = new ArrayList<>(cFornecedor);\n\n Iterator i = cCliente.iterator();\n while (i.hasNext()) {\n jCBCliente.addItem(i.next());\n }\n\n i = null;\n i = cEstado.iterator();\n while (i.hasNext()) {\n jCBEstado.addItem(i.next());\n }\n\n i = null;\n i = cCidade.iterator();\n while (i.hasNext()) {\n jCBCidade.addItem(i.next());\n }\n i = null;\n i = cFornecedor.iterator();\n while (i.hasNext()) {\n jCBFornecedor.addItem(i.next());\n }\n\n }",
"@Test\n public void updateShoppingCartConnectionCustomFieldsTest() throws ApiException {\n ShoppingCartConnection body = null;\n api.updateShoppingCartConnectionCustomFields(body);\n\n // TODO: test validations\n }",
"public void setOrder(Integer order) {\n this.order = order;\n }",
"public void setOrderDate(Date orderDate) {\n this.orderDate = orderDate;\n }",
"public SortObj(String field, int order) {\n super();\n this.field = field;\n this.order = order;\n }",
"public void setOrder(Integer order) {\n this.order = order;\n }",
"public void setOrder(Integer order) {\n this.order = order;\n }",
"protected void setComboBoxes() { Something was changed in the row.\n //\n final Map<String, Integer> fields = new HashMap<>();\n\n // Add the currentMeta fields...\n fields.putAll(inputFields);\n\n Set<String> keySet = fields.keySet();\n List<String> entries = new ArrayList<>(keySet);\n\n String[] fieldNames = entries.toArray(new String[entries.size()]);\n Const.sortStrings(fieldNames);\n // Key fields\n ciKey[2].setComboValues(fieldNames);\n ciKey[3].setComboValues(fieldNames);\n }",
"private void setNewFields(String[] fields) {\n for (String fieldName : fields) {\n setNewField(fieldName);\n }\n }",
"public CreateOrderRequest() {\n\t\t_pcs = new PropertyChangeSupport(this);\n\t}",
"public void setOrder(String Order) {\n this.Order = Order;\n }",
"private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = true;\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = true;\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = true;\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = true;\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = true;\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = true;\n }\n }",
"public void setFields(Map<String, String> fields) {\n this.fields = fields;\n }",
"void setFields(Set<F> fields);",
"@Override\n protected List<String> getFieldOrder() {\n ArrayList<String> FieldOrder= new ArrayList<String>();\n FieldOrder.add(\"dsapiVersionNo\");\n FieldOrder.add(\"sessionId\");\n FieldOrder.add(\"valueMark\");\n FieldOrder.add(\"fieldMark\");\n return FieldOrder;\n }",
"public final void setOrder_Customer(com.mendix.systemwideinterfaces.core.IContext context, simpleordermodule.proxies.Customer order_customer)\r\n\t{\r\n\t\tif (order_customer == null)\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.Order_Customer.toString(), null);\r\n\t\telse\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.Order_Customer.toString(), order_customer.getMendixObject().getId());\r\n\t}",
"public void setOrder(int order) {\n\t\tthis.order = order;\n\t}",
"public void setFields(FieldSet editedData) throws Exception {\n\t\tfor (String controlName : editedData.keySet()) {\n\t\t\tif (editedData.get(controlName) != null) {\n\t\t\t\tVoodooUtils.voodoo.log.fine(\"Editing field: \" + controlName);\n\t\t\t\tString toSet = editedData.get(controlName);\n\t\t\t\tVoodooUtils.pause(100);\n\t\t\t\tVoodooUtils.voodoo.log.fine(\"Setting \" + controlName + \" field to: \"\n\t\t\t\t\t\t+ toSet);\n\t\t\t\tgetEditField(controlName).set(toSet);\n\t\t\t\tVoodooUtils.pause(100);\n\t\t\t}\n\t\t}\n\t}",
"public void setOrder(final Integer order) {\n this.order = order;\n }",
"private void updateFieldValues(){\r\n \tgenChainLengthField.setText(String.valueOf(settings.genChainLength));\r\n \tgenChainLengthFluxField.setText(String.valueOf(settings.genChainLengthFlux));\r\n \tstepGenDistanceField.setText(String.valueOf(settings.stepGenDistance));\r\n \trowsField.setText(String.valueOf(settings.rows));\r\n \tcolsField.setText(String.valueOf(settings.cols));\r\n \tcellWidthField.setText(String.valueOf(settings.cellWidth));\r\n \tstartRowField.setText(String.valueOf(settings.startRow));\r\n \tstartColField.setText(String.valueOf(settings.startCol));\r\n \tendRowField.setText(String.valueOf(settings.endRow));\r\n \tendColField.setText(String.valueOf(settings.endCol));\r\n \tprogRevealRadiusField.setText(String.valueOf(settings.progRevealRadius));\r\n \tprogDrawCB.setSelected(settings.progDraw);\r\n \tprogDrawSpeedField.setText(String.valueOf(settings.progDrawSpeed));\r\n }",
"@Override\n\tprotected List<String> getFieldOrder() {\n\t\treturn Arrays.asList(\n\t\t\t\"nType\", \n\t\t\t\"szUnitID\", \n\t\t\t\"szCurID\", \n\t\t\t\"nValues\", \n\t\t\t\"nCount\", \n\t\t\t\"nStatus\" \n\t\t);\n\t}",
"public void setOrderType(Byte orderType) {\n this.orderType = orderType;\n }",
"public void setOrder(Integer order) {\n\t\tthis.order = order;\n\t}",
"public void setDateOrder(DateOrder dateOrder)\r\n {\r\n m_dateOrder = dateOrder;\r\n }",
"public final void setOrder(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Integer order)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Order.toString(), order);\r\n\t}",
"public void setEditableFields(EditableFields fields) {\n\n List<AbstractField> allFields = Arrays.asList(firstName, lastName, legalFirstName, legalLastName,\n nameIsLegalName, fanName, badgeNumber, phoneNumber, birthDate, email, zip, emergencyContactFullName,\n emergencyContactPhone, parentFormReceived, parentFullName, parentPhone, paidAmount,\n compedBadge, checkedIn);\n switch (fields) {\n case ALL:\n for (AbstractField field : allFields) {\n field.setEnabled(true);\n// field.setValidationVisible(true);\n }\n badgeNumber.setEnabled(false);\n badge.setEnabled(true);\n break;\n case NONE:\n for (AbstractField field : allFields) {\n field.setEnabled(false);\n }\n badgeNumber.setEnabled(false);\n badge.setEnabled(false);\n }\n }",
"public void setOrderTime(Date orderTime) {\n this.orderTime = orderTime;\n }",
"public void setOrders(ArrayList<Order> orders) {\n this.orders = orders;\n }",
"@Override\n\tpublic void setPositionOrder(int positionOrder) {\n\t\t_dmGTShipPosition.setPositionOrder(positionOrder);\n\t}",
"public MOrder( Properties ctx,int C_Order_ID,String trxName ) {\n super( ctx,C_Order_ID,trxName );\n\n // New\n\n if( C_Order_ID == 0 ) {\n setDocStatus( DOCSTATUS_Drafted );\n setDocAction( DOCACTION_Prepare );\n\n //\n\n setDeliveryRule( DELIVERYRULE_Availability );\n setFreightCostRule( FREIGHTCOSTRULE_FreightIncluded );\n setInvoiceRule( INVOICERULE_Immediate );\n setPaymentRule( PAYMENTRULE_OnCredit );\n setPriorityRule( PRIORITYRULE_Medium );\n setDeliveryViaRule( DELIVERYVIARULE_Pickup );\n\n //\n\n setIsDiscountPrinted( false );\n setIsSelected( false );\n setIsTaxIncluded( false );\n setIsSOTrx( true );\n setIsDropShip( false );\n setSendEMail( false );\n\n //\n\n setIsApproved( false );\n setIsPrinted( false );\n setIsCreditApproved( false );\n setIsDelivered( false );\n setIsInvoiced( false );\n setIsTransferred( false );\n setIsSelfService( false );\n\n //\n\n super.setProcessed( false );\n setProcessing( false );\n setPosted( false );\n setDateOrdered(Env.getTimestamp());\n setDateAcct(getDateOrdered());\n setDatePromised(getDateOrdered());\n setFreightAmt( Env.ZERO );\n setChargeAmt( Env.ZERO );\n setTotalLines( Env.ZERO );\n setGrandTotal( Env.ZERO );\n }\n }",
"public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }",
"public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }",
"public void updateNonDynamicFields() {\n\n\t}",
"public Order() {\n orderID = \"\";\n customerID = \"\";\n status = \"\";\n }",
"public getEmployeeCustomFieldsConf_args(getEmployeeCustomFieldsConf_args other) {\n __isset_bitfield = other.__isset_bitfield;\n this.companyId = other.companyId;\n }",
"private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = other.fieldSetFlags()[0];\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = other.fieldSetFlags()[1];\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = other.fieldSetFlags()[2];\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = other.fieldSetFlags()[3];\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = other.fieldSetFlags()[4];\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = other.fieldSetFlags()[5];\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = other.fieldSetFlags()[6];\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = other.fieldSetFlags()[7];\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = other.fieldSetFlags()[8];\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = other.fieldSetFlags()[9];\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = other.fieldSetFlags()[10];\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = other.fieldSetFlags()[11];\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = other.fieldSetFlags()[12];\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = other.fieldSetFlags()[13];\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = other.fieldSetFlags()[14];\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = other.fieldSetFlags()[15];\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = other.fieldSetFlags()[16];\n }\n }",
"private void updateFields(){\n\n updateTotalPay();\n updateTotalTip();\n updateTotalPayPerPerson();\n }",
"public void setOrderDate(String orderDate) {\r\n\t\tthis.orderDate = orderDate;\r\n\t}",
"@JsonSetter(\"orderId\")\r\n public void setOrderId (int value) { \r\n this.orderId = value;\r\n }",
"public static void setFields(DBFField[] fields) throws UnsupportedEncodingException {\r\n int i = 0;\r\n\r\n fields[i] = new DBFField();\r\n fields[i].setName(\"TIPREG\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(1);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DOCFEC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DOCSER\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DOCNUM\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(6);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODTIP\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODMOD\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODTER\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(5);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CTACON\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(12);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"BASEBAS\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n// fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPTBAS\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n// fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORNOR\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(6);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"RECBAS\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORREC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(6);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORTES\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORFIN\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(6);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"RFDPP\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DESHOR\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DESKM\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"TOTFAC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(14);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO1\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO1\");\r\n //fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n // Es numerico pero para insertar valor \"XXX,YY\" \r\n //hay que meterlo como string y despues cambiarlo en dbfmanager -> Structura\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO2\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO2\");\r\n // Misma razon que IMPVTO1\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO3\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO3\");\r\n // Misma razon que IMPVTO1\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO4\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO4\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO5\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO5\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO6\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO6\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DIETENT\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODFORPAG\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(3);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"TIPFORPAG\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(1);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n \r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"BASEIMPCC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n// logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n fields[i].setDecimalCount(0);\r\n// logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n //logger.log(Level.INFO, \"Total columnas en fichero .dbf = {0}\", i);\r\n }",
"public void setOrderId(int value) {\n this.orderId = value;\n }",
"protected void setProjectFields(final ArrayList<Field> fields) {\n\t\tthis._projectFields = fields;\n\t\t\n\t\t\n\t\t// Assign all special fields to their corresponding variables\n\t\tfor (Field field : fields) {\n\t\t\tif (field.getName().equals(\"Function Requirements\")) {\n\t\t\t\t_functionReq = field;\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"Data Requirements\")) {\n\t\t\t\t_dataReq = field;\n\t\t\t\t\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"Performance Requirements\")) {\n\t\t\t\t_performanceReq = field;\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"Glossary\")) {\n\t\t\t\t_glossary = field;\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"FP Parameters\")) {\n\t\t\t\t_fpParameters = field;\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"FP Influences\")){\n\t\t\t\t_fpInfluences = field;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t// Calculation\n\t\t_calcMethodEnum = CalculationEnum.notSet;\n\t\t_calcMethodInstance = null;\n\t\t\n\t}",
"public void setOrderId(Integer orderId) {\n this.orderId = orderId;\n }",
"public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }",
"public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }",
"public void setUserOrder(User userOrder) {\n this.userOrder = userOrder;\n }",
"public void setOrderNumber(int value) {\n this.orderNumber = value;\n }",
"public void setIdOrder(Long idOrder) {\n this.idOrder = idOrder;\n }",
"public void initData() {\n nameDetailOrder.setText(\"-\");\n tourDetailOrder.setText(\"-\");\n packDetailOrder.setText(\"-\");\n statusDetailOrder.setText(\"-\");\n }",
"public void setFields(Map<String,String> fields)\n\t{\n\t\tList<Field> localFields = new ArrayList<Field>();\n\t\tIterator<Map.Entry<String,String>> it = fields.entrySet().iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tMap.Entry<String,String> pairs = it.next();\n\t\t\tlocalFields.add(new Field(pairs.getKey(), pairs.getValue()));\n\t\t}\n\n\t\tsetFields(localFields);\n\t}",
"public void resetOrder(){\n\t\tcurrentOrder = new Order();\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\ttitle.setText(\"Order No \" + number);\n\t\tcustNameField.setText(\"\");\n\t\tmiddlePanel.reset();\n\t\tsubtotal.text.setText(CURR+\"0.00\");\n\t\tdiscount.text.setText(CURR+\"0.00\");\n\t\ttoPay.text.setText(CURR +\"0.00\");\n\t\tthis.repaint();\n\t\tthis.validate();\n\t}",
"public void setAllCustomFields(final Map<String,String> value)\n\t{\n\t\tsetAllCustomFields( getSession().getSessionContext(), value );\n\t}",
"private void setFields() {\n\t\tfirstname.setText(guest.getFirstName());\n\t\tlastname.setText(guest.getLastName());\n\t\tpassport.setText(guest.getPassportNumber());\n\t\ttelephone.setText(guest.getTelephoneNumber());\n\t\tarrival.setText(arrivalDate.toString());\n\t\tdeparture.setText(departureDate.toString());\n\n\t\tif (hotelChoice.getName() != null && hotelChoice.getName() != \"\"\n\t\t\t\t&& !(hotelChoice.getName() == Controller.DEFAULT_HOTEL_CHOICE)) {\n\t\t\thotel.setText(hotelChoice.getName());\n\t\t} else {\n\t\t\thotelChoice = new Hotel();\n\t\t\thotelChoice.setName(\"\");\n\t\t\thotel.clear();\n\t\t}\n\t\tif (roomQualityChoice.getQuality() != null && roomQualityChoice.getQuality() != \"\"\n\t\t\t\t&& !(roomQualityChoice.getQuality() == Controller.DEFAULT_QUALITY_CHOICE)) {\n\t\t\tquality.setText(roomQualityChoice.getQuality());\n\t\t} else {\n\t\t\troomQualityChoice = new RoomQuality();\n\t\t\troomQualityChoice.setQuality(\"\");\n\t\t\tquality.clear();\n\t\t}\n\t\tif (discountChoice > 0) {\n\t\t\tdiscount.setText(\"(-\" + discountChoice + \"%)\");\n\t\t}\n\n\t\tloadAvailableRooms();\n\n\t}"
] | [
"0.70547736",
"0.66470325",
"0.60134",
"0.5980678",
"0.59156203",
"0.5660608",
"0.5652059",
"0.5583983",
"0.5554638",
"0.5540217",
"0.5489812",
"0.5467824",
"0.54392517",
"0.5431332",
"0.54203737",
"0.5418168",
"0.5411308",
"0.5405937",
"0.53797585",
"0.53588617",
"0.53512025",
"0.5332118",
"0.5325641",
"0.53081334",
"0.5281827",
"0.5242306",
"0.5190487",
"0.5190113",
"0.5188441",
"0.5162664",
"0.5158202",
"0.5147526",
"0.5135602",
"0.5128479",
"0.511592",
"0.5089872",
"0.5067766",
"0.5055738",
"0.5049592",
"0.5049005",
"0.504894",
"0.5033554",
"0.5023659",
"0.5023659",
"0.50136477",
"0.49849823",
"0.4981497",
"0.4972282",
"0.4959525",
"0.49479982",
"0.494726",
"0.49446964",
"0.49412698",
"0.49412698",
"0.49296722",
"0.49282786",
"0.4927711",
"0.49176708",
"0.49166617",
"0.49018547",
"0.489485",
"0.4893123",
"0.48883566",
"0.48839954",
"0.4869538",
"0.48641375",
"0.48512667",
"0.4847837",
"0.48452476",
"0.4842667",
"0.48377502",
"0.48183614",
"0.48173124",
"0.47927648",
"0.4791128",
"0.47824392",
"0.4773739",
"0.47706708",
"0.47706708",
"0.47693422",
"0.47617626",
"0.47578955",
"0.47565836",
"0.47542465",
"0.47457016",
"0.47437105",
"0.47321156",
"0.47248533",
"0.47133482",
"0.47082907",
"0.46986127",
"0.46986127",
"0.46948683",
"0.46915412",
"0.46915007",
"0.4683282",
"0.46718088",
"0.46705294",
"0.4669209",
"0.46661094"
] | 0.58145934 | 5 |
Sets the Custom Fields fields for the Order. | public OrderSetCustomTypeActionBuilder fields(
@Nullable final com.commercetools.api.models.type.FieldContainer fields) {
this.fields = fields;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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 OrderSetCustomTypeActionBuilder fields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainerBuilder> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of()).build();\n return this;\n }",
"public void setFieldOrder(java.lang.Integer fieldOrder) {\n this.fieldOrder = fieldOrder;\n }",
"@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }",
"public OrderSetCustomTypeActionBuilder withFields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainer> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of());\n return this;\n }",
"void setOrder(Order order);",
"public void setupFields()\n {\n FieldInfo field = null;\n field = new FieldInfo(this, \"ID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"LastChanged\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Date.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Deleted\", 10, null, new Boolean(false));\n field.setDataClass(Boolean.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Description\", 25, null, null);\n field = new FieldInfo(this, \"CurrencyCode\", 3, null, null);\n field = new FieldInfo(this, \"LastRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"RateChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"RateChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"CostingRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"CostingChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"CostingChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"RoundAt\", 1, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, \"IntegerDesc\", 20, null, \"Dollar\");\n field = new FieldInfo(this, \"FractionDesc\", 20, null, null);\n field = new FieldInfo(this, \"FractionAmount\", 10, null, new Integer(100));\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"Sign\", 3, null, \"$\");\n field = new FieldInfo(this, \"LanguageID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"NaturalInteger\", 20, null, null);\n field = new FieldInfo(this, \"NaturalFraction\", 20, null, null);\n }",
"private void fillFields() {\n\t\tInteger owner = this.contractor.getOwner();\n\n\t\tnameField.setText(getTrimmedValue(this.contractor.getName()));\n\t\tlocationField.setText(getTrimmedValue(this.contractor.getLocation()));\n\t\townerField.setText(owner == null ? \"\" : owner.toString());\n\t\tsizeField.setText(contractor.getSize().toString());\n\t\trateField.setText(Contractor.RATE_FORMAT.format(this.contractor\n\t\t\t\t.getRate()));\n\t\tspecialtiesList.setListData(this.contractor.getSpecialties());\n\t}",
"private void populateFields() {\n\t\ttypeNameTF.setText(\"\");\n\t\tunitsTF.setText(\"\");\n\t\tunitMeasureTF.setText(\"\");\n\t\tvalidityDaysTF.setText(\"\");\n\t\treorderPointTF.setText(\"\");\n\t\tnotesTF.setText(\"\");\n\t\tstatusCB.getItems().addAll(\"Active\", \"Inactive\");\n\t\tstatusCB.setValue(\"Active\");\n\t}",
"public void setAllCustomFields(final SessionContext ctx, final Map<String,String> value)\n\t{\n\t\tsetProperty(ctx, CUSTOMFIELDS,value);\n\t}",
"@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZCNEW\", \"Y\"); // Generate new card?\n\t\ttransaction.setFieldValue(\"GZCMOD\", \"A\"); // Mode - this must be 'A' when adding\n\t\ttransaction.setFieldValue(\"GZCNM1\", \"TEST AUTO\"); // Card name 1\n\t}",
"public void setOrderPropertyColumns() {\n\t\t// Clave\n\t\tColumn<BmObject, String> codeColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getCode().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(codeColumn, SafeHtmlUtils.fromSafeConstant(\"Clave\"));\n\t\torderPropertyTaxGrid.setColumnWidth(codeColumn, 150, Unit.PX);\n\n\n\t\t\t// Descripcion\n\t\t\tColumn<BmObject, String> blockColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t@Override\n\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getDescription().toString();\n\t\t\t\t}\n\t\t\t};\n\t\t\torderPropertyTaxGrid.addColumn(blockColumn, SafeHtmlUtils.fromSafeConstant(\"Descripción\"));\n\t\t\torderPropertyTaxGrid.setColumnWidth(blockColumn, 150, Unit.PX);\n\n\t\t// Calle y numero\n\t\tColumn<BmObject, String> streetColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getStreet().toString() + \" \"\n\t\t\t\t\t\t+ \" #\" + ((BmoOrderPropertyTax)bmObject).getBmoProperty().getNumber().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(streetColumn, SafeHtmlUtils.fromSafeConstant(\"Calle y Número\"));\n\t\torderPropertyTaxGrid.setColumnWidth(streetColumn, 200, Unit.PX);\n\t\t\n\t\t//Meses\n\t\tColumn<BmObject, String> monthsColumn;\n\t\tmonthsColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t// con un asicrono obtener los meses de f.inicio y f.fin del pedido\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getQuantity().toString();\n//\t\t\t\treturn String.valueOf(months);\n\t\t\t}\n\t\t};\n//\t\tmonthsColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n//\t\t\t@Override\n//\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n//\t\t\t\tchangeOrderEquipmentDays(bmObject, value);\n//\t\t\t}\n//\t\t});\n\t\t\n\t\t\n\t\tSafeHtmlHeader daysHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t@Override \n\t\t\tpublic String asString() { \n\t\t\t\treturn \"<p style=\\\"text-center;\\\">Meses</p>\"; \n\t\t\t} \n\t\t}); \n\t\torderPropertyTaxGrid.addColumn(monthsColumn, daysHeader);\n\t\torderPropertyTaxGrid.setColumnWidth(monthsColumn, 50, Unit.PX);\n\t\tmonthsColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);\n//\t}\n\t\t\n\t// Precio\n\t\t\tColumn<BmObject, String> priceColumn;\n\t\t\t\tif (bmoOrder.getStatus().equals(BmoOrder.STATUS_REVISION)) {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new EditTextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tpriceColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n\t\t\t\t\t\t\tchangeOrderPropertyPrice(bmObject, value);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tSafeHtmlHeader priceHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t\t\t@Override \n\t\t\t\t\tpublic String asString() { \n\t\t\t\t\t\treturn \"<p style=\\\"text-align:right;\\\">Precio</p>\"; \n\t\t\t\t\t} \n\t\t\t\t}); \n\t\t\t\torderPropertyTaxGrid.addColumn(priceColumn, priceHeader);\n\t\t\t\torderPropertyTaxGrid.setColumnWidth(priceColumn, 50, Unit.PX);\n\t\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\n//\t\t\t\t@Override\n//\t\t\t\tpublic String getValue(BmObject bmObject) {\n//\t\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat()\n//\t\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getPrice().toDouble());\n//\t\t\t\t\treturn (formatted);\n//\t\t\t\t}\n//\t\t\t};\n//\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n//\t\t\torderPropertyTaxGrid.addColumn(priceColumn, SafeHtmlUtils.fromSafeConstant(\"Precio\"));\n\n\n\t\t// Total\n\t\tColumn<BmObject, String> totalColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat();\n\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getAmount().toDouble());\n\t\t\t\treturn (formatted);\n\t\t\t}\n\t\t};\n\t\ttotalColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\t\torderPropertyTaxGrid.addColumn(totalColumn, SafeHtmlUtils.fromSafeConstant(\"Total\"));\n\t}",
"public void setOrder(Order order){\n this.order = order;\n }",
"public void setFields(final List<Field> fields) {\n this.fields.addAll(fields);\n }",
"@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZCCD\", \"B1\"); // Charge code (2A)\n\t\ttransaction.setFieldValue(\"GZAMT\", \"5000\"); // Charge amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZWMN\", \"KSM2020\"); // Warning message (7A)\n\t\ttransaction.setFieldValue(\"GZFLG\", \"N\"); // Stop chqbook issue? (1A)\n\t}",
"private void setValues() {\n textViewPrice = findViewById(R.id.textViewPrice);\n textViewStoreName = findViewById(R.id.textViewStoreName);\n textViewLocation = findViewById(R.id.textViewLocation);\n buttonAcceptOrder = findViewById(R.id.buttonAcceptOrder);\n\n order = Parcels.unwrap(getIntent().getParcelableExtra(Order.class.getSimpleName()));\n\n textViewPrice.setText(\"$\" + decimalFormat.format(order.getPrice()));\n textViewStoreName.setText(\"Store: \"+ order.getStore().getName());\n textViewLocation.setText(\"Address: \" + order.getStore().getAddress());\n }",
"@Override\n\tpublic void setFields(FieldList fl) {\n\t\tlogger.debug(\"setFields :\");\n\t\tsuper.setFields(fl);\n\t}",
"public void setFields(List<AccountingLineViewField> fields) {\n this.fields = fields;\n }",
"private FieldExtractor<OrderEntity> createOrderFieldExtractor() {\r\n BeanWrapperFieldExtractor<OrderEntity> extractor = new BeanWrapperFieldExtractor<>();\r\n extractor.setNames(new String[] {\"region\", \"country\", \"itemType\", \"salesChannel\",\r\n \"orderPriority\", \"orderDate\", \"orderId\", \"shipDate\", \"unitsSold\", \"unitPrice\", \"unitCost\",\r\n \"totalCost\", \"totalRevenue\", \"totalProfit\"});\r\n return extractor;\r\n }",
"void setOrderType(OrderType inOrderType);",
"public void setOrder(Order order) {\n this.order = order;\n notifyChanged();\n }",
"private void setDataInFields() \n {\n quantityTxtFld.setText(farmer.getCropQuantity()+\"\");\n quantityTxtFld.setEnabled(false);\n }",
"public void setNewFieldOrder(List<Field> newOrder)\n\t{\n\t\tif (newOrder.size()!=fieldList.size())\n\t\t\tthrow new IllegalArgumentException(\"Field lists have different sizes\");\n\t\tfor (Field f: newOrder)\n\t\t\tif (!fieldList.contains(f))\n\t\t\t\tthrow new IllegalArgumentException(\"New field list has unexpected field: \"+f);\n\t\tfieldList=newOrder;\n\t}",
"protected void createFields()\n {\n createEffectiveLocalDtField();\n createDiscontinueLocalDtField();\n createScanTypeField();\n createContractNumberField();\n createContractTypeField();\n createProductTypeField();\n createStatusIndicatorField();\n createCivilMilitaryIndicatorField();\n createEntryUserIdField();\n createLastUpdateUserIdField();\n createLastUpdateTsField();\n }",
"void setOrder(int order){\r\n\t\t\tthis.order = order;\r\n\t\t}",
"public void setC_OrderLine_ID (int C_OrderLine_ID);",
"public void applyTo(NewOrReplaceOrder inOrder)\n {\n if(algoTags == null) {\n return;\n }\n Map<String,String> customFields = inOrder.getCustomFields();\n if(customFields == null) {\n customFields = new HashMap<String,String>();\n }\n for(BrokerAlgoTag algoTag : algoTags) {\n customFields.put(String.valueOf(algoTag.getTagSpec().getTag()),\n algoTag.getValue());\n }\n inOrder.setCustomFields(customFields);\n }",
"public void initDefaultValues() {\n setOrderActive(1);\n setProductQuantity(1);\n setBillingPhone1Blocked(0);\n setBillingPhone2Blocked(0);\n setOrderAvailabilityStatus(1);\n setDeliveryStatus(1);\n setMailedReminderToVendorStatus(0);\n setOrderCancelRequestStatus(0);\n setOrderCancellationToVendorStatus(0);\n setDisputeRaisedStatus(0);\n setOrderAcceptNewsletter(1);\n setOrderAcceptPromotionalMaterial(1);\n setBillingAdvanceAmount(0);\n setBillingBalanceAmount(0);\n setBillingGrossAmount(0f);\n setBillingMarginAmount(0f);\n setBillingNettCost(0f);\n setBillingPaymentGatewayRate(0f);\n setBillingStateId(0);\n setBillingTaxrate(0f);\n setBillingTotalAmount(0f);\n setCarYear(0);\n setCustomint1(0);\n setCustomint2(0);\n setCustPaymentMode(0);\n setCustPaymentStatus(0);\n setInvoiceId(0);\n setVendorPaymentMode(0);\n setShipmentRate(0);\n setShipmentCountryId(0);\n setShipmentCityId(0);\n setOrderType(0);\n setOrderStatus(0);\n setOrderRefundType(0);\n setOrderPriority(0);\n setOrderBulkType(0);\n setOrderCorporateType(0);\n setShipmentCityId(0);\n setShipmentCountryId(0);\n setShipmentRate(0f);\n setShipmentStateId(0);\n setOrderCancellationType(0);\n }",
"void setCreationDateTimes(final Order order) {\n final LocalDateTime now = LocalDateTime.now();\n order.setCreatedAt(now);\n order.setUpdatedAt(now);\n order.getData().setOrderedAt(now);\n }",
"public void setOrder(List<Order> order) {\n this.order = order;\n }",
"@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZBRNM\", \"LOND\"); // Branch mnemonic (4A)\n\t\ttransaction.setFieldValue(\"GZPBR\", \"IPS2\"); // Posting group id or user id, and group level (5A)\n\t\ttransaction.setFieldValue(\"GZVFR\", \"1000106\"); // Value from date (7S,0)\n\t\ttransaction.setFieldValue(\"GZBRND\", \"LOND\"); // Branch mnemonic (4A)\n\t\ttransaction.setFieldValue(\"GZDRF\", \"0014620010\"); // Users own reference for deals, reconciliation etc (16A)\n\t\ttransaction.setFieldValue(\"GZAMA\", \"1500-\"); // Ordinary amount in minor currency units (15P,0)\n\t\ttransaction.setFieldValue(\"GZCCY\", \"PHP\"); // Currency mnemonic (3A)\n\t\ttransaction.setFieldValue(\"GZNPE\", \"1\"); // Number of posting entries (5P,0)\n\t\ttransaction.setFieldValue(\"GZNR1\", \"STOP\"); // Narrative line 1 (35A)\n\t\ttransaction.setFieldValue(\"GZRFR\", \"N\"); // Referred item? (1A)\n\t\ttransaction.setFieldValue(\"GZAUT\", \"Y\"); // Authorised item? (1A)\n\t\ttransaction.setFieldValue(\"GZSSI\", \"N\"); // Special item? (1A)\n\t\ttransaction.setFieldValue(\"GZTTP\", \"C\"); // Transaction type (1A)\n\t\ttransaction.setFieldValue(\"GZHSRL\", \"0014620010\"); // Serial \"number\" forming the key to a stop order (16A)\n\t\ttransaction.setFieldValue(\"GZHAMT\", \"1500-\"); // Stop order amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZAUTC\", \"MASSEYR1\"); // Referred item authorisation code (12A)\n\t\ttransaction.setFieldValue(\"GZCED\", \"2\"); // Currency edit field (1A)\n\t\ttransaction.setFieldValue(\"GZCHQ\", \"N\"); // Cheque item? (1A)\n\t\ttransaction.setFieldValue(\"GZDRFN\", \"0\"); // Cheque serial number (16P,0)\n\t\ttransaction.setFieldValue(\"GZTCCY\", \"PHP\"); // Transaction currency (3A)\n\t\ttransaction.setFieldValue(\"GZTAMA\", \"1500\"); // Transaction amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZHCCY\", \"PHP\"); // Stop order currency (3A)\n\t\ttransaction.setFieldValue(\"GZPSQ7\", \"0000182\"); // 7 Long posting sequence number (7P,0)\n\t}",
"public void load(Order order) {\n\t\tm_order = order;\n\t\tfieldGroup.setItemDataSource(new BeanItem<Order>(m_order));\n }",
"private void buildFields() {\r\n buildField(txtPizzaName, GUIResource.getLabel(DIALOG, NAME_PIZZA), 0);\r\n buildField(txtCustomerName, GUIResource.getLabel(DIALOG, NAME_CUSTOMER), 1);\r\n buildField(txtPhone, GUIResource.getLabel(DIALOG, PHONE), 2);\r\n buildField(txtEmail, GUIResource.getLabel(DIALOG, EMAIL), 3);\r\n }",
"public void setOrderList() {\n\n\t\tint index = 0;\n\t\tlistModel.clear();\n\t\tfor (Order order : driver.getOrderDB().getCustomerOrderList()) {\n\t\t\tlistModel\n\t\t\t\t\t.addElement(textAlignment(\" \" + order.getId(), \"\" + order.getDate(), \"\"\n\t\t\t\t\t\t\t+ order.getPerson().getId(), \"\"\n\t\t\t\t\t\t\t+ order.getCurrentlyLoggedInStaff().getId()));\n\t\t\t// stockList.setSelectedIndex(orderListIndex);\n\t\t\tindex++;\n\t\t}\n\t}",
"public void initData(Order order) {\n tourDetailOrder.setText(order.getTour().getName());\n nameDetailOrder.setText(order.getClient().getName());\n packDetailOrder.setText(order.getPhotoPack().getDescription());\n statusDetailOrder.setText(order.getOrderStatus().getInfo());\n }",
"public void loadOrderByFields(IOrderedQuery orderedQuery)\r\n\t{\r\n\t\tif(this.orderByFields.isEmpty())\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// loop through order by fields\r\n\t\tfor(ResultField field : orderByFields)\r\n\t\t{\r\n\t\t\torderedQuery.addOrderByField(new QueryResultField(field.table.tableCode, field.fieldDetails.getDbColumnName(), field.code, field.orderType));\r\n\t\t}\r\n\t}",
"public void setOrder(int order) {\n mOrder = order;\n }",
"@Override\n\tprotected void initializeFields() {\n\n\t}",
"public void updatePropertyFields()\n {\n amountLabel .setText(retrieveText(\"AmountLabel\", amountLabel));\n reasonCodeLabel .setText(retrieveText(\"ReasonCodeLabel\", reasonCodeLabel));\n paidToLabel .setText(retrieveText(\"PaidToLabel\", paidToLabel));\n employeeIDLabel .setText(retrieveText(\"EmployeeIDLabel\", employeeIDLabel));\n addressLine1Label.setText(retrieveText(\"AddressLine1Label\", addressLine1Label));\n addressLine2Label.setText(retrieveText(\"AddressLine2Label\", addressLine2Label));\n addressLine3Label.setText(retrieveText(\"AddressLine3Label\", addressLine3Label));\n approvalCodeLabel.setText(retrieveText(\"ApprovalCodeLabel\", approvalCodeLabel));\n commentLabel .setText(retrieveText(\"CommentLabel\", commentLabel));\n\n amountField .setLabel(amountLabel);\n reasonCodeField .setLabel(reasonCodeLabel);\n paidToField .setLabel(paidToLabel);\n employeeIDField .setLabel(employeeIDLabel);\n addressLine1Field.setLabel(addressLine1Label);\n addressLine2Field.setLabel(addressLine2Label);\n addressLine3Field.setLabel(addressLine3Label);\n approvalCodeField.setLabel(approvalCodeLabel);\n commentField .setLabel(commentLabel);\n }",
"private void fillMandatoryFields_custom() {\n\n }",
"@JsonProperty(\"OrderLine\")\r\n\tpublic void setOrderLine(OrderLine orderLine) {\r\n\t\tthis.orderLine = orderLine;\r\n\t}",
"public void setOrderMoney(BigDecimal orderMoney) {\n this.orderMoney = orderMoney;\n }",
"public void setOrder(int order) {\n this.order = order;\n }",
"public void setOrder(int order) {\n this.order = order;\n }",
"private void setPhoneFields(Cursor cur) {\n\n\t\tint selectedColumn;\n\t\tint selectedColumnType;\n\t\tint preferredColumn;\n\t\tint phoneType;\n\t\tString customLabel = null;\n\n\t\t//\n\t\t// Get PhonesColums fields\n\t\t//\n\t\tselectedColumn = cur.getColumnIndex(Phone.NUMBER);\n\t\tselectedColumnType = cur.getColumnIndex(Phone.TYPE);\n\t\tpreferredColumn = cur.getColumnIndex(Phone.IS_PRIMARY);\n\t\tphoneType = cur.getInt(selectedColumnType);\n\t\tString phone = cur.getString(selectedColumn);\n\t\tboolean preferred = cur.getInt(preferredColumn) != 0;\n\t\tif (phoneType == Phone.TYPE_CUSTOM) {\n\t\t\tcustomLabel = cur.getString(cur.getColumnIndex(Phone.LABEL));\n\t\t}\n\n\t\tphones.add(new RowData(phoneType, phone, preferred, customLabel));\n\t}",
"public void setOrder(String id,String email);",
"public void setOrder(int value) {\n this.order = value;\n }",
"private void populateFields() {\n pedidos = pdao.listaTodos();\n cCliente = new HashSet();\n cEstado = new HashSet();\n cCidade = new HashSet();\n cFornecedor = new HashSet();\n\n for (int i = 0; i < pedidos.size(); i++) {\n cCliente.add(pedidos.get(i).getCliente().getNome());\n cEstado.add(pedidos.get(i).getCliente().getEstado());\n cCidade.add(pedidos.get(i).getCliente().getCidade());\n for (int j = 0; j < pedidos.get(i).getItens().size(); j++) {\n cFornecedor.add(pedidos.get(i).getItens().get(j).getProduto().getFornecedor().getNome());\n }\n }\n\n clientes = new ArrayList<>(cCliente);\n fornecedores = new ArrayList<>(cFornecedor);\n\n Iterator i = cCliente.iterator();\n while (i.hasNext()) {\n jCBCliente.addItem(i.next());\n }\n\n i = null;\n i = cEstado.iterator();\n while (i.hasNext()) {\n jCBEstado.addItem(i.next());\n }\n\n i = null;\n i = cCidade.iterator();\n while (i.hasNext()) {\n jCBCidade.addItem(i.next());\n }\n i = null;\n i = cFornecedor.iterator();\n while (i.hasNext()) {\n jCBFornecedor.addItem(i.next());\n }\n\n }",
"@Test\n public void updateShoppingCartConnectionCustomFieldsTest() throws ApiException {\n ShoppingCartConnection body = null;\n api.updateShoppingCartConnectionCustomFields(body);\n\n // TODO: test validations\n }",
"public void setOrder(Integer order) {\n this.order = order;\n }",
"public void setOrderDate(Date orderDate) {\n this.orderDate = orderDate;\n }",
"public SortObj(String field, int order) {\n super();\n this.field = field;\n this.order = order;\n }",
"public void setOrder(Integer order) {\n this.order = order;\n }",
"public void setOrder(Integer order) {\n this.order = order;\n }",
"protected void setComboBoxes() { Something was changed in the row.\n //\n final Map<String, Integer> fields = new HashMap<>();\n\n // Add the currentMeta fields...\n fields.putAll(inputFields);\n\n Set<String> keySet = fields.keySet();\n List<String> entries = new ArrayList<>(keySet);\n\n String[] fieldNames = entries.toArray(new String[entries.size()]);\n Const.sortStrings(fieldNames);\n // Key fields\n ciKey[2].setComboValues(fieldNames);\n ciKey[3].setComboValues(fieldNames);\n }",
"private void setNewFields(String[] fields) {\n for (String fieldName : fields) {\n setNewField(fieldName);\n }\n }",
"public CreateOrderRequest() {\n\t\t_pcs = new PropertyChangeSupport(this);\n\t}",
"public void setOrder(String Order) {\n this.Order = Order;\n }",
"private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = true;\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = true;\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = true;\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = true;\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = true;\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = true;\n }\n }",
"public void setFields(Map<String, String> fields) {\n this.fields = fields;\n }",
"void setFields(Set<F> fields);",
"@Override\n protected List<String> getFieldOrder() {\n ArrayList<String> FieldOrder= new ArrayList<String>();\n FieldOrder.add(\"dsapiVersionNo\");\n FieldOrder.add(\"sessionId\");\n FieldOrder.add(\"valueMark\");\n FieldOrder.add(\"fieldMark\");\n return FieldOrder;\n }",
"public final void setOrder_Customer(com.mendix.systemwideinterfaces.core.IContext context, simpleordermodule.proxies.Customer order_customer)\r\n\t{\r\n\t\tif (order_customer == null)\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.Order_Customer.toString(), null);\r\n\t\telse\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.Order_Customer.toString(), order_customer.getMendixObject().getId());\r\n\t}",
"public void setOrder(int order) {\n\t\tthis.order = order;\n\t}",
"public void setFields(FieldSet editedData) throws Exception {\n\t\tfor (String controlName : editedData.keySet()) {\n\t\t\tif (editedData.get(controlName) != null) {\n\t\t\t\tVoodooUtils.voodoo.log.fine(\"Editing field: \" + controlName);\n\t\t\t\tString toSet = editedData.get(controlName);\n\t\t\t\tVoodooUtils.pause(100);\n\t\t\t\tVoodooUtils.voodoo.log.fine(\"Setting \" + controlName + \" field to: \"\n\t\t\t\t\t\t+ toSet);\n\t\t\t\tgetEditField(controlName).set(toSet);\n\t\t\t\tVoodooUtils.pause(100);\n\t\t\t}\n\t\t}\n\t}",
"public void setOrder(final Integer order) {\n this.order = order;\n }",
"private void updateFieldValues(){\r\n \tgenChainLengthField.setText(String.valueOf(settings.genChainLength));\r\n \tgenChainLengthFluxField.setText(String.valueOf(settings.genChainLengthFlux));\r\n \tstepGenDistanceField.setText(String.valueOf(settings.stepGenDistance));\r\n \trowsField.setText(String.valueOf(settings.rows));\r\n \tcolsField.setText(String.valueOf(settings.cols));\r\n \tcellWidthField.setText(String.valueOf(settings.cellWidth));\r\n \tstartRowField.setText(String.valueOf(settings.startRow));\r\n \tstartColField.setText(String.valueOf(settings.startCol));\r\n \tendRowField.setText(String.valueOf(settings.endRow));\r\n \tendColField.setText(String.valueOf(settings.endCol));\r\n \tprogRevealRadiusField.setText(String.valueOf(settings.progRevealRadius));\r\n \tprogDrawCB.setSelected(settings.progDraw);\r\n \tprogDrawSpeedField.setText(String.valueOf(settings.progDrawSpeed));\r\n }",
"@Override\n\tprotected List<String> getFieldOrder() {\n\t\treturn Arrays.asList(\n\t\t\t\"nType\", \n\t\t\t\"szUnitID\", \n\t\t\t\"szCurID\", \n\t\t\t\"nValues\", \n\t\t\t\"nCount\", \n\t\t\t\"nStatus\" \n\t\t);\n\t}",
"public void setOrderType(Byte orderType) {\n this.orderType = orderType;\n }",
"public void setOrder(Integer order) {\n\t\tthis.order = order;\n\t}",
"public void setDateOrder(DateOrder dateOrder)\r\n {\r\n m_dateOrder = dateOrder;\r\n }",
"public void setEditableFields(EditableFields fields) {\n\n List<AbstractField> allFields = Arrays.asList(firstName, lastName, legalFirstName, legalLastName,\n nameIsLegalName, fanName, badgeNumber, phoneNumber, birthDate, email, zip, emergencyContactFullName,\n emergencyContactPhone, parentFormReceived, parentFullName, parentPhone, paidAmount,\n compedBadge, checkedIn);\n switch (fields) {\n case ALL:\n for (AbstractField field : allFields) {\n field.setEnabled(true);\n// field.setValidationVisible(true);\n }\n badgeNumber.setEnabled(false);\n badge.setEnabled(true);\n break;\n case NONE:\n for (AbstractField field : allFields) {\n field.setEnabled(false);\n }\n badgeNumber.setEnabled(false);\n badge.setEnabled(false);\n }\n }",
"public final void setOrder(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Integer order)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Order.toString(), order);\r\n\t}",
"public void setOrderTime(Date orderTime) {\n this.orderTime = orderTime;\n }",
"public void setOrders(ArrayList<Order> orders) {\n this.orders = orders;\n }",
"@Override\n\tpublic void setPositionOrder(int positionOrder) {\n\t\t_dmGTShipPosition.setPositionOrder(positionOrder);\n\t}",
"public MOrder( Properties ctx,int C_Order_ID,String trxName ) {\n super( ctx,C_Order_ID,trxName );\n\n // New\n\n if( C_Order_ID == 0 ) {\n setDocStatus( DOCSTATUS_Drafted );\n setDocAction( DOCACTION_Prepare );\n\n //\n\n setDeliveryRule( DELIVERYRULE_Availability );\n setFreightCostRule( FREIGHTCOSTRULE_FreightIncluded );\n setInvoiceRule( INVOICERULE_Immediate );\n setPaymentRule( PAYMENTRULE_OnCredit );\n setPriorityRule( PRIORITYRULE_Medium );\n setDeliveryViaRule( DELIVERYVIARULE_Pickup );\n\n //\n\n setIsDiscountPrinted( false );\n setIsSelected( false );\n setIsTaxIncluded( false );\n setIsSOTrx( true );\n setIsDropShip( false );\n setSendEMail( false );\n\n //\n\n setIsApproved( false );\n setIsPrinted( false );\n setIsCreditApproved( false );\n setIsDelivered( false );\n setIsInvoiced( false );\n setIsTransferred( false );\n setIsSelfService( false );\n\n //\n\n super.setProcessed( false );\n setProcessing( false );\n setPosted( false );\n setDateOrdered(Env.getTimestamp());\n setDateAcct(getDateOrdered());\n setDatePromised(getDateOrdered());\n setFreightAmt( Env.ZERO );\n setChargeAmt( Env.ZERO );\n setTotalLines( Env.ZERO );\n setGrandTotal( Env.ZERO );\n }\n }",
"public void updateNonDynamicFields() {\n\n\t}",
"public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }",
"public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }",
"public Order() {\n orderID = \"\";\n customerID = \"\";\n status = \"\";\n }",
"private void updateFields(){\n\n updateTotalPay();\n updateTotalTip();\n updateTotalPayPerPerson();\n }",
"public getEmployeeCustomFieldsConf_args(getEmployeeCustomFieldsConf_args other) {\n __isset_bitfield = other.__isset_bitfield;\n this.companyId = other.companyId;\n }",
"private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = other.fieldSetFlags()[0];\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = other.fieldSetFlags()[1];\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = other.fieldSetFlags()[2];\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = other.fieldSetFlags()[3];\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = other.fieldSetFlags()[4];\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = other.fieldSetFlags()[5];\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = other.fieldSetFlags()[6];\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = other.fieldSetFlags()[7];\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = other.fieldSetFlags()[8];\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = other.fieldSetFlags()[9];\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = other.fieldSetFlags()[10];\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = other.fieldSetFlags()[11];\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = other.fieldSetFlags()[12];\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = other.fieldSetFlags()[13];\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = other.fieldSetFlags()[14];\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = other.fieldSetFlags()[15];\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = other.fieldSetFlags()[16];\n }\n }",
"public void setOrderDate(String orderDate) {\r\n\t\tthis.orderDate = orderDate;\r\n\t}",
"@JsonSetter(\"orderId\")\r\n public void setOrderId (int value) { \r\n this.orderId = value;\r\n }",
"public static void setFields(DBFField[] fields) throws UnsupportedEncodingException {\r\n int i = 0;\r\n\r\n fields[i] = new DBFField();\r\n fields[i].setName(\"TIPREG\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(1);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DOCFEC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DOCSER\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DOCNUM\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(6);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODTIP\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODMOD\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODTER\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(5);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CTACON\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(12);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"BASEBAS\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n// fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPTBAS\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n// fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORNOR\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(6);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"RECBAS\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORREC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(6);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORTES\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORFIN\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(6);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"RFDPP\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DESHOR\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DESKM\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"TOTFAC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(14);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO1\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO1\");\r\n //fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n // Es numerico pero para insertar valor \"XXX,YY\" \r\n //hay que meterlo como string y despues cambiarlo en dbfmanager -> Structura\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO2\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO2\");\r\n // Misma razon que IMPVTO1\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO3\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO3\");\r\n // Misma razon que IMPVTO1\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO4\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO4\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO5\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO5\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO6\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO6\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DIETENT\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODFORPAG\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(3);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"TIPFORPAG\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(1);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n \r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"BASEIMPCC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n// logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n fields[i].setDecimalCount(0);\r\n// logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n //logger.log(Level.INFO, \"Total columnas en fichero .dbf = {0}\", i);\r\n }",
"public void setOrderId(int value) {\n this.orderId = value;\n }",
"protected void setProjectFields(final ArrayList<Field> fields) {\n\t\tthis._projectFields = fields;\n\t\t\n\t\t\n\t\t// Assign all special fields to their corresponding variables\n\t\tfor (Field field : fields) {\n\t\t\tif (field.getName().equals(\"Function Requirements\")) {\n\t\t\t\t_functionReq = field;\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"Data Requirements\")) {\n\t\t\t\t_dataReq = field;\n\t\t\t\t\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"Performance Requirements\")) {\n\t\t\t\t_performanceReq = field;\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"Glossary\")) {\n\t\t\t\t_glossary = field;\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"FP Parameters\")) {\n\t\t\t\t_fpParameters = field;\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"FP Influences\")){\n\t\t\t\t_fpInfluences = field;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t// Calculation\n\t\t_calcMethodEnum = CalculationEnum.notSet;\n\t\t_calcMethodInstance = null;\n\t\t\n\t}",
"public void setOrderId(Integer orderId) {\n this.orderId = orderId;\n }",
"public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }",
"public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }",
"public void setUserOrder(User userOrder) {\n this.userOrder = userOrder;\n }",
"public void setIdOrder(Long idOrder) {\n this.idOrder = idOrder;\n }",
"public void setOrderNumber(int value) {\n this.orderNumber = value;\n }",
"public void initData() {\n nameDetailOrder.setText(\"-\");\n tourDetailOrder.setText(\"-\");\n packDetailOrder.setText(\"-\");\n statusDetailOrder.setText(\"-\");\n }",
"public void setFields(Map<String,String> fields)\n\t{\n\t\tList<Field> localFields = new ArrayList<Field>();\n\t\tIterator<Map.Entry<String,String>> it = fields.entrySet().iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tMap.Entry<String,String> pairs = it.next();\n\t\t\tlocalFields.add(new Field(pairs.getKey(), pairs.getValue()));\n\t\t}\n\n\t\tsetFields(localFields);\n\t}",
"public void resetOrder(){\n\t\tcurrentOrder = new Order();\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\ttitle.setText(\"Order No \" + number);\n\t\tcustNameField.setText(\"\");\n\t\tmiddlePanel.reset();\n\t\tsubtotal.text.setText(CURR+\"0.00\");\n\t\tdiscount.text.setText(CURR+\"0.00\");\n\t\ttoPay.text.setText(CURR +\"0.00\");\n\t\tthis.repaint();\n\t\tthis.validate();\n\t}",
"private void setFields() {\n\t\tfirstname.setText(guest.getFirstName());\n\t\tlastname.setText(guest.getLastName());\n\t\tpassport.setText(guest.getPassportNumber());\n\t\ttelephone.setText(guest.getTelephoneNumber());\n\t\tarrival.setText(arrivalDate.toString());\n\t\tdeparture.setText(departureDate.toString());\n\n\t\tif (hotelChoice.getName() != null && hotelChoice.getName() != \"\"\n\t\t\t\t&& !(hotelChoice.getName() == Controller.DEFAULT_HOTEL_CHOICE)) {\n\t\t\thotel.setText(hotelChoice.getName());\n\t\t} else {\n\t\t\thotelChoice = new Hotel();\n\t\t\thotelChoice.setName(\"\");\n\t\t\thotel.clear();\n\t\t}\n\t\tif (roomQualityChoice.getQuality() != null && roomQualityChoice.getQuality() != \"\"\n\t\t\t\t&& !(roomQualityChoice.getQuality() == Controller.DEFAULT_QUALITY_CHOICE)) {\n\t\t\tquality.setText(roomQualityChoice.getQuality());\n\t\t} else {\n\t\t\troomQualityChoice = new RoomQuality();\n\t\t\troomQualityChoice.setQuality(\"\");\n\t\t\tquality.clear();\n\t\t}\n\t\tif (discountChoice > 0) {\n\t\t\tdiscount.setText(\"(-\" + discountChoice + \"%)\");\n\t\t}\n\n\t\tloadAvailableRooms();\n\n\t}",
"public void setAllCustomFields(final Map<String,String> value)\n\t{\n\t\tsetAllCustomFields( getSession().getSessionContext(), value );\n\t}"
] | [
"0.7056744",
"0.6013734",
"0.5982429",
"0.5918478",
"0.5814646",
"0.56623256",
"0.5655003",
"0.55869716",
"0.5557291",
"0.55395436",
"0.54913396",
"0.54679996",
"0.5440503",
"0.543432",
"0.54215413",
"0.5420109",
"0.54141194",
"0.5407294",
"0.5380281",
"0.5359596",
"0.5352453",
"0.53350174",
"0.5327951",
"0.530978",
"0.52830917",
"0.52423745",
"0.51905996",
"0.51895714",
"0.5188325",
"0.51632637",
"0.5159269",
"0.51489204",
"0.51383024",
"0.5129994",
"0.5116277",
"0.50912994",
"0.5068968",
"0.5057766",
"0.5051713",
"0.50502056",
"0.50485766",
"0.50334156",
"0.50245905",
"0.50245905",
"0.50160635",
"0.49864477",
"0.49823233",
"0.49745205",
"0.495887",
"0.49489853",
"0.4948075",
"0.49446177",
"0.49421287",
"0.49421287",
"0.49319094",
"0.49306306",
"0.49267218",
"0.49187034",
"0.49155405",
"0.49034828",
"0.48975927",
"0.48942488",
"0.48878032",
"0.48846686",
"0.4872856",
"0.4864726",
"0.4853219",
"0.48494866",
"0.48447585",
"0.48432946",
"0.48392716",
"0.4819136",
"0.48188215",
"0.4792635",
"0.4791583",
"0.4783436",
"0.47734508",
"0.47720978",
"0.47683325",
"0.47683325",
"0.47609615",
"0.47578585",
"0.4755958",
"0.47555706",
"0.47461322",
"0.47445887",
"0.47338977",
"0.4725767",
"0.4714601",
"0.47091115",
"0.46988037",
"0.46988037",
"0.4695914",
"0.46928662",
"0.4691975",
"0.46844608",
"0.46737954",
"0.46727848",
"0.46693027",
"0.46685505"
] | 0.66470265 | 1 |
Defines the Type that extends the Order with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Order. | @Nullable
public com.commercetools.api.models.type.TypeResourceIdentifier getType() {
return this.type;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public OrderType(Type type) {\n\t\tsuper();\n\t\tthis.setType(type);\n\t}",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearORDERTYPE() {\n ORDER_TYPE = null;\n fieldSetFlags()[0] = false;\n return this;\n }",
"void setOrderType(OrderType inOrderType);",
"public void setOrderType(String orderType) {\r\n\t\tthis.orderType = orderType;\r\n\t}",
"public void setOrderType(Byte orderType) {\n this.orderType = orderType;\n }",
"OrderType getOrderType();",
"public String getOrderType() {\r\n\t\treturn orderType;\r\n\t}",
"public static OrderSetCustomTypeActionBuilder of() {\n return new OrderSetCustomTypeActionBuilder();\n }",
"io.opencannabis.schema.commerce.CommercialOrder.OrderType getType();",
"public OrderType getOrderType() {\r\n\t\treturn orderType;\r\n\t}",
"private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = true;\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = true;\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = true;\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = true;\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = true;\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = true;\n }\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearORDERTYPESID() {\n ORDER_TYPES_ID = null;\n fieldSetFlags()[10] = false;\n return this;\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder setORDERTYPE(java.lang.CharSequence value) {\n validate(fields()[0], value);\n this.ORDER_TYPE = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"public OrderSetCustomTypeActionBuilder fields(\n @Nullable final com.commercetools.api.models.type.FieldContainer fields) {\n this.fields = fields;\n return this;\n }",
"public LNDCDC_NCS_TCS_ORDER_TYPES() {}",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearORDERDESCRIPTION() {\n ORDER_DESCRIPTION = null;\n fieldSetFlags()[1] = false;\n return this;\n }",
"public io.opencannabis.schema.commerce.CommercialOrder.OrderType getType() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.CommercialOrder.OrderType result = io.opencannabis.schema.commerce.CommercialOrder.OrderType.valueOf(type_);\n return result == null ? io.opencannabis.schema.commerce.CommercialOrder.OrderType.UNRECOGNIZED : result;\n }",
"public io.opencannabis.schema.commerce.CommercialOrder.OrderType getType() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.CommercialOrder.OrderType result = io.opencannabis.schema.commerce.CommercialOrder.OrderType.valueOf(type_);\n return result == null ? io.opencannabis.schema.commerce.CommercialOrder.OrderType.UNRECOGNIZED : result;\n }",
"public Builder setType(io.opencannabis.schema.commerce.CommercialOrder.OrderType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n type_ = value.getNumber();\n onChanged();\n return this;\n }",
"private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = other.fieldSetFlags()[0];\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = other.fieldSetFlags()[1];\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = other.fieldSetFlags()[2];\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = other.fieldSetFlags()[3];\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = other.fieldSetFlags()[4];\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = other.fieldSetFlags()[5];\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = other.fieldSetFlags()[6];\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = other.fieldSetFlags()[7];\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = other.fieldSetFlags()[8];\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = other.fieldSetFlags()[9];\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = other.fieldSetFlags()[10];\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = other.fieldSetFlags()[11];\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = other.fieldSetFlags()[12];\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = other.fieldSetFlags()[13];\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = other.fieldSetFlags()[14];\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = other.fieldSetFlags()[15];\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = other.fieldSetFlags()[16];\n }\n }",
"public OrderSetCustomTypeActionBuilder type(\n @Nullable final com.commercetools.api.models.type.TypeResourceIdentifier type) {\n this.type = type;\n return this;\n }",
"public com.vodafone.global.er.decoupling.binding.request.PricePointType.CustomFieldsType createPricePointTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointTypeImpl.CustomFieldsTypeImpl();\n }",
"public com.vodafone.global.er.decoupling.binding.request.PricePointFullType.CustomFieldsType createPricePointFullTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointFullTypeImpl.CustomFieldsTypeImpl();\n }",
"public com.vodafone.global.er.decoupling.binding.request.CatalogPackageFullType.CustomFieldsType createCatalogPackageFullTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogPackageFullTypeImpl.CustomFieldsTypeImpl();\n }",
"public com.vodafone.global.er.decoupling.binding.request.CatalogServiceFullType.CustomFieldsType createCatalogServiceFullTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogServiceFullTypeImpl.CustomFieldsTypeImpl();\n }",
"public String getOrderType() {\n\t\treturn (String) get_Value(\"OrderType\");\n\t}",
"@Nonnull\n public static UBL23WriterBuilder <OrderType> order ()\n {\n return UBL23WriterBuilder.create (OrderType.class);\n }",
"FieldsType createFieldsType();",
"public ReocType() \r\n {\r\n super();\r\n }",
"public String\t\tgetOrderType();",
"public com.vodafone.global.er.decoupling.binding.request.CustomFieldType createCustomFieldType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CustomFieldTypeImpl();\n }",
"@Override\n\tpublic int add(Forge_Order_Detail t) {\n\t\treturn 0;\n\t}",
"@Override\n protected Type createNewTypeWithoutReflection(int field) {\n return null;\n }",
"public void setORDERTYPE(java.lang.CharSequence value) {\n this.ORDER_TYPE = value;\n }",
"public OrderSetCustomTypeActionBuilder withFields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainer> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of());\n return this;\n }",
"public static org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder newBuilder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder other) {\n if (other == null) {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder();\n } else {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder(other);\n }\n }",
"public OrderSetCustomTypeActionBuilder fields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainerBuilder> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of()).build();\n return this;\n }",
"public OrderSetCustomTypeAction build() {\n return new OrderSetCustomTypeActionImpl(type, fields);\n }",
"public Type() {\n super();\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearREVENUEDEFAULTIND() {\n REVENUE_DEFAULT_IND = null;\n fieldSetFlags()[7] = false;\n return this;\n }",
"public boolean hasORDERTYPE() {\n return fieldSetFlags()[0];\n }",
"public void markAsCustomSerialized(final ClassType firmType) {\n\t\tcustomSerializationMethods.put(firmType, new CustomSerializationMethods());\n\t}",
"public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }",
"public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }",
"public static org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder newBuilder() {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder();\n }",
"@Override\n protected List<String> getFieldOrder() {\n ArrayList<String> FieldOrder=new ArrayList<>();\n FieldOrder.add(\"infoType\");\n FieldOrder.add(\"info\");\n return FieldOrder;\n }",
"@Override\n\tprotected List<String> getFieldOrder() {\n\t\treturn Arrays.asList(\n\t\t\t\"nType\", \n\t\t\t\"szUnitID\", \n\t\t\t\"szCurID\", \n\t\t\t\"nValues\", \n\t\t\t\"nCount\", \n\t\t\t\"nStatus\" \n\t\t);\n\t}",
"public OrderType getCodeOrderType() {\nreturn this.codeOrderType;\n}",
"@Override\n public Type getType() {\n return null;\n }",
"FieldType createFieldType();",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearOTDFLTLENGTHCODE() {\n OT_DFLT_LENGTH_CODE = null;\n fieldSetFlags()[3] = false;\n return this;\n }",
"public static org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder newBuilder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES other) {\n if (other == null) {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder();\n } else {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder(other);\n }\n }",
"public Byte getOrderType() {\n return orderType;\n }",
"public java.lang.CharSequence getORDERTYPE() {\n return ORDER_TYPE;\n }",
"public TProductRentType() {\n this(DSL.name(\"t_product_rent_type\"), null);\n }",
"public java.lang.CharSequence getORDERTYPE() {\n return ORDER_TYPE;\n }",
"public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000008);\n type_ = fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType.FT_DEFAULT;\n onChanged();\n return this;\n }",
"@Override\n\tpublic Type getType() {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic String getType() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getType() {\n\t\treturn null;\r\n\t}",
"@ClassVersion(\"$Id: NewOrReplaceOrder.java 16752 2013-11-14 02:54:13Z colin $\")\r\npublic interface NewOrReplaceOrder\r\n extends OrderBase, Serializable\r\n{\r\n /**\r\n * Gets the OrderType for the Order.\r\n *\r\n * @return the order type.\r\n */\r\n OrderType getOrderType();\r\n\r\n /**\r\n * Sets the OrderType for the Order.\r\n *\r\n * @param inOrderType the order type.\r\n */\r\n void setOrderType(OrderType inOrderType);\r\n\r\n /**\r\n * Gets the time in force value for the Order. If a value\r\n * is not specified, it defaults to\r\n * {@link org.marketcetera.trade.TimeInForce#Day}.\r\n *\r\n * @return the time in force value.\r\n */\r\n TimeInForce getTimeInForce();\r\n\r\n /**\r\n * Sets the time in force value for the Order.\r\n *\r\n * @param inTimeInForce the time in force value.\r\n */\r\n void setTimeInForce(TimeInForce inTimeInForce);\r\n\r\n /**\r\n * Gets the limit price for this order. A limit price should be\r\n * specified when the OrderType is {@link OrderType#Limit}.\r\n * This value is ignored if the OrderType is not {@link OrderType#Limit}.\r\n *\r\n *\r\n * @return the limit price for the order.\r\n */\r\n BigDecimal getPrice();\r\n\r\n /**\r\n * Sets the limit price for this order. A limit price should be\r\n * specified when the OrderType is {@link OrderType#Limit}.\r\n *\r\n * @param inPrice the limit price for the order.\r\n */\r\n void setPrice(BigDecimal inPrice);\r\n\r\n /**\r\n * Gets the order capacity value for this order.\r\n *\r\n * @return the order capacity value.\r\n */\r\n OrderCapacity getOrderCapacity();\r\n\r\n /**\r\n * Sets the order capacity value for this order.\r\n *\r\n * @param inOrderCapacity the order capacity value\r\n */\r\n void setOrderCapacity(OrderCapacity inOrderCapacity);\r\n\r\n /**\r\n * Gets the position effect for this order.\r\n *\r\n * @return the position effect value.\r\n */\r\n PositionEffect getPositionEffect();\r\n\r\n /**\r\n * Sets the position effect value for this order.\r\n *\r\n * @param inPositionEffect the position effect value.\r\n */\r\n void setPositionEffect(PositionEffect inPositionEffect);\r\n \r\n /**\r\n * Gets the display quantity for the Order.\r\n *\r\n * @return the display quantity.\r\n */\r\n BigDecimal getDisplayQuantity();\r\n\r\n /**\r\n * Sets the display quantity for the Order.\r\n *\r\n * @param inDisplayQuantity the display quantity.\r\n */\r\n void setDisplayQuantity(BigDecimal inDisplayQuantity);\r\n /**\r\n * Gets the broker algo value, if any.\r\n *\r\n * @return a <code>BrokerAlgo</code> value\r\n */\r\n BrokerAlgo getBrokerAlgo();\r\n /**\r\n * Sets the broker algo value.\r\n *\r\n * @param inBrokerAlgo a <code>BrokerAlgo</code> value\r\n */\r\n void setBrokerAlgo(BrokerAlgo inBrokerAlgo);\r\n}",
"public void overrideFieldType(AnnotatedField<? super X> field, Type type) {\n\t\toverrideFieldType(field.getJavaMember(), type);\n\t}",
"@Override\n public String getType()\n {\n return \"OO\";\n }",
"public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000001);\n type_ = com.rpg.framework.database.Protocol.ItemType.ITEM_TYPE_USE;\n onChanged();\n return this;\n }",
"@Override\n public String getType() {\n return \"\";\n }",
"public OrderType(Integer id, String name) {\n\t\tsuper();\n\t\tthis.id = id;\n\t\tthis.name = name;\n\t}",
"String getOrderTypeId();",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearREVENUEREPORTIND() {\n REVENUE_REPORT_IND = null;\n fieldSetFlags()[6] = false;\n return this;\n }",
"public OrderSetCustomTypeAction buildUnchecked() {\n return new OrderSetCustomTypeActionImpl(type, fields);\n }",
"public com.vodafone.global.er.decoupling.binding.request.CustomFieldFullType createCustomFieldFullType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CustomFieldFullTypeImpl();\n }",
"public static OrderSetCustomTypeActionBuilder of(final OrderSetCustomTypeAction template) {\n OrderSetCustomTypeActionBuilder builder = new OrderSetCustomTypeActionBuilder();\n builder.type = template.getType();\n builder.fields = template.getFields();\n return builder;\n }",
"public maestro.payloads.FlyerFeaturedItem.Builder clearType() {\n type = null;\n fieldSetFlags()[0] = false;\n return this;\n }",
"public Builder clearType() {\n\n\t\t\t\t\ttype_ = 0;\n\t\t\t\t\tonChanged();\n\t\t\t\t\treturn this;\n\t\t\t\t}",
"@Override\n public String getType(){\n return Type;\n }",
"public PurchaseType(java.lang.String code)\r\n {\r\n super(code);\r\n }",
"public TExpressOrderRecord() {\n super(TExpressOrder.T_EXPRESS_ORDER);\n }",
"public Builder clearType() {\n\n\t\t\t\ttype_ = 0;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}",
"public Type() {\n\t\tsetSize();\n\t}",
"Builder addAdditionalType(String value);",
"public boolean isSetOrderType() {\n return this.orderType != null;\n }",
"public Builder clearType() {\n\n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }",
"public Builder clearType() {\n\n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }",
"public void\t\t\tsetOrderStatus(String orderType);",
"public Builder clearOrderSize() {\n bitField0_ = (bitField0_ & ~0x00400000);\n orderSize_ = 0D;\n onChanged();\n return this;\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearOTDFLTUPFNTSCATIND() {\n OT_DFLT_UPFNT_SCAT_IND = null;\n fieldSetFlags()[5] = false;\n return this;\n }",
"@Override\n public Class<OrderRecord> getRecordType() {\n return OrderRecord.class;\n }",
"protected GEDCOMType() {/* intentionally empty block */}",
"public PaymentType(String paymentType) {\n\t\tsuper();\n\t\tthis.paymentType = paymentType;\n\t}",
"public TypesAxis() {\r\n\t\tsuper(AxisTypes.class);\r\n\t}",
"@Override\npublic String getType() {\n\treturn null;\n}",
"com.google.privacy.dlp.v2.CustomInfoType.ExclusionType getExclusionType();",
"@Override\n\tpublic String queryWaybillTypeByOrderNo(String orderNo) {\n\t\treturn null;\n\t}",
"private FieldExtractor<OrderEntity> createOrderFieldExtractor() {\r\n BeanWrapperFieldExtractor<OrderEntity> extractor = new BeanWrapperFieldExtractor<>();\r\n extractor.setNames(new String[] {\"region\", \"country\", \"itemType\", \"salesChannel\",\r\n \"orderPriority\", \"orderDate\", \"orderId\", \"shipDate\", \"unitsSold\", \"unitPrice\", \"unitCost\",\r\n \"totalCost\", \"totalRevenue\", \"totalProfit\"});\r\n return extractor;\r\n }",
"@Override\n public Type getType() {\n return type;\n }",
"@Override\n public Type getType() {\n return type;\n }",
"FooterType createFooterType();",
"@Override\n public String getType() {\n return super.getType().toLowerCase();\n }",
"public Order() {\n this(DSL.name(\"order\"), null);\n }",
"Type() {\n }",
"public void addInludedTransportType(Integer includedTransportType);",
"public Builder clearType() {\n \n type_ = getDefaultInstance().getType();\n onChanged();\n return this;\n }"
] | [
"0.6575545",
"0.65231144",
"0.60596234",
"0.60541767",
"0.6016441",
"0.5985902",
"0.5891228",
"0.5837232",
"0.58353245",
"0.5794289",
"0.57860285",
"0.5759861",
"0.57548034",
"0.5754538",
"0.57514966",
"0.5732663",
"0.57091254",
"0.56837237",
"0.5593388",
"0.55575347",
"0.5537005",
"0.5522189",
"0.5503425",
"0.5477098",
"0.5426249",
"0.5423161",
"0.54185843",
"0.5383834",
"0.53674185",
"0.53510565",
"0.530641",
"0.5225022",
"0.5224204",
"0.5221786",
"0.52186674",
"0.5206498",
"0.51777405",
"0.51676166",
"0.51616603",
"0.5141007",
"0.5133367",
"0.5104939",
"0.50926316",
"0.50926316",
"0.5089463",
"0.5085763",
"0.5061228",
"0.5051383",
"0.5033289",
"0.5015558",
"0.5009948",
"0.5009158",
"0.49850234",
"0.49739945",
"0.49641475",
"0.4943868",
"0.4932937",
"0.4932868",
"0.49205554",
"0.49205554",
"0.49194223",
"0.49104255",
"0.48969844",
"0.48922536",
"0.48878214",
"0.48807898",
"0.48796755",
"0.48786753",
"0.48786664",
"0.48735836",
"0.48704273",
"0.485773",
"0.48424256",
"0.48415512",
"0.48413247",
"0.48373288",
"0.4834212",
"0.48316514",
"0.4815436",
"0.48109528",
"0.48109064",
"0.48109064",
"0.4806582",
"0.48041087",
"0.4803904",
"0.4803363",
"0.47997716",
"0.4792304",
"0.47809693",
"0.47804087",
"0.47798723",
"0.47791332",
"0.47773498",
"0.4774247",
"0.4774247",
"0.47741875",
"0.477204",
"0.47633386",
"0.47550687",
"0.47494683",
"0.4745497"
] | 0.0 | -1 |
Sets the Custom Fields fields for the Order. | @Nullable
public com.commercetools.api.models.type.FieldContainer getFields() {
return this.fields;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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 OrderSetCustomTypeActionBuilder fields(\n @Nullable final com.commercetools.api.models.type.FieldContainer fields) {\n this.fields = fields;\n return this;\n }",
"public OrderSetCustomTypeActionBuilder fields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainerBuilder> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of()).build();\n return this;\n }",
"public void setFieldOrder(java.lang.Integer fieldOrder) {\n this.fieldOrder = fieldOrder;\n }",
"@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }",
"public OrderSetCustomTypeActionBuilder withFields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainer> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of());\n return this;\n }",
"void setOrder(Order order);",
"public void setupFields()\n {\n FieldInfo field = null;\n field = new FieldInfo(this, \"ID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"LastChanged\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Date.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Deleted\", 10, null, new Boolean(false));\n field.setDataClass(Boolean.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Description\", 25, null, null);\n field = new FieldInfo(this, \"CurrencyCode\", 3, null, null);\n field = new FieldInfo(this, \"LastRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"RateChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"RateChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"CostingRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"CostingChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"CostingChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"RoundAt\", 1, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, \"IntegerDesc\", 20, null, \"Dollar\");\n field = new FieldInfo(this, \"FractionDesc\", 20, null, null);\n field = new FieldInfo(this, \"FractionAmount\", 10, null, new Integer(100));\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"Sign\", 3, null, \"$\");\n field = new FieldInfo(this, \"LanguageID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"NaturalInteger\", 20, null, null);\n field = new FieldInfo(this, \"NaturalFraction\", 20, null, null);\n }",
"private void fillFields() {\n\t\tInteger owner = this.contractor.getOwner();\n\n\t\tnameField.setText(getTrimmedValue(this.contractor.getName()));\n\t\tlocationField.setText(getTrimmedValue(this.contractor.getLocation()));\n\t\townerField.setText(owner == null ? \"\" : owner.toString());\n\t\tsizeField.setText(contractor.getSize().toString());\n\t\trateField.setText(Contractor.RATE_FORMAT.format(this.contractor\n\t\t\t\t.getRate()));\n\t\tspecialtiesList.setListData(this.contractor.getSpecialties());\n\t}",
"private void populateFields() {\n\t\ttypeNameTF.setText(\"\");\n\t\tunitsTF.setText(\"\");\n\t\tunitMeasureTF.setText(\"\");\n\t\tvalidityDaysTF.setText(\"\");\n\t\treorderPointTF.setText(\"\");\n\t\tnotesTF.setText(\"\");\n\t\tstatusCB.getItems().addAll(\"Active\", \"Inactive\");\n\t\tstatusCB.setValue(\"Active\");\n\t}",
"public void setAllCustomFields(final SessionContext ctx, final Map<String,String> value)\n\t{\n\t\tsetProperty(ctx, CUSTOMFIELDS,value);\n\t}",
"@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZCNEW\", \"Y\"); // Generate new card?\n\t\ttransaction.setFieldValue(\"GZCMOD\", \"A\"); // Mode - this must be 'A' when adding\n\t\ttransaction.setFieldValue(\"GZCNM1\", \"TEST AUTO\"); // Card name 1\n\t}",
"public void setOrderPropertyColumns() {\n\t\t// Clave\n\t\tColumn<BmObject, String> codeColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getCode().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(codeColumn, SafeHtmlUtils.fromSafeConstant(\"Clave\"));\n\t\torderPropertyTaxGrid.setColumnWidth(codeColumn, 150, Unit.PX);\n\n\n\t\t\t// Descripcion\n\t\t\tColumn<BmObject, String> blockColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t@Override\n\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getDescription().toString();\n\t\t\t\t}\n\t\t\t};\n\t\t\torderPropertyTaxGrid.addColumn(blockColumn, SafeHtmlUtils.fromSafeConstant(\"Descripción\"));\n\t\t\torderPropertyTaxGrid.setColumnWidth(blockColumn, 150, Unit.PX);\n\n\t\t// Calle y numero\n\t\tColumn<BmObject, String> streetColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getStreet().toString() + \" \"\n\t\t\t\t\t\t+ \" #\" + ((BmoOrderPropertyTax)bmObject).getBmoProperty().getNumber().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(streetColumn, SafeHtmlUtils.fromSafeConstant(\"Calle y Número\"));\n\t\torderPropertyTaxGrid.setColumnWidth(streetColumn, 200, Unit.PX);\n\t\t\n\t\t//Meses\n\t\tColumn<BmObject, String> monthsColumn;\n\t\tmonthsColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t// con un asicrono obtener los meses de f.inicio y f.fin del pedido\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getQuantity().toString();\n//\t\t\t\treturn String.valueOf(months);\n\t\t\t}\n\t\t};\n//\t\tmonthsColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n//\t\t\t@Override\n//\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n//\t\t\t\tchangeOrderEquipmentDays(bmObject, value);\n//\t\t\t}\n//\t\t});\n\t\t\n\t\t\n\t\tSafeHtmlHeader daysHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t@Override \n\t\t\tpublic String asString() { \n\t\t\t\treturn \"<p style=\\\"text-center;\\\">Meses</p>\"; \n\t\t\t} \n\t\t}); \n\t\torderPropertyTaxGrid.addColumn(monthsColumn, daysHeader);\n\t\torderPropertyTaxGrid.setColumnWidth(monthsColumn, 50, Unit.PX);\n\t\tmonthsColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);\n//\t}\n\t\t\n\t// Precio\n\t\t\tColumn<BmObject, String> priceColumn;\n\t\t\t\tif (bmoOrder.getStatus().equals(BmoOrder.STATUS_REVISION)) {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new EditTextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tpriceColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n\t\t\t\t\t\t\tchangeOrderPropertyPrice(bmObject, value);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tSafeHtmlHeader priceHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t\t\t@Override \n\t\t\t\t\tpublic String asString() { \n\t\t\t\t\t\treturn \"<p style=\\\"text-align:right;\\\">Precio</p>\"; \n\t\t\t\t\t} \n\t\t\t\t}); \n\t\t\t\torderPropertyTaxGrid.addColumn(priceColumn, priceHeader);\n\t\t\t\torderPropertyTaxGrid.setColumnWidth(priceColumn, 50, Unit.PX);\n\t\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\n//\t\t\t\t@Override\n//\t\t\t\tpublic String getValue(BmObject bmObject) {\n//\t\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat()\n//\t\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getPrice().toDouble());\n//\t\t\t\t\treturn (formatted);\n//\t\t\t\t}\n//\t\t\t};\n//\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n//\t\t\torderPropertyTaxGrid.addColumn(priceColumn, SafeHtmlUtils.fromSafeConstant(\"Precio\"));\n\n\n\t\t// Total\n\t\tColumn<BmObject, String> totalColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat();\n\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getAmount().toDouble());\n\t\t\t\treturn (formatted);\n\t\t\t}\n\t\t};\n\t\ttotalColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\t\torderPropertyTaxGrid.addColumn(totalColumn, SafeHtmlUtils.fromSafeConstant(\"Total\"));\n\t}",
"public void setOrder(Order order){\n this.order = order;\n }",
"public void setFields(final List<Field> fields) {\n this.fields.addAll(fields);\n }",
"@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZCCD\", \"B1\"); // Charge code (2A)\n\t\ttransaction.setFieldValue(\"GZAMT\", \"5000\"); // Charge amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZWMN\", \"KSM2020\"); // Warning message (7A)\n\t\ttransaction.setFieldValue(\"GZFLG\", \"N\"); // Stop chqbook issue? (1A)\n\t}",
"private void setValues() {\n textViewPrice = findViewById(R.id.textViewPrice);\n textViewStoreName = findViewById(R.id.textViewStoreName);\n textViewLocation = findViewById(R.id.textViewLocation);\n buttonAcceptOrder = findViewById(R.id.buttonAcceptOrder);\n\n order = Parcels.unwrap(getIntent().getParcelableExtra(Order.class.getSimpleName()));\n\n textViewPrice.setText(\"$\" + decimalFormat.format(order.getPrice()));\n textViewStoreName.setText(\"Store: \"+ order.getStore().getName());\n textViewLocation.setText(\"Address: \" + order.getStore().getAddress());\n }",
"@Override\n\tpublic void setFields(FieldList fl) {\n\t\tlogger.debug(\"setFields :\");\n\t\tsuper.setFields(fl);\n\t}",
"public void setFields(List<AccountingLineViewField> fields) {\n this.fields = fields;\n }",
"private FieldExtractor<OrderEntity> createOrderFieldExtractor() {\r\n BeanWrapperFieldExtractor<OrderEntity> extractor = new BeanWrapperFieldExtractor<>();\r\n extractor.setNames(new String[] {\"region\", \"country\", \"itemType\", \"salesChannel\",\r\n \"orderPriority\", \"orderDate\", \"orderId\", \"shipDate\", \"unitsSold\", \"unitPrice\", \"unitCost\",\r\n \"totalCost\", \"totalRevenue\", \"totalProfit\"});\r\n return extractor;\r\n }",
"void setOrderType(OrderType inOrderType);",
"public void setOrder(Order order) {\n this.order = order;\n notifyChanged();\n }",
"private void setDataInFields() \n {\n quantityTxtFld.setText(farmer.getCropQuantity()+\"\");\n quantityTxtFld.setEnabled(false);\n }",
"public void setNewFieldOrder(List<Field> newOrder)\n\t{\n\t\tif (newOrder.size()!=fieldList.size())\n\t\t\tthrow new IllegalArgumentException(\"Field lists have different sizes\");\n\t\tfor (Field f: newOrder)\n\t\t\tif (!fieldList.contains(f))\n\t\t\t\tthrow new IllegalArgumentException(\"New field list has unexpected field: \"+f);\n\t\tfieldList=newOrder;\n\t}",
"protected void createFields()\n {\n createEffectiveLocalDtField();\n createDiscontinueLocalDtField();\n createScanTypeField();\n createContractNumberField();\n createContractTypeField();\n createProductTypeField();\n createStatusIndicatorField();\n createCivilMilitaryIndicatorField();\n createEntryUserIdField();\n createLastUpdateUserIdField();\n createLastUpdateTsField();\n }",
"void setOrder(int order){\r\n\t\t\tthis.order = order;\r\n\t\t}",
"public void setC_OrderLine_ID (int C_OrderLine_ID);",
"public void initDefaultValues() {\n setOrderActive(1);\n setProductQuantity(1);\n setBillingPhone1Blocked(0);\n setBillingPhone2Blocked(0);\n setOrderAvailabilityStatus(1);\n setDeliveryStatus(1);\n setMailedReminderToVendorStatus(0);\n setOrderCancelRequestStatus(0);\n setOrderCancellationToVendorStatus(0);\n setDisputeRaisedStatus(0);\n setOrderAcceptNewsletter(1);\n setOrderAcceptPromotionalMaterial(1);\n setBillingAdvanceAmount(0);\n setBillingBalanceAmount(0);\n setBillingGrossAmount(0f);\n setBillingMarginAmount(0f);\n setBillingNettCost(0f);\n setBillingPaymentGatewayRate(0f);\n setBillingStateId(0);\n setBillingTaxrate(0f);\n setBillingTotalAmount(0f);\n setCarYear(0);\n setCustomint1(0);\n setCustomint2(0);\n setCustPaymentMode(0);\n setCustPaymentStatus(0);\n setInvoiceId(0);\n setVendorPaymentMode(0);\n setShipmentRate(0);\n setShipmentCountryId(0);\n setShipmentCityId(0);\n setOrderType(0);\n setOrderStatus(0);\n setOrderRefundType(0);\n setOrderPriority(0);\n setOrderBulkType(0);\n setOrderCorporateType(0);\n setShipmentCityId(0);\n setShipmentCountryId(0);\n setShipmentRate(0f);\n setShipmentStateId(0);\n setOrderCancellationType(0);\n }",
"public void applyTo(NewOrReplaceOrder inOrder)\n {\n if(algoTags == null) {\n return;\n }\n Map<String,String> customFields = inOrder.getCustomFields();\n if(customFields == null) {\n customFields = new HashMap<String,String>();\n }\n for(BrokerAlgoTag algoTag : algoTags) {\n customFields.put(String.valueOf(algoTag.getTagSpec().getTag()),\n algoTag.getValue());\n }\n inOrder.setCustomFields(customFields);\n }",
"void setCreationDateTimes(final Order order) {\n final LocalDateTime now = LocalDateTime.now();\n order.setCreatedAt(now);\n order.setUpdatedAt(now);\n order.getData().setOrderedAt(now);\n }",
"public void setOrder(List<Order> order) {\n this.order = order;\n }",
"@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZBRNM\", \"LOND\"); // Branch mnemonic (4A)\n\t\ttransaction.setFieldValue(\"GZPBR\", \"IPS2\"); // Posting group id or user id, and group level (5A)\n\t\ttransaction.setFieldValue(\"GZVFR\", \"1000106\"); // Value from date (7S,0)\n\t\ttransaction.setFieldValue(\"GZBRND\", \"LOND\"); // Branch mnemonic (4A)\n\t\ttransaction.setFieldValue(\"GZDRF\", \"0014620010\"); // Users own reference for deals, reconciliation etc (16A)\n\t\ttransaction.setFieldValue(\"GZAMA\", \"1500-\"); // Ordinary amount in minor currency units (15P,0)\n\t\ttransaction.setFieldValue(\"GZCCY\", \"PHP\"); // Currency mnemonic (3A)\n\t\ttransaction.setFieldValue(\"GZNPE\", \"1\"); // Number of posting entries (5P,0)\n\t\ttransaction.setFieldValue(\"GZNR1\", \"STOP\"); // Narrative line 1 (35A)\n\t\ttransaction.setFieldValue(\"GZRFR\", \"N\"); // Referred item? (1A)\n\t\ttransaction.setFieldValue(\"GZAUT\", \"Y\"); // Authorised item? (1A)\n\t\ttransaction.setFieldValue(\"GZSSI\", \"N\"); // Special item? (1A)\n\t\ttransaction.setFieldValue(\"GZTTP\", \"C\"); // Transaction type (1A)\n\t\ttransaction.setFieldValue(\"GZHSRL\", \"0014620010\"); // Serial \"number\" forming the key to a stop order (16A)\n\t\ttransaction.setFieldValue(\"GZHAMT\", \"1500-\"); // Stop order amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZAUTC\", \"MASSEYR1\"); // Referred item authorisation code (12A)\n\t\ttransaction.setFieldValue(\"GZCED\", \"2\"); // Currency edit field (1A)\n\t\ttransaction.setFieldValue(\"GZCHQ\", \"N\"); // Cheque item? (1A)\n\t\ttransaction.setFieldValue(\"GZDRFN\", \"0\"); // Cheque serial number (16P,0)\n\t\ttransaction.setFieldValue(\"GZTCCY\", \"PHP\"); // Transaction currency (3A)\n\t\ttransaction.setFieldValue(\"GZTAMA\", \"1500\"); // Transaction amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZHCCY\", \"PHP\"); // Stop order currency (3A)\n\t\ttransaction.setFieldValue(\"GZPSQ7\", \"0000182\"); // 7 Long posting sequence number (7P,0)\n\t}",
"public void load(Order order) {\n\t\tm_order = order;\n\t\tfieldGroup.setItemDataSource(new BeanItem<Order>(m_order));\n }",
"private void buildFields() {\r\n buildField(txtPizzaName, GUIResource.getLabel(DIALOG, NAME_PIZZA), 0);\r\n buildField(txtCustomerName, GUIResource.getLabel(DIALOG, NAME_CUSTOMER), 1);\r\n buildField(txtPhone, GUIResource.getLabel(DIALOG, PHONE), 2);\r\n buildField(txtEmail, GUIResource.getLabel(DIALOG, EMAIL), 3);\r\n }",
"public void setOrderList() {\n\n\t\tint index = 0;\n\t\tlistModel.clear();\n\t\tfor (Order order : driver.getOrderDB().getCustomerOrderList()) {\n\t\t\tlistModel\n\t\t\t\t\t.addElement(textAlignment(\" \" + order.getId(), \"\" + order.getDate(), \"\"\n\t\t\t\t\t\t\t+ order.getPerson().getId(), \"\"\n\t\t\t\t\t\t\t+ order.getCurrentlyLoggedInStaff().getId()));\n\t\t\t// stockList.setSelectedIndex(orderListIndex);\n\t\t\tindex++;\n\t\t}\n\t}",
"public void initData(Order order) {\n tourDetailOrder.setText(order.getTour().getName());\n nameDetailOrder.setText(order.getClient().getName());\n packDetailOrder.setText(order.getPhotoPack().getDescription());\n statusDetailOrder.setText(order.getOrderStatus().getInfo());\n }",
"public void loadOrderByFields(IOrderedQuery orderedQuery)\r\n\t{\r\n\t\tif(this.orderByFields.isEmpty())\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// loop through order by fields\r\n\t\tfor(ResultField field : orderByFields)\r\n\t\t{\r\n\t\t\torderedQuery.addOrderByField(new QueryResultField(field.table.tableCode, field.fieldDetails.getDbColumnName(), field.code, field.orderType));\r\n\t\t}\r\n\t}",
"public void setOrder(int order) {\n mOrder = order;\n }",
"@Override\n\tprotected void initializeFields() {\n\n\t}",
"public void updatePropertyFields()\n {\n amountLabel .setText(retrieveText(\"AmountLabel\", amountLabel));\n reasonCodeLabel .setText(retrieveText(\"ReasonCodeLabel\", reasonCodeLabel));\n paidToLabel .setText(retrieveText(\"PaidToLabel\", paidToLabel));\n employeeIDLabel .setText(retrieveText(\"EmployeeIDLabel\", employeeIDLabel));\n addressLine1Label.setText(retrieveText(\"AddressLine1Label\", addressLine1Label));\n addressLine2Label.setText(retrieveText(\"AddressLine2Label\", addressLine2Label));\n addressLine3Label.setText(retrieveText(\"AddressLine3Label\", addressLine3Label));\n approvalCodeLabel.setText(retrieveText(\"ApprovalCodeLabel\", approvalCodeLabel));\n commentLabel .setText(retrieveText(\"CommentLabel\", commentLabel));\n\n amountField .setLabel(amountLabel);\n reasonCodeField .setLabel(reasonCodeLabel);\n paidToField .setLabel(paidToLabel);\n employeeIDField .setLabel(employeeIDLabel);\n addressLine1Field.setLabel(addressLine1Label);\n addressLine2Field.setLabel(addressLine2Label);\n addressLine3Field.setLabel(addressLine3Label);\n approvalCodeField.setLabel(approvalCodeLabel);\n commentField .setLabel(commentLabel);\n }",
"private void fillMandatoryFields_custom() {\n\n }",
"@JsonProperty(\"OrderLine\")\r\n\tpublic void setOrderLine(OrderLine orderLine) {\r\n\t\tthis.orderLine = orderLine;\r\n\t}",
"public void setOrderMoney(BigDecimal orderMoney) {\n this.orderMoney = orderMoney;\n }",
"public void setOrder(int order) {\n this.order = order;\n }",
"public void setOrder(int order) {\n this.order = order;\n }",
"private void setPhoneFields(Cursor cur) {\n\n\t\tint selectedColumn;\n\t\tint selectedColumnType;\n\t\tint preferredColumn;\n\t\tint phoneType;\n\t\tString customLabel = null;\n\n\t\t//\n\t\t// Get PhonesColums fields\n\t\t//\n\t\tselectedColumn = cur.getColumnIndex(Phone.NUMBER);\n\t\tselectedColumnType = cur.getColumnIndex(Phone.TYPE);\n\t\tpreferredColumn = cur.getColumnIndex(Phone.IS_PRIMARY);\n\t\tphoneType = cur.getInt(selectedColumnType);\n\t\tString phone = cur.getString(selectedColumn);\n\t\tboolean preferred = cur.getInt(preferredColumn) != 0;\n\t\tif (phoneType == Phone.TYPE_CUSTOM) {\n\t\t\tcustomLabel = cur.getString(cur.getColumnIndex(Phone.LABEL));\n\t\t}\n\n\t\tphones.add(new RowData(phoneType, phone, preferred, customLabel));\n\t}",
"public void setOrder(String id,String email);",
"public void setOrder(int value) {\n this.order = value;\n }",
"private void populateFields() {\n pedidos = pdao.listaTodos();\n cCliente = new HashSet();\n cEstado = new HashSet();\n cCidade = new HashSet();\n cFornecedor = new HashSet();\n\n for (int i = 0; i < pedidos.size(); i++) {\n cCliente.add(pedidos.get(i).getCliente().getNome());\n cEstado.add(pedidos.get(i).getCliente().getEstado());\n cCidade.add(pedidos.get(i).getCliente().getCidade());\n for (int j = 0; j < pedidos.get(i).getItens().size(); j++) {\n cFornecedor.add(pedidos.get(i).getItens().get(j).getProduto().getFornecedor().getNome());\n }\n }\n\n clientes = new ArrayList<>(cCliente);\n fornecedores = new ArrayList<>(cFornecedor);\n\n Iterator i = cCliente.iterator();\n while (i.hasNext()) {\n jCBCliente.addItem(i.next());\n }\n\n i = null;\n i = cEstado.iterator();\n while (i.hasNext()) {\n jCBEstado.addItem(i.next());\n }\n\n i = null;\n i = cCidade.iterator();\n while (i.hasNext()) {\n jCBCidade.addItem(i.next());\n }\n i = null;\n i = cFornecedor.iterator();\n while (i.hasNext()) {\n jCBFornecedor.addItem(i.next());\n }\n\n }",
"@Test\n public void updateShoppingCartConnectionCustomFieldsTest() throws ApiException {\n ShoppingCartConnection body = null;\n api.updateShoppingCartConnectionCustomFields(body);\n\n // TODO: test validations\n }",
"public void setOrder(Integer order) {\n this.order = order;\n }",
"public void setOrderDate(Date orderDate) {\n this.orderDate = orderDate;\n }",
"public SortObj(String field, int order) {\n super();\n this.field = field;\n this.order = order;\n }",
"public void setOrder(Integer order) {\n this.order = order;\n }",
"public void setOrder(Integer order) {\n this.order = order;\n }",
"protected void setComboBoxes() { Something was changed in the row.\n //\n final Map<String, Integer> fields = new HashMap<>();\n\n // Add the currentMeta fields...\n fields.putAll(inputFields);\n\n Set<String> keySet = fields.keySet();\n List<String> entries = new ArrayList<>(keySet);\n\n String[] fieldNames = entries.toArray(new String[entries.size()]);\n Const.sortStrings(fieldNames);\n // Key fields\n ciKey[2].setComboValues(fieldNames);\n ciKey[3].setComboValues(fieldNames);\n }",
"private void setNewFields(String[] fields) {\n for (String fieldName : fields) {\n setNewField(fieldName);\n }\n }",
"public CreateOrderRequest() {\n\t\t_pcs = new PropertyChangeSupport(this);\n\t}",
"public void setOrder(String Order) {\n this.Order = Order;\n }",
"private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = true;\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = true;\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = true;\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = true;\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = true;\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = true;\n }\n }",
"public void setFields(Map<String, String> fields) {\n this.fields = fields;\n }",
"void setFields(Set<F> fields);",
"@Override\n protected List<String> getFieldOrder() {\n ArrayList<String> FieldOrder= new ArrayList<String>();\n FieldOrder.add(\"dsapiVersionNo\");\n FieldOrder.add(\"sessionId\");\n FieldOrder.add(\"valueMark\");\n FieldOrder.add(\"fieldMark\");\n return FieldOrder;\n }",
"public final void setOrder_Customer(com.mendix.systemwideinterfaces.core.IContext context, simpleordermodule.proxies.Customer order_customer)\r\n\t{\r\n\t\tif (order_customer == null)\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.Order_Customer.toString(), null);\r\n\t\telse\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.Order_Customer.toString(), order_customer.getMendixObject().getId());\r\n\t}",
"public void setOrder(int order) {\n\t\tthis.order = order;\n\t}",
"public void setFields(FieldSet editedData) throws Exception {\n\t\tfor (String controlName : editedData.keySet()) {\n\t\t\tif (editedData.get(controlName) != null) {\n\t\t\t\tVoodooUtils.voodoo.log.fine(\"Editing field: \" + controlName);\n\t\t\t\tString toSet = editedData.get(controlName);\n\t\t\t\tVoodooUtils.pause(100);\n\t\t\t\tVoodooUtils.voodoo.log.fine(\"Setting \" + controlName + \" field to: \"\n\t\t\t\t\t\t+ toSet);\n\t\t\t\tgetEditField(controlName).set(toSet);\n\t\t\t\tVoodooUtils.pause(100);\n\t\t\t}\n\t\t}\n\t}",
"public void setOrder(final Integer order) {\n this.order = order;\n }",
"private void updateFieldValues(){\r\n \tgenChainLengthField.setText(String.valueOf(settings.genChainLength));\r\n \tgenChainLengthFluxField.setText(String.valueOf(settings.genChainLengthFlux));\r\n \tstepGenDistanceField.setText(String.valueOf(settings.stepGenDistance));\r\n \trowsField.setText(String.valueOf(settings.rows));\r\n \tcolsField.setText(String.valueOf(settings.cols));\r\n \tcellWidthField.setText(String.valueOf(settings.cellWidth));\r\n \tstartRowField.setText(String.valueOf(settings.startRow));\r\n \tstartColField.setText(String.valueOf(settings.startCol));\r\n \tendRowField.setText(String.valueOf(settings.endRow));\r\n \tendColField.setText(String.valueOf(settings.endCol));\r\n \tprogRevealRadiusField.setText(String.valueOf(settings.progRevealRadius));\r\n \tprogDrawCB.setSelected(settings.progDraw);\r\n \tprogDrawSpeedField.setText(String.valueOf(settings.progDrawSpeed));\r\n }",
"@Override\n\tprotected List<String> getFieldOrder() {\n\t\treturn Arrays.asList(\n\t\t\t\"nType\", \n\t\t\t\"szUnitID\", \n\t\t\t\"szCurID\", \n\t\t\t\"nValues\", \n\t\t\t\"nCount\", \n\t\t\t\"nStatus\" \n\t\t);\n\t}",
"public void setOrderType(Byte orderType) {\n this.orderType = orderType;\n }",
"public void setOrder(Integer order) {\n\t\tthis.order = order;\n\t}",
"public void setDateOrder(DateOrder dateOrder)\r\n {\r\n m_dateOrder = dateOrder;\r\n }",
"public void setEditableFields(EditableFields fields) {\n\n List<AbstractField> allFields = Arrays.asList(firstName, lastName, legalFirstName, legalLastName,\n nameIsLegalName, fanName, badgeNumber, phoneNumber, birthDate, email, zip, emergencyContactFullName,\n emergencyContactPhone, parentFormReceived, parentFullName, parentPhone, paidAmount,\n compedBadge, checkedIn);\n switch (fields) {\n case ALL:\n for (AbstractField field : allFields) {\n field.setEnabled(true);\n// field.setValidationVisible(true);\n }\n badgeNumber.setEnabled(false);\n badge.setEnabled(true);\n break;\n case NONE:\n for (AbstractField field : allFields) {\n field.setEnabled(false);\n }\n badgeNumber.setEnabled(false);\n badge.setEnabled(false);\n }\n }",
"public final void setOrder(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Integer order)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Order.toString(), order);\r\n\t}",
"public void setOrderTime(Date orderTime) {\n this.orderTime = orderTime;\n }",
"public void setOrders(ArrayList<Order> orders) {\n this.orders = orders;\n }",
"@Override\n\tpublic void setPositionOrder(int positionOrder) {\n\t\t_dmGTShipPosition.setPositionOrder(positionOrder);\n\t}",
"public MOrder( Properties ctx,int C_Order_ID,String trxName ) {\n super( ctx,C_Order_ID,trxName );\n\n // New\n\n if( C_Order_ID == 0 ) {\n setDocStatus( DOCSTATUS_Drafted );\n setDocAction( DOCACTION_Prepare );\n\n //\n\n setDeliveryRule( DELIVERYRULE_Availability );\n setFreightCostRule( FREIGHTCOSTRULE_FreightIncluded );\n setInvoiceRule( INVOICERULE_Immediate );\n setPaymentRule( PAYMENTRULE_OnCredit );\n setPriorityRule( PRIORITYRULE_Medium );\n setDeliveryViaRule( DELIVERYVIARULE_Pickup );\n\n //\n\n setIsDiscountPrinted( false );\n setIsSelected( false );\n setIsTaxIncluded( false );\n setIsSOTrx( true );\n setIsDropShip( false );\n setSendEMail( false );\n\n //\n\n setIsApproved( false );\n setIsPrinted( false );\n setIsCreditApproved( false );\n setIsDelivered( false );\n setIsInvoiced( false );\n setIsTransferred( false );\n setIsSelfService( false );\n\n //\n\n super.setProcessed( false );\n setProcessing( false );\n setPosted( false );\n setDateOrdered(Env.getTimestamp());\n setDateAcct(getDateOrdered());\n setDatePromised(getDateOrdered());\n setFreightAmt( Env.ZERO );\n setChargeAmt( Env.ZERO );\n setTotalLines( Env.ZERO );\n setGrandTotal( Env.ZERO );\n }\n }",
"public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }",
"public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }",
"public void updateNonDynamicFields() {\n\n\t}",
"public Order() {\n orderID = \"\";\n customerID = \"\";\n status = \"\";\n }",
"public getEmployeeCustomFieldsConf_args(getEmployeeCustomFieldsConf_args other) {\n __isset_bitfield = other.__isset_bitfield;\n this.companyId = other.companyId;\n }",
"private void updateFields(){\n\n updateTotalPay();\n updateTotalTip();\n updateTotalPayPerPerson();\n }",
"private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = other.fieldSetFlags()[0];\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = other.fieldSetFlags()[1];\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = other.fieldSetFlags()[2];\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = other.fieldSetFlags()[3];\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = other.fieldSetFlags()[4];\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = other.fieldSetFlags()[5];\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = other.fieldSetFlags()[6];\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = other.fieldSetFlags()[7];\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = other.fieldSetFlags()[8];\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = other.fieldSetFlags()[9];\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = other.fieldSetFlags()[10];\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = other.fieldSetFlags()[11];\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = other.fieldSetFlags()[12];\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = other.fieldSetFlags()[13];\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = other.fieldSetFlags()[14];\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = other.fieldSetFlags()[15];\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = other.fieldSetFlags()[16];\n }\n }",
"public void setOrderDate(String orderDate) {\r\n\t\tthis.orderDate = orderDate;\r\n\t}",
"@JsonSetter(\"orderId\")\r\n public void setOrderId (int value) { \r\n this.orderId = value;\r\n }",
"public static void setFields(DBFField[] fields) throws UnsupportedEncodingException {\r\n int i = 0;\r\n\r\n fields[i] = new DBFField();\r\n fields[i].setName(\"TIPREG\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(1);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DOCFEC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DOCSER\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DOCNUM\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(6);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODTIP\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODMOD\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODTER\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(5);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CTACON\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(12);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"BASEBAS\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n// fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPTBAS\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n// fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORNOR\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(6);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"RECBAS\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORREC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(6);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORTES\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORFIN\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(6);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"RFDPP\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DESHOR\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DESKM\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"TOTFAC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(14);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO1\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO1\");\r\n //fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n // Es numerico pero para insertar valor \"XXX,YY\" \r\n //hay que meterlo como string y despues cambiarlo en dbfmanager -> Structura\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO2\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO2\");\r\n // Misma razon que IMPVTO1\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO3\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO3\");\r\n // Misma razon que IMPVTO1\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO4\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO4\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO5\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO5\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO6\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO6\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DIETENT\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODFORPAG\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(3);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"TIPFORPAG\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(1);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n \r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"BASEIMPCC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n// logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n fields[i].setDecimalCount(0);\r\n// logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n //logger.log(Level.INFO, \"Total columnas en fichero .dbf = {0}\", i);\r\n }",
"public void setOrderId(int value) {\n this.orderId = value;\n }",
"protected void setProjectFields(final ArrayList<Field> fields) {\n\t\tthis._projectFields = fields;\n\t\t\n\t\t\n\t\t// Assign all special fields to their corresponding variables\n\t\tfor (Field field : fields) {\n\t\t\tif (field.getName().equals(\"Function Requirements\")) {\n\t\t\t\t_functionReq = field;\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"Data Requirements\")) {\n\t\t\t\t_dataReq = field;\n\t\t\t\t\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"Performance Requirements\")) {\n\t\t\t\t_performanceReq = field;\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"Glossary\")) {\n\t\t\t\t_glossary = field;\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"FP Parameters\")) {\n\t\t\t\t_fpParameters = field;\n\t\t\t}\n\t\t\telse if (field.getName().equals(\"FP Influences\")){\n\t\t\t\t_fpInfluences = field;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t// Calculation\n\t\t_calcMethodEnum = CalculationEnum.notSet;\n\t\t_calcMethodInstance = null;\n\t\t\n\t}",
"public void setOrderId(Integer orderId) {\n this.orderId = orderId;\n }",
"public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }",
"public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }",
"public void setUserOrder(User userOrder) {\n this.userOrder = userOrder;\n }",
"public void setIdOrder(Long idOrder) {\n this.idOrder = idOrder;\n }",
"public void setOrderNumber(int value) {\n this.orderNumber = value;\n }",
"public void initData() {\n nameDetailOrder.setText(\"-\");\n tourDetailOrder.setText(\"-\");\n packDetailOrder.setText(\"-\");\n statusDetailOrder.setText(\"-\");\n }",
"public void setFields(Map<String,String> fields)\n\t{\n\t\tList<Field> localFields = new ArrayList<Field>();\n\t\tIterator<Map.Entry<String,String>> it = fields.entrySet().iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tMap.Entry<String,String> pairs = it.next();\n\t\t\tlocalFields.add(new Field(pairs.getKey(), pairs.getValue()));\n\t\t}\n\n\t\tsetFields(localFields);\n\t}",
"public void resetOrder(){\n\t\tcurrentOrder = new Order();\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\ttitle.setText(\"Order No \" + number);\n\t\tcustNameField.setText(\"\");\n\t\tmiddlePanel.reset();\n\t\tsubtotal.text.setText(CURR+\"0.00\");\n\t\tdiscount.text.setText(CURR+\"0.00\");\n\t\ttoPay.text.setText(CURR +\"0.00\");\n\t\tthis.repaint();\n\t\tthis.validate();\n\t}",
"public void setAllCustomFields(final Map<String,String> value)\n\t{\n\t\tsetAllCustomFields( getSession().getSessionContext(), value );\n\t}",
"private void setFields() {\n\t\tfirstname.setText(guest.getFirstName());\n\t\tlastname.setText(guest.getLastName());\n\t\tpassport.setText(guest.getPassportNumber());\n\t\ttelephone.setText(guest.getTelephoneNumber());\n\t\tarrival.setText(arrivalDate.toString());\n\t\tdeparture.setText(departureDate.toString());\n\n\t\tif (hotelChoice.getName() != null && hotelChoice.getName() != \"\"\n\t\t\t\t&& !(hotelChoice.getName() == Controller.DEFAULT_HOTEL_CHOICE)) {\n\t\t\thotel.setText(hotelChoice.getName());\n\t\t} else {\n\t\t\thotelChoice = new Hotel();\n\t\t\thotelChoice.setName(\"\");\n\t\t\thotel.clear();\n\t\t}\n\t\tif (roomQualityChoice.getQuality() != null && roomQualityChoice.getQuality() != \"\"\n\t\t\t\t&& !(roomQualityChoice.getQuality() == Controller.DEFAULT_QUALITY_CHOICE)) {\n\t\t\tquality.setText(roomQualityChoice.getQuality());\n\t\t} else {\n\t\t\troomQualityChoice = new RoomQuality();\n\t\t\troomQualityChoice.setQuality(\"\");\n\t\t\tquality.clear();\n\t\t}\n\t\tif (discountChoice > 0) {\n\t\t\tdiscount.setText(\"(-\" + discountChoice + \"%)\");\n\t\t}\n\n\t\tloadAvailableRooms();\n\n\t}"
] | [
"0.7055104",
"0.6646911",
"0.60133606",
"0.59782046",
"0.5917991",
"0.58140314",
"0.5659098",
"0.5654295",
"0.55874777",
"0.5557672",
"0.55417025",
"0.54912996",
"0.5469274",
"0.54373413",
"0.54334635",
"0.5421658",
"0.5419589",
"0.5413679",
"0.54070365",
"0.53773385",
"0.53564966",
"0.534957",
"0.53362924",
"0.5324578",
"0.5308703",
"0.528054",
"0.52413857",
"0.5190559",
"0.5188694",
"0.51870203",
"0.5160408",
"0.51586705",
"0.5147551",
"0.51380754",
"0.5128498",
"0.5116305",
"0.5089261",
"0.50661457",
"0.5057553",
"0.5051798",
"0.5049745",
"0.50475395",
"0.5032659",
"0.5021891",
"0.5021891",
"0.501715",
"0.498423",
"0.4979129",
"0.49748015",
"0.49605337",
"0.49462983",
"0.4945923",
"0.49420553",
"0.49395305",
"0.49395305",
"0.49343428",
"0.493046",
"0.49264225",
"0.4915649",
"0.4914483",
"0.49034333",
"0.48958614",
"0.48919564",
"0.48863715",
"0.4882025",
"0.48719105",
"0.48623374",
"0.4853847",
"0.48472735",
"0.48426515",
"0.48407984",
"0.483655",
"0.4819685",
"0.48163593",
"0.47907853",
"0.47894114",
"0.47811988",
"0.47713366",
"0.4770571",
"0.4770571",
"0.47704995",
"0.47600412",
"0.47592974",
"0.4756701",
"0.47547275",
"0.47439975",
"0.47431466",
"0.4734098",
"0.47226676",
"0.47151622",
"0.4706358",
"0.46968886",
"0.46968886",
"0.46932963",
"0.46904263",
"0.46896735",
"0.46856436",
"0.46735322",
"0.46711585",
"0.46705404",
"0.46700537"
] | 0.0 | -1 |
builds OrderSetCustomTypeAction with checking for nonnull required values | public OrderSetCustomTypeAction build() {
return new OrderSetCustomTypeActionImpl(type, fields);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static OrderSetCustomTypeActionBuilder of() {\n return new OrderSetCustomTypeActionBuilder();\n }",
"public OrderSetCustomTypeAction buildUnchecked() {\n return new OrderSetCustomTypeActionImpl(type, fields);\n }",
"public static OrderSetCustomTypeActionBuilder of(final OrderSetCustomTypeAction template) {\n OrderSetCustomTypeActionBuilder builder = new OrderSetCustomTypeActionBuilder();\n builder.type = template.getType();\n builder.fields = template.getFields();\n return builder;\n }",
"private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = true;\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = true;\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = true;\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = true;\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = true;\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = true;\n }\n }",
"private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = other.fieldSetFlags()[0];\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = other.fieldSetFlags()[1];\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = other.fieldSetFlags()[2];\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = other.fieldSetFlags()[3];\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = other.fieldSetFlags()[4];\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = other.fieldSetFlags()[5];\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = other.fieldSetFlags()[6];\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = other.fieldSetFlags()[7];\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = other.fieldSetFlags()[8];\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = other.fieldSetFlags()[9];\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = other.fieldSetFlags()[10];\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = other.fieldSetFlags()[11];\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = other.fieldSetFlags()[12];\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = other.fieldSetFlags()[13];\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = other.fieldSetFlags()[14];\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = other.fieldSetFlags()[15];\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = other.fieldSetFlags()[16];\n }\n }",
"public OrderSetCustomTypeActionBuilder fields(\n @Nullable final com.commercetools.api.models.type.FieldContainer fields) {\n this.fields = fields;\n return this;\n }",
"public OrderSetCustomTypeActionBuilder type(\n @Nullable final com.commercetools.api.models.type.TypeResourceIdentifier type) {\n this.type = type;\n return this;\n }",
"public OrderSetCustomTypeActionBuilder withFields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainer> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of());\n return this;\n }",
"public OrderSetCustomTypeActionBuilder fields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainerBuilder> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of()).build();\n return this;\n }",
"public LNDCDC_NCS_TCS_ORDER_TYPES() {}",
"private void buildOtherParams() {\n\t\tmClient.putRequestParam(\"attrType\", \"1\");\r\n\t}",
"private void fillMandatoryFields_custom() {\n\n }",
"CustomAction(String actionType, String color, double startX, double startY){\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"color\", color);\n attributes.put(\"startX\", startX);\n attributes.put(\"startY\", startY);\n action.put(\"Action\", attributes);\n }",
"private OrderRequest buildRequestBody(OriginalOrder originalOrder) {\n String currency = \"MXN\";\n\n OrderRequest orderRequest = new OrderRequest();\n orderRequest.intent(originalOrder.getIntent());\n\n ApplicationContext applicationContext = new ApplicationContext()\n .brandName(originalOrder.getBrandName())\n .landingPage(originalOrder.getLandingPage())\n .shippingPreference(originalOrder.getShippingPreference());\n orderRequest.applicationContext(applicationContext);\n System.out.println(\"item Category: \"+ originalOrder.getItems().get(0).getCategory());\n List<PurchaseUnitRequest> purchaseUnitRequests = new ArrayList<PurchaseUnitRequest>();\n PurchaseUnitRequest purchaseUnitRequest = new PurchaseUnitRequest()\n .referenceId(originalOrder.getReferenceId())\n .description(originalOrder.getDescription())\n .customId(originalOrder.getCustomId())\n .softDescriptor(originalOrder.getSoftDescriptor())\n .amount(new AmountWithBreakdown().currencyCode(currency).value(originalOrder.getTotal())\n .breakdown(\n new AmountBreakdown().itemTotal(new Money().currencyCode(currency).value(originalOrder.getTotal()))\n .shipping(new Money().currencyCode(currency).value(originalOrder.getShipping()))\n .handling(new Money().currencyCode(currency).value(originalOrder.getHandling()))\n .taxTotal(new Money().currencyCode(currency).value(originalOrder.getTaxTotal()))\n .shippingDiscount(new Money().currencyCode(currency).value(originalOrder.getShippingDiscount()))))\n .items(new ArrayList<Item>() {\n {\n add(new Item()\n .name(originalOrder.getItems().get(0).getName())\n .description(originalOrder.getItems().get(0).getDescription())\n .sku(originalOrder.getItems().get(0).getSku())\n .unitAmount(new Money().currencyCode(currency).value(originalOrder.getItems().get(0).getUnitAmount()))\n .tax(new Money().currencyCode(currency).value(originalOrder.getItems().get(0).getTax()))\n .quantity(originalOrder.getItems().get(0).getQuantity())\n .category(originalOrder.getItems().get(0).getCategory()));\n }\n })\n .shipping(new ShippingDetails().name(new Name().fullName(originalOrder.getAddress().getName()))\n .addressPortable(new AddressPortable()\n .addressLine1(originalOrder.getAddress().getAddressLine1())\n .addressLine2(originalOrder.getAddress().getAddressLine2())\n .adminArea2(originalOrder.getAddress().getAdminArea2())\n .adminArea1(originalOrder.getAddress().getAdminArea1())\n .postalCode(originalOrder.getAddress().getPostalCode())\n .countryCode(originalOrder.getAddress().getCountryCode())));\n System.out.println(\"purchaseUnitRequest: \\n\" +\n \"\\ndescription \"+ purchaseUnitRequest.description() +\n \"\\nreferenceId \"+ purchaseUnitRequest.referenceId() +\n \"\\nsoftDescriptor \"+ purchaseUnitRequest.softDescriptor() +\n \"\\namount currencyCode \"+ purchaseUnitRequest.amount().currencyCode() +\n \"\\namount value\"+ purchaseUnitRequest.amount().value() +\n \"\\namount taxTotal \"+ purchaseUnitRequest.amount().breakdown().taxTotal().value() +\n \"\\namount handling \"+ purchaseUnitRequest.amount().breakdown().handling().value() +\n \"\\namount shipping \"+ purchaseUnitRequest.amount().breakdown().shipping().value() +\n \"\\namount shippingDiscount \"+ purchaseUnitRequest.amount().breakdown().shippingDiscount().value() +\n \"\\namount itemTotal \"+ purchaseUnitRequest.amount().breakdown().itemTotal().value()\n );\n purchaseUnitRequests.add(purchaseUnitRequest);\n orderRequest.purchaseUnits(purchaseUnitRequests);\n System.out.println(\"Request: \" + orderRequest.toString());\n return orderRequest;\n }",
"public OrderSetCustomTypeActionBuilder type(\n Function<com.commercetools.api.models.type.TypeResourceIdentifierBuilder, com.commercetools.api.models.type.TypeResourceIdentifierBuilder> builder) {\n this.type = builder.apply(com.commercetools.api.models.type.TypeResourceIdentifierBuilder.of()).build();\n return this;\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder setORDERTYPE(java.lang.CharSequence value) {\n validate(fields()[0], value);\n this.ORDER_TYPE = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"void setOrderType(OrderType inOrderType);",
"public final void testChangeZOrderActionFailureZOrderNull() {\n try {\n new ChangeZOrderAction(new GraphElement() {\n }, null);\n fail(\"IllegalArgumentException is expected since operation type is null\");\n } catch (IllegalArgumentException e) {\n // good\n }\n }",
"public OrderSetCustomTypeActionBuilder withType(\n Function<com.commercetools.api.models.type.TypeResourceIdentifierBuilder, com.commercetools.api.models.type.TypeResourceIdentifier> builder) {\n this.type = builder.apply(com.commercetools.api.models.type.TypeResourceIdentifierBuilder.of());\n return this;\n }",
"public CreateOrderRequest(CreateOrderRequest source) {\n if (source.ChannelCode != null) {\n this.ChannelCode = new String(source.ChannelCode);\n }\n if (source.MerchantAppId != null) {\n this.MerchantAppId = new String(source.MerchantAppId);\n }\n if (source.Amount != null) {\n this.Amount = new String(source.Amount);\n }\n if (source.TraceNo != null) {\n this.TraceNo = new String(source.TraceNo);\n }\n if (source.NotifyUrl != null) {\n this.NotifyUrl = new String(source.NotifyUrl);\n }\n if (source.ReturnUrl != null) {\n this.ReturnUrl = new String(source.ReturnUrl);\n }\n }",
"public void initDefaultValues() {\n setOrderActive(1);\n setProductQuantity(1);\n setBillingPhone1Blocked(0);\n setBillingPhone2Blocked(0);\n setOrderAvailabilityStatus(1);\n setDeliveryStatus(1);\n setMailedReminderToVendorStatus(0);\n setOrderCancelRequestStatus(0);\n setOrderCancellationToVendorStatus(0);\n setDisputeRaisedStatus(0);\n setOrderAcceptNewsletter(1);\n setOrderAcceptPromotionalMaterial(1);\n setBillingAdvanceAmount(0);\n setBillingBalanceAmount(0);\n setBillingGrossAmount(0f);\n setBillingMarginAmount(0f);\n setBillingNettCost(0f);\n setBillingPaymentGatewayRate(0f);\n setBillingStateId(0);\n setBillingTaxrate(0f);\n setBillingTotalAmount(0f);\n setCarYear(0);\n setCustomint1(0);\n setCustomint2(0);\n setCustPaymentMode(0);\n setCustPaymentStatus(0);\n setInvoiceId(0);\n setVendorPaymentMode(0);\n setShipmentRate(0);\n setShipmentCountryId(0);\n setShipmentCityId(0);\n setOrderType(0);\n setOrderStatus(0);\n setOrderRefundType(0);\n setOrderPriority(0);\n setOrderBulkType(0);\n setOrderCorporateType(0);\n setShipmentCityId(0);\n setShipmentCountryId(0);\n setShipmentRate(0f);\n setShipmentStateId(0);\n setOrderCancellationType(0);\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"string\", \"ChannelMapSet\", channelMapSet == null ? null : channelMapSet.getValue());\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"string\", \"ChannelMapSet\", channelMapSet == null ? null : channelMapSet.getValue());\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"string\", \"ChannelMapSet\", channelMapSet == null ? null : channelMapSet.getValue());\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"string\", \"ChannelMapSet\", channelMapSet == null ? null : channelMapSet.getValue());\n }",
"CustomAction(String actionType, String color, double startX, double startY, String text, double fontSize) {\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"color\", color);\n attributes.put(\"startX\", startX);\n attributes.put(\"startY\", startY);\n attributes.put(\"text\", text);\n attributes.put(\"fontSize\", fontSize);\n action.put(\"Action\", attributes);\n }",
"public abstract Builder customCondition(RequestCondition<?> paramRequestCondition);",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"string\", \"DesiredZoneName\", desiredZoneName == null ? null : desiredZoneName.getValue());\n setInput(invocation,\"string\", \"DesiredIcon\", desiredIcon == null ? null : desiredIcon.getValue());\n }",
"public CreateOrderRequest() {\n\t\t_pcs = new PropertyChangeSupport(this);\n\t}",
"CustomAction(String actionType, String color, double strokeWidth, ArrayList<Double> pointBuffer) {\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"StrokeWidth\", strokeWidth);\n attributes.put(\"color\", color);\n attributes.put(\"pointBuffer\", pointBuffer);\n action.put(\"Action\", attributes);\n }",
"CustomAction(String actionType, String message) {\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"message\", message);\n action.put(\"Action\", attributes);\n }",
"protected void checkIfOrdersEntityIsNullAndCreateOrders() {\n if (ordersEntity == null) {\n log.info(\"OrdersBean : Aucun Orders n'est trouvé\");\n createOrders();\n }\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"string\", \"DesiredTime\", desiredTime == null ? null : desiredTime.getValue());\n setInput(invocation,\"string\", \"TimeZoneForDesiredTime\", timeZoneForDesiredTime == null ? null : timeZoneForDesiredTime.getValue());\n }",
"private void validateBeforeMerge()\n {\n Assert.assertTrue(!isProductInfo() || type == TTransactionType.simple);\n }",
"public PromotionOrderEntryAdjustActionDTO()\n\t{\n\t\tsuper();\n\t}",
"public ActionTypeProperty withOptional(Boolean optional) {\n setOptional(optional);\n return this;\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearINVALIDNORMALORDERS() {\n INVALID_NORMAL_ORDERS = null;\n fieldSetFlags()[9] = false;\n return this;\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearORDERTYPE() {\n ORDER_TYPE = null;\n fieldSetFlags()[0] = false;\n return this;\n }",
"public abstract HttpResponse<String> buildAction(@Nullable Object object) throws Exception;",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearORDERTYPESID() {\n ORDER_TYPES_ID = null;\n fieldSetFlags()[10] = false;\n return this;\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder setINVALIDNORMALORDERS(java.lang.CharSequence value) {\n validate(fields()[9], value);\n this.INVALID_NORMAL_ORDERS = value;\n fieldSetFlags()[9] = true;\n return this;\n }",
"public boolean isSetOrderType() {\n return this.orderType != null;\n }",
"Builder addPotentialAction(Action.Builder value);",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"string\", \"StartLocalTime\", startLocalTime == null ? null : startLocalTime.getValue());\n setInput(invocation,\"string\", \"Duration\", duration == null ? null : duration.getValue());\n setInput(invocation,\"string\", \"Recurrence\", recurrence == null ? null : recurrence.getValue());\n setInput(invocation,\"boolean\", \"Enabled\", enabled == null ? null : enabled.getValue());\n setInput(invocation,\"string\", \"RoomUUID\", roomUUID == null ? null : roomUUID.getValue());\n setInput(invocation,\"string\", \"ProgramURI\", programURI == null ? null : programURI.getValue());\n setInput(invocation,\"string\", \"ProgramMetaData\", programMetaData == null ? null : programMetaData.getValue());\n setInput(invocation,\"string\", \"PlayMode\", playMode == null ? null : playMode.getValue());\n setInput(invocation,\"ui2\", \"Volume\", volume == null ? null : volume.getValue());\n setInput(invocation,\"boolean\", \"IncludeLinkedZones\", includeLinkedZones == null ? null : includeLinkedZones.getValue());\n }",
"@Override\n protected void setUpActionBuilder()\n {\n super.setUpActionBuilder();\n actionBuilder.getActionStore().addAction(TEST_ACTION);\n }",
"public static org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder newBuilder() {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder();\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"string\", \"DesiredTimeFormat\", desiredTimeFormat == null ? null : desiredTimeFormat.getValue());\n setInput(invocation,\"string\", \"DesiredDateFormat\", desiredDateFormat == null ? null : desiredDateFormat.getValue());\n }",
"private void fillMandatoryFields() {\n\n }",
"public OrderType(Type type) {\n\t\tsuper();\n\t\tthis.setType(type);\n\t}",
"public M csrtMoneyTypeNull(){if(this.get(\"csrtMoneyTypeNot\")==null)this.put(\"csrtMoneyTypeNot\", \"\");this.put(\"csrtMoneyType\", null);return this;}",
"public void submitOrder(View view) {\n\n CheckBox whippedCreamCheckBox = (CheckBox) findViewById(R.id.whipped_cream_checkbox);\n boolean hasWhippedCream = whippedCreamCheckBox.isChecked();\n\n CheckBox chocolateCheckBox = (CheckBox) findViewById(R.id.chocolate);\n boolean hasChocolateChecked = chocolateCheckBox.isChecked();\n EditText editText = (EditText) findViewById(R.id.name);\n String name = editText.getText().toString();\n createOrderSummary(quantity, hasWhippedCream, hasChocolateChecked, name);\n\n\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"public void\t\t\tsetOrderStatus(String orderType);",
"private void validateResetType(ComposedNode composedNode, ResetType resetType) throws ActionException {\n if (!SUPPORTED_RESET_TYPES.contains(resetType)) {\n throw new ActionException(\"Unsupported reset type: \" + resetType);\n }\n\n ComposedNodeState currentNodeState = composedNode.getComposedNodeState();\n if (currentNodeState != ComposedNodeState.POWERED_OFF && currentNodeState != ComposedNodeState.POWERED_ON) {\n throw new ActionException(\"Node state invalid for power action: \" + composedNode.getComposedNodeState());\n }\n }",
"public int customizeValidActions (String docStatus, Object processing, \r\n String orderType, String isSOTrx, int AD_Table_ID, String[] docAction, String[] options, int index) {\r\n\r\n\t\t// If status = Drafted, add \"Prepare\" in the list\r\n\t\tif (docStatus.equals(DocumentEngine.STATUS_Drafted)\r\n\t\t\t\t|| docStatus.equals(DocumentEngine.STATUS_Invalid)) {\r\n\t\t\toptions[index++] = DocumentEngine.ACTION_Prepare;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// If status = Completed, add \"Reactivate\" in the list\r\n\t\t\r\n\t\tif (docStatus.equals(DocumentEngine.STATUS_Completed)) {\r\n\t\t\toptions[index++] = DocumentEngine.ACTION_Reverse_Correct;\r\n\t\t\t//options[index++] = DocumentEngine.ACTION_Void;\r\n\t\t} \r\n\t\t\r\n\t\treturn index;\r\n\t}",
"Builder addPotentialAction(String value);",
"public CustomerSetCompanyNameAction buildUnchecked() {\n return new CustomerSetCompanyNameActionImpl(companyName);\n }",
"@Override\n public void handle(ProductTypeEntity entity, UpdateAction action) {\n AddLocalizedEnumValue addLocalizedEnumValue = (AddLocalizedEnumValue) action;\n String attributeName = addLocalizedEnumValue.getAttributeName();\n LocalizedEnumValue value = addLocalizedEnumValue.getValue();\n\n entity.getAttributes().stream()\n .forEach(attribute -> {\n if (Objects.equals(attributeName, attribute.getName())) {\n LocalizedEnumAttributeType lenumAttribute = (LocalizedEnumAttributeType) attribute\n .getType();\n lenumAttribute.getValues().add(value);\n attribute.setType(lenumAttribute);\n }\n });\n\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"boolean\", \"IncludeLinkedZones\", includeLinkedZones == null ? null : includeLinkedZones.getValue());\n }",
"public void setOrderType(String orderType) {\r\n\t\tthis.orderType = orderType;\r\n\t}",
"Builder addPotentialAction(Action value);",
"public static org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder newBuilder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder other) {\n if (other == null) {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder();\n } else {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder(other);\n }\n }",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tboolean allOK = true;//boolean allOk is set to true\n\t\t\t\t\tString order = orderTextField.getText();//get text within the textfield\n\t\t\t\t\tif (order.equals(\"\")) {//if the textfield is blank nothing happens...\n\t\t\t\t\t\tallOK=false;\n\t\t\t\t\t}\n\t\t\t\t\tif (allOK==true) {//if allOk is set to true then....\n\t\t\t\t\t\t//Order orders = new Order(order);//\n\t\t\t\t\t\tRestaurant.runMyRestaurant(order);//Restaurant class is called\n\t\t\t\t\t}\n\t\t\t\t\t}",
"private void checkCreateFields(User user, ArtifactDefinition artifactInfo, ArtifactGroupTypeEnum type) {\n\t\tif (artifactInfo.getArtifactGroupType() == null) {\n\t\t\tartifactInfo.setArtifactGroupType(type);\n\t\t}\n\t\tif (artifactInfo.getUniqueId() != null) {\n\t\t\tlog.error(\"artifact uniqid cannot be set ignoring\");\n\t\t}\n\t\tartifactInfo.setUniqueId(null);\n\n\t\tif (artifactInfo.getArtifactRef() != null) {\n\t\t\tlog.error(\"artifact ref cannot be set ignoring\");\n\t\t}\n\t\tartifactInfo.setArtifactRef(null);\n\n\t\tif (artifactInfo.getArtifactRepository() != null) {\n\t\t\tlog.error(\"artifact repository cannot be set ignoring\");\n\t\t}\n\t\tartifactInfo.setArtifactRepository(null);\n\n\t\tif (artifactInfo.getUserIdCreator() != null) {\n\t\t\tlog.error(\"creator uuid cannot be set ignoring\");\n\t\t}\n\t\tartifactInfo.setArtifactCreator(user.getUserId());\n\n\t\tif (artifactInfo.getUserIdLastUpdater() != null) {\n\t\t\tlog.error(\"userId of last updater cannot be set ignoring\");\n\t\t}\n\t\tartifactInfo.setUserIdLastUpdater(user.getUserId());\n\n\t\tif (artifactInfo.getCreatorFullName() != null) {\n\t\t\tlog.error(\"creator Full name cannot be set ignoring\");\n\t\t}\n\t\tString fullName = user.getFirstName() + \" \" + user.getLastName();\n\t\tartifactInfo.setUpdaterFullName(fullName);\n\n\t\tif (artifactInfo.getUpdaterFullName() != null) {\n\t\t\tlog.error(\"updater Full name cannot be set ignoring\");\n\t\t}\n\t\tartifactInfo.setUpdaterFullName(fullName);\n\n\t\tif (artifactInfo.getCreationDate() != null) {\n\t\t\tlog.error(\"Creation Date cannot be set ignoring\");\n\t\t}\n\t\tlong time = System.currentTimeMillis();\n\t\tartifactInfo.setCreationDate(time);\n\n\t\tif (artifactInfo.getLastUpdateDate() != null) {\n\t\t\tlog.error(\"Last Update Date cannot be set ignoring\");\n\t\t}\n\t\tartifactInfo.setLastUpdateDate(time);\n\n\t\tif (artifactInfo.getEsId() != null) {\n\t\t\tlog.error(\"es id cannot be set ignoring\");\n\t\t}\n\t\tartifactInfo.setEsId(null);\n\n\t}",
"public Builder(@NonNull FilterType filterType, int order) {\n this.filterType = filterType;\n this.order = order;\n }",
"public static org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder newBuilder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES other) {\n if (other == null) {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder();\n } else {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder(other);\n }\n }",
"@Test\n public void createOrder() {\n IngredientDTO ig1 = new IngredientDTO(\"Onion\",\"onion\",2L,null);\n\n IngredientDTO ig2 = new IngredientDTO(\"Chicken\",\"chicken\",2L,null);\n IngredientDTO ig3 = new IngredientDTO(\"Bacon\",\"chicken\",2L,null);\n\n OrderDataDTO orderDataDTO = new OrderDataDTO(TestDataProviders.NAME_1,TestDataProviders.STREET,TestDataProviders.ZIP_CODE,TestDataProviders.COUNTRY,TestDataProviders.TEST_EMAIL_1,DeliveryMethod.FASTEST);\n\n\n BurgerDTO burgerDTO = new BurgerDTO(new HashSet<>(Arrays.asList(ig1,ig2,ig3)),TestDataProviders.PRICE);\n OrderDTO inputDTO = new OrderDTO(null,burgerDTO,orderDataDTO,null,false);\n\n Optional<User> optionalUser = Optional.of(user);\n when(userRepository.findByUsername(any(String.class))).thenReturn(optionalUser);\n\n //when\n when(orderRepository.save(any(Order.class))).thenReturn(order);\n\n OrderDTO result = underTest.createOrder(inputDTO,\"user1\");\n\n verify(userRepository).findByUsername(anyString());\n assertEquals(inputDTO.getArchived(),result.getArchived());\n assertThat(result.getUserId(),is(1L));\n assertEquals(inputDTO.getBurger().getIngredients().size(),result.getBurger().getIngredients().size());\n// assertThat(result.getOrderData().getCountry(),TestDataProviders.COUNTRY);\n\n }",
"@Override\n\tpublic void setCustomCondition(RptParams params) {\n\t\tif (params.getObject(\"startDate\") != null) {\n Date sd = (Date)params.getObject(\"startDate\");\n this.pkStartDate.setValue(sd);\n\t\t}\n\n\t\tif (params.getObject(\"endDate\") != null) {\n\t\t\tDate ed = (Date) params.getObject(\"endDate\");\n\t\t\tthis.pkEndDate.setValue(ed);\n\t\t}\n\t}",
"public OrderParam(String createEndTime, String createStartTime, String orderStatus, Integer page, Integer pageSize,\n String refundStatus, String buyerMemberId, String tradeType, Boolean needMemoInfo) {\n this.createEndTime = createEndTime;\n this.createStartTime = createStartTime;\n this.orderStatus = orderStatus;\n this.page = page;\n this.pageSize = pageSize;\n this.refundStatus = refundStatus;\n this.buyerMemberId = buyerMemberId;\n this.tradeType = tradeType;\n this.needMemoInfo = needMemoInfo;\n }",
"public void setORDERTYPE(java.lang.CharSequence value) {\n this.ORDER_TYPE = value;\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"string\", \"DesiredLEDState\", desiredLEDState == null ? null : desiredLEDState.getValue());\n }",
"public void setOrderType(Byte orderType) {\n this.orderType = orderType;\n }",
"@Override\n\tpublic ContentValues BuildParams() {\n\t\tContentValues nContentValues = new ContentValues();\n\t\tnContentValues.put(\"cpn_ident\", mCouponNumber);\n\t\tif (mIsFastBy) {\n\t\t\tnContentValues.put(\"is_fastbuy\", \"1\");\n\t\t}\n\t\treturn nContentValues;\n\t}",
"@Test\n public void testPostOrdersAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.postOrdersAction(\"{cartId}\", \"{customerId}\");\n List<Integer> expectedResults = Arrays.asList(200, 400, 403, 404);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 200) {\n this.actions.checkResponseJSONSchema(\"#/definitions/Order\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 400) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 403) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 404) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n \n }",
"public CreateIndividualPreAction() {\n }",
"@Generated(value = \"io.vrap.rmf.codegen.rendering.CoreCodeGenerator\", comments = \"https://github.com/commercetools/rmf-codegen\")\n@JsonDeserialize(as = StandalonePriceSetValidFromActionImpl.class)\npublic interface StandalonePriceSetValidFromAction extends StandalonePriceUpdateAction {\n\n /**\n * discriminator value for StandalonePriceSetValidFromAction\n */\n String SET_VALID_FROM = \"setValidFrom\";\n\n /**\n * <p>Value to set. If empty, any existing value is removed.</p>\n * @return validFrom\n */\n\n @JsonProperty(\"validFrom\")\n public ZonedDateTime getValidFrom();\n\n /**\n * <p>Value to set. If empty, any existing value is removed.</p>\n * @param validFrom value to be set\n */\n\n public void setValidFrom(final ZonedDateTime validFrom);\n\n /**\n * factory method\n * @return instance of StandalonePriceSetValidFromAction\n */\n public static StandalonePriceSetValidFromAction of() {\n return new StandalonePriceSetValidFromActionImpl();\n }\n\n /**\n * factory method to create a shallow copy StandalonePriceSetValidFromAction\n * @param template instance to be copied\n * @return copy instance\n */\n public static StandalonePriceSetValidFromAction of(final StandalonePriceSetValidFromAction template) {\n StandalonePriceSetValidFromActionImpl instance = new StandalonePriceSetValidFromActionImpl();\n instance.setValidFrom(template.getValidFrom());\n return instance;\n }\n\n /**\n * factory method to create a deep copy of StandalonePriceSetValidFromAction\n * @param template instance to be copied\n * @return copy instance\n */\n @Nullable\n public static StandalonePriceSetValidFromAction deepCopy(\n @Nullable final StandalonePriceSetValidFromAction template) {\n if (template == null) {\n return null;\n }\n StandalonePriceSetValidFromActionImpl instance = new StandalonePriceSetValidFromActionImpl();\n instance.setValidFrom(template.getValidFrom());\n return instance;\n }\n\n /**\n * builder factory method for StandalonePriceSetValidFromAction\n * @return builder\n */\n public static StandalonePriceSetValidFromActionBuilder builder() {\n return StandalonePriceSetValidFromActionBuilder.of();\n }\n\n /**\n * create builder for StandalonePriceSetValidFromAction instance\n * @param template instance with prefilled values for the builder\n * @return builder\n */\n public static StandalonePriceSetValidFromActionBuilder builder(final StandalonePriceSetValidFromAction template) {\n return StandalonePriceSetValidFromActionBuilder.of(template);\n }\n\n /**\n * accessor map function\n * @param <T> mapped type\n * @param helper function to map the object\n * @return mapped value\n */\n default <T> T withStandalonePriceSetValidFromAction(Function<StandalonePriceSetValidFromAction, T> helper) {\n return helper.apply(this);\n }\n\n /**\n * gives a TypeReference for usage with Jackson DataBind\n * @return TypeReference\n */\n public static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceSetValidFromAction> typeReference() {\n return new com.fasterxml.jackson.core.type.TypeReference<StandalonePriceSetValidFromAction>() {\n @Override\n public String toString() {\n return \"TypeReference<StandalonePriceSetValidFromAction>\";\n }\n };\n }\n}",
"ActionType createActionType();",
"private void makeValidActionsDiscretized() {\n validActionsDiscretized = new ArrayList<>();\n\n List<ActionType> actionTypes = problemSpec.getLevel().getAvailableActions();\n\n // Valid tire pressures\n List<TirePressure> tirePressures = Arrays.asList(\n TirePressure.FIFTY_PERCENT,\n TirePressure.SEVENTY_FIVE_PERCENT,\n TirePressure.ONE_HUNDRED_PERCENT\n );\n\n // Valid fuel levels (note that this is an arbitrary discretization)\n List<Integer> fuelLevels = new ArrayList<>();\n int fuelInterval = ProblemSpec.FUEL_MAX / FUEL_DISCRETE_INTERVALS;\n\n for (int i = 0; i < FUEL_DISCRETE_INTERVALS; i++) {\n fuelLevels.add(fuelInterval * i);\n }\n\n // Go through A1-A8 and add all possible combinations of the parameters\n for (ActionType actionType : actionTypes) {\n switch (actionType.getActionNo()) {\n case 1:\n validActionsDiscretized.add(new Action(actionType));\n break;\n\n case 2:\n for (String car : problemSpec.getCarOrder()) {\n validActionsDiscretized.add(new Action(actionType, car));\n }\n\n break;\n\n case 3:\n for (String driver : problemSpec.getDriverOrder()) {\n validActionsDiscretized.add(new Action(actionType, driver));\n }\n\n break;\n\n case 4:\n for (Tire tire : problemSpec.getTireOrder()) {\n validActionsDiscretized.add(new Action(actionType, tire));\n }\n\n break;\n\n case 5:\n for (int fuel : fuelLevels) {\n validActionsDiscretized.add(new Action(actionType, fuel));\n }\n\n break;\n\n case 6:\n for (TirePressure pressure : tirePressures) {\n validActionsDiscretized.add(new Action(actionType, pressure));\n }\n\n break;\n case 7:\n for (String car : problemSpec.getCarOrder()) {\n for (String driver : problemSpec.getDriverOrder()) {\n validActionsDiscretized.add(new Action(actionType, car, driver));\n }\n }\n\n break;\n\n case 8:\n for (TirePressure pressure : tirePressures) {\n for (int fuel : fuelLevels) {\n for (Tire tire : problemSpec.getTireOrder()) {\n validActionsDiscretized.add(new Action(actionType, tire, fuel,\n pressure));\n }\n }\n }\n\n break;\n }\n }\n }",
"private boolean processCustomTypes(Object value, ProcessorContext<T> processorContext)\r\n {\r\n CustomFieldProcessor cfp = getCustomTypeProcessor(processorContext.getField().getType());\r\n LOG.debug(\"processCustomTypes() - CustomFieldProcessor: \" + cfp);\r\n if (cfp != null) {\r\n cfp.processCustomField(value, processorContext);\r\n return true;\r\n }\r\n return false;\r\n \r\n }",
"protected void validateArguments( Object[] args ) throws ActionExecutionException {\n\n Annotation[][] annotations = method.getParameterAnnotations();\n for (int i = 0; i < annotations.length; i++) {\n\n Annotation[] paramAnnotations = annotations[i];\n\n for (Annotation paramAnnotation : paramAnnotations) {\n if (paramAnnotation instanceof Parameter) {\n Parameter paramDescriptionAnnotation = (Parameter) paramAnnotation;\n ValidationType validationType = paramDescriptionAnnotation.validation();\n\n String[] validationArgs;\n\n // if we are checking for valid constants, then the\n // args array should contain\n // the name of the array holding the valid constants\n if (validationType == ValidationType.STRING_CONSTANT\n || validationType == ValidationType.NUMBER_CONSTANT) {\n try {\n String arrayName = paramDescriptionAnnotation.args()[0];\n\n // get the field and set access level if\n // necessary\n Field arrayField = method.getDeclaringClass().getDeclaredField(arrayName);\n if (!arrayField.isAccessible()) {\n arrayField.setAccessible(true);\n }\n Object arrayValidConstants = arrayField.get(null);\n\n // convert the object array to string array\n String[] arrayValidConstatnsStr = new String[Array.getLength(arrayValidConstants)];\n for (int j = 0; j < Array.getLength(arrayValidConstants); j++) {\n arrayValidConstatnsStr[j] = Array.get(arrayValidConstants, j).toString();\n }\n\n validationArgs = arrayValidConstatnsStr;\n\n } catch (IndexOutOfBoundsException iobe) {\n // this is a fatal error\n throw new ActionExecutionException(\"You need to specify the name of the array with valid constants in the 'args' field of the Parameter annotation\");\n } catch (Exception e) {\n // this is a fatal error\n throw new ActionExecutionException(\"Could not get array with valid constants - action annotations are incorrect\");\n }\n } else {\n validationArgs = paramDescriptionAnnotation.args();\n }\n\n List<BaseType> typeValidators = createBaseTypes(paramDescriptionAnnotation.validation(),\n paramDescriptionAnnotation.name(),\n args[i], validationArgs);\n //perform validation\n for (BaseType baseType : typeValidators) {\n if (baseType != null) {\n try {\n baseType.validate();\n } catch (TypeException e) {\n throw new InvalidInputArgumentsException(\"Validation failed while validating argument \"\n + paramDescriptionAnnotation.name()\n + e.getMessage());\n }\n } else {\n log.warn(\"Could not perform validation on argument \"\n + paramDescriptionAnnotation.name());\n }\n }\n }\n }\n }\n }",
"public PurchaseType()\r\n {\r\n }",
"public final void testChangeZOrderActionFailureElementNull() {\n try {\n new ChangeZOrderAction(null, ChangeZOrderOperationType.BACKWARD);\n fail(\"IllegalArgumentException is expected since element is null\");\n } catch (IllegalArgumentException e) {\n // good\n }\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearORDERDESCRIPTION() {\n ORDER_DESCRIPTION = null;\n fieldSetFlags()[1] = false;\n return this;\n }",
"public void testCtor_NullState() {\n try {\n new AddActionStateAction(null, activityGraph, manager);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }"
] | [
"0.69340354",
"0.6712305",
"0.62806827",
"0.55451447",
"0.5537601",
"0.54826635",
"0.53242636",
"0.5187428",
"0.51802915",
"0.5131385",
"0.5111427",
"0.5017167",
"0.50131446",
"0.5002281",
"0.49553397",
"0.49461657",
"0.494208",
"0.49121457",
"0.4912067",
"0.48951164",
"0.48894113",
"0.48749873",
"0.48749873",
"0.48749873",
"0.48749873",
"0.48206267",
"0.48128042",
"0.47902188",
"0.475489",
"0.4747664",
"0.47432643",
"0.4733701",
"0.46563977",
"0.46503863",
"0.46393478",
"0.46227336",
"0.4612886",
"0.46101683",
"0.4609124",
"0.4587973",
"0.45837462",
"0.45760345",
"0.44960278",
"0.44830063",
"0.44795534",
"0.44786638",
"0.4477797",
"0.4470418",
"0.4468566",
"0.44656998",
"0.4450649",
"0.44228366",
"0.44228366",
"0.44228366",
"0.44228366",
"0.44228366",
"0.44228366",
"0.44228366",
"0.44228366",
"0.44228366",
"0.44228366",
"0.44228366",
"0.44228366",
"0.44228366",
"0.44228366",
"0.44228366",
"0.44228366",
"0.44228366",
"0.44118133",
"0.43994755",
"0.43874085",
"0.43857852",
"0.43791986",
"0.43718025",
"0.43654257",
"0.4359502",
"0.43478504",
"0.43387157",
"0.43294358",
"0.43282828",
"0.43261158",
"0.4312818",
"0.42811096",
"0.42737046",
"0.42734334",
"0.42642903",
"0.42558032",
"0.425495",
"0.4248193",
"0.42417455",
"0.42253688",
"0.4219924",
"0.41974244",
"0.4188548",
"0.41884273",
"0.4187417",
"0.4176856",
"0.4167712",
"0.41665938",
"0.41661733"
] | 0.67020774 | 2 |
builds OrderSetCustomTypeAction without checking for nonnull required values | public OrderSetCustomTypeAction buildUnchecked() {
return new OrderSetCustomTypeActionImpl(type, fields);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static OrderSetCustomTypeActionBuilder of() {\n return new OrderSetCustomTypeActionBuilder();\n }",
"public OrderSetCustomTypeAction build() {\n return new OrderSetCustomTypeActionImpl(type, fields);\n }",
"public static OrderSetCustomTypeActionBuilder of(final OrderSetCustomTypeAction template) {\n OrderSetCustomTypeActionBuilder builder = new OrderSetCustomTypeActionBuilder();\n builder.type = template.getType();\n builder.fields = template.getFields();\n return builder;\n }",
"private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = other.fieldSetFlags()[0];\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = other.fieldSetFlags()[1];\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = other.fieldSetFlags()[2];\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = other.fieldSetFlags()[3];\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = other.fieldSetFlags()[4];\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = other.fieldSetFlags()[5];\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = other.fieldSetFlags()[6];\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = other.fieldSetFlags()[7];\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = other.fieldSetFlags()[8];\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = other.fieldSetFlags()[9];\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = other.fieldSetFlags()[10];\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = other.fieldSetFlags()[11];\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = other.fieldSetFlags()[12];\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = other.fieldSetFlags()[13];\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = other.fieldSetFlags()[14];\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = other.fieldSetFlags()[15];\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = other.fieldSetFlags()[16];\n }\n }",
"private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = true;\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = true;\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = true;\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = true;\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = true;\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = true;\n }\n }",
"public OrderSetCustomTypeActionBuilder fields(\n @Nullable final com.commercetools.api.models.type.FieldContainer fields) {\n this.fields = fields;\n return this;\n }",
"public OrderSetCustomTypeActionBuilder type(\n @Nullable final com.commercetools.api.models.type.TypeResourceIdentifier type) {\n this.type = type;\n return this;\n }",
"public OrderSetCustomTypeActionBuilder withFields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainer> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of());\n return this;\n }",
"public OrderSetCustomTypeActionBuilder fields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainerBuilder> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of()).build();\n return this;\n }",
"private OrderRequest buildRequestBody(OriginalOrder originalOrder) {\n String currency = \"MXN\";\n\n OrderRequest orderRequest = new OrderRequest();\n orderRequest.intent(originalOrder.getIntent());\n\n ApplicationContext applicationContext = new ApplicationContext()\n .brandName(originalOrder.getBrandName())\n .landingPage(originalOrder.getLandingPage())\n .shippingPreference(originalOrder.getShippingPreference());\n orderRequest.applicationContext(applicationContext);\n System.out.println(\"item Category: \"+ originalOrder.getItems().get(0).getCategory());\n List<PurchaseUnitRequest> purchaseUnitRequests = new ArrayList<PurchaseUnitRequest>();\n PurchaseUnitRequest purchaseUnitRequest = new PurchaseUnitRequest()\n .referenceId(originalOrder.getReferenceId())\n .description(originalOrder.getDescription())\n .customId(originalOrder.getCustomId())\n .softDescriptor(originalOrder.getSoftDescriptor())\n .amount(new AmountWithBreakdown().currencyCode(currency).value(originalOrder.getTotal())\n .breakdown(\n new AmountBreakdown().itemTotal(new Money().currencyCode(currency).value(originalOrder.getTotal()))\n .shipping(new Money().currencyCode(currency).value(originalOrder.getShipping()))\n .handling(new Money().currencyCode(currency).value(originalOrder.getHandling()))\n .taxTotal(new Money().currencyCode(currency).value(originalOrder.getTaxTotal()))\n .shippingDiscount(new Money().currencyCode(currency).value(originalOrder.getShippingDiscount()))))\n .items(new ArrayList<Item>() {\n {\n add(new Item()\n .name(originalOrder.getItems().get(0).getName())\n .description(originalOrder.getItems().get(0).getDescription())\n .sku(originalOrder.getItems().get(0).getSku())\n .unitAmount(new Money().currencyCode(currency).value(originalOrder.getItems().get(0).getUnitAmount()))\n .tax(new Money().currencyCode(currency).value(originalOrder.getItems().get(0).getTax()))\n .quantity(originalOrder.getItems().get(0).getQuantity())\n .category(originalOrder.getItems().get(0).getCategory()));\n }\n })\n .shipping(new ShippingDetails().name(new Name().fullName(originalOrder.getAddress().getName()))\n .addressPortable(new AddressPortable()\n .addressLine1(originalOrder.getAddress().getAddressLine1())\n .addressLine2(originalOrder.getAddress().getAddressLine2())\n .adminArea2(originalOrder.getAddress().getAdminArea2())\n .adminArea1(originalOrder.getAddress().getAdminArea1())\n .postalCode(originalOrder.getAddress().getPostalCode())\n .countryCode(originalOrder.getAddress().getCountryCode())));\n System.out.println(\"purchaseUnitRequest: \\n\" +\n \"\\ndescription \"+ purchaseUnitRequest.description() +\n \"\\nreferenceId \"+ purchaseUnitRequest.referenceId() +\n \"\\nsoftDescriptor \"+ purchaseUnitRequest.softDescriptor() +\n \"\\namount currencyCode \"+ purchaseUnitRequest.amount().currencyCode() +\n \"\\namount value\"+ purchaseUnitRequest.amount().value() +\n \"\\namount taxTotal \"+ purchaseUnitRequest.amount().breakdown().taxTotal().value() +\n \"\\namount handling \"+ purchaseUnitRequest.amount().breakdown().handling().value() +\n \"\\namount shipping \"+ purchaseUnitRequest.amount().breakdown().shipping().value() +\n \"\\namount shippingDiscount \"+ purchaseUnitRequest.amount().breakdown().shippingDiscount().value() +\n \"\\namount itemTotal \"+ purchaseUnitRequest.amount().breakdown().itemTotal().value()\n );\n purchaseUnitRequests.add(purchaseUnitRequest);\n orderRequest.purchaseUnits(purchaseUnitRequests);\n System.out.println(\"Request: \" + orderRequest.toString());\n return orderRequest;\n }",
"private void buildOtherParams() {\n\t\tmClient.putRequestParam(\"attrType\", \"1\");\r\n\t}",
"public LNDCDC_NCS_TCS_ORDER_TYPES() {}",
"public OrderSetCustomTypeActionBuilder type(\n Function<com.commercetools.api.models.type.TypeResourceIdentifierBuilder, com.commercetools.api.models.type.TypeResourceIdentifierBuilder> builder) {\n this.type = builder.apply(com.commercetools.api.models.type.TypeResourceIdentifierBuilder.of()).build();\n return this;\n }",
"public OrderSetCustomTypeActionBuilder withType(\n Function<com.commercetools.api.models.type.TypeResourceIdentifierBuilder, com.commercetools.api.models.type.TypeResourceIdentifier> builder) {\n this.type = builder.apply(com.commercetools.api.models.type.TypeResourceIdentifierBuilder.of());\n return this;\n }",
"CustomAction(String actionType, String color, double startX, double startY){\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"color\", color);\n attributes.put(\"startX\", startX);\n attributes.put(\"startY\", startY);\n action.put(\"Action\", attributes);\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder setORDERTYPE(java.lang.CharSequence value) {\n validate(fields()[0], value);\n this.ORDER_TYPE = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"void setOrderType(OrderType inOrderType);",
"public CreateOrderRequest(CreateOrderRequest source) {\n if (source.ChannelCode != null) {\n this.ChannelCode = new String(source.ChannelCode);\n }\n if (source.MerchantAppId != null) {\n this.MerchantAppId = new String(source.MerchantAppId);\n }\n if (source.Amount != null) {\n this.Amount = new String(source.Amount);\n }\n if (source.TraceNo != null) {\n this.TraceNo = new String(source.TraceNo);\n }\n if (source.NotifyUrl != null) {\n this.NotifyUrl = new String(source.NotifyUrl);\n }\n if (source.ReturnUrl != null) {\n this.ReturnUrl = new String(source.ReturnUrl);\n }\n }",
"public CreateOrderRequest() {\n\t\t_pcs = new PropertyChangeSupport(this);\n\t}",
"public abstract Builder customCondition(RequestCondition<?> paramRequestCondition);",
"CustomAction(String actionType, String message) {\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"message\", message);\n action.put(\"Action\", attributes);\n }",
"Builder addPotentialAction(Action.Builder value);",
"CustomAction(String actionType, String color, double startX, double startY, String text, double fontSize) {\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"color\", color);\n attributes.put(\"startX\", startX);\n attributes.put(\"startY\", startY);\n attributes.put(\"text\", text);\n attributes.put(\"fontSize\", fontSize);\n action.put(\"Action\", attributes);\n }",
"public void initDefaultValues() {\n setOrderActive(1);\n setProductQuantity(1);\n setBillingPhone1Blocked(0);\n setBillingPhone2Blocked(0);\n setOrderAvailabilityStatus(1);\n setDeliveryStatus(1);\n setMailedReminderToVendorStatus(0);\n setOrderCancelRequestStatus(0);\n setOrderCancellationToVendorStatus(0);\n setDisputeRaisedStatus(0);\n setOrderAcceptNewsletter(1);\n setOrderAcceptPromotionalMaterial(1);\n setBillingAdvanceAmount(0);\n setBillingBalanceAmount(0);\n setBillingGrossAmount(0f);\n setBillingMarginAmount(0f);\n setBillingNettCost(0f);\n setBillingPaymentGatewayRate(0f);\n setBillingStateId(0);\n setBillingTaxrate(0f);\n setBillingTotalAmount(0f);\n setCarYear(0);\n setCustomint1(0);\n setCustomint2(0);\n setCustPaymentMode(0);\n setCustPaymentStatus(0);\n setInvoiceId(0);\n setVendorPaymentMode(0);\n setShipmentRate(0);\n setShipmentCountryId(0);\n setShipmentCityId(0);\n setOrderType(0);\n setOrderStatus(0);\n setOrderRefundType(0);\n setOrderPriority(0);\n setOrderBulkType(0);\n setOrderCorporateType(0);\n setShipmentCityId(0);\n setShipmentCountryId(0);\n setShipmentRate(0f);\n setShipmentStateId(0);\n setOrderCancellationType(0);\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"string\", \"ChannelMapSet\", channelMapSet == null ? null : channelMapSet.getValue());\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"string\", \"ChannelMapSet\", channelMapSet == null ? null : channelMapSet.getValue());\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"string\", \"ChannelMapSet\", channelMapSet == null ? null : channelMapSet.getValue());\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"string\", \"ChannelMapSet\", channelMapSet == null ? null : channelMapSet.getValue());\n }",
"public final void testChangeZOrderActionFailureZOrderNull() {\n try {\n new ChangeZOrderAction(new GraphElement() {\n }, null);\n fail(\"IllegalArgumentException is expected since operation type is null\");\n } catch (IllegalArgumentException e) {\n // good\n }\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearORDERTYPE() {\n ORDER_TYPE = null;\n fieldSetFlags()[0] = false;\n return this;\n }",
"CustomAction(String actionType, String color, double strokeWidth, ArrayList<Double> pointBuffer) {\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"StrokeWidth\", strokeWidth);\n attributes.put(\"color\", color);\n attributes.put(\"pointBuffer\", pointBuffer);\n action.put(\"Action\", attributes);\n }",
"public CustomerSetCompanyNameAction buildUnchecked() {\n return new CustomerSetCompanyNameActionImpl(companyName);\n }",
"public PromotionOrderEntryAdjustActionDTO()\n\t{\n\t\tsuper();\n\t}",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearORDERTYPESID() {\n ORDER_TYPES_ID = null;\n fieldSetFlags()[10] = false;\n return this;\n }",
"public ActionTypeProperty withOptional(Boolean optional) {\n setOptional(optional);\n return this;\n }",
"private void fillMandatoryFields_custom() {\n\n }",
"public abstract HttpResponse<String> buildAction(@Nullable Object object) throws Exception;",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"string\", \"DesiredZoneName\", desiredZoneName == null ? null : desiredZoneName.getValue());\n setInput(invocation,\"string\", \"DesiredIcon\", desiredIcon == null ? null : desiredIcon.getValue());\n }",
"Builder addPotentialAction(String value);",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearINVALIDNORMALORDERS() {\n INVALID_NORMAL_ORDERS = null;\n fieldSetFlags()[9] = false;\n return this;\n }",
"Builder addPotentialAction(Action value);",
"public OrderType(Type type) {\n\t\tsuper();\n\t\tthis.setType(type);\n\t}",
"@Override\n protected void setUpActionBuilder()\n {\n super.setUpActionBuilder();\n actionBuilder.getActionStore().addAction(TEST_ACTION);\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder setINVALIDNORMALORDERS(java.lang.CharSequence value) {\n validate(fields()[9], value);\n this.INVALID_NORMAL_ORDERS = value;\n fieldSetFlags()[9] = true;\n return this;\n }",
"public static org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder newBuilder() {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder();\n }",
"public CustomerSetCompanyNameAction build() {\n return new CustomerSetCompanyNameActionImpl(companyName);\n }",
"public PaymentSetMethodInfoMethodAction buildUnchecked() {\n return new PaymentSetMethodInfoMethodActionImpl(method);\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"string\", \"DesiredTime\", desiredTime == null ? null : desiredTime.getValue());\n setInput(invocation,\"string\", \"TimeZoneForDesiredTime\", timeZoneForDesiredTime == null ? null : timeZoneForDesiredTime.getValue());\n }",
"public ProductTypeChangeLabelAction build() {\n Objects.requireNonNull(attributeName, ProductTypeChangeLabelAction.class + \": attributeName is missing\");\n Objects.requireNonNull(label, ProductTypeChangeLabelAction.class + \": label is missing\");\n return new ProductTypeChangeLabelActionImpl(attributeName, label);\n }",
"public static org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder newBuilder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder other) {\n if (other == null) {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder();\n } else {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder(other);\n }\n }",
"protected void checkIfOrdersEntityIsNullAndCreateOrders() {\n if (ordersEntity == null) {\n log.info(\"OrdersBean : Aucun Orders n'est trouvé\");\n createOrders();\n }\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n\tpublic ContentValues BuildParams() {\n\t\tContentValues nContentValues = new ContentValues();\n\t\tnContentValues.put(\"cpn_ident\", mCouponNumber);\n\t\tif (mIsFastBy) {\n\t\t\tnContentValues.put(\"is_fastbuy\", \"1\");\n\t\t}\n\t\treturn nContentValues;\n\t}",
"public boolean isSetOrderType() {\n return this.orderType != null;\n }",
"public Builder(@NonNull FilterType filterType, int order) {\n this.filterType = filterType;\n this.order = order;\n }",
"private void validateBeforeMerge()\n {\n Assert.assertTrue(!isProductInfo() || type == TTransactionType.simple);\n }",
"public void submitOrder(View view) {\n\n CheckBox whippedCreamCheckBox = (CheckBox) findViewById(R.id.whipped_cream_checkbox);\n boolean hasWhippedCream = whippedCreamCheckBox.isChecked();\n\n CheckBox chocolateCheckBox = (CheckBox) findViewById(R.id.chocolate);\n boolean hasChocolateChecked = chocolateCheckBox.isChecked();\n EditText editText = (EditText) findViewById(R.id.name);\n String name = editText.getText().toString();\n createOrderSummary(quantity, hasWhippedCream, hasChocolateChecked, name);\n\n\n }",
"public CreateIndividualPreAction() {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"string\", \"StartLocalTime\", startLocalTime == null ? null : startLocalTime.getValue());\n setInput(invocation,\"string\", \"Duration\", duration == null ? null : duration.getValue());\n setInput(invocation,\"string\", \"Recurrence\", recurrence == null ? null : recurrence.getValue());\n setInput(invocation,\"boolean\", \"Enabled\", enabled == null ? null : enabled.getValue());\n setInput(invocation,\"string\", \"RoomUUID\", roomUUID == null ? null : roomUUID.getValue());\n setInput(invocation,\"string\", \"ProgramURI\", programURI == null ? null : programURI.getValue());\n setInput(invocation,\"string\", \"ProgramMetaData\", programMetaData == null ? null : programMetaData.getValue());\n setInput(invocation,\"string\", \"PlayMode\", playMode == null ? null : playMode.getValue());\n setInput(invocation,\"ui2\", \"Volume\", volume == null ? null : volume.getValue());\n setInput(invocation,\"boolean\", \"IncludeLinkedZones\", includeLinkedZones == null ? null : includeLinkedZones.getValue());\n }",
"public M csrtMoneyTypeNull(){if(this.get(\"csrtMoneyTypeNot\")==null)this.put(\"csrtMoneyTypeNot\", \"\");this.put(\"csrtMoneyType\", null);return this;}",
"@Override\n public void handle(ProductTypeEntity entity, UpdateAction action) {\n AddLocalizedEnumValue addLocalizedEnumValue = (AddLocalizedEnumValue) action;\n String attributeName = addLocalizedEnumValue.getAttributeName();\n LocalizedEnumValue value = addLocalizedEnumValue.getValue();\n\n entity.getAttributes().stream()\n .forEach(attribute -> {\n if (Objects.equals(attributeName, attribute.getName())) {\n LocalizedEnumAttributeType lenumAttribute = (LocalizedEnumAttributeType) attribute\n .getType();\n lenumAttribute.getValues().add(value);\n attribute.setType(lenumAttribute);\n }\n });\n\n }",
"public static org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder newBuilder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES other) {\n if (other == null) {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder();\n } else {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder(other);\n }\n }",
"ActionType createActionType();",
"@Generated(value = \"io.vrap.rmf.codegen.rendering.CoreCodeGenerator\", comments = \"https://github.com/commercetools/rmf-codegen\")\n@JsonDeserialize(as = StandalonePriceSetValidFromActionImpl.class)\npublic interface StandalonePriceSetValidFromAction extends StandalonePriceUpdateAction {\n\n /**\n * discriminator value for StandalonePriceSetValidFromAction\n */\n String SET_VALID_FROM = \"setValidFrom\";\n\n /**\n * <p>Value to set. If empty, any existing value is removed.</p>\n * @return validFrom\n */\n\n @JsonProperty(\"validFrom\")\n public ZonedDateTime getValidFrom();\n\n /**\n * <p>Value to set. If empty, any existing value is removed.</p>\n * @param validFrom value to be set\n */\n\n public void setValidFrom(final ZonedDateTime validFrom);\n\n /**\n * factory method\n * @return instance of StandalonePriceSetValidFromAction\n */\n public static StandalonePriceSetValidFromAction of() {\n return new StandalonePriceSetValidFromActionImpl();\n }\n\n /**\n * factory method to create a shallow copy StandalonePriceSetValidFromAction\n * @param template instance to be copied\n * @return copy instance\n */\n public static StandalonePriceSetValidFromAction of(final StandalonePriceSetValidFromAction template) {\n StandalonePriceSetValidFromActionImpl instance = new StandalonePriceSetValidFromActionImpl();\n instance.setValidFrom(template.getValidFrom());\n return instance;\n }\n\n /**\n * factory method to create a deep copy of StandalonePriceSetValidFromAction\n * @param template instance to be copied\n * @return copy instance\n */\n @Nullable\n public static StandalonePriceSetValidFromAction deepCopy(\n @Nullable final StandalonePriceSetValidFromAction template) {\n if (template == null) {\n return null;\n }\n StandalonePriceSetValidFromActionImpl instance = new StandalonePriceSetValidFromActionImpl();\n instance.setValidFrom(template.getValidFrom());\n return instance;\n }\n\n /**\n * builder factory method for StandalonePriceSetValidFromAction\n * @return builder\n */\n public static StandalonePriceSetValidFromActionBuilder builder() {\n return StandalonePriceSetValidFromActionBuilder.of();\n }\n\n /**\n * create builder for StandalonePriceSetValidFromAction instance\n * @param template instance with prefilled values for the builder\n * @return builder\n */\n public static StandalonePriceSetValidFromActionBuilder builder(final StandalonePriceSetValidFromAction template) {\n return StandalonePriceSetValidFromActionBuilder.of(template);\n }\n\n /**\n * accessor map function\n * @param <T> mapped type\n * @param helper function to map the object\n * @return mapped value\n */\n default <T> T withStandalonePriceSetValidFromAction(Function<StandalonePriceSetValidFromAction, T> helper) {\n return helper.apply(this);\n }\n\n /**\n * gives a TypeReference for usage with Jackson DataBind\n * @return TypeReference\n */\n public static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceSetValidFromAction> typeReference() {\n return new com.fasterxml.jackson.core.type.TypeReference<StandalonePriceSetValidFromAction>() {\n @Override\n public String toString() {\n return \"TypeReference<StandalonePriceSetValidFromAction>\";\n }\n };\n }\n}",
"public void\t\t\tsetOrderStatus(String orderType);",
"public void setOrderType(String orderType) {\r\n\t\tthis.orderType = orderType;\r\n\t}",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearORDERDESCRIPTION() {\n ORDER_DESCRIPTION = null;\n fieldSetFlags()[1] = false;\n return this;\n }",
"public TaxCategorySetDescriptionAction buildUnchecked() {\n return new TaxCategorySetDescriptionActionImpl(description);\n }",
"void create(Order order);",
"public ProductTypeChangeLabelAction buildUnchecked() {\n return new ProductTypeChangeLabelActionImpl(attributeName, label);\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"boolean\", \"IncludeLinkedZones\", includeLinkedZones == null ? null : includeLinkedZones.getValue());\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"string\", \"DesiredTimeFormat\", desiredTimeFormat == null ? null : desiredTimeFormat.getValue());\n setInput(invocation,\"string\", \"DesiredDateFormat\", desiredDateFormat == null ? null : desiredDateFormat.getValue());\n }",
"@Override\r\n\tpublic void buildSettlement() {\n\t\t\r\n\t}",
"public void setORDERTYPE(java.lang.CharSequence value) {\n this.ORDER_TYPE = value;\n }",
"public int customizeValidActions (String docStatus, Object processing, \r\n String orderType, String isSOTrx, int AD_Table_ID, String[] docAction, String[] options, int index) {\r\n\r\n\t\t// If status = Drafted, add \"Prepare\" in the list\r\n\t\tif (docStatus.equals(DocumentEngine.STATUS_Drafted)\r\n\t\t\t\t|| docStatus.equals(DocumentEngine.STATUS_Invalid)) {\r\n\t\t\toptions[index++] = DocumentEngine.ACTION_Prepare;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// If status = Completed, add \"Reactivate\" in the list\r\n\t\t\r\n\t\tif (docStatus.equals(DocumentEngine.STATUS_Completed)) {\r\n\t\t\toptions[index++] = DocumentEngine.ACTION_Reverse_Correct;\r\n\t\t\t//options[index++] = DocumentEngine.ACTION_Void;\r\n\t\t} \r\n\t\t\r\n\t\treturn index;\r\n\t}",
"public void setOrderType(Byte orderType) {\n this.orderType = orderType;\n }",
"@Generated(value = \"io.vrap.rmf.codegen.rendering.CoreCodeGenerator\", comments = \"https://github.com/commercetools/rmf-codegen\")\n@JsonDeserialize(as = ProductSetMetaTitleActionImpl.class)\npublic interface ProductSetMetaTitleAction extends ProductUpdateAction {\n\n /**\n * discriminator value for ProductSetMetaTitleAction\n */\n String SET_META_TITLE = \"setMetaTitle\";\n\n /**\n * <p>Value to set. If empty, any existing value will be removed.</p>\n * @return metaTitle\n */\n @Valid\n @JsonProperty(\"metaTitle\")\n public LocalizedString getMetaTitle();\n\n /**\n * <p>If <code>true</code>, only the staged <code>metaTitle</code> is updated. If <code>false</code>, both the current and staged <code>metaTitle</code> are updated.</p>\n * @return staged\n */\n\n @JsonProperty(\"staged\")\n public Boolean getStaged();\n\n /**\n * <p>Value to set. If empty, any existing value will be removed.</p>\n * @param metaTitle value to be set\n */\n\n public void setMetaTitle(final LocalizedString metaTitle);\n\n /**\n * <p>If <code>true</code>, only the staged <code>metaTitle</code> is updated. If <code>false</code>, both the current and staged <code>metaTitle</code> are updated.</p>\n * @param staged value to be set\n */\n\n public void setStaged(final Boolean staged);\n\n /**\n * factory method\n * @return instance of ProductSetMetaTitleAction\n */\n public static ProductSetMetaTitleAction of() {\n return new ProductSetMetaTitleActionImpl();\n }\n\n /**\n * factory method to create a shallow copy ProductSetMetaTitleAction\n * @param template instance to be copied\n * @return copy instance\n */\n public static ProductSetMetaTitleAction of(final ProductSetMetaTitleAction template) {\n ProductSetMetaTitleActionImpl instance = new ProductSetMetaTitleActionImpl();\n instance.setMetaTitle(template.getMetaTitle());\n instance.setStaged(template.getStaged());\n return instance;\n }\n\n /**\n * factory method to create a deep copy of ProductSetMetaTitleAction\n * @param template instance to be copied\n * @return copy instance\n */\n @Nullable\n public static ProductSetMetaTitleAction deepCopy(@Nullable final ProductSetMetaTitleAction template) {\n if (template == null) {\n return null;\n }\n ProductSetMetaTitleActionImpl instance = new ProductSetMetaTitleActionImpl();\n instance.setMetaTitle(com.commercetools.api.models.common.LocalizedString.deepCopy(template.getMetaTitle()));\n instance.setStaged(template.getStaged());\n return instance;\n }\n\n /**\n * builder factory method for ProductSetMetaTitleAction\n * @return builder\n */\n public static ProductSetMetaTitleActionBuilder builder() {\n return ProductSetMetaTitleActionBuilder.of();\n }\n\n /**\n * create builder for ProductSetMetaTitleAction instance\n * @param template instance with prefilled values for the builder\n * @return builder\n */\n public static ProductSetMetaTitleActionBuilder builder(final ProductSetMetaTitleAction template) {\n return ProductSetMetaTitleActionBuilder.of(template);\n }\n\n /**\n * accessor map function\n * @param <T> mapped type\n * @param helper function to map the object\n * @return mapped value\n */\n default <T> T withProductSetMetaTitleAction(Function<ProductSetMetaTitleAction, T> helper) {\n return helper.apply(this);\n }\n\n /**\n * gives a TypeReference for usage with Jackson DataBind\n * @return TypeReference\n */\n public static com.fasterxml.jackson.core.type.TypeReference<ProductSetMetaTitleAction> typeReference() {\n return new com.fasterxml.jackson.core.type.TypeReference<ProductSetMetaTitleAction>() {\n @Override\n public String toString() {\n return \"TypeReference<ProductSetMetaTitleAction>\";\n }\n };\n }\n}",
"ShipmentTypeAttr createShipmentTypeAttr();",
"private Builder(io.confluent.developer.InterceptTest other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.req_custid)) {\n this.req_custid = data().deepCopy(fields()[0].schema(), other.req_custid);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.req_message)) {\n this.req_message = data().deepCopy(fields()[1].schema(), other.req_message);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.req_json)) {\n this.req_json = data().deepCopy(fields()[2].schema(), other.req_json);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.req_remote_addr)) {\n this.req_remote_addr = data().deepCopy(fields()[3].schema(), other.req_remote_addr);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.req_uri)) {\n this.req_uri = data().deepCopy(fields()[4].schema(), other.req_uri);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.req_headers)) {\n this.req_headers = data().deepCopy(fields()[5].schema(), other.req_headers);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.req_method)) {\n this.req_method = data().deepCopy(fields()[6].schema(), other.req_method);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.result_json)) {\n this.result_json = data().deepCopy(fields()[7].schema(), other.result_json);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.result_post)) {\n this.result_post = data().deepCopy(fields()[8].schema(), other.result_post);\n fieldSetFlags()[8] = true;\n }\n }",
"public OrderType getCodeOrderType() {\nreturn this.codeOrderType;\n}",
"@Override\n\tpublic void createAction(Model m) {\n\t\t\n\t}",
"public OrderItem_() {\n }",
"@com.exedio.cope.instrument.Generated // customize with @WrapperType(genericConstructor=...)\n\tprivate DeleteOtherItem(final com.exedio.cope.SetValue<?>... setValues){super(setValues);}",
"public OrderOffered() {\r\n }"
] | [
"0.7260521",
"0.7132912",
"0.6535981",
"0.56982434",
"0.56244814",
"0.5596224",
"0.5470008",
"0.5436263",
"0.539901",
"0.5233946",
"0.52100855",
"0.51809496",
"0.5132099",
"0.5084536",
"0.50551766",
"0.50111973",
"0.50000787",
"0.4977857",
"0.49654752",
"0.49211392",
"0.48822862",
"0.4873878",
"0.48673788",
"0.48444837",
"0.48438573",
"0.48438573",
"0.48438573",
"0.48438573",
"0.48307195",
"0.47967947",
"0.4794105",
"0.47936016",
"0.4776294",
"0.4771745",
"0.47604167",
"0.47542807",
"0.47216308",
"0.4686168",
"0.46849054",
"0.46762636",
"0.4638804",
"0.4631249",
"0.46065027",
"0.4573227",
"0.4568188",
"0.4504627",
"0.449548",
"0.44918504",
"0.44750193",
"0.44725367",
"0.44646782",
"0.44603524",
"0.44603524",
"0.44603524",
"0.44603524",
"0.44603524",
"0.44603524",
"0.44603524",
"0.44603524",
"0.44603524",
"0.44603524",
"0.44603524",
"0.44603524",
"0.44603524",
"0.44603524",
"0.44603524",
"0.44603524",
"0.44603524",
"0.44585395",
"0.4450453",
"0.44370076",
"0.4423316",
"0.44200206",
"0.44107303",
"0.44054493",
"0.44013426",
"0.4391463",
"0.43898848",
"0.43849248",
"0.43748897",
"0.4373362",
"0.43653083",
"0.4359062",
"0.43506256",
"0.43372357",
"0.4336259",
"0.43298665",
"0.43276697",
"0.43253115",
"0.4306665",
"0.4305638",
"0.4293005",
"0.4277724",
"0.4263657",
"0.42477804",
"0.42434052",
"0.42371452",
"0.4229608",
"0.42279282",
"0.42269987"
] | 0.7179611 | 1 |
factory method for an instance of OrderSetCustomTypeActionBuilder | public static OrderSetCustomTypeActionBuilder of() {
return new OrderSetCustomTypeActionBuilder();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public OrderSetCustomTypeAction build() {\n return new OrderSetCustomTypeActionImpl(type, fields);\n }",
"public static OrderSetCustomTypeActionBuilder of(final OrderSetCustomTypeAction template) {\n OrderSetCustomTypeActionBuilder builder = new OrderSetCustomTypeActionBuilder();\n builder.type = template.getType();\n builder.fields = template.getFields();\n return builder;\n }",
"public OrderSetCustomTypeActionBuilder withType(\n Function<com.commercetools.api.models.type.TypeResourceIdentifierBuilder, com.commercetools.api.models.type.TypeResourceIdentifier> builder) {\n this.type = builder.apply(com.commercetools.api.models.type.TypeResourceIdentifierBuilder.of());\n return this;\n }",
"public OrderSetCustomTypeActionBuilder type(\n Function<com.commercetools.api.models.type.TypeResourceIdentifierBuilder, com.commercetools.api.models.type.TypeResourceIdentifierBuilder> builder) {\n this.type = builder.apply(com.commercetools.api.models.type.TypeResourceIdentifierBuilder.of()).build();\n return this;\n }",
"public OrderSetCustomTypeAction buildUnchecked() {\n return new OrderSetCustomTypeActionImpl(type, fields);\n }",
"public OrderSetCustomTypeActionBuilder withFields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainer> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of());\n return this;\n }",
"public OrderSetCustomTypeActionBuilder type(\n @Nullable final com.commercetools.api.models.type.TypeResourceIdentifier type) {\n this.type = type;\n return this;\n }",
"public OrderSetCustomTypeActionBuilder fields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainerBuilder> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of()).build();\n return this;\n }",
"CustomAction(String actionType, String color, double startX, double startY){\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"color\", color);\n attributes.put(\"startX\", startX);\n attributes.put(\"startY\", startY);\n action.put(\"Action\", attributes);\n }",
"CustomAction(String actionType, String color, double startX, double startY, String text, double fontSize) {\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"color\", color);\n attributes.put(\"startX\", startX);\n attributes.put(\"startY\", startY);\n attributes.put(\"text\", text);\n attributes.put(\"fontSize\", fontSize);\n action.put(\"Action\", attributes);\n }",
"CustomAction(String actionType, String message) {\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"message\", message);\n action.put(\"Action\", attributes);\n }",
"CustomAction(String actionType, String color, double strokeWidth, ArrayList<Double> pointBuffer) {\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"StrokeWidth\", strokeWidth);\n attributes.put(\"color\", color);\n attributes.put(\"pointBuffer\", pointBuffer);\n action.put(\"Action\", attributes);\n }",
"@Override\n protected void setUpActionBuilder()\n {\n super.setUpActionBuilder();\n actionBuilder.getActionStore().addAction(TEST_ACTION);\n }",
"private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = other.fieldSetFlags()[0];\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = other.fieldSetFlags()[1];\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = other.fieldSetFlags()[2];\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = other.fieldSetFlags()[3];\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = other.fieldSetFlags()[4];\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = other.fieldSetFlags()[5];\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = other.fieldSetFlags()[6];\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = other.fieldSetFlags()[7];\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = other.fieldSetFlags()[8];\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = other.fieldSetFlags()[9];\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = other.fieldSetFlags()[10];\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = other.fieldSetFlags()[11];\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = other.fieldSetFlags()[12];\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = other.fieldSetFlags()[13];\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = other.fieldSetFlags()[14];\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = other.fieldSetFlags()[15];\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = other.fieldSetFlags()[16];\n }\n }",
"public OrderSetCustomTypeActionBuilder fields(\n @Nullable final com.commercetools.api.models.type.FieldContainer fields) {\n this.fields = fields;\n return this;\n }",
"ActionType createActionType();",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder setORDERTYPE(java.lang.CharSequence value) {\n validate(fields()[0], value);\n this.ORDER_TYPE = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"public static ProductTypeChangeLabelActionBuilder of() {\n return new ProductTypeChangeLabelActionBuilder();\n }",
"Builder addPotentialAction(Action.Builder value);",
"public OrderType(Type type) {\n\t\tsuper();\n\t\tthis.setType(type);\n\t}",
"public Builder(@NonNull FilterType filterType, int order) {\n this.filterType = filterType;\n this.order = order;\n }",
"private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = true;\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = true;\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = true;\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = true;\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = true;\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = true;\n }\n }",
"public static ProductSetMetaTitleActionBuilder builder() {\n return ProductSetMetaTitleActionBuilder.of();\n }",
"public TaxCategorySetDescriptionAction build() {\n return new TaxCategorySetDescriptionActionImpl(description);\n }",
"void setOrderType(OrderType inOrderType);",
"public ProductTypeChangeLabelAction build() {\n Objects.requireNonNull(attributeName, ProductTypeChangeLabelAction.class + \": attributeName is missing\");\n Objects.requireNonNull(label, ProductTypeChangeLabelAction.class + \": label is missing\");\n return new ProductTypeChangeLabelActionImpl(attributeName, label);\n }",
"@Nonnull\n public static UBL23WriterBuilder <OrderType> order ()\n {\n return UBL23WriterBuilder.create (OrderType.class);\n }",
"ActionDefinition createActionDefinition();",
"public CustomerSetCompanyNameAction build() {\n return new CustomerSetCompanyNameActionImpl(companyName);\n }",
"@Override\n\tpublic void createAction(Model m) {\n\t\t\n\t}",
"public abstract Builder customCondition(RequestCondition<?> paramRequestCondition);",
"interface WithCustomToolkitSettings {\n /**\n * Specifies customToolkitSettings.\n * @param customToolkitSettings the customToolkitSettings parameter value\n * @return the next definition stage\n */\n WithCreate withCustomToolkitSettings(CustomToolkitSettings customToolkitSettings);\n }",
"Builder addAdditionalType(String value);",
"ShipmentTypeAttr createShipmentTypeAttr();",
"private PSContentTypeActionMenuHelper(){}",
"public void createAction() {\n }",
"public RepeaterActionDefinition() {\n }",
"public Builder type(String type) {\n this.type = type;\n return this;\n }",
"SendAction createSendAction();",
"interface WithOsType {\n /**\n * Specifies the osType property: The Operating System type..\n *\n * @param osType The Operating System type.\n * @return the next definition stage.\n */\n WithCreate withOsType(OperatingSystemTypes osType);\n }",
"public CreateIndividualPreAction() {\n }",
"public static CartSetShippingMethodTaxRateActionBuilder builder() {\n return CartSetShippingMethodTaxRateActionBuilder.of();\n }",
"ShipmentMethodType createShipmentMethodType();",
"public StagedOrderSetShippingMethodAction build() {\n return new StagedOrderSetShippingMethodActionImpl(shippingMethod, externalTaxRate);\n }",
"@Nonnull\n public static UBL23WriterBuilder <TransitCustomsDeclarationType> transitCustomsDeclaration ()\n {\n return UBL23WriterBuilder.create (TransitCustomsDeclarationType.class);\n }",
"ShipmentType createShipmentType();",
"private void buildOtherParams() {\n\t\tmClient.putRequestParam(\"attrType\", \"1\");\r\n\t}",
"public MethodBuilder type(String type) {\n\t\tthis.type = type;\n\t\treturn this;\n\t}",
"public static ProductSetMetaTitleActionBuilder builder(final ProductSetMetaTitleAction template) {\n return ProductSetMetaTitleActionBuilder.of(template);\n }",
"private ActionCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"Builder addPotentialAction(Action value);",
"@Nonnull\n public static UBL23WriterBuilder <OrderChangeType> orderChange ()\n {\n return UBL23WriterBuilder.create (OrderChangeType.class);\n }",
"Builder addPotentialAction(String value);",
"public ActionTypeProperty withOptional(Boolean optional) {\n setOptional(optional);\n return this;\n }",
"public LNDCDC_NCS_TCS_ORDER_TYPES() {}",
"Action createAction();",
"Action createAction();",
"Action createAction();",
"AutodiscAction(final AutodiscActionType actionType, final T content)\n {\n this.actionType = actionType;\n this.content = content;\n }",
"SettingType createSettingType();",
"private OrderRequest buildRequestBody(OriginalOrder originalOrder) {\n String currency = \"MXN\";\n\n OrderRequest orderRequest = new OrderRequest();\n orderRequest.intent(originalOrder.getIntent());\n\n ApplicationContext applicationContext = new ApplicationContext()\n .brandName(originalOrder.getBrandName())\n .landingPage(originalOrder.getLandingPage())\n .shippingPreference(originalOrder.getShippingPreference());\n orderRequest.applicationContext(applicationContext);\n System.out.println(\"item Category: \"+ originalOrder.getItems().get(0).getCategory());\n List<PurchaseUnitRequest> purchaseUnitRequests = new ArrayList<PurchaseUnitRequest>();\n PurchaseUnitRequest purchaseUnitRequest = new PurchaseUnitRequest()\n .referenceId(originalOrder.getReferenceId())\n .description(originalOrder.getDescription())\n .customId(originalOrder.getCustomId())\n .softDescriptor(originalOrder.getSoftDescriptor())\n .amount(new AmountWithBreakdown().currencyCode(currency).value(originalOrder.getTotal())\n .breakdown(\n new AmountBreakdown().itemTotal(new Money().currencyCode(currency).value(originalOrder.getTotal()))\n .shipping(new Money().currencyCode(currency).value(originalOrder.getShipping()))\n .handling(new Money().currencyCode(currency).value(originalOrder.getHandling()))\n .taxTotal(new Money().currencyCode(currency).value(originalOrder.getTaxTotal()))\n .shippingDiscount(new Money().currencyCode(currency).value(originalOrder.getShippingDiscount()))))\n .items(new ArrayList<Item>() {\n {\n add(new Item()\n .name(originalOrder.getItems().get(0).getName())\n .description(originalOrder.getItems().get(0).getDescription())\n .sku(originalOrder.getItems().get(0).getSku())\n .unitAmount(new Money().currencyCode(currency).value(originalOrder.getItems().get(0).getUnitAmount()))\n .tax(new Money().currencyCode(currency).value(originalOrder.getItems().get(0).getTax()))\n .quantity(originalOrder.getItems().get(0).getQuantity())\n .category(originalOrder.getItems().get(0).getCategory()));\n }\n })\n .shipping(new ShippingDetails().name(new Name().fullName(originalOrder.getAddress().getName()))\n .addressPortable(new AddressPortable()\n .addressLine1(originalOrder.getAddress().getAddressLine1())\n .addressLine2(originalOrder.getAddress().getAddressLine2())\n .adminArea2(originalOrder.getAddress().getAdminArea2())\n .adminArea1(originalOrder.getAddress().getAdminArea1())\n .postalCode(originalOrder.getAddress().getPostalCode())\n .countryCode(originalOrder.getAddress().getCountryCode())));\n System.out.println(\"purchaseUnitRequest: \\n\" +\n \"\\ndescription \"+ purchaseUnitRequest.description() +\n \"\\nreferenceId \"+ purchaseUnitRequest.referenceId() +\n \"\\nsoftDescriptor \"+ purchaseUnitRequest.softDescriptor() +\n \"\\namount currencyCode \"+ purchaseUnitRequest.amount().currencyCode() +\n \"\\namount value\"+ purchaseUnitRequest.amount().value() +\n \"\\namount taxTotal \"+ purchaseUnitRequest.amount().breakdown().taxTotal().value() +\n \"\\namount handling \"+ purchaseUnitRequest.amount().breakdown().handling().value() +\n \"\\namount shipping \"+ purchaseUnitRequest.amount().breakdown().shipping().value() +\n \"\\namount shippingDiscount \"+ purchaseUnitRequest.amount().breakdown().shippingDiscount().value() +\n \"\\namount itemTotal \"+ purchaseUnitRequest.amount().breakdown().itemTotal().value()\n );\n purchaseUnitRequests.add(purchaseUnitRequest);\n orderRequest.purchaseUnits(purchaseUnitRequests);\n System.out.println(\"Request: \" + orderRequest.toString());\n return orderRequest;\n }",
"private Order(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private <T> void addCustomDimensionsToHitBuilder(T builder) {\n\t\ttry {\n\t\t\tMethod builderMethod = builder.getClass().getMethod(\"setCustomDimension\", Integer.TYPE, String.class);\n\n\t\t\tfor (Entry<Integer, String> entry : customDimensions.entrySet()) {\n\t\t\t\tInteger key = entry.getKey();\n\t\t\t\tString value = entry.getValue();\n\t\t\t\ttry {\n\t\t\t\t\tbuilderMethod.invoke(builder, (key), value);\n\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t} catch (InvocationTargetException e) {\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SecurityException e) {\n\t\t} catch (NoSuchMethodException e) {\n\t\t}\n\t}",
"public static TaxCategorySetDescriptionActionBuilder of() {\n return new TaxCategorySetDescriptionActionBuilder();\n }",
"private CommonAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public static Action buildShip(int id, char type) {\n\t\treturn new Action(id, type);\n\t}",
"private ActionPackage() {}",
"QuoteTypeAttr createQuoteTypeAttr();",
"public AddApplicationReleaseAction() {\r\n }",
"@Generated(value = \"io.vrap.rmf.codegen.rendering.CoreCodeGenerator\", comments = \"https://github.com/commercetools/rmf-codegen\")\n@JsonDeserialize(as = ProductSetMetaTitleActionImpl.class)\npublic interface ProductSetMetaTitleAction extends ProductUpdateAction {\n\n /**\n * discriminator value for ProductSetMetaTitleAction\n */\n String SET_META_TITLE = \"setMetaTitle\";\n\n /**\n * <p>Value to set. If empty, any existing value will be removed.</p>\n * @return metaTitle\n */\n @Valid\n @JsonProperty(\"metaTitle\")\n public LocalizedString getMetaTitle();\n\n /**\n * <p>If <code>true</code>, only the staged <code>metaTitle</code> is updated. If <code>false</code>, both the current and staged <code>metaTitle</code> are updated.</p>\n * @return staged\n */\n\n @JsonProperty(\"staged\")\n public Boolean getStaged();\n\n /**\n * <p>Value to set. If empty, any existing value will be removed.</p>\n * @param metaTitle value to be set\n */\n\n public void setMetaTitle(final LocalizedString metaTitle);\n\n /**\n * <p>If <code>true</code>, only the staged <code>metaTitle</code> is updated. If <code>false</code>, both the current and staged <code>metaTitle</code> are updated.</p>\n * @param staged value to be set\n */\n\n public void setStaged(final Boolean staged);\n\n /**\n * factory method\n * @return instance of ProductSetMetaTitleAction\n */\n public static ProductSetMetaTitleAction of() {\n return new ProductSetMetaTitleActionImpl();\n }\n\n /**\n * factory method to create a shallow copy ProductSetMetaTitleAction\n * @param template instance to be copied\n * @return copy instance\n */\n public static ProductSetMetaTitleAction of(final ProductSetMetaTitleAction template) {\n ProductSetMetaTitleActionImpl instance = new ProductSetMetaTitleActionImpl();\n instance.setMetaTitle(template.getMetaTitle());\n instance.setStaged(template.getStaged());\n return instance;\n }\n\n /**\n * factory method to create a deep copy of ProductSetMetaTitleAction\n * @param template instance to be copied\n * @return copy instance\n */\n @Nullable\n public static ProductSetMetaTitleAction deepCopy(@Nullable final ProductSetMetaTitleAction template) {\n if (template == null) {\n return null;\n }\n ProductSetMetaTitleActionImpl instance = new ProductSetMetaTitleActionImpl();\n instance.setMetaTitle(com.commercetools.api.models.common.LocalizedString.deepCopy(template.getMetaTitle()));\n instance.setStaged(template.getStaged());\n return instance;\n }\n\n /**\n * builder factory method for ProductSetMetaTitleAction\n * @return builder\n */\n public static ProductSetMetaTitleActionBuilder builder() {\n return ProductSetMetaTitleActionBuilder.of();\n }\n\n /**\n * create builder for ProductSetMetaTitleAction instance\n * @param template instance with prefilled values for the builder\n * @return builder\n */\n public static ProductSetMetaTitleActionBuilder builder(final ProductSetMetaTitleAction template) {\n return ProductSetMetaTitleActionBuilder.of(template);\n }\n\n /**\n * accessor map function\n * @param <T> mapped type\n * @param helper function to map the object\n * @return mapped value\n */\n default <T> T withProductSetMetaTitleAction(Function<ProductSetMetaTitleAction, T> helper) {\n return helper.apply(this);\n }\n\n /**\n * gives a TypeReference for usage with Jackson DataBind\n * @return TypeReference\n */\n public static com.fasterxml.jackson.core.type.TypeReference<ProductSetMetaTitleAction> typeReference() {\n return new com.fasterxml.jackson.core.type.TypeReference<ProductSetMetaTitleAction>() {\n @Override\n public String toString() {\n return \"TypeReference<ProductSetMetaTitleAction>\";\n }\n };\n }\n}",
"@Override\n\tprotected void generatePrimitives(SoAction action) {\n\n\t}",
"public ExtractorBuilder(Class label, Class type) {\r\n this.label = label;\r\n this.type = type;\r\n }",
"public interface Builder<T extends Serializable> {\n\n /**\n * 生成Invoker中需要的marshaller\n */\n public void makeMarshaller();\n\n /**\n * 生成Invoker中需要的messageProducer\n */\n public void makeMessageProducer();\n\n /**\n * 生成异步请求时请求合并的判断器\n */\n public void makePredicate();\n\n /**\n * 动态Invoker生成方法\n *\n * @return 动态invoker\n */\n public Invoker<T> createDynamic();\n\n /**\n * 静态Invoker生成方法\n *\n * @return 静态invoker\n */\n public Invoker<T> createStatic();\n}",
"void create(Order order);",
"@com.exedio.cope.instrument.Generated // customize with @WrapperType(genericConstructor=...)\n\tprivate WrapEnumItem(final com.exedio.cope.SetValue<?>... setValues){super(setValues);}",
"OrderType getOrderType();",
"public static CustomerSetCompanyNameActionBuilder of() {\n return new CustomerSetCompanyNameActionBuilder();\n }",
"public static com.fasterxml.jackson.core.type.TypeReference<ProductSetMetaTitleAction> typeReference() {\n return new com.fasterxml.jackson.core.type.TypeReference<ProductSetMetaTitleAction>() {\n @Override\n public String toString() {\n return \"TypeReference<ProductSetMetaTitleAction>\";\n }\n };\n }",
"public CreateOrderRequest() {\n\t\t_pcs = new PropertyChangeSupport(this);\n\t}",
"ShipmentBoxType createShipmentBoxType();",
"CarrierShipmentBoxType createCarrierShipmentBoxType();",
"private OrderKey(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public static CartSetShippingRateInputActionBuilder builder() {\n return CartSetShippingRateInputActionBuilder.of();\n }",
"@Nonnull\n public static UBL23WriterBuilder <ImportCustomsDeclarationType> importCustomsDeclaration ()\n {\n return UBL23WriterBuilder.create (ImportCustomsDeclarationType.class);\n }",
"public PromotionOrderEntryAdjustActionDTO()\n\t{\n\t\tsuper();\n\t}",
"public ActionConfigBuilder(final Class<? extends Action> clazz) {\n super(clazz);\n if (LOG.isDebugEnabled()) {\n LOG.debug(ANNOTATED_ACTION + clazz);\n }\n }",
"public void setOrderType(String orderType) {\r\n\t\tthis.orderType = orderType;\r\n\t}",
"public PaymentType builder()\n {\n return new PaymentType(this);\n }",
"@Nonnull\n public static UBL23WriterBuilder <ExportCustomsDeclarationType> exportCustomsDeclaration ()\n {\n return UBL23WriterBuilder.create (ExportCustomsDeclarationType.class);\n }",
"public GetMarkerSetMembershipAction() {\n }",
"public OrderItem_() {\n }",
"public interface CustomObjectExpansionModel<T> {\n\n static <T> CustomObjectExpansionModel<CustomObject<T>> of(){\n return new CustomObjectExpansionModelImpl<>();\n }\n}",
"private SelectOSAction() {\r\n }",
"void createRequest(EnumOperationType opType, IParameter parameter);",
"ActorsType createActorsType();",
"public XrActionCreateInfo set(\n int type,\n long next,\n ByteBuffer actionName,\n int actionType,\n int countSubactionPaths,\n @Nullable LongBuffer subactionPaths,\n ByteBuffer localizedActionName\n ) {\n type(type);\n next(next);\n actionName(actionName);\n actionType(actionType);\n countSubactionPaths(countSubactionPaths);\n subactionPaths(subactionPaths);\n localizedActionName(localizedActionName);\n\n return this;\n }",
"private void createToolBarActions() {\r\n\t\t// create the action\r\n\t\tGetMessage<Transport> getMessage = new GetMessage<Transport>(new Transport());\r\n\t\tgetMessage.addParameter(IFilterTypes.TRANSPORT_TODO_FILTER, \"\");\r\n\r\n\t\t// add to the toolbar\r\n\t\tform.getToolBarManager().add(new RefreshViewAction<Transport>(getMessage));\r\n\t\tform.getToolBarManager().update(true);\r\n\t}",
"@Nonnull\n public static UBL23WriterBuilder <OrderResponseType> orderResponse ()\n {\n return UBL23WriterBuilder.create (OrderResponseType.class);\n }",
"public static AnnotatedActionFactory getActionFactory() {\n/* 84 */ return actionFactory;\n/* */ }",
"public interface AdditionalOrderInforCaller {\n\t/*\n\t * Command define from Order Confirmation API Guide\n\t * JSON and XML format\n\t */\n\t@Headers({\"Accept: application/json\",\"Content-Type: application/json\"})\n\t@RequestLine(\"POST /ordermgmt/order/addorderinfo?sellerid={sellerid}\")\n\tGetAdditionalOrderInformationResponse sendAdditionalOrderInforRequestJSON(@Param(\"sellerid\") String sellerID, GetAdditionalOrderInformationRequest body);\n\t\n\t@Headers({\"Accept: application/xml\",\"Content-Type: application/xml\"})\n\t@RequestLine(\"POST /ordermgmt/order/addorderinfo?sellerid={sellerid}\")\n\tGetAdditionalOrderInformationResponse sendAdditionalOrderInforRequestXML(@Param(\"sellerid\") String sellerID, GetAdditionalOrderInformationRequest body);\n\n\t// Implement default method of interface class that according to Variables.MediaType to run at JSON or XML request.\n\tdefault GetAdditionalOrderInformationResponse sendAdditionalOrderInforRequest(GetAdditionalOrderInformationRequest body) {\n\t\tswitch(Variables.MediaType) {\n\t\tcase JSON:\t\t\t\n\t\t\treturn sendAdditionalOrderInforRequestJSON(Content.SellerID, body);\n\t\t\t\n\t\tcase XML:\t\t\t\n\t\t\treturn sendAdditionalOrderInforRequestXML(Content.SellerID, body);\t\n\t\t\t\n\t\tdefault:\n\t\t\tthrow new RuntimeException(\"Never Happened!\");\n\t\t}\n\t\t\t\t\n\t}\n\t\n\tstatic AdditionalOrderInforCaller buildJSON() {\n\t\tVariables.MediaType = MEDIA_TYPE.JSON;\n\t\t\n\t\treturn new CallerFactory<AdditionalOrderInforCaller>()\n\t\t\t.jsonBuild(AdditionalOrderInforCaller.class, Variables.LogLevel, Variables.Retryer, OrderClient.genClient());\t\t\n\t}\n\n\tstatic AdditionalOrderInforCaller buildXML() {\n\t\tVariables.MediaType = MEDIA_TYPE.XML;\n\t\t\n\t\treturn new CallerFactory<AdditionalOrderInforCaller>()\n\t\t\t.xmlBuild(AdditionalOrderInforCaller.class, Variables.LogLevel, Variables.Retryer, OrderClient.genClient());\t\t\n\t}\n\t\n}"
] | [
"0.7887674",
"0.7566909",
"0.6889613",
"0.68265414",
"0.675142",
"0.6511211",
"0.6505786",
"0.6319645",
"0.6011441",
"0.596265",
"0.5795536",
"0.56802565",
"0.563799",
"0.55508906",
"0.5527284",
"0.5476266",
"0.5446715",
"0.54199827",
"0.53771466",
"0.5318047",
"0.5297147",
"0.5282329",
"0.5265975",
"0.5229795",
"0.52221805",
"0.51924187",
"0.5159861",
"0.5091316",
"0.50697494",
"0.5057006",
"0.5052428",
"0.5043094",
"0.5007786",
"0.49882293",
"0.49648473",
"0.4951107",
"0.4919221",
"0.49154845",
"0.4901401",
"0.4898545",
"0.48980215",
"0.48813453",
"0.4881309",
"0.48752397",
"0.48628154",
"0.48480567",
"0.48432344",
"0.4840859",
"0.4834963",
"0.48246717",
"0.48113158",
"0.47936606",
"0.4784829",
"0.4779152",
"0.47649914",
"0.47581863",
"0.47581863",
"0.47581863",
"0.47485882",
"0.47468486",
"0.47465035",
"0.4746151",
"0.4729507",
"0.4709655",
"0.46896556",
"0.46843973",
"0.46793818",
"0.46755248",
"0.46627554",
"0.4658685",
"0.46561167",
"0.46557593",
"0.46555716",
"0.46542594",
"0.46444732",
"0.4641801",
"0.4639547",
"0.46373233",
"0.46196464",
"0.46121332",
"0.46080416",
"0.460401",
"0.45997968",
"0.45971662",
"0.4595796",
"0.45947838",
"0.45841458",
"0.45818377",
"0.4577701",
"0.45711142",
"0.4567198",
"0.45659706",
"0.45633462",
"0.45591554",
"0.45586866",
"0.4552919",
"0.4549325",
"0.4546744",
"0.45460385",
"0.45453715"
] | 0.8740479 | 0 |
create builder for OrderSetCustomTypeAction instance | public static OrderSetCustomTypeActionBuilder of(final OrderSetCustomTypeAction template) {
OrderSetCustomTypeActionBuilder builder = new OrderSetCustomTypeActionBuilder();
builder.type = template.getType();
builder.fields = template.getFields();
return builder;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static OrderSetCustomTypeActionBuilder of() {\n return new OrderSetCustomTypeActionBuilder();\n }",
"public OrderSetCustomTypeAction build() {\n return new OrderSetCustomTypeActionImpl(type, fields);\n }",
"public OrderSetCustomTypeActionBuilder withType(\n Function<com.commercetools.api.models.type.TypeResourceIdentifierBuilder, com.commercetools.api.models.type.TypeResourceIdentifier> builder) {\n this.type = builder.apply(com.commercetools.api.models.type.TypeResourceIdentifierBuilder.of());\n return this;\n }",
"public OrderSetCustomTypeActionBuilder type(\n Function<com.commercetools.api.models.type.TypeResourceIdentifierBuilder, com.commercetools.api.models.type.TypeResourceIdentifierBuilder> builder) {\n this.type = builder.apply(com.commercetools.api.models.type.TypeResourceIdentifierBuilder.of()).build();\n return this;\n }",
"public OrderSetCustomTypeAction buildUnchecked() {\n return new OrderSetCustomTypeActionImpl(type, fields);\n }",
"public OrderSetCustomTypeActionBuilder withFields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainer> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of());\n return this;\n }",
"public OrderSetCustomTypeActionBuilder type(\n @Nullable final com.commercetools.api.models.type.TypeResourceIdentifier type) {\n this.type = type;\n return this;\n }",
"public OrderSetCustomTypeActionBuilder fields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainerBuilder> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of()).build();\n return this;\n }",
"private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = other.fieldSetFlags()[0];\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = other.fieldSetFlags()[1];\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = other.fieldSetFlags()[2];\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = other.fieldSetFlags()[3];\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = other.fieldSetFlags()[4];\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = other.fieldSetFlags()[5];\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = other.fieldSetFlags()[6];\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = other.fieldSetFlags()[7];\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = other.fieldSetFlags()[8];\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = other.fieldSetFlags()[9];\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = other.fieldSetFlags()[10];\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = other.fieldSetFlags()[11];\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = other.fieldSetFlags()[12];\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = other.fieldSetFlags()[13];\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = other.fieldSetFlags()[14];\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = other.fieldSetFlags()[15];\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = other.fieldSetFlags()[16];\n }\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder setORDERTYPE(java.lang.CharSequence value) {\n validate(fields()[0], value);\n this.ORDER_TYPE = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"CustomAction(String actionType, String color, double startX, double startY){\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"color\", color);\n attributes.put(\"startX\", startX);\n attributes.put(\"startY\", startY);\n action.put(\"Action\", attributes);\n }",
"public Builder(@NonNull FilterType filterType, int order) {\n this.filterType = filterType;\n this.order = order;\n }",
"public OrderSetCustomTypeActionBuilder fields(\n @Nullable final com.commercetools.api.models.type.FieldContainer fields) {\n this.fields = fields;\n return this;\n }",
"CustomAction(String actionType, String color, double startX, double startY, String text, double fontSize) {\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"color\", color);\n attributes.put(\"startX\", startX);\n attributes.put(\"startY\", startY);\n attributes.put(\"text\", text);\n attributes.put(\"fontSize\", fontSize);\n action.put(\"Action\", attributes);\n }",
"private Builder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.ORDER_TYPE)) {\n this.ORDER_TYPE = data().deepCopy(fields()[0].schema(), other.ORDER_TYPE);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.ORDER_DESCRIPTION)) {\n this.ORDER_DESCRIPTION = data().deepCopy(fields()[1].schema(), other.ORDER_DESCRIPTION);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.OT_USAGE_IND)) {\n this.OT_USAGE_IND = data().deepCopy(fields()[2].schema(), other.OT_USAGE_IND);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.OT_DFLT_LENGTH_CODE)) {\n this.OT_DFLT_LENGTH_CODE = data().deepCopy(fields()[3].schema(), other.OT_DFLT_LENGTH_CODE);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.OT_DFLT_ROS_SR_IND)) {\n this.OT_DFLT_ROS_SR_IND = data().deepCopy(fields()[4].schema(), other.OT_DFLT_ROS_SR_IND);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.OT_DFLT_UPFNT_SCAT_IND)) {\n this.OT_DFLT_UPFNT_SCAT_IND = data().deepCopy(fields()[5].schema(), other.OT_DFLT_UPFNT_SCAT_IND);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.REVENUE_REPORT_IND)) {\n this.REVENUE_REPORT_IND = data().deepCopy(fields()[6].schema(), other.REVENUE_REPORT_IND);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.REVENUE_DEFAULT_IND)) {\n this.REVENUE_DEFAULT_IND = data().deepCopy(fields()[7].schema(), other.REVENUE_DEFAULT_IND);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.REVENUE_SEQUENCE)) {\n this.REVENUE_SEQUENCE = data().deepCopy(fields()[8].schema(), other.REVENUE_SEQUENCE);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.INVALID_NORMAL_ORDERS)) {\n this.INVALID_NORMAL_ORDERS = data().deepCopy(fields()[9].schema(), other.INVALID_NORMAL_ORDERS);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.ORDER_TYPES_ID)) {\n this.ORDER_TYPES_ID = data().deepCopy(fields()[10].schema(), other.ORDER_TYPES_ID);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.OT_AVAIL_CACHE_IND)) {\n this.OT_AVAIL_CACHE_IND = data().deepCopy(fields()[11].schema(), other.OT_AVAIL_CACHE_IND);\n fieldSetFlags()[11] = true;\n }\n if (isValidValue(fields()[12], other.SRC_KEY_VAL)) {\n this.SRC_KEY_VAL = data().deepCopy(fields()[12].schema(), other.SRC_KEY_VAL);\n fieldSetFlags()[12] = true;\n }\n if (isValidValue(fields()[13], other.SRC_CDC_OPER_NM)) {\n this.SRC_CDC_OPER_NM = data().deepCopy(fields()[13].schema(), other.SRC_CDC_OPER_NM);\n fieldSetFlags()[13] = true;\n }\n if (isValidValue(fields()[14], other.SRC_COMMIT_DT_UTC)) {\n this.SRC_COMMIT_DT_UTC = data().deepCopy(fields()[14].schema(), other.SRC_COMMIT_DT_UTC);\n fieldSetFlags()[14] = true;\n }\n if (isValidValue(fields()[15], other.TRG_CRT_DT_PART_UTC)) {\n this.TRG_CRT_DT_PART_UTC = data().deepCopy(fields()[15].schema(), other.TRG_CRT_DT_PART_UTC);\n fieldSetFlags()[15] = true;\n }\n if (isValidValue(fields()[16], other.SRC_SCHEMA_NM)) {\n this.SRC_SCHEMA_NM = data().deepCopy(fields()[16].schema(), other.SRC_SCHEMA_NM);\n fieldSetFlags()[16] = true;\n }\n }",
"public static ProductTypeChangeLabelActionBuilder of() {\n return new ProductTypeChangeLabelActionBuilder();\n }",
"public static ProductSetMetaTitleActionBuilder builder() {\n return ProductSetMetaTitleActionBuilder.of();\n }",
"CustomAction(String actionType, String color, double strokeWidth, ArrayList<Double> pointBuffer) {\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"StrokeWidth\", strokeWidth);\n attributes.put(\"color\", color);\n attributes.put(\"pointBuffer\", pointBuffer);\n action.put(\"Action\", attributes);\n }",
"CustomAction(String actionType, String message) {\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"message\", message);\n action.put(\"Action\", attributes);\n }",
"public CustomerSetCompanyNameAction build() {\n return new CustomerSetCompanyNameActionImpl(companyName);\n }",
"@Nonnull\n public static UBL23WriterBuilder <OrderType> order ()\n {\n return UBL23WriterBuilder.create (OrderType.class);\n }",
"public TaxCategorySetDescriptionAction build() {\n return new TaxCategorySetDescriptionActionImpl(description);\n }",
"public ProductTypeChangeLabelAction build() {\n Objects.requireNonNull(attributeName, ProductTypeChangeLabelAction.class + \": attributeName is missing\");\n Objects.requireNonNull(label, ProductTypeChangeLabelAction.class + \": label is missing\");\n return new ProductTypeChangeLabelActionImpl(attributeName, label);\n }",
"public OrderType(Type type) {\n\t\tsuper();\n\t\tthis.setType(type);\n\t}",
"@Nonnull\n public static UBL23WriterBuilder <TransitCustomsDeclarationType> transitCustomsDeclaration ()\n {\n return UBL23WriterBuilder.create (TransitCustomsDeclarationType.class);\n }",
"public static CartSetShippingMethodTaxRateActionBuilder builder() {\n return CartSetShippingMethodTaxRateActionBuilder.of();\n }",
"public Builder type(String type) {\n this.type = type;\n return this;\n }",
"public PaymentType builder()\n {\n return new PaymentType(this);\n }",
"public static ProductSetMetaTitleActionBuilder builder(final ProductSetMetaTitleAction template) {\n return ProductSetMetaTitleActionBuilder.of(template);\n }",
"public static org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder newBuilder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder other) {\n if (other == null) {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder();\n } else {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder(other);\n }\n }",
"@Nonnull\n public static UBL23WriterBuilder <OrderChangeType> orderChange ()\n {\n return UBL23WriterBuilder.create (OrderChangeType.class);\n }",
"public static CartSetShippingRateInputActionBuilder builder() {\n return CartSetShippingRateInputActionBuilder.of();\n }",
"public CreateOrderRequest() {\n\t\t_pcs = new PropertyChangeSupport(this);\n\t}",
"public static ChangeCustomLineItemQuantityChangeBuilder of() {\n return new ChangeCustomLineItemQuantityChangeBuilder();\n }",
"@Override\n protected void setUpActionBuilder()\n {\n super.setUpActionBuilder();\n actionBuilder.getActionStore().addAction(TEST_ACTION);\n }",
"void setOrderType(OrderType inOrderType);",
"public StagedOrderSetShippingMethodAction build() {\n return new StagedOrderSetShippingMethodActionImpl(shippingMethod, externalTaxRate);\n }",
"public static StandalonePriceSetValidFromActionBuilder builder() {\n return StandalonePriceSetValidFromActionBuilder.of();\n }",
"public static CustomerSetCompanyNameActionBuilder of() {\n return new CustomerSetCompanyNameActionBuilder();\n }",
"private OrderRequest buildRequestBody(OriginalOrder originalOrder) {\n String currency = \"MXN\";\n\n OrderRequest orderRequest = new OrderRequest();\n orderRequest.intent(originalOrder.getIntent());\n\n ApplicationContext applicationContext = new ApplicationContext()\n .brandName(originalOrder.getBrandName())\n .landingPage(originalOrder.getLandingPage())\n .shippingPreference(originalOrder.getShippingPreference());\n orderRequest.applicationContext(applicationContext);\n System.out.println(\"item Category: \"+ originalOrder.getItems().get(0).getCategory());\n List<PurchaseUnitRequest> purchaseUnitRequests = new ArrayList<PurchaseUnitRequest>();\n PurchaseUnitRequest purchaseUnitRequest = new PurchaseUnitRequest()\n .referenceId(originalOrder.getReferenceId())\n .description(originalOrder.getDescription())\n .customId(originalOrder.getCustomId())\n .softDescriptor(originalOrder.getSoftDescriptor())\n .amount(new AmountWithBreakdown().currencyCode(currency).value(originalOrder.getTotal())\n .breakdown(\n new AmountBreakdown().itemTotal(new Money().currencyCode(currency).value(originalOrder.getTotal()))\n .shipping(new Money().currencyCode(currency).value(originalOrder.getShipping()))\n .handling(new Money().currencyCode(currency).value(originalOrder.getHandling()))\n .taxTotal(new Money().currencyCode(currency).value(originalOrder.getTaxTotal()))\n .shippingDiscount(new Money().currencyCode(currency).value(originalOrder.getShippingDiscount()))))\n .items(new ArrayList<Item>() {\n {\n add(new Item()\n .name(originalOrder.getItems().get(0).getName())\n .description(originalOrder.getItems().get(0).getDescription())\n .sku(originalOrder.getItems().get(0).getSku())\n .unitAmount(new Money().currencyCode(currency).value(originalOrder.getItems().get(0).getUnitAmount()))\n .tax(new Money().currencyCode(currency).value(originalOrder.getItems().get(0).getTax()))\n .quantity(originalOrder.getItems().get(0).getQuantity())\n .category(originalOrder.getItems().get(0).getCategory()));\n }\n })\n .shipping(new ShippingDetails().name(new Name().fullName(originalOrder.getAddress().getName()))\n .addressPortable(new AddressPortable()\n .addressLine1(originalOrder.getAddress().getAddressLine1())\n .addressLine2(originalOrder.getAddress().getAddressLine2())\n .adminArea2(originalOrder.getAddress().getAdminArea2())\n .adminArea1(originalOrder.getAddress().getAdminArea1())\n .postalCode(originalOrder.getAddress().getPostalCode())\n .countryCode(originalOrder.getAddress().getCountryCode())));\n System.out.println(\"purchaseUnitRequest: \\n\" +\n \"\\ndescription \"+ purchaseUnitRequest.description() +\n \"\\nreferenceId \"+ purchaseUnitRequest.referenceId() +\n \"\\nsoftDescriptor \"+ purchaseUnitRequest.softDescriptor() +\n \"\\namount currencyCode \"+ purchaseUnitRequest.amount().currencyCode() +\n \"\\namount value\"+ purchaseUnitRequest.amount().value() +\n \"\\namount taxTotal \"+ purchaseUnitRequest.amount().breakdown().taxTotal().value() +\n \"\\namount handling \"+ purchaseUnitRequest.amount().breakdown().handling().value() +\n \"\\namount shipping \"+ purchaseUnitRequest.amount().breakdown().shipping().value() +\n \"\\namount shippingDiscount \"+ purchaseUnitRequest.amount().breakdown().shippingDiscount().value() +\n \"\\namount itemTotal \"+ purchaseUnitRequest.amount().breakdown().itemTotal().value()\n );\n purchaseUnitRequests.add(purchaseUnitRequest);\n orderRequest.purchaseUnits(purchaseUnitRequests);\n System.out.println(\"Request: \" + orderRequest.toString());\n return orderRequest;\n }",
"public static org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder newBuilder() {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder();\n }",
"public Builder setType(ModelObjectType type) {\n this.type = type;\n return this;\n }",
"public LNDCDC_NCS_TCS_ORDER_TYPES() {}",
"Builder addPotentialAction(Action.Builder value);",
"private Order(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"@Nonnull\n public static UBL23WriterBuilder <ImportCustomsDeclarationType> importCustomsDeclaration ()\n {\n return UBL23WriterBuilder.create (ImportCustomsDeclarationType.class);\n }",
"ShipmentTypeAttr createShipmentTypeAttr();",
"public abstract Builder customCondition(RequestCondition<?> paramRequestCondition);",
"public static CartDiscountSetValidFromAndUntilActionBuilder builder() {\n return CartDiscountSetValidFromAndUntilActionBuilder.of();\n }",
"public static Builder builder(String lineType){\n return new Builder(lineType);\n }",
"private ActionCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"public static TaxCategorySetDescriptionActionBuilder of() {\n return new TaxCategorySetDescriptionActionBuilder();\n }",
"@Nonnull\n public static UBL23WriterBuilder <OrderCancellationType> orderCancellation ()\n {\n return UBL23WriterBuilder.create (OrderCancellationType.class);\n }",
"public static BitmovinApiBuilder<CustomXmlElementsApi> builder() {\n return new BitmovinApiBuilder<>(CustomXmlElementsApi.class);\n }",
"@Nonnull\n public static UBL23WriterBuilder <OrderResponseType> orderResponse ()\n {\n return UBL23WriterBuilder.create (OrderResponseType.class);\n }",
"public static CustomerSetCompanyNameActionBuilder of(final CustomerSetCompanyNameAction template) {\n CustomerSetCompanyNameActionBuilder builder = new CustomerSetCompanyNameActionBuilder();\n builder.companyName = template.getCompanyName();\n return builder;\n }",
"public Builder setType(int value) {\n \n type_ = value;\n onChanged();\n return this;\n }",
"public Builder setType(int value) {\n \n type_ = value;\n onChanged();\n return this;\n }",
"public Builder setType(int value) {\n \n type_ = value;\n onChanged();\n return this;\n }",
"private OrderKey(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public static org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder newBuilder(org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES other) {\n if (other == null) {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder();\n } else {\n return new org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder(other);\n }\n }",
"@Nonnull\n public static UBL23WriterBuilder <ExportCustomsDeclarationType> exportCustomsDeclaration ()\n {\n return UBL23WriterBuilder.create (ExportCustomsDeclarationType.class);\n }",
"void create(Order order);",
"public XrActionCreateInfo set(\n int type,\n long next,\n ByteBuffer actionName,\n int actionType,\n int countSubactionPaths,\n @Nullable LongBuffer subactionPaths,\n ByteBuffer localizedActionName\n ) {\n type(type);\n next(next);\n actionName(actionName);\n actionType(actionType);\n countSubactionPaths(countSubactionPaths);\n subactionPaths(subactionPaths);\n localizedActionName(localizedActionName);\n\n return this;\n }",
"interface WithCustomToolkitSettings {\n /**\n * Specifies customToolkitSettings.\n * @param customToolkitSettings the customToolkitSettings parameter value\n * @return the next definition stage\n */\n WithCreate withCustomToolkitSettings(CustomToolkitSettings customToolkitSettings);\n }",
"public OrderResponseBuilder() {\r\n orderResponse = new OrderResponse();\r\n }",
"public Builder setType(io.opencannabis.schema.commerce.CommercialOrder.OrderType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n type_ = value.getNumber();\n onChanged();\n return this;\n }",
"private Builder() {\n super(TransferSerialMessage.SCHEMA$);\n }",
"public static CartSetShippingMethodTaxRateActionBuilder builder(final CartSetShippingMethodTaxRateAction template) {\n return CartSetShippingMethodTaxRateActionBuilder.of(template);\n }",
"public Builder setOpertaorType(OP_TYPE operatorType) {\n this.operatorType = operatorType;\n return this;\n }",
"private static SOAPMessage createSOAPRequest(String soapAction, int type, String orderId, JSONObject orderInfo)\n\t\t\tthrows Exception {\n\t\tSystem.out.println(\"createSOAPRequest\");\n\t\tMessageFactory messageFactory = MessageFactory.newInstance();\n\t\tSOAPMessage soapMessage = messageFactory.createMessage();\n\t\tsoapMessage.getSOAPHeader().detachNode();\n\t\tsoapMessage.getSOAPPart().getEnvelope().setPrefix(\"s\");\n\t\tsoapMessage.getSOAPPart().getEnvelope().removeNamespaceDeclaration(\"SOAP-ENV\");\n\t\t// soapMessage.getSOAPHeader().setPrefix(\"s\");\n\t\tsoapMessage.getSOAPBody().setPrefix(\"s\");\n\n\t\t// String authorization = new\n\t\t// sun.misc.BASE64Encoder().encode((userName+\":\"+password).getBytes());\n\n\t\tcreateSoapEnvelope(soapMessage, type, orderId, orderInfo);\n\n\t\tMimeHeaders headers = soapMessage.getMimeHeaders();\n\t\t// headers.addHeader(\"Authorization\", \"Basic \" + authorization);\n\t\theaders.addHeader(\"SOAPAction\", soapAction);\n\n\t\tsoapMessage.saveChanges();\n\n\t\t/* Print the request message, just for debugging purposes */\n\t\tSystem.out.println(\"Request SOAP Message:\");\n\t\tsoapMessage.writeTo(System.out);\n\t\tSystem.out.println(\"\\n\");\n\n\t\treturn soapMessage;\n\t}",
"public static ProductTypeChangeLabelActionBuilder of(final ProductTypeChangeLabelAction template) {\n ProductTypeChangeLabelActionBuilder builder = new ProductTypeChangeLabelActionBuilder();\n builder.attributeName = template.getAttributeName();\n builder.label = template.getLabel();\n return builder;\n }",
"SettingType createSettingType();",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder clearORDERTYPE() {\n ORDER_TYPE = null;\n fieldSetFlags()[0] = false;\n return this;\n }",
"public Builder setQuestTypeValue(int value) {\n \n questType_ = value;\n onChanged();\n return this;\n }",
"private void buildOtherParams() {\n\t\tmClient.putRequestParam(\"attrType\", \"1\");\r\n\t}",
"public static StandalonePriceSetValidFromActionBuilder builder(final StandalonePriceSetValidFromAction template) {\n return StandalonePriceSetValidFromActionBuilder.of(template);\n }",
"public MethodBuilder type(String type) {\n\t\tthis.type = type;\n\t\treturn this;\n\t}",
"public static CartSetShippingRateInputActionBuilder builder(final CartSetShippingRateInputAction template) {\n return CartSetShippingRateInputActionBuilder.of(template);\n }",
"private Builder() {\n super(org.ga4gh.models.CallSet.SCHEMA$);\n }",
"public Order(Builder builder) {\r\n this.id = builder.id;\r\n this.orderDate = builder.orderDate;\r\n //this.orderLine = builder.orderLine;\r\n }",
"public Builder(Set<String> optionSwitches, SwitchType switchType) {\n this.shortSwitches = new HashSet<String>();\n longSwitches = new HashSet<String>();\n switch (switchType) {\n case SHORT_SWITCH:\n shortSwitches.addAll(optionSwitches);\n break;\n case LONG_SWITCH:\n longSwitches.addAll(optionSwitches);\n break;\n default:\n throw new IllegalArgumentException(\"Unknown switchType: \" + switchType);\n }\n }",
"interface WithOsType {\n /**\n * Specifies the osType property: The Operating System type..\n *\n * @param osType The Operating System type.\n * @return the next definition stage.\n */\n WithCreate withOsType(OperatingSystemTypes osType);\n }",
"ActionType createActionType();",
"CarrierShipmentBoxType createCarrierShipmentBoxType();",
"private Builder() {\n super(maestro.payloads.FlyerFeaturedItem.SCHEMA$);\n }",
"public static ChangeCustomLineItemQuantityChangeBuilder of(final ChangeCustomLineItemQuantityChange template) {\n ChangeCustomLineItemQuantityChangeBuilder builder = new ChangeCustomLineItemQuantityChangeBuilder();\n builder.change = template.getChange();\n builder.previousValue = template.getPreviousValue();\n builder.nextValue = template.getNextValue();\n builder.customLineItem = template.getCustomLineItem();\n builder.customLineItemId = template.getCustomLineItemId();\n return builder;\n }",
"public ChangeCustomLineItemQuantityChangeBuilder customLineItem(\n Function<com.commercetools.history.models.common.LocalizedStringBuilder, com.commercetools.history.models.common.LocalizedStringBuilder> builder) {\n this.customLineItem = builder.apply(com.commercetools.history.models.common.LocalizedStringBuilder.of())\n .build();\n return this;\n }",
"ShipmentType createShipmentType();",
"private Builder() {\n super(com.autodesk.ws.avro.Call.SCHEMA$);\n }",
"Builder addAdditionalType(String value);",
"public static Action buildShip(int id, char type) {\n\t\treturn new Action(id, type);\n\t}",
"ActionDefinition createActionDefinition();",
"public Builder(final AtRuleType type) {\n identifier = \"@\" + StyleManager.stringifyEnum(type);\n }",
"private <T> void addCustomDimensionsToHitBuilder(T builder) {\n\t\ttry {\n\t\t\tMethod builderMethod = builder.getClass().getMethod(\"setCustomDimension\", Integer.TYPE, String.class);\n\n\t\t\tfor (Entry<Integer, String> entry : customDimensions.entrySet()) {\n\t\t\t\tInteger key = entry.getKey();\n\t\t\t\tString value = entry.getValue();\n\t\t\t\ttry {\n\t\t\t\t\tbuilderMethod.invoke(builder, (key), value);\n\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t} catch (InvocationTargetException e) {\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SecurityException e) {\n\t\t} catch (NoSuchMethodException e) {\n\t\t}\n\t}",
"public Builder addWalletTypeValue(int value) {\n ensureWalletTypeIsMutable();\n walletType_.add(value);\n onChanged();\n return this;\n }",
"public Builder setKeyClass(Type keyType) {\n this.keyType = keyType;\n return this;\n }",
"ShipmentBoxType createShipmentBoxType();",
"public Builder() {\n this.obj = new RwjlTmTjmx();\n }",
"public Builder setCouponType(int value) {\n \n couponType_ = value;\n onChanged();\n return this;\n }"
] | [
"0.8992815",
"0.81908786",
"0.70142895",
"0.6968951",
"0.6806437",
"0.6776605",
"0.6584301",
"0.65808415",
"0.5907697",
"0.58032763",
"0.57988113",
"0.57363236",
"0.5722623",
"0.57015085",
"0.56757015",
"0.5526921",
"0.55184054",
"0.54955757",
"0.54244334",
"0.54189456",
"0.54120666",
"0.5385705",
"0.53639257",
"0.5326672",
"0.5240939",
"0.52308154",
"0.52305543",
"0.52139616",
"0.5200207",
"0.5145263",
"0.5134953",
"0.5122394",
"0.50807256",
"0.5074828",
"0.50675786",
"0.50433385",
"0.5041289",
"0.5030199",
"0.50239617",
"0.5001807",
"0.5001057",
"0.49741584",
"0.49638963",
"0.49533892",
"0.49288887",
"0.49210104",
"0.49081162",
"0.48965004",
"0.48910064",
"0.4887079",
"0.48836273",
"0.48688468",
"0.48541406",
"0.48527005",
"0.48327315",
"0.48318082",
"0.4828837",
"0.4828837",
"0.4828837",
"0.4826335",
"0.4815924",
"0.47946814",
"0.4781753",
"0.47792336",
"0.47678453",
"0.47676298",
"0.47676164",
"0.4765343",
"0.4758688",
"0.4751894",
"0.47464836",
"0.47439387",
"0.47378606",
"0.47353807",
"0.47326827",
"0.47239232",
"0.47233465",
"0.4721479",
"0.47202668",
"0.47185516",
"0.47090083",
"0.46995175",
"0.46963432",
"0.46949288",
"0.46935898",
"0.46876082",
"0.4673172",
"0.46664363",
"0.46573895",
"0.4655546",
"0.46539333",
"0.46348917",
"0.46256804",
"0.4622541",
"0.46066275",
"0.46003863",
"0.46003377",
"0.45998964",
"0.45974344",
"0.45959672"
] | 0.80313534 | 2 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_result, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}",
"@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu){\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.menu, menu);\r\n return true;\r\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }"
] | [
"0.72497207",
"0.72041494",
"0.7198533",
"0.71808106",
"0.71110344",
"0.7044596",
"0.7042557",
"0.7015272",
"0.70119643",
"0.6984017",
"0.6950008",
"0.6944079",
"0.6937662",
"0.6921333",
"0.6921333",
"0.6894039",
"0.6887707",
"0.6880534",
"0.68777215",
"0.6867014",
"0.6867014",
"0.6867014",
"0.6867014",
"0.68559307",
"0.6852073",
"0.68248004",
"0.6820769",
"0.68184304",
"0.68184304",
"0.6817935",
"0.6810622",
"0.6804502",
"0.68026507",
"0.67964166",
"0.67932844",
"0.6791405",
"0.67871046",
"0.6762318",
"0.67619425",
"0.67528236",
"0.6749201",
"0.6749201",
"0.6745379",
"0.6743501",
"0.6731059",
"0.67279845",
"0.6727818",
"0.6727818",
"0.67251533",
"0.67155576",
"0.6709411",
"0.6708032",
"0.67033577",
"0.67028654",
"0.67017025",
"0.669979",
"0.66913515",
"0.6688428",
"0.6688428",
"0.66866416",
"0.6685591",
"0.6683817",
"0.6682796",
"0.66729134",
"0.6672762",
"0.6666433",
"0.66600657",
"0.66600657",
"0.66600657",
"0.6659591",
"0.6659591",
"0.6659591",
"0.66593474",
"0.66565514",
"0.6655428",
"0.6654482",
"0.665351",
"0.665207",
"0.6651319",
"0.6649983",
"0.66496044",
"0.6649297",
"0.66489553",
"0.6648444",
"0.6648406",
"0.6645919",
"0.66434747",
"0.66401505",
"0.66370535",
"0.66367626",
"0.66367304",
"0.66367304",
"0.66367304",
"0.6633702",
"0.6633666",
"0.6631505",
"0.6629352",
"0.6629109",
"0.6624368",
"0.66234607",
"0.66223407"
] | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_veten) {
Intent i = new Intent(ResultActivity.this, VetenActivity.class);
startActivity(i);
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }"
] | [
"0.7905288",
"0.7806507",
"0.7767581",
"0.7728288",
"0.76327986",
"0.7622734",
"0.75856835",
"0.7531844",
"0.74890584",
"0.74584335",
"0.74584335",
"0.7439769",
"0.7422939",
"0.7404292",
"0.7392902",
"0.7388083",
"0.73805684",
"0.7371689",
"0.7363277",
"0.73572534",
"0.7346885",
"0.7342883",
"0.73314273",
"0.73297995",
"0.73268855",
"0.73201936",
"0.73177755",
"0.73149055",
"0.73053724",
"0.73053724",
"0.730291",
"0.7299442",
"0.7294618",
"0.72880965",
"0.7284496",
"0.728212",
"0.72798574",
"0.72611254",
"0.72611254",
"0.72611254",
"0.7260998",
"0.7260716",
"0.72512007",
"0.72250247",
"0.7220824",
"0.721851",
"0.72057116",
"0.7201987",
"0.72011137",
"0.7194394",
"0.7186605",
"0.7178953",
"0.7169934",
"0.71687484",
"0.71550834",
"0.7154791",
"0.7137151",
"0.71361125",
"0.71361125",
"0.7130695",
"0.7130134",
"0.7125464",
"0.71246445",
"0.7124545",
"0.7123362",
"0.71184117",
"0.71183425",
"0.71183425",
"0.71183425",
"0.71183425",
"0.71182",
"0.7117654",
"0.7116174",
"0.71136016",
"0.71110356",
"0.71100533",
"0.71068156",
"0.7101081",
"0.7099488",
"0.7096844",
"0.7094867",
"0.7094867",
"0.708774",
"0.70838696",
"0.7082184",
"0.7081503",
"0.7074928",
"0.7069543",
"0.70631075",
"0.7061777",
"0.70614165",
"0.7052532",
"0.70387715",
"0.70387715",
"0.703725",
"0.70366216",
"0.70366216",
"0.7033842",
"0.703188",
"0.7030853",
"0.70202804"
] | 0.0 | -1 |
Check unique name constraint for tariff. | public boolean hasUniqueName(final long id, final String name) {
Map<String, Object> params = new HashMap<>();
params.put("id", id);
params.put("name", name);
List<Tariff> resultList = tariffDao.getQueryResult(Tariff.HAS_UNIQUE_NAME, Tariff.class, params);
if (resultList.isEmpty()) {
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isExplicitUniqueCheckRequired();",
"@Override\n protected void checkElementNameUnique(Element element)\n {\n }",
"public boolean checkName(String name)\n {\n return true;\n }",
"@objid (\"ef9777b4-ed2a-4341-bb22-67675cddb70a\")\n boolean isIsUnique();",
"@Test(timeout = 4000)\n public void test106() throws Throwable {\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, \"L{#w9,'s5*5z&;09\", true, (String[]) null);\n String string0 = SQLUtil.constraintSpec(dBUniqueConstraint0, nameSpec0);\n assertEquals(\"CONSTRAINT L{#w9,'s5*5z&;09 UNIQUE ()\", string0);\n }",
"@Override\n public boolean isUhUuid(String naming) {\n return naming.matches(\"\\\\d+\");\n }",
"private void validateNamesUniqueness(String[] fieldNames) {\n Set<String> duplicatedNames = findDuplicates(fieldNames);\n if (duplicatedNames.size() != 0) {\n\n throw new ValidationException(\n String.format(\n \"Field names must be unique.\\n\"\n + \"List of duplicate fields: [%s].\\n\"\n + \"List of all fields: [%s].\",\n String.join(\", \", duplicatedNames), String.join(\", \", fieldNames)));\n }\n }",
"private boolean isNameValid(String name) {\n\n }",
"boolean isIsUnique();",
"boolean duplicatedUsername(String username);",
"@Test(timeout = 4000)\n public void test51() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"d*REA^ZGOc/_v\");\n String[] stringArray0 = new String[1];\n stringArray0[0] = \"d*REA^ZGOc/_v\";\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, (String) null, true, stringArray0);\n String string0 = SQLUtil.constraintName(dBUniqueConstraint0);\n assertEquals(\"\", string0);\n }",
"private boolean isSameNameExist(TreeNode tn, String checkName, boolean checkDirectory, String extension) {\n if (checkDirectory) {\n TreeNode[] childNodes = tree.getFolders(tn);\n for (TreeNode child : childNodes) {\n if (child.getName().equals(checkName)) {\n copyNumber = getCopyNumber(childNodes, checkName, \"\");\n return true;\n }\n }\n } else {\n for (TreeNode f : tree.getChildren(tn)) {\n if (fileTreeNodeFactory.getResource(f) instanceof VMFile) {\n VMFile res = (VMFile) fileTreeNodeFactory.getResource(f);\n if (res.getExtensionStr().equals(extension) && res.getName().equals(checkName)) {\n copyNumber = getCopyNumber(tree.getChildren(tn), checkName, extension);\n return true;\n }\n }\n }\n }\n return false;\n }",
"private boolean isRenameValid()\n{\n String ntext = rename_field.getText();\n if (!isValidId(ntext)) return false;\n if (ntext.equals(start_name)) return false;\n\n return true;\n}",
"boolean isUniqueAttribute();",
"boolean hasRename();",
"private void checkFileNames(DSpaceRunnable dSpaceRunnable, List<MultipartFile> files) {\n List<String> fileNames = new LinkedList<>();\n for (MultipartFile file : files) {\n String fileName = file.getOriginalFilename();\n if (fileNames.contains(fileName)) {\n throw new UnprocessableEntityException(\"There are two files with the same name: \" + fileName);\n } else {\n fileNames.add(fileName);\n }\n }\n\n List<String> fileNamesFromOptions = dSpaceRunnable.getFileNamesFromInputStreamOptions();\n if (!fileNames.containsAll(fileNamesFromOptions)) {\n throw new UnprocessableEntityException(\"Files given in properties aren't all present in the request\");\n }\n }",
"boolean isUniqueUsername(String username) throws SQLException;",
"private boolean isNameUnique(String name) {\n boolean isUnique = true;\n for (User user : this.users) {\n if (user.getName().equals(name)) {\n isUnique = false;\n break;\n }\n }\n return isUnique;\n }",
"void checkRename(Object oldId, Object newId) throws UPAException;",
"public static boolean isNameUnique(int ID, String name) throws IOException {\r\n if (pcQD == null) throw new IOException(\"Can't verify new component\");\r\n for (QuickDic qd : pcQD)\r\n if (qd.getID() != ID && qd.getFirstVal().equalsIgnoreCase(name))\r\n return false;\r\n return true;\r\n }",
"public boolean isSetUniqueName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(UNIQUENAME$10) != 0;\r\n }\r\n }",
"private boolean checkSameName(TreeNode[] tn, String checkName, boolean checkDirectory, String checkExtension) {\n boolean result = true;\n for (TreeNode treeNode : tn) {\n VMResource resource = ((FileTreeNode) treeNode).getResource();\n String tnName = resource.getName();\n if (tnName != null && tnName.equals(checkName)) {\n if (!checkDirectory && !tree.isFolder(treeNode) && resource instanceof VMFile) {\n String ext = ((VMFile) resource).getExtensionStr();\n if (ext == null || !ext.equals(checkExtension)) {\n continue;\n }\n } else if (checkDirectory != tree.isFolder(treeNode)) {\n continue;\n }\n return false;\n }\n }\n return result;\n }",
"public boolean isUnique();",
"boolean isUnique();",
"@Test(timeout = 4000)\n public void test092() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, \"times\", false, (String[]) null);\n String string0 = SQLUtil.constraintName(dBUniqueConstraint0);\n assertEquals(\"CONSTRAINT times \", string0);\n }",
"private static boolean duplicateSetName(String setName){\n boolean duplicate = false;\n for (Set set : SetManager.getInstance().getSets()) {\n if (set.getName() != null) {\n if (set.getName().equals(setName)) {\n duplicate = true;\n }\n }\n }\n return duplicate;\n }",
"private boolean checkName(String name) {\n if (!name.equals(\"\")) {\n //Check si le nom est déjà utilisé\n return myDbA.checkName(name);\n }\n return false;\n }",
"@Test\n\tpublic void IscaseNameExist(){\n\t\tString caseName = \"leather case\";\n\t\tboolean isExist;\n\t\ttry {\n\t\t\tisExist = CaseManagerValidator.isCaseNameExist(caseName);\n\t\t\tassertTrue(isExist);\n\t\t} catch (Exception e) {\n\t\t\tfail();\n\t\t}\n\t\t\n\t}",
"private boolean checkProfileNameUniquessLocal() {\r\n\t\tfor (int i = 0; i < parsedProfiles.size(); i++) {\r\n\t\t\tfor (int j = i + 1; j < parsedProfiles.size(); j++) {\r\n\t\t\t\tif (parsedProfiles.get(i).getName()\r\n\t\t\t\t\t\t.compareTo(parsedProfiles.get(j).getName()) == 0) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Test(timeout = 4000)\n public void test44() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"z}yVJPxVp_\";\n stringArray0[0] = \"z}yVJPxVp_\";\n stringArray0[2] = \"z}yVJPxVp_\";\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, \"z}yVJPxVp_\", false, stringArray0);\n NameSpec nameSpec0 = NameSpec.NEVER;\n String string0 = SQLUtil.constraintSpec(dBUniqueConstraint0, nameSpec0);\n assertEquals(\"UNIQUE (z}yVJPxVp_, , z}yVJPxVp_, )\", string0);\n }",
"private void verifyNames(BaseArtifactType artifact) {\n // First, build a list of all the names within this artifact.\n List<String> propertyNames = new ArrayList<String>();\n List<String> relationshipNames = new ArrayList<String>();\n for (Property property : artifact.getProperty()) {\n propertyNames.add(property.getPropertyName());\n }\n for (Relationship relationship : artifact.getRelationship()) {\n relationshipNames.add(relationship.getRelationshipType());\n }\n \n // Then, compare against both reserved and local names.\n for (String propertyName : propertyNames) {\n if (isReserved(propertyName)) {\n error = ArtificerConflictException.reservedName(propertyName);\n }\n if (relationshipNames.contains(propertyName)) {\n error = ArtificerConflictException.duplicateName(propertyName);\n }\n if (Collections.frequency(propertyNames, propertyName) > 1) {\n error = ArtificerConflictException.duplicateName(propertyName);\n }\n }\n for (String relationshipName : relationshipNames) {\n // \"relatedDocument\" is a unique case. Due to shortcomings in the S-RAMP spec, it's an actual field\n // on DerivedArtifactType. But, we also have to use it as a general relationship, since there is no\n // DerivedExtendedArtifactType (ie, if an extended artifact type is derived, it also needs that field,\n // but doesn't).\n // TODO: Fix that!\n if (!relationshipName.equals(\"relatedDocument\")) {\n if (isReserved(relationshipName)) {\n error = ArtificerConflictException.reservedName(relationshipName);\n }\n if (propertyNames.contains(relationshipName)) {\n error = ArtificerConflictException.duplicateName(relationshipName);\n }\n }\n }\n }",
"@Override\n\tpublic boolean isExist(String name) {\n\t\treturn false;\n\t}",
"@Test\n public void checkFilename(){\n boolean actual = rename.renameFile(\"jazz\",\"tomsmith\");\n assertTrue(actual);\n }",
"private void validateCanDeleteName(long truthSetId) throws NameSystemException {\n DbTruthSet dbTruthSet = getTruthSetDAO().get(truthSetId);\n if (dbTruthSet == null) {\n throw new NameDataException(getMessage(\"name.05.not_found\", truthSetId));\n }\n\n List<DbTruth> dbAttrs = getTruthDAO().getByNameId(truthSetId);\n if (dbAttrs != null && dbAttrs.size() > 0) {\n //TODO: Need log entry to bring up to current logging standard\n throw new NameDataException(getMessage(\"name.06.has_attr\", truthSetId));\n }\n }",
"static public boolean isSanitaryName(String name) {\n return sanitizeName(name).equals(name);\n }",
"public boolean supportsUnique() {\n \t\treturn true;\n \t}",
"public static boolean isUnique(String name, String[] array1) {\n\t\t\n\t\t// Searches through the store item arrays and see if it's the same\n\t\tfor (int i = 0; i < array1.length; i++) {\n\t\t\tif (name.equals(array1[i])) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"static public String checkName(String origName) {\n String newName = sanitizeName(origName);\n\n if (!newName.equals(origName)) {\n String msg =\n _(\"The sketch name had to be modified. Sketch names can only consist\\n\" +\n \"of ASCII characters and numbers (but cannot start with a number).\\n\" +\n \"They should also be less than 64 characters long.\");\n System.out.println(msg);\n }\n return newName;\n }",
"public boolean isDuplicateName(String name) {\n return presenter.isDuplicateName(name);\n }",
"boolean checkNoDuplicateFields() {\n\t if (duplicateNames == null | duplicateNames.isEmpty())\n\t return true;\n\t Iterator iter = duplicateNames.iterator();\n\t String names = \"\";\n\t while (iter.hasNext()) {\n\t names = names + iter.next(); \n\t }\n\t cat.error(loc,DUPLICATE_COLUMN_NAMES,new Object[] {names});\n\t return false;\n\t }",
"private boolean isZipEntryNameAllowed(String [] zipEntryNames) {\n if(zipEntryNames != null)\n for(int i=0; i<zipEntryNames.length; i++) {\n if(TextUtils.isEmpty(zipEntryNames[i])) {\n Log.d(TAG, \"zipEntryName \"+i+\"is empty or null\");\n return false;\n }\n for(int j=i+1; j<zipEntryNames.length ; j++){\n Log.d(TAG, \"compare #\"+i+\" : \"+zipEntryNames[i]+\" with #\"+j+\" : \"+zipEntryNames[j]); // TODO : remove this line\n if(zipEntryNames[i] != null && zipEntryNames[i].equals(zipEntryNames[j])) {\n Log.d(TAG, \"zipEntryName can't be duplicate, \"+i+\" : \"+zipEntryNames[i]+\" with \"+j+\" : \"+zipEntryNames[j]);\n return false;\n }\n }\n }\n return true;\n }",
"private boolean checkProfileNameUniqueness(boolean userDialog) {\r\n\t\tboolean duplicateNameOccours = false;\r\n\t\t/**\r\n\t\t * Over the new imported profiles\r\n\t\t */\r\n\t\tfor (int i = 0; i < parsedProfiles.size(); i++) {\r\n\t\t\tCurve p = parsedProfiles.get(i);\r\n\t\t\t/**\r\n\t\t\t * Handle the case that the profile name is not unique\r\n\t\t\t */\r\n\t\t\tif (!controller.isProfileNameGlobalUnique(p.getName())\r\n\t\t\t\t\t&& selectedProfiles.get(i)) {\r\n\t\t\t\t/**\r\n\t\t\t\t * Indicate duplicate profile names\r\n\t\t\t\t */\r\n\t\t\t\tduplicateNameOccours = true;\r\n\t\t\t\t/**\r\n\t\t\t\t * Provide a user interface to change the profile name\r\n\t\t\t\t */\r\n\t\t\t\tif (userDialog) {\r\n\t\t\t\t\t/**\r\n\t\t\t\t\t * In the other case ask the user for a different name\r\n\t\t\t\t\t */\r\n\t\t\t\t\tString dialogTitle = \"Duplicate profile name\";\r\n\t\t\t\t\tString dialogMsg = \"The profile name \\\"\" + p.getName()\r\n\t\t\t\t\t\t\t+ \"\\\" already exists globally.\\n\"\r\n\t\t\t\t\t\t\t+ \"Please enter a globally unique\"\r\n\t\t\t\t\t\t\t+ \" profile name.\";\r\n\t\t\t\t\tString dialogRet = JOptionPane.showInputDialog(null,\r\n\t\t\t\t\t\t\tdialogMsg, dialogTitle, JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t/**\r\n\t\t\t\t\t * Only store the new name if not empty\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif (dialogRet != null) {\r\n\t\t\t\t\t\tif (!dialogRet.isEmpty()) {\r\n\t\t\t\t\t\t\tp.setName(dialogRet);\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\r\n\t\t/**\r\n\t\t * Check also if there exists local uniqueness if the comparison against\r\n\t\t * the global names found no error.\r\n\t\t */\r\n\t\tif (duplicateNameOccours == false) {\r\n\t\t\tduplicateNameOccours = checkProfileNameUniquessLocal();\r\n\t\t}\r\n\r\n\t\treturn duplicateNameOccours;\r\n\t}",
"private void generateFileNameValidationChecks(FileValidationReport fileValRep) {\n\t\tList<FileNameValidationCheck> fileNameChecks = new ArrayList<>();\n\n\t\tfor (FileNameValidationRule rule : fileNameRules) {\n\t\t\tFileNameValidationCheck check = FileNameRuleChecker.checkByValidatingUploadWithRule(rule, fileUpload,\n\t\t\t\t\tthis.regExPatternMap);\n\t\t\tif (check.getOutcome() == ValidationOutcome.NOT_VALID) {\n\t\t\t\tfileNameChecks.add(check);\n\t\t\t}\n\t\t}\n\n\t\tfileValRep.addFailedChecks(fileNameChecks);\n\t}",
"@Test\n public void testIsValidName() {\n FieldVerifier service = new FieldVerifier();\n String name = \"toto\";\n boolean result = service.isValidName(name);\n assertEquals(true, result);\n }",
"private void ensureNameExists(String name) throws BadFileException {\n\t\tif (name.equals(\"OuterWalls\") || boardItemMap.containsKey(name)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthrow new BadFileException(name + \" name does not exist yet\");\r\n\t}",
"public boolean isValidName(String proposedName);",
"boolean isUnique(TextField inputPartNumber);",
"private boolean duplicationCheck(String userName) {\n\t\tboolean ret = true;\n\t\tif(obs.isEmpty()) {\n\t\t\tret = true;\n\t\t}\n\t\telse {\n\t\t\tfor(int i=0; i<obs.size(); i++) {\n\t\t\t\tif(obs.get(i).getUserName().compareTo(userName) == 0) {\n\t\t\t\t\tret = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tret = true;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}",
"public boolean verificaUnicidadeNome() {\n\t\tif(!EntidadesDAO.existeNome(entidades.getNome())) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}",
"boolean isNameRequired();",
"public boolean isSetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(NAME$8) != 0;\n }\n }",
"@ARule(\n\t\t\tdate = \"9/14/2006\",\t\t\n\t\t\tdesc = \"Check the target variable NCName\",\n\t\t\tauthor = \"michal.chmielewski@oracle.com\",\n\t\t\terrors=\"BPELC__UNSET_ATTRIBUTE,General.NCName_Bad\"\n\t\t)\t\n\tpublic void rule_CheckName_1 () {\t\t\t\t\t\n\t\t// Must be a valid NCName ...\n\t\tcheckNCName(mNode, ncName, AT_LINK_NAME );\t\t\t\n\t}",
"public boolean isCompanyShortNameTaken(String shortName);",
"private boolean validateFile(JTextField fileTF,\n Component parentComp) {\n if (fileTF.getText().trim().length() == 0)\n {\n JOptionPane.showMessageDialog(parentComp,\n \"Please enter a file name in the file field\",\n \"No File Name\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n String text = fileTF.getText().trim();\n File file = new File(text);\n if (!file.exists())\n {\n JOptionPane\n .showMessageDialog(\n parentComp,\n \"The file you entered does not exist. Please enter a valid file name\",\n \"Incorrect File Name\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n return true;\n }",
"public boolean checkPuNameCollisions(Log logger,String puName){\n PUNameCollision p = _puNameCollisions.get(puName);\n if (p != null){\n p.logCollision(logger);\n return true;\n }\n return false;\n }",
"public boolean checkName(String name)\n {\n boolean value = true;\n if(name.length() < 3 || name.length() > 15)\n {\n System.out.println(\"Name must be between 3 and 15 characters\");\n value = false;\n }\n return value;\n }",
"protected void validateFile() {\r\n\t\tFile f = new File(FileUltil.joinPath(dOutputFolder, dFileName));\r\n\t\tif (f.exists() && !f.isDirectory()) {\r\n\t\t\tdFileName = \"Copy of \" + dFileName;\r\n\t\t\tvalidateFile();\r\n\t\t}\r\n\t}",
"private void checkFileCreation(String name) throws IOException {\n byte[] buff = \"some bytes\".getBytes();\n writeFile(name, buff);\n assertTrue(Arrays.equals(buff, readFile(name, buff.length)));\n }",
"public void checkMakeFile(String name) throws FileExistsException\n\t{\n\t\tIterable<Position<FileElement>> toCheck = fileSystem.children(currentFileElement);\n\t\tif (toCheck != null)\n\t\t{\n\t\t\tfor (Position<FileElement> fe : toCheck )\n\t\t\t{\n\t\t\t\tif (fe.toString().equals(name))\n\t\t\t\t{\n\t\t\t\t\tthrow new FileExistsException(name);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public boolean isValidName(TextInputLayout tiName, EditText etName) {\n String name = etName.getText().toString().trim();\n boolean result = false;\n\n if (name.length() == 0)\n tiName.setError(c.getString(R.string.required));\n else if (name.length() < NAME_MIN_SIZE)\n tiName.setError(c.getString(R.string.minLength, Integer.toString(NAME_MIN_SIZE)));\n else if (name.length() > NAME_MAX_SIZE)\n tiName.setError(c.getString(R.string.maxLength, Integer.toString(NAME_MAX_SIZE)));\n else {\n result = true;\n tiName.setError(null);\n }\n return result;\n }",
"@Deprecated\n boolean checkNameExistence(String documentName) throws NonUniqueResultException;",
"public static boolean isValidName(String name) {\n\t\tif (name == null) {\n\t\t\treturn false;\n\t\t}\n\t\treturn name.length() > 3;\n\t}",
"@Nonnull\n String getUniqueName();",
"@Test\n\tpublic void IscaseNameNotExist(){\n\t\tString caseName = \"Real 3D Cases\";\n\t\tboolean isExist;\n\t\ttry {\n\t\t\tisExist = CaseManagerValidator.isCaseNameExist(caseName);\n\t\t\tassertFalse(isExist);\n\t\t} catch (Exception e) {\n\t\t\tfail();\n\t\t}\n\t\t\n\t}",
"@Test\r\n\tpublic void testNameInvalid() {\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"*\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"-\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"0-\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"324tggs\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"-feioj\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"/\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"@\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\" \"));\r\n\t}",
"public interface UniqueValidable {\n\n boolean isUnique(String fieldName, String value);\n\n}",
"@Test(timeout = 4000)\n public void test013() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"%KPzc}nCj\\\"i,>gZj u\");\n String[] stringArray0 = new String[1];\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, \"\\\"\", false, stringArray0);\n NameSpec nameSpec0 = NameSpec.NEVER;\n StringBuilder stringBuilder0 = SQLUtil.appendConstraintName((DBConstraint) dBUniqueConstraint0, (StringBuilder) null, nameSpec0);\n assertNull(stringBuilder0);\n }",
"public boolean isSetName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(NAME$2) != null;\r\n }\r\n }",
"@Test(timeout = 4000)\n public void test139() throws Throwable {\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n // Undeclared exception!\n try { \n SQLUtil.ukSpec((DBUniqueConstraint) null, nameSpec0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"public boolean nameValidation(String name) {\n\t char[] chars = name.toCharArray();\n\t int tempNum = 0;\n\t for (char c : chars) {\n\t tempNum += 1;\n\t \tif(!Character.isLetter(c)) {\n\t return false;\n\t }\n\t }\n\t if (tempNum == 0)\n\t \treturn false;\n\n\t return true;\n\t}",
"private boolean fileNameExists(String fileName) {\n return inputOutputStream.hexists(Constants.DIR_METADATA_BYTES, fileName.getBytes());\n }",
"protected boolean puedeValidar(String nameHash, String pkHash) {\n\t\tif (caHash.containsKey(nameHash))\n\t\t\treturn (((String)caHash.get(nameHash)).equals(pkHash));\n\t\treturn false;\n\t}",
"@Test\n\tpublic void testIsUniqueOnUniqueString() {\n\t\tassertTrue(ArraysAndStrings.isUnique(UNIQUE_CHARACTERS));\n\t}",
"public boolean isValidName(String name)\r\n {\r\n // check for illegal combinations of characters\r\n // this is probably not a complete check, but hopefully it is good enough\r\n if ( (name == null) ||\r\n (name.equals(\"\")) ||\r\n Character.isUpperCase(name.charAt(0)) ||\r\n containsSubString(name, TIGHT_BINDING) ||\r\n containsSubString(name, LOOSE_BINDING) ||\r\n containsSubString(name, SINGLE_MATCH) ||\r\n containsSubString(name, \"/\") ||\r\n containsSubString(name, \" \") ||\r\n containsSubString(name, \"\\t\") ||\r\n containsSubString(name, \"\\n\") ||\r\n name.equals(UNIQUE_NAME) )\r\n {\r\n return false;\r\n }\r\n\r\n return true;\r\n }",
"private boolean isValidName(String name)\n {\n String reg = \"^[a-zA-Z]+$\";\n return name.matches(reg);\n }",
"@SuppressWarnings(\"ConstantConditions\")\n @Override\n public Boolean isNameAlreadyExist(Dress dress) {\n LOGGER.debug(\"is name exists - {}\", dress);\n MapSqlParameterSource parameterSource = new MapSqlParameterSource();\n if (dress.getDressId() == null) {\n parameterSource.addValue(DRESS_ID, 0);\n } else {\n parameterSource.addValue(DRESS_ID, dress.getDressId());\n }\n parameterSource.addValue(DRESS_NAME, dress.getDressName());\n return jdbcTemplate.queryForObject(uniqueNameSql, parameterSource,\n Integer.class) != 0;\n }",
"String generateUniqueName();",
"public boolean verifyFastName(String FastName)\r\n {\r\n FastName = FastName.trim();\r\n\r\n if(FastName == null || FastName.isEmpty() || !FastName.matches(\"[a-zA-Z]*\"))\r\n {\r\n return false;\r\n }\r\n else\r\n {\r\n return true;\r\n }\r\n }",
"@Test\n public void shouldReturnUniqueCodenames()\n {\n String[] codenames = DatabaseHelper.getRandomCodenames(25);\n boolean noMatches = true;\n\n\n for (int i = 0; i < codenames.length-1; i++)\n {\n for (int j = i+1; j < codenames.length; j++)\n {\n if (codenames[i] == codenames[j])\n {\n noMatches = false;\n // Here to give more detailed feedback in case the test fails.\n System.out.println(\"Match found: \" + codenames[i] + \" \" + codenames[j]);\n }\n }\n }\n\n assert(noMatches);\n }",
"boolean isSetName();",
"public boolean isSetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(NAME$0) != 0;\n }\n }",
"public boolean isSetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(NAME$0) != 0;\n }\n }",
"public boolean nameValidation(String username){\n return !(username.isEmpty() || !username.matches(\"[a-zA-Z0-9_-]+\"));\n }",
"@Override\n\t@Transactional(readOnly=true)\n\tpublic boolean isUsernameUnique(String username) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean pathUnique(String path) {\n\t\treturn false;\n\t}",
"@Test(timeout = 4000)\n public void test052() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String[] stringArray0 = new String[2];\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, (String) null, false, stringArray0);\n StringBuilder stringBuilder0 = new StringBuilder(763);\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n StringBuilder stringBuilder1 = SQLUtil.appendConstraintName((DBConstraint) dBUniqueConstraint0, stringBuilder0, nameSpec0);\n assertEquals(\"\", stringBuilder1.toString());\n }",
"private boolean isValidExtension(String originalName) {\n String originalNameExtension = originalName.substring(originalName.lastIndexOf(\".\") + 1);\n switch(originalNameExtension) {\n case \"jpg\":\n case \"png\":\n case \"gif\":\n return true;\n }\n return false;\n }",
"private String checkDuplicateName(List<VMResource> result, String fileName, Extension extension, int index) {\n String childFileName = fileName;\n int num = index;\n if (num > 0) {\n childFileName = fileName + num;\n }\n boolean isAlreadyExist = false;\n for (VMResource resource : result) {\n if (resource instanceof VMFile) {\n VMFile file = (VMFile) resource;\n if (file.getName().equals(childFileName) && file.getExtension().equals(extension)) {\n isAlreadyExist = true;\n break;\n }\n }\n }\n if (isAlreadyExist) {\n childFileName = checkDuplicateName(result, fileName, extension, ++num);\n }\n return childFileName;\n }",
"private boolean checkFile(String name) {\n return name.endsWith(extension);\n }",
"private static boolean isValidFileName(String name) {\n\t\tif(name.indexOf('.') != -1 && name.length() != 0) return true;\n\t\telse System.out.println(\"\\nFilenames must include the file's extension.\"); return false;\n\t}",
"@Test\n\tpublic void testGenerateAndValidateCompanyUniqueness() throws Exception {\n\n\t}",
"public boolean checkCreator (String nickname) {\r\n\t\treturn (creator.equals(nickname));\r\n\t}",
"public boolean isSetName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(NAME$0) != 0;\r\n }\r\n }",
"boolean hasConflictingUuid(UUID uuid);",
"@Test(timeout = 4000)\n public void test001() throws Throwable {\n String[] stringArray0 = new String[20];\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n DBPrimaryKeyConstraint dBPrimaryKeyConstraint0 = new DBPrimaryKeyConstraint(defaultDBTable0, \" = \", false, stringArray0);\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n String string0 = SQLUtil.ukSpec(dBPrimaryKeyConstraint0, nameSpec0);\n assertEquals(\"CONSTRAINT \\\" = \\\" UNIQUE (, , , , , , , , , , , , , , , , , , , )\", string0);\n }",
"public boolean exists(String name) throws IOException;",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();"
] | [
"0.58990663",
"0.58745384",
"0.572218",
"0.5719151",
"0.5704271",
"0.56942487",
"0.5682938",
"0.5666623",
"0.56236345",
"0.5619205",
"0.5618519",
"0.5544814",
"0.5538313",
"0.553147",
"0.5523995",
"0.55110717",
"0.55100054",
"0.55013585",
"0.55003035",
"0.5499679",
"0.54730344",
"0.5469638",
"0.54608613",
"0.54220825",
"0.5399883",
"0.53935015",
"0.5381493",
"0.53660136",
"0.53456444",
"0.5336975",
"0.533569",
"0.5326269",
"0.53041255",
"0.5298588",
"0.52840054",
"0.52811795",
"0.5275672",
"0.5273963",
"0.52732414",
"0.52702177",
"0.5266494",
"0.5257045",
"0.5255897",
"0.5248617",
"0.52469915",
"0.52410805",
"0.52312785",
"0.5226551",
"0.52162075",
"0.52155936",
"0.5207944",
"0.52053726",
"0.5190834",
"0.5180225",
"0.517544",
"0.5161026",
"0.51518685",
"0.5143947",
"0.5122402",
"0.51171625",
"0.51160467",
"0.51081264",
"0.5103499",
"0.508572",
"0.5084272",
"0.50707",
"0.506942",
"0.5062428",
"0.50592405",
"0.50542",
"0.5047864",
"0.5047727",
"0.5046327",
"0.5046151",
"0.5045216",
"0.5038734",
"0.5037896",
"0.5034801",
"0.5033561",
"0.5027788",
"0.5024705",
"0.5024705",
"0.5023776",
"0.5010544",
"0.50100595",
"0.50072986",
"0.50048107",
"0.49972275",
"0.49910086",
"0.49612102",
"0.49530494",
"0.49509597",
"0.49453434",
"0.49415022",
"0.4935953",
"0.49339315",
"0.49311063",
"0.49311063",
"0.49311063",
"0.49311063"
] | 0.59468234 | 0 |
return this.productionYear > o.getProductionYear() ? 1 : this.productionYear < o.getProductionYear() ? 1 : 0; | @Override
public int compareTo(final Car o) {
return Integer.compare(this.productionYear,o.getProductionYear());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic int compare(Movie o1, Movie o2) {if (o1.getYear() > o2.getYear())\n//\t\t\treturn 1;\n//\t\tif (o1.getYear() < o2.getYear()) \n//\t\t\treturn -1;\n//\t\telse \n//\t\t\treturn 0;\n//\t\t\n\t\treturn o1.getYear() - o2.getYear();\n\t}",
"@Override\n public int compareTo(Date ARG) {\n if (year < ARG.year)\n {\n \treturn -1;\n }\n else if( year > ARG.year)\n {\n \treturn 1;\n }\n \n else{\n \tif (dayOfMonth < ARG.dayOfMonth)\n \t{\n \t\treturn -1; \n \t\t\n \t}\n \telse if (dayOfMonth > ARG.dayOfMonth)\n \t{\n \t\treturn 1; \n \t}\n \telse\n \t{\n \t\tif (dayOfMonth < ARG.dayOfMonth)\n \t\t{\n \t\t\treturn -1;\n \t\t}\n \t\telse if(dayOfMonth > ARG.dayOfMonth)\n \t\t{\n \t\t\treturn 1;\n \t\t}\n \t\telse\n \t\t{\n \t\t\treturn 0; \n \t\t}\n \t}\n \t\n } \t\n }",
"@Override\n public int compareTo(Date that) {\n if (this.year < that.year) return -1;\n if (this.year > that.year) return 1;\n if (this.month < that.month) return -1;\n if (this.month > that.month) return 1;\n if (this.day < that.day) return -1;\n if (this.day > that.day) return 1;\n return 0;\n }",
"public int getEndingYear()\n {\n return -1;\n }",
"public int compare(Date d){\n\t if (this.year < d.year)\n\t return 1;\n\t else if (this.year > d.year)\n\t return -1;\n\t else{\n\t int cM = this.month.compareMonth(d.month);\n\t if (cM != 0)\n\t\treturn cM;\n\t else{\n\t\tif (this.day < d.day)\n\t\t return 1;\n\t\telse if (this.day > d.day)\n\t\t return -1;\n\t\telse\n\t\t return 0;\n\t }\n\t }\n }",
"@Override\n public int compareTo(Date date) {\n if (this.year > date.year) {\n return 1;\n } else if (this.year < date.year) {\n return -1;\n } else if (this.year == date.year) {\n if (this.month > date.month) {\n return 1;\n } else if (this.month < date.month) {\n return -1;\n } else if (this.month == date.month) {\n if (this.day > date.day) {\n return 1;\n } else if (this.day < date.day) {\n return -1;\n } else if (this.day == date.day) {\n return 0;\n }\n }\n }\n return 0;\n }",
"public int compareTo(Group3Date that) {\n\t\t\tif (this.year < that.year) return -1;\n\t\t\tif (this.year > that.year) return +1;\n\t\t\tif (this.month < that.month) return -1;\n\t\t\tif (this.month > that.month) return +1;\n\t\t\tif (this.day < that.day) return -1;\n\t\t\tif (this.day > that.day) return +1;\n\t\t\treturn 0;\n\t\t}",
"public BigDecimal getPriorYear() {\n return priorYear;\n }",
"public int compare(Date date){\n if(date.getYear() > this.year){\n return -1;\n }else if(date.getYear() < this.year){\n return 1;\n }\n\n if(date.getMonth() > this.month){\n return -1;\n }else if(date.getMonth() < this.month){\n return 1;\n }\n\n if(date.getDay() > this.day){\n return -1;\n }else if(date.getDay() < this.day){\n return 1;\n }\n\n return 0;\n }",
"@Override\n public int compareTo(MetalNode arg0) {\n\n int iResult=0;\n\n if (this.getDate()==arg0.getDate())\n {\n iResult=0;\n }\n else if (this.getDate()>arg0.getDate())\n {\n iResult=1;\n }\n else if (this.getDate()<arg0.getDate())\n {\n iResult=-1;\n }\n\n\n return iResult;\n }",
"public boolean lessThan(MyDate other){\t\n \t\tif (other.year > year){\n \t\t\treturn true;\n \t\t}\n \t\telse if (other.year == year){\n \t\t\tif (other.month > month){\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\telse if (other.month == month){\n \t\t\t\tif (other.day > day){\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n\n \t\treturn false;\n\t}",
"static int compar(int d1,int m1, int y1,int d2,int m2, int y2 )\n{\n if(y1>y2)\n return 1;\n if(y1<y2)\n return -1;\n \n if(m1>m2)\n return 1;\n if(m1<m2)\n return -1;\n \n if(d1>d2)\n return 1;\n if(d1<d2)\n return -1;\n \n \n \n return 0;\n \n \n}",
"public int compareYear(Song other) {\n return this.year.compareTo(other.getYear());\n }",
"public int compareTo(DateTemperaturePair pair) {\n int compareValue = this.yearMonth.compareTo(pair.getYearMonth());\n if(compareValue == 0){\n compareValue = temperature.compareTo(pair.getTemperature());\n }\n /*ascending*/\n return compareValue;\n /*descending*/\n// return -1*compareValue;\n }",
"public int compare(Movie a, Movie b) {\n\t\tif (a.getTicketSales()>b.getTicketSales())\n\t\t\treturn -1;\n\t\telse if (a.getTicketSales()<b.getTicketSales())\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn 0;\n\t}",
"@Override\n public int compare(Date date1, Date date2) {\n if (date1.getDay() < date2.getDay() || date1.getMonth() < date2.getMonth() || date1.getYear() < date2.getYear())\n return -1;\n\n else if (date1.getDay() > date2.getDay() || date1.getMonth() > date2.getMonth() || date1.getYear() > date2.getYear())\n return 1;\n\n return 0;\n\n //Finally sort wins according to the -1, 0, 1 ascending order\n }",
"public int getLowerYear()\r\n {\r\n return getInt(LowerYear_, 0);\r\n }",
"@Test\n public void compareToWithMainDateInThePast(){\n Date date = new Date(1,Month.january,1970);\n assertEquals(date.compareTo(new Date(31,Month.december,1970)),-1);\n }",
"boolean wasSooner (int[] date1, int[] date2) {\n\n// loops through year, then month, then day if previous value is the same\n for (int i = 2; i > -1; i--) {\n if (date1[i] > date2[i])\n return false;\n if (date1[i] < date2[i])\n return true;\n }\n return true;\n }",
"public int getStartingYear()\n {\n return 2013;\n }",
"public int getMinYearAmount() {\r\n return minYearAmount;\r\n }",
"public int getYearmade()\n {\n return yearmade;\n }",
"@Override\r\n public int compareTo(TennisMatch match) {\r\n if(getDateYear() < match.getDateYear()) {\r\n return 1;\r\n } else if(getDateYear() == match.getDateYear()\r\n && getDateMonth() < match.getDateMonth()) {\r\n return 1;\r\n } else if(getDateYear() == match.getDateYear()\r\n && getDateMonth() == match.getDateMonth()\r\n && getDateDay() < match.getDateDay()) {\r\n return 1;\r\n } else {\r\n return 0;\r\n }\r\n }",
"@Override\n\tpublic int compareTo(Object o) {\n\t\tint resultado=0;\n if(o instanceof Drink) {\n \t\n \tDrink aux=(Drink) o;\n \t\n \tif (this.sold<aux.sold) { resultado = -1; }\n else if (this.sold>aux.sold) { resultado = 1; }\n }\n \t\n return resultado;\n\t}",
"public int getYearLevel(){\r\n return yearLevel;\r\n }",
"public static void main(String[] args) {\nDate d1 = new Date( 2019, 02, 22);\nSystem.out.println(d1);\n\n\nDate d2= new Date();\nSystem.out.println(d2);\nDate d3 = new Date(2000,11,11);\nSystem.out.println(d3);\nint a = d1.compareTo(d3);\nSystem.out.println(a);\nboolean b = d1.after(d2);\n\tSystem.out.println(b);\n\t}",
"public int getNoPaymentsYearly(){return this.no_payments_yearly;}",
"public JwComparator<AcUpuTagSummaryVo> getDispatchYearComparatorNullsLower()\n {\n return DispatchYearComparatorNullsLower;\n }",
"public int compareTo(Date b) {\r\n\t\tif (year != b.year)\r\n\t\t\treturn year - b.year;\r\n\t\tif (month != b.month)\r\n\t\t\treturn month - b.month;\r\n\t\treturn day - b.day;\r\n\t}",
"@Override\r\n\t public int compareTo(Interval o) {\n\r\n\t SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\r\n\t try{\r\n\t Date startDate = sdf.parse(start);\r\n\t Date endDate = sdf.parse(end);\r\n\t Date pstartDate = sdf.parse(o.start);\r\n\t Date pendDate = sdf.parse(o.end);\r\n\r\n\t return startDate.compareTo(pstartDate);\r\n\r\n\t }catch(Exception ex){\r\n\t ex.printStackTrace();\r\n\t }\r\n\t return 0;\r\n\t }",
"@Override\n public int compareTo(RevisionId o) {\n return isProduction() != o.isProduction() ? Boolean.compare(isProduction(), o.isProduction())\n : Long.compare(number, o.number);\n }",
"public int getNoYears(){return this.no_years;}",
"protected int compareForNulls(Object o1, Object o2) {\r\n if(o1 == null && o2 == null) return 0;\r\n if(o1 == null) {\r\n if(nullIsGreater) return 1;\r\n else return -1;\r\n }\r\n else if(o2 == null) {\r\n if(nullIsGreater) return -1;\r\n else return 1;\r\n }\r\n else {\r\n return 0; // both are non-null;\r\n }\r\n }",
"public int compareTo( Part rhs )\r\n\t{\r\n\r\n\t\tif(make.compareTo(rhs.getMake()) == 1)\t\t\t\r\n\t\t\treturn 1;\r\n\t\telse if(make.compareTo(rhs.getMake()) == -1)\r\n\t\t\treturn -1;\r\n\t\telse if(make.compareTo(rhs.getMake()) == 0){\r\n\t\t\t\r\n\t\t\tif(mode.compareTo(rhs.getMode()) == 1)\r\n\t\t\t\treturn 1;\r\n\t\t\telse if(mode.compareTo(rhs.getMode()) == -1)\r\n\t\t\t\treturn -1;\r\n\t\t\telse if(mode.compareTo(rhs.getMode()) == 0){\r\n\t\t\t\t\r\n\t\t\t\tif(year < rhs.getYear())\r\n\t\t\t\t\treturn -1;\r\n\t\t\t\telse if(year > rhs.getYear())\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\telse\r\n\t\t\t\t\treturn 0;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\tthrow new IllegalStateException(\"You Suck\");\r\n\r\n\r\n\t\t\r\n\t}",
"@Test\n public void compareFunctionalSmaller() {\n HighScoreComparator comparator2 = new HighScoreComparator();\n int a;\n a = comparator2.compare(p2, p1);\n \n assertEquals(1, a);\n }",
"int moverseY(int a,int b){ \n if(b<a){\n return 0;\n }else{\n return 1;\n }//fin else2\n //fin else\n }",
"@Override\r\n\t public int compare(Student_UsingComparator obj1, Student_UsingComparator obj2){\n\t\t return obj2.rollno-obj1.rollno;\r\n\t }",
"public void sortBasedYearService();",
"@Override\r\n\tpublic int compare(Movie o1, Movie o2) {\n\t\t\r\n\t\tif(o1.getRating()<o2.getRating()) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\tif(o1.getRating()>o2.getRating()) {\r\n\t\t\treturn 1;\r\n\t\t}else {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}",
"public int compareTo(City o) {\n\t\tif (polulation> o.polulation) {\n\t\t\treturn 1;\n\t\t} else if (polulation < o.polulation) {\n\t\t\treturn -1;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}",
"public int getYearReleased(){\n\t\treturn this.YEAR_RELEASED;\n\t}",
"@Override\r\n\t\t\tpublic int compare(Developer o1, Developer o2) {\n\t\t\t\treturn o2.getAge()-o1.getAge();\r\n\t\t\t}",
"@Test\n public void compareFunctionalBigger() {\n HighScoreComparator comparator2 = new HighScoreComparator();\n int a;\n a = comparator2.compare(p1, p2);\n \n assertEquals(-1, a);\n\n }",
"Integer getTenYear();",
"public int compare(Submission lhs, Submission rhs) {\n\t\tint firstCriteria = lhs.getStatus().compareTo(rhs.getStatus());\n\t\tif (firstCriteria != 0)\n\t\t\treturn firstCriteria;\n\t\treturn lhs.getProposedDate().compareTo(rhs.getProposedDate());\n\t}",
"@Override\n\tpublic int compareTo(Object another) {\n\t\treturn this.code - ((Semester) another).getCode();\n\t}",
"public int compare1(Student o1, Student o2)\r\n\t\t\t\t\t{\n\t\t\t\t\treturn 0;\r\n\t\t\t\t\t}",
"public int getYear(){\n\t return this.year;\n }",
"@Test\n public void testCompareToLess() {\n assertTrue(o1.compareTo(o_test) < 0);\n }",
"public int compareTo(Date212 other) { //compareTo method\n int result = 00; //intialize int return value.\n Date date1 = new Date(), date2 = new Date(); //initalize\n\nSimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\n try {\n date1 = sdf.parse(full_Date); //The object calling this method.\n date2 = sdf.parse(other.full_Date); //Other date212 object being passed in.\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n //Try-catch block for parsing & formatting dates.\n \n // System.out.println(\"date1 : \" + sdf.format(date1));\n // System.out.println(\"date2 : \" + sdf.format(date2));\n\n Calendar cal1 = Calendar.getInstance(); \n Calendar cal2 = Calendar.getInstance();\n cal1.setTime(date1);\n cal2.setTime(date2);\n /*\n Use of the Calendar library and methods to compare the dates.\n */\n\n\n //cal1 is the object calling this method\n //cal2 is the object passed in.\n if (cal1.after(cal2)) { \n // System.out.println(\"Date1 is after Date2\");\n result = 1;\n }\n\n if (cal1.before(cal2)) {\n // System.out.println(\"Date1 is before Date2\");\n result = -1;\n }\n\n if (cal1.equals(cal2)) {\n System.out.println(\"Date1 is equal Date2\");\n result = 0;\n }\n return result; //Returns what the if blocks made result to be.\n }",
"@Test\r\n public void testCompareTo2() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"8/21/2000\");\r\n assertFalse(d1.compareTo(d2) < 0);\r\n }",
"@Override\r\n\tpublic int compare(Moviesda o1, Moviesda o2) {\n\t\treturn 0;\r\n\t}",
"public int compare(Object o1, Object o2) {\n variable v1 = (variable) o1;\n variable v2 = (variable) o2;\n\n if (v1.whenSet < v2.whenSet) return -1;\n if (v1.whenSet == v2.whenSet) return 0;\n return 1;\n }",
"public int compareToCal(YuanC_LuH_Food a)\n\t{\n\t\tif(calories<a.getCalories())\n\t\t\treturn -1;\n\t\telse if(calories>a.getCalories())\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn 0;\n\t}",
"public Integer getFirstYearAttended() {\n return firstYearAttended;\n }",
"public int comparePartialTo(Date b) {\r\n\t\tif (year != b.year)\r\n\t\t\treturn year - b.year;\r\n\t\tif (month != b.month)\r\n\t\t\treturn month - b.month;\r\n\t\treturn 0;\r\n\t}",
"public int getYear()\n {\n return yr;\n }",
"public int compare(Visit<Integer,Integer> arg0, Visit<Integer,Integer> arg1) {\n\t\tDate d1 = arg0.getVisitDate();\r\n\t\tDate d2 = arg1.getVisitDate();\r\n\t\treturn d1.after(d2) ? 1 : -1; //if d1 is after d2, return 1, else return -1 (d2 is after d1). \r\n\t}",
"public boolean orgFirstYear(Object bean,\r\n\t\t\tValidatorAction va, Field field, ActionMessages msgs,\r\n\t\t\tHttpServletRequest request) {\r\n\r\n\t\tSystemConfigForm sysConfigForm = (SystemConfigForm)bean;\r\n\t\t\r\n\t\tString orgYear = sysConfigForm.getOrgFirstYear();\r\n\t\tint intOrgYear = Integer.parseInt(orgYear);\r\n\t\t\r\n GregorianCalendar ct = new GregorianCalendar();\r\n int currentYear = ct.get(Calendar.YEAR);\t\t\r\n\r\n\t\tif (intOrgYear > currentYear) {\t\t\t\r\n\t\t\t\tmsgs.add(field.getKey(), new ActionMessage(\"error.orgfirstyear\", String.valueOf(currentYear)));\r\n\t\t\t\tsaveErrors(request, msgs);\r\n\t\t}\r\n\t\treturn msgs.isEmpty();\r\n\t}",
"@Override\n\tpublic void oneYearAgo(int year) {\n\n\t}",
"@Test\r\n public void testCompareTo1() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"8/21/2000\");\r\n assertTrue(d1.compareTo(d2) > 0);\r\n }",
"public int compare(Expense ideaVal1, Expense ideaVal2) {\n Long val1 = ideaVal1.getCurrentDate();\n Long val2 = ideaVal2.getCurrentDate();\n return val2.compareTo(val1);\n }",
"@Override\n public int compareTo (AgeData o) {\n if (this.age==o.getAge ())\n return 0;\n else if (this.age>o.getAge ())\n return 1;\n else\n return -1;\n }",
"public int compare(\r\n final Object objectA,\r\n final Object objectB)\r\n {\r\n final Date aAsDate = (Date)objectA;\r\n final Date bAsDate = (Date)objectB;\r\n int result = 0;\r\n\r\n if (bAsDate.after(aAsDate))\r\n {\r\n // set result to a negative integer if the first argument of this \r\n // method is less than the second\r\n result = -1;\r\n }\r\n else if (aAsDate.after(bAsDate))\r\n {\r\n // set result to a positive integer if the first argument of this \r\n // method is greater than the second\r\n result = 1;\r\n }\r\n return result;\r\n }",
"int getYear();",
"public int compare1(Student o1, Student o2)\r\n\t\t\t\t{\n\t\t\t\treturn 0;\r\n\t\t\t\t}",
"public int getYear() { return year; }",
"public int getYear() { return year; }",
"@Override\n public int compare(WorkReport o1, WorkReport o2) {\n if (o1 == null || o2 == null) {\n return 0;\n }\n Date d1 = o1.getDate();\n Date d2 = o2.getDate();\n if (d1 == null || d2 == null) {\n return 0;\n }\n return -(d1.compareTo(d2));\n }",
"public int getYear() {\n\treturn year;\n}",
"public int compare1(Student o1, Student o2)\r\n\t\t\t{\n\t\t\treturn 0;\r\n\t\t\t}",
"public int compare1(Student o1, Student o2)\r\n\t\t\t{\n\t\t\treturn 0;\r\n\t\t\t}",
"public int compare1(Student o1, Student o2)\r\n\t\t\t{\n\t\t\treturn 0;\r\n\t\t\t}",
"private int compareTo(Day ds) {\r\n if (this == ds) {\r\n return 0;\r\n }\r\n return (this.index < ds.index) ? (-1) : (+1);\r\n }",
"@Override\r\n\tpublic int compare(EmployeeVo o1, EmployeeVo o2) {\n\t\tif (o1.incomeTax > o2.incomeTax)\r\n\t\t\treturn -1;\r\n\t\telse\r\n\t\t\treturn 1;\r\n\t\t// return 0;\r\n\t}",
"public int compareTo(DivisionStage o) {\n\t\treturn 0;\n\t}",
"public Boolean pre_Date (final Integer d, final Integer m, final Integer y) throws CGException {\n\n Boolean varRes_4 = null;\n Boolean var1_5 = null;\n {\n if ((var1_5 = new Boolean((d.intValue()) <= (new Integer(31).intValue()))).booleanValue()) \n var1_5 = new Boolean((m.intValue()) <= (new Integer(12).intValue()));\n }\n {\n if ((varRes_4 = var1_5).booleanValue()) {\n\n Boolean var2_12 = null;\n Boolean cond_14 = null;\n HashSet var2_16 = new HashSet();\n var2_16 = new HashSet();\n var2_16.add(new Integer(4));\n var2_16.add(new Integer(9));\n var2_16.add(new Integer(6));\n var2_16.add(new Integer(11));\n cond_14 = new Boolean(var2_16.contains(m));\n if (cond_14.booleanValue()) \n var2_12 = new Boolean((d.intValue()) <= (new Integer(30).intValue()));\n else \n if (new Boolean(m.intValue() == new Integer(2).intValue()).booleanValue()) \n var2_12 = new Boolean((d.intValue()) <= (new Integer(29).intValue()));\n else \n var2_12 = new Boolean(true);\n varRes_4 = var2_12;\n }\n }\n return varRes_4;\n }",
"boolean JoiningCriteriaMet() {\n\t\tfor(int i = timeService.getCurrentYear()-1; i > timeService.getCurrentYear() - KyotoEntryYears; i--) {\n\t\t\tif (carbonOutputMap.get(i) > emissionsTargetMap.get(i)) {\n\t\t\t\treturn(false);\n\t\t\t}\n\t\t}\n\t\treturn(true); // \n\t}",
"public int compareTo(Object o)\n\t{\n\tif (getNumber() > ((Employee)o).getNumber())\n\t\t\treturn 1;\t//greater than\n\t\telse if (getNumber() < ((Employee)o).getNumber())\n\t\t\treturn -1;\t// less than\n\t\telse\n\t\t\treturn 0;\t//equal\n\t}",
"YearScore () {}",
"public int compareTo(Movie m)\n\t{\n\t\treturn this.year - m.year; //by year\n\t\t//return (int)this.name - m.name; //by name\n\t\t//return (int)(10*(this.rating - m.rating)); //by rating\n\t}",
"public static int compare(double obj1,double obj2){\n\t\tif(obj1 == obj2) { return 0; }\n\t\telse if(obj1 > obj2){\n\t\t\treturn 1;\n\t\t} else{ return -1; }\n\t}",
"public static int comp( double a, double b ) {\n return equal( a, b, REL_TOL, ABS_TOL ) ? 0 : (a < b ? -1 : 1 );\n }",
"public int getYear()\n {\n return year;\n }",
"public static int compararData(Date data1, Date data2) {\r\n\r\n\t\tCalendar calendar1;\r\n\t\tCalendar calendar2;\r\n\r\n\t\tint ano1;\r\n\t\tint ano2;\r\n\t\tint mes1;\r\n\t\tint mes2;\r\n\t\tint dia1;\r\n\t\tint dia2;\r\n\r\n\t\tint resultado;\r\n\r\n\t\tcalendar1 = Calendar.getInstance();\r\n\t\tcalendar1.setTime(data1);\r\n\r\n\t\tano1 = calendar1.get(Calendar.YEAR);\r\n\t\tmes1 = calendar1.get(Calendar.MONTH);\r\n\t\tdia1 = calendar1.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tcalendar2 = Calendar.getInstance();\r\n\t\tcalendar2.setTime(data2);\r\n\r\n\t\tano2 = calendar2.get(Calendar.YEAR);\r\n\t\tmes2 = calendar2.get(Calendar.MONTH);\r\n\t\tdia2 = calendar2.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tif (ano1 == ano2) {\r\n\r\n\t\t\tif (mes1 == mes2) {\r\n\r\n\t\t\t\tif (dia1 == dia2) {\r\n\t\t\t\t\tresultado = 0;\r\n\t\t\t\t} else if (dia1 < dia2) {\r\n\t\t\t\t\tresultado = -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tresultado = 1;\r\n\t\t\t\t}\r\n\t\t\t} else if (mes1 < mes2) {\r\n\t\t\t\tresultado = -1;\r\n\t\t\t} else {\r\n\t\t\t\tresultado = 1;\r\n\t\t\t}\r\n\t\t} else if (ano1 < ano2) {\r\n\t\t\tresultado = -1;\r\n\t\t} else {\r\n\t\t\tresultado = 1;\r\n\t\t}\r\n\t\treturn resultado;\r\n\t}",
"Integer getTHunYear();",
"public int compareTo(Object o) {\n\t\treturn 1;\n\t}",
"public int compareTo( Comparable rhs )\n {\n return value < ((MyInteger)rhs).value ? -1 :\n value == ((MyInteger)rhs).value ? 0 : 1;\n }",
"@Test\n public void testCompare() {\n AantalGastenComparator instance = new AantalGastenComparator();\n int expResult;\n int result;\n \n //test 1\n Accommodatie a1 = new Accommodatie(\"je moeder\", 30.00, 2, 1);\n Accommodatie a2 = new Accommodatie(\"je vader\", 40.00, 3, 1);\n expResult = -1;\n result = instance.compare(a1, a2);\n assertEquals(expResult, result);\n \n \n //test 2\n Accommodatie a3 = new Accommodatie(\"je moeder2\", 30.00, 2, 1);\n Accommodatie a4 = new Accommodatie(\"je vader2\", 40.00, 2, 1);\n expResult = 0;\n result = instance.compare(a3, a4);\n assertEquals(expResult, result);\n \n \n //test 3\n Accommodatie a5 = new Accommodatie(\"je moeder3\", 30.00, 3, 1);\n Accommodatie a6 = new Accommodatie(\"je vader3\", 40.00, 2, 1);\n expResult = 1;\n result = instance.compare(a5, a6);\n assertEquals(expResult, result);\n }",
"public boolean compareReminisceYear(Object bean, ValidatorAction va, Field field,\r\n\t\t\tActionMessages messages, HttpServletRequest request) {\r\n\r\n\t\tReminisceForm reminisceForm = (ReminisceForm)bean;\r\n\r\n\t\tint fromClassYear = 0;\r\n\t\tint toClassYear = 0;\r\n\t\t\r\n\t\tString strFromClassYear = StringUtil.safeString(reminisceForm.getFromYear());\r\n\t\tString strToClassYear = StringUtil.safeString(reminisceForm.getToYear());\r\n\r\n\r\n\t\tfromClassYear = Integer.parseInt(strFromClassYear);\r\n\t\ttoClassYear = Integer.parseInt(strToClassYear);\r\n\r\n\r\n\t\tif (toClassYear < fromClassYear) {\r\n\t\t\tmessages.add(field.getKey(), Resources.getActionMessage(request,\r\n\t\t\t\t\tva, field));\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn messages.isEmpty();\r\n\t}",
"private boolean iflt(PyObject x, PyObject y) {\n \n if (this.compare == null) {\n /* NOTE: we rely on the fact here that the sorting algorithm\n only ever checks whether k<0, i.e., whether x<y. So we\n invoke the rich comparison function with _lt ('<'), and\n return -1 when it returns true and 0 when it returns\n false. */\n return x._lt(y).__nonzero__();\n }\n \n PyObject ret = this.compare.__call__(x, y);\n \n if (ret instanceof PyInteger) {\n int v = ((PyInteger)ret).getValue();\n return v < 0;\n }\n throw Py.TypeError(\"comparision function must return int\");\n }",
"@Override\n\t\t\t\tpublic int compare(PackageSubscription o1, PackageSubscription o2) {\n\t\t\t\t\treturn o2.getEndDate().compareTo(o1.getEndDate());\n\t\t\t\t}",
"@Test \n public void compareFunctionalEquals() {\n HighScoreComparator comparator2 = new HighScoreComparator();\n int a;\n a = comparator2.compare(p1, p1);\n \n assertEquals(0, a);\n }",
"@Test\n\tpublic void lessThanTest() {\n\t\tassertTrue(x.less(y));\n\t\tassertFalse(y.less(x));\n\t}",
"public int getYear() {\n\n return this.cyear;\n\n }",
"public int compareTo(Object coffee1, Object coffee2){\r\n\r\n System.out.println(\"compareTo being called on \" + coffee1 + \" and \" + coffee2);\r\n\r\n if (coffee1.price - coffee2.price < 0){\r\n return -1;\r\n }\r\n else if (coffee1.price == coffee2.price){\r\n if (length(coffee1.company) < length(coffee2.company)){\r\n return -1\r\n }\r\n else if (coffee1.company == coffee2.company){\r\n if (length(coffee1.color)) < length(coffee2.color){\r\n return -1\r\n }\r\n else if (coffee1.color == coffee2.color){\r\n return 0\r\n }\r\n else{\r\n return 1\r\n }\r\n }\r\n else{\r\n return 1\r\n }\r\n }\r\n else{\r\n return 1;\r\n }\r\n}",
"private boolean less(Comparable a, Comparable b) {\n return a.compareTo(b) < 0;\n }",
"public boolean experired() {\n\t\tint month = Calendar.getInstance().get(Calendar.MONTH) + 1;\n\t\tint year = Calendar.getInstance().get(Calendar.YEAR);\n\t\tString[] parts = this.experiation.split(\"/\");\n\t\tString originalMonth = parts[0];\n\t\tint oM = Integer.parseInt(originalMonth);\n\t\tString originalYear = parts[1];\n\t\tint oY = Integer.parseInt(originalYear);\n\t\t\n\t\tif(oY < year) {\n\t\t\treturn true;\n\t\t}\n\t\tif(oY == year && oM < month) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean compareClassNewsYear(Object bean, ValidatorAction va, Field field,\r\n\t\t\tActionMessages messages, HttpServletRequest request) {\r\n\r\n\t\tClassNewsForm classForm = (ClassNewsForm)bean;\r\n\r\n\t\tint fromClassYear = 0;\r\n\t\tint toClassYear = 0;\r\n\t\t\r\n\t\tString strFromClassYear = StringUtil.safeString(classForm.getFromClassYear());\r\n\t\tString strToClassYear = StringUtil.safeString(classForm.getToClassYear());\r\n\r\n\r\n\t\tfromClassYear = Integer.parseInt(strFromClassYear);\r\n\t\ttoClassYear = Integer.parseInt(strToClassYear);\r\n\r\n\r\n\t\tif (toClassYear < fromClassYear) {\r\n\t\t\tmessages.add(field.getKey(), Resources.getActionMessage(request,\r\n\t\t\t\t\tva, field));\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn messages.isEmpty();\r\n\t}",
"@Override\r\n\tpublic int compareTo(StudentCollection o) {\n\t\treturn this.marks>o.marks?-1:(this.marks<o.marks?1:0);\r\n\t}"
] | [
"0.6732784",
"0.6584031",
"0.60807973",
"0.6012654",
"0.5966405",
"0.5937991",
"0.5768536",
"0.5753738",
"0.5703472",
"0.5700965",
"0.5636687",
"0.5605419",
"0.5603971",
"0.55703366",
"0.55544794",
"0.55518365",
"0.55186516",
"0.5515613",
"0.5511529",
"0.54938644",
"0.5478531",
"0.5439733",
"0.54222226",
"0.53995883",
"0.53944665",
"0.53807384",
"0.5377574",
"0.53639597",
"0.53636587",
"0.53611463",
"0.5356837",
"0.53541744",
"0.5346075",
"0.5345344",
"0.53305215",
"0.5318544",
"0.530957",
"0.53034306",
"0.52936137",
"0.5292973",
"0.5290108",
"0.5287306",
"0.5286741",
"0.5285125",
"0.5284027",
"0.52766997",
"0.5266532",
"0.52618915",
"0.5261423",
"0.52583504",
"0.52563334",
"0.5255181",
"0.5253994",
"0.5251075",
"0.5243809",
"0.5239216",
"0.5238481",
"0.52339625",
"0.52319854",
"0.52252185",
"0.52225435",
"0.5211558",
"0.5207231",
"0.52061015",
"0.52041143",
"0.5203121",
"0.5202283",
"0.5202283",
"0.5181074",
"0.51785696",
"0.5177281",
"0.5177281",
"0.5177281",
"0.5175705",
"0.5174724",
"0.5170974",
"0.5169073",
"0.5161254",
"0.5159572",
"0.5155454",
"0.5153744",
"0.51535785",
"0.5152075",
"0.51440704",
"0.514154",
"0.51397324",
"0.5134967",
"0.5134074",
"0.51287776",
"0.51271826",
"0.5123929",
"0.5119279",
"0.5118187",
"0.5114994",
"0.5114571",
"0.51112545",
"0.51087445",
"0.5107853",
"0.509891",
"0.5097621"
] | 0.6622645 | 1 |
TODO casovanie udalosti (podla occurrenceTime), zatial to pustam vsetko rovno za sebou | public static void main(String[] args) {
try (BufferedReader br = new BufferedReader(new FileReader("src/main/resources/jel.log"))) {
String line = br.readLine();
JsonNode root;
JsonNode event;
if (line != null) {
//prepare the connection
OtpNode node = new OtpNode("java");
OtpMbox mbox = node.createMbox("myMailbox");
String defaultServerNodeName = "myserver@" + node.host();
System.out.format("Server Node to contact [%s]> ", defaultServerNodeName);
OtpErlangTuple serverPidTuple = new OtpErlangTuple(new OtpErlangObject[]{new OtpErlangAtom("server"), new OtpErlangAtom(defaultServerNodeName)});
if (!node.ping(defaultServerNodeName, 1000)) {
System.out.println("Erlang node is not available: " + defaultServerNodeName);
return;
}
root = mapper.readTree(line);
event = root.get("Event");
//prepare the representation expected by Erlang and send
OtpErlangList erlangStruct = convertObjectNode(event);
sendMessage(mbox, "server", defaultServerNodeName, serverPidTuple, erlangStruct);
while ((line = br.readLine()) != null) {
root = mapper.readTree(line);
event = root.get("Event");
//prepare the representation expected by Erlang and send
erlangStruct = convertObjectNode(event);
sendMessage(mbox, "server", defaultServerNodeName, serverPidTuple, erlangStruct);
}
}
} catch (IOException e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DateTime getOccurrenceTime() { return occurrenceTime; }",
"public WordOccurence(final int time) {\n\t\t\toccurences = new ArrayList<Integer>();\n\t\t\toccurences.add(time);\n\t\t\tvDitected = new ArrayList<Integer>();\n\t\t\tvaluesSet = false;\n\t\t}",
"public void reviewExtractorPeriodicity() {\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"YYYY-MM-dd hh:mm:ss\");\r\n Iterator<String> it = ExtractorManager.hmExtractor.keySet().iterator();\r\n while (it.hasNext()) { //\r\n String next = it.next();\r\n DataObject dobj = null;\r\n\r\n try {\r\n \tdobj = ExtractorManager.datasource.fetchObjById(next);\r\n } catch (IOException ioex) {\r\n \tlog.severe(\"Error getting extractor definition\");\r\n }\r\n\r\n if (null == dobj) {\r\n \tExtractorManager.hmExtractor.remove(next);\r\n } else {\r\n \tPMExtractor extractor = ExtractorManager.hmExtractor.get(next);\r\n\r\n \tif (null != extractor && extractor.canStart()) {\r\n\t String lastExec = dobj.getString(\"lastExecution\");\r\n\t Date nextExecution = null;\r\n\t boolean extractorStarted = false;\r\n\r\n\t // Revisando si tiene periodicidad\r\n\t if (dobj.getBoolean(\"periodic\")) {\r\n\t \t\ttry {\r\n\t \t\t\tif (null != lastExec && !lastExec.isEmpty()) nextExecution = sdf.parse(lastExec);\r\n\t\t } catch (ParseException psex) {\r\n\t\t \t\tlog.severe(\"Error parsing execution date\");\r\n\t\t }\r\n\t\t \t\r\n\t\t \tif (null == nextExecution) {\r\n\t\t \t\textractor.start();\r\n\t\t \t\textractorStarted = true;\r\n\t\t \t} else {\r\n\t\t \t\ttry {\r\n\t\t\t \t\tlong tiempo = dobj.getLong(\"timer\");\r\n\t\t\t \tString unidad = dobj.getString(\"unit\");\r\n\t\t\t \tlong unitmilis = 0l;\r\n\t\r\n\t\t\t \tswitch(unidad) {\r\n\t\t\t \t\tcase \"min\":\r\n\t\t\t \t\t\tunitmilis = tiempo * 60 * 1000;\r\n\t\t\t \t\t\tbreak;\r\n\t\t\t \t\tcase \"h\":\r\n\t\t\t \t\t\tunitmilis = tiempo * 60 * 60 * 1000;\r\n\t\t\t \t\t\tbreak;\r\n\t\t\t \t\tcase \"d\":\r\n\t\t\t \t\t\tunitmilis = tiempo * 24 * 60 * 60 * 1000;\r\n\t\t\t \t\t\tbreak;\r\n\t\t\t \t\tcase \"m\":\r\n\t\t\t \t\t\tunitmilis = tiempo * 30 * 24 * 60 * 60 * 1000;\r\n\t\t\t \t\t\tbreak;\r\n\t\t\t \t}\r\n\t\r\n\t\t\t \tif (unitmilis > 0) {\r\n\t\t\t \t\tunitmilis = unitmilis + nextExecution.getTime();\r\n\t\t\t \t\tif(new Date().getTime() > unitmilis) {\r\n\t\t\t extractor.start();\r\n\t\t\t extractorStarted = true;\r\n\t\t\t }\r\n\t\t\t \t}\r\n\t\t \t\t} catch (Exception ex) { //NFE\r\n\t\t \t\t\tlog.severe(\"Error getting extractor config data\");\r\n\t\t \t\t}\r\n\t\t \t}\r\n\t\r\n\t\t \tif (extractorStarted) {\r\n\t\t \t\tdobj.put(\"lastExecution\", sdf.format(new Date()));\r\n\t\t \t\ttry {\r\n\t\t \t\t\tExtractorManager.datasource.updateObj(dobj);\r\n\t\t \t\t} catch(IOException ioex) {\r\n\t\t \t\t\tlog.severe(\"Error trying to update last execution date\");\r\n\t\t \t\t}\r\n\t\t \t}\r\n\t }\r\n\t }\r\n\t }\r\n }\r\n }",
"public void addOccurence(final int time) {\n\t\t\toccurences.add(time);\n\t\t}",
"public static void main(String[] args){\n String filename = \"\";\n if (args.length >= 1){\n filename = args[0];\n } else {\n return;\n }\n\n int abs = 0;\n int diectic = 0;\n int timeOfDay = 0;\n\n Pattern absPattern = Pattern.compile(absoluteDateRegex);\n //Pattern absPattern = Pattern.compile(mmddyyyy);\n //Pattern absPattern = Pattern.compile(holidays);\n Pattern diecticPattern = Pattern.compile(diecticDateRegex);\n Pattern timeOfDayPattern = Pattern.compile(timeOfDayRegex);\n\n Matcher absMatcher = null;\n Matcher diecticMatcher = null;\n Matcher timeOfDayMatcher = null;\n\n //System.out.println(absoluteDateRegex + \"\\n\");\n //System.out.println(diecticDateRegex + \"\\n\");\n //System.out.println(timeOfDayRegex + \"\\n\");\n\n HashMap <String, Integer> absMap = new HashMap<>();\n HashMap <String, Integer> diecticMap = new HashMap<>();\n HashMap <String, Integer> timeOfDayMap = new HashMap<>();\n\n String tmp = \"\";\n\n try{\n BufferedReader reader = new BufferedReader(\n new FileReader(filename));\n String line;\n while ((line = reader.readLine()) != null){\n absMatcher = absPattern.matcher(line);\n diecticMatcher = diecticPattern.matcher(line);\n timeOfDayMatcher = timeOfDayPattern.matcher(line);\n\n while (absMatcher.find()){\n abs++;\n tmp = absMatcher.group();\n //System.out.println(tmp);\n\n if (absMap.containsKey(tmp)){\n absMap.put(tmp, absMap.get(tmp) + 1);\n } else {\n absMap.put(tmp, 1);\n }\n }\n while (diecticMatcher.find()){\n diectic++;\n tmp = diecticMatcher.group();\n\n if (diecticMap.containsKey(tmp)){\n diecticMap.put(tmp, diecticMap.get(tmp) + 1);\n } else {\n diecticMap.put(tmp, 1);\n }\n //System.out.println(diecticMatcher.group());\n }\n while (timeOfDayMatcher.find()){\n timeOfDay++;\n tmp = timeOfDayMatcher.group();\n\n if (timeOfDayMap.containsKey(tmp)){\n timeOfDayMap.put(tmp, timeOfDayMap.get(tmp) + 1);\n } else {\n timeOfDayMap.put(tmp, 1);\n }\n //System.out.println(timeOfDayMatcher.group());\n }\n }\n reader.close();\n\n /*\n System.out.println(\"Absolute dates = \" + abs);\n System.out.println(\"Diectic dates = \" + diectic);\n System.out.println(\"Both dates = \" + (abs + diectic));\n System.out.println(\"time-of-day expressions = \" + timeOfDay);\n */\n\n System.out.println(\"2.4: Absolute\");\n printOutMap(absMap, abs);\n\n System.out.println(\"\\n2.5: Absolute && Diectic\");\n HashMap<String, Integer>datesMap = new HashMap<>();\n datesMap.putAll(absMap);\n datesMap.putAll(diecticMap);\n printOutMap(datesMap, diectic+abs);\n\n System.out.println(\"\\n2.6: Time Of Day\");\n printOutMap(timeOfDayMap, timeOfDay);\n\n System.out.println(\"\\nAll RegExs combined\");\n HashMap<String, Integer> allMap = new HashMap<>();\n allMap.putAll(datesMap);\n allMap.putAll(timeOfDayMap);\n printOutMap(allMap, timeOfDay + diectic + abs);\n } catch (Exception e){\n System.err.format(\"Exception occurred trying to read '%s'.\",\n filename);\n e.printStackTrace();\n return;\n }\n }",
"public String getElapsedTime() {\n /**\n * Joda instruction credit to BalusC @ stackoverflow.com\n * http://stackoverflow.com/posts/2179831/revisions\n */\n Period delta = new Period(getOccurrenceTime(), DateTime.now());\n return\n // 1+ weeks\n (delta.getWeeks() >= 1) ? delta.getWeeks()+\"w\" :\n // 1+ days\n (delta.getDays() >= 1) ? delta.getDays()+\"d\" :\n // 1+ hours\n (delta.getHours() >= 1) ? delta.getHours()+\"h\" :\n // 1+ minutes\n (delta.getMinutes() >= 1) ? delta.getMinutes()+\"m\" :\n // 1+ seconds\n delta.getSeconds()+\"s\";\n }",
"Calendar occurredAt();",
"private long getTimeIni(ArrayList<Point> r, ArrayList<Point> s){\n\t\t// Get the trajectory with latest first point\n\t\tlong t1 = s.get(0).timeLong > r.get(0).timeLong ? \n\t\t\t\ts.get(0).timeLong : r.get(0).timeLong;\n\t\treturn t1;\n\t}",
"public ArrayList<String> getCountStatics() {\n\t\tint countsPerMinute = 0;\n\t\tint countsPerHour = 0;\n\t\tint countsPerDay = 0;\n\t\tint countsPerWeek = 0;\n\t\tint countsPerMonth = 0;\n\n\t\t// get a comparison time and start comparing the times against it\n\t\tArrayList<String> myArrayString = new ArrayList<String>();\n\t\tCalendar currDate = Calendar.getInstance();\n\t\tfor (int i = 0; i < clickerCountObject.getClickerTimestamps().size(); i++) {\n\t\t\tSystem.out.println(clickerCountObject.getClickerTimestamps().get(i)\n\t\t\t\t\t.get(Calendar.MINUTE) <= currDate.get(Calendar.MINUTE));\n\t\t\tif (currDate.get(Calendar.MINUTE) - 1 <= clickerCountObject\n\t\t\t\t\t.getClickerTimestamps().get(i).get(Calendar.MINUTE)\n\t\t\t\t\t&& currDate.get(Calendar.MINUTE) >= clickerCountObject\n\t\t\t\t\t\t\t.getClickerTimestamps().get(i).get(Calendar.MINUTE)) {\n\t\t\t\tcountsPerMinute += 1;\n\t\t\t}\n\t\t\tif (currDate.get(Calendar.HOUR_OF_DAY) - 1 <= clickerCountObject\n\t\t\t\t\t.getClickerTimestamps().get(i).get(Calendar.HOUR_OF_DAY)\n\t\t\t\t\t&& currDate.get(Calendar.HOUR_OF_DAY) >= clickerCountObject\n\t\t\t\t\t\t\t.getClickerTimestamps().get(i)\n\t\t\t\t\t\t\t.get(Calendar.HOUR_OF_DAY)) {\n\t\t\t\tcountsPerHour += 1;\n\t\t\t}\n\t\t\tif ((currDate.get(Calendar.DAY_OF_MONTH) - 1 <= clickerCountObject\n\t\t\t\t\t.getClickerTimestamps().get(i).get(Calendar.DAY_OF_MONTH))\n\t\t\t\t\t&& (currDate.get(Calendar.DAY_OF_MONTH) >= clickerCountObject\n\t\t\t\t\t\t\t.getClickerTimestamps().get(i)\n\t\t\t\t\t\t\t.get(Calendar.DAY_OF_MONTH))) {\n\t\t\t\tcountsPerDay += 1;\n\t\t\t}\n\t\t\tif ((currDate.get(Calendar.WEEK_OF_MONTH) - 1 <= clickerCountObject\n\t\t\t\t\t.getClickerTimestamps().get(i).get(Calendar.WEEK_OF_MONTH))\n\t\t\t\t\t&& (currDate.get(Calendar.WEEK_OF_MONTH) >= clickerCountObject\n\t\t\t\t\t\t\t.getClickerTimestamps().get(i)\n\t\t\t\t\t\t\t.get(Calendar.WEEK_OF_MONTH))) {\n\t\t\t\tcountsPerWeek += 1;\n\t\t\t}\n\t\t\tif ((currDate.get(Calendar.MONTH) - 1 <= clickerCountObject\n\t\t\t\t\t.getClickerTimestamps().get(i).get(Calendar.MONTH))\n\t\t\t\t\t&& (currDate.get(Calendar.MONTH) >= clickerCountObject\n\t\t\t\t\t\t\t.getClickerTimestamps().get(i).get(Calendar.MONTH))) {\n\t\t\t\tcountsPerMonth += 1;\n\t\t\t}\n\t\t}\n\t\tmyArrayString.add(\"Counts per Minute \"\n\t\t\t\t+ Integer.toString(countsPerMinute));\n\t\tmyArrayString.add(\"Counts per Hour \" + Integer.toString(countsPerHour));\n\t\tmyArrayString.add(\"Counts per Day \" + Integer.toString(countsPerDay));\n\t\tmyArrayString.add(\"Counts per Week \" + Integer.toString(countsPerWeek));\n\t\tmyArrayString.add(\"Counts per Month \"\n\t\t\t\t+ Integer.toString(countsPerMonth));\n\n\t\tSystem.out.println(myArrayString);\n\t\treturn myArrayString;\n\t}",
"@Override\n public void addPeriodicInterest()\n {\n elapsedPeriods++; \n super.addPeriodicInterest();\n System.out.println(elapsedPeriods);\n }",
"private Map<String, Long> getJudgeTime(Expression expr, long time) {\n \n\n if (!inTimeScope(expr, time)) {\n return null;\n }\n\n Map<String, Long> timeMap = new HashMap<String, Long>();\n long time_to = time;\n long time_from = time - (expr.getTime_to() - expr.getTime_from());\n timeMap.put(\"time_from\", time_from);\n timeMap.put(\"time_to\", time_to);\n long last_time_to;\n if (expr.getInterval() != 0) {\n\n if ((time_to - expr.getTime_to()) % expr.getInterval() == 0) {\n\n timeMap.put(\"last_time_from\", time_from - expr.getInterval());\n timeMap.put(\"last_time_to\", time_to - expr.getInterval());\n }\n else {\n return null;\n }\n }\n else {\n if ((time_to - expr.getTime_to()) % (24 * 3600 * 1000) == 0) {\n switch (expr.getUnit()) {\n case DateTimeHelper.INTERVAL_DAY:\n\n timeMap.put(\"last_time_from\", time_from - 24 * 3600 * 1000);\n timeMap.put(\"last_time_to\", time_to - 24 * 3600 * 1000);\n break;\n case DateTimeHelper.INTERVAL_WEEK:\n\n timeMap.put(\"last_time_from\", time_from - 7 * 24 * 3600 * 1000);\n timeMap.put(\"last_time_to\", time_to - 7 * 24 * 3600 * 1000);\n break;\n case DateTimeHelper.INTERVAL_MONTH:\n\n last_time_to = DateTimeHelper.getMonthAgo(new Date(time_to)).getTime();\n timeMap.put(\"last_time_to\", last_time_to);\n timeMap.put(\"last_time_from\", last_time_to - (time_to - time_from));\n break;\n case DateTimeHelper.INTERVAL_YEAR:\n\n last_time_to = DateTimeHelper.getYearAgo(new Date(time_to)).getTime();\n timeMap.put(\"last_time_to\", last_time_to);\n timeMap.put(\"last_time_from\", last_time_to - (time_to - time_from));\n break;\n }\n }\n else {\n return null;\n }\n\n }\n\n return timeMap;\n }",
"public int chooseTimeOfDay(Household hh, Person person, int tourTypeIndex ) {\n Arrays.fill(tcSample, 1);\n Arrays.fill(tcAvailability, true);\n\n setTcAvailability ( person, tcAvailability, tcSample );\n\n\n // count the number of tours in which no time-of-day alternative was available\n int noTOD = 0;\n for (int p=1; p <= tcUEC[tourTypeIndex].getNumberOfAlternatives(); p++) {\n if (tcAvailability[p]) {\n noTOD++;\n break;\n }\n }\n if (noTOD == 0) {\n noTODAvailableIndiv[tourTypeIndex]++;\n tcAvailability[1] = true;\n tcSample[1] = 1;\n tcAvailability[tcUEC[tourTypeIndex].getNumberOfAlternatives()] = true;\n tcSample[tcUEC[tourTypeIndex].getNumberOfAlternatives()] = 1;\n }\n\n\n long markTime = System.currentTimeMillis();\n // calculate the mode choice logsums for TOD choice based on chosen dest and default time periods\n hh.setTODDefaults ( TourType.NON_MANDATORY_CATEGORY, \"EaEa\" );\n tcLogsumEaEa = getMcLogsum ( hh, tourTypeIndex, TourType.NON_MANDATORY_CATEGORY );\n\n hh.setTODDefaults ( TourType.NON_MANDATORY_CATEGORY, \"EaAm\" );\n tcLogsumEaAm = getMcLogsum ( hh, tourTypeIndex, TourType.NON_MANDATORY_CATEGORY );\n\n hh.setTODDefaults ( TourType.NON_MANDATORY_CATEGORY, \"EaMd\" );\n tcLogsumEaMd = getMcLogsum ( hh, tourTypeIndex, TourType.NON_MANDATORY_CATEGORY );\n\n hh.setTODDefaults ( TourType.NON_MANDATORY_CATEGORY, \"EaPm\" );\n tcLogsumEaPm = getMcLogsum ( hh, tourTypeIndex, TourType.NON_MANDATORY_CATEGORY );\n\n hh.setTODDefaults ( TourType.NON_MANDATORY_CATEGORY, \"EaNt\" );\n tcLogsumEaNt = getMcLogsum ( hh, tourTypeIndex, TourType.NON_MANDATORY_CATEGORY );\n\n hh.setTODDefaults ( TourType.NON_MANDATORY_CATEGORY, \"AmAm\" );\n tcLogsumAmAm = getMcLogsum ( hh, tourTypeIndex, TourType.NON_MANDATORY_CATEGORY );\n\n hh.setTODDefaults ( TourType.NON_MANDATORY_CATEGORY, \"AmMd\" );\n tcLogsumAmMd = getMcLogsum ( hh, tourTypeIndex, TourType.NON_MANDATORY_CATEGORY );\n\n hh.setTODDefaults ( TourType.NON_MANDATORY_CATEGORY, \"AmPm\" );\n tcLogsumAmPm = getMcLogsum ( hh, tourTypeIndex, TourType.NON_MANDATORY_CATEGORY );\n\n hh.setTODDefaults ( TourType.NON_MANDATORY_CATEGORY, \"AmNt\" );\n tcLogsumAmNt = getMcLogsum ( hh, tourTypeIndex, TourType.NON_MANDATORY_CATEGORY );\n\n hh.setTODDefaults ( TourType.NON_MANDATORY_CATEGORY, \"MdMd\" );\n tcLogsumMdMd = getMcLogsum ( hh, tourTypeIndex, TourType.NON_MANDATORY_CATEGORY );\n\n hh.setTODDefaults ( TourType.NON_MANDATORY_CATEGORY, \"MdPm\" );\n tcLogsumMdPm = getMcLogsum ( hh, tourTypeIndex, TourType.NON_MANDATORY_CATEGORY );\n\n hh.setTODDefaults ( TourType.NON_MANDATORY_CATEGORY, \"MdNt\" );\n tcLogsumMdNt = getMcLogsum ( hh, tourTypeIndex, TourType.NON_MANDATORY_CATEGORY );\n\n hh.setTODDefaults ( TourType.NON_MANDATORY_CATEGORY, \"PmPm\" );\n tcLogsumPmPm = getMcLogsum ( hh, tourTypeIndex, TourType.NON_MANDATORY_CATEGORY );\n\n hh.setTODDefaults ( TourType.NON_MANDATORY_CATEGORY, \"PmNt\" );\n tcLogsumPmNt = getMcLogsum ( hh, tourTypeIndex, TourType.NON_MANDATORY_CATEGORY );\n\n hh.setTODDefaults ( TourType.NON_MANDATORY_CATEGORY, \"NtNt\" );\n tcLogsumNtNt = getMcLogsum ( hh, tourTypeIndex, TourType.NON_MANDATORY_CATEGORY );\n\n\n\n // assign mode choice logsums to time-of-day choice alternatives, given correspondiong time periods\n TODDataManager.logsumTcEAEA[1] = tcLogsumEaEa;\n TODDataManager.logsumTcEAEA[2] = tcLogsumEaEa;\n TODDataManager.logsumTcEAAM[3] = tcLogsumEaAm;\n TODDataManager.logsumTcEAAM[4] = tcLogsumEaAm;\n TODDataManager.logsumTcEAAM[5] = tcLogsumEaAm;\n TODDataManager.logsumTcEAMD[6] = tcLogsumEaMd;\n TODDataManager.logsumTcEAMD[7] = tcLogsumEaMd;\n TODDataManager.logsumTcEAMD[8] = tcLogsumEaMd;\n TODDataManager.logsumTcEAMD[9] = tcLogsumEaMd;\n TODDataManager.logsumTcEAMD[10] = tcLogsumEaMd;\n TODDataManager.logsumTcEAMD[11] = tcLogsumEaMd;\n TODDataManager.logsumTcEAPM[12] = tcLogsumEaPm;\n TODDataManager.logsumTcEAPM[13] = tcLogsumEaPm;\n TODDataManager.logsumTcEAPM[14] = tcLogsumEaPm;\n TODDataManager.logsumTcEAPM[15] = tcLogsumEaPm;\n TODDataManager.logsumTcEANT[16] = tcLogsumEaNt;\n TODDataManager.logsumTcEANT[17] = tcLogsumEaNt;\n TODDataManager.logsumTcEANT[18] = tcLogsumEaNt;\n TODDataManager.logsumTcEANT[19] = tcLogsumEaNt;\n TODDataManager.logsumTcEAEA[20] = tcLogsumEaEa;\n TODDataManager.logsumTcEAAM[21] = tcLogsumEaAm;\n TODDataManager.logsumTcEAAM[22] = tcLogsumEaAm;\n TODDataManager.logsumTcEAAM[23] = tcLogsumEaAm;\n TODDataManager.logsumTcEAMD[24] = tcLogsumEaMd;\n TODDataManager.logsumTcEAMD[25] = tcLogsumEaMd;\n TODDataManager.logsumTcEAMD[26] = tcLogsumEaMd;\n TODDataManager.logsumTcEAMD[27] = tcLogsumEaMd;\n TODDataManager.logsumTcEAMD[28] = tcLogsumEaMd;\n TODDataManager.logsumTcEAMD[29] = tcLogsumEaMd;\n TODDataManager.logsumTcEAPM[30] = tcLogsumEaPm;\n TODDataManager.logsumTcEAPM[31] = tcLogsumEaPm;\n TODDataManager.logsumTcEAPM[32] = tcLogsumEaPm;\n TODDataManager.logsumTcEAPM[33] = tcLogsumEaPm;\n TODDataManager.logsumTcEANT[34] = tcLogsumEaNt;\n TODDataManager.logsumTcEANT[35] = tcLogsumEaNt;\n TODDataManager.logsumTcEANT[36] = tcLogsumEaNt;\n TODDataManager.logsumTcEANT[37] = tcLogsumEaNt;\n TODDataManager.logsumTcAMAM[38] = tcLogsumEaAm;\n TODDataManager.logsumTcAMAM[39] = tcLogsumEaAm;\n TODDataManager.logsumTcAMAM[40] = tcLogsumEaAm;\n TODDataManager.logsumTcAMMD[41] = tcLogsumAmMd;\n TODDataManager.logsumTcAMMD[42] = tcLogsumAmMd;\n TODDataManager.logsumTcAMMD[43] = tcLogsumAmMd;\n TODDataManager.logsumTcAMMD[44] = tcLogsumAmMd;\n TODDataManager.logsumTcAMMD[45] = tcLogsumAmMd;\n TODDataManager.logsumTcAMMD[46] = tcLogsumAmMd;\n TODDataManager.logsumTcAMPM[47] = tcLogsumAmPm;\n TODDataManager.logsumTcAMPM[48] = tcLogsumAmPm;\n TODDataManager.logsumTcAMPM[49] = tcLogsumAmPm;\n TODDataManager.logsumTcAMPM[50] = tcLogsumAmPm;\n TODDataManager.logsumTcAMNT[51] = tcLogsumAmNt;\n TODDataManager.logsumTcAMNT[52] = tcLogsumAmNt;\n TODDataManager.logsumTcAMNT[53] = tcLogsumAmNt;\n TODDataManager.logsumTcAMNT[54] = tcLogsumAmNt;\n TODDataManager.logsumTcAMAM[55] = tcLogsumAmAm;\n TODDataManager.logsumTcAMAM[56] = tcLogsumAmAm;\n TODDataManager.logsumTcAMMD[57] = tcLogsumAmMd;\n TODDataManager.logsumTcAMMD[58] = tcLogsumAmMd;\n TODDataManager.logsumTcAMMD[59] = tcLogsumAmMd;\n TODDataManager.logsumTcAMMD[60] = tcLogsumAmMd;\n TODDataManager.logsumTcAMMD[61] = tcLogsumAmMd;\n TODDataManager.logsumTcAMMD[62] = tcLogsumAmMd;\n TODDataManager.logsumTcAMPM[63] = tcLogsumAmPm;\n TODDataManager.logsumTcAMPM[64] = tcLogsumAmPm;\n TODDataManager.logsumTcAMPM[65] = tcLogsumAmPm;\n TODDataManager.logsumTcAMPM[66] = tcLogsumAmPm;\n TODDataManager.logsumTcAMNT[67] = tcLogsumAmNt;\n TODDataManager.logsumTcAMNT[68] = tcLogsumAmNt;\n TODDataManager.logsumTcAMNT[69] = tcLogsumAmNt;\n TODDataManager.logsumTcAMNT[70] = tcLogsumAmNt;\n TODDataManager.logsumTcAMAM[71] = tcLogsumAmAm;\n TODDataManager.logsumTcAMMD[72] = tcLogsumAmMd;\n TODDataManager.logsumTcAMMD[73] = tcLogsumAmMd;\n TODDataManager.logsumTcAMMD[74] = tcLogsumAmMd;\n TODDataManager.logsumTcAMMD[75] = tcLogsumAmMd;\n TODDataManager.logsumTcAMMD[76] = tcLogsumAmMd;\n TODDataManager.logsumTcAMMD[77] = tcLogsumAmMd;\n TODDataManager.logsumTcAMPM[78] = tcLogsumAmPm;\n TODDataManager.logsumTcAMPM[79] = tcLogsumAmPm;\n TODDataManager.logsumTcAMPM[80] = tcLogsumAmPm;\n TODDataManager.logsumTcAMPM[81] = tcLogsumAmPm;\n TODDataManager.logsumTcAMNT[82] = tcLogsumAmNt;\n TODDataManager.logsumTcAMNT[83] = tcLogsumAmNt;\n TODDataManager.logsumTcAMNT[84] = tcLogsumAmNt;\n TODDataManager.logsumTcAMNT[85] = tcLogsumAmNt;\n TODDataManager.logsumTcMDMD[86] = tcLogsumMdMd;\n TODDataManager.logsumTcMDMD[87] = tcLogsumMdMd;\n TODDataManager.logsumTcMDMD[88] = tcLogsumMdMd;\n TODDataManager.logsumTcMDMD[89] = tcLogsumMdMd;\n TODDataManager.logsumTcMDMD[90] = tcLogsumMdMd;\n TODDataManager.logsumTcMDMD[91] = tcLogsumMdMd;\n TODDataManager.logsumTcMDPM[92] = tcLogsumMdPm;\n TODDataManager.logsumTcMDPM[93] = tcLogsumMdPm;\n TODDataManager.logsumTcMDPM[94] = tcLogsumMdPm;\n TODDataManager.logsumTcMDPM[95] = tcLogsumMdPm;\n TODDataManager.logsumTcMDNT[96] = tcLogsumMdNt;\n TODDataManager.logsumTcMDNT[97] = tcLogsumMdNt;\n TODDataManager.logsumTcMDNT[98] = tcLogsumMdNt;\n TODDataManager.logsumTcMDNT[99] = tcLogsumMdNt;\n TODDataManager.logsumTcMDMD[100] = tcLogsumMdMd;\n TODDataManager.logsumTcMDMD[101] = tcLogsumMdMd;\n TODDataManager.logsumTcMDMD[102] = tcLogsumMdMd;\n TODDataManager.logsumTcMDMD[103] = tcLogsumMdMd;\n TODDataManager.logsumTcMDMD[104] = tcLogsumMdMd;\n TODDataManager.logsumTcMDPM[105] = tcLogsumMdPm;\n TODDataManager.logsumTcMDPM[106] = tcLogsumMdPm;\n TODDataManager.logsumTcMDPM[107] = tcLogsumMdPm;\n TODDataManager.logsumTcMDPM[108] = tcLogsumMdPm;\n TODDataManager.logsumTcMDNT[109] = tcLogsumMdNt;\n TODDataManager.logsumTcMDNT[110] = tcLogsumMdNt;\n TODDataManager.logsumTcMDNT[111] = tcLogsumMdNt;\n TODDataManager.logsumTcMDNT[112] = tcLogsumMdNt;\n TODDataManager.logsumTcMDMD[113] = tcLogsumMdMd;\n TODDataManager.logsumTcMDMD[114] = tcLogsumMdMd;\n TODDataManager.logsumTcMDMD[115] = tcLogsumMdMd;\n TODDataManager.logsumTcMDMD[116] = tcLogsumMdMd;\n TODDataManager.logsumTcMDPM[117] = tcLogsumMdPm;\n TODDataManager.logsumTcMDPM[118] = tcLogsumMdPm;\n TODDataManager.logsumTcMDPM[119] = tcLogsumMdPm;\n TODDataManager.logsumTcMDPM[120] = tcLogsumMdPm;\n TODDataManager.logsumTcMDNT[121] = tcLogsumMdNt;\n TODDataManager.logsumTcMDNT[122] = tcLogsumMdNt;\n TODDataManager.logsumTcMDNT[123] = tcLogsumMdNt;\n TODDataManager.logsumTcMDNT[124] = tcLogsumMdNt;\n TODDataManager.logsumTcMDMD[125] = tcLogsumMdMd;\n TODDataManager.logsumTcMDMD[126] = tcLogsumMdMd;\n TODDataManager.logsumTcMDMD[127] = tcLogsumMdMd;\n TODDataManager.logsumTcMDPM[128] = tcLogsumMdPm;\n TODDataManager.logsumTcMDPM[129] = tcLogsumMdPm;\n TODDataManager.logsumTcMDPM[130] = tcLogsumMdPm;\n TODDataManager.logsumTcMDPM[131] = tcLogsumMdPm;\n TODDataManager.logsumTcMDNT[132] = tcLogsumMdNt;\n TODDataManager.logsumTcMDNT[133] = tcLogsumMdNt;\n TODDataManager.logsumTcMDNT[134] = tcLogsumMdNt;\n TODDataManager.logsumTcMDNT[135] = tcLogsumMdNt;\n TODDataManager.logsumTcMDMD[136] = tcLogsumMdMd;\n TODDataManager.logsumTcMDMD[137] = tcLogsumMdMd;\n TODDataManager.logsumTcMDPM[138] = tcLogsumMdPm;\n TODDataManager.logsumTcMDPM[139] = tcLogsumMdPm;\n TODDataManager.logsumTcMDPM[140] = tcLogsumMdPm;\n TODDataManager.logsumTcMDPM[141] = tcLogsumMdPm;\n TODDataManager.logsumTcMDNT[142] = tcLogsumMdNt;\n TODDataManager.logsumTcMDNT[143] = tcLogsumMdNt;\n TODDataManager.logsumTcMDNT[144] = tcLogsumMdNt;\n TODDataManager.logsumTcMDNT[145] = tcLogsumMdNt;\n TODDataManager.logsumTcMDMD[146] = tcLogsumMdMd;\n TODDataManager.logsumTcMDPM[147] = tcLogsumMdPm;\n TODDataManager.logsumTcMDPM[148] = tcLogsumMdPm;\n TODDataManager.logsumTcMDPM[149] = tcLogsumMdPm;\n TODDataManager.logsumTcMDPM[150] = tcLogsumMdPm;\n TODDataManager.logsumTcMDNT[151] = tcLogsumMdNt;\n TODDataManager.logsumTcMDNT[152] = tcLogsumMdNt;\n TODDataManager.logsumTcMDNT[153] = tcLogsumMdNt;\n TODDataManager.logsumTcMDNT[154] = tcLogsumMdNt;\n TODDataManager.logsumTcPMPM[155] = tcLogsumPmPm;\n TODDataManager.logsumTcPMPM[156] = tcLogsumPmPm;\n TODDataManager.logsumTcPMPM[157] = tcLogsumPmPm;\n TODDataManager.logsumTcPMPM[158] = tcLogsumPmPm;\n TODDataManager.logsumTcPMNT[159] = tcLogsumPmNt;\n TODDataManager.logsumTcPMNT[160] = tcLogsumPmNt;\n TODDataManager.logsumTcPMNT[161] = tcLogsumPmNt;\n TODDataManager.logsumTcPMNT[162] = tcLogsumPmNt;\n TODDataManager.logsumTcPMPM[163] = tcLogsumPmPm;\n TODDataManager.logsumTcPMPM[164] = tcLogsumPmPm;\n TODDataManager.logsumTcPMPM[165] = tcLogsumPmPm;\n TODDataManager.logsumTcPMNT[166] = tcLogsumPmNt;\n TODDataManager.logsumTcPMNT[167] = tcLogsumPmNt;\n TODDataManager.logsumTcPMNT[168] = tcLogsumPmNt;\n TODDataManager.logsumTcPMNT[169] = tcLogsumPmNt;\n TODDataManager.logsumTcPMPM[170] = tcLogsumPmPm;\n TODDataManager.logsumTcPMPM[171] = tcLogsumPmPm;\n TODDataManager.logsumTcPMNT[172] = tcLogsumPmNt;\n TODDataManager.logsumTcPMNT[173] = tcLogsumPmNt;\n TODDataManager.logsumTcPMNT[174] = tcLogsumPmNt;\n TODDataManager.logsumTcPMNT[175] = tcLogsumPmNt;\n TODDataManager.logsumTcPMPM[176] = tcLogsumPmPm;\n TODDataManager.logsumTcPMNT[177] = tcLogsumPmNt;\n TODDataManager.logsumTcPMNT[178] = tcLogsumPmNt;\n TODDataManager.logsumTcPMNT[179] = tcLogsumPmNt;\n TODDataManager.logsumTcPMNT[180] = tcLogsumPmNt;\n TODDataManager.logsumTcNTNT[181] = tcLogsumNtNt;\n TODDataManager.logsumTcNTNT[182] = tcLogsumNtNt;\n TODDataManager.logsumTcNTNT[183] = tcLogsumNtNt;\n TODDataManager.logsumTcNTNT[184] = tcLogsumNtNt;\n TODDataManager.logsumTcNTNT[185] = tcLogsumNtNt;\n TODDataManager.logsumTcNTNT[186] = tcLogsumNtNt;\n TODDataManager.logsumTcNTNT[187] = tcLogsumNtNt;\n TODDataManager.logsumTcNTNT[188] = tcLogsumNtNt;\n TODDataManager.logsumTcNTNT[189] = tcLogsumNtNt;\n TODDataManager.logsumTcNTNT[190] = tcLogsumNtNt;\n tcLogsumTime += (System.currentTimeMillis()-markTime);\n\n // compute time-of-day choice proportions and choose alternative\n markTime = System.currentTimeMillis();\n tc[tourTypeIndex].updateLogitModel ( hh, tcAvailability, tcSample );\n\n int chosenTODAlt;\n try {\n chosenTODAlt = tc[tourTypeIndex].getChoiceResult();\n }\n catch (ModelException e) {\n chosenTODAlt = SeededRandom.getRandom() < 0.5 ? 1 : 190;\n }\n tcTime += (System.currentTimeMillis()-markTime);\n return chosenTODAlt;\n }",
"@Override\n public long getTotalHarvestingTime()\n {\n return 0;\n }",
"public void findExits() {\n try {\n for (int i = 1; i < accumulate.size() - 1; i++) {\n if (accumulate.get(i).value < accumulate.get(i - 1).value) {\n timeOfExists.add(accumulate.get(i).timeOfChange);\n }\n }\n } catch (IndexOutOfBoundsException exception) {\n LOG_HANDLER.logger.severe(\"findExits Method as thrown an \"\n + \"OutOfBoundsException: \" + exception\n + \"Your timeOfExists seems to be null\");\n }\n }",
"public static String getUltimaFiesta() {\n Map<String, DiaFiestaMeta> diasFiestas;\n Iterator<String> itDiasFiestasMeta;\n SimpleDateFormat formatoDelTexto ;\n Map<String, Date> mapFiestaDia = new HashMap<>(); // \"uidFiesta:tituloDiaFiestaFormateado\"\n HashSet<Fiestas> fiestas;\n Date fechaMasReciente;\n String uidFiestaMasReciente;\n Iterator<String> itmapFiestaDia;\n\n Date date = new Date();\n formatoDelTexto = new SimpleDateFormat(\"dd MMMM yyyy\",new Locale(\"es\",\"ES\"));\n String strDate =formatoDelTexto.format(date);\n uidFiestaMasReciente =\"\";\n try {\n fechaMasReciente = formatoDelTexto.parse(\"15 Junio 1980\");\n } catch (ParseException e) {\n fechaMasReciente = new Date();\n e.printStackTrace();\n }\n fiestas = (HashSet) baseDatos.get(Tablas.Fiestas.name());\n for (Fiestas fiesta : fiestas){\n diasFiestas = fiesta.getDiasFiestas();\n itDiasFiestasMeta = diasFiestas.keySet().iterator();\n while (itDiasFiestasMeta.hasNext()){\n String keyDia = itDiasFiestasMeta.next();\n DiaFiestaMeta diaFiestaMeta = diasFiestas.get(keyDia);\n mapFiestaDia.put(fiesta.getUidFiestas(), formatearDia(diaFiestaMeta.getTituloDiaFiesta(), fiesta.getUidFiestas()));\n }\n }\n\n itmapFiestaDia = mapFiestaDia.keySet().iterator();\n while (itmapFiestaDia.hasNext()) {\n String key = itmapFiestaDia.next();\n Date fechaI = mapFiestaDia.get(key);\n if (fechaI.after(fechaMasReciente)) {\n uidFiestaMasReciente = key;\n fechaMasReciente = fechaI;\n }\n }\n return uidFiestaMasReciente;\n }",
"private Vector getTimeSeg(Stroke theStroke)\n\t{\n\t\tdouble[] timeData = theStroke.getTimeData();\n\t\tm_timeSeg = new TimeBasedDetection(timeData);\n\t\tVector segPt_time = m_timeSeg.detectSegmentPoints();\n\t\treturn segPt_time;\n\t}",
"long getTotalDoExamTime();",
"public static Map<String, Long> eachLineDuration(List<MonitoredData> data){\n Map<String, String> hash = new HashMap<>();\n Map<String, Long> hashWithMillis = new HashMap<>();\n for (int i=0; i<data.size(); i++){\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.ENGLISH);\n try {\n String startTime = data.get(i).getStartTime();\n Date firstDate = sdf.parse(startTime);\n String endTime = data.get(i).getEndTime();\n Date secondDate = sdf.parse(endTime);\n long diffInMillies = Math.abs(secondDate.getTime() - firstDate.getTime());\n DateFormat df = new SimpleDateFormat(\"HH 'hours', mm 'mins,' ss 'seconds'\");\n df.setTimeZone(TimeZone.getTimeZone(\"GMT+0\"));\n String difference = df.format(new Date(diffInMillies));\n hash.put(data.get(i).getActivity(), difference);\n System.out.println(\" \" + data.get(i).getActivity() + \" ::: \" + hash.get(data.get(i).getActivity()));\n //-----For each activity compute the entire duration over the monitoring period\n String acti = data.get(i).getActivity();\n if (activityHasValue.containsKey(data.get(i).getActivity())){\n long index = hashWithMillis.get(acti);\n hashWithMillis.put(data.get(i).getActivity(), diffInMillies + index);\n }else{\n hashWithMillis.put(data.get(i).getActivity(), diffInMillies);\n activityHasValue.put(data.get(i).getActivity(), diffInMillies);\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n }\n System.out.print(\"\\n\\n5) Each activity duration over the whole period: \\n\");\n System.out.println(hashWithMillis);\n return hashWithMillis;\n }",
"private PointInTime findTime(float time) {\n for (int i=0;i<keyframes.size();i++){\n if (((PointInTime)keyframes.get(i)).time==time)\n return (PointInTime) keyframes.get(i);\n if (((PointInTime)keyframes.get(i)).time>time){\n PointInTime t=new PointInTime(time);\n keyframes.add(i,t);\n return t;\n }\n }\n PointInTime t=new PointInTime(time);\n keyframes.add(t);\n return t;\n }",
"private void reactMain_region_digitalwatch_Time_counting_Counting() {\n\t\tif (timeEvents[0]) {\n\t\t\tnextStateIndex = 0;\n\t\t\tstateVector[0] = State.$NullState$;\n\n\t\t\ttimer.unsetTimer(this, 0);\n\n\t\t\ttimer.setTimer(this, 0, 1 * 1000, false);\n\n\t\t\tsCILogicUnit.operationCallback.increaseTimeByOne();\n\n\t\t\tnextStateIndex = 0;\n\t\t\tstateVector[0] = State.main_region_digitalwatch_Time_counting_Counting;\n\t\t}\n\t}",
"void extractTestTime(final Document doc)\n {\n final Elements statElement = doc.select(\"#globalStats h2\");\n final String timeText = statElement.text();\n\n final Pattern pattern = Pattern.compile(\"(\\\\d+)(?= ms)\");\n final Matcher matcher = pattern.matcher(timeText);\n\n if (matcher.find()) {\n this.totalTime = Integer.parseInt(matcher.group(1));\n }\n }",
"public void calculateTimeDifferences() {\n\n findExits();\n\n try {\n\n\n if (accumulate.size() > 0) {\n\n for (int i = 1; i < accumulate.size() - 1; i++) {\n if (accumulate.get(i).value > accumulate.get(i - 1).value\n && timeOfExists.size() > 0) {\n\n double timeOfEntry = accumulate.get(i).timeOfChange;\n double timeOfExit = timeOfExists.get(0);\n\n timeOfExists.remove(timeOfExit);\n timeOfChanges.add(timeOfExit - timeOfEntry);\n }\n\n }\n }\n } catch (IndexOutOfBoundsException exception) {\n LOG_HANDLER.logger.severe(\"calculateTimeDifferences \"\n + \"Method as thrown an OutOfBoundsException: \"\n + exception\n + \"Your timeOfChanges seems to be null\");\n }\n }",
"private void calculateFitness() {\n\t\tint day1=this.getNumberOfHours()*this.getNumberOfClasses();\n\t\tint day2=2*day1;\n\t\tint day3=3*day1;\n\t\tint day4=4*day1;\n\t\tint day5=5*day1;\n\t\tTeacher_lesson temp=null;\n\t\t//day 1//\n\t\tHashSet<Integer> closedSet=new HashSet<Integer>();\n\t\t\n\t\t\n\t\t\n\t\tfor(int i=0;i<day1;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day1;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t}\n\t\t\t\n\t\t}\n\t\n\t\t\n\t\t\n\t\t\n\t\t//day2//\n\t\tclosedSet.clear();;\n\t\t\n\t\tfor(int i=day1;i<day2;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day2;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t}\n\t\t\t\n\t\t}\n\t\t//day3//\n\t\tclosedSet.clear();;\n\t\tfor(int i=day2;i<day3;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day3;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t//day4//\n\t\tclosedSet.clear();;\n\t\tfor(int i=day3;i<day4;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day4;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\t\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t}\n\t\t\t\n\t\t}\n\t\t//day5//\n\t\tclosedSet.clear();;\n\t\tfor(int i=day4;i<day5;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day5;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t\t\t\n\t\t}\n\t\t\t/*if(temp.get_td_hour()<0){this.fitness=this.fitness-100;}//adunato na ginei giati o ka8igitis exei parapanw wres apo oti mporei na kanei//\n\t\t\t\telse if (temp.get_td_hour()==0){this.fitness=this.fitness-2;}//meiwnoume giati o ka8igitis 8a epivarin8ei oles tou tis wres thn idia mera//\n\t\t\t\telse{++this.fitness;}//kalh prosegisi*/\n\t\t}\n\t\t//*********************END OF DAILY EVALUATION*****************************//\n\t\t\n\t\t//**********************START OF WEEKLY EVALUATION************************//\n\t\t\n\t\tclosedSet.clear();\n\t\t\n\t int \t_weeklyhours = 1;\n\t \n\t\tfor(int i=0;i<day5;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp!=null){\n\t\t\tif(!closedSet.contains(this.genes[i])){\n\t\t\t\t\n\t\t\t\n\t\t\tfor(int j=i+1;j<day5;j++){\n\t\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\t\t++_weeklyhours; }\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t/*if(_weeklyhours>temp.get_tw_hour()){\n\t\t\t\tthis.fitness=this.fitness-100 ; //adunato na kanei parapanw wres ma8hma//\n\t\t\t}else\n\t\t\t\t{++this.fitness;}*/\n\t\t\tif(_weeklyhours<temp.get_tw_hour()){++this.fitness;}\n\t\t\tclosedSet.add(this.genes[i]);}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//*************END OF WEEKLY EVALUATION**********//\n\t\n\t\t//**START OF LESSON EVALUATION***//\n\t\tArraylistLesson set=new ArraylistLesson();\n\t\tclass_lid templ=null;\n\t\tTeacher_lesson tempj=null;\n\t\tint lid=0;\n\t\tString _class;\n\t\tint _classhours=1;\n\t\tfor(int i=0;i<day5;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp!=null){\n\t\t\tlid=temp.get_lid();\n\t\t\t_class=temp.get_class();\n\t\t\ttempl=new class_lid(lid,_class);\n\t\t\tif(!set.contains(templ)){\n\t\t\t\t\n\t\t\t\tfor(int j=i+1;j<day5;j++){\n\t\t\t\t\ttempj=getdata(this.genes[j]);{\n\t\t\t\t\t\tif(tempj!=null){\n\t\t\t\t\t\t\tif(temp.get_tid()==tempj.get_tid()){\n\t\t\t\t\t\t\t\tif(temp.get_lid()==tempj.get_lid()&&temp.get_class().equalsIgnoreCase(tempj.get_class())){\n\t\t\t\t\t\t\t\t\t++_classhours;\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\t\tint hours;\n\t\t\t\thours=temp.get_lhours();\n\t\t\t\n\t\tif(_classhours==hours){\n\t\t\t++this.fitness;\n\t\t}\n\t\tset.add(templ);\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t}",
"@Test\n\tpublic void testCountSimilarity() {\n\t\tList<TimeSeriesSimilarityCollection> res;\n\t\tTimeSeriesSimilarityCollection r;\n\n\t\t// we are interested in measure now\n\t\tevaluator.setSimilarity(false, true, false);\n\n\t\t// add some data\n\t\t// @formatter:off\n\t\t// 01.01.15: (00:00) ++++++++++++ (02:00) Philipp (5)\n\t\t// 31.12.15: (00:00) ++++++++++++ (02:00) Tobias (5)\n\t\t// @formatter:on\n\t\tloadData(\"Philipp\", 15, \"01.01.2015 00:00:00\", \"01.01.2015 02:00:00\");\n\t\tloadData(\"Tobias\", 5, \"31.12.2015 00:00:00\", \"31.12.2015 02:00:00\");\n\n\t\t// get the similar once on a global measure level\n\t\tres = evaluator.evaluateSimilarity(\n\t\t\t\tgetQuery(\"MAX(IDEAS) AS IDEAS ON TIME.DEF.HOUR\", null), 1);\n\n\t\tassertEquals(1, res.size());\n\t\tr = res.get(0);\n\t\tassertEquals(0.0, r.getCountDistance(), 0.0);\n\t\tassertEquals(0.0, r.getTotalDistance(), 0.0);\n\t\t// 1451520000000l == 31 Dec 2015 00:00:00 UTC\n\t\tassertEquals(1451520000000l, ((Date) r.getLabelValue(0)).getTime());\n\n\t\t// add another data package\n\t\t// @formatter:off\n\t\t// 01.01.15: (00:00) ++++++++++++ (02:00) Philipp (5)\n\t\t// 30.11.15: (00:10) +++++ (01:00) Philipp (5)\n\t\t// 31.12.15: (00:00) ++++++++++++ (02:00) Tobias (5)\n\t\t// @formatter:on\n\t\tloadData(\"Philipp\", 5, \"30.11.2015 00:10:00\", \"30.11.2015 01:00:00\");\n\n\t\t// get the similar once on a filtered measure level\n\t\tres = evaluator.evaluateSimilarity(\n\t\t\t\tgetQuery(\"MIN(IDEAS) AS IDEAS ON TIME.DEF.HOUR\",\n\t\t\t\t\t\t\"NAME='Philipp'\"), 1);\n\t\tr = res.get(0);\n\t\t// 70 minutes (00:00 - 00:09 and 01:01 - 02:00)\n\t\tassertEquals(70.0, r.getCountDistance(), 0.0);\n\t\tassertEquals(70.0, r.getTotalDistance(), 0.0);\n\t\t// 1448841600000l == 30 Nov 2015 00:00:00 UTC\n\t\tassertEquals(1448841600000l, ((Date) r.getLabelValue(0)).getTime());\n\n\t\t// add another data package\n\t\t// @formatter:off\n\t\t// 01.01.15: (00:00) ++++++++++++ (02:00) Philipp (5)\n\t\t// (00:10) ++++ (00:50) Edison (5)\n\t\t// 30.11.15: (00:00) +++++ (00:50) Edison (5) \n\t\t// (00:10) +++++ (01:00) Philipp (5)\n\t\t// (01:00) ++++++ (02:00) Philipp (5)\n\t\t// 31.12.15: (00:00) ++++++++++++ (02:00) Tobias (5)\n\t\t// @formatter:on\n\t\tloadData(\"Edison\", 5, \"30.11.2015 00:00:00\", \"30.11.2015 00:50:00\");\n\t\tloadData(\"Philipp\", 5, \"30.11.2015 01:00:00\", \"30.11.2015 02:00:00\");\n\t\tloadData(\"Edison\", 5, \"01.01.2015 00:10:00\", \"01.01.2015 00:50:00\");\n\n\t\t// get the similar once on a filtered measure level\n\t\tres = evaluator.evaluateSimilarity(\n\t\t\t\tgetQuery(\"SUM(IDEAS) AS IDEAS ON TIME.DEF.HOUR\", null), 1);\n\n\t\tassertEquals(1, res.size());\n\t\tr = res.get(0);\n\t\t// 1 minute (01:00:00)\n\t\tassertEquals(1.0, r.getCountDistance(), 0.0);\n\t\tassertEquals(1.0, r.getTotalDistance(), 0.0);\n\t\t// 1448841600000l == 30 Nov 2015 00:00:00 UTC\n\t\tassertEquals(1448841600000l, ((Date) r.getLabelValue(0)).getTime());\n\t}",
"private void reactMain_region_digitalwatch_Display_chrono_countingChrono() {\n\t\tif (timeEvents[4]) {\n\t\t\tnextStateIndex = 2;\n\t\t\tstateVector[2] = State.$NullState$;\n\n\t\t\ttimer.unsetTimer(this, 4);\n\n\t\t\ttimer.setTimer(this, 4, 10, false);\n\n\t\t\tsCILogicUnit.operationCallback.increaseChronoByOne();\n\n\t\t\tnextStateIndex = 2;\n\t\t\tstateVector[2] = State.main_region_digitalwatch_Display_chrono_countingChrono;\n\t\t} else {\n\t\t\tif (sCIButtons.bottomRightPressed) {\n\t\t\t\tnextStateIndex = 2;\n\t\t\t\tstateVector[2] = State.$NullState$;\n\n\t\t\t\ttimer.unsetTimer(this, 4);\n\n\t\t\t\tsCILogicUnit.operationCallback.getChrono();\n\n\t\t\t\tnextStateIndex = 2;\n\t\t\t\tstateVector[2] = State.main_region_digitalwatch_Display_chrono_ChoroStart;\n\t\t\t}\n\t\t}\n\t}",
"private void diffusionPhase() {\n if (prevMaxTimestamp == -1 || currMaxTimestamp == -1 || prevMaxTimestamp == currMaxTimestamp) {\n return;\n }\n final Set<NodeAddress> fathers = ((GroupedOverlayModule<?>) mainOverlay).getNodeGroup(GroupedOverlayModule.fathersGroupName);\n final PrimeNodeReport alreadyRequested = new PrimeNodeReport();\n for (final NodeAddress father : fathers) {\n if (!inboxHistory.keySet().contains(father)) {\n continue;\n }\n if (client.player.getVs() == null\n || inboxHistory.get(father).getLatestTimestamp() > client.player.getVs()\n .getAvailableDescriptions(client.player.getVs().windowOffset).getLatestTimestamp()) {\n final PrimeNodeReport availableDescriptionsAtFather = inboxHistory.get(father);\n PrimeNodeReport requestToSend = (client.player.getVs() == null) ? availableDescriptionsAtFather : (client.player.getVs()\n .getAvailableDescriptions(prevMaxTimestamp)).getDelta(availableDescriptionsAtFather);\n requestToSend = alreadyRequested.getDelta(requestToSend);\n if (requestToSend.size() == 0) {\n continue;\n }\n requestToSend = requestToSend.getRandomSubset(prevMaxTimestamp, currMaxTimestamp, r);\n if (requestToSend.size() != 0) {\n if (client.player.getVs() != null) {\n requestToSend.playTime = client.player.getVs().windowOffset;\n }\n alreadyRequested.update(requestToSend);\n network.send(new PrimeRequestMessage<PrimeNodeReport>(getMessageTag(), network.getAddress(), father, new PrimeNodeReport(\n requestToSend)));\n }\n }\n }\n }",
"public abstract Date getNextFireTime();",
"int countByExample(ScheduleCriteria example);",
"private static void methodThree(Data data) {\n\t\tboolean notFound = true;\n\t\tMap<String, Integer> timesToFreq = null;\n\t\tString phrase = null;\n\t\twhile (notFound) {\n\t\t\tphrase = getPhraseInput();\n\t\t\ttimesToFreq = data.getMentionsPerTimeStamp(phrase);\n\t\t\tif (timesToFreq != null && phrase != null) {\n\t\t\t\tnotFound = false;\n\t\t\t}\n\t\t}\n\t\tif (timesToFreq.isEmpty()) System.out.println(\"No results found\");\n\t\telse {\n\t\t\tfor (Map.Entry<String, Integer> e : timesToFreq.entrySet()) {\n\t\t\t\tSystem.out.println(e.getKey() + \":00 \" + e.getValue() + \" times\");\n\t\t\t}\n\t\t}\n\t\taddToLog(\"user searched for \" + phrase);\n\t}",
"public void getSecsDetail( );",
"boolean hasNextCollectTimestampMs();",
"private static void seTimeStamps() {\n MDC.put(MDC_INSTANCE_UUID, \"\");\n MDC.put(MDC_ALERT_SEVERITY, \"\");\n\n var startTime = Instant.now();\n var endTime = Instant.now();\n\n seTimeStamps(startTime, endTime);\n\n MDC.put(PARTNER_NAME, \"N/A\");\n\n MDC.put(STATUS_CODE, COMPLETE_STATUS);\n MDC.put(RESPONSE_CODE, \"N/A\");\n MDC.put(RESPONSE_DESCRIPTION, \"N/A\");\n\n }",
"public static void event3(Sociograph sociograph, String hostName) {\n List<Student> potentialLunchMates = new ArrayList<>(); // didn't consider the number of ppl that can have lunch with in parallel way (3 persons)\n List<Student> actualLunchMates = new ArrayList<>(); // after considering the number of ppl that can simultaneously to have lunch with\n int totalRepObtained = 0;\n\n Student host = sociograph.getStudent(hostName);\n host.estimateLunchEnd();\n\n // Timeslot to keep who are having lunch with host at a certain minute (row array - minute; col arraylist - Student)\n ArrayList<String>[] timeslot = new ArrayList[host.getAvgLunchPeriod()];\n for (int i = 0; i < timeslot.length; i++) {\n timeslot[i] = new ArrayList<>();\n }\n\n // Add the student who has lunch time that intersect with host's lunch time to the list\n // Filter out those students who have high dive rate (>50)\n // Estimate the lunchEnd of everyone\n for (Student mate : sociograph.getAllStudents()) {\n if (mate.getName().equals(hostName)) {\n continue;\n }\n mate.estimateLunchEnd();\n if (mate.getAvgLunchStart().isBefore(host.getEstimatedLunchEnd()) &&\n mate.getEstimatedLunchEnd().isAfter(host.getAvgLunchStart()) &&\n mate.getDive() <= 50) { // Turn diving rate filter off first\n potentialLunchMates.add(mate);\n }\n }\n\n // The method stops if there's no ppl to have lunch with\n if (potentialLunchMates.size() == 0) {\n System.out.println(\"You don't have people to have lunch with due to time constraint and their high diving rate\");\n return;\n }\n\n // Sort the student with avgLunchStart, if avgLunchStart is same, use estimatedLunchEnd instead (ascending)\n potentialLunchMates.sort((mate1, mate2) -> {\n if (mate1.getAvgLunchStart().isBefore(mate2.getAvgLunchStart())) {\n return -1;\n } else if (mate1.getAvgLunchStart().isAfter(mate2.getAvgLunchStart())) {\n return 1;\n } else {\n if (mate1.getEstimatedLunchEnd().isBefore(mate2.getEstimatedLunchEnd())) {\n return -1;\n } else if (mate1.getEstimatedLunchEnd().isAfter(mate2.getEstimatedLunchEnd())) {\n return 1;\n } else {\n return 0;\n }\n }\n });\n\n // Display all lunch time for everyone\n System.out.println(\"Lunch time for all potential lunch mates\");\n System.out.println(\"==================================\");\n System.out.println(\"name\\tavg_lunch_start\\tavg_lunch_period\\test_lunch_end\\tdiving rate (<=50)\");\n System.out.println(hostName + \"\\t\\t\" + host.getAvgLunchStart() + \"\\t\\t\\t\" + host.getAvgLunchPeriod() + \"\\t\\t\\t\\t\\t\" + host.getEstimatedLunchEnd() + \"\\t\\t\\t\" + host.getDive());\n potentialLunchMates.forEach(mate -> System.out.println(mate.getName() + \"\\t\\t\" + mate.getAvgLunchStart() + \"\\t\\t\\t\" + mate.getAvgLunchPeriod() + \"\\t\\t\\t\\t\\t\" + mate.getEstimatedLunchEnd() + \"\\t\\t\\t\" + mate.getDive()));\n\n // Add all the satisfied mate to the timeslot by considering the number of ppl currently in the slot\n for (Student mate : potentialLunchMates) {\n for (int i = computeNthMinute(host.getAvgLunchStart(), mate.getAvgLunchStart());\n i < computeNthMinute(host.getAvgLunchStart(), mate.getEstimatedLunchEnd());\n i++) {\n if (i < timeslot.length && timeslot[i].size() < 3) {\n timeslot[i].add(mate.getName());\n if (!actualLunchMates.contains(mate)) {\n actualLunchMates.add(mate);\n }\n }\n }\n }\n\n // Display schedule in terms of minutes\n System.out.println(\"\\n\" + \"Schedule of \" + hostName + \" in terms of minutes\");\n System.out.println(\"==================================\");\n LocalTime time = host.getAvgLunchStart();\n for (int i = 0; i < host.getAvgLunchPeriod(); i++) {\n System.out.println(time + \" : \" + timeslot[i]);\n time = time.plusMinutes(1);\n }\n System.out.println();\n\n // Add edge (rep point) to the host after having lunch with those ppl\n for (Student actualMate : actualLunchMates) {\n if (sociograph.hasDirectedEdge(hostName, actualMate.getName())) {\n double newRep = sociograph.getSrcRepRelativeToAdj(hostName, actualMate.getName()) + 1;\n sociograph.setSrcRepRelativeToAdj(hostName, actualMate.getName(), newRep);\n } else {\n sociograph.addDirectedEdge(hostName, actualMate.getName(), 1);\n }\n totalRepObtained++;\n }\n\n // Print out result\n StringBuilder sb = new StringBuilder();\n sb.append(\"Your obtained total \").append(totalRepObtained).append(\" reputation points after having lunch with \");\n for (int i = 0; i < actualLunchMates.size(); i++) {\n if (actualLunchMates.size() == 2) {\n sb.append(actualLunchMates.get(0).getName()).append(\" and \").append(actualLunchMates.get(1).getName());\n break;\n } else if (i == actualLunchMates.size() - 1) {\n sb.append(\"and \").append(actualLunchMates.get(i).getName());\n } else {\n sb.append(actualLunchMates.get(i).getName()).append(\", \");\n }\n }\n\n System.out.println(sb);\n\n }",
"private int countTimeLineMatches(RenderContext myrc, Line2D line, boolean mask[], long ts0, long resolution) {\n int matches = 0;\n Iterator<Bundle> it = myrc.line_to_bundles.get(line).iterator();\n while (it.hasNext()) {\n Bundle bundle = it.next();\n if (bundle.hasTime()) { \n int i0 = (int) ((bundle.ts0() - ts0)/resolution), i1 = (int) ((bundle.ts1() - ts0)/resolution);\n\tfor (int i=i0;i<=i1;i++) if (mask[i]) matches++;\n }\n }\n return matches;\n }",
"static String timeCount_1(List<String> Arr){\n int timeHH = 0;\n int timeMI = 0;\n int timeSS = 0;\n \n String r_hh = \"\";\n String r_mi = \"\";\n String r_ss = \"\";\n\n for(int i = 0; i < Arr.size(); i++ ){\n \n if (Pattern.matches(\"\\\\d{2}:\\\\d{2}:\\\\d{2}\", Arr.get(i))){\n \n String[] s = Arr.get(i).split(\":\");\n int hh = Integer.parseInt(s[0]);\n int mi = Integer.parseInt(s[1]);\n int ss = Integer.parseInt(s[2]);\n \n timeHH += hh;\n timeMI += mi;\n timeSS += ss;\n \n }\n else{\n continue;\n }\n }\n \n timeMI += timeSS / 60;\n timeSS %= 60;\n \n timeHH += timeMI / 60;\n timeMI %= 60; \n\n \n if (timeHH < 10){\n r_hh = \"0\" + timeHH;\n }\n else{\n r_hh = Integer.toString(timeHH);\n }\n \n if (timeMI < 10){\n r_mi = \"0\" + timeMI;\n }\n else{\n r_mi = Integer.toString(timeMI);\n }\n \n if (timeSS < 10){\n r_ss = \"0\" + timeSS;\n }\n else{\n r_ss = Integer.toString(timeSS);\n }\n \n \n \n String result = r_hh + \":\" + r_mi + \":\" + r_ss;\n //String result = timeHH + \":\" + timeMI + \":\" + timeSS;\n \n return result;\n }",
"public void testLoadMovies () {\n ArrayList<Movie> movies = loadMovies(\"ratedmoviesfull\"); \n System.out.println(\"Numero de peliculas: \" + movies.size()); \n String countInGenre = \"Comedy\"; // variable\n int countComedies = 0; \n int minutes = 150; // variable\n int countMinutes = 0;\n \n for (Movie movie : movies) {\n if (movie.getGenres().contains(countInGenre)) {\n countComedies +=1;\n }\n \n if (movie.getMinutes() > minutes) {\n countMinutes +=1;\n }\n }\n \n System.out.println(\"Hay \" + countComedies + \" comedias en la lista \");\n System.out.println(\"Hay \" + countMinutes + \" películas con más de \" + minutes + \" minutos en la lista \");\n \n // Cree un HashMap con el recuento de cuántas películas filmó cada director en particular\n HashMap<String,Integer> countMoviesByDirector = new HashMap<String,Integer> ();\n for (Movie movie : movies) {\n String[] directors = movie.getDirector().split(\",\"); \n for (String director : directors ) {\n director = director.trim();\n if (! countMoviesByDirector.containsKey(director)) {\n countMoviesByDirector.put(director, 1); \n } else {\n countMoviesByDirector.put(director, countMoviesByDirector.get(director) + 1);\n }\n }\n }\n \n // Contar el número máximo de películas dirigidas por un director en particular\n int maxNumOfMovies = 0;\n for (String director : countMoviesByDirector.keySet()) {\n if (countMoviesByDirector.get(director) > maxNumOfMovies) {\n maxNumOfMovies = countMoviesByDirector.get(director);\n }\n }\n \n // Cree una ArrayList con directores de la lista que dirigieron el número máximo de películas\n ArrayList<String> directorsList = new ArrayList<String> ();\n for (String director : countMoviesByDirector.keySet()) {\n if (countMoviesByDirector.get(director) == maxNumOfMovies) {\n directorsList.add(director);\n }\n }\n \n System.out.println(\"Número máximo de películas dirigidas por un director: \" + maxNumOfMovies);\n System.out.println(\"Los directores que dirigieron mas películas son \" + directorsList);\n }",
"public abstract int getPerTagAvgPoseSolveTime();",
"@Override\r\n public void timePassed() {\r\n }",
"private int totalTime()\n\t{\n\t\t//i'm using this varaible enough that I should write a separate method for it\n\t\tint totalTime = 0;\n\t\tfor(int i = 0; i < saveData.size(); i++)//for each index of saveData\n\t\t{\n\t\t\t//get the start time\n\t\t\tString startTime = saveData.get(i).get(\"startTime\");\n\t\t\t//get the end time\n\t\t\tString endTime = saveData.get(i).get(\"endTime\");\n\t\t\t//****CONTINUE\n\t\t\t//total time in minutes\n\t\t}\n\t}",
"private int sizeForHashTable()\n {\n String compare=\"\";\n int numberOfdates = 0;\n for (int i=0; i <= hourly.size();i++)\n {\n if (i==0)\n {\n numberOfdates +=1;\n compare = data.get(i).getFCTTIME().getPretty();\n }else if(compare != data.get(i).getFCTTIME().getPretty())\n {\n numberOfdates+=1;\n compare = data.get(i).getFCTTIME().getPretty();\n }\n }\n return numberOfdates;\n }",
"public void startCount() {\n //meetodi k�ivitamisel nullime tunnid, minutid, sekundid:\n secondsPassed = 0;\n minutePassed = 0;\n hoursPassed = 0;\n if (task != null)\n return;\n task = new TimerTask() {\n @Override\n public void run() {//aeg l�ks!\n secondsPassed++; //loeme sekundid\n if (secondsPassed == 60) {//kui on l�binud 60 sek, nullime muutujat\n secondsPassed = 0;\n minutePassed++;//kui on l�binud 60 sek, suurendame minutid 1 v�rra\n }\n if (minutePassed == 60) {//kui on l�binud 60 min, nullime muutujat\n minutePassed = 0;\n hoursPassed++;//kui on l�binud 60 min, suurendame tunnid 1 v�rra\n }\n //kirjutame aeg �les\n String seconds = Integer.toString(secondsPassed);\n String minutes = Integer.toString(minutePassed);\n String hours = Integer.toString(hoursPassed);\n\n if (secondsPassed <= 9) {\n //kuni 10 kirjutame 0 ette\n seconds = \"0\" + Integer.toString(secondsPassed);\n }\n if (minutePassed <= 9) {\n //kuni 10 kirjutame 0 ette\n minutes = \"0\" + Integer.toString(minutePassed);\n }\n if (hoursPassed <= 9) {\n //kuni 10 kirjutame null ettte\n hours = \"0\" + Integer.toString(hoursPassed);\n }\n\n\n time = (hours + \":\" + minutes + \":\" + seconds);//aeg formaadis 00:00:00\n getTime();//edastame aeg meetodile getTime\n\n }\n\n };\n myTimer.scheduleAtFixedRate(task, 0, 1000);//timer k�ivitub kohe ja t��tab sekundite t�psusega\n\n }",
"long getVisitStarttime();",
"long getVisitStarttime();",
"@Override\n public void timePassed() {\n }",
"protected void processTimer(){\n if(timer != null){\n timer.cancel();\n timer = null;\n }\n // Verificamos si el partido esta en progreso\n if(match.status == Match.STATUS_PENDING || match.status == Match.STATUS_ENDED){\n return;\n }\n // Creamos temporizador 90 * 60 * 1000 = 5.400.000\n timer = new CountDownTimer(5400000, 1000) {\n @Override\n public void onTick(long l) {\n // Calcular los segundos que pasaron\n long seconds = (new Date().getTime() - matchDayLong) / 1000;\n // Calcular los minutos del partido\n long minutes = seconds / 60;\n //long minutes = TimeUnit.MILLISECONDS.toMinutes(uptime);\n if(minutes < 0){\n minutes = 0;\n seconds = 0;\n statusMedium.setText(\"PT\");\n }if(minutes > 45 && minutes < 60){\n minutes = 45;\n seconds = 60;\n }else if(minutes > 90){\n minutes = 90;\n seconds = 60;\n statusMedium.setText(\"ST\");\n }else if(minutes >= 60){\n minutes -= 15;\n statusMedium.setText(\"ST\");\n }else{\n statusMedium.setText(\"PT\");\n }\n\n statusTime.setText(String.format(\"%02d:%02d\", minutes, (seconds%60)));\n }\n\n @Override\n public void onFinish() {\n\n }\n }.start();\n }",
"@Test\n public void testDetecterAnomalieNbrMinimalItem() {\n\n POJOCompteItem instance = genererInstanceTest();\n instance.setDate1(new DateTime(2013, 1, 1, 0, 1).toDate());\n instance.setDate2(new DateTime(2013, 1, 6, 0, 1).toDate());\n\n\n System.out.println(\"detecterAnomalieNbrMinimalItem-----\");\n \n try {\n instance.compte();\n } catch (Exception ex) {\n Logger.getLogger(POJOCompteItemTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n Map<Date, Integer> result = instance.detecterAnomalieNbrMinimalItem(0, 50);\n if (!result.isEmpty()) {\n fail(\"On ne devait pas avoir de résultats\");\n }\n\n\n result = instance.detecterAnomalieNbrMinimalItem(1, 3);\n if (!result.isEmpty()) {\n fail(\"On ne devait pas avoir de résultat il y en a \" + result.size());\n }\n\n\n result = instance.detecterAnomalieNbrMinimalItem(1, 1);\n if (result.isEmpty()) {\n for (Map.Entry<Date, Integer> entry : result.entrySet()) {\n Date date = entry.getKey();\n Integer integer = entry.getValue();\n System.out.println(\"Date \" + date + \" nbr : \" + integer);\n\n }\n fail(\"il devait y avoir des résultats. On en a \" + result.size());\n }\n\n Item it2 = new Item();\n it2.setDateRecup(new DateTime(2013, 1, 16, 0, 1).toDate());\n\n instance.getItems().add(it2);\n instance.setDate2(new DateTime(2013, 1, 16, 0, 1).toDate());\n try {\n instance.compte();\n } catch (Exception ex) {\n Logger.getLogger(POJOCompteItemTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n result = instance.detecterAnomalieNbrMinimalItem(1, 4);\n \n System.out.println(\"NBR : \" + result.size());\n if(result.size() != 9){\n fail(\"On revait avoir 12 résultats. on en a \" + result.size());\n }\n\n }",
"public static int countDays(List<MonitoredData> data){\n System.out.println(\"3) How many times has appeared each activity for each day: \");\n long result = 0;\n ArrayList<String> days = new ArrayList<>();\n ArrayList<MonitoredData> dataTrunc = new ArrayList<>();\n for (int i=0; i<data.size(); i++){\n String day = \"\";\n day += data.get(i).getStartTime().charAt(8);\n day += data.get(i).getStartTime().charAt(9);\n days.add(day);\n }\n for (int i=0; i<data.size(); i++){\n dataTrunc.add(data.get(i));\n if (i<days.size()-1){\n if (!days.get(i+1).equals(days.get(i))){\n System.out.println(\" Day \" + days.get(i) + \" ::: \" + countActivitiesWholePeriod(dataTrunc));\n dataTrunc.clear();\n }\n }else{\n System.out.println(\" Day \" + days.get(i) + \" ::: \" + countActivitiesWholePeriod(dataTrunc));\n }\n }\n Stream<String> daysStream = days.stream();\n result = daysStream\n .distinct()\n .count();\n return (int)result;\n }",
"public static void main(String[] args) throws ParseException {\n String beginWorkDate = \"8:00:00\";//上班时间\n String endWorkDate = \"12:00:00\";//下班时间\n SimpleDateFormat sdf = new SimpleDateFormat(TimeUtil.DF_ZH_HMS);\n long a = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(endWorkDate));\n System.out.println(a/30);\n\n String beginRestDate = \"8:30:00\";//休息时间\n String endRestDate = \"9:00:00\";\n long e = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(beginRestDate));\n long f = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(endRestDate));\n\n String beginVactionDate = \"10:00:00\";//请假时间\n String endVactionDate = \"11:00:00\";\n long b= TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(beginVactionDate));\n long c= TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(endVactionDate));\n\n String time = \"9:00:00\";//被别人预约的\n long d = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(time));\n List<Integer> num = new ArrayList<>();\n num.add((int) (d/30));\n\n String myTime = \"11:30:00\";//我约的\n long g = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(myTime));\n List<Integer> mynum = new ArrayList<>();\n mynum.add((int) (g/30));\n\n\n List<Date> yes = new ArrayList<>();//能约\n List<Date> no = new ArrayList<>();//不能约\n List<Date> my = new ArrayList<>();//我约的\n for (int i = 0; i < a/30; i ++) {\n Date times = TimeUtil.movDateForMinute(sdf.parse(beginWorkDate), i * 30);\n System.out.println(sdf.format(times));\n yes.add(times);\n if ((i >= e / 30 && i < f / 30) || (i >= b / 30 && i < c / 30)) {\n //休息时间,请假时间\n no.add(times);\n yes.remove(times);\n continue;\n }\n for (Integer n : num) {\n if (i == n) {\n //被预约时间\n no.add(times);\n yes.remove(times);\n }\n }\n for (Integer n : mynum) {\n if (i == n) {\n //被预约时间\n my.add(times);\n }\n }\n }\n }",
"public static ActData getAct(String prj_id, String sub_id, String date, int time) throws Exception {\n\n logger.debug(\"time: \" + time + \"(\" + TimeUtil.formatSecond2(time) + \")\");\n RecElement[] act = ReportManager.getActForDay(prj_id, sub_id, date);\n\n // calculate real start/end second\n int start_second, end_second;\n int index = time;\n if (act[index].num_filt == ActivityType.UNDEFINED) {\n logger.error(\"FATAL ERROR!!! index = \" + index);\n return null;\n }\n\n // calculate temporary start/end second\n int tmp_start = (time - range / 2) < 0 ? 0 : (time - range / 2);\n int tmp_end = (time + range / 2 - 1) > (seconds_of_day - 1) ? (seconds_of_day - 1) : (time + range / 2 - 1);\n // int tmp_end = (time + range / 2) > (seconds_of_day) ?\n // (seconds_of_day)\n // : (time + range / 2);\n\n logger.debug(\"[tmp_start, tmp_end] = [\" + tmp_start + \", \" + tmp_end + \"]\");\n logger.debug(\"[tmp_start, tmp_end] = [\" + TimeUtil.formatSecond2(tmp_start) + \", \"\n + TimeUtil.formatSecond2(tmp_end) + \"]\");\n\n // get start point\n // Only look for continuous result, stop at boundary\n for (; index >= tmp_start; --index) {\n if (act[index].num_filt == ActivityType.UNDEFINED)\n break;\n }\n if (index < tmp_start)\n start_second = tmp_start;\n else\n start_second = index + 1;\n\n // get end point\n // Only look for continuous result, stop at boundary\n index = time;\n for (; index <= tmp_end; ++index) {\n if (act[index].num_filt == ActivityType.UNDEFINED)\n break;\n }\n if (index > tmp_end)\n end_second = tmp_end;\n else\n end_second = index - 1;\n\n // now, [start_second, end_second] < [tmp_start, tmp_end] < [time -\n // range/2, time + range/2]\n logger.debug(\"[start_second, end_second] = [\" + start_second + \", \" + end_second + \"]\");\n logger.debug(\"[start_second, end_second] = [\" + TimeUtil.formatSecond2(start_second) + \", \"\n + TimeUtil.formatSecond2(end_second) + \"]\");\n\n ActData ad = new ActData();\n ad.setStart_second(start_second);\n ad.setEnd_second(end_second);\n ad.setAct(Arrays.copyOfRange(act, start_second, end_second + 1));\n return ad;\n }",
"private void buildFreqMap() {\n\t\toriginalFreq = new HashMap<String, WordOccurence>();\n\n\t\tfor (ListIterator<Caption> itr = original.captionIterator(0); itr\n\t\t\t\t.hasNext();) {\n\t\t\tfinal Caption currentCap = itr.next();\n\t\t\tfinal String[] words = currentCap.getCaption().split(\"\\\\s+\");\n\t\t\tfor (int i = 0; i < words.length; i++) {\n\t\t\t\tfinal String lowerCasedWord = words[i].toLowerCase();\n\t\t\t\tif (originalFreq.containsKey(lowerCasedWord)) {\n\t\t\t\t\toriginalFreq.get(lowerCasedWord).addOccurence(\n\t\t\t\t\t\t\t(int) currentCap.getTime());\n\t\t\t\t} else {\n\t\t\t\t\tfinal WordOccurence occ = new WordOccurence(\n\t\t\t\t\t\t\t(int) currentCap.getTime());\n\t\t\t\t\toriginalFreq.put(lowerCasedWord, occ);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < identified.size(); i++) {\n\t\t\tResultChunk curretResult = identified.get(i);\n\t\t\tfinal String[] words = curretResult.getDetectedString().split(\n\t\t\t\t\t\"\\\\s+\");\n\t\t\tint identifiedAt = curretResult.getDetectedAt();\n\t\t\tfor (int j = 0; j < words.length; j++) {\n\t\t\t\tString currentWord = words[j].toLowerCase();\n\t\t\t\tif (originalFreq.containsKey(currentWord)) {\n\t\t\t\t\tint detectedAt = (int) (identifiedAt - (words.length - j)\n\t\t\t\t\t\t\t* AVG_WORD_TIME);\n\t\t\t\t\toriginalFreq.get(currentWord).addVoiceDetection(detectedAt);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public long getSearchTime();",
"public int numberOfOccorrence();",
"public void addOccurence() {\n\t\tcount = count + 1;\n\t}",
"public abstract double sensingTime();",
"@Override\n public double getMatchTime() {\n return MATCH_DURATION_IN_SECONDS;\n }",
"public void testSummaryStatsStoppedTime() {\n File testFile = new File(\"src/test/data/dataset41.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertTrue(JdkUtil.LogEventType.G1_YOUNG_PAUSE.toString() + \" collector not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.G1_YOUNG_PAUSE));\n Assert.assertTrue(JdkUtil.LogEventType.APPLICATION_STOPPED_TIME.toString() + \" not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.APPLICATION_STOPPED_TIME));\n Assert.assertEquals(\"GC Event count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 2192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 2847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 964, jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 3884, jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 3884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 4884, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 99, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 78, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }",
"@Override\n public long checkFrequencyMillis()\n {\n return TimeUnit.DAYS.toMillis( 1 );\n }",
"public Hashtable<Integer, Hashtable<String, Obs>> remove_repeated(Hashtable<Integer, Hashtable<String, Obs>> obs) {\n\t\tHashtable<Integer, Hashtable<String, Obs>> tmp_obs = new Hashtable<>();\n\n\t\tfor (Map.Entry<Integer, Hashtable<String, Obs>> entrySet : obs.entrySet()) {\n\t\t\tInteger usr_key = entrySet.getKey();\n\t\t\tHashtable<String, Obs> obs_raw_data = entrySet.getValue();\n\t\t\tHashtable<String, Obs> tmp_obs_raw_data = new Hashtable<>();\n\t\t\tfor (Map.Entry<String, Obs> obs_raw_entrySet : obs_raw_data.entrySet()) {\n\n\t\t\t\tString day_key = obs_raw_entrySet.getKey();\n\t\t\t\tObs day_val = obs_raw_entrySet.getValue();\n\n\t\t\t\tString[] twrs = day_val.getSeq().split(CLM);\n\t\t\t\tString[] tstamps = day_val.getTimeStamp().split(CLM);\n\n\t\t\t\tString handled_twrs = twrs[0];\n\t\t\t\tString handled_tstamps = tstamps[0];\n\n\t\t\t\tfor (int i = 0; i < twrs.length - 1; i++) {\n\t\t\t\t\tString twr1 = twrs[i];\n\t\t\t\t\tString twr2 = twrs[i + 1];\n\n\t\t\t\t\tif (!twr1.equals(twr2)) {\n\t\t\t\t\t\thandled_twrs += CLM + twrs[i + 1];\n\t\t\t\t\t\thandled_tstamps += CLM + tstamps[i + 1];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * add last element\n\t\t\t\t */\n\t\t\t\t// handled_twrs += twrs[twrs.length - 1];\n\t\t\t\t// handled_tstamps += tstamps[twrs.length - 1];\n\t\t\t\ttmp_obs_raw_data.put(day_key, new Obs(handled_twrs, handled_tstamps));\n\n\t\t\t\t// System.out.println(day_val.seq);\n\t\t\t\t// System.out.println(\"++\" + handled_twrs);\n\t\t\t\t//\n\t\t\t\t// System.out.println(day_val.timeStamp);\n\t\t\t\t// System.out.println(\"++\" + handled_tstamps);\n\t\t\t\t// System.exit(0);\n\t\t\t\t// obs_raw_data.replace(day_key, new Obs(handled_twrs,\n\t\t\t\t// handled_tstamps));\n\t\t\t}\n\t\t\t// obs.replace(usr_key, obs_raw_data);\n\t\t\ttmp_obs.put(usr_key, tmp_obs_raw_data);\n\n\t\t}\n\t\treturn tmp_obs;\n\t}",
"public long getTotalTime() {\n/* 73 */ return this.totalTime;\n/* */ }",
"public int getMatchTime() {\n return getIntegerProperty(\"Time\");\n }",
"private int calTimeScore(SlidingBoardManager slidingBoardManager) {\n double time = slidingBoardManager.getTime();\n\n return (int) Math.round((100 - time / 15));\n\n }",
"long getNextCollectTimestampMs();",
"private int calculateLatestStartViolation(Game game, int time) {\n if (time > game.getLatestStart()) {\n return time - game.getLatestStart();\n }\n return 0;\n }",
"@Test\n public void ratingAtSameTimeAsStartIsReturned() {\n LocalDateTime firstTime = LocalDateTime.of(2017, Month.JANUARY, 1, 0, 0);\n\n TimePeriod tp = new TimePeriod(firstTime, firstTime.plusHours(4));\n ScoreTime r1 = new ScoreTime(firstTime, 3);\n ScoreTime r2 = new ScoreTime(firstTime.plusHours(3), 3);\n\n List<ScoreTime> returnedList = getRatingsBetweenAndSometimesOneBefore(tp, Arrays.asList(r1, r2));\n assertEquals(2, returnedList.size());\n assertEquals(r1.getTime(), returnedList.get(0).getTime());\n assertEquals(r2.getTime(), returnedList.get(1).getTime());\n }",
"private AttestationOccurrence(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }",
"public static Map<String, Long> countActivitiesWholePeriod(List<MonitoredData> data){\n ArrayList<String> activities = new ArrayList<>();\n for(int i=0; i<data.size(); i++){\n activities.add(data.get(i).getActivity());\n }\n Map<String, Long> counts =\n activities.stream().collect(Collectors.groupingBy(e -> e, Collectors.counting()));\n return counts;\n }",
"@Test\n\tpublic void dayTimeAndNightTimeAreDetectedCorrectlyTest() {\n\t\tcurrentDate = LocalDate.of(2019, 01, 27);\n\t\tAverageTemperatureAndPressure atp = forecastService.getAverageTemperatureAndPressure(city, currentDate, 3);\n\t\t\n\t\tassertEquals(3, atp.getAvrgDayTimeTemperature(), 0.000000001);\n\t\tassertEquals(7, atp.getAvrgNightTimeTemperature(), 0.000000001);\n\t\tassertEquals(6, atp.getAvrgPressure(), 0.000000001);\n\t}",
"void results() {\n Time t = new Time(System.currentTimeMillis());\n endTime = t;\n\n float t1gpslog, t2gpslog, t3gpslog, bhgpslog, mhgpslog, fhgpslog, nfgpslog,\n t1dtnlog, t2dtnlog, t3dtnlog, bhdtnlog, mhdtnlog, fhdtnlog, nfdtnlog;\n float t1logpercentage, t2logpercentage, t3logpercentage, bhlogpercentage,\n mhlogpercentage, fhlogpercentage, nflogpercentage;\n\n t1gpslog = t2gpslog = t3gpslog = bhgpslog = mhgpslog = fhgpslog = nfgpslog\n = t1dtnlog = t2dtnlog = t3dtnlog = bhdtnlog = mhdtnlog = fhdtnlog = nfdtnlog = 0;\n int xval, yval;\n\n for (int rbucklocationx = 0; rbucklocationx < MAX_X_GRID; rbucklocationx++) {\n for (int rbucklocationy = 0; rbucklocationy < MAX_Y_GRID; rbucklocationy++) {\n if (t1_grazecoordinate[rbucklocationx][rbucklocationy] == 1) {\n t1GPSLog.add(new GPSLog(rbucklocationx, rbucklocationy));\n t1gpslog++;\n }\n\n if (t2_grazecoordinate[rbucklocationx][rbucklocationy] == 1) {\n t2GPSLog.add(new GPSLog(rbucklocationx, rbucklocationy));\n t2gpslog++;\n }\n\n if (t3_grazecoordinate[rbucklocationx][rbucklocationy] == 1) {\n t3GPSLog.add(new GPSLog(rbucklocationx, rbucklocationy));\n t3gpslog++;\n }\n if (bh_grazecoordinate[rbucklocationx][rbucklocationy] == 1) {\n bhGPSLog.add(new GPSLog(rbucklocationx, rbucklocationy));\n bhgpslog++;\n }\n if (mh_grazecoordinate[rbucklocationx][rbucklocationy] == 1) {\n mhGPSLog.add(new GPSLog(rbucklocationx, rbucklocationy));\n mhgpslog++;\n }\n if (fh_grazecoordinate[rbucklocationx][rbucklocationy] == 1) {\n fhGPSLog.add(new GPSLog(rbucklocationx, rbucklocationy));\n fhgpslog++;\n }\n if (nf_grazecoordinate[rbucklocationx][rbucklocationy] == 1) {\n nfgGPSLog.add(new GPSLog(rbucklocationx, rbucklocationy));\n nfgpslog++;\n }\n }\n }\n\n for (int resultloop = 0; resultloop < DATA_MAX_PACKETS; resultloop++)\n {\n if (d1_message[resultloop] != 0) {\n if ((d1_message[resultloop] >> 11) == t1_agentid) {\n xval = ((d1_message[resultloop] >> 6) & 31);\n yval = (d1_message[resultloop] & 63);\n t1DTNLog.add(new GPSLog(xval, yval));\n t1dtnlog++;\n }\n if ((d1_message[resultloop] >> 11) == t2_agentid) {\n xval = ((d1_message[resultloop] >> 6) & 31);\n yval = (d1_message[resultloop] & 63);\n t2DTNLog.add(new GPSLog(xval, yval));\n t2dtnlog++;\n }\n if ((d1_message[resultloop] >> 11) == t3_agentid) {\n xval = ((d1_message[resultloop] >> 6) & 31);\n yval = (d1_message[resultloop] & 63);\n t3DTNLog.add(new GPSLog(xval, yval));\n t3dtnlog++;\n }\n if ((d1_message[resultloop] >> 11) == bh_agentid) {\n xval = ((d1_message[resultloop] >> 6) & 31);\n yval = (d1_message[resultloop] & 63);\n bhDTNLog.add(new GPSLog(xval, yval));\n bhdtnlog++;\n }\n if ((d1_message[resultloop] >> 11) == mh_agentid) {\n xval = ((d1_message[resultloop] >> 6) & 31);\n yval = (d1_message[resultloop] & 63);\n mhDTNLog.add(new GPSLog(xval, yval));\n mhdtnlog++;\n }\n if ((d1_message[resultloop] >> 11) == fh_agentid) {\n xval = ((d1_message[resultloop] >> 6) & 31);\n yval = (d1_message[resultloop] & 63);\n fhDTNLog.add(new GPSLog(xval, yval));\n fhdtnlog++;\n }\n if ((d1_message[resultloop] >> 11) == nf_agentid) {\n xval = ((d1_message[resultloop] >> 6) & 31);\n yval = (d1_message[resultloop] & 63);\n nfgDTNLog.add(new GPSLog(xval, yval));\n nfdtnlog++;\n }\n }\n }\n\n if (t1gpslog != 0) {\n t1logpercentage = (t1dtnlog / t1gpslog) * 100;\n percentageLog.add(\"t1percentage is \" + t1logpercentage);\n Platform.runLater(()-> {\n tps.getData().add(new XYChart.Data(\"T1\", t1logpercentage));\n tpslc.getData().add(new XYChart.Data(\"T1\", t1logpercentage));\n });\n t1tp = t1logpercentage;\n }\n\n if (t2gpslog != 0) {\n t2logpercentage = (t2dtnlog / t2gpslog) * 100;\n percentageLog.add(\"t2percentage is \" + t2logpercentage);\n Platform.runLater(()-> {\n tps.getData().add(new XYChart.Data(\"T2\", t2logpercentage));\n tpslc.getData().add(new XYChart.Data(\"T2\", t2logpercentage));\n });\n t2tp = t2logpercentage;\n }\n\n if (t3gpslog != 0) {\n t3logpercentage = (t3dtnlog / t3gpslog) * 100;\n percentageLog.add(\"t3percentage is \" + t3logpercentage);\n Platform.runLater(()-> {\n tps.getData().add(new XYChart.Data(\"T3\", t3logpercentage));\n tpslc.getData().add(new XYChart.Data(\"T3\", t3logpercentage));\n });\n t3tp = t3logpercentage;\n }\n\n if (bhgpslog != 0) {\n bhlogpercentage = (bhdtnlog / bhgpslog) * 100;\n percentageLog.add(\"bhpercentage is \" + bhlogpercentage);\n Platform.runLater(()-> {\n tps.getData().add(new XYChart.Data(\"BH\", bhlogpercentage));\n tpslc.getData().add(new XYChart.Data(\"BH\", bhlogpercentage));\n });\n bhtp = bhlogpercentage;\n }\n\n if (mhgpslog != 0) {\n mhlogpercentage = (mhdtnlog / mhgpslog) * 100;\n percentageLog.add(\"mhpercentage is \" + mhlogpercentage);\n Platform.runLater(()-> {\n tps.getData().add(new XYChart.Data(\"MH\", mhlogpercentage));\n tpslc.getData().add(new XYChart.Data(\"MH\", mhlogpercentage));\n });\n mhtp = mhlogpercentage;\n }\n\n if (fhgpslog != 0) {\n fhlogpercentage = (fhdtnlog / fhgpslog) * 100;\n percentageLog.add(\"fhpercentage is \" + fhlogpercentage);\n Platform.runLater(()-> {\n tps.getData().add(new XYChart.Data(\"FH\", fhlogpercentage));\n tpslc.getData().add(new XYChart.Data(\"FH\", fhlogpercentage));\n });\n fhtp = fhlogpercentage;\n }\n\n if (nfgpslog != 0) {\n nflogpercentage = (nfdtnlog / nfgpslog) * 100;\n percentageLog.add(\"nfpercentage is \" + nflogpercentage);\n Platform.runLater(()-> {\n tps.getData().add(new XYChart.Data(\"NF\", nflogpercentage));\n tpslc.getData().add(new XYChart.Data(\"NF\", nflogpercentage));\n });\n nftp = nflogpercentage;\n }\n\n float gpslogSum = t1gpslog + t2gpslog + t3gpslog + bhgpslog + mhgpslog + fhgpslog + nfgpslog;\n float dtnlogSum = t1dtnlog + t2dtnlog + t3dtnlog + bhdtnlog + mhdtnlog + fhdtnlog + nfdtnlog;\n\n \n if (gpslogSum > 0)\n {\n float collectiveThroughput = ((dtnlogSum) / (gpslogSum)) * 100;\n Platform.runLater(()-> {\n tps.getData().add(new XYChart.Data(\"CT\", collectiveThroughput));\n tpslc.getData().add(new XYChart.Data(\"CT\", collectiveThroughput));\n });\n ct = collectiveThroughput;\n }\n\n //Add the Radio Contact Ratio value to the series\n \n if (dtnlogSum > 0)\n {\n rcratio = radioContactLog.size()/dtnlogSum;\n }\n else\n {\n rcratio = 0;\n }\n Platform.runLater(()-> {\n rcrSeries.setYValue(rcratio);\n });\n updateGPSLogSeries();\n updateDataCenterSeries();\n\n //Update the binding properties \n Platform.runLater(()-> {\n simStarted.set(false);\n simInProgress.set(false);\n simCompleted.set(true);\n simNotInProgress.set(true);\n simPaused.set(false);\n simNotStarted.set(true);\n });\n packetModels.clear();\n packetModels.add(new PacktTallyModel(t1gpslog));\n packetModels.add(new PacktTallyModel(t2gpslog));\n packetModels.add(new PacktTallyModel(t3gpslog));\n packetModels.add(new PacktTallyModel(bhgpslog));\n packetModels.add(new PacktTallyModel(mhgpslog));\n packetModels.add(new PacktTallyModel(fhgpslog));\n packetModels.add(new PacktTallyModel(nfgpslog));\n packetModels.add(new PacktTallyModel(gpslogSum));\n packetModels.add(new PacktTallyModel(t1dtnlog));\n packetModels.add(new PacktTallyModel(t2dtnlog));\n packetModels.add(new PacktTallyModel(t3dtnlog));\n packetModels.add(new PacktTallyModel(bhdtnlog));\n packetModels.add(new PacktTallyModel(mhdtnlog));\n packetModels.add(new PacktTallyModel(fhdtnlog));\n packetModels.add(new PacktTallyModel(nfdtnlog));\n packetModels.add(new PacktTallyModel(dtnlogSum));\n packetModels.add(new PacktTallyModel(ct));\n packetModels.add(new PacktTallyModel(radioContactLog.size()));\n packetModels.add(new PacktTallyModel(rcratio));\n \n }",
"@Test\n public void testRepeatedMatch() {\n assertMetrics(\"fieldCompleteness:1 queryCompleteness:0.6667 segments:1 earliness:1 gaps:1\",\n \"pizza hut pizza\",\"pizza hut\");\n }",
"public double ProcessArrivalTime()\r\n\t{\r\n\t\tdouble U = Math.random();\r\n\t\t//double lambda = 0.04;\r\n\t\tdouble lambda = 0.01;\r\n\t\tdouble V = ( -1 * (Math.log(1.0 - U)) ) / lambda; \r\n\t\treturn V;\r\n\t}",
"public int getTime() { return _time; }",
"int getTimeInstants();",
"public void act() \n {\n updateTimerDisplay();\n if(timeCounter < 3600){\n timeCounter++;\n \n }else{\n timeElapsed++;\n timeCounter = 0;\n }\n checkHighScore();\n checkRegScore();\n\n }",
"private void findHumidities(ForecastIO FIO, WeatherlyDayForecast day){\n FIOHourly hourlyForecast = new FIOHourly(FIO);\n int numHours = hourlyForecast.hours();\n\n //Determine the number of hours left in the day\n Calendar rightNow = Calendar.getInstance();\n int dayHoursLeft = 24 - rightNow.get(Calendar.HOUR_OF_DAY);\n\n //Find the lowest and highest chances for precipitation for the rest of the day\n double minHum = hourlyForecast.getHour(0).humidity();\n double maxHum = minHum;\n int maxHour = rightNow.get(Calendar.HOUR_OF_DAY);\n for (int i = 1; i < dayHoursLeft; i++){\n double hum = hourlyForecast.getHour(i).humidity();\n if (minHum > hum)\n minHum = hum;\n if (maxHum < hum) {\n maxHum = hum;\n maxHour = i + rightNow.get(Calendar.HOUR_OF_DAY);\n }\n\n }\n\n day.setHumMin((int) (minHum * 100));\n day.setHumMax((int) (maxHum * 100));\n day.setHumMaxTime(maxHour);\n }",
"private static float timeForEvent(float simulationTime, int amountEvents) {\r\n float humAmount = (amountEvents * 2) - 1;\r\n float timeInMilli = simulationTime * 3600f;\r\n\r\n return timeInMilli / humAmount;\r\n }",
"@Override\r\n\tpublic void preExcute(long arg0) {\n\t\tstartTime = arg0;\r\n\r\n\t}",
"protected GCTimeStats readTimeStats(final Match match) {\n\t //TODO: this is not correct! Do not use null values, use Optional instead\n\t //*****************************************************\n\t\tLocalDateTime startup = null;\n\t\tif(match.getByName(\"timestamp\") != null) {\n\t\t\tfinal String date = match.getByName(\"timestamp->date\");\n\t\t\tfinal String time = match.getByName(\"timestamp->time\");\n\t\t\tstartup = LocalDateTime.parse(date+\"T\"+time);\n\t\t}\n\n\t\tfinal double ellapsedTimeInSecs = Double.valueOf(match.getByName(\"timeSinceStartup\"));\n\n\t\tfinal double durationInSecs = Double.valueOf(match.getByName(\"duration\"));\n\t\tfinal GCTimeStats timeStats = new GCTimeStats(startup, ellapsedTimeInSecs, durationInSecs);\n\t\treturn timeStats;\n\t}",
"public long getEventTime();",
"@Test\n public void testDetecterCompteSousMoyenne() {\n// System.out.println(\"detecterAnomalieParrapportAuSeuil\");\n Integer seuil = 30;\n POJOCompteItem instance = genererInstanceTest();\n\n try {\n instance.compte();\n instance.calculerMoyenne(new DateTime(2013, 1, 1, 0, 0).toDate(), new DateTime(2013, 1, 6, 0, 0).toDate());\n } catch (Exception ex) {\n Logger.getLogger(POJOCompteItemTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n// List expResult = null;\n Map<Date, Integer> result = instance.detecterAnomalieParrapportAuSeuil(seuil);\n\n if (result.size() != 3) {\n fail(\"on attend 3 résultats\");\n }\n\n\n try { // On tente de faire le calcul avec une valeur null doit lever une NullPointerException\n instance.detecterAnomalieParrapportAuSeuil(null);\n fail(\"devait lancer une exception\");\n } catch (Exception e) {\n if (!e.getClass().equals(NullPointerException.class)) {\n fail(\"devait lever une NullPointerException\");\n }\n }\n }",
"int countByExample(AoD5e466WorkingDayExample example);",
"private void getTimestamps() {\n \t\tCalendar calendar = new GregorianCalendar(2007,Calendar.JANUARY,1);\n \t\tcalendar.set(2000 + yy, mm - 1, dd, HH, MM);\n \t\tString[] tempstr = new String[6];\n \n \t\tfor(int i = 0; i < r.length; i++) {\n \t\t\tif(calendar.get(Calendar.YEAR) < 10) {\n \t\t\t\ttempstr[0] = \"0\" + str(calendar.get(Calendar.YEAR));\n \t\t\t}\n \t\t\telse {\n \t\t\t\ttempstr[0] = str(calendar.get(Calendar.YEAR));\n \t\t\t}\n \t\t\tif(calendar.get(Calendar.MONTH) < 9) {\n \t\t\t\ttempstr[1] = \"0\" + str(calendar.get(Calendar.MONTH) + 1);\n \t\t\t}\n \t\t\telse {\n \t\t\t\ttempstr[1] = str(calendar.get(Calendar.MONTH) + 1);\n \t\t\t}\n \t\t\tif(calendar.get(Calendar.DATE) < 10) {\n \t\t\t\ttempstr[2] = \"0\" + str(calendar.get(Calendar.DATE));\n \t\t\t}\n \t\t\telse {\n \t\t\t\ttempstr[2] = str(calendar.get(Calendar.DATE));\n \t\t\t}\n \t\t\tif(calendar.get(Calendar.HOUR) < 12) {\n \t\t\t\tif(calendar.get(Calendar.AM_PM) == 1) {\n \t\t\t\t\ttempstr[3] = str(calendar.get(Calendar.HOUR) + 12);\n \t\t\t\t}\n \t\t\t\telse if(calendar.get(Calendar.HOUR) < 10) {\n \t\t\t\t\ttempstr[3] = \"0\" + str(calendar.get(Calendar.HOUR));\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\ttempstr[3] = str(calendar.get(Calendar.HOUR));\n \t\t\t\t}\n \t\t\t}\n \t\t\telse {\n \t\t\t\ttempstr[3] = str(calendar.get(Calendar.HOUR));\n \t\t\t}\n \t\t\tif(calendar.get(Calendar.MINUTE) < 10) {\n \t\t\t\ttempstr[4] = \"0\" + str(calendar.get(Calendar.MINUTE));\n \t\t\t}\n \t\t\telse {\n \t\t\t\ttempstr[4] = str(calendar.get(Calendar.MINUTE));\n \t\t\t}\n \t\t\tif(calendar.get(Calendar.SECOND) < 10) {\n \t\t\t\ttempstr[5] = \"0\" + str(calendar.get(Calendar.SECOND));\n \t\t\t}\n \t\t\telse {\n \t\t\t\ttempstr[5] = str(calendar.get(Calendar.SECOND));\n \t\t\t}\n \t\t\t\n \t\t\t//LightMaskClient.appendMainText(\"\\nGettings time\");\n \t\t\t//matTime[i] = calendar.getTimeInMillis();\n \t\t\t//LightMaskClient.appendMainText(\"\\nGot time\" + matTime[i]);\n \n \t\t\t//timestamps[i] = tempstr[3] + \":\" + tempstr[4] + \":\" + tempstr[5] + \" \" + tempstr[1] + \"/\" + tempstr[2] + \"/\" + tempstr[0];\n \t\t\ttimestamps[i] = tempstr[1] + \"/\" + tempstr[2] + \"/\" + tempstr[0] + \" \" + tempstr[3] + \":\" + tempstr[4] + \":\" + tempstr[5];\n \t\t\t//LightMaskClient.appendMainText(\"\\n\" + timestamps[i]);\n \t\t\tcalendar.add(Calendar.SECOND, period);\n \t\t}\n \t}",
"@Override\n\tpublic long getLastAccessedTime() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic long getLastAccessedTime() {\n\t\treturn 0;\n\t}",
"public void playSometimes(final int occurrenceRate) {\n if (playCount % occurrenceRate == 0) {\n play();\n }\n playCount++;\n }",
"private void calculateIdf(){\r\n\t\tIdf = new HashMap<>();\r\n\t\tOcc = new HashMap<>();\r\n\t\t\r\n\t\tfor (Entry<String, Document> doc : Docs.entrySet()){\r\n\t\t\tdoc.getValue().wordSet.forEach(word -> {\r\n\t\t\t\tdouble count = Idf.containsKey(word) ? Idf.get(word) : 0;\r\n \tIdf.put(word, count+1);\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tdoc.getValue().words.forEach((w, o) -> words.add(w));\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tfor (Entry<String, Double> e : new HashMap<>(Idf).entrySet()){\r\n\t\t\tIdf.put(e.getKey(),\r\n\t\t\t\t\tMath.log(Idf.keySet().size() / e.getValue()));\r\n\t\t}\r\n\t}",
"private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}",
"long getExposureTimePref();",
"@Override\r\n\tpublic int getDFSDiscoveredTime(E key) {\r\n\t\tif(containsVertex(key)) {\r\n\t\t\treturn vertices.get(key).getDiscovered();\r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"private String getTimingt(Long pastvalue) {\n DateTime zulu = DateTime.now(DateTimeZone.UTC);\n // DateTimeFormatter formatter = DateTimeFormat.forPattern(\"HH:mm:ss am\");\n Date date = new Date(pastvalue);\n// formattter\n SimpleDateFormat formatter= new SimpleDateFormat(\"hh:mm a\");\n formatter.setTimeZone(TimeZone.getDefault());\n// Pass date object\n return formatter.format(date );\n /*\n long mint = TimeUnit.MILLISECONDS.toMinutes(zulu.toInstant().getMillis() - pastvalue);\n\n if (mint < 60) {\n if (mint > 1)\n return \"Hace \" + mint + \" minutos\";\n else\n return \"Hace \" + mint + \" minuto\";\n } else {\n long horas = TimeUnit.MILLISECONDS.toHours(zulu.toDate().getTime() - pastvalue);\n\n if (horas < 24) {\n if (horas > 1)\n return \"Hace \" + horas + \" horas\";\n else\n return \"Hace \" + horas + \" hora\";\n } else {\n long dias = TimeUnit.MILLISECONDS.toDays(zulu.toDate().getTime() - pastvalue);\n\n if (dias > 1) {\n return \"Hace \" + dias + \" dias\";\n } else\n return \"Hace \" + dias + \" dia\";\n }\n\n\n }*/\n }",
"@Override\n\tpublic void process(JCas jcas) throws AnalysisEngineProcessException {\n\t\t@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\t\tAnnotationIndex<Annotation> sentIndex = jcas\n\t\t\t\t.getAnnotationIndex(Sentence.type);\n\t\tAnnotationIndex<Annotation> timeIndex = jcas\n\t\t\t\t.getAnnotationIndex(Timex3.type);\n\t\tAnnotationIndex<Annotation> tokenIndex = jcas\n\t\t\t\t.getAnnotationIndex(Token.type);\n\n\t\tboolean addTimespan = false;\n\n\t\t// for every sentence\n\t\tfor (Annotation an : sentIndex) {\n\t\t\tSentence sent = (Sentence) an;\n\t\t\tint sentBegin = sent.getBegin();\n\t\t\tint sentEnd = sent.getEnd();\n\n\t\t\tFSIterator<Annotation> timeIter = timeIndex.subiterator(sent);\n\t\t\t// save begins and ends of all timex tokens adjust index to sentence\n\t\t\tArrayList<Integer> begins = new ArrayList<Integer>();\n\t\t\tArrayList<Integer> ends = new ArrayList<Integer>();\n\t\t\tArrayList<Timex3> timexs = new ArrayList<Timex3>();\n\t\t\t// get all timex annot. that are no durations like 6 minutes\n\t\t\twhile (timeIter.hasNext()) {\n\t\t\t\tTimex3 time = (Timex3) timeIter.next();\n\t\t\t\tif (!time.getTimexType().equals(\"DURATION\")) {\n\t\t\t\t\ttimexs.add(time);\n\t\t\t\t\t// begins.add(time.getBegin());// - sentBegin);\n\t\t\t\t\t// ends.add(time.getEnd());// - sentBegin);\n\n\t\t\t\t}\n\t\t\t\t// //System.out.println(sent.getCoveredText());\n\t\t\t}\n\n\t\t\t// if at least 2 found check text between timex expressions\n\t\t\tint timexCount = timexs.size();\n\t\t\tint interval;\n\t\t\tint begin1, end1, begin2, end2;\n\t\t\tif (timexCount >= 2) {\n\t\t\t\t// TODO change if direct access to sents of jcas per id is\n\t\t\t\t// possible\n\t\t\t\tString docText = jcas.getDocumentText(); // .getCoveredText();\n\t\t\t\tfor (int i = 0; i < timexCount - 1; i++) {\n\t\t\t\t\t// get postitons of timexs and scale to sentence\n\t\t\t\t\tbegin1 = timexs.get(i).getBegin() - sentBegin;\n\t\t\t\t\tbegin2 = timexs.get(i + 1).getBegin() - sentBegin;\n\t\t\t\t\t;\n\t\t\t\t\tend1 = timexs.get(i).getEnd() - sentBegin;\n\t\t\t\t\t;\n\t\t\t\t\tend2 = timexs.get(i + 1).getEnd() - sentBegin;\n\t\t\t\t\t;\n\t\t\t\t\t// //System.out.println(begins.get(i) + \" \" + ends.get(i +\n\t\t\t\t\t// 1) + \" \" +\n\t\t\t\t\t// sentBegin + \" \"+ sent.getEnd());\n\t\t\t\t\t// interval = begins.get(i + 1) - ends.get(i);\n\t\t\t\t\t// only cut text if interval under max length\n\t\t\t\t\tinterval = begin2 - end1;\n\t\t\t\t\tif (interval < 10 && interval > 0) {\n\t\t\t\t\t\tString sentText = sent.getCoveredText();\n\t\t\t\t\t\t// String betweenText = docText.substring(ends.get(i),\n\t\t\t\t\t\t// begins.get(i\n\t\t\t\t\t\t// + 1));\n\t\t\t\t\t\t// get text between timex expr. and removes surrounding\n\t\t\t\t\t\t// whitespace\n\t\t\t\t\t\t// String betweenText = docText.substring(end1,\n\t\t\t\t\t\t// begin2).trim();\n\t\t\t\t\t\tString betweenText = sentText.substring(end1, begin2)\n\t\t\t\t\t\t\t\t.trim();\n\n\t\t\t\t\t\t// System.out.println(betweenText);\n\t\t\t\t\t\t// String output = \"\";\n\t\t\t\t\t\t// output += \"|#\" + betweenText + \"#\" +\n\t\t\t\t\t\t// sentText.substring(begin1, end2) + \" ##\"\n\t\t\t\t\t\t// + sentText.substring(begin1, end1) + \"|\" +\n\t\t\t\t\t\t// sentText.substring(begin2, end2) + \"||\";\n\t\t\t\t\t\t// TODO make check nicer not or but set\n\t\t\t\t\t\tif (betweenText.equals(\"-\") || betweenText.equals(\"to\")\n\t\t\t\t\t\t\t\t|| betweenText.equals(\"through\")) {\n\t\t\t\t\t\t\taddTimespan = true;\n\t\t\t\t\t\t\t// System.out.println(\"Found to or - \");\n\t\t\t\t\t\t} else if (betweenText.equals(\"and\")) {\n\t\t\t\t\t\t\t// for 'and' check if 'between' is before first\n\t\t\t\t\t\t\t// timex\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t// System.out.println((begin1 - 8));\n\t\t\t\t\t\t\t\tif (begin1 - 8 >= 0) {\n\t\t\t\t\t\t\t\t\tString preText = sentText\n\t\t\t\t\t\t\t\t\t\t\t.substring(begin1 - 8, begin1)\n\t\t\t\t\t\t\t\t\t\t\t.trim().toLowerCase();\n\t\t\t\t\t\t\t\t\t// System.out.println(\"Pre: \" + preText);\n\t\t\t\t\t\t\t\t\tif (preText.equals(\"between\")) {\n\t\t\t\t\t\t\t\t\t\taddTimespan = true;\n\t\t\t\t\t\t\t\t\t\t// System.out.println(\"Found between and\");\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t// System.out.println(\"not Found and: \"\n\t\t\t\t\t\t\t\t\t\t// + preText);\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} catch (Exception e) {\n\t\t\t\t\t\t\t\t// System.err.println(\"Cut error\" +\n\t\t\t\t\t\t\t\t// sent.getCoveredText());\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// add new annotation\n\t\t\t\t\t\tif (addTimespan) {\n\t\t\t\t\t\t\tTimespan timespan = new Timespan(jcas);\n\t\t\t\t\t\t\t// set text span\n\t\t\t\t\t\t\ttimespan.setBegin(timexs.get(i).getBegin());\n\t\t\t\t\t\t\ttimespan.setEnd(timexs.get(i + 1).getEnd());\n\t\t\t\t\t\t\t// set times\n\t\t\t\t\t\t\ttimespan.setStartTime(timexs.get(i));\n\t\t\t\t\t\t\ttimespan.setEndTime(timexs.get(i + 1));\n\t\t\t\t\t\t\t// System.out.println(\"ADDED\");\n\t\t\t\t\t\t\ttimespan.addToIndexes(jcas);\n\t\t\t\t\t\t\t// remove timex annotations form jcas\n\t\t\t\t\t\t\ttimexs.get(i).removeFromIndexes(jcas);\n\t\t\t\t\t\t\ttimexs.get(i + 1).removeFromIndexes(jcas);\n\t\t\t\t\t\t\taddTimespan = false;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// output += sentText;\n\t\t\t\t\t\t// System.out.println(output.replace(\"\\n\", \" \"));\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}",
"private int getNanoseconds(TemporalAccessor partialValue) {\n int nanoSecs = 0;\r\n try {\r\n nanoSecs = partialValue.get(ChronoField.NANO_OF_SECOND);\r\n } catch (DateTimeException e) {\r\n // these errors may be common do not print them\r\n }\r\n return nanoSecs;\r\n }",
"long getAgeRelativeToReferencePoint(Calendar referenceTime, Calendar testTime);",
"public void timePassed() {\r\n }",
"public void timePassed() {\r\n }",
"public void visit(Personnes p) {\n pers = p;\n tpsAttentePerso = p.getTpsAttente();\n tpsAttentePerso2 = p.getTpsArrive();\n totalTime += tpsAttentePerso;\n\tnbVisited += 1;\n moyenne = totalTime/nbVisited; \n }",
"long getVisitEndtime();",
"long getVisitEndtime();",
"public void narrowAllSentencesByLastOccurrenceAndUpdate() {\n try {\n List<String> properties = PropertyUtils.getAllProperties();\n for (String property : properties) {\n HashMap<Integer, HashMap<String, String>> sentenceTripleDataMap = PropertyUtils.getSentencesForProperty(property);\n for (Integer sentenceId : sentenceTripleDataMap.keySet()) {\n String subLabel = sentenceTripleDataMap.get(sentenceId).get(\"subLabel\");\n String objLabel = sentenceTripleDataMap.get(sentenceId).get(\"objLabel\");\n String sentence = sentenceTripleDataMap.get(sentenceId).get(\"sentence\");\n\n String newSentence = narrowSentencesByLastOccurrence(sentence, subLabel, objLabel);\n if (!newSentence.equals(sentence)) {\n // replace sentence in DB\n System.out.println(sentenceId);\n updateTripleSentence(sentenceId, newSentence);\n }\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"private int getNumberOfEventsByMinuteOrHour(boolean isByMinute) {\n int counter = 0;\n long currentTimeSeconds = getCurrentTimeInSeconds();\n long currentTimeIndex = (currentTimeSeconds - startTime) % SECONDS_IN_DAY;\n int timePeriod = isByMinute ? SECONDS_IN_MINUTE : SECONDS_IN_HOUR;\n\n if (currentTimeIndex + 1 - timePeriod >= 0) {\n for (int i = (int) currentTimeIndex; i > currentTimeIndex - timePeriod; i--) {\n synchronized (records[i]) {\n if (currentTimeSeconds - records[i].getLastTimeReset() < SECONDS_IN_DAY) {\n counter += records[i].getCount();\n }\n }\n }\n } else {\n for (int i = (int) currentTimeIndex; i >= 0; i--) {\n synchronized (records[i]) {\n if (currentTimeSeconds - records[i].getLastTimeReset() < SECONDS_IN_DAY) {\n counter += records[i].getCount();\n }\n }\n }\n\n for (int i = records.length - 1; i > records.length + currentTimeIndex - timePeriod; i--) {\n synchronized (records[i]) {\n if (currentTimeSeconds - records[i].getLastTimeReset() < SECONDS_IN_DAY) {\n counter += records[i].getCount();\n }\n }\n }\n }\n\n return counter;\n }",
"public abstract Date computeFirstFireTime(Calendar calendar);"
] | [
"0.70906985",
"0.56755143",
"0.560291",
"0.5552469",
"0.5282653",
"0.5265154",
"0.5244429",
"0.5212231",
"0.5185696",
"0.51816016",
"0.51783043",
"0.514156",
"0.5119958",
"0.5113127",
"0.51053274",
"0.5067907",
"0.5064084",
"0.5039041",
"0.5030886",
"0.501943",
"0.5009299",
"0.5007639",
"0.4996659",
"0.499353",
"0.49899355",
"0.49835542",
"0.4974174",
"0.4952149",
"0.49480742",
"0.49297732",
"0.49235082",
"0.49187684",
"0.4914438",
"0.49142516",
"0.4905217",
"0.49050918",
"0.49042004",
"0.49016768",
"0.4899721",
"0.48965776",
"0.4892133",
"0.48899472",
"0.48899472",
"0.48848093",
"0.4880223",
"0.48790026",
"0.48771578",
"0.48767048",
"0.48760292",
"0.4868974",
"0.48679984",
"0.4863217",
"0.48550618",
"0.484866",
"0.4846036",
"0.48428908",
"0.4834666",
"0.4830256",
"0.48284668",
"0.48267663",
"0.48261726",
"0.48221323",
"0.48172885",
"0.48069575",
"0.48065594",
"0.4795608",
"0.47928494",
"0.47896984",
"0.47883645",
"0.47742045",
"0.47666392",
"0.47654143",
"0.475865",
"0.47573847",
"0.47538134",
"0.47512823",
"0.4750181",
"0.47475263",
"0.4746775",
"0.47403613",
"0.47365272",
"0.47353402",
"0.47254425",
"0.47254425",
"0.47245273",
"0.47194478",
"0.47157755",
"0.47134754",
"0.47123605",
"0.4711677",
"0.47105598",
"0.47087565",
"0.47063038",
"0.47062162",
"0.47062162",
"0.47059137",
"0.470318",
"0.470318",
"0.4702156",
"0.47020736",
"0.46969435"
] | 0.0 | -1 |
if (unownSprites) get the sprites for Unown | Sprite[] readRomSprites(boolean unownSprites) throws IOException
{
Sprite[] sprites = (unownSprites) ? new Sprite[N_UNOWN] : new Sprite[N_POKEMON];
int ptrOffset = (unownSprites) ? OFFSET_SPRITE_POINTERS_U : OFFSET_SPRITE_POINTERS;
for (int i = 0; i < sprites.length; i++)
{
byte[] ptr; // pointer to sprite
int[] pos = new int[2];
int length;
ptr = readFromRom(ch, ptrOffset + 6 * i, 3);
pos[0] = Sprite.pointerToOffset(ptr);
length = (!unownSprites && i == INDEX_UNOWN - 1) ? 0 : getPicSize(pos[0]);
byte[] front = readFromRom(ch, pos[0], length);
ptr = readFromRom(ch, ptrOffset + 6 * i + 3, 3);
pos[1] = Sprite.pointerToOffset(ptr);
length = (!unownSprites && i == INDEX_UNOWN - 1) ? 0 : getPicSize(pos[1]);
byte[] back = readFromRom(ch, pos[1], length);
byte dim;
if (unownSprites)
{
dim = readByteFromRom(ch, OFFSET_POKEMON_1 + 0x11 + (0x20 * (INDEX_UNOWN - 1))); // read only the relevant byte
}
else
{
dim = readByteFromRom(ch, OFFSET_POKEMON_1 + 0x11 + (0x20 * i)); // read only the relevant byte
}
sprites[i] = new Sprite(front, back, dim, pos);
}
return sprites;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeSprites(){\r\n\r\n\t}",
"public HashMap<String, BufferedImage> getSprites() {\n \t\treturn sprites;\n \t}",
"ArrayList<Sprite> getSpriteArray();",
"public Sprite getBattleSprite()\n {\n return battleSprite;\n }",
"public HashMap<Integer, Sprite> getVillagers() {\n\t\tfor (int i = 0; i < player.getPartyMembers().size(); i++) {\n\t\t\tint h = player.getPartyMembers().get(i).hashCode();\n\t\t\tsprites.remove(h);\n\t\t}\n\t\tupdateSpriteList();\n\t\treturn sprites;\n\t}",
"private void ini_Sprites()\r\n\t{\r\n\t\tLogger.DEBUG(\"ini_Sprites\");\r\n\t\tResourceCache.LoadSprites(false);\r\n\t}",
"@Override\n public Sprite getHurtSprite() {\n return Assets.getInstance().getSprite(\"entity/zombie_blood0.png\");\n }",
"public BufferedImage getSpriteImage(String ref) {\n\t\treturn sprites.get(ref);\n\t}",
"public Sprite getSprite(String ref) {\n\t\tif (ref.equals(\"boss\")) {\n\t\t\treturn sprite.get(\"bossSprite\");\n\t\t} else if (ref.equals(\"boss_bullet\")) {\n\t\t\treturn sprite.get(\"bossBulletSprite\");\n\t\t} else if (ref.equals(\"boss_explosion\")) {\n\t\t\treturn sprite.get(\"bossExplosionSprite\");\n\t\t} else if (ref.equals(\"boss_hit\")) {\n\t\t\treturn sprite.get(\"bossHitSprite\");\n\t\t} else if (ref.equals(\"bullet\")) {\n\t\t\treturn sprite.get(\"bulletSprite\");\n\t\t} else if (ref.equals(\"enemy_bullet\")) {\n\t\t\treturn sprite.get(\"enemyBulletSprite\");\n\t\t} else if (ref.equals(\"enemy_explosion\")) {\n\t\t\treturn sprite.get(\"enemyExplosionSprite\");\n\t\t} else if (ref.equals(\"enemy_hit\")) {\n\t\t\treturn sprite.get(\"enemyHitSprite\");\n\t\t} else if (ref.equals(\"green_box\")) {\n\t\t\treturn sprite.get(\"greenBoxSprite\");\n\t\t} else if (ref.equals(\"laser\")) {\n\t\t\treturn sprite.get(\"laserSprite\");\n\t\t} else if (ref.equals(\"player\")) {\n\t\t\treturn sprite.get(\"playerSprite\");\n\t\t} else if (ref.equals(\"player_explosion\")) {\n\t\t\treturn sprite.get(\"playerExplosionSprite\");\n\t\t} else if (ref.equals(\"player_hit\")) {\n\t\t\treturn sprite.get(\"playerHitSprite\");\n\t\t} else if (ref.equals(\"powerup_explosion\")) {\n\t\t\treturn sprite.get(\"powerupExplosionSprite\");\n\t\t} else if (ref.equals(\"red_box\")) {\n\t\t\treturn sprite.get(\"redBoxSprite\");\n\t\t} else {\n\t\t\tSystem.out.println(\"fatal error\");\n\t\t\tSystem.out.println(ref);\n\t\t\treturn null;\n\t\t}\n\t}",
"public Image getBulletImg(){ \n return SpriteSheet.playerProjectileSprites[this.frameNumber]; \n }",
"private static void loadSprites(){\n \t\tshipSprites.put(\"SCOUT_BLUE\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/blue/scout.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"HUNTER_BLUE\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/blue/hunter.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"DESTROYER_BLUE\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/blue/destroyer.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"COLONIZER_BLUE\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/blue/colonizer.png\"), 0.5f, 0.5f));\n \t\t\n \t\t/*\n \t\t * Ships Red Player\n \t\t */\n \t\tshipSprites.put(\"SCOUT_RED\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/red/scout.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"HUNTER_RED\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/red/hunter.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"DESTROYER_RED\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/red/destroyer.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"COLONIZER_RED\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/red/colonizer.png\"), 0.5f, 0.5f));\n \n \t\t/*\n \t\t * Path Arrows\n \t\t */\n\t\tpathTextures.put(\"HEAD\", Toolkit.getDefaultToolkit().getImage(\"res/path/head.png\"));\n\t\tpathTextures.put(\"START\", Toolkit.getDefaultToolkit().getImage(\"res/path/start.png\"));\n\t\tpathTextures.put(\"STRAIGHT\", Toolkit.getDefaultToolkit().getImage(\"res/path/straight.png\"));\n\t\tpathTextures.put(\"TURN\", Toolkit.getDefaultToolkit().getImage(\"res/path/turn.png\"));\n \t\t\n \t\t/*\n \t\t * Planets\n \t\t */\n \t\tmetalplanets.put(0, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/metalplanet_0.png\"), 0.5f, 0));\n \t\tmetalplanets.put(1, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/metalplanet_1.png\"), 0.5f, 0));\n \t\tmetalplanets.put(2, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/metalplanet_2.png\"), 0.5f, 0));\n \t\tmetalplanets.put(3, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/metalplanet_3.png\"), 0.5f, 0));\n \t\tgasplanets.put(0, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/gasplanet_0.png\"), 0.5f, 0));\n \t\tgasplanets.put(1, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/gasplanet_1.png\"), 0.5f, 0));\n \t\tgasplanets.put(2, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/gasplanet_2.png\"), 0.5f, 0));\n \t\t\n \t\t/*\n \t\t * Colony Sprite\n \t\t */\n \t\tloadColonySprites(Color.RED, \"RED\");\n \t\tloadColonySprites(Color.BLUE, \"BLUE\");\n \t}",
"public BufferedImage[] powerSprite(){\n\t\tBufferedImage arr[] = new BufferedImage[4];\n\t\tarr[0] = img.getSubimage(724, 283, 71, 67);\n\t\tarr[1] = img.getSubimage(650, 286, 72, 64);\n\t\tarr[2] = img.getSubimage(484, 292, 83, 58);\n\t\tarr[3] = img.getSubimage(257, 281, 71, 69);\n\t\treturn arr;\n\t\t\t\n\t}",
"private void createSpritesList() {\n\t\tArrayList<PartyMember> pmList = player.getPartyMembers();\n\t\tfor (int i = 0; i < pmList.size(); i++) {\n\t\t\tSprite as = pmList.get(i);\n\t\t\tsprites.put(as.hashCode(), as);\n\t\t}\n\t\telements = new SortingElement[sprites.size()];\n\t\tIterator<Integer> it = sprites.keySet().iterator();\n\t\tint i = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tint index = it.next();\n\t\t\tSprite as = sprites.get(index);\n\t\t\telements[i++] = new SortingElement(as.pos[Values.Y], index);\n\t\t}\n\t}",
"private void loadSprites() throws IOException {\n \t\tsprites.put(\"fullBin\", ImageIO.read(new File(\"user-trash-full64.png\")));\n \t\tsprites.put(\"emptyBin\", ImageIO.read(new File(\"user-trash64.png\")));\n \t\tsprites.put(\"sysfileLarge\", ImageIO.read(new File(\"sysfile1-48.png\")));\n \t\tsprites.put(\"sysfileMedium\", ImageIO.read(new File(\"sysfile2-32.png\")));\n \t\tsprites.put(\"sysfileSmall\", ImageIO.read(new File(\"sysfile3-16.png\")));\n \t\tsprites.put(\"junk\", ImageIO.read(new File(\"junk.png\")));\n \t\tsprites.put(\"grass\", ImageIO.read(new File(\"grass.jpg\")));\n \t}",
"int indexOfSpriteThatCollided(Array<? extends Sprite> sprites, Sprite sprite);",
"public void removeSprite(Sprite s) {\r\n sprites.removeSprite(s);\r\n }",
"public void resetSprites() {\n\t\tSPRITE_LIST.clear();\n\t}",
"private boolean isOwnOccupied(int x, int y) {\n for (int i = 0; i < player.own.length; i++) {\n if (player.own[i].x == x && player.own[i].y == y) {\n //System.out.println(\"own occupied:\" + i);\n return true;\n }\n }\n return false;\n }",
"public static void LoadSpritesIntoArray() {\r\n\t\t// Get all nodes for the settings\r\n\t\t// Node main = document.getElementById(\"main\");\r\n\t\t// Node textures = document.getElementById(\"textures\");\r\n\t\t// NodeList nList = document.getElementsByTagName(\"TexturePath\");\r\n\r\n\t\t// for (Element texPath : texturePathElements) {\r\n\t\t// System.out.println(texPath.getAttribute(\"name\") + \" \" +\r\n\t\t// texPath.getAttribute(\"name\"));\r\n\t\t// sprites.add(new Sprite(texPath.getAttribute(\"name\"),\r\n\t\t// texPath.getAttribute(\"path\")));\r\n\t\t// }\r\n\r\n\t\tsprites = ImageTools.LoadAllSpriteTexturesFromSpriteSheet(\"In_Game\");\r\n\r\n\t\t/*\r\n\t\t * This method i got from a stack overflow question\r\n\t\t * https://stackoverflow.com/questions/22610526/how-to-append-elements-\r\n\t\t * at-the-end-of-arraylist-in-java\r\n\t\t */\r\n\t\tint endOfList = sprites.size();\r\n\t\tsprites.addAll(endOfList, ImageTools.LoadAllSpriteTexturesFromSpriteSheet(\"In_Game_HUD\"));\r\n\t\tendOfList = sprites.size();\r\n\t\tsprites.addAll(endOfList, ImageTools.LoadAllSpriteTexturesFromSpriteSheet(\"In_Game_Custom\"));\r\n\t\tSystem.out.println(endOfList);\r\n\r\n\t\tfor (Element el : texturePathElements) {\r\n\r\n\t\t\ttry {\r\n\t\t\t\tsprites.add(new Sprite(el.getAttribute(\"name\"), el.getAttribute(\"path\")));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tisTexturesDone = true;\r\n\t}",
"public static void init()\n {\n \tSpriteSheet sheet = new SpriteSheet(ImageLoader.loadImage(\"/sprites/spritesheet.png\"));\n BufferedImage img;\n /*for(int y = 0;y<4;y++)\n \t{\n \t\t\n \timg = sheet.crop(width*y,0,width,height);\n \t\t\n \t\tplayer.add(img);\n \t}*/\n hero = sheet.crop(0,0,width,height);\n heroUp = sheet.crop(width,0,width,height);\n heroLeft = sheet.crop(width*2,0,width,height);\n heroRight = sheet.crop(width*3,0,width,height);\n \n heroDown1 = sheet.crop(0,height+32,width+1,height);\n heroDown2 = sheet.crop(width+1,height+32,width+1,height);\n heroUp1 = sheet.crop(width*2+2,height+32,width,height);\n heroUp2 = sheet.crop(width*3+2,height+32,width,height);\n heroLeft1 = sheet.crop(width*4+2,height+32,width,height);\n heroLeft2 = sheet.crop(width*5+2,height+32,width,height);\n heroRight1 = sheet.crop(width*6+2,height+32,width,height);\n heroRight2 = sheet.crop(width*7+2,height+32,width,height);\n \n /*for(int i = 0;i<4;i++)\n {\n \tfor(int y = 0;y<4;y++)\n \t{\n \t\tif(y==1)\n \t\t{\n \t\t\timg = sheet.crop(width*y,height*i,width,height);\n \t\t}\n \t\telse\n \t\t{\n \t\t\timg = sheet.crop(width*y+1,height*i+1,width,height);\n \t\t}\n \t\tplayer.add(img);\n \t}\n }*/\n sheet = new SpriteSheet(ImageLoader.loadImage(\"/sprites/PokemonTileSet.png\"));\n for(int i = 0;i<50;i++)\n {\n \tfor(int y = 0;y<8;y++)\n \t{\n \t\timg = sheet.crop(tileW*y,tileH*i,tileW,tileH);\n \t\tassets.add(img);\n \t}\n }\n \n /*\n hero = sheet.crop(0,0,width,height);\n heroUp = sheet.crop(width,0,width,height);\n heroLeft = sheet.crop(width*2,0,width,height);\n heroRight = sheet.crop(width*3,0,width,height);\n \n treeTopLeft = sheet.crop(0,firstRow,tWidth,tHeight);\n treeTopRight = sheet.crop(tWidth,firstRow,tWidth,tHeight);\n treeMidLeft = sheet.crop(tWidth*2,firstRow,tWidth,tHeight);\n treeMidRight = sheet.crop(tWidth*3,firstRow,tWidth,tHeight);\n treeBotLeft = sheet.crop(tWidth*4,firstRow,tWidth,tHeight);\n treeBotRight = sheet.crop(tWidth*5,firstRow,tWidth,tHeight);\n treeTopLeftGrass = sheet.crop(tWidth*6,firstRow,tWidth,tHeight);\n treeTopRightGrass = sheet.crop(tWidth*7,firstRow,tWidth,tHeight);\n treeTopLeftMushroom = sheet.crop(tWidth*8,firstRow,tWidth,tHeight);\n grass = sheet.crop(tWidth*9,firstRow,tWidth,tHeight);\n \n wildGrass = sheet.crop(0,secondRow,tWidth,tHeight);\n mushroom = sheet.crop(tWidth,secondRow,tWidth,tHeight);\n logLeft = sheet.crop(tWidth*2,secondRow,tWidth,tHeight);\n logRight = sheet.crop(tWidth*3,secondRow,tWidth,tHeight);\n ledgeLeft = sheet.crop(tWidth*4,secondRow,tWidth,tHeight);\n ledgeMid = sheet.crop(tWidth*5,secondRow,tWidth,tHeight);\n ledgeRight = sheet.crop(tWidth*6,secondRow,tWidth,tHeight);\n treeLeftOverlap = sheet.crop(tWidth*7,secondRow,tWidth,tHeight);\n treeRightOverlap = sheet.crop(tWidth*8,secondRow,tWidth,tHeight);\n \n heroWalkingDown1 = sheet.crop(0,thirdRow,width+1,height);\n heroWalkingDown2 = sheet.crop(width+1,thirdRow,width+1,height);\n heroWalkingUp1 = sheet.crop(width*2+1,thirdRow,width,height);\n heroWalkingUp2 = sheet.crop(width*3+1,thirdRow,width,height);\n heroWalkingLeft1 = sheet.crop(width*4+1,thirdRow,width,height);\n heroWalkingLeft2 = sheet.crop(width*5+1,thirdRow,width,height);\n heroWalkingRight1 = sheet.crop(width*6+1,thirdRow,width,height);\n heroWalkingRight2 = sheet.crop(width*7+1,thirdRow,width,height);\n */\n }",
"public List<Sprite> getEnnemies() {\r\n return ennemies.stream()\r\n .filter(c -> !SpriteStatusEnum.DEAD.equals(c.getStatus()))\r\n .collect(Collectors.toList());\r\n }",
"private void initIdleDown() {\n int x = 0;\n int y = 0;\n int newRow = 3;\n BufferedImage[] temp = new BufferedImage[IDLE_DOWN_IMAGE_COUNT];\n for(int i = 0; i < IDLE_DOWN_IMAGE_COUNT; i++){\n temp[i] = spriteManager.getCharacter().get(\"Character\").get(\"idleDown.png\").getSubimage(x, y, 64, 64); \n x += 64;\n \n if(i == newRow){\n x = 0;\n y += 64;\n newRow += 3;\n }\n }\n \n idleDown = new Animation(10, temp[0], temp[1], temp[2], temp[3], temp[4]);\n }",
"public MovingSprite obstacleToSprite(MovingSprite s) {\n\t\treturn null;\n\t}",
"int getSpriteArraySize();",
"void smallgunHandler() {\n for (Sprite smb: smBullets) {\n \n smb.display();\n if(usingCoil){\n smb.forward(120);\n }else{\n smb.forward(40);\n }\n\n }\n}",
"public Image sprite(){\n\t\treturn (face);\n\t}",
"private void initSprites(){\r\n try\r\n {\r\n spriteSheet = ImageIO.read (spriteSheetFile);\r\n }\r\n catch (IOException e)\r\n {\r\n System.out.println(\"SPRITE spritesheet not found\");\r\n } \r\n try\r\n {\r\n iconSheet=ImageIO.read(playerIconFile);\r\n }\r\n catch (IOException e)\r\n {\r\n System.out.println(\"PLAYERICON spritesheet not found\");\r\n } \r\n\r\n // saves images to array\r\n for(int i=0;i<3;i++){\r\n bomb[i]=new BufferedImage(32,32,BufferedImage.TYPE_INT_ARGB); \r\n bomb[i]=spriteSheet.getSubimage(i*32,6,32,32);\r\n }\r\n for(int i=0;i<4;i++){\r\n icons[i] = new BufferedImage(30,30,BufferedImage.TYPE_INT_ARGB);\r\n icons[i] = iconSheet.getSubimage(0, 31*i, 30, 30);\r\n }\r\n }",
"public HashMap<String, InputStream> getSprites() {\n\t\treturn getFilesByPath(simulationConfig.getString(\"spritepath\"));\n\t}",
"public ArrayList<String> getSpriteNames() {\n\t\treturn getFileNamesByPath(simulationConfig.getString(\"spritepath\"));\n\t}",
"public void removeSprite(Sprite s) {\n this.sprites.removeSprite(s);\n }",
"private void createIdleRegions(Texture spriteSheet) {\n\n TextureRegion downRegion = new TextureRegion(spriteSheet, 0, 0, TILESIZE, TILESIZE);\n\n idleSprites.add(new TextureRegion(spriteSheet, 0, TILESIZE * 3, TILESIZE, TILESIZE));\n idleSprites.add(new TextureRegion(spriteSheet, 0, TILESIZE, TILESIZE, TILESIZE));\n idleSprites.add(downRegion);\n idleSprites.add(new TextureRegion(spriteSheet, 0, TILESIZE * 2, TILESIZE, TILESIZE));\n idleSprites.add(downRegion);\n }",
"public Sprite getSprite() {\n\t\tlong currTime = System.currentTimeMillis();\n\t\tif(currTime - lastUpdate > timeEach) {\n\t\t\tlastUpdate = currTime;\n\t\t\tcurrSprite++;\n\t\t\tif(currSprite >= sprites.length)\n\t\t\t\tcurrSprite = 0;\n\t\t}\n\t\treturn sprites[currSprite];\n\t}",
"public static ImageIcon getSprite(String name)\n\t{\n\t\tImageIcon img = sprites.get(name);\n\t\tif (img == null)\n\t\t{\n\t\t\tDebug.println(\"Image \"+name+ \" loaded\");\n\t\t\ttry{\n\t\t\t\tURL url = new URL(\"https://deanattali.com/files/java/Scrabble/\" + name);\n\t\t\t img = new ImageIcon(url);\n\t\t\t}catch(Exception ex){}\n\t\t\tsprites.put(name,img);\n\t\t}\n\n\t\treturn img;\n\t}",
"@Override\n\tprotected Sprite getAnimationSprite() {\n\t\tfinal SpriteStore store = SpriteStore.get();\n\t\tZoneInfo info = ZoneInfo.get();\n\n\t\tSprite sprite;\n\n\t\ttry {\n\t\t\tfinal RPEntity npc = entity;\n\t\t\tfinal int code = npc.getOutfit();\n\t\t\tfinal String strcode = npc.getExtOutfit();\n\n\t\t\tfinal OutfitColor color = OutfitColor.get(npc.getRPObject());\n\n\t\t\tif (strcode != null) {\n\t\t\t\tsprite = OutfitStore.get().getAdjustedOutfit(strcode, color, info.getZoneColor(), info.getColorMethod());\n\t\t\t} else if (code != RPEntity.OUTFIT_UNSET) {\n\t\t\t\tfinal int body = code % 100;\n\t\t\t\tfinal int dress = code / 100 % 100;\n\t\t\t\tfinal int head = (int) (code / Math.pow(100, 2) % 100);\n\t\t\t\tfinal int hair = (int) (code / Math.pow(100, 3) % 100);\n\t\t\t\tfinal int detail = (int) (code / Math.pow(100, 4) % 100);\n\n\t\t\t\tfinal StringBuilder sb = new StringBuilder();\n\t\t\t\tsb.append(\"body=\" + body);\n\t\t\t\tsb.append(\",dress=\" + dress);\n\t\t\t\tsb.append(\",head=\" + head);\n\t\t\t\tsb.append(\",hair=\" + hair);\n\t\t\t\tsb.append(\",detail=\" + detail);\n\n\t\t\t\tsprite = OutfitStore.get().getAdjustedOutfit(sb.toString(), color, info.getZoneColor(),\n\t\t\t\t\t\tinfo.getColorMethod());\n\t\t\t} else {\n\t\t\t\t// This NPC's outfit is read from a single file.\n\t\t\t\tsprite = store.getModifiedSprite(translate(\"npc/\"\n\t\t\t\t\t\t+ entity.getEntityClass()), info.getZoneColor(),\n\t\t\t\t\t\tinfo.getColorMethod());\n\t\t\t}\n\t\t} catch (final Exception e) {\n\t\t\tlogger.error(\"Cannot build animations\", e);\n\t\t\tsprite = store.getModifiedSprite(translate(entity.getEntityClass()),\n\t\t\t\t\tinfo.getZoneColor(), info.getColorMethod());\n\t\t}\n\n\t\treturn sprite;\n//\t\treturn addShadow(sprite);\n\t}",
"Pokemon.PlayerAvatar getAvatar();",
"public void evaluateSprite(){\n if(this.orientation == Orientation.FACING_NORTH) {\n texture = new Texture(Gdx.files.internal(\"/assets/gameObjects/playerFacingNorth.png\"));\n }\n if(this.orientation == Orientation.FACING_WEST){\n texture = new Texture(Gdx.files.internal(\"/assets/gameObjects/playerFacingWest.png\"));\n }\n if(this.orientation == Orientation.FACING_SOUTH){\n texture = new Texture(Gdx.files.internal(\"/assets/gameObjects/playerFacingSouth.png\"));\n }\n if(this.orientation == Orientation.FACING_EAST){\n texture = new Texture(Gdx.files.internal(\"/assets/gameObjects/playerFacingEast.png\"));\n }\n\n this.sprite = new Sprite(texture);\n }",
"public TextureRegion getUnpressed() {\n return unpressed;\n }",
"abstract public void loadSprite();",
"private void fadeOutandDetachSprites() {\n\t\t\t\t\tdetachChild(greenTick);\t\n\t\t\t\t\tdetachChild(redx);\n\t\t\t\t\tdetachChild(sprite1);\n\t\t\t\t\tdetachChild(sprite2);\n\t\t\t\t\tdetachChild(sprite3);\n\t\t\t\t\tdetachChild(sprite4);\n\n\t\t\t\t}",
"public Image getTieUnder();",
"private void initSubSprites() {\n\n subSprites = new Hashtable<>();\n\n for (BrushType cT : BrushType.values()) {\n\n int x = cT.subSpr.x;\n int y = cT.subSpr.y;\n\n BufferedImage sprite = spriteSheet.getSubimage(x, y, 8, 8);\n\n subSprites.put(cT, sprite);\n }\n }",
"private void updateFireSprites()\n {\n for (int x = 0; x < 19; x++)\n {\n for (int y = 0; y < 15; y++)\n {\n boolean up = false;\n boolean down = false;\n boolean right = false;\n boolean left = false;\n if (fire[x][y] != null)\n {\n if (x - 1 >= 0)\n {\n if (fire[x-1][y] != null)\n {\n left = true;\n }\n }\n if (x + 1 < 19)\n {\n if (fire[x+1][y] != null)\n {\n right = true;\n }\n }\n if (y + 1 < 15)\n {\n if (fire[x][y+1] != null)\n {\n down = true;\n }\n }\n if (y - 1 >= 0)\n {\n if (fire[x][y-1] != null)\n {\n up = true;\n }\n }\n if (fire[x][y] != null)\n {\n if (up && !down && !left && !right)\n {\n fire[x][y].setDirection(7);\n }\n if (up && down && !left && !right)\n {\n fire[x][y].setDirection(3);\n }\n if (!up && !down && !left && right)\n {\n fire[x][y].setDirection(8);\n }\n if (!up && !down && left && right)\n {\n fire[x][y].setDirection(4);\n }\n if ((up || down) && (left || right))\n {\n fire[x][y].setDirection(10);\n }\n }\n }\n }\n }\n }",
"public Sprite getSprite(String spriteName)\n {\n if (this.sprites.containsKey(spriteName))\n return this.sprites.get(spriteName);\n else\n {\n \tSystem.out.println(\"Sprite \" + spriteName + \"does not exist in the bank\");\n return null;\n }\n }",
"public Sprite getSprite() {\n\t\treturn image;\n\t}",
"public List<Tile> getOwnedTiles() {\n return new ArrayList<Tile>(ownedTiles);\n }",
"@Override\n\tpublic final Sprite getSprite() {\n\t\treturn this.sprite;\n\t}",
"private void loadSprites(String s){\n try {\n BufferedImage spriteSheet = ImageIO.read(\n getClass().getResourceAsStream(s));\n sprites = new BufferedImage[1];\n sprites[0] = spriteSheet.getSubimage(0, 0, width, height);\n\n } catch (Exception e){\n e.printStackTrace();\n }\n\n }",
"private void notdrawy()\n\t{\n\t\t// check if a flag for a item has been set to see if the item has died and remove it from the arraylist\n\t\tfor (int i =0; i < drawableItems.size();i++)\n\t\t\tif (drawableItems.get(i).isDead())\n\t\t\t{\n\t\t\t\t//remove the corps\n\t\t\t\tdrawableItems.remove(i);\n\t\t\t\t//add to score\n\t\t\t\tscore += +100;\n\t\t\t}\n\t\t\n\t\t//check if any enterties enter each others bounds and if so means they have collided and will trigger the collision on the entitie\n\t\tfor (int i = 0; i < drawableItems.size();i++)\n\t\t\tfor (int j = 0; j < drawableItems.size();j++)\n\t\t\t\tif (j != i)\n\t\t\t\t\tif (drawableItems.get(j).getBounds().intersect(drawableItems.get(i).getBounds()))\n\t\t\t\t\t\tif (drawableItems.get(i).equals(player))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdrawableItems.get(j).collision();\n\t\t\t\t\t\t\tdrawableItems.get(i).collision();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tdrawableItems.get(j).collision();\n\t\t\n\t\t//sets have bullets\n\t\tfor (int i = 0; i < player.getGun().getBullets().size();i++)\n\t\t\tfor (int j = 0; j<drawableItems.size();j++)\n\t\t\t\tif (!drawableItems.get(j).equals(player))\n\t\t\t\t\tif (drawableItems.get(j).getBounds().intersect(player.getGun().getBullets().get(i).getBounds()))\n\t\t\t\t\t{\n\t\t\t\t\t\tdrawableItems.get(j).hit(player.getGun().getBullets().get(i).getDamage());\n\t\t\t\t\t\t//tell the bullet it has collided\n\t\t\t\t\t\tplayer.getGun().getBullets().get(i).collision();\n\t\t\t\t\t\t// we want to add to score\n\t\t\t\t\t\tscore++;\n\t\t\t\t\t}\n\t\t\n\t\t// {debug} add new zombies to fight\n\t\tif (drawableItems.size() < 20)\n\t\t\tdrawableItems.add(new ObjectItem(Statics.getScreenWidth() - 100,Statics.getScreenHeight() - 300));\n\t\t\n\t\t//update player p\n\t\tsettarget(player.getPosX(),player.getPosY());\n\t}",
"public Sprite getSprite()\n\t{\n\t\treturn sprite;\n\t}",
"public Image getTieOver();",
"public static void loadSprites(MediaTracker m)\r\n\t{\r\n\t\tsprites = new ArrayList<String>();\r\n\t\t\r\n\t\t//Get list of files in pedestrian sprite directory\r\n\t\tFile folder = new File(\"res/pedestrians\");\r\n\t\tString[] files = folder.list();\r\n\t\t\r\n\t\t//Load all .gif files from the directory\r\n\t\tfor(String fileName : files){\r\n\t\t\tif (fileName.endsWith(\".gif\")) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (fileName.endsWith(\"Walk1.gif\")) {\r\n\t\t\t\t\t\tsprites.add(fileName);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tnew Sprite(\"pedestrians/\"+fileName, m);\r\n\t\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t\tSystem.err.println(\"ERROR: Unable to load pedestrian sprite \"+fileName);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Ensure at least one sprite was loaded\r\n\t\tif (sprites.isEmpty()) {\r\n\t\t\tSystem.err.println(\"ERROR: Unable to load any pedestrian sprites\");\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic EnemySprites getEnemy(int level) {\r\n \tint enemyCount = 3;\r\n \tRandom rand = new Random();\r\n \tint enemyNum = rand.nextInt(enemyCount);\r\n \tswitch(enemyNum){\r\n \tcase 0:\r\n \t\t//return new goblin(level);\r\n \t\tbreak;\r\n \tcase 1:\r\n \t\t//return new kobold(level);\r\n \t\tbreak;\r\n \tcase 2:\r\n \t\t//return new Bandit(level);\r\n \t\tbreak;\r\n \tdefault:\r\n \t\treturn null; \t\t\r\n \t}\r\n \treturn null;\r\n }",
"@Override\r\n\tpublic void createSprites(World world) {\r\n \t// the height of the map since 0,0 in Tiled is in the top left\r\n // compared to the TiledMap's 0,0 in the bottom left\r\n int height = 2400;\r\n\r\n // file locations of different trees\r\n TextureAtlas atlas = new TextureAtlas(\"Game Tilesets/Trees/Trees.pack\");\r\n Skin skin = new Skin();\r\n skin.addRegions(atlas);\r\n TextureRegion T2 = skin.getRegion(\"T2\");\r\n TextureRegion T3 = skin.getRegion(\"T3\");\r\n TextureRegion T7 = skin.getRegion(\"T7\");\r\n TextureRegion T9 = skin.getRegion(\"T9\");\r\n TextureRegion T10 = skin.getRegion(\"T10\");\r\n \r\n // add all of the trees\r\n \tthis.addSprite(new ObjectSprites(T2, 236, height - 1490));\r\n \r\n this.addSprite(new ObjectSprites(T9, 622, height - 1907));\r\n this.addSprite(new ObjectSprites(T9, 683, height - 1687));\r\n this.addSprite(new ObjectSprites(T9, 174, height - 1851));\r\n this.addSprite(new ObjectSprites(T9, 361, height - 1643));\r\n \r\n this.addSprite(new ObjectSprites(T10, 572, height - 1354));\r\n this.addSprite(new ObjectSprites(T10, 0, height - 1475));\r\n this.addSprite(new ObjectSprites(T10, -9, height - 1707));\r\n this.addSprite(new ObjectSprites(T10, 675, height - 1479));\r\n this.addSprite(new ObjectSprites(T10, 416, height - 1903));\r\n\r\n this.addSprite(new ObjectSprites(T3, 428, height - 1453));\r\n this.addSprite(new ObjectSprites(T3, 596, height - 1122));\r\n this.addSprite(new ObjectSprites(T3, -32, height - 988));\r\n this.addSprite(new ObjectSprites(T3, 476, height - 864));\r\n this.addSprite(new ObjectSprites(T3, 640, height - 725));\r\n this.addSprite(new ObjectSprites(T3, 424, height - 2123));\r\n \r\n this.addSprite(new ObjectSprites(T7, 145, height - 1347));\r\n this.addSprite(new ObjectSprites(T7, 83, height - 1935));\r\n this.addSprite(new ObjectSprites(T7, 585, height - 2031));\r\n this.addSprite(new ObjectSprites(T7, 290, height - 2304));\r\n \r\n Bandit b1 = new Bandit();\r\n b1.defineBody(world, 215, 1305);\r\n super.addSprite(b1);\r\n \r\n Bandit b2 = new Bandit();\r\n b2.defineBody(world, 60, 1445);\r\n super.addSprite(b2);\r\n \r\n Bandit b3 = new Bandit();\r\n b3.defineBody(world, 90, 1640);\r\n super.addSprite(b3);\r\n \r\n Bandit b4 = new Bandit();\r\n b4.defineBody(world, 530, 1740);\r\n super.addSprite(b4);\r\n \r\n Bandit b5 = new Bandit();\r\n b5.defineBody(world, 730, 1655);\r\n super.addSprite(b5);\r\n \r\n Bandit b6 = new Bandit();\r\n b6.defineBody(world, 90, 2235);\r\n super.addSprite(b6);\r\n \r\n Bandit b7 = new Bandit();\r\n b7.defineBody(world, 715, 1490);\r\n super.addSprite(b7);\r\n \r\n Bandit b8 = new Bandit();\r\n b8.defineBody(world, 318, 1605);\r\n super.addSprite(b8);\r\n }",
"public void detachSprite(Sprite detachS){\n \tfor (Iterator<Sprite> iterator = graphicsElements.iterator(); iterator.hasNext();) {\n\t\t\tSprite s = (Sprite)iterator.next();\n\t\t\t\n\t\t\t/* Find and remove of element list */\n\t\t\tif(s == detachS){\n\t\t\t\tgraphicsElements.remove(s);\n\t\t\t\tbreak;\n\t\t\t}\n \t}\n }",
"@Basic @Immutable\n\tpublic Sprite[] getImages() {\n\t\treturn this.images;\n\t}",
"private void loadSpritesheet() {\n\t\tobjects = new SpriteSheet(\"res\\\\pong.png\");\n\t\tobjects_hires = new SpriteSheet(\"res\\\\ponghires.png\",\n\t\t\t\tSpriteSheet.LINEAR);\n\t}",
"@Override\n\tpublic void loadUnits() {\n\t\tsprites.put(\"axeman\", RES.getSprite(\"axeman\"));\n\t\tsprites.put(\"warg\", RES.getSprite(\"warg_right\"));\n\t}",
"public List<CardSprite> getDiscardPile() {\n return this.discardPile;\n }",
"private void uncoverTiles(Set<Tile> tiles) {\r\n\t\tfor (Tile tile : tiles) {\r\n\t\t\t// Update status\r\n\t\t\ttile.setStatus(TileStatus.UNCOVERED);\r\n\r\n\t\t\t// Update button\r\n\t\t\tJButton button = boardButtons[tile.getX()][tile.getY()];\r\n\t\t\tbutton.setEnabled(false);\r\n\t\t\tbutton.setText(tile.getRank() == 0 ? \"\" : String.valueOf(tile.getRank()));\r\n\t\t}\r\n\t}",
"protected abstract void chooseSprite();",
"boolean testRemoveOffscreenBullets(Tester t) {\n return t.checkExpect(lob3.removeOffscreen(100, 100),\n new ConsLoGamePiece(bullet9, new ConsLoGamePiece(bullet8, mt)))\n && t.checkExpect(lob3.removeOffscreen(300, 300), lob3)\n && t.checkExpect(lob3.removeOffscreen(500, 500), lob3)\n && t.checkExpect(mt.removeOffscreen(0, 0), mt);\n }",
"public Sprite getCurrentSprite() {\n\t\tif (this.getVx() <= 0) {\n\t\t\treturn getImages()[0];\n\t\t}\n\t\treturn getImages()[1];\n\t}",
"public static BufferedImage[] cutMapaImage(String name, int X, int Y) {\n BufferedImage[] sprites = null;\n try {\n BufferedImage imagen = ImageIO.read(new File(CanvasMap.class.getClassLoader().getResource(name).getFile()));\n final int filas = imagen.getHeight() / X;\n final int columnas = imagen.getWidth() / Y;\n sprites = new BufferedImage[filas * columnas];\n\n for (int i = 0; i < filas; i++) {\n for (int j = 0; j < columnas; j++) {\n sprites[(i * columnas) + j] = imagen.getSubimage(j * X, i * Y, X, Y);\n Image img = sprites[(i * columnas) + j].getScaledInstance(tamX, tamY, BufferedImage.SCALE_DEFAULT);\n sprites[(i * columnas) + j] = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_ARGB);\n Graphics2D g = (Graphics2D) sprites[(i * columnas) + j].getGraphics();\n g.drawImage(img, 0, 0, null);\n }\n }\n } catch (IOException ex) {\n Logger.getLogger(CanvasMap.class.getName()).log(Level.SEVERE, null, ex);\n }\n return sprites;\n }",
"private void buildSprites() {\n\t\tSpriteRotatable sprite = new SpriteRotatable(new Vec2f(0, 0), 1);\n\t\tsprite.setCentered(true);\n\t\tspriteManager.addSprite(sprite, \"avenger.png\");\n\t\tsprite.setVisible(true);\n\t\ttarget = new SpriteRotatable(new Vec2f(2, 2), 1);\n\t\ttarget.setCentered(true);\n\t\tspriteManager.addSprite(target, \"fighter.png\");\n\t\ttarget.setVisible(true);\n\n\t}",
"public Sprite getSprite() {\n\t\treturn sprite;\n\t}",
"public Sprite getSprite() {\n\t\treturn sprite;\n\t}",
"boolean removeOffScreenShips(Tester t) {\n return t.checkExpect(this.los3.removeOffscreen(100, 100),\n new ConsLoGamePiece(this.ship3, new ConsLoGamePiece(this.ship1, this.mt)))\n && t.checkExpect(this.los3.removeOffscreen(200, 200), this.los3)\n && t.checkExpect(this.mt.removeOffscreen(10, 10), this.mt);\n }",
"private boolean hasDrawableTop(Drawable[] drawables){\n\n //returns true if drawables[TOP] is not null\n //TOP = 1, which is the position of drawableTop iin drawables array\n return drawables[TOP] != null;\n\n }",
"public void drawBullets(){\n if(!world.getPlayer().getWeapon().getBullets().isEmpty()) {\n for (Bullet b : world.getPlayer().getWeapon().getBullets()) {\n spriteBatch.draw(bulletTexture, b.getPosition().x * ppuX, b.getPosition().y * ppuY,\n b.SIZE * ppuX, b.SIZE * ppuY);\n }\n }\n if(!world.getEnemies().isEmpty()) {\n for(Enemy e: world.getEnemies()){\n if(!e.getWeapon().getBullets().isEmpty()){\n for (Bullet b : e.getWeapon().getBullets()) {\n spriteBatch.draw(bulletTexture, b.getPosition().x * ppuX, b.getPosition().y\n * ppuY, b.SIZE * ppuX, b.SIZE * ppuY, 0, 0, bulletTexture.getWidth(),\n bulletTexture.getHeight(), false, true);\n }\n }\n }\n }\n if(!world.getBullets().isEmpty()) {\n for(Bullet b : world.getBullets()){\n spriteBatch.draw(bulletTexture, b.getPosition().x * ppuX, b.getPosition().y\n * ppuY, b.SIZE * ppuX, b.SIZE * ppuY, 0, 0, bulletTexture.getWidth(),\n bulletTexture.getHeight(), false, true);\n }\n }\n }",
"public MyAnimation getSprite();",
"public Image getUnicorn() {\r\n \treturn unicorn;\r\n }",
"public void mostrarSprites() throws MalformedURLException, IOException, InterruptedException{\n URL url = new URL(miPokemon.getSprites().get(\"front_default\").toString());\n Image img = ImageIO.read(url);\n lblSprites.setIcon(new ImageIcon(img));\n // 1 segundo para cada cambio de sprite\n Thread.sleep(1000);\n \n url = new URL(miPokemon.getSprites().get(\"back_default\").toString());\n img = ImageIO.read(url);\n lblSprites.setIcon(new ImageIcon(img));\n Thread.sleep(1000);\n \n url = new URL(miPokemon.getSprites().get(\"front_shiny\").toString());\n img = ImageIO.read(url);\n lblSprites.setIcon(new ImageIcon(img));\n Thread.sleep(1000);\n \n url = new URL(miPokemon.getSprites().get(\"back_shiny\").toString());\n img = ImageIO.read(url);\n lblSprites.setIcon(new ImageIcon(img));\n Thread.sleep(1000);\n }",
"private BufferedImage[] drawSprite(int width, int height) {\r\n // Initialize each image in the array to be drawn to\r\n BufferedImage[] spriteAnimation = new BufferedImage[ResourceCollection.SpriteMaps.EXPLOSION_SPRITEMAP.getImage().getWidth() / 32];\r\n for (int i = 0; i < spriteAnimation.length; i++) {\r\n spriteAnimation[i] = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\r\n }\r\n\r\n // Draw to each image in the array\r\n for (int i = 0; i < spriteAnimation.length; i++) {\r\n Graphics2D g2 = spriteAnimation[i].createGraphics();\r\n g2.setColor(new Color(0, 0, 0, 0));\r\n g2.fillRect(0, 0, spriteAnimation[i].getWidth(), spriteAnimation[i].getHeight());\r\n\r\n for (int j = 0; j < spriteAnimation[i].getHeight() / 32; j++) {\r\n if (spriteAnimation[i].getHeight() / 32 == 1 || this.centerOffset == j * 32) {\r\n // Center sprite\r\n g2.drawImage(this.sprites[0][i], 0, j * 32, null);\r\n } else if (j == 0) {\r\n // Topmost sprite\r\n g2.drawImage(this.sprites[5][i], 0, j * 32, null);\r\n } else if (j == (spriteAnimation[i].getHeight() / 32) - 1) {\r\n // Bottommost sprite\r\n g2.drawImage(this.sprites[6][i], 0, j * 32, null);\r\n } else {\r\n // Vertical between sprite\r\n g2.drawImage(this.sprites[2][i], 0, j * 32, null);\r\n }\r\n }\r\n\r\n g2.dispose();\r\n }\r\n\r\n return spriteAnimation;\r\n }",
"public RectF getSpriteBoundary() { return new RectF(atomSpriteBoundary); }",
"private Sprite.UV[] buildLogoSpriteCoords() {\n Sprite.UV[] uvs = new Sprite.UV[8];\n float step = 1.0f / (float) 8;\n\n for (int i=0; i<8; i++) {\n uvs[i] = new Sprite.UV();\n uvs[i].s = (i * step) + step;\n uvs[i].t = 1.0f;\n uvs[i].u = i * step;\n uvs[i].v = 0.0f;\n }\n\n return uvs;\n }",
"public int getCoverMask()\r\n/* 192: */ {\r\n/* 193:150 */ return this.CoverSides;\r\n/* 194: */ }",
"public Collision getCollisionType(ISprite sprite);",
"void turnToSprite(Sprite s) {\n turnToPoint(s._x, s._y);\n }",
"boolean hasAvatar();",
"boolean hasAvatar();",
"public SpriteBase getSpriteBase() {\n return spriteBase;\n }",
"void delete_missiles() {\n // Player missiles\n for (int i = ship.missiles.size()-1; i >= 0; i --) {\n Missile missile = ship.missiles.get(i);\n if (missile.y_position <= Dimensions.LINE_Y) {\n ImageView ship_missile_image_view = ship_missile_image_views.get(i);\n game_pane.getChildren().remove(ship_missile_image_view);\n ship_missile_image_views.remove(i);\n ship.missiles.remove(missile);\n }\n }\n\n // Enemy missiles\n for (int i = Alien.missiles.size()-1; i >= 0; i --) {\n Missile missile = Alien.missiles.get(i);\n if (missile.y_position > scene_height) {\n ImageView alien_missile_image_view = alien_missile_image_views.get(i);\n game_pane.getChildren().remove(alien_missile_image_view);\n alien_missile_image_views.remove(i);\n Alien.missiles.remove(missile);\n }\n }\n }",
"private static Image getUnitList()\n\t{\n\t\ttry {\n\t\t\treturn ImageIO.read(new File(guiDirectory + unit));\n\t\t} catch (IOException ioe) {\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic SpriteType getSpriteType() {\n\t\treturn null;\n\t}",
"public void setUnpressedTexture(TextureRegion unpressedTexture){\n this.unpressed = unpressedTexture;\n }",
"private static Image[][] getUnits(int factionNum)\n\t{\n\t\tString begin = unitDirectory;\n\t\tif (factionNum == Human.FACTION_NUM)\n\t\t\tbegin += \"human_\";\n\t\telse if (factionNum == Swarm.FACTION_NUM)\n\t\t\tbegin += \"swarm_\";\n\t\telse if (factionNum == MechStorm.FACTION_NUM)\n\t\t\tbegin += \"mech_\";\n\t\tImage[][] unitSprites = new Image[2][8];\n\t\tfor (int unitType = 0; unitType < 8; unitType++) {\n\t\t\ttry {\n\t\t\t\tunitSprites[0][unitType] = ImageIO.read(new File(begin\n\t\t\t\t\t\t+ unitType + \".png\"));\n\t\t\t} catch (IOException ioe) {\n\t\t\t}\n\t\t}\n\t\tfor (int unitType = 0; unitType < 8; unitType++) {\n\t\t\ttry {\n\t\t\t\tunitSprites[1][unitType] = ImageIO.read(new File(begin\n\t\t\t\t\t\t+ unitType + \"_trans.png\"));\n\t\t\t} catch (IOException ioe) {\n\t\t\t}\n\t\t}\n\t\treturn unitSprites;\n\t}",
"private void muerte(){\r\n\t\t for(Icon i:sprites.elementAt(4))\r\n\t \t {\r\n\t \t\t grafico.setIcon(i);\r\n\t \t\t try {\r\n\t\t\t\tThread.sleep(300);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t \t }\r\n\t \t grafico.setIcon(null);\r\n\t}",
"@Override\n\tpublic void update() {\n\t\tif(isMove) {\n\t\t\tspriteMoveToPoint(player, (int) mouseX, (int) mouseY);\n\t\t}\n\t\t\n\t\t//bullet\n\t\tfor(int i = 0; i < bulletList.size(); i++) {\n\t\t\tMoveSprite bullet = bulletList.get(i);\n\t\t\tspriteMoveToPoint(bullet, bullet.getX(), bullet.getY() - bullet.getVelocity());\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < bulletList.size(); i++) {\n\t\t\tMoveSprite bullet = bulletList.get(i);\n\t\t\t\tif(bullet.getY() < 10) {\n\t\t\t\t\tremoveBullet(bullet);\n\t\t\t\t}\n\t\t}\n\t\t\n\t\t//enemy\n\t\tfor(int i = 0; i < enemyList.size(); i++) {\n\t\t\tMoveSprite enemy = enemyList.get(i);\n\t\t\tspriteMoveToPoint(enemy, enemy.getX(), enemy.getY() + enemy.getVelocity());\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < enemyList.size(); i++) {\n\t\t\tMoveSprite enemy = enemyList.get(i);\n\t\t\tif(enemy.getY() > layerheight) {\n\t\t\t\tremoveEnemy(enemy);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < enemyList.size(); i++) {\n\t\t\tEnemy enemy = enemyList.get(i);\n\t\t\tfor(int j = 0; j < bulletList.size(); j++) {\n\t\t\t\tBullet bullet = bulletList.get(j);\n\t\t\t\tcollisionCheckForBulletAndEnemy(enemy, bullet);\n\t\t\t}\n\t\t}\n\t}",
"public CroppableAtlasSprite obtainSprite(ETexture texture) {\n\t\treturn obtainSprite(ResourceCache.getTexture(texture));\n\t}",
"private void updateSprite(){\n //facing front\n getImage().clear();\n getImage().drawImage(SHEET,-(frame%SHEET_W)*SPRITE_W,0);\n if(!goLeft) getImage().mirrorHorizontally();\n if (iframes>0&&iframes%10<5) setImage(SpriteHelper.makeWhite( getImage()));\n else frame = frame + 1 % (SHEET_H* SHEET_W);\n }",
"public static void revokeAvatar(OfflinePlayer player) {\n\t\tUUID uuid = player.getUniqueId();\n\t\tif (uuid == null) {\n\t\t\treturn;\n\t\t} else if (!isCurrentAvatar(uuid)) {\n\t\t\treturn;\n\t\t}\n\n\t\tList<Element> elements = new ArrayList<>();\n\t\tList<SubElement> subs = new ArrayList<>();\n\t\tBendingPlayer bPlayer = BendingPlayer.getBendingPlayer(player);\n\t\tif (bPlayer == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tPreviousAvatar avatar = PreviousAvatar.load(uuid.toString());\n\t\tif (avatar == null) {\n\t\t\tbPlayer.getElements().clear();\n\t\t\tGeneralMethods.saveElements(bPlayer);\n\n\t\t\tbPlayer.getSubElements().clear();\n\t\t\tGeneralMethods.saveSubElements(bPlayer);\n\n\t\t\tConfigManager.getConfig().set(\"Avatar.CurrentAvatar\", \"\");\n\t\t\tConfigManager.saveConfig();\n\n\t\t\tif (player.isOnline()) {\n\t\t\t\t((Player) player).sendMessage(ChatColor.RED + \"Could not locate storage of your elements, your elements have been cleared!\");\n\t\t\t}\n\n\t\t\tProjectKorraRPG.getLog().info(ChatColor.RED + \"Could not locate storage of previous elements for \" + ChatColor.WHITE + player.getName() + ChatColor.RED + \"(\" + ChatColor.WHITE + player.getUniqueId() + ChatColor.RED + \"), stored elements could not be set. Elements have been removed to allow rechoosing.\");\n\t\t\treturn;\n\t\t}\n\n\t\telements = avatar.getElements();\n\t\tsubs = avatar.getSubs();\n\n\t\tbPlayer.getElements().clear();\n\t\tbPlayer.getElements().addAll(elements);\n\t\tGeneralMethods.saveElements(bPlayer);\n\n\t\tbPlayer.getSubElements().clear();\n\t\tbPlayer.getSubElements().addAll(subs);\n\t\tGeneralMethods.saveSubElements(bPlayer);\n\n\t\tConfigManager.getConfig().set(\"Avatar.CurrentAvatar\", \"\");\n\t\tConfigManager.saveConfig();\n\t}",
"private static Unit getUnitOn(Coordinate coordinate){\n\t\tfor (int i = 0; i < enemyList.length; i++){\n\t\t\tif (enemyList[i].isAlive()){\n\t\t\t\tif (coordinate.compareToCoordinates(enemyList[i].getCoordinate())){\n\t\t\t\t\treturn enemyList[i];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private BufferedImage[] drawSprite(int width, int height) {\r\n // Initialize each image in the array to be drawn to\r\n BufferedImage[] spriteAnimation = new BufferedImage[ResourceCollection.SpriteMaps.EXPLOSION_SPRITEMAP.getImage().getWidth() / 32];\r\n for (int i = 0; i < spriteAnimation.length; i++) {\r\n spriteAnimation[i] = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\r\n }\r\n\r\n // Draw to each image in the array\r\n for (int i = 0; i < spriteAnimation.length; i++) {\r\n Graphics2D g2 = spriteAnimation[i].createGraphics();\r\n g2.setColor(new Color(0, 0, 0, 0));\r\n g2.fillRect(0, 0, spriteAnimation[i].getWidth(), spriteAnimation[i].getHeight());\r\n\r\n for (int j = 0; j < spriteAnimation[i].getWidth() / 32; j++) {\r\n if (spriteAnimation[i].getWidth() / 32 == 1 || this.centerOffset == j * 32) {\r\n // Center sprite\r\n g2.drawImage(this.sprites[0][i], j * 32, 0, null);\r\n } else if (j == 0) {\r\n // Leftmost sprite\r\n g2.drawImage(this.sprites[3][i], j * 32, 0, null);\r\n } else if (j == (spriteAnimation[i].getWidth() / 32) - 1) {\r\n // Rightmost sprite\r\n g2.drawImage(this.sprites[4][i], j * 32, 0, null);\r\n } else {\r\n // Horizontal between sprite\r\n g2.drawImage(this.sprites[1][i], j * 32, 0, null);\r\n }\r\n }\r\n\r\n g2.dispose();\r\n }\r\n\r\n return spriteAnimation;\r\n }",
"private void populateFromSprite() {\n long start = System.currentTimeMillis();\n int bitSetIndex = 0;\n BufferedImage bImage = (BufferedImage) sprite.m_image;\n //BufferedImage img = ImageIO.read(new File(\"assets/LoopBitmap.bmp\"));\n int color;\n // Loop through image according to scale\n for(int i = 0; i < sprite.getWidth(); i+=scale) {\n for(int j = 0; j < sprite.getHeight(); j+= scale) {\n // Get color at pixel i, j, if black set Bitmap index to true.\n color = bImage.getRGB(i, j);\n if(color == Color.BLACK.getRGB()) { //tempColor.equals(Color.black)) {\n this.set(bitSetIndex, true);\n //System.out.println(\"'BLACK' Color = \"+color + \" i=\"+ i + \", j=\"+j);\n }\n bitSetIndex++;\n }\n }\n long end = System.currentTimeMillis();\n// System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n// System.out.println(\"BITMAP DONE :)\");\n// System.out.println(\"Time to build = \"+(end-start)+\"ms\");\n// System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n }",
"Sprite getBackground();",
"protected void load(SpriteInfo[] arr) {\n\t\tassert arr != null;\n\t\tassert arr.length > 0;\n\n\t\tfor (SpriteInfo s : arr) {\n\t\t\tassert s != null;\n\t\t\tsprites.put(s.name, sheet.getSubimage(s.getX(), s.getY(), s.getWidth(), s.getHeight()));\n\t\t}\n\t}",
"void checkCol() {\n Player player = gm.getP();\n int widthPlayer = (int) player.getImg().getWidth();\n int heightPlayer = (int) player.getImg().getHeight();\n Bullet dummyBuullet = new Bullet();\n int widthBullet = (int) dummyBuullet.getImg().getWidth();\n int heightBullet = (int) dummyBuullet.getImg().getHeight();\n for (Bullet bullet : gm.getBulletList()) {\n // the bullet must be an enemy bullet\n if (bullet.isEnemyBullet() && bullet.isActive()) {\n // the condition when the bullet location is inside the rectangle of player\n if ( Math.abs( bullet.getX() - player.getX() ) < widthPlayer / 2\n && Math.abs( bullet.getY() - player.getY() ) < heightPlayer / 2 ) {\n // 1) destroy the bullet\n // 2) decrease the life of a player\n gm.getP().setHasShield(false);\n if(gm.getP().getCurDirection() == 0){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipLeft4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if(gm.getP().getCurDirection() == 1){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipRight4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n bullet.setActive(false);\n if(gm.getP().getHasShield() == false)player.decreaseLife();\n break;\n }\n }\n }\n // 2'nd case\n // the enemy is hit with player bullet\n for (Enemy enemy : gm.getEnemyList()) {\n if (enemy.isActive()) {\n int widthEnemy = (int) enemy.getImg().getWidth();\n int heightEnemy = (int) enemy.getImg().getHeight();\n for (Bullet bullet : gm.getBulletList()) {\n if (!bullet.isEnemyBullet() && bullet.isActive()) {\n // the condition when the player bullet location is inside the rectangle of enemy\n if (Math.abs(enemy.getX() - bullet.getX()) < (widthBullet / 2 + widthEnemy / 2)\n && Math.abs(enemy.getY() - bullet.getY()) < (heightBullet / 2 + heightEnemy / 2)) {\n // 1) destroy the player bullet\n // 2) destroy the enemy\n if (destroyedEnemy % 3 == 0 && destroyedEnemy != 0) onlyOnce = 0;\n destroyedEnemy++;\n gm.increaseScore();\n enemy.setActive(false);\n\n\n if(enemy.hTitanium()) {\n gm.getTitaniumList()[gm.getTitaniumIndex()].setX(enemy.getX());\n gm.getTitaniumList()[gm.getTitaniumIndex()].setY(enemy.getY());\n gm.getTitaniumList()[gm.getTitaniumIndex()].setActive(true);\n gm.increaseTitaniumIndex();\n }\n\n if(enemy.hBonus()) {\n \tgm.getBonusList()[gm.getBonusIndex()].setX(enemy.getX());\n \tgm.getBonusList()[gm.getBonusIndex()].setY(enemy.getY());\n \tgm.getBonusList()[gm.getBonusIndex()].setActive(true);\n \tgm.increaseBonusIndex();\n }\n bullet.setActive(false);\n break;\n }\n }\n }\n }\n }\n\n // 3'rd case\n // the player collided with enemy ship\n for (Enemy enemy : gm.getEnemyList()) {\n if (enemy.isActive()) {\n int widthEnemy = (int) enemy.getImg().getWidth();\n int heightEnemy = (int) enemy.getImg().getHeight();\n // the condition when the enemy rectangle is inside the rectangle of player\n if (Math.abs(enemy.getX() - player.getX()) < (widthPlayer / 2 + widthEnemy / 2)\n && Math.abs(enemy.getY() - player.getY()) < (heightPlayer / 2 + heightEnemy / 2)) {\n // 1) destroy the enemy\n // 2) decrease the player's life\n if(gm.getP().getHasShield() == false)player.decreaseLife();\n gm.getP().setHasShield(false);\n if(gm.getP().getCurDirection() == 0){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipLeft4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if(gm.getP().getCurDirection() == 1){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipRight4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n enemy.setActive(false);\n\n break;\n }\n }\n }\n\n for (Bonus bonus : gm.getBonusList()) {\n if (bonus.isActive()) {\n int widthBonus = (int) bonus.getImg().getWidth();\n int heightBonus = (int) bonus.getImg().getHeight();\n if (Math.abs(bonus.getX() - player.getX()) < (widthPlayer / 2 + widthBonus / 2)\n && Math.abs(bonus.getY() - player.getY()) < (heightPlayer / 2 + heightBonus / 2)) {\n bonus.setActive(false);\n if (bonus.getType() == 1) {\n if (player.getLives() < player.getMaxLives()) {\n player.setLives(player.getLives() + 1);\n }\n }\n else{\n superAttack = 1;\n }\n }\n }\n }\n\n for (Titanium titanium : gm.getTitaniumList()) {\n if (titanium.isActive()) {\n int widthBonus = (int) titanium.getImg().getWidth();\n int heightBonus = (int) titanium.getImg().getHeight();\n if (Math.abs(titanium.getX() - player.getX()) < (widthPlayer / 2 + widthBonus / 2)\n && Math.abs(titanium.getY() - player.getY()) < (heightPlayer / 2 + heightBonus / 2)) {\n titanium.setActive(false);\n gm.getP().increaseTitanium();\n }\n }\n }\n\n }",
"public void drawEnemies(){\n for (Object e : world.getEnemies()) {\n Enemy enemy = (Enemy) e;\n if (enemy instanceof EnemyPistol) {\n spriteBatch.draw(enemyPistolTexture, enemy.getPosition().x * ppuX, enemy.getPosition().y * ppuY,\n enemy.WIDTH * ppuX, enemy.HEIGHT * ppuY);\n }else if (enemy instanceof EnemyAwp){\n spriteBatch.draw(enemyAWPTexture, enemy.getPosition().x * ppuX, enemy.getPosition().y * ppuY,\n enemy.WIDTH * ppuX, enemy.HEIGHT * ppuY);\n }else if (enemy instanceof EnemyStalker){\n spriteBatch.draw(enemyStalkerTexture, enemy.getPosition().x * ppuX, enemy.getPosition().y * ppuY,\n enemy.WIDTH * ppuX, enemy.HEIGHT * ppuY);\n }else if (enemy instanceof EnemyBoss){\n spriteBatch.draw(enemyBossTexture, enemy.getPosition().x * ppuX, enemy.getPosition().y * ppuY,\n enemy.WIDTH * ppuX, enemy.HEIGHT * ppuY);\n }\n }\n }",
"boolean isTypeRealSprite(short type)\r\n {\r\n int oil;\r\n for (oil = 0; oil < rhPtr.rhMaxOI; oil++)\r\n {\r\n if (rhPtr.rhOiList[oil].oilOi != -1)\r\n {\r\n if (rhPtr.rhOiList[oil].oilType == type)\r\n {\r\n if ((rhPtr.rhOiList[oil].oilOEFlags & CObjectCommon.OEFLAG_SPRITES) != 0 && (rhPtr.rhOiList[oil].oilOEFlags & CObjectCommon.OEFLAG_QUICKDISPLAY) == 0)\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n }\r\n }\r\n }\r\n return true;\r\n }",
"public static boolean sprite(TextureAtlasSprite p_sprite_0_, TextureAtlasSprite[] p_sprite_1_) {\n/* 97 */ if (p_sprite_1_ == null)\n/* */ {\n/* 99 */ return true;\n/* */ }\n/* */ \n/* */ \n/* 103 */ for (int i = 0; i < p_sprite_1_.length; i++) {\n/* */ \n/* 105 */ if (p_sprite_1_[i] == p_sprite_0_)\n/* */ {\n/* 107 */ return true;\n/* */ }\n/* */ } \n/* */ \n/* 111 */ return false;\n/* */ }"
] | [
"0.63263",
"0.5900842",
"0.5691425",
"0.56612283",
"0.5605803",
"0.55130917",
"0.54397684",
"0.5409088",
"0.5391365",
"0.5365766",
"0.53654957",
"0.53627706",
"0.5352064",
"0.53489697",
"0.53097355",
"0.53021216",
"0.52913344",
"0.5286986",
"0.52739567",
"0.526537",
"0.5258853",
"0.52447385",
"0.52358884",
"0.5233068",
"0.5232079",
"0.52228194",
"0.5203058",
"0.5178428",
"0.5174118",
"0.5173759",
"0.51564914",
"0.51437235",
"0.5135833",
"0.51250196",
"0.5123485",
"0.5122346",
"0.51220727",
"0.5115214",
"0.5114258",
"0.51109934",
"0.5108526",
"0.5104798",
"0.5078718",
"0.5078149",
"0.50780904",
"0.50716877",
"0.50583506",
"0.5038356",
"0.5019512",
"0.5009859",
"0.50004226",
"0.49982113",
"0.49828395",
"0.49807975",
"0.49801433",
"0.49605343",
"0.49547154",
"0.4940151",
"0.49242246",
"0.49240395",
"0.49169698",
"0.49122423",
"0.49120137",
"0.49033147",
"0.49004313",
"0.49004313",
"0.48960498",
"0.48935008",
"0.4891994",
"0.48868957",
"0.4886208",
"0.48537177",
"0.4849713",
"0.48442683",
"0.4843211",
"0.4836613",
"0.48339775",
"0.48277706",
"0.4822824",
"0.4822824",
"0.4820827",
"0.48086092",
"0.48076788",
"0.48054904",
"0.4802544",
"0.4800742",
"0.48003277",
"0.47996926",
"0.47986993",
"0.47970518",
"0.47909185",
"0.4789388",
"0.47835052",
"0.47776005",
"0.47729897",
"0.47680992",
"0.47643617",
"0.47597912",
"0.47590357",
"0.4758183"
] | 0.7090909 | 0 |
returns the name of the nth Pokemon | byte[] readPokemonName(int n) throws IOException
{
int pos = OFFSET_POKEMON_NAMES + NAME_LEN * n;
int len = min(lengthUntilByte(ch, pos, (byte) 0x50), 10);
return readFromRom(ch, pos, len);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPokemonName() {\n\t\treturn pokemon.getName();\n\t}",
"public Pokemon(String name, int number) {\r\n this.name = name;\r\n this.number = number;\r\n }",
"String getPokemonByNumber(int number) throws Exception\n\t{\n\t\tString urlHalf1 = \"https://pokeapi.co/api/v2/pokemon-form/\";\n\t\tString url = urlHalf1 + number;\n\n\t\tJsonParser parser = new JsonParser();\n\n\t\tString jsonData = getJsonData(url);\n\n\t\tJsonElement jsonTree = parser.parse(jsonData);\n\n\t\tString pokemonName = \"\";\n\n\t\tif (jsonTree.isJsonObject())\n\t\t{\n\t\t\tJsonObject treeObject = jsonTree.getAsJsonObject();\n\n\t\t\tJsonElement name = treeObject.get(\"name\");\n\n\t\t\tpokemonName = name.getAsString();\n\t\t}\n\n\t\treturn pokemonName;\n\t}",
"public Peg getPeg(int n) { return pegs[n]; }",
"POGOProtos.Rpc.PokemonProto getPokemon();",
"POGOProtos.Rpc.CombatProto.CombatPokemonProto getFaintedPokemon(int index);",
"public Image getPokeImg(int index) {\n\t\treturn pokemonImgs[index];\n\t}",
"public void makePlayerPokemon(int index)\r\n {\r\n String playerPkmnName = Reader.readStringFromFile(\"playerPokemon\", index, 0);\r\n int playerPkmnLevel = Reader.readIntFromFile(\"playerPokemon\", index, 1);\r\n boolean playerPkmnGender = Reader.readBooleanFromFile(\"playerPokemon\", index, 2);\r\n int playerPkmnCurrentHealth = Reader.readIntFromFile(\"playerPokemon\", index, 3);\r\n int playerPkmnExp = Reader.readIntFromFile(\"playerPokemon\", index, 4);\r\n this.playerPokemon = new Pokemon(currentPlayerPokemon, playerPkmnName, playerPkmnLevel, playerPkmnGender, playerPkmnCurrentHealth, playerPkmnExp, true);\r\n }",
"@Override\n \tpublic String getSliceLabel(int n) {\n \t\tif (n < 1 || n > layers.size()) return null;\n \t\treturn layers.get(n-1).getTitle();\n \t}",
"java.lang.String getN();",
"long getPokemonId();",
"int getFaintedPokemonCount();",
"POGOProtos.Rpc.HoloPokemonId getPokedexId();",
"POGOProtos.Rpc.HoloPokemonId getPokedexId();",
"private String getPlayerName(int i) {\n\t\tSystem.out.println(\"\\nEnter Player \"+i+\"'s Name:\");\n\t\treturn GetInput.getInstance().aString();\n\t}",
"void detallePokemon(){\n System.out.println(numero+\" - \"+nombre);\n }",
"public static void main(String[] args) {\n\t\tPokemon firstPokemon = new Pokemon(\" P1 Typhlosion \", 1600, \" Fire \" , \" Healthy \" , \"Scratch\" , \"Bite\" , \"Fire Blast\", 300 , 375 , 450);\r\n\t\t Pokemon secondPokemon = new Pokemon(\" P2 Snorlax \", 1300, \" Normal \" , \" Healthy \" , \"Body Slam\" , \"Sleep\" , \"Swallow\", 500 , 100 , 200);\r\n\t\t System.out.println (firstPokemon.name + firstPokemon.health + firstPokemon.type + firstPokemon.status );\r\n\t\t System.out.println (secondPokemon.name + secondPokemon.health + secondPokemon.type + secondPokemon.status );\r\n\t\t Scanner myObj = new Scanner(System.in);\r\n\t\t\r\n\t\t \r\n\t\t System.out.println( \"P1 Turn. Enter number for corresponding attack! \" );\r\n\t\t System.out.println( \" 1(\" + firstPokemon.pAttack1 +\")\"+ \" 2(\" + firstPokemon.pAttack2 +\")\"+ \" 3(\" + firstPokemon.pAttack3 +\")\" );\r\n\t\t String battleCommand = myObj.nextLine();\r\n\t\t System.out.println (battleCommand);\r\n\t\t if (battleCommand.charAt(0) == '1') {\r\n\t\t\t System.out.println (firstPokemon.pAttack1);\r\n\t\t }\r\n\t\t else if (battleCommand.charAt(0) == '2') {\r\n\t\t\t System.out.println (firstPokemon.pAttack2);\r\n\t\t }\r\n\t\t else if (battleCommand.charAt(0) == '3') {\r\n\t\t\t System.out.println (firstPokemon.pAttack3);\r\n\t\t }\r\n\t\t else {\r\n\t\t\t System.out.println(\"Please enter the correct number.\");\r\n\t\t\t \r\n\t\t }\r\n\t}",
"Pokemon.Payload getPayload(int index);",
"Pokemon.ResponseEnvelop.Unknown6 getUnknown6();",
"@java.lang.Override\n public long getPokemonId() {\n return pokemonId_;\n }",
"Pokemon.RequestEnvelop.Unknown6 getUnknown6();",
"public Pokemon(String name, int health, int speed, String type)\n {\n this.name = name;\n this.health = health;\n this.speed = speed;\n this.type = type;\n }",
"public POGOProtos.Rpc.CombatProto.CombatPokemonProto getFaintedPokemon(int index) {\n if (faintedPokemonBuilder_ == null) {\n return faintedPokemon_.get(index);\n } else {\n return faintedPokemonBuilder_.getMessage(index);\n }\n }",
"public Pokemon(int hp){\r\n this.hp = hp;\r\n }",
"public String getName(int idx) {\n\t\treturn (String) nvPairs.get(idx << 1);\n\t}",
"public Pokemon() { // if nothing was provided i'm just gonna give \n\t\tthis.name = \"\"; //its name empty String\n\t\tthis.level = 1; // and level is level 1\n\t}",
"@java.lang.Override\n public long getPokemonId() {\n return pokemonId_;\n }",
"public String NameofIndex(int index, int game_number)\n\t{\n\t\treturn gametype[game_number].player_queue.get(index);\n\t}",
"public void addNewPokemon(String type, int index, String tempName, int tempLevel)\r\n {\r\n if(type.equals(\"Player\"))\r\n {\r\n if(getObjects(Pokemon.class).size() == 2)\r\n {\r\n savePokemonData(playerPokemon, currentPlayerPokemon);\r\n removeObject(playerPokemon);\r\n }\r\n\r\n for(int i = 0; i < 6; i++)\r\n {\r\n if(Reader.readIntFromFile(\"playerPokemon\", index, 3) > 0)\r\n {\r\n makePlayerPokemon(index);\r\n break;\r\n }\r\n index++;\r\n }\r\n\r\n playerPokemonName = playerPokemon.getName();\r\n\r\n addObject(playerPokemon, getWidth() / 4, getHeight() / 2 - 12);\r\n\r\n if(getObjects(Pokemon.class).size() == 2)\r\n {\r\n playerPkmnInfoBox.drawAll();\r\n }\r\n }\r\n else if(type.equals(\"Enemy\"))\r\n {\r\n if(getObjects(Pokemon.class).size() == 2)\r\n {\r\n removeObject(enemyPokemon);\r\n }\r\n\r\n if(!wildPokemon)\r\n {\r\n String enemyPkmnName = Reader.readStringFromFile(\"pokeMonListBattle\", index, 0);\r\n int enemyPkmnLevel = Reader.readIntFromFile(\"pokeMonListBattle\", index, 1);\r\n boolean enemyPkmnGender = Reader.readBooleanFromFile(\"pokeMonListBattle\", index, 2);\r\n int enemyPkmnCurrentHealth = Reader.readIntFromFile(\"pokeMonListBattle\", index, 3);\r\n this.enemyPokemon = new Pokemon(currentEnemyPokemon, enemyPkmnName, enemyPkmnLevel, enemyPkmnGender, enemyPkmnCurrentHealth, 0, false);\r\n\r\n enemyPokemonName = enemyPkmnName;\r\n\r\n addObject(enemyPokemon, 372, 84);\r\n }\r\n else\r\n {\r\n this.enemyPokemon = new Pokemon(currentEnemyPokemon, tempName, tempLevel, getRandomBoolean(), 9999, 0, false);\r\n enemyPokemonName = tempName;\r\n addObject(enemyPokemon, 372, 84);\r\n }\r\n }\r\n }",
"public String getPotionName()\r\n/* 119: */ {\r\n/* 120:121 */ return Potion.potionList[this.id].getName();\r\n/* 121: */ }",
"public String GetGameName(int game_number)\n\t{\n\t\treturn gametype[game_number].GetName();\n\t}",
"public Pokemon(int pokeNumber, String pokeName, String pokeType_1, int hitPoints) {\n this.pokeNumber = pokeNumber;\n this.pokeName = pokeName;\n this.pokeType_1 = pokeType_1;\n this.hitPoints = hitPoints;\n }",
"Pokemon.ResponseEnvelop.Unknown7 getUnknown7();",
"protected abstract Object getNthObject(int n);",
"@java.lang.Override\n public POGOProtos.Rpc.CombatProto.CombatPokemonProto getFaintedPokemon(int index) {\n return faintedPokemon_.get(index);\n }",
"private void getPokemon(int number) {\n Call<Pokemon> call = pokemonAPIService.getPokemonByNameOrNumber(\"\"+number, \"pokemon\");\n call.enqueue(new Callback<Pokemon>() {\n @Override\n public void onResponse(Call<Pokemon> call, Response<Pokemon> response) {\n if (!response.isSuccessful()) {\n Log.d(TAG, \"Response Code: \" + response.code());\n return;\n }\n\n Pokemon pokemon = response.body();\n // calls api at move endpoint to populate pokemon moves with move effect details\n populateMoveEffects(pokemon);\n team.add(pokemon);\n if (newTeamRequested==false) {\n initRecyclerView();\n } else {\n adapter.newList((ArrayList<Pokemon>) team);\n }\n\n }\n\n @Override\n public void onFailure(Call<Pokemon> call, Throwable t) {\n Log.d(TAG, \"Oh no!!! \" + t.getMessage());\n }\n });\n }",
"Pokemon() {\n // we want to set level to 1 for every pokemon initially\n count++;\n level = 1;\n }",
"public String getNames(int i) {\n return topName.get(i);\n }",
"public String getTopHeroName(int HeroIndex)\n {\n WebElement element = driver.findElement(By.xpath(\"//app-dashboard[1]/div[1]/a[\" + Integer.toString(HeroIndex) + \"]/div[1]\"));\n return element.getText();\n }",
"public String seenPokemonMenu() {\n String rv = \"\";\n Iterator<PokemonSpecies> it = this.pokedex.iterator();\n while (it.hasNext()) {\n PokemonSpecies currentSpecies = it.next();\n rv += String.format(\"%s\\n\", currentSpecies.getSpeciesName());\n }\n return rv;\n }",
"String getFirst(int n);",
"public String getName(){\n if(number == 1) return \"ace\";\n if(number == 13) return \"king\";\n if(number == 12) return \"queen\";\n if(number == 11) return \"jack\";\n else return \"\" + number;\n }",
"POGOProtos.Rpc.CombatProto.CombatPokemonProto getReservePokemon(int index);",
"public GameObject get(int n) { \n\t\treturn (GameObject) collection.get(n);\n\t}",
"public int getCurrentPlayerPokemon()\r\n {\r\n return currentPlayerPokemon;\r\n }",
"@Test\n public void displayNthItemTest()\n throws NullPointerException, NoSuchElementException, TimeoutException, ElementNotVisibleException,\n StaleElementReferenceException {\n ArrayList<Integer> nthItems = new ArrayList();\n nthItems.add(3);\n nthItems.add(5);\n ArrayList<String> foodItems = fetchNthFoodItems(driver, nthItems);\n Assert.assertNotNull(foodItems, \"Food items are empty\");\n System.out.println(\"Nth Food item names \");\n System.out.println(\"**********************\");\n for (int idx = 0; idx < foodItems.size(); idx++) {\n System.out.println(nthItems.get(idx) + \" - Food item - \" + foodItems.get(idx));\n }\n }",
"Pokemon.Request getRequests(int index);",
"public int nameIndex();",
"@Override\n public String getName()\n {\n if (amount > 1)\n {\n return amount + \" Nickles\";\n }\n else\n {\n return amount + \" Nickle\";\n }\n }",
"public String getMoveName(int num) {\n\t\treturn moves[num];\n\t}",
"@Override //TODO\n public String toString() {\n String s = \"\";\n s += name + \" \";\n for(Pokemon p : team)\n s += p + \"\\n\";\n return s;\n }",
"public Pokemon getPlayerPokemon()\r\n {\r\n return playerPokemon;\r\n }",
"@Step(\"Method 'getCountOfPetsWithName' calculates the total number of pets with name 'doggie'\")\n\tpublic void getCountOfPetsWithName() {\n\t\tresponse = restClient.doGetRequest(\"/pet/findByStatus\", property.getProperty(\"status\"));\n\t\t\n\t\t//This step gets the name of all the pets in the list\n\t\tList<String> petsNames=response.then()\n\t\t\t\t\t\t\t\t\t .extract()\n\t\t\t\t\t\t\t\t\t .path(\"name\");\n\n\t\t//For each is used to iterate over the list of names and verify with name- doggie and gets the total count\n\t\tfor(String petsName:petsNames) {\n\t\t\ttry {\n\t\t\t\tif(petsName.equalsIgnoreCase(petDoggie)) {\n\t\t\t\t\tpetCount = petCount+1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//This is to handle the exception when Pet has No Name\n\t\t\tcatch(NullPointerException e) {\n\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Pet Count is- \"+petCount);\n\t}",
"public int getAnimalNums(int index) {\n\t\tint[] arr = {algae, crab, bigFish};\n\t\treturn arr[index];\n\t}",
"public String getName(){\n\t\treturn players.get(0).getName();\n\t}",
"public String getOutputName(int index) {\n\t\tswitch(index) {\n\t\t\tcase 0:\n\t\t\t\treturn \"population\";\n\t\t\tdefault: return \"NO SUCH OUTPUT!\";\n\t\t}\n\t}",
"public String getPokemonHP() {\n\t\treturn pokemon.getCurHP() + \"/\" + pokemon.getMaxHP();\n\t}",
"POGOProtos.Rpc.PokemonProtoOrBuilder getPokemonOrBuilder();",
"public String getTaunt() {\n\t\tRandom rand = new Random();\n\t\tint n = rand.nextInt(3); // creates a random int\n\t\treturn taunts.get(n); // returns the taunt at that index\n\t}",
"@Override\n\tpublic Pokemon createPokemon(int index, int cp, int hp, int dust, int candy) throws PokedexException {\n\t\tint id = index +1;\n\t\t\t\t\n\t\tPokemon poke;\n\t\t\n\t\t// Connection au service web\n\t\tIPokemonService service = new PokemonService();\n\t\tMap<String, Object> data = service.getPokemonMetadata(id);\n\t\tMap<String, Object> ivs = service.getPokemonIVs(id, cp, hp, dust);\n\t\t\n\t\tif (data.containsKey(PokemonService.ERROR_KEY)) {\n\t\t\tthrow new PokedexException((String) data.get(PokemonService.ERROR_KEY));\n\t\t\t//System.out.println(\"*** ERREUR : \" + data.get(PokemonService.ERROR_KEY) + \" ***\");\n\t\t\t//poke = new Pokemon(index, \"\", 0, 0, 0, cp, hp, dust, candy, 0);\n\t\t}\n\t\t\n\t\telse if (ivs.containsKey(PokemonService.ERROR_KEY)) {\n\t\t\tthrow new PokedexException((String) ivs.get(PokemonService.ERROR_KEY));\n\t\t\t//System.out.println(\"*** ERREUR : \" + ivs.get(PokemonService.ERROR_KEY) + \" ***\");\n\t\t\t//poke = new Pokemon(index, \"\", 0, 0, 0, cp, hp, dust, candy, 0);\n\t\t\t/*\n\t\t\tpoke = new Pokemon(index,\n\t\t\t\t\t(String) data.get(\"name\"),\n\t\t\t\t\t(int) data.get(\"attack\"),\n\t\t\t\t\t(int) data.get(\"defense\"),\n\t\t\t\t\t(int) data.get(\"stamina\"),\n\t\t\t\t\tcp, hp, dust, candy, 0);\n\t\t\t*/\n\t\t}\n\t\t\n\t\telse {\n\t\t\tpoke = new Pokemon(index,\n\t\t\t\t\tPokemonTranslate.getInstance().getFrenchName((String) data.get(\"name\")),\n\t\t\t\t\t(int) data.get(\"attack\"),\n\t\t\t\t\t(int) data.get(\"defense\"),\n\t\t\t\t\t(int) data.get(\"stamina\"),\n\t\t\t\t\tcp, hp, dust, candy,\n\t\t\t\t\t(double) ivs.get(\"perfection\"));\n\t\t}\n\t\t\n\t\treturn poke;\n\t}",
"public String getInputName(int index) {\n\t\tswitch(index) {\n\t\t\tcase 0:\n\t\t\t\treturn \"population\";\n\t\t\tdefault: return \"NO SUCH INPUT!\";\n\t\t}\n\t}",
"public String getTinyImageName() {\n return this.getPokemonInfo().getTinyImageName();\n }",
"POGOProtos.Rpc.PokemonDisplayProto getPokemonDisplay();",
"public String getPetName();",
"@java.lang.Override\n public int getFaintedPokemonCount() {\n return faintedPokemon_.size();\n }",
"public Town getName1() {\n\t\treturn new Town(\"Dublin Zoo\");\r\n\r\n\t}",
"public PokemonSpecies findSeenSpeciesData(String name) throws PokedexException {\n PokemonSpecies rv = null;\n String nameLower = name.toLowerCase();\n Iterator<PokemonSpecies> it = pokedex.iterator();\n PokemonSpecies currentSpecies;\n while(it.hasNext()) {\n currentSpecies = it.next();\n if(currentSpecies.getSpeciesName().equals(nameLower)) {\n rv = currentSpecies;\n break;\n }\n }\n if(rv == null) {\n throw new PokedexException(String.format(Config.UNSEEN_POKEMON, name));\n }\n return rv;\n }",
"public String getFirst(int n) {\n return \"\";\n }",
"public String getName(Player p) {\n\t\treturn name;\n\t}",
"int getReservePokemonCount();",
"public Pokemon(){\r\n this.level = 1;\r\n this.hp = 100;\r\n // this.power = 100;\r\n // this.exp = 0;\r\n }",
"private static String getName(){\r\n\t\treturn new StringBuilder(input.next()).substring(0,3);\r\n\t}",
"public static String getWeaponName(int choice)\n {\n String nameOfChoice;\n\n switch(choice)\n {\n case Rock:\n nameOfChoice = \"Rock\";\n break;\n\n case Paper:\n nameOfChoice = \"Paper\";\n break;\n\n case Scissors:\n nameOfChoice = \"Scissors\";\n break;\n\n default:\n nameOfChoice = \"Unexpected\";\n }\n\n return nameOfChoice;\n }",
"public static String itemNameForSearch(){\n\n String[] itemNameArr = new String[3];\n itemNameArr[0] = \"nivea\";\n itemNameArr[1] = \"dove\";\n itemNameArr[2] = \"ricci\";\n\n return itemNameArr[CommonMethods.getRandomValue(0,2)];\n }",
"public String userNameIndex(int index){\n index = index-1;\n String userName1 = \"\";\n userName1 = user[index].getUserName();\n return userName1;\n }",
"public static String getPelottavaNimi() {\n int indeksi = random.nextInt(pelottavatNimet.length);\n return pelottavatNimet[indeksi];\n }",
"public POGOProtos.Rpc.CombatProto.CombatPokemonProto getReservePokemon(int index) {\n if (reservePokemonBuilder_ == null) {\n return reservePokemon_.get(index);\n } else {\n return reservePokemonBuilder_.getMessage(index);\n }\n }",
"public void getStarterPokemon() {\r\n\t\taddPokemon(new Persian(\"Persian\", null, 30, 30, 30, 30));\r\n\t\tresetCaughtPokemon();\r\n\t}",
"private String getName(String name) {\n\t\tint n;\n\t\tif (name.startsWith(\"place_\")) {\n\t\t\tn = Integer.parseInt(name.substring(6));\n\t\t} else if (name.startsWith(\"t_\")) {\n\t\t\tn = Integer.parseInt(name.substring(2));\n\t\t} else {\n\t\t\treturn name;\n\t\t}\n\t\tif (n < net.getPlaces().size()) {\n\t\t\tPlace p = (Place) net.getPlaces().get(n);\n\t\t\treturn \"Place \" + p.getIdentifier();\n\t\t}\n\t\tn -= net.getPlaces().size();\n\t\tn--;\n\t\tif (n < net.getTransitions().size()) {\n\t\t\tTransition t = (Transition) net.getTransitions().get(n);\n\t\t\treturn \"Transition \" + t.getIdentifier();\n\t\t}\n\t\treturn name;\n\t}",
"public Peg getPeg(int i) {\r\n\t\treturn pegs[i];\r\n\t}",
"public List<Map<String, String>> searchByNumber(String number) throws IOException {\n\t\tString queryString = \n\t\t\t\"PREFIX pkm: <http://pokedex.dataincubator.org/pkm/> \" +\n\t\t\t\"SELECT \" +\n\t\t\t\" ?number\" +\t\t\n\t\t\t\" ?name\" +\n\t\t\t\" ?numberAndName\" + \n\t\t\t\" (GROUP_CONCAT(?typeName;separator=\\\"|\\\") as ?types)\" + // aggregate types (seperated by semicolon) since each Pokemon can have 1-2 types\n\t\t\t\" ?color\" +\n\t\t\t\" ?height\" +\n\t\t\t\" ?weight\" +\n\t\t\t\" (str(?image) as ?imageUrl)\" + // get url string from image RDF node\n\t\t\t\" ?attack\" +\n\t\t\t\" ?defense\" +\n\t\t\t\" ?spAttack\" +\n\t\t\t\" ?spDefense\" +\n\t\t\t\" ?speed\" +\n\t\t\t\" ?hp\" +\n\t\t\t\" ?description \" +\n\t\t\t\"WHERE {\" +\n\t\t\t\" ?pokemon pkm:nationalNumber ?number. \" + \t// find Pokemon with number\n\t\t\t\" ?pokemon <http://www.w3.org/2000/01/rdf-schema#label> ?name. \" +\n\t\t\t\" BIND(CONCAT(?name, \\\" #\\\", str(?number)) as ?numberAndName) \" + // used for UI search\n\t\t\t\" ?pokemon pkm:type ?type. \" +\n\t\t\t\" ?type <http://www.w3.org/2000/01/rdf-schema#label> ?typeDescription. \" +\n\t\t\t\"\t BIND(REPLACE(?typeDescription, \\\" Type\\\", \\\"\\\") AS ?typeName). \" +\n\t\t\t\" ?pokemon pkm:colour ?color. \" +\n\t\t\t\" ?pokemon pkm:description ?description. \" +\n\t\t\t\" ?pokemon pkm:length ?height. \" +\n\t\t\t\" ?pokemon pkm:weight ?weight. \" +\n\t\t\t\" ?pokemon <http://xmlns.com/foaf/0.1/depiction> ?image. \" + // image of Pokemon\n\t\t\t\" ?pokemon pkm:baseAttack ?attack. \" +\n\t\t\t\" ?pokemon pkm:baseDefense ?defense. \" +\n\t\t\t\" ?pokemon pkm:baseSpAtk ?spAttack. \" +\n\t\t\t\" ?pokemon pkm:baseSpDef ?spDefense. \" +\n\t\t\t\" ?pokemon pkm:baseSpeed ?speed. \" +\n\t\t\t\" ?pokemon pkm:baseHP ?hp. \" +\n\t\t\t\" FILTER strStarts(str(?number), \\\"\" + number + \"\\\" ) \" +\n\t\t\t\"\t FILTER (langMatches(lang(?description), \\\"EN\\\")) \" +\t// only return English description\n\t\t\t\"\t FILTER contains(str(?image), \\\"legendarypokemon.net\\\") \" + // only return url of image from legendarypokemon.net\n\t\t\t\"}\" +\n\t\t\t\"GROUP BY ?number ?name ?numberAndName ?color ?description ?height ?weight ?image ?attack ?defense ?spAttack ?spDefense ?speed ?hp \" +\n\t\t\t\"ORDER BY ?number LIMIT 10\"; // return 10 results ordered by number\n\t\treturn runQuery(queryString);\n\t}",
"public int getWord(int n) {\r\n\t\treturn words.get(n);\r\n\t}",
"public String getName() {\r\n\t\treturn \"[\" + teamNo + \"] \" + name;\r\n\t}",
"public Pokemon ()\r\n\t{\r\n\t\tthis.id = 0;\r\n\t\tthis.nombre = \" \";\r\n\t\tsetVidas(0);\r\n\t\tsetNivel(0);\r\n\t\tthis.tipo=\" \";\r\n\t\tthis.evolucion =0;\r\n\t\tthis.rutaImagen = \" \";\r\n\t}",
"public String getBaseImageName() {\n return this.getPokemonInfo().getBaseImageName();\n }",
"private int get1(String name) {\n int t = 0;\n PlayerRecord curr = playerlist.first();\n while (curr != null) {\n if (curr.getTeamname().equals(name))\n t = t + curr.getPenalties(); // sum of all penalty minutes\n curr = playerlist.next();\n }\n return t;\n }",
"private synchronized String pickRandomPokemonName(List<String> pokemonNames) {\n String pokemonName;\n do {\n int randomIndex = RANDOM.nextInt(pokemonNames.size());\n pokemonName = pokemonNames.get(randomIndex);\n } while (pokemonName.equals(lastPokemonName));\n\n return lastPokemonName = pokemonName;\n }",
"public int numerico(String n){\n if(n.equals(\"Limpieza\")){\r\n tipon=1;\r\n }\r\n if(n.equals(\"Electrico\")){\r\n tipon=2;\r\n } \r\n if(n.equals(\"Mecanico\")){\r\n tipon=3;\r\n } \r\n if(n.equals(\"Plomeria\")){\r\n tipon=4;\r\n } \r\n if(n.equals(\"Refrigeracion\")){\r\n tipon=5;\r\n }\r\n if(n.equals(\"Carpinteria\")){\r\n tipon=6;\r\n }\r\n if(n.equals(\"Area Verde\")){\r\n tipon=7;\r\n } \r\n if(n.equals(\"Preventivo\")){\r\n tipon=8;\r\n } \r\n if(n.equals(\"Pintura\")){\r\n tipon=9;\r\n } \r\n if(n.equals(\"TI\")){\r\n tipon=10;\r\n }\r\n return tipon; \r\n }",
"java.lang.String getNume();",
"java.lang.String getNume();",
"public int getPokemonIndex(Pokemon p)\n\t{\n\t\tint pokemonIndex = -1;\n\t\tfor(int i = 0; i < m_pokemon.length; i++)\n\t\t\tif(m_pokemon[i] != null)\n\t\t\t\tif(p.compareTo(m_pokemon[i]) == 0)\n\t\t\t\t{\n\t\t\t\t\tpokemonIndex = i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\treturn pokemonIndex;\n\t}",
"Pokemon.RequestEnvelop.Unknown6.Unknown2 getUnknown2();",
"public String getWinnerName(String state) {\r\n \r\n result = table.get(state);\r\n String winner = result.get(1); // getting name of winner from array list and storing it\r\n \r\n return winner;\r\n }",
"@java.lang.Override\n public POGOProtos.Rpc.HoloPokemonId getPokedexId() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.HoloPokemonId result = POGOProtos.Rpc.HoloPokemonId.valueOf(pokedexId_);\n return result == null ? POGOProtos.Rpc.HoloPokemonId.UNRECOGNIZED : result;\n }",
"public static void main(String[] args) {\n\t\tPokemon p=new Pokemon(\"Pikachu\", \"Pikachu.png\", \"tuono\", \"azione\", \"elettro\", \"normale\",\"elettro\");\r\n\t\tSystem.out.println(p.getMossa1());\r\n\t\tSystem.out.println(p.toString());\r\n\t}",
"public List<Map<String, String>> searchByName(String name) throws IOException {\n\t\tString queryString = \n\t\t\t\"PREFIX pkm: <http://pokedex.dataincubator.org/pkm/> \" +\n\t\t\t\"SELECT \" +\n\t\t\t\" ?number\" +\n\t\t\t\" ?name\" +\n\t\t\t\" ?numberAndName\" + \n\t\t\t\" (GROUP_CONCAT(?typeName;separator=\\\"|\\\") as ?types)\" +\n\t\t\t\" ?color\" +\n\t\t\t\" ?height\" +\n\t\t\t\" ?weight\" +\n\t\t\t\" (str(?image) as ?imageUrl)\" + // get url string from image RDF node\n\t\t\t\" ?attack\" +\n\t\t\t\" ?defense\" +\n\t\t\t\" ?spAttack\" +\n\t\t\t\" ?spDefense\" +\n\t\t\t\" ?speed\" +\n\t\t\t\" ?hp\" +\n\t\t\t\" ?description \" +\n\t\t\t\"WHERE {\" +\n\t\t\t\" ?pokemon <http://www.w3.org/2000/01/rdf-schema#label> ?name. \" +\n\t\t\t\" ?pokemon pkm:nationalNumber ?number. \" +\n\t\t\t\" BIND(CONCAT(?name, \\\" #\\\", str(?number)) as ?numberAndName) \" + // used for UI search\n\t\t\t\" ?pokemon pkm:type ?type. \" +\n\t\t\t\" ?type <http://www.w3.org/2000/01/rdf-schema#label> ?typeDescription. \" +\n\t\t\t\"\t BIND(REPLACE(?typeDescription, \\\" Type\\\", \\\"\\\") AS ?typeName). \" +\n\t\t\t\" ?pokemon pkm:colour ?color. \" +\n\t\t\t\" ?pokemon pkm:description ?description. \" +\n\t\t\t\" ?pokemon pkm:length ?height. \" +\n\t\t\t\" ?pokemon pkm:weight ?weight. \" +\n\t\t\t\" ?pokemon <http://xmlns.com/foaf/0.1/depiction> ?image. \" +\n\t\t\t\" ?pokemon pkm:baseAttack ?attack. \" +\n\t\t\t\" ?pokemon pkm:baseDefense ?defense. \" +\n\t\t\t\" ?pokemon pkm:baseSpAtk ?spAttack. \" +\n\t\t\t\" ?pokemon pkm:baseSpDef ?spDefense. \" +\n\t\t\t\" ?pokemon pkm:baseSpeed ?speed. \" +\n\t\t\t\" ?pokemon pkm:baseHP ?hp. \" +\n\t\t\t\" FILTER strStarts(?name, \\\"\" + name + \"\\\" ) \" +\n\t\t\t\"\t FILTER (langMatches(lang(?description), \\\"EN\\\")) \" +\t// only return English description\n\t\t\t\"\t FILTER contains(str(?image), \\\"legendarypokemon.net\\\") \" + // only return url of image from legendarypokemon.net\n\t\t\t\"}\" +\n\t\t\t\"GROUP BY ?number ?name ?numberAndName ?color ?description ?height ?weight ?image ?attack ?defense ?spAttack ?spDefense ?speed ?hp \" +\n\t\t\t\"ORDER BY ?name LIMIT 10\"; // return 10 results ordered by name\n\t\treturn runQuery(queryString);\n\t}",
"Pokemon.ResponseEnvelop.Unknown6.Unknown2 getUnknown2();",
"public POGOProtos.Rpc.CombatProto.CombatPokemonProtoOrBuilder getFaintedPokemonOrBuilder(\n int index) {\n if (faintedPokemonBuilder_ == null) {\n return faintedPokemon_.get(index); } else {\n return faintedPokemonBuilder_.getMessageOrBuilder(index);\n }\n }",
"public String getName () { return n.getName(); }",
"public VirtualPet getPet(String name) {\n\t\treturn shelterPets.get(name);\n\n\t}"
] | [
"0.67804587",
"0.675388",
"0.6656754",
"0.6437575",
"0.61321014",
"0.609766",
"0.5974297",
"0.594193",
"0.593356",
"0.5910134",
"0.59029984",
"0.58213794",
"0.577525",
"0.577525",
"0.576903",
"0.57460433",
"0.56956136",
"0.56860745",
"0.5660594",
"0.5607291",
"0.560684",
"0.5601487",
"0.5591348",
"0.55652636",
"0.55623025",
"0.55393547",
"0.5532979",
"0.55087733",
"0.5507987",
"0.54953426",
"0.5466054",
"0.5465234",
"0.54641235",
"0.54543",
"0.54503024",
"0.5450242",
"0.54321486",
"0.5431691",
"0.5431598",
"0.5416598",
"0.540757",
"0.53976274",
"0.53966504",
"0.5391595",
"0.53895646",
"0.53892416",
"0.53759515",
"0.5362892",
"0.5350372",
"0.53312546",
"0.53285813",
"0.53276646",
"0.531385",
"0.5313188",
"0.5305377",
"0.5305024",
"0.53038305",
"0.530364",
"0.5301973",
"0.5296612",
"0.52861214",
"0.5282278",
"0.5279031",
"0.5270106",
"0.5261382",
"0.5253908",
"0.5245476",
"0.52381885",
"0.52370137",
"0.52301043",
"0.52272177",
"0.5219154",
"0.52185184",
"0.52185",
"0.52131945",
"0.5212599",
"0.521035",
"0.5193403",
"0.5191362",
"0.51890206",
"0.5187612",
"0.5184619",
"0.5182673",
"0.5180001",
"0.5165132",
"0.5163732",
"0.5153526",
"0.51492816",
"0.5148391",
"0.5148391",
"0.5146273",
"0.5146182",
"0.51381016",
"0.5124628",
"0.51233214",
"0.5105657",
"0.5100548",
"0.509777",
"0.50959355",
"0.5095604"
] | 0.6491198 | 3 |
gets size of lz compressed pics that starts at position pos in the ROM | int getPicSize(int pos) throws IOException
{
int out = pos;
int jump = 0;
byte ptrPar; // pointer parameter
byte b = readByteFromRom(ch, out);
while (b != (byte) 0xFF)
{
switch (b & 0b111_00000)
{
case (0b000_00000): // command with n parameters
byte bMask = (byte) 0b0001_1111;
jump = (byteToValue((byte) (b & bMask)) + 1) + 1;
break;
case (0b001_00000): // command with one parameter
jump = 1 + 1;
break;
case (0b010_00000): // command with two parameters
jump = 2 + 1;
break;
case (0b011_00000): // command with no parameters
jump = 0 + 1;
break;
case (0b100_00000): // commands with pointer parameters
case (0b101_00000):
case (0b110_00000):
ptrPar = readByteFromRom(ch, out + 1);
if ((ptrPar & 0b1000_0000) == 0b1000_0000) // 7-bit negative offset
{
jump = 1 + 1;
}
else // 15-bit positive offset
{
jump = 2 + 1;
}
break;
case (0b111_00000): // lz long
byte[] c = readFromRom(ch, out, 2);
switch (c[0] & 0b000_111_00)
{
case (0b000_000_00): // command with n parameters
byte[] b2Mask = new byte[2];
b2Mask[0] = (byte) 0b0000_0011;
b2Mask[1] = (byte) 0b1111_1111;
jump = (byteToValue((byte) (c[0] & b2Mask[0])) * 0x100 + byteToValue((byte) (c[1] & b2Mask[1])) + 1) + 2;
break;
case (0b000_001_00): // command with one parameter
jump = 1 + 2;
break;
case (0b000_010_00): // command with two parameters
jump = 2 + 2;
break;
case (0b000_011_00): // command with no parameters
jump = 0 + 2;
break;
case (0b000_100_00): // commands with pointer parameters
case (0b000_101_00):
case (0b000_110_00):
ptrPar = readByteFromRom(ch, out + 2);
if ((ptrPar & 0b1000_0000) == 0b1000_0000) // 7-bit negative offset
{
jump = 1 + 2;
}
else // 15-bit positive offset
{
jump = 2 + 2;
}
break;
default:
break;
}
break;
default:
break;
}
out += jump;
b = readByteFromRom(ch, out);
}
return (out - pos + 1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long getSize();",
"public native float kbGetMapZSize();",
"public long getSize();",
"int getLocalSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize ();",
"public int getLocalSize();",
"public int getSizeZ() throws ImageException {\r\n\tif (!bValid){\r\n\t\tthrow new ImageException(\"image not valid\");\r\n\t}\t\r\n\treturn sizeZ;\r\n}",
"public int getSize();",
"public int getSize();",
"public int getSize();",
"public int getSize();",
"public int getSize();",
"public int getSize();",
"public int getSize();",
"public int getSize();",
"public int getSize();",
"public int getSize();",
"public abstract long getSize();",
"public synchronized long size() {\n return IDX_START_OF_CONTENT + (slots * bytesPerSlot);\n }",
"long getSize() throws IOException;",
"public static long getAllSize1(){\n\t\tFile path = Environment.getExternalStorageDirectory(); \n\t\t\n\t\tlong size = 0;\n\t\tStatFs stat = new StatFs(path.getPath()); \n\t\tlong blockSize = stat.getBlockSize(); \n\t\tlong availableBlocks = stat.getBlockCount();\n\t\tsize = availableBlocks * blockSize; \n\t\treturn size;\n\t}",
"public static int size_source() {\n return (8 / 8);\n }",
"public abstract int getSmallStackSizeWishInKb();",
"@Override\n\tpublic long compressedSize() {\n\t\treturn this.compressedLength.get();\n\t}",
"public int sizeUncompressed (){\r\n\t\t\treturn _sizeUncompressed;\r\n\t\t}",
"public static int offset_infos_size_data() {\n return (80 / 8);\n }",
"public static int size_reading() {\n return (16 / 8);\n }",
"public int getSize() {\r\n\t\treturn 5; // 1 (code) + 2 (data length) + 2 (branch offset)\r\n\t}",
"private static int getSize(int type) {\n switch (type) {\n case 0:\n return 65535;\n case 1:\n return 78513;\n case 2:\n return 101597;//getModelCount();\n case 3:\n return 3696;\n case 4:\n return 4193;\n case 5:\n return 6827;\n case 6:\n return 8487;\n case 7:\n return 645;//midiIndices.length;\n /*case 8:\n return 0;//getAnimCount();\n case 9:\n return 0;//getMapAmount();\n case 10:\n return 34026;\n case 11:\n return 3159;\n case 12:\n return 1956;*/\n }\n return 0;\n }",
"public int getZSize() {\n\t\treturn (highPoint.getBlockZ() - lowPoint.getBlockZ()) + 1;\n\t}",
"public int GetSize() \n\t{\n\t\treturn numEntries; //dummy return so file would compile\n\t}",
"double getSize();",
"public static native long nativeAssetGetRemainingLength(long j);",
"public static int offsetBits_infos_size_data() {\n return 80;\n }",
"godot.wire.Wire.Vector3 getSize();",
"public abstract int getSize();",
"public abstract int getSize();",
"public abstract int getSize();",
"public abstract int getSize();",
"long sizeInBytes() throws IOException;",
"public int sizeCompressed (){\r\n\t\t\treturn _sizeCompressed;\r\n\t\t}",
"public native float kbGetMapXSize();",
"public static int totalSize_data() {\n return (480 / 8);\n }",
"public static int size_infos_size_data() {\n return (8 / 8);\n }",
"public static native long nativeAssetGetLength(long j);",
"static int size_of_rar(String passed){\n\t\treturn 1;\n\t}",
"public int getSize(){\n //To be written by student\n return localSize;\n }",
"public long picoSize() throws IOException {\n return _backing.length();\n }",
"private static int getSize(double loadFactor){\n return (primeSize((int) (3739/loadFactor))); // 3739 is the number of entries from the lexicon list\n }",
"public static long m136429b() {\n StatFs statFs;\n try {\n statFs = new StatFs(Environment.getExternalStorageDirectory().getPath());\n } catch (IllegalArgumentException unused) {\n statFs = null;\n }\n long j = 0;\n if (statFs != null) {\n if (VERSION.SDK_INT >= 18) {\n j = statFs.getBlockSizeLong() * statFs.getBlockCountLong();\n } else {\n j = ((long) statFs.getBlockSize()) * ((long) statFs.getBlockCount());\n }\n }\n return (j / 1024) / 1024;\n }",
"public int getSize()\n\t{\n\t\treturn bytes.length;\n\t}",
"public static int size_dest() {\n return (8 / 8);\n }",
"public static int totalSizeBits_entries_id() {\n return 176;\n }",
"public int get_size();",
"public int get_size();",
"int getLowBitLength();",
"Long diskSizeBytes();",
"public static int size_crc() {\n return (16 / 8);\n }",
"int getChunksLocationCount();",
"godot.wire.Wire.Vector2 getSize();",
"public static int size_infos_log_src() {\n return (16 / 8);\n }",
"public int getSize() {\n\n\treturn getSectors().size() * getUnitSize(); // 254 byte sectors\n }",
"public static int size_counter() {\n return (32 / 8);\n }",
"public int getSize()\n\t{\n\t\treturn bits.size();\n\t}",
"int getChunksCount();",
"int getChunksCount();",
"public long getFileCompressedSize()\r\n {\r\n return lFileCompressedSize;\r\n }",
"public final long getSize() { return size; }",
"public final int getNumCodedBytes(){\n // NOTE: testing these algorithms for correctness is quite\n // difficult. One way is to modify the rate allocator so that not all\n // bit-planes are output if the distortion estimate for last passes is\n // the same as for the previous ones.\n\n switch (ltype) {\n case LENGTH_LAZY_GOOD:\n // This one is a bit better than LENGTH_LAZY.\n int bitsInN3Bytes; // The minimum amount of bits that can be stored\n // in the 3 bytes following the current byte\n // buffer 'b'.\n if (b >= 0xFE) {\n // The byte after b can have a bit stuffed so ther could be\n // one less bit available\n bitsInN3Bytes = 22; // 7 + 8 + 7\n }\n else {\n // We are sure that next byte after current byte buffer has no\n // bit stuffing\n bitsInN3Bytes = 23; // 8 + 7 + 8\n }\n if ((11-cT+16) <= bitsInN3Bytes) {\n return nrOfWrittenBytes+(delFF ? 1 : 0)+1+3;\n }\n else {\n return nrOfWrittenBytes+(delFF ? 1 : 0)+1+4;\n }\n case LENGTH_LAZY:\n // This is the very basic one that appears in the VM text\n if ((27-cT) <= 22) {\n return nrOfWrittenBytes+(delFF ? 1 : 0)+1+3;\n }\n else {\n return nrOfWrittenBytes+(delFF ? 1 : 0)+1+4;\n }\n case LENGTH_NEAR_OPT:\n // This is the best length calculation implemented in this class.\n // It is almost always optimal. In order to calculate the length\n // it is necessary to know which bytes will follow in the MQ\n // bit stream, so we need to wait until termination to perform it.\n // Save the state to perform the calculation later, in\n // finishLengthCalculation()\n saveState();\n // Return current number of output bytes to use it later in\n // finishLengthCalculation()\n return nrOfWrittenBytes;\n default:\n throw new Error(\"Illegal length calculation type code\");\n }\n }",
"static native int jniSize(\n long patch, int includeContext, int includeHunkHeaders, int includeFileHeaders);",
"long storageSize();",
"public native int getCompression() throws MagickException;",
"public int getSize() {\n return -1;\n }",
"public static int totalSize_infos_metadata() {\n return (16 / 8);\n }",
"public long getSize() {\n long size = 0L;\n \n for (GTSEncoder encoder: chunks) {\n if (null != encoder) {\n size += encoder.size();\n }\n }\n \n return size;\n }",
"public int getIconHeight()\r\n/* 55: */ {\r\n/* 56:100 */ return SIZE;\r\n/* 57: */ }",
"public static int size_quality() {\n return (16 / 8);\n }",
"public native int sizeBlob() throws MagickException;",
"public static String m576f() {\r\n long j = 0;\r\n try {\r\n StatFs statFs = new StatFs(Environment.getDataDirectory().getPath());\r\n j = ((long) statFs.getBlockCount()) * ((long) statFs.getBlockSize());\r\n } catch (Exception e) {\r\n }\r\n return String.valueOf(j);\r\n }",
"int size() {\n int basic = ((offset() + 4) & ~3) - offset() + 8;\n /* Add 8*number of offsets */\n return basic + targetsOp.length*8;\n }",
"public int getSize() { return size; }",
"public static int size_count() {\n return (16 / 8);\n }",
"public static long getUnzipingFileLen() {\n\t\treturn unzipingLen;\n\t}",
"public abstract long size() throws IOException;",
"long getLocalOnHeapSizeInBytes();",
"public long getSize() {\n\t\treturn Math.abs(getXSize() * getYSize() * getZSize());\n\t}",
"public int getSize() {return size;}"
] | [
"0.68185145",
"0.6579371",
"0.64674",
"0.6461503",
"0.64537466",
"0.64537466",
"0.64537466",
"0.64537466",
"0.64537466",
"0.64537466",
"0.64537466",
"0.64537466",
"0.64537466",
"0.64537466",
"0.64537466",
"0.64537466",
"0.64537466",
"0.6445014",
"0.6292503",
"0.6256472",
"0.62358487",
"0.62358487",
"0.62358487",
"0.62358487",
"0.62358487",
"0.62358487",
"0.62358487",
"0.62358487",
"0.62358487",
"0.62358487",
"0.61753684",
"0.61466664",
"0.6117079",
"0.60604435",
"0.6053038",
"0.6025268",
"0.5984837",
"0.5981144",
"0.5978414",
"0.5970135",
"0.5952848",
"0.59519637",
"0.59254277",
"0.5905043",
"0.5896322",
"0.58787864",
"0.5866229",
"0.5856042",
"0.5841597",
"0.5841597",
"0.5841597",
"0.5841597",
"0.58354765",
"0.5823264",
"0.58052504",
"0.5800057",
"0.5787923",
"0.57823354",
"0.577806",
"0.5776909",
"0.576899",
"0.57670045",
"0.57630473",
"0.5760526",
"0.5744859",
"0.57430375",
"0.5735552",
"0.5735552",
"0.5735064",
"0.57344013",
"0.57329226",
"0.5729249",
"0.5719049",
"0.5717309",
"0.5717115",
"0.5716583",
"0.57116824",
"0.5708889",
"0.5708889",
"0.5699285",
"0.5695254",
"0.5685698",
"0.5681981",
"0.5680031",
"0.5662268",
"0.56617653",
"0.56594235",
"0.56491977",
"0.5648969",
"0.56482035",
"0.5644405",
"0.5643658",
"0.5625289",
"0.5621501",
"0.56166315",
"0.5614339",
"0.56121916",
"0.56097925",
"0.5609117",
"0.56081605"
] | 0.6836215 | 0 |
/ access modifiers changed from: private | public final Device blockingGetEmulator() {
Device emu = find(true);
if (emu != null) {
return emu;
}
EmulatorController emuController = EmulatorController.getInstance();
if (emuController.getState() == State.NOT_RUNNING) {
try {
emuController.launch();
} catch (IOException e) {
System.err.println("Problem while launching emulator.");
e.printStackTrace(System.err);
return null;
}
} else {
System.out.println("Emulator is " + emuController.getState() + ", which is not expected.");
}
while (!Thread.currentThread().isInterrupted()) {
if (emuController.getState() == State.NOT_RUNNING) {
System.err.println("Error while starting the emulator. (" + emuController.getState() + ")");
return null;
}
Device emu2 = find(true);
if (emu2 != null) {
return emu2;
}
try {
Thread.sleep(2000);
} catch (InterruptedException e2) {
System.err.println("Devices: interrupted in loop.");
return null;
}
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n protected void prot() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"public void smell() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"private TMCourse() {\n\t}",
"private void m50366E() {\n }",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public void method_4270() {}",
"public abstract Object mo26777y();",
"@Override\n protected void init() {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"private MApi() {}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"private Infer() {\n\n }",
"protected abstract Set method_1559();",
"@Override\n void init() {\n }",
"@Override\n public void init() {\n\n }",
"private void kk12() {\n\n\t}",
"public abstract void mo70713b();",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"private Singletion3() {}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"private ChainingMethods() {\n // private constructor\n\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"private abstract void privateabstract();",
"protected boolean func_70814_o() { return true; }",
"private Get() {}",
"private Get() {}",
"public void m23075a() {\n }",
"private Util() { }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public void mo21779D() {\n }",
"private test5() {\r\n\t\r\n\t}",
"public void mo21825b() {\n }",
"@Override\n public void memoria() {\n \n }",
"private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"protected Doodler() {\n\t}",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"private FlyWithWings(){\n\t\t\n\t}",
"private MetallicityUtils() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n public void init() {}",
"@Override\n public boolean isPrivate() {\n return true;\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 }",
"public abstract void mo56925d();",
"public abstract void mo27386d();",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"public void mo21877s() {\n }",
"private Utils() {}",
"private Utils() {}",
"private Utils() {}",
"private Utils() {}",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }",
"@Override\n public void get() {}",
"private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}",
"private void ss(){\n }",
"public void mo21782G() {\n }",
"public abstract void mo27385c();",
"@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}",
"protected void h() {}",
"private void init() {\n\n\t}",
"private final void i() {\n }"
] | [
"0.70451087",
"0.66481936",
"0.66338545",
"0.6534467",
"0.6533057",
"0.63756114",
"0.6368523",
"0.63063055",
"0.6244554",
"0.62261415",
"0.62046665",
"0.61776316",
"0.6142759",
"0.6131381",
"0.6131381",
"0.61274433",
"0.610919",
"0.610797",
"0.60792845",
"0.6062989",
"0.6059318",
"0.60447836",
"0.6037732",
"0.6033637",
"0.6028711",
"0.60249",
"0.6015989",
"0.6015989",
"0.6010123",
"0.5991239",
"0.5977965",
"0.59756213",
"0.59711885",
"0.59652776",
"0.59562653",
"0.59491456",
"0.5947999",
"0.5942879",
"0.5941421",
"0.59406793",
"0.5936351",
"0.5936351",
"0.5934477",
"0.5934473",
"0.59311885",
"0.59261817",
"0.592184",
"0.59162307",
"0.59162307",
"0.5915696",
"0.5908215",
"0.5903059",
"0.5903059",
"0.5894341",
"0.5887855",
"0.58869827",
"0.5884463",
"0.5881538",
"0.588023",
"0.5879579",
"0.58791363",
"0.58698714",
"0.58686715",
"0.5857818",
"0.5855094",
"0.5851806",
"0.58393794",
"0.58365846",
"0.58286095",
"0.5816463",
"0.58148336",
"0.58144826",
"0.5814171",
"0.5814171",
"0.5814171",
"0.5814171",
"0.5814171",
"0.5814171",
"0.5809802",
"0.5802026",
"0.57927555",
"0.5792171",
"0.5790551",
"0.5786574",
"0.5786574",
"0.5786574",
"0.5786574",
"0.5786161",
"0.578553",
"0.5785096",
"0.57780075",
"0.5774098",
"0.57732016",
"0.57683206",
"0.57683206",
"0.57683206",
"0.57683206",
"0.57683206",
"0.5763271",
"0.57621974",
"0.57540506"
] | 0.0 | -1 |
/ JADX WARNING: Code restructure failed: missing block: B:25:?, code lost: return r0; / Code decompiled incorrectly, please refer to instructions dump. | private processing.mode.android.Device find(boolean r7) {
/*
r6 = this;
r6.refresh()
java.util.Map<java.lang.String, processing.mode.android.Device> r3 = r6.devices
monitor-enter(r3)
java.util.Map<java.lang.String, processing.mode.android.Device> r2 = r6.devices // Catch:{ all -> 0x0033 }
java.util.Collection r2 = r2.values() // Catch:{ all -> 0x0033 }
java.util.Iterator r2 = r2.iterator() // Catch:{ all -> 0x0033 }
L_0x0010:
boolean r4 = r2.hasNext() // Catch:{ all -> 0x0033 }
if (r4 != 0) goto L_0x0019
monitor-exit(r3) // Catch:{ all -> 0x0033 }
r0 = 0
L_0x0018:
return r0
L_0x0019:
java.lang.Object r0 = r2.next() // Catch:{ all -> 0x0033 }
processing.mode.android.Device r0 = (processing.mode.android.Device) r0 // Catch:{ all -> 0x0033 }
java.lang.String r4 = r0.getId() // Catch:{ all -> 0x0033 }
java.lang.String r5 = "emulator"
boolean r1 = r4.contains(r5) // Catch:{ all -> 0x0033 }
if (r1 == 0) goto L_0x002d
if (r7 != 0) goto L_0x0031
L_0x002d:
if (r1 != 0) goto L_0x0010
if (r7 != 0) goto L_0x0010
L_0x0031:
monitor-exit(r3) // Catch:{ all -> 0x0033 }
goto L_0x0018
L_0x0033:
r2 = move-exception
monitor-exit(r3) // Catch:{ all -> 0x0033 }
throw r2
*/
throw new UnsupportedOperationException("Method not decompiled: processing.mode.android.Devices.find(boolean):processing.mode.android.Device");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private p000a.p001a.p002a.p003a.C0916s m1655b(p000a.p001a.p002a.p003a.p022i.p024b.C0112x r7, p000a.p001a.p002a.p003a.p034n.C0157e r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/293907205.run(Unknown Source)\n*/\n /*\n r6 = this;\n r0 = r7.m321a();\n r7 = r7.m322b();\n r1 = 0;\n r2 = r1;\n L_0x000a:\n r3 = r6.f1533u;\n r3 = r3 + 1;\n r6.f1533u = r3;\n r0.m2803e();\n r3 = r0.mo2010a();\n if (r3 != 0) goto L_0x0032;\n L_0x0019:\n r7 = r6.f1513a;\n r8 = \"Cannot retry non-repeatable request\";\n r7.m260a(r8);\n if (r2 == 0) goto L_0x002a;\n L_0x0022:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity. The cause lists the reason the original request failed.\";\n r7.<init>(r8, r2);\n throw r7;\n L_0x002a:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity.\";\n r7.<init>(r8);\n throw r7;\n L_0x0032:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.mo1932c();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x003a:\n r2 = r7.mo15e();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x004f;\t Catch:{ IOException -> 0x0086 }\n L_0x0040:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Reopening the direct connection.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x0086 }\n r2.mo2023a(r7, r8, r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x004f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Proxied connection. Need to start over.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0085;\t Catch:{ IOException -> 0x0086 }\n L_0x0057:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m262a();\t Catch:{ IOException -> 0x0086 }\n if (r2 == 0) goto L_0x007c;\t Catch:{ IOException -> 0x0086 }\n L_0x005f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = new java.lang.StringBuilder;\t Catch:{ IOException -> 0x0086 }\n r3.<init>();\t Catch:{ IOException -> 0x0086 }\n r4 = \"Attempt \";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = r6.f1533u;\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = \" to execute request\";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r3 = r3.toString();\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n L_0x007c:\n r2 = r6.f1518f;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m464a(r0, r3, r8);\t Catch:{ IOException -> 0x0086 }\n r1 = r2;\n L_0x0085:\n return r1;\n L_0x0086:\n r2 = move-exception;\n r3 = r6.f1513a;\n r4 = \"Closing the connection.\";\n r3.m260a(r4);\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0093 }\n r3.close();\t Catch:{ IOException -> 0x0093 }\n L_0x0093:\n r3 = r6.f1520h;\n r4 = r0.m2802d();\n r3 = r3.retryRequest(r2, r4, r8);\n if (r3 == 0) goto L_0x010a;\n L_0x009f:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x00d9;\n L_0x00a7:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"I/O exception (\";\n r4.append(r5);\n r5 = r2.getClass();\n r5 = r5.getName();\n r4.append(r5);\n r5 = \") caught when processing request to \";\n r4.append(r5);\n r4.append(r7);\n r5 = \": \";\n r4.append(r5);\n r5 = r2.getMessage();\n r4.append(r5);\n r4 = r4.toString();\n r3.m269d(r4);\n L_0x00d9:\n r3 = r6.f1513a;\n r3 = r3.m262a();\n if (r3 == 0) goto L_0x00ea;\n L_0x00e1:\n r3 = r6.f1513a;\n r4 = r2.getMessage();\n r3.m261a(r4, r2);\n L_0x00ea:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x000a;\n L_0x00f2:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"Retrying request to \";\n r4.append(r5);\n r4.append(r7);\n r4 = r4.toString();\n r3.m269d(r4);\n goto L_0x000a;\n L_0x010a:\n r8 = r2 instanceof p000a.p001a.p002a.p003a.C0176z;\n if (r8 == 0) goto L_0x0134;\n L_0x010e:\n r8 = new a.a.a.a.z;\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r7 = r7.mo10a();\n r7 = r7.m474e();\n r0.append(r7);\n r7 = \" failed to respond\";\n r0.append(r7);\n r7 = r0.toString();\n r8.<init>(r7);\n r7 = r2.getStackTrace();\n r8.setStackTrace(r7);\n throw r8;\n L_0x0134:\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.i.b.p.b(a.a.a.a.i.b.x, a.a.a.a.n.e):a.a.a.a.s\");\n }",
"public long mo915b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = -1;\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n if (r2 == 0) goto L_0x000d;\t Catch:{ NumberFormatException -> 0x000e }\n L_0x0006:\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ NumberFormatException -> 0x000e }\n r0 = r2;\n L_0x000d:\n return r0;\n L_0x000e:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.b.b():long\");\n }",
"private void m14210a(java.io.IOException r4, java.io.IOException r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r3 = this;\n r0 = f12370a;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = f12370a;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = 1;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = new java.lang.Object[r1];\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r2 = 0;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1[r2] = r5;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r0.invoke(r4, r1);\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.connection.RouteException.a(java.io.IOException, java.io.IOException):void\");\n }",
"private void m25427g() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19111m;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = r2.f19104f;\t Catch:{ Exception -> 0x000f }\n r0 = android.support.v4.content.C0396d.m1465a(r0);\t Catch:{ Exception -> 0x000f }\n r1 = r2.f19111m;\t Catch:{ Exception -> 0x000f }\n r0.m1468a(r1);\t Catch:{ Exception -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.w.g():void\");\n }",
"@Override // X.AnonymousClass0PN\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void A0D() {\n /*\n r5 = this;\n super.A0D()\n X.08d r0 = r5.A05\n X.0OQ r4 = r0.A04()\n X.0Rk r3 = r4.A00() // Catch:{ all -> 0x003d }\n X.0BK r2 = r4.A04 // Catch:{ all -> 0x0036 }\n java.lang.String r1 = \"DELETE FROM receipt_device\"\n java.lang.String r0 = \"CLEAR_TABLE_RECEIPT_DEVICE\"\n r2.A0C(r1, r0) // Catch:{ all -> 0x0036 }\n X.08m r1 = r5.A03 // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"receipt_device_migration_complete\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_index\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_retry\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n r3.A00() // Catch:{ all -> 0x0036 }\n r3.close()\n r4.close()\n java.lang.String r0 = \"ReceiptDeviceStore/ReceiptDeviceDatabaseMigration/resetMigration/done\"\n com.whatsapp.util.Log.i(r0)\n return\n L_0x0036:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x0038 }\n L_0x0038:\n r0 = move-exception\n r3.close() // Catch:{ all -> 0x003c }\n L_0x003c:\n throw r0\n L_0x003d:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x003f }\n L_0x003f:\n r0 = move-exception\n r4.close() // Catch:{ all -> 0x0043 }\n L_0x0043:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C43661yk.A0D():void\");\n }",
"static void m13383b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x000a }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x000a }\n r2 = 0;\t Catch:{ Exception -> 0x000a }\n r0.delete(r1, r2, r2);\t Catch:{ Exception -> 0x000a }\n L_0x000a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.b():void\");\n }",
"public void mo2485a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = r2.f11863a;\n monitor-enter(r0);\n r1 = r2.f11873l;\t Catch:{ all -> 0x002a }\n if (r1 != 0) goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x0007:\n r1 = r2.f11872k;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x000c;\t Catch:{ all -> 0x002a }\n L_0x000b:\n goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x000c:\n r1 = r2.f11875n;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x0015;\n L_0x0010:\n r1 = r2.f11875n;\t Catch:{ RemoteException -> 0x0015 }\n r1.cancel();\t Catch:{ RemoteException -> 0x0015 }\n L_0x0015:\n r1 = r2.f11870i;\t Catch:{ all -> 0x002a }\n m14216b(r1);\t Catch:{ all -> 0x002a }\n r1 = 1;\t Catch:{ all -> 0x002a }\n r2.f11873l = r1;\t Catch:{ all -> 0x002a }\n r1 = com.google.android.gms.common.api.Status.zzfnm;\t Catch:{ all -> 0x002a }\n r1 = r2.mo3568a(r1);\t Catch:{ all -> 0x002a }\n r2.m14217c(r1);\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x0028:\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x002a:\n r1 = move-exception;\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.api.internal.BasePendingResult.a():void\");\n }",
"protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }",
"private final void asx() {\n /*\n r12 = this;\n r0 = r12.cFE;\n if (r0 == 0) goto L_0x0073;\n L_0x0004:\n r1 = r12.cxs;\n if (r1 == 0) goto L_0x0073;\n L_0x0008:\n r1 = r12.ayL;\n if (r1 != 0) goto L_0x000d;\n L_0x000c:\n goto L_0x0073;\n L_0x000d:\n r2 = 0;\n if (r1 == 0) goto L_0x0027;\n L_0x0010:\n r1 = r1.Km();\n if (r1 == 0) goto L_0x0027;\n L_0x0016:\n r1 = r1.aar();\n if (r1 == 0) goto L_0x0027;\n L_0x001c:\n r3 = r0.getName();\n r1 = r1.get(r3);\n r1 = (java.util.ArrayList) r1;\n goto L_0x0028;\n L_0x0027:\n r1 = r2;\n L_0x0028:\n if (r1 == 0) goto L_0x0051;\n L_0x002a:\n r1 = (java.lang.Iterable) r1;\n r1 = kotlin.collections.u.Z(r1);\n if (r1 == 0) goto L_0x0051;\n L_0x0032:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$1;\n r3.<init>(r12);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.b(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x003f:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$2;\n r3.<init>(r0);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.f(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x004c:\n r1 = kotlin.sequences.n.f(r1);\n goto L_0x0052;\n L_0x0051:\n r1 = r2;\n L_0x0052:\n r3 = r12.asr();\n if (r1 == 0) goto L_0x0059;\n L_0x0058:\n goto L_0x005d;\n L_0x0059:\n r1 = kotlin.collections.m.emptyList();\n L_0x005d:\n r4 = r12.bub;\n if (r4 == 0) goto L_0x006d;\n L_0x0061:\n r5 = 0;\n r6 = 0;\n r7 = 1;\n r8 = 0;\n r9 = 0;\n r10 = 19;\n r11 = 0;\n r2 = com.iqoption.core.util.e.a(r4, r5, r6, r7, r8, r9, r10, r11);\n L_0x006d:\n r3.c(r1, r2);\n r12.d(r0);\n L_0x0073:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c.asx():void\");\n }",
"protected void method_2247() {\r\n // $FF: Couldn't be decompiled\r\n }",
"protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }",
"private final com.google.android.p306h.p307a.p308a.C5685v m26927b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 8: goto L_0x000e;\n case 18: goto L_0x0043;\n case 24: goto L_0x0054;\n case 32: goto L_0x005f;\n case 42: goto L_0x006a;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x0034 }\n switch(r2) {\n case 0: goto L_0x003c;\n case 1: goto L_0x003c;\n case 2: goto L_0x003c;\n case 3: goto L_0x003c;\n case 4: goto L_0x003c;\n case 5: goto L_0x003c;\n case 101: goto L_0x003c;\n case 102: goto L_0x003c;\n case 103: goto L_0x003c;\n case 104: goto L_0x003c;\n case 105: goto L_0x003c;\n case 106: goto L_0x003c;\n case 107: goto L_0x003c;\n case 108: goto L_0x003c;\n case 201: goto L_0x003c;\n case 202: goto L_0x003c;\n case 203: goto L_0x003c;\n case 204: goto L_0x003c;\n case 205: goto L_0x003c;\n case 206: goto L_0x003c;\n case 207: goto L_0x003c;\n case 208: goto L_0x003c;\n case 209: goto L_0x003c;\n case 301: goto L_0x003c;\n case 302: goto L_0x003c;\n case 303: goto L_0x003c;\n case 304: goto L_0x003c;\n case 305: goto L_0x003c;\n case 306: goto L_0x003c;\n case 307: goto L_0x003c;\n case 401: goto L_0x003c;\n case 402: goto L_0x003c;\n case 403: goto L_0x003c;\n case 404: goto L_0x003c;\n case 501: goto L_0x003c;\n case 502: goto L_0x003c;\n case 503: goto L_0x003c;\n case 504: goto L_0x003c;\n case 601: goto L_0x003c;\n case 602: goto L_0x003c;\n case 603: goto L_0x003c;\n case 604: goto L_0x003c;\n case 605: goto L_0x003c;\n case 606: goto L_0x003c;\n case 607: goto L_0x003c;\n case 608: goto L_0x003c;\n case 609: goto L_0x003c;\n case 610: goto L_0x003c;\n case 611: goto L_0x003c;\n case 612: goto L_0x003c;\n case 613: goto L_0x003c;\n case 614: goto L_0x003c;\n case 615: goto L_0x003c;\n case 616: goto L_0x003c;\n case 617: goto L_0x003c;\n case 618: goto L_0x003c;\n case 619: goto L_0x003c;\n case 620: goto L_0x003c;\n case 621: goto L_0x003c;\n case 622: goto L_0x003c;\n case 623: goto L_0x003c;\n case 624: goto L_0x003c;\n case 625: goto L_0x003c;\n case 626: goto L_0x003c;\n case 627: goto L_0x003c;\n case 628: goto L_0x003c;\n case 629: goto L_0x003c;\n case 630: goto L_0x003c;\n case 631: goto L_0x003c;\n case 632: goto L_0x003c;\n case 633: goto L_0x003c;\n case 634: goto L_0x003c;\n case 635: goto L_0x003c;\n case 636: goto L_0x003c;\n case 637: goto L_0x003c;\n case 638: goto L_0x003c;\n case 639: goto L_0x003c;\n case 640: goto L_0x003c;\n case 641: goto L_0x003c;\n case 701: goto L_0x003c;\n case 702: goto L_0x003c;\n case 703: goto L_0x003c;\n case 704: goto L_0x003c;\n case 705: goto L_0x003c;\n case 706: goto L_0x003c;\n case 707: goto L_0x003c;\n case 708: goto L_0x003c;\n case 709: goto L_0x003c;\n case 710: goto L_0x003c;\n case 711: goto L_0x003c;\n case 712: goto L_0x003c;\n case 713: goto L_0x003c;\n case 714: goto L_0x003c;\n case 715: goto L_0x003c;\n case 716: goto L_0x003c;\n case 717: goto L_0x003c;\n case 718: goto L_0x003c;\n case 719: goto L_0x003c;\n case 720: goto L_0x003c;\n case 721: goto L_0x003c;\n case 722: goto L_0x003c;\n case 801: goto L_0x003c;\n case 802: goto L_0x003c;\n case 803: goto L_0x003c;\n case 901: goto L_0x003c;\n case 902: goto L_0x003c;\n case 903: goto L_0x003c;\n case 904: goto L_0x003c;\n case 905: goto L_0x003c;\n case 906: goto L_0x003c;\n case 907: goto L_0x003c;\n case 908: goto L_0x003c;\n case 909: goto L_0x003c;\n case 910: goto L_0x003c;\n case 911: goto L_0x003c;\n case 912: goto L_0x003c;\n case 1001: goto L_0x003c;\n case 1002: goto L_0x003c;\n case 1003: goto L_0x003c;\n case 1004: goto L_0x003c;\n case 1005: goto L_0x003c;\n case 1006: goto L_0x003c;\n case 1101: goto L_0x003c;\n case 1102: goto L_0x003c;\n case 1201: goto L_0x003c;\n case 1301: goto L_0x003c;\n case 1302: goto L_0x003c;\n case 1303: goto L_0x003c;\n case 1304: goto L_0x003c;\n case 1305: goto L_0x003c;\n case 1306: goto L_0x003c;\n case 1307: goto L_0x003c;\n case 1308: goto L_0x003c;\n case 1309: goto L_0x003c;\n case 1310: goto L_0x003c;\n case 1311: goto L_0x003c;\n case 1312: goto L_0x003c;\n case 1313: goto L_0x003c;\n case 1314: goto L_0x003c;\n case 1315: goto L_0x003c;\n case 1316: goto L_0x003c;\n case 1317: goto L_0x003c;\n case 1318: goto L_0x003c;\n case 1319: goto L_0x003c;\n case 1320: goto L_0x003c;\n case 1321: goto L_0x003c;\n case 1322: goto L_0x003c;\n case 1323: goto L_0x003c;\n case 1324: goto L_0x003c;\n case 1325: goto L_0x003c;\n case 1326: goto L_0x003c;\n case 1327: goto L_0x003c;\n case 1328: goto L_0x003c;\n case 1329: goto L_0x003c;\n case 1330: goto L_0x003c;\n case 1331: goto L_0x003c;\n case 1332: goto L_0x003c;\n case 1333: goto L_0x003c;\n case 1334: goto L_0x003c;\n case 1335: goto L_0x003c;\n case 1336: goto L_0x003c;\n case 1337: goto L_0x003c;\n case 1338: goto L_0x003c;\n case 1339: goto L_0x003c;\n case 1340: goto L_0x003c;\n case 1341: goto L_0x003c;\n case 1342: goto L_0x003c;\n case 1343: goto L_0x003c;\n case 1344: goto L_0x003c;\n case 1345: goto L_0x003c;\n case 1346: goto L_0x003c;\n case 1347: goto L_0x003c;\n case 1401: goto L_0x003c;\n case 1402: goto L_0x003c;\n case 1403: goto L_0x003c;\n case 1404: goto L_0x003c;\n case 1405: goto L_0x003c;\n case 1406: goto L_0x003c;\n case 1407: goto L_0x003c;\n case 1408: goto L_0x003c;\n case 1409: goto L_0x003c;\n case 1410: goto L_0x003c;\n case 1411: goto L_0x003c;\n case 1412: goto L_0x003c;\n case 1413: goto L_0x003c;\n case 1414: goto L_0x003c;\n case 1415: goto L_0x003c;\n case 1416: goto L_0x003c;\n case 1417: goto L_0x003c;\n case 1418: goto L_0x003c;\n case 1419: goto L_0x003c;\n case 1420: goto L_0x003c;\n case 1421: goto L_0x003c;\n case 1422: goto L_0x003c;\n case 1423: goto L_0x003c;\n case 1424: goto L_0x003c;\n case 1425: goto L_0x003c;\n case 1426: goto L_0x003c;\n case 1427: goto L_0x003c;\n case 1601: goto L_0x003c;\n case 1602: goto L_0x003c;\n case 1603: goto L_0x003c;\n case 1604: goto L_0x003c;\n case 1605: goto L_0x003c;\n case 1606: goto L_0x003c;\n case 1607: goto L_0x003c;\n case 1608: goto L_0x003c;\n case 1609: goto L_0x003c;\n case 1610: goto L_0x003c;\n case 1611: goto L_0x003c;\n case 1612: goto L_0x003c;\n case 1613: goto L_0x003c;\n case 1614: goto L_0x003c;\n case 1615: goto L_0x003c;\n case 1616: goto L_0x003c;\n case 1617: goto L_0x003c;\n case 1618: goto L_0x003c;\n case 1619: goto L_0x003c;\n case 1620: goto L_0x003c;\n case 1621: goto L_0x003c;\n case 1622: goto L_0x003c;\n case 1623: goto L_0x003c;\n case 1624: goto L_0x003c;\n case 1625: goto L_0x003c;\n case 1626: goto L_0x003c;\n case 1627: goto L_0x003c;\n case 1628: goto L_0x003c;\n case 1629: goto L_0x003c;\n case 1630: goto L_0x003c;\n case 1631: goto L_0x003c;\n case 1632: goto L_0x003c;\n case 1633: goto L_0x003c;\n case 1634: goto L_0x003c;\n case 1635: goto L_0x003c;\n case 1636: goto L_0x003c;\n case 1637: goto L_0x003c;\n case 1638: goto L_0x003c;\n case 1639: goto L_0x003c;\n case 1640: goto L_0x003c;\n case 1641: goto L_0x003c;\n case 1642: goto L_0x003c;\n case 1643: goto L_0x003c;\n case 1644: goto L_0x003c;\n case 1645: goto L_0x003c;\n case 1646: goto L_0x003c;\n case 1647: goto L_0x003c;\n case 1648: goto L_0x003c;\n case 1649: goto L_0x003c;\n case 1650: goto L_0x003c;\n case 1651: goto L_0x003c;\n case 1652: goto L_0x003c;\n case 1653: goto L_0x003c;\n case 1654: goto L_0x003c;\n case 1655: goto L_0x003c;\n case 1656: goto L_0x003c;\n case 1657: goto L_0x003c;\n case 1658: goto L_0x003c;\n case 1659: goto L_0x003c;\n case 1660: goto L_0x003c;\n case 1801: goto L_0x003c;\n case 1802: goto L_0x003c;\n case 1803: goto L_0x003c;\n case 1804: goto L_0x003c;\n case 1805: goto L_0x003c;\n case 1806: goto L_0x003c;\n case 1807: goto L_0x003c;\n case 1808: goto L_0x003c;\n case 1809: goto L_0x003c;\n case 1810: goto L_0x003c;\n case 1811: goto L_0x003c;\n case 1812: goto L_0x003c;\n case 1813: goto L_0x003c;\n case 1814: goto L_0x003c;\n case 1815: goto L_0x003c;\n case 1816: goto L_0x003c;\n case 1817: goto L_0x003c;\n case 1901: goto L_0x003c;\n case 1902: goto L_0x003c;\n case 1903: goto L_0x003c;\n case 1904: goto L_0x003c;\n case 1905: goto L_0x003c;\n case 1906: goto L_0x003c;\n case 1907: goto L_0x003c;\n case 1908: goto L_0x003c;\n case 1909: goto L_0x003c;\n case 2001: goto L_0x003c;\n case 2101: goto L_0x003c;\n case 2102: goto L_0x003c;\n case 2103: goto L_0x003c;\n case 2104: goto L_0x003c;\n case 2105: goto L_0x003c;\n case 2106: goto L_0x003c;\n case 2107: goto L_0x003c;\n case 2108: goto L_0x003c;\n case 2109: goto L_0x003c;\n case 2110: goto L_0x003c;\n case 2111: goto L_0x003c;\n case 2112: goto L_0x003c;\n case 2113: goto L_0x003c;\n case 2114: goto L_0x003c;\n case 2115: goto L_0x003c;\n case 2116: goto L_0x003c;\n case 2117: goto L_0x003c;\n case 2118: goto L_0x003c;\n case 2119: goto L_0x003c;\n case 2120: goto L_0x003c;\n case 2121: goto L_0x003c;\n case 2122: goto L_0x003c;\n case 2123: goto L_0x003c;\n case 2124: goto L_0x003c;\n case 2201: goto L_0x003c;\n case 2202: goto L_0x003c;\n case 2203: goto L_0x003c;\n case 2204: goto L_0x003c;\n case 2205: goto L_0x003c;\n case 2206: goto L_0x003c;\n case 2207: goto L_0x003c;\n case 2208: goto L_0x003c;\n case 2209: goto L_0x003c;\n case 2210: goto L_0x003c;\n case 2211: goto L_0x003c;\n case 2212: goto L_0x003c;\n case 2213: goto L_0x003c;\n case 2214: goto L_0x003c;\n case 2215: goto L_0x003c;\n case 2301: goto L_0x003c;\n case 2302: goto L_0x003c;\n case 2303: goto L_0x003c;\n case 2304: goto L_0x003c;\n case 2401: goto L_0x003c;\n case 2402: goto L_0x003c;\n case 2501: goto L_0x003c;\n case 2502: goto L_0x003c;\n case 2503: goto L_0x003c;\n case 2504: goto L_0x003c;\n case 2505: goto L_0x003c;\n case 2506: goto L_0x003c;\n case 2507: goto L_0x003c;\n case 2508: goto L_0x003c;\n case 2509: goto L_0x003c;\n case 2510: goto L_0x003c;\n case 2511: goto L_0x003c;\n case 2512: goto L_0x003c;\n case 2513: goto L_0x003c;\n case 2514: goto L_0x003c;\n case 2515: goto L_0x003c;\n case 2516: goto L_0x003c;\n case 2517: goto L_0x003c;\n case 2518: goto L_0x003c;\n case 2519: goto L_0x003c;\n case 2601: goto L_0x003c;\n case 2602: goto L_0x003c;\n case 2701: goto L_0x003c;\n case 2702: goto L_0x003c;\n case 2703: goto L_0x003c;\n case 2704: goto L_0x003c;\n case 2705: goto L_0x003c;\n case 2706: goto L_0x003c;\n case 2707: goto L_0x003c;\n case 2801: goto L_0x003c;\n case 2802: goto L_0x003c;\n case 2803: goto L_0x003c;\n case 2804: goto L_0x003c;\n case 2805: goto L_0x003c;\n case 2806: goto L_0x003c;\n case 2807: goto L_0x003c;\n case 2808: goto L_0x003c;\n case 2809: goto L_0x003c;\n case 2810: goto L_0x003c;\n case 2811: goto L_0x003c;\n case 2812: goto L_0x003c;\n case 2813: goto L_0x003c;\n case 2814: goto L_0x003c;\n case 2815: goto L_0x003c;\n case 2816: goto L_0x003c;\n case 2817: goto L_0x003c;\n case 2818: goto L_0x003c;\n case 2819: goto L_0x003c;\n case 2820: goto L_0x003c;\n case 2821: goto L_0x003c;\n case 2822: goto L_0x003c;\n case 2823: goto L_0x003c;\n case 2824: goto L_0x003c;\n case 2825: goto L_0x003c;\n case 2826: goto L_0x003c;\n case 2901: goto L_0x003c;\n case 2902: goto L_0x003c;\n case 2903: goto L_0x003c;\n case 2904: goto L_0x003c;\n case 2905: goto L_0x003c;\n case 2906: goto L_0x003c;\n case 2907: goto L_0x003c;\n case 3001: goto L_0x003c;\n case 3002: goto L_0x003c;\n case 3003: goto L_0x003c;\n case 3004: goto L_0x003c;\n case 3005: goto L_0x003c;\n default: goto L_0x0019;\n };\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0019:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = 41;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = \" is not a valid enum EventType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0034 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0034:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x003c:\n r2 = java.lang.Integer.valueOf(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r6.f28837a = r2;\t Catch:{ IllegalArgumentException -> 0x0034 }\n goto L_0x0000;\n L_0x0043:\n r0 = r6.f28838b;\n if (r0 != 0) goto L_0x004e;\n L_0x0047:\n r0 = new com.google.android.h.a.a.u;\n r0.<init>();\n r6.f28838b = r0;\n L_0x004e:\n r0 = r6.f28838b;\n r7.a(r0);\n goto L_0x0000;\n L_0x0054:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28839c = r0;\n goto L_0x0000;\n L_0x005f:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28840d = r0;\n goto L_0x0000;\n L_0x006a:\n r0 = r6.f28841e;\n if (r0 != 0) goto L_0x0075;\n L_0x006e:\n r0 = new com.google.android.h.a.a.o;\n r0.<init>();\n r6.f28841e = r0;\n L_0x0075:\n r0 = r6.f28841e;\n r7.a(r0);\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.h.a.a.v.b(com.google.protobuf.nano.a):com.google.android.h.a.a.v\");\n }",
"public JBlock _finally() {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 0: iconst_0 \n // 1: nop \n // 2: nop \n // 3: nop \n // 4: aload_3 \n // 5: nop \n // 6: lconst_0 \n // 7: nop \n // 8: iaload \n // 9: nop \n // 10: ldc2_w \"Lcom/sun/codemodel/JFormatter;\"\n // 13: nop \n // 14: fload_0 /* this */\n // 15: nop \n // 16: nop \n // 17: nop \n // 18: lload_2 \n // 19: nop \n // 20: iconst_0 \n // 21: nop \n // 22: nop \n // LocalVariableTable:\n // Start Length Slot Name Signature\n // ----- ------ ---- ---- -----------------------------\n // 0 23 0 this Lcom/sun/codemodel/JTryBlock;\n // \n // The error that occurred was:\n // \n // java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number\n // at com.strobel.assembler.ir.StackMappingVisitor$InstructionAnalyzer.execute(StackMappingVisitor.java:935)\n // at com.strobel.assembler.ir.StackMappingVisitor$InstructionAnalyzer.visit(StackMappingVisitor.java:398)\n // at com.strobel.decompiler.ast.AstBuilder.performStackAnalysis(AstBuilder.java:2030)\n // at com.strobel.decompiler.ast.AstBuilder.build(AstBuilder.java:108)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:210)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:757)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:655)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:532)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:499)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:141)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:130)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:105)\n // at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)\n // at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)\n // at com.strobel.decompiler.DecompilerDriver.decompileType(DecompilerDriver.java:317)\n // at com.strobel.decompiler.DecompilerDriver.decompileJar(DecompilerDriver.java:238)\n // at com.strobel.decompiler.DecompilerDriver.main(DecompilerDriver.java:123)\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }",
"public void mo3613a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f18081b;\n monitor-enter(r0);\n r1 = r4.f18080a;\t Catch:{ all -> 0x001f }\n if (r1 == 0) goto L_0x0009;\t Catch:{ all -> 0x001f }\n L_0x0007:\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n return;\t Catch:{ all -> 0x001f }\n L_0x0009:\n r1 = 1;\t Catch:{ all -> 0x001f }\n r4.f18080a = r1;\t Catch:{ all -> 0x001f }\n r2 = r4.f18081b;\t Catch:{ all -> 0x001f }\n r3 = r2.f12200d;\t Catch:{ all -> 0x001f }\n r3 = r3 + r1;\t Catch:{ all -> 0x001f }\n r2.f12200d = r3;\t Catch:{ all -> 0x001f }\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n r0 = r4.f18083d;\n okhttp3.internal.C2933c.m14194a(r0);\n r0 = r4.f18082c;\t Catch:{ IOException -> 0x001e }\n r0.m14100c();\t Catch:{ IOException -> 0x001e }\n L_0x001e:\n return;\n L_0x001f:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.a.a():void\");\n }",
"public void a() {\n block8 : {\n block9 : {\n var1_1 = this.f();\n var2_2 = false;\n if (var1_1) break block8;\n this.j.c();\n var6_3 = this.k;\n var7_4 = this.b;\n var8_5 = (l)var6_3;\n var9_6 = var8_5.a(var7_4);\n if (var9_6 != null) break block9;\n this.a(false);\n var2_2 = true;\n ** GOTO lbl30\n }\n if (var9_6 != n.b) ** GOTO lbl26\n this.a(this.g);\n var11_7 = this.k;\n var12_8 = this.b;\n var13_9 = (l)var11_7;\n try {\n block10 : {\n var2_2 = var13_9.a(var12_8).d();\n break block10;\nlbl26: // 1 sources:\n var10_10 = var9_6.d();\n var2_2 = false;\n if (!var10_10) {\n this.b();\n }\n }\n this.j.g();\n }\n finally {\n this.j.d();\n }\n }\n if ((var3_12 = this.c) == null) return;\n if (var2_2) {\n var4_13 = var3_12.iterator();\n while (var4_13.hasNext()) {\n ((d)var4_13.next()).a(this.b);\n }\n }\n e.a(this.h, this.j, this.c);\n }\n\n /*\n * Exception decompiling\n */\n public final void a(ListenableWorker.a var1_1) {\n // This method has failed to decompile. When submitting a bug report, please provide this stack trace, and (if you hold appropriate legal rights) the relevant class file.\n // org.benf.cfr.reader.util.ConfusedCFRException: Tried to end blocks [4[TRYBLOCK]], but top level block is 10[WHILELOOP]\n // org.benf.cfr.reader.b.a.a.j.a(Op04StructuredStatement.java:432)\n // org.benf.cfr.reader.b.a.a.j.d(Op04StructuredStatement.java:484)\n // org.benf.cfr.reader.b.a.a.i.a(Op03SimpleStatement.java:607)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:692)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:182)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:127)\n // org.benf.cfr.reader.entities.attributes.f.c(AttributeCode.java:96)\n // org.benf.cfr.reader.entities.g.p(Method.java:396)\n // org.benf.cfr.reader.entities.d.e(ClassFile.java:890)\n // org.benf.cfr.reader.entities.d.b(ClassFile.java:792)\n // org.benf.cfr.reader.b.a(Driver.java:128)\n // org.benf.cfr.reader.a.a(CfrDriverImpl.java:63)\n // com.njlabs.showjava.decompilers.JavaExtractionWorker.decompileWithCFR(JavaExtractionWorker.kt:61)\n // com.njlabs.showjava.decompilers.JavaExtractionWorker.doWork(JavaExtractionWorker.kt:130)\n // com.njlabs.showjava.decompilers.BaseDecompiler.withAttempt(BaseDecompiler.kt:108)\n // com.njlabs.showjava.workers.DecompilerWorker$b.run(DecompilerWorker.kt:118)\n // java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)\n // java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)\n // java.lang.Thread.run(Thread.java:919)\n throw new IllegalStateException(\"Decompilation failed\");\n }\n\n public final void a(String string) {\n LinkedList linkedList = new LinkedList();\n linkedList.add((Object)string);\n while (!linkedList.isEmpty()) {\n String string2 = (String)linkedList.remove();\n if (((l)this.k).a(string2) != n.f) {\n k k2 = this.k;\n n n2 = n.d;\n String[] arrstring = new String[]{string2};\n ((l)k2).a(n2, arrstring);\n }\n linkedList.addAll((Collection)((a.i.r.p.c)this.l).a(string2));\n }\n }\n\n /*\n * Enabled aggressive block sorting\n * Enabled unnecessary exception pruning\n * Enabled aggressive exception aggregation\n */\n public final void a(boolean bl) {\n this.j.c();\n k k2 = this.j.k();\n l l2 = (l)k2;\n List list = l2.a();\n ArrayList arrayList = (ArrayList)list;\n boolean bl2 = arrayList.isEmpty();\n if (bl2) {\n f.a(this.a, RescheduleReceiver.class, false);\n }\n this.j.g();\n this.p.c((Object)bl);\n return;\n finally {\n this.j.d();\n }\n }\n\n public final void b() {\n this.j.c();\n k k2 = this.k;\n n n2 = n.a;\n String[] arrstring = new String[]{this.b};\n l l2 = (l)k2;\n l2.a(n2, arrstring);\n k k3 = this.k;\n String string = this.b;\n long l3 = System.currentTimeMillis();\n l l4 = (l)k3;\n l4.b(string, l3);\n k k4 = this.k;\n String string2 = this.b;\n l l5 = (l)k4;\n try {\n l5.a(string2, -1L);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(true);\n }\n }\n\n public final void c() {\n this.j.c();\n k k2 = this.k;\n String string = this.b;\n long l2 = System.currentTimeMillis();\n l l3 = (l)k2;\n l3.b(string, l2);\n k k3 = this.k;\n n n2 = n.a;\n String[] arrstring = new String[]{this.b};\n l l4 = (l)k3;\n l4.a(n2, arrstring);\n k k4 = this.k;\n String string2 = this.b;\n l l5 = (l)k4;\n l5.f(string2);\n k k5 = this.k;\n String string3 = this.b;\n l l6 = (l)k5;\n try {\n l6.a(string3, -1L);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(false);\n }\n }\n\n public final void d() {\n k k2 = this.k;\n String string = this.b;\n n n2 = ((l)k2).a(string);\n if (n2 == n.b) {\n h h2 = h.a();\n String string2 = s;\n Object[] arrobject = new Object[]{this.b};\n h2.a(string2, String.format((String)\"Status for %s is RUNNING;not doing any work and rescheduling for later execution\", (Object[])arrobject), new Throwable[0]);\n this.a(true);\n return;\n }\n h h4 = h.a();\n String string3 = s;\n Object[] arrobject = new Object[]{this.b, n2};\n h4.a(string3, String.format((String)\"Status for %s is %s; not doing any work\", (Object[])arrobject), new Throwable[0]);\n this.a(false);\n }\n\n public void e() {\n this.j.c();\n this.a(this.b);\n a.i.e e2 = ((ListenableWorker.a.a)this.g).a;\n k k2 = this.k;\n String string = this.b;\n l l2 = (l)k2;\n try {\n l2.a(string, e2);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(false);\n }\n }\n\n public final boolean f() {\n if (this.r) {\n h h2 = h.a();\n String string = s;\n Object[] arrobject = new Object[]{this.o};\n h2.a(string, String.format((String)\"Work interrupted for %s\", (Object[])arrobject), new Throwable[0]);\n k k2 = this.k;\n String string2 = this.b;\n n n2 = ((l)k2).a(string2);\n if (n2 == null) {\n this.a(false);\n return true;\n }\n this.a(true ^ n2.d());\n return true;\n }\n return false;\n }\n\n /*\n * Loose catch block\n * Enabled aggressive block sorting\n * Enabled unnecessary exception pruning\n * Enabled aggressive exception aggregation\n * Lifted jumps to return sites\n */\n public void run() {\n int n2;\n block42 : {\n block41 : {\n i i2;\n Cursor cursor;\n block48 : {\n block46 : {\n ListenableWorker listenableWorker;\n block47 : {\n a.i.e e2;\n block44 : {\n g g2;\n block45 : {\n block40 : {\n boolean bl;\n Iterator iterator;\n j j2;\n StringBuilder stringBuilder;\n block43 : {\n a.i.r.p.n n3 = this.m;\n String string = this.b;\n o o2 = (o)n3;\n if (o2 == null) throw null;\n n2 = 1;\n i i3 = i.a((String)\"SELECT DISTINCT tag FROM worktag WHERE work_spec_id=?\", (int)n2);\n if (string == null) {\n i3.bindNull(n2);\n } else {\n i3.bindString(n2, string);\n }\n o2.a.b();\n Cursor cursor2 = a.f.l.a.a(o2.a, (a.g.a.e)i3, false);\n ArrayList arrayList = new ArrayList(cursor2.getCount());\n while (cursor2.moveToNext()) {\n arrayList.add((Object)cursor2.getString(0));\n }\n this.n = arrayList;\n stringBuilder = new StringBuilder(\"Work [ id=\");\n stringBuilder.append(this.b);\n stringBuilder.append(\", tags={ \");\n iterator = arrayList.iterator();\n bl = true;\n break block43;\n finally {\n cursor2.close();\n i3.b();\n }\n }\n while (iterator.hasNext()) {\n String string = (String)iterator.next();\n if (bl) {\n bl = false;\n } else {\n stringBuilder.append(\", \");\n }\n stringBuilder.append(string);\n }\n stringBuilder.append(\" } ]\");\n this.o = stringBuilder.toString();\n if (this.f()) {\n return;\n }\n this.j.c();\n k k2 = this.k;\n String string = this.b;\n l l2 = (l)k2;\n this.e = j2 = l2.d(string);\n if (j2 == null) {\n h h2 = h.a();\n String string2 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.b;\n h2.b(string2, String.format((String)\"Didn't find WorkSpec for id %s\", (Object[])arrobject), new Throwable[0]);\n this.a(false);\n return;\n }\n if (j2.b != n.a) {\n this.d();\n this.j.g();\n h h4 = h.a();\n String string3 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h4.a(string3, String.format((String)\"%s is not in ENQUEUED state. Nothing more to do.\", (Object[])arrobject), new Throwable[0]);\n return;\n }\n if (j2.d() || this.e.c()) {\n long l3 = System.currentTimeMillis();\n boolean bl2 = this.e.n == 0L;\n if (!bl2 && l3 < this.e.a()) {\n h h5 = h.a();\n String string4 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h5.a(string4, String.format((String)\"Delaying execution for %s because it is being executed before schedule.\", (Object[])arrobject), new Throwable[0]);\n this.a((boolean)n2);\n return;\n }\n }\n this.j.g();\n if (!this.e.d()) break block40;\n e2 = this.e.e;\n break block44;\n }\n g2 = g.a(this.e.d);\n if (g2 != null) break block45;\n h h6 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.d;\n h6.b(string, String.format((String)\"Could not create Input Merger %s\", (Object[])arrobject), new Throwable[0]);\n break block46;\n }\n ArrayList arrayList = new ArrayList();\n arrayList.add((Object)this.e.e);\n k k3 = this.k;\n String string = this.b;\n l l4 = (l)k3;\n if (l4 == null) throw null;\n i2 = i.a((String)\"SELECT output FROM workspec WHERE id IN (SELECT prerequisite_id FROM dependency WHERE work_spec_id=?)\", (int)n2);\n if (string == null) {\n i2.bindNull(n2);\n } else {\n i2.bindString(n2, string);\n }\n l4.a.b();\n cursor = a.f.l.a.a(l4.a, (a.g.a.e)i2, false);\n ArrayList arrayList2 = new ArrayList(cursor.getCount());\n while (cursor.moveToNext()) {\n arrayList2.add((Object)a.i.e.b(cursor.getBlob(0)));\n }\n arrayList.addAll((Collection)arrayList2);\n e2 = g2.a((List<a.i.e>)arrayList);\n }\n a.i.e e3 = e2;\n UUID uUID = UUID.fromString((String)this.b);\n List<String> list = this.n;\n WorkerParameters.a a2 = this.d;\n int n5 = this.e.k;\n a.i.b b2 = this.h;\n WorkerParameters workerParameters = new WorkerParameters(uUID, e3, list, a2, n5, b2.a, this.i, b2.c);\n if (this.f == null) {\n this.f = this.h.c.a(this.a, this.e.c, workerParameters);\n }\n if ((listenableWorker = this.f) != null) break block47;\n h h7 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h7.b(string, String.format((String)\"Could not create Worker %s\", (Object[])arrobject), new Throwable[0]);\n break block46;\n }\n if (!listenableWorker.isUsed()) break block48;\n h h8 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h8.b(string, String.format((String)\"Received an already-used Worker %s; WorkerFactory should return new instances\", (Object[])arrobject), new Throwable[0]);\n }\n this.e();\n return;\n }\n this.f.setUsed();\n this.j.c();\n k k4 = this.k;\n String string = this.b;\n l l5 = (l)k4;\n if (l5.a(string) != n.a) break block41;\n k k5 = this.k;\n n n7 = n.b;\n String[] arrstring = new String[n2];\n arrstring[0] = this.b;\n l l6 = (l)k5;\n l6.a(n7, arrstring);\n k k6 = this.k;\n String string5 = this.b;\n l l7 = (l)k6;\n try {\n l7.e(string5);\n break block42;\n }\n finally {\n cursor.close();\n i2.b();\n }\n catch (Throwable throwable) {\n throw throwable;\n }\n finally {\n this.j.d();\n }\n }\n n2 = 0;\n }\n this.j.g();\n if (n2 != 0) {\n if (this.f()) {\n return;\n }\n c c2 = new c();\n ((a.i.r.q.m.b)this.i).c.execute((Runnable)new a.i.r.k(this, c2));\n c2.a((Runnable)new a.i.r.l(this, c2, this.o), ((a.i.r.q.m.b)this.i).a);\n return;\n }\n this.d();\n return;\n finally {\n this.j.d();\n }\n }\n\n public static class a {\n public Context a;\n public ListenableWorker b;\n public a.i.r.q.m.a c;\n public a.i.b d;\n public WorkDatabase e;\n public String f;\n public List<d> g;\n public WorkerParameters.a h = new WorkerParameters.a();\n\n public a(Context context, a.i.b b2, a.i.r.q.m.a a2, WorkDatabase workDatabase, String string) {\n this.a = context.getApplicationContext();\n this.c = a2;\n this.d = b2;\n this.e = workDatabase;\n this.f = string;\n }\n }\n\n}",
"@androidx.annotation.Nullable\n /* renamed from: j */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final p005b.p096l.p097a.p151d.p152a.p154b.C3474b mo14822j(java.lang.String r9) {\n /*\n r8 = this;\n java.io.File r0 = new java.io.File\n java.io.File r1 = r8.mo14820g()\n r0.<init>(r1, r9)\n boolean r1 = r0.exists()\n r2 = 3\n r3 = 6\n r4 = 1\n r5 = 0\n r6 = 0\n if (r1 != 0) goto L_0x0022\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r4]\n r1[r5] = r9\n java.lang.String r9 = \"Pack not found with pack name: %s\"\n r0.mo14884b(r2, r9, r1)\n L_0x001f:\n r9 = r6\n goto L_0x0093\n L_0x0022:\n java.io.File r1 = new java.io.File\n b.l.a.d.a.b.o1 r7 = r8.f6567b\n int r7 = r7.mo14797a()\n java.lang.String r7 = java.lang.String.valueOf(r7)\n r1.<init>(r0, r7)\n boolean r0 = r1.exists()\n r7 = 2\n if (r0 != 0) goto L_0x0050\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"Pack not found with pack name: %s app version: %s\"\n r0.mo14884b(r2, r9, r1)\n goto L_0x001f\n L_0x0050:\n java.io.File[] r0 = r1.listFiles()\n if (r0 == 0) goto L_0x007b\n int r1 = r0.length\n if (r1 != 0) goto L_0x005a\n goto L_0x007b\n L_0x005a:\n if (r1 <= r4) goto L_0x0074\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"Multiple pack versions found for pack name: %s app version: %s\"\n r0.mo14884b(r3, r9, r1)\n goto L_0x001f\n L_0x0074:\n r9 = r0[r5]\n java.lang.String r9 = r9.getCanonicalPath()\n goto L_0x0093\n L_0x007b:\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"No pack version found for pack name: %s app version: %s\"\n r0.mo14884b(r2, r9, r1)\n goto L_0x001f\n L_0x0093:\n if (r9 != 0) goto L_0x0096\n return r6\n L_0x0096:\n java.io.File r0 = new java.io.File\n java.lang.String r1 = \"assets\"\n r0.<init>(r9, r1)\n boolean r1 = r0.isDirectory()\n if (r1 != 0) goto L_0x00af\n b.l.a.d.a.e.f r9 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r4]\n r1[r5] = r0\n java.lang.String r0 = \"Failed to find assets directory: %s\"\n r9.mo14884b(r3, r0, r1)\n return r6\n L_0x00af:\n java.lang.String r0 = r0.getCanonicalPath()\n b.l.a.d.a.b.w r1 = new b.l.a.d.a.b.w\n r1.<init>(r5, r9, r0)\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p005b.p096l.p097a.p151d.p152a.p154b.C3544t.mo14822j(java.lang.String):b.l.a.d.a.b.b\");\n }",
"private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void c() {\n /*\n r4 = this;\n com.shopee.app.data.store.o r0 = r4.f16997c\n boolean r0 = r0.c()\n r1 = 1\n r2 = 0\n if (r0 == 0) goto L_0x000c\n L_0x000a:\n r0 = 0\n goto L_0x0023\n L_0x000c:\n com.shopee.app.data.store.o r0 = r4.f16997c\n boolean r0 = r0.a()\n if (r0 != 0) goto L_0x001c\n com.shopee.app.data.store.o r0 = r4.f16997c\n int r0 = r0.b()\n r2 = r0\n goto L_0x000a\n L_0x001c:\n com.shopee.app.data.store.o r0 = r4.f16997c\n int r2 = r0.e()\n r0 = 1\n L_0x0023:\n boolean r3 = r4.f16998d\n if (r3 == 0) goto L_0x0032\n if (r0 == 0) goto L_0x003a\n com.shopee.app.network.d.c.d r0 = new com.shopee.app.network.d.c.d\n r0.<init>()\n r0.a(r2, r1)\n goto L_0x003a\n L_0x0032:\n com.shopee.app.network.d.c.d r1 = new com.shopee.app.network.d.c.d\n r1.<init>()\n r1.a(r2, r0)\n L_0x003a:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.shopee.app.d.c.f.m.c():void\");\n }",
"public final synchronized void mo5320b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r1 = 0;\t Catch:{ all -> 0x004c }\n r2 = 0;\t Catch:{ all -> 0x004c }\n if (r0 == 0) goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0007:\n r0 = r6.f24851a;\t Catch:{ all -> 0x004c }\n if (r0 != 0) goto L_0x0013;\t Catch:{ all -> 0x004c }\n L_0x000b:\n r0 = r6.f24854d;\t Catch:{ all -> 0x004c }\n r3 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r0.deleteFile(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0013:\n r0 = com.google.android.m4b.maps.cg.bx.m23058b();\t Catch:{ all -> 0x004c }\n r3 = r6.f24854d;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24853c;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r3 = r3.openFileOutput(r4, r1);\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24851a;\t Catch:{ IOException -> 0x0033 }\n r4 = r4.m20837d();\t Catch:{ IOException -> 0x0033 }\n r3.write(r4);\t Catch:{ IOException -> 0x0033 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n L_0x002b:\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\n L_0x002f:\n r1 = move-exception;\n r3 = r2;\n goto L_0x003f;\n L_0x0032:\n r3 = r2;\n L_0x0033:\n r4 = r6.f24854d;\t Catch:{ all -> 0x003e }\n r5 = r6.f24853c;\t Catch:{ all -> 0x003e }\n r4.deleteFile(r5);\t Catch:{ all -> 0x003e }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n goto L_0x002b;\t Catch:{ all -> 0x004c }\n L_0x003e:\n r1 = move-exception;\t Catch:{ all -> 0x004c }\n L_0x003f:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n throw r1;\t Catch:{ all -> 0x004c }\n L_0x0046:\n r6.f24851a = r2;\t Catch:{ all -> 0x004c }\n r6.f24852b = r1;\t Catch:{ all -> 0x004c }\n monitor-exit(r6);\n return;\n L_0x004c:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.b():void\");\n }",
"private final com.google.wireless.android.finsky.dfe.p515h.p516a.ae m35733b(com.google.protobuf.nano.C7213a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.m33550a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 10: goto L_0x000e;\n case 18: goto L_0x001f;\n case 26: goto L_0x002c;\n case 34: goto L_0x0039;\n case 42: goto L_0x004a;\n case 50: goto L_0x0057;\n case 56: goto L_0x0064;\n case 64: goto L_0x00a3;\n case 72: goto L_0x00b1;\n case 82: goto L_0x00bf;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r0 = r6.f38026c;\n if (r0 != 0) goto L_0x0019;\n L_0x0012:\n r0 = new com.google.android.finsky.cv.a.bd;\n r0.<init>();\n r6.f38026c = r0;\n L_0x0019:\n r0 = r6.f38026c;\n r7.m33552a(r0);\n goto L_0x0000;\n L_0x001f:\n r0 = r7.m33564f();\n r6.f38027d = r0;\n r0 = r6.f38025b;\n r0 = r0 | 1;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x002c:\n r0 = r7.m33564f();\n r6.f38028e = r0;\n r0 = r6.f38025b;\n r0 = r0 | 2;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0039:\n r0 = r6.f38029f;\n if (r0 != 0) goto L_0x0044;\n L_0x003d:\n r0 = new com.google.android.finsky.cv.a.ax;\n r0.<init>();\n r6.f38029f = r0;\n L_0x0044:\n r0 = r6.f38029f;\n r7.m33552a(r0);\n goto L_0x0000;\n L_0x004a:\n r0 = r7.m33564f();\n r6.f38030g = r0;\n r0 = r6.f38025b;\n r0 = r0 | 4;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0057:\n r0 = r7.m33564f();\n r6.f38031h = r0;\n r0 = r6.f38025b;\n r0 = r0 | 8;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0064:\n r1 = r6.f38025b;\n r1 = r1 | 16;\n r6.f38025b = r1;\n r1 = r7.m33573o();\n r2 = r7.m33567i();\t Catch:{ IllegalArgumentException -> 0x0090 }\n switch(r2) {\n case 0: goto L_0x0099;\n case 1: goto L_0x0099;\n case 2: goto L_0x0099;\n case 3: goto L_0x0099;\n case 4: goto L_0x0099;\n default: goto L_0x0075;\n };\t Catch:{ IllegalArgumentException -> 0x0090 }\n L_0x0075:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r4 = 36;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r4 = \" is not a valid enum Type\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0090 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0090 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0090 }\n L_0x0090:\n r2 = move-exception;\n r7.m33562e(r1);\n r6.a(r7, r0);\n goto L_0x0000;\n L_0x0099:\n r6.f38032i = r2;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r6.f38025b;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r2 | 16;\n r6.f38025b = r2;\t Catch:{ IllegalArgumentException -> 0x0090 }\n goto L_0x0000;\n L_0x00a3:\n r0 = r7.m33563e();\n r6.f38033j = r0;\n r0 = r6.f38025b;\n r0 = r0 | 32;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x00b1:\n r0 = r7.m33563e();\n r6.f38034k = r0;\n r0 = r6.f38025b;\n r0 = r0 | 64;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x00bf:\n r0 = r6.f38035l;\n if (r0 != 0) goto L_0x00ca;\n L_0x00c3:\n r0 = new com.google.android.finsky.cv.a.cv;\n r0.<init>();\n r6.f38035l = r0;\n L_0x00ca:\n r0 = r6.f38035l;\n r7.m33552a(r0);\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.finsky.dfe.h.a.ae.b(com.google.protobuf.nano.a):com.google.wireless.android.finsky.dfe.h.a.ae\");\n }",
"private synchronized void m29549c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x0050 }\n if (r0 == 0) goto L_0x004b;\t Catch:{ all -> 0x0050 }\n L_0x0005:\n r0 = com.google.android.m4b.maps.cg.bx.m23056a();\t Catch:{ all -> 0x0050 }\n r1 = 0;\n r2 = r6.f24854d;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r3 = r6.f24853c;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r2 = r2.openFileInput(r3);\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n if (r2 == 0) goto L_0x0027;\n L_0x0014:\n r3 = new com.google.android.m4b.maps.ar.a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.de.af.f19891a;\t Catch:{ IOException -> 0x0036 }\n r3.<init>(r4);\t Catch:{ IOException -> 0x0036 }\n r6.f24851a = r3;\t Catch:{ IOException -> 0x0036 }\n r3 = r6.f24851a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.ap.C4655c.m20771a(r2);\t Catch:{ IOException -> 0x0036 }\n r3.m20819a(r4);\t Catch:{ IOException -> 0x0036 }\n goto L_0x0029;\t Catch:{ IOException -> 0x0036 }\n L_0x0027:\n r6.f24851a = r1;\t Catch:{ IOException -> 0x0036 }\n L_0x0029:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n L_0x002c:\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n goto L_0x004b;\n L_0x0030:\n r2 = move-exception;\n r5 = r2;\n r2 = r1;\n r1 = r5;\n goto L_0x0044;\n L_0x0035:\n r2 = r1;\n L_0x0036:\n r6.f24851a = r1;\t Catch:{ all -> 0x0043 }\n r1 = r6.f24854d;\t Catch:{ all -> 0x0043 }\n r3 = r6.f24853c;\t Catch:{ all -> 0x0043 }\n r1.deleteFile(r3);\t Catch:{ all -> 0x0043 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n goto L_0x002c;\t Catch:{ all -> 0x0050 }\n L_0x0043:\n r1 = move-exception;\t Catch:{ all -> 0x0050 }\n L_0x0044:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n throw r1;\t Catch:{ all -> 0x0050 }\n L_0x004b:\n r0 = 1;\t Catch:{ all -> 0x0050 }\n r6.f24852b = r0;\t Catch:{ all -> 0x0050 }\n monitor-exit(r6);\n return;\n L_0x0050:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.c():void\");\n }",
"public int c(Block parambec)\r\n/* 119: */ {\r\n/* 120:131 */ return 0;\r\n/* 121: */ }",
"void a(bu var1_1, f var2_2, Map var3_3, double var4_4, double var6_5) {\n block6 : {\n var14_6 = fj.z;\n var8_7 = M.b();\n var9_8 = var2_2.a();\n while (var9_8.f()) {\n var10_9 = var9_8.a();\n if (var14_6) break block6;\n if (!var10_9.e() || var1_1.i((y.c.d)var10_9).bendCount() > 1) ** GOTO lbl-1000\n var11_10 = var1_1.i((y.c.d)var10_9);\n var12_11 = var11_10.getSourceRealizer();\n if (var1_1.i((y.c.d)var10_9).bendCount() == 0) {\n var11_10.appendBend(var11_10.getSourcePort().a(var12_11), var11_10.getSourcePort().b(var12_11) - 20.0 - var12_11.getHeight());\n }\n this.a(var1_1, var4_4, var6_5, (y.c.d)var10_9, true, false, false, var10_9.c());\n if (var14_6) lbl-1000: // 2 sources:\n {\n var8_7.a(var10_9, true);\n var8_7.a((Object)var3_3.get(var10_9), true);\n }\n var9_8.g();\n if (!var14_6) continue;\n }\n var1_1.a(as.a, var8_7);\n }\n var9_8 = new as();\n var9_8.a(5.0);\n var9_8.b(false);\n var9_8.a(true);\n try {\n var10_9 = new bI(1);\n var10_9.a(false);\n var10_9.b(true);\n var10_9.d().a(true);\n var10_9.a(var1_1, (ah)var9_8);\n return;\n }\n finally {\n var1_1.d_(as.a);\n }\n }",
"public static boolean m19464a(java.lang.String r3, int[] r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = android.text.TextUtils.isEmpty(r3);\n r1 = 0;\n if (r0 == 0) goto L_0x0008;\n L_0x0007:\n return r1;\n L_0x0008:\n r0 = r4.length;\n r2 = 2;\n if (r0 == r2) goto L_0x000d;\n L_0x000c:\n return r1;\n L_0x000d:\n r0 = \"x\";\n r3 = r3.split(r0);\n r0 = r3.length;\n if (r0 == r2) goto L_0x0017;\n L_0x0016:\n return r1;\n L_0x0017:\n r0 = r3[r1];\t Catch:{ NumberFormatException -> 0x0029 }\n r0 = java.lang.Integer.parseInt(r0);\t Catch:{ NumberFormatException -> 0x0029 }\n r4[r1] = r0;\t Catch:{ NumberFormatException -> 0x0029 }\n r0 = 1;\t Catch:{ NumberFormatException -> 0x0029 }\n r3 = r3[r0];\t Catch:{ NumberFormatException -> 0x0029 }\n r3 = java.lang.Integer.parseInt(r3);\t Catch:{ NumberFormatException -> 0x0029 }\n r4[r0] = r3;\t Catch:{ NumberFormatException -> 0x0029 }\n return r0;\n L_0x0029:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.arp.a(java.lang.String, int[]):boolean\");\n }",
"public boolean mo3969a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f19005h;\n if (r0 != 0) goto L_0x0011;\n L_0x0004:\n r0 = r4.f19004g;\n if (r0 == 0) goto L_0x000f;\n L_0x0008:\n r0 = r4.f19004g;\n r1 = com.facebook.ads.C1700b.f5123e;\n r0.mo1313a(r4, r1);\n L_0x000f:\n r0 = 0;\n return r0;\n L_0x0011:\n r0 = new android.content.Intent;\n r1 = r4.f19002e;\n r2 = com.facebook.ads.AudienceNetworkActivity.class;\n r0.<init>(r1, r2);\n r1 = \"predefinedOrientationKey\";\n r2 = r4.m25306b();\n r0.putExtra(r1, r2);\n r1 = \"uniqueId\";\n r2 = r4.f18999b;\n r0.putExtra(r1, r2);\n r1 = \"placementId\";\n r2 = r4.f19000c;\n r0.putExtra(r1, r2);\n r1 = \"requestTime\";\n r2 = r4.f19001d;\n r0.putExtra(r1, r2);\n r1 = \"viewType\";\n r2 = r4.f19009l;\n r0.putExtra(r1, r2);\n r1 = \"useCache\";\n r2 = r4.f19010m;\n r0.putExtra(r1, r2);\n r1 = r4.f19008k;\n if (r1 == 0) goto L_0x0052;\n L_0x004a:\n r1 = \"ad_data_bundle\";\n r2 = r4.f19008k;\n r0.putExtra(r1, r2);\n goto L_0x005b;\n L_0x0052:\n r1 = r4.f19006i;\n if (r1 == 0) goto L_0x005b;\n L_0x0056:\n r1 = r4.f19006i;\n r1.m18953a(r0);\n L_0x005b:\n r1 = 268435456; // 0x10000000 float:2.5243549E-29 double:1.32624737E-315;\n r0.addFlags(r1);\n r1 = r4.f19002e;\t Catch:{ ActivityNotFoundException -> 0x0066 }\n r1.startActivity(r0);\t Catch:{ ActivityNotFoundException -> 0x0066 }\n goto L_0x0072;\n L_0x0066:\n r1 = r4.f19002e;\n r2 = com.facebook.ads.InterstitialAdActivity.class;\n r0.setClass(r1, r2);\n r1 = r4.f19002e;\n r1.startActivity(r0);\n L_0x0072:\n r0 = 1;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.k.a():boolean\");\n }",
"public void method_7081() {\r\n // $FF: Couldn't be decompiled\r\n }",
"private final com.google.wireless.android.finsky.dfe.p505c.p506a.ec m35437b(com.google.protobuf.nano.C7213a r8) {\n /*\n r7 = this;\n r1 = 0;\n L_0x0001:\n r0 = r8.m33550a();\n switch(r0) {\n case 0: goto L_0x000e;\n case 8: goto L_0x000f;\n case 16: goto L_0x004c;\n case 26: goto L_0x006f;\n case 34: goto L_0x007c;\n default: goto L_0x0008;\n };\n L_0x0008:\n r0 = super.a(r8, r0);\n if (r0 != 0) goto L_0x0001;\n L_0x000e:\n return r7;\n L_0x000f:\n r2 = r7.f37533a;\n r2 = r2 | 1;\n r7.f37533a = r2;\n r2 = r8.m33573o();\n r3 = r8.m33567i();\t Catch:{ IllegalArgumentException -> 0x003b }\n switch(r3) {\n case 0: goto L_0x0043;\n case 1: goto L_0x0043;\n default: goto L_0x0020;\n };\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x0020:\n r4 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x003b }\n r5 = 42;\n r6 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x003b }\n r6.<init>(r5);\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r6.append(r3);\t Catch:{ IllegalArgumentException -> 0x003b }\n r5 = \" is not a valid enum ResultCode\";\n r3 = r3.append(r5);\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r3.toString();\t Catch:{ IllegalArgumentException -> 0x003b }\n r4.<init>(r3);\t Catch:{ IllegalArgumentException -> 0x003b }\n throw r4;\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x003b:\n r3 = move-exception;\n r8.m33562e(r2);\n r7.a(r8, r0);\n goto L_0x0001;\n L_0x0043:\n r7.f37534b = r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r7.f37533a;\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r3 | 1;\n r7.f37533a = r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n goto L_0x0001;\n L_0x004c:\n r2 = r7.f37533a;\n r2 = r2 | 2;\n r7.f37533a = r2;\n r2 = r8.m33573o();\n r3 = r8.m33560d();\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = com.google.wireless.android.finsky.dfe.p505c.p506a.dp.m35391a(r3);\t Catch:{ IllegalArgumentException -> 0x0067 }\n r7.f37535c = r3;\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = r7.f37533a;\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = r3 | 2;\n r7.f37533a = r3;\t Catch:{ IllegalArgumentException -> 0x0067 }\n goto L_0x0001;\n L_0x0067:\n r3 = move-exception;\n r8.m33562e(r2);\n r7.a(r8, r0);\n goto L_0x0001;\n L_0x006f:\n r0 = r8.m33565g();\n r7.f37536d = r0;\n r0 = r7.f37533a;\n r0 = r0 | 4;\n r7.f37533a = r0;\n goto L_0x0001;\n L_0x007c:\n r0 = 34;\n r2 = com.google.protobuf.nano.C7222l.m33624a(r8, r0);\n r0 = r7.f37537e;\n if (r0 != 0) goto L_0x00a8;\n L_0x0086:\n r0 = r1;\n L_0x0087:\n r2 = r2 + r0;\n r2 = new com.google.wireless.android.finsky.dfe.p505c.p506a.ed[r2];\n if (r0 == 0) goto L_0x0091;\n L_0x008c:\n r3 = r7.f37537e;\n java.lang.System.arraycopy(r3, r1, r2, r1, r0);\n L_0x0091:\n r3 = r2.length;\n r3 = r3 + -1;\n if (r0 >= r3) goto L_0x00ac;\n L_0x0096:\n r3 = new com.google.wireless.android.finsky.dfe.c.a.ed;\n r3.<init>();\n r2[r0] = r3;\n r3 = r2[r0];\n r8.m33552a(r3);\n r8.m33550a();\n r0 = r0 + 1;\n goto L_0x0091;\n L_0x00a8:\n r0 = r7.f37537e;\n r0 = r0.length;\n goto L_0x0087;\n L_0x00ac:\n r3 = new com.google.wireless.android.finsky.dfe.c.a.ed;\n r3.<init>();\n r2[r0] = r3;\n r0 = r2[r0];\n r8.m33552a(r0);\n r7.f37537e = r2;\n goto L_0x0001;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.finsky.dfe.c.a.ec.b(com.google.protobuf.nano.a):com.google.wireless.android.finsky.dfe.c.a.ec\");\n }",
"public void method_2139() {\r\n // $FF: Couldn't be decompiled\r\n }",
"private final com.google.android.finsky.verifier.p259a.p260a.C4709m m21920b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 10: goto L_0x000e;\n case 16: goto L_0x0015;\n case 26: goto L_0x0046;\n case 34: goto L_0x0053;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r0 = r7.f();\n r6.f24221c = r0;\n goto L_0x0000;\n L_0x0015:\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x003b }\n switch(r2) {\n case 0: goto L_0x0043;\n case 1: goto L_0x0020;\n case 2: goto L_0x0043;\n default: goto L_0x0020;\n };\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x0020:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x003b }\n r4 = 44;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x003b }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x003b }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x003b }\n r4 = \" is not a valid enum ResourceType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x003b }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x003b }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x003b }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x003b:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x0043:\n r6.f24222d = r2;\t Catch:{ IllegalArgumentException -> 0x003b }\n goto L_0x0000;\n L_0x0046:\n r0 = r7.g();\n r6.f24223e = r0;\n r0 = r6.f24220b;\n r0 = r0 | 1;\n r6.f24220b = r0;\n goto L_0x0000;\n L_0x0053:\n r0 = r7.f();\n r6.f24224f = r0;\n r0 = r6.f24220b;\n r0 = r0 | 2;\n r6.f24220b = r0;\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.finsky.verifier.a.a.m.b(com.google.protobuf.nano.a):com.google.android.finsky.verifier.a.a.m\");\n }",
"static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void method_1148() {\r\n // $FF: Couldn't be decompiled\r\n }",
"private boolean m2248a(java.lang.String r3, com.onesignal.La.C0596a r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = 0;\n r1 = 1;\n java.lang.Float.parseFloat(r3);\t Catch:{ Throwable -> 0x0007 }\n r3 = 1;\n goto L_0x0008;\n L_0x0007:\n r3 = 0;\n L_0x0008:\n if (r3 != 0) goto L_0x0017;\n L_0x000a:\n r3 = com.onesignal.sa.C0650i.ERROR;\n r1 = \"Missing Google Project number!\\nPlease enter a Google Project number / Sender ID on under App Settings > Android > Configuration on the OneSignal dashboard.\";\n com.onesignal.sa.m1656a(r3, r1);\n r3 = 0;\n r1 = -6;\n r4.mo1392a(r3, r1);\n return r0;\n L_0x0017:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onesignal.Pa.a(java.lang.String, com.onesignal.La$a):boolean\");\n }",
"static void method_6338() {\r\n // $FF: Couldn't be decompiled\r\n }",
"public final void mo56977b() {\n /*\n r2 = this;\n com.ss.android.ugc.aweme.common.e r0 = r2.f67572c\n com.ss.android.ugc.aweme.feed.ui.masklayer2.a.i r0 = (com.p280ss.android.ugc.aweme.feed.p1238ui.masklayer2.p1239a.C28951i) r0\n if (r0 == 0) goto L_0x001a\n com.ss.android.ugc.aweme.common.a r1 = r2.f67571b\n com.ss.android.ugc.aweme.feed.ui.masklayer2.a.d r1 = (com.p280ss.android.ugc.aweme.feed.p1238ui.masklayer2.p1239a.C28944d) r1\n if (r1 == 0) goto L_0x0014\n java.lang.Object r1 = r1.getData()\n java.lang.String r1 = (java.lang.String) r1\n if (r1 != 0) goto L_0x0016\n L_0x0014:\n java.lang.String r1 = \"\"\n L_0x0016:\n r0.mo74240a(r1)\n return\n L_0x001a:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.p280ss.android.ugc.aweme.feed.p1238ui.masklayer2.p1239a.C28946e.mo56977b():void\");\n }",
"protected void method_2141() {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void method_2046() {\r\n // $FF: Couldn't be decompiled\r\n }",
"private void m1654a(p000a.p001a.p002a.p003a.p022i.p024b.C0112x r7, p000a.p001a.p002a.p003a.p034n.C0157e r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/293907205.run(Unknown Source)\n*/\n /*\n r6 = this;\n r0 = r7.m322b();\n r7 = r7.m321a();\n r1 = 0;\n L_0x0009:\n r2 = \"http.request\";\n r8.mo160a(r2, r7);\n r1 = r1 + 1;\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r2 = r2.mo1932c();\t Catch:{ IOException -> 0x002f }\n if (r2 != 0) goto L_0x0020;\t Catch:{ IOException -> 0x002f }\n L_0x0018:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x002f }\n r2.mo2023a(r0, r8, r3);\t Catch:{ IOException -> 0x002f }\n goto L_0x002b;\t Catch:{ IOException -> 0x002f }\n L_0x0020:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x002f }\n r3 = p000a.p001a.p002a.p003a.p032l.C0150c.m428a(r3);\t Catch:{ IOException -> 0x002f }\n r2.mo1931b(r3);\t Catch:{ IOException -> 0x002f }\n L_0x002b:\n r6.m1660a(r0, r8);\t Catch:{ IOException -> 0x002f }\n return;\n L_0x002f:\n r2 = move-exception;\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0035 }\n r3.close();\t Catch:{ IOException -> 0x0035 }\n L_0x0035:\n r3 = r6.f1520h;\n r3 = r3.retryRequest(r2, r1, r8);\n if (r3 == 0) goto L_0x00a0;\n L_0x003d:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x0009;\n L_0x0045:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"I/O exception (\";\n r4.append(r5);\n r5 = r2.getClass();\n r5 = r5.getName();\n r4.append(r5);\n r5 = \") caught when connecting to \";\n r4.append(r5);\n r4.append(r0);\n r5 = \": \";\n r4.append(r5);\n r5 = r2.getMessage();\n r4.append(r5);\n r4 = r4.toString();\n r3.m269d(r4);\n r3 = r6.f1513a;\n r3 = r3.m262a();\n if (r3 == 0) goto L_0x0088;\n L_0x007f:\n r3 = r6.f1513a;\n r4 = r2.getMessage();\n r3.m261a(r4, r2);\n L_0x0088:\n r2 = r6.f1513a;\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"Retrying connect to \";\n r3.append(r4);\n r3.append(r0);\n r3 = r3.toString();\n r2.m269d(r3);\n goto L_0x0009;\n L_0x00a0:\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.i.b.p.a(a.a.a.a.i.b.x, a.a.a.a.n.e):void\");\n }",
"@org.jetbrains.annotations.NotNull\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public static /* synthetic */ com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection copy$default(com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection r4, com.bitcoin.mwallet.core.models.slp.Slp r5, java.util.List<kotlin.ULong> r6, com.bitcoin.bitcoink.p008tx.Satoshis r7, com.bitcoin.bitcoink.p008tx.Satoshis r8, java.util.List<com.bitcoin.mwallet.core.models.p009tx.utxo.Utxo> r9, com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection.Error r10, int r11, java.lang.Object r12) {\n /*\n r12 = r11 & 1\n if (r12 == 0) goto L_0x0006\n com.bitcoin.mwallet.core.models.slp.Slp r5 = r4.token\n L_0x0006:\n r12 = r11 & 2\n if (r12 == 0) goto L_0x000c\n java.util.List<kotlin.ULong> r6 = r4.quantities\n L_0x000c:\n r12 = r6\n r6 = r11 & 4\n if (r6 == 0) goto L_0x0013\n com.bitcoin.bitcoink.tx.Satoshis r7 = r4.fee\n L_0x0013:\n r0 = r7\n r6 = r11 & 8\n if (r6 == 0) goto L_0x001a\n com.bitcoin.bitcoink.tx.Satoshis r8 = r4.change\n L_0x001a:\n r1 = r8\n r6 = r11 & 16\n if (r6 == 0) goto L_0x0021\n java.util.List<com.bitcoin.mwallet.core.models.tx.utxo.Utxo> r9 = r4.utxos\n L_0x0021:\n r2 = r9\n r6 = r11 & 32\n if (r6 == 0) goto L_0x0028\n com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection$Error r10 = r4.error\n L_0x0028:\n r3 = r10\n r6 = r4\n r7 = r5\n r8 = r12\n r9 = r0\n r10 = r1\n r11 = r2\n r12 = r3\n com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection r4 = r6.copy(r7, r8, r9, r10, r11, r12)\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection.copy$default(com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection, com.bitcoin.mwallet.core.models.slp.Slp, java.util.List, com.bitcoin.bitcoink.tx.Satoshis, com.bitcoin.bitcoink.tx.Satoshis, java.util.List, com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection$Error, int, java.lang.Object):com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection\");\n }",
"static void method_28() {\r\n // $FF: Couldn't be decompiled\r\n }",
"@Override\n public void a() {\n block25 : {\n block24 : {\n block22 : {\n var17_1 = a.a;\n var3_2 = this.c.i();\n var4_3 = var3_2.a().a();\n this.d = new w();\n this.e = new y.f.h.D(this.d);\n this.h = M.a(new Object[this.b.e()]);\n this.i = M.b(new Object[this.b.g()]);\n var5_4 = this.b.o();\n while (var5_4.f()) {\n var6_5 = var5_4.e();\n if (var17_1 == 0) {\n if (var6_5.c() <= this.l) {\n var7_6 = this.d.d();\n this.h.a(var6_5, var7_6);\n }\n var5_4.g();\n if (var17_1 == 0) continue;\n }\n break block22;\n }\n this.j = M.b(new Object[this.b.g()]);\n this.k = M.b(new Object[this.b.g()]);\n this.a(this.j, this.k);\n }\n var2_8 = this.b.o();\n block3 : do {\n v0 = var2_8.f();\n block4 : while (v0 != 0) {\n var5_4 = var2_8.e();\n if (var5_4.c() != 0) {\n var1_9 = var5_4.l();\n var6_5 = var1_9.a();\n var7_6 = (y.c.q)this.j.b(var6_5);\n var1_9.b();\n while (var1_9.f()) {\n var8_10 = var1_9.a();\n var9_11 = (y.c.q)this.j.b(var8_10);\n var10_12 = (y.c.q)this.k.b(var8_10);\n var11_13 = this.a((y.c.q)var7_6, (y.c.q)var9_11);\n v0 = var5_4.c();\n if (var17_1 != 0) continue block4;\n if (v0 > this.l) {\n this.h.a(var5_4, var11_13);\n }\n var7_6 = (y.c.q)this.j.b(var8_10);\n var12_14 /* !! */ = this.d.a((y.c.q)var9_11, (y.c.q)var10_12);\n this.i.a(var8_10, var12_14 /* !! */ );\n if (var8_10 == var6_5) break;\n var1_9.b();\n if (var17_1 == 0) continue;\n }\n }\n var2_8.g();\n if (var17_1 == 0) continue block3;\n }\n break block3;\n break;\n } while (true);\n var1_9 = this.b.p();\n while (var1_9.f()) {\n var5_4 = var1_9.a();\n v1 = this;\n if (var17_1 == 0) {\n block23 : {\n if (v1.c.n((y.c.d)var5_4)) {\n this.e.m((y.c.d)this.i.b(var5_4));\n if (var17_1 == 0) break block23;\n }\n this.e.e((y.c.d)this.i.b(var5_4));\n }\n var6_5 = this.c.h((y.c.d)var5_4);\n this.e.b((y.c.d)this.i.b(var5_4), (y.c.d)this.i.b(var6_5));\n var1_9.g();\n if (var17_1 == 0) continue;\n }\n break block24;\n }\n v1 = this;\n }\n var5_4 = v1.e.m();\n this.d.a(\"y.layout.orthogonal.general.NodeSplitter.NODE_FACES\", (y.c.c)var5_4);\n var6_5 = this.e.m();\n this.d.a(\"y.layout.orthogonal.ring.FixedSizeNodeSplitter#NODE_SIZE\", (y.c.c)var6_5);\n this.m = this.e.g().t();\n this.d.a(\"y.layout.orthogonal.ring.FixedSizeNodeSplitter#NODE_SIZE\", new c((r)var6_5, this.m));\n try {\n this.e.l();\n var7_6 = (y.c.d)this.i.b(var4_3);\n this.e.b(this.e.i((y.c.d)var7_6));\n var8_10 = this.e.h();\n while (var8_10.f()) {\n var5_4.a(var8_10.a(), false);\n var8_10.g();\n if (var17_1 == 0) {\n if (var17_1 == 0) continue;\n }\n break block25;\n }\n var8_10 = this.b.o();\n while (var8_10.f()) {\n var9_11 = var8_10.e();\n if (var17_1 != 0) break;\n if (var9_11.c() <= this.l) ** GOTO lbl-1000\n var10_12 = (y.c.d)this.h.b(var9_11);\n var11_13 = this.e.i((y.c.d)var10_12);\n this.h.a(var9_11, var11_13);\n var5_4.a((p)var11_13, true);\n var12_14 /* !! */ = (y.c.d)this.b.p((y.c.q)var9_11);\n var14_15 = this.b.q((y.c.q)var9_11);\n var16_16 = new Dimension((int)var12_14 /* !! */ , (int)var14_15);\n var6_5.a((p)var11_13, var16_16);\n if (var17_1 != 0) lbl-1000: // 2 sources:\n {\n var10_12 = this.b.r((y.c.q)var9_11);\n if (var10_12.a > 0.0 || var10_12.b > 0.0) {\n var11_13 = (y.c.q)this.h.b(var9_11);\n this.m.a(var11_13, this.b.r((y.c.q)var9_11));\n }\n }\n var8_10.g();\n if (var17_1 == 0) continue;\n break;\n }\n }\n catch (Exception var7_7) {\n System.err.println(\"Internal Error in Face calculation !\");\n var7_7.printStackTrace(System.err);\n }\n }\n var7_6 = this.e.h();\n block9 : do {\n if (var7_6.f() == false) return;\n var8_10 = (p)var7_6.d();\n if (var5_4.d(var8_10)) {\n var9_11 = var8_10.a();\n while (var9_11.f()) {\n var10_12 = var9_11.a();\n this.e.m(this.e.h((y.c.d)var10_12));\n this.e.e((y.c.d)var10_12);\n var9_11.g();\n if (var17_1 != 0) continue block9;\n if (var17_1 == 0) continue;\n }\n }\n var7_6.g();\n } while (var17_1 == 0);\n }",
"private final void zzR(Object var1_1, zzha var2_2) {\n block94: {\n var3_3 = this;\n var4_4 = var1_1;\n var5_5 = var2_2;\n var6_6 = this.zzh;\n if (var6_6 != 0) break block94;\n var7_7 = this.zzc;\n var6_6 = ((int[])var7_7).length;\n var8_8 = zzja.zzb;\n var9_9 = 1048575;\n var10_10 = 1.469367E-39f;\n var11_11 = var9_9;\n var13_13 = 0;\n for (var12_12 = 0; var12_12 < var6_6; var12_12 += 3) {\n block95: {\n var14_14 = var3_3.zzA(var12_12);\n var15_15 = var3_3.zzc;\n var16_16 = var15_15[var12_12];\n var17_17 = zzja.zzC(var14_14);\n var18_18 = 17;\n var19_19 = 1;\n if (var17_17 <= var18_18) {\n var20_20 = var3_3.zzc;\n var21_21 = var12_12 + 2;\n var18_18 = var20_20[var21_21];\n if ((var21_21 = var18_18 & var9_9) != var11_11) {\n var22_22 = var21_21;\n var13_13 = var8_8.getInt(var4_4, var22_22);\n var11_11 = var21_21;\n }\n var18_18 >>>= 20;\n var18_18 = var19_19 << var18_18;\n } else {\n var18_18 = 0;\n var20_20 = null;\n }\n var24_23 = var14_14 &= var9_9;\n switch (var17_17) lbl-1000:\n // 56 sources\n\n {\n default: {\n var17_17 = 0;\n break block95;\n }\n case 68: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzs(var16_16, var26_24, var27_25);\n ** GOTO lbl-1000\n }\n case 67: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzq(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 66: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzp(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 65: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzd(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 64: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzb(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 63: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzg(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 62: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzo(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 61: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = (zzgs)var8_8.getObject(var4_4, var24_23);\n var5_5.zzn(var16_16, (zzgs)var26_24);\n ** GOTO lbl-1000\n }\n case 60: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzr(var16_16, var26_24, var27_25);\n ** GOTO lbl-1000\n }\n case 59: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = var8_8.getObject(var4_4, var24_23);\n zzja.zzT(var16_16, var26_24, var5_5);\n ** GOTO lbl-1000\n }\n case 58: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = (int)zzja.zzH(var4_4, var24_23);\n var5_5.zzl(var16_16, (boolean)var9_9);\n ** GOTO lbl-1000\n }\n case 57: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzk(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 56: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzj(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 55: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzi(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 54: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzh(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 53: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzc(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 52: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var10_10 = zzja.zzE(var4_4, var24_23);\n var5_5.zze(var16_16, var10_10);\n ** GOTO lbl-1000\n }\n case 51: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var28_26 = zzja.zzD(var4_4, var24_23);\n var5_5.zzf(var16_16, var28_26);\n ** GOTO lbl-1000\n }\n case 50: {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var3_3.zzS(var5_5, var16_16, var26_24, var12_12);\n ** GOTO lbl-1000\n }\n case 49: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n zzjk.zzaa(var14_14, (List)var26_24, var5_5, var27_25);\n ** GOTO lbl-1000\n }\n case 48: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzN(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 47: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzS(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 46: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzP(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 45: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzU(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 44: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzV(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 43: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzR(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 42: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzW(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 41: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzT(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 40: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzO(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 39: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzQ(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 38: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzM(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 37: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzL(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 36: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzK(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 35: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzJ(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 34: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var16_16 = 0;\n var15_15 = null;\n zzjk.zzN(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 33: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzS(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 32: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzP(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 31: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzU(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 30: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzV(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 29: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzR(var14_14, (List)var26_24, var5_5, false);\nlbl290:\n // 6 sources\n\n var17_17 = 0;\n break block95;\n }\n case 28: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzY(var14_14, (List)var26_24, var5_5);\n ** GOTO lbl-1000\n }\n case 27: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n zzjk.zzZ(var14_14, (List)var26_24, var5_5, var27_25);\n ** GOTO lbl-1000\n }\n case 26: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzX(var14_14, (List)var26_24, var5_5);\n ** GOTO lbl-1000\n }\n case 25: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var17_17 = 0;\n zzjk.zzW(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 24: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzT(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 23: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzO(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 22: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzQ(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 21: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzM(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 20: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzL(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 19: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzK(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 18: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzJ(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 17: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzs(var16_16, var26_24, var27_25);\n }\n break block95;\n }\n case 16: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzq(var16_16, var24_23);\n }\n break block95;\n }\n case 15: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzp(var16_16, var9_9);\n }\n break block95;\n }\n case 14: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzd(var16_16, var24_23);\n }\n break block95;\n }\n case 13: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzb(var16_16, var9_9);\n }\n break block95;\n }\n case 12: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzg(var16_16, var9_9);\n }\n break block95;\n }\n case 11: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzo(var16_16, var9_9);\n }\n break block95;\n }\n case 10: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = (zzgs)var8_8.getObject(var4_4, var24_23);\n var5_5.zzn(var16_16, (zzgs)var26_24);\n }\n break block95;\n }\n case 9: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzr(var16_16, var26_24, var27_25);\n }\n break block95;\n }\n case 8: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n zzja.zzT(var16_16, var26_24, var5_5);\n }\n break block95;\n }\n case 7: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = (int)zzkh.zzh(var4_4, var24_23);\n var5_5.zzl(var16_16, (boolean)var9_9);\n }\n break block95;\n }\n case 6: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzk(var16_16, var9_9);\n }\n break block95;\n }\n case 5: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzj(var16_16, var24_23);\n }\n break block95;\n }\n case 4: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzi(var16_16, var9_9);\n }\n break block95;\n }\n case 3: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzh(var16_16, var24_23);\n }\n break block95;\n }\n case 2: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzc(var16_16, var24_23);\n }\n break block95;\n }\n case 1: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var10_10 = zzkh.zzj(var4_4, var24_23);\n var5_5.zze(var16_16, var10_10);\n }\n break block95;\n }\n case 0: \n }\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var28_26 = zzkh.zzl(var4_4, var24_23);\n var5_5.zzf(var16_16, var28_26);\n }\n }\n var9_9 = 1048575;\n var10_10 = 1.469367E-39f;\n }\n var7_7 = var3_3.zzn;\n var4_4 = var7_7.zzd(var4_4);\n var7_7.zzi(var4_4, var5_5);\n return;\n }\n this.zzo.zzb(var1_1);\n throw null;\n }",
"protected final /* synthetic */ java.lang.Object run() {\n /*\n r4 = this;\n r0 = 1;\n r1 = 0;\n r2 = com.tencent.mm.plugin.appbrand.b.c.this;\n r2 = r2.chu();\n r3 = com.tencent.mm.plugin.appbrand.b.c.this;\n r3 = r3.iKh;\n if (r2 != r3) goto L_0x0022;\n L_0x000e:\n r2 = com.tencent.mm.plugin.appbrand.b.c.this;\n r2 = r2.iKh;\n r2 = r2.iKy;\n r2 = r2 & 1;\n if (r2 <= 0) goto L_0x0020;\n L_0x0018:\n r2 = r0;\n L_0x0019:\n if (r2 == 0) goto L_0x0022;\n L_0x001b:\n r0 = java.lang.Boolean.valueOf(r0);\n return r0;\n L_0x0020:\n r2 = r1;\n goto L_0x0019;\n L_0x0022:\n r0 = r1;\n goto L_0x001b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.appbrand.b.c.5.run():java.lang.Object\");\n }",
"public void method_2113() {\r\n // $FF: Couldn't be decompiled\r\n }",
"protected int b(i var1_1, y.c.q var2_2, y.c.q var3_3, h var4_4, h var5_5, int var6_6, ArrayList var7_7, ArrayList var8_8, h var9_9, h var10_10) {\n block26 : {\n block25 : {\n var24_11 = o.p;\n this.c = var6_6;\n this.d = var2_2;\n this.e = var3_3;\n this.n = var1_1.h();\n this.o = var1_1.f();\n this.h = var1_1;\n this.i = new int[this.n];\n this.j = new int[this.n];\n this.k = new int[this.o];\n this.l = new int[this.o];\n this.m = new int[this.n];\n this.b = new Object[this.o];\n this.t = new int[this.n];\n this.r = new d[this.n];\n this.s = new d[this.n];\n this.f = var4_4;\n this.a = new a[this.n];\n this.q = new ArrayList<E>(var1_1.f());\n this.p = new I(this.o);\n var11_12 = 0;\n block0 : do {\n v0 = var11_12;\n block1 : while (v0 < var7_7.size()) {\n var12_15 = (a)var7_7.get(var11_12);\n v1 /* !! */ = var12_15.b();\n if (var24_11) break block25;\n var13_17 = v1 /* !! */ ;\n while (var13_17.f()) {\n var14_20 = var13_17.a();\n var15_23 = var14_20.b();\n this.a[var14_20.b()] = var12_15;\n this.i[var15_23] = var12_15.a();\n v0 = this.i[var15_23];\n if (var24_11) continue block1;\n if (v0 < 0) {\n throw new B(\"found negative capacity\");\n }\n var13_17.g();\n if (!var24_11) continue;\n }\n ++var11_12;\n if (!var24_11) continue block0;\n }\n break block0;\n break;\n } while (true);\n v1 /* !! */ = var11_13 = this.h.p();\n }\n while (var11_13.f()) {\n var12_15 = var11_13.a();\n this.r[var12_15.b()] = (d)var10_10.b(var12_15);\n this.s[var12_15.b()] = (d)var9_9.b(var12_15);\n var11_13.g();\n if (!var24_11) {\n if (!var24_11) continue;\n }\n break block26;\n }\n this.g = new u[this.o];\n }\n var11_13 = var1_1.o();\n while (var11_13.f()) {\n var12_15 = var11_13.e();\n v2 = this;\n if (!var24_11) {\n v2.g[var12_15.d()] = new u((y.c.q)var12_15, var12_15.d());\n var11_13.g();\n if (!var24_11) continue;\n }\n ** GOTO lbl65\n }\n block5 : do {\n v2 = this;\nlbl65: // 2 sources:\n var11_14 = var13_18 = v2.a();\n var12_16 = 0;\n var14_21 = 0;\n block6 : do {\n v3 = var14_21;\n v4 = var8_8.size();\n block7 : while (v3 < v4) {\n v5 = var8_8.get(var14_21);\n do {\n var15_24 = (ArrayList)v5;\n var16_26 = false;\n var17_27 = 0;\n var18_28 = 0;\n v6 = 0;\n if (!var24_11) {\n for (var19_29 = v1574606; var19_29 < var15_24.size(); ++var19_29) {\n block28 : {\n block27 : {\n var20_30 = (a)var15_24.get(var19_29);\n v3 = this.m[var20_30.b[0].b()];\n v4 = 1;\n if (var24_11) continue block7;\n if (v3 != v4 || this.m[var20_30.b[1].b()] != 1) continue;\n ++var12_16;\n var21_31 = this.s[var20_30.b[0].b()];\n var22_32 = 0;\n while (this.m[var21_31.b()] == 1) {\n var22_32 += var4_4.a(this.a[var21_31.b()].b(var21_31));\n var21_31 = this.s[var21_31.b()];\n if (!var24_11) {\n if (!var24_11) continue;\n }\n break block27;\n }\n var22_32 += var4_4.a(this.a[var21_31.b()].b(var21_31));\n }\n var23_33 = 0;\n var21_31 = this.s[var20_30.b[1].b()];\n while (this.m[var21_31.b()] == 1) {\n var23_33 += var4_4.a(this.a[var21_31.b()].b(var21_31));\n var21_31 = this.s[var21_31.b()];\n if (!var24_11) {\n if (!var24_11) continue;\n }\n break block28;\n }\n var23_33 += var4_4.a(this.a[var21_31.b()].b(var21_31));\n }\n if (var23_33 > 400 || var22_32 > 400) {\n block29 : {\n if (var23_33 < var22_32) {\n this.a(var20_30);\n if (!var24_11) break block29;\n }\n this.b(var20_30);\n }\n var16_26 = true;\n }\n var18_28 += var23_33;\n var17_27 += var22_32;\n if (!var24_11) continue;\n }\n if (!var16_26) {\n for (var19_29 = 0; var19_29 < var15_24.size(); ++var19_29) {\n var20_30 = (a)var15_24.get(var19_29);\n v3 = this.m[var20_30.b[0].b()];\n v4 = 1;\n if (var24_11) continue block7;\n if (v3 != v4 || this.m[var20_30.b[1].b()] != 1) continue;\n if (var18_28 < var17_27) {\n this.a(var20_30);\n if (!var24_11) continue;\n }\n this.b(var20_30);\n if (!var24_11) continue;\n }\n }\n ++var14_21;\n if (!var24_11) continue block6;\n }\n ** GOTO lbl133\n v6 = var12_16;\nlbl133: // 2 sources:\n if (v6 > 0) continue block5;\n v5 = this.h.p();\n } while (var24_11);\n }\n break;\n } while (true);\n break;\n } while (true);\n var13_19 = v5;\n while (var13_19.f()) {\n var14_22 = var13_19.a();\n v7 = var14_22.b();\n if (var24_11 != false) return v7;\n var15_25 = v7;\n var5_5.a((Object)var14_22, this.m[var15_25]);\n var13_19.g();\n if (!var24_11) continue;\n }\n v7 = var11_14;\n return v7;\n }",
"static void method_2226() {\r\n // $FF: Couldn't be decompiled\r\n }",
"private static void m13385d() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = java.lang.System.currentTimeMillis();\t Catch:{ Exception -> 0x0024 }\n r2 = java.util.concurrent.TimeUnit.DAYS;\t Catch:{ Exception -> 0x0024 }\n r3 = 1;\t Catch:{ Exception -> 0x0024 }\n r2 = r2.toMillis(r3);\t Catch:{ Exception -> 0x0024 }\n r4 = 0;\t Catch:{ Exception -> 0x0024 }\n r4 = r0 - r2;\t Catch:{ Exception -> 0x0024 }\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x0024 }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x0024 }\n r2 = \"timestamp < ?\";\t Catch:{ Exception -> 0x0024 }\n r3 = 1;\t Catch:{ Exception -> 0x0024 }\n r3 = new java.lang.String[r3];\t Catch:{ Exception -> 0x0024 }\n r6 = 0;\t Catch:{ Exception -> 0x0024 }\n r4 = java.lang.String.valueOf(r4);\t Catch:{ Exception -> 0x0024 }\n r3[r6] = r4;\t Catch:{ Exception -> 0x0024 }\n r0.delete(r1, r2, r3);\t Catch:{ Exception -> 0x0024 }\n L_0x0024:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.d():void\");\n }",
"TACBlock optimise(TACBlock code);",
"public void state(final JFormatter f) {\n // This method could not be decompiled.\n // \n // Could not show original bytecode, likely due to the same error.\n // \n // The error that occurred was:\n // \n // com.strobel.assembler.metadata.MethodBodyParseException: An error occurred while parsing the bytecode of method 'com/sun/codemodel/JTryBlock.state:(Lcom/sun/codemodel/JFormatter;)V'.\n // at com.strobel.assembler.metadata.MethodReader.readBody(MethodReader.java:65)\n // at com.strobel.assembler.metadata.MethodDefinition.tryLoadBody(MethodDefinition.java:722)\n // at com.strobel.assembler.metadata.MethodDefinition.getBody(MethodDefinition.java:83)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:202)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:757)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:655)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:532)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:499)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:141)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:130)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:105)\n // at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)\n // at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)\n // at com.strobel.decompiler.DecompilerDriver.decompileType(DecompilerDriver.java:317)\n // at com.strobel.decompiler.DecompilerDriver.decompileJar(DecompilerDriver.java:238)\n // at com.strobel.decompiler.DecompilerDriver.main(DecompilerDriver.java:123)\n // Caused by: java.lang.ArrayIndexOutOfBoundsException: -1\n // at java.util.ArrayList.elementData(Unknown Source)\n // at java.util.ArrayList.get(Unknown Source)\n // at com.strobel.assembler.ir.ConstantPool.get(ConstantPool.java:80)\n // at com.strobel.assembler.metadata.ClassFileReader$Scope.lookupConstant(ClassFileReader.java:1313)\n // at com.strobel.assembler.metadata.MethodReader.readBodyCore(MethodReader.java:286)\n // at com.strobel.assembler.metadata.MethodReader.readBody(MethodReader.java:62)\n // ... 16 more\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }",
"static void method_7086() {\r\n // $FF: Couldn't be decompiled\r\n }",
"public final synchronized com.google.android.m4b.maps.bu.C4910a m21843a(java.lang.String r10) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r9 = this;\n monitor-enter(r9);\n r0 = r9.f17909e;\t Catch:{ all -> 0x0056 }\n r1 = 0;\n if (r0 != 0) goto L_0x0008;\n L_0x0006:\n monitor-exit(r9);\n return r1;\n L_0x0008:\n r0 = r9.f17907c;\t Catch:{ all -> 0x0056 }\n r2 = com.google.android.m4b.maps.az.C4733b.m21060a(r10);\t Catch:{ all -> 0x0056 }\n r0 = r0.m21933a(r2, r1);\t Catch:{ all -> 0x0056 }\n if (r0 == 0) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0014:\n r2 = r0.length;\t Catch:{ all -> 0x0056 }\n r3 = 9;\t Catch:{ all -> 0x0056 }\n if (r2 <= r3) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0019:\n r2 = 0;\t Catch:{ all -> 0x0056 }\n r2 = r0[r2];\t Catch:{ all -> 0x0056 }\n r4 = 1;\t Catch:{ all -> 0x0056 }\n if (r2 == r4) goto L_0x0020;\t Catch:{ all -> 0x0056 }\n L_0x001f:\n goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0020:\n r5 = com.google.android.m4b.maps.bs.C4891e.m21914c(r0, r4);\t Catch:{ all -> 0x0056 }\n r2 = new com.google.android.m4b.maps.ar.a;\t Catch:{ all -> 0x0056 }\n r7 = com.google.android.m4b.maps.de.C5350x.f20104b;\t Catch:{ all -> 0x0056 }\n r2.<init>(r7);\t Catch:{ all -> 0x0056 }\n r7 = new java.io.ByteArrayInputStream;\t Catch:{ IOException -> 0x0052 }\n r8 = r0.length;\t Catch:{ IOException -> 0x0052 }\n r8 = r8 - r3;\t Catch:{ IOException -> 0x0052 }\n r7.<init>(r0, r3, r8);\t Catch:{ IOException -> 0x0052 }\n r2.m20818a(r7);\t Catch:{ IOException -> 0x0052 }\n r0 = 2;\n r0 = r2.m20843h(r0);\t Catch:{ all -> 0x0056 }\n r10 = r10.equals(r0);\t Catch:{ all -> 0x0056 }\n if (r10 != 0) goto L_0x0042;\n L_0x0040:\n monitor-exit(r9);\n return r1;\n L_0x0042:\n r10 = new com.google.android.m4b.maps.bu.a;\t Catch:{ all -> 0x0056 }\n r10.<init>();\t Catch:{ all -> 0x0056 }\n r10.m22018a(r4);\t Catch:{ all -> 0x0056 }\n r10.m22020a(r2);\t Catch:{ all -> 0x0056 }\n r10.m22016a(r5);\t Catch:{ all -> 0x0056 }\n monitor-exit(r9);\n return r10;\n L_0x0052:\n monitor-exit(r9);\n return r1;\n L_0x0054:\n monitor-exit(r9);\n return r1;\n L_0x0056:\n r10 = move-exception;\n monitor-exit(r9);\n throw r10;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.bs.b.a(java.lang.String):com.google.android.m4b.maps.bu.a\");\n }",
"public void method_2250() {\r\n // $FF: Couldn't be decompiled\r\n }",
"@Override // kotlinx.coroutines.flow.FlowCollector\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public java.lang.Object emit(java.lang.Object r9, kotlin.coroutines.Continuation r10) {\n /*\n r8 = this;\n boolean r0 = r10 instanceof kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.AnonymousClass1\n if (r0 == 0) goto L_0x0013\n r0 = r10\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1 r0 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.AnonymousClass1) r0\n int r1 = r0.label\n r2 = -2147483648(0xffffffff80000000, float:-0.0)\n r3 = r1 & r2\n if (r3 == 0) goto L_0x0013\n int r1 = r1 - r2\n r0.label = r1\n goto L_0x0018\n L_0x0013:\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1 r0 = new kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1\n r0.<init>(r10)\n L_0x0018:\n java.lang.Object r10 = r0.result\n java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()\n int r2 = r0.label\n r3 = 2\n r4 = 1\n if (r2 == 0) goto L_0x005e\n if (r2 == r4) goto L_0x0044\n if (r2 != r3) goto L_0x003c\n java.lang.Object r8 = r0.L$6\n kotlinx.coroutines.flow.FlowCollector r8 = (kotlinx.coroutines.flow.FlowCollector) r8\n java.lang.Object r8 = r0.L$4\n kotlin.coroutines.Continuation r8 = (kotlin.coroutines.Continuation) r8\n java.lang.Object r8 = r0.L$2\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1 r8 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.AnonymousClass1) r8\n java.lang.Object r8 = r0.L$0\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2 r8 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2) r8\n kotlin.ResultKt.throwOnFailure(r10)\n goto L_0x009b\n L_0x003c:\n java.lang.IllegalStateException r8 = new java.lang.IllegalStateException\n java.lang.String r9 = \"call to 'resume' before 'invoke' with coroutine\"\n r8.<init>(r9)\n throw r8\n L_0x0044:\n java.lang.Object r8 = r0.L$6\n kotlinx.coroutines.flow.FlowCollector r8 = (kotlinx.coroutines.flow.FlowCollector) r8\n java.lang.Object r9 = r0.L$5\n java.lang.Object r2 = r0.L$4\n kotlin.coroutines.Continuation r2 = (kotlin.coroutines.Continuation) r2\n java.lang.Object r4 = r0.L$3\n java.lang.Object r5 = r0.L$2\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1 r5 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.AnonymousClass1) r5\n java.lang.Object r6 = r0.L$1\n java.lang.Object r7 = r0.L$0\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2 r7 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2) r7\n kotlin.ResultKt.throwOnFailure(r10)\n goto L_0x0084\n L_0x005e:\n kotlin.ResultKt.throwOnFailure(r10)\n kotlinx.coroutines.flow.FlowCollector r10 = kotlinx.coroutines.flow.FlowCollector.this\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1 r2 = r2\n kotlin.jvm.functions.Function2 r2 = r2.$action$inlined\n r0.L$0 = r8\n r0.L$1 = r9\n r0.L$2 = r0\n r0.L$3 = r9\n r0.L$4 = r0\n r0.L$5 = r9\n r0.L$6 = r10\n r0.label = r4\n java.lang.Object r2 = r2.invoke(r9, r0)\n if (r2 != r1) goto L_0x007e\n return r1\n L_0x007e:\n r7 = r8\n r4 = r9\n r6 = r4\n r8 = r10\n r2 = r0\n r5 = r2\n L_0x0084:\n r0.L$0 = r7\n r0.L$1 = r6\n r0.L$2 = r5\n r0.L$3 = r4\n r0.L$4 = r2\n r0.L$5 = r9\n r0.L$6 = r8\n r0.label = r3\n java.lang.Object r10 = r8.emit(r9, r0)\n if (r10 != r1) goto L_0x009b\n return r1\n L_0x009b:\n return r10\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object\");\n }",
"private final java.util.Map<java.lang.String, java.lang.String> m11967c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r7 = this;\n r0 = new java.util.HashMap;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r0.<init>();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r7.f10169c;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r2 = r7.f10170d;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r3 = f10168i;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r4 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r5 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r6 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r1.query(r2, r3, r4, r5, r6);\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n if (r1 == 0) goto L_0x0031;\n L_0x0014:\n r2 = r1.moveToNext();\t Catch:{ all -> 0x002c }\n if (r2 == 0) goto L_0x0028;\t Catch:{ all -> 0x002c }\n L_0x001a:\n r2 = 0;\t Catch:{ all -> 0x002c }\n r2 = r1.getString(r2);\t Catch:{ all -> 0x002c }\n r3 = 1;\t Catch:{ all -> 0x002c }\n r3 = r1.getString(r3);\t Catch:{ all -> 0x002c }\n r0.put(r2, r3);\t Catch:{ all -> 0x002c }\n goto L_0x0014;\n L_0x0028:\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n goto L_0x0031;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x002c:\n r0 = move-exception;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n throw r0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x0031:\n return r0;\n L_0x0032:\n r0 = \"ConfigurationContentLoader\";\n r1 = \"PhenotypeFlag unable to load ContentProvider, using default values\";\n android.util.Log.e(r0, r1);\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzsi.c():java.util.Map<java.lang.String, java.lang.String>\");\n }",
"public int mo4452e() {\n /*\n r7 = this;\n int r0 = r7.f2518c\n r7.f2519d = r0\n r0 = 0\n r1 = 0\n r2 = 0\n L_0x0007:\n int r3 = r7.f2519d\n if (r3 <= 0) goto L_0x003b\n byte r3 = r7.mo4449a()\n r4 = -1\n if (r3 == 0) goto L_0x0034\n r5 = 1\n if (r3 == r5) goto L_0x002e\n r6 = 2\n if (r3 == r6) goto L_0x002e\n r6 = 9\n if (r3 == r6) goto L_0x0007\n switch(r3) {\n case 14: goto L_0x0028;\n case 15: goto L_0x0028;\n case 16: goto L_0x0025;\n case 17: goto L_0x0025;\n case 18: goto L_0x0022;\n default: goto L_0x001f;\n }\n L_0x001f:\n if (r2 != 0) goto L_0x0007\n goto L_0x0039\n L_0x0022:\n int r1 = r1 + 1\n goto L_0x0007\n L_0x0025:\n if (r2 != r1) goto L_0x002b\n return r5\n L_0x0028:\n if (r2 != r1) goto L_0x002b\n return r4\n L_0x002b:\n int r1 = r1 + -1\n goto L_0x0007\n L_0x002e:\n if (r1 != 0) goto L_0x0031\n return r5\n L_0x0031:\n if (r2 != 0) goto L_0x0007\n goto L_0x0039\n L_0x0034:\n if (r1 != 0) goto L_0x0037\n return r4\n L_0x0037:\n if (r2 != 0) goto L_0x0007\n L_0x0039:\n r2 = r1\n goto L_0x0007\n L_0x003b:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.core.text.BidiFormatter.C0510a.mo4452e():int\");\n }",
"private void b044904490449щ0449щ() {\n /*\n r7 = this;\n r0 = new rrrrrr.ccrcrc;\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = r7.bнн043Dннн;\n r2 = com.immersion.aws.analytics.ImmrAnalytics.b044C044C044C044Cьь(r2);\n r2 = r2.getFilesDir();\n r1 = r1.append(r2);\n r2 = java.io.File.separator;\n r1 = r1.append(r2);\n L_0x001b:\n r2 = 1;\n switch(r2) {\n case 0: goto L_0x001b;\n case 1: goto L_0x0024;\n default: goto L_0x001f;\n };\n L_0x001f:\n r2 = 0;\n switch(r2) {\n case 0: goto L_0x0024;\n case 1: goto L_0x001b;\n default: goto L_0x0023;\n };\n L_0x0023:\n goto L_0x001f;\n L_0x0024:\n r2 = \"3HC4C-01.txt\";\n r1 = r1.append(r2);\n r1 = r1.toString();\n r0.<init>(r1);\n r0.load();\n L_0x0034:\n r1 = r0.size();\n if (r1 <= 0) goto L_0x007a;\n L_0x003a:\n r1 = r0.peek();\n r2 = new rrrrrr.rcccrr;\n r2.<init>();\n r3 = r7.bнн043Dннн;\n r3 = com.immersion.aws.analytics.ImmrAnalytics.b044Cь044C044Cьь(r3);\n monitor-enter(r3);\n r4 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r4 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r4);\t Catch:{ all -> 0x0074 }\n r4 = r4.bЛ041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r5 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r5 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r5);\t Catch:{ all -> 0x0074 }\n r5 = r5.b041B041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r6 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r6 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r6);\t Catch:{ all -> 0x0074 }\n r6 = r6.bЛЛЛ041B041BЛ;\t Catch:{ all -> 0x0074 }\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n r1 = r2.sendHttpRequestFromCache(r4, r5, r6, r1);\n if (r1 == 0) goto L_0x0077;\n L_0x0069:\n if (r4 == 0) goto L_0x0077;\n L_0x006b:\n if (r5 == 0) goto L_0x0077;\n L_0x006d:\n r0.remove();\n r0.save();\n goto L_0x0034;\n L_0x0074:\n r0 = move-exception;\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n throw r0;\n L_0x0077:\n r0.save();\n L_0x007a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rrrrrr.cccccr.b044904490449щ0449щ():void\");\n }",
"public boolean mo9310a(java.lang.Exception r4) {\n /*\n r3 = this;\n java.lang.Object r0 = r3.f8650a\n monitor-enter(r0)\n boolean r1 = r3.f8651b // Catch:{ all -> 0x002c }\n r2 = 0\n if (r1 == 0) goto L_0x000a\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n return r2\n L_0x000a:\n r1 = 1\n r3.f8651b = r1 // Catch:{ all -> 0x002c }\n r3.f8654e = r4 // Catch:{ all -> 0x002c }\n r3.f8655f = r2 // Catch:{ all -> 0x002c }\n java.lang.Object r4 = r3.f8650a // Catch:{ all -> 0x002c }\n r4.notifyAll() // Catch:{ all -> 0x002c }\n r3.m11250m() // Catch:{ all -> 0x002c }\n boolean r4 = r3.f8655f // Catch:{ all -> 0x002c }\n if (r4 != 0) goto L_0x002a\n bolts.n$q r4 = m11249l() // Catch:{ all -> 0x002c }\n if (r4 == 0) goto L_0x002a\n bolts.p r4 = new bolts.p // Catch:{ all -> 0x002c }\n r4.<init>(r3) // Catch:{ all -> 0x002c }\n r3.f8656g = r4 // Catch:{ all -> 0x002c }\n L_0x002a:\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n return r1\n L_0x002c:\n r4 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n throw r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: bolts.C2177n.mo9310a(java.lang.Exception):boolean\");\n }",
"public int h(Block parambec)\r\n/* 29: */ {\r\n/* 30: 44 */ return F();\r\n/* 31: */ }",
"public void method_2197() {\r\n // $FF: Couldn't be decompiled\r\n }",
"public final /* synthetic */ java.lang.Object mo13031b(java.lang.String r14, kotlin.coroutines.Continuation<? super kotlin.Unit> r15) {\n /*\n r13 = this;\n boolean r0 = r15 instanceof p008c.p009a.p024e.p026b.C0963b.C0967d\n if (r0 == 0) goto L_0x0013\n r0 = r15\n c.a.e.b.b$d r0 = (p008c.p009a.p024e.p026b.C0963b.C0967d) r0\n int r1 = r0.f1060b\n r2 = -2147483648(0xffffffff80000000, float:-0.0)\n r3 = r1 & r2\n if (r3 == 0) goto L_0x0013\n int r1 = r1 - r2\n r0.f1060b = r1\n goto L_0x0018\n L_0x0013:\n c.a.e.b.b$d r0 = new c.a.e.b.b$d\n r0.<init>(r13, r15)\n L_0x0018:\n java.lang.Object r15 = r0.f1059a\n java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()\n int r2 = r0.f1060b\n r3 = 2\n r4 = 1\n if (r2 == 0) goto L_0x0059\n if (r2 == r4) goto L_0x0049\n if (r2 != r3) goto L_0x0041\n java.lang.Object r14 = r0.f1066h\n org.mobileid.time_key.util.TimeKeyParams r14 = (org.mobileid.time_key.util.TimeKeyParams) r14\n java.lang.Object r14 = r0.f1065g\n org.mobileid.requester.web_service.Response r14 = (org.mobileid.requester.web_service.Response) r14\n java.lang.Object r14 = r0.f1064f\n java.lang.String r14 = (java.lang.String) r14\n java.lang.Object r14 = r0.f1063e\n java.lang.String r14 = (java.lang.String) r14\n java.lang.Object r14 = r0.f1062d\n c.a.e.b.b r14 = (p008c.p009a.p024e.p026b.C0963b) r14\n kotlin.ResultKt.throwOnFailure(r15)\n goto L_0x00c0\n L_0x0041:\n java.lang.IllegalStateException r14 = new java.lang.IllegalStateException\n java.lang.String r15 = \"call to 'resume' before 'invoke' with coroutine\"\n r14.<init>(r15)\n throw r14\n L_0x0049:\n java.lang.Object r14 = r0.f1064f\n java.lang.String r14 = (java.lang.String) r14\n java.lang.Object r2 = r0.f1063e\n java.lang.String r2 = (java.lang.String) r2\n java.lang.Object r5 = r0.f1062d\n c.a.e.b.b r5 = (p008c.p009a.p024e.p026b.C0963b) r5\n kotlin.ResultKt.throwOnFailure(r15)\n goto L_0x0085\n L_0x0059:\n kotlin.ResultKt.throwOnFailure(r15)\n c.a.e.c.a r15 = r13.f1032c\n java.lang.String r15 = r15.mo13035a()\n if (r15 == 0) goto L_0x00c3\n org.mobileid.time_key.web_service.TimeKeyWebService r2 = r13.f1031b\n org.mobileid.time_key.web_service.ActionOnKeyBody r11 = new org.mobileid.time_key.web_service.ActionOnKeyBody\n r8 = 0\n r9 = 4\n r10 = 0\n r5 = r11\n r6 = r14\n r7 = r15\n r5.<init>(r6, r7, r8, r9, r10)\n r0.f1062d = r13\n r0.f1063e = r14\n r0.f1064f = r15\n r0.f1060b = r4\n java.lang.Object r2 = r2.deactivateKey(r11, r0)\n if (r2 != r1) goto L_0x0080\n return r1\n L_0x0080:\n r5 = r13\n r12 = r2\n r2 = r14\n r14 = r15\n r15 = r12\n L_0x0085:\n org.mobileid.requester.web_service.Response r15 = (org.mobileid.requester.web_service.Response) r15\n java.lang.Object r6 = r15.getResult()\n java.lang.Boolean r6 = (java.lang.Boolean) r6\n java.lang.Boolean r7 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(r4)\n boolean r6 = kotlin.jvm.internal.Intrinsics.areEqual((java.lang.Object) r6, (java.lang.Object) r7)\n r4 = r4 ^ r6\n if (r4 == 0) goto L_0x009b\n kotlin.Unit r14 = kotlin.Unit.INSTANCE\n return r14\n L_0x009b:\n org.mobileid.time_key.util.TimeKeyParams$a r4 = org.mobileid.time_key.util.TimeKeyParams.Companion\n android.content.Context r6 = r5.f1030a\n org.mobileid.time_key.util.TimeKeyParams r4 = r4.mo60138a(r6)\n kotlinx.coroutines.MainCoroutineDispatcher r6 = kotlinx.coroutines.Dispatchers.getMain()\n c.a.e.b.b$e r7 = new c.a.e.b.b$e\n r8 = 0\n r7.<init>(r5, r4, r8)\n r0.f1062d = r5\n r0.f1063e = r2\n r0.f1064f = r14\n r0.f1065g = r15\n r0.f1066h = r4\n r0.f1060b = r3\n java.lang.Object r14 = kotlinx.coroutines.BuildersKt.withContext(r6, r7, r0)\n if (r14 != r1) goto L_0x00c0\n return r1\n L_0x00c0:\n kotlin.Unit r14 = kotlin.Unit.INSTANCE\n return r14\n L_0x00c3:\n kotlin.Unit r14 = kotlin.Unit.INSTANCE\n return r14\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p008c.p009a.p024e.p026b.C0963b.mo13031b(java.lang.String, kotlin.coroutines.Continuation):java.lang.Object\");\n }",
"private final boolean e() {\n /*\n r15 = this;\n r2 = 0\n r1 = 0\n dtd r0 = r15.m // Catch:{ all -> 0x008e }\n if (r0 != 0) goto L_0x000d\n dtd r0 = new dtd // Catch:{ all -> 0x008e }\n r0.<init>() // Catch:{ all -> 0x008e }\n r15.m = r0 // Catch:{ all -> 0x008e }\n L_0x000d:\n int r0 = r15.k // Catch:{ all -> 0x008e }\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x039e\n dvk r3 = r15.g // Catch:{ all -> 0x008e }\n if (r3 == 0) goto L_0x0356\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 == 0) goto L_0x0025\n int r3 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != r4) goto L_0x0032\n L_0x0025:\n r3 = 2097152(0x200000, float:2.938736E-39)\n int r3 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = new byte[r3] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r15.h = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r15.i = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0032:\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r4\n int r6 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r7 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r8 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r9 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n boolean r0 = r7.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x00ac\n r0 = 1\n L_0x0047:\n java.lang.String r3 = \"GzipInflatingBuffer is closed\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r0 = 1\n r5 = r3\n L_0x004f:\n if (r0 == 0) goto L_0x02ef\n int r3 = r6 - r5\n if (r3 <= 0) goto L_0x02ef\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.ordinal() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n switch(r0) {\n case 0: goto L_0x00ae;\n case 1: goto L_0x0148;\n case 2: goto L_0x0171;\n case 3: goto L_0x01d7;\n case 4: goto L_0x01fc;\n case 5: goto L_0x0221;\n case 6: goto L_0x0256;\n case 7: goto L_0x0289;\n case 8: goto L_0x02a2;\n case 9: goto L_0x02e9;\n default: goto L_0x005e;\n } // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x005e:\n java.lang.AssertionError r0 = new java.lang.AssertionError // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4 + 15\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5.<init>(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = \"Invalid state: \"\n java.lang.StringBuilder r4 = r5.append(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.StringBuilder r3 = r4.append(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = r3.toString() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0087:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x008e:\n r0 = move-exception\n if (r2 <= 0) goto L_0x00ab\n dxe r3 = r15.a\n r3.a(r2)\n dxh r3 = r15.j\n dxh r4 = defpackage.dxh.BODY\n if (r3 != r4) goto L_0x00ab\n dvk r3 = r15.g\n if (r3 == 0) goto L_0x03c9\n dzo r2 = r15.d\n long r4 = (long) r1\n r2.d(r4)\n int r2 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n L_0x00ab:\n throw r0\n L_0x00ac:\n r0 = 0\n goto L_0x0047\n L_0x00ae:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x00ba\n r0 = 0\n goto L_0x004f\n L_0x00ba:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 35615(0x8b1f, float:4.9907E-41)\n if (r0 == r3) goto L_0x00d4\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Not in GZIP format\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00cd:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x00d4:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 8\n if (r0 == r3) goto L_0x00e6\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Unsupported compression method\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00e6:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.j = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvl r4 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 6\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r10.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r10\n if (r3 <= 0) goto L_0x03d9\n r0 = 6\n int r0 = java.lang.Math.min(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r10 = r10.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r11 = r11.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r10, r11, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = 6 - r0\n r3 = r0\n L_0x0118:\n if (r3 <= 0) goto L_0x013b\n r0 = 512(0x200, float:7.175E-43)\n byte[] r10 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x011f:\n if (r0 >= r3) goto L_0x013b\n int r11 = r3 - r0\n r12 = 512(0x200, float:7.175E-43)\n int r11 = java.lang.Math.min(r11, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r12 = r12.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.a(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r12 = r12.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.update(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r11\n goto L_0x011f\n L_0x013b:\n dvk r0 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 6\n defpackage.dvk.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA_LEN // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0148:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 4\n r3 = 4\n if (r0 == r3) goto L_0x0156\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0156:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0162\n r0 = 0\n goto L_0x004f\n L_0x0162:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.k = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0171:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 >= r3) goto L_0x017e\n r0 = 0\n goto L_0x004f\n L_0x017e:\n dvl r10 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x03d6\n int r0 = java.lang.Math.min(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r11 = r11.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r12 = r12.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r11, r12, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r4 - r0\n r3 = r0\n L_0x01a8:\n if (r3 <= 0) goto L_0x01cb\n r0 = 512(0x200, float:7.175E-43)\n byte[] r11 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x01af:\n if (r0 >= r3) goto L_0x01cb\n int r12 = r3 - r0\n r13 = 512(0x200, float:7.175E-43)\n int r12 = java.lang.Math.min(r12, r13) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r13 = r13.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.a(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r13 = r13.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.update(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r12\n goto L_0x01af\n L_0x01cb:\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.b(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01d7:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 8\n r3 = 8\n if (r0 != r3) goto L_0x01f5\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x01e1:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x01f3\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x01e1\n r0 = 1\n L_0x01ee:\n if (r0 != 0) goto L_0x01f5\n r0 = 0\n goto L_0x004f\n L_0x01f3:\n r0 = 0\n goto L_0x01ee\n L_0x01f5:\n dvm r0 = defpackage.dvm.HEADER_COMMENT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01fc:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 16\n r3 = 16\n if (r0 != r3) goto L_0x021a\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0206:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x0218\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x0206\n r0 = 1\n L_0x0213:\n if (r0 != 0) goto L_0x021a\n r0 = 0\n goto L_0x004f\n L_0x0218:\n r0 = 0\n goto L_0x0213\n L_0x021a:\n dvm r0 = defpackage.dvm.HEADER_CRC // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0221:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 2\n r3 = 2\n if (r0 != r3) goto L_0x024f\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0234\n r0 = 0\n goto L_0x004f\n L_0x0234:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n long r10 = r0.getValue() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = (int) r10 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 65535(0xffff, float:9.1834E-41)\n r0 = r0 & r3\n dvl r3 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == r3) goto L_0x024f\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Corrupt GZIP header\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x024f:\n dvm r0 = defpackage.dvm.INITIALIZE_INFLATER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0256:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x027e\n java.util.zip.Inflater r0 = new java.util.zip.Inflater // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 1\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.g = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0262:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x0284\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x027b:\n r0 = 1\n goto L_0x004f\n L_0x027e:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x0262\n L_0x0284:\n dvm r0 = defpackage.dvm.INFLATER_NEEDS_INPUT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x027b\n L_0x0289:\n int r0 = r9 + r5\n int r0 = r7.a(r8, r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r5 + r0\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r4 = defpackage.dvm.TRAILER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r4) goto L_0x029e\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5 = r3\n goto L_0x004f\n L_0x029e:\n r0 = 1\n r5 = r3\n goto L_0x004f\n L_0x02a2:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == 0) goto L_0x02c7\n r0 = 1\n L_0x02a7:\n java.lang.String r3 = \"inflater is null\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x02c9\n r0 = 1\n L_0x02b3:\n java.lang.String r3 = \"inflaterInput has unconsumed bytes\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r0 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 512(0x200, float:7.175E-43)\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x02cb\n r0 = 0\n goto L_0x004f\n L_0x02c7:\n r0 = 0\n goto L_0x02a7\n L_0x02c9:\n r0 = 0\n goto L_0x02b3\n L_0x02cb:\n r3 = 0\n r7.e = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.f = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r3 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.a(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x02e9:\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x004f\n L_0x02ef:\n if (r0 == 0) goto L_0x0301\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = defpackage.dvm.HEADER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x0334\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x0334\n L_0x0301:\n r0 = 1\n L_0x0302:\n r7.n = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.l // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.l = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r2 = r2 + r3\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.m = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r1 = r1 + r3\n if (r5 != 0) goto L_0x0342\n if (r2 <= 0) goto L_0x0332\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0332\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x0336\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0332:\n r0 = 0\n L_0x0333:\n return r0\n L_0x0334:\n r0 = 0\n goto L_0x0302\n L_0x0336:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0332\n L_0x0342:\n dtd r0 = r15.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dxv r3 = defpackage.dxw.a(r3, r4, r5) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.a(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r5\n r15.i = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x000d\n L_0x0356:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n if (r3 != 0) goto L_0x0386\n if (r2 <= 0) goto L_0x0378\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0378\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x037a\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0378:\n r0 = 0\n goto L_0x0333\n L_0x037a:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0378\n L_0x0386:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ all -> 0x008e }\n int r2 = r2 + r0\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n dtd r4 = r15.n // Catch:{ all -> 0x008e }\n dxv r0 = r4.a(r0) // Catch:{ all -> 0x008e }\n dtd r0 = (defpackage.dtd) r0 // Catch:{ all -> 0x008e }\n r3.a(r0) // Catch:{ all -> 0x008e }\n goto L_0x000d\n L_0x039e:\n if (r2 <= 0) goto L_0x03ba\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x03ba\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x03bd\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x03ba:\n r0 = 1\n goto L_0x0333\n L_0x03bd:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x03ba\n L_0x03c9:\n dzo r1 = r15.d\n long r4 = (long) r2\n r1.d(r4)\n int r1 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n goto L_0x00ab\n L_0x03d6:\n r3 = r4\n goto L_0x01a8\n L_0x03d9:\n r3 = r0\n goto L_0x0118\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.dxd.e():boolean\");\n }",
"public java.lang.Object mo13025a(boolean r18, kotlin.coroutines.Continuation<? super kotlin.Unit> r19) {\n /*\n r17 = this;\n r0 = r17\n r1 = r19\n boolean r2 = r1 instanceof p008c.p009a.p024e.p026b.C0963b.C0971h\n if (r2 == 0) goto L_0x0017\n r2 = r1\n c.a.e.b.b$h r2 = (p008c.p009a.p024e.p026b.C0963b.C0971h) r2\n int r3 = r2.f1092b\n r4 = -2147483648(0xffffffff80000000, float:-0.0)\n r5 = r3 & r4\n if (r5 == 0) goto L_0x0017\n int r3 = r3 - r4\n r2.f1092b = r3\n goto L_0x001c\n L_0x0017:\n c.a.e.b.b$h r2 = new c.a.e.b.b$h\n r2.<init>(r0, r1)\n L_0x001c:\n java.lang.Object r1 = r2.f1091a\n java.lang.Object r9 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()\n int r3 = r2.f1092b\n r10 = 4\n r11 = 3\n r4 = 1\n r5 = 2\n if (r3 == 0) goto L_0x00a4\n if (r3 == r4) goto L_0x0093\n if (r3 == r5) goto L_0x0072\n if (r3 == r11) goto L_0x0053\n if (r3 != r10) goto L_0x004b\n java.lang.Object r3 = r2.f1098h\n java.util.List r3 = (java.util.List) r3\n java.lang.Object r3 = r2.f1097g\n java.util.Map r3 = (java.util.Map) r3\n java.lang.Object r3 = r2.f1096f\n org.mobileid.requester.web_service.Response r3 = (org.mobileid.requester.web_service.Response) r3\n java.lang.Object r3 = r2.f1095e\n java.lang.String r3 = (java.lang.String) r3\n java.lang.Object r2 = r2.f1094d\n c.a.e.b.b r2 = (p008c.p009a.p024e.p026b.C0963b) r2\n kotlin.ResultKt.throwOnFailure(r1)\n goto L_0x01c5\n L_0x004b:\n java.lang.IllegalStateException r1 = new java.lang.IllegalStateException\n java.lang.String r2 = \"call to 'resume' before 'invoke' with coroutine\"\n r1.<init>(r2)\n throw r1\n L_0x0053:\n java.lang.Object r3 = r2.f1098h\n java.util.List r3 = (java.util.List) r3\n java.lang.Object r4 = r2.f1097g\n java.util.Map r4 = (java.util.Map) r4\n java.lang.Object r5 = r2.f1096f\n org.mobileid.requester.web_service.Response r5 = (org.mobileid.requester.web_service.Response) r5\n java.lang.Object r6 = r2.f1095e\n java.lang.String r6 = (java.lang.String) r6\n boolean r7 = r2.f1099i\n java.lang.Object r8 = r2.f1094d\n c.a.e.b.b r8 = (p008c.p009a.p024e.p026b.C0963b) r8\n kotlin.ResultKt.throwOnFailure(r1)\n r13 = r5\n r14 = r6\n r6 = r3\n r3 = r8\n goto L_0x01ad\n L_0x0072:\n java.lang.Object r3 = r2.f1098h\n java.util.List r3 = (java.util.List) r3\n java.lang.Object r4 = r2.f1097g\n java.util.Map r4 = (java.util.Map) r4\n java.lang.Object r5 = r2.f1096f\n org.mobileid.requester.web_service.Response r5 = (org.mobileid.requester.web_service.Response) r5\n java.lang.Object r6 = r2.f1095e\n java.lang.String r6 = (java.lang.String) r6\n boolean r7 = r2.f1099i\n java.lang.Object r8 = r2.f1094d\n c.a.e.b.b r8 = (p008c.p009a.p024e.p026b.C0963b) r8\n kotlin.ResultKt.throwOnFailure(r1)\n r1 = r3\n r15 = r4\n r13 = r5\n r14 = r6\n r12 = r8\n r8 = r7\n goto L_0x018c\n L_0x0093:\n java.lang.Object r3 = r2.f1095e\n java.lang.String r3 = (java.lang.String) r3\n boolean r4 = r2.f1099i\n java.lang.Object r6 = r2.f1094d\n c.a.e.b.b r6 = (p008c.p009a.p024e.p026b.C0963b) r6\n kotlin.ResultKt.throwOnFailure(r1)\n r13 = r3\n r14 = r4\n r12 = r6\n goto L_0x00c5\n L_0x00a4:\n kotlin.ResultKt.throwOnFailure(r1)\n c.a.e.c.a r1 = r0.f1032c\n java.lang.String r3 = r1.mo13035a()\n if (r3 == 0) goto L_0x01cc\n org.mobileid.time_key.web_service.TimeKeyWebService r1 = r0.f1031b\n r2.f1094d = r0\n r6 = r18\n r2.f1099i = r6\n r2.f1095e = r3\n r2.f1092b = r4\n java.lang.Object r1 = r1.synchronizeKeys(r3, r2)\n if (r1 != r9) goto L_0x00c2\n return r9\n L_0x00c2:\n r12 = r0\n r13 = r3\n r14 = r6\n L_0x00c5:\n org.mobileid.requester.web_service.Response r1 = (org.mobileid.requester.web_service.Response) r1\n org.mobileid.requester.web_service.Error r3 = r1.getError()\n if (r3 == 0) goto L_0x00d0\n kotlin.Unit r1 = kotlin.Unit.INSTANCE\n return r1\n L_0x00d0:\n java.lang.Object r3 = r1.getResult()\n java.util.Map r3 = (java.util.Map) r3\n r4 = 0\n if (r12 == 0) goto L_0x01cb\n if (r3 == 0) goto L_0x010e\n java.util.LinkedHashMap r6 = new java.util.LinkedHashMap\n r6.<init>()\n java.util.Set r3 = r3.entrySet()\n java.util.Iterator r3 = r3.iterator()\n L_0x00e8:\n boolean r7 = r3.hasNext()\n if (r7 == 0) goto L_0x010f\n java.lang.Object r7 = r3.next()\n java.util.Map$Entry r7 = (java.util.Map.Entry) r7\n org.mobileid.access.key.TimeKey$Companion r8 = org.mobileid.access.key.TimeKey.Companion\n java.lang.Object r15 = r7.getKey()\n java.lang.String r15 = (java.lang.String) r15\n boolean r8 = r8.isTimeKeyPrefix(r15)\n if (r8 == 0) goto L_0x00e8\n java.lang.Object r8 = r7.getKey()\n java.lang.Object r7 = r7.getValue()\n r6.put(r8, r7)\n goto L_0x00e8\n L_0x010e:\n r6 = r4\n L_0x010f:\n boolean r3 = r6 instanceof java.util.Map\n if (r3 != 0) goto L_0x0115\n r15 = r4\n goto L_0x0116\n L_0x0115:\n r15 = r6\n L_0x0116:\n if (r15 == 0) goto L_0x01c8\n c.a.a.c$a r3 = p008c.p009a.p010a.C0837c.f761k\n android.content.Context r6 = r12.f1030a\n java.util.List r3 = p008c.p009a.p010a.C0837c.C0838a.m367a((p008c.p009a.p010a.C0837c.C0838a) r3, (android.content.Context) r6, (org.mobileid.access.key_sort.Sort) r4, (int) r5)\n java.util.ArrayList r4 = new java.util.ArrayList\n r4.<init>()\n java.util.Iterator r3 = r3.iterator()\n L_0x0129:\n boolean r6 = r3.hasNext()\n if (r6 == 0) goto L_0x0146\n java.lang.Object r6 = r3.next()\n r7 = r6\n org.mobileid.access.key.Key r7 = (org.mobileid.access.key.Key) r7\n org.mobileid.access.key.TimeKey$Companion r8 = org.mobileid.access.key.TimeKey.Companion\n java.lang.String r7 = r7.getName()\n boolean r7 = r8.isStorageTimeKeyId(r7)\n if (r7 == 0) goto L_0x0129\n r4.add(r6)\n goto L_0x0129\n L_0x0146:\n java.util.ArrayList r8 = new java.util.ArrayList\n r3 = 10\n int r3 = kotlin.collections.CollectionsKt.collectionSizeOrDefault(r4, r3)\n r8.<init>(r3)\n java.util.Iterator r3 = r4.iterator()\n L_0x0155:\n boolean r4 = r3.hasNext()\n if (r4 == 0) goto L_0x0169\n java.lang.Object r4 = r3.next()\n org.mobileid.access.key.Key r4 = (org.mobileid.access.key.Key) r4\n java.lang.String r4 = r4.getId()\n r8.add(r4)\n goto L_0x0155\n L_0x0169:\n r2.f1094d = r12\n r2.f1099i = r14\n r2.f1095e = r13\n r2.f1096f = r1\n r2.f1097g = r15\n r2.f1098h = r8\n r2.f1092b = r5\n java.lang.String r5 = \"DEACTIVATED\"\n r3 = r12\n r4 = r15\n r6 = r8\n r7 = r14\n r16 = r8\n r8 = r2\n java.lang.Object r3 = r3.mo13032b(r4, r5, r6, r7, r8)\n if (r3 != r9) goto L_0x0187\n return r9\n L_0x0187:\n r8 = r14\n r14 = r13\n r13 = r1\n r1 = r16\n L_0x018c:\n r2.f1094d = r12\n r2.f1099i = r8\n r2.f1095e = r14\n r2.f1096f = r13\n r2.f1097g = r15\n r2.f1098h = r1\n r2.f1092b = r11\n java.lang.String r5 = \"FROZEN\"\n r3 = r12\n r4 = r15\n r6 = r1\n r7 = r8\n r11 = r8\n r8 = r2\n java.lang.Object r3 = r3.mo13032b(r4, r5, r6, r7, r8)\n if (r3 != r9) goto L_0x01a9\n return r9\n L_0x01a9:\n r6 = r1\n r7 = r11\n r3 = r12\n r4 = r15\n L_0x01ad:\n r2.f1094d = r3\n r2.f1099i = r7\n r2.f1095e = r14\n r2.f1096f = r13\n r2.f1097g = r4\n r2.f1098h = r6\n r2.f1092b = r10\n java.lang.String r5 = \"FROZEN\"\n r8 = r2\n java.lang.Object r1 = r3.mo13028a(r4, r5, r6, r7, r8)\n if (r1 != r9) goto L_0x01c5\n return r9\n L_0x01c5:\n kotlin.Unit r1 = kotlin.Unit.INSTANCE\n return r1\n L_0x01c8:\n kotlin.Unit r1 = kotlin.Unit.INSTANCE\n return r1\n L_0x01cb:\n throw r4\n L_0x01cc:\n kotlin.Unit r1 = kotlin.Unit.INSTANCE\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p008c.p009a.p024e.p026b.C0963b.mo13025a(boolean, kotlin.coroutines.Continuation):java.lang.Object\");\n }",
"public static void m5820b(java.lang.String r3, java.lang.String r4, java.lang.String r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = new com.crashlytics.android.answers.StartCheckoutEvent;\n r0.<init>();\n r1 = java.util.Locale.getDefault();\n r1 = java.util.Currency.getInstance(r1);\n r0.putCurrency(r1);\n r1 = 1;\n r0.putItemCount(r1);\n r1 = java.lang.Long.parseLong(r3);\t Catch:{ Exception -> 0x001f }\n r3 = java.math.BigDecimal.valueOf(r1);\t Catch:{ Exception -> 0x001f }\n r0.putTotalPrice(r3);\t Catch:{ Exception -> 0x001f }\n L_0x001f:\n r3 = \"type\";\n r0.putCustomAttribute(r3, r4);\n r3 = \"cta\";\n r0.putCustomAttribute(r3, r5);\n r3 = com.crashlytics.android.answers.Answers.getInstance();\n r3.logStartCheckout(r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.b(java.lang.String, java.lang.String, java.lang.String):void\");\n }",
"private final void m710e() {\n /*\n r12 = this;\n akn r0 = r12.f531p\n akl r0 = r0.f601d\n if (r0 == 0) goto L_0x0155\n boolean r1 = r0.f580d\n r2 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n if (r1 == 0) goto L_0x0017\n aws r1 = r0.f577a\n long r4 = r1.mo1486c()\n r8 = r4\n goto L_0x0019\n L_0x0017:\n r8 = r2\n L_0x0019:\n int r1 = (r8 > r2 ? 1 : (r8 == r2 ? 0 : -1))\n if (r1 != 0) goto L_0x0122\n ajf r1 = r12.f528m\n akn r2 = r12.f531p\n akl r2 = r2.f602e\n akx r3 = r1.f445c\n r4 = 0\n if (r3 == 0) goto L_0x008a\n boolean r3 = r3.mo486w()\n if (r3 != 0) goto L_0x008a\n akx r3 = r1.f445c\n boolean r3 = r3.mo485v()\n if (r3 == 0) goto L_0x0037\n goto L_0x0042\n L_0x0037:\n if (r0 != r2) goto L_0x008a\n akx r2 = r1.f445c\n boolean r2 = r2.mo359g()\n if (r2 == 0) goto L_0x0042\n goto L_0x008a\n L_0x0042:\n bkr r2 = r1.f446d\n long r2 = r2.mo379b()\n boolean r5 = r1.f447e\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n long r5 = r5.mo379b()\n int r7 = (r2 > r5 ? 1 : (r2 == r5 ? 0 : -1))\n if (r7 >= 0) goto L_0x005c\n blf r2 = r1.f443a\n r2.mo2109d()\n goto L_0x0096\n L_0x005c:\n r1.f447e = r4\n boolean r5 = r1.f448f\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n r5.mo2107a()\n L_0x0068:\n blf r5 = r1.f443a\n r5.mo2108a(r2)\n bkr r2 = r1.f446d\n akq r2 = r2.mo376Q()\n blf r3 = r1.f443a\n akq r3 = r3.f4280a\n boolean r3 = r2.equals(r3)\n if (r3 != 0) goto L_0x0096\n blf r3 = r1.f443a\n r3.mo378a(r2)\n aje r3 = r1.f444b\n ake r3 = (p000.ake) r3\n r3.m694a(r2, r4)\n goto L_0x0096\n L_0x008a:\n r2 = 1\n r1.f447e = r2\n boolean r2 = r1.f448f\n if (r2 == 0) goto L_0x0096\n blf r2 = r1.f443a\n r2.mo2107a()\n L_0x0096:\n long r1 = r1.mo379b()\n r12.f513D = r1\n long r0 = r0.mo440b(r1)\n akp r2 = r12.f533r\n long r2 = r2.f623m\n java.util.ArrayList r5 = r12.f530o\n boolean r5 = r5.isEmpty()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n awt r5 = r5.f612b\n boolean r5 = r5.mo1504a()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n long r6 = r5.f613c\n int r8 = (r6 > r2 ? 1 : (r6 == r2 ? 0 : -1))\n if (r8 != 0) goto L_0x00c5\n boolean r6 = r12.f515F\n if (r6 == 0) goto L_0x00c5\n r6 = -1\n long r2 = r2 + r6\n L_0x00c5:\n r12.f515F = r4\n alh r4 = r5.f611a\n awt r5 = r5.f612b\n java.lang.Object r5 = r5.f2566a\n int r4 = r4.mo525a(r5)\n int r5 = r12.f514E\n r6 = 0\n if (r5 <= 0) goto L_0x00e1\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x00e1:\n L_0x00e2:\n r5 = r6\n L_0x00e3:\n if (r5 != 0) goto L_0x00e6\n goto L_0x0109\n L_0x00e6:\n int r5 = r5.f502a\n if (r4 >= 0) goto L_0x00eb\n L_0x00ea:\n goto L_0x00f4\n L_0x00eb:\n if (r4 != 0) goto L_0x0109\n r7 = 0\n int r5 = (r2 > r7 ? 1 : (r2 == r7 ? 0 : -1))\n if (r5 >= 0) goto L_0x0109\n goto L_0x00ea\n L_0x00f4:\n int r5 = r12.f514E\n int r5 = r5 + -1\n r12.f514E = r5\n if (r5 <= 0) goto L_0x0108\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x0108:\n goto L_0x00e2\n L_0x0109:\n int r2 = r12.f514E\n java.util.ArrayList r3 = r12.f530o\n int r3 = r3.size()\n if (r2 >= r3) goto L_0x011d\n java.util.ArrayList r2 = r12.f530o\n int r3 = r12.f514E\n java.lang.Object r2 = r2.get(r3)\n akb r2 = (p000.akb) r2\n L_0x011d:\n akp r2 = r12.f533r\n r2.f623m = r0\n goto L_0x0140\n L_0x0122:\n r12.m691a(r8)\n akp r0 = r12.f533r\n long r0 = r0.f623m\n int r2 = (r8 > r0 ? 1 : (r8 == r0 ? 0 : -1))\n if (r2 == 0) goto L_0x0140\n akp r0 = r12.f533r\n awt r7 = r0.f612b\n long r10 = r0.f614d\n r6 = r12\n akp r0 = r6.m686a(r7, r8, r10)\n r12.f533r = r0\n akc r0 = r12.f529n\n r1 = 4\n r0.mo409b(r1)\n L_0x0140:\n akn r0 = r12.f531p\n akl r0 = r0.f603f\n akp r1 = r12.f533r\n long r2 = r0.mo442c()\n r1.f621k = r2\n akp r0 = r12.f533r\n long r1 = r12.m719n()\n r0.f622l = r1\n return\n L_0x0155:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.ake.m710e():void\");\n }",
"public synchronized void m6495a(int r6, int r7) throws fr.pcsoft.wdjava.geo.C0918i {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: Exception block dominator not found, method:fr.pcsoft.wdjava.geo.a.b.a(int, int):void. bs: [B:13:0x001d, B:18:0x0027, B:23:0x0031, B:28:0x003a, B:44:0x005d, B:55:0x006c, B:64:0x0079]\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:86)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/70807318.run(Unknown Source)\n*/\n /*\n r5 = this;\n r4 = 2;\n r1 = 0;\n r0 = 1;\n monitor-enter(r5);\n r5.m6487e();\t Catch:{ all -> 0x0053 }\n switch(r6) {\n case 2: goto L_0x0089;\n case 3: goto L_0x000a;\n case 4: goto L_0x0013;\n default: goto L_0x000a;\n };\t Catch:{ all -> 0x0053 }\n L_0x000a:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 3;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n L_0x0011:\n monitor-exit(r5);\n return;\n L_0x0013:\n r3 = new android.location.Criteria;\t Catch:{ all -> 0x0053 }\n r3.<init>();\t Catch:{ all -> 0x0053 }\n r2 = r7 & 2;\n if (r2 != r4) goto L_0x0058;\n L_0x001c:\n r2 = 1;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0056 }\n L_0x0020:\n r2 = r7 & 128;\n r4 = 128; // 0x80 float:1.794E-43 double:6.32E-322;\n if (r2 != r4) goto L_0x0065;\n L_0x0026:\n r2 = 3;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0063 }\n L_0x002a:\n r2 = r7 & 8;\n r4 = 8;\n if (r2 != r4) goto L_0x007f;\n L_0x0030:\n r2 = r0;\n L_0x0031:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0081 }\n r2 = r7 & 4;\n r4 = 4;\n if (r2 != r4) goto L_0x0083;\n L_0x0039:\n r2 = r0;\n L_0x003a:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0085 }\n r2 = r7 & 16;\n r4 = 16;\n if (r2 != r4) goto L_0x0087;\n L_0x0043:\n r3.setAltitudeRequired(r0);\t Catch:{ all -> 0x0053 }\n r0 = 0;\t Catch:{ all -> 0x0053 }\n r0 = r5.m6485a(r0);\t Catch:{ all -> 0x0053 }\n r1 = 1;\t Catch:{ all -> 0x0053 }\n r0 = r0.getBestProvider(r3, r1);\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n L_0x0053:\n r0 = move-exception;\n monitor-exit(r5);\n throw r0;\n L_0x0056:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0058:\n r2 = r7 & 1;\n if (r2 != r0) goto L_0x0020;\n L_0x005c:\n r2 = 2;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0061 }\n goto L_0x0020;\n L_0x0061:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0063:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0065:\n r2 = r7 & 64;\n r4 = 64;\n if (r2 != r4) goto L_0x0072;\n L_0x006b:\n r2 = 2;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0070 }\n goto L_0x002a;\n L_0x0070:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0072:\n r2 = r7 & 32;\n r4 = 32;\n if (r2 != r4) goto L_0x002a;\n L_0x0078:\n r2 = 1;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x007d }\n goto L_0x002a;\n L_0x007d:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x007f:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0031;\t Catch:{ all -> 0x0053 }\n L_0x0081:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0083:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x003a;\t Catch:{ all -> 0x0053 }\n L_0x0085:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0087:\n r0 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0043;\t Catch:{ all -> 0x0053 }\n L_0x0089:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 2;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: fr.pcsoft.wdjava.geo.a.b.a(int, int):void\");\n }",
"private synchronized void m3985g() {\n /*\n r8 = this;\n monitor-enter(r8);\n r2 = java.lang.Thread.currentThread();\t Catch:{ all -> 0x0063 }\n r3 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r3 = r3.mo1186c();\t Catch:{ all -> 0x0063 }\n r2 = r2.equals(r3);\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0021;\n L_0x0011:\n r2 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1185b();\t Catch:{ all -> 0x0063 }\n r3 = new com.google.analytics.tracking.android.aa;\t Catch:{ all -> 0x0063 }\n r3.<init>(r8);\t Catch:{ all -> 0x0063 }\n r2.add(r3);\t Catch:{ all -> 0x0063 }\n L_0x001f:\n monitor-exit(r8);\n return;\n L_0x0021:\n r2 = r8.f2122n;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x0028;\n L_0x0025:\n r8.m3999d();\t Catch:{ all -> 0x0063 }\n L_0x0028:\n r2 = com.google.analytics.tracking.android.ab.f1966a;\t Catch:{ all -> 0x0063 }\n r3 = r8.f2110b;\t Catch:{ all -> 0x0063 }\n r3 = r3.ordinal();\t Catch:{ all -> 0x0063 }\n r2 = r2[r3];\t Catch:{ all -> 0x0063 }\n switch(r2) {\n case 1: goto L_0x0036;\n case 2: goto L_0x006e;\n case 3: goto L_0x00aa;\n default: goto L_0x0035;\n };\t Catch:{ all -> 0x0063 }\n L_0x0035:\n goto L_0x001f;\n L_0x0036:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0066;\n L_0x003e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.poll();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to store\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2112d;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1197a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n goto L_0x0036;\n L_0x0063:\n r2 = move-exception;\n monitor-exit(r8);\n throw r2;\n L_0x0066:\n r2 = r8.f2121m;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x001f;\n L_0x006a:\n r8.m3987h();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x006e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x00a0;\n L_0x0076:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.peek();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to service\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2111c;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1204a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2.poll();\t Catch:{ all -> 0x0063 }\n goto L_0x006e;\n L_0x00a0:\n r2 = r8.f2123o;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1198a();\t Catch:{ all -> 0x0063 }\n r8.f2109a = r2;\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x00aa:\n r2 = \"Need to reconnect\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x001f;\n L_0x00b7:\n r8.m3991j();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.analytics.tracking.android.y.g():void\");\n }",
"private static void m13381a(long r3, float r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\n r0.beginTransaction();\t Catch:{ Exception -> 0x001f }\n r1 = \"INSERT INTO battery_watcher (timestamp, level) VALUES (?, ?)\";\t Catch:{ Exception -> 0x001f }\n r1 = r0.compileStatement(r1);\t Catch:{ Exception -> 0x001f }\n r2 = 1;\t Catch:{ Exception -> 0x001f }\n r1.bindLong(r2, r3);\t Catch:{ Exception -> 0x001f }\n r3 = 2;\t Catch:{ Exception -> 0x001f }\n r4 = (double) r5;\t Catch:{ Exception -> 0x001f }\n r1.bindDouble(r3, r4);\t Catch:{ Exception -> 0x001f }\n r1.execute();\t Catch:{ Exception -> 0x001f }\n r0.setTransactionSuccessful();\t Catch:{ Exception -> 0x001f }\n goto L_0x0026;\n L_0x001d:\n r3 = move-exception;\n goto L_0x002a;\n L_0x001f:\n r3 = f10646a;\t Catch:{ all -> 0x001d }\n r4 = \"Issue adding location to battery history\";\t Catch:{ all -> 0x001d }\n com.foursquare.internal.util.FsLog.m6807d(r3, r4);\t Catch:{ all -> 0x001d }\n L_0x0026:\n r0.endTransaction();\n return;\n L_0x002a:\n r0.endTransaction();\n throw r3;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.a(long, float):void\");\n }",
"private final com.google.android.play.p179a.p352a.C6210u m28673b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 10: goto L_0x000e;\n case 16: goto L_0x001b;\n case 26: goto L_0x0058;\n case 34: goto L_0x0065;\n case 42: goto L_0x0072;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r0 = r7.f();\n r6.f31049b = r0;\n r0 = r6.f31048a;\n r0 = r0 | 1;\n r6.f31048a = r0;\n goto L_0x0000;\n L_0x001b:\n r1 = r6.f31048a;\n r1 = r1 | 2;\n r6.f31048a = r1;\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x0047 }\n switch(r2) {\n case 0: goto L_0x004f;\n case 1: goto L_0x004f;\n case 2: goto L_0x004f;\n case 3: goto L_0x004f;\n case 4: goto L_0x004f;\n case 5: goto L_0x004f;\n case 6: goto L_0x004f;\n default: goto L_0x002c;\n };\t Catch:{ IllegalArgumentException -> 0x0047 }\n L_0x002c:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0047 }\n r4 = 38;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0047 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0047 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0047 }\n r4 = \" is not a valid enum OsType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0047 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0047 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0047 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0047 }\n L_0x0047:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x004f:\n r6.f31050c = r2;\t Catch:{ IllegalArgumentException -> 0x0047 }\n r2 = r6.f31048a;\t Catch:{ IllegalArgumentException -> 0x0047 }\n r2 = r2 | 2;\n r6.f31048a = r2;\t Catch:{ IllegalArgumentException -> 0x0047 }\n goto L_0x0000;\n L_0x0058:\n r0 = r7.f();\n r6.f31051d = r0;\n r0 = r6.f31048a;\n r0 = r0 | 4;\n r6.f31048a = r0;\n goto L_0x0000;\n L_0x0065:\n r0 = r7.f();\n r6.f31052e = r0;\n r0 = r6.f31048a;\n r0 = r0 | 8;\n r6.f31048a = r0;\n goto L_0x0000;\n L_0x0072:\n r0 = r7.f();\n r6.f31053f = r0;\n r0 = r6.f31048a;\n r0 = r0 | 16;\n r6.f31048a = r0;\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.play.a.a.u.b(com.google.protobuf.nano.a):com.google.android.play.a.a.u\");\n }",
"public void m7211c() {\n /*\n r34 = this;\n r16 = 0;\n r15 = 0;\n r5 = 0;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"MINOR_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = -1;\n r4 = r2.hashCode();\n switch(r4) {\n case -1172269795: goto L_0x002e;\n case 2157948: goto L_0x0038;\n case 2571565: goto L_0x0024;\n default: goto L_0x0018;\n };\n L_0x0018:\n r2 = r3;\n L_0x0019:\n switch(r2) {\n case 0: goto L_0x0042;\n case 1: goto L_0x0162;\n case 2: goto L_0x01a9;\n default: goto L_0x001c;\n };\n L_0x001c:\n r2 = \"Undefined type\";\n r0 = r34;\n mobi.mmdt.componentsutils.p079a.p080a.C1104b.m6366b(r0, r2);\n L_0x0023:\n return;\n L_0x0024:\n r4 = \"TEXT\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x002c:\n r2 = 0;\n goto L_0x0019;\n L_0x002e:\n r4 = \"STICKER\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x0036:\n r2 = 1;\n goto L_0x0019;\n L_0x0038:\n r4 = \"FILE\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x0040:\n r2 = 2;\n goto L_0x0019;\n L_0x0042:\n r4 = mobi.mmdt.ott.provider.p169c.C1594n.TEXT;\n r33 = r5;\n L_0x0046:\n r8 = mobi.mmdt.componentsutils.p079a.p084e.C1113a.m6421a();\n r10 = mobi.mmdt.ott.provider.p169c.C1592l.IN;\n r0 = r34;\n r2 = r0.f4758b;\n r0 = r34;\n r3 = r0.f4757a;\n r3 = mobi.mmdt.ott.p109d.p111b.C1309a.m6934a(r3);\n r3 = r3.m6942b();\n r2 = r2.equals(r3);\n if (r2 == 0) goto L_0x0064;\n L_0x0062:\n r10 = mobi.mmdt.ott.provider.p169c.C1592l.OUT;\n L_0x0064:\n r0 = r34;\n r2 = r0.f4757a;\n r0 = r34;\n r3 = r0.f4761e;\n r2 = mobi.mmdt.ott.provider.p169c.C1583c.m7972a(r2, r3, r10);\n if (r2 != 0) goto L_0x0023;\n L_0x0072:\n r2 = mobi.mmdt.ott.MyApplication.m6445a();\n r2 = r2.f4177h;\n if (r2 == 0) goto L_0x008a;\n L_0x007a:\n r2 = mobi.mmdt.ott.MyApplication.m6445a();\n r2 = r2.f4177h;\n r0 = r34;\n r3 = r0.f4759c;\n r2 = r2.equals(r3);\n if (r2 != 0) goto L_0x024e;\n L_0x008a:\n r17 = 0;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n if (r2 == 0) goto L_0x00b8;\n L_0x0098:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x00b8;\n L_0x00aa:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r17 = r2;\n L_0x00b8:\n r2 = new mobi.mmdt.ott.d.a.b;\n r0 = r34;\n r3 = r0.f4761e;\n r0 = r34;\n r5 = r0.f4760d;\n r0 = r34;\n r6 = r0.f4762f;\n r7 = \"SEND_TIME_IN_GMT\";\n r6 = r6.get(r7);\n r6 = (java.lang.String) r6;\n r6 = java.lang.Long.parseLong(r6);\n r11 = mobi.mmdt.ott.provider.p169c.C1593m.NOT_READ;\n r0 = r34;\n r12 = r0.f4759c;\n r13 = mobi.mmdt.ott.provider.p169c.C1595o.GROUP;\n r0 = r34;\n r14 = r0.f4758b;\n r2.<init>(r3, r4, r5, r6, r8, r10, r11, r12, r13, r14, r15, r16, r17);\n r0 = r34;\n r3 = r0.f4757a;\n r3 = mobi.mmdt.ott.logic.p157e.C1509a.m7621a(r3);\n r0 = r34;\n r4 = r0.f4762f;\n r0 = r33;\n r3.m7626a(r2, r0, r4);\n L_0x00f2:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n if (r2 == 0) goto L_0x013c;\n L_0x00fe:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x013c;\n L_0x0110:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4761e;\n mobi.mmdt.ott.provider.p169c.C1583c.m7976b(r3, r4, r2);\n r0 = r34;\n r3 = r0.f4757a;\n r2 = mobi.mmdt.ott.provider.p169c.C1583c.m8003n(r3, r2);\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4761e;\n r5 = mobi.mmdt.ott.provider.p169c.C1595o.SINGLE;\n mobi.mmdt.ott.logic.p112a.p120c.p121a.p123b.C1387u.m7218a(r3, r4, r2, r5);\n L_0x013c:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"MINOR_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = \"TEXT\";\n r2 = r2.equals(r3);\n if (r2 != 0) goto L_0x0023;\n L_0x0150:\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.b;\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4762f;\n r2.<init>(r3, r15, r4);\n mobi.mmdt.ott.logic.C1494c.m7541c(r2);\n goto L_0x0023;\n L_0x0162:\n r6 = mobi.mmdt.ott.provider.p169c.C1594n.STICKER;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"STICKER_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r0 = r34;\n r3 = r0.f4762f;\n r4 = \"STICKER_PACKAGE_ID\";\n r3 = r3.get(r4);\n r3 = (java.lang.String) r3;\n r0 = r34;\n r4 = r0.f4762f;\n r7 = \"STICKER_VERSION\";\n r4 = r4.get(r7);\n r4 = (java.lang.String) r4;\n if (r4 == 0) goto L_0x02c9;\n L_0x018a:\n if (r2 == 0) goto L_0x02c9;\n L_0x018c:\n if (r3 == 0) goto L_0x02c9;\n L_0x018e:\n r7 = r4.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x0194:\n r7 = r2.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x019a:\n r7 = r3.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x01a0:\n r16 = mobi.mmdt.ott.provider.p174h.C1629b.m8295a(r4, r3, r2);\n r33 = r5;\n r4 = r6;\n goto L_0x0046;\n L_0x01a9:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"FILE_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = -1;\n r4 = r2.hashCode();\n switch(r4) {\n case 327328941: goto L_0x01de;\n case 796404377: goto L_0x01ca;\n case 802160718: goto L_0x01e8;\n case 808293817: goto L_0x01d4;\n default: goto L_0x01bd;\n };\n L_0x01bd:\n r2 = r3;\n L_0x01be:\n switch(r2) {\n case 0: goto L_0x01f2;\n case 1: goto L_0x020c;\n case 2: goto L_0x0222;\n case 3: goto L_0x0238;\n default: goto L_0x01c1;\n };\n L_0x01c1:\n r2 = \"Undefined file type\";\n r0 = r34;\n mobi.mmdt.componentsutils.p079a.p080a.C1104b.m6366b(r0, r2);\n goto L_0x0023;\n L_0x01ca:\n r4 = \"FILE_TYPE_IMAGE\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01d2:\n r2 = 0;\n goto L_0x01be;\n L_0x01d4:\n r4 = \"FILE_TYPE_VIDEO\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01dc:\n r2 = 1;\n goto L_0x01be;\n L_0x01de:\n r4 = \"FILE_TYPE_PUSH_TO_TALK\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01e6:\n r2 = 2;\n goto L_0x01be;\n L_0x01e8:\n r4 = \"FILE_TYPE_OTHER\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01f0:\n r2 = 3;\n goto L_0x01be;\n L_0x01f2:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.IMAGE;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.IMAGE;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n L_0x0207:\n r33 = r2;\n r4 = r3;\n goto L_0x0046;\n L_0x020c:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.VIDEO;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.VIDEO;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x0222:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.PUSH_TO_TALK;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.PUSH_TO_TALK;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x0238:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.FILE;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.OTHER;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x024e:\n if (r33 == 0) goto L_0x029c;\n L_0x0250:\n r0 = r34;\n r0 = r0.f4757a;\n r18 = r0;\n r19 = r33.m8082n();\n r20 = r33.m8069a();\n r21 = r33.m8079k();\n r22 = r33.m8073e();\n r23 = r33.m8078j();\n r24 = r33.m8077i();\n r26 = 0;\n r27 = r33.m8081m();\n r28 = r33.m8080l();\n r29 = r33.m8075g();\n r30 = r33.m8071c();\n r31 = r33.m8072d();\n r32 = r33.m8070b();\n r33 = r33.m8074f();\n r2 = mobi.mmdt.ott.provider.p170d.C1598c.m8100a(r18, r19, r20, r21, r22, r23, r24, r26, r27, r28, r29, r30, r31, r32, r33);\n r2 = r2.getLastPathSegment();\n r2 = java.lang.Long.parseLong(r2);\n r15 = java.lang.Long.valueOf(r2);\n L_0x029c:\n r0 = r34;\n r2 = r0.f4757a;\n r0 = r34;\n r3 = r0.f4761e;\n r0 = r34;\n r5 = r0.f4760d;\n r0 = r34;\n r6 = r0.f4762f;\n r7 = \"SEND_TIME_IN_GMT\";\n r6 = r6.get(r7);\n r6 = (java.lang.String) r6;\n r6 = java.lang.Long.parseLong(r6);\n r11 = mobi.mmdt.ott.provider.p169c.C1593m.READ;\n r0 = r34;\n r12 = r0.f4759c;\n r13 = mobi.mmdt.ott.provider.p169c.C1595o.GROUP;\n r0 = r34;\n r14 = r0.f4758b;\n mobi.mmdt.ott.provider.p169c.C1583c.m7966a(r2, r3, r4, r5, r6, r8, r10, r11, r12, r13, r14, r15, r16);\n goto L_0x00f2;\n L_0x02c9:\n r33 = r5;\n r4 = r6;\n goto L_0x0046;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: mobi.mmdt.ott.logic.a.c.a.b.s.c():void\");\n }",
"public int g()\r\n/* 601: */ {\r\n/* 602:645 */ return 0;\r\n/* 603: */ }",
"public void run() {\n /*\n r8 = this;\n r1 = com.umeng.commonsdk.proguard.b.b;\t Catch:{ Throwable -> 0x00c9 }\n monitor-enter(r1);\t Catch:{ Throwable -> 0x00c9 }\n r0 = r8.a;\t Catch:{ all -> 0x00c6 }\n if (r0 == 0) goto L_0x00c4;\n L_0x0009:\n r0 = r8.b;\t Catch:{ all -> 0x00c6 }\n if (r0 == 0) goto L_0x00c4;\n L_0x000d:\n r0 = com.umeng.commonsdk.proguard.b.a;\t Catch:{ all -> 0x00c6 }\n if (r0 != 0) goto L_0x00c4;\n L_0x0013:\n r0 = 1;\n com.umeng.commonsdk.proguard.b.a = r0;\t Catch:{ all -> 0x00c6 }\n r0 = \"walle-crash\";\n r2 = 1;\n r2 = new java.lang.Object[r2];\t Catch:{ all -> 0x00c6 }\n r3 = 0;\n r4 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c6 }\n r4.<init>();\t Catch:{ all -> 0x00c6 }\n r5 = \"report thread is \";\n r4 = r4.append(r5);\t Catch:{ all -> 0x00c6 }\n r5 = com.umeng.commonsdk.proguard.b.a;\t Catch:{ all -> 0x00c6 }\n r4 = r4.append(r5);\t Catch:{ all -> 0x00c6 }\n r4 = r4.toString();\t Catch:{ all -> 0x00c6 }\n r2[r3] = r4;\t Catch:{ all -> 0x00c6 }\n com.umeng.commonsdk.statistics.common.e.a(r0, r2);\t Catch:{ all -> 0x00c6 }\n r0 = r8.b;\t Catch:{ all -> 0x00c6 }\n r0 = com.umeng.commonsdk.proguard.c.a(r0);\t Catch:{ all -> 0x00c6 }\n r2 = android.text.TextUtils.isEmpty(r0);\t Catch:{ all -> 0x00c6 }\n if (r2 != 0) goto L_0x00c4;\n L_0x0045:\n r2 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c6 }\n r2.<init>();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r3 = r3.getFilesDir();\t Catch:{ all -> 0x00c6 }\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"/\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"stateless\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"/\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"umpx_internal\";\n r3 = r3.getBytes();\t Catch:{ all -> 0x00c6 }\n r4 = 0;\n r3 = android.util.Base64.encodeToString(r3, r4);\t Catch:{ all -> 0x00c6 }\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r2 = r2.toString();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r4 = 10;\n com.umeng.commonsdk.stateless.f.a(r3, r2, r4);\t Catch:{ all -> 0x00c6 }\n r2 = new com.umeng.commonsdk.stateless.UMSLEnvelopeBuild;\t Catch:{ all -> 0x00c6 }\n r2.<init>();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r3 = r2.buildSLBaseHeader(r3);\t Catch:{ all -> 0x00c6 }\n r4 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r4.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"content\";\n r4.put(r5, r0);\t Catch:{ JSONException -> 0x00cb }\n r0 = \"ts\";\n r6 = java.lang.System.currentTimeMillis();\t Catch:{ JSONException -> 0x00cb }\n r4.put(r0, r6);\t Catch:{ JSONException -> 0x00cb }\n r0 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r0.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"crash\";\n r0.put(r5, r4);\t Catch:{ JSONException -> 0x00cb }\n r4 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r4.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"tp\";\n r4.put(r5, r0);\t Catch:{ JSONException -> 0x00cb }\n r0 = r8.a;\t Catch:{ JSONException -> 0x00cb }\n r5 = \"umpx_internal\";\n r0 = r2.buildSLEnvelope(r0, r3, r4, r5);\t Catch:{ JSONException -> 0x00cb }\n if (r0 == 0) goto L_0x00c4;\n L_0x00bc:\n r2 = \"exception\";\n r0 = r0.has(r2);\t Catch:{ JSONException -> 0x00cb }\n if (r0 != 0) goto L_0x00c4;\n L_0x00c4:\n monitor-exit(r1);\t Catch:{ all -> 0x00c6 }\n L_0x00c5:\n return;\n L_0x00c6:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x00c6 }\n throw r0;\t Catch:{ Throwable -> 0x00c9 }\n L_0x00c9:\n r0 = move-exception;\n goto L_0x00c5;\n L_0x00cb:\n r0 = move-exception;\n goto L_0x00c4;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.umeng.commonsdk.proguard.bb.run():void\");\n }",
"public static int m22557b(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = com.google.android.gms.internal.measurement.dr.m11788a(r1);\t Catch:{ zzyn -> 0x0005 }\n goto L_0x000c;\n L_0x0005:\n r0 = com.google.android.gms.internal.measurement.zzvo.f10281a;\n r1 = r1.getBytes(r0);\n r0 = r1.length;\n L_0x000c:\n r1 = m22576g(r0);\n r1 = r1 + r0;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzut.b(java.lang.String):int\");\n }",
"public final void a(com.tencent.mm.plugin.game.c.ai r12, java.lang.String r13, int r14, int r15) {\n /*\n r11 = this;\n if (r12 == 0) goto L_0x000a;\n L_0x0002:\n r0 = r12.nmz;\n r0 = com.tencent.mm.sdk.platformtools.bi.cC(r0);\n if (r0 == 0) goto L_0x0010;\n L_0x000a:\n r0 = 8;\n r11.setVisibility(r0);\n L_0x000f:\n return;\n L_0x0010:\n r11.mAppId = r13;\n r11.niV = r15;\n r0 = r12.nmz;\n r7 = r0.iterator();\n L_0x001a:\n r0 = r7.hasNext();\n if (r0 == 0) goto L_0x000f;\n L_0x0020:\n r0 = r7.next();\n r4 = r0;\n r4 = (com.tencent.mm.plugin.game.c.k) r4;\n if (r4 == 0) goto L_0x001a;\n L_0x0029:\n r5 = new com.tencent.mm.plugin.game.d.e$a$a;\n r5.<init>();\n r0 = r4.nlz;\n switch(r0) {\n case 1: goto L_0x004a;\n case 2: goto L_0x00e3;\n default: goto L_0x0033;\n };\n L_0x0033:\n r0 = 2;\n if (r14 != r0) goto L_0x001a;\n L_0x0036:\n r0 = r11.mContext;\n r1 = 10;\n r2 = 1002; // 0x3ea float:1.404E-42 double:4.95E-321;\n r3 = r4.nlw;\n r4 = r4.nlr;\n r6 = com.tencent.mm.plugin.game.model.ap.CD(r4);\n r4 = r13;\n r5 = r15;\n com.tencent.mm.plugin.game.model.ap.a(r0, r1, r2, r3, r4, r5, r6);\n goto L_0x001a;\n L_0x004a:\n r0 = r4.nlx;\n if (r0 == 0) goto L_0x001a;\n L_0x004e:\n r11.e(r11);\n r0 = r11.DF;\n r1 = com.tencent.mm.R.i.djD;\n r2 = 1;\n r6 = r0.inflate(r1, r11, r2);\n r0 = com.tencent.mm.R.h.cxP;\n r0 = r6.findViewById(r0);\n r0 = (android.widget.TextView) r0;\n r1 = com.tencent.mm.R.h.cxR;\n r1 = r6.findViewById(r1);\n r1 = (android.widget.TextView) r1;\n r2 = com.tencent.mm.R.h.cxO;\n r2 = r6.findViewById(r2);\n r2 = (com.tencent.mm.plugin.game.widget.EllipsizingTextView) r2;\n r3 = 2;\n r2.setMaxLines(r3);\n r3 = com.tencent.mm.R.h.cxQ;\n r3 = r6.findViewById(r3);\n r3 = (android.widget.ImageView) r3;\n r8 = r11.mContext;\n r9 = r4.nlv;\n r10 = r0.getTextSize();\n r8 = com.tencent.mm.pluginsdk.ui.d.i.b(r8, r9, r10);\n r0.setText(r8);\n r0 = r11.mContext;\n r8 = r4.nlx;\n r8 = r8.fpg;\n r9 = r1.getTextSize();\n r0 = com.tencent.mm.pluginsdk.ui.d.i.b(r0, r8, r9);\n r1.setText(r0);\n r0 = r11.mContext;\n r1 = r4.nlx;\n r1 = r1.nkL;\n r8 = r2.getTextSize();\n r0 = com.tencent.mm.pluginsdk.ui.d.i.b(r0, r1, r8);\n r2.setText(r0);\n r0 = r4.nlx;\n r0 = r0.nkM;\n r0 = com.tencent.mm.sdk.platformtools.bi.oN(r0);\n if (r0 != 0) goto L_0x00dd;\n L_0x00b9:\n r0 = com.tencent.mm.plugin.game.d.e.aSC();\n r1 = r4.nlx;\n r1 = r1.nkM;\n r2 = r5.aSD();\n r0.a(r3, r1, r2);\n L_0x00c8:\n r0 = new com.tencent.mm.plugin.game.ui.f$a;\n r1 = r4.nlw;\n r2 = r4.nlx;\n r2 = r2.nkN;\n r3 = r4.nlr;\n r0.<init>(r1, r2, r3);\n r6.setTag(r0);\n r6.setOnClickListener(r11);\n goto L_0x0033;\n L_0x00dd:\n r0 = 8;\n r3.setVisibility(r0);\n goto L_0x00c8;\n L_0x00e3:\n r0 = r4.nly;\n if (r0 == 0) goto L_0x001a;\n L_0x00e7:\n r11.e(r11);\n r0 = r11.DF;\n r1 = com.tencent.mm.R.i.djE;\n r2 = 1;\n r3 = r0.inflate(r1, r11, r2);\n r0 = com.tencent.mm.R.h.cOG;\n r0 = r3.findViewById(r0);\n r0 = (android.widget.TextView) r0;\n r1 = com.tencent.mm.R.h.cOI;\n r1 = r3.findViewById(r1);\n r1 = (android.widget.TextView) r1;\n r2 = com.tencent.mm.R.h.cOH;\n r2 = r3.findViewById(r2);\n r2 = (android.widget.ImageView) r2;\n r6 = r11.mContext;\n r8 = r4.nlv;\n r9 = r0.getTextSize();\n r6 = com.tencent.mm.pluginsdk.ui.d.i.b(r6, r8, r9);\n r0.setText(r6);\n r0 = r11.mContext;\n r6 = r4.nly;\n r6 = r6.fpg;\n r8 = r1.getTextSize();\n r0 = com.tencent.mm.pluginsdk.ui.d.i.b(r0, r6, r8);\n r1.setText(r0);\n r0 = r4.nly;\n r0 = r0.nkM;\n r0 = com.tencent.mm.sdk.platformtools.bi.oN(r0);\n if (r0 != 0) goto L_0x016f;\n L_0x0135:\n r0 = r4.nly;\n r0 = r0.npS;\n r1 = 1;\n if (r0 != r1) goto L_0x0167;\n L_0x013c:\n r0 = 1;\n r5.nDa = r0;\n r0 = com.tencent.mm.R.g.bCF;\n r5.nDd = r0;\n L_0x0143:\n r0 = com.tencent.mm.plugin.game.d.e.aSC();\n r1 = r4.nly;\n r1 = r1.nkM;\n r5 = r5.aSD();\n r0.a(r2, r1, r5);\n L_0x0152:\n r0 = new com.tencent.mm.plugin.game.ui.f$a;\n r1 = r4.nlw;\n r2 = r4.nly;\n r2 = r2.nkN;\n r5 = r4.nlr;\n r0.<init>(r1, r2, r5);\n r3.setTag(r0);\n r3.setOnClickListener(r11);\n goto L_0x0033;\n L_0x0167:\n r0 = 1;\n r5.hFJ = r0;\n r0 = com.tencent.mm.R.g.bCE;\n r5.nDd = r0;\n goto L_0x0143;\n L_0x016f:\n r0 = 8;\n r2.setVisibility(r0);\n goto L_0x0152;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.game.ui.f.a(com.tencent.mm.plugin.game.c.ai, java.lang.String, int, int):void\");\n }",
"public java.lang.Object mo13022a(java.lang.String r18, kotlin.coroutines.Continuation<? super java.lang.Boolean> r19) {\n /*\n r17 = this;\n r0 = r17\n r1 = r19\n boolean r2 = r1 instanceof p008c.p009a.p024e.p026b.C0963b.C0970g\n if (r2 == 0) goto L_0x0017\n r2 = r1\n c.a.e.b.b$g r2 = (p008c.p009a.p024e.p026b.C0963b.C0970g) r2\n int r3 = r2.f1086b\n r4 = -2147483648(0xffffffff80000000, float:-0.0)\n r5 = r3 & r4\n if (r5 == 0) goto L_0x0017\n int r3 = r3 - r4\n r2.f1086b = r3\n goto L_0x001c\n L_0x0017:\n c.a.e.b.b$g r2 = new c.a.e.b.b$g\n r2.<init>(r0, r1)\n L_0x001c:\n java.lang.Object r1 = r2.f1085a\n java.lang.Object r3 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()\n int r4 = r2.f1086b\n r5 = 0\n r6 = 2\n r7 = 1\n if (r4 == 0) goto L_0x0051\n if (r4 == r7) goto L_0x0045\n if (r4 != r6) goto L_0x003d\n java.lang.Object r3 = r2.f1090f\n java.lang.String r3 = (java.lang.String) r3\n java.lang.Object r3 = r2.f1089e\n java.lang.String r3 = (java.lang.String) r3\n java.lang.Object r2 = r2.f1088d\n c.a.e.b.b r2 = (p008c.p009a.p024e.p026b.C0963b) r2\n kotlin.ResultKt.throwOnFailure(r1)\n goto L_0x00a1\n L_0x003d:\n java.lang.IllegalStateException r1 = new java.lang.IllegalStateException\n java.lang.String r2 = \"call to 'resume' before 'invoke' with coroutine\"\n r1.<init>(r2)\n throw r1\n L_0x0045:\n java.lang.Object r4 = r2.f1089e\n java.lang.String r4 = (java.lang.String) r4\n java.lang.Object r8 = r2.f1088d\n c.a.e.b.b r8 = (p008c.p009a.p024e.p026b.C0963b) r8\n kotlin.ResultKt.throwOnFailure(r1)\n goto L_0x0066\n L_0x0051:\n kotlin.ResultKt.throwOnFailure(r1)\n c.a.e.c.a r1 = r0.f1032c\n r2.f1088d = r0\n r4 = r18\n r2.f1089e = r4\n r2.f1086b = r7\n java.lang.Object r1 = r1.mo13034a(r2)\n if (r1 != r3) goto L_0x0065\n return r3\n L_0x0065:\n r8 = r0\n L_0x0066:\n c.a.e.c.a r1 = r8.f1032c\n java.lang.String r1 = r1.mo13035a()\n if (r1 == 0) goto L_0x00b7\n org.mobileid.time_key.web_service.TimeKeyWebService r15 = r8.f1031b\n org.mobileid.time_key.web_service.ActionOnKeyBody r14 = new org.mobileid.time_key.web_service.ActionOnKeyBody\n java.util.Locale r9 = java.util.Locale.getDefault()\n java.lang.String r10 = \"Locale.getDefault()\"\n kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r9, r10)\n if (r4 == 0) goto L_0x00af\n java.lang.String r10 = r4.toUpperCase(r9)\n java.lang.String r9 = \"(this as java.lang.String).toUpperCase(locale)\"\n kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r10, r9)\n r12 = 0\n r13 = 4\n r16 = 0\n r9 = r14\n r11 = r1\n r7 = r14\n r14 = r16\n r9.<init>(r10, r11, r12, r13, r14)\n r2.f1088d = r8\n r2.f1089e = r4\n r2.f1090f = r1\n r2.f1086b = r6\n java.lang.Object r1 = r15.activateKey(r7, r2)\n if (r1 != r3) goto L_0x00a1\n return r3\n L_0x00a1:\n org.mobileid.requester.web_service.Response r1 = (org.mobileid.requester.web_service.Response) r1\n java.lang.Object r1 = r1.getResult()\n if (r1 == 0) goto L_0x00aa\n r5 = 1\n L_0x00aa:\n java.lang.Boolean r1 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(r5)\n return r1\n L_0x00af:\n java.lang.NullPointerException r1 = new java.lang.NullPointerException\n java.lang.String r2 = \"null cannot be cast to non-null type java.lang.String\"\n r1.<init>(r2)\n throw r1\n L_0x00b7:\n java.lang.Boolean r1 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(r5)\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p008c.p009a.p024e.p026b.C0963b.mo13022a(java.lang.String, kotlin.coroutines.Continuation):java.lang.Object\");\n }",
"private void method_7082(class_1293 param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void mo5832b(android.content.Context r4) {\n /*\n r3 = this;\n r0 = 1\n java.lang.String r1 = m3304x() // Catch:{ a -> 0x002f, IOException -> 0x0027 }\n r3.mo5830a(r0, r1) // Catch:{ a -> 0x002f, IOException -> 0x0027 }\n L_0x0008:\n r0 = 2\n java.lang.String r1 = m3302v() // Catch:{ a -> 0x002d, IOException -> 0x0027 }\n r3.mo5830a(r0, r1) // Catch:{ a -> 0x002d, IOException -> 0x0027 }\n L_0x0010:\n r0 = 25\n java.lang.Long r1 = m3303w() // Catch:{ a -> 0x002b, IOException -> 0x0027 }\n long r1 = r1.longValue() // Catch:{ a -> 0x002b, IOException -> 0x0027 }\n r3.mo5829a(r0, r1) // Catch:{ a -> 0x002b, IOException -> 0x0027 }\n L_0x001d:\n r0 = 24\n java.lang.String r1 = m3300d(r4) // Catch:{ a -> 0x0029, IOException -> 0x0027 }\n r3.mo5830a(r0, r1) // Catch:{ a -> 0x0029, IOException -> 0x0027 }\n L_0x0026:\n return\n L_0x0027:\n r0 = move-exception\n goto L_0x0026\n L_0x0029:\n r0 = move-exception\n goto L_0x0026\n L_0x002b:\n r0 = move-exception\n goto L_0x001d\n L_0x002d:\n r0 = move-exception\n goto L_0x0010\n L_0x002f:\n r0 = move-exception\n goto L_0x0008\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.C1107j.mo5832b(android.content.Context):void\");\n }",
"private boolean method_2253(class_1033 param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"public int method_7084(String param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }",
"@Override\n public final void run() {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 3: invokevirtual cd.I:()V\n // 6: getstatic u.Code:Lbn;\n // 9: invokeinterface bn.p:()Z\n // 14: ifne 43\n // 17: aload_0 \n // 18: monitorenter \n // 19: invokestatic com/opera/mini/android/bf.c:()Z\n // 22: ifne 62\n // 25: aload_0 \n // 26: iconst_0 \n // 27: invokestatic cg.Code:(Ljava/lang/Object;I)V\n // 30: getstatic u.Code:Lbn;\n // 33: invokeinterface bn.p:()Z\n // 38: ifeq 62\n // 41: aload_0 \n // 42: monitorexit \n // 43: invokestatic com/opera/mini/android/bf.l:()Lcom/opera/mini/android/k;\n // 46: ifnull 55\n // 49: invokestatic com/opera/mini/android/bf.l:()Lcom/opera/mini/android/k;\n // 52: invokevirtual com/opera/mini/android/k.g:()V\n // 55: invokestatic com/opera/mini/android/bf.B:()Lcd;\n // 58: invokevirtual cd.Z:()V\n // 61: return \n // 62: invokestatic com/opera/mini/android/bf.d:()Z\n // 65: pop \n // 66: invokestatic com/opera/mini/android/bf.e:()I\n // 69: istore_1 \n // 70: invokestatic com/opera/mini/android/bf.f:()I\n // 73: istore_2 \n // 74: invokestatic com/opera/mini/android/bf.g:()I\n // 77: istore_3 \n // 78: invokestatic com/opera/mini/android/bf.h:()I\n // 81: istore 4\n // 83: iconst_0 \n // 84: invokestatic com/opera/mini/android/bf.Code:(I)I\n // 87: pop \n // 88: aload_0 \n // 89: monitorexit \n // 90: aload_0 \n // 91: getfield com/opera/mini/android/bg.Code:Lcom/opera/mini/android/bf;\n // 94: invokevirtual com/opera/mini/android/bf.getWidth:()I\n // 97: istore 5\n // 99: aload_0 \n // 100: getfield com/opera/mini/android/bg.Code:Lcom/opera/mini/android/bf;\n // 103: invokevirtual com/opera/mini/android/bf.getHeight:()I\n // 106: istore 6\n // 108: iload 5\n // 110: ifle 6\n // 113: iload 6\n // 115: ifle 6\n // 118: invokestatic com/opera/mini/android/bf.i:()Landroid/graphics/Bitmap;\n // 121: ifnull 146\n // 124: invokestatic com/opera/mini/android/bf.i:()Landroid/graphics/Bitmap;\n // 127: invokevirtual android/graphics/Bitmap.getWidth:()I\n // 130: iload 5\n // 132: if_icmpne 146\n // 135: invokestatic com/opera/mini/android/bf.i:()Landroid/graphics/Bitmap;\n // 138: invokevirtual android/graphics/Bitmap.getHeight:()I\n // 141: iload 6\n // 143: if_icmpeq 209\n // 146: aconst_null \n // 147: invokestatic com/opera/mini/android/bf.Code:(Lcom/opera/mini/android/k;)Lcom/opera/mini/android/k;\n // 150: pop \n // 151: invokestatic com/opera/mini/android/bf.i:()Landroid/graphics/Bitmap;\n // 154: ifnull 168\n // 157: invokestatic com/opera/mini/android/bf.i:()Landroid/graphics/Bitmap;\n // 160: invokevirtual android/graphics/Bitmap.recycle:()V\n // 163: aconst_null \n // 164: invokestatic com/opera/mini/android/bf.Code:(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;\n // 167: pop \n // 168: iload 5\n // 170: iload 6\n // 172: invokestatic com/opera/mini/android/bg.Code:(II)Landroid/graphics/Bitmap;\n // 175: invokestatic com/opera/mini/android/bf.Code:(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;\n // 178: pop \n // 179: invokestatic com/opera/mini/android/bf.i:()Landroid/graphics/Bitmap;\n // 182: ifnull 55\n // 185: aload_0 \n // 186: monitorenter \n // 187: invokestatic com/opera/mini/android/bf.j:()I\n // 190: pop \n // 191: invokestatic com/opera/mini/android/bf.k:()I\n // 194: pop \n // 195: iload 5\n // 197: invokestatic com/opera/mini/android/bf.Code:(I)I\n // 200: pop \n // 201: iload 6\n // 203: invokestatic com/opera/mini/android/bf.I:(I)I\n // 206: pop \n // 207: aload_0 \n // 208: monitorexit \n // 209: invokestatic com/opera/mini/android/bf.l:()Lcom/opera/mini/android/k;\n // 212: ifnonnull 242\n // 215: invokestatic com/opera/mini/android/bf.i:()Landroid/graphics/Bitmap;\n // 218: invokestatic com/opera/mini/android/k.I:(Landroid/graphics/Bitmap;)Lcom/opera/mini/android/k;\n // 221: invokestatic com/opera/mini/android/bf.Code:(Lcom/opera/mini/android/k;)Lcom/opera/mini/android/k;\n // 224: pop \n // 225: invokestatic com/opera/mini/android/bf.l:()Lcom/opera/mini/android/k;\n // 228: iconst_1 \n // 229: invokevirtual com/opera/mini/android/k.Code:(Z)V\n // 232: aload_0 \n // 233: getfield com/opera/mini/android/bg.Code:Lcom/opera/mini/android/bf;\n // 236: invokestatic com/opera/mini/android/bf.Code:(Lcom/opera/mini/android/bf;)Lcom/opera/mini/android/MiniView;\n // 239: invokevirtual com/opera/mini/android/MiniView.I:()V\n // 242: invokestatic com/opera/mini/android/bf.l:()Lcom/opera/mini/android/k;\n // 245: invokevirtual com/opera/mini/android/k.a:()Z\n // 248: ifeq 290\n // 251: invokestatic com/opera/mini/android/bf.l:()Lcom/opera/mini/android/k;\n // 254: iload_1 \n // 255: iload_2 \n // 256: iload_3 \n // 257: iload 4\n // 259: invokevirtual com/opera/mini/android/k.Code:(IIII)V\n // 262: invokestatic com/opera/mini/android/bf.l:()Lcom/opera/mini/android/k;\n // 265: iload_1 \n // 266: iload_2 \n // 267: iload_3 \n // 268: iload 4\n // 270: ldc 16777215\n // 272: invokevirtual com/opera/mini/android/k.Z:(IIIII)V\n // 275: getstatic com/opera/mini/android/Browser.Code:Lcom/opera/mini/android/a;\n // 278: invokestatic com/opera/mini/android/bf.l:()Lcom/opera/mini/android/k;\n // 281: invokevirtual com/opera/mini/android/a.Code:(Law;)V\n // 284: invokestatic com/opera/mini/android/bf.l:()Lcom/opera/mini/android/k;\n // 287: invokevirtual com/opera/mini/android/k.b:()V\n // 290: invokestatic com/opera/mini/android/bf.l:()Lcom/opera/mini/android/k;\n // 293: invokestatic com/opera/mini/android/bf.i:()Landroid/graphics/Bitmap;\n // 296: invokevirtual com/opera/mini/android/k.Code:(Landroid/graphics/Bitmap;)V\n // 299: aload_0 \n // 300: getfield com/opera/mini/android/bg.Code:Lcom/opera/mini/android/bf;\n // 303: invokestatic com/opera/mini/android/bf.I:(Lcom/opera/mini/android/bf;)Landroid/view/SurfaceHolder;\n // 306: invokeinterface android/view/SurfaceHolder.lockCanvas:()Landroid/graphics/Canvas;\n // 311: astore 7\n // 313: aload 7\n // 315: ifnull 6\n // 318: aload 7\n // 320: invokestatic com/opera/mini/android/bf.i:()Landroid/graphics/Bitmap;\n // 323: fconst_0 \n // 324: fconst_0 \n // 325: aconst_null \n // 326: invokevirtual android/graphics/Canvas.drawBitmap:(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V\n // 329: aload_0 \n // 330: getfield com/opera/mini/android/bg.Code:Lcom/opera/mini/android/bf;\n // 333: invokestatic com/opera/mini/android/bf.I:(Lcom/opera/mini/android/bf;)Landroid/view/SurfaceHolder;\n // 336: aload 7\n // 338: invokeinterface android/view/SurfaceHolder.unlockCanvasAndPost:(Landroid/graphics/Canvas;)V\n // 343: goto 6\n // 346: astore 7\n // 348: invokestatic com/opera/mini/android/bf.B:()Lcd;\n // 351: invokevirtual cd.Z:()V\n // 354: aload 7\n // 356: athrow \n // 357: astore 7\n // 359: aload_0 \n // 360: monitorexit \n // 361: aload 7\n // 363: athrow \n // 364: astore 7\n // 366: aload_0 \n // 367: monitorexit \n // 368: aload 7\n // 370: athrow \n // Exceptions:\n // Try Handler\n // Start End Start End Type\n // ----- ----- ----- ----- ----\n // 6 19 346 357 Any\n // 19 43 357 364 Any\n // 43 55 346 357 Any\n // 62 90 357 364 Any\n // 90 108 346 357 Any\n // 118 146 346 357 Any\n // 146 168 346 357 Any\n // 168 187 346 357 Any\n // 187 209 364 371 Any\n // 209 242 346 357 Any\n // 242 290 346 357 Any\n // 290 313 346 357 Any\n // 318 343 346 357 Any\n // 359 364 346 357 Any\n // 366 371 346 357 Any\n // \n // The error that occurred was:\n // \n // java.lang.IndexOutOfBoundsException: Index: 163, Size: 163\n // at java.util.ArrayList.rangeCheck(ArrayList.java:659)\n // at java.util.ArrayList.get(ArrayList.java:435)\n // at com.strobel.decompiler.ast.AstBuilder.convertToAst(AstBuilder.java:3379)\n // at com.strobel.decompiler.ast.AstBuilder.build(AstBuilder.java:113)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:206)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:94)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:840)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:733)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:610)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:577)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:193)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:160)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:135)\n // at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)\n // at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)\n // at com.strobel.decompiler.DecompilerDriver.decompileType(DecompilerDriver.java:333)\n // at com.strobel.decompiler.DecompilerDriver.decompileJar(DecompilerDriver.java:254)\n // at com.strobel.decompiler.DecompilerDriver.main(DecompilerDriver.java:144)\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }",
"void m5770d() throws C0841b;",
"protected void method_2045(class_1045 param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"public final void mo91715d() {\n }",
"private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }",
"private void m14047a(@javax.annotation.Nullable okhttp3.internal.p155a.C2918d.C2915a r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = this;\n if (r1 == 0) goto L_0x0005;\n L_0x0002:\n r1.m14100c();\t Catch:{ IOException -> 0x0005 }\n L_0x0005:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.a(okhttp3.internal.a.d$a):void\");\n }",
"public com.google.cX a(com.google.cM r5) {\n /*\n r4 = this;\n r0 = 0;\n r1 = com.google.bA.b;\n r2 = com.google.cM.k();\n if (r5 != r2) goto L_0x000a;\n L_0x0009:\n return r4;\n L_0x000a:\n r2 = r4.h;\n if (r2 != 0) goto L_0x003f;\n L_0x000e:\n r2 = com.google.cM.a(r5);\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x0079;\n L_0x0018:\n r2 = r4.g;\n r2 = r2.isEmpty();\n if (r2 == 0) goto L_0x002e;\n L_0x0020:\n r2 = com.google.cM.a(r5);\n r4.g = r2;\n r2 = r4.f;\n r2 = r2 & -2;\n r4.f = r2;\n if (r1 == 0) goto L_0x003a;\n L_0x002e:\n r4.j();\n r2 = r4.g;\n r3 = com.google.cM.a(r5);\n r2.addAll(r3);\n L_0x003a:\n r4.g();\n if (r1 == 0) goto L_0x0079;\n L_0x003f:\n r2 = com.google.cM.a(r5);\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x0079;\n L_0x0049:\n r2 = r4.h;\n r2 = r2.i();\n if (r2 == 0) goto L_0x0070;\n L_0x0051:\n r2 = r4.h;\n r2.b();\n r4.h = r0;\n r2 = com.google.cM.a(r5);\n r4.g = r2;\n r2 = r4.f;\n r2 = r2 & -2;\n r4.f = r2;\n r2 = com.google.bL.d;\n if (r2 == 0) goto L_0x006c;\n L_0x0068:\n r0 = r4.b();\n L_0x006c:\n r4.h = r0;\n if (r1 == 0) goto L_0x0079;\n L_0x0070:\n r0 = r4.h;\n r1 = com.google.cM.a(r5);\n r0.a(r1);\n L_0x0079:\n r4.a(r5);\n r0 = r5.getUnknownFields();\n r4.a(r0);\n goto L_0x0009;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.cX.a(com.google.cM):com.google.cX\");\n }",
"@Test(timeout = 4000)\n public void test044() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(4096);\n ClassWriter classWriter1 = new ClassWriter((-2894));\n String[] stringArray0 = new String[7];\n stringArray0[0] = \"ConstantValue\";\n stringArray0[1] = \"LocalVariableTable\";\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, true);\n stringArray0[2] = \"ConstantValue\";\n stringArray0[3] = \"ConstantValue\";\n stringArray0[4] = \"0T1MW_`O#}<L\";\n stringArray0[5] = \"h#w=z5(0SfaM)DKLY\";\n stringArray0[6] = \"Synthetic\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 1, \"ConstantValue\", \"h#w=z5(0SfaM)DKLY\", \"Synthetic\", stringArray0, true, false);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"LocalVariableTable\");\n Label label0 = new Label();\n Edge edge0 = label0.successors;\n // Undeclared exception!\n try { \n methodWriter0.visitMethodInsn((-2894), \"/#p[v!vM>^U#((tz?0\", \"0T1MW_`O#}<L\", \"Code\");\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }",
"static /* synthetic */ void m200-wrap4(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap4(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap4(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }",
"static /* synthetic */ void m201-wrap5(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap5(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap5(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }",
"protected void method_2246(class_1045 param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"public final synchronized java.lang.String m92g(java.lang.String r5) {\n /*\n r4 = this;\n r1 = 1;\n r0 = 0;\n monitor-enter(r4);\n if (r5 == 0) goto L_0x002c;\n L_0x0005:\n r2 = r5.trim();\t Catch:{ all -> 0x0037 }\n r2 = r2.length();\t Catch:{ all -> 0x0037 }\n if (r2 <= 0) goto L_0x002c;\n L_0x000f:\n if (r0 == 0) goto L_0x002e;\n L_0x0011:\n r0 = \"key should not be empty %s\";\n r1 = 1;\n r1 = new java.lang.Object[r1];\t Catch:{ all -> 0x0037 }\n r2 = 0;\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0037 }\n r3.<init>();\t Catch:{ all -> 0x0037 }\n r3 = r3.append(r5);\t Catch:{ all -> 0x0037 }\n r3 = r3.toString();\t Catch:{ all -> 0x0037 }\n r1[r2] = r3;\t Catch:{ all -> 0x0037 }\n com.tencent.bugly.legu.proguard.C0073w.m524d(r0, r1);\t Catch:{ all -> 0x0037 }\n r0 = 0;\n L_0x002a:\n monitor-exit(r4);\n return r0;\n L_0x002c:\n r0 = r1;\n goto L_0x000f;\n L_0x002e:\n r0 = r4.f112Y;\t Catch:{ all -> 0x0037 }\n r0 = r0.get(r5);\t Catch:{ all -> 0x0037 }\n r0 = (java.lang.String) r0;\t Catch:{ all -> 0x0037 }\n goto L_0x002a;\n L_0x0037:\n r0 = move-exception;\n monitor-exit(r4);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.bugly.legu.crashreport.common.info.a.g(java.lang.String):java.lang.String\");\n }",
"void m5768b() throws C0841b;",
"public final synchronized java.lang.String m90f(java.lang.String r5) {\n /*\n r4 = this;\n r1 = 1;\n r0 = 0;\n monitor-enter(r4);\n if (r5 == 0) goto L_0x002c;\n L_0x0005:\n r2 = r5.trim();\t Catch:{ all -> 0x0037 }\n r2 = r2.length();\t Catch:{ all -> 0x0037 }\n if (r2 <= 0) goto L_0x002c;\n L_0x000f:\n if (r0 == 0) goto L_0x002e;\n L_0x0011:\n r0 = \"key should not be empty %s\";\n r1 = 1;\n r1 = new java.lang.Object[r1];\t Catch:{ all -> 0x0037 }\n r2 = 0;\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0037 }\n r3.<init>();\t Catch:{ all -> 0x0037 }\n r3 = r3.append(r5);\t Catch:{ all -> 0x0037 }\n r3 = r3.toString();\t Catch:{ all -> 0x0037 }\n r1[r2] = r3;\t Catch:{ all -> 0x0037 }\n com.tencent.bugly.legu.proguard.C0073w.m524d(r0, r1);\t Catch:{ all -> 0x0037 }\n r0 = 0;\n L_0x002a:\n monitor-exit(r4);\n return r0;\n L_0x002c:\n r0 = r1;\n goto L_0x000f;\n L_0x002e:\n r0 = r4.f112Y;\t Catch:{ all -> 0x0037 }\n r0 = r0.remove(r5);\t Catch:{ all -> 0x0037 }\n r0 = (java.lang.String) r0;\t Catch:{ all -> 0x0037 }\n goto L_0x002a;\n L_0x0037:\n r0 = move-exception;\n monitor-exit(r4);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.bugly.legu.crashreport.common.info.a.f(java.lang.String):java.lang.String\");\n }",
"private android.graphics.Bitmap m6555f() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r5 = this;\n r0 = r5.getWidth();\n r1 = r5.getHeight();\n r2 = m6543a(r0, r1);\t Catch:{ OutOfMemoryError -> 0x000d }\n return r2;\n L_0x000d:\n r2 = \"ShimmerFrameLayout failed to create working bitmap\";\n r3 = new java.lang.StringBuilder;\n r3.<init>(r2);\n r2 = \" (width = \";\n r3.append(r2);\n r3.append(r0);\n r0 = \", height = \";\n r3.append(r0);\n r3.append(r1);\n r0 = \")\\n\\n\";\n r3.append(r0);\n r0 = java.lang.Thread.currentThread();\n r0 = r0.getStackTrace();\n r1 = r0.length;\n r2 = 0;\n L_0x0033:\n if (r2 >= r1) goto L_0x0046;\n L_0x0035:\n r4 = r0[r2];\n r4 = r4.toString();\n r3.append(r4);\n r4 = \"\\n\";\n r3.append(r4);\n r2 = r2 + 1;\n goto L_0x0033;\n L_0x0046:\n r0 = r3.toString();\n r1 = \"ShimmerFrameLayout\";\n android.util.Log.d(r1, r0);\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.shimmer.ShimmerFrameLayout.f():android.graphics.Bitmap\");\n }",
"public void c() {\n /*\n r14 = this;\n io.b.o<? super U> r0 = r14.actual\n r1 = 1\n r2 = 1\n L_0x0004:\n boolean r3 = r14.d()\n if (r3 == 0) goto L_0x000b\n return\n L_0x000b:\n io.b.e.c.d<U> r3 = r14.queue\n if (r3 == 0) goto L_0x0023\n L_0x000f:\n boolean r4 = r14.d()\n if (r4 == 0) goto L_0x0016\n return\n L_0x0016:\n java.lang.Object r4 = r3.poll()\n if (r4 != 0) goto L_0x001f\n if (r4 != 0) goto L_0x000f\n goto L_0x0023\n L_0x001f:\n r0.a(r4)\n goto L_0x000f\n L_0x0023:\n boolean r3 = r14.done\n io.b.e.c.d<U> r4 = r14.queue\n java.util.concurrent.atomic.AtomicReference<io.b.e.e.d.i$a<?, ?>[]> r5 = r14.observers\n java.lang.Object r5 = r5.get()\n io.b.e.e.d.i$a[] r5 = (io.b.e.e.d.i.a[]) r5\n int r6 = r5.length\n int r7 = r14.maxConcurrency\n r8 = 2147483647(0x7fffffff, float:NaN)\n r9 = 0\n if (r7 == r8) goto L_0x0044\n monitor-enter(r14)\n java.util.Queue<io.b.m<? extends U>> r7 = r14.sources // Catch:{ all -> 0x0041 }\n int r7 = r7.size() // Catch:{ all -> 0x0041 }\n monitor-exit(r14) // Catch:{ all -> 0x0041 }\n goto L_0x0045\n L_0x0041:\n r0 = move-exception\n monitor-exit(r14) // Catch:{ all -> 0x0041 }\n throw r0\n L_0x0044:\n r7 = 0\n L_0x0045:\n if (r3 == 0) goto L_0x0067\n if (r4 == 0) goto L_0x004f\n boolean r3 = r4.isEmpty()\n if (r3 == 0) goto L_0x0067\n L_0x004f:\n if (r6 != 0) goto L_0x0067\n if (r7 != 0) goto L_0x0067\n io.b.e.h.c r1 = r14.errors\n java.lang.Throwable r1 = r1.a()\n java.lang.Throwable r2 = io.b.e.h.f.f33557a\n if (r1 == r2) goto L_0x0066\n if (r1 != 0) goto L_0x0063\n r0.a()\n goto L_0x0066\n L_0x0063:\n r0.a((java.lang.Throwable) r1)\n L_0x0066:\n return\n L_0x0067:\n if (r6 == 0) goto L_0x0106\n long r3 = r14.lastId\n int r7 = r14.lastIndex\n if (r6 <= r7) goto L_0x0077\n r10 = r5[r7]\n long r10 = r10.id\n int r12 = (r10 > r3 ? 1 : (r10 == r3 ? 0 : -1))\n if (r12 == 0) goto L_0x0098\n L_0x0077:\n if (r6 > r7) goto L_0x007a\n r7 = 0\n L_0x007a:\n r10 = r7\n r7 = 0\n L_0x007c:\n if (r7 >= r6) goto L_0x008f\n r11 = r5[r10]\n long r11 = r11.id\n int r13 = (r11 > r3 ? 1 : (r11 == r3 ? 0 : -1))\n if (r13 != 0) goto L_0x0087\n goto L_0x008f\n L_0x0087:\n int r10 = r10 + 1\n if (r10 != r6) goto L_0x008c\n r10 = 0\n L_0x008c:\n int r7 = r7 + 1\n goto L_0x007c\n L_0x008f:\n r14.lastIndex = r10\n r3 = r5[r10]\n long r3 = r3.id\n r14.lastId = r3\n r7 = r10\n L_0x0098:\n r3 = 0\n r4 = 0\n L_0x009a:\n if (r3 >= r6) goto L_0x00fd\n boolean r10 = r14.d()\n if (r10 == 0) goto L_0x00a3\n return\n L_0x00a3:\n r10 = r5[r7]\n L_0x00a5:\n boolean r11 = r14.d()\n if (r11 == 0) goto L_0x00ac\n return\n L_0x00ac:\n io.b.e.c.e<U> r11 = r10.queue\n if (r11 != 0) goto L_0x00b1\n goto L_0x00b9\n L_0x00b1:\n java.lang.Object r12 = r11.poll() // Catch:{ Throwable -> 0x00e2 }\n if (r12 != 0) goto L_0x00d8\n if (r12 != 0) goto L_0x00a5\n L_0x00b9:\n boolean r11 = r10.done\n io.b.e.c.e<U> r12 = r10.queue\n if (r11 == 0) goto L_0x00d2\n if (r12 == 0) goto L_0x00c7\n boolean r11 = r12.isEmpty()\n if (r11 == 0) goto L_0x00d2\n L_0x00c7:\n r14.b(r10)\n boolean r4 = r14.d()\n if (r4 == 0) goto L_0x00d1\n return\n L_0x00d1:\n r4 = 1\n L_0x00d2:\n int r7 = r7 + 1\n if (r7 != r6) goto L_0x00fb\n r7 = 0\n goto L_0x00fb\n L_0x00d8:\n r0.a(r12)\n boolean r12 = r14.d()\n if (r12 == 0) goto L_0x00b1\n return\n L_0x00e2:\n r4 = move-exception\n io.b.c.b.b(r4)\n r10.b()\n io.b.e.h.c r11 = r14.errors\n r11.a(r4)\n boolean r4 = r14.d()\n if (r4 == 0) goto L_0x00f5\n return\n L_0x00f5:\n r14.b(r10)\n int r3 = r3 + 1\n r4 = 1\n L_0x00fb:\n int r3 = r3 + r1\n goto L_0x009a\n L_0x00fd:\n r14.lastIndex = r7\n r3 = r5[r7]\n long r5 = r3.id\n r14.lastId = r5\n goto L_0x0107\n L_0x0106:\n r4 = 0\n L_0x0107:\n if (r4 == 0) goto L_0x0129\n int r3 = r14.maxConcurrency\n if (r3 == r8) goto L_0x0004\n monitor-enter(r14)\n java.util.Queue<io.b.m<? extends U>> r3 = r14.sources // Catch:{ all -> 0x0126 }\n java.lang.Object r3 = r3.poll() // Catch:{ all -> 0x0126 }\n io.b.m r3 = (io.b.m) r3 // Catch:{ all -> 0x0126 }\n if (r3 != 0) goto L_0x0120\n int r3 = r14.wip // Catch:{ all -> 0x0126 }\n int r3 = r3 - r1\n r14.wip = r3 // Catch:{ all -> 0x0126 }\n monitor-exit(r14) // Catch:{ all -> 0x0126 }\n goto L_0x0004\n L_0x0120:\n monitor-exit(r14) // Catch:{ all -> 0x0126 }\n r14.a(r3)\n goto L_0x0004\n L_0x0126:\n r0 = move-exception\n monitor-exit(r14) // Catch:{ all -> 0x0126 }\n throw r0\n L_0x0129:\n int r2 = -r2\n int r2 = r14.addAndGet(r2)\n if (r2 != 0) goto L_0x0004\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.b.e.e.d.i.b.c():void\");\n }",
"public static boolean a(android.content.Context r4, byte[] r5) {\n /*\n r1 = d;\n r0 = 0;\n L_0x0003:\n r2 = c();\t Catch:{ Exception -> 0x003a }\n if (r2 != 0) goto L_0x0010;\n L_0x0009:\n r2 = e;\t Catch:{ Exception -> 0x003a }\n r2.block();\t Catch:{ Exception -> 0x003a }\n if (r1 == 0) goto L_0x0003;\n L_0x0010:\n r1 = z;\t Catch:{ Exception -> 0x003a }\n r2 = 22;\n r1 = r1[r2];\t Catch:{ Exception -> 0x003a }\n com.whatsapp.util.Log.i(r1);\t Catch:{ Exception -> 0x003a }\n r1 = com.whatsapp.contact.o.NOTIFICATION_DELTA;\t Catch:{ Exception -> 0x003a }\n r0 = a(r4, r1, r5);\t Catch:{ Exception -> 0x003a }\n r1 = b();\t Catch:{ Exception -> 0x0038 }\n if (r1 != 0) goto L_0x002e;\n L_0x0025:\n r1 = z;\t Catch:{ Exception -> 0x0038 }\n r2 = 16;\n r1 = r1[r2];\t Catch:{ Exception -> 0x0038 }\n com.whatsapp.util.Log.e(r1);\t Catch:{ Exception -> 0x0038 }\n L_0x002e:\n r1 = z;\n r2 = 18;\n r1 = r1[r2];\n com.whatsapp.util.Log.i(r1);\n L_0x0037:\n return r0;\n L_0x0038:\n r0 = move-exception;\n throw r0;\n L_0x003a:\n r1 = move-exception;\n r2 = z;\t Catch:{ all -> 0x005d }\n r3 = 20;\n r2 = r2[r3];\t Catch:{ all -> 0x005d }\n com.whatsapp.util.Log.b(r2, r1);\t Catch:{ all -> 0x005d }\n r1 = b();\n if (r1 != 0) goto L_0x0053;\n L_0x004a:\n r1 = z;\n r2 = 19;\n r1 = r1[r2];\n com.whatsapp.util.Log.e(r1);\n L_0x0053:\n r1 = z;\n r2 = 23;\n r1 = r1[r2];\n com.whatsapp.util.Log.i(r1);\n goto L_0x0037;\n L_0x005d:\n r0 = move-exception;\n r1 = b();\t Catch:{ Exception -> 0x0077 }\n if (r1 != 0) goto L_0x006d;\n L_0x0064:\n r1 = z;\t Catch:{ Exception -> 0x0077 }\n r2 = 21;\n r1 = r1[r2];\t Catch:{ Exception -> 0x0077 }\n com.whatsapp.util.Log.e(r1);\t Catch:{ Exception -> 0x0077 }\n L_0x006d:\n r1 = z;\n r2 = 17;\n r1 = r1[r2];\n com.whatsapp.util.Log.i(r1);\n throw r0;\n L_0x0077:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.contact.i.a(android.content.Context, byte[]):boolean\");\n }",
"private void c() {\n /*\n r14 = this;\n r12 = android.os.SystemClock.elapsedRealtime();\n r8 = r14.d();\n r0 = r14.t;\n if (r0 == 0) goto L_0x007a;\n L_0x000c:\n r0 = 1;\n r7 = r0;\n L_0x000e:\n r0 = r14.r;\n r0 = r0.a();\n if (r0 != 0) goto L_0x0018;\n L_0x0016:\n if (r7 == 0) goto L_0x007d;\n L_0x0018:\n r0 = 1;\n r10 = r0;\n L_0x001a:\n if (r10 != 0) goto L_0x0095;\n L_0x001c:\n r0 = r14.d;\n r0 = r0.b;\n if (r0 != 0) goto L_0x0028;\n L_0x0022:\n r0 = -1;\n r0 = (r8 > r0 ? 1 : (r8 == r0 ? 0 : -1));\n if (r0 != 0) goto L_0x0032;\n L_0x0028:\n r0 = r14.p;\n r0 = r12 - r0;\n r2 = 2000; // 0x7d0 float:2.803E-42 double:9.88E-321;\n r0 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r0 <= 0) goto L_0x0095;\n L_0x0032:\n r14.p = r12;\n r0 = r14.d;\n r1 = r14.f;\n r1 = r1.size();\n r0.a = r1;\n r0 = r14.c;\n r1 = r14.f;\n r2 = r14.o;\n r4 = r14.m;\n r6 = r14.d;\n r0.getChunkOperation(r1, r2, r4, r6);\n r0 = r14.d;\n r0 = r0.a;\n r0 = r14.a(r0);\n r1 = r14.d;\n r1 = r1.b;\n if (r1 != 0) goto L_0x0080;\n L_0x0059:\n r4 = -1;\n L_0x005b:\n r0 = r14.b;\n r2 = r14.m;\n r1 = r14;\n r6 = r10;\n r0 = r0.update(r1, r2, r4, r6);\n if (r7 == 0) goto L_0x0087;\n L_0x0067:\n r0 = r14.v;\n r0 = r12 - r0;\n r2 = r14.u;\n r2 = (long) r2;\n r2 = r14.c(r2);\n r0 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r0 < 0) goto L_0x0079;\n L_0x0076:\n r14.e();\n L_0x0079:\n return;\n L_0x007a:\n r0 = 0;\n r7 = r0;\n goto L_0x000e;\n L_0x007d:\n r0 = 0;\n r10 = r0;\n goto L_0x001a;\n L_0x0080:\n if (r0 == 0) goto L_0x0095;\n L_0x0082:\n r4 = r14.d();\n goto L_0x005b;\n L_0x0087:\n r1 = r14.r;\n r1 = r1.a();\n if (r1 != 0) goto L_0x0079;\n L_0x008f:\n if (r0 == 0) goto L_0x0079;\n L_0x0091:\n r14.f();\n goto L_0x0079;\n L_0x0095:\n r4 = r8;\n goto L_0x005b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer.chunk.ChunkSampleSource.c():void\");\n }",
"final com.google.bV a(java.util.Map r14) {\n /*\n r13_this = this;\n r6 = f;\n if (r14 == 0) goto L_0x013c;\n L_0x0004:\n r0 = com.google.fm.TRY_HARDER;\n r0 = r14.containsKey(r0);\n if (r0 == 0) goto L_0x013c;\n L_0x000c:\n r0 = 1;\n r2 = r0;\n L_0x000e:\n if (r14 == 0) goto L_0x0140;\n L_0x0010:\n r0 = com.google.fm.PURE_BARCODE;\n r0 = r14.containsKey(r0);\n if (r0 == 0) goto L_0x0140;\n L_0x0018:\n r0 = 1;\n L_0x0019:\n r1 = r13.b;\n r7 = r1.f();\n r1 = r13.b;\n r8 = r1.b();\n r1 = r7 * 3;\n r1 = r1 / 228;\n r3 = 3;\n if (r1 < r3) goto L_0x002e;\n L_0x002c:\n if (r2 == 0) goto L_0x002f;\n L_0x002e:\n r1 = 3;\n L_0x002f:\n r2 = 0;\n r3 = 5;\n r9 = new int[r3];\n r4 = r1 + -1;\n r5 = r1;\n L_0x0036:\n if (r4 >= r7) goto L_0x0127;\n L_0x0038:\n if (r2 != 0) goto L_0x0127;\n L_0x003a:\n r1 = 0;\n r3 = 0;\n r9[r1] = r3;\n r1 = 1;\n r3 = 0;\n r9[r1] = r3;\n r1 = 2;\n r3 = 0;\n r9[r1] = r3;\n r1 = 3;\n r3 = 0;\n r9[r1] = r3;\n r1 = 4;\n r3 = 0;\n r9[r1] = r3;\n r1 = 0;\n r3 = 0;\n L_0x0050:\n if (r3 >= r8) goto L_0x010d;\n L_0x0052:\n r10 = r13.b;\n r10 = r10.a(r3, r4);\n if (r10 == 0) goto L_0x0069;\n L_0x005a:\n r10 = r1 & 1;\n r11 = 1;\n if (r10 != r11) goto L_0x0061;\n L_0x005f:\n r1 = r1 + 1;\n L_0x0061:\n r10 = r9[r1];\n r10 = r10 + 1;\n r9[r1] = r10;\n if (r6 == 0) goto L_0x0109;\n L_0x0069:\n r10 = r1 & 1;\n if (r10 != 0) goto L_0x0103;\n L_0x006d:\n r10 = 4;\n if (r1 != r10) goto L_0x00f9;\n L_0x0070:\n r1 = a(r9);\n if (r1 == 0) goto L_0x015f;\n L_0x0076:\n r1 = r13.a(r9, r4, r3, r0);\n if (r1 == 0) goto L_0x0159;\n L_0x007c:\n r5 = 2;\n r1 = r13.a;\n if (r1 == 0) goto L_0x0156;\n L_0x0081:\n r1 = r13.b();\n if (r6 == 0) goto L_0x00c2;\n L_0x0087:\n r2 = r13.c();\n r10 = 2;\n r10 = r9[r10];\n if (r2 <= r10) goto L_0x0152;\n L_0x0090:\n r3 = 2;\n r3 = r9[r3];\n r2 = r2 - r3;\n r2 = r2 - r5;\n r3 = r4 + r2;\n r2 = r8 + -1;\n L_0x0099:\n if (r6 == 0) goto L_0x014e;\n L_0x009b:\n r4 = r5;\n r12 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r12;\n L_0x00a0:\n r5 = 0;\n r10 = 2;\n r10 = r9[r10];\n r9[r5] = r10;\n r5 = 1;\n r10 = 3;\n r10 = r9[r10];\n r9[r5] = r10;\n r5 = 2;\n r10 = 4;\n r10 = r9[r10];\n r9[r5] = r10;\n r5 = 3;\n r10 = 1;\n r9[r5] = r10;\n r5 = 4;\n r10 = 0;\n r9[r5] = r10;\n r5 = 3;\n if (r6 == 0) goto L_0x0147;\n L_0x00bd:\n r5 = r4;\n r4 = r2;\n r12 = r3;\n r3 = r1;\n r1 = r12;\n L_0x00c2:\n r2 = 0;\n r10 = 0;\n r11 = 0;\n r9[r10] = r11;\n r10 = 1;\n r11 = 0;\n r9[r10] = r11;\n r10 = 2;\n r11 = 0;\n r9[r10] = r11;\n r10 = 3;\n r11 = 0;\n r9[r10] = r11;\n r10 = 4;\n r11 = 0;\n r9[r10] = r11;\n if (r6 == 0) goto L_0x0143;\n L_0x00d9:\n r2 = 0;\n r10 = 2;\n r10 = r9[r10];\n r9[r2] = r10;\n r2 = 1;\n r10 = 3;\n r10 = r9[r10];\n r9[r2] = r10;\n r2 = 2;\n r10 = 4;\n r10 = r9[r10];\n r9[r2] = r10;\n r2 = 3;\n r10 = 1;\n r9[r2] = r10;\n r2 = 4;\n r10 = 0;\n r9[r2] = r10;\n r2 = 3;\n if (r6 == 0) goto L_0x0143;\n L_0x00f6:\n r12 = r2;\n r2 = r1;\n r1 = r12;\n L_0x00f9:\n r1 = r1 + 1;\n r10 = r9[r1];\n r10 = r10 + 1;\n r9[r1] = r10;\n if (r6 == 0) goto L_0x0109;\n L_0x0103:\n r10 = r9[r1];\n r10 = r10 + 1;\n r9[r1] = r10;\n L_0x0109:\n r3 = r3 + 1;\n if (r6 == 0) goto L_0x0050;\n L_0x010d:\n r1 = a(r9);\n if (r1 == 0) goto L_0x0124;\n L_0x0113:\n r1 = r13.a(r9, r4, r8, r0);\n if (r1 == 0) goto L_0x0124;\n L_0x0119:\n r1 = 0;\n r5 = r9[r1];\n r1 = r13.a;\n if (r1 == 0) goto L_0x0124;\n L_0x0120:\n r2 = r13.b();\n L_0x0124:\n r4 = r4 + r5;\n if (r6 == 0) goto L_0x0036;\n L_0x0127:\n r0 = r13.a();\n com.google.bm.a(r0);\n r1 = new com.google.bV;\n r1.<init>(r0);\n r0 = com.google.gC.a;\n if (r0 == 0) goto L_0x013b;\n L_0x0137:\n r0 = r6 + 1;\n f = r0;\n L_0x013b:\n return r1;\n L_0x013c:\n r0 = 0;\n r2 = r0;\n goto L_0x000e;\n L_0x0140:\n r0 = 0;\n goto L_0x0019;\n L_0x0143:\n r12 = r2;\n r2 = r1;\n r1 = r12;\n goto L_0x0109;\n L_0x0147:\n r12 = r1;\n r1 = r5;\n r5 = r4;\n r4 = r2;\n r2 = r3;\n r3 = r12;\n goto L_0x0109;\n L_0x014e:\n r4 = r3;\n r3 = r2;\n goto L_0x00c2;\n L_0x0152:\n r2 = r3;\n r3 = r4;\n goto L_0x0099;\n L_0x0156:\n r1 = r2;\n goto L_0x0087;\n L_0x0159:\n r1 = r3;\n r3 = r2;\n r2 = r4;\n r4 = r5;\n goto L_0x00a0;\n L_0x015f:\n r1 = r2;\n goto L_0x00d9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.bj.a(java.util.Map):com.google.bV\");\n }",
"private final void asB() {\n /*\n r6 = this;\n r0 = r6.cxs;\n r1 = r6.asp();\n r1 = r1.cCg;\n r2 = \"binding.depositAmountEdit\";\n kotlin.jvm.internal.i.e(r1, r2);\n r2 = r0 instanceof com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d;\n r3 = 0;\n r4 = 1;\n if (r2 == 0) goto L_0x002b;\n L_0x0013:\n r2 = r0;\n r2 = (com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d) r2;\n r2 = r2.aaH();\n if (r2 == 0) goto L_0x0027;\n L_0x001c:\n r2 = r2.aaT();\n if (r2 == 0) goto L_0x0027;\n L_0x0022:\n r2 = r2.size();\n goto L_0x0028;\n L_0x0027:\n r2 = 0;\n L_0x0028:\n if (r2 != 0) goto L_0x002b;\n L_0x002a:\n goto L_0x0040;\n L_0x002b:\n if (r0 == 0) goto L_0x0032;\n L_0x002d:\n r2 = r0.ZL();\n goto L_0x0033;\n L_0x0032:\n r2 = 0;\n L_0x0033:\n r5 = com.iqoption.core.microservices.billing.response.deposit.cashboxitem.CashboxItemType.USER_CARD;\n if (r2 != r5) goto L_0x0038;\n L_0x0037:\n goto L_0x0040;\n L_0x0038:\n r2 = r6.aoJ();\n if (r2 == 0) goto L_0x003f;\n L_0x003e:\n goto L_0x0040;\n L_0x003f:\n r4 = 0;\n L_0x0040:\n r2 = \"binding.depositPresetsList\";\n if (r4 == 0) goto L_0x0053;\n L_0x0044:\n r0 = r6.asp();\n r0 = r0.cCr;\n kotlin.jvm.internal.i.e(r0, r2);\n r0 = (android.view.View) r0;\n com.iqoption.core.ext.a.ak(r0);\n goto L_0x006b;\n L_0x0053:\n r3 = r6.asp();\n r3 = r3.cCr;\n kotlin.jvm.internal.i.e(r3, r2);\n r3 = (android.view.View) r3;\n com.iqoption.core.ext.a.al(r3);\n r2 = new com.iqoption.deposit.light.perform.c$s;\n r2.<init>(r6, r0);\n r2 = (android.view.View.OnFocusChangeListener) r2;\n r1.setOnFocusChangeListener(r2);\n L_0x006b:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c.asB():void\");\n }",
"public final void m15744a(com.p111d.p112a.p114b.C5301g r9) {\n /*\n r8 = this;\n r0 = r8.f17783i;\n r1 = r8.f17781g;\n r2 = 0;\n r3 = 1;\n if (r1 == 0) goto L_0x0010;\n L_0x0008:\n r4 = r0.m4038b();\n if (r4 == 0) goto L_0x0010;\n L_0x000e:\n r4 = r3;\n goto L_0x0011;\n L_0x0010:\n r4 = r2;\n L_0x0011:\n r5 = -1;\n L_0x0012:\n r5 = r5 + r3;\n r6 = 16;\n if (r5 < r6) goto L_0x0029;\n L_0x0017:\n r0 = r0.m4032a();\n if (r0 == 0) goto L_0x0148;\n L_0x001d:\n if (r1 == 0) goto L_0x0027;\n L_0x001f:\n r4 = r0.m4038b();\n if (r4 == 0) goto L_0x0027;\n L_0x0025:\n r4 = r3;\n goto L_0x0028;\n L_0x0027:\n r4 = r2;\n L_0x0028:\n r5 = r2;\n L_0x0029:\n r6 = r0.m4031a(r5);\n if (r6 == 0) goto L_0x0148;\n L_0x002f:\n if (r4 == 0) goto L_0x0043;\n L_0x0031:\n r7 = r0.m4039c(r5);\n if (r7 == 0) goto L_0x003a;\n L_0x0037:\n r9.writeObjectId(r7);\n L_0x003a:\n r7 = r0.m4040d(r5);\n if (r7 == 0) goto L_0x0043;\n L_0x0040:\n r9.writeTypeId(r7);\n L_0x0043:\n r7 = com.p111d.p112a.p121c.p138m.C6523u.C15401.f4807a;\n r6 = r6.ordinal();\n r6 = r7[r6];\n switch(r6) {\n case 1: goto L_0x0143;\n case 2: goto L_0x013e;\n case 3: goto L_0x0139;\n case 4: goto L_0x0134;\n case 5: goto L_0x011e;\n case 6: goto L_0x0108;\n case 7: goto L_0x00c5;\n case 8: goto L_0x0074;\n case 9: goto L_0x0070;\n case 10: goto L_0x006c;\n case 11: goto L_0x0068;\n case 12: goto L_0x0056;\n default: goto L_0x004e;\n };\n L_0x004e:\n r9 = new java.lang.RuntimeException;\n r0 = \"Internal error: should never end up through this code path\";\n r9.<init>(r0);\n throw r9;\n L_0x0056:\n r6 = r0.m4037b(r5);\n r7 = r6 instanceof com.p111d.p112a.p121c.p138m.C5378q;\n if (r7 == 0) goto L_0x0064;\n L_0x005e:\n r6 = (com.p111d.p112a.p121c.p138m.C5378q) r6;\n r6.m11598a(r9);\n goto L_0x0012;\n L_0x0064:\n r9.writeObject(r6);\n goto L_0x0012;\n L_0x0068:\n r9.writeNull();\n goto L_0x0012;\n L_0x006c:\n r9.writeBoolean(r2);\n goto L_0x0012;\n L_0x0070:\n r9.writeBoolean(r3);\n goto L_0x0012;\n L_0x0074:\n r6 = r0.m4037b(r5);\n r7 = r6 instanceof java.lang.Double;\n if (r7 == 0) goto L_0x0086;\n L_0x007c:\n r6 = (java.lang.Double) r6;\n r6 = r6.doubleValue();\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x0086:\n r7 = r6 instanceof java.math.BigDecimal;\n if (r7 == 0) goto L_0x0090;\n L_0x008a:\n r6 = (java.math.BigDecimal) r6;\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x0090:\n r7 = r6 instanceof java.lang.Float;\n if (r7 == 0) goto L_0x009f;\n L_0x0094:\n r6 = (java.lang.Float) r6;\n r6 = r6.floatValue();\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x009f:\n if (r6 != 0) goto L_0x00a2;\n L_0x00a1:\n goto L_0x0068;\n L_0x00a2:\n r7 = r6 instanceof java.lang.String;\n if (r7 == 0) goto L_0x00ad;\n L_0x00a6:\n r6 = (java.lang.String) r6;\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x00ad:\n r0 = new com.d.a.b.f;\n r1 = \"Unrecognized value type for VALUE_NUMBER_FLOAT: %s, can not serialize\";\n r3 = new java.lang.Object[r3];\n r4 = r6.getClass();\n r4 = r4.getName();\n r3[r2] = r4;\n r1 = java.lang.String.format(r1, r3);\n r0.<init>(r1, r9);\n throw r0;\n L_0x00c5:\n r6 = r0.m4037b(r5);\n r7 = r6 instanceof java.lang.Integer;\n if (r7 == 0) goto L_0x00d8;\n L_0x00cd:\n r6 = (java.lang.Integer) r6;\n r6 = r6.intValue();\n L_0x00d3:\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x00d8:\n r7 = r6 instanceof java.math.BigInteger;\n if (r7 == 0) goto L_0x00e3;\n L_0x00dc:\n r6 = (java.math.BigInteger) r6;\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x00e3:\n r7 = r6 instanceof java.lang.Long;\n if (r7 == 0) goto L_0x00f2;\n L_0x00e7:\n r6 = (java.lang.Long) r6;\n r6 = r6.longValue();\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x00f2:\n r7 = r6 instanceof java.lang.Short;\n if (r7 == 0) goto L_0x0101;\n L_0x00f6:\n r6 = (java.lang.Short) r6;\n r6 = r6.shortValue();\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x0101:\n r6 = (java.lang.Number) r6;\n r6 = r6.intValue();\n goto L_0x00d3;\n L_0x0108:\n r6 = r0.m4037b(r5);\n r7 = r6 instanceof com.p111d.p112a.p114b.C1382p;\n if (r7 == 0) goto L_0x0117;\n L_0x0110:\n r6 = (com.p111d.p112a.p114b.C1382p) r6;\n r9.writeString(r6);\n goto L_0x0012;\n L_0x0117:\n r6 = (java.lang.String) r6;\n r9.writeString(r6);\n goto L_0x0012;\n L_0x011e:\n r6 = r0.m4037b(r5);\n r7 = r6 instanceof com.p111d.p112a.p114b.C1382p;\n if (r7 == 0) goto L_0x012d;\n L_0x0126:\n r6 = (com.p111d.p112a.p114b.C1382p) r6;\n r9.writeFieldName(r6);\n goto L_0x0012;\n L_0x012d:\n r6 = (java.lang.String) r6;\n r9.writeFieldName(r6);\n goto L_0x0012;\n L_0x0134:\n r9.writeEndArray();\n goto L_0x0012;\n L_0x0139:\n r9.writeStartArray();\n goto L_0x0012;\n L_0x013e:\n r9.writeEndObject();\n goto L_0x0012;\n L_0x0143:\n r9.writeStartObject();\n goto L_0x0012;\n L_0x0148:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.d.a.c.m.u.a(com.d.a.b.g):void\");\n }",
"public final void run() {\n /*\n r10 = this;\n r8 = 2;\n r7 = 1;\n r6 = 0;\n r2 = com.uc.apollo.media.impl.O.UNKNOWN;\n r1 = 0;\n r0 = r10.e;\t Catch:{ d -> 0x0051, Throwable -> 0x0090 }\n r3 = r10.f;\t Catch:{ d -> 0x0051, Throwable -> 0x0090 }\n r0 = com.uc.apollo.media.b.c.a(r0, r3);\t Catch:{ d -> 0x0051, Throwable -> 0x0090 }\n if (r0 == 0) goto L_0x004b;\n L_0x0010:\n r2 = com.uc.apollo.media.impl.O.M3U8;\t Catch:{ d -> 0x00cf, Throwable -> 0x0090 }\n r1 = r0.c();\t Catch:{ d -> 0x00cf, Throwable -> 0x0090 }\n if (r1 == 0) goto L_0x00db;\n L_0x0018:\n r1 = com.uc.apollo.media.impl.O.M3U8_LIVE;\t Catch:{ d -> 0x00cf, Throwable -> 0x0090 }\n L_0x001a:\n r2 = r10.h;\t Catch:{ d -> 0x00d5, Throwable -> 0x0090 }\n if (r2 == 0) goto L_0x0022;\n L_0x001e:\n r2 = 1;\n r0.a(r2);\t Catch:{ d -> 0x00d5, Throwable -> 0x0090 }\n L_0x0022:\n r2 = com.uc.apollo.media.impl.O.UNKNOWN;\n if (r1 == r2) goto L_0x0030;\n L_0x0026:\n r2 = new java.lang.StringBuilder;\n r3 = \"content type is \";\n r2.<init>(r3);\n r2.append(r1);\n L_0x0030:\n r2 = r10.g;\n if (r2 == 0) goto L_0x004a;\n L_0x0034:\n r2 = c;\n r3 = r10.d;\n r4 = 3;\n r4 = new java.lang.Object[r4];\n r5 = r10.g;\n r4[r6] = r5;\n r4[r7] = r1;\n r4[r8] = r0;\n r0 = r2.obtainMessage(r8, r3, r6, r4);\n r0.sendToTarget();\n L_0x004a:\n return;\n L_0x004b:\n r0 = com.uc.apollo.media.impl.O.PARSE_FAILURE;\t Catch:{ d -> 0x0051, Throwable -> 0x0090 }\n r9 = r1;\n r1 = r0;\n r0 = r9;\n goto L_0x0022;\n L_0x0051:\n r0 = move-exception;\n r9 = r0;\n r0 = r2;\n r2 = r9;\n L_0x0055:\n r3 = r2.a();\n if (r3 == 0) goto L_0x007e;\n L_0x005b:\n r4 = r3.length;\n r5 = 8;\n if (r4 < r5) goto L_0x007e;\n L_0x0060:\n r4 = 4;\n r4 = r3[r4];\n r5 = 102; // 0x66 float:1.43E-43 double:5.04E-322;\n if (r4 == r5) goto L_0x007c;\n L_0x0067:\n r4 = 5;\n r4 = r3[r4];\n r5 = 116; // 0x74 float:1.63E-43 double:5.73E-322;\n if (r4 == r5) goto L_0x007c;\n L_0x006e:\n r4 = 6;\n r4 = r3[r4];\n r5 = 121; // 0x79 float:1.7E-43 double:6.0E-322;\n if (r4 == r5) goto L_0x007c;\n L_0x0075:\n r4 = 7;\n r3 = r3[r4];\n r4 = 112; // 0x70 float:1.57E-43 double:5.53E-322;\n if (r3 != r4) goto L_0x007e;\n L_0x007c:\n r0 = com.uc.apollo.media.impl.O.MP4;\n L_0x007e:\n r3 = com.uc.apollo.media.impl.O.UNKNOWN;\n if (r0 != r3) goto L_0x008c;\n L_0x0082:\n r3 = new java.lang.StringBuilder;\n r4 = \"parse failure, msg: \";\n r3.<init>(r4);\n r3.append(r2);\n L_0x008c:\n r9 = r1;\n r1 = r0;\n r0 = r9;\n goto L_0x0022;\n L_0x0090:\n r0 = move-exception;\n r1 = com.uc.apollo.media.impl.O.PARSE_FAILURE;\n r1 = a;\n r2 = new java.lang.StringBuilder;\n r3 = \"parse failure: \";\n r2.<init>(r3);\n r2 = r2.append(r0);\n r2 = r2.toString();\n android.util.Log.w(r1, r2);\n r1 = r10.g;\n if (r1 == 0) goto L_0x004a;\n L_0x00ab:\n r1 = c;\n r2 = r10.d;\n r3 = new java.lang.Object[r8];\n r4 = r10.g;\n r3[r6] = r4;\n r4 = new java.lang.StringBuilder;\n r5 = \"parse failure: \";\n r4.<init>(r5);\n r0 = r4.append(r0);\n r0 = r0.toString();\n r3[r7] = r0;\n r0 = r1.obtainMessage(r7, r2, r6, r3);\n r0.sendToTarget();\n goto L_0x004a;\n L_0x00cf:\n r1 = move-exception;\n r9 = r1;\n r1 = r0;\n r0 = r2;\n r2 = r9;\n goto L_0x0055;\n L_0x00d5:\n r2 = move-exception;\n r9 = r0;\n r0 = r1;\n r1 = r9;\n goto L_0x0055;\n L_0x00db:\n r1 = r2;\n goto L_0x001a;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.uc.apollo.media.impl.f.run():void\");\n }"
] | [
"0.6983303",
"0.695171",
"0.69324076",
"0.692011",
"0.6816378",
"0.6815518",
"0.68110245",
"0.68050873",
"0.67884755",
"0.6711922",
"0.67102885",
"0.6689858",
"0.6674472",
"0.6656389",
"0.66511554",
"0.66465664",
"0.6625762",
"0.66109747",
"0.65888906",
"0.656231",
"0.65605927",
"0.65486175",
"0.65383565",
"0.6512816",
"0.6499407",
"0.6496471",
"0.6487002",
"0.6479818",
"0.6469721",
"0.6468442",
"0.6468442",
"0.6467499",
"0.644737",
"0.6416084",
"0.6403525",
"0.64003307",
"0.63890296",
"0.63815045",
"0.63717157",
"0.6366837",
"0.63610715",
"0.63476324",
"0.6346268",
"0.6332443",
"0.6332016",
"0.6327856",
"0.63193244",
"0.6316686",
"0.63153017",
"0.6313788",
"0.62938625",
"0.6288355",
"0.62875795",
"0.6286276",
"0.6274509",
"0.625603",
"0.62335104",
"0.6226753",
"0.62163246",
"0.621592",
"0.6211524",
"0.62107027",
"0.6209972",
"0.6198756",
"0.6185847",
"0.61774385",
"0.6166808",
"0.6165105",
"0.61612",
"0.6157733",
"0.61548406",
"0.6154278",
"0.6153233",
"0.6152965",
"0.61398834",
"0.61352694",
"0.61271876",
"0.61262316",
"0.6119331",
"0.611887",
"0.6117263",
"0.61140925",
"0.61007905",
"0.6096698",
"0.60768217",
"0.6075791",
"0.6074178",
"0.6072834",
"0.6066904",
"0.6065745",
"0.6060486",
"0.60574794",
"0.6049726",
"0.60463583",
"0.6045846",
"0.6044872",
"0.6033566",
"0.6032401",
"0.6029271",
"0.60290045",
"0.6014593"
] | 0.0 | -1 |
/ access modifiers changed from: private | public final Device blockingGetHardware() {
Device hardware = find(false);
if (hardware != null) {
return hardware;
}
while (!Thread.currentThread().isInterrupted()) {
try {
Thread.sleep(2000);
Device hardware2 = find(false);
if (hardware2 != null) {
return hardware2;
}
} catch (InterruptedException e) {
return null;
}
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n protected void prot() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"public void smell() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"private TMCourse() {\n\t}",
"private void m50366E() {\n }",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public void method_4270() {}",
"public abstract Object mo26777y();",
"@Override\n protected void init() {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"private MApi() {}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"private Infer() {\n\n }",
"protected abstract Set method_1559();",
"@Override\n void init() {\n }",
"@Override\n public void init() {\n\n }",
"private void kk12() {\n\n\t}",
"public abstract void mo70713b();",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"private Singletion3() {}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"private ChainingMethods() {\n // private constructor\n\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"private abstract void privateabstract();",
"protected boolean func_70814_o() { return true; }",
"private Get() {}",
"private Get() {}",
"public void m23075a() {\n }",
"private Util() { }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public void mo21779D() {\n }",
"private test5() {\r\n\t\r\n\t}",
"public void mo21825b() {\n }",
"@Override\n public void memoria() {\n \n }",
"private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"protected Doodler() {\n\t}",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"private FlyWithWings(){\n\t\t\n\t}",
"private MetallicityUtils() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n public void init() {}",
"@Override\n public boolean isPrivate() {\n return true;\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 }",
"public abstract void mo56925d();",
"public abstract void mo27386d();",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"public void mo21877s() {\n }",
"private Utils() {}",
"private Utils() {}",
"private Utils() {}",
"private Utils() {}",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }",
"@Override\n public void get() {}",
"private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}",
"private void ss(){\n }",
"public void mo21782G() {\n }",
"public abstract void mo27385c();",
"@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}",
"protected void h() {}",
"private void init() {\n\n\t}",
"private final void i() {\n }"
] | [
"0.70451087",
"0.66481936",
"0.66338545",
"0.6534467",
"0.6533057",
"0.63756114",
"0.6368523",
"0.63063055",
"0.6244554",
"0.62261415",
"0.62046665",
"0.61776316",
"0.6142759",
"0.6131381",
"0.6131381",
"0.61274433",
"0.610919",
"0.610797",
"0.60792845",
"0.6062989",
"0.6059318",
"0.60447836",
"0.6037732",
"0.6033637",
"0.6028711",
"0.60249",
"0.6015989",
"0.6015989",
"0.6010123",
"0.5991239",
"0.5977965",
"0.59756213",
"0.59711885",
"0.59652776",
"0.59562653",
"0.59491456",
"0.5947999",
"0.5942879",
"0.5941421",
"0.59406793",
"0.5936351",
"0.5936351",
"0.5934477",
"0.5934473",
"0.59311885",
"0.59261817",
"0.592184",
"0.59162307",
"0.59162307",
"0.5915696",
"0.5908215",
"0.5903059",
"0.5903059",
"0.5894341",
"0.5887855",
"0.58869827",
"0.5884463",
"0.5881538",
"0.588023",
"0.5879579",
"0.58791363",
"0.58698714",
"0.58686715",
"0.5857818",
"0.5855094",
"0.5851806",
"0.58393794",
"0.58365846",
"0.58286095",
"0.5816463",
"0.58148336",
"0.58144826",
"0.5814171",
"0.5814171",
"0.5814171",
"0.5814171",
"0.5814171",
"0.5814171",
"0.5809802",
"0.5802026",
"0.57927555",
"0.5792171",
"0.5790551",
"0.5786574",
"0.5786574",
"0.5786574",
"0.5786574",
"0.5786161",
"0.578553",
"0.5785096",
"0.57780075",
"0.5774098",
"0.57732016",
"0.57683206",
"0.57683206",
"0.57683206",
"0.57683206",
"0.57683206",
"0.5763271",
"0.57621974",
"0.57540506"
] | 0.0 | -1 |
/ access modifiers changed from: 0000 | public void deviceRemoved(Device device) {
if (this.devices.remove(device.getId()) == null) {
throw new IllegalStateException("I didn't know about device " + device.getId() + "!");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Member mo23408O();",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"@Override\n protected void prot() {\n }",
"public void m23075a() {\n }",
"@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}",
"public void mo115190b() {\n }",
"public abstract void mo70713b();",
"public abstract String mo118046b();",
"public /* bridge */ /* synthetic */ void mo55097d() {\n super.mo55097d();\n }",
"private void m50366E() {\n }",
"public final void mo91715d() {\n }",
"public abstract void mo53562a(C18796a c18796a);",
"public abstract Object mo26777y();",
"private stendhal() {\n\t}",
"public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }",
"public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }",
"public void mo38117a() {\n }",
"public abstract C14408a mo11607a();",
"public void mo1403c() {\n }",
"public abstract void m15813a();",
"public abstract Object mo1185b();",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public abstract void mo27385c();",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"public abstract void mo27386d();",
"public abstract Object mo1771a();",
"public void mo1531a() {\n }",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:04.534 -0500\", hash_original_method = \"E4DEB0C107DDB25A537EF0E89F1C04F8\", hash_generated_method = \"2E76AFD8C90588F5139C0C2D28CAEA05\")\n \nprivate static int translateCodingErrorAction(CodingErrorAction action) {\n if (action == CodingErrorAction.REPORT) {\n return 0;\n } else if (action == CodingErrorAction.IGNORE) {\n return 1;\n } else if (action == CodingErrorAction.REPLACE) {\n return 2;\n } else {\n throw new AssertionError(); // Someone changed the enum.\n }\n }",
"public void mo21779D() {\n }",
"@Override\n public int retroceder() {\n return 0;\n }",
"private Rekenhulp()\n\t{\n\t}",
"void m1864a() {\r\n }",
"public void mo12628c() {\n }",
"public abstract void mo42329d();",
"public abstract void mo56925d();",
"public void mo12930a() {\n }",
"public void O000000o() {\r\n super.O000000o();\r\n this.O0000o0 = false;\r\n }",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"public abstract void mo6549b();",
"public abstract void mo27464a();",
"public int method_113() {\r\n return 0;\r\n }",
"public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public abstract C7036b mo24411d();",
"public void mo97908d() {\n }",
"public void method_4270() {}",
"public void mo21825b() {\n }",
"public abstract void mo30696a();",
"public abstract int mo41077c();",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"public final /* bridge */ /* synthetic */ void mo43571c() {\n super.mo43571c();\n }",
"public abstract String mo41079d();",
"public void mo55254a() {\n }",
"public int method_209() {\r\n return 0;\r\n }",
"public abstract void mo35054b();",
"protected void mo6255a() {\n }",
"public void mo115188a() {\n }",
"public abstract String mo11611b();",
"public abstract void mo20899UO();",
"public abstract void mo70702a(C30989b c30989b);",
"public abstract long mo9229aD();",
"public void mo23813b() {\n }",
"public interface C0764b {\n}",
"protected boolean func_70814_o() { return true; }",
"public interface C0777a {\n }",
"public void mo9848a() {\n }",
"@Override\n public void perish() {\n \n }",
"public final void mo92083O() {\n }",
"public abstract long mo24409b();",
"public abstract int mo13680b();",
"public abstract C mo29734a();",
"public void mo21879u() {\n }",
"public interface C0939c {\n }",
"public void mo21782G() {\n }",
"public void mo97906c() {\n }",
"public void mo44053a() {\n }",
"public void mo4359a() {\n }",
"public interface C0136c {\n }",
"public void mo21787L() {\n }",
"public void mo21800a() {\n }",
"public void mo21781F() {\n }",
"public abstract void mo42331g();",
"public abstract void mo133131c() throws InvalidDataException;",
"public interface C0938b {\n }",
"protected boolean func_70041_e_() { return false; }",
"private AccessType(String rtCode) {\n\t this.rtCode = rtCode;\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"public final void mo92082N() {\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"public abstract C13619e mo34787a();",
"public abstract void mo102899a();",
"public abstract String mo13682d();",
"public void mo21791P() {\n }",
"public abstract int mo9747l();"
] | [
"0.65163475",
"0.64186674",
"0.640346",
"0.63479716",
"0.62999594",
"0.62956387",
"0.62451077",
"0.6229237",
"0.62047416",
"0.6193751",
"0.61896276",
"0.6180873",
"0.6175551",
"0.6169901",
"0.61686474",
"0.6163415",
"0.6151628",
"0.6149818",
"0.61404216",
"0.6134207",
"0.61339724",
"0.613219",
"0.6117907",
"0.6113271",
"0.61053675",
"0.6105007",
"0.61021256",
"0.6098376",
"0.608039",
"0.6079304",
"0.60792667",
"0.6076",
"0.6073111",
"0.60411114",
"0.6026611",
"0.60176945",
"0.6015096",
"0.6014942",
"0.60131264",
"0.60021687",
"0.599957",
"0.5985778",
"0.5985755",
"0.5984987",
"0.5984987",
"0.5984987",
"0.5984987",
"0.5984987",
"0.5984987",
"0.5984987",
"0.59791833",
"0.59781426",
"0.59776974",
"0.59728664",
"0.59707403",
"0.5968478",
"0.5962297",
"0.5954469",
"0.59532434",
"0.59518015",
"0.5951346",
"0.5942688",
"0.5938562",
"0.59377676",
"0.5933646",
"0.59266937",
"0.5921691",
"0.59197366",
"0.5918051",
"0.5910424",
"0.5909002",
"0.590841",
"0.59003264",
"0.58987933",
"0.5895704",
"0.58931434",
"0.588365",
"0.58765155",
"0.58728206",
"0.5871452",
"0.58662343",
"0.5842952",
"0.5840171",
"0.58388305",
"0.58359736",
"0.5834943",
"0.583299",
"0.58287024",
"0.58274394",
"0.5826173",
"0.5825695",
"0.5824584",
"0.58220166",
"0.5818949",
"0.58153623",
"0.581523",
"0.5812116",
"0.5807668",
"0.5805915",
"0.58014697",
"0.580006"
] | 0.0 | -1 |
Created by ryan on 1835. | public interface WifiInfoDataSource {
interface LoadWifiInfoCallback{
void onWifiInfoLoaded(WiFiInfo wifiInfo);
void onDataNotFound();
}
interface LoadWifiInfoListCallback{
void onWifiInfoLoaded(List<WiFiInfo> wifiInfoList);
void onDataNotFound();
}
//insert WifiInfo
void insertWifiInfo(WiFiInfo wifiInfo);
//List<WiFiInfo>
void queryWifiInfoListInfo(LoadWifiInfoListCallback loadWifiInfoListCallback);
//<WifiInfo> from ssid
void queryWifiInfo(String ssid,LoadWifiInfoCallback loadWifiInfoCallback);
//delete WiFiInfo
void deleteWiFiInfo(WiFiInfo wiFiInfo);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"private void poetries() {\n\n\t}",
"@Override\n public int describeContents() { return 0; }",
"private void m50366E() {\n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public void method_4270() {}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"private void kk12() {\n\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public void mo38117a() {\n }",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\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\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private void strin() {\n\n\t}",
"private void init() {\n\n\t}",
"@Override\n public void init() {\n }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n\tpublic void jugar() {\n\t\t\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 protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\r\n\tpublic void init() {}",
"@Override\n protected void init() {\n }",
"@Override\n void init() {\n }",
"@Override public int describeContents() { return 0; }",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public void init() {}",
"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 init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\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}",
"public void mo21877s() {\n }",
"public abstract void mo70713b();",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"public void m23075a() {\n }",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"private void init() {\n\n\n\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"private void initialize() {\n\t\t\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n public void initialize() { \n }",
"private void m50367F() {\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"public void mo12628c() {\n }",
"protected void mo6255a() {\n }",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}"
] | [
"0.57662416",
"0.5712478",
"0.5651608",
"0.56202894",
"0.5602697",
"0.5597762",
"0.5578869",
"0.5560285",
"0.5546798",
"0.5540753",
"0.5540753",
"0.55307096",
"0.5501548",
"0.5483696",
"0.5474136",
"0.547199",
"0.5471649",
"0.5450962",
"0.54335",
"0.54199106",
"0.5414321",
"0.54068387",
"0.54058874",
"0.5405585",
"0.54046965",
"0.54046965",
"0.54046965",
"0.54046965",
"0.54046965",
"0.53771895",
"0.5355934",
"0.5346865",
"0.5346272",
"0.5344428",
"0.5344428",
"0.53254104",
"0.53122556",
"0.53113496",
"0.5308031",
"0.5304358",
"0.53024644",
"0.5292453",
"0.5291168",
"0.5281388",
"0.52535266",
"0.5248474",
"0.5248474",
"0.5248474",
"0.5241433",
"0.5241433",
"0.5241433",
"0.5241433",
"0.5241433",
"0.5241433",
"0.5237768",
"0.5235554",
"0.52345157",
"0.5230529",
"0.5226922",
"0.52254057",
"0.52240336",
"0.52145624",
"0.52145624",
"0.52145624",
"0.52145624",
"0.52145624",
"0.52145624",
"0.52145624",
"0.52118665",
"0.52118665",
"0.52118665",
"0.520904",
"0.52088976",
"0.5208536",
"0.5208536",
"0.5208536",
"0.5204876",
"0.52036387",
"0.5196903",
"0.5196903",
"0.5194129",
"0.51910233",
"0.5176573",
"0.5171447",
"0.51631784",
"0.51589537",
"0.51528215",
"0.5146302",
"0.5142808",
"0.51348436",
"0.5134442",
"0.513097",
"0.5130344",
"0.51284486",
"0.5121225",
"0.5109326",
"0.5109326",
"0.5108727",
"0.5106552",
"0.5101093",
"0.5101093"
] | 0.0 | -1 |
Test of removeDuplicates method, of class q1_3. | @Test
public void testRemoveDuplicates() {
System.out.println("removeDuplicates");
assertArrayEquals("abcd".toCharArray(), q1_3.removeDuplicates("abcd".toCharArray()));
assertArrayEquals(null, q1_3.removeDuplicates(null));
assertArrayEquals("a****".toCharArray(), q1_3.removeDuplicates("aaaaa".toCharArray()));
assertArrayEquals("a**b**".toCharArray(), q1_3.removeDuplicates("aaabbb".toCharArray()));
assertArrayEquals("abcdefg*".toCharArray(), q1_3.removeDuplicates("abcdefga".toCharArray()));
assertArrayEquals("abcdefg*".toCharArray(), q1_3.removeDuplicates("abcdefgb".toCharArray()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testRemoveDuplicates() {\n System.out.println(\"removeDuplicates\");\n ArrayList<String> array = new ArrayList<>(Arrays.asList(\n \"A.example.COM,1.1.1.1,NO,11,Faulty fans\",\n \"b.example.com,1.1.1.2,no,13,Behind the other routers so no one sees it\",\n \"C.EXAMPLE.COM,1.1.1.3,no,12.1,\",\n \"d.example.com,1.1.1.4,yes,14,\",\n \"c.example.com,1.1.1.5,no,12,Case a bit loose\",\n \"e.example.com,1.1.1.6,no,12.3,\",\n \"f.example.com,1.1.1.7,No,12.200,\",\n \"g.example.com,1.1.1.6,no,15.0,Guarded by sharks with lasers on their heads\"\n ));\n ArrayList<String> expResult = new ArrayList<>(Arrays.asList(\n \"A.example.COM,1.1.1.1,NO,11,Faulty fans\",\n \"b.example.com,1.1.1.2,no,13,Behind the other routers so no one sees it\",\n \"d.example.com,1.1.1.4,yes,14,\",\n \"f.example.com,1.1.1.7,No,12.200,\"\n ));\n ArrayList<String> result = BTRouterPatch.removeDuplicates(array);\n assertEquals(expResult, result);\n }",
"public void testFindDuplicates() {\r\n System.out.println(\"findDuplicates\");\r\n \r\n List<String> elements = new ArrayList<>();\r\n elements.add(\"foo\");\r\n elements.add(\"bar\");\r\n elements.add(\"abc\");\r\n elements.add(\"foo\");\r\n elements.add(\"cde\");\r\n elements.add(\"cde\");\r\n elements.add(\"efg\");\r\n elements.add(\"cde\");\r\n \r\n Set<String> expResult = new LinkedHashSet<>();\r\n expResult.add(\"foo\");\r\n \r\n LexicalChecker instance = new LexicalChecker();\r\n Set<String> result = instance.findDuplicates(elements);\r\n \r\n assertNotSame(expResult, result);\r\n \r\n expResult.add(\"cde\");\r\n assertEquals(expResult, result);\r\n }",
"public static void main(String[] args) {\n\t\tRemoveDuplicatesfromSortedArray test = new RemoveDuplicatesfromSortedArray();\n\t\tint[] nums = {1,1,2};\n\t\tint r = test.removeDuplicates(nums);\n\t\tSystem.out.println(r);\n\t}",
"@Test\r\n\tpublic void test1() {\r\n\t\tint[] nums = {1,2,3,1,4};\r\n\t\tAssert.assertEquals(true, containsDuplicate(nums));\r\n\t}",
"@Test\n\tvoid testRemoveAllAdjacentDuplicatesInString() {\n\t\tRemoveAllAdjacentDuplicatesInString tester = new RemoveAllAdjacentDuplicatesInString();\n\t\tassertEquals(\"ca\", tester.removeDuplicates(\"abbaca\"));\n\t}",
"protected void removeDuplicates() {\n log.trace(\"Removing duplicated\");\n long startTime = System.currentTimeMillis();\n int initial = size();\n E last = null;\n int index = 0;\n while (index < size()) {\n E current = get(index);\n if (last != null && last.equals(current)) {\n if (log.isTraceEnabled()) {\n log.trace(\"Removing duplicate '\" + current + \"'\");\n }\n remove(index);\n } else {\n index++;\n }\n last = current;\n }\n log.debug(String.format(\"Removed %d duplicates from a total of %d values in %dms\",\n initial - size(), initial, System.currentTimeMillis() - startTime));\n }",
"public static void main(String[] args) {\n\t\tfinal long startTime = System.nanoTime();\r\n\t\t\r\n\t\tint [] plop = {1,1,1,2,2,3};\r\n\t\tSystem.out.println(removeDuplicates2(plop));\r\n\t\t\r\n\r\n\t\tfinal long duration = System.nanoTime() - startTime;\r\n\t\tSystem.out.println(duration);\r\n\t\t\r\n\t}",
"static void findDuplicate()\n\t{\n\n\t\tList<String> oList = null;\n\t\tSet<String> oSet = null;\n\t\ttry {\n\t\t\toList = new ArrayList<String>();\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\toList.add(\"Frog\");\n\t\t\toList.add(\"Dog\");\n\t\t\toList.add(\"Eagle\");\n\t\t\toList.add(\"Frog\");\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\tSystem.out.println(oList);\n\t\t\t\n\t\t\toSet = new TreeSet<>();\n\t\t\t\n\t\t\tString s = \"\";\n\t\t\tfor(int i=0;i<oList.size();i++)\n\t\t\t{\n\t\t\t\tif((oSet.add(oList.get(i))==false) && (!s.contains(oList.get(i))))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Duplicate: \"+oList.get(i));\n\t\t\t\t\ts+=oList.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\toList = null;\n\t\t\toSet = null;\n\t\t}\n\t}",
"public void removeDuplicates()\n\t{\n\t\tComparator<Point> comp = new Comparator<Point>() \n\t\t{\n @Override\n public int compare(Point p, Point q) \n {\n \t return p.compareTo(q);\n }\n };\n\t\tquicksorter.quickSort(comp);\n\t\tquicksorter.getSortedPoints(points);\n\t\t\n\t\tArrayList<Point> pts = new ArrayList<Point>();\n\t\tfor(int a = 0; a < points.length; a++) //copy points into temp array\n\t\t{\n\t\t\tif(!pts.contains(points[a]))\n\t\t\t{\n\t\t\t\tpts.add(points[a]);\n\t\t\t}\n\t\t}\n\t\tpointsNoDuplicate = new Point[pts.size()]; //insert into pointsNoDuplicate\n\t\tfor(int i = 0; i < pts.size(); i++)\n\t\t{\n\t\t\tpointsNoDuplicate[i] = pts.get(i);\n\t\t}\n\t}",
"@Test\n public void removeDuplicatesFromString() {\n\n assertEquals(\"IAMDREW\", Computation.removeDuplicates(\"IIIAAAAMDREEEWW\"));\n }",
"public static void main(String[] args) {\n ArrayList<Integer> nums = new ArrayList<>();\n nums.addAll( Arrays.asList(100, 2000, 50, 50, 100, 200, 300, 50));\n nums=new ArrayList<>(new TreeSet<>(nums));\n System.out.println(nums);\n\n String str1 = \"babababC\";\n str1 = new TreeSet<>( Arrays.asList(str1.split(\"\")) ).toString();\n System.out.println(str1);\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * - 2. Write a program that can REMOVE THE DUPLICATES from an ArrayList. DO NOT change the ORDER\n * -> LinkedHashSet -> Remove Duplicates and Keeps the Insertion Order\n */\n ArrayList<Integer> list = new ArrayList<>(Arrays.asList(6,6,6,6,5,5,5,4,4,4,4));\n list=new ArrayList<>(new LinkedHashSet<>(list));\n System.out.println(list);\n\n\n /**\n * - 1. Write a program that can remove the duplicated characters from String and store them into variable\n */\n String str = \"ABABABCDEF\";\n String[] arr = str.split(\"\");\n str = new LinkedHashSet<>(Arrays.asList(arr)).toString().replace(\", \", \"\");\n System.out.println(str);\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * -> Does not accept duplicates, and sort the objects\n * -> HashSet accepts null\n * -> HashSet is faster than TreeSet\n */\n HashSet<Integer> numbers = new HashSet<>(Arrays.asList(10,9,10, 9, 8, 7, 8, 7, 6, 5, 6, 1));\n System.out.println(numbers ); // -> [1, 5, 6, 7, 8, 9, 10]\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * - ITERATOR: -> is the only way to remove duplicates from collection\n * - removeIf -> removes numbers because it is uses the iterator interface internally. Iterator implicitly\n *\n * - hasNext() method only can go forward cant go backward. it stars from next index\n * - when we use it our loop hasNext() iterates from the next index\n * - iterator(); - hasNext(); - next(); - remove();\n */\n ArrayList<Integer> list2 = new ArrayList<>(Arrays.asList(1,1,2,2,3,3,4,4,5,5));\n list2.removeIf( p -> p < 4 );\n System.out.println(list2);\n\n\n ArrayList<Integer> list3 = new ArrayList<>(Arrays.asList(1,1,2,2,3,3,4,4,5,5));\n Iterator<Integer> it =list3.iterator(); // - this method will return iterator\n while( it.hasNext() ){ // - iterator explicitly. While loop only accept boolean\n if( it.next() < 4 ){\n it.remove();\n }\n }\n System.out.println(list3);\n\n\n ArrayList<Integer> list4 = new ArrayList<>(Arrays.asList(1,1,2,3,3,4,4,5,5));\n // - hasNext(); will iterate all the indexes. We do not need extra iterator in the loop\n for(Iterator<Integer> I = list4.iterator(); I.hasNext(); ){\n if( I.next() < 4) {\n I.remove();\n }\n }\n System.out.println(list4);\n\n\n\n LinkedHashSet<String> names = new LinkedHashSet<>();\n names.addAll(Arrays.asList( \"Mehmet\",\"Mohammed\",\"Yucel\",\"Sha\",\"Ozgur\", \"Ahmet\",\"Osmanj\",\"Ozgur\",\"Ozgur\",\"Irina\"));\n System.out.println(names);\n Iterator<String> it3 = names.iterator();\n while( it3.hasNext() ){\n String s = it3.next();\n if(s.contains(\"m\") || s.contains(\"M\")){ // - s.toLowerCase.contains(\"m\")\n it3.remove();\n }\n }\n System.out.println(names);\n\n /*\n ===============================================================\n for(Iterator<String> it3 = names.iterator(); it3.hasNext() ; ){\n String s = it3.next();\n if(s.toLowerCase().contains(\"m\")){\n it3.remove();\n }\n }\n ================================================================\n names.removeIf( s -> s.contains(\"m\") || s.contains(\"M\") );\n ================================================================\n names.removeAll( Arrays.asList( \"Mehmet\", \"Ozgur\", \"Mohammed\" ));\n ================================================================\n names.retainAll( Arrays.asList( \"Yucel\", \"Sha\", \"Ahmet\" ) );\n ================================================================\n boolean result = list.containsAll( Arrays.asList(5, 6, 9, 8, 11 ));\n */\n\n\n\n\n\n\n\n System.out.println(\"=========================================================================================\");\n\n\n\n\n\n }",
"@Test\r\n public void testCreateTourWithoutDuplicates_MultipleDups() {\r\n Tour tour = new Tour(new int[][]{{1, 1}, {2, 2}, {1, 1}, {3, 3}, {1, 1}, {1, 1}});\r\n Tour result = tour.createTourWithoutDuplicates();\r\n Tour expected = new Tour(new int[][]{{1, 1}, {2, 2}, {3, 3}});\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }",
"public static void removeDuplicates(HeapIntPriorityQueue dupes){\n //Auxillery queue to hold the non-dupes\n Queue <Integer> holder = new LinkedList<Integer>();\n //Exception clause\n if(dupes.isEmpty()){\n throw new IllegalArgumentException();\n //Test parameter, if the PriorityQueue only has one int it falls through\n }else if (dupes.size()>1){\n int first = dupes.remove();\n int second = 0;\n //If we are not at the end, keep going\n while(!dupes.isEmpty()){\n second = dupes.remove();\n if(first!=second){\n holder.add(first);\n first=second;\n }\n }\n //Move the remaining int to the holder\n holder.add(first);\n }\n //Shift everything from the holder back to the parameter PriorityQueue\n while (!holder.isEmpty()){\n dupes.add(holder.remove());\n }\n }",
"public static void main(String[] args) {\n int[] nums = {0,0,1,1,1,2,2,3,3,4};\n int val = removeDuplicates(nums);\n System.out.println(val);\n\t}",
"public static void removeDuplicateSample() {\n Node ll1 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll2 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(4, null)))));\n Node ll3 = new Node(1, new Node(1, new Node(3, new Node(4, new Node(5, null)))));\n Node ll4 = new Node(1, new Node(1, new Node(1, new Node(4, new Node(5, null)))));\n\n System.out.println(\"1===\");\n ll1.printList();\n ll1 = ll1.removeDuplicate();\n ll1.printList();\n\n System.out.println(\"2===\");\n ll2.printList();\n ll2 = ll2.removeDuplicate();\n ll2.printList();\n\n System.out.println(\"3===\");\n ll3.printList();\n ll3 = ll3.removeDuplicate();\n ll3.printList();\n\n System.out.println(\"4===\");\n ll4.printList();\n ll4 = ll4.removeDuplicate();\n ll4.printList();\n\n }",
"public static void main(String[] args) {\n\n\t\tRemoveDuplicates removeDuplicates = new RemoveDuplicates();\n\t\tint[] nums = { 0, 0, 1, 1, 2, 2, 3, 4, 4 };\n//\t\tint result = removeDuplicates.solution1(nums);\n//\t\tint result = removeDuplicates.solution2(nums);\n//\t\tint result[] = removeDuplicates.solution3(nums);\n\t\tint result = removeDuplicates.solution4(nums);\n\t\tSystem.out.println(result);\n\n\t}",
"public static void testDedupe(){\n LinkedList<String> list = new LinkedList<String>();\n \n for(int i = 0; i < 10; i++)\n list.add(\"Number \" + i);\n for(int j = 0; j < 5; j++)\n list.add(\"Number \" + j);\n \n //print test list\n for (String num : list)\n System.out.print(num + \" \");\n \n //Call deDupe and reprint list\n LinkedLists.deDupe(list);\n System.out.println(\"List after removing dupes: \" + '\\n');\n for (String num : list)\n System.out.print(num + \" \");\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tRemoveDuplicates r=new RemoveDuplicates();\r\n\t\tNode4 n1=new Node4(3);\r\n\t\tn1.next=null;\r\n\t\t//n1.next.next=new Node4(7);\r\n\t//\tn1.next.next.next=new Node4(6);\r\n\t\t//n1.next.next.next.next=new Node4(7);\r\n\t n1=r.removingDuplicates(n1);\r\n\twhile(n1!=null)\r\n\t\t{\tSystem.out.print(n1.val+\"->\");\r\n\t\t\tn1=n1.next;}\r\n\t\r\n\t\t\r\n\t}",
"@Test\n public void testHasDups() {\n var arg = new String[] {\"a\",\"b\",\"c\"};\n Sequence instance = new Sequence();\n boolean expResult = false;\n boolean result = instance.hasDups(arg);\n assertEquals(expResult, result);\n }",
"public static void main(String[] args) {\n\t\tArrayList<String> arrayListWithDups = new ArrayList<String>();\n\n\t\tarrayListWithDups.add(\"nonie\");\n\t\tarrayListWithDups.add(\"test\");\n\t\tarrayListWithDups.add(\"中中中\");\n\t\tarrayListWithDups.add(\"test\");\n\t\tarrayListWithDups.add(\"nonie\");\n\t\tarrayListWithDups.add(null);\n\t\tarrayListWithDups.add(\"中中中\");\n\t\tarrayListWithDups.add(\"homework\");\n\t\tarrayListWithDups.add(null);\n\n\t\t// Printing listWithDuplicateElements\n\t\tSystem.out.print(\"Input:\");\n\t\tSystem.out.println(arrayListWithDups);\n\n\t\t// Constructing HashSet using listWithDuplicateElements\n\t\tHashSet<String> removeDups = new HashSet<String>(arrayListWithDups);\n\n\t\t// Constructing listWithoutDuplicateElements using set\n\t\tArrayList<String> arrayListNoDups = new ArrayList<String>(removeDups);\n\n\t\t// Printing listWithoutDuplicateElements\n\t\tSystem.out.print(\"Ouput: \");\n\t\tSystem.out.println(arrayListNoDups);\n\t}",
"public List removeDuplicate() throws ComputationException {\n log.debug(\"Removing duplicate using List......\");\n List<Integer> uniqueList = new ArrayList();\n int[] intArray = getRandomArray();\n log.debug(\"Actual size of int array:\" + intArray.length);\n log.debug(Arrays.toString(intArray));\n for (int i = 0; i < intArray.length; i++) {\n if (!isAdded(uniqueList, intArray[i])) {\n uniqueList.add(intArray[i]);\n }\n\n }\n log.debug(\"refined size of int array: \" + uniqueList.size());\n log.debug(uniqueList.toString());\n return uniqueList;\n\n }",
"public static void main(String[] args) {\n\t\tint[] a1 = {1,2,3,4,5,6,7,8,9};\n\t\tSystem.out.println(containsDuplicates(a1));\n\t\tint[] a2 = {1,2,3,4,6,6,7,8,9};\n\t\tSystem.out.println(containsDuplicates(a2));\n\n\t}",
"public static void main(String[] args) {\n\t\tint[] input ={1, 1, 2, 3, 5, 5, 7, 9, 9, 9};\n\t\t\n\t\tfindDuplicates(input);\n\t}",
"public void removeDuplication() {\r\n\t\t//checks if the array contains any elements\r\n\t\tif (!isEmpty()) {\t//contains elements\r\n\t\t\t//loop to execute for every element in the array\r\n\t\t\tfor (int i=0;i<size-1;i++) {\r\n\t\t\t\tObject element=list[i];\t//to store value of element in array\r\n\t\t\t\t//loop to execute for every element after the current element in the list\r\n\t\t\t\tfor (int j=i+1;j<size;j++) {\r\n\t\t\t\t\t//checks if there is are 2 elements in the list with the same value\r\n\t\t\t\t\tif (element==list[j]) {\r\n\t\t\t\t\t\tremove(j);\t//calls function to remove that element from array\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\telse {\t//contains 0 elements\r\n\t\t\tSystem.out.println(\"List is empty!\");\r\n\t\t}\r\n\t}",
"public Set removeDuplicateUsingSet() throws ComputationException {\n Set<Integer> uniqueSet = new HashSet<>();\n log.debug(\"Removing duplicate using Set......\");\n int[] intArray = getRandomArray();\n log.debug(\"Actual size of int array:\" + intArray.length);\n for (int i = 0; i < intArray.length; i++) {\n uniqueSet.add(intArray[i]);\n }\n log.debug(\"refined size of int array using Set: \" + uniqueSet.size());\n log.debug(Arrays.toString(uniqueSet.toArray()));\n return uniqueSet;\n }",
"public Set removeDuplicateUsingLinkedHashSet() throws ComputationException {\n Set<Integer> uniqueSet = new LinkedHashSet<>();\n log.debug(\"Removing duplicate using Linked Hash Set......\");\n int[] intArray = getRandomArray();\n log.debug(\"Actual size of int array:\" + intArray.length);\n for (int i = 0; i < intArray.length; i++) {\n uniqueSet.add(intArray[i]);\n }\n log.debug(\"refined size of int array using Set: \" + uniqueSet.size());\n log.debug(Arrays.toString(uniqueSet.toArray()));\n return uniqueSet;\n }",
"public static void main(String[] args) {\n\t\tListNode head = new ListNode(1);\n\t\tListNode nodeA = new ListNode(2);\n\t\tListNode nodeB = new ListNode(2);\n\t\tListNode nodeC = new ListNode(3);\n\t\t\n\t\thead.next = nodeA;\n\t\tnodeA.next = nodeB;\n\t\tnodeB.next = nodeC;\n\t\t\n\t\tDeleteDuplicates instance = new DeleteDuplicates();\n\t\thead = instance.solution(head);\n\t\twhile(head != null)\n\t\t{\n\t\t\tSystem.out.println(head.val);\n\t\t\thead = head.next;\n\t\t}\n\t}",
"public boolean isDupe(T element);",
"public static void main(String[] args) {\n\n DuplicateRemover remover = new PersonalDuplicateRemover();\n remover.add(\"first\");\n remover.add(\"second\");\n remover.add(\"first\");\n\n System.out.println(\"Current number of duplicates: \" +\n remover.getNumberOfDetectedDuplicates());\n\n remover.add(\"last\");\n remover.add(\"last\");\n remover.add(\"new\");\n\n System.out.println(\"Current number of duplicates: \" +\n remover.getNumberOfDetectedDuplicates());\n\n System.out.println(\"Unique characterStrings: \" +\n remover.getUniqueCharacterStrings());\n\n remover.empty();\n\n System.out.println(\"Current number of duplicates: \" +\n remover.getNumberOfDetectedDuplicates());\n\n System.out.println(\"Unique characterStrings: \" +\n remover.getUniqueCharacterStrings());\n }",
"public int removeDuplicatesMethod1(int[] nums) {\n \tif(nums == null) {\n \t\treturn 0;\n \t}\n int len = nums.length;\n if(len == 0) {\n \treturn 0;\n }\n int endOfNewArray = 0;\n int cnt = 1;\n int temp = nums[0];\n for(int i = 1; i < len; i++) {\n \tif(nums[i] == temp) {\n \t\tif(cnt < 2) {\n \t\t\tcnt++;\n \t\t\tnums[++endOfNewArray] = nums[i];\n \t\t}\n \t}else {\n \t\tcnt = 1;\n \t\tnums[++endOfNewArray] = nums[i];\n \t\ttemp = nums[i];\n \t}\n }\n return ++endOfNewArray;\n }",
"public static void main(String[] args) {\n Set<Integer> S1 = new TreeSet<>();\r\n // add objects\r\n S1.add(65); S1.add(36); S1.add(24); S1.add(36);\r\n \r\n // show the content and assert they are sorted and no duplications\r\n System.out.println(\"set = \" + S1); \r\n //remove elements\r\n S1.remove(36); S1.remove(24);\r\n System.out.println(S1); //assert set = 65\r\n S1.add(15); S1.add(24); S1.add(80); // add 15, 24, 80\r\n System.out.println(\"set = \" +S1); //assert set = 15, 24, 65, 80\r\n \r\n System.out.println(\"Does S1 contain 10?\"\r\n + S1.contains(10)); // assert false\r\n System.out.println(\"S1 has \" + S1.size() +\" objects\"); // assert 4\r\n\r\n // create another Set object implemented using HashSet\r\n Set<Integer> S2 = new HashSet<>();\r\n // add all objects in S1 to S2\r\n S2.addAll(S1);\r\n System.out.println(\"hashset = \" +S2); //assert they may not be ordered\r\n\r\n // create another Set object implemented using LinkedHashSet\r\n Set<Integer> S3 = new LinkedHashSet<>();\r\n S3.add(150); // add 150\r\n S3.addAll(S1);// add all objects in S1 to S2\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[150,15,24,65,80]\r\n \r\n S3.removeAll(S3); // remove all items\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[]\r\n }",
"public static void main(String[] args) {\n\t\tint[] nums = {1,2,3,4,4,5,89,89};\n\t\tSystem.out.println(removeDups(nums));\n\t}",
"@Test\r\n\t\tpublic void testDeleteElement() {\n\t\t\ttestingSet= new IntegerSet(list1);\r\n\t\t\tInteger array[] = testingSet.toArray(); \r\n\t\t\ttestingSet.deleteElement(0);\r\n\t\t\t// check to see if the first element in the set still exists\r\n\t\t\t// should result to false \r\n\t\t\tassertEquals(testingSet.exists(array[0]), false); \r\n\t\t}",
"public static void main(String[]args){\n\tArrayList<Integer> testMethods = new ArrayList<Integer>();\n\ttestMethods.add(new Integer(21536));\n\ttestMethods.add(new Integer(221536247));\n\ttestMethods.add(new Integer(2));\n\ttestMethods.add(new Integer(3));\n\ttestMethods.add(new Integer(5));\n\ttestMethods.add(new Integer(5));\n collapseDuplicates(testMethods);\n\trandomize(testMethods);\n\tSystem.out.println(testMethods.toString());\n }",
"@Test\r\n\tpublic void testRemoveAll() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 3, \"iron\"));\r\n\t\tsample.add(new Munitions(new Munitions(3, 4, \"iron\")));\r\n\t\tAssert.assertTrue(list.removeAll(sample));\r\n\t\tAssert.assertFalse(list.removeAll(sample));\r\n\t\tAssert.assertEquals(13, list.size());\r\n\t}",
"public static void main(String[] args) {\n LinkRemoveDuplicates2 ll=new LinkRemoveDuplicates2();\r\n\r\n ll.insertFirst(40);\r\n\r\n ll.insertFirst(30);\r\n \r\n ll.insertFirst(20);\r\n ll.insertFirst(20);\r\n ll.insertFirst(10);\r\n ll.insertFirst(10);\r\n System.out.println(\"Initial List->\");\r\n ll.printList();\r\n ll.head=ll.remove(ll.head);\r\n System.out.println(\"\\n\\nAfter removing duplicates->\");\r\n ll.printList();\r\n\t}",
"public void deleteDuplicates() {\n if (head == null)\n throw new RuntimeException(\"List is empty\");\n Node<Integer> previous = head;\n Node<Integer> current = previous.getNextNode();\n while (current != null) {\n Node<Integer> temp = head;\n while (temp != current) { //skips if its the current and node is same\n if (temp.getData() == current.getData()) {\n previous.setNextNode(current.getNextNode());\n current = current.getNextNode();\n break;\n }\n temp = temp.getNextNode();\n }\n if (temp == current) { // move the node pointer\n previous = current;\n current = current.getNextNode();\n }\n }\n }",
"private static void usingTempArray()\n\t{\n Integer[] origArray = new Integer[] { 1, 1, 2, 3, 3, 3, 4, 5, 6, 6, 6, 7, 8 };\n \n // This array has duplicate elements\n System.out.println(Arrays.toString(origArray));\n \n Integer[] tempArray = removeDuplicates(origArray);\n \n // Verify the array content\n System.out.println(Arrays.toString(tempArray));\n\t}",
"public ArrayList<Affix> removeDuplicateAffix(ArrayList<Affix> affix)\n\t{\n\t\tArrayList<Affix> tempAffix = affix;\n\t\tArrayList<Affix> resultAffix = new ArrayList<Affix>();\n\t\tboolean skip = false;\n\t\tint appearances = 0;\n\n//\t\tfor( int i = 0; i < affix.size(); i++)\n//\t\t{\n//\t\t\tskip = false;\n//\t\t\tfor(int j = 0; j < affix.size(); j++)\n//\t\t\t{\n//\t\t\t\tprintln(\" Comparing \" + tempAffix.get(i).getAffix() + \" and \" + affix.get(j).getAffix() );\n//\t\t\t\tif( skip == true )\n//\t\t\t\t{\n//\t\t\t\t\tbreak;\n//\t\t\t\t}\n//\t\t\t\tif( tempAffix.get(i).getAffix().equalsIgnoreCase(\"\") )\n//\t\t\t\t{\n//\t\t\t\t\tskip = true;\n//\t\t\t\t}\n//\t\t\t\tif( tempAffix.get(i).getAffix().compareTo( affix.get(j).getAffix() ) != 0 && !skip)\n//\t\t\t\t{\n//\t\t\t\t\tprintln(\" Adding2 \" + tempAffix.get(i).getAffix() + \" and \" + affix.get(j).getAffix() );\n//\t\t\t\t\tskip = true;\n//\t\t\t\t\tresultAffix.add(tempAffix.get(i));\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\n\n\n\t\tfor ( int i = 0; i < affix.size(); i++ )\n\t\t{\n\t\t\tskip = false;\n\t\t\tfor( int j = 0; j < tempAffix.size(); j++ )\n\t\t\t{\n\t\t\t\tif( skip == true ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if( tempAffix.get(i).getAffix().equalsIgnoreCase(\"\") && !skip )\n\t\t\t\t{\n\t\t\t\t\tskip = true;\n\t\t\t\t}\n\t\t\t\tif( tempAffix.get(i).getAffix().equalsIgnoreCase( affix.get(j).getAffix() ) && !skip)\n\t\t\t\t{\n\t\t\t\t\tskip = true;\n\t\t\t\t\tappearances++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif( appearances == 1) {\n\t\t\t\tresultAffix.add( tempAffix.get(i) );\n\t\t\t}\n\t\t}\n\n\t\treturn resultAffix;\n\t}",
"@Override\n\tpublic void deleteDuplicate(byte[] hash, long start, int len)\n\t\t\tthrows IOException {\n\n\t}",
"private static ArrayList<Result> removeDuplicates(ArrayList<Result> toDeDup){\n\t\t// This is a hash map that keeps track of the result term\n\t\t// and the index at which it is found.\n\t\tMap<String, Integer> hashm = new HashMap<String, Integer>();\n\t\tArrayList<Result> noDups = new ArrayList<Result>();\n\t\tfor(int i = 0; i < toDeDup.size(); i++){\n\t\t\t// Random bug where scores > 100 sometimes\n\t\t\tif (toDeDup.get(i).getScore()>100){\n\t\t\t\ttoDeDup.get(i).setScore(100-(toDeDup.get(i).getScore()-100));\n\t\t\t}\n\t\t\t// If the result term isn't already in the hash map add it\n\t\t\tif(!hashm.containsKey(toDeDup.get(i).getName().trim())){\n\t\t\t\thashm.put(toDeDup.get(i).getName().trim(), i);\n\t\t\t}else{\n\t\t\t\t// If the result term is already in the hash map\n\t\t\t\t// Compare the scores between the current term and the\n\t\t\t\t// one already in the hashmap. Add the highest.\n\t\t\t\tif (toDeDup.get(i).getScore() > toDeDup.get(hashm.get(toDeDup.get(i).getName().trim())).getScore())\n\t\t\t\t\thashm.put(toDeDup.get(i).getName().trim(), i);\n\t\t\t}\n\t\t}\n\t\t// Go through the hash map and add all of the index's to the \n\t\t// ArrayList of results to return\n\t\tfor (String key: hashm.keySet()){\n\t\t\tnoDups.add(toDeDup.get(hashm.get(key)));\n\t\t}\n\t\treturn noDups;\n\t}",
"public static void incrDuplicates() { ++duplicates; }",
"@Test\r\n public void testCreateTourWithoutDuplicates_DupAtEnd() {\r\n Tour tour = new Tour(new int[][]{{1, 1}, {2, 2}, {1, 1}});\r\n Tour result = tour.createTourWithoutDuplicates();\r\n Tour expected = new Tour(new int[][]{{1, 1}, {2, 2}});\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }",
"private static void usingLinkedHashSet()\n\t{\n Integer[] numbers = new Integer[] {1,2,3,4,5,1,3,5};\n \n //This array has duplicate elements\n System.out.println( Arrays.toString(numbers) );\n \n //Create set from array elements\n LinkedHashSet<Integer> linkedHashSet = new LinkedHashSet<>( Arrays.asList(numbers) );\n \n //Get back the array without duplicates\n Integer[] numbersWithoutDuplicates = linkedHashSet.toArray(new Integer[] {});\n \n //Verify the array content\n System.out.println( Arrays.toString(numbersWithoutDuplicates) );\n\t}",
"private static void fromUnsortedArray()\n\t{\n Integer[] origArray = new Integer[] { 1, 1, 2, 3, 3, 3, 4, 5, 6, 6, 6, 7, 8 };\n \n // This array has duplicate elements\n System.out.println(Arrays.toString(origArray));\n \n Integer[] tempArray = removeDuplicates2(origArray);\n \n // Verify the array content\n System.out.println(Arrays.toString(tempArray));\n\t}",
"@Test\n public void testRemoveUser_User04() {\n System.out.println(\"removeUser\");\n User user = new User(\"nick10\", \"mail_10_@sapo.pt\");\n\n Set<User> expResult = new HashSet<>();\n expResult.add(new User(\"nick0\", \"mail_0_@sapo.pt\"));\n expResult.add(new User(\"nick1\", \"mail_1_@sapo.pt\"));\n expResult.add(new User(\"nick2\", \"mail_2_@sapo.pt\"));\n expResult.add(new User(\"nick3\", \"mail_3_@sapo.pt\"));\n expResult.add(new User(\"nick4\", \"mail_4_@sapo.pt\"));\n expResult.add(new User(\"nick5\", \"mail_5_@sapo.pt\"));\n expResult.add(new User(\"nick6\", \"mail_6_@sapo.pt\"));\n expResult.add(new User(\"nick7\", \"mail_7_@sapo.pt\"));\n expResult.add(new User(\"nick8\", \"mail_8_@sapo.pt\"));\n expResult.add(new User(\"nick9\", \"mail_9_@sapo.pt\"));\n\n sn10.removeUser(user);\n Set<User> result = sn10.getUsersList();\n assertEquals(expResult, result);\n }",
"public int removeDuplicates(int[] nums) {\n if (nums.length == 0) return 0;\n int i = 0;\n for (int j = 1; j < nums.length; j++) {\n if (nums[j] != nums[i]) {\n i++;\n nums[i] = nums[j];\n }\n }\n return i + 1;\n}",
"public static ListNode deleteDuplicates(ListNode head) {\n\n if(head == null || head.next == null)\n return head;\n\n ListNode fakehead = new ListNode(0);\n fakehead.next = head;\n ListNode p1 = fakehead;\n ListNode p2 = head;\n\n while(p2 != null && p2.next != null){\n if(p2.val != p2.next.val){\n p1 = p1.next;\n p2 = p2.next;\n }\n else{\n while(p2 != null && p2.next != null && p2.val == p2.next.val){\n p2 = p2.next;\n }\n p2 = p2.next;\n p1.next = p2;\n }\n }\n\n return fakehead.next;\n }",
"public static void main(String[] args) {\n\t\tint[] duplicates=new int[] {1, 1, 2, 2, 3, 4, 5};\n\t\tremoveDuplicatesWithOutUsingAPI removeDuplicates= new removeDuplicatesWithOutUsingAPI();\n\t\tint[] result=removeDuplicates.removeArrayWithDuplicates(duplicates);\n\t\tSystem.out.println(Arrays.toString(result));\n\t}",
"private void removeDuplicates() {\n ListNode current = head;\n while (current != null && current.next != null) {\n if (current.data == current.next.data) {\n current.next = current.next.next;\n } else {\n current = current.next;\n }\n }\n }",
"@Test\r\n\t\tpublic void testDeleteAll() {\n\t\t\ttestingSet = new IntegerSet(); \r\n\t\t\ttestingSet.insertAll(list1); \r\n\t\t\ttestingSet.deleteAll();\r\n\t\t\t// after data is deleted set should be empty \r\n\t\t\tassertTrue(testingSet.isEmpty());\r\n\t\t}",
"private static void test1() {\n HashSet<Contact> contacts = new HashSet<>();\n\n Contact contact1 = new Contact(123, \"Vasiliy\", \"+380681234136\");\n\n contacts.add(contact1);\n\n\n //------------------------------------------\n\n\n Contact contact2 = new Contact(123, \"Vasiliy\", \"+380689876543\");\n\n contacts.remove(contact2);\n contacts.add(contact2);\n\n printCollection(contacts);\n }",
"public boolean allDuplicatesEqual() {\n int[] input = {1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5};\n int dupA = findDuplicatesA(input);\n int dupB = findDuplicatesB(input);\n int dupC = findDuplicatesC(input);\n int dupD = findDuplicatesD(input);\n int dupE = findDuplicatesE(input);\n return dupA == dupB && dupA == dupC && dupA == dupD && dupA == dupE;\n }",
"public int removeDuplicates(int[] nums) {\n int repeat = 2;\n if (nums.length <= 2) {\n return nums.length;\n }\n int i = 1, j = 1;\n int count = 1;\n while (j < nums.length) {\n if (nums[j] != nums[j - 1]) {\n count = 1;\n nums[i] = nums[j];\n i++;\n } else {\n if (count < repeat) {\n nums[i] = nums[j];\n i++;\n count++;\n }\n }\n j++;\n }\n return i;\n }",
"@Test\n\tpublic void testRepeatedInsert() {\n\t\tSetADT<String> items = new JavaSet<>();\n\t\titems.insert(\"A\");\n\t\titems.insert(\"B\");\n\t\titems.insert(\"C\");\n\t\titems.insert(\"C\");\n\t\t\n\t\t// No matter what, \"C\" can't be added twice.\n\t\titems.insert(\"C\");\n\t\tassertEquals(3, items.size());\n\t\t\n\t\t//double checking - same as for loop\n\t\titems.insert(\"C\");\n\t\tassertEquals(3, items.size());\n\t\t\n\t\tassertEquals(3, items.size());\n\t\tassertEquals(true, items.contains(\"A\"));\n\t\tassertEquals(true, items.contains(\"B\"));\n\t\tassertEquals(true, items.contains(\"C\"));\n\t\t\n\t}",
"@Test(timeout=1000)\n\tpublic void testRemoveElementTwice() {\n\t\texception.expect(RuntimeException.class);\n\t\texception.reportMissingExceptionWithMessage(\"Student 1 was already remove and thus a RuntimeException should be thrown\");\n\t\thashmap.add(s1);\n\t\thashmap.add(s9);\n\t\thashmap.remove(s1);\n\t\thashmap.remove(s1);\n\t}",
"static void deleteDup(Linkedlists list){\r\n\tif(list.head==null){\r\n\t\tSystem.out.println(\"enmpty list\");\r\n\t\treturn;\r\n\t}\r\n\telse{\r\n\t\tNode current=list.head;\r\n\t\twhile(current != null){\r\n\t\t\tNode runner=current;\r\n\t\twhile(runner.next != null){\r\n\t\t\tif(runner.next.data==current.data){\r\n\t\t\t\trunner.next=runner.next.next;\r\n\t\t\t\tlist.removeNode(current.data);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\trunner=runner.next;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcurrent=current.next;\r\n\t\t}\r\n\t}\r\n\r\n\tSystem.out.println(\"list after duplicate removal\");\r\n\tlist.printList();\r\n}",
"public ListNode deleteDuplicates2(ListNode head) {\n if (head == null || head.next == null) {\n return head;\n }\n // 0 - 1 - 2 - 3 - 3 - null\n // s\n //. 2 - 3 - 3 - null\n // f\n ListNode slow = head;\n ListNode fast = slow.next;\n while (fast != null) {\n if (slow.val != fast.val) {\n slow = slow.next;\n } else {\n slow.next = fast.next;\n }\n fast = fast.next;\n }\n return head;\n }",
"public void removeDuplicates(){\n HashSet<Object> elements = new HashSet<>();\n Node n = head;\n int i=0;\n while(n!=null){\n if(elements.contains(n.getData())){\n if (size == 1) {\n this.head.setData(null);\n } else {\n if (n == this.head) {\n this.head = n.next;\n this.head.prev = this.head;\n } else if (n == this.tail) {\n this.tail = n.prev;\n this.tail.next = this.tail;\n } else {\n n.prev.next = n.next;\n n.next.prev = n.prev;\n }\n }\n size--;\n }else{\n elements.add(n.getData());\n }\n n=n.next;\n }\n }",
"public ArrayList<Person> quicksortDeduplication(){\n\t//copy data from list to array arr\n\tPerson[] arr = new Person[this.lst.size()];\n\tfor(int i=0; i< lst.size();i++){\n\t arr[i] = this.lst.get(i);\n\t}\n\t//sort array => see QuickSort class\n\tQuickSort.sort(arr,0,arr.length-1);\n\t//create list to store singular data\n\tArrayList<Person> unduplicated2 = new ArrayList<>();\n\t//compare successive elements of array to find duplicates\n\tint limit =0;\n\tif (arr.length ==0 || arr.length==1) limit =arr.length;\n\tint j=0;\n\t//store only singular data in the beginning of the array\n\tfor (int i = 0; i < arr.length-1; i++) \n if (arr[i].compareTo( arr[i+1]) != 0) \n arr[j++] = arr[i]; \n\t// add last element to array\n arr[j++] = arr[arr.length-1];\n\t//record last index of singular element\n\tlimit =j;\n\t//copy elements up to the singularity index to the list\n\tfor(int k=0; k< limit; k++){\n\t unduplicated2.add(arr[k]);\n\t}\n\treturn unduplicated2;\n }",
"static void test_evensOnlyNoDupes() {\n\n System.out.println( \"\\nTESTS for evensOnlyNoDupes() : \" );\n\n System.out.print( \"String 'BBddHHjj' returns: \" );\n try { System.out.println( StringStuff.evensOnlyNoDupes( \"BBddHHjj\" ) ); }\n catch ( Exception e ) { System.out.println ( false ); }\n\n System.out.print( \"String 'BcdBcdBcd' returns: \" );\n try { System.out.println( StringStuff.evensOnlyNoDupes( \"BcdBcdBcd\" ) ); }\n catch ( Exception e ) { System.out.println ( false ); }\n\n\n }",
"@Test\r\n public void removeAndContains() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n s.remove(2);\r\n assertFalse(s.contains(2));\r\n }",
"@Test\r\n public void removeAndForEach() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n s.remove(2);\r\n int[] expected1 = {1, 3, 4, 5};\r\n int i = 0;\r\n for (int el : s) {\r\n assertEquals(expected1[i], el);\r\n i++;\r\n }\r\n }",
"public static void main(String[] args) {\n\t\t\n\t\tint arr[] = {1, 9, 45, 6, 9, 10, 7};\n\t\t\n\t\tfindDuplicatesBruteForce(arr);\n\t\t\n\t\tfindDuplicatesBySorting(arr);\n\t\t\n\t\t\n\t\tint arr2[] = {3,2,1,2,2, 3, 4};\n\t\t\n\t\tfindDuplicatesByHashTable(arr2);\n\t\t\n\t\tfindDuplicatesByNegation(arr2);\n\t\t\n\n\t}",
"@SuppressWarnings(\"unused\")\n private List<DetailedData> removeDuplicates(List<DetailedData> detailedDatas)\n {\n List<DetailedData> detailedDatasNoDuplicates = new ArrayList<DetailedData>();\n long previousTuId = -1;\n String previousTarget = null;\n for (int i = detailedDatas.size() - 1; i >= 0; i--)\n {\n DetailedData data = detailedDatas.get(i);\n if (data.getTuId() != previousTuId || !data.getTarget().equals(previousTarget)\n || !TuvState.OUT_OF_DATE.getName().equalsIgnoreCase(data.getState()))\n {\n detailedDatasNoDuplicates.add(0, data);\n }\n\n previousTuId = data.getTuId();\n previousTarget = data.getTarget();\n }\n\n return detailedDatasNoDuplicates;\n }",
"private void clearDuplicates(){\n\t\tLinkedHashSet<String> duplicateFree;\n\t\tList<String> RawStrings=new ArrayList<String>();\n\t\tfor (String[] rCode:mutatedCodes){\n\t\t\tRawStrings.add(rCode[0]+\"~\"+rCode[1]+\"~\"+rCode[2]+\"~\"+rCode[3]+\"~\"+rCode[4]+\"~\"+rCode[5]+\"~\"+rCode[6]+\"~\"+rCode[7]+\"~\"+rCode[8]+\"~\"+rCode[9]+\"~\"+rCode[10]+\"~\"+rCode[11]+\"~\"+rCode[12]+\"~\"+rCode[13]+\"~\"+rCode[14]+\"~\"+rCode[15]+\"~\"+rCode[16]+\"~\"+rCode[17]+\"~\"+rCode[18]+\"~\"+rCode[19]);\n\t\t}\n\t\tduplicateFree=new LinkedHashSet<String>(RawStrings);\n\t\tSystem.out.println(\"Number of Duplicates cleared:\"+(RawStrings.size()-duplicateFree.size()));\n\t\tSystem.out.println(\"Remaining Codes for next Run:\"+duplicateFree.size());\n\t\tCodeCount=0;\n\t\ttry {\n\t\t\tcodes=new FileWriter(\"data/codes.txt\");\n\t\t\tfor (String S:duplicateFree){\n\t\t\t\twriteCodeLine(S);\n\t\t\t}\n\t\t\tcodes.close();\n\t\t\tThread.sleep(1000L);\n\t\t} catch (IOException | InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void removeDuplicates(int[] a)\r\n\t\t{\r\n\t\t\tLinkedHashSet<Integer> set\r\n\t\t\t\t= new LinkedHashSet<Integer>();\r\n\r\n\t\t\t// adding elements to LinkedHashSet\r\n\t\t\tfor (int i = 0; i < a.length; i++)\r\n\t\t\t\tset.add(a[i]);\r\n\r\n\t\t\t// Print the elements of LinkedHashSet\r\n\t\t\tSystem.out.print(set);\r\n\t\t}",
"public static void main(String[] args) {\n\n ListNode head = new ListNode(1);\n ListNode node2 = new ListNode(1);\n ListNode node3 = new ListNode(1);\n ListNode node4 = new ListNode(1);\n ListNode node5 = new ListNode(1);\n ListNode node6 = new ListNode(2);\n\n node5.next = node6;\n node4.next = node5;\n node3.next = node4;\n node2.next = node3;\n head.next = node2;\n\n removeDuplicateNodes(head);\n\n return;\n }",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tint[] A={0,1,2,2,2,3,4};\n\t\tSystem.out.println(removeDuplicates(A));\n\t\tfor(int i=0;i<A.length;i++){\n\t\t\tSystem.out.print(A[i]);\n\t\t}\n\t}",
"public int removeDuplicates(int[] nums) {\n int integer=0;\n for (int i=0; i<nums.length; i++){\n if (nums[i]!=nums[integer]){\n integer++;\n nums[integer]=nums[i];\n }\n }\n return integer+1;\n }",
"public void containsNoDuplicates() {\n List<Entry<T>> duplicates = Lists.newArrayList();\n for (Multiset.Entry<T> entry : LinkedHashMultiset.create(getSubject()).entrySet()) {\n if (entry.getCount() > 1) {\n duplicates.add(entry);\n }\n }\n if (!duplicates.isEmpty()) {\n failWithRawMessage(\"%s has the following duplicates: <%s>\", getDisplaySubject(), duplicates);\n }\n }",
"@Test\n void testRemoveDeletesHeadAfterMultiplePuts() {\n MyList l = new MyList();\n for (int i = 0; i < 10; i++)\n l.put(\"key\" + i, \"value\" + i);\n String oldHeadKey = l.getHeadKey();\n l.remove(oldHeadKey);\n\n assertEquals(false, l.contains(oldHeadKey));\n }",
"@Test\n\tpublic void testRemoveAll() {\n\t\tSet<Integer> setA = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5));\n\t\tSet<Integer> setB = new HashSet<>(Arrays.asList(9, 8, 7, 6, 5, 4, 3));\n\t\tsetA.removeAll(setB);\n\t\tSet<Integer> union = new HashSet<>(Arrays.asList(1, 2));\n\t\tassertEquals(setA, union);\n\t}",
"public static void main(String[] args) {\n\t\tint a[] = {1,2,2,6,7,3,4,4,5,5,6,7};\n\t\t\n\t\t\n\t\tMap<Integer,Integer> map =new HashMap<Integer,Integer>();\n\t\t\n\t\tfor (Integer num :a) {\n\t\t\tInteger Count =map.get(num);\n\t\t\tif(Count==null) {\n\t\t\t\tmap.put(num, 1);\n\t\t\t}else {\n\t\t\t\tmap.put(num, ++Count);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tSet<Entry<Integer, Integer>> entryset =map.entrySet();\n\t\tArrayList<Integer> list =new ArrayList<Integer>();\n\t\tfor(Entry<Integer, Integer> entry :entryset) {\n\t\t\tif(entry.getValue()>1) {\n\t\t\t\tlist.add(entry.getKey());\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(\"Duplicates are \" +list);\n\t\t\n\t\tSet<Entry<Integer, Integer>> entryset1 =map.entrySet();\n\t\tArrayList<Integer> nonduplist =new ArrayList<Integer>();\n\t\tfor(Entry<Integer, Integer> entry1 :entryset1) {\n\t\t\tif(entry1.getValue()==1) {\n\t\t\t\tnonduplist.add(entry1.getKey());\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(\"Non Duplicates are \" +nonduplist);\n\t\t\n \n}",
"public ListNode LCdeleteDuplicates(ListNode head) {\n // use two pointers, slow - track the node before the dup nodes,\n \t// fast - to find the last node of dups.\n\n // Raz:\n // the idea is really hard to think of\n // just add the fast.next to slow first.\n // if the fast is duplicate, then remove it, change the slow.next to now fast.next\n // not easy enough as the solution above I think.\n\n ListNode dummy = new ListNode(0), fast = head, slow = dummy;\n slow.next = fast;\n while(fast != null) {\n \twhile (fast.next != null && fast.val == fast.next.val) {\n \t\tfast = fast.next; //while loop to find the last node of the dups.\n \t}\n \tif (slow.next != fast) { //duplicates detected.\n \t\tslow.next = fast.next; //remove the dups.\n \t\tfast = fast.next; //reposition the fast pointer.\n \t} else { //no dup, move down both pointer.\n \t\tslow = slow.next;\n \t\tfast = fast.next;\n \t}\n }\n return dummy.next;\n }",
"@Test\n public void testGetDuplicateUsers() {\n UserMapping userMapping = new UserMapping();\n userMapping.setTenancy(tenancy);\n userMapping.setNhsno(\"nhsno1\");\n userMapping.setUnitcode(\"unitcodeA\");\n userMapping.setUsername(\"usernameDuplicate1-GP\");\n\n userMappingDao.save(userMapping);\n\n // this one will show\n userMapping = new UserMapping();\n userMapping.setTenancy(tenancy);\n userMapping.setNhsno(\"nhsno1\");\n userMapping.setUnitcode(\"unitcodeA\");\n userMapping.setUsername(\"usernameDuplicate1\");\n\n userMappingDao.save(userMapping);\n\n List<UserMapping> userMappings = userMappingDao.getDuplicateUsers(\"nhsno1\", \"username1\", tenancy);\n\n // should get back 1 result\n assertEquals(\"incorrect number of duplicates found for nhsno1\", 1, userMappings.size());\n\n assertEquals(\"incorrect duplicate found for nhsno1\", \"usernameDuplicate1\", userMappings.get(0).getUsername());\n }",
"public void testStatistics(){\n Profile profile = new Profile(\"id1\");\n GeoLocation uni_loc = new GeoLocation(0.0, 0.0);\n ArrayList<Trial> trials = new ArrayList<>();\n\n for (int i=1; i<101; i++){\n TrialIntCount trial = new TrialIntCount(\"\"+i, uni_loc, profile, 0);\n if (i<40 && i%2==0){\n trial.setCount(i);\n\n trials.add(trial);\n } else if (i>= 40 && i<80 && i%3==0){\n trial.setCount(i);\n\n trials.add(trial);\n } else if ( i >= 80 && i%5==0) {\n trial.setCount(i);\n TrialIntCount trial2 = new TrialIntCount(\"1\"+i, uni_loc, profile, 0);\n trial2.setCount(i);\n\n trials.add(trial);\n trials.add(trial2);\n }\n }\n\n this.exp = new Experiment(\"foo\");\n this.exp.addTrials(trials);\n\n assertEquals(\"removeDupes does not work\", 37, this.exp.removeDupes().length);\n assertEquals(\"frequencies does not work\", 15, exp.frequencies().length);\n assertEquals(\"median does not work\", \"46.5\", exp.getMedian());\n assertEquals(\"Q1 does not work\", \"23.00\", exp.getQ1());\n assertEquals(\"Q3 does not work\", \"76.50\", exp.getQ3());\n assertEquals(\"std does not work\", \"30.39\", exp.getStd());\n assertEquals(\"mean does not work\", \"49.05\", exp.getMean());\n\n }",
"public int removeDuplicates(int[] nums){\n if(nums.length <=1) return 1; \n \n\t\tint j =0;\n\t\tfor(int i =1; i < nums.length; i++){\n\t\t\tif(nums[i] !=nums[j]){\n\t\t\t\tj++;\n\t\t\t\tnums[j] = nums[i];\n\t\t\t}\n\t\t}\n\t\treturn j+1;\n\t}",
"@Test\n\tvoid RepeatedNumberTest() \n\t{ int[] oneNum = new int[] {1};\n\t\tint[] twoDiffNums = new int[] {1, 2};\n\t\tint[] twoSameNums = new int[] {2, 2};\n\t\tint[] insideOut = new int[] {5, 4, 3, 2, 1, 1, 2, 3, 4, 5};\n\t\t\n\t\tassertFalse(utilities.RepeatedNumber(oneNum));\n\t\tassertFalse(utilities.RepeatedNumber(twoDiffNums));\n\t\tassertTrue(utilities.RepeatedNumber(twoSameNums));\n\t\tassertTrue(utilities.RepeatedNumber(insideOut));\n\t}",
"@Test \r\n\t\tpublic void testinsertAll() {\n\t\t\ttestingSet = new IntegerSet();\r\n\t\t\ttestingSet.insertAll(list1);\r\n\t\t\t// create set = to unique values in list \r\n\t\t\ttestingSet2 = new IntegerSet(unique); \r\n\t\t\t// 2 set should be equal \r\n\t\t\t// assertEquals for these parameters is a deprecated method \r\n\t\t\tassertArrayEquals(testingSet.toArray(), testingSet2.toArray()); \r\n\t\t\t\t\t\t\t\t\t\t\t\t \r\n\t\t}",
"public ListNode deleteDuplicates(ListNode head) {\n\t\tif(head == null)\n\t\t\treturn null;\n\t\tListNode res = head;\n\t\tSet<Integer> dedupSet = new HashSet<Integer>();\n\t\tListNode pre = head;\n\t\tdedupSet.add(head.val);\n\t\thead = head.next;\n\t\twhile(head != null){\n\t\t\tif(!dedupSet.contains(head.val)){\n\t\t\t\tdedupSet.add(head.val);\n\t\t\t\tpre = head;\n\t\t\t}else{\n\t\t\t\tpre.next = head.next;\n\t\t\t}\n\t\t\thead = head.next;\n\t\t}\n return res;\n }",
"public void test_retainAll() {\r\n try {\r\n List<WrongHashCode> retain = new ArrayList<WrongHashCode>();\r\n retain.add(new WrongHashCode(\"1\"));\r\n \r\n Set<WrongHashCode> set = IdentityHashSet.create();\r\n set.add(new WrongHashCode(\"2\"));\r\n \r\n assertTrue(set.retainAll(retain));\r\n assertEquals(0, set.size());\r\n \r\n fail(\"retainAll works now, rewrite test\");\r\n } catch (UnsupportedOperationException e) {\r\n //passed\r\n }\r\n }",
"public int removeDuplicates(int[] nums) {\n if (nums.length == 0) {\n return 0;\n }\n int j = 0;\n for (int i = 1; i < nums.length; i++) {\n if (nums[i] != nums[j]) {\n j++;\n nums[j] = nums[i];\n }\n }\n return j + 1;\n }",
"private static int[] removeDuplicates(int[] a) {\n\t\tif (a.length < 2) return a;\n\n\t\tint i = 0;\n\t\tint j = 1;\n\n\t\twhile (j < a.length) {\n\t\t\tif (a[i] == a[j]) {\n\t\t\t\tj++;\n\t\t\t} else {\n\t\t\t\ti++;\n\t\t\t\ta[i] = a[j];\n\t\t\t\tj++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(Arrays.toString(a));\n\t\tint[] b = Arrays.copyOf(a, i + 1);\n\t\treturn b;\n\t}",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n ArrayList<Integer> list = new ArrayList<Integer>();\n System.out.print(\"Enter ten integers: \");\n for(int i=0;i<10;i++){\n list.add(scan.nextInt());\n }\n removeDuplicate(list);\n }",
"public void testDuplicate() {\n System.out.println(\"duplicate\");\n BufferedCharSequence instance = null;\n BufferedCharSequence expResult = null;\n BufferedCharSequence result = instance.duplicate();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"public static ListNode deleteDuplicates(ListNode head) {\n \tif(head == null) return null;\n ListNode nd = head;\n HashSet hs = new HashSet();\n hs.add(nd.val);\n while(nd.next!=null){\n \tif(! hs.add(nd.next.val)){\n \t\tnd.next = nd.next.next;\n \t}\n \telse\n \t\tnd = nd.next;\n }\n return head;\n \n }",
"public ListNode deleteDuplicates(ListNode head) {\n if (head == null || head.next == null)\n return head;\n Set<Integer> hs = new HashSet();\n ListNode temp = head;\n ListNode prev = head;\n \n while (temp != null) {\n if (!hs.contains(temp.val)) {\n hs.add(temp.val);\n prev = temp;\n } else {\n prev.next = temp.next;\n }\n temp = temp.next;\n }\n return head;\n }",
"private <T> void assertDeduped(List<T> array, Comparator<T> cmp, int expectedLength) {\n List<List<T>> types = List.of(new ArrayList<T>(array), new LinkedList<>(array));\n for (List<T> clone : types) {\n // dedup the list\n CollectionUtils.sortAndDedup(clone, cmp);\n // verify unique elements\n for (int i = 0; i < clone.size() - 1; ++i) {\n assertNotEquals(cmp.compare(clone.get(i), clone.get(i + 1)), 0);\n }\n assertEquals(expectedLength, clone.size());\n }\n }",
"public static void removeDuplicate(ArrayList<Integer>list) {\n \n //create a temporary arraylist\n ArrayList<Integer> tempList = new ArrayList<>();\n \n //loop thru the list and check if list contains the same integer/number/value as tempList\n for (int i = 0; i < list.size(); i++) {\n if (!tempList.contains(list.get(i))) {\n tempList.add(list.get(i));\n }\n }\n \n //clear the list\n list.clear();\n \n //add all integers/numbers/value from tempList into list\n list.addAll(tempList);\n \n }",
"public boolean hasDuplicates(boolean ignoreWhenIdentical) {\n boolean compareJustClassNames = !ignoreWhenIdentical;\n if (compareJustClassNames) {\n return list.size() > 1;\n }\n\n if (list.size() <= 1) {\n return false;\n }\n\n String previousHash = list.get(0).getHash();\n for (int i = 1; i < list.size(); i++) {\n String currentHash = list.get(i).getHash();\n if (!previousHash.equals(currentHash)) {\n return true;\n }\n }\n\n log.debug(\"ignoring duplicates of class \" + classFilePath + \" since the bytecode matches exactly\");\n\n return false;\n }",
"@Test(timeout=1000)\n\tpublic void testAddRemoveContains() {\n\t\thashmap.add(s1);\n\t\thashmap.add(s2);\n\t\thashmap.remove(s1);\n\t\tassertFalse(\"Student on was removed from the HashMap but the contains method still returns true\", hashmap.contains(s1));\n\t}",
"public SetTest()\r\n {\r\n List< String > list = Arrays.asList( colors );\r\n System.out.printf( \"ArrayList: %s\\n\", list );\r\n printNonDuplicates( list );\r\n }",
"@Test\n public void removeEqualWordsTest(){\n BotController botController = new BotController(clueService);\n List<Synonym> synonymsOfDiamond = botController.getSimilarWords(\"diamond\");\n //assume diamonds get return as synonym of diamond\n Synonym diamondsSynonym = new Synonym();\n diamondsSynonym.setWord(\"diamonds\");\n diamondsSynonym.setScore(1000);\n synonymsOfDiamond.add(diamondsSynonym);\n\n List<String> synonymsBeforeRemoving = new ArrayList<>();\n for(Synonym synonym: synonymsOfDiamond){\n synonymsBeforeRemoving.add(synonym.getWord());\n }\n synonymsOfDiamond = botController.removeEqualWords(synonymsOfDiamond,\"diamond\");\n List<String> synonymsAfterRemoving = new ArrayList<>();\n for(Synonym synonym: synonymsOfDiamond){\n synonymsAfterRemoving.add(synonym.getWord());\n }\n\n assertTrue(synonymsBeforeRemoving.contains(\"diamonds\"));\n assertFalse(synonymsAfterRemoving.contains(\"diamonds\"));\n\n\n }",
"public void removeDupsMtd2() {\n Node curr = head;\n Node prev = head;\n while (curr != null) {\n Node runner = curr.getNext();\n while(runner != null) {\n if (runner.getValue() == curr.getValue()) {\n curr.setNext(runner.getNext());\n }\n runner = runner.getNext();\n }\n curr = curr.getNext();\n }\n }",
"private Node removeDuplicate() {\n ArrayList<Integer> values = new ArrayList<Integer>();\n int len = this.getlength();\n Node result = this;\n\n if (len == 1) {\n System.out.println(\"only one element can't duplicate\");\n return result;\n } else {\n Node current = result;\n\n for (int i = 0; i < len; i++) {\n if (values.contains(current.value)) {\n result = result.remove(i);\n len = result.getlength();\n i--; // reset the loop back\n current = current.nextNode;\n } else {\n values.add(current.value);\n current = current.nextNode;\n }\n }\n return result;\n }\n }",
"@Test\n public void testDuplicate() throws Exception {\n\n UploadRequest uploadRequest = createRequest();\n\n // create upload - We still care about study ID and requestedOn for reporting, as well as dupe attributes.\n DynamoUpload2 upload = (DynamoUpload2) dao.createUpload(uploadRequest, TEST_STUDY, TEST_HEALTH_CODE,\n ORIGINAL_UPLOAD_ID);\n uploadIds.add(upload.getUploadId());\n assertEquals(ORIGINAL_UPLOAD_ID, upload.getDuplicateUploadId());\n assertEquals(UploadStatus.DUPLICATE, upload.getStatus());\n assertEquals(TEST_STUDY_IDENTIFIER, upload.getStudyId());\n assertEquals(MOCK_NOW.getMillis(), upload.getRequestedOn());\n\n // We don't call Upload Complete in this scenario.\n }",
"@Test\r\n public void removeAndSize() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n assertTrue(s.remove(2));\r\n assertEquals(4, s.size());\r\n assertFalse(s.remove(2));\r\n assertEquals(4, s.size());\r\n }",
"Boolean same(MultiSet<X> s);",
"public static void main(String[] args) {\n\n\n\n\n ArrayList<String> names = new ArrayList<>();\n names.add(\"Tima\");\n names.add(\"Eldiar\");\n names.add(\"Beksultan\");\n names.add(\"Ilias\");\n names.add(\"Nurkan\");\n names.add(\"Alisher\");\n names.add(\"Tima\");\n String name = \"Tima\";\n int count = 0;\n\n for (String firstName : names) {\n if (firstName.equals(name)) {\n count++;\n }\n }\n System.out.println(count);\n\n String[] ar=names.toArray(new String[0]);\n\n\n\n System.out.println(names.get(0));\n System.out.println(\"============\");\n\n ArrayList<String> copy = (ArrayList) names.clone();\n\n Collections.sort(copy);\n for (String copies : copy) {\n System.out.println(copies);\n\n }\n System.out.println(\"=============\");\n System.out.println(\"removing all the duplicates from the Arraylist\");\n Set<String> unique = new HashSet<>();\n for (String removingDuplicates : copy) {\n unique.add(removingDuplicates);\n\n }\n\n for (String uniq:unique){\n System.out.println(uniq);\n }\n\n Set<String> sorted=new TreeSet<>();\n for (String sorting:unique){\n sorted.add(sorting);\n }\n System.out.println(\"=============\");\n for (String alreadySorted:sorted){\n System.out.println(alreadySorted);\n }\n\n }"
] | [
"0.78209555",
"0.72704214",
"0.6848103",
"0.68179953",
"0.68104917",
"0.67317116",
"0.6643454",
"0.66374665",
"0.65841",
"0.6563196",
"0.6526229",
"0.6490033",
"0.64445007",
"0.6414482",
"0.6371371",
"0.63595915",
"0.6355545",
"0.62901884",
"0.6253607",
"0.6216676",
"0.6148102",
"0.6133067",
"0.61186427",
"0.6112404",
"0.6079285",
"0.60692126",
"0.60467714",
"0.6033603",
"0.6025842",
"0.6018569",
"0.5987141",
"0.59854996",
"0.5974118",
"0.5963147",
"0.59300447",
"0.5922748",
"0.5904594",
"0.5903138",
"0.58925015",
"0.588974",
"0.5884227",
"0.5877881",
"0.58400255",
"0.5836911",
"0.58312845",
"0.5820569",
"0.581834",
"0.58148754",
"0.58133405",
"0.5803894",
"0.5802276",
"0.57990485",
"0.57798046",
"0.5777119",
"0.5776424",
"0.5774274",
"0.57735974",
"0.57669014",
"0.5765121",
"0.5758471",
"0.5758165",
"0.5755912",
"0.57462126",
"0.57460815",
"0.57424253",
"0.57379746",
"0.5728991",
"0.5721339",
"0.5704254",
"0.5696736",
"0.5668985",
"0.566465",
"0.5654837",
"0.56536204",
"0.5646963",
"0.5631967",
"0.56210697",
"0.5608808",
"0.56051636",
"0.5599824",
"0.55871904",
"0.5585833",
"0.55857986",
"0.5584771",
"0.5574831",
"0.55681616",
"0.5566873",
"0.55656654",
"0.55579454",
"0.5538632",
"0.5534198",
"0.5531488",
"0.5529381",
"0.5523997",
"0.55205786",
"0.55192715",
"0.5519228",
"0.5515933",
"0.55137306",
"0.5508083"
] | 0.7383315 | 1 |
Get Complaint Obj base on Id | @Override
public Complaint getComplaintById(int id) {
DataConnection db = new DataConnection();
Connection conn = db.getConnection();
String query = "SELECT * FROM Complaint WHERE id = ?";
ResultSet rs = null;
try {
PreparedStatement ps = conn.prepareStatement(query);
ps.setInt(1, id);
rs = ps.executeQuery();
if (rs.next()) {
return this.createComplaintObj(rs);
}
} catch (SQLException ex) {
Logger.getLogger(DefaultComplaintsManagements.class.getName()).log(Level.SEVERE, null, ex);
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n Optional<Complaint> findById(Integer id);",
"public Conge find( Integer idConge ) ;",
"public abstract Integer getCompteId();",
"public Conseiller getById(int id) {\n\t\treturn null;\r\n\t}",
"public New getObject(long id);",
"@Override\n\t\tpublic Carrera get(int id) {\n\t\t\t\treturn null;\n\t\t}",
"Company getCompany(int id);",
"@Override\r\n\tpublic Commodity getCommodityById(int id) {\n\t\treturn getHibernateTemplate().get(Commodity.class, id);\r\n\t}",
"@Override\n public Optional<Compte> getById(Long idCompte) {\n Session session = entityManager.unwrap(Session.class);\n return Optional.of(session.get(Compte.class, idCompte));\n }",
"public Cd getById(int id) {\n\t\tString sql = \" from Cd where id=:id\";\n\t\tQuery query = HibernateUtil.getSession().createQuery(sql).setParameter(\"id\", id);\n\t\treturn (Cd)findOne(query);\n\t\t\n\t}",
"public Complaint findByComplaintId(int complaintId) {\n\t\treturn complaintRepository.findByComplaintId(complaintId);\n\t}",
"public Cource getCource(int id) {\n Cource cource = null;\n SQLiteDatabase db = this.getReadableDatabase(); // On veut lire dans la BD\n Cursor cursor = db.query(TABLE_COURCE, new String[]{COURCE_ID,\n COURCE_ID_USER, COURCE_PAS, COURCE_CALORIES, COURCE_TEMPS, COURCE_DISTANCE,\n COURCE_TYPE, COURCE_DATE}, COURCE_ID + \"=?\",\n new String[]{String.valueOf(id)}, null, null, null, null);\n if (cursor != null && cursor.getCount()>0) {\n cursor.moveToFirst();\n cource = new Cource(cursor.getInt(0), cursor.getInt(1), cursor.getInt(2),\n cursor.getDouble(3), cursor.getString(4), cursor.getString(5),\n cursor.getString(6), cursor.getString(7));\n }\n cursor.close();\n db.close(); // Fermer la connexion\n// Retourner l'cource\n return cource;\n }",
"@Override\n\tpublic Optional<Comprobante> findById(Integer id) throws Exception {\n\t\treturn comproRepository.findById(id);\n\t}",
"CGcontractCredit selectByPrimaryKey(Integer id);",
"public Company findCompany(long id);",
"CE findById(ID id);",
"public Commit getCommitById(int id) {\r\n for (Commit c : this.commmit) {\r\n if (c.getId() == id) {\r\n return c;\r\n }\r\n }\r\n return null;\r\n }",
"public Cvpack findCvpackById(Long id);",
"@Override\n\tpublic BatimentoCardiaco get(long id) {\n\t\treturn null;\n\t}",
"CCustomer selectByPrimaryKey(Integer id);",
"public Integer getCompid() {\n return compid;\n }",
"BaseCountract selectByPrimaryKey(Integer cId);",
"public abstract Company get(int id);",
"public Objet getObjetById(int id){\n \n Objet ob=null;\n String query=\" select * from objet where id_objet=\"+id;\n \n try { \n Statement state = Connect.getInstance().createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n ResultSet res = state.executeQuery(query);\n while(res.next()) ob=new Objet(res.getInt(\"id_objet\"),res.getInt(\"id_user\"),res.getInt(\"qte\"),res.getString(\"types\"),res.getString(\"description\"));\n res.close();\n state.close();\n \n } catch (SQLException e) {\n e.printStackTrace();\n }\n \n return ob;\n }",
"public AirspaceObject getObject(int id)\n\t{\n\t\treturn idToObject.get(id);\n\t}",
"public Componente getComponente(int id) {\n\t\ttry {\n\t\t\tfor(Map.Entry<String, ArrayList<Componente>> entry : this.mappaComponenti.entrySet()) {\n\t\t\t\tArrayList<Componente> tempList = entry.getValue();\n\t\t\t\tfor(Componente c : tempList) {\n\t\t\t\t\tif(c.getId() == id) return c;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"Corretor findOne(Long id);",
"int getObjId();",
"int getObjId();",
"int getObjId();",
"int getObjId();",
"int getObjId();",
"int getObjId();",
"public Coche consultarUno(int id) {\n Coche coche =cochedao.consultarUno(id);\r\n \r\n return coche;\r\n }",
"public String getCopii(int id) {\n String denumiri=new String();\n String selectQuery = \"SELECT denumire FROM copii WHERE id=\"+id;\n Cursor cursor = db.rawQuery(selectQuery, new String[]{});\n if (cursor.moveToFirst()) {\n do {\n denumiri = cursor.getString(0);\n } while (cursor.moveToNext());\n }\n return denumiri;\n }",
"public CyPoj findById(Integer id) {\n\t\treturn d.findById(id);\r\n\t}",
"public So_cdVO getById(String so_cd);",
"public ConProcess getById(int id) throws AppException;",
"Cemetery findOne(Long id);",
"DrpCommissionRule selectByPrimaryKey(Long id);",
"public Produit getProduit(int theId);",
"private Commit getCommitFromID(String shaCode) {\n File f = new File(Main.ALL_COMMITS, shaCode);\n if (f.exists()) {\n return Utils.readObject(f, Commit.class);\n } else {\n return null;\n }\n }",
"public Commande getSingleCommandes(Integer theId) {\n return commandeDao.findById(theId).get();\r\n }",
"@Override\n\tpublic Commodity findByid(String cid) {\n\t\tCommodity commodity=new Commodity();\n\t\tcommodity=this.getHibernateTemplate().get(Commodity.class,cid);\n\t return commodity;\n\t}",
"public String getCompoId() {\n\t return compoId;\r\n\t }",
"public Integer getCompId() {\n return compId;\n }",
"protected CompaniesContactsEntity findById(int id) {\n log.info(\"CompaniesContact => method : findById()\");\n\n FacesMessage msg;\n\n if (id == 0) {\n log.error(\"CompaniesContact ID is null\");\n msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, JsfUtils.returnMessage(getLocale(), \"note.notExist\"), null);\n FacesContext.getCurrentInstance().addMessage(null, msg);\n throw new EntityNotFoundException(\n \"L ID de la note est incorrect\",\n ErrorCodes.COMPANY_NOT_FOUND\n );\n }\n\n EntityManager em = EMF.getEM();\n Optional<CompaniesContactsEntity> optionalCompaniesContactsEntity;\n try {\n optionalCompaniesContactsEntity = companiesContactsDao.findById(em, id);\n } finally {\n em.clear();\n em.close();\n }\n return optionalCompaniesContactsEntity.orElseThrow(() ->\n new EntityNotFoundException(\n \"Aucune Note avec l ID \" + id + \" n a ete trouvee dans la BDD\",\n ErrorCodes.CONTACT_NOT_FOUND\n ));\n }",
"public ctCurso get_ctPuesto(int id) throws RunTime4GLException,\r\n\tSystemErrorException, Open4GLException, IOException, SQLException {\n\t\t\r\n\t\t\r\n\t\tBooleanHolder oplResultado = new BooleanHolder();\r\n\t\tStringHolder opcTexto = new StringHolder();\r\n\r\n\t\tResultSetHolder tt_ctCurso = new ResultSetHolder();\r\n\t\tConnection conexion = DBConexion.getConnection();\r\n\t\tAppServer app = new AppServer(conexion);\r\n\t\tctCurso obj = new ctCurso();\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tapp.as_ctCurso_get(\"SISIMB\", id, tt_ctCurso, oplResultado, opcTexto);\r\n\t\t\t\r\n\t\t\tResultSet rs_tt_ctCurso = tt_ctCurso.getResultSetValue();\r\n\r\n\t\t\twhile (rs_tt_ctCurso.next()) {\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tobj.setiIdCurso(rs_tt_ctCurso.getInt(\"iIdCurso\"));\r\n\t\t\t\tobj.setcNombre(rs_tt_ctCurso.getString(\"cNombre\"));\r\n\t\t\t\tobj.setiMinCup(rs_tt_ctCurso.getInt(\"iMinCup\"));\r\n\t\t\t\tobj.setiMaxCup(rs_tt_ctCurso.getInt(\"iMaxCup\"));\r\n\t\t\t\tobj.setDePrecio(rs_tt_ctCurso.getBigDecimal(\"dePrecio\"));\r\n\t\t\t\tobj.setDeIva(rs_tt_ctCurso.getBigDecimal(\"deIva\"));\r\n\t\t\t\tobj.setDeTotal(rs_tt_ctCurso.getBigDecimal(\"deTotal\"));\r\n\t\t\t\tobj.setId(rs_tt_ctCurso.getBytes(\"id\"));\r\n\t\t\t\t\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.err.println(ex);\r\n\r\n\t\t\t\r\n\t\t} finally {\r\n\t\t\tapp._release();\r\n\t\t\tDBConexion.closeConnection(conexion);\r\n\t\t}\r\n\t\t\r\n\t\treturn obj;\r\n\t}",
"public HistoryItemCS getHistoryCS(int id) {\n\n // 1. build query\n Cursor cursor =\n db.query(TABLE_NAME, // a. table\n COLUMNS, // b. column names\n \" id = ?\", // c. selections\n new String[]{String.valueOf(id)}, // d. selections args\n null, // e. group by\n null, // f. having\n null, // g. order by\n null); // h. limit\n\n // 2. if we got results, get the first one\n if (cursor != null)\n cursor.moveToFirst();\n\n // 3. build cs object\n HistoryItemCS historyCS = new HistoryItemCS();\n historyCS.setAddress(cursor.getString(1));\n historyCS.setDistrict(cursor.getString(2));\n historyCS.setDescription(cursor.getString(3));\n historyCS.setType(cursor.getString(4));\n historyCS.setSocket(cursor.getString(5));\n historyCS.setQuantity(cursor.getInt(6));\n historyCS.setLatitude(cursor.getString(7));\n historyCS.setLongitude(cursor.getString(8));\n historyCS.setMatching_index(cursor.getInt(9));\n\n historyCS.setId(cursor.getInt(cursor.getColumnIndexOrThrow(KEY_ID)));\n\n Log.d(\"getHistoryCS(\" + id + \")\", historyCS.toString());\n\n if (cursor != null)\n cursor.close();\n // 5. return book\n return historyCS;\n }",
"@Override\r\n\tpublic Company getOneCompanyById(int compId) throws CouponSystemException {\r\n\t\tConnection con = null;\r\n\t\ttry {\r\n\t\t\tcon = ConnectionPool.getInstance().getConnection();\r\n\t\t\tString sql = \"select * from companies where companyId=\" + compId;\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(sql);\r\n\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tCompany comp = new Company();\r\n\t\t\t\tcomp.setCompId(compId);\r\n\t\t\t\tcomp.setCompName(rs.getString(\"companyName\"));\r\n\t\t\t\tcomp.setCompEmail(rs.getString(\"companyEmail\"));\r\n\t\t\t\tcomp.setCompPass(rs.getString(\"companyPass\"));\r\n\r\n\t\t\t\treturn comp;\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Couldn't find any company by this ID: \" + compId);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new CouponSystemException(\"getOneCompanyById Failed\", e);\r\n\t\t} finally {\r\n\t\t\tif (con != null) {\r\n\t\t\t\tConnectionPool.getInstance().restoreConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public IConstruct byId(final String id) {\r\n\t\tif (ids == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn (IConstruct) ids.get(id);\r\n\t}",
"Clothes getById(int id);",
"@Override\n public ModeloCuestionario findOne(Integer id) {\n return modeloCuestionarioRepository.findOne(id);\n }",
"@ModelAttribute(\"comic\")\n\tpublic Comic getComic(@RequestParam(value = \"id\", required = false) String id) {\n\t\tComic comic = null;\n\n\t\tif (id != null) {\n\t\t\tcomic = comicService.restart().filterBy(\"id\", Integer.parseInt(id)).pick();\n\t\t} else {\n\t\t\tcomic = new Comic();\n\t\t}\n\n\t\treturn comic;\n\t}",
"public ManagedCompany getManagedCompany(int id) {\n \n ManagedCompany result = null;\n \n try {\n Connection conn = this.databaseUtils.getConnection();\n dao.setConnection(conn);\n result = dao.getItemById(id);\n } catch (SQLException e) {\n Logger.getLogger(AppService.class.getName()).log(Level.SEVERE, null, e);\n }\n \n return result;\n }",
"Optional<Company> getCompany(long id);",
"public Long getCompId() {\n return compId;\n }",
"public Long getCompId() {\n return compId;\n }",
"public Object get(Class cl, Serializable id) throws HibException;",
"ClinicalData selectByPrimaryKey(Long id);",
"@Override\n\tpublic BusinessconfigStuff getObjectById(long id) {\n\t\treturn businessconfigStuffDao.getObjectById(id);\n\t}",
"Contract findById(int id);",
"static Company getCompany(SQLiteDatabase db, String companyId) {\n Cursor cursor = db.query(COMPANY_TABLE, null, COMPANY_ID + \" = ?\", new String[] { companyId }, null, null, null);\n List<Company> list = new LinkedList<Company>();\n if (cursor.moveToFirst()) {\n int idIndex = cursor.getColumnIndex(COMPANY_ID);\n int nameIndex = cursor.getColumnIndex(COMPANY_NAME);\n int logoIndex = cursor.getColumnIndex(COMPANY_LOGO);\n int descriptionIndex = cursor.getColumnIndex(COMPANY_DESCRIPTION);\n int lastUpdatedIndex = cursor.getColumnIndex(COMPANY_LAST_UPDATED);\n int wasDeletedIndex = cursor.getColumnIndex(COMPANY_WAS_DELETED);\n\n do {\n if(cursor.getString(idIndex).equals(companyId)) {\n Company company = new Company();\n company.companyId = cursor.getString(idIndex);\n company.name = cursor.getString(nameIndex);\n company.companyLogo = cursor.getString(logoIndex);\n company.companyDescription = cursor.getString(descriptionIndex);\n company.lastUpdatedDate = cursor.getDouble(lastUpdatedIndex);\n company.wasDeleted = (cursor.getInt(wasDeletedIndex) == 1);\n company.models = CarSQL.getCompanyCars(db,company.companyId);\n return company;\n }\n else\n Log.d(\"TAG\",\"can not give correct company companyID \" + companyId + \" from sql\");\n } while (cursor.moveToNext());\n }\n return null;\n }",
"SpecialCircumstance selectByPrimaryKey(Long id);",
"WayShopCateRoot selectByPrimaryKey(Integer id);",
"@Override\r\n\tpublic Company getAllCompaniesById(Integer id) {\r\n\t\tString methodName = \"getAllCompaniesById(Integer id)\";\r\n\t\tlog.info(className+\",\"+methodName);\r\n\t\tlog.debug(\"id value is::\"+id);\r\n\t\treturn companyRepository.findCompanyById(id.longValue());\r\n\t}",
"Codebadge findOne(Long id);",
"Optional<Contact> getContact(long id);",
"@Override\r\n\tpublic ConventionStage find(int id) {\n\t\tConventionStage obj = null;\r\n\t\ttry {\r\n\t\t\tStatement request = this.connect.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);\r\n\t\t\tResultSet result = request.executeQuery(\"SELECT * FROM \" + ConventionStageDAO.TABLE + \" WHERE NO_CONVENTION = \" + id);\r\n\r\n\t\t\tif(result.first()){\r\n\t\t\t\r\n\t\t\t\tobj = new ConventionStage((result.getInt(\"NO_CONTRAT\")),DAO.dateFromOracleToJava(result.getDate(\"DATE_SIGNATURE\")),(result.getInt(\"DUREE\")));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\trequest.close();\r\n\t } catch (SQLException e) {\r\n\t e.printStackTrace();\r\n\t }\r\n\t return obj;\r\n\t}",
"public Integer getcId() {\n return cId;\n }",
"@RequestMapping(value=\"/comic/json/{id}\", method=RequestMethod.GET, headers=\"Accept=application/xml, application/json\")\n\tpublic @ResponseBody Comic getComicFromDB(@PathVariable String id) {\n\t\t\n\t\tComic comic = new Comic();\n\t\tcomic.setId(id);\n\t\tcomic.getComicFromDB();\n\t\t\n\t\treturn comic;\n\t\t\n\t}",
"public Citas getCita(int id) {\n Citas c = new Citas();\n try {\n PreparedStatement pstm = null;\n ResultSet rs = null;\n String query = \"SELECT *FROM paciente WHERE id_paciente=?\";\n pstm = con.prepareStatement(query);\n pstm.setInt(1, id);\n rs = pstm.executeQuery();\n while (rs.next()) {\n c.setId(rs.getInt(\"id_paciente\"));\n c.setName(rs.getString(\"name\"));\n c.setDoctor(rs.getString(\"doctor\"));\n c.setFecha(rs.getString(\"fecha\"));\n c.setHora(rs.getString(\"hora\"));\n c.setTel(rs.getString(\"tel\"));\n c.setCorreo(rs.getString(\"correo\"));\n c.setGenero(rs.getString(\"genero\"));\n c.setMotivo(rs.getString(\"motivo\"));\n c.setSintomas(rs.getString(\"sintomas\"));\n } \n }catch (SQLException ex) {\n ex.printStackTrace();\n }\n return c;\n }",
"OrgIntegralDeductRule selectByPrimaryKey(Long id);",
"@Override\n\tpublic car getById(int id) {\n\t\ttry{\n\t\t\tcar so=carDataRepository.getById(id);\n\t\t\t\n\t\t\treturn so;\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\t\tex.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t}",
"public Cvcategory findCvcategoryById(Long id);",
"Optional<ToChuc> findOne(Long id);",
"@Override\n\tpublic Optional<Comprobante> findByEvento(Integer id) {\n\t\treturn comproRepository.findByEvento(id);\n\t}",
"public Object buscarPorId(Long id) {\n\t\treturn null;\n\t}",
"public CompraResponse idCompra(Long idCompra) {\n this.idCompra = idCompra;\n return this;\n }",
"public ConsejoEntity find(Long id)\r\n {\r\n return em.find(ConsejoEntity.class, id);\r\n }",
"@Override\r\n\tpublic ConsigMetalDt findOne(int id) {\n\t\treturn consigMetalDtRepository.findOne(id);\r\n\t}",
"FctWorkguide selectByPrimaryKey(Long autoid);",
"public int getId()\r\n/* 208: */ {\r\n/* 209:381 */ return this.idCargaEmpleado;\r\n/* 210: */ }",
"@Override\n\tpublic Editore getOneById(int id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Company getOne(Long id) {\n\t\treturn dao.getById(id);\n\t}",
"CommunityInform selectByPrimaryKey(String id);",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();"
] | [
"0.7002431",
"0.6607696",
"0.6594168",
"0.646541",
"0.6445866",
"0.62948227",
"0.62789446",
"0.6266871",
"0.6255844",
"0.6217324",
"0.6199055",
"0.6187751",
"0.6169109",
"0.6153587",
"0.6145509",
"0.61448604",
"0.6124561",
"0.6104339",
"0.60779667",
"0.6026139",
"0.59575635",
"0.59533465",
"0.59393716",
"0.59298134",
"0.5921131",
"0.5916561",
"0.5877534",
"0.58755124",
"0.58755124",
"0.58755124",
"0.58755124",
"0.58755124",
"0.58755124",
"0.5863538",
"0.58616924",
"0.58612496",
"0.58534664",
"0.58509034",
"0.5849818",
"0.5846585",
"0.58243245",
"0.58196867",
"0.5812223",
"0.58097756",
"0.5803246",
"0.5788697",
"0.57864547",
"0.5785824",
"0.57658505",
"0.57530284",
"0.575046",
"0.5747001",
"0.5729376",
"0.5725393",
"0.57166976",
"0.57148206",
"0.57142",
"0.57142",
"0.57084155",
"0.5701963",
"0.56979305",
"0.5683821",
"0.56764376",
"0.56757885",
"0.56677234",
"0.5663481",
"0.5660309",
"0.564905",
"0.564839",
"0.5645955",
"0.5642926",
"0.56414384",
"0.5637753",
"0.5636689",
"0.5629564",
"0.56292886",
"0.5629282",
"0.5628069",
"0.5627729",
"0.5623558",
"0.56123054",
"0.5608875",
"0.5606756",
"0.5604299",
"0.5602116",
"0.55988514",
"0.5595713",
"0.5595713",
"0.5595713",
"0.5595713",
"0.5595713",
"0.5595713",
"0.5595713",
"0.5595713",
"0.5595713",
"0.5595713",
"0.5595713",
"0.5595713",
"0.5595713",
"0.5595713"
] | 0.73090106 | 0 |
Returns true if the value is equal, ignoring leading zeros | @Override
public boolean equals(Object other)
{
if(other instanceof BitWord)
{
// If the value is the same, ignoring leading zeros
return Integer.parseInt(value) == Integer.parseInt(((BitWord) other).value);
}
else
{
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean checkdigitsequal() {\n int count2=0;\n for (a = 0; a < 10; a++) {\n if (digits[a] == 0)\n {\n count2++;\n if(count2==10)return true;\n }\n else return false;\n }\n return false;\n }",
"public boolean isSame(){\r\n\t\tHugeInt mod2 = new HugeInt(this.p);\r\n\t\tmod2.modByHugeInt(new HugeInt(\"2\"));\r\n\t\tmod2.printHugeInt();\r\n\t\t\r\n\t\tHugeInt mod3 = new HugeInt(this.p);\r\n\t\tmod3.modByHugeInt(new HugeInt(\"3\"));\r\n\t\t\r\n\t\tif(this.p.compareHugeInts(this.p, new HugeInt(\"1\")) != -1)\r\n\t\t\tSystem.out.println(\"less than or equal to 1\");\r\n\t\telse if(this.p.compareHugeInts(this.p, new HugeInt(\"3\")) != -1)\r\n\t\t\tSystem.out.println(\"greater than 1 but less than 3\");\r\n\t\telse if(mod2.areAllZeros() || mod3.areAllZeros())\r\n\t\t\tSystem.out.println(\"mod by 2 or 3\");\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"public static boolean isIntEquivalent( double value ){\n return Math.floor( value ) == value;\n }",
"private boolean isDecimalEqualToZero(String doubleValue) {\n\t\tif (doubleValue.contains(\"%\")) {\n\t\t\treturn false;\n\t\t}\n\t\tString[] n = doubleValue.split(\"\\\\.\");\n\t\tif(n.length > 1) {\n\t\t\t// get the value to right of decimal point\n\t\t\tint d = Integer.parseInt(n[1]);\n\t\t\treturn d == 0;\n\t\t}\n\t\telse {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t}",
"public boolean isZero() {\n Pattern pattern = Pattern.compile(\"0+\");\n Matcher matcher = pattern.matcher(numberString);\n return matcher.matches();\n }",
"boolean isZero();",
"boolean equals( BigInt number );",
"@Override\n\tpublic boolean\n\tisZero()\n\t{\n\t\treturn( data[0] == 0 && data[1] == 0 && data[2] == 0 );\n\t}",
"@Test\n public void test() {\n assertFalse(checkZeroOnes(\"111000\"));\n }",
"public static boolean allZeroes(final String input) {\n\t\tif (input == null)\n\t\t\treturn false;\n\n\t\tfor (int i = 0; i < input.length(); i++)\n\t\t\tif (input.charAt(i) != '0')\n\t\t\t\treturn false;\n\n\t\treturn true;\n\t}",
"public boolean valueEquals(int value)\n {\n return val == value;\n }",
"private static boolean equalityTest4(String a, String b)\n {\n if(a.length() == 0 && b.length() == 0)\n {\n return true;\n }\n else\n {\n if(a.length() == 0 || b.length() == 0)\n {\n return false;\n }\n if(a.charAt(0) == b.charAt(0))\n {\n return equalityTest4(a.substring(1), b.substring(1));\n }\n else\n {\n return false;\n }\n }\n }",
"public boolean isZero() {\n\t\treturn ((get() >> 7) & 1) == 1;\n\t}",
"@Override\n public boolean equals(Object other) {\n if (!(other instanceof BigNumber)) return false;\n BigNumber that = (BigNumber) other;\n if (this.isNaN()) return that.isNaN();\n if (that.isNaN()) return this.isNaN();\n if (this.isZero()) return that.isZero();\n if (that.isZero()) return this.isZero();\n if (this.sign != that.sign) return false;\n if (this.isInfinite()) return that.isInfinite();\n if (that.isInfinite()) return this.isInfinite();\n \n // adjust exponent before comparing mantissa\n int emin = Math.min(this.exponent, that.exponent);\n int dThis = this.exponent - emin;\n int dThat = that.exponent - emin;\n \n for (int i=0; i<Math.max(this.mantissa.length+dThis, that.mantissa.length+dThat); i++) {\n if (this.getMantissaBit(i-dThis) != that.getMantissaBit(i-dThat)) return false;\n }\n return true;\n }",
"public boolean isCorrectValue(){\r\n for(int i=0; i<4; i++){\r\n if(matrixMastermind.getCellValue(currentRow, i) != value[i])\r\n return false;\r\n }\r\n return true;\r\n }",
"public boolean O000000o() {\r\n if (this.O00000o0 == 0) {\r\n this.O00000o0 = O000000o(this.O00000o);\r\n }\r\n return System.currentTimeMillis() - this.O00000o0 >= ((long) this.O00000Oo);\r\n }",
"private boolean checkValue(){\n\t\tfor (int i = 0; i <binary.length();i++){\n\t\t\tif(Character.getNumericValue(binary.charAt(i))>'1' || binary.length()>32 || binary.length()\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t%4 != 0){\n\t\t\t\tSystem.out.println(\"Invalid Input\");\n\t\t\t\tpw.println(\"Invalid Input\");\n\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\t\t\n\t}",
"private boolean equals() {\r\n return MARK(EQUALS) && CHAR('=') && gap();\r\n }",
"public boolean O00000o0(char c) {\r\n return !O00000Oo() && this.O00000o0[this.O00000oO] == c;\r\n }",
"static boolean bigint_eq(bigint a, bigint b)\n {\n if (a.bigint_sign != b.bigint_sign)\n return false;\n else if (a.bigint_len != b.bigint_len)\n return false;\n else\n {\n for (int i = 0; i < a.bigint_len; i++)\n if (a.bigint_chiffres[i] != b.bigint_chiffres[i])\n return false;\n return true;\n }\n }",
"@Test\n public void testIsEven_0() {\n NaturalNumber n = new NaturalNumber2(0);\n boolean result = CryptoUtilities.isEven(n);\n assertEquals(\"0\", n.toString());\n assertTrue(result);\n }",
"public boolean O00000Oo(String str) {\r\n int length = str.length();\r\n if (length > this.O00000o - this.O00000oO) {\r\n return false;\r\n }\r\n for (int i = 0; i < length; i++) {\r\n if (str.charAt(i) != this.O00000o0[this.O00000oO + i]) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"private boolean m20206c() {\n return this.f18654j == this.f18648d;\n }",
"public boolean areEqualByThreeDecimalPlaces(double firstNum, double secondNum) {\n\t\t// TODO Write an implementation for this method declaration\n\t\tboolean matches = false;\n\t\tString firstDec = Double.toString(firstNum);\n\t\tString secondDec = Double.toString(secondNum);\n\t\tint charcount = 0;\n\t\tif(firstNum == secondNum) {\n\t\t\tmatches = true;\n\t\t}\n\t\telse {\n\t\t\tif(firstDec.length() > secondDec.length()) {\n\t\t\t\tfor(int i =0; i < secondDec.length(); i++) {\n\t\t\t\t\tif(firstDec.charAt(i) == secondDec.charAt(i)) {\n\t\t\t\t\t\tcharcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(firstDec.length() < secondDec.length()) {\n\t\t\t\tfor(int i =0; i < firstDec.length(); i++) {\n\t\t\t\t\tif(firstDec.charAt(i) == secondDec.charAt(i)) {\n\t\t\t\t\t\tcharcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(charcount >= 4) {\n\t\t\t\tmatches = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tmatches = false;\n\t\t\t}\n\t\t}\n\n\t\treturn matches;\n\t}",
"public boolean isZeroLength() {\r\n return value.length() == 0;\r\n }",
"public boolean O00000o0(char... cArr) {\r\n if (O00000Oo()) {\r\n return false;\r\n }\r\n char c = this.O00000o0[this.O00000oO];\r\n for (char c2 : cArr) {\r\n if (c2 == c) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"@Test\n\tpublic void testZipPlusNineEquality() {\n\t\tassertNotEquals(s1, s1PlusNine);\n\t\tassertTrue(comparator.compare(s1, s1PlusNine) == 0);\n\t}",
"public boolean O00000o(char[] cArr) {\r\n return !O00000Oo() && Arrays.binarySearch(cArr, this.O00000o0[this.O00000oO]) >= 0;\r\n }",
"public boolean O0000oO0() {\r\n boolean z = false;\r\n if (O00000Oo()) {\r\n return false;\r\n }\r\n char c = this.O00000o0[this.O00000oO];\r\n if (c >= '0' && c <= '9') {\r\n z = true;\r\n }\r\n return z;\r\n }",
"public boolean isEquals() {\n long len = -1L;\n\n //1. check the lengths of the words\n for(S left : slp.getAxioms()) {\n if(len == -1L) {\n len = slp.length(left);\n }\n else {\n if(len != slp.length(left)) {\n return false;\n }\n }\n }\n\n // all words are the empty word\n if(len == 0) {\n return true;\n }\n\n // 2. the length are all equals and not zero => execute the recompression\n execute();\n\n S otherSymbol = null;\n boolean first = true;\n\n // 3. chech now if for all axioms X : |val(X)| = 1 and all val(X) are equals.\n for(S left : slp.getAxioms()) {\n if(first) {\n slp.length(left, true);\n first = false;\n }\n\n if(slp.length(left) != 1) {\n return false;\n }\n else {\n S symbol = slp.get(left, 1);\n if(otherSymbol == null) {\n otherSymbol = symbol;\n }\n\n if(!symbol.equals(otherSymbol)) {\n return false;\n }\n }\n }\n\n return true;\n }",
"public static boolean timingSafeEquals(CharSequence first, CharSequence second) {\n if (first == null) {\n return second == null;\n } else if (second == null) {\n return false;\n } else if (second.length() <= 0) {\n return first.length() <= 0;\n }\n int firstLength = first.length();\n int secondLength = second.length();\n char result = (char) ((firstLength == secondLength) ? 0 : 1);\n int j = 0;\n for (int i = 0; i < firstLength; ++i) {\n result |= first.charAt(i) ^ second.charAt(j);\n j = (j + 1) % secondLength;\n }\n return result == 0;\n }",
"public boolean isEqual(StringNum a, StringNum b) {\n\t\tif(a.getNumber().equalsIgnoreCase(b.getNumber())) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isEqual(StringNum a) {\n\t\tif(this.getNumber().equalsIgnoreCase(a.getNumber())) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"public static boolean timingSafeEquals(String first, String second) {\n if (first == null) {\n return second == null;\n } else if (second == null) {\n return false;\n } else if (second.length() <= 0) {\n return first.length() <= 0;\n }\n char[] firstChars = first.toCharArray();\n char[] secondChars = second.toCharArray();\n char result = (char) ((firstChars.length == secondChars.length) ? 0 : 1);\n int j = 0;\n for (int i = 0; i < firstChars.length; ++i) {\n result |= firstChars[i] ^ secondChars[j];\n j = (j + 1) % secondChars.length;\n }\n return result == 0;\n }",
"private static boolean isValue(long x) {\n return x >= 0L; // 1\n }",
"private boolean digits() {\r\n return ALT(\r\n GO() && RANGE('1','9') && decimals() || OK() && CHAR('0') && hexes()\r\n );\r\n }",
"public boolean isZero() {return false;}",
"@Test(timeout = 4000)\n public void test096() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 9223372032559808565L, 9223372036854775806L);\n boolean boolean0 = range0.equals(range0);\n Object object0 = new Object();\n Object object1 = new Object();\n boolean boolean1 = range0.equals(\"\");\n assertFalse(boolean1 == boolean0);\n assertFalse(boolean1);\n }",
"boolean hasSameAs();",
"private boolean isIncreasing(String s) {\n char[] carray = s.toCharArray();\n int prev = carray[0] - '0';\n\n for(int i = 1; i < carray.length; i++) {\n int cur = carray[i] - '0';\n if (prev > cur) {\n return false;\n }\n prev = cur;\n }\n\n return true;\n }",
"private boolean isValuesEqual(BinaryMessage tocmp, BinaryMessage original) {\n\t\tif(tocmp.getValue().equals(original.getValue())) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isEqual(FusableBooks record1, FusableBooks record2) {\n\t\treturn sim.calculate(record1.getBookName(), record2.getBookName()) == 1.0;\n\t}",
"boolean test() {\n int comp = this._col1.value().compareTo(this._col2.value());\n if (comp < 0 && (this.compRep & LT) != 0\n || comp > 0 && (this.compRep & GT) != 0\n || comp == 0 && (this.compRep & EQ) != 0) {\n return true;\n }\n return false;\n }",
"public boolean ifStringContainsOneNumberMod36Equals1(String s) {\n\t\tint sta = 0;\n\t\twhile (sta < s.length()) {\n\t\t\tchar curCha = s.charAt(sta);\n\t\t\tif (!Character.isDigit(curCha)) {\n\t\t\t\tsta++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tStringBuilder cur = new StringBuilder();\n\t\t\twhile (Character.isDigit(curCha)) {\n\t\t\t\tcur.append(curCha);\n\t\t\t\tsta++;\n\t\t\t\tif (sta >= s.length()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcurCha = s.charAt(sta);\n\t\t\t}\n\t\t\tString tmpString = cur.toString();\n\t\t\tint[] array = new int[tmpString.length() - 1];\n\t\t\tint len = 3;\n\t\t\tfor (int i = 1; i < tmpString.length(); i++) {\n\t\t\t\tarray[i - 1] = Integer.parseInt(tmpString.substring(i - 1, i + 1)) % 36;\n\t\t\t\tif (array[i - 1] == 1)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t\twhile (len <= tmpString.length()) {\n\t\t\t\tfor (int i = 0; i <= tmpString.length() - len; i++) {\n\t\t\t\t\tarray[i] = array[i] * 10 + tmpString.charAt(i + len - 1) - '0';\n\t\t\t\t\tarray[i] %= 36;\n\t\t\t\t\tif (array[i] == 1) {\n\t\t\t\t\t\tSystem.out.println(tmpString.substring(i, i+len));\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlen++;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"static boolean areSame(String expr1, String expr2)\n\t{\n\n\t\t// Create a vector for all operands and\n\t\t// initialize the vector as 0.\n\t\tint[] v = new int[MAX_CHAR];\n\n\t\t// Put signs of all operands in expr1\n\t\teval(expr1, v, true);\n\n\t\t// Subtract signs of operands in expr2\n\t\teval(expr2, v, false);\n\n\t\t// If expressions are same, vector must\n\t\t// be 0.\n\t\tfor (int i = 0; i < MAX_CHAR; i++)\n\t\t\tif (v[i] != 0)\n\t\t\t\treturn false;\n\n\t\treturn true;\n\t}",
"@Test\n public void testEqualsReturnsFalseOnDifferentStartVal() throws Exception {\n setRecordFieldValue(otherRecord, \"start\", null);\n boolean equals = record.equals(otherRecord);\n\n assertThat(equals, is(false));\n\n equals = otherRecord.equals(record);\n\n assertThat(equals, is(false));\n }",
"public boolean equal(MyInteger number1){\r\n\t\tif (value == number1.getInt()){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Test\n public void testIsSameNumber() {\n int x = 1;\n int y = 1;\n int z = 2;\n\n assertEquals(true, Flik.isSameNumber(x, y));\n assertEquals(false, Flik.isSameNumber(x, z));\n }",
"@Test\n public void testEqualChars1() {\n char a = 'a';\n char b = 'a';\n char c = 'z';\n char d = 'B';\n\n boolean result1 = offByOne.equalChars(a, b);\n boolean result2 = offByOne.equalChars(a, c);\n boolean result3 = offByOne.equalChars(a, d);\n\n assertFalse(result1);\n assertFalse(result2);\n assertFalse(result3);\n }",
"@Test\n public void testEqualChars2() {\n char a = 'a';\n char b = 'b';\n char c = '1';\n char d = '2';\n\n boolean result1 = offByOne.equalChars(a, b);\n boolean result2 = offByOne.equalChars(c, d);\n\n assertTrue(result1);\n assertTrue(result2);\n }",
"private boolean inSameSuit() {\n for (int i = 0; i < cards.length-2; i++) {\n if (cards[i].charAt(1) != cards[i + 1].charAt(1)) {\n return false;\n }\n }\n \n return true;\n }",
"private boolean lineIsNumberAboveZero(final String line) {\n try {\n return Integer.parseInt(line) > 1;\n } catch(final NumberFormatException nfe) {\n return false;\n }\n }",
"public boolean isPalindromeEnhanced(int x) {\n\t\tif (x < 0)\r\n\t\t\treturn false;\r\n\r\n\t\t// initialize how many zeros\r\n\t\tint div = 1;\r\n\t\twhile (x / div >= 10) {\r\n\t\t\tdiv *= 10;\r\n\t\t}\r\n\r\n\t\twhile (x != 0) {\r\n\t\t\tint left = x / div;\r\n\t\t\tint right = x % 10;\r\n\r\n\t\t\tif (left != right)\r\n\t\t\t\treturn false;\r\n\r\n\t\t\tx = (x % div) / 10;\r\n\t\t\tdiv /= 100;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}",
"public boolean containsPrefixValue(double value) {\n return repositoryWithDualKeyNCategory.containsItem(value);\n }",
"private boolean equalsChars(char[] first, char[] second) {\n for (int i = 0; i < second.length; i++)\n if (first[i] != second[i])\n return false;\n return true;\n }",
"public final boolean mo78021a(Integer num) {\n if (num == null) {\n C32569u.m150511a();\n }\n return num.intValue() > 0;\n }",
"public final boolean equal() {\n\t\tif (size > 1) {\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (topMostValue == secondTopMostValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public static void main(String[] args) {\n\t\tString FirstNumber = 15 + \"\" ;\n\t\tString SecondNumber = 15 + \"\";\n\t\t\n\t\tif(FirstNumber . compareTo(SecondNumber)==0)\n\t\t\n\t\t\tSystem.out.println(\"Numbers are equal\");\n\t\t\n\t\telse\n\t\t\t\n\t\t\tSystem.out.println(\"Numbers are not equal\");\n\t}",
"public boolean isPalindrome(int x) {\n if (x < 0) {\n return false;\n }\n\n // get length of int\n // pointers at 10^0 and 10^len\n // number mod by pointers. compare if they're equal\n // move points in\n // stop when comparison is false or pointers\n\n int len = findLength(x);\n int[] digits = new int[len];\n\n //backwards\n for (int idx = digits.length - 1; idx >= 0; idx--) {\n digits[idx] = x % 10;\n x = x / 10;\n }\n\n int left = 0;\n int right = digits.length - 1;\n while (left < right) {\n if (digits[left++] != digits[right--]) {\n return false;\n }\n }\n\n return true;\n }",
"public boolean isPalindrome(int x) {\r\n if (x==0) return true;\r\n if (x<0 || x%10==0) return false;\r\n int m = x;\r\n int n = 0;\r\n while (m>0){\r\n n = n*10 + m%10;\r\n m /= 10;\r\n }\r\n return n==x;\r\n }",
"@Test\r\n public void testEqualChars(){\r\n boolean res1=offByOne.equalChars('c','b');\r\n assertTrue(\"should be true\",res1);\r\n boolean res2=offByOne.equalChars('a','c');\r\n assertFalse(\"should be false\",res2);\r\n }",
"@Test(timeout = 4000)\n public void test051() throws Throwable {\n Range range0 = Range.of((-81L));\n long long0 = range0.getLength();\n assertEquals(1L, long0);\n \n Range range1 = Range.of((-1L));\n boolean boolean0 = range0.equals(range1);\n Range.Comparators.values();\n long long1 = range0.getBegin();\n assertEquals((-81L), long1);\n \n Object object0 = new Object();\n boolean boolean1 = range1.equals(object0);\n assertTrue(boolean1 == boolean0);\n assertFalse(boolean1);\n }",
"@Test\r\n\tpublic void test01() {\n\t\tInteger x = -128;\r\n\t\tInteger y = -128;\r\n\t\tassertSame(x, y);\r\n\t\tInteger u = 1000;\r\n\t\tInteger v = 1000;\r\n\t\tassertNotSame(u, v);\r\n\t}",
"private boolean hex() {\r\n return ALT(GO() && decimal() || OK() && SET(\"ABCDEFabcdef\"));\r\n }",
"public static boolean constantTimeEq(byte[] a, byte[] b) {\n if (a.length != b.length) {\n return false;\n }\n int result = 0;\n for (int i = 0; i < a.length; i++) {\n result |= a[i] ^ b[i];\n }\n return result == 0;\n }",
"public static boolean isZeroString (final String in) {\n\t\treturn StringUtils.ZERO_STRING.equals(in);\n\t}",
"public Boolean verifyTheValueOneTimeCostIsInZero() {\n\t\tSystem.out.println(\"Starting to verify if one time cost is equal to 0.00.\");\n\t\treturn verifyIfSomeStringContainsZeroDotZeroZeroValueInside(getTextByLocator(body_value_onetimecost));\n\t}",
"public boolean equal (int number){\r\n\t\tif (value == number){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public static boolean isPalindrom(int a) {\n String bitStr = toBinary(a);\n //System.out.println(bitStr);\n System.out.println(Integer.toBinaryString(a));\n if(bitStr.length() < 2) {\n return true;\n }\n int i = 0;\n int j = bitStr.length() - 1;\n while(i < j) {\n if(bitStr.charAt(i) != bitStr.charAt(j)) {\n return false;\n }\n i++;\n j--;\n }\n return true;\n }",
"public boolean leadingSign(){\n return ! trailingSign;\n }",
"@Test\n\tpublic void testEquals4(){\n\t\tTemperature data1 = new Temperature (0, Temperature.Units.CELCIUS);\n\t\tTemperature data2 = new Temperature (0, Temperature.Units.CELCIUS);\n\t\tassertEquals(data1.equals(data2), true);\n\t\tassertTrue(data1.getValue() == 0);\t\t//getValue() should be the same because the unit conversion is not used\n\t\tassertTrue(data2.getValue() == 0);\t\t//getValue() should be the same because the unit conversion is not used\n\n\t}",
"private static boolean areEqual (byte[] a, byte[] b) {\r\n int aLength = a.length;\r\n if (aLength != b.length)\r\n return false;\r\n for (int i = 0; i < aLength; i++)\r\n if (a[i] != b[i])\r\n return false;\r\n return true;\r\n }",
"private boolean parseZeroesSection() {\n if (parseDoubleColon()) {\n zeroesSectionStart = hextetCount;\n return true;\n }\n return false;\n }",
"private static boolean checkZero(int[] count) {\n\t\tfor (int i = 0; i < count.length; i++) {\n\t\t\tif (count[i] != 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public boolean almostEqual(double a, double b);",
"public static boolean toBoolean(byte[] value, int startIndex) {\r\n\r\n\t\tif (value[startIndex] == 0) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public boolean equalsDontCare(TribitByte o){\n if (o == null) return false;\n if (this == o) return true;\n return Stream.iterate(0, i -> i + 1)\n .limit(LENGTH)\n .allMatch(idx -> {\n Tribit thisBit = value[idx];\n Tribit otherBit = o.value[idx];\n if(thisBit == Tribit.DONT_CARE || otherBit == Tribit.DONT_CARE){\n return true;\n } else {\n return thisBit == otherBit;\n }\n });\n }",
"public boolean almostZero(double a);",
"private static boolean isPrimitive(String value) {\n boolean status = true;\n value = value.trim();\n if (value.length() < 1) {\n return false;\n }\n for (int i = 0; i < value.length(); i++) {\n char c = value.charAt(i);\n if (!Character.isDigit(c)) {\n status = false;\n break;\n }\n }\n\n return status;\n }",
"private static String removeLeadingZero(String value) //Copied from github\r\n\t{\r\n\t\tString valueWithoutZeros = \"\";\r\n\t\ttry\r\n\t\t{\r\n\t\t\tvalueWithoutZeros = value.replaceFirst(\"^0+\", \"\");\r\n\t\t}\r\n\t\tcatch(Exception ee)\r\n\t\t{\r\n\t\t\tvalueWithoutZeros = value;\r\n\t\t}\r\n\t\t\r\n\t\treturn valueWithoutZeros;\r\n\t}",
"private static boolean verify(int value, int size) {\r\n return size > 0 && size < Integer.SIZE\r\n && Integer.SIZE - Integer.numberOfLeadingZeros(value) <= size;\r\n }",
"public static /* synthetic */ boolean is\\u65b0\\u624b(int a2) {\n switch (a2) {\n case 0: \n case 1000: \n case 2000: \n case 2001: \n case 2002: \n case 2003: \n case 2004: \n case 2005: \n case 3000: \n case 3001: \n case 3002: \n case 4001: \n case 4002: \n case 5000: \n case 6000: \n case 6001: \n case 10000: \n case 11000: \n case 13000: \n case 14000: {\n return true;\n }\n }\n return false;\n }",
"private boolean isEqual(int[] x, int[] y) {\n for (int i = 0; i < 3; i++) {\n if (x[i] != y[i]) {\n return false;\n }\n }\n return true;\n }",
"public static final boolean m1454equalsimpl0(Object obj, Object obj2) {\n return Intrinsics.areEqual(obj, obj2);\n }",
"public boolean equal(Inatnum B) {return(this.n==B.getVal());}",
"@Test\n public void testEquals_1() {\n LOGGER.info(\"testEquals_1\");\n final AtomString atomString = new AtomString(\"Hello\");\n final Atom atom = new AtomString(\"Hello\");\n final boolean actual = atomString.equals(atom);\n assertTrue(actual);\n }",
"public static int isEqual(MyNode root0, MyNode root1) {\r\n int result = 0;\r\n\r\n if (root0 == null && root1 == null) {\r\n return 1;\r\n } else {\r\n if (root0 != null && root1 != null) {\r\n if (root0.getValue() == root1.getValue()) {\r\n if (isEqual(root0.getLeft(), root0.getLeft()) == 1) {\r\n result = isEqual(root0.getRight(), root1.getRight());\r\n }\r\n }\r\n }\r\n }\r\n\r\n return result;\r\n }",
"@Test\n public void testOriginalAmountOwed() {\n //Just ensure that the first two digits are the same\n assertEquals(expectedResults.getOriginalAmountOwed(), results.getOriginalAmountOwed(), 0.15);\n }",
"public boolean compare_same(String x, String y) {\n\t\tint fuzzy = 0;\n\t\tif (x.length() != y.length()) return false;\n\t\tfor (int i = 0, j = 0; i<x.length() && j<y.length();) {\n\t\t\tif (i>0 && x.charAt(i-1)=='_' && '0'<=x.charAt(i) && x.charAt(i)<='9') {\n\t\t\t\twhile (i<x.length() && '0'<=x.charAt(i) && x.charAt(i)<='9') i++;\n\t\t\t}\n\t\t\tif (j>0 && y.charAt(j-1)=='_' && '0'<=y.charAt(j) && y.charAt(j)<='9') {\n\t\t\t\twhile (j<y.length() && '0'<=y.charAt(j) && y.charAt(j)<='9') j++;\n\t\t\t}\n\t\t\tif (i<x.length() && j<y.length() && x.charAt(i) != y.charAt(j)) {\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\ti++; j++;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isPalindrome(int x) {\n int y = 0;\n\t\tint temp = x;\n\t\twhile(temp > 0){\n\t\t\tint s = temp % 10;\n\t\t\ty = y * 10 + s;\n\t\t\ttemp = temp / 10;\n\t\t}\n\t\tif(x == y){\n\t\t\treturn true;\n\t\t}\n\t\treturn false; \n }",
"public boolean hasNum1() {\r\n\t\t\treturn ((bitField0_ & 0x00000002) == 0x00000002);\r\n\t\t}",
"@Test\n\tpublic void testEquals1() {\n\t\tDistance d1 = new Distance(0, 0);\n\t\tDistance d2 = new Distance();\n\t\tassertEquals(false, d1.equals(d2));\n\t}",
"static int check(int x, int a, int b) \n\t{ \n\t\t// sum of digits is 0 \n\t\tif (x == 0) \n\t\t{ \n\t\t\treturn 0; \n\t\t} \n\n\t\twhile (x > 0) \n\t\t{ \n\n\t\t\t// if any of digits in sum is \n\t\t\t// other than a and b \n\t\t\tif (x % 10 != a & x % 10 != b) \n\t\t\t{ \n\t\t\t\treturn 0; \n\t\t\t} \n\n\t\t\tx /= 10; \n\t\t} \n\n\t\treturn 1; \n\t}",
"public static boolean almostEqualsNumber(double value1, double value2) {\n return almostEqualsNumber(value1, value2, DOUBLE_EPSILON);\n }",
"@Test\n public void allOnesExpected_20(){\n String input = \"11111111111111111111\";\n assertEquals(game.scoreOfGame(input),20);\n }",
"public boolean isEqual(DateTime dt) {\n return Long.parseLong(this.vStamp) == Long.parseLong(dt.getStamp());\r\n }",
"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 }",
"public boolean O00000o0(String str) {\r\n int length = str.length();\r\n if (length > this.O00000o - this.O00000oO) {\r\n return false;\r\n }\r\n for (int i = 0; i < length; i++) {\r\n if (Character.toUpperCase(str.charAt(i)) != Character.toUpperCase(this.O00000o0[this.O00000oO + i])) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"@Test\n public void getExtracpy() {\n String input = \"A303:C203:\";\n boolean expected = true;\n boolean output = true;\n String[] input1 = input.split(\":\");\n String[] expectedarray = {\"A303\",\"C203\"};\n\n for (int i = 0; i < input1.length; i++) {\n if(!input1[i].equals(expectedarray[i]))\n {\n output = false;\n break;\n }\n }\n assertEquals(expected,output);\n\n }",
"private boolean rowCheck() {\n\t\tfor(int[] row : puzzle) {\n\t\t\tfor(int i = 0; i < row.length; i++) {\n\t\t\t\tif(row[i] != 0) {\n\t\t\t\t\tfor(int j = i + 1; j < row.length; j++) {\n\t\t\t\t\t\tif(row[i] == row[j])\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}"
] | [
"0.6164708",
"0.5707628",
"0.5676968",
"0.5663",
"0.5632839",
"0.56257683",
"0.55898595",
"0.55741376",
"0.5560384",
"0.553908",
"0.547926",
"0.5385886",
"0.5377286",
"0.5372463",
"0.5365581",
"0.5301297",
"0.5299353",
"0.5297961",
"0.528139",
"0.5263796",
"0.5260715",
"0.52330273",
"0.522992",
"0.5224117",
"0.5222398",
"0.5196839",
"0.51948506",
"0.5191987",
"0.51720786",
"0.5166565",
"0.5152494",
"0.5144919",
"0.51370007",
"0.5110825",
"0.51088214",
"0.5106025",
"0.5097997",
"0.5082942",
"0.50819486",
"0.5080244",
"0.507969",
"0.5067241",
"0.5054783",
"0.5048714",
"0.5044448",
"0.50440294",
"0.5043503",
"0.50417626",
"0.5026872",
"0.50255626",
"0.5025408",
"0.5024355",
"0.50213724",
"0.50200236",
"0.5018585",
"0.5009002",
"0.50074035",
"0.5003212",
"0.49975047",
"0.4993385",
"0.4991778",
"0.4988527",
"0.49884316",
"0.49876514",
"0.49873975",
"0.49837303",
"0.49833292",
"0.49760726",
"0.49750474",
"0.49744892",
"0.4972184",
"0.49696362",
"0.4960271",
"0.49557516",
"0.49554735",
"0.4954552",
"0.4952645",
"0.4941029",
"0.4938959",
"0.49336195",
"0.49335328",
"0.49244195",
"0.49212065",
"0.49175382",
"0.4914306",
"0.49132985",
"0.49021053",
"0.49015626",
"0.48989582",
"0.489662",
"0.48905358",
"0.48820317",
"0.4876077",
"0.48681286",
"0.48643103",
"0.4864245",
"0.4862228",
"0.48604953",
"0.48559272",
"0.48484457"
] | 0.6530639 | 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. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
supplierReqJTbl = new javax.swing.JTable();
jScrollPane2 = new javax.swing.JScrollPane();
inventoryJTbl = new javax.swing.JTable();
jButton1 = new javax.swing.JButton();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
comboBox = new javax.swing.JComboBox();
jLabel4 = new javax.swing.JLabel();
txtQty = new javax.swing.JTextField();
jButton2 = new javax.swing.JButton();
setBackground(new java.awt.Color(255, 255, 255));
jLabel1.setBackground(new java.awt.Color(204, 0, 204));
jLabel1.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
jLabel1.setForeground(new java.awt.Color(255, 153, 0));
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel1.setText("Supplier Work Bench");
supplierReqJTbl.setFont(new java.awt.Font("Tahoma", 0, 16)); // NOI18N
supplierReqJTbl.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
},
new String [] {
"Vaccine Name", "Qty", "Status", "Receiver", "Sender"
}
));
jScrollPane1.setViewportView(supplierReqJTbl);
inventoryJTbl.setFont(new java.awt.Font("Tahoma", 0, 16)); // NOI18N
inventoryJTbl.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
},
new String [] {
"Vaccine Name", "Qty"
}
));
jScrollPane2.setViewportView(inventoryJTbl);
jButton1.setBackground(new java.awt.Color(255, 153, 0));
jButton1.setFont(new java.awt.Font("Tahoma", 1, 15)); // NOI18N
jButton1.setForeground(new java.awt.Color(255, 255, 255));
jButton1.setText("COMPLETE");
jButton1.setPreferredSize(new java.awt.Dimension(200, 40));
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jLabel2.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
jLabel2.setForeground(new java.awt.Color(255, 153, 0));
jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel2.setText("Supplier Inventory");
jLabel3.setFont(new java.awt.Font("Zapf Dingbats", 1, 18)); // NOI18N
jLabel3.setForeground(new java.awt.Color(255, 153, 0));
jLabel3.setText("Vaccine:");
comboBox.setFont(new java.awt.Font("Tahoma", 0, 16)); // NOI18N
comboBox.setForeground(new java.awt.Color(255, 153, 0));
comboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
jLabel4.setFont(new java.awt.Font("Zapf Dingbats", 1, 18)); // NOI18N
jLabel4.setForeground(new java.awt.Color(255, 153, 0));
jLabel4.setText("Quantity:");
txtQty.setFont(new java.awt.Font("Tahoma", 0, 16)); // NOI18N
txtQty.setForeground(new java.awt.Color(255, 153, 0));
jButton2.setBackground(new java.awt.Color(255, 153, 0));
jButton2.setFont(new java.awt.Font("Tahoma", 1, 15)); // NOI18N
jButton2.setForeground(new java.awt.Color(255, 255, 255));
jButton2.setText("ADD");
jButton2.setPreferredSize(new java.awt.Dimension(200, 40));
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 209, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jScrollPane2)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
.addContainerGap())
.addGroup(layout.createSequentialGroup()
.addContainerGap(260, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addComponent(jLabel4)
.addGap(18, 18, 18))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel3)
.addGap(22, 22, 22)))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(comboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txtQty)))
.addContainerGap(260, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(17, 17, 17)
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(10, 10, 10)
.addComponent(jLabel2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(comboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel3))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel4)
.addComponent(txtQty, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(152, Short.MAX_VALUE))
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"public 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}",
"public kunde() {\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"@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 MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public frmVenda() {\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 Botonera() {\n initComponents();\n }",
"public FrmMenu() {\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 Kost() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public UploadForm() {\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 Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public POS1() {\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.7318948",
"0.7290426",
"0.7290426",
"0.7290426",
"0.7284922",
"0.7247965",
"0.7213206",
"0.72080696",
"0.7195916",
"0.7189941",
"0.71835536",
"0.71579427",
"0.7147217",
"0.70927703",
"0.7080282",
"0.7055882",
"0.6987108",
"0.69770193",
"0.6954159",
"0.69529283",
"0.6944756",
"0.6941631",
"0.69351804",
"0.6931676",
"0.69271684",
"0.6924507",
"0.6924333",
"0.6910886",
"0.6910063",
"0.6893039",
"0.6892514",
"0.68902403",
"0.68896806",
"0.68873954",
"0.688239",
"0.68815583",
"0.68807346",
"0.6877274",
"0.68747336",
"0.6873939",
"0.6871645",
"0.6858798",
"0.68562996",
"0.68551964",
"0.6854526",
"0.6853759",
"0.6852625",
"0.6852071",
"0.6852071",
"0.6842801",
"0.6836393",
"0.6835916",
"0.6827825",
"0.68275064",
"0.6826875",
"0.6823854",
"0.68217176",
"0.6816455",
"0.68164307",
"0.68095225",
"0.68079925",
"0.6807973",
"0.6807133",
"0.6806263",
"0.6802961",
"0.67933935",
"0.6793082",
"0.6791554",
"0.6789944",
"0.6788754",
"0.6787684",
"0.67871934",
"0.6783336",
"0.67656237",
"0.6765452",
"0.6764802",
"0.67560065",
"0.67553526",
"0.67517436",
"0.6751359",
"0.67414886",
"0.67386204",
"0.67362994",
"0.67358786",
"0.6732659",
"0.6726978",
"0.67262286",
"0.6719745",
"0.6715412",
"0.67137116",
"0.6713403",
"0.670771",
"0.67069227",
"0.670236",
"0.6701016",
"0.6700013",
"0.66983503",
"0.66981363",
"0.6694568",
"0.66907334",
"0.66893756"
] | 0.0 | -1 |
wyswietl konsole wybrana po id | @RequestMapping(value = "/console", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
public Consoles getByParamPublicId(@RequestParam("id") Integer publicId) {
return consolesService.getConsolesById(publicId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String Show()\n\t{\n\t\treturn id;\n\t\t\n\t}",
"@Override\n public String toString() {\n return id;\n }",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public String id() {\n return this.id;\n }",
"public String id() {\n return this.id;\n }",
"public String id() {\n return this.id;\n }",
"public String id() {\n return this.id;\n }",
"public String id() {\n return this.id;\n }",
"public String id() {\n return this.id;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn id;\n\t}",
"public String id() {\r\n return id;\r\n }",
"public String getId(){\r\n\t\treturn id;\r\n\t}",
"public String getId(){\r\n\t\treturn id;\r\n\t}",
"public String id()\n {\n return id;\n }",
"public void setId(int idNuevo)\n { \n this.id = idNuevo;\n }",
"public void setID(String id){\n this.id = id;\n }",
"public String getId() {\n return id;\r\n }",
"@Override\n public String toString() {\n return id.toString();\n }",
"@Override\r\n public String getId() {\r\n return id;\r\n }",
"public String getId()\r\n {\r\n return id;\r\n }",
"public String getId()\n {\n return id;\n }",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"public String toString() {\n return id;\n }",
"@Override\n public String toString()\n {\n return super.toString()+id;\n }",
"public String id() {\n return id;\n }",
"public String id() {\n return id;\n }",
"public String getId(){return id;}",
"@Override\n public String toString() {\n return id.toString();\n }",
"@Override\n public String getId() {\n return id;\n }",
"public String getId(){\n\t\treturn id;\n\t}",
"public String getId() {\r\n return id;\r\n }",
"public String getId() {\r\n return id;\r\n }",
"public String getId() {\r\n return id;\r\n }",
"public String getId() {\r\n return id;\r\n }",
"public String getId() {\r\n return id;\r\n }",
"public String getId() {\r\n return id;\r\n }",
"public String getId() {\r\n return id;\r\n }",
"public String getId() {\r\n return id;\r\n }"
] | [
"0.69339913",
"0.6829524",
"0.68154716",
"0.68154716",
"0.68154716",
"0.667536",
"0.667536",
"0.667536",
"0.667536",
"0.667536",
"0.667536",
"0.6661051",
"0.6652975",
"0.66522306",
"0.66522306",
"0.66332406",
"0.6617968",
"0.6614704",
"0.66075593",
"0.6606458",
"0.65986466",
"0.65898526",
"0.6579752",
"0.65738547",
"0.65738547",
"0.65738547",
"0.65738547",
"0.65738547",
"0.65738547",
"0.65738547",
"0.65738547",
"0.65738547",
"0.65738547",
"0.65738547",
"0.65738547",
"0.65738547",
"0.65738547",
"0.65738547",
"0.65738547",
"0.65738547",
"0.65738547",
"0.65738547",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.65733814",
"0.6570682",
"0.6569298",
"0.65653306",
"0.65653306",
"0.65630555",
"0.6551322",
"0.6543622",
"0.65429157",
"0.65342754",
"0.65342754",
"0.65342754",
"0.65342754",
"0.65342754",
"0.65342754",
"0.65342754",
"0.65342754"
] | 0.0 | -1 |
wyslij konsole do bazy danych | @RequestMapping(value = "/console", method = RequestMethod.POST)
public ResponseEntity<Consoles> create(@RequestBody @Valid @NotNull Consoles consoles) {
consoles.setConsolesId(UUID.randomUUID().toString());
consolesService.saveConsoles(consoles);
return ResponseEntity.ok().body(consoles);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void 자기() {\n\t\tSystem.out.println(\"잠을 잔다\");\r\n\t}",
"public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }",
"@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´óTÐô\");\n\t}",
"@Override\r\n\tpublic void mostrar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionMisil() {\n\t\tSystem.out.println(\"미사일 있다.\");\r\n\t}",
"public void printHelp() {\n System.out.println(\". - jeden znak (bez znaku nowej linii)\");\n System.out.println(\".* - zero lub więcej znaków\");\n System.out.println(\"\\\\w* - zero lub więcej słów\");\n }",
"@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´ó¿ãñÃ\");\n\t}",
"@Override\n\tpublic void 숨쉰다() {\n\t\tSystem.out.println(\"허파로 숨을 쉰다.\");\n\t\t\n\t}",
"public void visKontingenthaandteringMenu ()\r\n {\r\n System.out.println(\"Du har valgt kontingent.\");\r\n System.out.println(\"Hvad oensker du at foretage dig?\");\r\n System.out.println(\"1: Se priser\");\r\n System.out.println(\"2: Se medlemmer i restance\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }",
"@Override\r\n public void Story(){\r\n super.Story();\r\n System.out.println(\"=======================================================================================\");\r\n System.out.println(\"|| Arya harus bergegas untuk menyelamatkan seluruh warga. Dia tidak tau posisi warga ||\");\r\n System.out.println(\"|| yang harus diselamatkan ada pada ruangan yang mana. ||\");\r\n System.out.println(\"=======================================================================================\");\r\n }",
"@Override\r\n\tpublic void 먹기() {\n\t\tSystem.out.println(\"다람쥐,도토리를 먹는다.\");\r\n\t}",
"public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }",
"private void printMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Opret\");\n System.out.println(\"(2) Find\");\n System.out.println(\"(3) Slet\");\n System.out.print(\"Valg: \");\n }",
"public void visMedlemskabsMenu ()\r\n {\r\n System.out.println(\"Du har valgt medlemskab.\");\r\n System.out.println(\"Hvad Oensker du at foretage dig?\");\r\n System.out.println(\"1: Oprette et nyt medlem\");\r\n System.out.println(\"2: Opdatere oplysninger paa et eksisterende medlem\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }",
"public void setmostrar(){\n System.out.println(\"¿Qué deseas hacer?\");\n System.out.println(\"i=incrementar\");\n System.out.println(\"d=decrementar\");\n System.out.println(\"s=salir\");\n }",
"public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }",
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }",
"public void show() {\n\t\t System.out.println(\"这是A型产品\"); \r\n\t}",
"public static void status(){\n System.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n System.out.printf(\"\\nNOMBRE:\\t\\t\\t\"+nombrePersonaje);\n\tSystem.out.printf(\"\\nPuntos De Vida (HP):\\t\"+puntosDeVida);\n\tSystem.out.printf(\"\\nPuntos De mana (MP):\\t\"+puntosDeMana);\n System.out.printf(\"\\nNivel: \\t\\t\\t\"+nivel);\n\tSystem.out.printf(\"\\nExperiencia:\\t\\t\"+experiencia);\n\tSystem.out.printf(\"\\nOro: \\t\\t\"+oro);\n System.out.printf(\"\\nPotion:\\t\\t\\t\"+articulo1);\n System.out.printf(\"\\nHi-Potion:\\t\\t\"+articulo2);\n System.out.printf(\"\\nM-Potion:\\t\\t\"+articulo3);\n System.out.printf(\"\\n\\tEnemigos Vencidos:\\t\");\n\tSystem.out.printf(\"\\nNombre:\\t\\t\\tNo.Derrotas\");\n System.out.printf(\"\\nDark Wolf:\\t\\t\"+enemigoVencido1);\n\tSystem.out.printf(\"\\nDragon:\\t\\t\\t\"+enemigoVencido2);\n System.out.printf(\"\\nMighty Golem:\\t\\t\"+enemigoVencido3);\t\n }",
"private void printCreateOrderMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Opret Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Tilføj Medarbejder\");\n System.out.println(\"(2) Tilføj Kunde\");\n System.out.println(\"(3) Tilføj Produkt\");\n System.out.println(\"(4) Bekræft\");\n System.out.print(\"Valg: \");\n }",
"@Override\n\tpublic void cry() \n\t{\n\t\tSystem.out.println(\"喵喵喵\");\n\t\t\n\t}",
"public abstract String visualizar();",
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }",
"private static void showMenu() {\n System.out.println(\"1. Dodaj zadanie\");\n System.out.println(\"2. Wykonaj zadanie.\");\n System.out.println(\"3. Zamknij program\");\n }",
"@Override\n\tpublic void Examinar() {\n\t\tSystem.out.println(\"\\nEsta preguiça emite o som tec tec tec ao ser examinada\\n\");\t\n\t}",
"public static void f_menu() {\n System.out.println(\"----------------------------------------\");\n System.out.println(\"--------------DIGITALSOFT---------------\");\n System.out.println(\"-----version:1.0------28/04/2020.-------\");\n System.out.println(\"-----Angel Manuel Correa Rivera---------\");\n System.out.println(\"----------------------------------------\");\n }",
"@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}",
"public void meny(){\r\n System.out.println(\"\\nMeny\");\r\n System.out.println(\"1. Legg til ny person\");\r\n System.out.println(\"2. Kjop ny DVD\");\r\n System.out.println(\"3. Laan bort DVD\");\r\n System.out.println(\"4. Vis info om valgt person\");\r\n System.out.println(\"5. Vis oversikt over personer\");\r\n System.out.println(\"6. Returner DVD\");\r\n System.out.println(\"7. Avslutt\");\r\n }",
"@Override\r\n\tpublic void trunOn() {\n\t\tSystem.out.println(\"끄다\");\r\n\t}",
"public void nace() {\n System.out.println(\"Ostia, acabo de nacer tío.\");\n }",
"@Override\n\tpublic void attaquer() {\n\t\tSystem.out.println(\"Je suis \" + this.nom + \", j'ai \" + this.age + \" ans et je cueille le gui !\");\n\t}",
"public void displayCharacter() {\n System.out.println(\"**************************\");\n System.out.println(p.showDetails());\n System.out.println(\"**************************\"+\"\\n\");\n\n }",
"public void emitirSaludoConGui()\n {\n JOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"<html><p style ='color: red'>Saludo en modo gráfico </p></html>\" + \n\t\t\t\t\t\"\\n\\nBienvenido/a al curso de programación orientada a objetos\\n en Java utilizando BlueJ\",\n\t\t\t\t\t\"Ejemplo de prueba\", JOptionPane.INFORMATION_MESSAGE);\n }",
"public void tampilKarakterC(){\r\n System.out.println(\"Saya adalah binatang \");\r\n }",
"@Override\n\tpublic void print() {\n\t\tsuper.print();\n\t\tSystem.out.println(\"ÎÒÊÇÒ»Ö»\"+this.getStrain()+\"È®.\");\n\t}",
"public static void f_menu(){\n System.out.println(\"------------------------------------------------\");\n System.out.println(\"------------------------------------------------\");\n System.out.println(\"-------------Soft_AVERAGE_HEIGHT-----------------\");\n System.out.println(\"-------------version 1.0 23-oct-2020------------\");\n System.out.println(\"-------------make by Esteban Gaona--------------\");\n System.out.println(\"-------------------------------------------------\");\n System.out.println(\"-------------------------------------------------\");\n}",
"public void jugar_con_el() {\n System.out.println(nombre + \" esta jugando contigo :D\");\n }",
"private void showStat() {\n\t\tSystem.out.println(\"=============================\");\n\t\tSystem.out.println(\"Your won! Congrates!\");\n\t\tSystem.out.println(\"The word is:\");\n\t\tSystem.out.println(\"->\\t\" + this.word.toString().replaceAll(\" \", \"\"));\n\t\tSystem.out.println(\"Your found the word with \" \n\t\t\t\t+ this.numOfWrongGuess + \" wrong guesses.\");\n\t}",
"public void mainkan(){\n System.out.println();\n //System.out.printf(\"Waktu: %1.2f\\n\", this.oPlayer.getWaktu());\n System.out.println(\"Nama : \" + this.oPlayer.nama);\n System.out.println(\"Senjata : \" + this.oPlayer.getNamaSenjataDigunakan());\n System.out.println(\"Kesehatan : \" + this.oPlayer.getKesehatan());\n// System.out.println(\"Daftar Efek : \" + this.oPlayer.getDaftarEfekDiri());\n System.out.println(\"Nama Tempat : \" + this.namaTempat);\n System.out.println(\"Narasi : \" + this.narasi);\n }",
"private void mostrarEmenta (){\n }",
"public void printCommand() {\n System.out.println(\"Cette commande n'est pas supportee\");\n System.out.println(\"Quitter : \\\"quit\\\", Total: \\\"total\\\" , Liste: \\\"list\\\" ou Time: \\\"time\\\"\");\n System.out.println(\"--------\");\n }",
"public void test() {\n\t\tSystem.out.println(\"Bฑปต๗ำรมห\");\r\n\t}",
"public static void f_menu(){\n System.out.println(\"╔══════════════════════╗\");\r\n System.out.println(\"║ SoftAverageHeight ║\");\r\n System.out.println(\"║Version 1.0 20200428 ║\");\r\n System.out.println(\"║Created by:Andres Diaz║\");\r\n System.out.println(\"╚══════════════════════╝\");\r\n\r\n }",
"public void duerme() {\n System.out.println(\"Duerme profundamentZzZzZz...\");\n }",
"public static void f_menu(){\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n System.out.println(\"_/_/_/_/_/_/softvectorwhith/_/_/_/_/_/_/\");\n System.out.println(\"/_/_/_/version 1.0 2020-oct-29_/_/_/_/_/\");\n System.out.println(\"/_/maked by Andres Felipe Torres Lopez_/\");\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n }",
"public void visualizzaCampo(){\r\n\t\tInputOutput.stampaCampo(nome, descrizione, obbligatorio);\r\n\t}",
"void vorbereiten(){\n\t\tSystem.out.println(\"vorbereiten \");\n\t}",
"@Override\r\n\tpublic void alimentar() {\n\t\tSystem.out.print(\" como carne, yummy, yummy\");\r\n\t}",
"@Override\n public String toString() {\n return \"☹ OOPS!!! I'm sorry, but I do not know what this means. ☹\";\n }",
"public static void mainMenu() {\r\n\t\tSystem.out.println(\"============= Text-Werkzeuge =============\");\r\n\t\tSystem.out.println(\"Bitte Aktion auswählen:\");\r\n\t\tSystem.out.println(\"1: Text umkehren\");\r\n\t\tSystem.out.println(\"2: Palindrom-Test\");\r\n\t\tSystem.out.println(\"3: Wörter zählen\");\r\n\t\tSystem.out.println(\"4: Caesar-Chiffre\");\r\n\t\tSystem.out.println(\"5: Längstes Wort ermitteln\");\r\n\t\tSystem.out.println(\"0: Programm beenden\");\r\n\t\tSystem.out.println(\"==========================================\");\r\n\t}",
"private void txt() {\n\n\t}",
"private void printUpdateOrderMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Opdater Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Opdater Medarbejder\");\n System.out.println(\"(2) Opdater Kunde\");\n System.out.println(\"(3) Opdater Produkt\");\n System.out.println(\"(4) Tilføj Produkt\");\n System.out.println(\"(5) Bekræft\");\n System.out.print(\"Valg: \");\n }",
"@Override\n\tpublic void EmitirSom() {\n\t\tSystem.out.println(\"\\nEsta preguiça emite o som tec tec tec\\n\");\t\t\n\t}",
"@Override\n\tpublic void display() {\n\t\tSystem.out.println(\"콘텐츠화면이 출력되었습니다\");\n\t}",
"@Override\n\tpublic void bolumSoyle() {\n\t\tSystem.out.println(\"Benim Bölümüm Psi\");\n\t}",
"@Override\r\n\tpublic void description() {\n\t\tSystem.out.println(\"Seorang yang mengendarai kendaraan dan bekerja\");\r\n\t}",
"@Override\r\n\tpublic String showKode() {\n\t\treturn getPenerbit() + \" \" + firsText(getJudul()) + \" \" + lastText(getPengarang());\r\n\t}",
"@Override\n\tpublic void missiel() {\n\t\tSystem.out.println(\"미사일을 쏠 수 있습니다\");\n\n\t}",
"private void sysout() {\nSystem.out.println(\"pandiya\");\n}",
"public static void RF2() {\r\n System.out.print(\"Gracias,Tenga un Buen Dia \");\r\n\tSystem.out.print(\"Adios :D\");\r\n }",
"@Override\n\tpublic void display() {\n\t\tSystem.out.println(\"Hyunjun\");\n\t}",
"@Override\n\tpublic void operate() {\n\t\tSystem.out.println(\"이동중 연산을 해요!\");\n\t}",
"public void tekst_ekranu(Graphics dbg)\n {\n dbg.setColor(Color.BLACK);\n int y=(int)Math.round(getHeight()*0.04);\n dbg.setFont(new Font(\"TimesRoman\",Font.PLAIN,y));\n dbg.drawString(\"zycie \"+liczba_zyc,(int)Math.round(getWidth()*0.01),y);\n dbg.drawString(\"punkty \"+liczba_punktow,(int)Math.round(getWidth()*0.2),y);\n dbg.drawString(\"czas \"+(int)Math.round(czas_gry),(int)Math.round(getWidth()*0.4),y);\n dbg.drawString(\"naboje \"+liczba_naboi,(int)Math.round(getWidth()*0.6),y);\n dbg.drawString(\"poziom \"+poziom,(int)Math.round(getWidth()*0.8),y);\n }",
"public static void menuPrincicipal() {\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| Elige una opcion |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 1-Modificar Orden |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 2-Eliminar orden |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 3-Ver todas las ordenes |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 0-Salir |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t}",
"public static void menuInicial() {\n System.out.println(\"Boas vindas à Arena pokemon Treinador!!!\");\n System.out.println(\"Digite 1 para fazer sua inscrição\");\n System.out.println(\"Digite 2 para sair\");\n\n }",
"public void printStrukTel() //Untuk yang tidak pake DialogBox\r\n {\n System.out.println(\"----------------------------------------\");\r\n System.out.println(\" BANK HAFARA \");\r\n System.out.println(\"\\n\");\r\n System.out.println(\" Nomor antrian anda: \");\r\n System.out.println(\" A\" + totalAntrianTeller++);\r\n System.out.println(\" Sedang menunggu \" + (totalAntrianTeller-2) + \" orang\");\r\n System.out.println(\"\\n\");\r\n System.out.println(\" \"+wkt.getTanggal());\r\n System.out.println(\"TERIMA KASIH TELAH MENGGUNAKAN JASA KAMI\");\r\n System.out.println(\"----------------------------------------\");\r\n System.out.println(\"\\n\");\r\n }",
"private static void mostrarMenu() {\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println(\"-----------OPCIONES-----------\");\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\n\\t1) Mostrar los procesos\");\n\t\tSystem.out.println(\"\\n\\t2) Parar un proceso\");\n\t\tSystem.out.println(\"\\n\\t3) Arrancar un proceso\");\n\t\tSystem.out.println(\"\\n\\t4) A�adir un proceso\");\n\t\tSystem.out.println(\"\\n\\t5) Terminar ejecucion\");\n\t\tSystem.out.println(\"\\n------------------------------\");\n\t}",
"static void montaMenu() {\n System.out.println(\"\");\r\n System.out.println(\"1 - Novo cliente\");\r\n System.out.println(\"2 - Lista clientes\");\r\n System.out.println(\"3 - Apagar cliente\");\r\n System.out.println(\"0 - Finalizar\");\r\n System.out.println(\"Digite a opcao desejada: \");\r\n System.out.println(\"\");\r\n }",
"public void Makan()\n\t{\n\tSystem.out.println(\"Harimau Makan Daging dan minum susu\");\n\tSystem.out.println();\n\t}",
"public void mostrarConsola() {\n\t\tProceso aux = this.raiz;\n\t\t// int i=this.numProcesos;\n\t\twhile (aux.sig != this.raiz /* i>0 */) {\n\t\t\t// i--;\n\t\t\taux = aux.sig;\n\t\t\tSystem.out.println(aux.toString());\n\t\t}\n\t}",
"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 }",
"private void syso() {\nSystem.out();\r\n}",
"public static void helper(){\n System.out.println(\"\\n0: Search Transaction\");\n System.out.println(\"1: New Transaction\");\n System.out.println(\"2: Query Transaction Detail\");\n System.out.println(\"back: return last menu\");\n }",
"public void show() \n{\n\tSystem.out.println(this.getContenido().toString());//NOSONAR\n\t\n}",
"static void printWord(String propozitie) {\n System.out.println(propozitie);\n\n\n }",
"@Override\n\tpublic void message() {\n\t\tSystem.out.println(\"스마트폰으로 문자하기\");\n\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 }",
"public void displayTextToConsole();",
"public void setOptions(){\n System.out.println(\"¿Que operacion desea realizar?\");\n System.out.println(\"\");\n System.out.println(\"1- Consultar sus datos\");\n System.out.println(\"2- Ingresar\");\n System.out.println(\"3- Retirar\");\n System.out.println(\"4- Transferencia\");\n System.out.println(\"5- Consultar saldo\");\n System.out.println(\"6- Cerrar\");\n System.out.println(\"\");\n}",
"public String description () {\n\t\t\tSystem.out.println(treinador.getTreinador() + \" fugiu da batalha!!\");\r\n\t\t\tSystem.exit(0);\r\n\t\t\treturn treinador.getTreinador() + \" fugiu da batalha!!\";\r\n\t\t}",
"void showInConsole();",
"@Override\n\tpublic void cry() {\n\t\tSystem.out.println(\"黄种人-哭\");\n\t}",
"@Override\r\n\tpublic void doThing() {\n\t\tSystem.out.print(\"ÎäÆ÷ÊDZ¦½£,\");\r\n\t}",
"public static void mainText(){\n\t\tSystem.out.println(\"Enter: 1.'EXIT' 2.'STU' 3.'FAC' 4.SQL query 5.'MORE' -for more detail about options\");\n\t}",
"public void mostrar() {\n\t\tHerramientas.println(menu);\n\t}",
"private void menuArmadura(){\n System.out.println(\"Escolha o local em que queira colocar a uma armadura:\");\n System.out.println(\"1 - Cabeça\");\n System.out.println(\"2 - Tronco\");\n System.out.println(\"3 - Pernas\");\n System.out.println(\"4 - Pés\");\n System.out.println(\"0 - Sair\");\n }",
"public void transAccElec(){\n System.out.println(\"Elija la cuenta a la que desea efectuar la transferencia\");\n System.out.println(\"\");\n}",
"private void tutorial(){\n\t\tString msg = \"[Space] = Inicia e pausa o jogo depois de iniciado.\";\n\t\tmsg += \"\\n[Seta esquerda] = Move o paddle para a esquerda.\";\n\t\tmsg += \"\\n[Seta direita] = Move o paddle para a direita.\";\n\t\tmsg += \"\\n[I] = Abre a janela de informaçoes.\";\n\t\tmsg += \"\\n[R] = Reinicia o jogo.\";\n\t\tJOptionPane.showMessageDialog(null, \"\"+msg, \"Informaçoes\", JOptionPane.INFORMATION_MESSAGE);\n\t}",
"public void show() {\n System.out.println(\"I am the best\");\n }",
"public void printInfo() {\r\n System.out.printf(\"%-25s\", \"Nomor Rekam Medis Pasien\");\r\n System.out.println(\": \" + getNomorRekamMedis());\r\n System.out.printf(\"%-25s\", \"Nama Pasien\");\r\n System.out.println(\": \" + getNama());\r\n System.out.printf(\"%-25s\", \"Tempat, Tanggal Lahir\");\r\n System.out.print(\": \" + getTempatLahir() + \" , \");\r\n getTanggalKelahiran();\r\n System.out.printf(\"%-25s\", \"Alamat\");\r\n System.out.println(\": \" + getAlamat());\r\n System.out.println(\"\");\r\n }",
"private void afficheMenu() {\n\t\tSystem.out.println(\"------------------------------ Bien venu -----------------------------\");\n\t\tSystem.out.println(\"--------------------------- \"+this.getName()+\" ------------------------\\n\");\n\t\t\n\t\ttry {\n\t\t\tThread.sleep(40);\n\t\t\tSystem.out.println(\"A- Afficher l'état de l'hôtel. \");\n\t\t\tThread.sleep(50);\n\t\t\tSystem.out.println(\"B- Afficher Le nombre de chambres réservées.\");\n\t\t\tThread.sleep(60);\n\t\t\tSystem.out.println(\"C- Afficher Le nombre de chambres libres.\");\n\t\t\tThread.sleep(70);\n\t\t\tSystem.out.println(\"D- Afficher Le numéro de la première chambre vide.\");\n\t\t\tThread.sleep(80);\n\t\t\tSystem.out.println(\"E- Afficher La numéro de la dernière chambre vide.\");\n\t\t\tThread.sleep(90);\n\t\t\tSystem.out.println(\"F- Reserver une chambre.\");\n\t\t\tThread.sleep(100);\n\t\t\tSystem.out.println(\"G- Libérer une chambre.\");\n\t\t\tThread.sleep(100);\n\t\t\tSystem.out.println(\"O- Voire toutes les options possibles?\");\n\t\t\tThread.sleep(100);\n\t\t\tSystem.out.println(\"H- Aide?\");\n\t\t\tThread.sleep(100);\n\t\t\tSystem.out.println(\"-------------------------------------------------------------------------\");\n\t\t}catch(Exception err) {\n\t\t\tSystem.out.println(\"Error d'affichage!\");\n\t\t}\n\t\n\t}",
"private static void displayHelp(){\n System.out.println(\"1. (R)eport\");\n System.out.println(\"2. (M)inimum Spanning Tree\");\n System.out.println(\"3. (S)hortest Path from i j\");\n System.out.println(\"4. (D)own i j\");\n System.out.println(\"5. (U)p i j\");\n System.out.println(\"6. (C)hange Weight i j x\");\n System.out.println(\"7. (E)ulerian\");\n System.out.println(\"8. (Q)uit\");\n }",
"public void modelShow() {\n\t\tSystem.out.println(\"秀衣服\");\n\t}",
"@Override\r\n\tpublic void display(String s) {\n\t\tSystem.out.println(s + \"바나나입니다.\");\r\n\t}",
"@Override\n\tpublic void mostrarDeposito() {\n\t\tSystem.out.println(\"Depósito: \"+depositoActual+\"litros\");\n\t}",
"public static void studentText(){\n\t\tSystem.out.println(\"Enter: 1.'EXIT' 2.'ADD' 3.'REMOVE' 4.'FIND 5.'ENROLL' 6.'WITHDRAW' 7.'SCHEDULE' 8.'MORE' -for more detail about options\");\n\t}",
"public static void printMeny(){\n\t\tSystem.out.println(\"1. Registrer en person\");\n\t\tSystem.out.println(\"2. Print personen\");\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"Báo: \"+\"\\t\"+\", Số Trang: \"+soTrang+\", Nhà xuất bản: \"+nxb;\n\t}",
"@Override\r\n public void prenderVehiculo() {\r\n System.out.println(\"___________________________________________________\");\r\n System.out.println(\"prender Jet\");\r\n }",
"public void display() {System.out.println(skaitlis);}",
"public void PedirSintomas() {\n\t\t\r\n\t\tSystem.out.println(\"pedir sintomas del paciente para relizar el diagnosticoa\");\r\n\t}"
] | [
"0.68816197",
"0.68216634",
"0.67157876",
"0.66214395",
"0.6610322",
"0.6603713",
"0.6601479",
"0.65787625",
"0.65463907",
"0.65445554",
"0.64071614",
"0.6396941",
"0.6366948",
"0.63595146",
"0.635886",
"0.63573337",
"0.6322587",
"0.6293827",
"0.6290826",
"0.6283043",
"0.62761265",
"0.6249296",
"0.62315243",
"0.62288827",
"0.6227657",
"0.6222462",
"0.621873",
"0.6203816",
"0.61890525",
"0.61757725",
"0.61704236",
"0.6169369",
"0.6168824",
"0.61611396",
"0.6159414",
"0.61286706",
"0.6122384",
"0.6122036",
"0.61165965",
"0.6113354",
"0.610657",
"0.6105629",
"0.6096375",
"0.6094097",
"0.6092611",
"0.608235",
"0.60804",
"0.6071509",
"0.6069131",
"0.60636795",
"0.606344",
"0.6061572",
"0.60520494",
"0.60412747",
"0.60346574",
"0.602615",
"0.6024944",
"0.6016294",
"0.60150224",
"0.6005096",
"0.6004588",
"0.6001501",
"0.59912777",
"0.5986145",
"0.5980844",
"0.5977444",
"0.5975543",
"0.5975346",
"0.59749633",
"0.59738046",
"0.5973191",
"0.5970997",
"0.5968763",
"0.59635967",
"0.5961151",
"0.5958812",
"0.5955297",
"0.5954589",
"0.595445",
"0.59527373",
"0.59515023",
"0.5930702",
"0.5927944",
"0.5926075",
"0.59025764",
"0.5889856",
"0.58818877",
"0.5880793",
"0.58787143",
"0.58774537",
"0.5867673",
"0.5864682",
"0.58642036",
"0.5863957",
"0.58583134",
"0.58582765",
"0.58555055",
"0.5851913",
"0.58481747",
"0.584775",
"0.5845941"
] | 0.0 | -1 |
edytuj konsole w bazie danych | @RequestMapping(value = "/console", method = RequestMethod.PUT)
public ResponseEntity<Void> edit(@RequestBody @Valid @NotNull Consoles consoles) {
if (!consolesService.checkIfExist(consoles.getId()))
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
else {
consolesService.saveConsoles(consoles);
return new ResponseEntity<>(HttpStatus.CREATED);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }",
"public void setmostrar(){\n System.out.println(\"¿Qué deseas hacer?\");\n System.out.println(\"i=incrementar\");\n System.out.println(\"d=decrementar\");\n System.out.println(\"s=salir\");\n }",
"@Override\r\n public void Story(){\r\n super.Story();\r\n System.out.println(\"=======================================================================================\");\r\n System.out.println(\"|| Arya harus bergegas untuk menyelamatkan seluruh warga. Dia tidak tau posisi warga ||\");\r\n System.out.println(\"|| yang harus diselamatkan ada pada ruangan yang mana. ||\");\r\n System.out.println(\"=======================================================================================\");\r\n }",
"public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }",
"public void tampilKarakterC(){\r\n System.out.println(\"Saya adalah binatang \");\r\n }",
"private void menuArmadura(){\n System.out.println(\"Escolha o local em que queira colocar a uma armadura:\");\n System.out.println(\"1 - Cabeça\");\n System.out.println(\"2 - Tronco\");\n System.out.println(\"3 - Pernas\");\n System.out.println(\"4 - Pés\");\n System.out.println(\"0 - Sair\");\n }",
"@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}",
"public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }",
"public void setOptions(){\n System.out.println(\"¿Que operacion desea realizar?\");\n System.out.println(\"\");\n System.out.println(\"1- Consultar sus datos\");\n System.out.println(\"2- Ingresar\");\n System.out.println(\"3- Retirar\");\n System.out.println(\"4- Transferencia\");\n System.out.println(\"5- Consultar saldo\");\n System.out.println(\"6- Cerrar\");\n System.out.println(\"\");\n}",
"@Override\r\n\tpublic void 자기() {\n\t\tSystem.out.println(\"잠을 잔다\");\r\n\t}",
"@Override\r\n\tpublic void alimentar() {\n\t\tSystem.out.print(\" como carne, yummy, yummy\");\r\n\t}",
"public void printCommand() {\n System.out.println(\"Cette commande n'est pas supportee\");\n System.out.println(\"Quitter : \\\"quit\\\", Total: \\\"total\\\" , Liste: \\\"list\\\" ou Time: \\\"time\\\"\");\n System.out.println(\"--------\");\n }",
"private void printCreateOrderMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Opret Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Tilføj Medarbejder\");\n System.out.println(\"(2) Tilføj Kunde\");\n System.out.println(\"(3) Tilføj Produkt\");\n System.out.println(\"(4) Bekræft\");\n System.out.print(\"Valg: \");\n }",
"public void mainkan(){\n System.out.println();\n //System.out.printf(\"Waktu: %1.2f\\n\", this.oPlayer.getWaktu());\n System.out.println(\"Nama : \" + this.oPlayer.nama);\n System.out.println(\"Senjata : \" + this.oPlayer.getNamaSenjataDigunakan());\n System.out.println(\"Kesehatan : \" + this.oPlayer.getKesehatan());\n// System.out.println(\"Daftar Efek : \" + this.oPlayer.getDaftarEfekDiri());\n System.out.println(\"Nama Tempat : \" + this.namaTempat);\n System.out.println(\"Narasi : \" + this.narasi);\n }",
"@Override\r\n\tpublic void 먹기() {\n\t\tSystem.out.println(\"다람쥐,도토리를 먹는다.\");\r\n\t}",
"public void printHelp() {\n System.out.println(\". - jeden znak (bez znaku nowej linii)\");\n System.out.println(\".* - zero lub więcej znaków\");\n System.out.println(\"\\\\w* - zero lub więcej słów\");\n }",
"@Override\n\tpublic void 숨쉰다() {\n\t\tSystem.out.println(\"허파로 숨을 쉰다.\");\n\t\t\n\t}",
"@Override\r\n\tpublic void mostrar() {\n\t\t\r\n\t}",
"public void visKontingenthaandteringMenu ()\r\n {\r\n System.out.println(\"Du har valgt kontingent.\");\r\n System.out.println(\"Hvad oensker du at foretage dig?\");\r\n System.out.println(\"1: Se priser\");\r\n System.out.println(\"2: Se medlemmer i restance\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }",
"private static void mostrarMenu() {\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println(\"-----------OPCIONES-----------\");\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\n\\t1) Mostrar los procesos\");\n\t\tSystem.out.println(\"\\n\\t2) Parar un proceso\");\n\t\tSystem.out.println(\"\\n\\t3) Arrancar un proceso\");\n\t\tSystem.out.println(\"\\n\\t4) A�adir un proceso\");\n\t\tSystem.out.println(\"\\n\\t5) Terminar ejecucion\");\n\t\tSystem.out.println(\"\\n------------------------------\");\n\t}",
"public static void menuInicial() {\n System.out.println(\"Boas vindas à Arena pokemon Treinador!!!\");\n System.out.println(\"Digite 1 para fazer sua inscrição\");\n System.out.println(\"Digite 2 para sair\");\n\n }",
"@Override\n\tpublic void bildir(){\n\t\tif(durum == true){\n\t\t\tSystem.out.println(\"Durum: Acik\");\t\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Durum: Kapali\");\n\t\t}\n\t\t\n\t}",
"public void nace() {\n System.out.println(\"Ostia, acabo de nacer tío.\");\n }",
"private static void saluti() {\n\t\tUtilityIO.header(MSG_CHIUSURA, SIMBOLO_MESSAGGIO_BENV_USCITA);\n\t\tSystem.out.println();\n\t}",
"@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´ó¿ãñÃ\");\n\t}",
"private void printMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Opret\");\n System.out.println(\"(2) Find\");\n System.out.println(\"(3) Slet\");\n System.out.print(\"Valg: \");\n }",
"public void printStrukTel() //Untuk yang tidak pake DialogBox\r\n {\n System.out.println(\"----------------------------------------\");\r\n System.out.println(\" BANK HAFARA \");\r\n System.out.println(\"\\n\");\r\n System.out.println(\" Nomor antrian anda: \");\r\n System.out.println(\" A\" + totalAntrianTeller++);\r\n System.out.println(\" Sedang menunggu \" + (totalAntrianTeller-2) + \" orang\");\r\n System.out.println(\"\\n\");\r\n System.out.println(\" \"+wkt.getTanggal());\r\n System.out.println(\"TERIMA KASIH TELAH MENGGUNAKAN JASA KAMI\");\r\n System.out.println(\"----------------------------------------\");\r\n System.out.println(\"\\n\");\r\n }",
"public void mostrarConsola() {\n\t\tProceso aux = this.raiz;\n\t\t// int i=this.numProcesos;\n\t\twhile (aux.sig != this.raiz /* i>0 */) {\n\t\t\t// i--;\n\t\t\taux = aux.sig;\n\t\t\tSystem.out.println(aux.toString());\n\t\t}\n\t}",
"public void duerme() {\n System.out.println(\"Duerme profundamentZzZzZz...\");\n }",
"@Override\n\tpublic void bolumSoyle() {\n\t\tSystem.out.println(\"Benim Bölümüm Psi\");\n\t}",
"static void montaMenu() {\n System.out.println(\"\");\r\n System.out.println(\"1 - Novo cliente\");\r\n System.out.println(\"2 - Lista clientes\");\r\n System.out.println(\"3 - Apagar cliente\");\r\n System.out.println(\"0 - Finalizar\");\r\n System.out.println(\"Digite a opcao desejada: \");\r\n System.out.println(\"\");\r\n }",
"@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´óTÐô\");\n\t}",
"public void jugar_con_el() {\n System.out.println(nombre + \" esta jugando contigo :D\");\n }",
"@Override\n\tpublic void mostrarDeposito() {\n\t\tSystem.out.println(\"Depósito: \"+depositoActual+\"litros\");\n\t}",
"@Override\n public void comunicar() {\n System.out.println(\"miauuuu\");\n\n }",
"public void meny(){\r\n System.out.println(\"\\nMeny\");\r\n System.out.println(\"1. Legg til ny person\");\r\n System.out.println(\"2. Kjop ny DVD\");\r\n System.out.println(\"3. Laan bort DVD\");\r\n System.out.println(\"4. Vis info om valgt person\");\r\n System.out.println(\"5. Vis oversikt over personer\");\r\n System.out.println(\"6. Returner DVD\");\r\n System.out.println(\"7. Avslutt\");\r\n }",
"public static void menuPrincicipal() {\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| Elige una opcion |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 1-Modificar Orden |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 2-Eliminar orden |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 3-Ver todas las ordenes |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 0-Salir |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t}",
"public static void f_menu() {\n System.out.println(\"----------------------------------------\");\n System.out.println(\"--------------DIGITALSOFT---------------\");\n System.out.println(\"-----version:1.0------28/04/2020.-------\");\n System.out.println(\"-----Angel Manuel Correa Rivera---------\");\n System.out.println(\"----------------------------------------\");\n }",
"private void mostrarEmenta (){\n }",
"static void menuPrincipal() {\n System.out.println(\n \"\\nPizzaria o Rato que Ri:\" + '\\n' +\n \"1 - Novo pedido\" + '\\n' +\n \"2 - Mostrar pedidos\" + '\\n' +\n \"3 - Alterar estado do pedido\" + '\\n' +\n \"9 - Sair\"\n );\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 }",
"private static void benvenuto() {\n\t\tUtilityIO.header(MSG_BENVENUTO, SIMBOLO_MESSAGGIO_BENV_USCITA);\n\t\tSystem.out.println();\n\t\t\n\t}",
"@Override\n\tpublic String hablar() {\n\t\treturn \"Hola, soy un Buitre y sť volar\";\n\t}",
"private static void showMenu() {\n System.out.println(\"1. Dodaj zadanie\");\n System.out.println(\"2. Wykonaj zadanie.\");\n System.out.println(\"3. Zamknij program\");\n }",
"public static void helper(){\n System.out.println(\"\\n0: Search Transaction\");\n System.out.println(\"1: New Transaction\");\n System.out.println(\"2: Query Transaction Detail\");\n System.out.println(\"back: return last menu\");\n }",
"public void mostrarCartasBazas(){\n int cont = 0;\n while(cont < cartasDeLaBaza.size()){\n System.out.println(cartasDeLaBaza.get(cont).toString());\n cont ++;\n }\n }",
"public void visMedlemskabsMenu ()\r\n {\r\n System.out.println(\"Du har valgt medlemskab.\");\r\n System.out.println(\"Hvad Oensker du at foretage dig?\");\r\n System.out.println(\"1: Oprette et nyt medlem\");\r\n System.out.println(\"2: Opdatere oplysninger paa et eksisterende medlem\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }",
"private void MostrarSombra()\n {\n // Si tiene el valor por defecto\n if (EsDefecto())\n {\n // Si tenemos establecida la sombra \"defecto\"\n if (m_SombraD.m_nShadowColor != Color.TRANSPARENT)\n {\n setShadowLayer(m_SombraD.m_nShadowRadius, m_SombraD.m_nShadowDx,\n m_SombraD.m_nShadowDy, m_SombraD.m_nShadowColor);\n }\n else setShadowLayer(0, 0, 0, Color.TRANSPARENT);\n }\n else\n {\n // Si tenemos establecida la sombra \"normal\"\n if (m_SombraN.m_nShadowColor != Color.TRANSPARENT)\n {\n setShadowLayer(m_SombraN.m_nShadowRadius, m_SombraN.m_nShadowDx,\n m_SombraN.m_nShadowDy, m_SombraN.m_nShadowColor);\n }\n else setShadowLayer(0, 0, 0, Color.TRANSPARENT);\n }\n }",
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }",
"@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}",
"public static void status(){\n System.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n System.out.printf(\"\\nNOMBRE:\\t\\t\\t\"+nombrePersonaje);\n\tSystem.out.printf(\"\\nPuntos De Vida (HP):\\t\"+puntosDeVida);\n\tSystem.out.printf(\"\\nPuntos De mana (MP):\\t\"+puntosDeMana);\n System.out.printf(\"\\nNivel: \\t\\t\\t\"+nivel);\n\tSystem.out.printf(\"\\nExperiencia:\\t\\t\"+experiencia);\n\tSystem.out.printf(\"\\nOro: \\t\\t\"+oro);\n System.out.printf(\"\\nPotion:\\t\\t\\t\"+articulo1);\n System.out.printf(\"\\nHi-Potion:\\t\\t\"+articulo2);\n System.out.printf(\"\\nM-Potion:\\t\\t\"+articulo3);\n System.out.printf(\"\\n\\tEnemigos Vencidos:\\t\");\n\tSystem.out.printf(\"\\nNombre:\\t\\t\\tNo.Derrotas\");\n System.out.printf(\"\\nDark Wolf:\\t\\t\"+enemigoVencido1);\n\tSystem.out.printf(\"\\nDragon:\\t\\t\\t\"+enemigoVencido2);\n System.out.printf(\"\\nMighty Golem:\\t\\t\"+enemigoVencido3);\t\n }",
"private void printUpdateOrderMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Opdater Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Opdater Medarbejder\");\n System.out.println(\"(2) Opdater Kunde\");\n System.out.println(\"(3) Opdater Produkt\");\n System.out.println(\"(4) Tilføj Produkt\");\n System.out.println(\"(5) Bekræft\");\n System.out.print(\"Valg: \");\n }",
"@Override\n\tpublic void attaquer() {\n\t\tSystem.out.println(\"Je suis \" + this.nom + \", j'ai \" + this.age + \" ans et je cueille le gui !\");\n\t}",
"public void PedirSintomas() {\n\t\t\r\n\t\tSystem.out.println(\"pedir sintomas del paciente para relizar el diagnosticoa\");\r\n\t}",
"public void quoteShow(List<?> instrucciones) {\n \tString texto=\"\";\n \tfor(int i=1;i<instrucciones.size();i++) {\n \t\t\n \t\ttexto+=instrucciones.get(i)+\" \";\n \t\tSystem.out.println(texto);\n \t}\n }",
"public void emitirSaludoConGui()\n {\n JOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"<html><p style ='color: red'>Saludo en modo gráfico </p></html>\" + \n\t\t\t\t\t\"\\n\\nBienvenido/a al curso de programación orientada a objetos\\n en Java utilizando BlueJ\",\n\t\t\t\t\t\"Ejemplo de prueba\", JOptionPane.INFORMATION_MESSAGE);\n }",
"public void transAccElec(){\n System.out.println(\"Elija la cuenta a la que desea efectuar la transferencia\");\n System.out.println(\"\");\n}",
"public static void main(String[] args) {\n //sout[TAB KEY] -> println\n String str1 = \"J\"; // 암시적으로 객체가 생성된 String\n char ch1 = 'A'; // ''한 문자를 저장하기 위한 char\n System.out.println(\"문자열 : \" +str1);\n System.out.println(\"문자 : \" +ch1);\n \n \n char ch3 = \"\\u0042\";\n }",
"public void Makan()\n\t{\n\tSystem.out.println(\"Harimau Makan Daging dan minum susu\");\n\tSystem.out.println();\n\t}",
"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[]){\r\n \r\n Anjing obj = new Binatang();\r\n //meninstalasi objek\r\n\r\n obj.tampilKarakterA();\r\n obj.tampilKarakterB();\r\n obj.tampilKarakterC();\r\n //gunakan method tampilkan output hasil\r\n }",
"@Override\r\n\tpublic void trunOn() {\n\t\tSystem.out.println(\"끄다\");\r\n\t}",
"public static void mainMenu() {\r\n\t\tSystem.out.println(\"============= Text-Werkzeuge =============\");\r\n\t\tSystem.out.println(\"Bitte Aktion auswählen:\");\r\n\t\tSystem.out.println(\"1: Text umkehren\");\r\n\t\tSystem.out.println(\"2: Palindrom-Test\");\r\n\t\tSystem.out.println(\"3: Wörter zählen\");\r\n\t\tSystem.out.println(\"4: Caesar-Chiffre\");\r\n\t\tSystem.out.println(\"5: Längstes Wort ermitteln\");\r\n\t\tSystem.out.println(\"0: Programm beenden\");\r\n\t\tSystem.out.println(\"==========================================\");\r\n\t}",
"public static void f_menu(){\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n System.out.println(\"_/_/_/_/_/_/softvectorwhith/_/_/_/_/_/_/\");\n System.out.println(\"/_/_/_/version 1.0 2020-oct-29_/_/_/_/_/\");\n System.out.println(\"/_/maked by Andres Felipe Torres Lopez_/\");\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.getCor().equals(\"Branco\") ? \" ♘ \": \" ♞ \";\r\n\t}",
"public void ciudad(){\n System.out.println(\"ciudad londres\");\n }",
"public static void f_menu(){\n System.out.println(\"╔══════════════════════╗\");\r\n System.out.println(\"║ SoftAverageHeight ║\");\r\n System.out.println(\"║Version 1.0 20200428 ║\");\r\n System.out.println(\"║Created by:Andres Diaz║\");\r\n System.out.println(\"╚══════════════════════╝\");\r\n\r\n }",
"static void afficherMenu() {\n\t\tSystem.out.println(\"\\n\\n\\n\\t\\tMENU PRINCIPAL\\n\");\n\t\tSystem.out.println(\"\\t1. Additionner deux nombres\\n\");\n\t\tSystem.out.println(\"\\t2. Soustraire deux nombres\\n\");\n\t\tSystem.out.println(\"\\t3. Multiplier deux nombres\\n\");\n\t\tSystem.out.println(\"\\t4. Deviser deux nombres\\n\");\n\t\tSystem.out.println(\"\\t0. Quitter\\n\");\n\t\tSystem.out.print(\"\\tFaites votre choix : \");\n\t}",
"@Override\n\tpublic void order() {\n\t\tSystem.out.println(\"고객 판매 주문\");\n\t}",
"public void show() {\n\t\t System.out.println(\"这是A型产品\"); \r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"Báo: \"+\"\\t\"+\", Số Trang: \"+soTrang+\", Nhà xuất bản: \"+nxb;\n\t}",
"public void belajar(){\n\t\tSystem.out.println(\"Belajar java di \"+tempat+\" selama \"+jamBelajar+\" jam\");\n\t}",
"public void mostrar() {\r\n\t\tfor (int i = 0; i < bolsa.length; i++) {\r\n\t\t\tSystem.out.printf(\"#%d: %d\\t\", i, bolsa[i]);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}",
"@Override\n\tpublic void habla() {\n\t\tSystem.out.println(\"Miau, Miau!!\");\n\t}",
"@Override\n\tpublic void cry() \n\t{\n\t\tSystem.out.println(\"喵喵喵\");\n\t\t\n\t}",
"@Override\n\tpublic void EmitirSom() {\n\t\tSystem.out.println(\"\\nEsta preguiça emite o som tec tec tec\\n\");\t\t\n\t}",
"static void printWord(String propozitie) {\n System.out.println(propozitie);\n\n\n }",
"public abstract String dohvatiKontakt();",
"@Override\n\tpublic void maasHesapla() {\n\t\tSystem.out.println(\"isciler icin maas 5000 tl \");\n \t\t\n\t}",
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }",
"@Override\n\tpublic void Examinar() {\n\t\tSystem.out.println(\"\\nEsta preguiça emite o som tec tec tec ao ser examinada\\n\");\t\n\t}",
"public void formatPrint() {\n\t\tSystem.out.printf(\"%8d \", codigo);\n\t\tSystem.out.printf(\"%5.5s \", clase);\n\t\tSystem.out.printf(\"%5.5s \", par);\n\t\tSystem.out.printf(\"%5.5s \", nombre);\n\t\tSystem.out.printf(\"%8d \", comienza);\n\t\tSystem.out.printf(\"%8d\", termina);\n\t}",
"public static void printMeny(){\n\t\tSystem.out.println(\"1. Registrer en person\");\n\t\tSystem.out.println(\"2. Print personen\");\n\t}",
"private static void gestionarOpciones(int opcion) {\r\n\t\tswitch (opcion) {\r\n\t\tcase 1:\r\n\t\t\tSystem.out.println(\"\\nMuestro la opci\\u00f3n \"+ opcion);\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tSystem.out.println(\"\\nMuestro la opci\\u00f3n \"+ opcion);\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tSystem.out.println(\"\\nMuestro la opci\\u00f3n \"+ opcion);\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tSystem.out.println(\"\\nMuestro la opci\\u00f3n \"+ opcion);\r\n\t\t\tbreak;\t\t\r\n\t\t}\t\t\r\n\t}",
"public void printInfo() {\r\n System.out.printf(\"%-25s\", \"Nomor Rekam Medis Pasien\");\r\n System.out.println(\": \" + getNomorRekamMedis());\r\n System.out.printf(\"%-25s\", \"Nama Pasien\");\r\n System.out.println(\": \" + getNama());\r\n System.out.printf(\"%-25s\", \"Tempat, Tanggal Lahir\");\r\n System.out.print(\": \" + getTempatLahir() + \" , \");\r\n getTanggalKelahiran();\r\n System.out.printf(\"%-25s\", \"Alamat\");\r\n System.out.println(\": \" + getAlamat());\r\n System.out.println(\"\");\r\n }",
"protected void afficherMain() {\n\t\tSystem.out.println(\"Vous avez \" + this.joueur.nbCarteDansMain() + \" cartes dans votre main :\");\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tif (this.joueur.getCarteDeMain(i) != null) {\n\t\t\t\tSystem.out.println(\"\\t\" + (i+1) + \") \" + this.joueur.getCarteDeMain(i).toString());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\t\" + (i+1) + \") Pas de carte.\");\n\t\t\t}\n\t\t}\n\t}",
"public static void mainText(){\n\t\tSystem.out.println(\"Enter: 1.'EXIT' 2.'STU' 3.'FAC' 4.SQL query 5.'MORE' -for more detail about options\");\n\t}",
"private void sonucYazdir() {\n\t\talinanPuan = (int)(((float)alinanPuan / (float)toplamPuan) * 100);\n\t\tSystem.out.println(\"\\nSınav Bitti..!\\n\" + soruSayisi + \" sorudan \" + dogruSayaci + \" tanesine\"\n\t\t\t\t\t\t+ \" doğru cevap verdiniz.\\nPuan: \" + alinanPuan + \"/\" + toplamPuan);\n\t}",
"public void mostrarCompra() {\n }",
"public static void menu(){\n System.out.println(\"-Ingrese el número correspondiente-\");\n System.out.println(\"------------ Opciones -------------\");\n System.out.println(\"------------ 1. Sumar -------------\");\n System.out.println(\"------------ 2. Restar ------------\");\n System.out.println(\"------------ 3. Multiplicar -------\");\n System.out.println(\"------------ 4. Dividir -----------\");\n }",
"private void visualizarm(){\r\n switch(this.opc){\r\n case 1:\r\n System.out.printf(\"0\\t1\\t2\\t3\\t4\\t\\t\\t\\t\"+min+\":\"+seg+\"\\n\");\r\n System.out.printf(\"-----------------------------------------------------\\n\");\r\n for(int i=0;i<2;i++){\r\n for(int j=0;j<5;j++){\r\n System.out.printf(\"%s\\t\",mfacil[i][j]);\r\n }\r\n System.out.printf(\"|\"+i+\"\\n\");\r\n }\r\n break;\r\n case 2:\r\n System.out.printf(\"0\\t1\\t2\\t3\\t4\\t5\\n\");\r\n System.out.printf(\"-----------------------------------------------------\\n\");\r\n for(int i=0;i<3;i++){\r\n for(int j=0;j<6;j++){\r\n System.out.printf(\"%s\\t\",mmedio[i][j]);\r\n }\r\n System.out.printf(\"|\"+i+\"\\n\");\r\n }\r\n break;\r\n case 3:\r\n System.out.printf(\"0\\t1\\t2\\t3\\t4\\t5\\t6\\n\");\r\n System.out.printf(\"------------------------------------------------------------------------\\n\");\r\n for(int i=0;i<4;i++){\r\n for(int j=0;j<7;j++){\r\n System.out.printf(\"%s\\t\",mdificil[i][j]);\r\n }\r\n System.out.printf(\"|\"+i+\"\\n\");\r\n }\r\n break;\r\n }\r\n }",
"public void visualizzaCampo(){\r\n\t\tInputOutput.stampaCampo(nome, descrizione, obbligatorio);\r\n\t}",
"@Override\n\tpublic void concentrarse() {\n\t\tSystem.out.println(\"Se centra en sacar lo mejor del Equipo\");\n\t\t\n\t}",
"static String cetak_nama1() {\n return \"Nama Saya : Aprianto\";\r\n }",
"public static void giveHoroscope(Zodiac z) {\n\t\tswitch(z) {\n\t\t\tcase ARIES: {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"WOW YOU GOT Aries so cool!!!\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase TAURUS: {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"WOW YOU GOT TAURUS so cool!!!\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase GEMINI: {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Gemini???\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase CANCER: {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"cancer :O\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase VIRGO: {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"WOW VIRGO SO EPIC!!!!!\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase LEO: {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"WOW YOU GOT LEO so cool!!!\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase LIBRA: {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Libra how epicccccc\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase SCORPIO: {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"wow a scorpio :O\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase SAGITTARIUS: {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"What a long word\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase CAPRICORN: {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Reminds me of candy corn\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase AQUARIUS: {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"water\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase PISCES: {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"not sure...\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public void menuListados() {\n\t\tSystem.out.println(\"MENU LISTADOS\");\n\t\tSystem.out.println(\"1. Personas con la misma actividad\");\n\t\tSystem.out.println(\"2. Cantidad de personas con la misma actividad\");\n\t\tSystem.out.println(\"0. Salir\");\n\t}",
"public String toString(){\r\n\t\treturn \"KORISNIK:\"+korisnik+\" PORUKA:\"+poruka;\r\n\t}",
"public void setMenu(){\n opciones='.';\n }",
"public void display() {System.out.println(skaitlis);}",
"public String toString(){\r\n\treturn \"KORISNIK:\"+korisnik+\" PORUKA:\"+poruka;\r\n\t}",
"void testeAcessos() {\n System.out.println(formaDeFalar);// acessa por herança\n System.out.println(todosSabem);\n }"
] | [
"0.63015646",
"0.62536216",
"0.6143971",
"0.6081923",
"0.6057495",
"0.6013095",
"0.5924376",
"0.5923307",
"0.5920978",
"0.5897343",
"0.58338505",
"0.5820366",
"0.58197284",
"0.5806279",
"0.5805983",
"0.58058375",
"0.5798128",
"0.5786362",
"0.57775134",
"0.5709968",
"0.5696047",
"0.56781924",
"0.5675001",
"0.5667656",
"0.56586474",
"0.5643928",
"0.56415474",
"0.5641446",
"0.56226873",
"0.56129897",
"0.5611257",
"0.56059957",
"0.5603355",
"0.5599958",
"0.5598903",
"0.55955714",
"0.5593125",
"0.5592051",
"0.5564312",
"0.5560403",
"0.5555173",
"0.5551841",
"0.55492496",
"0.5547106",
"0.5536481",
"0.5534101",
"0.5531851",
"0.55275667",
"0.5513872",
"0.5512108",
"0.5511866",
"0.55103964",
"0.5508159",
"0.5498907",
"0.5496691",
"0.54903287",
"0.5484793",
"0.5483816",
"0.54767376",
"0.5473437",
"0.5468076",
"0.5462503",
"0.5454034",
"0.54402965",
"0.54376644",
"0.5434823",
"0.54166573",
"0.5412988",
"0.5409045",
"0.5407552",
"0.5397008",
"0.5395048",
"0.53938067",
"0.5391923",
"0.53841525",
"0.5383798",
"0.53794056",
"0.5378528",
"0.53564376",
"0.5353341",
"0.53510326",
"0.5343777",
"0.5342215",
"0.53372735",
"0.53345156",
"0.5334438",
"0.53278315",
"0.5326576",
"0.5326547",
"0.53259283",
"0.5324485",
"0.5319339",
"0.5314586",
"0.5314415",
"0.53029567",
"0.5301805",
"0.5301723",
"0.52995694",
"0.5299512",
"0.5291682",
"0.52891546"
] | 0.0 | -1 |
usun konsole wybrana po id | @RequestMapping(value = "/console/{id}", method = RequestMethod.DELETE)
public ResponseEntity<Consoles> delete(@PathVariable Integer id) {
consolesService.deleteConsoles(id);
return new ResponseEntity<>(HttpStatus.OK);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String Show()\n\t{\n\t\treturn id;\n\t\t\n\t}",
"@Override\n public String toString() {\n return id;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn id;\n\t}",
"public String toString() {\n return id;\n }",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public String getId() { return id; }",
"@Override\n public String toString() {\n return id.toString();\n }",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"@Override\n public String toString()\n {\n return super.toString()+id;\n }",
"public void echoID() throws IOException {\r\n\t\t//TODO implement using JSON\r\n\t}",
"@Override\n public String toString() {\n return id.toString();\n }",
"public String getId(){\r\n\t\treturn id;\r\n\t}",
"public String getId(){\r\n\t\treturn id;\r\n\t}",
"public String id() {\r\n return id;\r\n }",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"public String id() {\n return this.id;\n }",
"public String id() {\n return this.id;\n }",
"public String id() {\n return this.id;\n }",
"public String id() {\n return this.id;\n }",
"public String id() {\n return this.id;\n }",
"public String id() {\n return this.id;\n }",
"public String id()\n {\n return id;\n }",
"public void setID(String id){\n this.id = id;\n }",
"public String getId() {\r\n \t\treturn id;\r\n \t}",
"java.lang.String getID();",
"public String getId() {\n return id;\r\n }",
"public String getId()\r\n {\r\n return id;\r\n }",
"public String id() {\n return id;\n }",
"public String id() {\n return id;\n }",
"public String getId(){\n\t\treturn id;\n\t}",
"public String getId()\n {\n return id;\n }",
"public String getId ()\n {\n return id;\n }",
"private int getId() {\r\n\t\treturn id;\r\n\t}",
"@Override\r\n public String getId() {\r\n return id;\r\n }",
"public void show() {\n\t\tSystem.out.println(getId());\n\t}",
"public String getId() {\r\n return id;\r\n }",
"public String getId() {\r\n return id;\r\n }",
"public String getId() {\r\n return id;\r\n }",
"public String getId() {\r\n return id;\r\n }",
"public String getId() {\r\n return id;\r\n }"
] | [
"0.71550524",
"0.70045894",
"0.68750906",
"0.6822447",
"0.67948097",
"0.67948097",
"0.67948097",
"0.67854166",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67459446",
"0.67398226",
"0.67253476",
"0.6723186",
"0.67174095",
"0.67174095",
"0.6713954",
"0.6695964",
"0.6695964",
"0.6695964",
"0.6695964",
"0.6695964",
"0.6695964",
"0.6695964",
"0.6695964",
"0.6695964",
"0.6695964",
"0.6695964",
"0.6695964",
"0.6695964",
"0.6695964",
"0.6695964",
"0.6695964",
"0.6695964",
"0.6695964",
"0.6695964",
"0.6679063",
"0.6679063",
"0.6679063",
"0.6679063",
"0.6679063",
"0.6679063",
"0.66768295",
"0.6659667",
"0.66534543",
"0.6648308",
"0.66444343",
"0.66173524",
"0.66106755",
"0.66106755",
"0.66044253",
"0.6593077",
"0.6583371",
"0.657941",
"0.65782267",
"0.6569356",
"0.6566361",
"0.6566361",
"0.6566361",
"0.6566361",
"0.6566361"
] | 0.0 | -1 |
Container of types info to determine the template for notification content List typeOfNotification = new ArrayList(); typeOfNotification.add("reply"); more to add to assist with upcoming services Container of template content | public void sendNotification(String type, int fromId, int commentId, int articleId) {
Map<String, String> content = new HashMap<String, String>();
content.put("reply", "{from} replied your comment for {article}, check it out!");
//more to add to assist with upcoming services
CommentAdder comment = CommentAdder.dao.findById(commentId);
int toId = comment.get("user_id"); //user_id of whom is getting this notification
UserAdder fromUserSheet = UserAdder.dao.findById(fromId);
String fromUser = fromUserSheet.get("username");
ContentAdder article = ContentAdder.dao.findById(articleId);
String articleTitle = article.get("title");
String articleUrl = article.get("en_title");
String notificationText = Integer.toString(commentId).length() +
":" + commentId + content.get(type).replace("{from}",fromUser)
.replace("{article}",articleTitle);
Date now = new Date();
DateFormat simpleFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
new NotificationAdder().set("title", type).set("text", notificationText).set("url",articleUrl).set("type", type)
.set("from_user_id",fromId).set("to_user_id",toId).set("create_time", simpleFormat.format(now)).save();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private List<String> tipoNotificaciones() {\n\t\tList<String> tipos = new LinkedList<String>();\n\t\ttipos.add(\"Estrenos\");\n\t\ttipos.add(\"Promociones\");\n\t\ttipos.add(\"Noticias\");\n\t\ttipos.add(\"Eventos\");\n\t\ttipos.add(\"Pre-Ventas\");\n\n\t\treturn tipos;\n\t}",
"public static List<VaadinNotification> get(Type type, WebDriver driver) {\n List<WebElement> notifications = driver.findElements(By\n .className(getClassName(type)));\n List<VaadinNotification> vaadinNotification = new ArrayList<VaadinNotification>();\n for (WebElement notification : notifications) {\n String notificationCaption = null;\n try {\n notificationCaption = notification\n .findElement(By.tagName(\"h1\")).getText();\n } catch (NoSuchElementException e) {\n // This happens if there is no caption\n }\n String notificationDescription = null;\n try {\n notificationDescription = notification.findElement(\n By.tagName(\"p\")).getText();\n } catch (NoSuchElementException e) {\n // This happens if there is no description\n }\n vaadinNotification.add(new VaadinNotification(notificationCaption,\n notificationDescription, notification));\n }\n return vaadinNotification;\n\n }",
"private Notifications createNotifications(String type, JsonNode node) {\n Notifications notifications = new Notifications();\n if (type.equals(\"shell\")) {\n if (node.isArray()) {\n for (JsonNode hook : node) {\n notifications.add(\n new Invoke(\n Invoke.WHEN.valueOf(hook.get(\"_on\").asText()),\n hook.get(\"cmd\").asText()));\n }\n } else {\n throw new CatalogException(\"Expected an array of hooks \" + node);\n }\n } else {\n throw new CatalogException(\"Unsupported notifications of type \" + type + \" - \" + node);\n }\n return notifications;\n }",
"public String getNotificationType() {\n\t\treturn notificationType;\n\t}",
"private Notification getNotificationByType(int notificationType){\r\n\t\tint totalNotifications = this.getChildCount();\r\n\t\tfor(int i=totalNotifications-1; i>=0; i--){\r\n\t\t\tNotification notification = ((NotificationView) this.getChildAt(i)).getNotification();\r\n\t\t\tif(notification.getNotificationType() == notificationType){\r\n\t\t\t\treturn notification;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public List<cn.com.ho.workflow.infrastructure.db.tables.pojos.TaskDefNotification> fetchByType(String... values) {\n return fetch(TaskDefNotification.TASK_DEF_NOTIFICATION.TYPE, values);\n }",
"public void setNotificationType(String notificationType) {\n\t\tthis.notificationType = notificationType;\n\t}",
"public Notifications(Integer postID, Integer requesterID, Integer providerID,\n String locationOfRequester, String type){\n //PostID, requesterID, providerID,locationOfRequester need to create variable?\n this.postID = postID;\n this.requesterID = requesterID;\n this.userId = providerID;\n\n this.type = type;\n this.setActiveStatus(true);\n //idk if we want to add this or not\n this.beginTime = \"N/A\";\n this.endTime = \"N/A\";\n this.category = null;\n this.tags = null;\n this.location = locationOfRequester;\n\n\n }",
"private void sendInfo() {\n Log.v(TAG, \"sendInfo() contentListSize \"+this.contentList.size()+\" interestListSize \"+this.interestList.size());\n\n D2DAddContentNotificationEvent addContentEvent = new D2DAddContentNotificationEvent(false);\n addContentEvent.contentList = this.contentList;\n this.sendEvent(addContentEvent);\n\n D2DAddInterestNotificationEvent addInterestEvent = new D2DAddInterestNotificationEvent(false);\n addInterestEvent.interestList = this.interestList;\n this.sendEvent(addInterestEvent);\n }",
"@Override\r\n\tpublic void sendNotification(String notificationType) {\n\t\t\r\n\t}",
"public interface NotificationMessageContentService {\n /**\n * Parses a Notification request message into business objects. Performs syntactic and semantic validation. \n * This method takes an InputStream.\n * @param stream request message stream\n * @return Notification business object\n * @throws SAXException\n * @throws ParserConfigurationException\n * @throws IOException\n * @throws XmlException\n */\n public NotificationBo parseNotificationRequestMessage(InputStream stream) throws IOException, XmlException;\n \n /**\n * Parses a Notification request message into business objects. Performs syntactic and semantic validation. \n * This method takes a String of XML.\n * @param notificationMessageAsXml\n * @return\n * @throws IOException\n * @throws XmlException\n */\n public NotificationBo parseNotificationRequestMessage(String notificationMessageAsXml) throws IOException, XmlException;\n \n /**\n * Generates a Notification response message\n * @param response\n * @return String XML representation of a Notification response object\n */\n public String generateNotificationResponseMessage(NotificationResponseBo response);\n\n /**\n * This method is responsible for marshalling out the passed in Notification object in and XML representation. \n * @param notification\n * @return String of XML.\n */\n public String generateNotificationMessage(NotificationBo notification);\n \n /**\n * This method is responsible for marshalling out the passed in Notification object in and XML representation, with \n * the addition of adding the specific recipient to the recipients list and removing the others. \n * @param notification\n * @param userRecipientId\n * @return String of XML.\n */\n public String generateNotificationMessage(NotificationBo notification, String userRecipientId);\n \n /**\n * This method parses out the serialized XML version of Notification BO and populates a Notification BO with it.\n * @param xmlAsBytes\n * @return Notification\n * @throws Exception\n */\n public NotificationBo parseSerializedNotificationXml(byte[] xmlAsBytes) throws Exception;\n}",
"private List<Notification> getNotificationsGeneric(Object parameter, String sql) {\n\t\tPreparedStatement stmt = null;\n\t\tResultSet rs = null;\n\t\tConnection connection = getConnection();\n\t\tVector notifications = new Vector();\n\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tstmt = connection.prepareStatement(sql);\n\t\t\t\tBrokerFactory.getLoggingBroker().logDebug(\"sql=\" + (sql));\n\t\t\t\tif (parameter instanceof Timestamp) {\n\t\t\t\t\tstmt.setTimestamp(1, (Timestamp) parameter);\n\t\t\t\t} else {\n\t\t\t\t\tstmt.setString(1, (String) parameter);\n\t\t\t\t}\n\t\t\t\trs = stmt.executeQuery();\n\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tString uuid = rs.getString(1);\n\t\t\t\t\tString senderClassname = rs.getString(2);\n\t\t\t\t\tString memberUuid = rs.getString(3);\n\t\t\t\t\tString confirmedBy = rs.getString(4);\n\t\t\t\t\tString subject = rs.getString(5);\n\t\t\t\t\tboolean requiresConfirmation = rs.getBoolean(6);\n\t\t\t\t\tString status = rs.getString(7);\n\t\t\t\t\tif (status == null) {\n\t\t\t\t\t\tstatus = \"\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\tstatus = status.toLowerCase();\n\t\t\t\t\t}\n\t\t\t\t\tTimestamp time = rs.getTimestamp(8);\n\t\t\t\t\tString owner = rs.getString(9);\n\t\t\t\t\tString parent = rs.getString(10);\n\t\t\t\t\tString[] senderVariables = new String[10];\n\t\t\t\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t\t\t\tsenderVariables[i] = rs.getString(11 + i);\n\t\t\t\t\t}\n\n\t\t\t\t\tMember member = BrokerFactory.getUserMgmtBroker()\n\t\t\t\t\t\t\t.getUserByUuid(memberUuid);\n\t\t\t\t\tif (member == null)\n\t\t\t\t\t\tmember = BrokerFactory.getGroupMgmtBroker()\n\t\t\t\t\t\t\t\t.getGroupByUuid(memberUuid);\n\n\t\t\t\t\tNotification notification = new Notification(parent,\n\t\t\t\t\t\t\tmember, null, subject, new NotificationMessage[0]);\n\t\t\t\t\tnotification.setAutocommit(false);\n\t\t\t\t\tnotification.setUuid(uuid);\n\t\t\t\t\tnotification.setTime(new java.util.Date(time.getTime()));\n\t\t\t\t\tnotification.setParentUuid(parent);\n\t\t\t\t\tnotification.setOwner(owner);\n\n\t\t\t\t\tif (status == null) {\n\t\t\t\t\t\tnotification.setStatus(Notification.NORMAL);\n\t\t\t\t\t} else if (status.equals(\"expired\")) {\n\t\t\t\t\t\tnotification.setStatus(Notification.EXPIRED);\n\t\t\t\t\t} else if (status.equals(\"confirmed\")) {\n\t\t\t\t\t\tnotification.setStatus(Notification.CONFIRMED);\n\t\t\t\t\t} else if (status.equals(\"pending\")) {\n\t\t\t\t\t\tnotification.setStatus(Notification.PENDING);\n\t\t\t\t\t} else if (status.equals(\"onhold\")) {\n\t\t\t\t\t\tnotification.setStatus(Notification.ONHOLD);\n\t\t\t\t\t} else if (confirmedBy != null) {\n\t\t\t\t\t\tnotification.setStatus(Notification.CONFIRMED);\n\t\t\t\t\t} else if (requiresConfirmation) {\n\t\t\t\t\t\tnotification.setStatus(Notification.PENDING);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnotification.setStatus(Notification.NORMAL);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Load the sender\n\t\t\t\t\ttry {\n\t\t\t\t\t\tNotificationSender sender = (NotificationSender) Class\n\t\t\t\t\t\t\t\t.forName(senderClassname).newInstance();\n\t\t\t\t\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t\t\t\t\tsender.addVariable(i + 1, senderVariables[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnotification.setSender(sender);\n\t\t\t\t\t} catch (InstantiationException e1) {\n\t\t\t\t\t\tBrokerFactory.getLoggingBroker().logError(e1);\n\t\t\t\t\t} catch (IllegalAccessException e1) {\n\t\t\t\t\t\tBrokerFactory.getLoggingBroker().logError(e1);\n\t\t\t\t\t} catch (ClassNotFoundException e1) {\n\t\t\t\t\t\tBrokerFactory.getLoggingBroker().logError(e1);\n\t\t\t\t\t}\n\n\t\t\t\t\tnotifications.addElement(notification);\n\n\t\t\t\t\t// Load the options\n\t\t\t\t\tPreparedStatement stmt2 = null;\n\t\t\t\t\tResultSet rs2 = null;\n\t\t\t\t\tString sql2 = \"SELECT optionname FROM notificationoptions WHERE notification=?\";\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tstmt2 = connection.prepareStatement(sql2);\n\t\t\t\t\t\tBrokerFactory.getLoggingBroker().logDebug(\n\t\t\t\t\t\t\t\t\"sql=\" + (sql2));\n\t\t\t\t\t\tstmt2.setString(1, uuid);\n\t\t\t\t\t\trs2 = stmt2.executeQuery();\n\n\t\t\t\t\t\twhile (rs2.next()) {\n\t\t\t\t\t\t\tnotification.addOption(rs.getString(1));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (SQLException e2) {\n\t\t\t\t\t\tBrokerFactory.getLoggingBroker().logError(e2);\n\t\t\t\t\t} finally {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (stmt2 != null)\n\t\t\t\t\t\t\t\tstmt2.close();\n\t\t\t\t\t\t\tif (rs2 != null)\n\t\t\t\t\t\t\t\trs2.close();\n\t\t\t\t\t\t} catch (SQLException e3) {\n\t\t\t\t\t\t\tBrokerFactory.getLoggingBroker().logError(e3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Load the messages\n\t\t\t\t\tList<NotificationMessage> messages = getNotificationMessages(notification);\n\t\t\t\t\tfor (NotificationMessage message: messages) {\n\t\t\t\t\t\tnotification.addMessage(message, false);\n\t\t\t\t\t}\n\t\t\t\t\t// Load the providers\n\t\t\t\t\tsql2 = \"SELECT uuid,classname,status FROM notificationprovider WHERE notification=?\";\n\t\t\t\t\ttry {\n\t\t\t\t\t\tstmt2 = connection.prepareStatement(sql2);\n\t\t\t\t\t\tBrokerFactory.getLoggingBroker().logDebug(\n\t\t\t\t\t\t\t\t\"sql=\" + (sql2));\n\t\t\t\t\t\tstmt2.setString(1, uuid);\n\t\t\t\t\t\trs2 = stmt2.executeQuery();\n\n\t\t\t\t\t\twhile (rs2.next()) {\n\t\t\t\t\t\t\tString providerUuid = rs2.getString(1);\n\t\t\t\t\t\t\tString classname = rs2.getString(2);\n\t\t\t\t\t\t\tString statusOfSend = rs2.getString(3);\n\t\t\t\t\t\t\tPreparedStatement stmt3 = null;\n\t\t\t\t\t\t\tResultSet rs3 = null;\n\t\t\t\t\t\t\tString sql3 = \"SELECT name,value FROM notificationproviderinfo WHERE provider=?\";\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tstmt3 = connection.prepareStatement(sql3);\n\t\t\t\t\t\t\t\tBrokerFactory.getLoggingBroker().logDebug(\n\t\t\t\t\t\t\t\t\t\t\"sql=\" + (sql3));\n\t\t\t\t\t\t\t\tstmt3.setString(1, providerUuid);\n\t\t\t\t\t\t\t\trs3 = stmt3.executeQuery();\n\n\t\t\t\t\t\t\t\tHashtable params = new Hashtable();\n\t\t\t\t\t\t\t\twhile (rs3.next()) {\n\t\t\t\t\t\t\t\t\tString name = rs3.getString(1);\n\t\t\t\t\t\t\t\t\tif (name == null)\n\t\t\t\t\t\t\t\t\t\tname = \"\";\n\t\t\t\t\t\t\t\t\tString value = rs3.getString(2);\n\t\t\t\t\t\t\t\t\tif (value == null)\n\t\t\t\t\t\t\t\t\t\tvalue = \"\";\n\t\t\t\t\t\t\t\t\tparams.put(name, value);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tNotificationProvider provider = (NotificationProvider) (Class\n\t\t\t\t\t\t\t\t\t\t.forName(classname).newInstance());\n\t\t\t\t\t\t\t\tprovider.init(params);\n\t\t\t\t\t\t\t\tprovider.setStatusOfSend(notification,\n\t\t\t\t\t\t\t\t\t\tstatusOfSend);\n\t\t\t\t\t\t\t\tnotification.addNotificationProvider(provider);\n\t\t\t\t\t\t\t} catch (SQLException e3) {\n\t\t\t\t\t\t\t\tBrokerFactory.getLoggingBroker().logError(e3);\n\t\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tif (stmt3 != null)\n\t\t\t\t\t\t\t\t\t\tstmt3.close();\n\t\t\t\t\t\t\t\t\tif (rs3 != null)\n\t\t\t\t\t\t\t\t\t\trs3.close();\n\t\t\t\t\t\t\t\t} catch (SQLException e3) {\n\t\t\t\t\t\t\t\t\tBrokerFactory.getLoggingBroker().logError(\n\t\t\t\t\t\t\t\t\t\t\te3);\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} catch (SQLException e2) {\n\t\t\t\t\t\tBrokerFactory.getLoggingBroker().logError(e2);\n\t\t\t\t\t} catch (NotificationException e2) {\n\t\t\t\t\t\tBrokerFactory.getLoggingBroker().logError(e2);\n\t\t\t\t\t} catch (ClassNotFoundException e2) {\n\t\t\t\t\t\tBrokerFactory.getLoggingBroker().logError(e2);\n\t\t\t\t\t} catch (InstantiationException e2) {\n\t\t\t\t\t\tBrokerFactory.getLoggingBroker().logError(e2);\n\t\t\t\t\t} catch (IllegalAccessException e2) {\n\t\t\t\t\t\tBrokerFactory.getLoggingBroker().logError(e2);\n\t\t\t\t\t} finally {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (stmt2 != null)\n\t\t\t\t\t\t\t\tstmt2.close();\n\t\t\t\t\t\t\tif (rs2 != null)\n\t\t\t\t\t\t\t\trs2.close();\n\t\t\t\t\t\t} catch (SQLException e3) {\n\t\t\t\t\t\t\tBrokerFactory.getLoggingBroker().logError(e3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tnotification.setAutocommit(true);\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tBrokerFactory.getLoggingBroker().logError(e);\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (stmt != null)\n\t\t\t\t\t\tstmt.close();\n\t\t\t\t\tif (rs != null)\n\t\t\t\t\t\trs.close();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tBrokerFactory.getLoggingBroker().logError(e1);\n\t\t\t\t}\n\t\t\t}\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (connection != null)\n\t\t\t\t\tconnection.close();\n\t\t\t} catch (SQLException e1) {\n\t\t\t\tBrokerFactory.getLoggingBroker().logError(e1);\n\t\t\t}\n\n\t\t}\n\t\treturn notifications;\n\t}",
"public void buildNotificationSingle(){\n if(arraylisted.size() ==1){\n Product contact = arraylisted.get(0);\n\n String userDept = arraylisted.get(0).getDept();\n String userName = arraylisted.get(0).getName();\n String userLevel = arraylisted.get(0).getLevel();\n String userID = arraylisted.get(0).getuserID();\n String str = notifyliste.get(0).getEmail();\n if(str.length() >=200){\n int k = str.length() / 2;\n str = str.substring(0,k) + \" ...\";\n }\n String prep = userName + System.getProperty(\"line.separator\") + userLevel + \" Level - \" + userDept;\n byte[] userPics = arraylisted.get(0).getBLOB();\n\n //build the actviity intents\n Intent notificationIntent = new Intent(getApplicationContext(),viewNamsn.class);\n\n notificationIntent.putExtra(\"userName\", userName);\n notificationIntent.putExtra(\"userLevel\", userLevel);\n notificationIntent.putExtra(\"userDept\", userDept);\n notificationIntent.putExtra(\"userID\", userID);\n notificationIntent.putExtra(\"userPics\", userPics);\n\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY | Intent.FLAG_ACTIVITY_NEW_TASK);\n PendingIntent pend = PendingIntent.getActivity(getApplicationContext(),0,notificationIntent,PendingIntent.FLAG_UPDATE_CURRENT);\n\n //mBuilder = buildNotification(userPics,prep);\n //design the new custom view\n RemoteViews notificationView = new RemoteViews(\n getApplicationContext().getPackageName(),\n R.layout.activity_custom_notification\n );\n Bitmap bitmap = BitmapFactory.decodeByteArray(userPics,0,userPics.length);\n // notificationView.setImageViewResource(R.id.imagenotileft,R.mipmap.ic_launcher);\n notificationView.setImageViewBitmap(R.id.imagenotileft,bitmap);\n // Locate and set the Text into customnotificationtext.xml TextViews\n notificationView.setTextViewText(R.id.title, (getString(R.string.app_name)));\n notificationView.setTextViewText(R.id.text, prep);\n // notificationView.setTextViewText(R.id.qoute, str);\n\n //go and build the notification\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(getApplicationContext());\n mBuilder.setContentIntent(pend);\n mBuilder.setContentTitle(getString(R.string.app_name));\n mBuilder.setContentText(userName + \" Recently Joined ATBU 37 NAMSSN ELITE E-YEAR BOOK !!!\");\n mBuilder.setTicker(userName + \" Recently Joined ATBU 37 NAMSSN ELITE E-YEAR BOOK !!!\");\n mBuilder.setAutoCancel(true);\n mBuilder.setContent(notificationView);\n mBuilder.setSmallIcon(R.mipmap.ic_app);\n mBuilder.setPriority(2);\n Uri alarmsound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n mBuilder.setSound(alarmsound);\n mBuilder.setLights(Color.RED, 3000, 3000);\n mBuilder.setVibrate(new long[]{1000, 1000, 1000, 1000, 1000 });\n //display the notification\n\n NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n notificationManager.notify(0123,mBuilder.build());\n }\n // arraylisted.clear();\n }",
"private NotificationTemplate buildNotificationTemplateFromEmailTemplate(EmailTemplate emailTemplate) {\n\n NotificationTemplate notificationTemplate = new NotificationTemplate();\n notificationTemplate.setNotificationChannel(NotificationChannels.EMAIL_CHANNEL.getChannelType());\n notificationTemplate.setSubject(emailTemplate.getSubject());\n notificationTemplate.setBody(emailTemplate.getBody());\n notificationTemplate.setFooter(emailTemplate.getFooter());\n notificationTemplate.setType(emailTemplate.getTemplateType());\n notificationTemplate.setDisplayName(emailTemplate.getTemplateDisplayName());\n notificationTemplate.setLocale(emailTemplate.getLocale());\n notificationTemplate.setContentType(emailTemplate.getEmailContentType());\n return notificationTemplate;\n }",
"public interface GetNotification {\n public void setNotificationId(String strGCMid);\n\n\n public void setProviderDetails(String strGCMid, String strName, String strImage, String straddress,String expertiseid,String strReferalcdoe);\n\n public void getProviderId(String strProviderId, String strType);\n\n public void getServicePrice(String n_price);\n public void getServiceDuration(String n_duration);\n\n public ArrayList<String> getServicName(TreeMap<Integer, String> str_serviceName);\n\n\n public void setProviderdet(String strGCMid, String strName, String strImage, String straddress,String strExpertise,String strReferalcode);\n\n public void NotifyFilter(String strFilterVal);\n\n public void setProvideraddress(String strlatitude, String strlongitude, String straddress);\n}",
"private void generateNotification(int type , Geofence current) {\n\t\t\n\t\tLog.i(\"LOC TRAN \" , \" \" + type + \" \" + current.getRequestId());\n }",
"public Notifications(Integer postID, Integer receiversID,\n Integer providerID, String type){\n //PostID, requesterID, providerID need to create variable?\n this.type = type;\n this.postID = postID;\n this.requesterID = receiversID;\n this.providerID = providerID;\n this.setProvider(providerID);\n }",
"private void validateNotificationTemplate(NotificationTemplate notificationTemplate)\n throws NotificationTemplateManagerClientException {\n\n if (notificationTemplate == null) {\n String errorCode =\n I18nEmailUtil.prependOperationScenarioToErrorCode(\n I18nMgtConstants.ErrorMessages.ERROR_CODE_NULL_TEMPLATE_OBJECT.getCode(),\n I18nMgtConstants.ErrorScenarios.EMAIL_TEMPLATE_MANAGER);\n throw new NotificationTemplateManagerClientException(errorCode,\n I18nMgtConstants.ErrorMessages.ERROR_CODE_NULL_TEMPLATE_OBJECT.getMessage());\n }\n String displayName = notificationTemplate.getDisplayName();\n validateDisplayNameOfTemplateType(displayName);\n String normalizedDisplayName = I18nEmailUtil.getNormalizedName(displayName);\n if (!StringUtils.equalsIgnoreCase(normalizedDisplayName, notificationTemplate.getType())) {\n if (log.isDebugEnabled()) {\n String message = String.format(\"In the template normalizedDisplayName : %s is not equal to the \" +\n \"template type : %s. Therefore template type is sent to : %s\", normalizedDisplayName,\n notificationTemplate.getType(), normalizedDisplayName);\n log.debug(message);\n }\n notificationTemplate.setType(normalizedDisplayName);\n }\n validateTemplateLocale(notificationTemplate.getLocale());\n String body = notificationTemplate.getBody();\n String subject = notificationTemplate.getSubject();\n String footer = notificationTemplate.getFooter();\n if (StringUtils.isBlank(notificationTemplate.getNotificationChannel())) {\n String errorCode =\n I18nEmailUtil.prependOperationScenarioToErrorCode(\n I18nMgtConstants.ErrorMessages.ERROR_CODE_EMPTY_TEMPLATE_CHANNEL.getCode(),\n I18nMgtConstants.ErrorScenarios.EMAIL_TEMPLATE_MANAGER);\n throw new NotificationTemplateManagerClientException(errorCode,\n I18nMgtConstants.ErrorMessages.ERROR_CODE_EMPTY_TEMPLATE_CHANNEL.getMessage());\n }\n if (NotificationChannels.SMS_CHANNEL.getChannelType().equals(notificationTemplate.getNotificationChannel())) {\n if (StringUtils.isBlank(body)) {\n String errorCode =\n I18nEmailUtil.prependOperationScenarioToErrorCode(\n I18nMgtConstants.ErrorMessages.ERROR_CODE_INVALID_SMS_TEMPLATE.getCode(),\n I18nMgtConstants.ErrorScenarios.EMAIL_TEMPLATE_MANAGER);\n throw new NotificationTemplateManagerClientException(errorCode,\n I18nMgtConstants.ErrorMessages.ERROR_CODE_INVALID_SMS_TEMPLATE.getMessage());\n }\n if (StringUtils.isNotBlank(subject) || StringUtils.isNotBlank(footer)) {\n String errorCode =\n I18nEmailUtil.prependOperationScenarioToErrorCode(\n I18nMgtConstants.ErrorMessages.ERROR_CODE_INVALID_SMS_TEMPLATE_CONTENT.getCode(),\n I18nMgtConstants.ErrorScenarios.EMAIL_TEMPLATE_MANAGER);\n throw new NotificationTemplateManagerClientException(errorCode,\n I18nMgtConstants.ErrorMessages.ERROR_CODE_INVALID_SMS_TEMPLATE_CONTENT.getMessage());\n }\n } else {\n if (StringUtils.isBlank(subject) || StringUtils.isBlank(body) || StringUtils.isBlank(footer)) {\n String errorCode =\n I18nEmailUtil.prependOperationScenarioToErrorCode(\n I18nMgtConstants.ErrorMessages.ERROR_CODE_INVALID_EMAIL_TEMPLATE.getCode(),\n I18nMgtConstants.ErrorScenarios.EMAIL_TEMPLATE_MANAGER);\n throw new NotificationTemplateManagerClientException(errorCode,\n I18nMgtConstants.ErrorMessages.ERROR_CODE_INVALID_EMAIL_TEMPLATE.getMessage());\n }\n }\n }",
"public abstract void sendInternal(NotificationType type, List<String> messages) throws NotificationException;",
"public interface IGcmNotification {\n\n\tint getId();\n\n\tvoid onGcmRecieve(Context context);\n\n\t/**\n\t * Enum mapping string name of notification to end class for instantiation\n\t */\n\tenum NotificationName {\n\t\tDELETE_NOTIF(\"delete_not\", DeleteNotification.class),\n\t\tURI(\"uri\", UriNotification.class),\n\t\tDEVICE_ADDED(\"sensor_add\", DeviceAddedNotification.class),\n\t\tDEVICE_LOW_BATTERY(\"sensor_bat\", DeviceLowBatteryNotification.class),\n\t\tDEVICE_LOW_SIGNAL(\"sensor_sig\", DeviceLowSignalNotification.class),\n\t\tGATE_ADDED(\"adapter_add\", GateAddedNotification.class),\n\t\tGATE_OFFLINE(\"adapter_off\", GateOfflineNotification.class);\n\n\t\tprivate final String mName;\n\t\tprivate final Class<? extends BaseNotification> mClass;\n\n\t\tNotificationName(String name, Class<? extends BaseNotification> baseClass) {\n\t\t\tmName = name;\n\t\t\tmClass = baseClass;\n\t\t}\n\n\t\tpublic static NotificationName fromValue(String value) {\n\t\t\tfor (NotificationName item : values()) {\n\t\t\t\tif (value.equalsIgnoreCase(item.getName()))\n\t\t\t\t\treturn item;\n\t\t\t}\n\t\t\tthrow new IllegalArgumentException(\"Invalid State value\");\n\t\t}\n\n\t\tpublic String getName() {\n\t\t\treturn mName;\n\t\t}\n\n\t\tpublic Class<? extends BaseNotification> getBaseClass() {\n\t\t\treturn mClass;\n\t\t}\n\t}\n\n\tenum NotificationType {\n\t\tINFO(\"info\", 300),\n\t\tADVERT(\"advert\", 200),\n\t\tALERT(\"alert\", 400),\n\t\tCONTROL(\"control\", 100);\n\n\t\tprivate final String mValue;\n\t\tprivate final int mLevel;\n\n\t\tNotificationType(String value, int level) {\n\t\t\tmValue = value;\n\t\t\tmLevel = level;\n\t\t}\n\n\t\tpublic static NotificationType fromValue(String value) throws IllegalArgumentException {\n\t\t\tfor (NotificationType item : values()) {\n\t\t\t\tif (value.equalsIgnoreCase(item.getName()))\n\t\t\t\t\treturn item;\n\t\t\t}\n\t\t\tthrow new IllegalArgumentException(\"Invalid State value\");\n\t\t}\n\n\t\tpublic static NotificationType fromValue(int value) throws IllegalArgumentException {\n\t\t\tfor (NotificationType item : values()) {\n\t\t\t\tif (value == item.getLevel())\n\t\t\t\t\treturn item;\n\t\t\t}\n\t\t\tthrow new IllegalArgumentException(\"Invalid State value\");\n\t\t}\n\n\t\tpublic String getName() {\n\t\t\treturn mValue;\n\t\t}\n\n\t\tpublic int getLevel() {\n\t\t\treturn mLevel;\n\t\t}\n\t}\n}",
"MessagesType createMessagesType();",
"public List<cn.com.ho.workflow.infrastructure.db.tables.pojos.TaskDefNotification> fetchByTemplateCode(String... values) {\n return fetch(TaskDefNotification.TASK_DEF_NOTIFICATION.TEMPLATE_CODE, values);\n }",
"private Notifications createNotifications(JsonNode node) {\n Notifications n = new Notifications();\n for (Iterator<Map.Entry<String, JsonNode>> it = node.fields(); it.hasNext(); ) {\n Map.Entry<String, JsonNode> entry = it.next();\n n.addAll(this.createNotifications(entry.getKey(), entry.getValue()));\n }\n return n;\n }",
"private void retrieveNotification() { =====================================================\n // Creating Notification Model\n // =====================================================\n\n// Bitmap patientAvatar1 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_18);\n// Bitmap patientAvatar2 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_19);\n// Bitmap patientAvatar3 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_20);\n//\n// Patient patient1 = new Patient(\"Garry\", \"Reese\", \"123AB456\", patientAvatar1);\n// Patient patient2 = new Patient(\"Lillian\", \"Wade\", \"987CD654\", patientAvatar2);\n// Patient patient3 = new Patient(\"Laura\", \"Freeman\", \"AV12G64\", patientAvatar3);\n//\n// Bitmap caregiverAvatar1 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_01);\n// Bitmap caregiverAvatar2 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_02);\n// Bitmap caregiverAvatar3 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_03);\n// Bitmap caregiverAvatar4 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_04);\n// Bitmap caregiverAvatar5 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_05);\n//\n// DateTime date1 = DateTime.now();\n// DateTime date2 = DateTime.now().minusDays(2).minusHours(2);\n// DateTime date3 = DateTime.now().minusDays(5).plusHours(1);\n// DateTime date4 = DateTime.now().minusDays(4).minusHours(2);\n// DateTime date5 = DateTime.now().minusDays(1).plusHours(1);\n// DateTime date6 = DateTime.now().minusDays(3).plusHours(5);\n//\n// String caregiverName1 = \"John Doe\";\n// String caregiverName2 = \"Jane Doe\";\n// String caregiverName3 = \"Tracy Lee\";\n// String caregiverName4 = \"Apple Tan\";\n// String caregiverName5 = \"Bethany Mandler\";\n//\n// String summary1 = \"Updated information of patient Garry Reese\";\n// String summary2 = \"Log new problem for patient Lilian Wade\";\n// String summary3 = \"Create new patient Laura Freeman\";\n// String summary4 = \"Recommended the game category memory to patient Garry Reese\";\n// String summary5 = \"Updated the milk allergy of patient Lillian Wade\";\n// String summary6 = \"Log new problem for patient Garry Reese\";\n//\n// Notification notification1 = new Notification(date1, caregiverName1, caregiverAvatar1, summary1, patient1, Notification.STATUS_NONE, Notification.TYPE_UPDATE_INFO_FIELD);\n// Notification notification2 = new Notification(date2, caregiverName2, caregiverAvatar2, summary2, patient2, Notification.STATUS_NONE, Notification.TYPE_NEW_INFO_OBJECT);\n// Notification notification3 = new Notification(date3, caregiverName3, caregiverAvatar3, summary3, patient3, Notification.STATUS_NONE, Notification.TYPE_NEW_PATIENT);\n// Notification notification4 = new Notification(date4, caregiverName4, caregiverAvatar4, summary4, patient1, Notification.STATUS_NONE, Notification.TYPE_GAME_RECOMMENDATION);\n// Notification notification5 = new Notification(date5, caregiverName5, caregiverAvatar5, summary5, patient2, Notification.STATUS_NONE, Notification.TYPE_UPDATE_INFO_OBJECT);\n// Notification notification6 = new Notification(date6, caregiverName3, caregiverAvatar3, summary6, patient1, Notification.STATUS_NONE, Notification.TYPE_NEW_INFO_OBJECT);\n//\n ArrayList<Notification> notificationList = new ArrayList<>();\n//// notificationList.add(notification1);\n//// notificationList.add(notification2);\n//// notificationList.add(notification3);\n//// notificationList.add(notification4);\n//// notificationList.add(notification5);\n//// notificationList.add(notification6);\n\n dbfile db = new dbfile();\n notificationList = db.prepareNotificationList(getApplicationContext());\n Log.v(\"WHY LIKE THAT\", String.valueOf(notificationList.size()));\n // =====================================================\n // Building the Notification Group based on the notification\n // =====================================================\n\n HashMap patientAndNotificationGroupMap = new HashMap();\n\n for(Notification notification:notificationList) {\n Patient currentPatient = notification.getAffectedPatient();\n String patientNric = currentPatient.getNric();\n\n if (patientAndNotificationGroupMap.containsKey(patientNric)) {\n NotificationGroup notifGroup = (NotificationGroup) patientAndNotificationGroupMap.get(patientNric);\n if(notification.getStatus() == Notification.STATUS_NONE) {\n notifGroup.getUnprocessedNotif().add(notification);\n } else {\n notifGroup.getProcessedNotif().add(notification);\n }\n } else {\n NotificationGroup newNotifGroup = new NotificationGroup();\n newNotifGroup.setAffectedPatient(currentPatient);\n if(notification.getStatus() == Notification.STATUS_NONE) {\n newNotifGroup.getUnprocessedNotif().add(notification);\n } else {\n newNotifGroup.getProcessedNotif().add(notification);\n }\n patientAndNotificationGroupMap.put(patientNric, newNotifGroup);\n }\n }\n\n ArrayList<NotificationGroup> notificationGroupList = new ArrayList<>();\n NotificationComparator comparator = new NotificationComparator();\n for (Object obj : patientAndNotificationGroupMap.values()) {\n NotificationGroup notificationGroup = (NotificationGroup) obj;\n\n // Set notification status\n UtilsUi.setNotificationGroupStatus(this, notificationGroup);\n\n // Sort the notifications by date\n Collections.sort(notificationGroup.getProcessedNotif(), comparator);\n Collections.sort(notificationGroup.getUnprocessedNotif(), comparator);\n\n // Set the summary\n UtilsUi.setNotificationGroupSummary(this, notificationGroup);\n\n notificationGroupList.add(notificationGroup);\n }\n\n DataHolder.setNotificationGroupList(notificationGroupList);\n }",
"public NotificationType[] getAllNotificationTypes() throws ResourceManagementException {\r\n return this.port.getAllNotificationTypes();\r\n }",
"@Override\n public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n\n switch (viewType){\n case NOTIF_TYPE_LIKEDPOST:\n View view_likepost = LayoutInflater.from(context).inflate(R.layout.item_notif_likepost, null);\n ViewHolder viewHolder_likepost = new ViewHolder(view_likepost);\n return viewHolder_likepost;\n case NOTIF_TYPE_FOLLOWMEMBER:\n View view_followmember = LayoutInflater.from(context).inflate(R.layout.item_notif_followmemver, null);\n ViewHolder viewHolder_followmember = new ViewHolder(view_followmember);\n return viewHolder_followmember;\n }\n return null;\n }",
"@SuppressWarnings({ \"finally\", \"unchecked\" })\n\t@Override \n\tpublic Response getNotifyTemplateList(NotifyTemplate notifyTemplate) {\n\t\tBaseResponse<NotifyTemplate> br = new BaseResponse<NotifyTemplate>();\n\t\ttry \n\t\t{\n\t\tList<NotifyTemplate> templateList; \n\t\tjdbcTemplate.setDataSource(dataSourceProvider.getDataSource(FiinfraConstants.BU_DEFAULT));\n\t\ttemplateList = jdbcTemplate.query(FiinfraConstants.SP_GET_NOTIFYTEMPLATE_LIST,new Object[] {notifyTemplate.getSearchText(),notifyTemplate.getBizunit()},new BeanPropertyRowMapper(NotifyTemplate.class));\n\t\tbr.setResponseListObject(templateList); \n\t\tresponse=FiinfraResponseBuilder.getSuccessResponse(br, null);\n\t\t}\n\t\tcatch (DataAccessException e) { \n\t\t\tresponse=FiinfraResponseBuilder.getErrorResponse(e.getMessage().toString());\n\t\t}\n\t\tfinally \n\t\t{\n\t\t\treturn response; \n\t\t} \n\t}",
"public void updateNotification(Notification notification, NotificationType notificationType) {\n switch (notificationType) {\n case WEATHER:\n em.merge((WeatherNotification) notification);\n break;\n case INVITE:\n em.merge((InviteNotification) notification);\n break;\n case RESPONSE:\n em.merge((ResponseNotification) notification);\n break;\n case CHANGED:\n em.merge((ChangedEventNotification) notification);\n break;\n case ADMIN:\n em.merge((AdminNotification) notification);\n break;\n }\n }",
"public Notifications(Integer postID, Integer requesterID, Integer providerID,\n Boolean accepted, String type){\n //PostID, requesterID, providerID,locationOfRequester need to create variable?\n status = accepted;\n this.type = type;\n this.requestID = Integer.toString(requesterID);\n this.setProvider(providerID);\n this.type = type;\n this.postID = postID;\n\n }",
"public Notifications fetchNotificationsImpl(String meid, int notificationType){\n\t\tNotifications list = null;\n\t\ttry{\n\t\t\tMappingManager mappingManager= new MappingManager(CassandraCluster.getKeyspaceSession(Constants.CASSANDRA_KEYSPACE, Constants.CASSANDRA_PORT, Constants.CASSANDRA_HOSTS));\n\t\t\tNotificationsAccessor notificationsAccessor = mappingManager.createAccessor(NotificationsAccessor.class);\n\t\t\tResult<Notifications> result = notificationsAccessor.fetchNotifications(meid, notificationType);\n\t\t\tif(result != null)\n\t\t\t\tlist = result.one();\n\t\t}catch(Exception e){\n\t\t\tlogger.error(\"Exception Occured in fetchNotifications(meid, notificationType) of NotificationsDao Class\", e);\n\t\t}\n\t\treturn list;\n\t}",
"public interface INotificationFactory {\n\n /**\n * Implements a query to get user's device list, that is, mobile device unique ID value.\n *\n * @param idUser the ID of user\n * @param type the ID of notification type\n * @return the set of String,devices list\n */\n @Deprecated\n Set<NotificationMessageContainer> getUserDevice(long idUser, int type, EnumOperationSystem os);\n\n /**\n * Implements a query to get a user's follower mobile device ID to \"push notification\"\n *\n * @param idUser the ID of user\n * @param idChannel the ID of channel, if channel is private we get only the channel memberships device list\n * @param isPrivately define should device list generated for private push notification\n * @param type the type of notification activity\n * @return the set of String of devices\n */\n Set<NotificationMessageContainer> getUserMultiDevice(long idUser, long idChannel, boolean isPrivately, int type, EnumOperationSystem os);\n\n /**\n * Implements a query to get a user's follower mobile device ID to \"push LIVE notification\"\n *\n * @param idUserFrom the ID of user\n * @param idChannel the ID of channel, if channel is private we get only the channel memberships device list\n * @param key key for redis store\n * @param isPrivately define should device list generated for private push notification\n */\n Long setLiveNotificationUsers(long idUserFrom, long idChannel, long key, boolean isPrivately);\n}",
"private GroupInvitationInfo buildNotificationInfo(\n Context context, Intent invitation) {\n Logger.v(TAG, \"buildNotificationInfo entry\");\n if (invitation == null) {\n Logger.d(TAG,\n \"buildNotificationInfo current invitation is null\");\n return null;\n }\n GroupChat chatSession = getGroupChatSession(invitation);\n if (chatSession == null) {\n Logger.d(TAG,\n \"buildNotificationInfo current chat session is null\");\n return null;\n }\n ArrayList<ChatMessage> messages = new ArrayList<ChatMessage>();\n messages.add((ChatMessage) invitation\n .getParcelableExtra(FIRST_MESSAGE));\n invitation.putParcelableArrayListExtra(MESSAGES, messages);\n StringBuffer notifyTitle = new StringBuffer();\n StringBuffer notifyInfo = new StringBuffer();\n // Notification information\n String sender = formatCallerId(invitation);\n List<String> participants = null;\n try {\n participants = new ArrayList<String>(\n chatSession.getAllParticipants());\n if (participants != null) {\n Logger.e(TAG,\n \"buildNotificationInfo getAllParticipants\"\n + participants.size());\n }\n } catch (Exception e) {\n Logger.e(TAG,\n \"buildNotificationInfo getInivtedParticipants fail\");\n e.printStackTrace();\n }\n if (participants == null) {\n Logger.i(TAG,\n \"buildNotificationInfo paticipants list is null\");\n return null;\n } else {\n int count = participants.size();\n if (count >= GROUP_PARTICIPANT_SIZE_TWO) {\n String notify = null;\n String contact = participants.get(0);\n if (Utils.isANumber(contact)) {\n contact = ContactsListManager.getInstance()\n .getDisplayNameByPhoneNumber(contact);\n }\n if (count >= GROUP_PARTICIPANT_SIZE_THREE) {\n notify = context\n .getString(\n R.string.notify_invitation_multi_participants,\n sender, contact, count - 1);\n } else {\n notify = context\n .getString(\n R.string.notify_invitation_two_participants,\n sender, contact);\n }\n notifyInfo.append(notify);\n } else {\n Logger.i(TAG,\n \"buildNotificationInfo paticipants list is invalid\");\n return null;\n }\n }\n invitation.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n invitation\n .putExtra(NOTIFY_INFORMATION, notifyInfo.toString());\n invitation.putExtra(FORCE_SCROLLTO_CHAT, true);\n GroupInvitationInfo info = new GroupInvitationInfo();\n info.context = context;\n info.sender = sender;\n info.icon = R.drawable.rcs_notify_chat_message;\n info.notifyInfo = notifyInfo.toString();\n info.notifyTitle = notifyTitle.toString();\n info.intent = invitation;\n addGroupInvite(chatSession, info);\n Logger.v(TAG, \"buildNotificationInfo exit\");\n return info;\n }",
"public interface PushType {\n int NEWS = 0;\n int NEWS_FLASH = 1;\n int COMMENT = 2; //评论\n int PRAISE = 3;\n int LOGIN_REWARD = 4;//登陆奖励\n int TIME_REWARD = 5;//时段奖励\n\n}",
"private void showNotificationCourse(Bundle data) {\n\n/* try {\n int unreadNotificationCount = Integer.valueOf(data.getString(\"total_unread_notification\"));\n NotificationCountEventBus.Event event = new NotificationCountEventBus.Event(unreadNotificationCount);\n NotificationCountEventBus.getInstance().post(event);\n } catch (Exception ignored) {\n\n }*/\n\n // check the type_push from data and navigate to activity\n Intent intent = navigateNotification(data);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(this, notificationId, intent,\n PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_ONE_SHOT);\n\n\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)\n .setSmallIcon(getNotificationIcon())\n .setContentTitle(data.getString(\"title\"))\n .setContentText(data.getString(\"body\"))\n .setAutoCancel(true)\n .setSound(defaultSoundUri)\n .setContentIntent(pendingIntent);\n\n NotificationManager notificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n notificationManager.notify(notificationId++, notificationBuilder.build());\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Notification [id=\" + id + \", dateOfAdded=\" + dateOfAdded + \", notificationType=\" + notificationType\n\t\t\t\t+ \", notificationText=\" + notificationText + \", isActive=\" + isActive + \"]\";\n\t}",
"@Override\n public void onNotificationPosted(StatusBarNotification sbn) {\n int notificationCode = matchNotificationCode(sbn);\n String pack = \"\";\n Bundle extras = null;\n String title = \"\";\n String text = \"\";\n String subtext = \"\";\n String key = \"\";\n try {\n pack = sbn.getPackageName();\n extras = sbn.getNotification().extras;\n //Prendo i dati della notifica\n title = extras.getString(\"android.title\");\n //Parso il titolo\n if (title.contains(\"(\") && title.contains(\")\") && (title.contains((\"messaggi\")) || title.contains(\"messaggio\"))) {\n int posA = title.lastIndexOf('(');\n title = title.substring(0, posA - 1);\n }\n text = extras.getCharSequence(\"android.text\").toString();\n subtext = \"\";\n } catch (Exception ex) {\n Log.d(\"WHATSAPP RIGA 100\", \"Conv fallita\");\n }\n if (matchNotificationCode(sbn) != InterceptedNotificationCode.OTHER_NOTIFICATIONS_CODE) {\n if ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)) {\n //EDIT\n /* Used for SendBroadcast */\n try {\n Parcelable b[] = (Parcelable[]) extras.get(Notification.EXTRA_MESSAGES);\n String content;\n if (b != null) {\n content = \"\";\n for (Parcelable tmp : b) {\n key = String.valueOf(tmp.hashCode());\n Bundle msgBundle = (Bundle) tmp;\n subtext = msgBundle.getString(\"text\");\n //content = content + msgBundle.getString(\"text\") + \"\\n\";\n }\n /*Toast.makeText(getApplicationContext(), content,\n Toast.LENGTH_LONG).show();*/\n }\n if (subtext.isEmpty()) {\n subtext = text;\n }\n } catch (Exception e) {\n Log.d(\"ERRORE RIGA 90 WHATSAPP\", \"Probabilmente la notifica è sballata\");\n }\n Notifica nuovaNotifica = new Notifica();\n\n if (subtext != null) {\n if (!text.contains(\"nuovi messaggi\") && !text.contains(\"WhatsApp Web is currently active\") && !text.contains(\"WhatsApp Web login\") && !title.toLowerCase().equals(\"whatsapp\")) {\n try {\n DateFormat df = new SimpleDateFormat(\"ddMMyyyyHHmmss\");\n String date = df.format(Calendar.getInstance().getTime());\n nuovaNotifica = new Notifica(key, pack, title, subtext, date);\n } catch (Exception ex) {\n Log.d(\"WHATSAPP RIGA 100\", \"Conversione fallita\");\n }\n try {\n //Parso il messaggio se viene da instagram\n if (matchNotificationCode(sbn) == InterceptedNotificationCode.INSTAGRAM_CODE) {\n //Elimino l'username nel messaggio\n if (subtext.contains(\":\"))\n subtext = subtext.substring(subtext.indexOf(':') + 2, subtext.length());\n else {\n if (subtext.contains(title)) {\n int ind = subtext.indexOf(title);\n subtext = subtext.replace(title, \"\");\n subtext = subtext.substring(1, subtext.length());\n }\n }\n }\n } catch (Exception ex) {\n Log.d(\"WHATSAPP RIGA 160\", \"Parser fallito\");\n }\n //Controllo che non abbia già ricevuto il messaggio\n String contatto = title + matchNotificationCode(sbn);\n int posizioneContatto = TrovaContattoInUltimiMessaggi(contatto);\n boolean daInviare = true;\n //Se ho trovato il contatto, controllo il valore se è diverso aggiungo e invio\n //Altrimenti modifico e non invio\n //Se non lo trovo lo registro e invio\n if (posizioneContatto != -1) {\n String strV = UltimiMessaggi.get(posizioneContatto).UltimoMessaggio;\n if (strV.equals(subtext)) {\n daInviare = false;\n } else {\n SettaUltimoMessaggio(posizioneContatto, subtext);\n }\n } else {\n //Aggiungo il contatto e il messaggio nella lista\n UltimiMessaggi.add(new ContattoAC(contatto, subtext));\n }\n //Invio la notifica alla mainActivity\n if (daInviare) {\n Intent intent = new Intent(\"ricevitoreNotifiche\");\n try {\n /*//LOG\n Log.d(\"Notifica KEY\", key);\n Log.d(\"Contatto\", title);\n Log.d(\"Messaggio\", subtext);*/\n intent.putExtra(\"ID\", nuovaNotifica.getID());\n intent.putExtra(\"Applicazione\", nuovaNotifica.getApplicazione());\n intent.putExtra(\"Titolo\", nuovaNotifica.getTitolo());\n intent.putExtra(\"Testo\", nuovaNotifica.getTesto());\n intent.putExtra(\"DateTime\", nuovaNotifica.getDateTime());\n sendBroadcast(intent);\n } catch (Exception ex) {\n Log.d(\"ERROR RIGA 103 WHATSAPP\", \"Non riesco a inviare in broadcast\");\n }\n }\n }\n /* End Used for Toast */\n }\n }\n }\n\n }",
"public Notifications(String postName, Set<String> tags,\n Set<String> category, String timeStart, String timeEnd, String type, String userId){\n name = postName;\n this.tags = tags;\n this.category = category;\n this.beginTime= timeStart;\n this.endTime= timeEnd;\n this.type = type;\n this.userID = userId;\n //idk if we want to add this or not\n this.requestID = \"N/A\";\n }",
"public static String getNotificaciones() {\n\t\treturn getServer()+\"wsagenda/v1/notificaciones\";//\"http://10.0.2.2/wsrest/v1/agenda\";//\"http://10.0.2.2/prueba/ahorro/obtener_gastos.php\";//\"http://10.0.2.2/wsrest/v1/agenda\";\n\t}",
"public static void createNotification(Context context, Reminder reminder) {\n Intent viewIntent = new Intent(context, MainScreen.class);\n viewIntent.putExtra(\"NOTIFICATION_ID\", reminder.getId());\n viewIntent.putExtra(\"NOTIFICATION_DISMISS\", true);\n PendingIntent pending = PendingIntent.getActivity(context, reminder.getId(), viewIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n /* // Create intent for notification snooze click behaviour\n Intent snoozeIntent = new Intent(context, SnoozeActionReceiver.class);\n snoozeIntent.putExtra(\"NOTIFICATION_ID\", reminder.getId());\n PendingIntent pendingSnooze = PendingIntent.getBroadcast(context, reminder.getId(), snoozeIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n*/\n int imageResId = context.getResources().getIdentifier(reminder.getIcon(), \"drawable\", context.getPackageName());\n\n\n /*NotificationCompat.Builder builder = new NotificationCompat.Builder(context, CHANNEL_ID)\n .setSmallIcon(R.drawable.notification_icon)\n .setContentTitle(textTitle)\n .setContentText(textContent)\n .setPriority(NotificationCompat.PRIORITY_DEFAULT);\n\n */\n NotificationCompat.Builder builder = new NotificationCompat.Builder(context)\n .setSmallIcon(imageResId)\n .setColor(Color.parseColor(reminder.getColour()))\n .setStyle(new NotificationCompat.BigTextStyle().bigText(reminder.getContent()))\n .setContentTitle(reminder.getTitle())\n .setContentText(reminder.getContent())\n .setTicker(reminder.getTitle())\n .setContentIntent(pending);\n\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);\n\n /*if (sharedPreferences.getBoolean(\"checkBoxNagging\", false)) {\n Intent swipeIntent = new Intent(context, DismissReceiver.class);\n swipeIntent.putExtra(\"NOTIFICATION_ID\", reminder.getId());\n PendingIntent pendingDismiss = PendingIntent.getBroadcast(context, reminder.getId(), swipeIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n builder.setDeleteIntent(pendingDismiss);\n\n Calendar calendar = Calendar.getInstance();\n calendar.add(Calendar.MINUTE, sharedPreferences.getInt(\"nagMinutes\", context.getResources().getInteger(R.integer.default_nag_minutes)));\n calendar.add(Calendar.SECOND, sharedPreferences.getInt(\"nagSeconds\", context.getResources().getInteger(R.integer.default_nag_seconds)));\n Intent alarmIntent = new Intent(context, NagReceiver.class);\n AlarmUtil.setAlarm(context, alarmIntent, reminder.getId(), calendar);\n }*/\n\n String soundUri = sharedPreferences.getString(\"NotificationSound\", \"content://settings/system/notification_sound\");\n if (soundUri.length() != 0) {\n builder.setSound(Uri.parse(soundUri));\n }\n if (sharedPreferences.getBoolean(\"checkBoxLED\", true)) {\n builder.setLights(Color.BLUE, 700, 1500);\n }\n if (sharedPreferences.getBoolean(\"checkBoxOngoing\", false)) {\n builder.setOngoing(true);\n }\n if (sharedPreferences.getBoolean(\"checkBoxVibrate\", true)) {\n long[] pattern = {0, 300, 0};\n builder.setVibrate(pattern);\n }\n /*if (sharedPreferences.getBoolean(\"checkBoxMarkAsDone\", false)) {\n Intent intent = new Intent(context, DismissReceiver.class);\n intent.putExtra(\"NOTIFICATION_ID\", reminder.getId());\n PendingIntent pendingIntent = PendingIntent.getBroadcast(context, reminder.getId(), intent, PendingIntent.FLAG_UPDATE_CURRENT);\n builder.addAction(R.drawable.ic_done_white_24dp, context.getString(R.string.mark_as_done), pendingIntent);\n }\n if (sharedPreferences.getBoolean(\"checkBoxSnooze\", false)) {\n builder.addAction(R.drawable.ic_snooze_white_24dp, context.getString(R.string.snooze), pendingSnooze);\n }*/\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n builder.setPriority(Notification.PRIORITY_HIGH);\n }\n\n NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(reminder.getId(), builder.build());\n }",
"@Override\n public void displayDetailsActivity(CommonPersonObjectClient client, String notificationId, String notificationType) {\n }",
"protected MessageInfo buildMessageInfo(NotificationContext ctx) {\n AbstractTemplateBuilder templateBuilder = getTemplateBuilder();\n if (templateBuilder == null) {\n templateBuilder = getTemplateBuilder(ctx);\n }\n MessageInfo massage = templateBuilder.buildMessage(ctx);\n assertNotNull(massage);\n return massage;\n }",
"private Collection<InfoMarker> getProviderMarkerDescriptions( List<Form> listForm )\n {\n Collection<InfoMarker> collectionNotifyMarkers = new ArrayList<>( );\n List<Question> questionList = new ArrayList<>( );\n \n for(Form form: listForm) {\n \t\n \tquestionList.addAll( QuestionHome.getListQuestionByIdForm( form.getId( ) ));\n }\n\n for ( Question formQuestion : questionList )\n {\n \tif( collectionNotifyMarkers.stream().noneMatch( p -> p.getMarker( ).equals(formQuestion.getCode( )))) {\n \t\t\n \t\tInfoMarker notifyMarker = new InfoMarker( formQuestion.getCode( ));\n \t\tnotifyMarker.setDescription( formQuestion.getColumnTitle( ) );\n \t\tcollectionNotifyMarkers.add( notifyMarker );\n \t}\n }\n InfoMarker notifyMarkerURl = new InfoMarker( Constants.MARK_URL_ADMIN_RESPONSE );\n notifyMarkerURl.setDescription( I18nService.getLocalizedString( Constants.MESSAGE_DESCRIPTION, I18nService.getDefaultLocale( ) ) );\n collectionNotifyMarkers.add( notifyMarkerURl );\n return collectionNotifyMarkers;\n }",
"private String getUnexpandedContentText(int numOfNotifications) {\n /*switch (numOfNotifications) {\n case 0:\n return \"\";\n case 1:\n return \"\";\n default:*/\n return numOfNotifications + \" news received\";\n }",
"private void createSingleReminderNotification(List<Reminder> reminders) {\n\t\tReminder reminder = reminders.get(0);\n\t\tLog.d(TAG, \"single reminder: \" + reminder.toString());\n\t\t\n\t\t// pass the reminder as an intent extra\n\t\tIntent intent = new Intent(this, ReminderActivity.class);\n\t\tintent.putExtra(ReminderActivity.EXTRA_REMINDER, reminder);\n\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n\t\tPendingIntent pintent = PendingIntent.getActivity(this, 0, intent, 0);\n\t\t\n\t\tString title = getString(Event.getStringIdForType(reminder.getEventType()));\n\t\tString text = reminder.getDescription();\n\t\t\n\t\t// Build the notification\n\t\tNotification not = new NotificationCompat.Builder(this)\n\t\t\t.setContentTitle(title)\n\t\t\t.setContentText(text)\n\t\t\t.setSmallIcon(R.drawable.ic_stat_notificationlogo)\n\t\t\t.setContentIntent(pintent).build();\n\t\tnot.flags |= Notification.FLAG_AUTO_CANCEL;\n\t\t\n\t\t// get notification on screen\n\t\tNotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n\t\tnotificationManager.notify(0, not);\n\t}",
"@Override\n public List<NotificationTemplate> getDefaultNotificationTemplates(String notificationChannel) {\n\n if (NotificationChannels.SMS_CHANNEL.getChannelType().equals(notificationChannel)) {\n return I18nMgtDataHolder.getInstance().getDefaultSMSTemplates();\n }\n return I18nMgtDataHolder.getInstance().getDefaultEmailTemplates();\n }",
"void scno(String type, Object data) {\r\n\t\tnotifications.put(type, data);\r\n\t\tsetChanged();\r\n\t\tnotifyObservers(type);\r\n\t\t\r\n\t}",
"private void createContent() {\n\t\t// Design mail content\n\t\tview.getTxtSubject().setText(\n\t\t\t\tMessages.getString(\"SendAlertController.1\") + arr[9]);\n\t\tcontent += Messages.getString(\"SendAlertController.2\") + arr[1]\n\t\t\t\t+ Messages.getString(\"SendAlertController.3\");\n\t\tcontent += Messages.getString(\"SendAlertController.4\") + arr[12]\n\t\t\t\t+ Messages.getString(\"SendAlertController.5\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.6\");\n\t\tcontent += Messages.getString(\"SendAlertController.7\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.8\")\n\t\t\t\t+ new Date().toString()\n\t\t\t\t+ Messages.getString(\"SendAlertController.9\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.10\") + arr[9]\n\t\t\t\t+ Messages.getString(\"SendAlertController.11\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.12\") + arr[11]\n\t\t\t\t+ Messages.getString(\"SendAlertController.13\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.14\") + arr[12]\n\t\t\t\t+ Messages.getString(\"SendAlertController.15\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.16\")\n\t\t\t\t+ fee.getBorFee()\n\t\t\t\t+ Messages.getString(\"SendAlertController.17\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.18\")\n\t\t\t\t+ fee.getLateFee()\n\t\t\t\t+ Messages.getString(\"SendAlertController.19\");\n\t\tcontent += Messages.getString(\"SendAlertController.20\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.21\") + arr[1]\n\t\t\t\t+ Messages.getString(\"SendAlertController.22\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.23\") + arr[4]\n\t\t\t\t+ Messages.getString(\"SendAlertController.24\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.25\") + arr[6]\n\t\t\t\t+ Messages.getString(\"SendAlertController.26\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.27\") + arr[7]\n\t\t\t\t+ Messages.getString(\"SendAlertController.28\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.29\") + arr[5]\n\t\t\t\t+ Messages.getString(\"SendAlertController.30\");\n\t\tcontent += Messages.getString(\"SendAlertController.31\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.32\") + arr[15]\n\t\t\t\t+ Messages.getString(\"SendAlertController.33\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.34\") + arr[16]\n\t\t\t\t+ Messages.getString(\"SendAlertController.35\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.36\") + arr[17]\n\t\t\t\t+ Messages.getString(\"SendAlertController.37\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.38\") + arr[18]\n\t\t\t\t+ Messages.getString(\"SendAlertController.39\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.40\") + arr[19]\n\t\t\t\t+ Messages.getString(\"SendAlertController.41\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.42\") + arr[20]\n\t\t\t\t+ Messages.getString(\"SendAlertController.43\");\n\t\tcontent += Messages.getString(\"SendAlertController.44\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.45\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.46\");\n\t\tcontent += Messages.getString(\"SendAlertController.47\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.48\");\n\t\tview.getTxtContent().setText(content);\n\t}",
"public abstract void sendNotification(String sendFrom, List<Object> sendTo, String sendToProperty, NoticeTemplate noticeTemplate, Object noticeData);",
"private void updateStatusBarNotifications(int notificationType, int notificationSubType){\r\n\t\tif(_debug) Log.v(_context, \"NotificationViewFlipper.updateStatusBarNotifications()\");\r\n\t\tint notificationTypecount = 1;\r\n\t\tString sentFromContactName = null;\r\n\t\tlong sentFromContactID = -1;\r\n\t\tString sentFromAddress = null;\r\n\t\tString message = null;\r\n\t\tString k9EmailUri = null;\r\n\t\tString linkURL = null;\r\n\t\tlong threadID = -1;\r\n\t\tswitch(notificationType){\r\n\t\t\tcase Constants.NOTIFICATION_TYPE_PHONE:{\r\n\t\t\t\tnotificationTypecount = _missedCallCount;\r\n\t\t\t\tbreak;\r\n\t\t }\r\n\t\t\tcase Constants.NOTIFICATION_TYPE_SMS:{\r\n\t\t\t\tnotificationTypecount = _smsCount;\r\n\t\t\t\tbreak;\r\n\t\t }\r\n\t\t\tcase Constants.NOTIFICATION_TYPE_MMS:{\r\n\t\t\t\tnotificationTypecount = _mmsCount;\r\n\t\t\t\tbreak;\r\n\t\t }\r\n\t\t\tcase Constants.NOTIFICATION_TYPE_CALENDAR:{\r\n\t\t\t\tnotificationTypecount = _calendarCount;\r\n\t\t\t\tbreak;\r\n\t\t }\r\n\t\t\tcase Constants.NOTIFICATION_TYPE_K9:{\r\n\t\t\t\tnotificationTypecount = _k9Count;\r\n\t\t\t\tbreak;\r\n\t\t }\r\n\t\t}\r\n\t\tif(notificationTypecount > 0){\r\n\t\t\tif(notificationTypecount == 1){\r\n\t\t\t\tNotification notification = getNotificationByType(notificationType);\r\n\t\t\t\tsentFromContactName = notification.getContactName();\r\n\t\t\t\tsentFromContactID = notification.getContactID();\r\n\t\t\t\tsentFromAddress = notification.getSentFromAddress();\r\n\t\t\t\tmessage = notification.getMessageBody();\r\n\t\t\t\tk9EmailUri = notification.getK9EmailUri();\r\n\t\t\t\tlinkURL = notification.getLinkURL();\r\n\t\t\t\tthreadID = notification.getThreadID();\r\n\t\t\t}\r\n\t\t\t//Display Status Bar Notification\r\n\t\t Common.setStatusBarNotification(_context, notificationTypecount, notificationType, notificationSubType, true, sentFromContactName, sentFromContactID, sentFromAddress, message, k9EmailUri, linkURL, threadID, true, Common.getStatusBarNotificationBundle(_context, notificationType));\r\n\t\t}\r\n\t}",
"@Override \n\tpublic int addNotifyTemplate(int partyid,int notifytypeid,String name,String desc,int notifyeventid,int notifytargetid,int deliverychannelid,int usesugnid,Boolean isactive,Boolean isdnd,Boolean isdesc ,String templateXML,\n\t\t\tString fileName,String fileStoragePathURI, int fileSizeKB,\n\t\t\tString fileName1,String fileStoragePathURI1, int fileSizeKB1,\n\t\t\tString fileName2,String fileStoragePathURI2, int fileSizeKB2 ,int userID) {\n\t\tint result = 0; \n\t\tresult= jdbcTemplate.queryForObject(FiinfraConstants.SP_ADD_NOTIFY_TEMPLATE,\n\t\t\t\tnew Object[]{partyid,notifytypeid,name,desc,notifyeventid,notifytargetid,deliverychannelid,usesugnid,isactive,isdnd,isdesc,templateXML,\n\t\t\t\tfileName,fileStoragePathURI, fileSizeKB,fileName1,fileStoragePathURI1, fileSizeKB1,fileName2,fileStoragePathURI2, fileSizeKB2,userID}, Integer.class); \n\t\treturn result; \n\t}",
"private boolean isNotificationMessage(Message message)\n {\n return message instanceof PoolFileFlushedMessage\n || message instanceof PoolRemoveFilesMessage\n || message instanceof PnfsDeleteEntryNotificationMessage;\n }",
"@Override\n public NotificationRecyclerAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n LayoutInflater inflater = LayoutInflater.from(parent.getContext());\n View view = inflater.inflate(R.layout.single_row_notification,parent,false);\n NotificationRecyclerAdapter.MyViewHolder holder = new NotificationRecyclerAdapter.\n MyViewHolder(view);\n return holder;\n }",
"public abstract MBeanNotificationInfo[] getNotificationInfo();",
"@NonNull\n @Override\n public WaiterNotificationsAdapter.NotificationViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {\n View view = LayoutInflater.from(activity).inflate(R.layout.waiter_notification_row, parent, false);\n return new WaiterNotificationsAdapter.NotificationViewHolder(view);\n }",
"public INotificationColl getNotifications(boolean edit)\n throws OculusException;",
"public void addNotifications(String header, String message, String actionPath, String type, String imageUrl, String notifDate) throws ClirNetAppException {\n SQLiteDatabase db = this.getWritableDatabase();\n try {\n ContentValues contentValue = new ContentValues();\n\n contentValue.put(MESSAGE, message);\n contentValue.put(HEADER, header);\n contentValue.put(ACTION_PATH, actionPath);\n contentValue.put(TYPE, type);\n contentValue.put(IMAGE_URL, imageUrl);\n contentValue.put(ADDED_ON, notifDate);\n contentValue.put(FLAG, \"0\");\n\n db.insert(TABLE_NOTIFICATIONS, null, contentValue);\n //Log.e(\"notification\",\"notification added\");\n\n } catch (Exception e) {\n throw new ClirNetAppException(\"Error inserting Notifications data\");\n } finally {\n if (db != null) {\n db.close(); // Closing database connection\n }\n }\n\n }",
"public boolean containsNotificationType(int notificationType){\r\n\t\tint totalNotifications = this.getChildCount();\r\n\t\tfor (int i=0; i<totalNotifications; i++){\r\n\t\t\tif(((NotificationView) this.getChildAt(i)).getNotification().getNotificationType() == notificationType){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public interface MessageListBeanIntfc {\n String getTitle();//标题\n\n String getContent();//内容\n\n long getDate();//时间\n\n int getStatus();//消息状态 0未接单 1已接单 2通知类(具体看后台)\n\n //未接单情况下\n String getPhone();//用户电话\n\n String getGoodsName();//商品名称\n\n long getBookDate();//预约配送时间\n}",
"private void createMultipleReminderNotification(List<Reminder> reminders) {\n\t\tint nrReminders = reminders.size();\n\t\tLog.d(TAG, \"several remindera: \" + nrReminders);\n\t\t\n\t\tIntent intent = new Intent(this, MainActivity.class);\n\t\tPendingIntent pintent = PendingIntent.getActivity(this, 0, intent, 0);\n\t\t\n\t\tString title = nrReminders + getString(R.string.reminder);\n\t\tString text = reminders.get(0).getDescription();\t// top reminder\n\t\t\n\t\t// Build the notification\n\t\tNotification not = new NotificationCompat.Builder(this)\n\t\t\t.setContentTitle(title)\n\t\t\t.setContentText(text)\n\t\t\t.setSmallIcon(R.drawable.ic_stat_notificationlogo)\n\t\t\t.setContentIntent(pintent).build();\n\t\tnot.flags |= Notification.FLAG_AUTO_CANCEL;\n\n\t\t// get notification on screen\n\t\tNotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n\t\tnotificationManager.notify(0, not);\n\t}",
"public PCEPNotification createNotificationMessage(ComputingResponse resp,long timer ){\n\t\tlog.info(\"Timer \"+timer);\n\t\tPCEPNotification notificationMsg = new PCEPNotification();\n\t\tNotify notify=new Notify();\n\t\tNotification notif=new Notification();\n\t\tnotif.setNotificationType(ObjectParameters.PCEP_NOTIFICATION_TYPE_PRERESERVE);\n\t\tLinkedList<Notification> notificationList=new LinkedList<Notification>();\n\t\tPathReservationTLV pathReservationTLV=new PathReservationTLV();\t\t\t\n\t\tpathReservationTLV.setERO(resp.getResponseList().getFirst().getPathList().getFirst().geteRO());\t\t\t\t\t\n\t\tboolean bidirect = resp.getResponseList().getFirst().getRequestParameters().isBidirect();\t\t\n\t\tpathReservationTLV.setTime(timer);\n\t\tpathReservationTLV.setBidirectional(bidirect);\n\t\tnotif.setNotificationTLV(pathReservationTLV);\n\t\tnotificationList.add(notif);\n\t\tnotify.setNotificationList(notificationList);\n\t\tnotificationMsg.addNotify(notify);\n\t\treturn notificationMsg;\t\n\t}",
"private void createNotificationChannels() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n NotificationChannel channel1 = new NotificationChannel(CHANNEL_REMINDER_ID, \"Reminder Channel\",NotificationManager.IMPORTANCE_HIGH);\n channel1.setDescription(\"Reminder to drink water\");\n\n NotificationManager manager = getSystemService(NotificationManager.class);\n manager.createNotificationChannel(channel1);\n\n\n }\n }",
"public String generateNotificationMessage(NotificationBo notification);",
"public ArrayList<Notification> getAllNotifications(){\n\n \t\tArrayList<Notification> newListofEntries = new ArrayList<Notification>();\n \t\t\n \t\tCursor cur = this.getAllEntriesNotification();\n \t\t\n \t\tif (this.cursorHasRows(cur)) {\n \t\t\tif (cur.moveToFirst()) {\n \t\t\t\tdo {\n \t\t\t\t\tNotification newObjActivity = new Notification();\n \t\t\t\t\n \t\t\t\t\t\tnewObjActivity.notificationID = (cur.getInt(cur.getColumnIndex(\"notificationID\")));\n \t\t\t\t\t\tnewObjActivity.notificationType = Notification.getNOTIFTYPEValue(cur.getInt(cur.getColumnIndex(\"notificationType\")));\n \t\t\t\t\t\tnewObjActivity.notificationState = Notification.getNOTIFSTATEValue(cur.getInt(cur.getColumnIndex(\"notificationState\")));\n \t\t\t\t\t\tnewObjActivity.ref_id = (cur.getString(cur.getColumnIndex(\"ref_id\")));\n \t\t\t\t\t\tnewObjActivity.ref_type = (cur.getString(cur.getColumnIndex(\"ref_type\")));\n \t\t\t\t\t\tnewObjActivity.coachID = (cur.getInt(cur.getColumnIndex(\"coach_id\")));\n \t\t\t\t\t\tnewObjActivity.coachAvatarURL = (cur.getString(cur.getColumnIndex(\"coach_avatar_url\")));\n \t\t\t\t\t\tnewObjActivity.mealID = (cur.getString(cur.getColumnIndex(\"meal_id\")));\n \t\t\t\t\t\tnewObjActivity.timestamp = AppUtil.toDate(new Timestamp(cur.getLong(cur.getColumnIndex(\"timestamp\"))));\n \t\t\t\t\t\tnewObjActivity.coachMessage = (cur.getString(cur.getColumnIndex(\"message\")));\n \t\t\t\t\t\n \t\t\t\t\t\t//add the meal to the array list\n \t\t\t\t\t\tnewListofEntries.add(newObjActivity);\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} while (cur.moveToNext());\n \t\t\t}\n \t\t}\n \t\t\n \t\tcur.close();\n \t\treturn newListofEntries;\n \t}",
"@GET(\"user-notification-content?expand=notification,notification.translations,notification.notificationResultType&sort=-time_from\")\n Call<NotificationsResponse> getNotifications(@Query(\"from\") long from,\n @Query(\"to\") long to,\n @Query(\"notification_result_accepted\") int notification_result_accepted,\n @Query(\"per-page\") double per_page);",
"private ListNotification(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }",
"private void processCustomMessage(Context context, Bundle bundle, int type) {\n\n String extirm = bundle.getString(JPushInterface.EXTRA_EXTRA);\n if (!TextUtils.isEmpty(extirm)) {\n info = JSON.parseObject(extirm, JgPustInfo.class);\n }\n\n if (type == 1) {\n startApp(context);\n }\n\n//\t\tif (MainActivity.isForeground) {\n//\t\t\tString message = bundle.getString(JPushInterface.EXTRA_MESSAGE);\n//\t\t\tString extras = bundle.getString(JPushInterface.EXTRA_EXTRA);\n//\t\t\tIntent msgIntent = new Intent(MainActivity.MESSAGE_RECEIVED_ACTION);\n//\t\t\tmsgIntent.putExtra(MainActivity.KEY_MESSAGE, message);\n//\t\t\tif (!ExampleUtil.isEmpty(extras)) {\n//\t\t\t\ttry {\n//\t\t\t\t\tJSONObject extraJson = new JSONObject(extras);\n//\t\t\t\t\tif (null != extraJson && extraJson.length() > 0) {\n//\t\t\t\t\t\tmsgIntent.putExtra(MainActivity.KEY_EXTRAS, extras);\n//\t\t\t\t\t}\n//\t\t\t\t} catch (JSONException e) {\n//\n//\t\t\t\t}\n//\n//\t\t\t}\n//\t\t\tcontext.sendBroadcast(msgIntent);\n//\t\t}\n }",
"private String[] getTemplateElements(Resource templateResource, String notificationChannel, String displayName,\n String locale) throws NotificationTemplateManagerException {\n\n try {\n Object content = templateResource.getContent();\n if (content != null) {\n byte[] templateContentArray = (byte[]) content;\n String templateContent = new String(templateContentArray, Charset.forName(\"UTF-8\"));\n\n String[] templateContentElements;\n try {\n templateContentElements = new Gson().fromJson(templateContent, String[].class);\n } catch (JsonSyntaxException exception) {\n String error = String.format(IdentityMgtConstants.ErrorMessages.\n ERROR_CODE_DESERIALIZING_TEMPLATE_FROM_TENANT_REGISTRY.getMessage(), displayName, locale);\n throw new NotificationTemplateManagerServerException(IdentityMgtConstants.ErrorMessages.\n ERROR_CODE_DESERIALIZING_TEMPLATE_FROM_TENANT_REGISTRY.getCode(), error, exception);\n }\n\n // Validate template content.\n if (NotificationChannels.SMS_CHANNEL.getChannelType().equals(notificationChannel)) {\n if (templateContentElements == null || templateContentElements.length != 1) {\n String errorMsg = String.format(IdentityMgtConstants.ErrorMessages.\n ERROR_CODE_INVALID_SMS_TEMPLATE_CONTENT.getMessage(), displayName, locale);\n throw new NotificationTemplateManagerServerException(IdentityMgtConstants.ErrorMessages.\n ERROR_CODE_INVALID_SMS_TEMPLATE_CONTENT.getCode(), errorMsg);\n }\n } else {\n if (templateContentElements == null || templateContentElements.length != 3) {\n String errorMsg = String.format(IdentityMgtConstants.ErrorMessages.\n ERROR_CODE_INVALID_EMAIL_TEMPLATE_CONTENT.getMessage(), displayName, locale);\n throw new NotificationTemplateManagerServerException(IdentityMgtConstants.ErrorMessages.\n ERROR_CODE_INVALID_EMAIL_TEMPLATE_CONTENT.getCode(), errorMsg);\n }\n }\n return templateContentElements;\n } else {\n String error = String.format(IdentityMgtConstants.ErrorMessages.\n ERROR_CODE_NO_CONTENT_IN_TEMPLATE.getMessage(), displayName, locale);\n throw new NotificationTemplateManagerClientException(IdentityMgtConstants.ErrorMessages.\n ERROR_CODE_NO_CONTENT_IN_TEMPLATE.getCode(), error);\n }\n } catch (RegistryException exception) {\n String error = IdentityMgtConstants.ErrorMessages.\n ERROR_CODE_ERROR_RETRIEVING_TEMPLATE_OBJECT_FROM_REGISTRY.getMessage();\n throw new NotificationTemplateManagerServerException(IdentityMgtConstants.ErrorMessages.\n ERROR_CODE_ERROR_RETRIEVING_TEMPLATE_OBJECT_FROM_REGISTRY.getCode(), error, exception);\n }\n }",
"public interface ManageNotificationService {\r\n\r\n\t/**\r\n\t * This method provides the AlarmTypes list for Notification Over view\r\n\t * \r\n\t * \r\n\t * @return\r\n\t * @throws HibernateException\r\n\t * @throws JsonProcessingException\r\n\t */\r\n\tpublic String getAlarmTypes() throws JsonProcessingException,\r\n\t\t\tHibernateException;\r\n\r\n\t/**\r\n\t * This method provides the Notification Over View data\r\n\t * \r\n\t * @param notificationOverViewRequest\r\n\t * @return\r\n\t */\r\n\tpublic String getAlarmNotificationOverView(\r\n\t\t\tNotificationOverViewRequest notificationOverViewRequest)\r\n\t\t\tthrows JsonProcessingException, ParseException;\r\n\r\n\t/**\r\n\t * Get Alarms count for a given user Id to get alarms for indoor / outdoor\r\n\t * units and groups the result is then processed and converted to JSON\r\n\t * string\r\n\t * \r\n\t * @param userId\r\n\t * @return\r\n\t * @throws JsonProcessingException\r\n\t */\r\n\tString getNotificationCount(Long userId) throws JsonProcessingException;\r\n\r\n\t/**\r\n\t * Get the alarm data which includes alarm id, status, severity, error code,\r\n\t * description, counter Measure, unit it, unit type.\r\n\t * \r\n\t * @param request\r\n\t * @param userTimeZone\r\n\t * @return\r\n\t */\r\n\tpublic NotificationDetailList getNotificationDetails(\r\n\t\t\tNotificationRequestVO request, String userTimeZone);\r\n\r\n\t/**\r\n\t * This method provides the Notification Over View data for download\r\n\t * \r\n\t * @param notificationOverViewRequest\r\n\t * @return\r\n\t * @throws ParseException\r\n\t * @throws HibernateException\r\n\t * @throws JsonProcessingException\r\n\t */\r\n\tpublic List<NotificationOverViewVO> getAlarmNotificationOverViewForDownload(\r\n\t\t\tNotificationOverViewRequest notificationOverViewRequest)\r\n\t\t\tthrows HibernateException, ParseException, JsonProcessingException;\r\n\r\n\t/**\r\n\t * Generate excel report for Notification Overview\r\n\t * \r\n\t * @param notificationList\r\n\t * @param notificationOverViewRequest\r\n\t * @return\r\n\t * @throws Exception\r\n\t */\r\n\tpublic String generateNotificationOverViewExcelReport(\r\n\t\t\tList<NotificationOverViewVO> notificationList,\r\n\t\t\tNotificationOverViewRequest notificationOverViewRequest)\r\n\t\t\tthrows Exception;\r\n\r\n\t/**\r\n\t * Generate excel report for Notification Details\r\n\t * \r\n\t * @param notificationList\r\n\t * @param requestVO\r\n\t * @return\r\n\t * @throws Exception\r\n\t */\r\n\tpublic String generateNotificationDetailsExcelReport(\r\n\t\t\tSet<NotificationDetailsVO> notificationList,\r\n\t\t\tNotificationRequestVO requestVO) throws Exception;\r\n\r\n\t/**\r\n\t * Generate csv report for Notification Details\r\n\t * \r\n\t * @param notificationList\r\n\t * @param requestVO\r\n\t * @return\r\n\t * @throws Exception\r\n\t */\r\n\tpublic String generateNotificationDetailsCsvReport(\r\n\t\t\tSet<NotificationDetailsVO> notificationList,\r\n\t\t\tNotificationRequestVO requestVO) throws Exception;\r\n\r\n\tpublic List<NotificationDetailsVO> getNotificationDetailsDownloadData(\r\n\t\t\tList<Long> notificationIds);\r\n\r\n\tpublic String generateNotificationDetailsExcelReport(\r\n\t\t\tList<NotificationDetailsVO> notificationList,\r\n\t\t\tNotificationRequestDownloadVO notificationRequestVO)\r\n\t\t\tthrows Exception;\r\n\r\n\tpublic String generateNotificationDetailsCsvReport(\r\n\t\t\tList<NotificationDetailsVO> notificationList,\r\n\t\t\tNotificationRequestDownloadVO notificationRequestVO)\r\n\t\t\tthrows Exception;\r\n\r\n}",
"public void createNotification(View view) {\n Intent intent = new Intent(this, Status1.class);\r\n PendingIntent pIntent = PendingIntent.getActivity(this, 0, intent, 0);\r\n\r\n // Build notification\r\n // Actions are just fake\r\n Notification noti = new Notification.Builder(this)\r\n .setContentTitle(\"RKC App \")\r\n .setContentText(\"Click To Enter \").setSmallIcon(R.drawable.arc)\r\n .setContentIntent(pIntent)\r\n .addAction(R.drawable.ironman, \"Back\", pIntent)\r\n .addAction(R.drawable.gun, \"More\", pIntent)\r\n .build();\r\n NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\r\n // hide the notification after its selected\r\n noti.flags |= Notification.FLAG_AUTO_CANCEL;\r\n\r\n notificationManager.notify(0, noti);\r\n\r\n }",
"public interface ITemplateBaseMessage {\r\n\r\n\t/**\r\n\t * Method to get the module type class\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tpublic String getModuleTypeClass();\t\r\n\t\r\n\t/**\r\n\t * Method to set the message address\r\n\t * \r\n\t * @param address\r\n\t */\r\n\tpublic void setMessageAddress(String address);\r\n\t\r\n\t/**\r\n\t * Method to set the message parameters\r\n\t * \r\n\t * @param parameters\r\n\t */\r\n\tpublic void setParameters(String parameters);\r\n\t\r\n\t/**\r\n\t * Method to get the message address\r\n\t * \r\n\t * @return String\r\n\t */\r\n\tpublic String getMessageAddress();\r\n}",
"public interface TypeView extends BaseView {\n void getNewListEnd();\n\n void getNewListSuccess(List<New> news, int page);\n\n void getNewListError(String message, int page);\n}",
"@Override\n\tpublic void pushMessage(NotificationAttentionMessageDTO notification, DeviceType deviceType) {\n\t\tswitch (deviceType) {\n\t\tcase ANDROID:\n\t\t\tsimpleMsgTemplate.convertAndSend(webSocketEndpointProperties.getFullPushAndroid(), notification);\n\t\t\tbreak;\n\t\tcase IOS:\n\t\t\tsimpleMsgTemplate.convertAndSend(webSocketEndpointProperties.getFullPushIOS(), notification);\n\t\t\tbreak;\n\t\t}\n\t}",
"public MsgSubsidiaryType() {\r\n\t\tsuper();\r\n\t\t// _INDIVIDUALList = new ArrayList();\r\n\t\t_DEALERList = new ArrayList();\r\n\t}",
"public List<String> getNotificationList() throws Exception {\r\n ArrayList<String> cache = new ArrayList<String>();\r\n for (DOMFace nr : getChildren(\"notification\", DOMFace.class)) {\r\n cache.add(nr.getAttribute(\"pagekey\"));\r\n }\r\n return cache;\r\n }",
"private static Result parseNotify(String reader) throws Exception {\n\t\tResult result = new Result();\n\t\tJSONObject jObj = new JSONObject(reader);\n\t\tint code = jObj.getInt(\"code\");\n\t\tif (code == 0) {\n\t\t\tJSONArray datas = jObj.getJSONArray(\"obj\");\n\t\t\tObject[][] notifies = new Object[datas.length()][];\n\t\t\tfor (int j = 0; j < datas.length(); j++) {\n\t\t\t\tJSONObject data = datas.getJSONObject(j);\n\t\t\t\tint type = data.getInt(\"Type\");\n\t\t\t\tint id = data.getInt(\"Id\");\n\t\t\t\tObject[] notify = null;\n\t\t\t\tswitch (type) {\n\t\t\t\tcase 0:\n\t\t\t\t\t// payment\n\t\t\t\t\tnotify = new Object[3];\n\t\t\t\t\tnotify[1] = type;\n\t\t\t\t\tJSONArray arr = data.getJSONArray(\"Content\");\n\t\t\t\t\tPayment[] payment = new Payment[arr.length()];\n\t\t\t\t\tfor (int i = 0; i < arr.length(); i++) {\n\t\t\t\t\t\tJSONObject idx = arr.getJSONObject(i);\n\t\t\t\t\t\tpayment[i] = new Payment();\n\t\t\t\t\t\tpayment[i].setCode(idx.getString(\"Code\"));\n\t\t\t\t\t\tpayment[i].setSyntax(idx.getString(\"Syntax\"));\n\t\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\t\tpayment[i].setType(SMSUtils.SMS_2K);\n\t\t\t\t\t\t} else if(i== 1){\n\t\t\t\t\t\t\tpayment[i].setType(SMSUtils.SMS_5k);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tpayment[i].setType(SMSUtils.SMS_15k);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tnotify[2] = payment;\n\t\t\t\t\tnotify[0] = id;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\t// message\n\t\t\t\t\tnotify = new Object[3];\n\t\t\t\t\tnotify[1] = type;\n\t\t\t\t\tnotify[2] = data.getString(\"Content\");\n\t\t\t\t\tnotify[0] = id;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\t// open web\n\t\t\t\t\tnotify = new Object[4];\n\t\t\t\t\tnotify[1] = type;\n\t\t\t\t\tnotify[2] = data.getString(\"Link\");\n\t\t\t\t\tnotify[3] = data.getString(\"Content\");\n\t\t\t\t\tnotify[0] = id;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tnotifies[j] = notify;\n\t\t\t}\n\t\t\tresult.setData(notifies);\n\t\t} else\n\t\t\tresult.setError(Error.SERVER_ERROR);\n\t\treturn result;\n\t}",
"public void getNotificationApi() {\n mDialog.show();\n\n Log.e(\"notification_resp\", commonData.getString(USER_ID));\n Log.e(\"notification_resp\", commonData.getString(TOKEN));\n\n\n Call call = register_interfac.getNotifications(commonData.getString(USER_ID), commonData.getString(TOKEN));\n\n call.enqueue(new Callback() {\n\n @Override\n public void onResponse(Call call, Response response) {\n Log.e(\"notification_resp\", response.raw() + \"\");\n\n if (response.isSuccessful() && response.body() != null) {\n mDialog.dismiss();\n\n Log.e(\"notification_resp_succ\", new Gson().toJson(response.body()));\n String resp = new Gson().toJson(response.body());\n\n Log.e(\"notification_resp1\", resp);\n\n //getAllPosts = new Gson().fromJson(resp, GetAllPost.class);\n notificationResponse = new Gson().fromJson(resp, NotificationResponse.class);\n\n getNotificationData = notificationResponse.getNotificationRespLists();\n // getAllPost_data = getAllPosts.getObject();\n\n if (getNotificationData.size()>0) {\n rv_3notice.setVisibility(View.VISIBLE);\n tvNoDataFound.setVisibility(View.GONE);\n\n notice3_adapter = new Notice3_Adapter(getActivity(), getNotificationData);\n rv_3notice.setAdapter(notice3_adapter);\n }else {\n tvNoDataFound.setVisibility(View.VISIBLE);\n rv_3notice.setVisibility(View.GONE);\n }\n }\n }\n\n @Override\n public void onFailure(Call call, Throwable t) {\n mDialog.dismiss();\n Log.e(\"onFailure >>>>\", \"\" + t.getMessage());\n\n }\n });\n }",
"public Map<String, Object> getPopupNotification(long userId);",
"public interface INotification\n extends java.io.Serializable\n{\n\n /**\n * Get the identifier for this Notification message. This identifier\n * should be unique as it will be used for message selection,\n * e.g. id='Connection' would be to select ConnectionNotification messages.\n */\n String getNotificationID();\n\n /**\n * Get the keys to all header properties (specific to the notification, excluding\n * notificationID).\n */\n String[] getPropertyKeys();\n\n /**\n * Get the value of a property.\n *\n * @param key Key to the property to get value.\n * @return Value for the property, or <b>null<b> if no such property key.\n */\n String getProperty(String key);\n}",
"private Map<TemplateModel,List<SectionModel>> getTemplateDetails(String templateName,Map<String,Object> context){\n Map<TemplateModel,List<SectionModel>> tempalteDetails= templateService.findTemplateByName(templateName);\n try{\n for (Map.Entry<TemplateModel,List<SectionModel>> entry : tempalteDetails.entrySet()){\n TemplateModel template=(TemplateModel)entry.getKey();\n context.put(\"mailFrom\",template.getMail_from());\n context.put(\"subject\",template.getSubject());\n context.put(\"mailBody\",template.getMail_body());\n List<SectionModel> sectionModelList=(List<SectionModel>)entry.getValue();\n if(sectionModelList!=null){\n for(SectionModel section:sectionModelList){\n List<Issue> issueList= getIssuesOnJQL(section.getJql_query());\n List<Map<String,List<String>>> entireList=new ArrayList<Map<String,List<String>>>();\n for(Issue issue:issueList){\n Map<String,List<String>> issueMap= new IssueUtils().getJiraFieldValues(issue,section.getColumns().split(\",\"));\n context.put(\"colSize\",section.getColumns().split(\",\").length);\n entireList.add(issueMap);\n }\n \n section.setJql_result(entireList);\n }\n \n \n \n \n }\n \n }\n }catch(Exception e){\n e.printStackTrace(); \n \n }\n return tempalteDetails;\n \n }",
"public interface GetAllNotificationBindr {\n StatusBarNotification[] getAllNotification();\n}",
"public List<cn.com.ho.workflow.infrastructure.db.tables.pojos.TaskDefNotification> fetchByCreateTime(LocalDateTime... values) {\n return fetch(TaskDefNotification.TASK_DEF_NOTIFICATION.CREATE_TIME, values);\n }",
"@RequestMapping(method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)\r\n public ResponseEntity<Void> createNotification(@RequestBody OrionAlert orionAlert, UriComponentsBuilder ucBuilder) {\r\n /* Se obtienen las entidades de la clave principal determinada por el campo DATA */\r\n List<Data> datos = orionAlert.getData();\r\n \r\n Map <String, String> eventsObserved = new HashMap <>();\r\n eventsObserved.put(\"precipitation\", \"Weather\");\r\n eventsObserved.put(\"relativeHumidity\", \"Weather\");\r\n eventsObserved.put(\"temperature\", \"Weather\");\r\n eventsObserved.put(\"windDirection\", \"Weather\");\r\n eventsObserved.put(\"windSpeed\", \"Weather\");\r\n eventsObserved.put(\"altitude\", \"Weather\");\r\n eventsObserved.put(\"barometricPressure\", \"Weather\");\r\n eventsObserved.put(\"luminosity\", \"Weather\");\r\n eventsObserved.put(\"CO\",\"Environment\");\r\n eventsObserved.put(\"NO2\",\"Environment\");\r\n eventsObserved.put(\"NOx\",\"Environment\");\r\n eventsObserved.put(\"SO2\",\"Environment\");\r\n eventsObserved.put(\"O3\",\"Environment\");\r\n eventsObserved.put(\"PM10\",\"Environment\");\r\n eventsObserved.put(\"TVOC\",\"Environment\");\r\n eventsObserved.put(\"CO2\",\"Environment\");\r\n \r\n for(Data data : datos){\r\n if(data.getType().equals(\"AirQualityObserved\")){\r\n for(Map.Entry<String, String> entry : eventsObserved.entrySet() ){\r\n Alert alert = new Alert(data, entry.getKey(), entry.getValue());\r\n if(alert.getFound())\r\n alertRepository.save(alert);\r\n }\r\n }else if(data.getType().equals(\"Alert\")){\r\n alertRepository.save(new Alert(data, \"\", \"\"));\r\n }\r\n }\r\n \r\n \r\n HttpHeaders headers = new HttpHeaders();\r\n return new ResponseEntity<Void>(headers, HttpStatus.CREATED);\r\n }",
"private void showInboxNotification() {\n if (mInboxList == null) {\n mInboxList = new ArrayList<String>();\n }\n\n //Add an item to the list\n mInboxList.add(getString(R.string.nf_inbox_item));\n int count = mInboxList.size();\n String inboxTitle = getResources().getQuantityString(R.plurals.nf_inbox_count, count, count);\n\n //Create the inbox compat\n NotificationCompat.InboxStyle inbox = new NotificationCompat.InboxStyle();\n\n String summaryText = getString(R.string.nf_inbox_summary, count);\n //Set the summary text for the inbox item\n inbox.setSummaryText(summaryText);\n\n //Add a line for each item in the list - you have to do this manually, the notification\n //won't build this automatically.\n for (String item : mInboxList) {\n inbox.addLine(item);\n }\n\n //Set the big content title for when the inbox is expanded\n inbox.setBigContentTitle(inboxTitle);\n\n String mostRecentInboxItem = mInboxList.get(mInboxList.size() - 1);\n Notification notification = new NotificationCompat.Builder(getActivity())\n .setContentTitle(inboxTitle)\n //This will show on devices that don't support the inbox and if further notifications\n //come in after the inbox notification.\n .setContentText(summaryText)\n //This will only show when the first inbox item arrives - subsequent items will just be added.\n .setTicker(mostRecentInboxItem)\n .setSmallIcon(R.drawable.ic_notify)\n .setLargeIcon(BitmapFactory.decodeResource(getActivity().getResources(), R.drawable.ic_launcher))\n .setContentIntent(pendingIntentForNotification())\n //This will show on devices that do support the inbox style.\n .setStyle(inbox)\n .build();\n\n //Same deal as the simple notification.\n notification.flags |= Notification.FLAG_AUTO_CANCEL;\n NotificationManager notificationManager = (NotificationManager)\n getActivity().getSystemService(Context.NOTIFICATION_SERVICE);\n\n //Here the tag is used to figure out what notification to add all these items to.\n notificationManager.notify(TAG_INBOX_NOTIFICATION, notification);\n }",
"public interface INotificationsListView {\n\n void onNotificationsLoadedSuccess(List<Notifications> list, Response response);\n\n void onNotificationsLoadedFailure(RetrofitError error);\n}",
"@Override\n protected void onPostExecute(String s) {\n if(numItem > 1){\n buildNotificationMany();\n }\n if(numItem == 1){\n buildNotificationSingle();\n }\n }",
"private static Map<String, Mail> ContentExtract(List<Mail> msgs) {\n\t\tMap<String, Mail> Map = new HashMap<String, Mail>();\n\n\t\tfor (Mail m : msgs) {\n\t\t\tMap.put(m.threadID(), m);\n\t\t}\n\t\treturn Map;\n\t}",
"@Override\n public byte getSubtype() {\n return SUBTYPE_MESSAGING_POLL_CREATION;\n }",
"public PopupNotificationView(Context context, String[] args, String head, String line1, String line2, int type) {\r\n \tsuper(context);\r\n \tpopupNotificationController = new PopupNotificationController(this);\r\n }",
"com.nhcsys.webservices.getmessages.getmessagestypes.v1.SupportMessageType xgetType();",
"TemplateList getAllTemplates(String templateType) throws NotificationClientException;",
"public String[] fetchJsonNotificationsImpl(String meid, int notificationType){\n\t\tString str[] = null;\n\t\ttry{\n\t\t\tSession session = CassandraCluster.getKeyspaceSession(Constants.CASSANDRA_KEYSPACE, Constants.CASSANDRA_PORT, Constants.CASSANDRA_HOSTS);\n\t\t\tString fetchJsonQuery = \"select json * from notifications where meid='\"+meid+\"' and notification_type=\"+notificationType+\"\";\n\t\t\tResultSet resultSet = session.execute(fetchJsonQuery);\n\t\t\tList<Row> list =resultSet.all();\n\t\t\tint len = list.size();\n\t\t\tstr = new String[len];\n\t\t\tfor(int i=0; i<len; i++){\n\t\t\t\tstr[i] = list.get(i).getString(0);\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tlogger.error(\"Exception Occured while performing delete() on notifications table\", e);\n\t\t}\n\t\treturn str;\n\t}",
"NotificationList getNotifications(String status, String notification_type, String reference, String olderThanId) throws NotificationClientException;",
"public void storeNotificationsToNotificationList(String notificationDetails)\n {\n String[] allNoti = notificationDetails.split(\";\");\n \n \n for (int line = 0; line < allNoti.length ; line++)\n {\n String[] details = allNoti[line].split(\"///\");\n String jobSeekerUsername = details[0];\n String[] notifications = details[1].split(\",\");\n ArrayList<String> notification = new ArrayList<String>();\n for (int i = 0; i < notifications.length; i++)\n {\n notification.add(notifications[i]);\n }\n getJobSeeker(jobSeekerUsername).setNotification(notification);\n }\n }",
"public static Notification createNotification(XmlAppConfigurationProvider appConfigurationProvider,\n Context context, String title, String content, Bundle intentExtras) {\n int smallNotificationIconResourceId = appConfigurationProvider.getSmallNotificationIconResourceId();\n if (smallNotificationIconResourceId == 0) {\n Log.d(TAG, \"Small notification icon resource was not found. Will use the app icon when \" +\n \"displaying notifications.\");\n smallNotificationIconResourceId = appConfigurationProvider.getApplicationIconResourceId();\n }\n\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context);\n notificationBuilder.setTicker(title);\n notificationBuilder.setAutoCancel(true);\n\n // Create broadcast intent that will fire when the notification has been opened. To action on these messages,\n // register a broadcast receiver that listens to intent <your_package_name>.intent.APPBOY_NOTIFICATION_OPENED\n // and <your_package_name>.intent.APPBOY_PUSH_RECEIVED.\n String pushOpenedAction = context.getPackageName() + \".intent.APPBOY_NOTIFICATION_OPENED\";\n Intent pushOpenedIntent = new Intent(pushOpenedAction);\n if (intentExtras != null) {\n pushOpenedIntent.putExtras(intentExtras);\n }\n PendingIntent pushOpenedPendingIntent = PendingIntent.getBroadcast(context, 0, pushOpenedIntent, PendingIntent.FLAG_ONE_SHOT);\n notificationBuilder.setContentIntent(pushOpenedPendingIntent);\n\n\n // Sets the icon used in the notification bar itself.\n notificationBuilder.setSmallIcon(smallNotificationIconResourceId);\n notificationBuilder.setContentTitle(title);\n notificationBuilder.setContentText(content);\n\n // Setting notification sounds are supported after Honeycomb.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB && intentExtras != null) {\n // Retrieve sound uri if included in intentExtras bundle.\n if (intentExtras.containsKey(Constants.APPBOY_PUSH_NOTIFICATION_SOUND_KEY)) {\n String soundURI = intentExtras.getString(Constants.APPBOY_PUSH_NOTIFICATION_SOUND_KEY);\n if(soundURI != null) {\n if (soundURI.equals(Constants.APPBOY_PUSH_NOTIFICATION_SOUND_DEFAULT_VALUE)) {\n notificationBuilder.setDefaults(Notification.DEFAULT_SOUND);\n } else {\n notificationBuilder.setSound(Uri.parse(soundURI));\n }\n\n }\n }\n }\n\n // From Honeycomb to ICS, we can use a custom view for our notifications which will allow them to be taller than\n // the standard one line of text.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB && Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) {\n Resources resources = context.getResources();\n String packageName = context.getPackageName();\n\n int layoutResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_ID, \"layout\", packageName);\n int titleResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_TITLE_ID, \"id\", packageName);\n int contentResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_CONTENT_ID, \"id\", packageName);\n int iconResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_ICON_ID, \"id\", packageName);\n int timeViewResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_TIME_ID, \"id\", packageName);\n int twentyFourHourFormatResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_TWENTY_FOUR_HOUR_FORMAT_ID, \"string\", packageName);\n int twelveHourFormatResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_TWELVE_HOUR_FORTMAT_ID, \"string\", packageName);\n\n String twentyFourHourTimeFormat = getOptionalStringResource(resources,\n twentyFourHourFormatResourceId, Constants.DEFAULT_TWENTY_FOUR_HOUR_TIME_FORMAT);\n String twelveHourTimeFormat = getOptionalStringResource(resources,\n twelveHourFormatResourceId, Constants.DEFAULT_TWELVE_HOUR_TIME_FORMAT);\n\n if (layoutResourceId == 0 || titleResourceId == 0 || contentResourceId == 0 || iconResourceId == 0\n || timeViewResourceId == 0) {\n Log.w(TAG, String.format(\"Couldn't find all resource IDs for custom notification view, extended view will \" +\n \"not be used for push notifications. Received %d for layout, %d for title, %d for content, %d for icon, \" +\n \"and %d for time.\",\n layoutResourceId, titleResourceId, contentResourceId, iconResourceId, timeViewResourceId));\n } else {\n Log.d(TAG, \"Using RemoteViews for rendering of push notification.\");\n RemoteViews remoteViews = new RemoteViews(packageName, layoutResourceId);\n remoteViews.setTextViewText(titleResourceId, title);\n remoteViews.setTextViewText(contentResourceId, content);\n remoteViews.setImageViewResource(iconResourceId, smallNotificationIconResourceId);\n\n // Custom views cannot be used as part of a RemoteViews so we're using a TextView widget instead. This\n // view will always display the time without date information (even after the day has changed).\n SimpleDateFormat timeFormat = new SimpleDateFormat(\n android.text.format.DateFormat.is24HourFormat(context) ? twentyFourHourTimeFormat : twelveHourTimeFormat);\n String notificationTime = timeFormat.format(new Date());\n remoteViews.setTextViewText(timeViewResourceId, notificationTime);\n notificationBuilder.setContent(remoteViews);\n return notificationBuilder.build();\n }\n }\n\n // If we're using Jelly Bean, we can use the Big View Style, which lets the notification layout size grow to\n // accommodate longer text and images.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n\n // Summary text which appears with content in expanded view.\n String summaryText = \"\";\n\n // If there is an image url found in the extras payload and the image can be downloaded, then\n // use the android BigPictureStyle as the notification. Else, use the BigTextStyle instead.\n if (intentExtras != null) {\n\n // Retrieve summary text if included in intentExtras bundle.\n if (intentExtras.containsKey(Constants.APPBOY_PUSH_SUMMARY_TEXT_KEY)) {\n summaryText = intentExtras.getString(Constants.APPBOY_PUSH_SUMMARY_TEXT_KEY);\n }\n\n // Set a custom notification priority if defined in the bundle.\n notificationBuilder.setPriority(getNotificationPriority(intentExtras));\n\n Bundle extrasBundle = getExtrasBundle(intentExtras);\n if (extrasBundle!=null && extrasBundle.containsKey(Constants.APPBOY_PUSH_BIG_IMAGE_URL_KEY)) {\n String imageUrl = extrasBundle.getString(Constants.APPBOY_PUSH_BIG_IMAGE_URL_KEY);\n Bitmap imageBitmap = downloadImageBitmap(imageUrl);\n if (imageBitmap != null) {\n Log.d(TAG, \"Rendering push notification with BigPictureStyle\");\n\n return getBigPictureNotification(notificationBuilder, imageBitmap, content, summaryText);\n } else {\n Log.d(TAG, \"Bitmap download failed for push notification\");\n }\n }\n }\n Log.d(TAG, \"Rendering push notification with BigTextStyle\");\n return getBigTextNotification(notificationBuilder, content, summaryText);\n }\n return notificationBuilder.build();\n }",
"@Override\r\n\t\t\tpublic void notificationClicked(Notification paramNotification) {\n\r\n\t\t\t\tMobclickAgent.onEvent(getActivity(),\r\n\t\t\t\t\t\tUMengEventID.NOTIFICATION_LIST_CLICK);\r\n\t\t\t\t// 没有读过这条Notification\r\n\t\t\t\tif (paramNotification.readState == 0) {\r\n\t\t\t\t\tparamNotification.readState = 1;\r\n\r\n\t\t\t\t\t// 更新数据库\r\n\t\t\t\t\tDDBOpenHelper mDdbOpenHelper = DDBOpenHelper\r\n\t\t\t\t\t\t\t.getInstance(getActivity());\r\n\t\t\t\t\t//\r\n\t\t\t\t\tmDdbOpenHelper\r\n\t\t\t\t\t\t\t.updateReadState(paramNotification.activityId);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tswitch (paramNotification.type) {\r\n\t\t\t\tcase NotificationType.ANSWER:\r\n\t\t\t\t\t// ask someone's question be same with\r\n\t\t\t\t\t// other_answer_the_question_your_starrred\r\n\t\t\t\t\tNotificationFragment.this.bus\r\n\t\t\t\t\t\t\t.post(new AnswerNotificationSelected(\r\n\t\t\t\t\t\t\t\t\tparamNotification));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase NotificationType.ASK:\r\n\t\t\t\t\t// the same interface with starred\r\n\t\t\t\t\tNotificationFragment.this.bus\r\n\t\t\t\t\t\t\t.post(new StarredNotificationSelected(\r\n\t\t\t\t\t\t\t\t\tparamNotification));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase NotificationType.LIKED_ANSWER:\r\n\t\t\t\t\t// the same interface with starred\r\n\t\t\t\t\tNotificationFragment.this.bus\r\n\t\t\t\t\t\t\t.post(new AnswerNotificationSelected(\r\n\t\t\t\t\t\t\t\t\tparamNotification));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase NotificationType.LIKED_QUESTION:\r\n\t\t\t\t\t// the same interface with starred\r\n\t\t\t\t\tNotificationFragment.this.bus\r\n\t\t\t\t\t\t\t.post(new StarredNotificationSelected(\r\n\t\t\t\t\t\t\t\t\tparamNotification));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase NotificationType.OTHER_ANSWER_THE_QUESTION_YOUR_STARRED:\r\n\t\t\t\t\t// the same interface with answer\r\n\t\t\t\t\tNotificationFragment.this.bus\r\n\t\t\t\t\t\t\t.post(new AnswerNotificationSelected(\r\n\t\t\t\t\t\t\t\t\tparamNotification));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase NotificationType.OTHER_FORWARD_YOU_QUESTION:\r\n\t\t\t\t\t// the same interface with starred\r\n\t\t\t\t\tNotificationFragment.this.bus\r\n\t\t\t\t\t\t\t.post(new StarredNotificationSelected(\r\n\t\t\t\t\t\t\t\t\tparamNotification));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase NotificationType.STARRED:\r\n\t\t\t\t\tNotificationFragment.this.bus\r\n\t\t\t\t\t\t\t.post(new StarredNotificationSelected(\r\n\t\t\t\t\t\t\t\t\tparamNotification));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase NotificationType.THANKS_CARD:\r\n\t\t\t\t\tNotificationFragment.this.bus\r\n\t\t\t\t\t\t\t.post(new ThankYouNotificationSelected(\r\n\t\t\t\t\t\t\t\t\tparamNotification));\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\r\n\t\t\t}",
"private void refreshNotification() {\n String str = this.mCurrentAddedNotiSsid;\n if (str != null) {\n showNotification(str, true, true);\n }\n String str2 = this.mCurrentDeletedNotiSsid;\n if (str2 != null) {\n showNotification(str2, false, true);\n }\n }",
"private ListNotificationRet(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }",
"private CreateNotificationInSubType6DTO getCreateNotificationSubDTO(Long customerId, String customerName) {\n ReceiverDTO receiverDTO = new ReceiverDTO();\n receiverDTO.setReceiverName(jwtTokenUtil.getEmployeeNameFromToken());\n List<ReceiverDTO> receiverList = new ArrayList<>();\n receiverList.add(receiverDTO);\n CreateNotificationInSubType6DTO customerDTO = new CreateNotificationInSubType6DTO();\n customerDTO.setCustomerId(customerId);\n customerDTO.setReceivers(receiverList);\n customerDTO.setCustomerName(customerName);\n customerDTO.setCustomerMode(1);\n return customerDTO;\n }",
"public interface NotificationManager {\n\n\tvoid sendTicketCreateNotification(Ticket ticket);\n\n\tvoid sendTicketChangeNotification(TicketChange ticketChange);\n\n\tvoid sendCommentNotification(Comment comment);\n\n\tvoid sendAttachmentNotification(Attachment attachment);\n\n}",
"private String buildTemplateRootDirectoryPath(String type, String notificationChannel) {\n\n if (NotificationChannels.SMS_CHANNEL.getChannelType().equals(notificationChannel)) {\n return SMS_TEMPLATE_PATH + PATH_SEPARATOR + type;\n }\n return EMAIL_TEMPLATE_PATH + PATH_SEPARATOR + type;\n }"
] | [
"0.61802894",
"0.6080894",
"0.58853066",
"0.5725791",
"0.5717784",
"0.5707949",
"0.5693509",
"0.5560308",
"0.55488294",
"0.5528117",
"0.55245906",
"0.5518352",
"0.55068386",
"0.5494945",
"0.54907477",
"0.5486314",
"0.54373074",
"0.54046124",
"0.5378023",
"0.5351875",
"0.53245854",
"0.5310318",
"0.5305604",
"0.52934587",
"0.52850604",
"0.5270176",
"0.5258033",
"0.5248863",
"0.5240346",
"0.5239237",
"0.5226113",
"0.5212435",
"0.52009296",
"0.51789045",
"0.51463133",
"0.5142199",
"0.5137837",
"0.51221216",
"0.51167613",
"0.5104605",
"0.50890934",
"0.50865203",
"0.5070205",
"0.506656",
"0.5050644",
"0.5035606",
"0.50351286",
"0.5029227",
"0.50255907",
"0.5014775",
"0.5009421",
"0.50059205",
"0.5003219",
"0.4983444",
"0.49737534",
"0.49676526",
"0.4949174",
"0.4944031",
"0.49428746",
"0.49422964",
"0.49413237",
"0.49375242",
"0.49332613",
"0.49222454",
"0.4915822",
"0.4895109",
"0.4890989",
"0.48865667",
"0.4879643",
"0.48727274",
"0.4871487",
"0.48693112",
"0.48628998",
"0.48568335",
"0.48520556",
"0.48501265",
"0.48496044",
"0.48418972",
"0.48365852",
"0.48314852",
"0.48311964",
"0.48307517",
"0.48299134",
"0.4824271",
"0.48178315",
"0.48154047",
"0.48122928",
"0.48115498",
"0.48037255",
"0.48010784",
"0.4798451",
"0.4793323",
"0.47892904",
"0.47890872",
"0.4781049",
"0.47765177",
"0.4773741",
"0.47714257",
"0.47711542",
"0.4769196"
] | 0.5184837 | 33 |
Created by godong9 on 2017. 7. 29.. | @Repository
public interface PostRepository extends JpaRepository<Post, Long> {
List<Post> findByNxAndNy(Integer nx, Integer ny);
} | {
"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}",
"@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}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"private void poetries() {\n\n\t}",
"private void init() {\n\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n void init() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n public void init() {\n }",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public void mo4359a() {\n }",
"public void mo38117a() {\n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n protected void initialize() \n {\n \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\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 init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"public void mo6081a() {\n }",
"Constructor() {\r\n\t\t \r\n\t }",
"private void init() {\n\n\n\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void init() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n public void init() {}",
"private Rekenhulp()\n\t{\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\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"private void kk12() {\n\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"Petunia() {\r\n\t\t}",
"private void strin() {\n\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"public void mo55254a() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n public void initialize() { \n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"public Pitonyak_09_02() {\r\n }",
"private void m50366E() {\n }",
"private zza.zza()\n\t\t{\n\t\t}",
"public contrustor(){\r\n\t}"
] | [
"0.6093871",
"0.6045682",
"0.5924078",
"0.5894503",
"0.58707386",
"0.58707386",
"0.58647984",
"0.5861231",
"0.5799446",
"0.5789981",
"0.5780541",
"0.5740468",
"0.57343715",
"0.5725202",
"0.5712612",
"0.5712612",
"0.5698242",
"0.56934816",
"0.568889",
"0.5686822",
"0.5674689",
"0.5671268",
"0.5656054",
"0.56293607",
"0.5618855",
"0.55948997",
"0.5586279",
"0.5586279",
"0.5586279",
"0.5586279",
"0.5586279",
"0.55815154",
"0.55685294",
"0.55667216",
"0.555983",
"0.5555428",
"0.5546252",
"0.55431765",
"0.55373085",
"0.5532336",
"0.55232483",
"0.55232483",
"0.55215603",
"0.55165815",
"0.5505206",
"0.5505206",
"0.5505206",
"0.54978013",
"0.54978013",
"0.54978013",
"0.54971397",
"0.54971397",
"0.54971397",
"0.5494077",
"0.5483745",
"0.5483745",
"0.5483745",
"0.5483745",
"0.5483745",
"0.5483745",
"0.5471793",
"0.5468366",
"0.54677504",
"0.5454692",
"0.54543686",
"0.5446841",
"0.5446841",
"0.5446841",
"0.5446841",
"0.5446841",
"0.5446841",
"0.5446841",
"0.5441862",
"0.5440678",
"0.54404724",
"0.54404724",
"0.54326606",
"0.54134625",
"0.54111177",
"0.54077196",
"0.5407038",
"0.5402706",
"0.5399981",
"0.539638",
"0.5388772",
"0.5384729",
"0.53759557",
"0.53712857",
"0.536406",
"0.53632367",
"0.53578234",
"0.5355106",
"0.53542316",
"0.5349704",
"0.5349101",
"0.53261954",
"0.53258574",
"0.53007966",
"0.52856356",
"0.5277882",
"0.5277442"
] | 0.0 | -1 |
Create a MethodResolver for the expected FieldInformer result and the given real informer | public SubInformerMethodResolver(FieldInformer returned,
Informer<?> realInformer) {
this(returned.getClass(), realInformer, returned.getField().getName());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void fromMethodResolverAndType() {\n\n MethodResolver methodResolver = MethodResolver.fromType(Person.class);\n\n assertThat(methodResolver).isNotNull();\n assertThat(methodResolver.getReferenceType()).isEqualTo(Person.class);\n }",
"public static interface Resolver {\n\t\t\n\t\t/**\n\t\t * Registers an injection manager with a resolver.\n\t\t * \n\t\t * The resolver can asynchronously update the relation to modify the\n\t\t * binding.\n\t\t * \n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.addTarget\n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.removeTarget\n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.substituteTarget\n\t\t * \n\t\t */\n\t\tpublic void addInjection(RelationInjectionManager injection);\n\t\t\n\t\t/**\n\t\t * Request to lazily resolve an injection.\n\t\t * \n\t\t * This method is invoked by a injection manager to calculate its initial binding\n\t\t * when it is first accessed.\n\t\t * \n\t\t * The resolver must call back the manager to modify the resolved target.\n\t\t * \n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.addTarget\n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.removeTarget\n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.substituteTarget\n\t\t * \n\t\t */\n\t\tpublic boolean resolve(RelationInjectionManager injection);\n\t\t\n\t\t/**\n\t\t * Request to remove an injection.\n\t\t * \n\t\t * This method is invoked by a injection manager to signify that the\n\t\t * component wants to force the resolution of the relation the next\n\t\t * access\n\t\t * \n\t\t */\n\t\tpublic boolean unresolve(RelationInjectionManager injection);\n\t\t\n\t}",
"public interface RelationInjectionManager extends FieldInterceptor {\n\n\t/**\n\t * The interface of the external resolver that is used to bind this field. \n\t * \n\t */\n\tpublic static interface Resolver {\n\t\t\n\t\t/**\n\t\t * Registers an injection manager with a resolver.\n\t\t * \n\t\t * The resolver can asynchronously update the relation to modify the\n\t\t * binding.\n\t\t * \n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.addTarget\n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.removeTarget\n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.substituteTarget\n\t\t * \n\t\t */\n\t\tpublic void addInjection(RelationInjectionManager injection);\n\t\t\n\t\t/**\n\t\t * Request to lazily resolve an injection.\n\t\t * \n\t\t * This method is invoked by a injection manager to calculate its initial binding\n\t\t * when it is first accessed.\n\t\t * \n\t\t * The resolver must call back the manager to modify the resolved target.\n\t\t * \n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.addTarget\n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.removeTarget\n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.substituteTarget\n\t\t * \n\t\t */\n\t\tpublic boolean resolve(RelationInjectionManager injection);\n\t\t\n\t\t/**\n\t\t * Request to remove an injection.\n\t\t * \n\t\t * This method is invoked by a injection manager to signify that the\n\t\t * component wants to force the resolution of the relation the next\n\t\t * access\n\t\t * \n\t\t */\n\t\tpublic boolean unresolve(RelationInjectionManager injection);\n\t\t\n\t} \n\n\t/**\n\t * The relation that is managed by this manager\n\t */\n\tpublic abstract RelationDeclaration getRelation();\n\t\n\t/**\n\t * The relation injection that is managed by this manager\n\t */\n\tpublic abstract RequirerInstrumentation getRelationInjection();\n\n\t\n /**\n * Get an XML representation of the state of this injection\n */\n public abstract Element getDescription();\n\n /**\n * The current state of the manager. \n * \n * A specific manager implementation can have dependencies on some platform services that may\n * become unavailable. In that case the translation from APAM action to platform actions is no\n * longer possible; \n */\n \n public abstract boolean isValid();\n \n\t/**\n\t * Adds a new target to this injection\n\t */\n\tpublic abstract void addTarget(Component target);\n\n\t/**\n\t * Removes a target from the injection\n\t * \n\t * @param target\n\t */\n\tpublic abstract void removeTarget(Component target);\n\n\n}",
"public static MessageResolver getInfoMessageResolver(MessageInterface messageInterface) {\n\t\treturn new MessageBuilder().info().code(messageInterface.getMessageCode()).build();\n\t}",
"TypeDescription resolve(TypeDescription instrumentedType, TypeDescription.Generic parameterType);",
"public Method getResolvedFactoryMethod()\n/* */ {\n/* 293 */ synchronized (this.constructorArgumentLock) {\n/* 294 */ Object candidate = this.resolvedConstructorOrFactoryMethod;\n/* 295 */ return (candidate instanceof Method) ? (Method)candidate : null;\n/* */ }\n/* */ }",
"public interface MethodFactory extends ModuleSupportable\n{\n\t/**\n\tUsed to identify this interface when finding it with the Monitor.\n\t**/\n\tpublic static final String MODULE = \n\t \"com.splicemachine.db.iapi.store.access.conglomerate.MethodFactory\";\n\n\t/**\n\tReturn the default properties for this access method.\n\t**/\n\tProperties defaultProperties();\n\n\t/**\n\tReturn whether this access method implements the implementation\n\ttype given in the argument string.\n\t**/\n\tboolean supportsImplementation(String implementationId);\n\n\t/**\n\tReturn the primary implementation type for this access method.\n\tAlthough an access method may implement more than one implementation\n\ttype, this is the expected one. The access manager will put the\n\tprimary implementation type in a hash table for fast access.\n\t**/\n\tString primaryImplementationType();\n\n\t/**\n\tReturn whether this access method supports the format supplied in\n\tthe argument.\n\t**/\n\tboolean supportsFormat(UUID formatid);\n\n\t/**\n\tReturn the primary format that this access method supports.\n\tAlthough an access method may support more than one format, this\n\tis the usual one. the access manager will put the primary format\n\tin a hash table for fast access to the appropriate method.\n\t**/\n\tUUID primaryFormat();\n}",
"public interface ParamResolverFactory<T> {\n ParamResolver<T> createParamResolver(Parameter parameter);\n}",
"public abstract T adaptResult(F solution);",
"public interface IntrospectionFactory {\n\n /**\n * Shortcut for first parameter in parameter property path.\n */\n String ZERO_PARAMETER_ALIAS = \"value\";\n\n /**\n * Check if given introspection factory supports abstract classes or not.\n * @return {@literal true} if given introspection factory supports abstract\n * classes, otherwise only interface-driven mappers are supported.\n */\n boolean isAbstractClassesSupported();\n\n /**\n * Build setter instance.\n * \n * @param beanClass bean class\n * @param path nested property path\n * @return setter instance\n */\n Setter buildSetter(Class<?> beanClass, String path);\n\n /**\n * Build getter instance.\n * \n * @param beanClass bean class\n * @param path nested property path\n * @return getter instance\n */\n Getter buildGetter(Class<?> beanClass, String path);\n\n /**\n * Build parameter getter instance.\n * \n * @param types parameter types\n * @param path nested property path\n * @return getter instance\n */\n Getter buildParameterGetter(Type[] types, String path);\n\n /**\n * Build parameter setter instance. TODO: Write test on this!\n * \n * @param types parameter types\n * @param path nested property path\n * @return setter instance\n */\n Setter buildParameterSetter(Type[] types, String path);\n\n /**\n * Get property type.\n * \n * @param beanClass bean class\n * @param property nested property path\n * @return property type\n */\n Type getPropertyType(Class<?> beanClass, String property);\n\n /**\n * Get property type from parameter-based property path.\n * \n * @param types parameter types\n * @param path nested property path\n * @return property type\n */\n Type getParameterType(Type[] types, String path);\n\n /**\n * Create mapper instance.\n * \n * @param <T> mapper type\n * @param interfaze mapper interface\n * @param config mapper configuration\n * @param delegate query delegate\n * @return mapper instance\n */\n <T> T createMapper(Class<T> interfaze, InternalConfiguration config, QueryDelegate delegate);\n}",
"public final Object dynamicMethod(MethodToInvoke methodToInvoke, Object obj, Object obj2) {\n boolean z = false;\n switch (C7137k1.f17675a[methodToInvoke.ordinal()]) {\n case 1:\n return new C7008b();\n case 2:\n return f17322g;\n case 3:\n return null;\n case 4:\n return new C7009a(null);\n case 5:\n Visitor visitor = (Visitor) obj;\n C7008b bVar = (C7008b) obj2;\n boolean z2 = this.f17324e != 0;\n int i = this.f17324e;\n if (bVar.f17324e != 0) {\n z = true;\n }\n this.f17324e = visitor.visitInt(z2, i, z, bVar.f17324e);\n this.f17325f = (C7351j) visitor.visitMessage(this.f17325f, bVar.f17325f);\n MergeFromVisitor mergeFromVisitor = MergeFromVisitor.INSTANCE;\n return this;\n case 6:\n CodedInputStream codedInputStream = (CodedInputStream) obj;\n ExtensionRegistryLite extensionRegistryLite = (ExtensionRegistryLite) obj2;\n while (!z) {\n try {\n int readTag = codedInputStream.readTag();\n if (readTag != 0) {\n if (readTag == 8) {\n this.f17324e = codedInputStream.readEnum();\n } else if (readTag == 18) {\n Builder builder = this.f17325f != null ? (C7352a) this.f17325f.toBuilder() : null;\n this.f17325f = (C7351j) codedInputStream.readMessage(C7351j.parser(), extensionRegistryLite);\n if (builder != null) {\n builder.mergeFrom(this.f17325f);\n this.f17325f = (C7351j) builder.buildPartial();\n }\n } else if (!codedInputStream.skipField(readTag)) {\n }\n }\n z = true;\n } catch (InvalidProtocolBufferException e) {\n throw new RuntimeException(e.setUnfinishedMessage(this));\n } catch (IOException e2) {\n throw new RuntimeException(new InvalidProtocolBufferException(e2.getMessage()).setUnfinishedMessage(this));\n }\n }\n break;\n case 7:\n break;\n case 8:\n if (f17323h == null) {\n synchronized (C7008b.class) {\n if (f17323h == null) {\n f17323h = new DefaultInstanceBasedParser(f17322g);\n }\n }\n }\n return f17323h;\n default:\n throw new UnsupportedOperationException();\n }\n return f17322g;\n }",
"public final Object dynamicMethod(MethodToInvoke methodToInvoke, Object obj, Object obj2) {\n switch (C7383l1.f18408a[methodToInvoke.ordinal()]) {\n case 1:\n return new C7447q1();\n case 2:\n return f18630j;\n case 3:\n this.f18636i.makeImmutable();\n return null;\n case 4:\n return new C7448a(null);\n case 5:\n Visitor visitor = (Visitor) obj;\n C7447q1 q1Var = (C7447q1) obj2;\n this.f18633f = visitor.visitString(!this.f18633f.isEmpty(), this.f18633f, !q1Var.f18633f.isEmpty(), q1Var.f18633f);\n this.f18634g = visitor.visitString(!this.f18634g.isEmpty(), this.f18634g, !q1Var.f18634g.isEmpty(), q1Var.f18634g);\n this.f18635h = visitor.visitString(!this.f18635h.isEmpty(), this.f18635h, true ^ q1Var.f18635h.isEmpty(), q1Var.f18635h);\n this.f18636i = visitor.visitList(this.f18636i, q1Var.f18636i);\n if (visitor == MergeFromVisitor.INSTANCE) {\n this.f18632e |= q1Var.f18632e;\n }\n return this;\n case 6:\n CodedInputStream codedInputStream = (CodedInputStream) obj;\n ExtensionRegistryLite extensionRegistryLite = (ExtensionRegistryLite) obj2;\n boolean z = false;\n while (!z) {\n try {\n int readTag = codedInputStream.readTag();\n if (readTag != 0) {\n if (readTag == 10) {\n this.f18633f = codedInputStream.readStringRequireUtf8();\n } else if (readTag == 18) {\n this.f18634g = codedInputStream.readStringRequireUtf8();\n } else if (readTag == 26) {\n this.f18635h = codedInputStream.readStringRequireUtf8();\n } else if (readTag == 34) {\n if (!this.f18636i.isModifiable()) {\n this.f18636i = GeneratedMessageLite.mutableCopy(this.f18636i);\n }\n this.f18636i.add(codedInputStream.readMessage(UserProto$User.parser(), extensionRegistryLite));\n } else if (!codedInputStream.skipField(readTag)) {\n }\n }\n z = true;\n } catch (InvalidProtocolBufferException e) {\n throw new RuntimeException(e.setUnfinishedMessage(this));\n } catch (IOException e2) {\n throw new RuntimeException(new InvalidProtocolBufferException(e2.getMessage()).setUnfinishedMessage(this));\n }\n }\n break;\n case 7:\n break;\n case 8:\n if (f18631k == null) {\n synchronized (C7447q1.class) {\n if (f18631k == null) {\n f18631k = new DefaultInstanceBasedParser(f18630j);\n }\n }\n }\n return f18631k;\n default:\n throw new UnsupportedOperationException();\n }\n return f18630j;\n }",
"protected final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke paramMethodToInvoke, Object paramObject1, Object paramObject2) {\n }",
"protected final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke paramMethodToInvoke, Object paramObject1, Object paramObject2) {\n }",
"private void setResolverEntry(Class<? extends Request> key, HandlerFactory factory) {\n resolver.put(key.getCanonicalName(), factory);\n }",
"public final Object dynamicMethod(MethodToInvoke methodToInvoke, Object obj, Object obj2) {\n boolean z = false;\n switch (C7331h.f18216a[methodToInvoke.ordinal()]) {\n case 1:\n return new C7351j();\n case 2:\n return f18299i;\n case 3:\n this.f18304h.makeImmutable();\n return null;\n case 4:\n return new C7352a(null);\n case 5:\n Visitor visitor = (Visitor) obj;\n C7351j jVar = (C7351j) obj2;\n this.f18302f = (C7339i) visitor.visitMessage(this.f18302f, jVar.f18302f);\n boolean z2 = this.f18303g != 0;\n int i = this.f18303g;\n if (jVar.f18303g != 0) {\n z = true;\n }\n this.f18303g = visitor.visitInt(z2, i, z, jVar.f18303g);\n this.f18304h = visitor.visitMap(this.f18304h, jVar.m18037b());\n if (visitor == MergeFromVisitor.INSTANCE) {\n this.f18301e |= jVar.f18301e;\n }\n return this;\n case 6:\n CodedInputStream codedInputStream = (CodedInputStream) obj;\n ExtensionRegistryLite extensionRegistryLite = (ExtensionRegistryLite) obj2;\n while (!z) {\n try {\n int readTag = codedInputStream.readTag();\n if (readTag != 0) {\n if (readTag == 10) {\n Builder builder = this.f18302f != null ? (C7340a) this.f18302f.toBuilder() : null;\n this.f18302f = (C7339i) codedInputStream.readMessage(C7339i.parser(), extensionRegistryLite);\n if (builder != null) {\n builder.mergeFrom(this.f18302f);\n this.f18302f = (C7339i) builder.buildPartial();\n }\n } else if (readTag == 16) {\n this.f18303g = codedInputStream.readInt32();\n } else if (readTag == 26) {\n if (!this.f18304h.isMutable()) {\n this.f18304h = this.f18304h.mutableCopy();\n }\n C7353b.f18305a.parseInto(this.f18304h, codedInputStream, extensionRegistryLite);\n } else if (!codedInputStream.skipField(readTag)) {\n }\n }\n z = true;\n } catch (InvalidProtocolBufferException e) {\n throw new RuntimeException(e.setUnfinishedMessage(this));\n } catch (IOException e2) {\n throw new RuntimeException(new InvalidProtocolBufferException(e2.getMessage()).setUnfinishedMessage(this));\n }\n }\n break;\n case 7:\n break;\n case 8:\n if (f18300j == null) {\n synchronized (C7351j.class) {\n if (f18300j == null) {\n f18300j = new DefaultInstanceBasedParser(f18299i);\n }\n }\n }\n return f18300j;\n default:\n throw new UnsupportedOperationException();\n }\n return f18299i;\n }",
"@Specialization(guards = {\"resolver.getPromise() == result\"})\n public SResolver selfResolution(final SResolver resolver, final SPromise result,\n final boolean isBreakpointOnPromiseResolution) {\n return resolver;\n }",
"public void _addDeserializerFactoryMethods(DeserializationContext ctxt, BeanDescription beanDesc, VisibilityChecker<?> vchecker, AnnotationIntrospector intr, CreatorCollector creators, Map<AnnotatedWithParams, BeanPropertyDefinition[]> creatorParams) throws JsonMappingException {\n BeanPropertyDefinition argDef;\n DeserializationConfig config = ctxt.getConfig();\n for (AnnotatedMethod factory : beanDesc.getFactoryMethods()) {\n boolean isCreator = intr.hasCreatorAnnotation(factory);\n int argCount = factory.getParameterCount();\n if (argCount != 0) {\n BeanPropertyDefinition[] propDefs = (BeanPropertyDefinition[]) creatorParams.get(factory);\n if (argCount == 1) {\n if (propDefs == null) {\n argDef = null;\n } else {\n argDef = propDefs[0];\n }\n if (!_checkIfCreatorPropertyBased(intr, factory, argDef)) {\n _handleSingleArgumentFactory(config, beanDesc, vchecker, intr, creators, factory, isCreator);\n if (argDef != null) {\n ((POJOPropertyBuilder) argDef).removeConstructors();\n }\n }\n } else if (!isCreator) {\n continue;\n }\n AnnotatedParameter nonAnnotatedParam = null;\n SettableBeanProperty[] properties = new SettableBeanProperty[argCount];\n int implicitNameCount = 0;\n int explicitNameCount = 0;\n int injectCount = 0;\n int i = 0;\n while (i < argCount) {\n AnnotatedParameter param = factory.getParameter(i);\n BeanPropertyDefinition propDef = propDefs == null ? null : propDefs[i];\n Object injectId = intr.findInjectableValueId(param);\n PropertyName name = propDef == null ? null : propDef.getFullName();\n if (propDef != null && propDef.isExplicitlyNamed()) {\n explicitNameCount++;\n properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, injectId);\n } else if (injectId != null) {\n injectCount++;\n properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, injectId);\n } else if (intr.findUnwrappingNameTransformer(param) != null) {\n properties[i] = constructCreatorProperty(ctxt, beanDesc, UNWRAPPED_CREATOR_PARAM_NAME, i, param, null);\n implicitNameCount++;\n } else if (isCreator && name != null && !name.isEmpty()) {\n implicitNameCount++;\n properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, injectId);\n } else if (nonAnnotatedParam == null) {\n nonAnnotatedParam = param;\n }\n i++;\n }\n int namedCount = explicitNameCount + implicitNameCount;\n if (isCreator || explicitNameCount > 0 || injectCount > 0) {\n if (namedCount + injectCount == argCount) {\n creators.addPropertyCreator(factory, isCreator, properties);\n } else if (explicitNameCount == 0 && injectCount + 1 == argCount) {\n creators.addDelegatingCreator(factory, isCreator, properties);\n } else {\n throw new IllegalArgumentException(\"Argument #\" + nonAnnotatedParam.getIndex() + \" of factory method \" + factory + \" has no property name annotation; must have name when multiple-parameter constructor annotated as Creator\");\n }\n }\n } else if (isCreator) {\n creators.setDefaultCreator(factory);\n }\n }\n }",
"public interface SomeInterface {\n ViewResolver testMethod();\n}",
"public interface FieldManager extends FieldConsumer, FieldSupplier\r\n{\r\n}",
"@Override\n public void resolve(MapChoice mapChoice, Query query, Result result, Resolution resolution) {\n assertEquals(\"myMethod\",mapChoice.getMethod());\n super.resolve(mapChoice,query,result,resolution);\n }",
"FunDef resolve(\n Exp[] args,\n Validator validator,\n List<Conversion> conversions);",
"protected VariableResolver createExpressionBuilderResolver() {\n\t\tMap map = new HashMap();\n\t\t\n\t\tIterator i = this.variableToDatabaseMapping.keySet().iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tString varName = (String) i.next();\n\t\t\tmap.put(varName, this.variableToDatabaseMapping.get(varName));\n\t\t}\n\t\treturn new VariableMapper(map);\n\t}",
"protected interface Resolver {\n\n /**\n * Adjusts a module graph if necessary.\n *\n * @param classLoader The class loader to adjust.\n * @param target The targeted class for which a proxy is created.\n */\n void accept(@MaybeNull ClassLoader classLoader, Class<?> target);\n\n /**\n * An action to create a resolver.\n */\n enum CreationAction implements PrivilegedAction<Resolver> {\n\n /**\n * The singleton instance.\n */\n INSTANCE;\n\n /**\n * {@inheritDoc}\n */\n @SuppressFBWarnings(value = \"REC_CATCH_EXCEPTION\", justification = \"Exception should not be rethrown but trigger a fallback.\")\n public Resolver run() {\n try {\n Class<?> module = Class.forName(\"java.lang.Module\", false, null);\n return new ForModuleSystem(Class.class.getMethod(\"getModule\"),\n module.getMethod(\"isExported\", String.class),\n module.getMethod(\"addExports\", String.class, module),\n ClassLoader.class.getMethod(\"getUnnamedModule\"));\n } catch (Exception ignored) {\n return NoOp.INSTANCE;\n }\n }\n }\n\n /**\n * A non-operational resolver for VMs that do not support the module system.\n */\n enum NoOp implements Resolver {\n\n /**\n * The singleton instance.\n */\n INSTANCE;\n\n /**\n * {@inheritDoc}\n */\n public void accept(@MaybeNull ClassLoader classLoader, Class<?> target) {\n /* do nothing */\n }\n }\n\n /**\n * A resolver for VMs that do support the module system.\n */\n @HashCodeAndEqualsPlugin.Enhance\n class ForModuleSystem implements Resolver {\n\n /**\n * The {@code java.lang.Class#getModule} method.\n */\n private final Method getModule;\n\n /**\n * The {@code java.lang.Module#isExported} method.\n */\n private final Method isExported;\n\n /**\n * The {@code java.lang.Module#addExports} method.\n */\n private final Method addExports;\n\n /**\n * The {@code java.lang.ClassLoader#getUnnamedModule} method.\n */\n private final Method getUnnamedModule;\n\n /**\n * Creates a new resolver for a VM that supports the module system.\n *\n * @param getModule The {@code java.lang.Class#getModule} method.\n * @param isExported The {@code java.lang.Module#isExported} method.\n * @param addExports The {@code java.lang.Module#addExports} method.\n * @param getUnnamedModule The {@code java.lang.ClassLoader#getUnnamedModule} method.\n */\n protected ForModuleSystem(Method getModule,\n Method isExported,\n Method addExports,\n Method getUnnamedModule) {\n this.getModule = getModule;\n this.isExported = isExported;\n this.addExports = addExports;\n this.getUnnamedModule = getUnnamedModule;\n }\n\n /**\n * {@inheritDoc}\n */\n @SuppressFBWarnings(value = \"REC_CATCH_EXCEPTION\", justification = \"Exception should always be wrapped for clarity.\")\n public void accept(@MaybeNull ClassLoader classLoader, Class<?> target) {\n Package location = target.getPackage();\n if (location != null) {\n try {\n Object module = getModule.invoke(target);\n if (!(Boolean) isExported.invoke(module, location.getName())) {\n addExports.invoke(module, location.getName(), getUnnamedModule.invoke(classLoader));\n }\n } catch (Exception exception) {\n throw new IllegalStateException(\"Failed to adjust module graph for dispatcher\", exception);\n }\n }\n }\n }\n }",
"public interface ospector\n{\n\n public abstract void addAbstractTypeResolver(AbstractTypeResolver abstracttyperesolver);\n\n public abstract void addBeanDeserializerModifier(BeanDeserializerModifier beandeserializermodifier);\n\n public abstract void addBeanSerializerModifier(BeanSerializerModifier beanserializermodifier);\n\n public abstract void addDeserializationProblemHandler(DeserializationProblemHandler deserializationproblemhandler);\n\n public abstract void addDeserializers(Deserializers deserializers);\n\n public abstract void addKeyDeserializers(KeyDeserializers keydeserializers);\n\n public abstract void addKeySerializers(Serializers serializers);\n\n public abstract void addSerializers(Serializers serializers);\n\n public abstract void addTypeModifier(TypeModifier typemodifier);\n\n public abstract void addValueInstantiators(ValueInstantiators valueinstantiators);\n\n public abstract void appendAnnotationIntrospector(AnnotationIntrospector annotationintrospector);\n\n public abstract w getMapperVersion();\n\n public abstract s getOwner();\n\n public abstract TypeFactory getTypeFactory();\n\n public abstract void insertAnnotationIntrospector(AnnotationIntrospector annotationintrospector);\n\n public abstract boolean isEnabled(f f);\n\n public abstract boolean isEnabled(i i);\n\n public abstract boolean isEnabled(n n);\n\n public abstract boolean isEnabled(DeserializationFeature deserializationfeature);\n\n public abstract boolean isEnabled(MapperFeature mapperfeature);\n\n public abstract boolean isEnabled(SerializationFeature serializationfeature);\n\n public transient abstract void registerSubtypes(NamedType anamedtype[]);\n\n public transient abstract void registerSubtypes(Class aclass[]);\n\n public abstract void setClassIntrospector(ClassIntrospector classintrospector);\n\n public abstract void setMixInAnnotations(Class class1, Class class2);\n}",
"public Staff getResolver(){return resolver;}",
"public interface Resolver extends AdaptrisComponent {\r\n\r\n /**\r\n * Create facts for insertion into the Rule Engine\r\n * \r\n * @param msg the AdaptrisMessage\r\n * @return a list object which will be passed in to the rule engine.\r\n * @throws RuleException wrapping any underlying exception.\r\n */\r\n Object[] create(AdaptrisMessage msg) throws RuleException;\r\n\r\n /**\r\n * Result result of the rule engine to the AdaptrisMessage\r\n * <p>\r\n * This simply provides the objects previously created with\r\n * {@link #create(AdaptrisMessage)}, so it may have no meaning if your\r\n * concrete implementation maintains its own state.\r\n * </p>\r\n * \r\n * @param result the AdaptrisMessage\r\n * @param src the objects that were inserted into the rule engine.\r\n * @throws RuleException wrapping any underlying exception.\r\n */\r\n void resolve(Object[] src, AdaptrisMessage result) throws RuleException;\r\n}",
"public interface GetSerializerCallback\r\n{\r\n /**\r\n * Returns the serializer which shall be used for the specified response receiver id.\r\n * @param responseReceiverId response receiver id for which the implementation shall return the serializer.\r\n * @return\r\n */\r\n ISerializer invoke(String responseReceiverId);\r\n}",
"public final Object dynamicMethod(MethodToInvoke methodToInvoke, Object obj, Object obj2) {\n boolean z = false;\n switch (C7137k1.f17675a[methodToInvoke.ordinal()]) {\n case 1:\n return new C7010c();\n case 2:\n return f17326h;\n case 3:\n this.f17329f.makeImmutable();\n return null;\n case 4:\n return new C7011a(null);\n case 5:\n Visitor visitor = (Visitor) obj;\n C7010c cVar = (C7010c) obj2;\n this.f17329f = visitor.visitList(this.f17329f, cVar.f17329f);\n boolean z2 = this.f17330g != 0;\n int i = this.f17330g;\n if (cVar.f17330g != 0) {\n z = true;\n }\n this.f17330g = visitor.visitInt(z2, i, z, cVar.f17330g);\n if (visitor == MergeFromVisitor.INSTANCE) {\n this.f17328e |= cVar.f17328e;\n }\n return this;\n case 6:\n CodedInputStream codedInputStream = (CodedInputStream) obj;\n ExtensionRegistryLite extensionRegistryLite = (ExtensionRegistryLite) obj2;\n while (!z) {\n try {\n int readTag = codedInputStream.readTag();\n if (readTag != 0) {\n if (readTag == 10) {\n if (!this.f17329f.isModifiable()) {\n this.f17329f = GeneratedMessageLite.mutableCopy(this.f17329f);\n }\n this.f17329f.add(codedInputStream.readMessage(C7351j.parser(), extensionRegistryLite));\n } else if (readTag == 16) {\n this.f17330g = codedInputStream.readEnum();\n } else if (!codedInputStream.skipField(readTag)) {\n }\n }\n z = true;\n } catch (InvalidProtocolBufferException e) {\n throw new RuntimeException(e.setUnfinishedMessage(this));\n } catch (IOException e2) {\n throw new RuntimeException(new InvalidProtocolBufferException(e2.getMessage()).setUnfinishedMessage(this));\n }\n }\n break;\n case 7:\n break;\n case 8:\n if (f17327i == null) {\n synchronized (C7010c.class) {\n if (f17327i == null) {\n f17327i = new DefaultInstanceBasedParser(f17326h);\n }\n }\n }\n return f17327i;\n default:\n throw new UnsupportedOperationException();\n }\n return f17326h;\n }",
"protected interface TypeLocator {\n\n /**\n * Resolves the target type.\n *\n * @param instrumentedType The instrumented type.\n * @param parameterType The type of the target parameter.\n * @return The proxy type.\n */\n TypeDescription resolve(TypeDescription instrumentedType, TypeDescription.Generic parameterType);\n\n /**\n * A type locator that yields the instrumented type.\n */\n enum ForInstrumentedType implements TypeLocator {\n\n /**\n * The singleton instance.\n */\n INSTANCE;\n\n /**\n * {@inheritDoc}\n */\n public TypeDescription resolve(TypeDescription instrumentedType, TypeDescription.Generic parameterType) {\n return instrumentedType;\n }\n }\n\n /**\n * A type locator that yields the target parameter's type.\n */\n enum ForParameterType implements TypeLocator {\n\n /**\n * The singleton instance.\n */\n INSTANCE;\n\n /**\n * {@inheritDoc}\n */\n public TypeDescription resolve(TypeDescription instrumentedType, TypeDescription.Generic parameterType) {\n TypeDescription erasure = parameterType.asErasure();\n return erasure.equals(instrumentedType)\n ? instrumentedType\n : erasure;\n }\n }\n\n /**\n * A type locator that returns a given type.\n */\n @HashCodeAndEqualsPlugin.Enhance\n class ForType implements TypeLocator {\n\n /**\n * The type to be returned upon resolution.\n */\n private final TypeDescription typeDescription;\n\n /**\n * Creates a new type locator for a given type.\n *\n * @param typeDescription The type to be returned upon resolution.\n */\n protected ForType(TypeDescription typeDescription) {\n this.typeDescription = typeDescription;\n }\n\n /**\n * Resolves a type locator based upon an annotation value.\n *\n * @param typeDescription The annotation's value.\n * @return The appropriate type locator.\n */\n protected static TypeLocator of(TypeDescription typeDescription) {\n if (typeDescription.represents(void.class)) {\n return ForParameterType.INSTANCE;\n } else if (typeDescription.represents(TargetType.class)) {\n return ForInstrumentedType.INSTANCE;\n } else if (typeDescription.isPrimitive() || typeDescription.isArray()) {\n throw new IllegalStateException(\"Cannot assign proxy to \" + typeDescription);\n } else {\n return new ForType(typeDescription);\n }\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeDescription resolve(TypeDescription instrumentedType, TypeDescription.Generic parameterType) {\n if (!typeDescription.isAssignableTo(parameterType.asErasure())) {\n throw new IllegalStateException(\"Impossible to assign \" + typeDescription + \" to parameter of type \" + parameterType);\n }\n return typeDescription;\n }\n }\n }",
"interface TypeMap {\n\n\tCompiledFieldReference makeFieldReference(CollectedItem original, Getter inputGetter, CompiledGetterSetterCache cache) throws CompileException;\n\n}",
"public static void visitMethodInformation(final Map<String, List<MethodInfo>> projectMethodInformation,\n final FactNameToFQCNHandleRegistry registry) {\n for (Map.Entry<String, List<MethodInfo>> e : projectMethodInformation.entrySet()) {\n final String miQualifiedType = e.getKey();\n final String miTypeName = getTypeName(miQualifiedType);\n registry.add(miTypeName,\n miQualifiedType);\n }\n }",
"protected void createGetRttiMethod() {\n MethodVisitor cv = m_cw.visitMethod(ACC_PUBLIC, GET_RTTI_METHOD_NAME, GET_RTTI_METHOD_SIGNATURE, null, null);\n\n // new FieldRttiImpl( .. )\n cv.visitTypeInsn(NEW, FIELD_RTTI_IMPL_CLASS_NAME);\n cv.visitInsn(DUP);\n cv.visitFieldInsn(GETSTATIC, m_joinPointClassName, SIGNATURE_FIELD_NAME, FIELD_SIGNATURE_IMPL_CLASS_SIGNATURE);\n cv.visitVarInsn(ALOAD, 0);\n cv.visitFieldInsn(GETFIELD, m_joinPointClassName, CALLER_INSTANCE_FIELD_NAME, m_callerClassSignature);\n cv.visitVarInsn(ALOAD, 0);\n cv.visitFieldInsn(GETFIELD, m_joinPointClassName, CALLEE_INSTANCE_FIELD_NAME, m_calleeClassSignature);\n cv.visitMethodInsn(\n INVOKESPECIAL, FIELD_RTTI_IMPL_CLASS_NAME, INIT_METHOD_NAME, FIELD_RTTI_IMPL_INIT_SIGNATURE, false\n );\n\n // set the value\n cv.visitInsn(DUP);\n if (AsmHelper.isPrimitive(m_returnType)) {\n AsmHelper.prepareWrappingOfPrimitiveType(cv, m_returnType);\n cv.visitVarInsn(ALOAD, 0);\n cv.visitFieldInsn(GETFIELD, m_joinPointClassName, RETURN_VALUE_FIELD_NAME, m_returnType.getDescriptor());\n AsmHelper.wrapPrimitiveType(cv, m_returnType);\n } else {\n cv.visitVarInsn(ALOAD, 0);\n cv.visitFieldInsn(GETFIELD, m_joinPointClassName, RETURN_VALUE_FIELD_NAME, m_returnType.getDescriptor());\n }\n cv.visitMethodInsn(\n INVOKEVIRTUAL,\n FIELD_RTTI_IMPL_CLASS_NAME,\n SET_FIELD_VALUE_METHOD_NAME,\n SET_FIELD_VALUE_METHOD_SIGNATURE, \n false\n );\n\n cv.visitInsn(ARETURN);\n cv.visitMaxs(0, 0);\n }",
"public static CallSite metafactory(MethodHandles.Lookup caller, String invokedName,\n MethodType invokedType, MethodHandles.Lookup front, String dummy) throws ReflectiveOperationException {\n // System.out.println(\"metafactory : caller = [\" + caller + \"], invokedName = [\" + invokedName + \"], invokedType = [\" + invokedType + \"], front = [\" + front + \"], dummy = [\" + dummy + \"]\");\n List<Class<?>> params = invokedType.parameterList();\n if (params.isEmpty()) {\n throw new AssertionError(\"Missing dynamic parameters!\");\n }\n MethodHandle res = /*front*/caller.findStatic(RT.class, invokedName, invokedType);\n return new ConstantCallSite(res);\n }",
"@Override\n public void analyze(Analyzer analyzer) throws VerifierException {\n VarTypes[] paramTypes = this.paramList.getParamsTypes(analyzer);\n if (!analyzer.has(this.callee, paramTypes)) {\n StringJoiner joiner = new StringJoiner(\", \");\n for (VarTypes type : paramTypes) {\n joiner.add(type.getName());\n }\n String signature = String.format(\"%s(%s)\", this.callee, joiner.toString());\n throw new InvalidMethodException(signature);\n }\n }",
"public PatchProxy fieldManager(String fieldManager) {\n put(\"fieldManager\", fieldManager);\n return this;\n }",
"public final Object dynamicMethod(MethodToInvoke methodToInvoke, Object obj, Object obj2) {\n switch (C8104i0.f20545a[methodToInvoke.ordinal()]) {\n case 1:\n return new C8024d1();\n case 2:\n return f20365h;\n case 3:\n return null;\n case 4:\n return new C8025a(null);\n case 5:\n Visitor visitor = (Visitor) obj;\n C8024d1 d1Var = (C8024d1) obj2;\n this.f20367e = visitor.visitString(!this.f20367e.isEmpty(), this.f20367e, !d1Var.f20367e.isEmpty(), d1Var.f20367e);\n this.f20368f = visitor.visitString(!this.f20368f.isEmpty(), this.f20368f, !d1Var.f20368f.isEmpty(), d1Var.f20368f);\n this.f20369g = visitor.visitString(!this.f20369g.isEmpty(), this.f20369g, true ^ d1Var.f20369g.isEmpty(), d1Var.f20369g);\n MergeFromVisitor mergeFromVisitor = MergeFromVisitor.INSTANCE;\n return this;\n case 6:\n CodedInputStream codedInputStream = (CodedInputStream) obj;\n ExtensionRegistryLite extensionRegistryLite = (ExtensionRegistryLite) obj2;\n boolean z = false;\n while (!z) {\n try {\n int readTag = codedInputStream.readTag();\n if (readTag != 0) {\n if (readTag == 10) {\n this.f20367e = codedInputStream.readStringRequireUtf8();\n } else if (readTag == 18) {\n this.f20368f = codedInputStream.readStringRequireUtf8();\n } else if (readTag == 26) {\n this.f20369g = codedInputStream.readStringRequireUtf8();\n } else if (!codedInputStream.skipField(readTag)) {\n }\n }\n z = true;\n } catch (InvalidProtocolBufferException e) {\n throw new RuntimeException(e.setUnfinishedMessage(this));\n } catch (IOException e2) {\n throw new RuntimeException(new InvalidProtocolBufferException(e2.getMessage()).setUnfinishedMessage(this));\n }\n }\n break;\n case 7:\n break;\n case 8:\n if (f20366i == null) {\n synchronized (C8024d1.class) {\n if (f20366i == null) {\n f20366i = new DefaultInstanceBasedParser(f20365h);\n }\n }\n }\n return f20366i;\n default:\n throw new UnsupportedOperationException();\n }\n return f20365h;\n }",
"public PatchIngress fieldManager(String fieldManager) {\n put(\"fieldManager\", fieldManager);\n return this;\n }",
"public interface AlignmentResolver {\n\n AlignmentType getAlignment(Sun sun, List<Planet> planets, int days);\n\n}",
"public PatchDNS fieldManager(String fieldManager) {\n put(\"fieldManager\", fieldManager);\n return this;\n }",
"interface AgentTypeBehaviourFactory {\n\n /**\n * Forms OwnDesire WithAbstractIntention\n */\n OwnDesire.WithAbstractIntention formOwnDesireWithAbstractIntention(DesireKey desireKey);\n\n /**\n * Forms OwnDesire WithAbstractIntention with parent node\n */\n OwnDesire.WithAbstractIntention formOwnDesireWithAbstractIntention(DesireKey desireKey,\n DesireKey parentDesireKey,\n DesireParameters parentsDesireParameters);\n\n /**\n * Forms OwnDesire with reasoning command\n */\n OwnDesire.Reasoning formOwnDesireWithReasoningCommand(DesireKey desireKey);\n\n /**\n * Forms OwnDesire with reasoning command with parent node\n */\n OwnDesire.Reasoning formOwnDesireWithReasoningCommand(DesireKey desireKey,\n DesireKey parentDesireKey,\n DesireParameters parentsDesireParameters);\n\n /**\n * Forms OwnDesire with reasoning command\n */\n OwnDesire.Acting formOwnDesireWithActingCommand(DesireKey desireKey);\n\n /**\n * Forms OwnDesire with reasoning command with parent node\n */\n OwnDesire.Acting formOwnDesireWithActingCommand(DesireKey desireKey, DesireKey parentDesireKey,\n DesireParameters parentsDesireParameters);\n\n /**\n * Forms DesireForOthers\n */\n DesireForOthers formDesireForOthers(DesireKey desireKey);\n\n /**\n * Forms DesireForOthers with parent node\n */\n DesireForOthers formDesireForOthers(DesireKey desireKey, DesireKey parentDesireKey,\n DesireParameters parentsDesireParameters);\n\n /**\n * Forms DesireFromAnotherAgent WithAbstractIntention\n */\n Optional<DesireFromAnotherAgent.WithAbstractIntention> formDesireFromOtherAgentWithAbstractIntention(\n SharedDesireForAgents desireForAgents);\n\n /**\n * Forms DesireFromAnotherAgent WithAbstractIntention\n */\n Optional<DesireFromAnotherAgent.WithIntentionWithPlan> formDesireFromOtherAgentWithIntentionWithPlan(\n SharedDesireForAgents desireForAgents);\n\n}",
"public final Field invoke() {\n f d = ac.ewF.d(this.this$0.aYM());\n Field field = null;\n if (d instanceof c) {\n c cVar = (c) d;\n ad aYF = cVar.aYF();\n f.a a = j.eMR.a(cVar.aYG(), cVar.aYI(), cVar.aYJ());\n if (a != null) {\n Class enclosingClass;\n if (l.e(aYF) || j.g(cVar.aYG())) {\n enclosingClass = this.this$0.aYP().aXV().getEnclosingClass();\n } else {\n k bbv = aYF.bbv();\n if (bbv instanceof d) {\n enclosingClass = ae.a((d) bbv);\n } else {\n enclosingClass = this.this$0.aYP().aXV();\n }\n }\n if (enclosingClass != null) {\n try {\n field = enclosingClass.getDeclaredField(a.getName());\n } catch (NoSuchFieldException unused) {\n return field;\n }\n }\n }\n } else if (d instanceof f.a) {\n field = ((f.a) d).getField();\n } else if (!((d instanceof b) || (d instanceof f.d))) {\n throw new NoWhenBranchMatchedException();\n }\n }",
"private <T> MethodDispatcherInfo createMethodDispatcherInfo (final Class<T> cls, final Method method) {\n\t\tif (!CompletableFuture.class.isAssignableFrom (method.getReturnType ())) {\r\n\t\t\tthrow new IllegalArgumentException (\"Method \" + cls.getCanonicalName () + \"#\" + method.getName () + \" should return \" + CompletableFuture.class.getCanonicalName ());\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tfinal MethodHandle methodHandle = MethodHandles.lookup ().unreflect (method);\r\n\t\t\t\r\n\t\t\treturn new MethodDispatcherInfo (new MethodReference (cls, method.getName (), Arrays.asList (method.getParameterTypes ())), methodHandle);\r\n\t\t} catch (IllegalAccessException e) {\r\n\t\t\tthrow new RuntimeException (e);\r\n\t\t}\r\n\t}",
"public interface RpcProcessorFactory {\n\n\n RpcProcessor getProcessor(\n String rpcMethod\n );\n\n\n}",
"public InlineClassAwareCaller(kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor r8, kotlin.reflect.jvm.internal.calls.Caller<? extends M> r9, boolean r10) {\n /*\n r7 = this;\n r7.<init>()\n r7.caller = r9\n r7.isDefault = r10\n kotlin.reflect.jvm.internal.impl.types.KotlinType r9 = r8.getReturnType()\n r10 = 0\n if (r9 == 0) goto L_0x0180\n java.lang.String r0 = \"descriptor.returnType!!\"\n kotlin.jvm.internal.Intrinsics.checkReturnedValueIsNotNull(r9, r0)\n java.lang.Class r9 = kotlin.reflect.jvm.internal.calls.InlineClassAwareCallerKt.toInlineClass(r9)\n if (r9 == 0) goto L_0x001e\n java.lang.reflect.Method r9 = kotlin.reflect.jvm.internal.calls.InlineClassAwareCallerKt.getBoxMethod(r9, r8)\n goto L_0x001f\n L_0x001e:\n r9 = r10\n L_0x001f:\n boolean r0 = kotlin.reflect.jvm.internal.impl.resolve.InlineClassesUtilsKt.isGetterOfUnderlyingPropertyOfInlineClass(r8)\n r1 = 0\n if (r0 == 0) goto L_0x0036\n kotlin.h0.d$a r8 = kotlin.p586h0.C12757d.f29425Y\n kotlin.h0.d r8 = r8.mo31084a()\n java.lang.reflect.Method[] r10 = new java.lang.reflect.Method[r1]\n kotlin.reflect.jvm.internal.calls.InlineClassAwareCaller$BoxUnboxData r0 = new kotlin.reflect.jvm.internal.calls.InlineClassAwareCaller$BoxUnboxData\n r0.<init>(r8, r10, r9)\n r8 = r0\n goto L_0x012f\n L_0x0036:\n kotlin.reflect.jvm.internal.calls.Caller<M> r0 = r7.caller\n boolean r2 = r0 instanceof kotlin.reflect.jvm.internal.calls.CallerImpl.Method.BoundStatic\n java.lang.String r3 = \"descriptor.containingDeclaration\"\n r4 = -1\n if (r2 == 0) goto L_0x0040\n goto L_0x0067\n L_0x0040:\n boolean r2 = r8 instanceof kotlin.reflect.jvm.internal.impl.descriptors.ConstructorDescriptor\n if (r2 == 0) goto L_0x0049\n boolean r0 = r0 instanceof kotlin.reflect.jvm.internal.calls.BoundCaller\n if (r0 == 0) goto L_0x0066\n goto L_0x0067\n L_0x0049:\n kotlin.reflect.jvm.internal.impl.descriptors.ReceiverParameterDescriptor r0 = r8.getDispatchReceiverParameter()\n if (r0 == 0) goto L_0x0066\n kotlin.reflect.jvm.internal.calls.Caller<M> r0 = r7.caller\n boolean r0 = r0 instanceof kotlin.reflect.jvm.internal.calls.BoundCaller\n if (r0 != 0) goto L_0x0066\n kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor r0 = r8.getContainingDeclaration()\n kotlin.jvm.internal.Intrinsics.checkReturnedValueIsNotNull(r0, r3)\n boolean r0 = kotlin.reflect.jvm.internal.impl.resolve.InlineClassesUtilsKt.isInlineClass(r0)\n if (r0 == 0) goto L_0x0063\n goto L_0x0066\n L_0x0063:\n r0 = 1\n r4 = 1\n goto L_0x0067\n L_0x0066:\n r4 = 0\n L_0x0067:\n boolean r0 = r7.isDefault\n if (r0 == 0) goto L_0x006d\n r0 = 2\n goto L_0x006e\n L_0x006d:\n r0 = 0\n L_0x006e:\n java.util.ArrayList r2 = new java.util.ArrayList\n r2.<init>()\n kotlin.reflect.jvm.internal.impl.descriptors.ReceiverParameterDescriptor r5 = r8.getExtensionReceiverParameter()\n if (r5 == 0) goto L_0x007e\n kotlin.reflect.jvm.internal.impl.types.KotlinType r5 = r5.getType()\n goto L_0x007f\n L_0x007e:\n r5 = r10\n L_0x007f:\n if (r5 == 0) goto L_0x0085\n r2.add(r5)\n goto L_0x00cd\n L_0x0085:\n boolean r5 = r8 instanceof kotlin.reflect.jvm.internal.impl.descriptors.ConstructorDescriptor\n if (r5 == 0) goto L_0x00b3\n r3 = r8\n kotlin.reflect.jvm.internal.impl.descriptors.ConstructorDescriptor r3 = (kotlin.reflect.jvm.internal.impl.descriptors.ConstructorDescriptor) r3\n kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor r3 = r3.getConstructedClass()\n java.lang.String r5 = \"descriptor.constructedClass\"\n kotlin.jvm.internal.Intrinsics.checkReturnedValueIsNotNull(r3, r5)\n boolean r5 = r3.isInner()\n if (r5 == 0) goto L_0x00cd\n kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor r3 = r3.getContainingDeclaration()\n if (r3 == 0) goto L_0x00ab\n kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor r3 = (kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor) r3\n kotlin.reflect.jvm.internal.impl.types.SimpleType r3 = r3.getDefaultType()\n r2.add(r3)\n goto L_0x00cd\n L_0x00ab:\n kotlin.s r8 = new kotlin.s\n java.lang.String r9 = \"null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ClassDescriptor\"\n r8.<init>(r9)\n throw r8\n L_0x00b3:\n kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor r5 = r8.getContainingDeclaration()\n kotlin.jvm.internal.Intrinsics.checkReturnedValueIsNotNull(r5, r3)\n boolean r3 = r5 instanceof kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor\n if (r3 == 0) goto L_0x00cd\n kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor r5 = (kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor) r5\n boolean r3 = r5.isInline()\n if (r3 == 0) goto L_0x00cd\n kotlin.reflect.jvm.internal.impl.types.SimpleType r3 = r5.getDefaultType()\n r2.add(r3)\n L_0x00cd:\n java.util.List r3 = r8.getValueParameters()\n java.lang.String r5 = \"descriptor.valueParameters\"\n kotlin.jvm.internal.Intrinsics.checkReturnedValueIsNotNull(r3, r5)\n java.util.Iterator r3 = r3.iterator()\n L_0x00da:\n boolean r5 = r3.hasNext()\n if (r5 == 0) goto L_0x00ee\n java.lang.Object r5 = r3.next()\n kotlin.reflect.jvm.internal.impl.descriptors.ValueParameterDescriptor r5 = (kotlin.reflect.jvm.internal.impl.descriptors.ValueParameterDescriptor) r5\n kotlin.reflect.jvm.internal.impl.types.KotlinType r5 = r5.getType()\n r2.add(r5)\n goto L_0x00da\n L_0x00ee:\n int r3 = r2.size()\n int r3 = r3 + r4\n int r3 = r3 + r0\n int r0 = kotlin.reflect.jvm.internal.calls.CallerKt.getArity(r7)\n if (r0 != r3) goto L_0x0132\n int r0 = java.lang.Math.max(r4, r1)\n int r5 = r2.size()\n int r5 = r5 + r4\n kotlin.h0.d r0 = kotlin.p586h0.C12762h.m39920d(r0, r5)\n java.lang.reflect.Method[] r5 = new java.lang.reflect.Method[r3]\n L_0x0109:\n if (r1 >= r3) goto L_0x012a\n boolean r6 = r0.mo31083f(r1)\n if (r6 == 0) goto L_0x0124\n int r6 = r1 - r4\n java.lang.Object r6 = r2.get(r6)\n kotlin.reflect.jvm.internal.impl.types.KotlinType r6 = (kotlin.reflect.jvm.internal.impl.types.KotlinType) r6\n java.lang.Class r6 = kotlin.reflect.jvm.internal.calls.InlineClassAwareCallerKt.toInlineClass(r6)\n if (r6 == 0) goto L_0x0124\n java.lang.reflect.Method r6 = kotlin.reflect.jvm.internal.calls.InlineClassAwareCallerKt.getUnboxMethod(r6, r8)\n goto L_0x0125\n L_0x0124:\n r6 = r10\n L_0x0125:\n r5[r1] = r6\n int r1 = r1 + 1\n goto L_0x0109\n L_0x012a:\n kotlin.reflect.jvm.internal.calls.InlineClassAwareCaller$BoxUnboxData r8 = new kotlin.reflect.jvm.internal.calls.InlineClassAwareCaller$BoxUnboxData\n r8.<init>(r0, r5, r9)\n L_0x012f:\n r7.data = r8\n return\n L_0x0132:\n kotlin.reflect.jvm.internal.KotlinReflectionInternalError r9 = new kotlin.reflect.jvm.internal.KotlinReflectionInternalError\n java.lang.StringBuilder r10 = new java.lang.StringBuilder\n r10.<init>()\n java.lang.String r0 = \"Inconsistent number of parameters in the descriptor and Java reflection object: \"\n r10.append(r0)\n int r0 = kotlin.reflect.jvm.internal.calls.CallerKt.getArity(r7)\n r10.append(r0)\n java.lang.String r0 = \" != \"\n r10.append(r0)\n r10.append(r3)\n r0 = 10\n r10.append(r0)\n java.lang.String r1 = \"Calling: \"\n r10.append(r1)\n r10.append(r8)\n r10.append(r0)\n java.lang.String r8 = \"Parameter types: \"\n r10.append(r8)\n java.util.List r8 = r7.getParameterTypes()\n r10.append(r8)\n java.lang.String r8 = \")\\n\"\n r10.append(r8)\n java.lang.String r8 = \"Default: \"\n r10.append(r8)\n boolean r8 = r7.isDefault\n r10.append(r8)\n java.lang.String r8 = r10.toString()\n r9.<init>(r8)\n throw r9\n L_0x0180:\n kotlin.jvm.internal.Intrinsics.throwNpe()\n throw r10\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.reflect.jvm.internal.calls.InlineClassAwareCaller.<init>(kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor, kotlin.reflect.jvm.internal.calls.Caller, boolean):void\");\n }",
"private void processWatcher(MethodSpec.Builder createdMethodBuilder, ExecutableElement method) {\n Watch watch = method.getAnnotation(Watch.class);\n\n String exposedMethodName = exposeExistingJavaMethodToJs(method);\n String watcherTriggerMethodName = addNewMethodToProto();\n\n MethodSpec.Builder watcherMethodBuilder = MethodSpec\n .methodBuilder(watcherTriggerMethodName)\n .addModifiers(Modifier.PUBLIC)\n .addAnnotation(JsMethod.class)\n .returns(Object.class);\n\n String[] valueSplit = watch.value().split(\"\\\\.\");\n\n String currentExpression = \"\";\n for (int i = 0; i < valueSplit.length - 1; i++) {\n currentExpression += valueSplit[i];\n watcherMethodBuilder.addStatement(\"if ($L == null) return null\", currentExpression);\n currentExpression += \".\";\n }\n\n watcherMethodBuilder.addStatement(\"return $L\", watch.value());\n\n componentExposedTypeBuilder.addMethod(watcherMethodBuilder.build());\n\n createdMethodBuilder\n .addStatement(\"vue().$L(p.$L, p.$L, $T.of($L, $L))\", \"$watch\",\n watcherTriggerMethodName, exposedMethodName, WatchOptions.class, watch.isDeep(),\n watch.isImmediate());\n }",
"<T extends java.lang.reflect.Member> T reflectAs(Class<T> expected, MethodHandles.Lookup lookup);",
"protected abstract MethodDescription accessorMethod();",
"@Test\n public void test_getAndSet_ByFieldName_TypedMethods() throws Exception {\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1 descNum1_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1(\n executeInfo, null);\n\n\n\n descNum1_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_descNum1;\n\n // Test the Get & Set methods: primitive types ______________________________________________________________\n\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_String\", String.class, \"setField__Special\", \"getField_String\", \"field1Str\", symbolControl,\n \"stuff\", null, null, \"hi\"); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_short\", Short.TYPE, \"setField__Special\", \"getField_short\", \"field2Short\", symbolControl,\n (short)123, (short)-1, (short)-1, (short)-1001); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n // Continuation Field - can not call the generic setField(fieldName) and getField(fieldName) on a cont field.\n // this should throw an exception (which is returned by the test method).\n Exception exception = FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_int\", Integer.TYPE, \"setField__Special\", \"getField_int\", \"field3ContInt\", symbolControl,\n 456, -1, -1, -1000, true); // last 5 params: expected value, null expected value, unused expected value, default expected value, returnExceptions\n\n assertTrue(exception != null);\n\n\n // Test Object Types ________________________________________________________________________________________\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED formRequired_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED(executeInfo, null);\n\n formRequired_FieldSet.schemaInfo_Positioned = schemaInfoFieldSet_formRequired;\n\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, formRequired_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED.class,\n \"setField_Symbol\", Symbol.class, \"setField__Special\", \"getField_Symbol\", \"IsRequired\", symbolControl,\n notRequired, null, null, notRequired); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, formRequired_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED.class,\n \"setField_String\", String.class, \"setField__Special\", \"getField_String\", \"RequiredImagePath\", symbolControl,\n \"\\test\\required.gif\", null, null, \"/images/required.gif\"); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n\n }",
"public interface FlightSupplierResponse {\r\n\r\n <T> T accept(FlightSupplierResponseVisitor<T> visitor);\r\n}",
"public String getSolvingMethodType()\n/* */ {\n/* 183 */ return this.solvingMethodType;\n/* */ }",
"public PatchInfrastructure fieldManager(String fieldManager) {\n put(\"fieldManager\", fieldManager);\n return this;\n }",
"public final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke methodToInvoke, Object obj, Object obj2) {\n switch (methodToInvoke) {\n case NEW_MUTABLE_INSTANCE:\n return new DocumentMask();\n case IS_INITIALIZED:\n return DEFAULT_INSTANCE;\n case MAKE_IMMUTABLE:\n this.fieldPaths_.makeImmutable();\n return null;\n case NEW_BUILDER:\n return new Builder();\n case VISIT:\n this.fieldPaths_ = ((GeneratedMessageLite.Visitor) obj).visitList(this.fieldPaths_, ((DocumentMask) obj2).fieldPaths_);\n GeneratedMessageLite.MergeFromVisitor mergeFromVisitor = GeneratedMessageLite.MergeFromVisitor.INSTANCE;\n return this;\n case MERGE_FROM_STREAM:\n CodedInputStream codedInputStream = (CodedInputStream) obj;\n ExtensionRegistryLite extensionRegistryLite = (ExtensionRegistryLite) obj2;\n boolean z = false;\n while (!z) {\n try {\n int readTag = codedInputStream.readTag();\n if (readTag != 0) {\n if (readTag == 10) {\n String readStringRequireUtf8 = codedInputStream.readStringRequireUtf8();\n if (!this.fieldPaths_.isModifiable()) {\n this.fieldPaths_ = GeneratedMessageLite.mutableCopy(this.fieldPaths_);\n }\n this.fieldPaths_.add(readStringRequireUtf8);\n } else if (!codedInputStream.skipField(readTag)) {\n }\n }\n z = true;\n } catch (InvalidProtocolBufferException e) {\n throw new RuntimeException(e.setUnfinishedMessage(this));\n } catch (IOException e2) {\n throw new RuntimeException(new InvalidProtocolBufferException(e2.getMessage()).setUnfinishedMessage(this));\n }\n }\n break;\n case GET_DEFAULT_INSTANCE:\n break;\n case GET_PARSER:\n if (PARSER == null) {\n synchronized (DocumentMask.class) {\n if (PARSER == null) {\n PARSER = new GeneratedMessageLite.DefaultInstanceBasedParser(DEFAULT_INSTANCE);\n }\n }\n }\n return PARSER;\n default:\n throw new UnsupportedOperationException();\n }\n return DEFAULT_INSTANCE;\n }",
"public interface Factory {\n /* renamed from: a */\n Call mo35727a(Request request);\n }",
"public final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) {\n switch (C32121.f1583xa1df5c61[method.ordinal()]) {\n case 1:\n return new MonitoringDestination();\n case 2:\n return new Builder((C32121) null);\n case 3:\n return newMessageInfo(DEFAULT_INSTANCE, \"\\u0000\\u0002\\u0000\\u0000\\u0001\\u0002\\u0002\\u0000\\u0001\\u0000\\u0001Ȉ\\u0002Ț\", new Object[]{\"monitoredResource_\", \"metrics_\"});\n case 4:\n return DEFAULT_INSTANCE;\n case 5:\n Parser<MonitoringDestination> parser = PARSER;\n if (parser == null) {\n synchronized (MonitoringDestination.class) {\n parser = PARSER;\n if (parser == null) {\n parser = new GeneratedMessageLite.DefaultInstanceBasedParser<>(DEFAULT_INSTANCE);\n PARSER = parser;\n }\n }\n }\n return parser;\n case 6:\n return (byte) 1;\n case 7:\n return null;\n default:\n throw new UnsupportedOperationException();\n }\n }",
"public interface MessageResolver {\n\t\n\tstatic final Logger LOG = LoggerFactory.getLogger( Validator.class );\n\t\n\tvoid setConfiguration( ContextConfigurion configuration );\n\tContextConfigurion getConfiguration();\n\t\n\tvoid setDefaultLocale( Locale defaultLocale );\n\tLocale getDefaultLocale();\n\n\tvoid addResourceBundle( String resourceName, String ... preloadings );\n\tvoid addResourceBundles( List<MessageResource> resources );\n\tSet<ResourceBundle> getResourceBundles();\n\n\tString getMessageKey( String key );\n\n\tString resolve( String key );\n\tString resolve( String key, String defaultValue );\n\t\n\tString resolve( String key, Locale locale );\n\tString resolve( String key, Locale locale, String defaultValue );\n\t\n}",
"private Analyzer analyze(FieldNames fnames, TokenStream stream) {\n\n\t\tAnalyzer filter = factory.getAnalyzerForField(\n\t\t\t\tfnames, stream);\t\t\n//\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(filter.getClass().getName());\n\t\treturn filter;\n\t}",
"protected ResultTransformer resolveResultTransformer(ResultTransformer resultTransformer) {\n \t\treturn resultTransformer;\n \t}",
"public final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) {\n switch (C32121.f1583xa1df5c61[method.ordinal()]) {\n case 1:\n return new Monitoring();\n case 2:\n return new Builder((C32121) null);\n case 3:\n return newMessageInfo(DEFAULT_INSTANCE, \"\\u0000\\u0002\\u0000\\u0000\\u0001\\u0002\\u0002\\u0000\\u0002\\u0000\\u0001\\u001b\\u0002\\u001b\", new Object[]{\"producerDestinations_\", MonitoringDestination.class, \"consumerDestinations_\", MonitoringDestination.class});\n case 4:\n return DEFAULT_INSTANCE;\n case 5:\n Parser<Monitoring> parser = PARSER;\n if (parser == null) {\n synchronized (Monitoring.class) {\n parser = PARSER;\n if (parser == null) {\n parser = new GeneratedMessageLite.DefaultInstanceBasedParser<>(DEFAULT_INSTANCE);\n PARSER = parser;\n }\n }\n }\n return parser;\n case 6:\n return (byte) 1;\n case 7:\n return null;\n default:\n throw new UnsupportedOperationException();\n }\n }",
"public MethodTranslator getMethodTranslator( ClassTranslator owner, Signature sig ) throws NoSuchMethodException;",
"void checkTypesOfInstanceMethodResolvingFunctions() {\r\n \r\n for (int i = 0, nClassInstances = currentModuleTypeInfo.getNClassInstances(); i < nClassInstances; ++i) { \r\n \r\n ClassInstance classInstance = currentModuleTypeInfo.getNthClassInstance(i);\r\n \r\n ParseTreeNode instanceNode = classInstanceMap.get(classInstance.getIdentifier());\r\n if (instanceNode == null) {\r\n // This can occur if we are compiling an adjunct to a module that contains instance declarations.\r\n continue;\r\n }\r\n instanceNode.verifyType(CALTreeParserTokenTypes.INSTANCE_DEFN);\r\n \r\n ParseTreeNode instanceMethodListNode = instanceNode.getChild(2);\r\n instanceMethodListNode.verifyType(CALTreeParserTokenTypes.INSTANCE_METHOD_LIST);\r\n \r\n TypeClass typeClass = classInstance.getTypeClass(); \r\n \r\n for (final ParseTreeNode instanceMethodNode : instanceMethodListNode) {\r\n \r\n instanceMethodNode.verifyType(CALTreeParserTokenTypes.INSTANCE_METHOD);\r\n \r\n ParseTreeNode optionalInstanceMethodCALDocNode = instanceMethodNode.firstChild();\r\n optionalInstanceMethodCALDocNode.verifyType(CALTreeParserTokenTypes.OPTIONAL_CALDOC_COMMENT);\r\n \r\n ParseTreeNode classMethodNameNode = optionalInstanceMethodCALDocNode.nextSibling();\r\n classMethodNameNode.verifyType(CALTreeParserTokenTypes.VAR_ID); \r\n String classMethodName = classMethodNameNode.getText(); \r\n \r\n ClassMethod classMethod = typeClass.getClassMethod(classMethodName); \r\n QualifiedName resolvingFunctionName = classMethodNameNode.nextSibling().toQualifiedName();\r\n \r\n TypeExpr instanceMethodType;\r\n {\r\n TypeExpr classMethodType = classMethod.getTypeExpr();\r\n TypeVar classTypeVar = classMethodType.getTypeClassTypeVar(typeClass.getTypeClassTypeVarName());\r\n classTypeVar.setInstance(classInstance.getType());\r\n instanceMethodType = classMethodType;\r\n }\r\n \r\n TypeExpr resolvingFunctionType = compiler.getTypeChecker().getEntity(resolvingFunctionName).getTypeExpr(); \r\n \r\n if (instanceMethodType.getGenericClassConstrainedPolymorphicVars(null).size() != 0 ||\r\n resolvingFunctionType.getGenericClassConstrainedPolymorphicVars(null).size() != 0) {\r\n //if either the instance method type or the resolving function type involve constrained type vars, then they\r\n //must have identically the same type. For example, for equals in the Eq-List instance, the types of the instance\r\n //method and the resolving instance must both be: Eq a => [a] -> [a] -> Boolean.\r\n if (!instanceMethodType.sameType(resolvingFunctionType)) {\r\n compiler.logMessage(new CompilerMessage(classMethodNameNode, new MessageKind.Error.ResolvingFunctionForInstanceMethodHasWrongTypeSpecific(resolvingFunctionName.getQualifiedName(), classMethodName, instanceMethodType.toString(), resolvingFunctionType.toString())));\r\n \r\n } \r\n } else {\r\n //we allow extra flexibility here, so that e.g. withing the Eq-Integer instance, we can define fromInteger as id (rather than idInteger).\r\n if (!TypeExpr.canPatternMatch(instanceMethodType, resolvingFunctionType, currentModuleTypeInfo)) {\r\n compiler.logMessage(new CompilerMessage(classMethodNameNode, new MessageKind.Error.ResolvingFunctionForInstanceMethodHasWrongTypeGeneral(resolvingFunctionName.getQualifiedName(), classMethodName, instanceMethodType.toString(), resolvingFunctionType.toString())));\r\n } \r\n } \r\n } \r\n } \r\n }",
"private FileType(ParameterResolver resolver){\r\n\t\tthis.resolver = resolver;\r\n\t}",
"private void init() {\n\t\t// pick to pieces method signature description\n\t\tthis.argTypes = Type.getArgumentTypes(this.desc);\n\t\tthis.newArgTypes = new LinkedList<Type>();\n\t\tfor (Type t : this.argTypes) {\n\t\t\tthis.newArgTypes.add(t);\n\t\t\tif(t.getSort() == Type.OBJECT && !TaintTrackerConfig.isString(t))\n\t\t\t\tcontinue;\n//\t\t\tdetermine proper taint for each argument and append it to newArgTypes\n\t\t\tif (t.getSort() == Type.ARRAY) {\n\t\t\t\tif (t.getElementType().getSort() != Type.OBJECT || TaintTrackerConfig.isString(t.getElementType())) {\n\t\t\t\t\tif (t.getDimensions() > 1) {\n\t\t\t\t\t\tthis.newArgTypes.add(Type.getType(TaintTrackerConfig.TAINT_DESC));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.newArgTypes.add(Type.getType(TaintTrackerConfig.TAINT_DESC_ARR));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.newArgTypes.add(Type.getType(TaintTrackerConfig.TAINT_DESC));\n\t\t\t}\n\t\t}\n\t\tthis.newReturnType = Type.getReturnType(desc);\n\t\tif (this.newReturnType.getSort() != Type.VOID && this.newReturnType.getSort() != Type.OBJECT) {\n\t\t\tTaintWrapper<?,?> returnType = TaintTrackerConfig.wrapReturnType(Type.getReturnType(desc));\n\t\t\tif(returnType != null)\n\t\t\t\tthis.newReturnType = Type.getType(returnType.getClass());\n\t\t}\n\t\telse if( (this.newReturnType.getSort() == Type.OBJECT && TaintTrackerConfig.isString(this.newReturnType))\n\t\t|| (this.newReturnType.getSort() == Type.ARRAY && TaintTrackerConfig.isString(this.newReturnType.getElementType())) ){\n\t\t\tTaintWrapper<?,?> returnType = TaintTrackerConfig.wrapReturnType(Type.getReturnType(desc));\n\t\t\tif(returnType != null)\n\t\t\t\tthis.newReturnType = Type.getType(returnType.getClass());\n\t\t}\n\t\t\n\t\tType[] newArgs = new Type[newArgTypes.size()];\n\t\tnewArgTypes.toArray(newArgs);\n\t\tthis.newDesc = Type.getMethodDescriptor(newReturnType, newArgs);\n\t}",
"public interface RegistrationDataExtractor {\n\n RegistrationData extractDataFromObjectLinks(Link[] objectLinks, LwM2mVersion lwM2mVersion);\n\n public class RegistrationData {\n private String alternatePath;\n private Set<ContentFormat> supportedContentFormats;\n private Map<Integer, Version> supportedObjects;\n private Set<LwM2mPath> availableInstances;\n\n public String getAlternatePath() {\n return alternatePath;\n }\n\n public void setAlternatePath(String alternatePath) {\n this.alternatePath = alternatePath;\n }\n\n public Set<ContentFormat> getSupportedContentFormats() {\n return supportedContentFormats;\n }\n\n public void setSupportedContentFormats(Set<ContentFormat> supportedContentFormats) {\n this.supportedContentFormats = supportedContentFormats;\n }\n\n public Map<Integer, Version> getSupportedObjects() {\n return supportedObjects;\n }\n\n public void setSupportedObjects(Map<Integer, Version> supportedObjects) {\n this.supportedObjects = supportedObjects;\n }\n\n public Set<LwM2mPath> getAvailableInstances() {\n return availableInstances;\n }\n\n public void setAvailableInstances(Set<LwM2mPath> availableInstances) {\n this.availableInstances = availableInstances;\n }\n }\n}",
"public boolean _handleSingleArgumentFactory(DeserializationConfig config, BeanDescription beanDesc, VisibilityChecker<?> vchecker, AnnotationIntrospector intr, CreatorCollector creators, AnnotatedMethod factory, boolean isCreator) throws JsonMappingException {\n Class<?> type = factory.getRawParameterType(0);\n if (type == String.class || type == CharSequence.class) {\n if (!isCreator && !vchecker.isCreatorVisible(factory)) {\n return true;\n }\n creators.addStringCreator(factory, isCreator);\n return true;\n } else if (type == Integer.TYPE || type == Integer.class) {\n if (!isCreator && !vchecker.isCreatorVisible(factory)) {\n return true;\n }\n creators.addIntCreator(factory, isCreator);\n return true;\n } else if (type == Long.TYPE || type == Long.class) {\n if (!isCreator && !vchecker.isCreatorVisible(factory)) {\n return true;\n }\n creators.addLongCreator(factory, isCreator);\n return true;\n } else if (type == Double.TYPE || type == Double.class) {\n if (!isCreator && !vchecker.isCreatorVisible(factory)) {\n return true;\n }\n creators.addDoubleCreator(factory, isCreator);\n return true;\n } else if (type == Boolean.TYPE || type == Boolean.class) {\n if (!isCreator && !vchecker.isCreatorVisible(factory)) {\n return true;\n }\n creators.addBooleanCreator(factory, isCreator);\n return true;\n } else if (!isCreator) {\n return false;\n } else {\n creators.addDelegatingCreator(factory, isCreator, null);\n return true;\n }\n }",
"InstrumentedType withField(FieldDescription.Token token);",
"public EntityWithFactoryMethodAndMixedMappingTypes(String fieldInjected, String factoryMethodInjected, String methodInjected) {\n this.fieldInjected = fieldInjected;\n this.factoryMethodInjected = factoryMethodInjected;\n this.methodInjected = methodInjected;\n nonMappingConstructorWasCalled = true;\n }",
"public void setSolvingMethodType(String solvingMethodType)\n/* */ {\n/* 195 */ this.solvingMethodType = solvingMethodType;\n/* */ }",
"ISerializer invoke(String responseReceiverId);",
"public ReplaceProxy fieldManager(String fieldManager) {\n put(\"fieldManager\", fieldManager);\n return this;\n }",
"public abstract jq_Method getDefiningMethod();",
"public PatchIngressStatus fieldManager(String fieldManager) {\n put(\"fieldManager\", fieldManager);\n return this;\n }",
"public PatchDNSStatus fieldManager(String fieldManager) {\n put(\"fieldManager\", fieldManager);\n return this;\n }",
"public String addResultField(String resultProperty, Class<?> resultPropertyType, Type resultGenericPropertyType, String entityFieldExpression, String methodDesc)\r\n\t{\r\n\t\t// if a field is already added as direct return value\r\n\t\tif(isSingleFieldReturn)\r\n\t\t{\r\n\t\t\tthrow new InvalidMappingException(\"Encountered second return field addition after setting direct return field\");\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * resultProperty would be null only when direct field return is expected.\r\n\t\t * In case if result fields are already added and later direct result is being added as expectation throw error.\r\n\t\t */\r\n\t\tif(!this.resultFields.isEmpty() && resultProperty == null)\r\n\t\t{\r\n\t\t\tthrow new InvalidMappingException(\"Encountered addition direct-return field (with null property) after adding a subproperty return field\");\r\n\t\t}\r\n\r\n\t\t// split the entity field expression\r\n\t\tString entityFieldParts[] = entityFieldExpression.trim().split(\"\\\\s*\\\\.\\\\s*\");\r\n\t\t\r\n\t\t/*\r\n\t\tif(checkAndAddIntermediateQuery(resultProperty, resultPropertyType, resultGenericPropertyType, entityFieldParts, methodDesc))\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t*/\r\n\r\n\t\tResultField resultField = new ResultField(resultProperty, nextFieldCode(), resultPropertyType);\r\n\r\n\t\t// if this mapping is for direct property mapping\r\n\t\tif(entityFieldParts.length == 1)\r\n\t\t{\r\n\t\t\tresultField.fieldDetails = entityDetails.getFieldDetailsByField(entityFieldParts[0]);\r\n\r\n\t\t\t// if the field mapping is wrong\r\n\t\t\tif(resultField.fieldDetails == null)\r\n\t\t\t{\r\n\t\t\t\tthrow new InvalidMappingException(String.format(\"Invalid field mapping '%s' found in result parameter '%s' of '%s'\", entityFieldExpression, entityFieldExpression, methodDesc));\r\n\t\t\t}\r\n\r\n\t\t\tresultField.table = codeToTable.get(defTableCode);\r\n\t\t\tresultFields.add(resultField);\r\n\t\t\tfieldToResultField.put(entityFieldExpression, resultField);\r\n\r\n\t\t\tif(resultProperty == null)\r\n\t\t\t{\r\n\t\t\t\tisSingleFieldReturn = true;\r\n\t\t\t}\r\n\r\n\t\t\treturn resultField.code;\r\n\t\t}\r\n\r\n\t\t// if the mapping is for nested entity field (with foreign key\r\n\t\t// relationships)\r\n\t\tObjectWrapper<FieldDetails> fieldDetailsHolder = new ObjectWrapper<>();\r\n\t\tTableInfo tableInfo = getTableInfo(entityDetails, entityFieldParts, \"condition\", entityFieldExpression, methodDesc, fieldDetailsHolder);\r\n\t\tresultField.table = tableInfo;\r\n\t\tresultField.fieldDetails = fieldDetailsHolder.getValue();\r\n\r\n\t\t// TODO: If end field represents a collection, check if it can be\r\n\t\t// supported, if not throw exception\r\n\t\t// Note - Reverse mapping property has to be created for such properties\r\n\r\n\t\tresultFields.add(resultField);\r\n\t\tfieldToResultField.put(entityFieldExpression, resultField);\r\n\r\n\t\t// if this direct return field\r\n\t\tif(resultProperty == null)\r\n\t\t{\r\n\t\t\tisSingleFieldReturn = true;\r\n\t\t}\r\n\t\t\r\n\t\treturn resultField.code;\r\n\t}",
"public interface FieldGenerator extends Serializable {\n\n\t/**\n\t * Generate {@link Field} based on bean type and {@link JNIPropertyConstraint}\n\t * @param type\n\t * @param restriction\n\t * @return {@link Field}\n\t */\n\tpublic Field<?> createField(Class<?> type, JNIPropertyConstraint restriction);\n\t\n\t/**\n\t * Generate {@link Field} based on bean type and {@link JNIProperty}\n\t * @param type\n\t * @param property\n\t * @return {@link Field}\n\t */\n\tpublic Field<?> createField(Class<?> type, JNIProperty property);\n}",
"public interface ICvDelegatingReferenceResolver<ContainerType extends org.eclipse.emf.ecore.EObject, ReferenceType extends org.eclipse.emf.ecore.EObject> extends de.tu_bs.cs.isf.mbse.cvclipse.resource.cv.ICvReferenceResolver<ContainerType, ReferenceType> {\n\t\n\t/**\n\t * Sets the delegate for this resolver.\n\t */\n\tpublic void setDelegate(de.tu_bs.cs.isf.mbse.cvclipse.resource.cv.ICvReferenceResolver<ContainerType, ReferenceType> delegate);\n\t\n}",
"protected void sequence_MethodExpr_ReceiverType(ISerializationContext context, ReceiverType semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.RECEIVER_TYPE__TYPE) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.RECEIVER_TYPE__TYPE));\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.RECEIVER_TYPE__METHODN) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.RECEIVER_TYPE__METHODN));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getReceiverTypeAccess().getTypeTypeParserRuleCall_0(), semanticObject.getType());\r\n\t\tfeeder.accept(grammarAccess.getMethodExprAccess().getMethodnMethodNameParserRuleCall_2_0(), semanticObject.getMethodn());\r\n\t\tfeeder.finish();\r\n\t}",
"public ReplaceIngress fieldManager(String fieldManager) {\n put(\"fieldManager\", fieldManager);\n return this;\n }",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tprivate Object invokeParseTransf(String response, Class<Object> transformerClass, String service, String methodParam, String version) throws TransformersException {\n\t\tClass<Object>[ ] constrParamClasses, methodParamClasses;\n\t\tConstructor<Object> constructor;\n\t\tMap<String, Object> res;\n\t\tMethod method;\n\t\tObject object;\n\t\tObject[ ] constrParamObjects, methodParamObjects;\n\n\t\tres = null;\n\n\t\ttry {\n\t\t\t// Instanciamos un objeto transformardor\n\t\t\tconstrParamClasses = new Class[NumberConstants.INT_3];\n\t\t\tClass<Object> stringClass = (Class<Object>) Class.forName(\"java.lang.String\");\n\t\t\tconstrParamClasses[0] = stringClass;\n\t\t\tconstrParamClasses[1] = stringClass;\n\t\t\tconstrParamClasses[2] = stringClass;\n\n\t\t\tconstructor = transformerClass.getConstructor(constrParamClasses);\n\t\t\tconstrParamObjects = new Object[NumberConstants.INT_3];\n\t\t\tconstrParamObjects[0] = service;\n\t\t\tconstrParamObjects[1] = methodParam;\n\t\t\tconstrParamObjects[2] = version;\n\t\t\tobject = constructor.newInstance(constrParamObjects);\n\n\t\t\t// Obtenemos el método que creara la cadena xml que contiene el\n\t\t\t// parametro esperado por @firma\n\t\t\tmethodParamClasses = new Class[1];\n\t\t\tmethodParamClasses[0] = stringClass;\n\t\t\tmethod = transformerClass.getMethod(\"transform\", methodParamClasses);\n\n\t\t\t// Invocamos el método transformador\n\t\t\tmethodParamObjects = new Object[1];\n\t\t\tmethodParamObjects[0] = response;\n\t\t\tres = (Map) method.invoke(object, methodParamObjects);\n\t\t} catch (Exception e) {\n\t\t\tString errorMsg = CaibEsbLanguage.getResIntegra(ILogConstantKeys.TF_LOG001);\n\t\t\tLOGGER.error(errorMsg, e);\n\t\t\tthrow new TransformersException(errorMsg, e);\n\t\t}\n\n\t\treturn res;\n\t}",
"private void updateFieldsWithUnresolvedTypes(Environment result,\n \t\t\tEnvironment ext, Environment base) throws AstCreatorException {\n \t\t// Path node, token, inode and itoken\n \t\tfor(IInterfaceDefinition def : result.getAllDefinitions())\n \t\t{\n \t\t\tif (def instanceof BaseClassDefinition)\n \t\t\t{\n \t\t\t\tBaseClassDefinition bcdef = (BaseClassDefinition)def;\n \n \t\t\t\tfor(Field f : bcdef.getFields())\n \t\t\t\t{\n \t\t\t\t\tif (f.type == null)\n \t\t\t\t\t{\n \t\t\t\t\t\tIInterfaceDefinition type = base.lookupByTag(f.getUnresolvedType());\n \t\t\t\t\t\tif (type == null) type = ext.lookupByTag(f.getUnresolvedType());\n \t\t\t\t\t\tif (type != null)\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tf.type = type;\n \t\t\t\t\t\t\tif (type instanceof ExternalJavaClassDefinition)\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\tExternalJavaClassDefinition ejcd = (ExternalJavaClassDefinition)type;\n \t\t\t\t\t\t\t\tif (ejcd.getFields() != null && ejcd.getFields().size() > 0 && ejcd.getFields().get(0).isTokenField)\n \t\t\t\t\t\t\t\t\tf.isTokenField = true;\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t\telse\n \t\t\t\t\t\t\tthrow new AstCreatorException(\"The extension points to production: \"+f.getUnresolvedType()+\" in alternative \"+def.getName().getName()+\" which does not exists.\",null,true);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \n \t\t}\n \t}",
"private void updateFieldsWithUnresolvedTypes(Environment result,\n\t\t\tEnvironment ext, Environment base) throws AstCreatorException\n\t{\n\t\t// Path node, token, inode and itoken\n\t\tfor (IInterfaceDefinition def : result.getAllDefinitions())\n\t\t{\n\n\t\t\tif (def instanceof InterfaceDefinition)\n\t\t\t\t((InterfaceDefinition) def).setExtJavaDoc(COMPASS_JAVA_DOC_STRING);\n\n\t\t\tif (def instanceof BaseClassDefinition)\n\t\t\t{\n\t\t\t\tBaseClassDefinition bcdef = (BaseClassDefinition) def;\n\t\t\t\tfor (Field f : bcdef.getFields())\n\t\t\t\t{\n\t\t\t\t\tString rawTypeToResolved = f.getUnresolvedType();\n\t\t\t\t\tIInterfaceDefinition type = null;\n\t\t\t\t\tif (f.type != null)\n\t\t\t\t\t\ttype = f.type;\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\ttype = result.lookupTagPath(rawTypeToResolved, false);\n\t\t\t\t\t\tif (type == null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"\" + rawTypeToResolved\n\t\t\t\t\t\t\t\t\t+ \" cannot be found\");\n\t\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (result.treeNodeInterfaces.containsKey(type))\n\t\t\t\t\t\t\ttype = result.treeNodeInterfaces.get(type);\n\t\t\t\t\t}\n\t\t\t\t\tif (result.treeNodeInterfaces.containsKey(type))\n\t\t\t\t\t\ttype = result.treeNodeInterfaces.get(type);\n\n\t\t\t\t\tif (type != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tf.type = type;\n\t\t\t\t\t\tif (type instanceof ExternalJavaClassDefinition)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tExternalJavaClassDefinition ejcd = (ExternalJavaClassDefinition) type;\n\t\t\t\t\t\t\tif (ejcd.getFields() != null\n\t\t\t\t\t\t\t\t\t&& ejcd.getFields().size() > 0\n\t\t\t\t\t\t\t\t\t&& ejcd.getFields().get(0).isTokenField)\n\t\t\t\t\t\t\t\tf.isTokenField = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else\n\t\t\t\t\t\tthrow new AstCreatorException(\"Field '\" + f.toString()\n\t\t\t\t\t\t\t\t+ \"' has unresolved type: \\\"\"\n\t\t\t\t\t\t\t\t+ f.getUnresolvedType() + \"\\\" in alternative \"\n\t\t\t\t\t\t\t\t+ def.getName().getName() + \".\", null, true);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}",
"public static RFFeatureGetter createRFFeatureGetter()\r\n {\r\n \r\n RFFeatureGetter retVal = RFFeatureGetter.__fromPtr__(createRFFeatureGetter_0());\r\n \r\n return retVal;\r\n }",
"public interface VolverAForm\r\n{\r\n}",
"T resolve();",
"public XMLClassDescriptorResolverImpl() {\n super();\n _descriptorCache = new DescriptorCacheImpl();\n }",
"final void deriveDisAssemblerFunction() {\n\n if ( tryAsPart() ) {\n return;\n }\n\n tryFieldAndMethodReflection();\n }",
"public interface MethodHandleInfo {\n\n\t/**\n\t * Getter MethodHandle for an instance field\n\t */\n\tstatic final int REF_getField = 1;\n\n\t/**\n\t * Getter MethodHandle for an static field\n\t */\n\tstatic final int REF_getStatic = 2;\n\n\t/**\n\t * Setter MethodHandle for an instance field\n\t */\n\tstatic final int REF_putField = 3;\n\n\t/**\n\t * Setter MethodHandle for an static field\n\t */\n\tstatic final int REF_putStatic = 4;\n\n\t/**\n\t * MethodHandle for an instance method\n\t */\n\tstatic final int REF_invokeVirtual = 5;\n\n\t/**\n\t * MethodHandle for a static method\n\t */\n\tstatic final int REF_invokeStatic = 6;\n\n\t/**\n\t * MethodHandle for an special method\n\t */\n\tstatic final int REF_invokeSpecial = 7;\n\n\t/**\n\t * MethodHandle for a constructor\n\t */\n\tstatic final int REF_newInvokeSpecial = 8;\n\n\t/**\n\t * MethodHandle for an interface method\n\t */\n\tstatic final int REF_invokeInterface = 9;\n\n\t/**\n\t * Returns the Class where the cracked MethodHandle's underlying method, field or constructor is declared.\n\t *\n\t * @return class that declares the underlying member\n\t */\n\tClass<?> getDeclaringClass();\n\n\t/**\n\t * Returns the simple name of the MethodHandle's underlying member.\n\t *\n\t * @return A string representing the name of the method or field, or \"<init>\" for constructor.\n\t */\n\tString getName();\n\n\t/**\n\t * Returns the type of the MethodHandle's underlying member as a MethodType.\n\t * If the underlying member is non-static, the receiver parameter will not be included.\n\t * If the underlying member is field getter, the MethodType will take no parameters, and the return type will be the field type.\n\t * If the underlying member is field setter, the MethodType will take one parameter of the field type, and the return type will be void.\n\t *\n\t * @return A MethodType object representing the signature of the method or field\n\t */\n\tMethodType getMethodType();\n\n\t/**\n\t * Returns the modifiers of the MethodHandle's underlying member.\n\t *\n\t * @return An int representing the member's modifiers, or -1 if the underlying member is not accessible.\n\t */\n\tint getModifiers();\n\n\t/**\n\t * Returns the reference kind of the MethodHandle. The possible reference kinds are the declared MethodHandleInfo.REF fields.\n\t *\n\t * @return Returns one of the defined reference kinds which represent the MethodHandle kind.\n\t */\n\tint getReferenceKind();\n\n\t/**\n\t * Returns whether the MethodHandle's underlying method or constructor has variable argument arity.\n\t *\n\t * @return whether the underlying method has variable arity\n\t */\n\tdefault boolean isVarArgs() {\n\t\t// Check whether the MethodHandle refers to a Method or Contructor (not Field)\n\t\tif (getReferenceKind() >= REF_invokeVirtual) {\n\t\t\treturn ((getModifiers() & MethodHandles.Lookup.VARARGS) != 0);\n\t\t}\n\t\treturn false;\n\t}\n\n\t/**\n\t * Reflects the underlying member as a Method, Field or Constructor. The member must be accessible to the provided lookup object.\n\t * Public members are reflected as if by <code>getMethod</code>, <code>getField</code> or <code>getConstructor</code>.\n\t * Non-public members are reflected as if by <code>getDeclearedMethod</code>, <code>getDeclaredField</code> or <code>getDeclaredConstructor</code>.\n\t *\n\t * @param expected The expected type of the returned Member\n\t * @param lookup The lookup that was used to create the MethodHandle, or a lookup object with equivalent access\n\t * @return A Method, Field or Constructor representing the underlying member of the MethodHandle\n\t * @throws NullPointerException If either argument is null\n\t * @throws IllegalArgumentException If the underlying member is not accessible to the provided lookup object\n\t * @throws ClassCastException If the underlying member is not of the expected type\n\t */\n\t<T extends java.lang.reflect.Member> T reflectAs(Class<T> expected, MethodHandles.Lookup lookup);\n\n\t/**\n\t * Returns a string representing the equivalent bytecode for the referenceKind.\n\t *\n\t * @param referenceKind The referenceKind to lookup\n\t * @return a String representing the equivalent bytecode\n\t * @throws IllegalArgumentException If the provided referenceKind is invalid\n\t */\n\tstatic String referenceKindToString(int referenceKind) throws IllegalArgumentException {\n\t\tswitch(referenceKind) {\n\t\tcase REF_getField: \t\t\treturn \"getField\"; //$NON-NLS-1$\n\t\tcase REF_getStatic: \t\treturn \"getStatic\"; //$NON-NLS-1$\n\t\tcase REF_putField: \t\t\treturn \"putField\"; //$NON-NLS-1$\n\t\tcase REF_putStatic: \t\treturn \"putStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeVirtual: \treturn \"invokeVirtual\"; //$NON-NLS-1$\n\t\tcase REF_invokeStatic: \t\treturn \"invokeStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeSpecial: \treturn \"invokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_newInvokeSpecial: \treturn \"newInvokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_invokeInterface: \treturn \"invokeInterface\"; //$NON-NLS-1$\n\t\t}\n\t\t// K0582 = Reference kind \"{0\"} is invalid\n\t\tthrow new IllegalArgumentException(com.ibm.oti.util.Msg.getString(\"K0582\", referenceKind)); //$NON-NLS-1$\n\t}\n\n\t/**\n\t * Answers a string containing a concise, human-readable description of the receiver.\n\t *\n\t * @param kind the reference kind, one of the declared MethodHandleInfo.REF fields.\n\t * @param defc the class where the member is declared\n\t * @param name the name of the member\n\t * @param type the member's MethodType\n\t * @return a String of the format \"K C.N:MT\"\n\t */\n\tstatic String toString(int kind, Class<?> defc, String name, MethodType type) {\n\t\treturn referenceKindToString(kind) + \" \" + defc.getName() + \".\" + name + \":\" + type; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t}\n\n}",
"public final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) {\n switch (method) {\n case NEW_MUTABLE_INSTANCE:\n return new TelemetryIdentifier();\n case NEW_BUILDER:\n return new Builder();\n case BUILD_MESSAGE_INFO:\n return newMessageInfo(DEFAULT_INSTANCE, \"\\u0001\\u0003\\u0000\\u0001\\u0001\\u0003\\u0003\\u0000\\u0000\\u0000\\u0001\\b\\u0000\\u0002\\f\\u0001\\u0003\\b\\u0002\", new Object[]{\"bitField0_\", \"componentName_\", \"metric_\", Metric.internalGetVerifier(), \"customMetricName_\"});\n case GET_DEFAULT_INSTANCE:\n return DEFAULT_INSTANCE;\n case GET_PARSER:\n Parser<TelemetryIdentifier> parser = PARSER;\n if (parser == null) {\n synchronized (TelemetryIdentifier.class) {\n parser = PARSER;\n if (parser == null) {\n parser = new GeneratedMessageLite.DefaultInstanceBasedParser<>(DEFAULT_INSTANCE);\n PARSER = parser;\n }\n }\n }\n return parser;\n case GET_MEMOIZED_IS_INITIALIZED:\n return (byte) 1;\n case SET_MEMOIZED_IS_INITIALIZED:\n return null;\n default:\n throw new UnsupportedOperationException();\n }\n }",
"public interface RecordEventsProcessorFactory<TResult> {\r\n\r\n\t/**\r\n\t * @param res the result to feed by processor\r\n\t */\r\n\tpublic RecordEventsProcessor create(TResult res);\r\n\t\r\n}",
"public interface Remapper {\n\n\t/**\n\t * Reinitialize the remapper, clearing all accumulated requests.\n\t * @throws Exception if unable to initialize a new request.\n\t */\n\tpublic void clear() throws Exception;\n\n\t/**\n\t * Get the original date corresponding to a remapped value for a patient and element.\n\t * @param seqid an identifier for the remapping request for this value; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param siteid the site ID for the site on which the patient ID was created.\n\t * For trials using globally created patient IDs, all the site IDs can be set to\n\t * the empty string (\"\").\n\t * @param ptid the original patient ID.\n\t * @param tag the DICOM element tag string (gggg,eeee).\n\t * @param date the remapped date.\n\t * @param base the base date used as the starting date for offsetting dates.\n\t */\n\tpublic void getOriginalDate(\n\t\t\t\t\tint seqid, String siteid, String ptid,\n\t\t\t\t\tString tag, String date, String base);\n\n\t/**\n\t * Request a replacement for a date.\n\t * @param seqid an identifier for the remapping request for this value; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param siteid the site ID for the site on which the patient ID was created.\n\t * For trials using globally created patient IDs, all the site IDs can be set to\n\t * the empty string (\"\").\n\t * @param ptid the patient ID.\n\t * @param tag the DICOM element tag string (gggg,eeee).\n\t * @param date the date value of the element.\n\t * @param base the base date to use as the starting date for offsetting dates.\n\t */\n\tpublic void getOffsetDate(int seqid, String siteid, String ptid,\n\t\t\t\t\t\t\t\tString tag, String date, String base);\n\n\t/**\n\t * Request a replacement for a DICOM ID element.\n\t * @param seqid an identifier for the remapping request for this value; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param tag the DICOM element tag string (gggg,eeee).\n\t * @param gid the ID value to be replaced.\n\t */\n\tpublic void getGenericID(int seqid, String tag, String gid);\n\n\t/**\n\t * Request an accession number.\n\t * @param seqid an identifier for the remapping request for this value; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param tag the DICOM element tag string (gggg,eeee).\n\t * @param gid the value to be replaced.\n\t */\n\tpublic void getAccessionNumber(int seqid, String tag, String gid);\n\n\t/**\n\t * Request an integer which has not been returned before.\n\t */\n\tpublic void getInteger(int seqid);\n\n\t/**\n\t * Request a replacement for a UID.\n\t * @param seqid an identifier for the remapping request for this value; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param prefix the UID root to serve as a prefix for the replacement.\n\t * @param uid the UID to be replaced.\n\t */\n\tpublic void getUID(int seqid, String prefix, String uid);\n\n\t/**\n\t * Request a new UID.\n\t * @param seqid an identifier for the remapping request; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param prefix the UID root to serve as a prefix for the replacement.\n\t */\n\tpublic void getUID(int seqid, String prefix);\n\n\t/**\n\t * Get the remapped UID associated with an original UID.\n\t * @param seqid an identifier for the request; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param uid the remapped UID.\n\t */\n\tpublic void getRemappedUID(int seqid, String uid);\n\n\t/**\n\t * Get the original UID associated with a remapped UID.\n\t * @param seqid an identifier for the request; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param uid the original UID.\n\t */\n\tpublic void getOriginalUID(int seqid, String uid);\n\n\t/**\n\t * Request a replacement for a DICOM Patient ID.\n\t * @param seqid an identifier for the remapping request for this value; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param siteid the site ID for the site on which the patient ID was created.\n\t * For trials using globally created patient IDs, all the site IDs can be set to\n\t * the empty string (\"\").\n\t * @param ptid the patient ID.\n\t * @param prefix the prefix of the new Patient ID.\n\t * @param first the starting value of the sequentially increasing integer\n\t * used to generate IDs.\n\t * @param width the minimum width of the integer part of the Patient ID, with\n\t * leading zeroes supplied if the integer does not require the full field width.\n\t * @param suffix the suffix of the new Patient ID.\n\t */\n\tpublic void getPtID(int seqid, String siteid, String ptid,\n\t\t\t\t\t\t\tString prefix, int first, int width, String suffix);\n\n\t/**\n\t * Get the current number of values for which remapping requests have been received.\n\t * @return the number of remapping requests.\n\t */\n\tpublic int getCount();\n\n\t/**\n\t * Get the results of the remapping request.\n\t * @return Hashtable containing the remapped values, indexed by the seqid values\n\t * in the requests, or null if an error occurred in the remapping request.\n\t * @throws Exception if unable to communicate with the remapping database.\n\t */\n\tpublic Hashtable getRemappedValues() throws Exception;\n\n}",
"@Override\n\tpublic Object call(Object[] invokedArgs) {\n\t\treturn returnType.cast(informer.get(fieldName));\n\t}",
"public PatchProxyStatus fieldManager(String fieldManager) {\n put(\"fieldManager\", fieldManager);\n return this;\n }",
"protected MethodEntity analyseMethodEntity(String resultEntity) {\n\n\t\tif (resultEntity.trim().isEmpty()) {\n\t\t\t// send blank entity\n\t\t\treturn new MethodEntity();\n\t\t}\n\n\t\tMethodEntity me = new MethodEntity();\n\n\t\tint lastDashIndex = resultEntity.lastIndexOf(':');\n\t\tString ccName = resultEntity.substring(0, lastDashIndex);\n\t\tString theRest = resultEntity.substring(lastDashIndex + 1);\n\n\t\tString className = ccName;\n\t\tif (ccName.indexOf(\".\") > 0) {\n\t\t\tString[] cparts = ccName.split(\"\\\\.\");\n\t\t\tclassName = cparts[cparts.length - 1];\n\t\t}\n\n\t\tint leftBraceIndex = 0, rightBraceIndex = 0;\n\t\tif (theRest.indexOf('(') > 0) {\n\t\t\tleftBraceIndex = theRest.indexOf('(');\n\t\t}\n\t\tif (theRest.indexOf(')') > 0) {\n\t\t\trightBraceIndex = theRest.lastIndexOf(')');\n\t\t}\n\t\tString methodName = theRest;\n\t\tString paramBlock = \"()\";\n\t\ttry {\n\t\t\tmethodName = theRest.substring(0, leftBraceIndex);\n\t\t\tparamBlock = theRest.substring(leftBraceIndex + 1, rightBraceIndex);\n\t\t} catch (Exception exc) {\n\t\t\t// handle the exception\n\t\t}\n\n\t\t// now add the items to a class\n\t\tme.canonicalClassName = ccName;\n\t\tme.className = className;\n\t\tme.methodName = methodName;\n\t\tif (!paramBlock.trim().isEmpty()) {\n\t\t\tString[] params = paramBlock.trim().split(\",\");\n\t\t\tArrayList<String> temp = new ArrayList<String>();\n\t\t\tfor (String param : params) {\n\t\t\t\ttemp.add(param.trim());\n\t\t\t}\n\t\t\tme.parameters = temp;\n\t\t}\n\n\t\treturn me;\n\t}",
"public void testSelfReferencesSimple()\n {\n TypeResolver typeResolver = new TypeResolver();\n MemberResolver memberResolver = new MemberResolver(typeResolver);\n ResolvedType type = typeResolver.resolve(MyComparable.class);\n ResolvedMethod[] resolvedMethods = memberResolver.resolve(type, null, null).getMemberMethods();\n\n assertEquals(1, resolvedMethods.length);\n assertEquals(Comparable.class, resolvedMethods[0].getReturnType().getErasedType());\n }",
"public void registerPatientMethod1(Patient p);",
"public abstract void getFloatImpl(String str, double d, Resolver<Double> resolver);",
"public interface Resolver {\n\n String resolveToken(String token);\n }",
"public PatchImage fieldManager(String fieldManager) {\n put(\"fieldManager\", fieldManager);\n return this;\n }",
"public abstract void getStringImpl(String str, String str2, Resolver<String> resolver);",
"static Method getDefinitionMethod(ContainerRequestContext requestContext) {\n if (!(requestContext.getUriInfo() instanceof ExtendedUriInfo)) {\n throw new IllegalStateException(\"Could not get Extended Uri Info. Incompatible version of Jersey?\");\n }\n\n ExtendedUriInfo uriInfo = (ExtendedUriInfo) requestContext.getUriInfo();\n ResourceMethod matchedResourceMethod = uriInfo.getMatchedResourceMethod();\n Invocable invocable = matchedResourceMethod.getInvocable();\n return invocable.getDefinitionMethod();\n }"
] | [
"0.586514",
"0.5155056",
"0.5112448",
"0.4853219",
"0.48467368",
"0.48352394",
"0.47581413",
"0.47409272",
"0.47317928",
"0.47193277",
"0.46750528",
"0.46225107",
"0.46010584",
"0.46010584",
"0.46002972",
"0.4591098",
"0.45697337",
"0.45654815",
"0.4563613",
"0.4552748",
"0.45327583",
"0.45296094",
"0.4524022",
"0.4522091",
"0.45139438",
"0.45051908",
"0.45050323",
"0.45021123",
"0.44771144",
"0.4433533",
"0.43985477",
"0.43956697",
"0.43872562",
"0.43695658",
"0.43587074",
"0.43587053",
"0.4354241",
"0.43416536",
"0.43190908",
"0.43173262",
"0.4300924",
"0.430071",
"0.42992753",
"0.4276827",
"0.42743275",
"0.42701542",
"0.42645043",
"0.42626348",
"0.4261452",
"0.42603263",
"0.42464504",
"0.4245287",
"0.42442742",
"0.42427257",
"0.4238341",
"0.42310613",
"0.42079318",
"0.420045",
"0.4196387",
"0.41959825",
"0.4195842",
"0.4188352",
"0.41830054",
"0.41806135",
"0.41744852",
"0.41624305",
"0.41624263",
"0.4160861",
"0.4160848",
"0.41576463",
"0.41444778",
"0.4144153",
"0.41304272",
"0.41262046",
"0.41214815",
"0.4120586",
"0.41198602",
"0.41191426",
"0.4116564",
"0.4113005",
"0.41128293",
"0.41119",
"0.41064557",
"0.41032752",
"0.41021454",
"0.40995768",
"0.40957978",
"0.4093534",
"0.40934783",
"0.40920717",
"0.40916562",
"0.408917",
"0.4087757",
"0.4074122",
"0.40738985",
"0.40727562",
"0.40713477",
"0.4070625",
"0.40629447",
"0.40587372"
] | 0.75379676 | 0 |
Call method and return given result | @Override
public Object call(Object[] invokedArgs) {
return returnType.cast(informer.get(fieldName));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"V result() throws Exception;",
"Result getResult();",
"<T> T callMethod(String name, Class<T> resultType, Object... args)\n throws ScriptRunnerException;",
"int getResult();",
"<T> T callMethod(Object obj, String name, Class<T> resultType, Object... args)\n throws ScriptRunnerException;",
"public T getResult();",
"public Object call() throws Exception {\n return this.call();\n }",
"public abstract String getResult();",
"T getResult();",
"T getResult();",
"public Object runAndGetResult() {\n run();\n return getResult();\n }",
"public String getResult();",
"public String getResult();",
"public String getResult();",
"java.lang.String getResult();",
"void ComputeResult(Object result);",
"public IStatus getResult();",
"protected abstract O getResult();",
"protected R getResult() {\n\t\treturn result;\n\t}",
"@SuppressWarnings(\"unchecked\")\n public <T> T execute() {\n return (T) fetchResponse(getCallToExecute());\n }",
"public int getResult(){\n return localResult;\n }",
"V call() throws StatusRuntimeException;",
"public Object call(Object[] args) {\r\n return invoke(args);\r\n }",
"<R> Promise<R> invoke(String methodName, Class<R> returnType, Object... arguments);",
"Result evaluate();",
"public int getresult(){\n return result;}",
"@Override\n public void execute() throws EngineException {\n Object target = JavaReflectionUtil.getObject(this.target, \n callStatement.getEntries().subList(1,\n callStatement.getEntries().size() - 1));\n this.getParent().setResult(executeMethod(target, callStatement));\n pop();\n }",
"protected SimulatorValue giveResult() {\n\tthis.evalExpression();\n\treturn value;\n }",
"public Object call(String method, Object ... params) throws JSONRPCException\r\n\t{\r\n\t\ttry \r\n\t\t{\r\n\t\t\treturn doRequest(method, params).get(\"result\");\r\n\t\t} \r\n\t\tcatch (JSONException e)\r\n\t\t{\r\n\t\t\tthrow new JSONRPCException(\"Cannot convert result\", e);\r\n\t\t}\r\n\t}",
"int getResultValue();",
"int getResultValue();",
"public T returnValue();",
"public int getResult(){\r\n\t\t return result;\r\n\t }",
"public TestResult run() {\n TestResult result= createResult();\n run(result);\n return result;\n }",
"public V call() throws Exception {\n\t\treturn null;\n\t}",
"public V call() throws Exception {\n\t\treturn null;\n\t}",
"public String process() throws Exception\r\n\t{\r\n\t\treturn result;\r\n\t}",
"protected synchronized Object call(final String method, final Object... params) throws XmlRpcException {\r\n\r\n\t\tLOGGER.finest(\"Executing call \" + method + \" \" + Arrays.toString(params));\r\n\t\treturn client.execute(method, params);\r\n\t}",
"@Override\n \tpublic Object getResult() {\n \t\treturn result;\n \t}",
"public int getResultCode();",
"void call();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"public void callit();",
"@Override\n\tpublic Response call() throws Exception {\n\t\tClientResponse response = callWebService(this.spaceEntry);\n\t\tthis.transId = (int) response.getEntity(Integer.class);\n\t\tresponse.close();\n\t\t/*wait for web service to provide tuple Object result*/\n\t\tawaitResult();\n\t\t\n\t\t/*return result*/\n\t\treturn result;\n\t}",
"B getResult();",
"Exp\ngetReturnValue();",
"public T result() {\n return result;\n }",
"protocol.Result.ResultCode getResultCode();",
"public abstract void call();",
"@Override\n public String call() throws Exception {\n return jc.get(\"foo\");\n }",
"@Override\n\tpublic Result call() throws Exception {\n\t\t// Writes a message to the console\n\t\tSystem.out.printf(\"%s: Staring\\n\",this.name);\n\t\t\n\t\t// Waits during a random period of time\n\t\ttry {\n\t\t\tLong duration=(long)(Math.random()*10);\n\t\t\tSystem.out.printf(\"%s: Waiting %d seconds for results.\\n\",this.name,duration);\n\t\t\tTimeUnit.SECONDS.sleep(duration);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\t\n\t\t// Calculates the sum of five random numbers\n\t\tint value=0;\n\t\tfor (int i=0; i<5; i++){\n\t\t\tvalue+=(int)(Math.random()*100);\n\n\t\t}\n\t\t\n\t\t// Creates the object with the results\n\t\tResult result=new Result();\n\t\tresult.setName(this.name);\n\t\tresult.setValue(value);\n\t\tSystem.out.printf(\"%s: Ends\\n\",this.name);\n\n\t\t// Returns the result object\n\t\treturn result;\n\t}",
"int getResult() {\n return result;\n }",
"@Override\n\tpublic int FunctionCall() {\n\t\tint s=success;\n\t\t\n\t\treturn s;\n\n\t}",
"public long result(){\n long result = 0L;\n int one = 1;\n \n result = result(one, one, result);\n \n return result;\n }",
"T call() throws EvalException, InterruptedException;",
"public void methodInvoked(String methodName, String resultReturned) {\n final long timeNow = System.currentTimeMillis();\n\n// final CallStats callStats = stats.computeIfAbsent(methodName, k -> new CallStats(methodName, timeNow, resultReturned));\n CallStats callStats = stats.get(methodName);\n\n if (callStats != null) {\n callStats.count.increment();\n callStats.lastCall.set(timeNow);\n callStats.lastResult.set(resultReturned);\n }\n // do not track stats for non existing methods\n }",
"@Override\n\tpublic Result getResult() {\n\t\treturn m_Result;\n\t}",
"Variable getReturn();",
"@Override\n public String call() throws Exception {\n if (!iAmSpecial) {\n blocker.await();\n }\n ran = true;\n return result;\n }",
"public TResult getResult() {\n return result;\n }",
"public void receiveResultexecute(\n loadbalance.LoadBalanceStub.ExecuteResponse result\n ) {\n }",
"boolean getResult();",
"boolean getResult();",
"boolean getResult();",
"boolean getResult();",
"public final T getResult() {\n join();\n return self();\n }",
"public E getResult(){\r\n\t\treturn this.result;\r\n\t}",
"public ObjectType callMethod(String methodName, ObjectType... args) {\n\t\t// getting the member\n\t\tObjectType member = getProperty(methodName);\n\t\t//check if exists\n\t\tif (member.isUndefined())\n\t\t\t//call hosted one instead if not exist\n\t\t\treturn callHostedMethod(\"_\", methodName, args);\n\t\t\n\t\t//calling the function\n\t\treturn member.invoke(this, args);\n\t}",
"void onResult(int ret);",
"public Result call()\n {\n // create peptide\n Peptide peptide = Rotamer.reconstitute(startingPeptide, rotamersToReconstitute);\n\n // analyze interactions\n List<Interaction> interactions = OPLScalculator.getInteractions(peptide);\n\n // initialize maps that will contain the answers\n Map<Rotamer,Double> rotamerMap = new LinkedHashMap<>();\n\n // analyze all interactions in this peptide\n Double[][] energyMatrix = Interaction.getRotamerEnergyMatrix(peptide, interactions, true);\n\n // get rotamer energies\n for (Rotamer rotamer : rotamers)\n {\n Double singleEnergy = Interaction.getRotamerEnergy(rotamer, energyMatrix); \n //if ( rotamerMap.containsKey(rotamer) && Math.abs(rotamerMap.get(rotamer) - singleEnergy) > 0.01 )\n // System.out.println(\"mismatch\");\n rotamerMap.put(rotamer,singleEnergy);\n }\n\n // get backbone energy\n double thisBackboneEnergy = Interaction.getBackboneEnergy(energyMatrix); \n\n // concurrently update results\n map.putAll(rotamerMap);\n backboneEnergy.compareAndSet(0.0, thisBackboneEnergy);\n\n // return result\n //return new RotamerEnergyResult(rotamerMap, rotamerPairMap, thisBackboneEnergy); \n return null;\n }",
"Object executeMethod(Object pObject, Method pMethod,Object[] pArgs) {\r\n\t\tObject result = null ;\r\n\t\ttry {\r\n\t\t\tresult = pMethod.invoke(pObject,pArgs) ;\r\n\t\t} catch (Exception e) {\r\n\t\t\tString message ;\r\n\t\t\tmessage = \"Error Capturing \" + getCallingClassSignature() ;\r\n\t\t\t_supervisor.echo(message) ;\r\n\t\t\tthrow new ExecutionException(message) ;\r\n\t\t}\r\n\t\treturn result ;\r\n\t}",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"public AsyncResult<Value> call(Jid jid, String methodName, Value... parameters) {\r\n AsyncResult<IQ> query = xmppSession.query(IQ.set(jid, Rpc.ofMethodCall(methodName, parameters)));\r\n return query.thenApply(result -> {\r\n if (result != null) {\r\n Rpc rpc = result.getExtension(Rpc.class);\r\n if (rpc != null) {\r\n Rpc.MethodResponse methodResponse = rpc.getMethodResponse();\r\n if (methodResponse != null) {\r\n if (methodResponse.getFault() != null) {\r\n throw new CompletionException(new RpcException(methodResponse.getFault().getFaultCode(), methodResponse.getFault().getFaultString()));\r\n }\r\n return methodResponse.getResponse();\r\n }\r\n }\r\n }\r\n return null;\r\n });\r\n }",
"public <ARG, RET> RET jsonrpc_call(String method, ARG arg, Class cls) throws Exception\n {\n\tHttpURLConnection conn = setup_call();\n\n\tJsonGenerator g = mapper.getJsonFactory().createJsonGenerator(conn.getOutputStream(), JsonEncoding.UTF8);\n\n\tg.writeStartObject();\n\tg.writeObjectField(\"params\", arg);\n\tg.writeStringField(\"method\", method);\n\tg.writeStringField(\"version\", \"1.1\");\n\tg.writeEndObject();\n\tg.close();\n\t\n\tint code = conn.getResponseCode();\n\tString msg = conn.getResponseMessage();\n\n\tInputStream istream;\n\tif (code == 500)\n\t{\n\t istream = conn.getErrorStream();\n\t}\n\telse\n\t{\n\t istream = conn.getInputStream();\n\t}\n\n\t// System.out.println(\"code=\" + code + \": \" + msg);\n\n\tJsonParser parser = mapper.getJsonFactory().createJsonParser(istream);\n\tJsonToken t= parser.nextToken();\n\tif (t != JsonToken.START_OBJECT) { throw new Exception(\"bad parse t=\" + t); }\n\t\n\tRET res = null;\n\tString ret_version = null, ret_id = null;\n\tMap<String, String> ret_error = null;\n\twhile (true)\n\t{\n\t t = parser.nextToken();\n\t if (t == JsonToken.END_OBJECT || t == null)\n\t {\n\t\tbreak;\n\t }\n\t \n\t if (t != JsonToken.FIELD_NAME){ throw new Exception(\"bad parse t=\" + t); }\n\t String field = parser.getCurrentName();\n\t // System.out.println(t + \" \" + field);\n\t if (field.equals(\"result\"))\n\t {\n\t\tt = parser.nextToken();\n\t\t// System.out.println(\"read result \" + t + \" \" + parser.getCurrentName());\n\t\tres = (RET) parser.readValueAs(cls);\n\t }\n\t else if (field.equals(\"version\"))\n\t {\n\t\tt = parser.nextToken();\n\t\tif (t != JsonToken.VALUE_STRING) { throw new Exception(\"bad parse t=\" + t); }\n\t\tret_version = parser.getText();\n\t }\n\t else if (field.equals(\"error\"))\n\t {\n\t\tt = parser.nextToken();\n\t\t\n\t\tif (t != JsonToken.START_OBJECT) { throw new Exception(\"bad parse t=\" + t); }\n\t\t\n\t\tret_error = parser.readValueAs(new TypeReference<Map<String, String>>(){});\n\t\t// System.out.println(\"err=\" + ret_error);\n\t }\n\t else if (field.equals(\"id\"))\n\t {\n\t\tt = parser.nextToken();\n\t\tif (t != JsonToken.VALUE_STRING) { throw new Exception(\"bad parse t=\" + t); }\n\t\tret_id = parser.getText();\n\t }\n\t}\n\tif (ret_error != null)\n\t{\n\t throw new Exception(\"JSONRPC error received: \" + ret_error);\n\t}\n\telse if (res == null)\n\t{\n\t throw new Exception(\"No return found\");\n\t}\n\telse\n\t{\n\t return res;\n\t}\n }",
"protected final boolean exec() {\n/* 94 */ this.result = compute();\n/* 95 */ return true;\n/* */ }",
"@Override\n\tpublic String call() throws Exception {\n\t\treturn \"hello\";\n\t}",
"@Nullable\n Result getResult();",
"@Override\n public void execute() {\n this.setMyReturnValue(myHandler.getXcor());\n }",
"public abstract int getLapResult();",
"public T getResult() {\n return result;\n }",
"public T getResult() {\n return result;\n }",
"@Override\n public V call() throws HttpRequestException {\n boolean bl = false;\n try {\n V v = this.run();\n return v;\n }\n catch (HttpRequestException httpRequestException) {\n bl = true;\n throw httpRequestException;\n }\n catch (IOException iOException) {\n bl = true;\n throw new HttpRequestException(iOException);\n }\n finally {\n this.done();\n }\n }",
"public MatchOther processResult(ResultItems resultItems, Task task);",
"public void returnResult() {\n\t\tSystem.out.printf(\"Result of your Numbers are: %d\", result());\n\t}",
"@Override\n public T call() {\n try {\n return callable.call();\n }\n catch (Throwable e) {\n Log.e(\"Scheduler\", \"call code exception: %s\", e);\n return null;\n }\n }",
"int getMethodValue();",
"public String call() throws Exception {\n return \"\";\n }",
"public int callInt(String method, Object ... params) throws JSONRPCException\r\n\t{\r\n\t\ttry \r\n\t\t{\r\n\t\t\treturn doRequest(method, params).getInt(\"result\");\r\n\t\t} \r\n\t\tcatch (JSONException e)\r\n\t\t{\r\n\t\t\tthrow new JSONRPCException(\"Cannot convert result to int\", e);\r\n\t\t}\r\n\t}",
"public Object getReturnValue() {\n return returnValue;\n }",
"public Double getResult();",
"private Object executeMethod(Object target, CallStatement callStatement)\n throws EngineException {\n try {\n CallStatement.CallStatementEntry entry = \n callStatement.getEntries().get(callStatement.getEntries().size() -1);\n Method[] methods = target.getClass().getMethods();\n for (Method method: methods) {\n if (methodsMatch(method,entry)) {\n return method.invoke(target, parameters.toArray(new Object[0]));\n }\n }\n } catch (EngineException ex) {\n throw ex;\n } catch (Exception ex) {\n throw new EngineException(\"Failed to execute the method because : \" \n + ex.getMessage(),ex);\n }\n throw new java.lang.NoSuchMethodError(\n \"No method matching the requirments was found\");\n }",
"public int getReturnValue() {\n if (success)\r\n return 0;\r\n else\r\n return ret;\r\n }",
"public Object getResult() {\n if (result == null) {\n return defaultResult();\n } else {\n return result;\n }\n }"
] | [
"0.6932244",
"0.6915979",
"0.6869784",
"0.6827699",
"0.6813869",
"0.66653556",
"0.6595679",
"0.65935165",
"0.65649885",
"0.65649885",
"0.6539808",
"0.6538258",
"0.6538258",
"0.6538258",
"0.6431878",
"0.6395991",
"0.63738346",
"0.62735724",
"0.6234843",
"0.62025344",
"0.6192413",
"0.6165351",
"0.61524767",
"0.6138532",
"0.61148745",
"0.6092248",
"0.6078752",
"0.6074118",
"0.60621524",
"0.6050461",
"0.6050461",
"0.6024049",
"0.60189366",
"0.60038203",
"0.5990048",
"0.5990048",
"0.5987841",
"0.5962113",
"0.5951951",
"0.59509754",
"0.5945162",
"0.5944944",
"0.5944944",
"0.5944944",
"0.5944944",
"0.5944944",
"0.5893602",
"0.58748776",
"0.587346",
"0.58642274",
"0.58606625",
"0.58520454",
"0.58443105",
"0.58282536",
"0.58273184",
"0.5822108",
"0.5818374",
"0.5807484",
"0.5795558",
"0.5790684",
"0.5790246",
"0.57861686",
"0.57697165",
"0.57528037",
"0.57505107",
"0.57387376",
"0.57387376",
"0.57387376",
"0.57387376",
"0.57242566",
"0.57233053",
"0.5706962",
"0.570111",
"0.56970084",
"0.5690411",
"0.5682912",
"0.5682912",
"0.56822544",
"0.5681101",
"0.5681101",
"0.567293",
"0.5669455",
"0.5667557",
"0.5661322",
"0.5660341",
"0.56523657",
"0.56508946",
"0.5650077",
"0.5650077",
"0.565006",
"0.56438166",
"0.5636089",
"0.56298304",
"0.56292814",
"0.56216395",
"0.5620347",
"0.56131077",
"0.5611631",
"0.5603308",
"0.5601859",
"0.5601542"
] | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver", "C:\\Users\\koorosh\\eclipse-workspace2\\Verizon_Home\\DriverVer\\chromedriver.exe");
ChromeOptions option=new ChromeOptions();
option.addArguments("--disable-notifications");
WebDriver driver=new ChromeDriver(option);
driver.get("http://www.sprint.com");
} | {
"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 |
/ JADX INFO: super call moved to the top of the method (can break code semantics) | public UndispatchedCoroutine(@NotNull CoroutineContext coroutineContext, @NotNull Continuation<? super T> continuation) {
super(coroutineContext, continuation);
Intrinsics.checkParameterIsNotNull(coroutineContext, "context");
Intrinsics.checkParameterIsNotNull(continuation, "uCont");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_6349() {\r\n super.method_6349();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void method_6191() {\r\n super.method_6191();\r\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tprotected void parentMethod() {\n\t\tsuper.parentMethod();\r\n\t\tSystem.out.println(\"ChildParentMethod\");\r\n\t}",
"@Override\n protected void prot() {\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 einkaufen() {\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }",
"@Override\n\tpublic void inorder() {\n\n\t}",
"public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public void smell() {\n\t\t\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"public /* bridge */ /* synthetic */ void mo55097d() {\n super.mo55097d();\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\n\tpublic void jugar() {}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tpublic void dosomething2() {\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}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public void c(int paramInt)\r\n/* 101: */ {\r\n/* 102:122 */ this.b = false;\r\n/* 103:123 */ super.c(paramInt);\r\n/* 104: */ }",
"public int b()\r\n/* 45: */ {\r\n/* 46: 58 */ g();\r\n/* 47: */ \r\n/* 48: 60 */ return super.b();\r\n/* 49: */ }",
"protected void method_2665() {\r\n super.method_2427(awt.field_4171);\r\n this.method_2440(true);\r\n this.method_2521(class_872.field_4244);\r\n }",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void method() {\n\t\r\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"public void avvia() {\n /** invoca il metodo sovrascritto della superclasse */\n super.avvia();\n }",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }",
"@Override\n protected void init() {\n }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\tpublic void some() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n\tpublic void aaa() {\n\t\t\n\t}",
"@Override\n public void b() {\n }",
"@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}",
"@Override\r\n public void salir() {\n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void preorder() {\n\n\t}",
"private stendhal() {\n\t}",
"public void doSomething() {\n Outer.this.doSomething();\r\n // this stops the pretty printer and gives an\r\n //parser exception (stumbling over the .super)\r\n Outer.super.doSomething();\r\n }",
"@Override\n\tpublic void deneme() {\n\t\tsuper.deneme();\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n public void preRun() {\n super.preRun();\n }",
"public abstract void mo70713b();",
"@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void laught() {\n\r\n\t}",
"@Override\n\tpublic void imprimir() {\n\t\t\n\t}",
"public final /* bridge */ /* synthetic */ void mo43571c() {\n super.mo43571c();\n }",
"protected void h() {}",
"@Override\r\npublic int method() {\n\treturn 0;\r\n}",
"public void method_4270() {}",
"@Override\n\tvoid methodabstract() {\n\t\t\n\t}",
"@Override\n\tpublic void call() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\n }",
"public aed(World paramaqu)\r\n/* 9: */ {\r\n/* 10: 24 */ super(paramaqu);\r\n/* 11: */ }",
"@Override\n protected void initialize() \n {\n \n }",
"public void callP(){\n super.walks(\"called parent method\");\n }",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"void berechneFlaeche() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }"
] | [
"0.7415376",
"0.7120564",
"0.7120564",
"0.7120564",
"0.71153504",
"0.70223135",
"0.7006699",
"0.6959695",
"0.69354844",
"0.68295795",
"0.6789057",
"0.6759874",
"0.6727165",
"0.6727165",
"0.6680012",
"0.6670413",
"0.6636899",
"0.66286534",
"0.6619911",
"0.6605483",
"0.6603786",
"0.65827864",
"0.6582374",
"0.6549963",
"0.65440935",
"0.6521893",
"0.65033007",
"0.64430153",
"0.6418491",
"0.6415374",
"0.6402436",
"0.6399175",
"0.63874805",
"0.6380345",
"0.63703823",
"0.636628",
"0.6361068",
"0.63538253",
"0.6352187",
"0.63364285",
"0.6320418",
"0.63070816",
"0.63070816",
"0.6295037",
"0.629354",
"0.629354",
"0.6286359",
"0.6273603",
"0.6262495",
"0.62398976",
"0.622353",
"0.6220281",
"0.62041765",
"0.61982226",
"0.61772496",
"0.6173603",
"0.61712366",
"0.6169294",
"0.6160802",
"0.6130551",
"0.61259943",
"0.61221814",
"0.6102809",
"0.60933787",
"0.6091748",
"0.6089609",
"0.6085169",
"0.60627353",
"0.6061544",
"0.6055915",
"0.60450166",
"0.60438436",
"0.60397464",
"0.60341513",
"0.60323876",
"0.60323876",
"0.60323876",
"0.60323876",
"0.60323876",
"0.60323876",
"0.60318136",
"0.60297084",
"0.6026534",
"0.6025891",
"0.6024079",
"0.6018422",
"0.6014384",
"0.6010973",
"0.60091984",
"0.6001627",
"0.5998774",
"0.599578",
"0.5995695",
"0.5991061",
"0.59895426",
"0.59802836",
"0.5971288",
"0.5970281",
"0.5967115",
"0.59662133",
"0.59614575"
] | 0.0 | -1 |
A lower level implementation to get path from key point to key point | public String searchFromGridFile(File file) {
String result = "";
// TODO: read file and generate path using AStar algorithm
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"PathKeys getPathKeys();",
"public List<MapPoint> buildPath(MapPoint point) { // Palauttaa polun alusta loppuun listana.\n List<MapPoint> finalPath = new ArrayList<>();\n MapPoint tempPoint = point;\n while (true) {\n finalPath.add(0, tempPoint);\n \n if (!tempPoint.hasPrevious()) {\n break;\n }\n tempPoint = tempPoint.getPrevious();\n }\n return finalPath; \n }",
"public String getPath(String from, String to, String pathAlgo);",
"TreePath getTreePath(String key) {\n String[] keys = key.split(\"/\");\n TreePath tp = indexTree.getLeadSelectionPath();\n Object[] oa = tp.getPath();\n int idx = 0;\n for (int j = 0; j < oa.length - 1; j++) {\n TreeNode tn = (TreeNode) oa[j];\n for (int i = 0; i < tn.getChildCount(); i++) {\n DefaultMutableTreeNode child = (DefaultMutableTreeNode)tn.getChildAt(i);\n if (child.getUserObject().equals(keys[j])) {\n oa[j + 1] = tn.getChildAt(i);\n break;\n }\n }\n }\n return new TreePath(oa);\n }",
"public String getPath()\r\n/* 26: */ {\r\n/* 27:57 */ return this.path;\r\n/* 28: */ }",
"private List<Point> getPath(int index) {\n\t\t \n\t \n\t\t Node fromNode = oEdge.fromNode;\n\t\t Node toNode = oEdge.toNode;\n\t\t float x1 = fromNode.longitude;\n\t\t float x2 = toNode.longitude;\n\t\t float y1 = fromNode.latitude;\n\t\t float y2 = toNode.latitude;\n\t\t double slope, angle;\n\t\t if(x1!=x2) {\n\t\t\t slope = (y2-y1)/(x2-x1);\n\t\t\t \tangle = Math.atan(slope);\n\t\t\t \t} else {\n\t\t\t \t\tangle = Math.PI/2;\n\t\t\t \t}\n\t\t Double L = Math.sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));\n\t\t float offsetPixels=0;\n\t\t if(Math.toDegrees(angle)>Math.toDegrees(90)) {\n\t\t\t if (index==0){\n\t\t\t\t offsetPixels=roadWidth*6/10;\n\t\t\t }\n\t\t\t else if(index==1){\n\t\t\t\t offsetPixels=roadWidth*11/10;\n\t\t\t }\n\t\t\t else if(index==-1){\n\t\t\t\t offsetPixels=roadWidth*1/10;\n\t\t\t }\n\t\t\t \n\t\t } else {\n\t\t\t \n\t\t\t if (index==0){\n\t\t\t\t offsetPixels=-roadWidth*6/10;\n\t\t\t }\n\t\t\t else if(index==1){\n\t\t\t\t offsetPixels=-roadWidth*11/10;\n\t\t\t }\n\t\t\t else if(index==-1){\n\t\t\t\t offsetPixels=-roadWidth*1/10;\n\t\t\t }\n\t\t }\n\t\t \n\t\t // This is the first parallel line\n\t\t float x1p1 = x1 + offsetPixels * (y2-y1) / L.floatValue();\n\t\t float x2p1 = x2 + offsetPixels * (y2-y1) / L.floatValue();\n\t\t float y1p1 = y1 + offsetPixels * (x1-x2) / L.floatValue();\n\t\t float y2p1 = y2 + offsetPixels * (x1-x2) / L.floatValue();\n//\t\t if(oEdge.edgeID==16) {\n//\t\t\t System.out.println(\"testing\");\n//\t\t }\n\t\t \n\t\t Point P1 = new Point(x1p1,y1p1);\n\t\t Point P2 = new Point(x2p1,y2p1);\n\t\t List<Point> gP = GetPoints(P1, P2);\n\t\t return gP;\n\t \n\t}",
"public List<WeightedPoint> getPath(WeightedPoint cursor)\n {\n List<WeightedPoint> path = new ArrayList<WeightedPoint>();\n while (cursor != null)\n {\n path.add(path.size(), cursor);\n cursor = cursor.getPrev();\n }\n return path;\n }",
"IPath getPath();",
"Path getPath();",
"protected LinkedList<IVertex<String>> getPath(IVertex<String> target) {\n\n LinkedList<IVertex<String>> path = new LinkedList<IVertex<String>>();\n\n IVertex<String> step = target;\n\n // check if a path exists\n if (predecessors.get(step) == null) {\n return null;\n }\n path.add(step);\n while (predecessors.get(step) != null) {\n step = predecessors.get(step);\n path.add(step);\n }\n // Put it into the correct order\n Collections.reverse(path);\n return path;\n }",
"private void buildPath() {\r\n int xNext = 1;\r\n int yNext = map.getStartPos() + 1;\r\n CellLayered before = cells[yNext][xNext];\r\n while(true)\r\n {\r\n Byte[] xy = map.getDirection(xNext-1, yNext-1);\r\n xNext = xNext + xy[0];\r\n yNext = yNext + xy[1];\r\n\r\n CellLayered next = cells[yNext][xNext];\r\n\r\n if(xy[0]==-1)\r\n before.setRight(false);\r\n else\r\n before.setRight(true);\r\n before.setPath(true);\r\n if(next==null)\r\n break;\r\n\r\n before.setNextInPath(next);\r\n before = next;\r\n }\r\n }",
"public Path getPath();",
"private Square[] returnPath(Vertex v, GameBoard b) {\n // because we're starting at the end point,\n // we need build the path in 'reverse'\n Stack<Square> path = new Stack<Square>();\n\n // while we're not at the start point\n while ( v.dist != 0 ) {\n path.push(vertexToSquare(v,b));\n v = v.path;\n }\n\n // place the locations in the proper order\n Square[] road = new Square[path.size()];\n for ( int i = 0; i < path.size(); i++ )\n road[i] = path.pop();\n\n return road;\n }",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"Path getPathFromNodeTo(Node destination);",
"public List<WeightedPoint> getPath()\n {\n return getPath(this.tail);\n }",
"PathSegments getPath();",
"List<JPAPath> getKeyPath() throws ODataJPAModelException;",
"@Override\n\tpublic ArrayList<Edge<Object>> getPath(String startNode, String endNode) {\n\t\treturn null;\n\t}",
"public ArrayList<Integer> path2Dest(int s, int t, int k, int method){\n double INFINITY = Double.MAX_VALUE;\n boolean[] SPT = new boolean[intersection];\n double[] d = new double[intersection];\n int[] parent = new int[intersection];\n\n for (int i = 0; i <intersection ; i++) {\n d[i] = INFINITY;\n parent[i] = -1;\n }\n d[s] = 0;\n\n MinHeap minHeap = new MinHeap(k);\n for (int i = 0; i <intersection ; i++) {\n minHeap.add(i,d[i]);\n }\n while(!minHeap.isEmpty()){\n int extractedVertex = minHeap.extractMin();\n\n if(extractedVertex==t) {\n break;\n }\n SPT[extractedVertex] = true;\n\n LinkedList<Edge> list = g.adjacencylist[extractedVertex];\n for (int i = 0; i <list.size() ; i++) {\n Edge edge = list.get(i);\n int destination = edge.destination;\n if(SPT[destination]==false ) {\n double newKey =0;\n double currentKey=0;\n if(method==1) { //method 1\n newKey = d[extractedVertex] + edge.weight;\n currentKey = d[destination];\n }\n else{ //method 2\n newKey = d[extractedVertex] + edge.weight + coor[destination].distTo(coor[t])-coor[extractedVertex].distTo(coor[t]);\n currentKey = d[destination];\n }\n if(currentKey>=newKey){\n if(currentKey==newKey){ //if equal need to compare the value of key\n if(extractedVertex<parent[destination]){\n minHeap.updateKey(newKey, destination, d[destination]);\n parent[destination] = extractedVertex;\n d[destination] = newKey;\n }\n }\n else {\n minHeap.updateKey(newKey, destination, d[destination]);\n parent[destination] = extractedVertex;\n d[destination] = newKey;\n }\n }\n }\n }\n }\n //trace back the path using parent properties\n ArrayList<Integer> path = new ArrayList<>();\n if(parent[t]!=-1){\n path.add(t);\n while(parent[t]!= s) {\n path.add(0,parent[t]);\n t = parent[t];\n }\n path.add(0,s);\n }\n else\n path = null;\n return path;\n }",
"public List<Node> findPath(Node start);",
"@Override\r\n\tpublic ArrayList<E> getPath(E src, E dst) {\r\n\t\treturn graphForWarshall.getPath(src, dst);\r\n\t}",
"protected abstract int[] getPathElements();",
"private void setPath(){\r\n // get the reversed path\r\n ArrayList<Grid> reversedPath = new ArrayList<>();\r\n int index = _endIndex;\r\n reversedPath.add(_map.get_grid(index));\r\n while(index != _startIndex){\r\n index = _map.get_grid(index).get_parent();\r\n reversedPath.add(_map.get_grid(index));\r\n }\r\n\r\n // get the final path in the correct order\r\n int length = reversedPath.size();\r\n for(int i=length-1;i>=0;i--){\r\n _path.add(reversedPath.get(i));\r\n }\r\n }",
"@Override\n\tpublic PathIterator getPathIterator(AffineTransform arg0, double arg1) {\n\t\treturn null;\n\t}",
"public void pathTo(int x, int y);",
"public T getPath() {\n\tif (path == null) path = newSplinePath2D();\n\tint cpsize = cplist.size();\n\tif (cpsize > 0) {\n\t CPoint[] array = new CPoint[cpsize];\n\t cplist.toArray(array);\n\t appendAux(array);\n\t cplist.clear();\n\t}\n\treturn path;\n }",
"private List<Node> getIntermediatePath(final Node source, final Node target) {\n if (P[source.id][target.id] == null) {\n return new ArrayList<Node>();\n }\n final List<Node> path = new ArrayList<Node>();\n path.addAll(getIntermediatePath(source, P[source.id][target.id]));\n path.add(P[source.id][target.id]);\n path.addAll(getIntermediatePath(P[source.id][target.id], target));\n return path;\n }",
"public static void computePaths(Point source) {\n\n\t\tsource.setMinimumDistance(0.0);\n\t\tPriorityQueue<Point> pointQueue = new PriorityQueue<Point>();\n\t\tpointQueue.add(source);\n\t\twhile (!pointQueue.isEmpty()) {\n\t\t\tPoint u = pointQueue.poll();\n\t\t\tif (u.getAdjacencies() != null) {\n\t\t\t\tfor (Edge e : u.getAdjacencies()) {\n\n\t\t\t\t\tPoint target = e.getTarget();\n\t\t\t\t\tdouble weight = e.getWeight();\n\t\t\t\t\tdouble distanceThroughP = weight + u.getMinimumDistance();\n\n\t\t\t\t\tif (distanceThroughP < target.getMinimumDistance()) {\n\t\t\t\t\t\tpointQueue.remove(target);\n\n\t\t\t\t\t\ttarget.setMinimumDistance(distanceThroughP);\n\t\t\t\t\t\ttarget.setPrevious(u);\n\t\t\t\t\t\tpointQueue.add(target);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"CtPath getPath();",
"@Override\r\n\tpublic ArrayList<String> getPath(String actor1, String actor2)\r\n\t{\r\n\t\tActor act1 = new Actor(actor1);\r\n\t\tActor act2 = new Actor(actor2);\r\n\t\t\r\n\t\tif(graph.containsEdge(act1,act2 ))\r\n\t\t{\r\n\t\t\treturn graph.shortestPath(act1, act2);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public abstract ScaledPathArray getPathList();",
"public abstract String getPath();",
"public abstract String getPath();",
"Map<String, PathItem> getPathItems();",
"int getReverseEdgeKey();",
"abstract public List<S> getPath();",
"public static Tile[] getPath(Tile origin, Tile target) {\n\t\tint dist = getDistance(origin, target);\n\t\tTile[] path = new Tile[dist];\n\t\tswitch (getDirection(origin, target)) {\n\t\t\tcase East:\n\t\t\t\tfor (int i = 0; i < dist; i++) {\n\t\t\t\t\tpath[i] = Chess.getBoard().getTile(origin.getX(), origin.getY() + (i + 1));\n\t\t\t\t}\n\t\t\t\treturn path;\n\t\t\tcase North:\n\t\t\t\tfor (int i = 0; i < dist; i++) {\n\t\t\t\t\tpath[i] = Chess.getBoard().getTile(origin.getX() - (i + 1), origin.getY());\n\t\t\t\t}\n\t\t\t\treturn path;\n\t\t\tcase NorthEast:\n\t\t\t\tfor (int i = 0; i < dist; i++) {\n\t\t\t\t\tpath[i] = Chess.getBoard().getTile(origin.getX() - (i + 1), origin.getY() + (i + 1));\n\t\t\t\t}\n\t\t\t\treturn path;\n\t\t\tcase NorthWest:\n\t\t\t\tfor (int i = 0; i < dist; i++) {\n\t\t\t\t\tpath[i] = Chess.getBoard().getTile(origin.getX() - (i + 1), origin.getY() - (i + 1));\n\t\t\t\t}\n\t\t\t\treturn path;\n\t\t\tcase South:\n\t\t\t\tfor (int i = 0; i < dist; i++) {\n\t\t\t\t\tpath[i] = Chess.getBoard().getTile(origin.getX() + (i + 1), origin.getY());\n\t\t\t\t}\n\t\t\t\treturn path;\n\t\t\tcase SouthEast:\n\t\t\t\tfor (int i = 0; i < dist; i++) {\n\t\t\t\t\tpath[i] = Chess.getBoard().getTile(origin.getX() + (i + 1), origin.getY() + (i + 1));\n\t\t\t\t}\n\t\t\t\treturn path;\n\t\t\tcase SouthWest:\n\t\t\t\tfor (int i = 0; i < dist; i++) {\n\t\t\t\t\tpath[i] = Chess.getBoard().getTile(origin.getX() + (i + 1), origin.getY() - (i + 1));\n\t\t\t\t}\n\t\t\t\treturn path;\n\t\t\tcase West:\n\t\t\t\tfor (int i = 0; i < dist; i++) {\n\t\t\t\t\tpath[i] = Chess.getBoard().getTile(origin.getX(), origin.getY() + (i + 1));\n\t\t\t\t}\n\t\t\t\treturn path;\n\t\t}\n\t\treturn null;\n\t}",
"public Path getPath() {\n return p;\n }",
"public static Path getOnePathTo(ARGState pLastElement) {\n Path path = new Path();\n Set<ARGState> seenElements = new HashSet<ARGState>();\n\n // each element of the path consists of the abstract state and the outgoing\n // edge to its successor\n\n ARGState currentARGState = pLastElement;\n // add the error node and its -first- outgoing edge\n // that edge is not important so we pick the first even\n // if there are more outgoing edges\n\n CFANode loc = extractLocation(currentARGState);\n CFAEdge lastEdge = null;\n if (loc.getNumLeavingEdges() > 0) {\n lastEdge = loc.getLeavingEdge(0);\n }\n /*\n\n */\n path.addFirst(Pair.of(currentARGState, lastEdge));\n seenElements.add(currentARGState);\n\n while (!currentARGState.getParents().isEmpty()) {\n Iterator<ARGState> parents = currentARGState.getParents().iterator();\n\n ARGState parentElement = parents.next();\n //System.out.println(currentARGState.getStateId()+\":\"+parentElement);\n while (!seenElements.add(parentElement) && parents.hasNext()) {\n // while seenElements already contained parentElement, try next parent\n parentElement = parents.next();\n // System.out.println(currentARGState.getStateId()+\":\"+parentElement);\n }\n\n CFAEdge edge = parentElement.getEdgeToChild(currentARGState);\n path.addFirst(Pair.of(parentElement, edge));\n //输出当前路径\n //System.out.println(currentARGState.getStateId()+\",\"+currentARGState.getValuesOfKeyVariables());\n //System.out.println(edge);\n currentARGState = parentElement;\n\n //测试用\n /*if(!(edge instanceof CAssumeEdge) &&edge.getRawStatement().contains(\"a3\")){\n System.out.println(currentARGState.getStateId()+\":\"+currentARGState.getValuesOfKeyVariables());\n }*/\n\n }\n // System.out.println(\"跳出getOnePathTo\");\n return path;\n }",
"private void computePath(){\n LinkedStack<T> reversePath = new LinkedStack<T>();\n // adding end vertex to reversePath\n T current = end; // first node is the end one\n while (!current.equals(start)){\n reversePath.push(current); // adding current to path\n current = closestPredecessor[vertexIndex(current)]; // changing to closest predecessor to current\n }\n reversePath.push(current); // adding the start vertex\n \n while (!reversePath.isEmpty()){\n path.enqueue(reversePath.pop());\n }\n }",
"@Override\r\n\tpublic Path findSeaPath(Point start, Point end) {\n\t\treturn null;\r\n\t}",
"public static Path getPath(IPoint a, IPoint b) throws PathNotFoundException {\n\t\tIPoint[] destinations = new IPoint[2];\n\t\tdestinations[0] = a;\n\t\tdestinations[1] = b;\n\n\t\treturn getPath(destinations);\n\t}",
"public String[] getPathToKing() {\n return pathToKing;\n }",
"private List<Edge<T>> getPath(T target) {\n List<Edge<T>> path = new LinkedList<>();\n T step = target;\n // check if a path exists\n if (predecessors.get(step) == null) {\n return path;\n }\n while (predecessors.get(step) != null) {\n T endVertex = step;\n step = predecessors.get(step);\n T startVertex = step;\n path.add(getEdge(startVertex, endVertex));\n }\n // Put it into the correct order\n Collections.reverse(path);\n return path;\n }",
"Pair<Vertex, Double> closestVertexToPath(Loc pos);",
"protected String printablePath(IVertex<String> target){\n\n String lineout = \"\";\n\n LinkedList<IVertex<String>> path = this.getPath(target);\n\n IVertex<String> previous = null;\n\n IVertex<String> next = null;\n\n if(path!=null) {\n Iterator<IVertex<String>> it = path.iterator();\n\n while (it.hasNext()) {\n\n previous = next;\n\n next = it.next();\n\n IWeightedEdge<String> prevedge = null;\n\n if(previous!=null && next!=null){\n prevedge = this.weightedGraph.getEdge(previous,next);\n }\n\n if(prevedge!=null)\n lineout+= \" \" +prevedge.getWeight() + \" \";\n\n lineout += \" \" + next.getValue() + \" \";\n }\n }\n return lineout;\n }",
"private Stack<MapLocation> returnPath(MapLocation goal, MapLocation start) {\n\t\tStack<MapLocation> path = new Stack<MapLocation>();\n\n\t\tMapLocation iter = goal;\n\t\twhile (iter.cameFrom != null) {\n\t\t\tpath.add(iter.cameFrom);\n\t\t\titer = iter.cameFrom;\n\t\t}\n\t\t// to remove start\n\n\t\tif (path.isEmpty()) {\n\t\t\treturn path;\n\t\t}\n\n\t\tpath.pop();\n\n\t\treturn path;\n\t}",
"public float[][] getPath() {\n/* 825 */ COSBase base = getCOSObject().getDictionaryObject(COSName.PATH);\n/* 826 */ if (base instanceof COSArray) {\n/* */ \n/* 828 */ COSArray array = (COSArray)base;\n/* 829 */ float[][] pathArray = new float[array.size()][];\n/* 830 */ for (int i = 0; i < array.size(); i++) {\n/* */ \n/* 832 */ COSBase base2 = array.getObject(i);\n/* 833 */ if (base2 instanceof COSArray) {\n/* */ \n/* 835 */ pathArray[i] = ((COSArray)array.getObject(i)).toFloatArray();\n/* */ }\n/* */ else {\n/* */ \n/* 839 */ pathArray[i] = new float[0];\n/* */ } \n/* */ } \n/* 842 */ return pathArray;\n/* */ } \n/* 844 */ return (float[][])null;\n/* */ }",
"public ArrayList<Vertex> getPath(Vertex target) {\n\t\tArrayList<Vertex> path = new ArrayList<Vertex>();\n\t\tVertex step = target;\n\t\t// check if a path exists\n\t\tif (predecessors.get(step) == null) {\n\t\t\treturn null;\n\t\t}\n\t\tpath.add(step);\n\t\twhile (predecessors.get(step) != null) {\n\t\t\tstep = predecessors.get(step);\n\t\t\tpath.add(step);\n\t\t}\n\t\t// Put it into the correct order\n\t\tCollections.reverse(path);\n\n\n\t\tVertex current=null;\n\t\tVertex next=null;\n\t\tint length = path.size();\n\t\tfor(int i=0;i<length-1;i++){\n current = path.get(i);\n\t\t\t next = path.get(i+1);\n\t\t\tif(!rapid && (nodeColor_map.get(current.getName()).equalsIgnoreCase(\"dB\")||\n\t\t\t\t\tnodeColor_map.get(next.getName()).equalsIgnoreCase(\"dB\")))\n\t\t\t\trapid = true;\n\t\t\troute_length+= edge_length_map.get(new Pair(current,next));\n\t\t}\n\n\t\treturn path;\n\t}",
"String getPath();",
"String getPath();",
"String getPath();",
"String getPath();",
"String getPath();",
"private List<Edge<String>> getPath(Vertex<String> end,\n Vertex<String> start) {\n if (graph.label(end) != null) {\n List<Edge<String>> path = new ArrayList<>();\n\n Vertex<String> cur = end;\n Edge<String> road;\n while (cur != start) {\n road = (Edge<String>) graph.label(cur); // unchecked cast ok\n path.add(road);\n cur = graph.from(road);\n }\n return path;\n }\n return null;\n }",
"private int getPath(int row, int col) {\n\tif (row > X || col > Y || row < 0 || col < 0) return 0;\n\tif (row == X && col == Y) return 1;\n\tif (grid[row][col] == -1) return 0;\n\n\tif (memo[row][col] != -1) return memo[row][col];\n\n\tint isPossible = getPath(row + y_dir[0], col + x_dir[0]);\n\tif (isPossible != 1) {\n\t isPossible = getPath(row + y_dir[1], col + x_dir[1]);\n\t}\n\n\tif (isPossible == 1) {\n\t path.add(new Point(row, col));\n\t}\n\t\n\treturn memo[row][col] = isPossible;\n }",
"@Override\n public String getKey(Tuple2<Point, Point> e) throws Exception {\n return e.f0.objID; // keyBy Trajectory ID\n }",
"@Override\n public String getKey(Tuple2<Point, Point> e) throws Exception {\n return e.f0.objID; // keyBy Trajectory ID\n }",
"@Override\n public String getKey(Tuple2<Point, Point> e) throws Exception {\n return e.f0.objID; // keyBy Trajectory ID\n }",
"@Override\r\n public ArrayList<PathXNode> generatePath() throws VertexNotFoundException {\r\n return null;\r\n }",
"public AbstractPathElement<V, E> getPrevPathElement()\r\n/* */ {\r\n/* 188 */ return this.prevPathElement;\r\n/* */ }",
"private Path2D destination(final Map<PolylineStage,Path2D> appendTo) {\n return appendTo.computeIfAbsent(this, (k) -> new Path2D.Float());\n }",
"private void generatePath(List<Coordinate> source, List<Coordinate> path) {\n for (int i = 0; i < source.size() - 1; i++) {\n Graph graph = new Graph(getEdge(map));\n Coordinate start = source.get(i);\n Coordinate end = source.get(i + 1);\n graph.dijkstra(start);\n graph.printPath(end);\n for (Graph.Node node : graph.getPathReference()) {\n path.add(node.coordinate);\n }\n }\n }",
"private List<Edge> getPath(Vertex source) {\n\t\tint [] predecessors = new ShortestPath().findShortestPath(this.residualNetwork, source);\n\t\tList<Edge> path = retrieveEdgesFromPredecessorArray(predecessors);\n\t\treturn path;\n\t}",
"public String getPath()\n\t{\n\t\treturn letter + \":/\";\n\t}",
"public void pathTo(int x1, int y1, int x2, int y2, int x3, int y3);",
"public VariableBitString getPath(char symbol) {\r\n if(isEmpty()){\r\n throw new ArrayIndexOutOfBoundsException(\"No symbols in table\");\r\n }\r\n else {\r\n Node symbolNode = first;\r\n while(true) {\r\n if(symbolNode.symbol == symbol) {\r\n return symbolNode.path;\r\n }\r\n else if(symbolNode.next == null) {\r\n throw new NoSuchElementException(\"Symbol is not in the table\");\r\n }\r\n else {\r\n symbolNode = symbolNode.next;\r\n }\r\n }\r\n }\r\n }",
"public String getPathName();",
"@Override\n\tpublic void pathFinderVisited(int x, int y) {\n\t}",
"public Path getPath(){\n return this.path;\n }",
"private LinkedList<Point> constructPath(Point a, HashMap<Point, Point> allPaths) {\n\t\tLinkedList<Point> ret = new LinkedList<Point>();\n\t\tret.addLast(a);\n\t\tPoint current = a;\n\t\twhile (allPaths.containsKey(current)) {\n\t\t\tcurrent = allPaths.get(current);\n\t\t\tret.addLast(current);\n\t\t}\n\t\treturn ret;\n\t}",
"public LinkedList<Point> generatePath(Node node) {\n if (node == null) {\n throw new IllegalArgumentException(\"ERROR: Node cannot be null!\");\n }\n LinkedList<Point> path = new LinkedList<>();\n while (node != null) {\n path.add(new Point(node.getPosition().getX(), node.getPosition().getY()));\n node = node.getParent();\n }\n return path;\n }",
"TreeNodeValueModel<T>[] path();",
"public IPathItem getPath(String path){\r\n return pathsMap.get(path);\r\n }",
"private LinkedList<Node> reconstructPath(Map<Node, Node> cameFrom, Node current){\n LinkedList<Node> bestPath = new LinkedList<>();\n bestPath.add(current);\n\n while(cameFrom.containsKey(current)){\n current = cameFrom.get(current);\n bestPath.add(current);\n }\n return bestPath;\n }",
"public Stack<Point> shortestPath() {\n\t\tresetVisited();\n\t\tStack <Point> shortestPath = new Stack<Point>();\n\t\tprev = new HashMap<Point,Point>();\n\t\tCompass[] direction = Compass.values();\n\t\tQueue <Point> path = new LinkedList<Point>();\n\t\tpath.add(playerStart);\n\t\twhile(!path.isEmpty()) {\n\t\t\tPoint current = path.poll();\n\t\t\tfor (Compass pointing: direction) {\n\t\t\t\tif (current.equals(goal)) {\n\t\t\t\t\tshortestPath.push(current);\n\t\t\t\t\twhile (prev.containsKey(shortestPath.peek()) && !shortestPath.peek().equals(playerStart)){\n\t\t\t\t\t\tshortestPath.push(prev.get(shortestPath.peek()));\n\t\t\t\t\t}\n\t\t\t\t\treturn shortestPath;\n\t\t\t\t}\n\t\t\t\tint nextW = (int)current.getX() + pointing.mapX;\n\t\t\t\tint nextH = (int)current.getY() + pointing.mapY;\n\t\t\t\tPoint nextPoint = new Point(nextW, nextH);\n\t\t\t\tif (arrayBounds(nextW, width) && arrayBounds (nextH, height) && maze[nextW][nextH] == 0 && !visited.contains(nextPoint)) {\n\t\t\t\t\tpath.add(nextPoint);\n\t\t\t\t\tvisited.add(nextPoint);\n\t\t\t\t\tprev.put(nextPoint, current);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn shortestPath;\t\t\n\t}",
"public void pathFromRoot(Tree<K, V> t, K key, List<K> list) {\n\t\tlist.add(this.key);\n\t\tif (key.compareTo(this.key) != 0) {\n\t\t\tif (key.compareTo(this.key) < 0) {\n\t\t\t\tleft.pathFromRoot(left, key, list);\n\t\t\t} else {\n\t\t\t\tright.pathFromRoot(left, key, list);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic PathIterator getPathIterator(AffineTransform arg0) {\n\t\treturn null;\n\t}",
"public DevicePath getDevicePath(Device device);",
"public Vector<PathElement> generateAccessPath()\n\t{\n\t if ( null == this.parent )\n {\n return new Vector<PathElement>();\n }\n else if ( this.isNary() )\n {\n checkPrecondition(this.parent != null, \"N-ary node with no parent\");\n return this.parent.generateAccessPath();\n }\n else\n {\n Vector<PathElement> path = parent.generateAccessPath();\n PathElement own_element = new PathElement(this.operator, this.paramState, this.positionInParent);\n path.add(own_element);\n return path;\n }\n\t}",
"public ArrayList<Action> findShortestPath(int startX, int startY, int endX, int endY, int numKeys, boolean toUnknown){\n\t\t\tHashSet<SearchNode> visited = new HashSet<SearchNode>();\n\t\t\tHashSet<SearchNode> work = new HashSet<SearchNode>();\n\t\t\t\n\t\t\tSearchNode start = new SearchNode();\n\t\t\tstart.posX = startX;\n\t\t\tstart.posY = startY;\n\t\t\tstart.gScore = 0;\n\t\t\tif (toUnknown)\n\t\t\t\tstart.fScore = 0;\n\t\t\telse\n\t\t\t\tstart.fScore = Math.abs(startX - endX) + Math.abs(startY - endY);\n\t\t\tstart.keysLeft = numKeys;\n\t\t\tstart.cameFrom = null;\n\t\t\twork.add(start);\n\t\t\t\n\t\t\twhile(work.size() > 0){\n\t\t\t\tSearchNode current = findFirstNode(work);\n\t\t\t\tif (!toUnknown && current.posX == endX && current.posY == endY){\n\t\t\t\t\t//We've found the end node, reconstruct the path\n\t\t\t\t\treturn recoverPath(current);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (toUnknown && getElement(current.posX, current.posY) == BoxContainer.Unkown){\n\t\t\t\t\treturn recoverPath(current);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\twork.remove(current);\n\t\t\t\tvisited.add(current);\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < 4; i++){\n\t\t\t\t\tint newX, newY;\n\t\t\t\t\tAction direction;\n\t\t\t\t\tif (i == 0){\n\t\t\t\t\t\tnewX = current.posX + 1;\n\t\t\t\t\t\tnewY = current.posY;\n\t\t\t\t\t\tdirection = Action.East;\n\t\t\t\t\t}\n\t\t\t\t\telse if (i == 1){\n\t\t\t\t\t\tnewX = current.posX;\n\t\t\t\t\t\tnewY = current.posY + 1;\n\t\t\t\t\t\tdirection = Action.North;\n\t\t\t\t\t}\n\t\t\t\t\telse if (i == 2){\n\t\t\t\t\t\tnewX = current.posX - 1;\n\t\t\t\t\t\tnewY = current.posY;\n\t\t\t\t\t\tdirection = Action.West;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tnewX = current.posX;\n\t\t\t\t\t\tnewY = current.posY - 1;\n\t\t\t\t\t\tdirection = Action.South;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//Check to make sure we can move into this node\n\t\t\t\t\tBoxContainer newBox = getElement(newX, newY);\n\t\t\t\t\tif (newBox == BoxContainer.Blocked || (!toUnknown && newBox == BoxContainer.Unkown))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\tif (newBox == BoxContainer.Door && current.keysLeft == 0){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tint new_gScore = current.gScore + 1;\n\t\t\t\t\tif (newBox == BoxContainer.Door || newBox == BoxContainer.Key)\n\t\t\t\t\t\tnew_gScore++;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//try to find the node if we've already searched it, otherwise create it\n\t\t\t\t\tSearchNode newNode = findNodeWithCoords(visited, newX, newY);\n\t\t\t\t\tif (newNode == null){\n\t\t\t\t\t\tnewNode = findNodeWithCoords(work, newX, newY);\n\t\t\t\t\t\tif (newNode == null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tnewNode = new SearchNode();\n\t\t\t\t\t\t\tnewNode.posX = newX;\n\t\t\t\t\t\t\tnewNode.posY = newY;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (visited.contains(newNode) && new_gScore >= newNode.gScore)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\tif (!work.contains(newNode) || new_gScore < newNode.gScore){\n\t\t\t\t\t\tnewNode.cameFrom = current;\n\t\t\t\t\t\tnewNode.direction = direction;\n\t\t\t\t\t\tnewNode.gScore = new_gScore;\n\t\t\t\t\t\tif (toUnknown)\n\t\t\t\t\t\t\tnewNode.fScore = newNode.gScore;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tnewNode.fScore = newNode.gScore + Math.abs(newNode.posX - endX) + Math.abs(newNode.posY - endY);\n\t\t\t\t\t\tnewNode.keysLeft = current.keysLeft;\n\t\t\t\t\t\tif (newBox == BoxContainer.Door)\n\t\t\t\t\t\t\tnewNode.keysLeft--;\n\t\t\t\t\t\tif (newBox == BoxContainer.Key)\n\t\t\t\t\t\t\tnewNode.keysLeft++;\n\t\t\t\t\t\tif (!work.contains(newNode))\n\t\t\t\t\t\t\twork.add(newNode);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn null;\n\t\t}",
"java.util.List<org.openxmlformats.schemas.drawingml.x2006.main.CTPath2D> getPathList();",
"public String getKeyFilePath();",
"public static Path findShortestPath(Unit unit, int x, int y, GameMap map, boolean theoretical)\n {\n if( null == unit || null == map || !map.isLocationValid(unit.x, unit.y) )\n {\n return null;\n }\n\n Path aPath = new Path(100);\n if( !map.isLocationValid(x, y) )\n {\n // Unit is not in a valid place. No path can be found.\n System.out.println(\"WARNING! Cannot find path for a unit that is not on the map.\");\n aPath.clear();\n return aPath;\n }\n\n int[][] costGrid = new int[map.mapWidth][map.mapHeight];\n for( int i = 0; i < map.mapWidth; i++ )\n {\n for( int j = 0; j < map.mapHeight; j++ )\n {\n costGrid[i][j] = Integer.MAX_VALUE;\n }\n }\n\n // Set up search parameters.\n SearchNode root = new SearchNode(unit.x, unit.y);\n costGrid[unit.x][unit.y] = 0;\n Queue<SearchNode> searchQueue = new java.util.PriorityQueue<SearchNode>(13, new SearchNodeComparator(costGrid, x, y));\n searchQueue.add(root);\n\n ArrayList<SearchNode> waypointList = new ArrayList<SearchNode>();\n\n // Find optimal route.\n while (!searchQueue.isEmpty())\n {\n // Retrieve the next search node.\n SearchNode currentNode = searchQueue.poll();\n\n // If this node is our destination, we are done.\n if( currentNode.x == x && currentNode.y == y )\n {\n // Add all of the points on the route to our waypoint list.\n while (currentNode.parent != null)\n {\n waypointList.add(currentNode);\n currentNode = currentNode.parent;\n }\n // Don't forget the starting node (no parent).\n waypointList.add(currentNode);\n break;\n }\n\n expandSearchNode(unit, map, currentNode, searchQueue, costGrid, theoretical);\n\n currentNode = null;\n }\n\n // Clear and Populate the Path object.\n aPath.clear();\n // We added the waypoints to the list from end to beginning, so populate the Path in reverse order.\n if( !waypointList.isEmpty() )\n {\n for( int j = waypointList.size() - 1; j >= 0; --j )\n {\n //System.out.println(\"Waypoint \" + waypointList.get(j).x + \", \" + waypointList.get(j).y + \" over \" + map.getEnvironment(waypointList.get(j).x, waypointList.get(j).y).terrainType);\n aPath.addWaypoint(waypointList.get(j).x, waypointList.get(j).y);\n }\n }\n\n return aPath;\n }",
"public ArrayList<Point> getPath() {\n\t\treturn path;\n\t\t\n\t}",
"public List<Pair<Integer, Integer>> preparePath(Pair<Integer, Integer> goal) {\n var path = new LinkedList<Pair<Integer, Integer>>();\n path.add(goal);\n var parent = goal.getParent();\n while(parent != null) {\n path.addFirst(parent);\n parent = parent.getParent();\n }\n path.removeLast();\n return path;\n }",
"public static List<Point> getShortestPath(Point target) {\n\n\t\tList<Point> path = new ArrayList<Point>();\n\n\t\tfor (Point point = target; point != null; point = point.getPrevious())\n\t\t\tpath.add(point);\n\n\t\tCollections.reverse(path);\n\t\treturn path;\n\n\t}",
"public Location getNeighbouringPath(String enteredPath) {\r\n\t\t\treturn this.getPlayer().getCurrentLocation().getPaths().get(enteredPath);\r\n\t\t}",
"String getPathName();",
"String getPathName();",
"@Nullable\n @Generated\n @Selector(\"relationshipKeyPathsForPrefetching\")\n public native NSArray<String> relationshipKeyPathsForPrefetching();",
"public BlockPath getPath() {\n BlockPath path = new BlockPath();\n path.addPathNodeToPathFront(this);\n CourseComponent nodeAbove = parent;\n while (nodeAbove != null) {\n path.addPathNodeToPathFront(nodeAbove);\n nodeAbove = nodeAbove.getParent();\n }\n return path;\n }",
"private Set<Path> getOpticalPaths(OpticalOduIntent intent) {\n // Route in OTU topology\n Topology topology = topologyService.currentTopology();\n\n\n class Weigher implements LinkWeigher {\n @Override\n public Weight weight(TopologyEdge edge) {\n if (edge.link().state() == Link.State.INACTIVE) {\n return ScalarWeight.toWeight(-1);\n }\n if (edge.link().type() != Link.Type.OPTICAL) {\n return ScalarWeight.toWeight(-1);\n }\n // Find path with available TributarySlots resources\n if (!isAvailableTributarySlots(intent, edge.link())) {\n return ScalarWeight.toWeight(-1);\n }\n return ScalarWeight.toWeight(1);\n }\n\n @Override\n public Weight getInitialWeight() {\n return null;\n }\n\n @Override\n public Weight getNonViableWeight() {\n return null;\n }\n }\n\n\n LinkWeigher weigher = new Weigher();\n\n ConnectPoint start = intent.getSrc();\n ConnectPoint end = intent.getDst();\n\n return topologyService.getPaths(topology, start.deviceId(), end.deviceId(), weigher);\n }",
"List<Point> getPath(int grid[][], Point src, Point dest);",
"public interface PathCalculationStrategy {\n\t\n\t/**\n\t * Returns the shortest path for a Journey.\n\t * \n\t * @param grid the traffic grid.\n\t * @param src the source location.\n\t * @param dest the destination location.\n\t * \n\t * @return a List containing the path for the Journey.\n\t */\n\tList<Point> getPath(int grid[][], Point src, Point dest);\n}",
"private static int getDestination(int startStation, List<Integer> path) {\n\t\t\n\t\tint curStation = startStation;\n\t\tint[] availableLines = subway[curStation];\n\t\tint pathListIndx = 0;\n\t\t\n\t\tMyCustomKey potential = new MyCustomKey(startStation, path.subList(0, path.size()-1), closed);\n\t\tif(cache.containsKey(potential)) {\n\t\t\tcurStation = cache.get(potential);\n\t\t\tavailableLines = subway[curStation];\n\t\t\tpathListIndx = path.size() - 1;\n\t\t}\n\t\t\n\t\tfor(int indx = pathListIndx ; indx < path.size() ; indx++) {\n\t\t\tint nextLine = path.get(indx);\n\t\t\tcurStation = goToNextStation(curStation, availableLines, nextLine);\n\t\t\tavailableLines = subway[curStation];\n\t\t}\n\t\t\n\t\tMyCustomKey newKey = new MyCustomKey(startStation, Collections.unmodifiableList(path), closed);\n\t\tcache.put(newKey, curStation);\n\t\treturn curStation;\n\t}",
"private char[] getPath() {\n\t\treturn null;\n\t}",
"public Position[] getPath() {\n\t\treturn path;\n\t}",
"public LinkedList<Pair<DirType, Location>> getMove(int curX, int curY) {\n // find the shortest path to each coin from this current position (we don't actually care about\n // coins that we don't have a path to)\n // then, find the shortest path from each of those coins to each other coin\n\n // then, we want all Hamiltonian paths (and all subpaths?) Traveling Salesman Problem\n // i.e. we care about paths for as long as the number of steps it takes to complete\n // is less than or equal to the number of turns we have remaining\n\n // convert the Location[][] we have into David and Austin's LocationsToNode\n LocationsToNode graph = new LocationsToNode(maze);\n // knownCoins are ONLY the coins we have paths to. we will calculate the\n // shortest paths later. there are repeat calculations below.\n LinkedList<Node> coins = bfsFindCoins(graph, curX, curY);\n for (Node coinFrom : coins) {\n Location coinFromLoc = graph.getLocation(coinFrom);\n LinkedList<LinkedList<Location>> pathsToOthers = new LinkedList<LinkedList<Location>>();\n for (Node coinTo : coins) {\n Location coinToLoc = graph.getLocation(coinTo);\n LinkedList<Location> path = getShortestPath(coinFrom, coinTo, graph);\n pathsToOthers.add(path);\n }\n paths.put(coinFromLoc,pathsToOthers);\n }\n\n // calculating all possible Hamiltonian paths....\n // this is A LOT of paths we're talking about\n // i.e. we want every path that visits every single coin\n // so if we know 20 coins, starting at point 1, we have 19 choices\n // for the second point, 18 for the third, and so on (this is on the order of\n // n! total paths without dynamic programming, and might be too much brute force)\n // https://en.wikipedia.org/wiki/Hamiltonian_path#Properties\n // https://en.wikipedia.org/wiki/Travelling_salesman_problem#Heuristic_and_approximation_algorithms\n // https://stackoverflow.com/questions/16555978/example-of-a-factorial-time-algorithm-o-n\n // then, we will decide which Hamiltonian is the best for the number of\n // moves we have available to us\n\n // instead, i am going to try only calculating the paths we can actually make with our current number\n // of turns because we want the most coins in the fewest turns\n\n // WE ONLY CARE ABOUT THE LONGEST (COIN) PATH WITH THE SAME NUMBER OF TURNS\n\n return new LinkedList<Pair<DirType, Location>>();\n }",
"public Pair<Integer, Boolean> findPath(BabelSynset bs1, BabelSynset bs2) throws Exception {\n\t\tif(bs1.equals(bs2) && !bs1.equals(\"bn:00031027n\")) return new Pair<Integer, Boolean>(0, false);\n\t\tif(bs1.equals(bs2) && bs1.equals(\"bn:00031027n\")) return new Pair<Integer, Boolean>(0, true);\n\t\t\n\t\tA_parentsHigh = new ArrayList<String>();\n\t\t\n\t\tPair<Integer, Boolean> default_result = new Pair<Integer, Boolean>(0, true);\n\t\t\n\t\tint A_path = 0;\n\t\tString A_parent = bs1.getId().toString();\n\t\tB_recoverAncestors(bs2, 25);\n\t\t\n\t\tSystem.out.println(B_Ancestors+\"\\n\\n\");\n\t\t\n\t\tif(A_parent == null) return new Pair<Integer, Boolean>(B_Ancestors.size(), true);\n\t\tif(A_parent.equals(\"bn:00031027n\")) return new Pair<Integer, Boolean>(B_Ancestors.size()+1, true);\n\t\tfor(int i=0; i<50; i++) {\n\t\t\tSystem.out.println(A_parent);\n\t\t\tint B_path = 0;\n\t\t\tfor(String id : B_Ancestors) {\n\t\t\t\tif(A_parent.equals(id)) {\n\t\t\t\t\tSystem.out.println(\"Path di A: \" + A_path + \"\\nPath di B: \" + B_path);\n\t\t\t\t\tif(id.equals(\"bn:00031027n\")) return new Pair<Integer, Boolean>(A_path+B_path, true);\n\t\t\t\t\telse return new Pair<Integer, Boolean>(A_path+B_path, false);\n\t\t\t\t}\n\t\t\t\tB_path++;\n\t\t\t}\n\t\t\tif(A_parent.equals(\"bn:00031027n\")) break;\n\t\t\tA_parent = recoverParent(bn.getSynset(new BabelSynsetID(A_parent)));\n\t\t\tA_path++;\n\t\t}\n\t\treturn default_result;\n\t}"
] | [
"0.69809914",
"0.6494761",
"0.64861435",
"0.6341531",
"0.6284563",
"0.62223935",
"0.61914665",
"0.60958254",
"0.6089115",
"0.6021385",
"0.5986904",
"0.59814584",
"0.59188837",
"0.5910466",
"0.58555734",
"0.5849642",
"0.5843559",
"0.5834336",
"0.5827933",
"0.5821707",
"0.5809952",
"0.57906294",
"0.57849693",
"0.57836777",
"0.5781977",
"0.5756579",
"0.57486594",
"0.57447183",
"0.57424206",
"0.5726437",
"0.5726006",
"0.5723673",
"0.5716913",
"0.5716913",
"0.5715346",
"0.57143235",
"0.56939316",
"0.569",
"0.56776166",
"0.5664939",
"0.5634948",
"0.5634908",
"0.56123936",
"0.56033087",
"0.55642456",
"0.5562519",
"0.5553485",
"0.55352676",
"0.5535002",
"0.5533577",
"0.55335546",
"0.55335546",
"0.55335546",
"0.55335546",
"0.55335546",
"0.55208784",
"0.551364",
"0.55132324",
"0.55132324",
"0.55132324",
"0.55055916",
"0.5505001",
"0.55036664",
"0.5500236",
"0.54964656",
"0.54950374",
"0.5489567",
"0.5485426",
"0.5477596",
"0.5477181",
"0.54755825",
"0.5470857",
"0.5460801",
"0.5459421",
"0.5457204",
"0.54552484",
"0.5452577",
"0.5443048",
"0.54413",
"0.54372877",
"0.5437204",
"0.5435519",
"0.5434698",
"0.54345673",
"0.543346",
"0.5427902",
"0.54226404",
"0.5419514",
"0.5411982",
"0.54100204",
"0.54100204",
"0.5392403",
"0.53861445",
"0.53746885",
"0.53744733",
"0.5372653",
"0.53659856",
"0.535711",
"0.5354845",
"0.5345823",
"0.5338487"
] | 0.0 | -1 |
Creates an instance of WeaponProjectile | public void shoot(double x, double y) {
if (magazineCounter > 0 && !reloading) {
magazineCounter--;
new WeaponProjectile(new Point2D(x, y), mouseLocation(), projectileSpeed, testing);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initiateProjectile() {\n\t}",
"public static Weapon spawnWeapon()\r\n\t{\r\n\t\tfinal int numberOfWeapons = 5; //update as weapons are added\r\n\t\t\r\n\t\t//Create weapons in order to access attributes / randomly select a weapon\r\n\t\tSword sword = new Sword();\r\n\t\tStick stick = new Stick();\r\n\t\tBazooka bazooka = new Bazooka();\r\n\t\tAtomicBomb atomicBomb = new AtomicBomb();\r\n\t\tPotatoCannon potatoCannon = new PotatoCannon();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tWeapon[] weapons = new Weapon[] {sword, stick,bazooka,atomicBomb,potatoCannon}; //store weapons in an array to randomly grab one to use in Game\r\n\t\t\r\n\t\tint randomWeapon; //weapon chosen\t\t\r\n\t\tRandom rng = new Random (); //create generator based upon current number of weapons\r\n\t\trandomWeapon = rng.nextInt(numberOfWeapons); //get a weapon object at random from array\r\n\r\n\t\treturn (weapons[randomWeapon]); //we have no need to create separate instance\r\n\t}",
"public Weapon(double fireRatePerSecond,\n\t\t\t\t Projectiles projectileType)\n\t\t{\n\t\tthis.projectileType = projectileType;\n\t\tthis.projectileType.setFixtureDefSensor(true);\n\t\tthis.setupFireRate(fireRatePerSecond);\n\t\t}",
"public Weapon (Player player) {\n\t\tthis.player = player;\n\t}",
"public Weapon() {\n this(Weapon.defaultName, 0, new Level(0), 0, 0);\n }",
"protected void spawnProjectile(Vector2 spawnPos, Vector2 projectileVel)\n\t\t{\n\t\t\tSystem.out.println(\"SPAWN\");\n\t\tthis.projectileType.setSpawnPosition(spawnPos);\n\t\tthis.projectileType.createBodyCopy();\n\t\tthis.setLinearVelocity(projectileVel.scl(this.projectileType.getProjectileSpeed()));\n\t\tthis.projectileType.createFixtureCopy();\n\t\tthis.projectileType.setUserData(this.projectileType);\n\t\tthis.projectileType.createSprite();\n\t\tthis.projectileType.storeInitialSpawnPoints(this.projectileType.getFixture());\n\t\t}",
"public Weapon(Player player)\n\t{\n\t\tthis.bullets=new ArrayList<Bullet>();\n\t\tthis.player=player;\n\t\tpause = cooldown;\n\t}",
"public void makeProjectile(float time){\n Geometry proj_geo = new Geometry(\"bullet projectile\", sphere);\n proj_geo.setMaterial(proj_mat);\n \n //Attach geometry to rootNode\n rootNode.attachChild(proj_geo);\n //Configure position and direction vectors\n proj_geo.setLocalTranslation(cam.getLocation());\n proj_geo.lookAt(cam.getDirection(), cam.getUp());\n \n proj_ctrl = new ProjectileControl();\n //proj_phy = new ProjectilePhysicsControl();\n proj_geo.addControl(proj_ctrl);\n \n proj_ctrl.setLinearVelocity(cam.getDirection().mult(40));\n proj_ctrl.setLifetime(1f);\n \n //proj_geo.addControl(proj_phy);\n bulletAppState.getPhysicsSpace().addCollisionListener(this);\n }",
"public Weapon(Weapon weapon) \n\t{\n\t\tsuper(weapon.getName());\n\t\tweaponDamage = weapon.getWeaponDamage();\n\t}",
"public SimpleProjectile(float x, float y, float vx, float vy) {\n this.x = x;\n this.y = y;\n this.vx = vx;\n this.vy = vy;\n }",
"private void createWeapons()\n {\n woodSword = new Weapon(\"wood sword\", \" | does 12 damage\", 10, true); \n rustedSword = new Weapon(\"rusted sword\", \" | does 17 damage\", 15, true);\n silverSword = new Weapon(\"silver sword\", \" | does 32 damage\", 30, true);\n goldSword = new Weapon(\"gold sword\", \" | does 22 damage\", 20, true);\n titaniumSword = new Weapon(\"titanium sword\", \" | does 52 damage\", 50, true);\n silverSpear = new Weapon(\"silver spear\", \" | does 25 damage\", 23, true);\n infantryBow = new Weapon(\"infantry bow\", \" | does 30 damage\", 28, true);\n }",
"public void addSpawnpointWeapon(Weapon w) {\n this.weaponSpawnpoint.addWeapon(w);\n }",
"@Override\r\n\tpublic Projectile getProjectile(int yield) {\r\n\t\treturn new BazookaProjectile(getWorm(), yield);\r\n\t}",
"public Weapon(WeaponType type, int level) {\n \tthis.effects = new ArrayList<>();\n this.type = type;\n this.level = level;\n this.effects.add(new AttackEffect(getWeaponDamage(), getWeaponSpeed(), getWeaponRange(), Target.SELF));\n }",
"public Projectile fire() {\n\t\tNode component = new Rectangle(PROJECTILE_WIDTH, PROJECTILE_HEIGHT, Color.RED);\n\t\tint xVelocity = isFacingRight ? projectileXSpeed : -projectileXSpeed;\n\t\tProjectile projectile = new Projectile(this, projectileDamage, projectileRange, xVelocity, projectileYVelocity, component);\n\t\tdouble offset = components.get(0).getBoundsInParent().getWidth() / 2;\n\t\tcomponent.setTranslateX(isFacingRight ? components.get(0).getTranslateX() + offset : components.get(0).getTranslateX() - offset);\n\t\tcomponent.setTranslateY(components.get(0).getTranslateY() + 20);\n\t\treturn projectile;\n\t}",
"public void fireProjectile(String direction){\r\n\t\tif(name.equals(\"Robot\"))AdventureManager.currentRoom.enemyProjectiles.add(new Projectile(x,y, direction, 5, \"laser\"));\r\n\t\telse AdventureManager.currentRoom.enemyProjectiles.add(new Projectile(x,y, direction, 3, \"fireball\"));\r\n\t}",
"public M_Bullet shoot() {\n Point leftCorner = this.getLocation();\n // get the center of the character\n int x = leftCorner.x;\n int y = leftCorner.y;\n Point dim = this.getDimensions();\n int h = dim.y;\n int w = dim.x;\n h = h / 2;\n w = w / 2;\n Point center = new Point(x + w, y + h);\n // get the velocity for the bullet\n Point vel = new Point(this.getDirection() * 3, 0);\n // set the enemy's shot cooldown to its shot interval.\n setShotCooldown(getShotInterval());\n // return the new bullet\n return new M_Bullet(center, this.getStrength(), vel, true);\n }",
"public Weapon ()\r\n\t{\r\n\t\t//no default values for Weapon attributes are set here as the specific weapon type unspecified at super level\r\n\t}",
"public PickupWeaponBase(Vec2 position, WeaponBase weaponBarrel) {\n super(position, Vec2.ZERO, new Sprite(\"items/weaponBody\"));\n setSize(new Vec2(0.7, 0.7));\n setRenderLayer(RenderLayer.RenderLayerName.HIGH_BLOCKS);\n\n this.cli = weaponBarrel;\n\n collider = new CircleCollider(this, 30);\n collider.setTag(\"Item\");\n collider.addInteractionLayer(\"Walk\");\n\n }",
"public Weapon()\n {\n name = \"None\";\n speed = 2;\n damage = 1;\n range = 1;\n }",
"public void spawnNew() {\n\t\tif (tier> 1) {\n\t\t\ttier--;\n\t\t\thealth = tier;\n\t\t\tdamage = tier;\n\t\t\tspeed = 5;\n\t\t\timg = getImage(updateImage(tier)); // converted getImage to protected b/c it wasn't accessible by Balloon class (child class)\n\t\t}\n\t\telse {\n\t\t\tisAlive = false;\n\t\t\tdeletePath();\t\t\t\n\t\t}\n\t}",
"public void shoot(Projectile p){\r\n\t\tp.facing = facing;\r\n\t\tp.x = x+(width/2)-(p.width/2);\r\n\t\tp.y = y+(height/2)-(p.height/2);\r\n\t\tp.fired = true;\r\n\t\tinAttackCooldown = true;\r\n\t}",
"public Weapon(float x, float y, float laserSpeed, float laserWidth) {\n\t\tthis.x = x - (HALF * laserWidth);\n\t\tthis.y = y;\n\t\tthis.laserSpeed = laserSpeed;\n\t\tthis.width = laserWidth;\n\t\tthis.height = 0;\n\t\tthis.visible = true;\n\t}",
"public Weapon buildWeapon() {\n\t\tRandom rand = new Random();\n\t\tint chance = rand.nextInt(rangeMax - rangeMin) + rangeMin;\n\t\tfor (Weapon weapon: weapons) {\n\t\t\tif (weapon.isInSpawnRange(chance)) {\n\t\t\t\treturn weapon.clone();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public Warrior(Point3D position, int speed) {\r\n super(\"img/Ants/warrior.png\", position, speed);\r\n currentBehaviour = WarriorBehaviour.PATROL;\r\n }",
"public Weapon(){\n \n name = \"Claw\"; // will be treated as a sword\n type = 'R';\n advType = 'G';\n disType = 'B';\n mt = 4;\n hit = 85;\n crit = 0;\n wt = 1;\n isMagic = true;\n \n }",
"public Gun() {\n\t\tgunName = \"pistol\";\n\t\tammo = 7;\n\t\taccuracy = 7;\n\t}",
"public WeaponTab(final Project project) {\n\t\tsuper(project);\n\t\ticoncache = new HashMap<String, Image>();\n\n\t\tloadFile(Type.WEAPON);\n\t}",
"public WeaponTest() {\r\n\r\n }",
"public void sendNewProjectile(long itemid, byte type, String modelName, String name, byte material, Vector3f startingPosition, Vector3f startingVelocity, Vector3f endingPosition, float rotation, boolean surface) {\n/* 5629 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 5633 */ vz.sendNewProjectile(itemid, type, modelName, name, material, startingPosition, startingVelocity, endingPosition, rotation, surface);\n/* */ }\n/* 5635 */ catch (Exception e) {\n/* */ \n/* 5637 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }",
"Bullet(int posX,int posY,int velX,int velY,int classOfObejct,int attack){\n this.posX = posX;\n this.posY = posY;\n this.velX = velX;\n this.velY = velY;\n this.classOfObejct = classOfObejct;\n this.attack = attack;\n\n }",
"public PlayerProjectile(LivingEntity source, int toX, int toY) { \n super(source, toX, toY);\n this.setVelocity(new Vector(toX - source.getX(), toY - source.getY(), this.speed));\n }",
"private void shoot()\n\t{\n\t\t//Speed movement of the bullet\n\t\tint speed = 0;\n\t\t//Damage dealt by the bullet\n\t\tint damage = 0;\n\t\t//Angle used to shoot. Used only by the vulcan weapon\n\t\tdouble angle = 0;\n\t\t\n\t\tif(weapon == PROTON_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 10;\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30, speed, damage, 0);\n\t\t\tSoundManager.getInstance().playSound(\"protonshoot\", false);\n\t\t}\t\n\t\telse if(weapon == VULCAN_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 2;\n\t\t\tangle = 10;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getThreeBullets(getX() +27, getX()+37, getX()+47,\n\t\t\t\t\tgetY()-this.getHeight()+30, speed, damage, (int)angle);\n\t\t\tSoundManager.getInstance().playSound(\"vulcanshoot\", false);\n\t\t}\t\t\n\t\telse\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 15;\n\t\t\tangle = 0;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30,\n\t\t\t\t\t\tspeed, damage, angle);\n\t\t\tSoundManager.getInstance().playSound(\"gammashoot\", false);\n\t\t}\t\n\t}",
"public Lunge() {\n super(SkillFactory.LUNGE, \"Lunge\", SkillDescription.lunge, 15, Pokemon.Type.BUG,\n SkillCategory.PHYSICAL, 100, 80, 1, 1.0);\n secondaryEffects.add(new AttackEffect(SecondaryEffect.Target.ENEMY, 1,\n SecondaryEffect.StatDirection.DECREASE));\n makesPhysicalContact = true;\n }",
"@Test\r\n public void test_weapon() {\r\n Weapon weapon1 = new Weapon(\"gun\", \"that a weapon for sure\", 7);\r\n assertEquals(\"gun\", weapon1.getInformation().getName());\r\n assertEquals(\"that a weapon for sure\", weapon1.getInformation().getDescription());\r\n assertEquals(7, weapon1.getDamage());\r\n }",
"@Override\n\tpublic void drawProjectile(final SpriteBatch spriteBatch) {\n\t}",
"public ShotgunWeapon() {\n description = \" Weapon: Shotgun has\";\n }",
"public ItemWeapon(float x, float y, int width, int height) { \r\n\t\tsuper(x, y, width, height);\r\n\t}",
"@Test\n public void testDoesntCreateExplosion() {\n // set up the world\n World world = makeWorld();\n \n // make the projectile\n ProjectileDefinition projectileDefinition = new ProjectileDefinition(0,\n \"testProjectileBaseCase\", \"resources/projectiles/test.png\", 0,\n 0, 1, 30, true, 10, false, 0);\n\n Entity projectile = ProjectileEntities.createProjectile(world,\n projectileDefinition, 30, 30, null);\n \n // \"Collide\" with the projectile\n CollisionComponent collision = world.getComponent(projectile, \n CollisionComponent.class).get();\n collision.addCollision(world.createEntity());\n \n // check that there's no explosion and a projectile\n assertTrue(\"There shouldn't be an explosion\",\n world.getComponents(ExplosionComponent.class) == null);\n \n assertTrue(\"There should be a projectile that's alive\", \n isProjectileAlive(world, projectile));\n \n // Run the system\n world.process(0, 0.1);\n \n // check that there's no explosion and a projectile\n assertTrue(\"There shouldn't be an explosion\",\n world.getComponents(ExplosionComponent.class) == null);\n \n assertTrue(\"There should be a projectile that's alive\", \n isProjectileAlive(world, projectile));\n \n // Run the system\n world.process(0, 0.1);\n \n // check that there's no projectile or explosion\n assertTrue(\"There shouldn't be an explosion\",\n world.getComponents(ExplosionComponent.class) == null);\n \n assertTrue(\"Projectile should be destroyed\", \n isProjectileDestroyed(world, projectile));\n }",
"public Pile() {\r\n\t\tconstruirePile();\r\n\t}",
"public EnemyProjectile(final float sourceX, final float sourceY,\r\n\t\t\tfinal float targetX, final float targetY, final float bulletDamage) {\r\n\t\tsuper(sourceX, sourceY, targetX, targetY, bulletDamage);\r\n\t\t\r\n\t\tsetMaxVelocity(170);\r\n\t\tbuildBody(sourceX, sourceY);\r\n\t\tgetBody().setUserData(\"enemyProj\");\r\n\t\tgetFixture().setUserData(this);\r\n\t\tgetBody().setLinearVelocity(calculateVelocity());\r\n\t}",
"public void shoot(){\n int bulletPosX = posX;\n int bulletPosY = posY;\n int bulletVelX = 0;\n int bulletVelY = -9;\n //add the new bullets to the array of bullets\n bullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,0,attack));\n }",
"protected IProjectile getProjectileEntity(World par1World, IPosition par2IPosition)\n {\n \tEntityBrick brick = new EntityBrick(par1World, par2IPosition.getX(), par2IPosition.getY(), par2IPosition.getZ());\n \tbrick.dispensed = true;\n \treturn brick; \n }",
"void fire() {\r\n // firing a shot takes energy\r\n if (!expendEnergy(BULLET_ENERGY))\r\n return;\r\n\r\n //create a bullet object so it doesn't hit the ship that's firing it\r\n double xV = getXVel() + BULLET_SPEED * (Math.cos(orientation));\r\n double yV = getYVel() + BULLET_SPEED * (Math.sin(orientation));\r\n\r\n // create the actual bullet\r\n new Bullet(\r\n getGame(),\r\n (getXPos() + ((getSize()/2 + 2) * (Math.cos(orientation))) + xV),\r\n (getYPos() + ((getSize()/2 + 2) * (Math.sin(orientation))) + yV),\r\n xV,\r\n yV);\r\n }",
"@Override\n public Bullet getBullet() {\n return new EnemyGunBullet1();\n }",
"@Test\n public void testCollisionCreatesExplosion() {\n // set up the world\n World world = makeWorld();\n \n // make the projectile\n ProjectileDefinition projectileDefinition = new ProjectileDefinition(0,\n \"testProjectileBaseCase\", \"resources/projectiles/test.png\", 0,\n 0, 1, 30, true, 10, true, 10);\n\n Entity projectile = ProjectileEntities.createProjectile(world,\n projectileDefinition, 30, 30, null);\n \n // \"Collide\" with the projectile\n CollisionComponent collision = world.getComponent(projectile, \n CollisionComponent.class).get();\n collision.addCollision(world.createEntity());\n \n // check that there's no explosion and a projectile\n assertTrue(\"There shouldn't be an explosion\",\n world.getComponents(ExplosionComponent.class) == null);\n \n assertTrue(\"There should be a projectile that's alive\", \n isProjectileAlive(world, projectile));\n \n // Run the system\n world.process(0, 0.1);\n \n // check that there's an explosion and a projectile\n assertTrue(\"There should be an explosion\",\n world.getComponents(ExplosionComponent.class).size() == 1);\n \n assertTrue(\"There should be a projectile that's alive\", \n isProjectileAlive(world, projectile));\n \n // Run the system\n world.process(0, 0.1);\n \n // check that there's no projectile\n \n assertTrue(\"Projectile should be destroyed\", \n isProjectileDestroyed(world, projectile)); \n }",
"public WeaponComponent() {\n weaponName = \"none\";\n owned = false;\n damagePower = 1;\n }",
"public Projectile(Vec2 position, Vec2 direction, Sprite sprite) {\n super(position, direction, sprite);\n allProjectilse.add(this);\n startPosition = transform.getGlobalPosition();\n setCollider(new CircleCollider(this, 30));\n setRenderLayer(RenderLayer.RenderLayerName.HIGH_BLOCKS);\n\n\n collider.setName(\"Bullet\");\n collider.setTag(\"DMG\");\n\n startTime = System.currentTimeMillis();\n startSize = new Vec2(1, 1);\n squareHeightStart = 1;\n squareWithStart = 1;\n }",
"public Tower(int price, double damage, double range, double x, double y,\n\t\t\tdouble angle, int cooldown, Image[] imgs){\n\t\tthis.price = price;\n\t\tthis.damage = damage;\n\t\tthis.range = range;\n\t\tthis.imgs = imgs;\n\t\tthis.image = 0;\n\t\tthis.img = imgs[image];\n\t\tthis.temp = new ArrayList<Movable>();\n\t\tthis.initCooldown = cooldown;\n\t\tthis.cooldown = 0;\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.angle = angle;\n\t\tthis.level = 0;\n\t}",
"private void getWeaponItem(double x, double y, String option,\r\n\t\t\tBufferedImage itemimage, SpriteGroup items) {\r\n\t\tint weaponoption = Resources.getInt(option);\r\n\t\tItem newGun = new WeaponItem(player, new Sprite(itemimage),\r\n\t\t\t\tweaponoption, x, y);\r\n\t\titems.add(newGun);\r\n\t\tnewGun.setActive(true);\r\n\t}",
"public void attack()\n {\n getWorld().addObject(new RifleBullet(player.getX(), player.getY(), 1, 6, true), getX(), getY()); \n }",
"public boolean isProjectile();",
"public EnchantArrow(Projectile entity) {\r\n this(entity, 0);\r\n }",
"public void fireShot() {\n\t\tVector3 position = player.getPositionVector();\n\t\tVector3 rotation = player.getRotationVector();\n\t\tVector3 scale = player.getScaleVector();\n\t\tAsteroidsLaser laser = new AsteroidsLaser(GameObject.ROOT, this, rotation.z);\n\t\tlaser.translate(position);\n\t\tlaserShots.add(laser);\n\t}",
"public EnchantArrow(Projectile entity, int level) {\r\n this(entity, level, 1f);\r\n }",
"private static Weapon randomWeapon() {\r\n Random rand = new Random();\r\n int weaponType = rand.nextInt(7);\r\n switch (weaponType) {\r\n case 0: \r\n return new FryingPan();\r\n case 1:\r\n return new SubmachineGun();\r\n case 2:\r\n return new AssaultRifle();\r\n case 3:\r\n return new Pistol();\r\n case 4:\r\n return new Axe();\r\n case 5:\r\n return new Crowbar();\r\n default:\r\n return new Shotgun();\r\n }\r\n }",
"public Weapon(String name, int weaponDamage) \n\t{\n\t\tsuper(name);\n\t\tif(weaponDamage > 0) \n\t\t{\n\t\t\tthis.weaponDamage = weaponDamage;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tthis.weaponDamage = 1;\n\t\t}\n\t}",
"public EnemyGunBullet1() {\n super(DAMAGE, SPEED);\n setEnemyBullet(true);\n setShootSound(\"enemyShot.wav\");\n try {\n image = ImageIO.read(new File(\"res/images/tanks/bullets/enemyBullet1.png\"));\n }\n catch (IOException e) { }\n }",
"@Override\r\n public void paintWeapon(Graphics g, Player p, ArrayList <Enemies> e) {\r\n\r\n paintProjectile(e, g, p);\r\n deleteProjectiles();\r\n }",
"public Weapon(MainPlayer p, ArrayList<MainPlayer> enemies, ArrayList<StaticObjects> s,\r\n\t\t\tArrayList<ReactiveObjects> r, boolean l, double velocity,\r\n\t\t\tdouble angle) {\r\n\t\ttrajectoryIncrements = calculateTrajectory(velocity, angle);\r\n\t\tvisible = true;\r\n\t\tstaticobjects = s;\r\n\t\treactiveobjects = r;\r\n\t\tthis.enemies = enemies;\r\n\t\tthis.velocity = velocity;\r\n\t\tthis.angle = angle;\r\n\r\n\t\tloadAnnimationImages();\r\n\t\tloadDestructionImages();\r\n\t\tthis.player = p;\r\n\t\tthis.player.setGrenadesAvailable(player.getGrenadesAvailable() - 1);\t\t\r\n\t\tif (l == true) {\r\n\t\t\tx = p.x + p.playerImage.getWidth(null);\r\n\t\t\ty = p.y;\r\n\t\t} else {\r\n\t\t\tx = p.x;\r\n\t\t\ty = p.y;\r\n\t\t}\r\n\r\n\t\tlaunchDirectionRight = l;\r\n\t\trectangle = new Rectangle(x, y, currentImage.getWidth(null),\r\n\t\t\t\tcurrentImage.getHeight(null));\r\n\t\timageHeight = currentImage.getHeight(null);\r\n\t\timageWidth = currentImage.getWidth(null);\r\n\t\ttimer = new Timer(20, this);\r\n\t\ttimer.start();\r\n\t}",
"public void throwProjectile(Collection<GameObject> objects) {\n double radius = (this.getLevel() * 0.0001 + 0.025) * 5e10;\n double x = this.getR().cartesian(0) - Math.cos(rot) * radius;\n double y = this.getR().cartesian(1) - Math.sin(rot) * radius; \n \n double[] newRDouble = {x, y};\n Vector newR = new Vector(newRDouble);\n double[] newVDouble = {-Math.cos(rot) * 1e5, -Math.sin(rot) * 1e5};\n Vector newV = new Vector(newVDouble);\n Projectile proj = new Projectile(newR, newV, 1E25, 1);\n proj.setLevel(1);\n proj.setMass(1e20);\n objects.add(proj);\n }",
"public Weapon(DropType dropType) {\n\t\tthis(WeaponType.getRandom().toString());\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public Weapon getWeapon(){\n return this.weaponPos;\n }",
"void createLaser(float x, float y, int team, float angle, float damage) {\n exists = true;\n this.team = team;\n this.damage = damage;\n degrees = angle;\n positionX = x - midX;\n positionY = y - midY;\n centerPosX = positionX + midX;\n centerPosY = positionY + midY;\n }",
"public projectile(double x, double y, double xSpeed, double ySpeed) {\r\n this.xPos = x;\r\n yPos = y;\r\n this.xSpeed = xSpeed;\r\n this.ySpeed = ySpeed;\r\n active = false;\r\n }",
"public void shoot()\n {\n\n if(reload<=0)//if the tower has reloaded\n {\n int randomizer=Greenfoot.getRandomNumber(20)-10; \n MinigunBullet bullet = new MinigunBullet(this.getRotation()+randomizer, damage,this);\n getWorld().addObject(bullet, getX(), getY());\n bullet.move(30);\n reload=3;\n }\n else//reload\n {\n reload--;\n }\n\n }",
"private void createPlayerExplosion() {\n\t\tAsteroidsExplosion explosion = new AsteroidsExplosion(GameObject.ROOT, this, 50, 20.0, 3.0);\n\t\texplosion.translate(player.getPositionVector());\n\t\totherObjects.add(explosion);\n\t}",
"public Missile(SimpleSlickGame _game, int x, int y, int destX, int destY, Entity owner) \r\n\t{\r\n\t\t//the super constructor is called to give the x and y coordinates and call the game to use its variable and \r\n\t\tsuper(_game, x,y);\r\n\t\tsetHitboxRadius(20); \r\n\t\tthis.startX = x;\r\n\t\tthis.startY = y;\r\n\t\tthis.owner = owner;\r\n\t\tthis.destX = destX;\r\n\t\tthis.destY = destY;\r\n\t\tsetLocation(startX, startY);\r\n\t\trecalculateVector(destX, destY);\r\n\t\t\r\n\t\t//Initializes and adds a particle system to the entity\r\n\t\ttry \r\n\t\t{\r\n\n\t\t\tImage particleImg = new Image (\"Particles/particle.png\");\r\n\n\t\t\tparticles = new ParticleSystem(particleImg,150);\r\n\t\t\t\r\n\n\t\t//\tFile xmlFile = new File (\"Particles/fire effect.xml\");\r\n\t\t//\temitter = ParticleIO.loadEmitter(xmlFile);\r\n\t\t\temitter = ParticleIO.loadEmitter(\"Particles/fire effect.xml\");\r\n\n\t\t\temitter.setPosition(this.getPositionX(), this.getPositionY(),false);\r\n\t\t\t\r\n\t\t\tparticles.addEmitter(emitter);\r\n\t\t\tparticles.setBlendingMode(ParticleSystem.BLEND_ADDITIVE);\r\n\t\t\t\r\n\t\t} catch (SlickException e1) {\r\n\t\t\tSystem.out.println(\"cannot find xml file / particle image\");\r\n\t\t\te1.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"Cannot assign xml file to emitter. File might be missing.\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//Adds sound files to the entity\r\n\t\ttry\r\n\t\t{\r\n\t\t\tSound sound = new Sound(\"Sounds/lazer.wav\");\r\n\t\t\tfloat pitch = ((float)game.r.nextInt(200) + 800)/1000;\r\n\t\t\tsound.play(pitch,1f);\r\n\t\t} catch (SlickException e){\r\n\t\t\tSystem.out.println(\"Could not find sound file\");\r\n\t\t}\r\n\t\t\r\n\t\t//Adds sprites to the entity\r\n\t\ttry\r\n\t\t{\r\n\t\t\tmissileImg = new Image(\"Graphics/Fireball.png\");\r\n\t\t\tthis.setSprite(missileImg);\r\n\t\t} catch (SlickException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"ERROR: Could not find sprite\");\r\n\t\t}\r\n\t}",
"public void shoot(){\n // boss bullete attract to player\n int bulletPosX = PApplet.parseInt(posX + (speed * cos(angle)));\n int bulletPosY = (int)(posY + hei / 2);\n float bulletAngle = atan2(Main.player.posY - bulletPosY, Main.player.posX - bulletPosX);\n int bulletVelX = (int)(8 * cos(bulletAngle));\n int bulletVelY = (int)(8 * sin(bulletAngle));\n bossBullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,1,attack));\n }",
"public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_)\r\n {\r\n return new TileCampfire();\r\n }",
"@Test\r\n public void test_weapon_less() {\r\n Weapon weapon1 = new Weapon(\"gun\", \"that a weapon for sure\", 0);\r\n assertEquals(1, weapon1.getDamage());\r\n }",
"public Weapon (String name) {\n\t\tsuper(name, weight, itemDamage, 0, 0, quantity);\n\t}",
"private final Item createPileItem(Item posItem, boolean starting) {\n/* */ try {\n/* 4519 */ Item pileItem = ItemFactory.createItem(177, 60.0F, null);\n/* */ \n/* 4521 */ float newXPos = ((this.tilex << 2) + 1) + Server.rand.nextFloat() * 2.0F;\n/* 4522 */ float newYPos = ((this.tiley << 2) + 1) + Server.rand.nextFloat() * 2.0F;\n/* */ \n/* 4524 */ float height = posItem.getPosZ();\n/* 4525 */ if (Server.getSecondsUptime() > 0) {\n/* 4526 */ height = Zones.calculatePosZ(newXPos, newYPos, this, isOnSurface(), false, posItem\n/* 4527 */ .getPosZ(), null, posItem.onBridge());\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 4532 */ pileItem.setPos(newXPos, newYPos, height, posItem\n/* 4533 */ .getRotation(), posItem.getBridgeId());\n/* */ \n/* 4535 */ pileItem.setZoneId(this.zone.getId(), this.surfaced);\n/* 4536 */ int data = posItem.getTemplateId();\n/* 4537 */ pileItem.setData1(data);\n/* 4538 */ byte material = 0;\n/* 4539 */ boolean multipleMaterials = false;\n/* */ \n/* */ \n/* */ \n/* 4543 */ if (this.vitems != null)\n/* */ {\n/* 4545 */ for (Item item : this.vitems.getAllItemsAsArray()) {\n/* */ \n/* 4547 */ if (!item.isDecoration() && item.getFloorLevel() == pileItem.getFloorLevel()) {\n/* */ \n/* 4549 */ if (!starting)\n/* 4550 */ sendRemoveItem(item, false); \n/* 4551 */ if (!multipleMaterials)\n/* */ {\n/* */ \n/* */ \n/* 4555 */ if (item.getMaterial() != material)\n/* */ {\n/* 4557 */ if (material == 0) {\n/* */ \n/* */ \n/* */ \n/* 4561 */ material = item.getMaterial();\n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* */ \n/* */ \n/* 4570 */ material = 0;\n/* 4571 */ multipleMaterials = true;\n/* */ } \n/* */ }\n/* */ }\n/* 4575 */ if (!item.equals(posItem))\n/* 4576 */ pileItem.insertItem(item, true); \n/* 4577 */ if (data != -1 && item.getTemplateId() != data) {\n/* */ \n/* 4579 */ pileItem.setData1(-1);\n/* 4580 */ data = -1;\n/* */ } \n/* */ } \n/* */ } \n/* */ }\n/* 4585 */ String name = pileItem.getName();\n/* 4586 */ String modelname = pileItem.getModelName();\n/* 4587 */ if (data != -1) {\n/* */ \n/* 4589 */ ItemTemplate template = ItemTemplateFactory.getInstance().getTemplate(data);\n/* 4590 */ String tname = template.getName();\n/* 4591 */ name = \"Pile of \" + template.sizeString + tname;\n/* 4592 */ if (material == 0) {\n/* 4593 */ pileItem.setMaterial(template.getMaterial());\n/* */ } else {\n/* 4595 */ pileItem.setMaterial(material);\n/* 4596 */ } StringBuilder build = new StringBuilder();\n/* 4597 */ build.append(pileItem.getTemplate().getModelName());\n/* 4598 */ build.append(tname);\n/* 4599 */ build.append(\".\");\n/* 4600 */ build.append(MaterialUtilities.getMaterialString(material));\n/* 4601 */ modelname = build.toString().replaceAll(\" \", \"\").trim();\n/* 4602 */ pileItem.setName(name);\n/* */ } \n/* */ \n/* */ \n/* 4606 */ if (!starting && this.watchers != null)\n/* */ {\n/* 4608 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 4612 */ if (vz.isVisible(pileItem, this)) {\n/* */ \n/* 4614 */ boolean onGroundLevel = true;\n/* 4615 */ if (pileItem.getFloorLevel() > 0) {\n/* 4616 */ onGroundLevel = false;\n/* */ \n/* */ }\n/* 4619 */ else if ((getFloors(0, 0)).length > 0) {\n/* 4620 */ onGroundLevel = false;\n/* */ } \n/* 4622 */ vz.addItem(pileItem, this, onGroundLevel);\n/* 4623 */ if (data != -1) {\n/* 4624 */ vz.renameItem(pileItem, name, modelname);\n/* */ }\n/* */ } \n/* 4627 */ } catch (Exception e) {\n/* */ \n/* 4629 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }\n/* 4633 */ return pileItem;\n/* */ }\n/* 4635 */ catch (FailedException fe) {\n/* */ \n/* 4637 */ logger.log(Level.WARNING, fe.getMessage(), (Throwable)fe);\n/* */ }\n/* 4639 */ catch (NoSuchTemplateException nst) {\n/* */ \n/* 4641 */ logger.log(Level.WARNING, nst.getMessage(), (Throwable)nst);\n/* */ } \n/* 4643 */ return null;\n/* */ }",
"void doGun() {\r\n\t\tlong time = getTime()\r\n\t\t\t\t+ (int) Math\r\n\t\t\t\t\t\t.round((getRange(getX(), getY(), target.x, target.y) / (20 - (3 * firePower))));\r\n\t\tPoint2D.Double p = target.guessPosition(time);\r\n\r\n\t\t// offsets the gun by the angle to the next shot based on linear\r\n\t\t// targeting provided by the enemy class\r\n\t\tdouble gunOffset = getGunHeadingRadians()\r\n\t\t\t\t- (Math.PI / 2 - Math.atan2(p.y - getY(), p.x - getX()));\r\n\t\tsetTurnGunLeftRadians(normaliseBearing(gunOffset));\r\n\t}",
"public void shoot(Point p, Graphics g, Player player){\r\n if(p.getX() > getXCoord()-20){ //not sure if -20 needed (it is to make cetner by the shoulder of arm)\r\n setFacing(1);\r\n } else{\r\n setFacing(0);\r\n }\r\n this.setAttackSpeedTimer(this.getAttackSpeedTimer() + 1);\r\n if(this.getAttackSpeedTimer() == this.getAttackSpeed()){\r\n\t\t Bullet bullet = new Bullet(this.getXCoord(), \r\n\t\t\t\t\t this.getYCoord(), this.getFacing(), g, findAngle(p), player);\r\n\t\t\t\t\t bullet.setAttack(50);\r\n\t\t bullet.setMouseY(this.getMouseY());\r\n\t\t bullet.setMouseX(this.getMouseX());\r\n\t\t bullet.setMouseAngle(this.getMouseAngle());\r\n\t \t bullet.setPlayerDirection(this.getPlayerDirection());\r\n\t\t this.addProjectile(bullet);\r\n\t\t this.setAttackSpeedTimer(0);\r\n\t\t //System.out.println(findAngle(p)*180/Math.PI);\r\n\t\t this.playSound();\r\n }\r\n }",
"public void shoot(){\r\n \tgame.pending.add(new Bullet(this, bulletlife));\t\r\n }",
"public void addProjectile(Projectile projectile)\n\t{\n\t\tprojectiles.add(projectile);\n\t}",
"private FireWeaponScreenFactory() {\n\t}",
"public void createBullet(String name, double x, double y) {\n Player player = (Player) players.get(name);\r\n if (player != null) {\r\n Bullet bullet = new Bullet(x, y);\r\n bullet.player = name;\r\n playAudio(\"shoot\");\r\n }\r\n }",
"public Missile(Shooter shooter, Point2D.Double start, double speed, double direction)\n {\n this.shooter = shooter;\n this.direction = direction;\n \n location = start;\n \n velocity = new Point2D.Double(-speed*Math.sin(direction), speed*Math.cos(direction));\n }",
"public Fortress(int waterCapacityInitial, Vector2 position) {\r\n\t\tthis.position =position;\r\n\t\tthis.waterCapacity = waterCapacityInitial; \r\n\t\tthis.waterLevel = 0;\r\n\t\tthis.level = 1;\r\n\t\tthis.pumpSpeed = 1; \r\n\t\t//this.weapon = new Weapon();\r\n\t}",
"public static Weapon transformToEntity(WeaponDTO weaponDto) {\n if (weaponDto == null) {\n throw new NullPointerException(\"Data transfer object for transformation cannot be null\");\n }\n\n Weapon weapon = new Weapon();\n\n weapon.setId(weaponDto.getId());\n weapon.setName(weaponDto.getName());\n weapon.setAmmunition(weaponDto.getAmmunition());\n weapon.setGunReach(weaponDto.getGunReach());\n return weapon;\n }",
"public PowerUp(Sprite sprite, int x, int y) {\n super(x, y);\n newSprite(sprite);\n setNewDimensions();\n name = sprite.name();\n }",
"public void fireBullet(){\n\t\tBullet bullet = new Bullet(ship);\n\t\tbullets.add(bullet);\n\t\tsoundMan.playBulletSound();\n\t}",
"public FireTile() {\n super();\n setUtility(5);\n }",
"private Weapon() {\n\t\t\tname = \"\";\n\t\t\tdamage = 0;\n\t\t\tcrippleDamage = 0;\n\t\t\tflavors = new HashMap<>();\n\t\t}",
"public void addWeapon(Weapon x){\n\t\tplayerWeapon=new Weapon(x);\n\t\tHealth+=x.gethealthStat();\n\t\tAttackForce+=x.getafStat();\n\t\tDefense+=x.getdefenseStat();\n\t}",
"public void renderProjectile(int xp, int yp, Projectile p) { //since the constructor is Tile but not Sprite, we are able to change the type of sprite it is. i.e. grass to rock\n\t\txp -= xOffset; //subtracting the Offset accounts for player movement. This also somehow reverses the inversion of the controls. Understand why we are subtracting as opposed to adding.\n\t\typ -= yOffset;\n\t\tfor (int y = 0; y < p.getSpriteSize(); y++) {\n\t\t\tint ya = y + yp; // ya refers to absolute position. y is the rendering thing moving from left to right. yp is the offset. The reason for needing an absolute position is that this method only renders a single tile\n\t\t\tfor (int x = 0; x < p.getSpriteSize(); x++) {\n\t\t\t\tint xa = x + xp;\n\t\t\t\tif (xa < -p.getSpriteSize() || xa >= width || ya < 0 || ya >= height) break; //width and height refer to the screen width and height. this if statement insures that only tiles on the screen are rendered! There are 4 bounds representing top, bottom, left and right. the far left bound isn't zero because...see andrew ton.\n\t\t\t\tif (xa < 0) xa = 0;\n\t\t\t\t\n\t\t\t\tint col = p.getSprite().pixels[x + y * p.sprite.SIZE];\n\t\t\t\tif (col != 0xffffffff)\n\t\t\t\tpixels[xa + ya * width] = col;\n\t\t\t}\n\t\t}\n\t}",
"public Weapon(String n, int spd, int dmg, int rng)\n {\n name = n;\n speed = spd;\n damage = dmg;\n range = rng;\n }",
"public Weapon clone() {\n\t\treturn new Weapon(this);\n\t}",
"public Projectile(String name, boolean unique_id, double x, double y,\n\t\t\tint collisionid, String gfxname, int tilebbox_x, int tilebbox_y,\n\t\t\tint tilebbox_width, int tilebbox_height, int expiry, long start,\n\t\t\tboolean grav, boolean insul, boolean byRB, boolean byField, boolean byTile,\n\t\t\tboolean move, double mspeed) {\n\t\tsuper(name, unique_id, x, y, collisionid, gfxname, tilebbox_x, tilebbox_y,\n\t\t\t\ttilebbox_width, tilebbox_height, expiry, start, grav, insul, byRB,\n\t\t\t\tbyField, byTile, move);\n\t\tprojectileCount++;\n\t\tmaxSpeed = mspeed;\n\t}",
"public Tower(Tower template) {\n this.name = template.getName();\n this.cost = template.getCost();\n this.position = template.getPosition();\n this.attack = template.getAttack();\n this.currTime = System.currentTimeMillis();\n this.active = true;\n this.sprite = GameApp.getAssetManager().get(this.name + \".png\", Texture.class);\n }",
"public Potion()\r\n\t{\r\n\t\tsuper(\"Potion\");\r\n\t\thealthRecovery = 30;\r\n\t}",
"public void generateTutorialWeapons() {\n this.loot.add(new Weapon(\"Weathered Longsword\", \"A weathered longsword - it'll do.\", 3, 1));\n this.loot.add(new Weapon(\"Weathered Battle Axe\", \"A weathered battle axe - it'll do.\", 2, 2));\n this.loot.add(new Weapon(\"Weathered Bow\", \"A weathered bow - it'll do.\", 3, 2));\n }",
"public void shootBullet( ){\n bulletsFired.add(new Bullet((short)(this.xPos + BOX_HEIGHT), (short)((this.getYPos() + (BOX_HEIGHT+15))), this.xPos, this.id, (byte) 0, (byte) 0, shootingDirection, currentWeapon.getKey()));\n\n byte weaponFired = currentWeapon.getKey();\n switch (weaponFired){\n case PISTOL_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n case MACHINEGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(MACHINEGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(MACHINEGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case SHOTGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SHOTGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SHOTGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.shotgunSound);\n break;\n case SNIPER_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SNIPER_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SNIPER_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case UZI_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(UZI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(UZI_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case AI_WEAPON_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(AI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n System.out.println(\"Bullet sound \" + audioHandler.getSoundEffectVolume());\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n default: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n\n }\n }",
"public synchronized void spawnMe()\n\t{\n\t\t_itemInstance = ItemTable.getInstance().createItem(\"Combat\", _itemId, 1, null, null);\n\t\t_itemInstance.dropMe(null, _location.getX(), _location.getY(), _location.getZ());\n\t}",
"public void fire(Vector2 dir, Vector2 weaponPos, Boolean multiplayer) {\n\t\t\n\t}",
"public static void launchFirewor(Player p) {\n Firework fw = (Firework) p.getWorld().spawnEntity(p.getLocation(), EntityType.FIREWORK);\n FireworkMeta fwm = fw.getFireworkMeta();\n \n //Our random generator\n Random r = new Random(); \n\n //Get the type\n int rt = r.nextInt(4) + 1;\n Type type = Type.BALL; \n if (rt == 1) type = Type.BALL;\n if (rt == 2) type = Type.BALL_LARGE;\n if (rt == 3) type = Type.BURST;\n if (rt == 4) type = Type.CREEPER;\n if (rt == 5) type = Type.STAR;\n \n //Get our random colours \n Color c1 = Color.AQUA;\n Color c2 = Color.BLACK;\n \n //Create our effect with this\n FireworkEffect effect = FireworkEffect.builder().flicker(r.nextBoolean()).withColor(c1).withFade(c2).with(type).trail(r.nextBoolean()).build();\n \n //Then apply the effect to the meta\n fwm.addEffect(effect);\n \n //Generate some random power and set it\n int rp = r.nextInt(2) + 1;\n fwm.setPower(rp);\n \n //Then apply this to our rocket\n fw.setFireworkMeta(fwm); \n\t}",
"@SuppressWarnings(\"unused\")\n void spawn(Entity entity);",
"AbstractWeapon createWeaponController(WeaponCard weaponCard);"
] | [
"0.6862584",
"0.6611251",
"0.6595395",
"0.64111394",
"0.638931",
"0.638463",
"0.6308543",
"0.62733096",
"0.6271814",
"0.6256809",
"0.62362885",
"0.61863106",
"0.61633605",
"0.6156378",
"0.61410743",
"0.6093972",
"0.60630554",
"0.60569465",
"0.60560185",
"0.60468566",
"0.60354674",
"0.6021903",
"0.5945834",
"0.592184",
"0.5897266",
"0.5894832",
"0.58929414",
"0.5881915",
"0.5875945",
"0.58658755",
"0.58636004",
"0.5863222",
"0.5853749",
"0.58371997",
"0.5832597",
"0.58095753",
"0.58061665",
"0.58010685",
"0.57956874",
"0.5786807",
"0.5780351",
"0.5778403",
"0.5756546",
"0.57365507",
"0.572914",
"0.57200736",
"0.57165515",
"0.5694293",
"0.568811",
"0.56850284",
"0.56713426",
"0.5655728",
"0.5655398",
"0.56146026",
"0.5607584",
"0.5586692",
"0.5574913",
"0.5541024",
"0.5533613",
"0.55246943",
"0.5514675",
"0.550665",
"0.5501683",
"0.55003095",
"0.5493191",
"0.5472197",
"0.5471471",
"0.5471427",
"0.54679316",
"0.5455231",
"0.5445166",
"0.544358",
"0.5432963",
"0.54315555",
"0.5427216",
"0.5422319",
"0.5407459",
"0.54014486",
"0.53988177",
"0.5394404",
"0.53938353",
"0.53934634",
"0.53893405",
"0.5373765",
"0.5371393",
"0.53617764",
"0.53531164",
"0.5352003",
"0.53430665",
"0.53424233",
"0.5342205",
"0.5326196",
"0.5322598",
"0.5321555",
"0.532154",
"0.5319101",
"0.53075635",
"0.5303745",
"0.5299968",
"0.52844876"
] | 0.5688252 | 48 |
Resets the magazineAmmo counter after a delay specified by reloadTimerMilliseconds | public void reload() {
reloading = true;
notifyObserver();
if (!testing) {
if (timerAction.isExpired()) {
timerAction = runOnce(() -> resetMagazine(), Duration.millis(reloadTimerMilliseconds));
}
} else {
resetMagazine();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void reload()\n\t{\n\t\tammo = maxAmmo;\n\t}",
"public void reload() {\n\t\tammo = AMMO_CAPACITY;\n\t}",
"private void resetMagazine() {\n magazineCounter = magazineSize;\n reloading = false;\n notifyObserver();\n }",
"public void reloadWeapon() {\r\n Timer timer = new Timer();\r\n Colt.playReloadSound();\r\n timer.schedule(new FinishReload(), 2000);\r\n }",
"private void resetPurgeTimer() {\n purgeHandler.removeCallbacks(purger);\n purgeHandler.postDelayed(purger, DELAY_BEFORE_PURGE);\n }",
"public void resetTimer(){\n timerStarted = 0;\n }",
"private void resetTimer(int refreshTime){\n //if timer is running\n if(getTimerRunning()){\n //stop timer\n setTimerRunning(false);\n //set new refresh time\n Platform.runLater(() -> {\n getModel().setRefreshTime(refreshTime);\n //run timer\n setTimerRunning(true);\n });\n }else{\n //set new refresh time\n Platform.runLater(() -> getModel().setRefreshTime(refreshTime));\n }\n }",
"private void scheduleResetEveryMillis(final int milliseconds) {\n Timer timer = new Timer();\n timer.scheduleAtFixedRate(new APIResetTask(theapi), milliseconds, milliseconds);\n }",
"private void restartTimer() {\r\n\t\tthis.timer.restart();\r\n\t\tthis.countdown.restart();\r\n\t\tthis.controlView.setTimerSeconds(10);\r\n\t}",
"public void resetTimer() {\n\t\tsetStartingTime(System.currentTimeMillis());\t\n\t\tthis.progressBar.setForeground(Color.black);\n\t\tlogger.fine(\"Set normal timer with data: \" + this.toString());\n\n\t}",
"private void restartTimer(long delay) {\n\t\trestartTimer.schedule(new TimerTask() {\n\t\t\tpublic void run() {\n\t\t\t\tvisible = false;\n\t\t\t\tif(moveTimer != null) {\n\t\t\t\t\tmoveTimer.cancel();\n\t\t\t\t}\n\t\t\t\tif(startTimer != null) {\n\t\t\t\t\tstartTimer.cancel();\n\t\t\t\t}\t\n\t\t\t\tstartTimer = new Timer();\n\t\t\t\tstartTimer(getStartSeconds() * 1000, LOOP_PERIOD_MILLISECOND);\n\t\t\t}\n\t\t}, delay);\n\t}",
"private void resetTime()\n {\n timer.stop();\n timeDisplay.setText(ZERO_TIME);\n time = 0.0;\n }",
"private float resetTimer() {\r\n final float COUNTDOWNTIME = 10;\r\n return COUNTDOWNTIME;\r\n }",
"private synchronized void reStartTimer(){\n handler.removeCallbacks(null);\n handler.postDelayed(new Runnable(){\n @Override\n public void run(){\n if (running) reStartTimer();\n update();\n }\n }, TURN_DELAY_MILLIS);\n }",
"public void resetTimerComplete() {\n\t\tsetStartingTime(0);\n\t}",
"public void setAmmo(int ammo) {\n\t\tthis.ammo = ammo;\n\t}",
"public void updateAmmo(){\n if(shots >= 9999)\n shots = 9999;\n ammo.setText(\"x\" + String.format(\"%04d\", shots));\n }",
"private void timerReset() {\n playing = true;\n now_playing_progress_bar.setMax((int) thisSong.getLengthMilliseconds());\n timer_startTime = System.currentTimeMillis();\n timerHandler.postDelayed(timerRunnable, 0);\n }",
"public void setTimer(long ms) {\r\n\t\tthis.timer = ms;\r\n\t}",
"private void resetTimer() {\n\t\tif (null != getTimer()) {\n\t\t\tthis.getTimer().cancel();\n\t\t\tthis.getTimer().purge();\n\t\t\tthis.setTimer(null);\n\t\t}\n\t\tthis.setTimer(new Timer());\n\t}",
"public void resetTime() {\n\t\ttime_passed = 0l;\n\t}",
"public void restartRobotUI() {\r\n\t\tt.cancel();\r\n\t\tt.purge();\r\n\t\tt = new Timer();\r\n\t}",
"public void resetChronometer (View v){\n\n\n chronometer.setBase(SystemClock.elapsedRealtime());\n tempTime = totalTime;\n totalTime = 0;\n dateEnd = new Date();\n addTimer();\n grantTickets();\n\n\n\n }",
"private void reschedule(long delayMillis) {\n if (timeout != NULL_TIMEOUT) {\n timeout.cancel();\n }\n\n if (idleTimeMillis != 0) {\n timeout = timer.newTimeout(this, delayMillis, MILLISECONDS);\n }\n else {\n timeout = NULL_TIMEOUT;\n }\n }",
"void hp_counter()\n {\n T=new Timer();\n T.scheduleAtFixedRate(new TimerTask() {\n @Override\n public void run() {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n //decrement the HP by delay of a second\n if(hp_value>0) {\n redball.setText(hp_value + \"\");\n hp_value--;\n }\n //you have lost and the game will reset\n else if(hp_value<=0)\n {\n //Here's a funny toast for all Sheldon's fans\n toast.setView(lost);\n toast.show();\n //\n resetValues();\n }\n }\n });\n }\n }, 1000, 1000);\n\n }",
"public void resetTimeActive()\n\t{\n\t\tm_TimeActive = 0.0f;\n\t}",
"void resetLoop () {\n try {\n timer.cancel();\n timer.purge();\n } catch (Exception e) {\n\n }\n timer = new Timer();\n timer.schedule(new LoopTask(), stepDelay, stepDelay);\n }",
"public void resetTimer() {\n button.setText(\"Notify Me!\");\n timerSeekBar.setProgress(60);\n timerSeekBar.setEnabled(true);\n timerText.setText(\"1:00\");\n counter.cancel();\n counterActive = false;\n }",
"public void reset(){\r\n \tif (resetdelay<=0){//if he didn't just die\r\n \t\tsetLoc(400,575);\r\n \t\timg = imgs[4];\r\n \t}\r\n }",
"public static void resetTime() {\n\t\ttime = TimeUtils.millis();\n\t}",
"public synchronized static void resetTime() {\n\t\ttime = 0;\n\t}",
"public void updateTimer() {\n this.machineCounter.setTimerValue(Config.MACHINE_TIMER);\n }",
"public void reset()\n\t{\n\t\tdelayCount = 0f;\n\t\trepeatCount = 0;\n\t\tenabled = true;\n\t}",
"public void kickTimer() {\n delayTime = System.currentTimeMillis() + shutdownDelay;\n// System.out.println(\"Time at which the loop should kick: \" + delayTime);\n }",
"public void reset() {\n cycles = 0;\n nextHaltCycle = GB_CYCLES_PER_FRAME;\n nextUpdateCycle = 0;\n running = false;\n timer.reset();\n \n cpu.reset();\n ram.reset();\n soundHandler.reset();\n }",
"public void setNewRefreshTime(int refreshTime){\n resetTimer(refreshTime);\n }",
"public void resetOccupied(){\n \t\toccupiedSeconds = 0;\n \t}",
"public void updateTime(int time)\n\t{\n\t\tshotsRemaining = rateOfFire;\n\t}",
"private void resetCooldown() {\n nextAttack = tower.getFireFrequency();\n }",
"public void reset() {\r\n \ts.set(Constants.FRAME_WIDTH/2, Constants.FRAME_HEIGHT/2);\r\n \tshootdelay=500;\r\n \tbulletlife = 20;\r\n }",
"abstract protected void refresh(long time);",
"public synchronized void resetTime() {\n }",
"public void resetTimeLimit();",
"public void noDatUpdate(){\n\t\tint j;\n\t\tmoveEnemies();\n\t\t\t// Add Arrows\n\t\t\tif(shoot_timer > 60){\n\t\t\t\tRandom r_gen = new Random();\n\t\t\t\tfor(j=0;j<enemy_num;j++){\n\t\t\t\t\tif((r_gen.nextInt(1000)%3) != 0) {\n\t\t\t\t\t\tAddEnemyArrow(j);\n\t\t\t\t\t\tshoot_timer = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tshoot_timer ++;\n\t\t\t\tSystem.out.println(\"Incrementing Shoot Timer\");\n\t\t\t}\n\t\t\tmoveEnemyArrows();\n\t\t\n\t}",
"public void reset()\n {\n this.timeToCook = 0;\n this.startTime = 0;\n }",
"@Override\npublic void autonomousInit() {\n m_timer.reset();\n m_timer.start();\n}",
"protected void reset() {\n speed = 2.0;\n max_bomb = 1;\n flame = false;\n }",
"private void clearTime() {\n \n time_ = 0L;\n }",
"private void clearTime() {\n \n time_ = 0L;\n }",
"private void clearTime() {\n \n time_ = 0L;\n }",
"public void reset()\r\n\t{\r\n\t\ttimer.stop();\r\n\t\ttimer.reset();\r\n\t\tautoStep = 0;\r\n\t}",
"private void setNewTimer() {\n if (!isSetNewTimerThreadEnabled) {\n return;\n }\n\n timer = new Timer();\n timer.scheduleAtFixedRate(new TimerTask() {\n\n @Override\n public void run() {\n // Send the message to the handler to update the UI of the GameView\n GameActivity.this.handler.sendEmptyMessage(UPDATE);\n\n // For garbage collection\n System.gc();\n }\n\n }, 0, 17);\n }",
"private void resetActiveHeartbeatTimer() {\n\t\tactiveHeartbeatTimer.cancel();\n\t\tstartActiveHeartbeatTimer();\n\t}",
"public void muteTimer(){\n\t\t//TODO: impl.\n\t\t/*\n\t\tThread worker;\n\t\t//do it in its own thread\n\t\tworker = new Thread() {\n \tpublic void run() {\n \t\t//mute and wait a bit (2s)\n \t\tmute();\n \t\ttry { Thread.sleep(2000); } catch (InterruptedException e) { e.printStackTrace(); }\n \t\t//then start checking for ILA actions\n \t\tint counter=100;\t\t//max wait 20s\n \t\twhile( (ILA_interface.avatar.isILAspeaking() || ILA_interface.avatar.is_recording==1) & counter>1 ){\n \t\t\tcounter--;\n \t\t\tILA_debug.println(\"ADDON-KODI - mute timer is waiting...\",2);\t\t\t//debug\n \t\t\ttry { Thread.sleep(200); } catch (InterruptedException e) { e.printStackTrace(); }\n \t\t}\n \t\t//timers are over: unmute\n \t\tunmute();\n \t}\n };\n worker.start();\n */\n\t}",
"private void setTimeLeft() {\n\t\tif (timeLeft == 1)\n\t\t\ttimer.cancel();\n\t\ttimeLeft--;\n\t}",
"public final synchronized void resetTime() {\n this.last = System.nanoTime();\n }",
"public static void initTimer(){\r\n\t\ttimer = new Timer();\r\n\t timer.scheduleAtFixedRate(new TimerTask() {\r\n\t public void run() {\r\n\t \t//se o player coletar todas os lixos, o tempo para\r\n\t \tif(ScorePanel.getScore() == 100){\r\n\t \t\ttimer.cancel();\r\n\t \t}\r\n\t \t//se o Tempo se esgotar, é game over!!!\r\n\t \telse if (tempo == 0){\r\n\t \t timer.cancel();\r\n \t\tAvatar.noMotion();\r\n \t\t//System.exit(0);\r\n\t }\r\n\t \t//Senão, vai contando\r\n\t \telse{\r\n\t \tlbltimer.setText(\"Tempo: \"+ --tempo);\r\n\t }\r\n\t }\r\n\t\t}, 1000, 1000);\r\n\t}",
"public void resetTimer(View view) {\n elapsedTime = 0;\n speed = 0;\n xSpeed = 0;\n ySpeed = 0;\n zSpeed = 0;\n maxAccel = 0;\n timeToSixty = 0;\n xSpeedOutput.setText(String.valueOf(xSpeed));\n ySpeedOutput.setText(String.valueOf(ySpeed));\n zSpeedOutput.setText(String.valueOf(zSpeed));\n maxAccelOutput.setText(null);\n timeToSixtyOutput.setText(null);\n speedOutput.setText(null);\n timeOutput.setText(null);\n }",
"public void resetTimers()\n {\n if (TimerScreen_Left != null)\n {\n TimerScreen_Left.stop();\n TimerScreen_Left = null;\n }\n \n if (TimerScreen_Right != null)\n {\n TimerScreen_Right.stop();\n TimerScreen_Right = null;\n }\n }",
"public void setTimer(int timer) {\n this.timer = timer;\n }",
"public void setTimer() {\n\t\t\n\t}",
"public static void ComienzaTimer(){\n timer = System.nanoTime();\n }",
"public void buffTimer() {\r\n if (seconds - lastBuffCheck >= 1) {\r\n lastBuffCheck = seconds;\r\n for (int i = 0; i < buffs.size(); i++) {\r\n buffs.set(i, buffs.get(i)-1);\r\n if (buffs.get(i) <= 0) {\r\n buffs.remove(i);\r\n }\r\n }\r\n } else if (seconds < lastBuffCheck) {\r\n lastBuffCheck = 0;\r\n }\r\n }",
"public void onMushroomTimerTick() {\r\n\t\tgame.tryToPlantMushroom();\r\n\t}",
"private void clearTime() {\n \n time_ = 0L;\n }",
"private void clearTime() {\n \n time_ = 0L;\n }",
"private void clearTime() {\n \n time_ = 0L;\n }",
"private void clearTime() {\n \n time_ = 0L;\n }",
"private void startNewTimer(){\n timer.cancel();\n timer = null;\n timesUp();\n timer = new MainGameTimer(this);\n timer.startNewRoundCountDown();\n }",
"public void countDown() {\n makeTimer();\n int delay = 100;\n int period = 30;\n timer.scheduleAtFixedRate(new TimerTask() {\n public void run() {\n tick();\n updatePlayerHealthUI();\n }\n }, delay, period);\n }",
"public void resetLoop(){\n\t\tloopTime = 0;\n\t}",
"private void changeDelay() {\n delay = ((int) (Math.random() * 10000) + 1000) / MAX_FRAMES;\n }",
"private void setTimer() {\r\n timer = new Timer(TIMER_DELAY, new ActionListener() {\r\n public void actionPerformed(ActionEvent ae) {\r\n action();\r\n }\r\n });\r\n }",
"private void worldTimerDecrementer() {\n worldTimer--;\n }",
"private void timerFired() {\n\t\t\n\t\tArrayList<CedView> tempList = _pendingRefresh;\n\t\t_pendingRefresh = new ArrayList<>();\n\t\t\n\t\tfor (CedView view : tempList) {\n\t\t\tview.refresh();\n\t\t}\n\t\ttempList = null;\n\t}",
"public void startReloading() {\n reload.setTimeOffset(1);\n reload.play();\n }",
"public void restartViewChangeTimer(){\n revokeViewChange();\n scheduleViewChange();\n }",
"public void gearBoxTest(){\n\t\tif (counter < 6) {\n\t\t\ttimerTest.start();\n\t\t\tif (480 >= timerTest.get()) {\n\t\t\t\tmotorRB.set(1);\n\t\t\t\tmotorRF.set(1);\n\t\t\t\tmotorLB.set(1);\n\t\t\t\tmotorLF.set(1);\n\t\t\t}\n\t\t\telse if (timerTest.get() > 480 && 600 >= timerTest.get()) {\n\t\t\t\tmotorRB.set(0);\n\t\t\t\tmotorRF.set(0);\n\t\t\t\tmotorLB.set(0);\n\t\t\t\tmotorLF.set(0);\n\t\t\t}\n\t\t\telse if (timerTest.get() > 600) {\n\t\t\t\ttimerTest.reset();\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t}",
"public synchronized void reset()\n\t{\n\t\tm_elapsed = 0;\n\t}",
"public void setAmmo(final boolean x) {\n int ammodif = 0;\n switch (Engine.currentWeapon) {\n\n case 2:\n ammodif = maxshotgunAmmo - shotgunAmmo;\n if (x) {\n if (ammodif < 10) {\n shotgunAmmo += ammodif;\n } else {\n shotgunAmmo += 10;\n }\n } else {\n shotgunAmmo--;\n if (shotgunAmmo == 0) {\n shotgunAmmo = 0;\n }\n\n }\n\n break;\n case 3:\n ammodif = maxrifleAmmo - rifleAmmo;\n if (x) {\n if (ammodif < 20) {\n rifleAmmo += ammodif;\n } else {\n rifleAmmo += 20;\n }\n } else {\n rifleAmmo--;\n if (rifleAmmo == 0) {\n rifleAmmo = 0;\n }\n }\n\n break;\n case 4:\n ammodif = maxgranadelauncherAmmo - granadeLauncherAmmo;\n if (x) {\n if (ammodif < 10) {\n granadeLauncherAmmo += ammodif;\n } else {\n granadeLauncherAmmo += 10;\n }\n } else {\n granadeLauncherAmmo--;\n if (granadeLauncherAmmo == 0) {\n granadeLauncherAmmo = 0;\n }\n }\n\n break;\n }\n }",
"public void setRechargeTime(int time)\n {\n\t rechargeTime = time;\n }",
"public void reload() {\r\n\t\tif(amount > (amountPerClip - currentClip)) {\r\n\t\t\tamount -= (amountPerClip - currentClip);\r\n\t\t\tcurrentClip += (amountPerClip - currentClip);\r\n\t\t}else if(amount > 0) {\r\n\t\t\tcurrentClip += amount;\r\n\t\t\tamount = 0;\r\n\t\t}\r\n\t}",
"private void setTimer(){\n\n //initialize the time variable\n int time = 10;\n\n //calculate the totaltime\n totalTimeCountInMilliseconds = time * 1000;\n\n //set the maximum time of the progress bar timer\n mProgressBar1.setMax( time * 1000);\n }",
"public void reset(int width, int height, int mines) {\n boardWidth = width;\n boardHeight = height;\n this.mines = mines;\n safeRemaining = boardWidth * boardHeight;\n minesRemaining = 0;\n\n pixelWidth = boardWidth * 30;\n pixelHeight = boardHeight * 30;\n\n pixelTopX = (FRAME_WIDTH - pixelWidth) / 2;\n pixelTopY = (FRAME_HEIGHT - pixelHeight - 50) / 2 + 50;\n\n mineLocation = new boolean[width * height];\n minefield = new Grid[height][width];\n surroundingMines = new int[width * height];\n while (minesRemaining < mines) {\n int location = r.nextInt(width * height);\n if (!mineLocation[location]) {\n mineLocation[location] = true;\n minesRemaining++;\n safeRemaining--;\n addSurrounding(location);\n }\n\n }\n\n playing = true;\n\n timer.start();\n timeElapsed = 0;\n\n repaint();\n\n mineLabel.setVisible(true);\n timeLabel.setVisible(true);\n }",
"public void markAndResetTimer(){\n value += getTime();\n resetTimer();\n }",
"public Timer(long millisecond) {\r\n this.period = millisecond;\r\n reset();\r\n }",
"private void resetHeartbeatTimer() {\n if (heartbeatScheduledFuture != null && !heartbeatScheduledFuture.isDone()) {\n heartbeatScheduledFuture.cancel(true);\n }\n heartbeatScheduledFuture = scheduledExecutorService.schedule(new Runnable() {\n @Override\n public void run() {\n startNewHeartbeat();\n }\n }, raftOptions.getHeartbeatPeriodMilliseconds(), TimeUnit.MILLISECONDS);\n }",
"public void onChronometerTick(Chronometer chronometer) {\n\n if (timeCountDown == 60) {\n endGame();\n chronometer.stop();\n alertDialog();\n //postDelay();\n } else if (time == 10) {\n time = 0;\n LinearLayout lView = findViewById(R.id.linearlayout);\n lView.removeAllViewsInLayout();\n showLayout();\n countAnswers();\n }\n time++;\n timeCountDown++;\n\n }",
"public void shootGun() {\n\t\tammo--;\n\t}",
"void scheduleGarbageCollection(GCType type, long delay);",
"public void init() {\n\t\tSystem.out.println(\"Started \" + duration + \" minute timer.\");\n\t\tTimer timer = new Timer();\n\t\ttimer.scheduleAtFixedRate(new TimerTask() {\n\t\t\tpublic void run() {\n\t\t\t\tif(!images.isEmpty()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tch.change(images.poll().getFile().getAbsolutePath());\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"Changed wallpaper\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Out of wallpapers, program exiting.\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}, 0, duration * 60 * 1000);\n\t}",
"@Override\n public void setCounterToInitialAmount() {\n UserPreferences.sharedInstance().setEventId(null);\n //reset timer to normal recording time\n timeCounter = UserPreferences.sharedInstance().recordTime() * 1000;\n }",
"public void restart(int delayTime)\n\t{\n\t\tsetDelayTime(delayTime);\n\t\n\t\trestart();\n\t}",
"void reset() {\n myManager.reset();\n myScore = 0;\n myGameOver = false;\n myGameTicks = myInitialGameTicks;\n myOldGameTicks = myInitialGameTicks;\n repaint();\n }",
"void resetTimeout() {\n timer.cancel();\n timer = getTimer();\n timer.schedule(getTimerTask(), this.timeout);\n }",
"public void reset() {\n\t\tstartTime = System.nanoTime();\n\t\tpreviousTime = getTime();\n\t}",
"@Override\n public synchronized void reset() {\n m_accumulatedTime = 0;\n m_startTime = getMsClock();\n }",
"public void reset() {\n/* 54 */ this.count = 0;\n/* 55 */ this.totalTime = 0L;\n/* */ }",
"public void decrementRechargeTimes();",
"public void setInterval(int anInterval)\n{\n // Set interval\n _interval = anInterval;\n \n // If timer present, change interval\n if(_timer!=null)\n _timer.setDelay(_interval);\n}"
] | [
"0.6547348",
"0.6519212",
"0.6349896",
"0.6333435",
"0.6227025",
"0.5961129",
"0.5931418",
"0.5902073",
"0.582254",
"0.5785641",
"0.5776285",
"0.5773987",
"0.5761551",
"0.57280076",
"0.57123756",
"0.5665854",
"0.56250584",
"0.5613542",
"0.55891925",
"0.555791",
"0.5556313",
"0.5505139",
"0.55027646",
"0.5499077",
"0.5497898",
"0.54776645",
"0.5457574",
"0.54479617",
"0.5435868",
"0.54260427",
"0.5415264",
"0.54142886",
"0.5412265",
"0.54058874",
"0.540433",
"0.53904516",
"0.53867596",
"0.53755194",
"0.53662926",
"0.53402907",
"0.5329516",
"0.5322829",
"0.53010714",
"0.52901125",
"0.5281097",
"0.5280921",
"0.52777207",
"0.526893",
"0.526893",
"0.526893",
"0.52652645",
"0.52606195",
"0.5238592",
"0.52308744",
"0.52209824",
"0.5213414",
"0.5181723",
"0.5170907",
"0.516695",
"0.5162877",
"0.516252",
"0.51625",
"0.51545507",
"0.515174",
"0.5150641",
"0.5150641",
"0.5150641",
"0.5150641",
"0.5143925",
"0.5142914",
"0.51418984",
"0.5135886",
"0.51341534",
"0.51311225",
"0.51301545",
"0.5129437",
"0.51234615",
"0.5120294",
"0.51171196",
"0.510913",
"0.5092538",
"0.50782305",
"0.50715774",
"0.5063308",
"0.50586647",
"0.5057912",
"0.5052179",
"0.50467867",
"0.5037431",
"0.5028547",
"0.5028303",
"0.50280213",
"0.5026867",
"0.5023436",
"0.5015145",
"0.5014117",
"0.50120795",
"0.5006572",
"0.5005775",
"0.50051004"
] | 0.6797968 | 0 |
Resets the magazineCounter to magazineSize | private void resetMagazine() {
magazineCounter = magazineSize;
reloading = false;
notifyObserver();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void clearMediaCount() {\n \n mediaCount_ = 0;\n }",
"public void clear(){\r\n currentSize = 0;\r\n }",
"public void reset() {\n\t\tif (marker >= 0) {\n\t\t\tsetSize(marker);\n\t\t\tmarker = -1;\n\t\t}\n\t}",
"public void resetCount() {\n count = 0;\n }",
"void rescaleIndicators(float magnification) {\n // if cellSize is 1\n boolean regenerate = scaleInterval((float) canvas.getMagnification());\n // System.out.println(\"regenerate = \" + regenerate);\n if (regenerate) {\n if (orient != null && anisotropy != null) {\n generateAreasAndIndicators();\n }\n }\n lastMagnification = magnification;\n }",
"public void clear() {\n\t\tcurrentSize = 0;\n\t}",
"public void resetCount() {\n\t\tcount = 0;\n\t}",
"public void incrMetaCacheNumClearRegion() {\n metaCacheNumClearRegion.inc();\n }",
"private void setMemorySize() { }",
"public void reset() {\n\t\tthis.count = 0;\n\t}",
"public void clear() {\n size = 0;\n }",
"public void clear() {\r\n\t\tsize = 0;\r\n\t}",
"public void reset() {\n\t\tcount = 0;\n\t}",
"@Override\n public void clear() {\n size = 0;\n }",
"@Override\n public void clear() {\n size = 0;\n }",
"@Override\n public void clear() {\n size = 0;\n }",
"public void clear() {\n count = 0;\n }",
"@Override\n\tpublic void reset() {\n\t\tfor(int i=0; i<mRemainedCounters; i++){\n\t\t\tfinal ICounter counter = this.mCounters.getFirst();\n\t\t\tcounter.reset();\n\t\t\tthis.mCounters.removeFirst();\n\t\t\tthis.mCounters.addLast(counter);\n\t\t}\n\t\tthis.mRemainedCounters = this.mCounters.size();\n\t}",
"@Override\n public void clear() {\n capacity = 15;\n currentSize = 0;\n this.container = new Object[capacity];\n }",
"private void inititalzeAnimalMatrixCounter() {\r\n\t\tCounterProperties cp = new CounterProperties();\r\n\t\tcp.set(AnimationPropertiesKeys.FILLED_PROPERTY, true);\r\n\t\tcp.set(AnimationPropertiesKeys.FILL_PROPERTY, Color.BLUE);\r\n\t\tcounter = lang.newCounter(mainMatrix);\r\n\t\tlang.newCounterView(counter, new Offset(200, 0, \"header\", AnimalScript.DIRECTION_NW), cp, true, true);\r\n\t}",
"public void resetCount() {\n\t\tresetCount(lineNode);\n\t}",
"void reset() {\n count = 0;\n\n }",
"private void recalculate()\n {\n this.totalPages = this.contents.size() > 54 ? this.contents.size() / 45 : 1;\n }",
"public void sizeDecrease1() {\n\t\t _size--;\n\t}",
"private void resize() {\n Couple[] tmp = new Couple[2 * associations.length];\n System.arraycopy(associations, 0, tmp, 0, associations.length);\n associations = tmp;\n }",
"public void ResetCounter()\r\n {\r\n counter.setCurrentValue(this.startValue);\r\n }",
"public void clear()\n {\n count=0;\n }",
"private void resize() {\n }",
"public void reset() {\n\t\tlength = 0;\n\t}",
"public void setResizeElementCount(int v) { vboSet.setResizeElementCount(v); }",
"public void resetOccupied(){\n \t\toccupiedSeconds = 0;\n \t}",
"public void resetCounts() {\n // For each item in the RecyclerView\n for(int pos = 0; pos < numItems; pos++) {\n // Reset the count variable of the item\n DataStorage.listInUse.getList().get(pos).reset();\n notifyItemChanged(pos);\n }\n }",
"public void resetZealotCounter() {\n persistentValues.summoningEyeCount = 0;\n persistentValues.totalKills = 0;\n persistentValues.kills = 0;\n saveValues();\n }",
"public void clearLength() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }",
"public Builder clearSize() {\n\n size_ = 0;\n onChanged();\n return this;\n }",
"public Builder clearSize() {\n\n size_ = 0;\n onChanged();\n return this;\n }",
"public void incrMetaCacheNumClearRegion(int count) {\n metaCacheNumClearRegion.inc(count);\n }",
"public void resetUpdateCount() {\n updateCount = 0;\n numNucleiToRemove = 0;\n }",
"public void clear() {\n counters.clear();\n }",
"public void reset() {\n\t\trabbitcount[1]=8;\n\t\trabbitcount[2]=8;\n\t\tpieces.clear();\n\t\tselectedsquares.clear();\n\t\trepaint();\n\t}",
"private void setFinalSize()\n {\n if (! m_isEmpty)\n return;\n m_isEmpty = false;\n setSize(m_finalSize);\n if (m_finalLocation != null)\n setLocation(m_finalLocation);\n }",
"public static void resetMemoizedSize(AbstractMessage message) {\n message.memoizedSize = -1;\n }",
"public void clear()\n\t{\n\t\tarraySize = 0;\n\t}",
"public void resetMoeglichkeiten(){\t\t\n\t\tfor( int iSpalten = 0; iSpalten < kacheln.length;iSpalten++){\t\t\t\n\t\t\tfor (int jReihen = 0; jReihen < kacheln[iSpalten].length;jReihen++){\n\t\t\t\tkacheln[iSpalten][jReihen].setMoeglichkeitenHierher(null);\n\t\t\t}\t\t\t\n\t\t}\n\t}",
"private void setMemory() {\n\t\tlong allMemory = MemoryManager.getPhoneTotalRamMemory();\n\t\tlong freeMemory = MemoryManager.getPhoneFreeRamMemory(this);\n\t\tlong usedMemory = allMemory - freeMemory;\n\t\tint angle = (int) (usedMemory*360/allMemory);\n\t\tclearView.setAngleWithAnim(angle);\n\t}",
"public void reset()\n {\n current = 0;\n highWaterMark = 0;\n lowWaterMark = 0;\n super.reset();\n }",
"public void reset() {\n while (getNumTotal() > 0) {\n this.removeNuclei();\n }\n lastModified = Calendar.getInstance().getTimeInMillis(); // record time\n }",
"public OccList reset()\n {\n size = 0;\n return this;\n }",
"public static void resetCount() {\n count = 1;\n }",
"public static void resetCounter() {\n\t\t\tcount = new AtomicInteger();\n\t\t}",
"public static void resetCounter() {\n\t\t\tcount = new AtomicInteger();\n\t\t}",
"private void reset() {\n ms = s = m = h = 0;\n actualizar();\n }",
"public void reSize() {\n int newSize = arr.length * 2;\n arr = Arrays.copyOf(arr, newSize);\n }",
"public void reset ()\r\n\t{\r\n\t\tsuper.reset();\r\n\t\tlastSampleTime = 0;\r\n\t\tfirstSampleTime = 0;\r\n\t\tlastSampleSize = 0;\r\n\t}",
"private void resetVarD() {\n width = 0;\n height = 0;\n sizeY = 0;\n sizeCB = 0;\n sizeCR = 0;\n sizeYc = 0;\n sizeCBc = 0;\n sizeCRc = 0;\n iteradorFreq = 0;\n i = 0;\n FreqY = new HashMap<>();\n FreqCB = new HashMap<>();\n FreqCR = new HashMap<>();\n Ydes = new ArrayList<>();\n CBdes = new ArrayList<>();\n CRdes = new ArrayList<>();\n }",
"private void resize() {\n contents = Arrays.copyOf(contents, top*2);\r\n }",
"public ResizingArray(int defaultSize) {\r\n super();\r\n\r\n this.aObjects = new Object[defaultSize];\r\n this.aFreeElements = new int[defaultSize];\r\n this.iMaxSize = defaultSize;\r\n }",
"private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}",
"public void setSize(int size) {\n\t members = size;\n\t}",
"public void reset() {\n\t\tArrays.fill(distance,0);\n\t\tused.clear();\n\t}",
"public void reset () {\n\t\topen();\n\t\ttry {\n\t\t\tcontainer.setLength(0);\n\t\t\treservedBitMap.setLength(0);\n\t\t\tupdatedBitMap.setLength(0);\n\t\t\tfreeList.setLength(0);\n\t\t\tsize = 0;\n\t\t}\n\t\tcatch (IOException ie) {\n\t\t\tthrow new WrappingRuntimeException(ie);\n\t\t}\n\t}",
"@Override\n public void initialize() {\n counter = 0;\n }",
"@Override\n public void initialize() {\n counter = 0;\n }",
"@Override\n public void clear() {\n setSize(0);\n }",
"public void clear() {\n _sample.clear();\n _count = 0;\n _max = null;\n _min = null;\n _sum = BigDecimal.ZERO;\n _m = -1;\n _s = 0;\n }",
"public void reset() {\n counters = null;\n counterMap = null;\n counterValueMap = null;\n }",
"public void resetCounters()\n {\n cacheHits = 0;\n cacheMisses = 0;\n }",
"public void clear() {\n\t\tsample.clear();\n\t\tcount.set(0);\n\t\t_max.set(Long.MIN_VALUE);\n\t\t_min.set(Long.MAX_VALUE);\n\t\t_sum.set(0);\n\t\tvarianceM.set(-1);\n\t\tvarianceS.set(0);\n\t}",
"@Override\r\n\tpublic void reset() {\n\t\tsuper.reset();\r\n\t\tthis.setScale(0.75f);\r\n\t}",
"public void setCountToZero() {\r\n \r\n // set count to 0\r\n count = 0;\r\n }",
"public void reset() {\n mNewNotificationCount.setValue(0);\n }",
"public void redimensionar() {\n\t\tthis.numCub *= 1.5;\n\t}",
"public void reset() {\n clearAllocationNodes(firstAllocationNode);\n firstAllocationNode.reset(/* startPosition= */ 0, allocationLength);\n readAllocationNode = firstAllocationNode;\n writeAllocationNode = firstAllocationNode;\n totalBytesWritten = 0;\n allocator.trim();\n }",
"final void setUncheckedTypeNum(int newSize) {\n fCTCount = newSize;\n fComplexTypeDecls = resize(fComplexTypeDecls, fCTCount);\n }",
"public void autoSize() {\n\t\t//no op\n\t}",
"public void resetRegisterCount() {\n currentNumberOfRegisterPushed = 0;\n maxNumberOfRegisterPushed = 0;\n }",
"@SuppressWarnings(\"unchecked\")\n\tprivate void resize(int newSize){\n\t\tif(newSize > max){\n\t\t\tnewSize = max;\n\t\t}\n\t\tT[] newData = (T[])new Object[newSize];\n\t\tfor(int i = 0; i < size; i++){\n\t\t\tnewData[i] = data[i];\n\t\t}\n\t\tdata = newData;\n\t}",
"void resize(int newSize);",
"public void clear() {\n\t\tthis.sizeinbits = 0;\n\t\tthis.actualsizeinwords = 1;\n\t\tthis.rlw.position = 0;\n\t\t// buffer is not fully cleared but any new set operations should\n\t\t// overwrite stale data\n\t\tthis.buffer[0] = 0;\n\t}",
"public void reset() {\n this.count = 0;\n this.average = 0.0;\n }",
"public void clear(){\n\t\tfield.resize(0, 4);\n\t}",
"@Override\n public void clear() {\n size = 0;\n storage = null;\n }",
"public void sizeIncrease1() {\n\t\t _size++;\n\t}",
"public void clear() {\n\t members = 0;\n\t dense[0] = -1;\n\t}",
"public void reset() {\n\t\tremoveAll();\n\t\twrongLetters = \"\";\n\t\taddScaffold(getWidth(),getHeight());\n\t}",
"public MagicBox() {\n\t\tcountSort = 0;\n\t\tcountMin = 0;\n\t}",
"public void initialize(int size) {\n setMaxSize(size);\n }",
"public void reload() {\n\t\tammo = AMMO_CAPACITY;\n\t}",
"public void resetMoveCount() {\r\n\t\tmoveCount = 0;\r\n\t}",
"public void clear() {\r\n\tcount = 0;\r\n isDrawn = false;\r\n repaint();\r\n }",
"@Override\r\n\tpublic void resize() {\n\t\t\r\n\t}",
"void unset() {\n size = min = pref = max = UNSET;\n }",
"public void reset() {\n/* 54 */ this.count = 0;\n/* 55 */ this.totalTime = 0L;\n/* */ }",
"private void reset(){\n locationFieldX.setText(\"0.00\");\n locationFieldY.setText(\"0.00\");\n locationFieldZ.setText(\"0.00\");\n rotationFieldX.setText(\"0.00\");\n rotationFieldY.setText(\"0.00\");\n rotationFieldZ.setText(\"0.00\");\n scaleField.setText(\"1.00\");\n \n setObjects();\n setImage();\n }",
"public void reset(){\n\n boxPositions = new HashMap<>();\n boxWeights = new ArrayList<Stack<Box>>();\n for(int i = 0; i < 16; i++) {\n boxPositions.put(i*40, i);\n }\n for ( int i = 0; i < 16; i++){\n boxWeights.add( new Stack< Box >());\n }\n boxGen = new BoxGenerator();\n\n timeCounter = 100;\n mc.resetLazarusPosition();\n\n }",
"public Builder clearMaxSize() {\n \n maxSize_ = 0;\n onChanged();\n return this;\n }",
"public void unsetCount()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(COUNT$8);\n }\n }",
"@Override\r\n\tpublic void setSequenceSize(int x) {\n\t\tsizeNum = x;\r\n\t\tupdate();\r\n\t}",
"private void increaseSize() {\n data = Arrays.copyOf(data, size * 3 / 2);\n }",
"private void set_size(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t}"
] | [
"0.61221015",
"0.60991025",
"0.5898397",
"0.5868441",
"0.57902795",
"0.57841444",
"0.575342",
"0.57101727",
"0.5693544",
"0.5687242",
"0.56554824",
"0.5651042",
"0.5643737",
"0.5591405",
"0.5591405",
"0.5591405",
"0.5564566",
"0.54917234",
"0.5477313",
"0.5474885",
"0.54742444",
"0.5469694",
"0.54423374",
"0.5430035",
"0.5427891",
"0.53791076",
"0.5367123",
"0.536439",
"0.5352131",
"0.5342774",
"0.5318165",
"0.5317992",
"0.5311894",
"0.5307943",
"0.5299247",
"0.5299247",
"0.5289163",
"0.5284521",
"0.5281733",
"0.52728015",
"0.5271692",
"0.52679235",
"0.52597743",
"0.52565944",
"0.52549124",
"0.52528685",
"0.52488726",
"0.52485687",
"0.5246983",
"0.5243775",
"0.5243775",
"0.52401876",
"0.5228472",
"0.5226572",
"0.5221778",
"0.52163184",
"0.52045727",
"0.5204507",
"0.5201204",
"0.51921904",
"0.51711917",
"0.5170561",
"0.5170561",
"0.51611793",
"0.51602125",
"0.5145554",
"0.5143244",
"0.51403433",
"0.5134694",
"0.51341957",
"0.51290786",
"0.5121773",
"0.51183325",
"0.51157624",
"0.51016206",
"0.510127",
"0.50963956",
"0.50941306",
"0.5092294",
"0.5090156",
"0.50796974",
"0.5074564",
"0.50719327",
"0.50682455",
"0.5067236",
"0.5065986",
"0.5056991",
"0.50515014",
"0.5041676",
"0.5038528",
"0.5035633",
"0.50350076",
"0.50317276",
"0.50307137",
"0.50276005",
"0.5027385",
"0.502699",
"0.5026104",
"0.50231683",
"0.5021919"
] | 0.80898917 | 0 |
Gets the mouse position in the application | private Point2D mouseLocation() {
return FXGL.getInput().getMousePositionWorld();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Point2D getMousePosition() {\n\t\treturn Lel.coreEngine.panelPositionToWorld(input.getMousePosition());\n\t}",
"@Override\n public Point2D getMouseLocation() {\n if (PlatformAdapter.getOs() == PlatformAdapter.OS.UNIX &&\n !JavaVersionAdapter.currentVersion().isJava11Compatible()) {\n return waitForAsyncFx(RETRIEVAL_TIMEOUT_IN_MILLIS,\n () -> new Point2D(((Double) getRobot().getClass().getMethod(\"getMouseX\").invoke(\n getRobot())).intValue() / JavaVersionAdapter.getScreenScaleX(),\n ((Double) getRobot().getClass().getMethod(\"getMouseY\").invoke(\n getRobot())).intValue() / JavaVersionAdapter.getScreenScaleY()));\n }\n else {\n return waitForAsyncFx(RETRIEVAL_TIMEOUT_IN_MILLIS, () -> new Point2D(\n ((Double) getRobot().getClass().getMethod(\"getMouseX\").invoke(glassRobot)).intValue(),\n ((Double) getRobot().getClass().getMethod(\"getMouseY\").invoke(glassRobot)).intValue()));\n }\n }",
"public Vector2 getMousePosition() {\n\t\tif (camera == null)\n\t\t\treturn new Vector2(0,0);\n\t\tfloat mx = Program.mouse.getX(), my = Program.mouse.getY();\n\t\tfloat xPercent = mx/Program.DISPLAY_WIDTH, yPercent = my/Program.DISPLAY_HEIGHT;\n\t\tfloat x = camera.getX() + camera.getWidth() * xPercent,\n\t\t\t y = camera.getY() + camera.getHeight() * yPercent;\n\t\treturn new Vector2(x,y);\n\t}",
"public Point2D getUIMousePosition() {\n\t\treturn Lel.coreEngine.panelPositionToGame(input.getMousePosition());\n\t}",
"public double getMouseX() {\n\t\treturn getMousePosition().getX();\n\t}",
"public int getMouseX(){\n\t\treturn mouseX;\n\t}",
"public float MouseX() {\n\t\treturn container.getInput().getMouseX(); \n\t}",
"public double getMouseClickedX() {\n\t\treturn Lel.coreEngine.panelPositionToWorld(input.getMouseClickedPosition()).getX();\n\t}",
"public us.ihmc.euclid.tuple3D.Point3D getMousePoint()\n {\n return mouse_point_;\n }",
"public double getMouseY() {\n\t\treturn getMousePosition().getY();\n\t}",
"public Point getLastMousePosition () {\r\n return myLastMousePosition;\r\n }",
"public Point getPos(){\n return new Point(getUserFriendlyXPos(),getUserFriendlyYPos());\n }",
"public Mouse getMouse()\r\n\t{\r\n\t\treturn mouse;\r\n\t}",
"public Point getPointerPosition() {\n\t\treturn new Point(getXPointerPosition(), getYPointerPosition());\n\t}",
"public DVector getPosition()\n\t{\n\t\treturn this.screenPos;\n\t}",
"public Mouse getMouse() {\n return mouse;\n }",
"public void mouseMoved(MouseEvent e)\n {\n int x=e.getX();\n int y=e.getY();\n }",
"public float MouseY() {\n\t\treturn container.getInput().getMouseY(); \n\t}",
"public final int getCursorAbsoluteX() {\n return getAbsoluteX() + cursorX;\n }",
"String getKbmouseTarget();",
"public abstract Cursor getMouseCursor();",
"public double getX() {\n return GdkEventButton.getX(this);\n }",
"public Object getOnmousemove() {\r\n\t\treturn getOnMouseMove();\r\n\t}",
"public void pointToMouse() {\n pointToXY(p.mouseX,p.mouseY);\n }",
"public int getXPos();",
"public void getCoord(MouseEvent me){\n if(mapImage.getImage()!=null) {\n double xPos = me.getX();\n double yPos = me.getY();\n Main.ps.setTitle(xPos + \" \" + yPos);\n }\n }",
"double getXPosition();",
"public double getMouseClickedY() {\n\t\treturn Lel.coreEngine.panelPositionToWorld(input.getMouseClickedPosition()).getY();\n\t}",
"public double getXPos() {\n\t\treturn this.position[0];\n\t}",
"public static MouseState getRelativeMouseState() throws SDLException {\n\tint x[] = {0};\n\tint y[] = {0};\n\n\tint buttons = SWIG_SDLEvent.SDL_GetRelativeMouseState(x, y);\n\treturn new MouseState(x[0], y[0], buttons);\n }",
"public int getXPointerPosition() {\n\t\treturn getXPosition() + getXOffset();\n\t}",
"int getMouseX(int scWidth) {\n return Mouse.getX() * (scWidth + ZanMinimap.heightOffset) / game.d;\n }",
"public final int getCursorX() {\n return cursorX;\n }",
"private void setMousePossition() {\n mouseX = Mouse.getMouseX() / Display.SCALE;\n mouseY = Mouse.getMouseY() / Display.SCALE;\n }",
"public double getUIMouseX() {\n\t\treturn getUIMousePosition().getX();\n\t}",
"public float distanceToMouse() { \n PVector temp = new PVector(p.mouseX, p.mouseY);\n return pos.dist(temp);\n }",
"public static MouseState getMouseState() throws SDLException {\n\tint x[] = {0};\n\tint y[] = {0};\n\n\tint buttons = SWIG_SDLEvent.SDL_GetMouseState(x, y);\n\treturn new MouseState(x[0], y[0], buttons);\n }",
"public Point getLocationDialog(){\n try{\n return new Point( (int)this.getLocationOnScreen().getX() +(this.getWidth() /3), (int)this.getLocationOnScreen().getY()+this.menuBarData.getHeight());\n }catch(IllegalComponentStateException e){\n return new Point(100,100);\n }\n }",
"@Override\n\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\tint x = e.getX();\n\t\t\tint y = e.getY();\n\t\t\t//System.out.println(\"X: \" + x + \" Y: \" +y);\n\n\t\t}",
"public double getUserFriendlyXPos(){\n return xPos - myGrid.getWidth()/ HALF;\n }",
"public Point2D getMouseSpeed() {\n\t\treturn Lel.coreEngine.panelVectorToWorld(input.getMouseSpeed());\n\t}",
"@Override\npublic void mouseClicked(MouseEvent e)\n{\n\tSystem.out.println(e.getX() + \" :: \" + e.getY());\n}",
"public double getXPos(){\n return xPos;\n }",
"protected double getWindowLeftX() {\n\t\treturn this.m_windowLeftX;\n\t}",
"public Vector2F getScreenLocation() {\n\t\treturn new Vector2F(xPos, yPos);\n\t}",
"private void formMousePressed(java.awt.event.MouseEvent evt) {\n xx=evt.getX();\n xy=evt.getY();\n \n }",
"private void formMousePressed(java.awt.event.MouseEvent evt) {\n xx=evt.getX();\n xy=evt.getY();\n \n }",
"double getPositionX();",
"double getPositionX();",
"double getPositionX();",
"public Point getPosition() {\n return this.position;\n }",
"public static void main(String[] args) throws AWTException {\n\n\nPointerInfo a = MouseInfo.getPointerInfo();\nPoint b = a.getLocation();\nint x = (int) b.getX();\nint y = (int) b.getY();\nSystem.out.print(y + \"jjjjjjjjj\");\nSystem.out.print(x);\nRobot r = new Robot();\nr.mouseMove(x, y - 50);\n\n\n\t}",
"public void tick() {\n\t\ta = Window.frame.getMousePosition();\n\t\tif (a != null) {\n\t\t\tmx = (int)a.getX();\n\t\t\tmy = (int)a.getY();\n\t\t}\n\t\t//System.out.println(a);\n\t}",
"public Point getAWTPoint() {\n\t\treturn new Point(this.x0, this.y0);\n\t}",
"T getMouse();",
"Point onScreen();",
"private void computeScreenLocation(MouseEvent mouseEvent)\r\n\t{\r\n\t\t\r\n\t\tscreenLocation.setLocation(mouseEvent.getX(), mouseEvent.getY());\r\n\t\tSwingUtilities.convertPointToScreen(screenLocation, (Component)mouseEvent.getSource());\r\n\t\r\n\t}",
"@Override\n public void mouseMoved(MouseEvent e) {\n mouseXPosition = e.getX();\n }",
"public int getX() {\r\n return xpos;\r\n }",
"public int getScreenX()\r\n\t{\r\n\t\treturn mScreen.getX();\r\n\t}",
"public double getX() {\n return position.getX();\n }",
"public Point getPosition(){\n\t\treturn position;\n\t}",
"public Point getclickedPoint() {\r\n return clickedPoint;\r\n }",
"public Point getPosition()\n\t{\n\t\treturn pos;\n\t}",
"public Point.Double getPosition(){\r\n return new Point.Double(x, y);\r\n }",
"public void mousePressed(MouseEvent e) {\n xinitial = e.getX() / 5; //get the x value\r\n yinitial = e.getY() / 5; //get the y value\r\n }",
"@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\tpvo3 = getPosition(e.getPoint());\n\t\t// System.out.println(pvo1.getX()+\",\"+pvo1.getY());\n\t}",
"@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }",
"@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }",
"@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }",
"public double getMouseDX() {\n\t\treturn getMouseSpeed().getX();\n\t}",
"public double getXPosition()\n\t{\n\t\treturn xPosition;\n\t}",
"public Point getPosition() {\n return position;\n }",
"public Point getPosition() {\n\t\treturn new Point(getXPosition(), getYPosition());\n\t}",
"public Double getMouse7()\n {\n return this.mouse7;\n }",
"public int[] getCaretPos() {\n\t\tPOINT point = new POINT();\n\t\tAutoItXImpl.autoItX.AU3_WinGetCaretPos(point);\n\t\treturn LocalInstances.autoItX.hasError() ? null : new int[] { point.x, point.y };\n\t}",
"public CursorPosition getCurrentCursorPosition(){\n return XSelection.getCurrentCursorPosition(this);\n }",
"public Point getPosition();",
"public final Point getPosition()\n\t{\n\t\treturn pos;\n\t}",
"public Cartesian3d getPosition() {\n return getMotion().getPosition();\n }",
"public double getX() {\n\t\treturn sens.getXPos();\n\t}",
"public int getX() {\n return (int) center.getX();\n }",
"public int getXPosition()\n {\n return xPosition;\n }",
"public int getXPosition()\n {\n return xPosition;\n }",
"public int getX() {\r\n return (int) center.getX();\r\n }",
"public void mouseMoved(MouseEvent e) {\n mouseX = e.getX();\n mouseY = e.getY();\n }",
"public Point getPosition(){\r\n return new Point(this.position);\r\n }",
"public int getXpos() {\n\t\treturn xpos;\n\t}",
"public Point getLocationInParentWindow() {\n return this.mLocationInParentWindow;\n }",
"double getLeftY();",
"public int getxPos() {\n return xPos;\n }",
"public int getHoverX() {\n return hoverX;\n }",
"@Override\n public native void mouseMove(int x, int y);",
"public int getX() {\n return (int) this.center.getX();\n }",
"public double getPositionX() {\n return positionX_;\n }",
"public double getPositionX() {\n return positionX_;\n }",
"public double getPositionX() {\n return positionX_;\n }",
"public final int getCursorY() {\n return cursorY;\n }",
"public int getX() {\n return pos_x;\n }",
"public int getXPosition(){\n\t\treturn xPosition;\n\t}"
] | [
"0.8062175",
"0.7848162",
"0.7568662",
"0.73974967",
"0.7371202",
"0.70167166",
"0.6978658",
"0.69077736",
"0.6862019",
"0.680245",
"0.6748085",
"0.6636818",
"0.65783423",
"0.65712285",
"0.65679705",
"0.6529788",
"0.649346",
"0.64672226",
"0.64526457",
"0.64315325",
"0.6430451",
"0.6426922",
"0.64059705",
"0.639841",
"0.63518554",
"0.6348948",
"0.6344632",
"0.6323899",
"0.6313558",
"0.6309022",
"0.6280603",
"0.62709033",
"0.6265978",
"0.62608933",
"0.6236841",
"0.6235875",
"0.61973196",
"0.6178203",
"0.6170826",
"0.61596364",
"0.61360717",
"0.61303586",
"0.6125936",
"0.611047",
"0.61086017",
"0.6108196",
"0.6108196",
"0.6106047",
"0.6106047",
"0.6106047",
"0.609568",
"0.608791",
"0.6073575",
"0.60722333",
"0.60553735",
"0.6049028",
"0.6048079",
"0.6041003",
"0.60355186",
"0.60329735",
"0.60307956",
"0.602946",
"0.6028105",
"0.6024653",
"0.6023301",
"0.6007887",
"0.60039705",
"0.6002877",
"0.6002877",
"0.6002877",
"0.59907544",
"0.59882736",
"0.5981878",
"0.5981052",
"0.5973557",
"0.59688854",
"0.5968117",
"0.5959404",
"0.59491026",
"0.59453124",
"0.592943",
"0.5915091",
"0.5913756",
"0.5913756",
"0.59061074",
"0.5900754",
"0.58946073",
"0.58900905",
"0.588777",
"0.58816135",
"0.58809817",
"0.5878157",
"0.5875719",
"0.5873246",
"0.58716387",
"0.58716387",
"0.5871018",
"0.5867585",
"0.5854972",
"0.58520424"
] | 0.80022514 | 1 |
Gets the weapons damage | public int getDamage() {
return damage;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getWeaponDamage()\n {\n \t\treturn mystuff.getWepDmg();\n }",
"public short getSiegeWeaponDamage();",
"public int getWeaponDamage()\n\t{\n\t\treturn weaponDamage;\n\t}",
"public int getWeaponDamage() {\n return Math.round(type.getWeaponDamage()*type.getItemLevelMultipliers()\n\t\t\t\t[level - 1]);\n }",
"public int getEquippedWeaponDamage() {\n return 0;\n }",
"public int getWeaponDamage()\r\n\t{\t\r\n\t\tint damageValue = 0; //damage for superclass / unspecified weapon type; overwritten if the referenced weapon is specified/exists\r\n\t\t\r\n\t\t//passes the subclass name of the referenced Weapon object and get its specified damage\r\n\t\t\r\n\t\tif (this.getClass ( ).getName().equals(\"Stick\"))\r\n\t\t{\r\n\t\t\tdamageValue = ((Stick)this).getWeaponDamage();\r\n\t\t}\r\n\t\t\r\n\t\telse if (this.getClass ( ).getName().equals(\"Sword\"))\r\n\t\t{\r\n\t\t\tdamageValue = ((Sword)this).getWeaponDamage();\r\n\t\t}\r\n\t\t\r\n\t\telse if (this.getClass ( ).getName().equals(\"Bazooka\"))\r\n\t\t{\r\n\t\t\tdamageValue = ((Bazooka)this).getWeaponDamage();\r\n\t\t}\r\n\t\t\r\n\t\telse if (this.getClass ( ).getName().equals(\"AtomicBomb\"))\r\n\t\t{\r\n\t\t\tdamageValue = ((AtomicBomb)this).getWeaponDamage();\r\n\t\t}\r\n\t\t\r\n\t\telse if (this.getClass ( ).getName().equals(\"PotatoCannon\"))\r\n\t\t{\r\n\t\t\tdamageValue = ((PotatoCannon)this).getWeaponDamage();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn damageValue;\r\n\t}",
"public float getHungerDamage();",
"int getDamage();",
"int getDamage();",
"int getDamage();",
"int getDamage();",
"int getDamage();",
"public int getDamage () {\n\t\treturn (this.puissance + stuff.getDegat());\n\t}",
"public double getDamage() {\n return damage;\n }",
"public double getDamage() {\r\n\t\treturn damage;\r\n\t}",
"AbilityDamage getAbilityDamage();",
"public int getDamage() {\n //TODO\n return 1;\n }",
"public int getWeapons() {\n return weapons;\n }",
"public float getDamage() {\n return damage;\n }",
"public int getDamage() {\n \t\treturn damage + ((int) 0.5*level);\n \t}",
"public int getDamage() {\r\n\t\treturn damage;\r\n\t}",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n\t\treturn itemDamage;\n\t}",
"public short getBowDamage();",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getSelectedWeaponDamage() {\n return 0;\n }",
"public static double getWeaponDamage(Item weapon, Skill attStrength) {\n/* 2348 */ if (weapon.isBodyPart() && weapon.getAuxData() != 100) {\n/* */ \n/* */ try {\n/* */ \n/* 2352 */ float f = Server.getInstance().getCreature(weapon.getOwnerId()).getCombatDamage(weapon);\n/* */ \n/* 2354 */ return (f + Server.rand.nextFloat() * f * 2.0F);\n/* */ }\n/* 2356 */ catch (NoSuchCreatureException nsc) {\n/* */ \n/* 2358 */ logger.log(Level.WARNING, \"Could not find Creature owner of weapon: \" + weapon + \" due to \" + nsc.getMessage(), (Throwable)nsc);\n/* */ \n/* */ }\n/* 2361 */ catch (NoSuchPlayerException nsp) {\n/* */ \n/* 2363 */ logger.log(Level.WARNING, \"Could not find Player owner of weapon: \" + weapon + \" due to \" + nsp.getMessage(), (Throwable)nsp);\n/* */ } \n/* */ }\n/* */ \n/* */ \n/* 2368 */ float base = 6.0F;\n/* 2369 */ if (weapon.isWeaponSword()) {\n/* */ \n/* 2371 */ base = 24.0F;\n/* */ }\n/* 2373 */ else if (weapon.isWeaponAxe()) {\n/* 2374 */ base = 30.0F;\n/* 2375 */ } else if (weapon.isWeaponPierce()) {\n/* 2376 */ base = 12.0F;\n/* 2377 */ } else if (weapon.isWeaponSlash()) {\n/* 2378 */ base = 18.0F;\n/* 2379 */ } else if (weapon.isWeaponCrush()) {\n/* 2380 */ base = 36.0F;\n/* 2381 */ } else if (weapon.isBodyPart() && weapon.getAuxData() == 100) {\n/* */ \n/* 2383 */ base = 6.0F;\n/* */ } \n/* 2385 */ if (weapon.isWood()) {\n/* 2386 */ base *= 0.1F;\n/* 2387 */ } else if (weapon.isTool()) {\n/* 2388 */ base *= 0.3F;\n/* */ } \n/* 2390 */ base = (float)(base * (1.0D + attStrength.getKnowledge(0.0D) / 100.0D));\n/* */ \n/* 2392 */ float randomizer = (50.0F + Server.rand.nextFloat() * 50.0F) / 100.0F;\n/* */ \n/* 2394 */ return base + (randomizer * base * 4.0F * weapon.getQualityLevel() * weapon.getDamagePercent()) / 10000.0D;\n/* */ }",
"public int getDamage() {\r\n\t\treturn myDamage;\r\n\t}",
"public int getMaxDamage() {\n\t\tint damage = 0;\n\t\tfor (Weapon weapon: weapons) {\n\t\t\tdamage = Math.max(weapon.damage, damage);\n\t\t}\n\t\treturn damage;\n\t}",
"public int getDamage() {\n\t\t\treturn damage;\n\t\t}",
"public int getDamage()\n\t{\n\t\treturn Damage;\n\t}",
"public int getGetDamage() {\r\n\t\treturn getDamage;\r\n\t}",
"public int getDamage() {\n\t\treturn (int) (Math.random() * damageVariance) + damage;\n\t}",
"public int getDamage() {\n\t\treturn this.damage;\n\t}",
"String getDamage() {\n return damage;\n }",
"public int getDmg(){\r\n return enemyDmg;\r\n }",
"public int giveDamage();",
"public int[] getDamage(){\n\t\treturn shipDamage;\n\t}",
"@ZenCodeType.Method\n @ZenCodeType.Getter(\"itemDamage\")\n public static int getItemDamage(ItemFishedEvent internal) {\n \n return internal.getRodDamage();\n }",
"public void getDamaged(float dmg) {\n\t\tStagePanel.addValueLabel(parentGP,dmg,Commons.cAttack);\n\t\tif(shield - dmg >= 0) {\n\t\t\tshield-=dmg;\n\t\t\tdmg = 0;\n\t\t}else {\n\t\t\tdmg-=shield;\n\t\t\tshield = 0;\n\t\t}\n\t\tif(health-dmg > 0) {\n\t\t\thealth-=dmg;\n\t\t}else {\n\t\t\thealth = 0;\n\t\t}\n\t\tSoundEffect.play(\"Hurt.wav\");\n\t}",
"public short getHandThrowDamage();",
"@Override\n public double getDamageAmount() {\n return this.getStrength().getAbilityValue();\n }",
"@org.junit.Test\n public void getDamage() {\n Weapon sword = new Sword();\n int dmg = sword.getDamage();\n assertEquals(\"Normal Sword.getDamage() failed\",5,dmg);\n\n Weapon stick = new WoodStick();\n dmg = stick.getDamage();\n assertEquals(\"Normal WoodStick.getDamage() failed\",1,dmg);\n }",
"public int getDamageTaken() {\n return this.damageTaken;\n }",
"public int getDamageVsEntity(Entity var1)\r\n {\r\n return this.weaponDamage;\r\n }",
"public int getEquippedWeaponWeight() {\n return 0;\n }",
"public int calculateAttack() {\n int attack = 0;\n for (Weapon w : equippedWeapons) {\n attack += w.getType().getDamage();\n }\n return attack;\n }",
"public DamageType getDamagetype();",
"public Entity getDamageDealer();",
"public String getWeapon() {\n return weapon1;\n }",
"private void damage(){\n\n LevelMap.getLevel().damage(dmg);\n //System.out.println(\"died\");\n setDie();\n }",
"public int getDamageDealt () {\r\n\t\treturn this.damageDealt;\r\n\t}",
"public List<Integer> getPurchasedWeapons() {\r\n\t\treturn collectionManager.getPurchasedWeapons();\r\n\t}",
"public Weapon getWeapon(){\n return this.weaponPos;\n }",
"@Basic @Immutable\n\tpublic int getDamage() {\n\t\treturn this.damage;\n\t}",
"public int getDamageTaken () {\r\n\t\treturn this.damageTaken;\r\n\t}",
"public List<CardWeapon> getWeapons() {\n return weapons;\n }",
"public static int getDamage(String name) {\n\n EnumMoreSwords swordType = getType(name);\n\n if (swordType != null) {\n\n return swordType.swordDamage;\n }\n\n return -1;\n }",
"float getBonusItemDrop();",
"public ArrayList<Weapon> getWeapons() {\n return weapons;\n }",
"public Integer getItemDamage(Material material)\r\n\t{\treturn this.itemDamage.get(material);\t}",
"public Weapon getWeapon() {\n\t\treturn weapon;\n\t}",
"public double getLastDamage ( ) {\n\t\treturn extract ( handle -> handle.getLastDamage ( ) );\n\t}",
"public void setWeaponDamage (int weaponDamage)\r\n\t{\r\n\t\tthis.weaponDamage = weaponDamage;\r\n\t}",
"@Override\n public int damage() {\n int newDamage=criticalStrike();\n return newDamage;\n }",
"public int getWeaponRange() {\n\t\treturn Math.round(type.getWeaponRange() * type.getItemLevelMultipliers()\n\t\t\t\t[level - 1]);\n\t}",
"@Override\n public int doDamage() {\n if (difficulty <5)\n return damage;\n else \n return damage*2;\n }",
"public int attack(Weapon byWeapon) {\n\t\treturn byWeapon.getDamage();\n\t}",
"Float getHealth();",
"public int getWeapLvl() {\n\t\treturn weaponLevel;\n\t}",
"public int shoot()\n {\n if(availableAmmo > 0)\n {\n System.out.println(\"Pew Pew\");\n availableAmmo--; \n damageCaused = randomDamageGenerator.nextInt(450);\n return damageCaused;\n }\n else return -1;\n }",
"public ArrayList<Pair<Byte, Short>> getWeapons() {\n return weapons;\n }",
"public Integer getProjectileDamage(CharacterDamageManager.ProjectileType type)\r\n\t{\treturn (Integer)this.projectileDamage.get(type);\t}",
"public String getWeaponName()\r\n\t{\r\n\t\treturn this.weaponName;\r\n\t}",
"public void takeDamage(double damage){\n damage -= this.armor;\n this.health -= damage;\n }",
"public double getItemDamageLevel(Material mat)\r\n\t{\treturn this.itemDamageLevel.containsKey(mat) ? (this.itemDamageLevel.get(mat)) : 0.0D;\t}",
"public float getHealth(){\n return health.getHealth();\n }",
"public double damageCalculation(NPC mob, Player player) {\r\n double weapon = mob.getWeapon().getDamage();\r\n double attack = mob.getStats().getAttack();\r\n double defence = player.getStats().getDefence();\r\n\r\n return ((weapon + attack) * 2 - defence);\r\n }",
"public double getOverhitDamage()\n\t{\n\t\treturn overhitDamage;\n\t}",
"public int getTempDmg(){\r\n return tDmg;\r\n }",
"public static int getMaxDamage() {\n\t\treturn MAX_DAMAGE;\n\t}",
"public int weaponCount(){\n\t\treturn weaponList.size();\n\t}",
"public int getDefensePower() {\n return defensePower;\n }",
"public int getPotion() {\n return getStat(potion);\n }",
"public float getAttackCooldown ( ) {\n\t\treturn extract ( handle -> handle.getAttackCooldown ( ) );\n\t}",
"public int getAttackPower() {\n return attackPower;\n }",
"public float getBonusItemDrop() {\n return bonusItemDrop_;\n }",
"public static String extractWeaponDamage( String attackDamage )\n {\n \t\n int plusMinusCount = 0;\n\n \n for(int i = 0; i < attackDamage.length(); i++)\n {\n if(attackDamage.charAt(i) == ' ')\n {\n return attackDamage.substring(0,i); \n }\n if(attackDamage.charAt(i) == '+' || attackDamage.charAt(i) == '-')\n plusMinusCount++;\n if(plusMinusCount >=2)\n return attackDamage.substring(0,i); \t \n } \n\n return attackDamage;\n }",
"public boolean getDamage(){\n\t\tdie();\n\t\treturn false;\n\t}",
"public Weapon[] getWeapons(){\n\t\tSystem.out.println(\"Creating Weapons...\");\n\t\tfor(int i=0; i<boardWeapons.length; i++){\n\t\t\tSystem.out.println(boardWeapons[i].getName());\n\t\t}\n\t\treturn boardWeapons;\n\t}",
"public double damageCalculation(Player player, NPC mob) {\r\n double weapon = player.getWeapon().getDamage();\r\n double attack = player.getStats().getAttack();\r\n double defence = mob.getStats().getDefence();\r\n double critMulti = 1;\r\n\r\n// Chance chance = new Chance(player.getLevel(), player.getStats().getDexterity(), player.getCharacterClass());\r\n Chance chance = new Chance(player.getStats().getCritChance());\r\n boolean crit = chance.getSuccess();\r\n\r\n if (crit) {\r\n critMulti = 2;\r\n System.out.println(\"CRIT!\");\r\n } else {\r\n// System.out.println(\"No crit\");\r\n }\r\n\r\n return ((weapon + attack) * 2 - defence) * critMulti;\r\n }",
"@Override\n\tpublic int calculateDamage() \n\t{\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}"
] | [
"0.81896234",
"0.8132514",
"0.80847645",
"0.7942261",
"0.78967565",
"0.77956265",
"0.77198565",
"0.76414776",
"0.76414776",
"0.76414776",
"0.76414776",
"0.76414776",
"0.748069",
"0.7471087",
"0.7464201",
"0.74466205",
"0.7440406",
"0.74223244",
"0.74213725",
"0.74113005",
"0.73266894",
"0.732392",
"0.732392",
"0.732392",
"0.732392",
"0.732392",
"0.7290942",
"0.72810787",
"0.727258",
"0.727258",
"0.727258",
"0.727258",
"0.727258",
"0.7263687",
"0.7263024",
"0.72322834",
"0.7222902",
"0.7203701",
"0.71899104",
"0.7181572",
"0.7149117",
"0.7124591",
"0.70838404",
"0.69781274",
"0.69749075",
"0.6934099",
"0.6932956",
"0.69211715",
"0.6906829",
"0.6880553",
"0.6877166",
"0.6810819",
"0.6777347",
"0.67722887",
"0.6765407",
"0.67372763",
"0.6722901",
"0.667138",
"0.6660014",
"0.6654117",
"0.662984",
"0.6627169",
"0.6612444",
"0.6608248",
"0.65878445",
"0.6575259",
"0.6572517",
"0.656686",
"0.65379214",
"0.65252364",
"0.6516937",
"0.6513304",
"0.6506392",
"0.6485387",
"0.6468497",
"0.6415568",
"0.64151573",
"0.64044243",
"0.6398314",
"0.63893116",
"0.6363584",
"0.634446",
"0.6336746",
"0.63261455",
"0.63201475",
"0.6301868",
"0.62964827",
"0.6260224",
"0.6260159",
"0.62285274",
"0.6223637",
"0.62188864",
"0.621266",
"0.61995566",
"0.6194668",
"0.6191335",
"0.6187446",
"0.6174483",
"0.61650836",
"0.6148797"
] | 0.73868364 | 20 |
Listener for response to user permission request | @Override
public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {
if (requestCode == PERMISSION_CODE) {
if (grantResults.length > 0
&& grantResults[0] == PackageManager.PERMISSION_GRANTED) {
launchPicker();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void permissionGranted(int requestCode);",
"public interface PermissionListener {\n\n void onGranted(); //授权\n\n void onDenied(List<String> deniedPermission); //拒绝 ,并传入被拒绝的权限\n}",
"@Override\n public void onPermissionGranted(PermissionGrantedResponse permissionGrantedResponse) {\n\n }",
"public void onPermissionGranted() {\n\n }",
"@Override\n public void onPermissionGranted() {\n }",
"@Override\n public void onPermissionGranted() {\n }",
"@PermissionSuccess(requestCode = 100)\n public void onPermissionSuccess(){\n }",
"@Override\n public void onPermissionsGranted(int requestCode, List<String> perms) {\n }",
"@Override\n public void onPermissionsGranted(int requestCode, List<String> perms) {\n }",
"@Override\n public void onGranted() {\n }",
"@Override\n public void onDenied(String permission) {\n }",
"@Override\n public void onDenied(String permission) {\n }",
"@Override\n public void onGranted() {\n }",
"@Override\n public void onGranted() {\n }",
"public interface IPermissionCallback {\n /**\n * Gets called if the permission/permissions you requested are granted successfully by the user.\n * @param requestCode - same integer is returned that you have passed when you called requestPermission();\n */\n void permissionGranted(int requestCode);\n\n /**\n * Gets called if the permission/permissions you requested are denied by the user.\n * If user denies a permission once, next time that permission comes with a check box(never ask again).\n * If user check that box and denies again, no permission dialog is shown to the user next time and permission will be denied automatically.\n * @param requestCode - same integer is returned that you have passed when you called requestPermission();\n * @param willShowCheckBoxNextTime - For a request of multiple permissions at the same time, you will always receive false.\n */\n void permissionDenied(int requestCode, boolean willShowCheckBoxNextTime);\n}",
"@Override\n public void onRequestAllow(String permissionName) {\n }",
"public interface PermissionCallbacks {\n /**\n * request successful list\n * @param requestCode\n * @param perms\n */\n void onPermissionsGranted(int requestCode, List<String> perms);\n\n /**\n * request denied list\n * @param requestCode\n * @param perms\n */\n void onPermissionsDenied(int requestCode, List<String> perms);\n}",
"public void onPermissionError(CommandEvent e);",
"void requestNeededPermissions(int requestCode);",
"void askForPermissions();",
"@Override\n public void onRequestRefuse(String permissionName) {\n }",
"public interface PermissionResult {\n\n void permissionGranted();\n\n void permissionDenied();\n\n void permissionForeverDenied();\n\n}",
"@Override\n public void checkPermission(Permission perm, Object context) {\n }",
"public void OnConfHostRequest(BoUserInfoBase user, int permission);",
"protected void handlePermissionResult() {\n for (String permission : Constants.PERMISSIONS_NEEDED) {\n if (mUtils.hasPermission(permission)) {\n // User granted this permission, check for next one\n continue;\n }\n // User not granted permission\n if (SpyState.Listeners.permissionsListener != null) // Let app handle this\n {\n SpyState.Listeners.permissionsListener.onPermissionDenied(!mActivity.shouldShowRequestPermissionRationale(permission));\n return;\n }\n\n AlertDialog.Builder permissionRequestDialog = new AlertDialog.Builder(mActivity)\n .setTitle(R.string.dialog_permission_title)\n .setMessage(R.string.dialog_permission_message)\n .setCancelable(false)\n .setNegativeButton(R.string.exit,\n (dialog, whichButton) -> {\n mUtils.showToast(R.string.closing_app);\n mActivity.finish();\n });\n if (!mActivity.shouldShowRequestPermissionRationale(permission)) {\n // User clicked on \"Don't ask again\", show dialog to navigate him to\n // settings\n permissionRequestDialog\n .setPositiveButton(R.string.go_to_settings,\n (dialog, whichButton) -> {\n Intent intent =\n new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri =\n Uri.fromParts(\"package\", mActivity.getPackageName(), null);\n intent.setData(uri);\n mActivity.startActivityForResult(intent,\n OPEN_SETTINGS_REQUEST_CODE);\n })\n .show();\n } else {\n // User clicked on 'deny', prompt again for permissions\n permissionRequestDialog\n .setPositiveButton(R.string.try_again,\n (dialog, whichButton) -> grantPermissions())\n .show();\n }\n return;\n }\n Log.i(TAG, \"All required permissions have been granted!\");\n }",
"public interface IPermissionCommunicator {\n public void onRequestForPermission();\n}",
"@Override\n public void onAction(List<String> permissions) {\n Log.e(TAG, \"permission success\");\n callback.onSuccess(permissions);\n\n }",
"@Override\n public void checkPermission(Permission perm) {\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_PERMISSION_SETTING) {\n checkPermission();\n }\n }",
"public interface PermissionFailDefaultCallBack {\r\n void onRequestRefuse(int requestCode, String refuseTip);\r\n void onRequestForbid(int requestCode, String forbidTip);\r\n}",
"@Subscribe(threadMode = ThreadMode.MAIN)\n public void onGreenRobotEvent(ICheckPermissionResult result)\n {\n\n if (userInterfaceManager != null)\n {\n userInterfaceManager.setUserInterface(result);\n }\n\n }",
"private void askForPermission(){\n if (ContextCompat.checkSelfPermission(MainActivity.this,\n Manifest.permission.ACCESS_NOTIFICATION_POLICY)\n != PackageManager.PERMISSION_GRANTED) {\n Log.i(TAG,\"don't have permission\");\n // Permission is not granted\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(MainActivity.this,\n Manifest.permission.ACCESS_NOTIFICATION_POLICY)) {\n Log.i(TAG,\"Asking for permission with explanation\");\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_NOTIFICATION_POLICY},\n MY_PERMISSIONS_MODIFY_AUDIO_SETTINGS);\n\n } else {\n Log.i(TAG,\"Asking for permission without explanation\");\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_NOTIFICATION_POLICY},\n MY_PERMISSIONS_MODIFY_AUDIO_SETTINGS);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n // Permission has already been granted\n Log.i(TAG,\"Already had permission\");\n }\n\n }",
"public boolean isPermissionGranted(String permission){\n return true;\n// else\n// return false;\n }",
"private void checkRunTimePermission() {\n\n if(checkPermission()){\n\n Toast.makeText(MainActivity.this, \"All Permissions Granted Successfully\", Toast.LENGTH_LONG).show();\n\n }\n else {\n\n requestPermission();\n }\n }",
"@Override\r\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n if (requestCode == tag) {\r\n\r\n //If permission is granted\r\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\r\n\r\n //Displaying a toast\r\n Toast.makeText(this, \"Permission granted \", Toast.LENGTH_LONG).show();\r\n } else {\r\n //Displaying another toast if permission is not granted\r\n Toast.makeText(this, \"Oops you just denied the permission\", Toast.LENGTH_LONG).show();\r\n }\r\n }\r\n }",
"@Override\r\n public void onPermissionsGranted(int requestCode, List<String> list) {\r\n // Do nothing.\r\n }",
"private void proceedAfterPermission() {\n Toast.makeText(getBaseContext(), \"We got the contacts Permission\", Toast.LENGTH_LONG).show();\n\n }",
"abstract public void getPermission();",
"@Override\n public void onPermissionDenied() {\n Log.d(TAG, \"onPermissionDenied() called\");\n }",
"@Override\n public void onPermissionsGranted(int requestCode, List<String> list) {\n // Do nothing.\n }",
"@Override\n public void onPermissionsGranted(int requestCode, List<String> list) {\n // Do nothing.\n }",
"@Override\n public void onPermissionsGranted(int requestCode, List<String> list) {\n // Do nothing.\n }",
"@RequiresPermission(Manifest.permission.OBSERVE_GRANT_REVOKE_PERMISSIONS)\n public void addOnPermissionsChangeListener(\n @NonNull PackageManager.OnPermissionsChangedListener listener) {\n synchronized (mPermissionListeners) {\n if (mPermissionListeners.get(listener) != null) {\n return;\n }\n final OnPermissionsChangeListenerDelegate delegate =\n new OnPermissionsChangeListenerDelegate(listener, Looper.getMainLooper());\n try {\n mPermissionManager.addOnPermissionsChangeListener(delegate);\n mPermissionListeners.put(listener, delegate);\n } catch (RemoteException e) {\n throw e.rethrowFromSystemServer();\n }\n }\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {\n //Passing request code to request for the permissions\n switch (requestCode) {\n case WRITE_REQUEST_CODE:\n if(grantResults[0] == PackageManager.PERMISSION_GRANTED){\n Toast.makeText(getApplicationContext(), \"Permission Granted \", //Toast Message\n Toast.LENGTH_SHORT).show();\n }\n else{\n Toast.makeText(getApplicationContext(), \"Permission Denied \", //Toast Message\n Toast.LENGTH_SHORT).show();\n\n }\n break;\n }\n }",
"@Override\n public void onClick(View view) {\n String platform = checkPlatform();\n if (platform.equals(\"Marshmallow\")) {\n Log.d(TAG, \"Runtime permission required\");\n //Step 2. check the permission\n boolean permissionStatus = checkPermission();\n if (permissionStatus) {\n //Permission already granted\n Log.d(TAG, \"Permission already granted\");\n } else {\n //Permission not granted\n //Step 3. Explain permission i.e show an explanation\n Log.d(TAG, \"Explain permission\");\n explainPermission();\n //Step 4. Request Permissions\n Log.d(TAG, \"Request Permission\");\n requestPermission();\n }\n\n } else {\n Log.d(TAG, \"onClick: Runtime permission not required\");\n }\n\n\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n\n int length = grantResults.length;\n if(length > 0)\n {\n int grantResult = grantResults[0];\n\n if(grantResult == PackageManager.PERMISSION_GRANTED) {\n\n Toast.makeText(getApplicationContext(), \"You allowed permission.\", Toast.LENGTH_LONG).show();\n }else\n {\n Toast.makeText(getApplicationContext(), \"You denied permission.\", Toast.LENGTH_LONG).show();\n }\n }\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {\n switch (requestCode) {\n case 1: {\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n\n } else {\n }\n return;\n }\n }\n }",
"public void permission_check() {\n //Usage Permission\n if (!isAccessGranted()) {\n new LovelyStandardDialog(MainActivity.this)\n .setTopColorRes(R.color.colorPrimaryDark)\n .setIcon(R.drawable.ic_perm_device_information_white_48dp)\n .setTitle(getString(R.string.permission_check_title))\n .setMessage(getString(R.string.permission_check_message))\n .setPositiveButton(android.R.string.ok, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(android.provider.Settings.ACTION_USAGE_ACCESS_SETTINGS);\n startActivity(intent);\n }\n })\n .setNegativeButton(android.R.string.no, null)\n .show();\n }\n }",
"default void testIamPermissions(\n com.google.iam.v1.TestIamPermissionsRequest request,\n io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getTestIamPermissionsMethod(), responseObserver);\n }",
"private void fetchPermissionsFromUser() {\n Log.d(TAG, \"in fetch permisssion s\");\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"in fetch permisssion s ACCESS_COARSE_LOCATION\");\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.READ_CONTACTS)) {\n\n // Show an expanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n Log.d(TAG, \"in fetch permisssion s ACCESS_COARSE_LOCATION show request\");\n\n } else {\n\n // No explanation needed, we can request the permission.\n Log.d(TAG, \"in fetch permisssion s ACCESS_COARSE_LOCATION with return request\");\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_COARSE_LOCATION);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"in fetch permisssion s ACCESS_FINE_LOCATION\");\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n Log.d(TAG, \"in fetch permisssion s ACCESS_FINE_LOCATION erequest\");\n // Show an expanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n\n // No explanation needed, we can request the permission.\n Log.d(TAG, \"in fetch permisssion s ACCESS_FINE_LOCATION with return requet\");\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n\n\n }",
"@Override\n public void onDenied(Context context, ArrayList<String> deniedPermissions) {\n getPermissions();\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n switch (requestCode) {\n case RequestPermissionCode:\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n //Permission was granted\n Log.d(TAG, \"onRequestPermissionsResult: Permission Granted\");\n Toast.makeText(MainActivity.this, \"Permission Granted\", Toast.LENGTH_SHORT).show();\n } else {\n //Permission Denied\n Log.d(TAG, \"onRequestPermissionsResult: Permission Denied\");\n Toast.makeText(MainActivity.this, \"Permission Denied\", Toast.LENGTH_SHORT).show();\n }\n return;\n }\n }",
"private void checkPermission() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO)\n != PackageManager.PERMISSION_GRANTED) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this)\n .setMessage(getString(R.string.can_not_handle_calls))\n .setCancelable(false)\n .setPositiveButton(R.string.text_ok, (dialog, id) -> {\n requestPermission();\n });\n\n builder.create().show();\n } else {\n presenter.gotPermissions = true;\n }\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n SSLog.e(TAG, \"sendUserAccess :- \", error.getMessage());\n }",
"interface OnRuntimePermissionStateChangedListener {\n\n /**\n * Called when the runtime permission state (permissions or flags) changed.\n *\n * @param packageName The package for which the change happened.\n * @param userId the user id for which the change happened.\n */\n @Nullable\n void onRuntimePermissionStateChanged(@NonNull String packageName,\n @UserIdInt int userId);\n }",
"@Override\n public void onNotAcceptingPermissions(Permission.Type type) {\n Log.w(TAG, String.format(\"You didn't accept %s permissions\", type.name()));\n }",
"@Override\n public void onPermissionRequest(final PermissionRequest request) {\n Log.i(TAG, \"onPermissionRequest\");\n mPermissionRequest = request;\n final String[] requestedResources = request.getResources();\n for (String r : requestedResources) {\n if (r.equals(PermissionRequest.RESOURCE_VIDEO_CAPTURE)) {\n // In this sample, we only accept video capture request.\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(TestActivity.this)\n .setTitle(\"Allow Permission to camera\")\n .setPositiveButton(\"Allow\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n mPermissionRequest.grant(new String[]{PermissionRequest.RESOURCE_VIDEO_CAPTURE});\n Log.d(TAG,\"Granted\");\n }\n })\n .setNegativeButton(\"Deny\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n mPermissionRequest.deny();\n Log.d(TAG,\"Denied\");\n }\n });\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show();\n\n break;\n }\n }\n }",
"@Override\n public void onClick(View view) {\n CheckUserPermsions();\n }",
"@Override\n\tpublic void grant(User subject, Permission permission)\n\t{\n\t\t//TODO figure out how to implement since we're using role based permissions\n\t}",
"public interface RuntimePermissionRequester {\n /**\n * Asks user for specific permissions needed to proceed\n *\n * @param requestCode Request permission using this code, allowing for\n * callback distinguishing\n */\n void requestNeededPermissions(int requestCode);\n}",
"private void requestPermission() {\n boolean shouldProvideRationale = ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_FINE_LOCATION);\n\n if (shouldProvideRationale) {\n Log.i(TAG, \"requestPermission: \" + \"Displaying the permission rationale\");\n // provide a way so that user can grant permission\n\n showSnackbar(R.string.warning_txt, android.R.string.ok, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startLocationPermissionRequest();\n }\n });\n\n } else {\n startLocationPermissionRequest();\n }\n }",
"public void checkPermission(String permission, int requestCode)\n {\n if (ContextCompat.checkSelfPermission(this, permission) == PackageManager.PERMISSION_DENIED) {\n // Requesting the permission\n ActivityCompat.requestPermissions(this, new String[] { permission }, requestCode);\n }\n else {\n Toast.makeText(this, \"Permission already granted\", Toast.LENGTH_SHORT).show();\n }\n }",
"boolean requestIfNeeded(Activity activity, Permission permission);",
"void checkPermission(T request) throws AuthorizationException;",
"private void askPermission() {\n if (ContextCompat.checkSelfPermission(this,\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n Parameters.MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"@Override\n public void onPermissionDenied(ArrayList<String> deniedPermissions) {\n Toast.makeText(HomeView.this, \"Permission Denied\\n\" + deniedPermissions.toString(), Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n if (requestCode == PERMISSION_REQUEST_CODE) {\n if (grantResults.length > 0) {\n\n // after requesting permissions we are showing\n // users a toast message of permission granted.\n boolean writeStorage = grantResults[0] == PackageManager.PERMISSION_GRANTED;\n boolean readStorage = grantResults[1] == PackageManager.PERMISSION_GRANTED;\n\n if (writeStorage && readStorage) {\n Toast.makeText(this, \"Permission Granted..\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, \"Permission Denied.\", Toast.LENGTH_SHORT).show();\n }\n }\n }\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n if(grantResults.length>0 && grantResults[0]== PackageManager.PERMISSION_GRANTED){\n Log.v(\"Permission: \",permissions[0]+ \"was \"+grantResults[0]);\n }\n }",
"public void testIamPermissions(\n com.google.iam.v1.TestIamPermissionsRequest request,\n io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse>\n responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()),\n request,\n responseObserver);\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n if (requestCode == PERMISSION_REQUEST) {\n // Do some action after result return of a permission request\n }\n }",
"void permissionDenied(int requestCode, boolean willShowCheckBoxNextTime);",
"@Override\n public void onRequestPermissionsResult(\n int requestCode,\n @NonNull String permissions[],\n @NonNull int[] grantResults) {\n\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(this, \"Permission Granted!\", Toast.LENGTH_SHORT).show();\n permissionResponseHandler.permissionGranted(requestCode);\n } else {\n Toast.makeText(this, \"Permission Denied!\", Toast.LENGTH_SHORT).show();\n permissionResponseHandler.permissionDenied(requestCode);\n }\n }",
"@Override\n public void onPromptAndCollectUserInformationResponse(PromptAndCollectUserInformationResponse arg0) {\n\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {\n boolean flag = true;\n switch (requestCode) {\n case RESULT_PERMISSION: {\n if (grantResults.length == 0)\n flag = false;\n else {\n for (int grantResult : grantResults) {\n if (grantResult == PackageManager.PERMISSION_DENIED) {\n flag = false;\n break;\n }\n }\n }\n close(flag);\n }\n }\n }",
"public void permissionChanged(Permission item)\n {\n event(\"PermissionChange\",\n item.getId(),\n -1,\n -1,\n false);\n }",
"void onPrivMsg(TwitchUser sender, TwitchMessage message);",
"private void permissionsDenied() {\n Log.w(\"TAG\", \"permissionsDenied()\");\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\n try {\n switch (requestCode) {\n case REQUEST_CODE_ASK_PERMISSIONS_RECORD_AUDIO:\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // Permission Granted\n checkRuntimePermisson(false);\n } else {\n // Permission Denied\n utils.showAlert(ctx, (InterfaceAlertDissmiss) MicManualFragment.this, ctx.getResources().getString(R.string.txtPermissionMessageMic), ctx.getResources().getString(R.string.txtPermissionRequired),\n ctx.getResources().getString(R.string.txtRetry), ctx.getResources().getString(R.string.Cancel), 121);\n }\n break;\n\n case REQUEST_CODE_ASK_PERMISSIONS_STORAGE:\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // Permission Granted\n checkRuntimePermisson(false);\n } else {\n // Permission Denied\n utils.showAlert(ctx, (InterfaceAlertDissmiss) MicManualFragment.this, ctx.getResources().getString(R.string.txtPermissionMessageMic), ctx.getResources().getString(R.string.txtPermissionRequired),\n ctx.getResources().getString(R.string.txtRetry), ctx.getResources().getString(R.string.Cancel), 1234);\n }\n break;\n\n default:\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }\n } catch (Exception e) {\n logException(e, \"MicManualFragment_onRequestPermissionsResult()\");\n }\n\n }",
"@Override\n protected String requiredGetPermission() {\n return \"user\";\n }",
"@Override\r\n protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws IOException {\n \tboolean b = WebUtil.isAjax((HttpServletRequest)request);\r\n \tif(b){//ajax請求,没有权限操作的\r\n JSONObject js = new JSONObject();\r\n js.put(\"isDenied\", true);\r\n js.put(\"message\", \"沒有权限执行该操作\");\r\n WebUtil.printJson(response, js);\r\n return false;\r\n \t}\r\n \treturn super.onAccessDenied(request, response);\r\n }",
"@Override\n public void onPermissionsChecked(MultiplePermissionsReport report) {\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String permissions[], @NonNull int[] grantResults) {\n switch (requestCode) {\n case REQUEST_PERMISSION_WRITE:\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n permissionGranted = true;\n Toast.makeText(this, \"External storage permission granted.\",\n Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, \"You must grant permission!\", Toast.LENGTH_SHORT).show();\n }\n break;\n }\n }",
"@Override\r\n public void onPermissionsDenied(int requestCode, List<String> list) {\r\n // Do nothing.\r\n }",
"@Override\n public void onRequestPermissionsResult(\n int requestCode, String[] permissions, int[] grantResults) {\n switch (requestCode) {\n case PERMISSION_REQ:\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n fineLocationPermissionGranted();\n }\n }\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode,String permissions[], int[] grantResults){\n switch (requestCode) {\n case MY_PERMISSIONS_REQUEST: {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED)\n {\n // permission was granted\n // Launch App A2 i.e. Application2Project3.\n Log.i(\"Main Activity\",\"Allow Permission\");\n Intent intent=new Intent();\n intent.setAction(TOAST_INTENT);\n sendBroadcast(intent);\n } else {\n\n // permission denied, Do nothing Return back to Application1Project3\n break;\n }\n return;\n }\n }\n }",
"@Override\n public void onClick(View v) {\n if (Build.VERSION.SDK_INT >= 23)\n {\n if (permissionUtils.checkPermissions())\n {\n Log.e(TAG, \"Permission Is Not Granted. Request For Permission\");\n permissionUtils.askPermission();\n }\n else\n {\n Log.e(TAG, \"Permission Already Granted\");\n Intent intent = new Intent(RuntimePermissionActivity.this, PermissionGrantedActivity.class);\n startActivity(intent);\n finish();\n }\n }\n else\n {\n /*\n * Pre-Marshmallow\n * If build version is less than or 23, then all permission is\n * granted at install time in google play store.\n */\n Intent intent = new Intent(RuntimePermissionActivity.this, PermissionGrantedActivity.class);\n startActivity(intent);\n finish();\n }\n }",
"public void askForPermissionsGrant(){\n int res =ContextCompat.checkSelfPermission(this,Manifest.permission.ACCESS_FINE_LOCATION);\n int res2 =ContextCompat.checkSelfPermission(this,Manifest.permission.ACCESS_FINE_LOCATION);\n if (res!= PackageManager.PERMISSION_GRANTED || res2!= PackageManager.PERMISSION_GRANTED) {\n // Permission is not granted\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"We need to access your location\")\n .setMessage(\"We want to track every breath you take\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.READ_CONTACTS},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n });\n builder.create().show();\n }\n else {\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n // Permission has already been granted\n publishLastLocation();\n }\n\n }",
"public interface PermissionsManager {\n /**\n * @param permission for which to enquire\n *\n * @return whether the permission is granted.\n */\n boolean isPermissionGranted(Permission permission);\n\n /**\n * Checks whether the permission was already granted, and if it was not, then it requests.\n *\n * @param activity to provide mContext\n * @param permission for which to enquire\n *\n * @return whether the permission was already granted.\n */\n boolean requestIfNeeded(Activity activity, Permission permission);\n}",
"public void verifyPermission() {\n Permissions.check(this/*context*/, Manifest.permission.WRITE_EXTERNAL_STORAGE, null, new PermissionHandler() {\n @Override\n public void onGranted() {\n addVideoInFolder();\n setupExoPlayer();\n settingListener();\n }\n\n @Override\n public void onDenied(Context context, ArrayList<String> deniedPermissions) {\n super.onDenied(context, deniedPermissions);\n verifyPermission();\n }\n });\n\n }",
"@Override\n public void onPermissionsDenied(int requestCode, List<String> list) {\n // Do nothing.\n }",
"@Override\n public void onPermissionsDenied(int requestCode, List<String> list) {\n // Do nothing.\n }",
"@Override\n public void onPermissionsDenied(int requestCode, List<String> list) {\n // Do nothing.\n }",
"public boolean checkPermission(Permission permission);",
"void AddUserListener(String uid, final UserResult result);",
"void requestStoragePermission();",
"@Override\n public void onRequestPermissionsResult(\n int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n Log.d(TAG, \"Permission result received\");\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n permissionsManager.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }",
"@Override\r\n public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\n switch (requestCode) {\r\n case REQUEST_AUDIO_PERMISSION_CODE:\r\n if (grantResults.length > 0) {\r\n boolean permissionToRecord = grantResults[0] == PackageManager.PERMISSION_GRANTED;\r\n boolean permissionToStore = grantResults[1] == PackageManager.PERMISSION_GRANTED;\r\n if (permissionToRecord && permissionToStore) {\r\n Toast.makeText(getApplicationContext(), \"Permission Granted\", Toast.LENGTH_LONG).show();\r\n } else {\r\n Toast.makeText(getApplicationContext(), \"Permission Denied\", Toast.LENGTH_LONG).show();\r\n }\r\n }\r\n break;\r\n }\r\n }",
"@Override\n public void onRequestPermissionsResult(final int iRequestCode, @NotNull final String xstrPermissions[], @NotNull final int[] xiGrantResults) {\n boolean bAllPermissionsGranted = true;\n if (iRequestCode == PERMISSION_GALLERY) {\n for (int iPermission : xiGrantResults) {\n if (iPermission != PackageManager.PERMISSION_GRANTED) {\n bAllPermissionsGranted = false;\n break;\n }\n }\n } else {\n for (int iPermission : xiGrantResults) {\n if (iPermission != PackageManager.PERMISSION_GRANTED) {\n bAllPermissionsGranted = false;\n break;\n }\n }\n }\n\n // If we have all the needed permissions, trigger directly the capture button handler\n if (bAllPermissionsGranted) {\n if (iRequestCode == PERMISSION_GALLERY) {\n onLaunchGallerySelection();\n } else {\n gotToListing();\n }\n }\n // Otherwise, display an alert dialog indicating that the sample needs those permissions\n else {\n final AlertDialog.Builder objAlertBuilder = new AlertDialog.Builder(HomeActivity.this, R.style.PopupTheme);\n objAlertBuilder.setTitle(R.string.about_permission)\n .setMessage(R.string.dokmee_permission)\n .setPositiveButton(R.string.ok, null)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .show();\n }\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n\n // Checking run time permission status\n if(requestCode == AllKeys.REQUEST_PERMISSION){\n\n // When all required permission is granted\n if (hasPermissions(this, permissions)){\n // Permission is granted so we can retrieve call list\n getCallList();\n }else{\n Toast.makeText(getApplicationContext(),this.getResources().getString(R.string.permission_denied),Toast.LENGTH_SHORT).show();\n }\n }\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n }",
"private void checkAndRequestForPermission() {\n if(ContextCompat.checkSelfPermission(RegisterActivity.this, Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED){\n if(ActivityCompat.shouldShowRequestPermissionRationale(RegisterActivity.this,\n Manifest.permission.READ_EXTERNAL_STORAGE)){\n Toast.makeText(RegisterActivity.this, \"Please accept for required permission\",\n Toast.LENGTH_SHORT).show();\n }\n else{\n ActivityCompat.requestPermissions(RegisterActivity.this,\n new String []{Manifest.permission.READ_EXTERNAL_STORAGE},PReqCode);\n }\n }\n else{\n openGallery();\n }\n }"
] | [
"0.768076",
"0.76588863",
"0.74557644",
"0.7434138",
"0.7414481",
"0.73892576",
"0.70542026",
"0.68936175",
"0.68936175",
"0.68079877",
"0.6803841",
"0.6778087",
"0.6754177",
"0.6754177",
"0.67535526",
"0.6715435",
"0.6711303",
"0.67007023",
"0.6670215",
"0.6610325",
"0.6561252",
"0.65024483",
"0.6443677",
"0.6431345",
"0.6399136",
"0.63799775",
"0.6332302",
"0.6305281",
"0.62875515",
"0.62645936",
"0.6260826",
"0.6159295",
"0.61518306",
"0.61407113",
"0.6137451",
"0.61358935",
"0.6089161",
"0.60651535",
"0.60596424",
"0.6055592",
"0.6055592",
"0.6055592",
"0.603495",
"0.6033812",
"0.6026381",
"0.6019975",
"0.60174197",
"0.60084856",
"0.60029876",
"0.59930855",
"0.59905386",
"0.5972248",
"0.59647906",
"0.59611976",
"0.5954111",
"0.5949534",
"0.5941684",
"0.5927767",
"0.59069437",
"0.58985883",
"0.5892477",
"0.58726346",
"0.58724743",
"0.5863891",
"0.5863158",
"0.58623993",
"0.585041",
"0.5848501",
"0.584581",
"0.58442557",
"0.584128",
"0.582964",
"0.58290046",
"0.5820556",
"0.57948965",
"0.5790174",
"0.57856894",
"0.57696396",
"0.5768515",
"0.57681835",
"0.576066",
"0.57547396",
"0.5749277",
"0.57344836",
"0.5727278",
"0.57182175",
"0.5698418",
"0.5697143",
"0.56907064",
"0.5688747",
"0.5688747",
"0.5688747",
"0.5687692",
"0.56834155",
"0.5682764",
"0.5674195",
"0.5674021",
"0.56730473",
"0.5672978",
"0.5670254",
"0.5663178"
] | 0.0 | -1 |
we want this handler to run immediately after we push the big red button! | public void onSuccess(Object explosion) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic void buttonStatusChange() {\n\t\t\t\n\t\t}",
"public void ipcallButtonPressed() {\n\t\tdialButtonPressed(true) ;\n\t}",
"private void buttonRedMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonRedMouseEntered\n buttonRed.setBackground(new Color(255, 100, 100));\n repaint();\n }",
"public void mo10682b() {\n if (MultiPhotoFrameMainActivity.this._handler != null) {\n MultiPhotoFrameMainActivity.this._handler.post(new Runnable() {\n public void run() {\n C2331d.m10100a((Activity) MultiPhotoFrameMainActivity.this);\n C2331d.m10114a((Activity) MultiPhotoFrameMainActivity.this, C2328a.SaveCompleteDlg, (Bundle) null);\n }\n });\n }\n }",
"private void addHandlerForResetBtn() {\n resetBtn.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent e) {\n try {\n onClickResetBtn();\n } catch (IOException error) {\n System.out.println(\"There is a problem why tring to reset the Game: \" + error + \"\\n\");\n }\n }\n });\n }",
"@Override\r\n\tpublic void onButtonEvent(GlassUpEvent event, int contentId) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}",
"@Override\n public void handle(ActionEvent event) {\n canvasState.changeFillColor(fillercolor.getValue());\n redrawCanvas();\n }",
"public void clickButton()\n {\n fieldChangeNotify( 0 );\n }",
"@Override\n\tprotected void on_button_pressed(String button_name) {\n\n\t}",
"@Override\n\tpublic void postProcessAction(GwtEvent e) {\n\t\t\n\t}",
"public void onButtonAPressed();",
"public void clickonFullyAutomaticFrontLoad() {\n\t\t\n\t}",
"public void trigger() {\n button.release(true);\n }",
"@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n handleAction();\n }",
"private void updateBtnMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_updateBtnMouseExited\n updateBtn.setBackground(Color.decode(\"#4fc482\"));\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t((EventListenerTab) FragmentUtil.getActivity(discoverFragmentTab)).onEventSelected(event, \n\t\t\t\t\t\tholder.imgEvt, holder.txtEvtTitle);\n\t\t\t\tholder.rltLytBtm.setPressed(false);\n\t\t\t}",
"private void eventhandler() {\n\r\n\t}",
"private void doFadeCompleted() {\r\n\t\tif (onStarmapClicked != null) {\r\n\t\t\tonStarmapClicked.invoke();\r\n\t\t}\r\n\t\tdarkness = 0f;\r\n\t}",
"private void reactMain_region_digitalwatch_Display_glowing_GlowOn() {\n\t\tif (sCIButtons.topRightReleased) {\n\t\t\tnextStateIndex = 3;\n\t\t\tstateVector[3] = State.$NullState$;\n\n\t\t\ttimer.setTimer(this, 5, 2 * 1000, false);\n\n\t\t\tnextStateIndex = 3;\n\t\t\tstateVector[3] = State.main_region_digitalwatch_Display_glowing_GlowDelay;\n\t\t}\n\t}",
"abstract void botonJuegoRed_actionPerformed(ActionEvent e);",
"@Override\n public void onClick(View view) {\n if(buttonHandler != null)\n {\n //we send out to our button handler\n buttonHandler.handleEvolve(wid);\n }\n Toast.makeText(getContext(), \"Evolve please!\", Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlp.drawColor = Color.RED;\n\t\t\t}",
"@Override\n\tpublic void preProcessAction(GwtEvent e) {\n\t\t\n\t}",
"@Override\n\t\t\t\t\t\tpublic void onComplete(Bundle values) {\n\t\t\t\t\t\t\tupdateButtonImage();\n\t\t\t\t\t\t}",
"private void addHandlerForQuitBtn() {\n quitBtn.setOnAction((ActionEvent e) -> {\n try {\n onClickQuitBtn();\n } catch (IOException error) {\n System.out.println(\"There is a problem when trying to close the socket: \" + error + \"\\n\");\n }\n });\n }",
"private void execHandlerLost( Message msg ) {\n\t\tshowButtonConnect();\n\t\ttoast_short( mMsgLost );\n\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t}",
"@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}",
"@Override\n\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\tSystem.out.println(\"Btn F gaing\");\t\n\t\t}",
"protected abstract void pressedOKButton( );",
"private void m93355b() {\n this.f64768b.setOnClickListener(new View.OnClickListener() {\n /* class com.zhihu.android.p1480db.fragment.customview.DbEditorSuggestTagCustomView.View$OnClickListenerC182542 */\n\n public void onClick(View view) {\n DbEditorSuggestTagCustomView.this.f64769c = true;\n if (DbEditorSuggestTagCustomView.this.f64772f != null) {\n DbEditorSuggestTagCustomView.this.f64772f.mo88521a();\n }\n }\n });\n }",
"private void onOK() {\n OKDisposalProcess();\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tButtonPress();\n\t}",
"protected void execute() { \t\n// \tboolean toggle=true;\n// \tboolean grab = false;\n// \tif(toggle&&button.get()) {//execute once per button push\n// \t\ttoggle=false;//prevents code from being called again until button is released and pressed again\n// \t\tif(grab){\n// \t\t\tgrab=false;\n// \t\t\tclaw.open();\n// \t\t}else {\n// \t\t\tgrab=true;\n// \t\t\tclaw.close();\n// \t\t}\n// \t}else if(!button.get()) {\n// \t\ttoggle=true;//button has been released\n// \t}\n \tclaw.open();\n }",
"@Override\n\tprotected void OnClick() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tCursurIndex = 5;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t\tClickOK();\n\t\t\t}",
"private void addRcmButtonHandler() {\n\t\tTitledBorder border = new TitledBorder(\" ADD RCM\");\n\t\tborder.setTitleFont(new Font(\"TimesNewRoman\", Font.BOLD, 12));\n\t\tdisplayPanel.setBorder(border);\n\t\t\n\t\tdisplayPanel.removeAll();\n\t\tdisplayPanel.add(new AddRcmPanel(rmos, rmosManager, statusManager));\n\t\tdisplayPanel.revalidate();\n\t\tdisplayPanel.repaint();\n\t}",
"@Override\r\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t}",
"public void run() {\n mEmoteButton.setBackgroundResource(R.drawable.button_yellow);\n mIsEmotePlayable = true;\n\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlp.drawColor = Color.BLACK;\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tClickOK();\n\t\t\t\tCursurIndex = 3;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t}",
"@Override\n public void askForTagBackGrenade() throws RemoteException {\n mainPage.setRemoteController(senderRemoteController);\n mainPage.setMatch(match);\n Platform.runLater(\n () -> {\n try {\n mainPage.askForTagBackPopup();\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n }",
"@Override\n\t\tpublic void focusLost(FocusEvent arg0) {\n\t\t\tSystem.out.println(\"Btn F OUTT\");\t\t\n\t\t}",
"@Override\n\tpublic void handle(ActionEvent event) {\n\t\t\n\t}",
"@Override public void handle(ActionEvent e) {\n\t\t GuiRegister.initialize();\n\t\t GuiMemory.initialize();\n\t\t GuiStatusBit.initialize();\n\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlp.drawColor = Color.BLUE;\n\t\t\t}",
"public void actionPerformed( ActionEvent e )\n {\n if (e.getSource() == theButton )\n {\n changeColor();\n }\n }",
"private void updateBtnMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_updateBtnMousePressed\n updateBtn.setBackground(Color.decode(\"#1e5837\"));\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"private void updateBtnMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_updateBtnMouseReleased\n updateBtn.setBackground(Color.decode(\"#4fc482\"));\n }",
"@Override\r\n\tpublic void handle(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tCursurIndex = 3;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t\tClickOK();\n\t\t\t}",
"private void updateBtnMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_updateBtnMouseEntered\n updateBtn.setBackground(Color.decode(\"#339966\"));\n }",
"protected void onPostInitUI() {\n if (hasPositiveButton()) {\n getPositiveButton().addClickHandler(new ClickHandler() {\n\n @Override\n public void onClick(ClickEvent event) {\n onPositiveButtonClicked();\n }\n });\n }\n if (hasNegativeButton()) {\n getNegativeButton().addClickHandler(new ClickHandler() {\n\n @Override\n public void onClick(ClickEvent event) {\n onNegativeButtonClicked();\n }\n });\n }\n }",
"@Override\n public void actionPerformed(ActionEvent ae) {\n hndlr(ae);\n }",
"public void ok() {\n btOK().push();\n }",
"private void searchBtnMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_searchBtnMouseExited\n searchBtn.setBackground(Color.decode(\"#4fc482\"));\n }",
"@Override\n\tpublic void LeftButtonClick() {\n\t\t\n\t}",
"@Override\n\tpublic void onClick(View arg0) {\n\t\thandlertv.postDelayed(changeInputSource_thread, 100); //zjd,20140814. delay to change,wait pip_thread finish\n\t}",
"@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\tSystem.out.println(\"mousePressed\");\n\t\tbtnNewButton.setIcon(new ImageIcon(\"./res/img/startlogo.png\"));\n\t\tjsr.startCaptureAudio(); // 오디오 캡쳐 시작\n\n\t}",
"public void actionPerformed(ActionEvent e)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t\tcatch_up_thread.runCatchUp();\r\n\t\t\t}",
"@Override\n\tpublic void RightButtonClick() {\n\t\t\n\t}",
"@Override\n\tpublic void RightButtonClick() {\n\t\t\n\t}",
"public void onButtonWasPushed(int slot) {\n onCommands[slot].execute();\n unDoCommand = onCommands[slot];\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"public synchronized void mo41773b() {\n if (this.f39856b != null) {\n new Handler(Looper.getMainLooper()).post(new C12949w(this));\n }\n }",
"public void handleAlert(EventObject alert)\n {\n boolean enable = (frame.getBackgroundImage() == null)\n ? MenuUtil.DISABLED\n : MenuUtil.ENABLED;\n\n // Enable or disabled the remove background menu item\n setEnabled(CogToolLID.RemoveBackgroundImage,\n ListenerIdentifierMap.ALL,\n enable);\n\n // Enable or disabled the capture background button\n view.setIsBackgroundAvailable(enable);\n }",
"public void mousePressed() {\n\t\tint loc = mouseX + mouseY * width;\n\t\ttrackColor = pixels[loc];\n\t\tflock.killAll();\n\n\t\t//settingsW.settingsWindow.redraw();\n\t\t\n\t\tprintln(\"trackColor=\" + (red(trackColor)) + \",\" + (green(trackColor))\n\t\t\t\t+ \",\" + (blue(trackColor)));\n\t}",
"@Override\n\tpublic void handle(ActionEvent event) {\n\n\t}",
"public void postActionEvent() {\n fireActionPerformed();\n }",
"@Override public void handle(ActionEvent e)\n\t {\n\t }",
"@Override\n public void mousePressed(MouseEvent e){\n String boton = W.detClick( e.getButton() );\n \n //System.out.println(\"->Mouse: Presionando Click \" + boton );\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void click() {\n\t\tSystem.out.println(\"LinuxButton Click\");\r\n\t}",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}",
"private void handleMouseExit(MouseEvent mouseEvent) {\n if (simulator.isEditable()) {\n setColor();\n }\n }",
"private void addBtnMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_addBtnMouseExited\n addBtn.setBackground(Color.decode(\"#4fc482\"));\n }",
"protected void doBridgeClick() {\r\n\t\tuiSound.playSound(\"Bridge\");\r\n\t\tif (onBridgeClicked != null) {\r\n\t\t\tonBridgeClicked.invoke();\r\n\t\t}\r\n\t}",
"@Override\n public void done() {\n Toolkit.getDefaultToolkit().beep();\n //release_plan_btn.setEnabled(true);\n setCursor(null); //turn off the wait cursor\n JOptionPane.showMessageDialog(null, \"Plan released !\\n\");\n\n }",
"private void devBtnActionPerformed(ActionEvent evt) {\n }",
"public void mousePressed(MouseEvent me) {\n\t\t\tfigure.setBackgroundColor(ColorConstants.yellow);\n\t\t}",
"public static void scheduleButtonListener(ActionEvent evt){\r\n MyButton button = (MyButton) evt.getSource();\r\n button.switchChosen();\r\n if(button.isChosen()){\r\n checkCollisions(button);\r\n }\r\n setButtonsColor();\r\n }",
"private void manageRcmButtonHandler() {\n\t\tTitledBorder border = new TitledBorder(\" MANAGE RCM\");\n\t\tborder.setTitleFont(new Font(\"TimesNewRoman\", Font.BOLD, 12));\n\t\tdisplayPanel.setBorder(border);\n\t\t\n\t\tdisplayPanel.removeAll();\n\t\tdisplayPanel.add(new ManageRcmPanel(rmos, rmosManager, statusManager, uservice, rservice));\n\t\tdisplayPanel.revalidate();\n\t\tdisplayPanel.repaint();\n\t}",
"@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\tcheckForTriggerEvent(e);\n\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\tadaptee.botonJuegoRed_actionPerformed(e);\n\t}",
"@Override\r\n \t\tpublic void actionPerformed(ActionEvent e) {\n \t\t}",
"@Override\r\n public void mousePressed(MouseEvent e) {\n setBackground(Color.BLUE);\r\n \r\n \r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\tpublic void CountDownFinish() {\n\t\tcheckButtonsEnable();\n\t}",
"public void mouseClicked(MouseEvent e) {\n\t\tthis.setColor(colorHolder.getColor());\n\t}",
"public void mo10681a() {\n if (MultiPhotoFrameMainActivity.this._handler != null) {\n MultiPhotoFrameMainActivity.this._handler.post(new Runnable() {\n public void run() {\n C2331d.m10114a((Activity) MultiPhotoFrameMainActivity.this, C2328a.WAIT_PROCESSING, (Bundle) null);\n }\n });\n }\n }",
"private void onButtonErrorClick() {\n mNavigationCallback.goToStepRqst(NavigationCallback.RegistrationSteps.MARKET_SELECTION);\n }",
"private void clearBtnMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_clearBtnMouseExited\n clearBtn.setBackground(Color.decode(\"#4fc482\"));\n }"
] | [
"0.6219446",
"0.6135543",
"0.612683",
"0.61046976",
"0.60516685",
"0.604715",
"0.600963",
"0.5968948",
"0.59369135",
"0.59091145",
"0.5903942",
"0.5894552",
"0.5886917",
"0.5884559",
"0.5881495",
"0.5879613",
"0.5866054",
"0.58572906",
"0.5854205",
"0.58490545",
"0.58383805",
"0.5829547",
"0.58197105",
"0.58197105",
"0.5813119",
"0.5804683",
"0.5804311",
"0.5796129",
"0.5787294",
"0.57801753",
"0.5772485",
"0.5772389",
"0.57628983",
"0.57550925",
"0.5753909",
"0.57478577",
"0.5747317",
"0.5733366",
"0.5723863",
"0.57237756",
"0.5721913",
"0.5718564",
"0.57108605",
"0.5709386",
"0.57087404",
"0.5702317",
"0.5696154",
"0.56954163",
"0.5694605",
"0.5692022",
"0.5685941",
"0.5675307",
"0.56688434",
"0.5662659",
"0.56555706",
"0.56555384",
"0.56547767",
"0.56512845",
"0.5648816",
"0.56479263",
"0.564754",
"0.5646981",
"0.5644147",
"0.56181794",
"0.5612453",
"0.5612453",
"0.5610764",
"0.5609294",
"0.560607",
"0.5600549",
"0.5599554",
"0.5598476",
"0.5594649",
"0.5591514",
"0.5590461",
"0.5585803",
"0.5585803",
"0.5585803",
"0.5585142",
"0.5580552",
"0.5578835",
"0.5578143",
"0.5574396",
"0.55720115",
"0.55663866",
"0.55634373",
"0.55611104",
"0.5558942",
"0.55577606",
"0.5556771",
"0.55389154",
"0.5537968",
"0.5531076",
"0.5531076",
"0.5531076",
"0.5531076",
"0.5530021",
"0.5527777",
"0.5526534",
"0.5521685",
"0.55210793"
] | 0.0 | -1 |
Convenience function to download a web page's text from a given URL. | private String downloadURL(String url) {
try {
HttpClient client = new DefaultHttpClient();
HttpGet request = new HttpGet(url);
// Get the response
ResponseHandler<String> responseHandler = new BasicResponseHandler();
String response_str = client.execute(request, responseHandler);
return response_str;
// Makes sure that the InputStream is closed after the app is
// finished using it.
} catch (IOException e) {
Log.d("WL", "Error");
e.printStackTrace();
return "Error";
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String downloadContent(String url) throws IOException {\n URL website = new URL(url);\n URLConnection connection = website.openConnection();\n BufferedReader in = new BufferedReader(\n new InputStreamReader(\n connection.getInputStream()));\n\n StringBuilder response = new StringBuilder();\n String inputLine;\n\n while ((inputLine = in.readLine()) != null)\n response.append(inputLine);\n\n in.close();\n\n return response.toString();\n }",
"public String downloadText(String URL){\n\t \tdownloadInProgress = 1;\n \t\t int BUFFER_SIZE = 2000;\n\t InputStream in = null;\n\t String str = \"\";\n\t try {\n\t in = Obj_Downloader.OpenHttpConnection(URL);\n\t InputStreamReader isr = new InputStreamReader(in);\n\t int charRead;\n\t char[] inputBuffer = new char[BUFFER_SIZE]; \n\t try{\n\t \twhile ((charRead = isr.read(inputBuffer))>0){ \n\t //---convert the chars to a String---\n\t String readString = String.copyValueOf(inputBuffer, 0, charRead); \n\t str += readString;\n\t inputBuffer = new char[BUFFER_SIZE];\n\t }\n\t in.close();\n\t }catch(IOException e){\n\t \t\t\t Log.i(\"ZZ\", \"AppDelegate:downloadText: ERROR - 1: \" + e.getMessage()); \n\t \tstr = \"\";\n\t }\n\t }catch (Exception je){\n\t\t\t Log.i(\"ZZ\", \"AppDelegate:downloadText: ERROR - 2: \" + je.getMessage()); \n\t\t } \n\t downloadInProgress = 0;\n\t return str; \n\t }",
"public static String getText(String url)\n {\n try {\n\t URL website = new URL(url);\n\t URLConnection connection = website.openConnection();\n\t BufferedReader in = new BufferedReader(\n\t new InputStreamReader(\n\t connection.getInputStream()));\n\t\n\t StringBuilder response = new StringBuilder();\n\t String inputLine = \"\";\n\t while ((inputLine = in.readLine()) != null) \n\t \tresponse.append(inputLine);\n\n\t\t\tin.close();\n\t\t\t\n\t return response.toString();\n\t\t} catch (IOException e) {\n\t\t\tDebug.Error(e.getMessage());\n\t\t}\n return \"\";\n }",
"String wget(String url);",
"private String getText(URL url){\n\tString parsedHtml=null;\n\ttry{\n\t\tHttpURLConnection urlConn = (HttpURLConnection) url.openConnection();\n\t\tString line = null;\n\t\tStringBuilder tmp = new StringBuilder();\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));\n\t\twhile ((line = in.readLine()) != null) {\n\t\t tmp.append(line);\n\t\t}\n\t\t \n\t\tDocument doc = Jsoup.parse(tmp.toString());\n\t\tparsedHtml = doc.title() + doc.body().text();\n\t\t\n\t}\n\tcatch(IOException e){\n\t\tSystem.out.println(\"Page not reached for: \"+url );\n\t}\n\tfinally{\n\t\treturn parsedHtml;\n\t}\n\t\n}",
"private String downloadFile(String url) throws Exception {\n StringBuilder builder = new StringBuilder();\n \n URL u = new URL(url);\n URLConnection conn = u.openConnection();\n BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n String line;\n while ((line = rd.readLine()) != null) {\n builder.append(line);\n }\n \n return builder.toString();\n }",
"public static DownloadResponse Download(String url)\n\t\t\tthrows MalformedURLException, IOException {\n\t\tStringBuffer response = new StringBuffer();\n\n\t\tHttpURLConnection con = (HttpURLConnection) (new URL(url))\n\t\t\t\t.openConnection();\n\n\t\t// optional default is GET\n\t\tcon.setRequestMethod(\"GET\");\n\n\t\t// add request header. Required. Otherwise would lead to 404 Error,\n\t\tcon.setRequestProperty(\"X-Requested-With\", \"XMLHttpRequest\");\n\n\t\tint responseCode = con.getResponseCode();\n\t\tif (responseCode != 200)\n\t\t\tthrow new IllegalStateException(\"Response Code: \" + responseCode);\n\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\tcon.getInputStream()));\n\n\t\tString inputLine;\n\n\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\tresponse.append(inputLine + \"\\n\");\n\t\t}\n\t\tin.close();\n\t\t\t\t\n\t\tDownloadResponse r = new DownloadResponse();\n\t\tr.setHtml(response.toString());\n\t\tr.setUrl(con.getURL().toString());\n\n\t\treturn r;\n\t}",
"private String downloadUrl(String myurl) throws IOException {\n InputStream is = null;\n // Only display the first 500 characters of the retrieved\n // web page content.\n int len = 500;\n\n try {\n URL url = new URL(myurl);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setReadTimeout(10000); /* milliseconds */\n conn.setConnectTimeout(15000);/* milliseconds */\n conn.setRequestMethod(\"GET\");\n conn.setDoInput(true);\n // Starts the query\n conn.connect();\n int response = conn.getResponseCode();\n Log.d(\"network\", \"The response is: \" + response);\n is = conn.getInputStream();\n\n // Convert the InputStream into a string\n String contentAsString = convertStreamToString(is);\n return contentAsString;\n\n // Makes sure that the InputStream is closed after the app is\n // finished using it.\n } finally {\n if (is != null) {\n is.close();\n }\n }\n }",
"private String downloadURL(String myurl) {\n\t\ttry {\n\t\t\tHttpClient client = new DefaultHttpClient();\n\t\t\tHttpGet request = new HttpGet(myurl);\n\t\t\t// Get the response\n\t\t\tResponseHandler<String> responseHandler = new BasicResponseHandler();\n\t\t\tString response_str = client.execute(request, responseHandler);\n\t\t\treturn response_str;\n\n\t\t\t// Makes sure that the InputStream is closed after the app is\n\t\t\t// finished using it.\n\t\t} catch (IOException e) {\n\t\t\tLog.d(\"WL\", \"Error\");\n\t\t\treturn \"Error\";\n\t\t}\n\t}",
"private String getUrlContents(String theUrl) {\n StringBuilder content = new StringBuilder();\n try {\n URL url = new URL(theUrl);\n URLConnection urlConnection = url.openConnection();\n //reads the response\n BufferedReader br = new BufferedReader(new InputStreamReader(urlConnection.getInputStream()), 8);\n String line;\n while ((line = br.readLine()) != null) {\n content.append(line + \"\\n\");\n }\n br.close();\n }catch (Exception e) {\n //error occured, usually network related\n e.printStackTrace();\n }\n return content.toString();\n }",
"private String downloadUrl(String strUrl) throws IOException{\n String data = \"\";\n InputStream iStream = null;\n HttpURLConnection urlConnection = null;\n try{\n URL url = new URL(strUrl);\n\n // Creating an http connection to communicate with url\n urlConnection = (HttpURLConnection) url.openConnection();\n\n // Connecting to url\n urlConnection.connect();\n\n // Reading data from url\n iStream = urlConnection.getInputStream();\n\n BufferedReader br = new BufferedReader(new InputStreamReader(iStream));\n\n StringBuffer sb = new StringBuffer();\n\n String line = \"\";\n while( ( line = br.readLine()) != null){\n sb.append(line);\n }\n\n data = sb.toString();\n\n br.close();\n\n }catch(Exception e){\n e.printStackTrace();\n }finally{\n iStream.close();\n urlConnection.disconnect();\n }\n return data;\n }",
"String download(String path) throws IOException;",
"public String sendGet(String url)\n\t{\n\t\t//Getting most relevant user-agent from robots.txt\n\t\tbest_match = findBestMatch();\n\t\t//Deicing whether or not to skip\n\t\tif (shouldSkip(url))\n\t\t{\n\t\t\treturn \"skipped\";\n\t\t}\n\t\tif (url.startsWith((\"https\")))\n\t\t{\n\t\t\treturn sendGetSecure(url);\n\t\t}\n\t\ttry \n\t\t{\n\t\t\t//Creating URL objects\n\t\t\tURL http_url = new URL(url);\n\t\t\t//Delaying visit if directed to by robots.txt\n\t\t\tcrawlDelay();\n\t\t\tHttpURLConnection secure_connection = (HttpURLConnection)http_url.openConnection();\n\t\t\t//Setting request method\n\t\t\tsecure_connection.setRequestMethod(\"GET\");\n\t\t\t//Sending all headers except for host (since URLConnection will take care of this)\n\t\t\tfor (String h: headers.keySet())\n\t\t\t{\n\t\t\t\tif (!h.equals(\"Host\"))\n\t\t\t\t{\n\t\t\t\t\tsecure_connection.setRequestProperty(h, headers.get(h));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Getting ResponseParser object to read in page content\n\t\t\tp = new ResponseParser(new BufferedReader(new InputStreamReader(secure_connection.getInputStream())));\n\t\t\t\n\t\t\t//Parsing all response headers from returned object\n\t\t\tMap<String,String> p_headers = p.getHeaders();\n\t\t\tMap<String, List<String>> response_headers = secure_connection.getHeaderFields();\n\t\t\tfor (Map.Entry<String, List<String>> entry : response_headers.entrySet()) \n\t\t\t{\n\t\t\t\tif (entry.getKey() == null)\n\t\t\t\t{\n\t\t\t\t\tp.setResponse(entry.getValue().get(0));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tp_headers.put(entry.getKey(),entry.getValue().get(0));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//If we didn't get any headers in the response, the URL was invalid\n\t\t\tif (p.getHeaders().size() == 0)\n\t\t\t{\n\t\t\t\treturn (\"invalid url\");\n\t\t\t}\n\t\t\t\n\t\t\t//Otherwise return the contents of the returned document\n\t\t\treturn p.getData();\n\t\t\t\n\t\t} \n\t\tcatch (IOException | IllegalArgumentException e) \n\t\t{\n\t\t\treturn \"invalid url\";\n\t\t}\t\t\n//\t\ttry\n//\t\t{\n//\t\t\t//Deals with secure request\n//\t\t\tif (url.startsWith((\"https\")))\n//\t\t\t{\n//\t\t\t\treturn sendGetSecure(url);\n//\t\t\t}\n//\t\t\t//Parsing host and port from URL\n//\t\t\tURLInfo url_info = new URLInfo(url);\n//\t\t\thost = url_info.getHostName();\n//\t\t\tport = url_info.getPortNo();\n//\t\t\t\n//\t\t\t//Changing Host header if necessary\n//\t\t\theaders.put(\"Host\", host + \":\" + port);\n//\t\t\t\n//\t\t\t//Getting file path of URL\n//\t\t\tString file_path = url_info.getFilePath();\n//\t\t\t\n//\t\t\t//If we weren't able to find a host, URL is invalid\n//\t\t\tif (host == null)\n//\t\t\t{\n//\t\t\t\treturn \"invalid url\";\n//\t\t\t}\n//\t\t\t\n//\t\t\t//Delaying visits based on robots.txt crawl delay\n//\t\t\tcrawlDelay();\n//\t\t\t\n//\t\t\t//Otherwise, opening up socket and sending request with all headers\n//\t\t\tsocket = new Socket(host, port);\n//\t\t\tout = new PrintWriter(socket.getOutputStream(), true);\n//\t\t\tString message = \"GET \" + file_path + \" HTTP/1.1\\r\\n\";\n//\t\t\tfor (String header: headers.keySet())\n//\t\t\t{\n//\t\t\t\tString head = header + \": \" + headers.get(header) + \"\\r\\n\";\n//\t\t\t\tmessage = message + head;\n//\t\t\t}\n//\t\t\tout.println(message);\n//\n//\t\t\t//Creating ResponseParser object to parse the Response\n//\t\t\tp = new ResponseParser(socket);\n//\t\t\t\n//\t\t\t//If we didn't get any headers in the response, the URL was invalid\n//\t\t\tif (p.getHeaders().size() == 0)\n//\t\t\t{\n//\t\t\t\treturn (\"invalid url\");\n//\t\t\t}\n//\t\t\t//Otherwise return the contents of the returned document\n//\t\t\treturn p.getData();\n//\t\t} \n//\t\tcatch (UnknownHostException e) \n//\t\t{\n//\t\t\tSystem.err.println(\"Unknown Host Exception\");\n//\t\t\tSystem.err.println(\"Problem url is: http://www.youtube.com/motherboardtv?feature=watch&trk_source=motherboard\");\n//\t\t} \n//\t\tcatch (IOException | IllegalArgumentException e) \n//\t\t{\n//\t\t\tSystem.err.println(\"IO Exception\");;\n//\t\t}\n//\t\t//Return null for all caught exceptions (Servlet will deal with this)\n//\t\treturn null;\n\t}",
"private String readHTML(URL url) {\n String urlContents = \"\";\n\n try {\n BufferedReader bufferedReader =\n new BufferedReader(new InputStreamReader(url.openStream()));\n StringBuilder stringBuilder = new StringBuilder();\n\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n stringBuilder.append(line).append(\"\\n\");\n }\n\n urlContents = stringBuilder.toString();\n bufferedReader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return urlContents;\n }",
"private static String downloadUrl(String downloadUrl) throws IOException {\n URL url = new URL(downloadUrl);\n\n HttpURLConnection httpURLConnection= (HttpURLConnection) url.openConnection();\n httpURLConnection.connect();\n\n InputStream urlInputStream = httpURLConnection.getInputStream();\n BufferedReader museumDataReader = new BufferedReader(new InputStreamReader(urlInputStream));\n\n StringBuilder museumDataBuilder = new StringBuilder();\n String line = \"\";\n \n while( (line = museumDataReader.readLine()) != null ) {\n museumDataBuilder.append(line);\n }\n\n String museumData = museumDataBuilder.toString();\n museumDataReader.close();\n\n return museumData;\n }",
"public Html downloadHtml(String url){\n\n HtmlRequest htmlRequest = new HtmlRequest(url);\n Byte[] rawHtml = transporter.send(htmlRequest.getAddress(),\n htmlRequest.getContext().getBytes());\n return new Html(rawHtml);\n }",
"private String downloadUrl(String strUrl) throws IOException {\n // Khoi tao du lieu tra ve\n String data = \"\";\n InputStream iStream = null;\n HttpURLConnection urlConnection = null;\n try {\n // Khoi tao url\n URL url = new URL(strUrl);\n // Mo ket noi url\n urlConnection = (HttpURLConnection) url.openConnection();\n // Ket noi url\n urlConnection.connect();\n // Lay ket qua tra ve\n iStream = urlConnection.getInputStream();\n // Doc ket qua tra ve\n BufferedReader br = new BufferedReader(new InputStreamReader(iStream));\n // Khoi tao buffer luu ket qua tra ve\n StringBuffer sb = new StringBuffer();\n // Doc tung dong tra ve\n String line = \"\";\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n // Luu du lieu sau khi doc\n data = sb.toString();\n // Dong buffer\n br.close();\n } catch (Exception e) {\n // Neu bi loi thi log ra loi\n e.printStackTrace();\n } finally {\n // Dong stream va ket noi url\n iStream.close();\n urlConnection.disconnect();\n }\n return data;\n }",
"private String downloadUrl(String strUrl) throws IOException{\n String data = \"\";\n InputStream iStream = null;\n HttpURLConnection urlConnection = null;\n try{\n URL url = new URL(strUrl);\n\n // Creating an http connection to communicate with url\n urlConnection = (HttpURLConnection) url.openConnection();\n\n // Connecting to url\n urlConnection.connect();\n\n // Reading data from url\n iStream = urlConnection.getInputStream();\n\n BufferedReader br = new BufferedReader(new InputStreamReader(iStream));\n\n StringBuffer sb = new StringBuffer();\n\n String line = \"\";\n while( ( line = br.readLine()) != null){\n sb.append(line);\n }\n\n data = sb.toString();\n\n br.close();\n\n }catch(Exception e){\n System.out.println(\"Exception while downloading url \"+e.toString());\n }finally{\n iStream.close();\n urlConnection.disconnect();\n }\n return data;\n }",
"private String getContentStringFromURL(URL url) {\n\n HttpURLConnection con = null;\n //Versuch der Verbindung\n try {\n con = (HttpURLConnection) url.openConnection();\n\n\n // Optional\n con.setRequestMethod(\"GET\");\n\n // HTTP-Status-Code\n int responseCode = con.getResponseCode();\n //System.out.println(\"\\nSending 'GET' request to URL : \" + url);\n //System.out.println(\"Response Code : \" + responseCode);\n\n BufferedReader in = new BufferedReader(\n new InputStreamReader(con.getInputStream()));\n String inputLine;\n StringBuffer response = new StringBuffer();\n\n //Einlesen der Antwort\n while ((inputLine = in.readLine()) != null) {\n response.append(inputLine);\n }\n in.close();\n\n //Antwort wird in einen String gewandelt und zurück geliefert\n return response.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }",
"private String downloadUrl(String strUrl) throws IOException{\r\n String data = \"\";\r\n InputStream iStream = null;\r\n HttpURLConnection urlConnection = null;\r\n try{\r\n URL url = new URL(strUrl);\r\n\r\n // Creating an http connection to communicate with url\r\n urlConnection = (HttpURLConnection) url.openConnection();\r\n\r\n // Connecting to url\r\n urlConnection.connect();\r\n\r\n // Reading data from url\r\n iStream = urlConnection.getInputStream();\r\n\r\n BufferedReader br = new BufferedReader(new InputStreamReader(iStream));\r\n\r\n StringBuffer sb = new StringBuffer();\r\n\r\n String line = \"\";\r\n while( ( line = br.readLine()) != null){\r\n sb.append(line);\r\n }\r\n\r\n data = sb.toString();\r\n\r\n br.close();\r\n\r\n }catch(Exception e){\r\n Log.d(\"Exception:downloading\", e.toString());\r\n }finally{\r\n iStream.close();\r\n urlConnection.disconnect();\r\n }\r\n return data;\r\n }",
"private String downloadUrl(String strUrl) throws IOException\n\t{\n\t\tString data = \"\";\n\t\tInputStream iStream = null;\n\t\tHttpURLConnection urlConnection = null;\n\t\ttry\n\t\t{\n\t\t\tURL url = new URL(strUrl);\n\n\t\t\t// Creating an http connection to communicate with url\n\t\t\turlConnection = (HttpURLConnection) url.openConnection();\n\n\t\t\t// Connecting to url\n\t\t\turlConnection.connect();\n\n\t\t\t// Reading data from url\n\t\t\tiStream = urlConnection.getInputStream();\n\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(iStream));\n\n\t\t\tStringBuffer sb = new StringBuffer();\n\n\t\t\tString line = \"\";\n\t\t\twhile ((line = br.readLine()) != null)\n\t\t\t{\n\t\t\t\tsb.append(line);\n\t\t\t}\n\n\t\t\tdata = sb.toString();\n\n\t\t\tbr.close();\n\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tLog.d(\"Exception while downloading url\", e.toString());\n\t\t} finally\n\t\t{\n\t\t\tiStream.close();\n\t\t\turlConnection.disconnect();\n\t\t}\n\t\treturn data;\n\t}",
"private String downloadUrl(String strUrl) throws IOException {\n\t\tString data = \"\";\n\t\tInputStream iStream = null;\n\t\tHttpURLConnection urlConnection = null;\n\t\ttry {\n\t\t\tURL url = new URL(strUrl);\n\n\t\t\t// Creating an http connection to communicate with url\n\t\t\turlConnection = (HttpURLConnection) url.openConnection();\n\n\t\t\t// Connecting to url\n\t\t\turlConnection.connect();\n\n\t\t\t// Reading data from url\n\t\t\tiStream = urlConnection.getInputStream();\n\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tiStream));\n\n\t\t\tStringBuffer sb = new StringBuffer();\n\n\t\t\tString line = \"\";\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tsb.append(line);\n\t\t\t}\n\n\t\t\tdata = sb.toString();\n\n\t\t\tbr.close();\n\n\t\t} catch (Exception e) {\n\t\t\tLog.d(\"Exception while downloading url\", e.toString());\n\t\t} finally {\n\t\t\tiStream.close();\n\t\t\turlConnection.disconnect();\n\t\t}\n\t\treturn data;\n\t}",
"private String downloadUrl(String strUrl) throws IOException {\n String data = \"\";\n InputStream iStream = null;\n HttpURLConnection urlConnection = null;\n try {\n URL url = new URL(strUrl);\n\n // Creating an http connection to communicate with url\n urlConnection = (HttpURLConnection) url.openConnection();\n\n // Connecting to url\n urlConnection.connect();\n\n // Reading data from url\n iStream = urlConnection.getInputStream();\n\n BufferedReader br = new BufferedReader(new InputStreamReader(iStream));\n\n StringBuffer sb = new StringBuffer();\n\n String line = \"\";\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n\n data = sb.toString();\n\n br.close();\n\n } catch (Exception e) {\n //Log.d(\"Exception while downloading url\", e.toString());\n } finally {\n iStream.close();\n urlConnection.disconnect();\n }\n return data;\n }",
"private String downloadUrl(String strUrl) throws IOException {\n String data = \"\";\n InputStream iStream = null;\n HttpURLConnection urlConnection = null;\n try {\n URL url = new URL(strUrl);\n\n\n // Creating an http connection to communicate with url\n urlConnection = (HttpURLConnection) url.openConnection();\n\n // Connecting to url\n urlConnection.connect();\n\n // Reading data from url\n iStream = urlConnection.getInputStream();\n\n BufferedReader br = new BufferedReader(new InputStreamReader(iStream));\n\n StringBuffer sb = new StringBuffer();\n\n String line = \"\";\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n\n data = sb.toString();\n\n br.close();\n\n } catch (Exception e) {\n //Log.d(\"Exception while downloading url\", e.toString());\n } finally {\n iStream.close();\n urlConnection.disconnect();\n }\n\n return data;\n }",
"public static String getContentOfHttpsPage(URL url) throws IOException {\n\t\t\n\t\t//Create Content String Builder\n\t\tStringBuilder contentStringBuilder = new StringBuilder();\n\t\t\n\t\t//Create Connection\n\t\tHttpsURLConnection httpsURLConnection = (HttpsURLConnection) url.openConnection();\n\t\t\n\t\t\n\t\t//Initialize Readers\n\t\tBufferedReader inputStreamBufferedReader = new BufferedReader(new InputStreamReader(httpsURLConnection.getInputStream(), \"UTF-8\"));\n\t\t\n\t\tString lineOfInputStream; \n\t\t\n\t\t/*\n\t\t * Read Content of Page\n\t\t */\n\t\twhile((lineOfInputStream=inputStreamBufferedReader.readLine())!=null) {\n\t\t\tcontentStringBuilder.append(lineOfInputStream);\n\t\t}\n\t\t\n\t\treturn contentStringBuilder.toString();\t\t\n\t}",
"private String downloadUrl(String strUrl) throws IOException {\n String data = \"\";\n InputStream iStream = null;\n HttpURLConnection urlConnection = null;\n try{\n URL url = new URL(strUrl);\n\n // Creating an http connection to communicate with url\n urlConnection = (HttpURLConnection) url.openConnection();\n\n // Connecting to url\n urlConnection.connect();\n\n // Reading data from url\n iStream = urlConnection.getInputStream();\n\n BufferedReader br = new BufferedReader(new InputStreamReader(iStream));\n\n StringBuffer sb = new StringBuffer();\n\n String line = \"\";\n while( ( line = br.readLine()) != null){\n sb.append(line);\n }\n\n data = sb.toString();\n\n br.close();\n\n }catch(Exception e){\n //Log.d(\"Exception while downloading url\", e.toString());\n }finally{\n iStream.close();\n urlConnection.disconnect();\n }\n return data;\n }",
"static Page Download(){\n // TODO: reference to fetch to download webpages\n WebURL url = queue.poll();\n // call http request to get the web page\n return null;\n }",
"public static String getUrlContents(URL url) throws IOException {\n\t\tURLConnection cnx = url.openConnection();\n\t\tScanner s = new Scanner(cnx.getInputStream());\n\t\tString ret = s.useDelimiter(\"\\\\A\").next();\n\t\ts.close();\n\t\treturn ret;\n\t}",
"@SuppressLint(\"LongLogTag\")\n private String downloadUrl(String strUrl) throws IOException {\n String data = \"\";\n InputStream iStream = null;\n HttpURLConnection urlConnection = null;\n try {\n URL url = new URL(strUrl);\n\n // Creating an http connection to communicate with url\n urlConnection = (HttpURLConnection) url.openConnection();\n\n // Connecting to url\n urlConnection.connect();\n\n // Reading data from url\n iStream = urlConnection.getInputStream();\n\n BufferedReader br = new BufferedReader(new InputStreamReader(iStream));\n\n StringBuffer sb = new StringBuffer();\n\n String line = \"\";\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n\n data = sb.toString();\n\n br.close();\n\n } catch (Exception e) {\n Toast.makeText(getActivity(), \"Exception while downloading url\" + e.toString(), Toast.LENGTH_SHORT).show();\n Log.d(\"Exception while downloading url\", e.toString());\n } finally {\n iStream.close();\n urlConnection.disconnect();\n }\n\n return data;\n }",
"private String downloadUrl(String strUrl) throws IOException{\r\n\t String data = \"\";\r\n\t InputStream iStream = null;\r\n\t HttpURLConnection urlConnection = null;\r\n\t try{\r\n\t URL url = new URL(strUrl);\r\n\t \r\n\t // Creating an http connection to communicate with url\r\n\t urlConnection = (HttpURLConnection) url.openConnection();\r\n\t \r\n\t // Connecting to url\r\n\t urlConnection.connect();\r\n\t \r\n\t // Reading data from url\r\n\t iStream = urlConnection.getInputStream();\r\n\t \r\n\t BufferedReader br = new BufferedReader(new InputStreamReader(iStream));\r\n\t \r\n\t StringBuffer sb = new StringBuffer();\r\n\t \r\n\t String line = \"\";\r\n\t while( ( line = br.readLine()) != null){\r\n\t sb.append(line);\r\n\t }\r\n\t \r\n\t data = sb.toString();\r\n\t \r\n\t br.close();\r\n\t \r\n\t }catch(Exception e){\r\n\t Log.d(\"Exception while downloading url\", e.toString());\r\n\t }finally{\r\n\t iStream.close();\r\n\t urlConnection.disconnect();\r\n\t }\r\n\t return data;\r\n\t }",
"public static String getPage(String surl){\n\r\n\t\t\r\n\t\tString sPage=\"\";\r\n\t\t\r\n\t\tURLConnection connection = null;\t\t\r\n\t\t// Zerlegt einen String und fügt jeweils ein Zeilenende ein\r\n\t\ttry {\t\t\t\r\n\t\t\tURL urlpage=new URL(surl);\t\t\t\r\n\t\t\tconnection = urlpage.openConnection();\r\n\t\t\t//connection = urlpage.openConnection(proxy);\r\n\t\t\tconnection.setDoOutput(true);\t\t\t\r\n BufferedReader rd = new BufferedReader(new InputStreamReader(connection.getInputStream()));\r\n\t\t\t \r\n\t\t\t String line = null;\r\n\t\t\t \r\n\t\t\t while ((line = rd.readLine()) != null) {\r\n\t\t\t\t sPage+=line+System.getProperty(\"line.separator\");\r\n\t\t\t\t} \t\t\r\n\t\t\t \r\n\t\t} catch (ConnectException e) {\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (UnknownHostException e) {\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\t\t\r\n\t\treturn sPage;\r\n\t}",
"private String download(final String url) {\n driver.get(url);\n\n // wait until button is visible\n WebDriverWait waitForDownloadButton = new WebDriverWait(driver, Duration.ofSeconds(30));\n WebElement downloadButton = waitForDownloadButton.until(\n ExpectedConditions.visibilityOfElementLocated(By.id(WHOLE_FORM_BUTTON_ID)));\n\n downloadButton.click();\n\n Wait<String> waitFowDownload = new FluentWait<String>(downloadFilepath)\n .withTimeout(Duration.ofSeconds(120))\n .pollingEvery(Duration.ofMillis(500));\n\n String fileContent = waitFowDownload.until(new Function<String, String>() {\n public String apply(final String downloadPath) {\n assert downloadPath.equals(downloadFilepath);\n File folder = new File(downloadPath);\n\n if (!folder.exists()) {\n // folder does not exist yet -> wait\n return null;\n }\n\n for (File file : folder.listFiles()) {\n if (file.getName().contains(\".Html\") && !file.getName().contains(\".crdownload\")) {\n try {\n String fileContent = new String(Files.readAllBytes(Paths.get(file.getPath())));\n file.delete();\n folder.delete();\n return fileContent;\n } catch (IOException e) {\n logger.error(\"Unable to read file contents.\", e);\n throw new UnrecoverableException(\"Unable to read file contents\", e);\n }\n }\n }\n\n // folder does not contain the HTML file yet -> wait\n return null;\n }\n });\n\n return fileContent;\n }",
"private String downloadUrl(String strUrl) throws IOException {\n String data = \"\";\n InputStream iStream = null;\n HttpURLConnection urlConnection = null;\n try{\n URL url = new URL(strUrl);\n\n\n // Creating an http connection to communicate with url\n urlConnection = (HttpURLConnection) url.openConnection();\n\n // Connecting to url\n urlConnection.connect();\n\n // Reading data from url\n iStream = urlConnection.getInputStream();\n\n BufferedReader br = new BufferedReader(new InputStreamReader(iStream));\n\n StringBuffer sb = new StringBuffer();\n\n String line = \"\";\n while( ( line = br.readLine()) != null){\n sb.append(line);\n }\n\n data = sb.toString();\n\n br.close();\n\n }catch(Exception e){\n Log.d(\"Exception while downloading url\", e.toString());\n }finally{\n iStream.close();\n urlConnection.disconnect();\n }\n return data;\n }",
"private String downloadUrl(String strUrl) throws IOException {\n String data = \"\";\n InputStream iStream = null;\n HttpURLConnection urlConnection = null;\n try {\n URL url = new URL(strUrl);\n\n // Creating an http connection to communicate with url\n urlConnection = (HttpURLConnection) url.openConnection();\n\n // Connecting to url\n urlConnection.connect();\n\n // Reading data from url\n iStream = urlConnection.getInputStream();\n\n BufferedReader br = new BufferedReader(new InputStreamReader(iStream));\n\n StringBuffer sb = new StringBuffer();\n\n String line;\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n\n data = sb.toString();\n// Log.e(\"downloadUrl\", data.toString());\n br.close();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n iStream.close();\n urlConnection.disconnect();\n }\n return data;\n }",
"private String downloadUrl(String myUrl) throws IOException {\n InputStream is = null;\n\n try {\n URL url = new URL(myUrl);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setReadTimeout(10000 /* milliseconds */);\n conn.setConnectTimeout(15000 /* milliseconds */);\n conn.setRequestMethod(\"GET\");\n conn.setDoInput(true);\n // Starts the QUERY\n conn.connect();\n //int response = conn.getResponseCode();\n //Log.d(\"JSON\", \"The response is: \" + response);\n is = conn.getInputStream();\n\n // Convert the InputStream into a string\n return readIt(is);\n\n // Makes sure that the InputStream is closed after the app is\n // finished using it.\n } finally {\n if (is != null) {\n is.close();\n }\n }\n }",
"private String downloadUrl(String strUrl) throws IOException {\n String data = \"\";\n InputStream iStream = null;\n HttpURLConnection urlConnection = null;\n try {\n URL url = new URL(strUrl);\n // Creating an http connection to communicate with url\n urlConnection = (HttpURLConnection) url.openConnection();\n // Connecting to url\n urlConnection.connect();\n // Reading data from url\n iStream = urlConnection.getInputStream();\n BufferedReader br = new BufferedReader(new InputStreamReader(iStream));\n StringBuffer sb = new StringBuffer();\n String line = \"\";\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n data = sb.toString();\n Log.d(\"downloadUrl\", data.toString());\n br.close();\n } catch (Exception e) {\n Log.d(\"Exception\", e.toString());\n } finally {\n iStream.close();\n urlConnection.disconnect();\n }\n return data;\n }",
"public static String download(String url) {\n String[] command = { \"curl\", \"-L\", \"-X\", \"GET\", url };\n\n ProcessBuilder process = new ProcessBuilder(command);\n Process p;\n try {\n p = process.start();\n BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));\n StringBuilder builder = new StringBuilder();\n String line = null;\n while ((line = reader.readLine()) != null) {\n builder.append(line);\n builder.append(System.getProperty(\"line.separator\"));\n }\n String result = builder.toString();\n //System.out.print(result);\n return result;\n\n } catch (IOException e) {\n System.out.print(\"error\");\n logger.error(\"Error downloading metadata.json\");\n return null;\n }\n }",
"private String downloadUrl(String strUrl) throws IOException {\n String data = \"\";\n InputStream iStream = null;\n HttpURLConnection urlConnection = null;\n try {\n URL url = new URL(strUrl);\n\n // Creating an http connection to communicate with url\n urlConnection = (HttpURLConnection) url.openConnection();\n\n // Connecting to url\n urlConnection.connect();\n\n // Reading data from url\n iStream = urlConnection.getInputStream();\n\n BufferedReader br = new BufferedReader(new InputStreamReader(iStream));\n\n StringBuffer sb = new StringBuffer();\n\n String line = \"\";\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n\n data = sb.toString();\n Log.d(\"downloadUrl\", data.toString());\n br.close();\n\n } catch (Exception e) {\n Log.d(\"Exception\", e.toString());\n } finally {\n iStream.close();\n urlConnection.disconnect();\n }\n return data;\n }",
"private String downloadUrl(String strUrl) throws IOException {\n String data = \"\";\n InputStream iStream = null;\n HttpURLConnection urlConnection = null;\n try {\n URL url = new URL(strUrl);\n\n // Creating an http connection to communicate with url\n urlConnection = (HttpURLConnection) url.openConnection();\n\n // Connecting to url\n urlConnection.connect();\n\n // Reading data from url\n iStream = urlConnection.getInputStream();\n\n BufferedReader br = new BufferedReader(new InputStreamReader(iStream));\n\n StringBuffer sb = new StringBuffer();\n\n String line = \"\";\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n\n data = sb.toString();\n Log.d(\"downloadUrl\", data.toString());\n br.close();\n\n } catch (Exception e) {\n Log.d(\"Exception\", e.toString());\n } finally {\n iStream.close();\n urlConnection.disconnect();\n }\n return data;\n }",
"private static String getHTTPResponse(URL url){\n\t\t\n\t\tStringBuilder response = new StringBuilder();\n\t\t\n\t\ttry{\n\t\t\tURLConnection connection = url.openConnection();\n\t\t\tBufferedReader res = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n\t\t\tString responseLine;\n\t\t\t\n\t\t\twhile((responseLine = res.readLine()) != null)\n\t\t\t\tresponse.append(responseLine);\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e){System.out.println(\"Error - wrong input or service down\");}\n\t\t\n\t\treturn response.toString();\n\t}",
"public static void readFromUrl(URL url) {\n try {\n BufferedReader in = new BufferedReader(\n new InputStreamReader(\n url.openStream()));\n\n String inputLine;\n\n while ((inputLine = in.readLine()) != null) {\n System.out.println(inputLine);\n }\n\n in.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }",
"@Override\n protected String doInBackground(String... urls) {\n try {\n return downloadUrl(urls[0]);\n } catch (IOException e) {\n return \"Unable to retrieve web page. URL may be invalid.\";\n }\n }",
"@Override\n protected String doInBackground(String... urls) {\n try {\n return downloadUrl(urls[0]);\n } catch (IOException e) {\n return \"Unable to retrieve web page. URL may be invalid.\";\n }\n }",
"@Override\n protected String doInBackground(String... urls) {\n try {\n return downloadUrl(urls[0]);\n } catch (IOException e) {\n return \"Unable to retrieve web page. URL may be invalid.\";\n }\n }",
"@Override\n protected String doInBackground(String... urls) {\n try {\n return downloadUrl(urls[0]);\n } catch (IOException e) {\n return \"Unable to retrieve web page. URL may be invalid.\";\n }\n }",
"@Override\n protected String doInBackground(String... urls) {\n try {\n return downloadUrl(urls[0]);\n } catch (IOException e) {\n return \"Unable to retrieve web page. URL may be invalid.\";\n }\n }",
"@Override\n protected String doInBackground(String... urls) {\n try {\n return downloadUrl(urls[0]);\n } catch (IOException e) {\n return \"Unable to retrieve web page. URL may be invalid.\";\n }\n }",
"@Override\n protected String doInBackground(String... urls) {\n try {\n return downloadUrl(urls[0]);\n } catch (IOException e) {\n return \"Unable to retrieve web page. URL may be invalid.\";\n }\n }",
"@Override\n protected String doInBackground(String... urls) {\n try {\n return downloadUrl(urls[0]);\n } catch (IOException e) {\n return \"Unable to retrieve web page. URL may be invalid.\";\n }\n }",
"@Override\n protected String doInBackground(String... urls) {\n try {\n return downloadUrl(urls[0]);\n } catch (IOException e) {\n return \"Unable to retrieve web page. URL may be invalid.\";\n }\n }",
"@Override\n protected String doInBackground(String... urls) {\n try {\n return downloadUrl(urls[0]);\n } catch (IOException e) {\n return \"Unable to retrieve web page. URL may be invalid.\";\n }\n }",
"public static void httpDownload(String url, FileOutputStream file) throws Exception {\r\n \t\tDefaultHttpClient client = new DefaultHttpClient();\r\n \t\tHttpResponse response = client.execute(new HttpGet(url));\r\n \t\tif(response.getStatusLine().getStatusCode() < 400){\r\n \t\t\tBufferedOutputStream writer = null;\r\n \t\t\tBufferedInputStream reader = null;\r\n \t\t\ttry {\r\n \t\t\t\twriter = new BufferedOutputStream(file);\r\n \t\t\t\treader = new BufferedInputStream(response.getEntity().getContent());\r\n \r\n \t\t\t\tbyte[] buffer = new byte[BUF_SIZE];\r\n \t\t\t\tint bytesRead = reader.read(buffer);\r\n \r\n \t\t\t\twhile (bytesRead > 0) {\r\n \t\t\t\t\twriter.write(buffer, 0, bytesRead);\r\n \t\t\t\t\tbytesRead = reader.read(buffer);\r\n \t\t\t\t}\r\n \t\t\t} finally {\r\n \t\t\t\tif (writer != null) {\r\n \t\t\t\t\twriter.close();\r\n \t\t\t\t}\r\n \t\t\t\tif (reader != null) {\r\n \t\t\t\t\treader.close();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}",
"public String extractText(String urlString) {\n String text = \"\";\n try {\n URL url = new URL(urlString);\n text = ArticleExtractor.INSTANCE.getText(url); \n } catch (Exception ex) {\n Logger.getLogger(TextExtractor.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n return text;\n }",
"public static String readFromUrl(String url) throws IOException\n {\n InputStream is = new URL(url).openStream();\n\n StringBuilder sb = null;\n\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n\n String line;\n while ((line = br.readLine()) != null)\n {\n if (sb == null)\n sb = new StringBuilder();\n\n sb.append(line);\n }\n\n return sb.toString();\n\n } finally {\n is.close();\n }\n }",
"private InputStream downloadUrl(String urlString) throws IOException {\n URL url = new URL(urlString);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n //conn.setReadTimeout(10000 /* milliseconds */);\n // conn.setConnectTimeout(15000 /* milliseconds */);\n conn.setRequestMethod(\"GET\");\n conn.setDoInput(true);\n conn.setRequestProperty(\"User-Agent\", \"Mozilla/5.0 ( compatible ) \");\n conn.setRequestProperty(\"Accept\", \"*/*\");\n // Starts the query\n conn.connect();\n\n return conn.getInputStream();\n }",
"public static String getContentFromUrl(URL url) throws Exception {\n HttpGet httpget = new HttpGet(url.toURI());\n DefaultHttpClient httpclient = new DefaultHttpClient();\n log.info(\"Executing request \" + httpget.getRequestLine());\n HttpResponse response = httpclient.execute(httpget);\n int statusCode = response.getStatusLine().getStatusCode();\n log.info(\"Response is with status code \" + statusCode);\n Header[] errorHeaders = response.getHeaders(\"X-Exception\");\n log.warning(\"Error headers are: \" + Arrays.toString(errorHeaders));\n String content = EntityUtils.toString(response.getEntity());\n log.info(\"Content is: \" + content);\n return content;\n }",
"public static String HTMLText(String url) throws Exception\n\t{\n\t\tif (!isValidUrl(url))\n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\t\tString outs = \"\";\n\n\t\tStringBean sb = new StringBean();\n\t\tsb.setLinks(false);\n\t\tsb.setReplaceNonBreakingSpaces(true);\n\t\tsb.setCollapse(false);\n\t\tsb.setURL(url);\n\t\ttry\n\t\t{\n\t\t\touts = sb.getStrings();\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t\treturn outs;\n\t}",
"public String getURL(String url) {\n\t\tString resultado =\"\";\n\t\tHttpClient c = new DefaultHttpClient();\n\t\tHttpGet get = new HttpGet(url);\n\t\tHttpResponse response = null;\n\t\ttry {\n\t\t\tresponse = c.execute(get);\n\t\t} catch (ClientProtocolException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tresultado = EntityUtils.toString(response.getEntity());\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn resultado;\n\t}",
"public static String getFile(String url) {\n final String USER_AGENT = \"Mozilla/5.0\";\n\n StringBuilder response = null;\n try {\n URL obj = new URL(url);\n HttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\n // request method\n con.setRequestMethod(\"GET\");\n\n //add request header\n con.setRequestProperty(\"User-Agent\", USER_AGENT);\n\n int responseCode = con.getResponseCode();\n System.out.println(\"Sending 'GET' request to URL : \" + url);\n System.out.println(\"Response Code : \" + responseCode);\n\n BufferedReader in = new BufferedReader(\n new InputStreamReader(con.getInputStream()));\n response = new StringBuilder();\n\n String inputLine;\n while ((inputLine = in.readLine()) != null) {\n response.append(inputLine).append(\"\\n\");\n }\n in.close();\n return response.toString();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"public static String getResponseContent(URL url) throws IOException {\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n String encoding = conn.getContentEncoding();\n if (encoding == null) {\n encoding = \"UTF-8\";\n }\n int responseCode = conn.getResponseCode();\n InputStream stream;\n if (responseCode != HttpURLConnection.HTTP_OK) {\n stream = conn.getErrorStream();\n } else {\n stream = conn.getInputStream();\n }\n try {\n return IOUtils.toString(stream, encoding);\n }\n finally {\n stream.close();\n }\n }",
"private String downloadUrl(String strUrl) throws IOException{\n String data = \"\";\n InputStream iStream = null;\n HttpURLConnection urlConnection = null;\n try{\n URL url = new URL(strUrl); \n urlConnection = (HttpURLConnection) url.openConnection(); \n urlConnection.connect(); \n iStream = urlConnection.getInputStream();\n BufferedReader br = new BufferedReader(new InputStreamReader(iStream));\n StringBuffer sb = new StringBuffer();\n String line = \"\";\n while( ( line = br.readLine()) != null){\n sb.append(line);\n }\n data = sb.toString();\n br.close();\n\n }catch(Exception e){\n Log.d(\"Exception while downloading url\", e.toString());\n }finally{\n iStream.close();\n urlConnection.disconnect();\n }\n\n return data;\n }",
"public String sendGetSecure(String url)\n\t{\n\t\ttry \n\t\t{\n\t\t\t//Creating URL objects\n\t\t\tURL https_url = new URL(url);\n\t\t\t//Delaying visit if directed to by robots.txt\n\t\t\tcrawlDelay();\n\t\t\tHttpsURLConnection secure_connection = (HttpsURLConnection)https_url.openConnection();\n\t\t\t//Setting request method\n\t\t\tsecure_connection.setRequestMethod(\"GET\");\n\t\t\t//Sending all headers except for host (since URLConnection will take care of this)\n\t\t\tfor (String h: headers.keySet())\n\t\t\t{\n\t\t\t\tif (!h.equals(\"Host\"))\n\t\t\t\t{\n\t\t\t\t\tsecure_connection.setRequestProperty(h, headers.get(h));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Getting ResponseParser object to read in page content\n\t\t\tp = new ResponseParser(new BufferedReader(new InputStreamReader(secure_connection.getInputStream())));\n\t\t\t\n\t\t\t//Parsing all response headers from returned object\n\t\t\tMap<String,String> p_headers = p.getHeaders();\n\t\t\tMap<String, List<String>> response_headers = secure_connection.getHeaderFields();\n\t\t\tfor (Map.Entry<String, List<String>> entry : response_headers.entrySet()) \n\t\t\t{\n\t\t\t\tif (entry.getKey() == null)\n\t\t\t\t{\n\t\t\t\t\tp.setResponse(entry.getValue().get(0));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tp_headers.put(entry.getKey(),entry.getValue().get(0));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//If we didn't get any headers in the response, the URL was invalid\n\t\t\tif (p.getHeaders().size() == 0)\n\t\t\t{\n\t\t\t\treturn (\"invalid url\");\n\t\t\t}\n\t\t\t\n\t\t\t//Otherwise return the contents of the returned document\n\t\t\treturn p.getData();\n\t\t\t\n\t\t} \n\t\tcatch (IOException | IllegalArgumentException e) \n\t\t{\n\t\t\treturn \"invalid url\";\n\t\t}\t\t\n\t}",
"public static void extractText(String pdfUrl) throws Exception {\n URL url = new URL(ENDPOINT + pdfUrl);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setDoOutput(true);\n conn.setRequestMethod(\"GET\");\n conn.setRequestProperty(\"X-WM-CLIENT-ID\", CLIENT_ID);\n conn.setRequestProperty(\"X-WM-CLIENT-SECRET\", CLIENT_SECRET);\n\n int statusCode = conn.getResponseCode();\n System.out.println(\"Status Code: \" + statusCode);\n InputStream is = null;\n if (statusCode == 200) {\n is = conn.getInputStream();\n System.out.println(\"PDF text is shown below\");\n System.out.println(\"=======================\");\n } else {\n is = conn.getErrorStream();\n System.err.println(\"Something is wrong:\");\n }\n\n BufferedReader br = new BufferedReader(new InputStreamReader(is)); \n String output;\n while ((output = br.readLine()) != null) {\n System.out.println(output);\n }\n conn.disconnect();\n }",
"public static String GET(String url)\t{\t\t\t\t\n\t\tInputStream inputStream = null;\t\t\t\t\t\t\t\n\t\tString result = \"\";\t\t\t\t\t\t\t\n\t\ttry\t{\t\t\t\t\t\t\n\t\t\t// create HttpClient\t\t\t\t\t\t\n\t\t\tHttpClient httpClient = new DefaultHttpClient();\t\t\t\t\t\t\n\n\t\t\t// make GET request to the given URL\t\t\t\t\t\t\n\t\t\tHttpResponse httpResponse = httpClient.execute(new HttpGet(url));\t\t\t\t\t\t\n\n\t\t\t// receive response as inputStream\t\t\t\t\t\t\n\t\t\tinputStream = httpResponse.getEntity().getContent();\t\t\t\t\t\t\t\t\n\n\t\t\t// convert inputstream to string\t\t\t\t\t\t\t\t\n\t\t\tif(inputStream != null)\t\t\t{\t\t\t\t\t\n\t\t\t\tresult = convertInputStreamToString(inputStream);\t\t\t\t\t\t\t\t\n\t\t\t}\telse\t{\t\t\t\t\t\t\n\t\t\t\tresult = \"Did not work!\";\t\t\t\t\t\t\t\t\n\t\t\t}\t\t\t\t\t\t\t\t\t\n\t\t}catch (Exception e)\t{\t\t\t\t\t\n\t\t\tLog.d(\"InputStream\", e.getLocalizedMessage());\t\t\t\t\t\t\n\t\t}\t\t\t\t\t\t\t\n\n\t\treturn result;\t\t\t\t\t\t\t\n\t}",
"public static void httpDownload(String url, String destFile) throws Exception {\r\n \t\tFileOutputStream out = null;\r\n \t\ttry {\r\n \t\t\tout = new FileOutputStream(destFile);\r\n \t\t\thttpDownload(url, out);\r\n \r\n \t\t} finally {\r\n \t\t\tif (out != null) {\r\n \t\t\t\tout.close();\r\n \t\t\t}\r\n \t\t}\r\n \t}",
"private String readContents(final URL url) throws IOException {\n \t\tfinal BufferedReader in =\n \t\t\tnew BufferedReader(new InputStreamReader(url.openStream()));\n \t\tfinal StringBuilder sb = new StringBuilder();\n \t\twhile (true) {\n \t\t\tfinal String line = in.readLine();\n \t\t\tif (line == null) break; // eof\n \t\t\tsb.append(line);\n \t\t}\n \t\tin.close();\n \t\treturn sb.toString();\n \t}",
"public String connectAndGetPage(String url) throws IOException {\n URL page = new URL(url);\n HttpURLConnection conn = (HttpURLConnection) page.openConnection();\n conn.connect();\n InputStreamReader in = new InputStreamReader((InputStream) conn.getContent());\n BufferedReader buff = new BufferedReader(in);\n String line;\n StringBuilder sb = new StringBuilder(\"\");\n while ((line = buff.readLine()) != null) {\n sb.append(line).append(\"\\n\");\n }\n return sb.toString();\n }",
"@Override\n\tpublic InputStream doGet(String url) {\n\t\tInputStream in = null;\n\t\tHttpGet getRequest = new HttpGet(url);\n\t\tgetRequest.addHeader(\"charset\", HTTP.UTF_8);\n\t\tHttpClient client = new DefaultHttpClient();\n\t\tclient.getParams().setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 6000);\n\t\tclient.getParams().setParameter(CoreConnectionPNames.SO_TIMEOUT, 8000);\n\t\tHttpResponse response = null;\n\t\ttry {\n\t\t\tresponse = client.execute(getRequest);\n\t\t\tif(null != response && response.getStatusLine().getStatusCode() == HttpStatus.SC_OK){\n\t\t\t\tin = response.getEntity().getContent();\n\t\t\t}\n\t\t} catch (ClientProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn in;\n\t}",
"public static Object getURLContentsStatic(URL url, byte[] outputBytes, String post,\r\n boolean asString) {\r\n Object ret = JSFile.getURLContents(url, outputBytes, post);\r\n // check for error\r\n try {\r\n return (!asString ? ret : ret instanceof String ? ret : ret instanceof SB ? ((SB) ret)\r\n .toString() : ret instanceof byte[] ? new String((byte[]) ret)\r\n : new String((byte[]) Rdr.getStreamAsBytes((BufferedInputStream) ret,\r\n null)));\r\n } catch (Exception e) {\r\n return \"\" + e;\r\n }\r\n }",
"public static String readUrlToString(String url){\n \tString out = \"\";\n \tBufferedReader in = null;\n \t\n \ttry { \n URL theUrl = new URL(url); \n in = new BufferedReader(new InputStreamReader(theUrl.openStream())); \n String inputLine; \n \n while ((inputLine = in.readLine()) != null) { \n out = out + inputLine; \n }\n } catch (Exception e) { \n e.printStackTrace();\n \n }finally{\n \ttry {\n\t\t\t\tin.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n }\n return out;\n\t}",
"public String getResponseFromUrl(String url) {\r\n\t\tString res = \"\";\r\n\t\tBufferedReader in = null;\r\n\t\ttry {\r\n\t\t\tHttpClient client = new DefaultHttpClient();\r\n\t\t\tHttpGet request = new HttpGet();\r\n\t\t\trequest.setURI(new URI(url));\r\n\t\t\tHttpResponse response = client.execute(request);\r\n\t\t\tin = new BufferedReader(new InputStreamReader(response.getEntity()\r\n\t\t\t\t\t.getContent()));\r\n\t\t\tStringBuffer sb = new StringBuffer(\"\");\r\n\t\t\tString line = \"\";\r\n\t\t\tString NL = System.getProperty(\"line.separator\");\r\n\t\t\twhile ((line = in.readLine()) != null) {\r\n\t\t\t\tsb.append(line + NL);\r\n\t\t\t}\r\n\t\t\tin.close();\r\n\t\t\tres = sb.toString();\r\n\t\t\t//System.out.println(res);\r\n\t\t\t\r\n\t\t\treturn res;\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (in != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tin.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn res;\r\n\t}",
"public String receive(String URL)\n {\n try\n {\n HttpGet httpGet = new HttpGet(URL);\n return EntityUtils.toString(HttpClients.createDefault().execute(httpGet).getEntity());\n }catch(IOException e) \n {\n System.out.println(\"Error requesting string from \" + URL);\n }\n return \"\";\n }",
"private String loadFromNetwork(String urlString) throws IOException {\n InputStream stream = null;\n String str =\"\";\n\n try {\n stream = downloadUrl(urlString);\n str = readIt(stream, 450000);\n } finally {\n if (stream != null) {\n stream.close();\n }\n }\n return str;\n }",
"private InputStream downloadUrl(String urlString) throws IOException {\n\t\tURL url = new URL(urlString);\n\t\tHttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\t\tconn.setReadTimeout(10000 /* milliseconds */);\n\t\tconn.setConnectTimeout(15000 /* milliseconds */);\n\t\tconn.setRequestMethod(\"GET\");\n\t\tconn.setDoInput(true);\n\t\t// Starts the query\n\t\tconn.connect();\n\t\tInputStream stream = conn.getInputStream();\n\n\t\treturn stream;\n\t}",
"public static String getPage(String u) throws IOException {\n\t\tURL url = new URL(u);\n\t\tURLConnection yc = url.openConnection();\n\t\tyc.addRequestProperty(\"User-Agent\", \"Mozilla/4.76\"); \n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\tyc.getInputStream()));\n\t\tString inputLine;\n\t\tString content=\"\";\n\t\twhile ((inputLine = in.readLine()) != null)\n\t\t\tcontent+=inputLine+\"\\n\";\n\t\tin.close();\n\t\treturn content;\n\t}",
"public static byte[] download(String url, byte[] data) {\n\t\treturn download(url, data, null, 0);\n\t}",
"protected String doInBackground(Object... urls) {\n try {\n String st = downloadUrl((String) urls[0]);\n return st;\n } catch (IOException e) {\n return \"Unable to retrieve web page. URL may be invalid.\";\n }\n }",
"private static String getURL(String url) {\r\n\t\t//fixup the url\r\n\t\tURL address;\r\n\t\ttry {\r\n\t\t\taddress = new URL(url);\r\n\t\t}\r\n\t\tcatch (MalformedURLException e) {\r\n\t\t\tSystem.out.println(\"====>\" + e.getMessage());\r\n\t\t\treturn new String();\r\n\t\t}\r\n\t\t\r\n\t\t//make the hookup\r\n\t\tHttpURLConnection con;\r\n\t\ttry {\r\n\t\t\tcon = (HttpURLConnection) address.openConnection();\r\n\t\t}\r\n\t\tcatch(IOException e) {\r\n\t\t\tSystem.out.println(\"====>\" + e.getMessage());\r\n\t\t\treturn new String();\r\n\t\t}\r\n\r\n\t\t// optional default is GET\r\n\t\ttry {\r\n\t\t\tcon.setRequestMethod(\"GET\");\r\n\t\t}\r\n\t\tcatch (ProtocolException e) {\r\n\t\t\tSystem.out.println(\"====>\" + e.getMessage());\r\n\t\t\treturn new String();\r\n\t\t}\r\n\r\n\t\t//this executes the get? - maybe check with wireshark if ever important\r\n//\t\tint responseCode = 0; \r\n//\t\ttry {\r\n//\t\t\tresponseCode = con.getResponseCode();\r\n//\t\t}\r\n//\t\tcatch(IOException e) {\r\n//\t\t\tSystem.out.println(\"====>\" + e.getMessage());\r\n//\t\t\treturn new String();\r\n//\t\t}\r\n\t\t\r\n\t\t//TODO handle bad response codes\r\n\r\n\t\t//read the response\r\n\t\tStringBuffer response = new StringBuffer();\r\n\t\ttry {\r\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\r\n\t\t\tString inputLine = new String();\r\n\t\r\n\t\t\t//grab each line from the response\r\n\t\t\twhile ((inputLine = in.readLine()) != null) {\r\n\t\t\t\tresponse.append(inputLine);\r\n\t\t\t}\r\n\t\t\t//fix dangling\r\n\t\t\tin.close();\r\n\t\t}\r\n\t\tcatch(IOException e) {\r\n\t\t\tSystem.out.println(\"====>\" + e.getMessage());\r\n\t\t\treturn new String();\r\n\t\t}\r\n\t\t\r\n\t\t//convert to a string\r\n\t\treturn response.toString();\r\n\t}",
"private String loadUrl(String strUrl) throws IOException {\n String data = \"\";\n InputStream iStream = null;\n HttpURLConnection urlConnection = null;\n try {\n URL url = new URL(strUrl);\n\n // Creating an http connection to communicate with url\n urlConnection = (HttpURLConnection) url.openConnection();\n\n // Connecting to url\n urlConnection.connect();\n\n // Reading data from url\n iStream = urlConnection.getInputStream();\n\n BufferedReader br = new BufferedReader(new InputStreamReader(iStream));\n\n StringBuffer sb = new StringBuffer();\n\n String line = \"\";\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n\n data = sb.toString();\n\n br.close();\n\n } catch (Exception e) {\n Log.d(\"Excep downloading url\", e.toString());\n } finally {\n iStream.close();\n urlConnection.disconnect();\n }\n return data;\n }",
"private static String readUrl(String urlString) throws Exception {\r\n\t BufferedReader reader = null;\r\n\t try {\r\n\t URL url = new URL(urlString);\r\n\t reader = new BufferedReader(new InputStreamReader(url.openStream()));\r\n\t StringBuffer buffer = new StringBuffer();\r\n\t int read;\r\n\t char[] chars = new char[1024];\r\n\t while ((read = reader.read(chars)) != -1)\r\n\t buffer.append(chars, 0, read); \r\n\r\n\t return buffer.toString();\r\n\t } finally {\r\n\t if (reader != null)\r\n\t reader.close();\r\n\t }\r\n\t}",
"private InputStream downloadUrl(String urlString) throws IOException {\n\t URL url = new URL(urlString);\n\t HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\t conn.setReadTimeout(10000 /* milliseconds */);\n\t conn.setConnectTimeout(15000 /* milliseconds */);\n\t conn.setRequestMethod(\"GET\");\n\t conn.setDoInput(true);\n\t // Starts the query\n\t conn.connect();\n\t return conn.getInputStream();\n\t}",
"private InputStream downloadUrl(String urlString) throws IOException {\n URL url = new URL(urlString);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setReadTimeout(10000 /* milliseconds */);\n conn.setConnectTimeout(15000 /* milliseconds */);\n conn.setRequestMethod(\"GET\");\n conn.setDoInput(true);\n // Starts the query\n conn.connect();\n return conn.getInputStream();\n }",
"private String downloadUrl(String strUrl) throws IOException {\n String data = \"\";\n InputStream iStream = null;\n HttpURLConnection urlConnection = null;\n try {\n URL url = new URL(strUrl);\n\n urlConnection = (HttpURLConnection) url.openConnection();\n\n urlConnection.connect();\n\n iStream = urlConnection.getInputStream();\n\n BufferedReader br = new BufferedReader(new InputStreamReader(iStream));\n\n StringBuffer sb = new StringBuffer();\n\n String line = \"\";\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n\n data = sb.toString();\n\n br.close();\n\n } catch (Exception e) {\n FirebaseCrashlytics.getInstance().recordException(e);\n Log.d(\"Exception\", e.toString());\n } finally {\n iStream.close();\n urlConnection.disconnect();\n }\n return data;\n }",
"private InputStream downloadUrl(String urlString) throws IOException {\n \tSystem.out.println(\"Inside downloadURL\");\n URL url = new URL(urlString);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n \n conn.setReadTimeout(10000 /* milliseconds */);\n conn.setConnectTimeout(15000 /* milliseconds */);\n conn.setRequestMethod(\"GET\");\n conn.setDoInput(true);\n // Starts the query\n conn.connect();\n InputStream stream = conn.getInputStream();\n return stream;\n }",
"private String getContent(String url) throws BoilerpipeProcessingException, IOException {\n int code;\n HttpURLConnection connection = null;\n URL uri;\n do{\n uri = new URL(url);\n if(connection != null)\n connection.disconnect();\n connection = (HttpURLConnection)uri.openConnection();\n connection.setRequestMethod(\"GET\");\n connection.setConnectTimeout(5000);\n connection.setReadTimeout(5000);\n connection.connect();\n code = connection.getResponseCode();\n if(code == 301)\n url = connection.getHeaderField( \"Location\" );\n }while (code == 301);\n\n System.out.println(url + \" :: \" + code);\n String content = null;\n if(code < 400) {\n content = ArticleExtractor.INSTANCE.getText(uri);\n }\n connection.disconnect();\n return content;\n }",
"public String openHttp2String(URL url) throws IOException {\r\n return EntityUtils.toString(openHttpEntity(url), Charset.forName(\"UTF-8\"));\r\n }",
"public static String getWebPageSource(String webPage) throws Exception {\n URLConnection bc = new URL(webPage).openConnection();\r\n bc.setRequestProperty(\"user-Agent\", \"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11\");\r\n BufferedReader in = new BufferedReader(new InputStreamReader(bc.getInputStream()));\r\n\r\n String inputLine = \"\";\r\n String text = \"\";\r\n while ((inputLine = in.readLine()) != null) {\r\n text += inputLine;\r\n }\r\n in.close();\r\n\r\n return text;\r\n }",
"public String fetch(String aURL, String aEncoding) {\n return webFetch2(aURL, aEncoding); \n }",
"private InputStream downloadUrl(String urlString) throws IOException {\n URL url = new URL(urlString);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setReadTimeout(100000 /* milliseconds */);\n conn.setConnectTimeout(150000 /* milliseconds */);\n conn.setRequestMethod(\"GET\");\n conn.setDoInput(true);\n // Starts the query\n conn.connect();\n return conn.getInputStream();\n\n }",
"static String getResponseFromHttpUrl(URL url) throws IOException {\n HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();\n try {\n InputStream in = urlConnection.getInputStream();\n\n Scanner scanner = new Scanner(in);\n scanner.useDelimiter(\"\\\\A\");\n\n boolean hasInput = scanner.hasNext();\n String response = null;\n if (hasInput) {\n response = scanner.next();\n }\n scanner.close();\n return response;\n } finally {\n urlConnection.disconnect();\n }\n }",
"public static String urlToString(final String url) {\n Scanner urlScanner;\n try {\n urlScanner = new Scanner(new URL(url).openStream(), \"UTF-8\");\n } catch (IOException e) {\n return \"\";\n }\n String contents = urlScanner.useDelimiter(\"\\\\A\").next();\n urlScanner.close();\n return contents;\n }",
"public String getContentFromUrl(String strUrl) throws IOException {\n String content = \"\";\n URL url = null;\n HttpURLConnection httpURLConnection = null;\n url = new URL(strUrl);\n httpURLConnection = (HttpURLConnection) url.openConnection();\n httpURLConnection.setRequestMethod(Constants.METHOD_GET);\n httpURLConnection.setConnectTimeout(Constants.CONNECTION_TIME_OUT);\n httpURLConnection.setReadTimeout(Constants.READ_INPUT_TIME_OUT);\n httpURLConnection.setDoInput(true);\n httpURLConnection.connect();\n int responseCode = httpURLConnection.getResponseCode();\n if (responseCode == HttpURLConnection.HTTP_OK) {\n content = parserResultFromContent(httpURLConnection.getInputStream());\n }\n return content;\n }",
"private String getMessage(URL url) {\n\t\ttry {\n\t\t\tHttpURLConnection connection = (HttpURLConnection) url.openConnection();\n\t\t\tconnection.setRequestMethod(\"GET\");\n\t\t\tconnection.connect();\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n\t\t\tString message = reader.readLine();\n\t\t\treader.close();\n\t\t\tconnection.disconnect();\n\t\t\treturn message;\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error getting the message of the day, IO Exception\");\n\t\t\treturn null;\n\t\t}\n\t}",
"public String getUrlSourcePage(String url) throws IOException {\n\t\t\t URL URL = new URL(url);\n\t\t\t URLConnection uc = URL.openConnection();\n\t\t\t \n\t\t\t // allow GZip encodings \n\t\t\t // the encoding type\n\t\t\t BufferedReader in = null;\n\t\t\t if (uc.getHeaderField(\"Content-Encoding\") != null && uc.getHeaderField(\"Content-Encoding\").equals(\"gzip\")) {\n\t\t\t in = new BufferedReader(new InputStreamReader(new GZIPInputStream(uc.getInputStream())));\n\t\t\t } else { in = new BufferedReader(new InputStreamReader(uc.getInputStream())); }\n\t\t\t \n\t\t\t String inputLine;\n\t\t\t StringBuilder sb = new StringBuilder();\n\t\t\t while ((inputLine = in.readLine()) != null)\n\t\t\t sb.append(inputLine);\n\t\t\t in.close();\n\t\t\t \n\t\t\t return sb.toString();\n\t\t\t }",
"public static String urlToString(final String url) {\n Scanner urlScanner;\n try {\n urlScanner = new Scanner(new URL(url).openStream(), \"UTF-8\");\n } catch (IOException e) {\n return \"\";\n }\n String contents = urlScanner.useDelimiter(\"\\\\A\").next();\n urlScanner.close();\n return contents;\n }",
"public static String urlToString(final String url) {\n Scanner urlScanner;\n try {\n urlScanner = new Scanner(new URL(url).openStream(), \"UTF-8\");\n } catch (IOException e) {\n return \"\";\n }\n String contents = urlScanner.useDelimiter(\"\\\\A\").next();\n urlScanner.close();\n return contents;\n }",
"public static void downloadUrl(URL url, String localFilename) throws IOException {\n InputStream is = null;\n FileOutputStream fos = null;\n\n try {\n URLConnection urlConnection = url.openConnection();\n\n is = urlConnection.getInputStream();\n fos = new FileOutputStream(localFilename);\n\n byte[] buffer = new byte[4096];\n int len;\n\n while ((len = is.read(buffer)) > 0) {\n fos.write(buffer, 0, len);\n }\n } finally {\n try {\n if (is != null) {\n is.close();\n }\n } finally {\n if (fos != null) {\n fos.close();\n }\n }\n }\n }",
"private void DownloadFile(String url){\n ContentManager contentManager = ContentManager.getInstance();\n String fileName = contentManager.getCurrentPlayingSongTitle().trim();\n fileName = TextUtil.removeAccent(fileName);\n fileName += url.substring(url.length()-4, url.length());\n final FileDownloadWorker fileDownloadWorker = new FileDownloadWorker(getContext(), true, this);\n fileDownloadWorker\n .setDialogMessage(getContext().getString(R.string.wait_downloading))\n .setHorizontalProgressbar()\n .setDialogCancelCallback(getContext().getString(R.string.hide), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n fileDownloadWorker.showNotificationProgress();\n }\n });\n fileDownloadWorker.execute(url, fileName);\n }",
"public static String readUrl(String url, ErrorHandlerInterface errorHandler) {\n URL url2;\n StringBuilder result = new StringBuilder();\n try {\n url2 = new URL(url);\n BufferedReader in = new BufferedReader(new InputStreamReader(url2.openStream(), \"utf-8\"), 1024);\n\n String inputLine;\n\n while ((inputLine = in.readLine()) != null) {\n result.append(inputLine).append(\"\\n\");\n }\n in.close();\n } catch (UnknownHostException ignored) {\n // this can happen when there is no internet connection\n } catch (ConnectException ignored) {\n // this can happen when there is no internet connection\n } catch (IOException ignored) {\n // this can also happen when there is no internet connection\n // (if the isp provides an error page?)\n // errorHandler.handle(e);\n }\n return result.toString();\n }",
"private static String fetchHTML(String link) {\n\t\tStringBuffer buffer = null;\n\t\ttry {\n\t\t\tURL url = new URL(getURL(link));\n\t\t\tInputStream is = url.openStream();\n\t\t\tint ptr = 0;\n\t\t\tbuffer = new StringBuffer();\n\t\t\twhile ((ptr = is.read()) != -1) {\n\t\t\t buffer.append((char)ptr);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(ex.getMessage());\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn buffer.toString();\n\t}"
] | [
"0.71684474",
"0.69846773",
"0.6775019",
"0.6659915",
"0.6560513",
"0.6505425",
"0.6478215",
"0.6436639",
"0.63399136",
"0.630198",
"0.62623364",
"0.625523",
"0.6218776",
"0.6180111",
"0.61482507",
"0.6136614",
"0.6123494",
"0.6104087",
"0.60850066",
"0.60843503",
"0.60627085",
"0.6056943",
"0.6036252",
"0.60326946",
"0.60020113",
"0.59731",
"0.5963431",
"0.5957972",
"0.59295034",
"0.591517",
"0.590785",
"0.58953106",
"0.5892321",
"0.58890694",
"0.5879978",
"0.58573985",
"0.58566684",
"0.58565366",
"0.58565366",
"0.5827196",
"0.5819149",
"0.58171356",
"0.58171356",
"0.58171356",
"0.58171356",
"0.58171356",
"0.58171356",
"0.58171356",
"0.58171356",
"0.58171356",
"0.58171356",
"0.5802322",
"0.57868904",
"0.57652247",
"0.5745613",
"0.57386535",
"0.5738601",
"0.5737957",
"0.57107013",
"0.570809",
"0.5705654",
"0.5700231",
"0.56779814",
"0.5673021",
"0.56723577",
"0.56544745",
"0.5645968",
"0.5641697",
"0.5619121",
"0.561075",
"0.5607542",
"0.5606125",
"0.56038964",
"0.55974466",
"0.5596738",
"0.5593888",
"0.55742526",
"0.55498457",
"0.55427176",
"0.553322",
"0.5508287",
"0.55072963",
"0.5504553",
"0.550027",
"0.5491671",
"0.5483467",
"0.54787743",
"0.5462602",
"0.5456655",
"0.5442825",
"0.54282194",
"0.5426071",
"0.5422561",
"0.5400262",
"0.537968",
"0.537968",
"0.5368843",
"0.5354087",
"0.5351878",
"0.5348918"
] | 0.6757475 | 3 |
Creates new form TeamSquad | public TeamSquad() {
initComponents();
this.setTitle("Chỉnh sửa đội hình");
listPlayers = new ArrayList<>();
readPlayerFromFile(listPlayers);
showList(listPlayers);
tablePlayer.setAutoCreateRowSorter(true);
tablePlayer.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
tablePlayer.getColumnModel().getColumn(0).setPreferredWidth(30);
tablePlayer.getColumnModel().getColumn(1).setPreferredWidth(140);
tablePlayer.getColumnModel().getColumn(2).setPreferredWidth(70);
tablePlayer.getColumnModel().getColumn(3).setPreferredWidth(50);
tablePlayer.getColumnModel().getColumn(4).setPreferredWidth(48);
showComboCFData();
showComboGKData();
showComboDFData();
showComboMFData();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Team create(TeamDTO teamForm);",
"public static void addTeam(TeamForm tf) {\n Team team;\n\n long id = tf.id;\n\n if (!isTeam(id)) {\n team = new Team(tf.teamName, tf.location, tf.teamType, tf.skillLevel, tf.roster, tf.description, tf.imageUrl);\n team.save();\n }\n else {\n team = getTeam(id);\n team.setTeamName(tf.teamName);\n team.setLocation(tf.location);\n team.setTeamType(tf.teamType);\n team.setSkillLevel(tf.skillLevel);\n team.setRoster(tf.roster);\n team.setDescription(tf.description);\n team.setImageUrl(tf.imageUrl);\n team.setWins(tf.wins);\n team.setLosses(tf.losses);\n team.setPointsFor(tf.pointsFor);\n team.setPointsAgainst(tf.pointsAgainst);\n team.save();\n }\n }",
"void create(Team team);",
"Team createTeam();",
"public void createSurvey(int tid);",
"public Campus create(long campusId);",
"public void createTeam(final Map<String, String> dataTable) {\n team.processInformation(dataTable);\n WebDriverHelper.waitUntil(inputTeamName);\n WebDriverHelper.setElement(inputTeamName, team.getName());\n WebDriverHelper.clickElement(dropDownTeamType);\n selectDropDownOptionByName(team.getType());\n WebDriverHelper.setElement(inputTeamDescription, team.getDescription());\n WebDriverHelper.clickElement(btnContinue);\n WebDriverHelper.waitUntil(btnThisLater);\n WebDriverHelper.clickElement(btnThisLater);\n }",
"@Override\n\tpublic boolean createSprint(SprintFormBean sprint) throws IllegalAccessException, InvocationTargetException {\n\t\tSprint sprintEntity = new Sprint() ;\n\t\tsprintEntity.setDescription(sprint.getDescription());\n\t\tsprintEntity.setName(sprint.getName());\n\t\tsprintEntity.setReleaseid(sprint.getReleaseid());\n\t\tif(sprintRespository.save(sprintEntity) != null){\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t\n\t\n\t\t\n\t}",
"public void createTeam(ActionEvent actionEvent) throws IOException, SQLException {\n if (validCreateInput()) {\n user = DatabaseManager.createTeam(user, teamNameCreateField.getText(), abbrevationCreateField.getText(), chooseCityBoxCreate.getValue().toString(),\n chooseAgeGroupCreate.getValue(), chooseLeagueBoxCreate.getValue().toString(), chooseLeagueTeamBoxCreate.getValue().toString(), createTeamLogoFile);\n\n createPaneClose(actionEvent);\n displayMessage(messagePane, \"Team created\", false);\n }\n }",
"@Test\r\n\tpublic void saveTeam() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeam \r\n\t\tTeam team = new wsdm.domain.Team();\r\n\t\tservice.saveTeam(team);\r\n\t}",
"public void createNewTeam(ActionEvent actionEvent) throws IOException {\n createTeamPane.setDisable(false);\n createTeamPane.setVisible(true);\n darkPane.setDisable(false);\n darkPane.setVisible(true);\n\n teamNameCreateField.setText(\"\");\n abbrevationCreateField.setText(\"\");\n chooseCityBoxCreate.getSelectionModel().clearSelection();\n chooseLeagueBoxCreate.getSelectionModel().clearSelection();\n chooseAgeGroupCreate.getSelectionModel().clearSelection();\n chooseLeagueTeamBoxCreate.getSelectionModel().clearSelection();\n\n chooseLeagueBoxCreate.setDisable(true);\n chooseLeagueTeamBoxCreate.setDisable(true);\n }",
"public String createQuiz() {\n quiz = quizEJB.createQuiz(quiz);\n quizList = quizEJB.listQuiz();\n FacesContext.getCurrentInstance().addMessage(\"successForm:successInput\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Success\", \"New record added successfully\"));\n return \"quiz-list.xhtml\";\n }",
"public void newTeam(Team team);",
"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 }",
"@RequestMapping(value = \"/projectreleasesprints\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Projectreleasesprint> createProjectreleasesprint(@Valid @RequestBody Projectreleasesprint projectreleasesprint) throws URISyntaxException {\n log.debug(\"REST request to save Projectreleasesprint : {}\", projectreleasesprint);\n if (projectreleasesprint.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"projectreleasesprint\", \"idexists\", \"A new projectreleasesprint cannot already have an ID\")).body(null);\n }\n Projectreleasesprint result = projectreleasesprintRepository.save(projectreleasesprint);\n return ResponseEntity.created(new URI(\"/api/projectreleasesprints/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"projectreleasesprint\", result.getId().toString()))\n .body(result);\n }",
"@PostMapping(\"/saveTeam\")\n public String saveTeam(@Valid @ModelAttribute(\"team\") Team team) {\n teamService.saveTeam(team);\n return \"redirect:/showFormForUpdateTeam/\"+team.getId();\n }",
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"public void displaySquad(Squad squad);",
"@Test\r\n\tpublic void saveTeamTswacct() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamTswacct \r\n\t\tInteger teamId_3 = 0;\r\n\t\tTswacct related_tswacct = new wsdm.domain.Tswacct();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamTswacct(teamId_3, related_tswacct);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamTswacct\r\n\t}",
"public Team() {\r\n id = \"\";\r\n abbreviation = \"\";\r\n name = \"\";\r\n conference = \"\";\r\n division = \"\";\r\n address = null;\r\n }",
"public Result createRoom() {\n\n DynamicForm dynamicForm = Form.form().bindFromRequest();\n String roomType = dynamicForm.get(\"roomType\");\n Double price = Double.parseDouble(dynamicForm.get(\"price\"));\n int bedCount = Integer.parseInt(dynamicForm.get(\"beds\"));\n String wifi = dynamicForm.get(\"wifi\");\n String smoking = dynamicForm.get(\"smoking\");\n\n RoomType roomTypeObj = new RoomType(roomType, price, bedCount, wifi, smoking);\n\n if (dynamicForm.get(\"AddRoomType\") != null) {\n\n Ebean.save(roomTypeObj);\n String message = \"New Room type is created Successfully\";\n\n return ok(views.html.RoomTypeUpdateSuccess.render(message));\n } else{\n\n String message = \"Failed to create a new Room type\";\n\n return ok(views.html.RoomTypeUpdateSuccess.render(message));\n\n }\n\n\n\n }",
"public void insertTeam(Team t) {\n\t\tEntityManager em = emfactory.createEntityManager();\n\t\tem.getTransaction().begin();\n\t\tem.persist(t);\n\t\tem.getTransaction().commit();\n\t\tem.close();\n\t}",
"private static void addNewScheduledTour()\r\n {\r\n\t String tourID;\r\n\t String description;\r\n\t double admissionFee;\r\n\t String tourDate;\r\n\t int maxGroupSize;\r\n\t String tourLeader;\r\n\t boolean duplicateID = false;\r\n\t \r\n System.out.println(\"Add New Scheduled Tour Feature Selected!\");\r\n System.out.println(\"--------------------------------------\");\r\n \r\n System.out.print(\"Enter Tour ID: \");\r\n tourID = sc.nextLine();\r\n \r\n System.out.print(\"Enter Tour Description: \");\r\n description = sc.nextLine();\r\n \r\n System.out.print(\"Enter Admission Fee: \");\r\n admissionFee = sc.nextDouble();\r\n sc.nextLine();\r\n \r\n System.out.print(\"Enter Tour Date: \");\r\n tourDate = sc.nextLine();\r\n \r\n System.out.print(\"Enter Maximum Group Size: \");\r\n maxGroupSize = sc.nextInt();\r\n sc.nextLine();\r\n \r\n System.out.print(\"Enter Tour Leader: \");\r\n tourLeader = sc.nextLine();\r\n System.out.println();\r\n \r\n // check if tourID is already in use in the booking system\r\n for(int i = 0; i < attractionCount; i++)\r\n {\r\n \t if(attractionList[i].getAttractionID().equalsIgnoreCase(tourID))\r\n \t {\r\n \t\t duplicateID = true;\r\n \t\t System.out.print(\"Error! Attraction / Tour with this ID already exists!\");\r\n \t\t System.out.println();\r\n \t }\r\n }\r\n \r\n if(duplicateID == false)\r\n {\r\n \t attractionList[attractionCount] = new ScheduledTour(tourID, description,\r\n \t\t\t admissionFee, tourDate, maxGroupSize, tourLeader);\r\n \t attractionCount++;\r\n }\r\n }",
"private void createBtnActionPerformed(java.awt.event.ActionEvent evt) {\n\n staff.setName(regName.getText());\n staff.setID(regID.getText());\n staff.setPassword(regPwd.getText());\n staff.setPosition(regPos.getSelectedItem().toString());\n staff.setGender(regGender.getSelectedItem().toString());\n staff.setEmail(regEmail.getText());\n staff.setPhoneNo(regPhone.getText());\n staff.addStaff();\n if (staff.getPosition().equals(\"Vet\")) {\n Vet vet = new Vet();\n vet.setExpertise(regExp.getSelectedItem().toString());\n vet.setExpertise_2(regExp2.getSelectedItem().toString());\n vet.addExpertise(staff.getID());\n }\n JOptionPane.showMessageDialog(null, \"User added to database\");\n updateJTable();\n }",
"@RequestMapping(method=RequestMethod.POST)\n public ResponseEntity<Void> insert(@RequestBody TeamDTO objDto) {\n Team obj = this.teamService.fromDTO(objDto);\n this.teamService.insert(obj);\n URI uri = ServletUriComponentsBuilder.fromCurrentRequest()\n .path(\"/{id}\").buildAndExpand(obj.getId()).toUri();\n return ResponseEntity.created(uri).build();\n }",
"public Project_Create() {\n initComponents();\n }",
"public TAlgmntSalesTeam createTAlgmntSalesTeam(final TAlgmntSalesTeam tAlgmntSalesTeam) {\n\t\tLOGGER.info(\"=========== Create TAlgmntSalesTeam ===========\");\n\t\treturn genericDAO.store(tAlgmntSalesTeam);\n\t}",
"public Result addNewRoomType() {\n\n DynamicForm dynamicform = Form.form().bindFromRequest();\n if (dynamicform.get(\"AdminAddRoom\") != null) {\n\n return ok(views.html.AddRoomType.render());\n }\n\n\n return ok(\"Something went wrong\");\n }",
"FORM createFORM();",
"public static void createNewLeague()\n\t{\n\t\t//put code to get input from end-user here.\n\t\t//generateFixtures(leagueName, teamAmount, homeAndAway, winPoints, drawPoints, lossPoints, teamNames);\n\t}",
"private void createLeague(){ \r\n FantasyUser maxUser = new FantasyUser();\r\n maxUser.setEmail(\"max@gmail.com\");\r\n maxUser.setPassword(\"password\");\r\n fUserBean.create(maxUser);\r\n \r\n FantasyUser adrianUser = new FantasyUser();\r\n adrianUser.setEmail(\"adrian@gmail.com\");\r\n adrianUser.setPassword(\"password\");\r\n fUserBean.create(adrianUser);\r\n \r\n FantasyUser ashayUser = new FantasyUser();\r\n ashayUser.setEmail(\"ashay@gmail.com\");\r\n ashayUser.setPassword(\"password\");\r\n fUserBean.create(ashayUser);\r\n \r\n FantasyUser jessUser = new FantasyUser();\r\n jessUser.setEmail(\"jess@gmail.com\");\r\n jessUser.setPassword(\"password\");\r\n fUserBean.create(jessUser);\r\n \r\n //create league\r\n FantasyLeague league = new FantasyLeague();\r\n league.setDraftStarted(false);\r\n league.setFinishedDraft(false);\r\n league.setLeagueName(\"Mongeese Only\");\r\n league.setLeagueOwner(maxUser);\r\n flBean.create(league);\r\n \r\n //create teams\r\n FantasyTeam maxTeam = new FantasyTeam();\r\n maxTeam.setTeamName(\"Max's Team\");\r\n maxTeam.setTeamOwner(maxUser);\r\n maxTeam.setLeague(league);\r\n ftBean.create(maxTeam);\r\n \r\n FantasyTeam ashayTeam = new FantasyTeam();\r\n ashayTeam.setTeamName(\"Ashay's Team\");\r\n ashayTeam.setTeamOwner(ashayUser);\r\n ashayTeam.setLeague(league);\r\n ftBean.create(ashayTeam);\r\n \r\n FantasyTeam jessTeam = new FantasyTeam();\r\n jessTeam.setTeamName(\"Jess's team\");\r\n jessTeam.setTeamOwner(jessUser);\r\n jessTeam.setLeague(league);\r\n ftBean.create(jessTeam);\r\n \r\n FantasyTeam adrianTeam = new FantasyTeam();\r\n adrianTeam.setTeamName(\"Team Greasy Pizza\");\r\n adrianTeam.setTeamOwner(adrianUser);\r\n adrianTeam.setLeague(league); \r\n ftBean.create(adrianTeam);\r\n }",
"int insert(SysTeam record);",
"@PostMapping(\"/suivi-champs\")\n @Timed\n public ResponseEntity<SuiviChampsDTO> createSuiviChamps(@Valid @RequestBody SuiviChampsDTO suiviChampsDTO) throws URISyntaxException {\n log.debug(\"REST request to save SuiviChamps : {}\", suiviChampsDTO);\n if (suiviChampsDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new suiviChamps cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n SuiviChampsDTO result = suiviChampsService.save(suiviChampsDTO);\n return ResponseEntity.created(new URI(\"/api/suivi-champs/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"@WebMethod public Team addTeam(String name) throws TeamAlreadyExists;",
"private void saveTournament(Tournament tournament) {\n System.out.println(\"Saving\");\n TournamentEntity entity = new TournamentEntity();\n entity.setId(tournament.getId());\n entity.setWinnerId(tournament.getFightersRemaining().get(0).getId());\n tournamentRepository.save(entity);\n }",
"public Team update(TeamDTO teamForm) throws TeamNotFoundException;",
"public void insertTeam(Team team) {\n\t\ttry {\n\t\t\tStatement statement = null;\n\t\t\tconnection = connector.getConnection();\n\t\t\tstatement = connection.createStatement();\n\t\t\tjava.sql.Date tDate = new java.sql.Date(team.getDateFoundation().getTime());\n\t\t\tString insertTeam_sql = \"INSERT INTO \" + team_table + \" (id, name, coach, city, dateFoundation)\"\n\t\t\t\t\t+ \"VALUES (NULL, '\" + team.getName() + \"' , '\" + team.getCoach() + \"' , '\" + team.getCity()\n\t\t\t\t\t+ \"' , '\" + tDate + \"')\";\n\t\t\tstatement.executeUpdate(insertTeam_sql);\n\t\t} catch (SQLException e) {\n\t\t\tif (e.getErrorCode() == MYSQL_DUPLICATE_PK) {\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Error\");\n\t\t\t\talert.setHeaderText(\"Duplicity Error\");\n\t\t\t\talert.setContentText(\"This team is already in our database\");\n\t\t\t\talert.showAndWait();\n\t\t\t} else {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t}",
"@RequestMapping(value={\"/projects/add\"}, method= RequestMethod.GET)\r\n\tpublic String createProjectForm(Model model) {\r\n\t\tUser loggedUser= sessionData.getLoggedUser();\r\n\t\tmodel.addAttribute(\"loggedUser\", loggedUser);\r\n\t\tmodel.addAttribute(\"projectForm\", new Project());\r\n\t\treturn \"addProject\";\r\n\t}",
"@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}",
"@Test\n public void createValidFlightFromGUI() {\n JButton buttonAddFlight = addFlight.getButtonAddFlight();\n\n addFlight.getTxtflightname().setText(\"TEST_FLIGHT_NAME\");\n addFlight.getTxtdate().setDate(new Date(2021, 3, 30));\n addFlight.getTxtdtime().setText(\"TEST_DEPART_TIME\");\n addFlight.getTxtarrtime().setText(\"TEST_ARRIVAL_TIME\");\n addFlight.getTxtflightcharge().setText(\"TEST_FLIGHT_CHARGE\");\n addFlight.getTxtsource().setSelectedIndex(0);\n addFlight.getTxtdepart().setSelectedIndex(0);\n\n Mockito.when(mockDAO.createFlight(Mockito.any(Flight.class))).thenReturn(true);\n buttonAddFlight.doClick();\n robot.keyPress(KeyEvent.VK_ENTER);\n robot.keyRelease(KeyEvent.VK_ENTER);\n Mockito.verify(mockDAO).createFlight(Mockito.any(Flight.class));\n }",
"@Test\r\n\tpublic void saveTeamTeamplayerses() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamTeamplayerses \r\n\t\tInteger teamId_7 = 0;\r\n\t\tTeamplayers related_teamplayerses = new wsdm.domain.Teamplayers();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamTeamplayerses(teamId_7, related_teamplayerses);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamTeamplayerses\r\n\t}",
"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 void newQuest() {\n\t\tList <String> quests;\n\t\tif (activeQuest == null) {\n\t\t\tquests = QuestCfg.getStringList(\"quests.names\");\n\t\t} else {\n\t\t\tquests = activeQuest.getSuccessors();\n\t\t\tif (quests == null) {\n\t\t\t\tquests = QuestCfg.getStringList(\"quests.names\");\n\t\t\t}\n\t\t}\n\t\tbakeInstance.getLogger().info(\"[BAKE] Choosing new quest. Quests available: \" + quests.toString());\n\t\tint questID = (int) Math.round(Math.random()*(quests.size()-1));\n\t\tactiveQuest = new Quest(QuestCfg, quests.get(questID));\n\t}",
"public static AddNewScheduleDialog createInstance(int quantity){\n AddNewScheduleDialog frag = new AddNewScheduleDialog();\n frag.quantity = quantity;\n return frag;\n }",
"public void registrarMateria() {\n materia.setIdDepartamento(departamento);\n ejbFacade.create(materia);\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDialog').hide()\");\n items = ejbFacade.findAll();\n departamento = new Departamento();\n materia = new Materia();\n\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se registró con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n\n requestContext.update(\"MateriaListForm\");\n requestContext.update(\"MateriaCreateForm\");\n }",
"@GetMapping(\"/showFormForAdd\")\n\tpublic String showFormForAdd(Model theModel) {\n\t\tSkill theSkill = new Skill();\n\t\t\n\t\ttheModel.addAttribute(\"skill\", theSkill);\n\t\t\n\t\treturn \"skill-form\";\n\t}",
"public void createTeam(){\n\n if(!(validation())){\n return;\n }\n\n final ProgressDialog progressDialog = new ProgressDialog(getActivity());\n progressDialog.setMessage(\"Loading...\");\n progressDialog.show();\n\n RequestQueue requestQueue = Volley.newRequestQueue(getActivity());\n StringRequest stringRequest = new StringRequest(Request.Method.POST, \"http://192.169.138.14:4000/api/teams/create\", new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n Log.v(\"qwe\", response);\n progressDialog.dismiss();\n Gson gson = new Gson();\n TeamSucessWithId sucessResponse = gson.fromJson(response, TeamSucessWithId.class);\n String _message = sucessResponse.getMessage();\n int _status = sucessResponse.getStatus();\n int teamId = sucessResponse.getTeamId();\n //Toast.makeText(getActivity(), _status+\": \"+_message+\" \"+teamId, Toast.LENGTH_LONG).show();\n if(_status == 200){\n Toast.makeText(getActivity(), _status+\": \"+_message+\" \", Toast.LENGTH_LONG).show();\n Prefs.putString(getActivity(), Prefs.TEAM_LOGO, logoBitmap);\n Prefs.putString(getActivity(), Prefs.HOME_SHIRT, homeImgBitmap);\n Prefs.putString(getActivity(), Prefs.AWAY_SHIRT, awayShirtBitmap);\n Prefs.putString(getActivity(), Prefs.TEAM_NAME, teamName.getText().toString());\n Prefs.putString(getActivity(), Prefs.COACH, coachName.getText().toString());\n Prefs.putString(getActivity(), Prefs.COLOR, currentColor+\"\");\n Prefs.putString(getActivity(), Prefs.CITY_ID, mCity_Id+\"\");\n Prefs.putString(getActivity(), Prefs.FIELD_ID, \"\"+mField_Id);\n Prefs.putString(getActivity(), Prefs.TEAM_ID, teamId+\"\");\n startActivity(new Intent(getActivity(), InvitePlayerActivity.class));\n }else {\n\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n progressDialog.dismiss();\n Log.v(\"wsx\", \"======== \"+error+\"\");\n Toast.makeText(getActivity(), \"Unable to connect...\", Toast.LENGTH_LONG).show();\n }\n }){\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<>();\n headers.put(\"x-access-key\", Globels.ACCESS_KEY);\n headers.put(\"x-access-token\", Prefs.getString(getActivity(), Prefs.auth_key));\n headers.put(\"locale\", Globels.LOCAL);\n headers.put(\"Content-Type\", Globels.CONTENT_TYPE);\n return headers;\n }\n\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<>();\n //EditText teamName, colorName, coachName, groundName, teamCity;ss\n\n Log.v(\"kkk\", \"city====\"+mCity_Id);\n Log.v(\"jjj\", \"Field====\"+mField_Id);\n\n params.put(\"team_name\", teamName.getText().toString());\n params.put(\"color\", currentColor+\"\");\n params.put(\"coach\", coachName.getText().toString());\n// params.put(\"team_name\", \"dsfs\");\n// params.put(\"color\", \"\"+currentColor);\n// params.put(\"coach\", \"dsfs\");\n params.put(\"city\", \"\"+mCity_Id);\n params.put(\"shirt_home\", homeImgBitmap);\n params.put(\"shirt_away\", awayShirtBitmap);\n params.put(\"logo\", logoBitmap);\n params.put(\"found_date\", \"2017-05-15\");\n params.put(\"country\", \"1\");\n params.put(\"avg_age\", \"\");\n params.put(\"city_flexible\", \"0\");\n params.put(\"field_flexible\", \"0\");\n params.put(\"field_id\", \"\"+mField_Id);\n return params;\n }\n };;\n\n requestQueue.add(stringRequest);\n }",
"@ApiOperation(\"Creates a Team\")\n @PostMapping(\"/API/v1/team\")\n public ResponseEntity<TeamAPI> createTeam(@RequestParam String nombreEquipo){\n TeamString salida = teamService.crearTeam(nombreEquipo, false);\n\n if(salida.getSalida().equals(\"OK\")){\n return new ResponseEntity<>(salida.getTeam().toTeamAPI(), HttpStatus.OK);\n }\n else {\n return new ResponseEntity(salida.getSalida(), HttpStatus.NOT_FOUND);\n }\n\n }",
"@GetMapping(\"/directorForm\")\n public String addDirectors(Model model) {\n\n model.addAttribute(\"newDirector\", new Director());\n return \"directorForm\";\n }",
"@PostMapping(\"/tour-bubbls\")\n public ResponseEntity<TourBubblDTO> createTourBubbl(@Valid @RequestBody TourBubblDTO tourBubblDTO) throws URISyntaxException {\n log.debug(\"REST request to save TourBubbl : {}\", tourBubblDTO);\n if (tourBubblDTO.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"tourBubbl\", \"idexists\", \"A new tourBubbl cannot already have an ID\")).body(null);\n }\n TourBubblDTO result = tourBubblService.save(tourBubblDTO);\n return ResponseEntity.created(new URI(\"/api/tour-bubbls/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"tourBubbl\", result.getId().toString()))\n .body(result);\n }",
"public static Result newProduct() {\n Form<models.Product> productForm = form(models.Product.class).bindFromRequest();\n if(productForm.hasErrors()) {\n return badRequest(\"Tag name cannot be 'tag'.\");\n }\n models.Product product = productForm.get();\n product.save();\n return ok(product.toString());\n }",
"public frm_tutor_subida_prueba() {\n }",
"protected void onSubmit() {\n\n Building b = new Building(c.BuildingTypeId, c.StyleId, c.CityId,\n c.Architectural_element_Id, c.Agesid, c.Latitude, c.Longtitude,\n c.buildingname, c.Address);\n BuildingCollection bc = new BuildingCollection();\n bc.AddBuilding(b);\n this.setResponsePage(new BuildingListWithPropertiesPage());\n\n }",
"private void btnCreateHeroActionPerformed() {// GEN-FIRST:event_btnCreateHeroActionPerformed\r\n\t\tdispose();\r\n\t\tHero h = new Hero(txtCreateName.getText());\r\n\t\tnew MainForm().setVisible(true);\r\n\t\tMainForm.setHero(h);\r\n\t\tMainForm.makeOpponents();\r\n\t\th = null;\r\n\t}",
"@RequestMapping(\"/save\")\n\tpublic String createProjectForm(Project project, Model model) {\n\t\t\n\tproRep.save(project);\n\tList<Project> getall = (List<Project>) proRep.getAll();\n\tmodel.addAttribute(\"projects\", getall);\n\t\n\treturn \"listproject\";\n\t\t\n\t}",
"@PostMapping(value = \"/create\",consumes = MediaType.APPLICATION_JSON_VALUE)\n public InternationalTournaments create(@RequestBody InternationalTournaments create){\n return service.create(create);\n }",
"public NewProjectDialog(String pt) {\n\t\t\t\n\t\t\tsuper(frame, \"Add new project\");\n\t\t\tresetFields();\n\t\t\tpType = pt;\n\t\t\t\n\t\t\tfinal JDialog npd = this;\n\t\t\t\n\t\t\tpSDate.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpDeadline.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpEndDate.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpBudget.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpTotalCost.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpCompletion.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\t\n\t\t\tint x = frame.getLocation().x;\n\t\t\tint y = frame.getLocation().y;\n\t\t\t\n\t\t\tint pWidth = frame.getSize().width;\n\t\t\tint pHeight = frame.getSize().height;\n\t\t\t\n\t\t\tgetContentPane().setLayout(new BorderLayout());\n\t\t\t\n\t\t\tfinal JPanel fieldPanel = new JPanel();\n\t\t\t\n\t\t\tpCode.setText(portfolio.getNewCode());\n\t\t\tpCode.setEditable(false);\n\t\t\t\n\t\t\tif(pType.equals(\"o\")) {\n\t\t\t\tfieldPanel.setLayout(new GridLayout(7,3));\n\t\t\t\tSystem.out.println(\"ongoing\");\n\t\t\t\tthis.setPreferredSize(new Dimension(600,230));\n\t\t\t} else if(pType.equals(\"f\")) {\n\t\t\t\tfieldPanel.setLayout(new GridLayout(6,3));\n\t\t\t\tSystem.out.println(\"finished\");\n\t\t\t\tthis.setPreferredSize(new Dimension(600,200));\n\t\t\t}\n\t\t\tfieldPanel.add(new JLabel(\"Project Code :\"));\n\t\t\tfieldPanel.add(pCode);\n\t\t\tfieldPanel.add(msgCode);\t\t\n\t\t\tfieldPanel.add(new JLabel(\"Project Name :\"));\n\t\t\tfieldPanel.add(pName);\n\t\t\tfieldPanel.add(msgName);\n\t\t\tfieldPanel.add(new JLabel(\"Client :\"));\n\t\t\tfieldPanel.add(pClient);\n\t\t\tfieldPanel.add(msgClient);\n\t\t\tfieldPanel.add(new JLabel(\"Start date: \"));\n\t\t\tfieldPanel.add(pSDate);\n\t\t\tfieldPanel.add(msgSDate);\n\t\t\tmsgSDate.setText(DATE_FORMAT);\n\t\t\t\n\t\t\tif(pType.equals(\"o\")) {\n\t\t\t\tfieldPanel.add(new JLabel(\"Deadline :\"));\n\t\t\t\tfieldPanel.add(pDeadline);\n\t\t\t\tfieldPanel.add(msgDeadline);\n\t\t\t\tmsgDeadline.setText(DATE_FORMAT);\n\t\t\t\tfieldPanel.add(new JLabel(\"Budget :\"));\n\t\t\t\tfieldPanel.add(pBudget);\n\t\t\t\tfieldPanel.add(msgBudget);\n\t\t\t\tfieldPanel.add(new JLabel(\"Completion :\"));\n\t\t\t\tfieldPanel.add(pCompletion);\t\t\t\n\t\t\t\tfieldPanel.add(msgCompletion);\n\t\t\t\t\n\t\t\t} else if(pType.equals(\"f\")) {\n\t\t\t\tfieldPanel.add(new JLabel(\"End Date :\"));\n\t\t\t\tfieldPanel.add(pEndDate);\n\t\t\t\tfieldPanel.add(msgEndDate);\n\t\t\t\tmsgEndDate.setText(DATE_FORMAT);\n\t\t\t\tfieldPanel.add(new JLabel(\"Total Cost :\"));\n\t\t\t\tfieldPanel.add(pTotalCost);\n\t\t\t\tfieldPanel.add(msgTotalCost);\n\t\t\t}\n\t\t\t\n\t\t\tJPanel optionButtons = new JPanel();\n\t\t\toptionButtons.setLayout(new FlowLayout());\n\t\t\t\n\t\t\tJButton btnAdd = new JButton(\"Add\");\n\t\t\tbtnAdd.addActionListener(new ActionListener() {\n\n\t\t\t\t/**\n\t\t\t\t * Validates the information entered by the user and adds the project to the\n\t\t\t\t * Portfolio object if data is valid.\n\t\t\t\t */\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\n\t\t\t\t\tif(validateForm()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tProject prj = compileProject();\n\t\t\t\t\t\tportfolio.add(prj,config.isUpdateDB());\n\t\t\t\t\t\tif(prj instanceof OngoingProject) {\n\t\t\t\t\t\t\tProjectTableModel tm = (ProjectTableModel) opTable.getModel();\n\t\t\t\t\t\t\ttm.addRow(prj.toTable());\n\t\t\t\t\t\t\topTable.setModel(tm);\n\t\t\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\t\ttoggleSaved(false);\n\t\t\t\t\t\t\tsel.add(pCode.getText());\n\t\t\t\t\t\t} else if (prj instanceof FinishedProject) {\n\t\t\t\t\t\t\tProjectTableModel tm = (ProjectTableModel) fpTable.getModel();\n\t\t\t\t\t\t\ttm.addRow(prj.toTable());\n\t\t\t\t\t\t\tfpTable.setModel(tm);\n\t\t\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\t\ttoggleSaved(false);\n\t\t\t\t\t\t\tsel.add(pCode.getText());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnpd.dispose();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t\toptionButtons.add(btnAdd);\n\t\t\t\n\t\t\tJButton btnClose = new JButton(\"Close\");\n\t\t\tbtnClose.addActionListener(new ActionListener() {\n\n\t\t\t\t/* Closes the NewProjectDialog window. */\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tnpd.dispose();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t\t\n\t\t\toptionButtons.add(btnClose);\n\t\t\tgetContentPane().add(new JLabel(\"Enter the data for your new \" + getPType(pType) + \" project:\"), BorderLayout.PAGE_START);\n\t\t\tthis.add(fieldPanel, BorderLayout.CENTER);\n\t\t\tthis.add(optionButtons, BorderLayout.PAGE_END);\n\n\t\t\tthis.pack();\n\t\t\t\t\t\n\t\t\tint width = this.getSize().width;\n\t\t\tint height = this.getSize().height;\n\t\t\t\n\t\t\tthis.setLocation(new Point((x+pWidth/2-width/2),(y+pHeight/2-height/2)));\n\t\t\tthis.setVisible(true);\n\t\t}",
"@RequestMapping(value = \"/team/{league}\", method = POST, consumes = MEDIA_JSON)\n @ResponseStatus(CREATED)\n public LobbyTeam createTeamAndEnter(@AuthenticationPrincipal UserSimpleDetails user,\n @PathVariable(\"league\") LobbyLeagueEnum league)\n throws TeamFullException, TeamNotFoundException {\n log.info(\"user {} creates team\", user.getIdentity());\n LobbyTeam team = lobbyService.createTeam(user.getProfileId(), league);\n return lobbyService.enterIntoTeam(user.getProfileId(), team.getId().toString());\n }",
"public static void create(Formulario form){\n daoFormulario.create(form);\n }",
"@Test\r\n\tpublic void saveTeamProgram() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamProgram \r\n\t\tInteger teamId_1 = 0;\r\n\t\tProgram related_program = new wsdm.domain.Program();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamProgram(teamId_1, related_program);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamProgram\r\n\t}",
"public Teams() {\n initComponents();\n }",
"List<Subdivision> create(List<Subdivision> subdivisions);",
"@Override\n\tpublic Campus create(long campusId) {\n\t\tCampus campus = new CampusImpl();\n\n\t\tcampus.setNew(true);\n\t\tcampus.setPrimaryKey(campusId);\n\n\t\treturn campus;\n\t}",
"public TeamCoach(){\n }",
"private void jButtonNewStageplaatsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNewStageplaatsActionPerformed\n\n this.geselecteerdeStageplaats = new Stageplaats();\n this.geselecteerdeStageplaats.setSitueertID((Situeert)this.jComboBoxSitueert.getSelectedItem());\n this.geselecteerdeStageplaats.getSitueertID().setSpecialisatieID((Specialisatie)this.jComboBoxSpecialisatie.getSelectedItem());\n this.geselecteerdeStageplaats.setBedrijfID(null);\n this.geselecteerdeStageplaats.setAanmaakDatum(new Date());\n this.geselecteerdeStageplaats.setLaatsteWijziging(new Date());\n this.geselecteerdeStageplaats.setStudentStageplaatsList(new ArrayList<StudentStageplaats>());\n refreshDataCache();\n ClearDisplayedStageplaats();\n refreshDisplayedStageplaats();\n enableButtons();\n }",
"public void onCreate() {\r\n Session session = sessionService.getCurrentSession();\r\n Map<String, Region> items = ControlUtility.createForm(Pc.class);\r\n\r\n ControlUtility.fillComboBox((ComboBox<Kind>) items.get(\"Kind\"), session.getCampaign().getCampaignVariant().getKinds());\r\n ControlUtility.fillComboBox((ComboBox<Race>) items.get(\"Race\"), session.getCampaign().getCampaignVariant().getRaces());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Ability>) items.get(\"SavingThrows\"), Arrays.asList(Ability.values()));\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Proficiency>) items.get(\"Proficiencies\"), session.getCampaign().getCampaignVariant().getProficiencies());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Feature>) items.get(\"Features\"), session.getCampaign().getCampaignVariant().getFeatures());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Trait>) items.get(\"Traits\"), session.getCampaign().getCampaignVariant().getTraits());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Equipment>) items.get(\"Equipment\"), session.getCampaign().getCampaignVariant().getEquipments());\r\n\r\n Campaign campaign = session.getCampaign();\r\n\r\n Dialog<String> dialog = ControlUtility.createDialog(\"Create Playable Character\", items);\r\n dialog.show();\r\n\r\n dialog.setResultConverter(buttonType -> {\r\n if (buttonType != null) {\r\n Pc pc = null;\r\n try {\r\n pc = ControlUtility.controlsToValues(Pc.class, items);\r\n } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException | InstantiationException | ClassNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n if (pc != null) {\r\n try {\r\n characterService.createPlayerCharacter(pc);\r\n } catch (SessionAlreadyExists | IndexAlreadyExistsException sessionAlreadyExists) {\r\n sessionAlreadyExists.printStackTrace();\r\n }\r\n try {\r\n playerManagementService.addOrUpdatePcForRegisteredPlayer(pc);\r\n Player player = playerManagementService.getRegisteredPlayer();\r\n campaign.addPlayer(player);\r\n campaign.addCharacter(pc);\r\n if (campaignListingService.campaignExists(campaign.getId())) {\r\n manipulationService.updateCampaign(campaign);\r\n } else {\r\n manipulationService.createCampaign(campaign);\r\n }\r\n } catch (MultiplePlayersException | EntityNotFoundException | SessionAlreadyExists | IndexAlreadyExistsException e) {\r\n e.printStackTrace();\r\n }\r\n try {\r\n playerManagementService.addOrUpdatePcForRegisteredPlayer(pc);\r\n } catch (MultiplePlayersException | EntityNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n try {\r\n sessionService.updateParticipant(playerManagementService.getRegisteredPlayer().getId(), pc.getId());\r\n sessionService.updateCampaign(campaign);\r\n } catch (EntityNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n render();\r\n return pc.toString();\r\n }\r\n }\r\n return null;\r\n });\r\n }",
"public void createButtonClicked() {\n clearInputFieldStyle();\n setAllFieldsAndSliderDisabled(false);\n setButtonsDisabled(false, true, true);\n setDefaultValues();\n Storage.setSelectedRaceCar(null);\n }",
"@Test\n\tpublic void TEAM3_CONTROLLER_UT13() {\n\t\t// PRECONDITIONS\n\t\tCourseStub.initializeCourses();\n\t\t\n\t\tString campus = \"All\";\n\t\tString term = \"Spring 2015\";\n\t\t\n\t\tClassDetailsStub dat1345 = new ClassDetailsStub(TEST_CONFIG.SatOnly);\n\t\t\n\t\tScheduleOptionsStub s = new ScheduleOptionsStub();\n\t\ts.setCampus(campus);\n\t\ts.setTerm(term);\n\t\ts.setCourse4(dat1345.getCourse());\n\t\t\n\t\tScheduleMakerController smc = new ScheduleMakerController();\n\t\t\n\t\t// INPUT\n\t\tCollection<ScheduleStub> schedulesReturned = smc.createSchedule(s);\n\t\t\n\t\t// EXPECTED OUTPUT\n\t\tassertEquals(0, schedulesReturned.size());\n\t}",
"@Test\n public void createFormSceduleEntry(){\n ScheduleEntry entry = new ScheduleEntry(\"9;00AM\", new SystemCalendar(2018,4,25));\n }",
"void createSportItem (String name, String description, double price, String sportType);",
"@PostMapping(\"/createNewGameRoom\")\n @ResponseStatus(HttpStatus.CREATED)\n public Game generateNewGameRoom() {\n String entrycode = service.generateEntryCode();\n currentGame.setEntrycode(entrycode);\n currentGame = gameDao.add(currentGame);\n return currentGame;\n }",
"public void AddNewSkill()\n\t{\n\t\t\n\t}",
"@ApiMethod(\n \t\tname = \"createProject\", \n \t\tpath = \"createProject\", \n \t\thttpMethod = HttpMethod.POST)\n public Project createProject(final ProjectForm projectForm) {\n\n final Key<Project> projectKey = factory().allocateId(Project.class);\n final long projectId = projectKey.getId();\n final Queue queue = QueueFactory.getDefaultQueue();\n \n // Start transactions\n Project project = ofy().transact(new Work<Project>(){\n \t@Override\n \tpublic Project run(){\n \t\tProject project = new Project(projectId, projectForm);\n ofy().save().entities(project).now();\n \n return project;\n \t}\n }); \n return project;\n }",
"private void addTeacher() {\n\t\t\n\t\tString lastName = tLastNameTF.getText();\n\t\tString firstName = tFirstNameTF.getText();\n\t\tString schoolName = tSchoolNameTF.getText();\n\t\tString userName = tUsernameTF.getText();\n\t\tchar[] password = tPasswordPF1.getPassword();\n\t\tString sA1 = tSecurityQ1TF.getText();\n\t\tString sQ1 = (String)tSecurityList1.getSelectedItem();\n\t\tString sA2 = tSecurityQ2TF.getText();\n\t\tString sQ2 = (String)tSecurityList2.getSelectedItem();\n\t\t\n\t\tteacher = new Teacher(lastName, firstName, schoolName, userName, password, sA1, sQ1, sA2, sQ2);\n\t\t\n\t\t//Add teacher to database \n\t\t\n\t}",
"public void onSelectionCreate(ActionEvent event) throws SQLException {\n //TODO think about creating league model class to get id easily\n if(chooseAgeGroupCreate.getValue() != null && chooseCityBoxCreate.getValue() != null){\n chooseLeagueBoxCreate.setDisable(false);\n chooseLeagueTeamBoxCreate.getItems().clear();\n chooseLeagueBoxCreate.getItems().clear();\n ObservableList<String> leagueList = DatabaseManager.getLeagues(user, chooseCityBoxCreate.getValue().toString(), chooseAgeGroupCreate.getValue());\n chooseLeagueBoxCreate.getSelectionModel().clearSelection();\n chooseLeagueBoxCreate .setButtonCell(new ListCell<String>() {\n @Override\n protected void updateItem(String item, boolean empty) {\n super.updateItem(item, empty) ;\n if (empty || item == null) {\n setText(\"Choose League\");\n } else {\n setText(item);\n }\n }\n });\n if(leagueList.size() != 0){\n chooseLeagueBoxCreate.getItems().addAll(leagueList);\n }\n }\n }",
"public Arena() \r\n {\r\n setVenueName(\"\");\r\n setCity(\"\");\r\n setState(\"\");\r\n setMaxCapacity(0);\r\n setYearOpened(0);\r\n team = new Tenant();\r\n }",
"public FragmentTeam() {\n // Required empty public constructor\n }",
"public String formCreated()\r\n {\r\n return formError(\"201 Created\",\"Object was created\");\r\n }",
"public void newGame()\n\t{\n\t\tthis.setVisible(false);\n\t\tthis.playingField = null;\n\t\t\n\t\tthis.playingField = new PlayingField(this);\n\t\tthis.setSize(new Dimension((int)playingField.getSize().getWidth()+7, (int)playingField.getSize().getHeight() +51));\n\t\tthis.setLocation(new Point(200,20));\n\t\tthis.setContentPane(playingField);\n\t\t\n\t\tthis.setVisible(true);\n\t}",
"public void clickCreate() {\n\t\tbtnCreate.click();\n\t}",
"void addMyTeam(Team team) throws HasTeamAlreadyException;",
"@ModelAttribute(\"student\")\n public Student_gra_84 setupAddForm() {\n return new Student_gra_84();\n }",
"public void createGamefield() {\n\t\tif (playerList == null)\n\t\t\tplayerList = new ArrayList<>();\n\t\tif (playerList.size() < 1) {\n\t\t\tcreateGameField(chordImpl.getID());\n\t\t\tCollections.sort(playerList);\n\t\t\tplayerList.remove(ownPlayer);\n\t\t\townPlayer.setShips();\n\t\t\tGUIMessageQueue.getInstance().addMessage(\"Field Created!\");\n\t\t}\n\t}",
"void create(Trubriques trubriques);",
"@Override\n\tpublic Oglas createNewOglas(NewOglasForm oglasForm) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\n\t\tOglas oglas = new Oglas();\n\t\tSystem.out.println(oglas.getId());\n\t\toglas.setNaziv(oglasForm.getNaziv());\n\t\toglas.setOpis(oglasForm.getOpis());\n\t\ttry {\n\t\t\toglas.setDatum(formatter.parse(oglasForm.getDatum()));\n\t\t\tSystem.out.println(oglas.getDatum());\n System.out.println(formatter.format(oglas.getDatum()));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn repository.save(oglas);\n\t}",
"public NewProjectForm(String id, PageParameters param) {\r\n super(id);\r\n\r\n setModel(new CompoundPropertyModel(this));\r\n add(new TextField(\"projectName\"));\r\n add(new TextField(\"ownerName\"));\r\n add(new PasswordTextField(\"password\"));\r\n add(new TextField(\"svnUrl\"));\r\n add(new FeedbackPanel(\"errors\"));\r\n \r\n if (param.getBoolean(\"NoProject\")) {\r\n error(\"No project exists, please create one first.\");\r\n }\r\n }",
"public void saveNewProject(){\n String pn = tGUI.ProjectTextField2.getText();\n String pd = tGUI.ProjectTextArea1.getText();\n String statusID = tGUI.StatusComboBox.getSelectedItem().toString();\n String customerID = tGUI.CustomerComboBox.getSelectedItem().toString();\n\n int sstatusID = getStatusID(statusID);\n int ccustomerID = getCustomerID(customerID);\n\n try {\n pstat = cn.prepareStatement (\"insert into projects (project_name, project_description, project_status_id, customer_id) VALUES (?,?,?,?)\");\n pstat.setString(1, pn);\n pstat.setString(2,pd);\n pstat.setInt(3, sstatusID);\n pstat.setInt(4, ccustomerID);\n pstat.executeUpdate();\n\n }catch (SQLException ex) {\n Logger.getLogger(ProjectMethods.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void crear(Tarea t) {\n t.saveIt();\n }",
"public NewJFrame() {\n initComponents();\n \n \n //combo box\n comboCompet.addItem(\"Séléction officielle\");\n comboCompet.addItem(\"Un certain regard\");\n comboCompet.addItem(\"Cannes Courts métrages\");\n comboCompet.addItem(\"Hors compétitions\");\n comboCompet.addItem(\"Cannes Classics\");\n \n \n //redimension\n this.setResizable(false);\n \n planning = new Planning();\n \n \n }",
"private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}",
"@POST\n @Consumes({\"application/json\"})\n @Produces({\"application/json\"})\n public RestRsp<Tp> createSite(final Tp tp) throws ServiceException {\n ScopeChecker.checkScope(tp);\n return new RestRsp<Tp>(ResultConstants.SUCCESS, service.createTp(tp));\n }",
"@Test\n public void newTeacher() {\n driver.get(\"http://localhost:3000/teacher\");\n log.info(() -> \"Successfully enter the localhost:3000/teacher for adding a new teacher. time: \" + LocalDateTime.now());\n\n //Button for opening teacher form\n WebElement buttonPlus = driver.findElement(By.xpath(\"/html/body/div/div/main/div[2]/button\"));\n buttonPlus.click();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n TeacherForm teacherForm = new TeacherForm(driver);\n Assertions.assertTrue(teacherForm.isInitialized());\n log.info(() -> \"Teacher form is initialized! time: \" + LocalDateTime.now());\n //I found save button with xpath\n teacherForm.setSaveButton(\"/html/body/div/div/main/div[2]/div[2]/form/div[4]/button[1]\");\n teacherForm.newTeacher(\"Mirko\",\"Vukovic\", \"mirko@gmail.com\");\n\n ReceiptPage newTeacherForm = teacherForm.submitSave();\n log.info(() -> \"Submit new teacher was successfully! time: \" + LocalDateTime.now());\n Assertions.assertTrue(newTeacherForm.isInitialized());\n }",
"@Test\r\n\tpublic void saveTeamGamesForVisitorTeamFk() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamGamesForVisitorTeamFk \r\n\t\tInteger teamId_4 = 0;\r\n\t\tGame related_gamesforvisitorteamfk = new wsdm.domain.Game();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamGamesForVisitorTeamFk(teamId_4, related_gamesforvisitorteamfk);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamGamesForVisitorTeamFk\r\n\t}",
"public New_shipment() {\n initComponents();\n init();\n \n }",
"@PostMapping(\"/addPharmacist\")\n public String pharmacistSubmit(@ModelAttribute Pharmacist pharmacist) {\n \t\n jdbcTemplate.update(\"insert into lshoemake.pharmacist values (?, ?, ?, ?, ?, ?)\", \n \t\tpharmacist.getPhID(), pharmacist.getLastName(), \n \t\tpharmacist.getFirstName(), pharmacist.getDOB(), \n \t\tpharmacist.getDeptID() == 0 ? null : pharmacist.getDeptID(), \n \t\tpharmacist.getOfficeNumber() == 0 ? null : pharmacist.getOfficeNumber());\n\n return \"success\";\n }",
"@Override\r\n\t@Transactional(propagation=Propagation.REQUIRED)\r\n\tpublic void add(Team team) {\n\t\tentityManager.createQuery(\"insert into Team(id, name) values (team.id, team.name)\");\r\n\t}",
"public CreateAccount() {\n initComponents();\n selectionall();\n }",
"@POST\n @Path(\"venues\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(\"application/json\")\n public Venue newVenue(Venue ven){\n serv.editVenue(ven);\n return ven;\n }",
"public String newBoleta() {\n\t\tresetForm();\n\t\treturn \"/boleta/insert.xhtml\";\n\t}",
"@RequestMapping(value = \"/tshirt\", method = RequestMethod.POST)\n @ResponseStatus(value = HttpStatus.CREATED)\n public TShirt addTShirt(@RequestBody @Valid TShirt tShirt) {\n return serviceLayer.addTShirt(tShirt);\n }"
] | [
"0.6804973",
"0.60752815",
"0.5823618",
"0.57759005",
"0.5739509",
"0.5546151",
"0.55455285",
"0.5527132",
"0.54458797",
"0.53841376",
"0.5297071",
"0.52258843",
"0.5221356",
"0.52047944",
"0.5181916",
"0.51761305",
"0.5156771",
"0.5147452",
"0.5137484",
"0.5124507",
"0.5056141",
"0.5041864",
"0.5038383",
"0.5018244",
"0.49955693",
"0.49944565",
"0.49766085",
"0.49695963",
"0.49348503",
"0.49326512",
"0.4930184",
"0.49138752",
"0.4905409",
"0.4892887",
"0.48793855",
"0.48648262",
"0.48619735",
"0.4857542",
"0.48482516",
"0.4836335",
"0.4830733",
"0.48245427",
"0.48236614",
"0.48222667",
"0.48162013",
"0.481503",
"0.48124033",
"0.4805529",
"0.47771832",
"0.47762042",
"0.47746032",
"0.4771592",
"0.47646636",
"0.47571176",
"0.47559196",
"0.47559056",
"0.47508958",
"0.47505257",
"0.4750288",
"0.473195",
"0.47288412",
"0.47271007",
"0.4722818",
"0.47155383",
"0.46943533",
"0.46873698",
"0.46864974",
"0.4685736",
"0.46826655",
"0.46797353",
"0.46792766",
"0.46728018",
"0.46725264",
"0.4670728",
"0.4669212",
"0.46627071",
"0.46554527",
"0.46553162",
"0.4652905",
"0.4650919",
"0.46422848",
"0.4641668",
"0.46415058",
"0.46384442",
"0.46379486",
"0.46257365",
"0.46221492",
"0.4621522",
"0.46202552",
"0.46186876",
"0.461571",
"0.46146113",
"0.46136925",
"0.4609787",
"0.46056464",
"0.46044013",
"0.45989212",
"0.45971105",
"0.45965263",
"0.45951286"
] | 0.52590257 | 11 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel6 = new javax.swing.JLabel();
infoTeamBtn = new javax.swing.JButton();
teamSquadBtn = new javax.swing.JButton();
jLabel5 = new javax.swing.JLabel();
centreForwardCbx2 = new javax.swing.JComboBox<>();
centreForwardCbx1 = new javax.swing.JComboBox<>();
midfielderCbx2 = new javax.swing.JComboBox<>();
midfielderCbx1 = new javax.swing.JComboBox<>();
defenderCbx1 = new javax.swing.JComboBox<>();
defenderCbx2 = new javax.swing.JComboBox<>();
goalkeeperCbx = new javax.swing.JComboBox<>();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
jLabel9 = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
tablePlayer = new javax.swing.JTable();
bestLineUpBtn = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jLabel6.setText("ỨNG DỤNG QUẢN LÝ ĐỘI BÓNG");
infoTeamBtn.setText("THÔNG TIN ĐỘI BÓNG");
infoTeamBtn.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
infoTeamBtnActionPerformed(evt);
}
});
teamSquadBtn.setText("CHỈNH SỬA ĐỘI HÌNH");
teamSquadBtn.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
teamSquadBtnActionPerformed(evt);
}
});
jLabel5.setText("@author Vu Dai Duong");
jLabel1.setText("Tiền đạo");
jLabel2.setText("Tiền đạo");
jLabel3.setText("Tiền vệ");
jLabel4.setText("Tiền vệ");
jLabel7.setText("Hậu vệ");
jLabel8.setText("Hậu vệ");
jLabel9.setText("Thủ môn");
tablePlayer.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null, null},
{null, null, null, null, null},
{null, null, null, null, null},
{null, null, null, null, null},
{null, null, null, null, null},
{null, null, null, null, null},
{null, null, null, null, null},
{null, null, null, null, null}
},
new String [] {
"STT", "Họ và tên", "Vị trí", "Chỉ số", "Tuổi"
}
));
jScrollPane1.setViewportView(tablePlayer);
bestLineUpBtn.setText("Đội hình tối ưu");
bestLineUpBtn.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
bestLineUpBtnActionPerformed(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()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel5))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, 160, Short.MAX_VALUE))
.addComponent(infoTeamBtn, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(teamSquadBtn, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(129, 129, 129)
.addComponent(jLabel9)
.addGap(18, 18, 18))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel4)
.addComponent(jLabel3))
.addGap(23, 23, 23)))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(midfielderCbx2, 0, 130, Short.MAX_VALUE)
.addComponent(midfielderCbx1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addComponent(goalkeeperCbx, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(layout.createSequentialGroup()
.addGap(25, 25, 25)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel1)
.addComponent(jLabel7))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(defenderCbx1, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(centreForwardCbx1, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(27, 27, 27)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel8)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(defenderCbx2, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(centreForwardCbx2, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)))))))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(bestLineUpBtn, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 344, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(centreForwardCbx2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(centreForwardCbx1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel1)
.addComponent(jLabel2))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(infoTeamBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(midfielderCbx2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel3))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(42, 42, 42)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(teamSquadBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(defenderCbx1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(defenderCbx2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel7)
.addComponent(jLabel8)))
.addGroup(layout.createSequentialGroup()
.addGap(11, 11, 11)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(midfielderCbx1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel4))
.addGap(132, 132, 132)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(goalkeeperCbx, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel9)
.addComponent(bestLineUpBtn)))))
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 67, Short.MAX_VALUE)
.addComponent(jLabel5)
.addContainerGap())
);
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}",
"public kunde() {\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"@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 MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public frmVenda() {\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 Botonera() {\n initComponents();\n }",
"public FrmMenu() {\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 Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public POS1() {\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.731952",
"0.72909003",
"0.72909003",
"0.72909003",
"0.72862417",
"0.7248404",
"0.7213685",
"0.72086793",
"0.7195972",
"0.71903807",
"0.71843296",
"0.7158833",
"0.71475875",
"0.70933676",
"0.7081167",
"0.7056787",
"0.69876975",
"0.6977383",
"0.6955115",
"0.6953839",
"0.69452274",
"0.6942602",
"0.6935845",
"0.6931919",
"0.6928187",
"0.6925288",
"0.69251484",
"0.69117147",
"0.6911646",
"0.6892842",
"0.68927234",
"0.6891408",
"0.68907607",
"0.68894386",
"0.68836755",
"0.688209",
"0.6881168",
"0.68787616",
"0.68757504",
"0.68741524",
"0.68721044",
"0.685922",
"0.68570775",
"0.6855737",
"0.6855207",
"0.68546575",
"0.6853559",
"0.6852262",
"0.6852262",
"0.68443567",
"0.6837038",
"0.6836797",
"0.68291426",
"0.6828922",
"0.68269444",
"0.6824652",
"0.682331",
"0.68175536",
"0.68167555",
"0.6810103",
"0.6809546",
"0.68085015",
"0.68083894",
"0.6807979",
"0.68027437",
"0.67950374",
"0.67937446",
"0.67921823",
"0.67911226",
"0.67900467",
"0.6788873",
"0.67881",
"0.6781613",
"0.67669237",
"0.67660683",
"0.6765841",
"0.6756988",
"0.675558",
"0.6752552",
"0.6752146",
"0.6742482",
"0.67395985",
"0.673791",
"0.6736197",
"0.6733452",
"0.67277217",
"0.6726687",
"0.67204696",
"0.67168",
"0.6714824",
"0.6714823",
"0.6708782",
"0.67071444",
"0.670462",
"0.67010295",
"0.67004406",
"0.6699407",
"0.6698219",
"0.669522",
"0.66916007",
"0.6689694"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String toString() {
return "Holder = " + getHolder()
+ " Balance = " + getBalance()
+ " Creation Date = " + getCreationDate().toString();
} | {
"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 |
Attempts to load a model which could be a local file, an already loaded model or an external file. | private Optional<RuntimeModel> loadImportById(String id) {
Optional<RuntimeModel> runtimeModelOp = registry.get(id);
if (runtimeModelOp.isPresent()) {
return runtimeModelOp;
}
Optional<String> modelPath = runtimeOptions.modelPath(id);
if (modelPath.isPresent()) {
return registry.registerFile(modelPath.get());
}
if (runtimeOptions.isAllowExternal()) {
return externalImportService.registerExternalImport(id);
}
return Optional.empty();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public StillModel loadModel(String filepath);",
"protected final Model loadModel(String path, RenderOptions options) {\n // Builtin models\n if (path.equals(\"builtin/generated\")) {\n return new GeneratedModel();\n }\n\n Model model = openGsonObject(Model.class, ResourceType.MODELS, path);\n if (model == null) {\n Logging.LOGGER_MAPDISPLAY.once(Level.WARNING, \"Failed to load model \" + path);\n return null;\n }\n\n // Handle overrides first\n if (model.overrides != null && !model.overrides.isEmpty()) {\n for (Model.ModelOverride override : model.overrides) {\n if (override.matches(options) && !override.model.equals(path)) {\n //System.out.println(\"MATCH \" + override.model + \" \" + options);\n return this.loadModel(override.model, options);\n }\n }\n }\n\n // Insert the parent model as required\n if (model.getParentName() != null) {\n Model parentModel = this.loadModel(model.getParentName(), options);\n if (parentModel == null || parentModel.placeholder) {\n Logging.LOGGER_MAPDISPLAY.once(Level.WARNING, \"Parent of model \" + path + \" not found: \" + model.getParentName());\n return null;\n }\n model.loadParent(parentModel);\n }\n\n // Make all texture paths absolute\n model.build(this, options);\n return model;\n }",
"public Model loadModel( File modelFile ) throws FileNotFoundException, ParseException, LemException, IOException {\n Lem l = new Lem();\n FileInputStream fis = new FileInputStream( modelFile );\n \n return l.parse( fis );\n }",
"@Test\r\n\tpublic void testModelLoading() {\n\t\tString absoluteFilePath = \"\";\r\n\t\ttry {\r\n\t\t\tabsoluteFilePath = getAbsoluteFilePath(\"simpletll.stlsimulation\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tAssert.fail(\"Couldn't compute absolute file path.\");\r\n\t\t}\r\n\t\t\r\n\t\t// Load STL simulation model with ModelLoader\r\n\t\tfinal SimulationModel simulationModel = ModelLoader.load(absoluteFilePath);\r\n\t\t\r\n\t\t// Check contents of loaded STL simulation model \r\n\t\tAssert.assertNotNull(simulationModel);\r\n\t\tat.ac.tuwien.big.stl.System system = simulationModel.getSystem();\r\n\t\tAssert.assertNotNull(system);\r\n\t\tAssert.assertEquals(\"SimpleTransportationLine\", system.getName());\r\n\t}",
"public boolean loadModel() throws Exception{\r\n\t\t\r\n\t\tboolean rB = false ;\r\n\t\tModelCatalogItem mcItem ;\r\n\t\t\r\n\t\t// before, we have determined name and version according to the request options (e.g. \"latest\")\r\n\t\tmcItem = soappModelCatalog.getItemByModelname( activeModel, activeVersion ); \r\n\t\t// here, an active version should always be defined, if not, the first one will be selected\r\n\t\t\r\n\t\t\r\n\t\tif (mcItem != null){\r\n\t\t\t\t\t\t\t\t\t\t\tout.print(2, \"loading resources for requested model <\"+activeModel+\">, version <\"+activeVersion+\"> ... \") ;\r\n\t\t\t\r\n\t\t\tif ((somData==null) || (somData.getData().getColumnHeaders().size()==0)){\t\t\t\t\t\t\r\n\t\t\t\tsomApplication.loadSource();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// this also sets the data\r\n\t\t\tsoappTransformer = loadSomAppTransformer(mcItem);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\trB= transformIncomingData();\r\n\t\t\t\r\n\t\t\tsoappClassifier = loadSomAppClassifier(mcItem);\r\n\r\n\t\t\trB= (soappTransformer!=null) && (soappClassifier!=null);\r\n\t\t}else{\r\n\t\t\tout.print(2, \"identification resources for requested model <\"+activeModel+\"> failed.\") ;\r\n\t\t}\r\n\t\treturn rB;\r\n\t}",
"public void loadModel(int modelId) {\n \t\tif(this.openGLModelConfiguration != null) {\r\n \t\t\tthis.fireOnModelDataEvent(this.openGLModelConfiguration, false);\r\n \t\t} else {\r\n \t\t\tcacheManager.readModelAsync(modelId, this);\r\n \t\t}\r\n \t}",
"protected final Model loadModel(String path) {\n return this.loadModel(path, BlockData.AIR.getDefaultRenderOptions());\n }",
"public void loadModel(){\n remoteModel = new FirebaseCustomRemoteModel.Builder(dis).build();\n FirebaseModelManager.getInstance().getLatestModelFile(remoteModel)\n .addOnCompleteListener(new OnCompleteListener<File>() {\n @Override\n public void onComplete(@NonNull Task<File> task) {\n File modelFile = task.getResult();\n if (modelFile != null) {\n interpreter = new Interpreter(modelFile);\n // Toast.makeText(MainActivity2.this, \"Hosted Model loaded.. Running interpreter..\", Toast.LENGTH_SHORT).show();\n runningInterpreter();\n }\n else{\n try {\n InputStream inputStream = getAssets().open(dis+\".tflite\");\n byte[] model = new byte[inputStream.available()];\n inputStream.read(model);\n ByteBuffer buffer = ByteBuffer.allocateDirect(model.length)\n .order(ByteOrder.nativeOrder());\n buffer.put(model);\n //Toast.makeText(MainActivity2.this, dis+\"Bundled Model loaded.. Running interpreter..\", Toast.LENGTH_SHORT).show();\n interpreter = new Interpreter(buffer);\n runningInterpreter();\n } catch (IOException e) {\n // File not found?\n Toast.makeText(MainActivity2.this, \"No hosted or bundled model\", Toast.LENGTH_SHORT).show();\n }\n }\n }\n });\n }",
"public Object loadModelClass(String name) throws ModelManagerException {\n\t\tClassLoader cl = getClassLoader();\n\t\tString pkg = getModelPackageStr();\n\t\ttry {\n\t\t\tClass<?> af = cl.loadClass(pkg + name);\n\t\t\treturn af.newInstance();\n\t\t} catch (Exception e) {\n\t\t\tthrow new ModelManagerException(\"Error loading the model class '\" + name + \"' of package '\"\n\t\t\t\t\t+ (pkg != \"\" ? pkg : \"(default)\") + \"'.\", e);\n\t\t}\n\t}",
"ScenarioModel loadScenarioModel() throws ModelSerializationException, ModelConversionException;",
"public static LanguageModel load() throws Exception {\n try {\n if (lm_ == null) {\n FileInputStream fiA = new FileInputStream(Config.languageModelFile);\n ObjectInputStream oisA = new ObjectInputStream(fiA);\n lm_ = (LanguageModel) oisA.readObject();\n }\n } catch (Exception e) {\n throw new Exception(\"Unable to load language model. You may not have run buildmodels.sh!\");\n }\n return lm_;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic void loadModel(File model_file) throws IOException, ClassNotFoundException{\n\t\t// Load Model From File\n\t\tSystem.out.println(\"Loading Training Model. Please wait.\");\n\t\tFileInputStream fileIn = new FileInputStream(model_file);\n\t\tObjectInputStream objIn = new ObjectInputStream(fileIn); \n\t\tmClassifier = (LMClassifier<NGramProcessLM, MultivariateEstimator>) objIn.readObject();\n\t\tobjIn.close();\n\t\tisTrained = true;\n\t\tSystem.out.println(\"Loading Model. Complete.\");\n\t}",
"public static LanguageModel load() throws Exception {\n\t\ttry {\n\t\t\tif (lm_==null){\n\t\t\t\tFileInputStream fiA = new FileInputStream(Config.languageModelFile);\n\t\t\t\tObjectInputStream oisA = new ObjectInputStream(fiA);\n\t\t\t\tlm_ = (LanguageModel) oisA.readObject();\n\t\t\t}\n\t\t} catch (Exception e){\n\t\t\tthrow new Exception(\"Unable to load language model. You may have not run build corrector\");\n\t\t}\n\t\treturn lm_;\n\t}",
"private void initializeModel() {\n\t\tmodel = new Model();\n\n\t\t// load up playersave\n\t\ttry {\n\t\t\tFileInputStream save = new FileInputStream(\"playersave.ser\");\n\t\t\tObjectInputStream in = new ObjectInputStream(save);\n\t\t\tmodel = ((Model) in.readObject());\n\t\t\tin.close();\n\t\t\tsave.close();\n\t\t\tSystem.out.println(\"playersave found. Loading file...\");\n\t\t}catch(IOException i) {\n\t\t\t//i.printStackTrace();\n\t\t\tSystem.out.println(\"playersave file not found, starting new game\");\n\t\t}catch(ClassNotFoundException c) {\n\t\t\tSystem.out.println(\"playersave not found\");\n\t\t\tc.printStackTrace();\n\t\t}\n\t\t\n\t\t// load up customlevels\n\t\ttry {\n\t\t\tFileInputStream fileIn = new FileInputStream(\"buildersave.ser\");\n\t\t\tObjectInputStream in = new ObjectInputStream(fileIn);\n\t\t\tmodel.importCustomLevels(((ArrayList<LevelModel>) in.readObject()));\n\t\t\tin.close();\n\t\t\tfileIn.close();\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> found. Loading file...\");\n\t\t}catch(IOException i) {\n\t\t\t//i.printStackTrace();\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> file not found, starting new game\");\n\t\t\treturn;\n\t\t}catch(ClassNotFoundException c) {\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> not found\");\n\t\t\tc.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}",
"public abstract void loadFile(Model mod, String fn) throws IOException;",
"protected Model loadModelFromResource(String resourcePath, String syntax) {\n Model model = ModelFactory.createDefaultModel();\n InputStream is = this.getClass().getResourceAsStream(resourcePath);\n model.read(is, null, syntax);\n return model;\n }",
"protected Model loadModelFromResource(String resourcePath) {\n return loadModelFromResource(resourcePath, \"N3\");\n }",
"SingleDocumentModel loadDocument(Path path);",
"ScenarioModel loadScenarioModel(InputStream inputStream) throws ModelSerializationException, ModelConversionException;",
"public Model getModel(String path) {\n Model model = modelCache.get(path);\n if (model != null) {\n return model;\n }\n\n model = this.loadModel(path);\n if (model == null) {\n model = this.createPlaceholderModel(BlockData.AIR.getDefaultRenderOptions()); // failed to load or find\n model.name = path;\n }\n modelCache.put(path, model);\n return model;\n }",
"@Override\n\tpublic void load(ModelInfo info) {\n\t}",
"public ModelContainer importModel(String modelData) throws OWLOntologyCreationException {\n\t\t// load data from String\n\t\tfinal OWLOntologyManager manager = graph.getManager();\n\t\tfinal OWLOntologyDocumentSource documentSource = new StringDocumentSource(modelData);\n\t\tOWLOntology modelOntology;\n\t\tfinal Set<OWLParserFactory> originalFactories = removeOBOParserFactories(manager);\n\t\ttry {\n\t\t\tmodelOntology = manager.loadOntologyFromOntologyDocument(documentSource);\n\t\t}\n\t\tcatch (OWLOntologyAlreadyExistsException e) {\n\t\t\t// exception is thrown if there is an ontology with the same ID already in memory \n\t\t\tOWLOntologyID id = e.getOntologyID();\n\t\t\tIRI existingModelId = id.getOntologyIRI().orNull();\n\n\t\t\t// remove the existing memory model\n\t\t\tunlinkModel(existingModelId);\n\n\t\t\t// try loading the import version (again)\n\t\t\tmodelOntology = manager.loadOntologyFromOntologyDocument(documentSource);\n\t\t}\n\t\tfinally {\n\t\t\tresetOBOParserFactories(manager, originalFactories);\n\t\t}\n\t\t\n\t\t// try to extract modelId\n\t\tIRI modelId = null;\n\t\tOptional<IRI> ontologyIRI = modelOntology.getOntologyID().getOntologyIRI();\n\t\tif (ontologyIRI.isPresent()) {\n\t\t\tmodelId = ontologyIRI.get();\n\t\t}\n\t\tif (modelId == null) {\n\t\t\tthrow new OWLOntologyCreationException(\"Could not extract the modelId from the given model\");\n\t\t}\n\t\t// paranoia check\n\t\tModelContainer existingModel = modelMap.get(modelId);\n\t\tif (existingModel != null) {\n\t\t\tunlinkModel(modelId);\n\t\t}\n\t\t\n\t\t// add to internal model\n\t\tModelContainer newModel = addModel(modelId, modelOntology);\n\t\t\n\t\t// update imports\n\t\tupdateImports(newModel);\n\t\t\n\t\treturn newModel;\n\t}",
"static @Nullable ModelFile fromPath(String path) {\n final File file = new File(path);\n try {\n final ParcelFileDescriptor modelFd = ParcelFileDescriptor.open(\n file, ParcelFileDescriptor.MODE_READ_ONLY);\n final int version = TextClassifierImplNative.getVersion(modelFd.getFd());\n final String supportedLocalesStr =\n TextClassifierImplNative.getLocales(modelFd.getFd());\n if (supportedLocalesStr.isEmpty()) {\n Log.d(DEFAULT_LOG_TAG, \"Ignoring \" + file.getAbsolutePath());\n return null;\n }\n final boolean languageIndependent = supportedLocalesStr.equals(\"*\");\n final List<Locale> supportedLocales = new ArrayList<>();\n for (String langTag : supportedLocalesStr.split(\",\")) {\n supportedLocales.add(Locale.forLanguageTag(langTag));\n }\n closeAndLogError(modelFd);\n return new ModelFile(path, file.getName(), version, supportedLocales,\n languageIndependent);\n } catch (FileNotFoundException e) {\n Log.e(DEFAULT_LOG_TAG, \"Failed to peek \" + file.getAbsolutePath(), e);\n return null;\n }\n }",
"public abstract Model openModel(String graphName) throws JenaProviderException;",
"public void loadModel(String filePath) {\n\n\t\tSystem.out.println(\"Loading model...\");\n\t\ttry {\n\t\t\tObjectInputStream ois = new ObjectInputStream(new FileInputStream(filePath));\n\t\t\tHMMModel HMMModel = (HMMModel)ois.readObject();\n\t\t\tN = HMMModel.N;\n\t\t\tM = HMMModel.M;\n\t\t\tpi = HMMModel.pi;\n\t\t\tA = HMMModel.A;\n\t\t\tB = HMMModel.B;\n\t\t\tois.close();\n\t\t\tSystem.out.println(\"Model loaded.\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Before\n\tpublic void loadModel() {\n\t\tloader.unloadAll();\n\n\t\tmodel = loader\n\t\t\t\t.loadViaXslt(\"/net/meisen/dissertation/performance/implementations/similarity/tida/tida-model-timeSeriesSimilarityEvaluator.xml\");\n\t\tevaluator = new TimeSeriesSimilarityEvaluator(model);\n\t}",
"@Override\n\tpublic void loadModel(String modelPath) {\n\t\tList<String> productList = new ArrayList<>();\n\t\tFileUtil util = new FileUtil();\n\t\tutil.loadWord(modelPath, productList);\n\t\ttrie = new Trie();\n\t\ttrie = trie.createTrie(productList);\n\t}",
"private void loadModel(InputStream is, int recursivityLevel) throws IOException \r\n\t{\r\n\t\tLoadModelTask task = new LoadModelTask(is, recursivityLevel, this);\r\n\t\ttask.execute();\r\n\t\t//timeRange.setLimits(minTs, maxTs);\r\n\t\tthis.setEnabled(false);\r\n\t}",
"public void useModel(String location) throws ModelManagerException {\n\t\tassert isValidModelDir(location);\n\n\t\tthis.mdir = location;\n\t\tLog.d(\"ModelManager\", \"Loading model from \" + getModelURI());\n\t\ttry {\n\t\t\tmodelxml = db.parse(getInStream(\"model.xml\"));\n\t\t} catch (Exception e) {\n\t\t\tthrow new ModelManagerException(\"Unexpected Exception in AModelManager.setModelDir: \" + e.getMessage(), e);\n\t\t}\n\n\t\tmodelxml.normalize();\n\t\tmodelnode = modelxml.getElementsByTagName(\"model\").item(0);\n\n\t\tString type = getModelXMLAttribute(\"type\");\n\t\tmtype = ModelType.parse(type);\n\t\tif (mtype == ModelType.Unknown)\n\t\t\tthrow new ModelManagerException(\"Unknown model type: \" + type);\n\n\t\t// Parse model data machine format\n\t\tmor = new MathObjectReader();\n\t\tString machformat = getModelXMLAttribute(\"machformat\");\n\t\tif (\"le\".equals(machformat)) {\n\t\t\tmor.MachineFormat = MachineFormats.LittleEndian;\n\t\t} else {\n\t\t\tmor.MachineFormat = MachineFormats.BigEndian;\n\t\t}\n\t}",
"public Model openDefaultModel() throws JenaProviderException {\n\t\treturn openModel(getDefaultGraphName());\n\t}",
"@Test\n public void readFile() throws IOException {\n ModelInfo modelInfo = ModelReader.create().load();\n\n }",
"private GameModel load(String xmlFilePath) throws Exception {\r\n\t\ttry {\r\n\t\t\t// Load Game from XML\r\n\t\t\tJAXBContext context = JAXBContext.newInstance(GameModel.class);\r\n\t\t\tSystem.out.println(\"instance passed \");\r\n\t\t\tUnmarshaller unmarshaller = context.createUnmarshaller();\r\n\t\t\tSystem.out.println(\"marshaller created\");\r\n\t\t\treturn (GameModel) unmarshaller.unmarshal(new File(xmlFilePath));\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\t// log the exception, show the error message on UI\r\n\t\t\tSystem.out.println(ex.getMessage());\r\n\t\t\tthrow ex;\r\n\t\t}\r\n\t}",
"public void openModel() {\r\n \t\tisReleased = true;\r\n \t\tif (checkForSave(\"<html>Save changes before opening a saved model?</html>\")) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tif(animationHolder != null ) {\r\n \t\t\tanimationHolder.stop();\r\n \t\t}\r\n \t\tJMODELModel tmpmodel = new JMODELModel();\r\n \t\tint state = modelLoader.loadModel(tmpmodel, mainWindow);\r\n \t\tif (state == ModelLoader.SUCCESS || state == ModelLoader.WARNING) {\r\n \t\t\tresetMouseState();\r\n \t\t\t// Avoid checkForSave again...\r\n \t\t\tif (model != null) {\r\n \t\t\t\tmodel.resetSaveState();\r\n \t\t\t}\r\n \t\t\tnewModel();\r\n \t\t\t// At this point loading was successful, so substitutes old model\r\n \t\t\t// with loaded one\r\n \t\t\tmodel = tmpmodel;\r\n \t\t\tthis.populateGraph();\r\n \t\t\tsetSelect.setEnabled(true);\r\n \t\t\tcomponentBar.clickButton(setSelect);\r\n \t\t\topenedArchive = modelLoader.getSelectedFile();\r\n \t\t\tmainWindow.updateTitle(openedArchive.getName());\r\n \t\t\t// Removes selection\r\n \t\t\tgraph.clearSelection();\r\n \t\t\t// If model contains results, enable Results Window\r\n \t\t\tif (model.containsSimulationResults()) {\r\n \t\t\t\tif (model.isParametricAnalysisEnabled()) {\r\n \t\t\t\t\tthis.setResultsWindow(new PAResultsWindow(model.getParametricAnalysisModel(), (PAResultsModel) model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t} else {\r\n \t\t\t\t\tthis.setResultsWindow(new ResultsWindow(model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tmodel.resetSaveState();\r\n \t\t\tSystem.gc();\r\n \t\t} else if (state == ModelLoader.FAILURE) {\r\n \t\t\tshowErrorMessage(modelLoader.getFailureMotivation());\r\n \t\t}\r\n \t\t// Shows warnings if any\r\n \t\tif (state == ModelLoader.WARNING) {\r\n \t\t\tnew WarningWindow(modelLoader.getLastWarnings(), mainWindow, modelLoader.getInputFileFormat(), CommonConstants.JSIM).show();\r\n \t\t}\r\n \r\n \t}",
"public static Model loadGraph(String filename) throws FileNotFoundException, IOException {\r\n\t\tFileInputStream stream;\t\t\t//A stream from the file\r\n\t\tModel returnValue;\r\n\t\t\r\n\t\tSystem.out.print(\"Loading \\\"\" + filename + \"\\\"...\");\r\n\t\tstream = new FileInputStream(filename);\r\n\t\treturnValue = ModelFactory.createDefaultModel();\r\n\t\treturnValue.read(stream,null);\r\n\t\tstream.close();\r\n\t\tSystem.out.println(\" Done.\");\r\n\t\r\n\t\treturn returnValue;\r\n\t}",
"@Override\n\tpublic Object load(String path, Object defaultObject) throws Exception {\n\t\tfinal Object[] object = new Object[1];\n\t\t\n\t\t// Stream\n\t\ttry {\n\t\t\tfinal FileInputStream fis = new FileInputStream(path);\n\t\t\tfinal ObjectInputStream ois = new ObjectInputStream(fis);\n\n\t\t\t// Load an object\n\t\t\tobject[0] = ois.readObject();\n\n\t\t\t// Close stream\n\t\t\tois.close();\n\t\t} catch (FileNotFoundException fileNotFoundException){\n\t\t\t// Assign default object when the file is not found.\n\t\t\tobject[0] = defaultObject;\n\t\t}\n\t\t\n\t\t// Return object\n\t\treturn object[0];\n\t}",
"public void load() throws ClassNotFoundException, IOException;",
"public static Model loadModel(File f)\n\t{\n\t\ttry\n\t\t{\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(f));\n\n\t\t\tModel m = new Model(f.getPath());\n\t\t\tMaterial cur = null;\n\t\t\tList<Material> mats = new ArrayList<Material>();\n\n\t\t\tString line;\n\t\t\twhile ((line = reader.readLine()) != null)\n\t\t\t{\n\t\t\t\t//Indicates a vertex\n\t\t\t\tif (line.startsWith(\"v \")) \n\t\t\t\t{\n\t\t\t\t\tfloat x = Float.valueOf(line.split(\" \")[1]);\n\t\t\t\t\tfloat y = Float.valueOf(line.split(\" \")[2]);\n\t\t\t\t\tfloat z = Float.valueOf(line.split(\" \")[3]);\n\t\t\t\t\tm.verts.add(new Vector3f(x, y, z));\n\t\t\t\t} \n\t\t\t\t//Indicates a vertex normal\n\t\t\t\telse if (line.startsWith(\"vn \")) \n\t\t\t\t{\n\t\t\t\t\tfloat x = Float.valueOf(line.split(\" \")[1]);\n\t\t\t\t\tfloat y = Float.valueOf(line.split(\" \")[2]);\n\t\t\t\t\tfloat z = Float.valueOf(line.split(\" \")[3]);\n\t\t\t\t\tm.norms.add(new Vector3f(x, y, z));\n\t\t\t\t} \n\t\t\t\t//Indicates a texture coordinate\n\t\t\t\telse if (line.startsWith(\"vt \")) \n\t\t\t\t{\n\t\t\t\t\tfloat x = Float.valueOf(line.split(\" \")[1]);\n\t\t\t\t\tfloat y = Float.valueOf(line.split(\" \")[2]);\n\t\t\t\t\tm.textureCoords.add(new Vector2f(x, y));\n\t\t\t\t} \n\t\t\t\t//Indicates a face\n\t\t\t\telse if (line.startsWith(\"f \")) \n\t\t\t\t{\n\t\t\t\t\t//If face is triangulated\n\t\t\t\t\tif(line.split(\" \").length == 4)\n\t\t\t\t\t{\t\t\t\n\t\t\t\t\t\tVector3f vertexIndices = new Vector3f(\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[1].split(\"/\")[0]),\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[2].split(\"/\")[0]),\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[3].split(\"/\")[0]));\n\n\n\t\t\t\t\t\t//Instantiate as null for scope reasons\n\t\t\t\t\t\tVector3f textureIndices = null;\n\n\t\t\t\t\t\tif(!line.split(\" \")[1].split(\"/\")[1].equals(\"\")&&!(line.split(\" \")[1].split(\"/\")[1].equals(null)))\n\t\t\t\t\t\t\ttextureIndices = new Vector3f(\n\t\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[1].split(\"/\")[1]),\n\t\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[2].split(\"/\")[1]),\n\t\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[3].split(\"/\")[1]));\n\n\t\t\t\t\t\tVector3f normalIndices = new Vector3f(\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[1].split(\"/\")[2]),\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[2].split(\"/\")[2]),\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[3].split(\"/\")[2]));\n\n\t\t\t\t\t\tFace mf = new Face();\n\n\t\t\t\t\t\t//Instantiate all the arrays\n\t\t\t\t\t\tmf.normals = new Vector3f[3];\n\t\t\t\t\t\tmf.points = new Vector3f[3];\n\n\t\t\t\t\t\t//// SETUP NORMALS ////\n\t\t\t\t\t\tVector3f n1 = m.norms.get((int)normalIndices.x - 1);\n\t\t\t\t\t\tmf.normals[0] = n1;\n\t\t\t\t\t\tVector3f n2 = m.norms.get((int)normalIndices.y - 1);\n\t\t\t\t\t\tmf.normals[1] = n2;\n\t\t\t\t\t\tVector3f n3 = m.norms.get((int)normalIndices.z - 1);\n\t\t\t\t\t\tmf.normals[2] = n3;\n\n\t\t\t\t\t\t//// SETUP VERTICIES ////\n\t\t\t\t\t\tVector3f v1 = m.verts.get((int)vertexIndices.x - 1);\n\t\t\t\t\t\tmf.points[0] = v1;\n\t\t\t\t\t\tVector3f v2 = m.verts.get((int)vertexIndices.y - 1);\n\t\t\t\t\t\tmf.points[1] = v2;\n\t\t\t\t\t\tVector3f v3 = m.verts.get((int)vertexIndices.z - 1);\n\t\t\t\t\t\tmf.points[2] = v3;\n\n\t\t\t\t\t\t//// SETUP TEXTURE COORDS ////\n\t\t\t\t\t\tif(textureIndices!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmf.textureCoords = new Vector2f[3];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfloat x1 = m.textureCoords.get((int)textureIndices.x - 1).x;\n\t\t\t\t\t\t\tfloat y1 = 1 - m.textureCoords.get((int)textureIndices.x - 1).y;\n\t\t\t\t\t\t\tVector2f t1 = new Vector2f(x1, y1);\n\t\t\t\t\t\t\tmf.textureCoords[0] = t1;\n\t\t\t\t\t\t\tfloat x2 = m.textureCoords.get((int)textureIndices.y - 1).x;\n\t\t\t\t\t\t\tfloat y2 = 1 - m.textureCoords.get((int)textureIndices.y - 1).y;\n\t\t\t\t\t\t\tVector2f t2 = new Vector2f(x2, y2);\n\t\t\t\t\t\t\tmf.textureCoords[1] = t2;\n\t\t\t\t\t\t\tfloat x3 = m.textureCoords.get((int)textureIndices.z - 1).x;\n\t\t\t\t\t\t\tfloat y3 = 1 - m.textureCoords.get((int)textureIndices.z - 1).y;\n\t\t\t\t\t\t\tVector2f t3 = new Vector2f(x3, y3);\n\t\t\t\t\t\t\tmf.textureCoords[2] = t3;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Set the face's material to the current material\n\t\t\t\t\t\tif(cur != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmf.material = cur;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Tell face to set up AABB\n\t\t\t\t\t\tmf.setUpAABB();\n\n\t\t\t\t\t\tm.faces.add(mf);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//Indicates a reference to an exterior .mtl file\n\t\t\t\telse if(line.startsWith(\"mtllib \"))\n\t\t\t\t{\n\t\t\t\t\t//The file being referenced by mtllib call\n\t\t\t\t\tFile lib = new File(f.getParentFile()+File.separator+line.split(\" \")[1]);\n\n\t\t\t\t\t//Parse it and add all generated Materials to the mats list\n\t\t\t\t\tmats.addAll(parseMTL(lib, m));\n\t\t\t\t}\n\t\t\t\t//Telling us to use a material\n\t\t\t\telse if(line.startsWith(\"usemtl \"))\n\t\t\t\t{\n\t\t\t\t\tString name = line.split(\" \")[1];\n\n\t\t\t\t\tif(mats!=null)\n\t\t\t\t\t\t//Find material with correct name and use it\n\t\t\t\t\t\tfor(Material material : mats)\n\t\t\t\t\t\t\tif(material.name.equals(name))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcur = material;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treader.close();\n\n\t\t\t//Tell model to set up AABB\n\t\t\tm.setUpAABB();\n\t\t\t\n\t\t\t//Remove the first element, because...\n\t\t\tm.faces.remove(0);\n\n\t\t\treturn m;\n\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"protected void importEOModel() {\n JFileChooser fileChooser = getEOModelChooser();\n int status = fileChooser.showOpenDialog(Application.getFrame());\n\n if (status == JFileChooser.APPROVE_OPTION) {\n\n // save preferences\n FSPath lastDir = getApplication()\n .getFrameController()\n .getLastEOModelDirectory();\n lastDir.updateFromChooser(fileChooser);\n\n File file = fileChooser.getSelectedFile();\n if (file.isFile()) {\n file = file.getParentFile();\n }\n\n DataMap currentMap = getProjectController().getCurrentDataMap();\n\n try {\n URL url = file.toURI().toURL();\n\n EOModelProcessor processor = new EOModelProcessor();\n\n // load DataNode if we are not merging with an existing map\n if (currentMap == null) {\n loadDataNode(processor.loadModeIndex(url));\n }\n\n // load DataMap\n DataMap map = processor.loadEOModel(url);\n addDataMap(map, currentMap);\n\n }\n catch (Exception ex) {\n logObj.info(\"EOModel Loading Exception\", ex);\n ErrorDebugDialog.guiException(ex);\n }\n\n }\n }",
"Object loadObject() throws Exception;",
"public static ModelSet loadFromFile(File file)\n\t{\n\t\tif (!file.exists())\n\t\t{\n\t\t\tthrow new ModelException(\"Model file \" + file + \" does not exist.\");\n\t\t}\n\t\ttry\n\t\t{\n\t\t\treturn loadFromStream(new FileInputStream(file));\n\t\t}\n\t\tcatch (FileNotFoundException e)\n\t\t{\n\t\t\tthrow new ModelException(\"Model file \" + file + \" does not exist.\", e);\n\t\t}\n\t}",
"public MappedByteBuffer loadModelFile(AssetManager assetManager, String modelPath) throws IOException {\n AssetFileDescriptor fileDescriptor = assetManager.openFd(modelPath);\n FileInputStream inputStream = new FileInputStream(fileDescriptor.getFileDescriptor());\n FileChannel fileChannel = inputStream.getChannel();\n long startOffset = fileDescriptor.getStartOffset();\n long declaredLength = fileDescriptor.getDeclaredLength();\n// fileDescriptor.close();\n return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength);\n }",
"private MappedByteBuffer loadModelFile(Activity activity) throws IOException {\n AssetFileDescriptor fileDescriptor = activity.getAssets().openFd(MODEL_PATH);\n FileInputStream inputStream = new FileInputStream(fileDescriptor.getFileDescriptor());\n FileChannel fileChannel = inputStream.getChannel();\n long startOffset = fileDescriptor.getStartOffset();\n long declaredLength = fileDescriptor.getDeclaredLength();\n return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength);\n }",
"private MappedByteBuffer loadModelFile(Activity activity) throws IOException {\n AssetFileDescriptor fileDescriptor = activity.getAssets().openFd(MODEL_PATH);\n FileInputStream inputStream = new FileInputStream(fileDescriptor.getFileDescriptor());\n FileChannel fileChannel = inputStream.getChannel();\n long startOffset = fileDescriptor.getStartOffset();\n long declaredLength = fileDescriptor.getDeclaredLength();\n return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength);\n }",
"private void loadShapesModel(String modelPath) {\n\t\t// Initialize the model\n\t\tShapesPackage.eINSTANCE.eClass();\n\n\t\t// Register the XMI resource factory for the .shapes extension\n\t\tResource.Factory.Registry reg = Resource.Factory.Registry.INSTANCE;\n\t\tMap<String, Object> m = reg.getExtensionToFactoryMap();\n\t\tm.put(\"shapes\", new XMIResourceFactoryImpl());\n\n\t\t// Obtain a new resource set\n\t\tResourceSet resSet = new ResourceSetImpl();\n\n\t\t// Get the resource\n\t\tResource resource = resSet.getResource(URI.createURI(modelPath), true);\n\n\t\t// Get the first model element and cast it to the right type\n\t\tEObject obj = resource.getContents().get(0);\n\t\tif (obj instanceof RootBlock) {\n\t\t\tsourceRootBlock = (RootBlock) obj;\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"RootBlock has to be first element in \" + modelPath);\n\t\t}\n\n\t\tif (LOGGER.isInfoEnabled()) {\n\t\t\tLOGGER.info(\"Loaded Shapes model from \" + modelPath);\n\t\t}\n\t}",
"@Override\n\tpublic DwcaResourceModel loadResourceModel(String resourceIdentifier) {\n\t\treturn null;\n\t}",
"public LibraryModel readDefaultLibrary(Translator translator, File location) {\r\n\t\t/*\r\n\t\t * Check against inifiniloops. This is usually caused by trying to get\r\n\t\t * something from the library while the library isn't done loading yet.\r\n\t\t * \r\n\t\t * - remiller\r\n\t\t */\r\n\t\tif (this.mode == IoMode.LIBRARY) {\r\n\t\t\tthrow new IllegalStateException(\r\n\t\t\t\t\t\"Loop detected in LibraryModel Loading\");\r\n\t\t}\r\n\r\n\t\treturn this.readLibrary(translator, location);\r\n\t}",
"public Element loadModel(String name){\n\t\tElement load = FactoryManager.getFactoryManager().getScriptManager()\r\n\t\t\t.getReadScript().getRootElement(allModels);\r\n\t\t\r\n\t\t//get the model wanted\r\n\t\tload = load.getChild(name);\r\n\t\t\r\n\t\t//return the element wanted\r\n\t\treturn load;\t\t\r\n\t}",
"private MappedByteBuffer loadModelFile(Activity activity) throws IOException {\n AssetFileDescriptor fileDescriptor = activity.getAssets().openFd(MODEL_PATH);\n FileInputStream inputStream = new FileInputStream(fileDescriptor.getFileDescriptor());\n FileChannel fileChannel = inputStream.getChannel();\n long startOffset = fileDescriptor.getStartOffset();\n long declaredLength = fileDescriptor.getDeclaredLength();\n return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength);\n }",
"private synchronized void updateModel(IFile modelFile) {\n MoleculeExt format = MoleculeExt.valueOf( modelFile );\n if ( format.isSupported()) {\n\n IMoleculesFromFile model;\n if (modelFile.exists()) {\n\n try {\n switch(format) {\n case SDF: model = new MoleculesFromSDF(modelFile);\n break;\n case SMI: model = new MoleculesFromSMI(modelFile);\n break;\n default: return;\n }\n\n }\n catch (Exception e) {\n return;\n }\n cachedModelMap.put(modelFile, model);\n }\n else {\n cachedModelMap.remove(modelFile);\n }\n }\n }",
"@Override\n public LiteModelWrapper loadInitializeModel() throws IOException {\n return new LiteModelWrapper(this.loadMappedFile(\"softmax_initialize_ones.tflite\"));\n }",
"public abstract void load();",
"private Model getThisModel(String name, Model model) {\n\t\t\t\n\t\t\t Model modret=ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);\n\t\t\t\t String text=dbs.getModel(name);\n\t\t\t\t\n\t\t\t\t//System.out.println(\"TEXT\"+text+\"TEXT!!!\");\n\t\t\t\t if(text==null){\n\t\t\t\t\t modret.setNsPrefix(\"foaf\", NS.FOAF);\n\t\t\t\t\t\tmodret.setNsPrefix(\"cisp\", NS.CISP);\n\t\t\t\t\t\tmodret.setNsPrefix(\"prov\", NS.PROV);\n\t\t\t\t\t\tmodret.setNsPrefix(\"rdf\", NS.RDF);\n\t\t\t\t\treturn modret;\n\t\t\t\t }\n\t\t\t\t else{\n\t\t\t\t\t //read model \n\t\t\t\t\t InputStream input = new ByteArrayInputStream(text.getBytes());\n\t \n\t\t\t\t\t modret.read(input, null,\"RDF/JSON\");\n\t\t\t\t\t modret.setNsPrefix(\"foaf\", NS.FOAF);\n\t\t\t\t\t\tmodret.setNsPrefix(\"cisp\", NS.CISP);\n\t\t\t\t\t\tmodret.setNsPrefix(\"prov\", NS.PROV);\n\t\t\t\t\t\tmodret.setNsPrefix(\"rdf\", NS.RDF);\n\t\t\t\t }\n\t\t\t\t return modret;\n\t \n\t\t }",
"abstract public boolean loadModelFromString(List<String> lines);",
"private synchronized void downloadModel(String modelName) {\n final FirebaseCustomRemoteModel remoteModel =\n new FirebaseCustomRemoteModel\n .Builder(modelName)\n .build();\n FirebaseModelDownloadConditions conditions =\n new FirebaseModelDownloadConditions.Builder()\n .requireWifi()\n .build();\n final FirebaseModelManager firebaseModelManager = FirebaseModelManager.getInstance();\n firebaseModelManager\n .download(remoteModel, conditions)\n .continueWithTask(task ->\n firebaseModelManager.getLatestModelFile(remoteModel)\n )\n .continueWith(executorService, (Continuation<File, Void>) task -> {\n // Initialize a text classifier instance with the model\n File modelFile = task.getResult();\n\n // TODO 6: Initialize a TextClassifier with the downloaded model\n textClassifier = NLClassifier.createFromFile(modelFile);\n\n // Enable predict button\n predictButton.setEnabled(true);\n return null;\n })\n .addOnFailureListener(e -> {\n Log.e(TAG, \"Failed to download and initialize the model. \", e);\n Toast.makeText(\n MainActivity.this,\n \"Model download failed, please check your connection.\",\n Toast.LENGTH_LONG)\n .show();\n predictButton.setEnabled(false);\n });\n }",
"public static OntResource getOntResourceWithLoad(OntModel model, String uri) throws SADIException\n\t{\n\t\tOntResource r = model.getOntResource(uri);\n\t\tif (r != null)\n\t\t\treturn r;\n\t\t\n\t\tloadMinimalOntologyForUri(model, uri);\n\t\treturn model.getOntResource(uri);\n\t}",
"private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifierObject = ObjectClassifier.create(context.getAssets(), TYPE_MODEL, LABEL_TYPE, INPUT_SIZE_TYPE);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }",
"public JmlModelImport () throws CGException {\n try {\n\n ivModel = null;\n ivImport = UTIL.ConvertToString(new String());\n }\n catch (Exception e){\n\n e.printStackTrace(System.out);\n System.out.println(e.getMessage());\n }\n }",
"public interface IModelDocumentProvider {\r\n\t/** \r\n\t * Locate an existing document or load it. Listen for future changes\r\n\t * to the document and to the file. \r\n\t * @param file full pathed file\r\n\t * @return IDocument instance; return null only if the file does not exist. \r\n\t */\r\n\tIDocument getDocument(File file);\r\n}",
"public static Model getDefaultModel ()\n\t{\n\t\treturn DevelopmentModel.getModel((FileObject)null); }",
"protected final Model loadBlockModel(BlockRenderOptions blockRenderOptions) {\n if (blockRenderOptions.getBlockData().isType(Material.AIR)) {\n return new Model(); // air. No model.\n }\n\n BlockRenderProvider oldProvider = this.currProvider;\n try {\n // Some blocks are handled by providers\n this.currProvider = BlockRenderProvider.get(blockRenderOptions.getBlockData());\n if (this.currProvider != null) {\n Model model = this.currProvider.createModel(this, blockRenderOptions);\n if (model != null) {\n return model;\n }\n }\n\n String blockName = blockRenderOptions.lookupModelName();\n\n // Find the blockstate\n BlockModelState state = this.openGsonObject(BlockModelState.class, ResourceType.BLOCKSTATES, blockName);\n\n // Find out the variant that is used\n List<BlockModelState.Variant> variants;\n if (state != null) {\n // Figure out from the blockstate what variant to use\n variants = state.findVariants(blockRenderOptions);\n } else {\n // Default variant based on block name\n BlockModelState.Variant variant = new BlockModelState.Variant();\n variant.modelName = blockName;\n variants = Arrays.asList(variant);\n }\n\n // If no variants are found, render nothing (AIR)\n if (variants.isEmpty()) {\n return new Model();\n }\n\n // Not multipart, then simply load the one variant\n if (variants.size() == 1) {\n return this.loadBlockVariant(variants.get(0), blockRenderOptions);\n }\n\n // Add all variant elements to the model\n Model result = new Model();\n boolean succ = true;\n for (BlockModelState.Variant variant : variants) {\n Model subModel = this.loadBlockVariant(variant, blockRenderOptions);\n if (subModel != null) {\n result.elements.addAll(subModel.elements);\n } else {\n succ = false;\n }\n }\n if (!succ && result.elements.isEmpty()) {\n return null;\n } else {\n return result;\n }\n } finally {\n this.currProvider = oldProvider; // restore\n }\n }",
"private ModelCheckpoints loadFromTransientModule(SModelName originalModelName) {\n // XXX getCheckpointModelsFor iterates models of the module, hence needs a model read\n // OTOH, just a wrap with model read doesn't make sense here (models could get disposed right after the call),\n // so likely we shall populate myCheckpoints in constructor/dedicated method. Still, what about checkpoint model disposed *after*\n // I've collected all the relevant state for this class?\n // Not sure whether read shall be local to this class or external on constructor/initialization method\n // It seems to be an implementation detail that we traverse model and use its nodes to persist mapping label information (that's what we need RA for).\n return new ModelAccessHelper(myTransientModelProvider.getRepository()).runReadAction(() -> {\n String nameNoStereotype = originalModelName.getLongName();\n ArrayList<CheckpointState> cpModels = new ArrayList<>(4);\n for (SModel m : myModule.getModels()) {\n if (!nameNoStereotype.equals(m.getName().getLongName()) || false == m instanceof ModelWithAttributes) {\n continue;\n }\n // we keep CP (both origin and actual) as model properties to facilitate scenario when CP models are not persisted.\n // Otherwise, we could have use values written into CheckpointVault's registry file. As long as there's no registry for workspace models,\n // we have to use this dubious mechanism (not necessarily bad, just a bit confusing as we duplicate actual CP value as model attribute and\n // in the CheckpointVault's registry).\n CheckpointIdentity modelCheckpoint = readIdentityAttributes((ModelWithAttributes) m, GENERATION_PLAN, CHECKPOINT);\n if (modelCheckpoint == null) {\n continue;\n }\n CheckpointIdentity prevCheckpoint = readIdentityAttributes((ModelWithAttributes) m, PREV_GENERATION_PLAN, PREV_CHECKPOINT);\n cpModels.add(new CheckpointState(m, prevCheckpoint, modelCheckpoint));\n }\n return cpModels.isEmpty() ? null : new ModelCheckpoints(cpModels);\n });\n }",
"private void loadViewModel(String configName, String content){\n\t\tHeadHandler hHandler = new HeadHandler();\r\n\t\ttry {\r\n\t\t\thHandler.parse(content);\r\n\t\t\tif(hHandler.getFileType() == null){\r\n\t\t\t\tthrow new RuntimeException(\"Unrecognised file type\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: Add some intelligence to the process of handling this exception\r\n\t\t\tJOptionPane.showMessageDialog(this, \"Sorry, unrecognised file type. Content starts:\" + hHandler.getHead() + \"...\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tStandardHandler vHandler = HandlerFactory.getHandler(hHandler.getFileType());\r\n\t\tlogger.info(\"Found file of type:\" + hHandler.getFileType());\r\n\t\tlogger.info(\"vHandler:\" + vHandler);\r\n\t\ttry {\r\n\t\t\tvHandler.parse(content);\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: Add some intelligence to the process of handling this exception\r\n\t\t\tJOptionPane.showMessageDialog(this, \"Sorry. Unable to parse the file \" + configName, \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t}\r\n\t\t\r\n\t\tYorkEntityView newView = ViewFactory.getView(hHandler.getFileType(), this, vHandler, null);\r\n\t\tif(newView != null){\r\n\t\t\tcurrentView.addModelView(newView);\r\n\t\t}\r\n\t\t\r\n\t\trequestFocusInWindow();\r\n\t}",
"public static Model getSelectedModel() {\n\t\tString path = SELECTED_MODEL;\n\t\tHttpResponse<String> response = sendRequest(path);\n\t\tif(response == null) return null;\n\t\treturn getSelectedModel(response);\n\t}",
"protected JSFConfigModel createModel(FileObject fo) {\n if (fo.isFolder()) {\n LOG.log(Level.WARNING, \"Creation of faces-config model for directory: {0}\", fo.getPath());\n return null;\n }\n JSFConfigModel model = getCachedModel(fo);\n if (model == null) {\n try {\n ModelSource source = Utilities.createModelSource(fo, true);\n Lookup lookup = source.getLookup();\n lookup = new ProxyLookup(lookup, Lookups.singleton(this));\n source = new ModelSource(lookup, true);\n model = JSFConfigModelFactory.getInstance().getModel(source);\n Node rootElement = model.getDocument().getDocumentElement();\n if (rootElement == null || !JSFConfigQNames.areSameQName(JSFConfigQNames.FACES_CONFIG, (Element) rootElement)) {\n return null;\n } else {\n putCachedModel(fo, model);\n }\n } catch (CatalogModelException ex) {\n Exceptions.printStackTrace(ex);\n }\n }\n return model;\n }",
"public abstract void load() throws IOException;",
"protected Object resolveModel(Object model) {\n\t\treturn model;\n\t}",
"protected Model loadDeploymentModelFromResource(@Nonnull String resourceName, @Nonnull String adaptationIdentifier) throws Exception {\n InputStream is = this.getClass().getResourceAsStream(resourceName);\n Model deploymentModel = ModelFactory.createDefaultModel();\n RDFDataMgr.read(deploymentModel, is, Lang.TTL);\n\n //Get the deployment model statement\n Selector selector = new SimpleSelector(null, RDF.type,\n deploymentModel.getResource(\"http://darpa.mil/immortals/ontology/r2.0.0/gmei#DeploymentModel\"));\n StmtIterator iter = deploymentModel.listStatements(selector);\n\n if (!iter.hasNext()) {\n logger.error(\"DeploymentModel triple not found in deployment model template. Check \" + resourceName + \".\");\n throw new Exception(\"Unable to create perturbed deployment model for DAS.\");\n }\n\n org.apache.jena.rdf.model.Statement deploymentModelStatement = iter.next();\n\n deploymentModelStatement.getSubject().addLiteral(\n deploymentModel.getProperty(\"http://darpa.mil/immortals/ontology/r2.0.0#hasSessionIdentifier\"),\n adaptationIdentifier);\n\n return deploymentModel;\n }",
"public ModelObject read(ModelObject obj);",
"@Override\n \tpublic EMFModel loadResourceData(IProgress progress) throws ResourceLoadingCancelledException, ResourceDependencyLoopException,\n \t\t\tFileNotFoundException, FlexoException {\n \t\ttry {\n \t\t\tgetEMFResource().load(null);\n \t\t\tEMFModelConverter converter = new EMFModelConverter();\n \t\t\tEMFModel resourceData = converter.convertModel(getMetaModelResource().getMetaModelData(), getEMFResource());\n \t\t\tsetResourceData(resourceData);\n \t\t\treturn resourceData;\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t\treturn null;\n \t\t}\n \t}",
"public abstract boolean Load();",
"@Override\n public void load() throws IOException, ClassNotFoundException {\n \n }",
"public abstract boolean modelFileExists(String filename);",
"public void setOriginalModelPathFromModel(Model model) {\n originalModelPath = null;\n if(model.getInputFileName()!=null &&\n !model.getInputFileName().equals(\"\"))\n originalModelPath =\n (new java.io.File(model.getInputFileName())).getParent();\n else if(model.originalModelPath!=null &&\n !model.originalModelPath.equals(\"\"))\n originalModelPath = model.originalModelPath;\n }",
"public Source resolve(URI uri) throws TransformerException\n {\n if (uri == null) throw new IllegalArgumentException(\"URI cannot be null\");\n if (!uri.isAbsolute()) throw new IllegalArgumentException(\"URI to be resolved must be absolute\");\n\n Model model = getFromCache(uri.toString());\n try\n {\n if (model == null) // URI not cached, \n {\n if (log.isDebugEnabled()) log.debug(\"No cached Model for URI: {}\", uri);\n\n if (isResolvingMapped() && isMapped(uri.toString()))\n {\n if (log.isDebugEnabled()) log.debug(\"isMapped({}): {}\", uri, isMapped(uri.toString()));\n return getSource(loadModel(uri.toString()), uri.toString());\n }\n\n if (resolvingUncached(uri.toString()))\n try\n { \n if (log.isTraceEnabled()) log.trace(\"Loading data for URI: {}\", uri);\n ClientResponse cr = null;\n\n try\n {\n cr = load(uri.toString());\n\n if (cr.hasEntity())\n {\n if (ResultSetProvider.isResultSetType(cr.getType()))\n return getSource(cr.getEntity(ResultSetRewindable.class), uri.toString());\n\n if (ModelProvider.isModelType(cr.getType()))\n return getSource(cr.getEntity(Model.class), uri.toString());\n }\n }\n finally\n {\n if (cr != null) cr.close();\n }\n\n return getDefaultSource(); // return empty Model \n }\n catch (IllegalArgumentException | ClientException | ClientHandlerException ex)\n {\n if (log.isWarnEnabled()) log.warn(\"Could not read Model or ResultSet from URI: {}\", uri);\n return getDefaultSource(); // return empty Model\n }\n else\n {\n if (log.isDebugEnabled()) log.debug(\"Defaulting to empty Model for URI: {}\", uri);\n return getDefaultSource(); // return empty Model\n }\n }\n else\n {\n if (log.isDebugEnabled()) log.debug(\"Cached Model for URI: {}\", uri);\n return getSource(model, uri.toString());\n }\n }\n catch (IOException ex)\n {\n if (log.isErrorEnabled()) log.error(\"Error resolving Source for URI: {}\", uri); \n throw new TransformerException(ex);\n } \n }",
"protected Model loadModel(com.atomgraph.linkeddatahub.model.Service service, ParameterizedSparqlString pss, QuerySolutionMap qsm)\n {\n if (service == null) throw new IllegalArgumentException(\"Service cannot be null\");\n if (pss == null) throw new IllegalArgumentException(\"ParameterizedSparqlString cannot be null\");\n if (qsm == null) throw new IllegalArgumentException(\"QuerySolutionMap cannot be null\");\n \n // send query bindings separately from the query if the service supports the Sesame protocol\n if (service.getSPARQLClient() instanceof SesameProtocolClient)\n try (Response cr = ((SesameProtocolClient)service.getSPARQLClient()). // register(new CacheControlFilter(CacheControl.valueOf(\"no-cache\"))). // add Cache-Control: no-cache to request\n query(pss.asQuery(), Model.class, qsm))\n {\n return cr.readEntity(Model.class);\n }\n else\n {\n pss.setParams(qsm);\n try (Response cr = service.getSPARQLClient(). // register(new CacheControlFilter(CacheControl.valueOf(\"no-cache\"))). // add Cache-Control: no-cache to request\n query(pss.asQuery(), Model.class))\n {\n return cr.readEntity(Model.class);\n }\n }\n }",
"public static OntClass getOntClassWithLoad(OntModel model, String uri) throws SADIException\n\t{\n\t\treturn getOntClassWithLoad(model, uri, loadMinimalOntologyByDefault);\n\t}",
"public Object loadFromFile(String fileName) {\n\t Object obj = null;\n\t try{\n\t\t FileInputStream FIS = new FileInputStream((defaultPath+\"\\\\\" + fileName));\n\t\t ObjectInputStream onjIn = new ObjectInputStream(FIS);\n\t\t obj = onjIn.readObject();\n\t } catch (NoSuchFileException e){\n\t\t saveToFile(fileName, null); \n\t } catch (IOException e) {\n\t } catch (ClassNotFoundException e) {\n\t } \n\t return obj;\n }",
"public Loader createLoaderForVersion(ModelType type, SchemaVersion version) {\n\n if (type.equals(ModelType.MOXY)) {\n return getMoxyLoaderInstance().get(version);\n }\n\n return null;\n\n }",
"public abstract void loadKnowledge(String path) throws LoadKnowledgeException;",
"public void load();",
"public void load();",
"public boolean isPreferredTo(ModelFile model) {\n if (model == null) {\n return true;\n }\n\n // A language-specific model is preferred to a language independent\n // model.\n if (!mLanguageIndependent && model.mLanguageIndependent) {\n return true;\n }\n\n // A higher-version model is preferred.\n if (getVersion() > model.getVersion()) {\n return true;\n }\n return false;\n }",
"@Override\r\n\tpublic void initialLoad() throws IOException {\n\t\t\r\n\t}",
"public static void load() {\n }",
"private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifier = TensorFlowImageClassifier.create(\n getAssets(),\n MODEL_PATH,\n LABEL_PATH,\n INPUT_SIZE,\n QUANT);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }",
"public static OntClass getOntClassWithLoad(OntModel model, String uri, boolean loadMinimalOntology) throws SADIException\n\t{\n\t\tOntClass c = model.getOntClass(uri);\n\t\tif (c != null)\n\t\t\treturn c;\n\t\t\n\t\tif (loadMinimalOntology)\n\t\t\tloadMinimalOntologyForUri(model, uri);\n\t\telse\n\t\t\tloadOntologyForUri(model, uri);\n\t\t\n\t\treturn model.getOntClass(uri);\n\t}",
"public void load() ;",
"private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifier = TensorFlowImageClassifier.create(\n getAssets(),\n MODEL_FILE,\n LABEL_FILE,\n INPUT_SIZE,\n IMAGE_MEAN,\n IMAGE_STD,\n INPUT_NAME,\n OUTPUT_NAME);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }",
"@Override\n public ImportModelResult importModel(ImportModelRequest request) {\n request = beforeClientExecution(request);\n return executeImportModel(request);\n }",
"private void tryToOpen() {\n if (current != null) {\n if (!this.tryToClose()) return;\n }\n\n //open an existing file...\n JFileChooser chooser = new JFileChooser(new File(\".\"));\n chooser.setDialogTitle(\"Select model file\");\n chooser.setFileFilter(new FileNameExtensionFilter(\n \"Only xml files\",\"xml\"\n ));\n\n int result = chooser.showOpenDialog(this);\n if (result == JFileChooser.APPROVE_OPTION) {\n File file = chooser.getSelectedFile();\n try {\n current = new Document(file);\n this.update();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"ERROR: the file '\" + file.getName() + \"' could not be opened!\", \"An Error Occured\", JOptionPane.ERROR_MESSAGE);\n// e.printStackTrace();\n }\n }\n }",
"public void load() {\n }",
"@Override\n\tpublic Image loadEntity() {\n\t\ttry {\n\t\t\tImage entityImage = new Image(new FileInputStream(IMAGE_LOCATION));\n\t\t\treturn entityImage;\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Image file not found\");\n\t\t\treturn null;\n\t\t}\n\t}",
"public void loadIntoNW() throws LoadException {\n\t\tloadProgress = new LoadProgress2(targetModel.getFileSet().getRoot(), null);\n\t\trun();\n\t\tif (getException() != null) {\n\t\t\tthrow getException();\n\t\t}\n\t}",
"private void load() throws DAOSysException\t\t{\n\t\tif (_debug) System.out.println(\"AL:load()\");\n\t\tAnnualLeaseDAO dao = null;\n\t\ttry\t{\n\t\t\tdao = getDAO();\n\t\t\tsetModel((AnnualLeaseModel)dao.dbLoad(getPrimaryKey()));\n\n\t\t} catch (Exception ex)\t{\n\t\t\tthrow new DAOSysException(ex.getMessage());\n\t\t}\n\t}",
"@Override\n\tpublic boolean isLocallyLoaded(String instanceId)\n\t{\n\t\treturn m_models.isLocal(instanceId);\n\t}",
"private static Model getSelectedModel(HttpResponse<String> response){\n\t\tModel model;\n\t\ttry {\n\t\t\tmodel = new ObjectMapper().readValue(response.body(), new TypeReference<Model>(){});\n\t\t\treturn model;\n\t\t} catch (JsonMappingException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (JsonProcessingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"public ValidationModel getValidationModel() {\n \n Logger logger = Logger.getLogger(AvdSupport.class.getName());\n \n\n logger.log(Level.SEVERE, \"Creatig valiation model\");\n logger.log(Level.SEVERE, \"Reading file: \");\n FileObject fo = avdDataObject.getPrimaryFile();\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(fo.getInputStream()));\n \n String line = null;\n while ((line = br.readLine()) != null) {\n logger.log(Level.SEVERE, \"line: {0}\", line);\n }\n \n } catch (FileNotFoundException ex) {\n Exceptions.printStackTrace(ex);\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n \n \n // TODO: implement\n // throw new UnsupportedOperationException(\"Not supported yet.\");\n \n \n \n return null;\n }",
"private boolean importModels() {\n\t\tif (!isCoupledGraphSelected()) {\n\t\t\tnew InformDialog(\"Option only allowed for Coupled Models\",null);\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\n\t\t\tJFileChooser fc = new JFileChooser();\n\t\t\tExtensionFilter exts = new ExtensionFilter();\n\t\t\texts.addExtension(\"ma\");\n\t\t\texts.addExtension(\"cdd\");\n\t\t\texts.addExtension(\"cpp\");\n\n\t\t\tfc.addChoosableFileFilter(exts);\n\n\t\t\tint returnVal = fc.showDialog(MainFrame.this, \"Import\");\n\n\t\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\t\tString inputFileName = fc.getSelectedFile().getPath();\n\n\t\t\t\ttry {\n\t\t\t\t\tFile modelFile = new File(inputFileName);\n\t\t\t\t\tgetCoupledModelEditor().importModelsFromFile(modelFile);\n\t\t\t\t}\n\t\t\t\tcatch (IOException e) {\n\t\t\t\t\tmainstatusBar.setText(\"Error importing\" + inputFileName);\n\t\t\t\t}\n\n\t\t\t\t//System.out.println(\"118111\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//this.repaint();\n\t\t\t\t//System.out.println(\"119111\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}",
"public static Object load(String path) throws SlickException {\n\t\tObject o = new Object();\n\t\tObjectInputStream inStream;\n\t\ttry {\n\t\t\tinStream = new ObjectInputStream(new FileInputStream(path));\n\t\t\to = inStream.readObject();\n\t\t\tinStream.close();\n\t\t\treturn o;\n\t\t} catch (Exception ex) {\n\t\t\tthrow new SlickException(ex.getMessage(), ex.getCause());\n\t\t}\n\t}",
"private ResourceLocation getModelLocation(ResourceLocation p_177580_1_) {\n/* 280 */ return new ResourceLocation(p_177580_1_.getResourceDomain(), \"models/\" + p_177580_1_.getResourcePath() + \".json\");\n/* */ }"
] | [
"0.7696885",
"0.68503225",
"0.662428",
"0.65442514",
"0.6405717",
"0.63812846",
"0.63377666",
"0.62955356",
"0.62106216",
"0.6201868",
"0.6175697",
"0.6153934",
"0.61368865",
"0.6123426",
"0.6119981",
"0.601453",
"0.5991759",
"0.5986967",
"0.5887835",
"0.5862437",
"0.5851007",
"0.5848757",
"0.5816599",
"0.57795364",
"0.5778151",
"0.5742676",
"0.5738094",
"0.57107776",
"0.5692348",
"0.568126",
"0.56193227",
"0.55845416",
"0.5567632",
"0.5539634",
"0.5488483",
"0.5487207",
"0.5446691",
"0.54425323",
"0.5439224",
"0.543473",
"0.5413355",
"0.53979844",
"0.53979844",
"0.53939766",
"0.5391621",
"0.538967",
"0.5383976",
"0.5381355",
"0.5374916",
"0.53684956",
"0.5345745",
"0.5332055",
"0.53101325",
"0.5304718",
"0.5299896",
"0.52970034",
"0.52961546",
"0.5287469",
"0.52827466",
"0.52770543",
"0.5259533",
"0.5255882",
"0.52513576",
"0.523397",
"0.52306336",
"0.52248186",
"0.5213234",
"0.52056634",
"0.51952994",
"0.51671743",
"0.51665527",
"0.51592183",
"0.5152582",
"0.5127782",
"0.5115099",
"0.5095971",
"0.509062",
"0.50738794",
"0.5058772",
"0.50553787",
"0.50553787",
"0.50276583",
"0.50248146",
"0.4999957",
"0.49851385",
"0.49735114",
"0.4964847",
"0.49616688",
"0.4948805",
"0.4945188",
"0.4942784",
"0.49407363",
"0.49404165",
"0.49350014",
"0.49320158",
"0.49271667",
"0.49141246",
"0.49084938",
"0.49004152",
"0.48894867"
] | 0.6065557 | 15 |
() [] left to Right | public static void main(String[] args) {
int num = 10 + 20 -5;
num = 10 + 20/5; // 14
// division goes first!
num = (10+20) /5 ; // 6
int i = 6+3*10/6;
// i = 6+5
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int[] Reverse(int[] num, int left, int right)\n\t{\n\t\tif(num == null || num.length == 1)\n\t\t\treturn num;\n\t\t\n\t\t// Swap values for the given point of left end and right end of the array.\n\t\twhile(left < right)\n\t\t{\n\t\t\tint temp;\n\t\t\ttemp = num[left];\n\t\t\tnum[left++] = num[right];\n\t\t\tnum[right--] = temp;\n\t\t\t//left ++;\n\t\t\t//right --;\n\t\t}\n\t\treturn num;\n\t}",
"protected int left(int i ) { return 2 * i + 1; }",
"void putLeftWordToRight(int end) {\n\n String word = bufferLeft.pop();\n int index = end - word.length() + 1;\n System.arraycopy(word.toCharArray(), 0, words, index, word.length());\n words[index-1] = ' ';\n\n }",
"boolean getLeftToRight();",
"private void right(int pos) {\n while (pos > gapLeft) {\n gapLeft++;\n gapRight++;\n buffer[gapLeft-1] = buffer[gapRight];\n buffer[gapRight] = '\\0';\n }\n }",
"protected int right(int i) { return 2 * i + 2; }",
"public Squarelotron leftRightFlip(int ring);",
"Position<E> right(Position<E> p) throws IllegalArgumentException;",
"private int right(int index) {\r\n\t\treturn 2 * index + 2;\r\n\t}",
"static void rvereseArray(int arr[], int start, int end)\r\n {\r\n int temp;\r\n while(start < end){\r\n \r\n temp = arr[start];\r\n arr[start] = arr[end];\r\n arr[end] = temp;\r\n //rvereseArray(arr, start+1, end-1);\r\n // move the left and right index pointers in toward the center\r\n start++;\r\n end--;\r\n }\r\n }",
"public static BinaryExpression leftShift(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }",
"private static void circular_shift(boolean[] array, boolean right)\n\t{\n\t\tboolean saved_value, tmp;\n\t\tint i;\n\t\t\n\t\tsaved_value = right ? array[array.length - 1] : array[0];\n\t\ti = right ? 0 : array.length - 1;\n\t\t\n\t\twhile(i < array.length && i >= 0)\n\t\t{\n\t\t\ttmp = array[i];\n\t\t\tarray[i] = saved_value;\n\t\t\tsaved_value = tmp;\n\t\t\t\n\t\t\tif(right) ++i;\n\t\t\telse --i;\n\t\t}\n\t}",
"private Node rotateRight() {\n Node left = this.leftChild;\n this.leftChild = left.rightChild;\n left.rightChild = this;\n\n this.updateHeight();\n left.updateHeight();\n\n return left;\n }",
"@Override\n\tpublic void moveRight()\n\t{\n\t\tif (!isAtEnd()) left.push(right.pop());\n\t}",
"public void reverseDi() {\n int hi = size - 1;\n int lo = 0;\n\n while (lo < hi) {\n Node left = getNodeAt(lo);\n Node right = getNodeAt(hi);\n\n Object temp = left.data;\n left.data = right.data;\n right.data = temp;\n\n lo++;\n hi--;\n }\n }",
"Binarbre<E> getRight();",
"private static void leftRotateByOne(int[] array) {\n int tmp = array[0];\n for (int i = 0; i < array.length - 1; i++) {\n array[i] = array[i + 1];\n }\n array[array.length - 1] = tmp;\n }",
"private void rightRotate(int[] nums, int n) {\n\t\tint temp;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ttemp = nums[nums.length - 1];\n\t\t\tfor (int j = nums.length - 1; j > 0; j--) {\n\t\t\t\tnums[j] = nums[j - 1];\n\n\t\t\t}\n\n\t\t\tnums[0] = temp;\n\n\t\t}\n\t\tSystem.out.println(Arrays.toString(nums));\n\n\t}",
"void reverseDirection();",
"Binarbre<E> getLeft();",
"public abstract void reverseRange(int index, int count, int stride);",
"public static BinaryExpression leftShift(Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"@Override\n\tpublic void moveToStart()\n\t{\n\t\twhile (!left.isEmpty())\n\t\t{\n\t\t\tright.push(left.pop());\n\t\t}\n\t}",
"static int[] rotLeft(int[] a, int d) {\r\n // Gets length of input array\r\n int size = a.length;\r\n \r\n // Creates output array\r\n int[] result = new int[size];\r\n \r\n // We start cycling through the input array with index d instead of the very beginning\r\n int index = d;\r\n \r\n // Cycles through the input array\r\n for (int i = 0; i < size; i++) {\r\n // If the index is bigger than the size of the array, it starts again from 0 in order to not overflow\r\n if (index >= size) {\r\n index = 0;\r\n }\r\n result[i] = a[index]; // We save the current value in result\r\n index += 1; // We refresh the index\r\n }\r\n \r\n return result;\r\n}",
"@Override\n\tpublic void moveLeft()\n\t{\n\t\tif (!isAtStart()) right.push(left.pop());\n\n\t}",
"private int left(int index) {\r\n\t\treturn 2 * index + 1;\r\n\t}",
"public void leftRotateByOne(int[] data) {\n\t\tint temp = data[0]; // Storing first element in temp value\n\t\tfor (int i = 0; i < data.length - 1; i++) {\n\t\t\t// shift each element\n\t\t\tdata[i] = data[i + 1];\n\t\t}\n\t\t// store the last index by temp val\n\t\tdata[data.length - 1] = temp;\n\t}",
"private Node rotateLeft() {\n Node right = this.rightChild;\n this.rightChild = right.leftChild;\n right.leftChild = this;\n\n this.updateHeight();\n right.updateHeight();\n\n return right;\n }",
"public static void main(String[] args) {\n int[] list = {1, 2, 3, 4, 5};\n System.out.println(\"OldList = \" + Arrays.toString(list));\n ShiftArrayRight(list);\n System.out.println(\"NewList = \" + Arrays.toString(list));\n\n }",
"static void primitiveRightShift(int[] a, int len, int n) {\n int n2 = 32 - n;\n for (int i=len-1, c=a[i]; i > 0; i--) {\n int b = c;\n c = a[i-1];\n a[i] = (c << n2) | (b >>> n);\n }\n a[0] >>>= n;\n }",
"private BTNode<T> rotateRight(BTNode<T> p){\n\t\tBTNode<T> q = p.getLeft();\n\t\tp.setLeft(q.getRight());\n\t\tq.setRight(p);\n\t\tfixHeight(p);\n\t\tfixHeight(q);\n\t\treturn q;\n\t}",
"private static void merge(int[] array, int[] left, int[] right) {\n\n int i;\n\n for(i = 0; i < left.length; i++) {\n\n array[i] = left[i];\n }\n\n for (int j = 0; j < right.length; j++, i++) {\n\n array[i] = right[j];\n }\n }",
"void reverse();",
"void reverse();",
"void moveRight();",
"public static BinaryExpression leftShiftAssign(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }",
"public abstract void rotateRight();",
"protected static int right(int i){\n return 2*(i+1);\n }",
"static void leftRotate(int arr[], int d, int n) \n\t{\n\t\tint i, j;\n\t\tif (d == 0 || d == n)\n\t\t\treturn;\n\t\ti = d;\n\t\tj = n - d;\n\t\twhile (i != j) {\n\t\t\tif (i < j) /* A is shorter */\n\t\t\t{\n\t\t\t\tswap(arr, d - i, d + j - i, i);\n\t\t\t\tj -= i;\n\t\t\t} else /* B is shorter */\n\t\t\t{\n\t\t\t\tswap(arr, d - i, d, j);\n\t\t\t\ti -= j;\n\t\t\t}\n\t\t\t// printArray(arr, 7);\n\t\t}\n\t\t/* Finally, block swap A and B */\n\t\tswap(arr, d - i, d, i);\n\t}",
"int left(int i) { return i<<1; }",
"private int rightIndex(int i) {\n return i * 2 + 1;\n }",
"public Integer perform (IExpression left, IExpression right);",
"private void right() {\n lastMovementOp = Op.RIGHT;\n rotate(TURNING_ANGLE);\n }",
"public void right(int[][] arr,int start,int end,int i){\n if(start==end){\n return;\n\n }\n else{\n System.out.println(arr[i][start]);\n start++;\n }\n right(arr,start,end,i);\n }",
"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}",
"void setLeftToRight(boolean ltor);",
"public Node<T> rightRotate(Node<T> node){\n\n Node<T> temp = node.left;//pointer set to the nodes left child\n node.left = temp.right;//node.left set to the right child\n temp.right = node;//temp.right equal to the node that is rotating\n return temp;\n }",
"private AVLNode<T> rotateRight(AVLNode<T> node) {\n AVLNode<T> substiute = node.left;\n node.left = substiute.right;\n substiute.right = node;\n\n // node = substitute;\n\n return substiute;\n }",
"static int[] rotLeft(int[] a, int d) {\n int temp = a[a.length - 1];\n for (int i = a.length - 1; i > 1; i--) {\n if (i > 2) {\n a[i - 2] = temp;\n temp = a[i - 3];\n } else {\n a[0] = a[a.length - 1];\n }\n }\n\n return a;\n }",
"AndExp getRight();",
"private int right(int i) {\r\n\t\treturn 2 * i + 2;\r\n\t}",
"private int leftIndex(int i) {\n return i * 2;\n }",
"private AVLNode<T> rotateLeft(AVLNode<T> node) {\n AVLNode<T> substitute = node.right;\n // donde ponemos los hijos a la izquierda del substituto\n node.right = substitute.left;\n substitute.left = node;\n\n return substitute;\n }",
"static void rotate_right(int[] arr, int rotate){\n for (int j = 0; j < rotate; j++) {\n int temp = arr[j];\n for (int i = j; i < arr.length+rotate; i+=rotate) {\n if(i-rotate < 0)\n temp = arr[i];\n else if(i >= arr.length)\n arr[i-rotate] = temp;\n else\n arr[i-rotate] = arr[i]; \n }\n }\n }",
"static int[] rotLeft(int[] a, int d) {\r\n if (d<=0) {return a;}\r\n int n = a.length;\r\n int[] subArrayBack = new int[d];\r\n int[] subArrayFront = new int[n-d]; \r\n for ( int i = 0; i < d; i++){\r\n subArrayBack[i] = a[i];\r\n } \r\n for( int i = 0; i < n-d; i++){\r\n subArrayFront[i] = a[i+d];\r\n } \r\n int[] newArray = new int[n];\r\n for(int i = 0; i < subArrayFront.length; i++){\r\n newArray[i] = subArrayFront[i];\r\n }\r\n for(int i = 0; i < subArrayBack.length; i++){\r\n newArray[n-d+i] = subArrayBack[i];\r\n }\r\n return newArray;\r\n }",
"private static int LEFT(int i) {\n return (2 * i + 1);\n }",
"private Node rotateRight(Node h) {\n Node x = h.left;\n h.left = x.right;\n x.right = h;\n x.color = x.right.color;\n x.right.color = RED;\n x.size = h.size;\n h.size = size(h.left) + size(h.right) + 1;\n return x;\n }",
"private static int getRight(int index) {\n\t\treturn getLeft(index) + 1;\n\t}",
"private Node rotateRight(Node h){\n\t\tNode x = h.left;\n\t\th.left = x.right;\n\t\tx.right = h;\n\t\tx.color = h.color;\n\t\th.color = RED;\n\t\treturn x;\n\t}",
"public static <E> void rightShift (E[] array, int shift) {\r\n\t\tif (shift > 0) {\r\n\t\t\t// save items displaced off of right end\r\n\t\t\tArrayList<E> temp = new ArrayList<E>();\r\n\t\t\tint length = array.length;\r\n\t\t\tfor (int i = length - shift ; i < length; i++) {\r\n\t\t\t\ttemp.add(array[i]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// copy in place\r\n\t\t\tfor (int i = length - 1; i > shift - 1; i--) {\r\n\t\t\t\tarray[i] = array[i - shift];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// copy displaced items to left end\r\n\t\t\tfor (int i = 0; i < shift; i++) {\r\n\t\t\t\tarray[i] = temp.get(i);\r\n\t\t\t}\r\n\t\t} else return;\r\n\t}",
"private static void rightRotate(int[] nums, int k) {\r\n\t if (nums.length == 0) return;\r\n\t \r\n\t k %= nums.length;\r\n\t \r\n\t if (k == 0) return;\r\n\t \r\n\t int left=0, right=nums.length-1, tmp;\r\n\t \r\n\t while(left < right) {\r\n\t tmp = nums[left];\r\n\t nums[left] = nums[right];\r\n\t nums[right] = tmp;\r\n\t \r\n\t left++;\r\n\t right--;\r\n\t }\r\n\t \r\n\t left=0;\r\n\t right=k-1;\r\n\t \r\n\t while(left < right) {\r\n\t \ttmp = nums[left];\r\n\t \tnums[left] = nums[right];\r\n\t \tnums[right] = tmp;\r\n\t \t \r\n\t \tleft++;\r\n\t \tright--;\r\n\t }\r\n\t \r\n\t left=k;\r\n\t right=nums.length-1;\r\n\t \r\n\t while(left < right) {\r\n\t \ttmp = nums[left];\r\n\t \tnums[left] = nums[right];\r\n\t \tnums[right] = tmp;\r\n\t \t \r\n\t \tleft++;\r\n\t \tright--;\r\n\t }\r\n\t }",
"private int[] merge(int[] left, int[] right) {\r\n\t\tint[] merged = new int[(left.length + right.length)];\r\n\r\n\t\t// l -> arrL index and r -> arrR index\r\n\t\tint l = 0, r = 0;\r\n\t\tfor (int i = 0; i < merged.length; i++) {\r\n\r\n\t\t\tif (l >= left.length) {\r\n\t\t\t\tmerged[i] = right[r++];\r\n\t\t\t} \r\n\t\t\telse if (r >= right.length) {\r\n\t\t\t\tmerged[i] = left[l++];\r\n\t\t\t}\r\n\t\t\telse if (left[l] >= right[r]) {\r\n\t\t\t\t// The total inversions will always be left.length - l\r\n\t\t\t\tcounter += (left.length - l);\r\n\t\t\t\tmerged[i] = right[r++];\r\n\t\t\t}\r\n\t\t\telse if (left[l] < right[r]) {\r\n\t\t\t\tmerged[i] = left[l++];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn merged;\r\n\t}",
"private static int RIGHT(int i) {\n return (2 * i + 2);\n }",
"EObject getRight();",
"private RedBlackNode rotateRight(RedBlackNode x){\n\t RedBlackNode xParent = x.parent;\n\t RedBlackNode BSubTree = x.left.right;\n\t RedBlackNode y = x.left;\n\t y.right = x;\n\t x.parent = y;\n\t x.left = BSubTree;\n\t //Need to anlayse whether Nil check need to have or Not\n\t BSubTree.parent = x;\n\t if( xParent == this.Nil){\n\t\t this.root = y;\n\t }else if(xParent.left == x){\n\t\t xParent.left = y;\n\t }else{\n\t\t xParent.right = y;\n\t }\n\t y.parent = xParent;\n\t return y;\n }",
"OrExp getLeft();",
"protected static int left(int i){\n return 2*i+1;\n }",
"public int upright();",
"private static int flipArray(char [] dest, int start, int e, int w){\n int r;\n if (w > start) {\n // shift, assume small buffer size so don't use arraycopy\n r = w;\n w = start;\n while (r < e) {\n dest[w++] = dest[r++];\n }\n } else {\n w = e;\n }\n return w;\n }",
"public Binary right(Expr right) {\n\tBinary_c n = (Binary_c) copy();\n\tn.right = right;\n\treturn n;\n }",
"public void right() {\n\t\tstate.right();\n\t}",
"public void switchSides() {\n\t\tint temp = 0;\r\n\t\ttemp = leftValue;\r\n\t\tleftValue = rightValue;\r\n\t\trightValue = temp;\r\n\t}",
"public static int[] rotateRight(int[] arr) {\n int[] newArr=new int[arr.length];\n for (int i =0;i< arr.length;i++){\n if (!(i== (arr.length-1))){\n newArr[i+1]=arr[i];\n }\n else{\n newArr[0]=arr[i];\n }\n }\n return newArr;\n }",
"private int left(int i) {\r\n\t\treturn 2 * i + 1;\r\n\t}",
"public static BinaryExpression leftShiftAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"public DoubleLinkedSeq reverse(){\r\n\t DoubleLinkedSeq rev = new DoubleLinkedSeq();\r\n\t for(cursor = head; cursor != null; cursor = cursor.getLink()){\r\n\t\t rev.addBefore(this.getCurrent());\r\n\t }\r\n\t \r\n\t return rev; \r\n }",
"public void array() throws SyntaxException{\n if(cursor.getType().equals(TokenType.RIGHT_BRACKET))\n return;\n else\n {\n elements();\n match(TokenType.RIGHT_BRACKET);\n }\n }",
"public Dir moveLeft() {\n\t\t\tint newDir = (this.ordinal() + SIZE - 1) % SIZE;\n\t\t\treturn dirArray[newDir];\n\t\t}",
"public void moveRight() {\n\t\t\n\t}",
"public void right(){\n\t\tmoveX=1;\n\t\tmoveY=0;\n\t}",
"public static void shift(){\n int[] x= {1, 5, 10, 7, -2};\n \n for (int i =0; i<x.length-1; i++){\n x[i]=x[i+1];\n }\n x[x.length-1]=0;\n for (int j=0; j<x.length; j++){\n System.out.println(x[j]);\n }\n\n\n\n }",
"public void left(int[][] arr,int start,int end,int i){\n if(start==end){\n return;\n }\n else{\n System.out.println(arr[i][start]);\n start--;\n }\n left(arr,start,end,i);\n }",
"public static int[] rotateLeft(int[] arr) {\n int[] newArr=new int[arr.length];\n for (int i =0;i< arr.length;i++){\n if (!(i==0)){\n newArr[i-1]=arr[i];\n }\n else{\n newArr[arr.length-1]=arr[i];\n }\n }\n return newArr;\n }",
"static int right(int i)\n {\n return (2*i+2);\n }",
"protected Node<E> rotateRight(Node<E> root) {\r\n\t\tNode<E> temp = root.left;\r\n\t\troot.left = temp.right;\r\n\t\ttemp.right = root;\r\n\t\treturn temp;\r\n\t}",
"private static int getLeft(int index) {\n\t\treturn (index + 1) * 2 - 1;\n\t}",
"protected void right() {\n move(positionX + 1, positionY);\n orientation = 0;\n }",
"private int[] shiftRightOne(int start, int[] mag)\n {\n int magLen = mag.length;\n\n int m = mag[magLen - 1];\n\n for (int i = magLen - 1; i >= start + 1; i--)\n {\n int next = mag[i - 1];\n\n mag[i] = (m >>> 1) | (next << 31);\n m = next;\n }\n\n mag[start] >>>= 1;\n\n return mag;\n }",
"public Binary left(Expr left) {\n\tBinary_c n = (Binary_c) copy();\n\tn.left = left;\n\treturn n;\n }",
"public static final int[] get_RIGHT_SHIFT(){\n\t\treturn get_LEFT_SHIFT();\n\t}",
"private BTNode<T> rotateLeft(BTNode<T> p){\n BTNode<T> q = p.getRight();\n p.setRight(q.getLeft());\n q.setLeft(p);\n fixHeight(q);\n fixHeight(p);\n return q;\n }",
"private void leftRotate(WAVLNode y) {\n\t WAVLNode x=y.parent;\r\n\t WAVLNode a=x.left;\r\n\t WAVLNode b=y.left;\r\n\t WAVLNode c = y.right;\r\n\t y.left=x;\r\n\t x.right=b;\r\n\t \r\n\t if (x.parent!=null) {\r\n\t\t WAVLNode d=x.parent;\r\n\t\t String side=parentside(d,x);\r\n\r\n\t\t if (side.equals(\"right\")) {\r\n\t\t\t d.right=y;\r\n\t\t\t y.parent=d;\r\n\t\t }\r\n\t\t else {\r\n\t\t\t d.left=y;\r\n\t\t\t y.parent=d;\r\n\t\t }\r\n\t }\r\n\t else {\r\n\t\t y.parent=null;\r\n\t\t this.root=y;\r\n\t }\r\n\t x.parent=y;\r\n\t b.parent=x;\r\n\t x.rank=x.rank-1;\r\n\t x.sizen=a.sizen+b.sizen+1;\r\n\t y.sizen=x.sizen+c.sizen+1;\r\n\t \r\n }",
"public void reverse() {\n ArrayList<Character> newSeq = new ArrayList<Character>();\n for (int i = 0; i < seq.size(); i++) {\n newSeq.add(seq.get(seq.size() - 1 - i));\n }\n seq = newSeq;\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 }",
"static String leftrotate(String s) {\n\n System.out.print(\" left rotate \" + s + \" \");\n char arr[] = s.toCharArray();\n char newarr[]= new char[arr.length];\n for (int i = 0; i < arr.length - 1; i++) {\n newarr[i + 1] = arr[i];\n }\n newarr[0]=s.charAt(s.length()-1);\n\n s = \"\";\n for (int i = 0; i < arr.length; i++)\n s += newarr[i];\n System.out.println(\"Return \" + s);\n return s;\n\n }",
"private int right(int parent) {\n\t\treturn parent*2+2;\n\t}",
"public long removeRight() {\n long temporary = Array[end--];\n if ( end == -1 ) {\n end = max-1;\n }\n nItems--;\n return temporary;\n }",
"@Test\n\tpublic void rotateArray_rotateLeftTwoItems() {\n\t\tint[] nums = prepareInputArray(5);\n\t\tint[] rotatedArray = ArrayLeftRotation.rotateArray(nums, 2);\n\t\tassertThat(rotatedArray[0], equalTo(3));\n\t\tassertThat(rotatedArray[1], equalTo(4));\n\t\tassertThat(rotatedArray[2], equalTo(5));\n\t\tassertThat(rotatedArray[3], equalTo(1));\n\t\tassertThat(rotatedArray[4], equalTo(2));\n\t}",
"@Override\n\tpublic Squarelotron leftRightFlip(int ring) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\n\t\t//starts at the ring-1 [so for ring 1, this is [0], for ring 2 [1], etc.] goes until j = the length of current row minus the ring\n\t\t//therefore if the ring is one and the current row is 0, it finds the length of [0] and then subtracts one; for example\n\t\t//if the squarelotron is a 5x5 with input of ring 1 the starting point would be 0 and ending point of j would be 4, advances by 1\n\t\tfor(int j = 0; j <= size-2*ring; j++){\n\t\t\t//assigns number to the first row and first index so if the ring is 1, [0][0] and then iterates\n\t\t\t//the second iteration would be [0][1], the third [0][2], etc. For example if it is the second ring: first iteration \n\t\t\t//[1][1], second->[1][2]\n\t\t\tint number = newSquarelotron[ring-1+j][ring-1];\n\t\t\t//matrix = 3x3, size = 3, index max =2, [0][0]->[0]\n\t\t\tnewSquarelotron[ring-1+j][ring-1]=newSquarelotron[ring-1+j][size-ring];\n\t\t\t//sets the [0][4] to [0][0] for the first iteration\n\t\t\tnewSquarelotron[ring-1+j][size-ring] = number;\n\t\t}\n\t\t//the following method flips the non-1st and last parts of the rings needs to only go half way\n\t\t\t\t//example size 7x7, ring 1; i = 1 ends 7-2=5 or for 8x8: ring1 starts at i=1 ends at 8-2=6 or for 5x5 5-2=3\n\t\tfor(int i = 0; i <=(size-2*ring); i++){\n\t\t\t//left side\n\t\t\t//using example 5x5: 1st iteration -> [1][0], i=2, 2nd iteration [2][0] , 3rd:i=3 [3][0]\n\t\t\tint numberLft = this.squarelotron[ring-1][ring+i-1];\n\t\t\t//for 5x5:[1][0]=[1][4]. [2][0]=[2][4], i=3: [3][0]=[3][4]\n\t\t\tnewSquarelotron[ring-1][ring+i-1] = this.squarelotron[ring-1][size-ring-i];\n\t\t\t//example:1st iteration ->[1][4]=[1][0], 2nd:[2][4]=\n\t\t\tnewSquarelotron[ring-1][size-ring-i] = numberLft;\n\t\t\tint numberBot = this.squarelotron[size-ring][ring+i-1];\n\t\t\tnewSquarelotron[size-ring][ring+i-1]= this.squarelotron[size-ring][size-ring-i];\n\t\t\tnewSquarelotron[size-ring][size-ring-i] = numberBot;\n\t\t\t\t}\n\t\t\n\t\t\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t}",
"public void refreshLeft();",
"public void reverse_Iteratively_Data() throws Exception {\r\n\t\tint left = 0, right = this.size() - 1;\r\n\r\n\t\twhile (left <= right) {\r\n\t\t\tNode leftNode = this.getNodeAt(left);\r\n\t\t\tNode rightNode = this.getNodeAt(right);\r\n\r\n\t\t\tT temp = leftNode.data;\r\n\t\t\tleftNode.data = rightNode.data;\r\n\t\t\trightNode.data = temp;\r\n\r\n\t\t\tleft++;\r\n\t\t\tright--;\r\n\t\t}\r\n\t}"
] | [
"0.62506795",
"0.5818598",
"0.5777957",
"0.5753853",
"0.57470095",
"0.5736424",
"0.5688975",
"0.5688108",
"0.5685205",
"0.5646373",
"0.56429183",
"0.5591136",
"0.5583503",
"0.5557492",
"0.5542259",
"0.5523434",
"0.55151874",
"0.5512244",
"0.5497543",
"0.5462816",
"0.54546016",
"0.5447095",
"0.54420227",
"0.5387481",
"0.53833",
"0.53817374",
"0.5374174",
"0.53550005",
"0.5349868",
"0.53474146",
"0.5347296",
"0.5343423",
"0.5335176",
"0.5335176",
"0.53265524",
"0.5324317",
"0.5311106",
"0.5305139",
"0.5300877",
"0.52881",
"0.52859974",
"0.5281848",
"0.5276761",
"0.5264458",
"0.52644575",
"0.5260303",
"0.5252468",
"0.5247239",
"0.5245775",
"0.52390784",
"0.5238787",
"0.5231525",
"0.52243334",
"0.5203933",
"0.5199817",
"0.5199776",
"0.5199507",
"0.51958466",
"0.51915336",
"0.5190962",
"0.5159986",
"0.5150129",
"0.5144457",
"0.5138928",
"0.5134188",
"0.51211697",
"0.5115674",
"0.5112896",
"0.51095444",
"0.5107046",
"0.51061404",
"0.51017046",
"0.5100029",
"0.50984734",
"0.50942904",
"0.50860393",
"0.50837535",
"0.50805974",
"0.5075736",
"0.50739187",
"0.5054993",
"0.5053256",
"0.5051812",
"0.50496197",
"0.5043563",
"0.50429547",
"0.5041653",
"0.5041025",
"0.50402796",
"0.5039541",
"0.5038728",
"0.5036651",
"0.5033752",
"0.5033058",
"0.5029958",
"0.5029478",
"0.50194734",
"0.5019367",
"0.5017402",
"0.5008653",
"0.49979526"
] | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_login, container, false);
l= (Button)v.findViewById(R.id.login);
r = (Button)v.findViewById(R.id.register);
lo = (Button)v.findViewById(R.id.logout_button);
ed1 = (EditText)v.findViewById(R.id.name);
ed2 = (EditText)v.findViewById(R.id.pass);
lin = (LinearLayout)v.findViewById(R.id.login_layout);
lout = (LinearLayout)v.findViewById(R.id.logout_layout);
mySharedPreferences = PreferenceManager.getDefaultSharedPreferences(getContext());
editor = mySharedPreferences.edit();
String name = mySharedPreferences.getString("Flag", "default value");
boolean a=name.toString().equals("True");
if(a) {
ViewGroup.LayoutParams params = lin.getLayoutParams();
params.height = 0;
lin.setLayoutParams(params);
ViewGroup.LayoutParams param = lout.getLayoutParams();
param.height = LinearLayout.LayoutParams.WRAP_CONTENT;
lout.setLayoutParams(param);
}
else {
ViewGroup.LayoutParams param = lin.getLayoutParams();
param.height = LinearLayout.LayoutParams.WRAP_CONTENT;
lin.setLayoutParams(param);
ViewGroup.LayoutParams params = lout.getLayoutParams();
params.height = 0;
lout.setLayoutParams(params);
}
l.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View view) {
String json = null;
if ((ed1.getText().toString().trim().length() >0 && ed2.getText().toString().trim().length()>0)) {
try {
FileInputStream fis = new FileInputStream(new File(getActivity().getFilesDir().getAbsolutePath() + "/log.txt"));
int size = fis.available();
byte[] buffer = new byte[size];
fis.read(buffer);
fis.close();
json = new String(buffer, "UTF-8");
} catch (IOException ex) {
ex.printStackTrace();
}
String[] parts = json.split("#@#");
String q = ed1.getText().toString() + ":" + ed2.getText().toString();
int flag = 0;
for (String item : parts) {
if (item.contains(q)) {
flag = 1;
Toast.makeText(getContext(), "Login Successful", Toast.LENGTH_SHORT).show();
String j=" ";
try {
FileInputStream fis = new FileInputStream(new File(getActivity().getFilesDir().getAbsolutePath() + "/"+ed1.getText().toString()+".txt"));
int size = fis.available();
byte[] buffer = new byte[size];
fis.read(buffer);
fis.close();
j = new String(buffer, "UTF-8");
} catch (IOException ex) {
ex.printStackTrace();
}
if(j.trim().length()>0) {
String[] j1 = j.split(",");
for (String i : j1) {
if (i.contains("python") && i.contains("STARTED")) {
editor.putString("python", "STARTED");
} else if (i.contains("c++") && i.contains("STARTED")) {
editor.putString("c++", "STARTED");
} else if (i.contains("java") && i.contains("STARTED")) {
editor.putString("java", "STARTED");
}
}
}
editor.putString("Flag","True");
editor.putString("User",ed1.getText().toString());
editor.apply();
ViewGroup.LayoutParams params = lin.getLayoutParams();
params.height = 0;
lin.setLayoutParams(params);
ViewGroup.LayoutParams param = lout.getLayoutParams();
param.height = LinearLayout.LayoutParams.WRAP_CONTENT;
lout.setLayoutParams(param);
Intent intent = new Intent(getContext(), MainActivity.class);
startActivity(intent);
getActivity().finish();
}
}
if (flag == 0) {
Toast.makeText(getContext(), "Login Unsuccessful, Try registering", Toast.LENGTH_LONG).show();
ed2.setText("");
r.setVisibility(View.VISIBLE);
}
}
}
});
r.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if ((ed1.getText().toString().trim().length() >0 && ed2.getText().toString().trim().length()>0)) {
try {
FileOutputStream fileout = getContext().openFileOutput("log.txt", MODE_PRIVATE);
OutputStreamWriter outputWriter = new OutputStreamWriter(fileout);
String s = "#@#" + ed1.getText().toString() + ":" + ed2.getText().toString() + "#@#";
outputWriter.write(s);
outputWriter.close();
} catch (IOException e) {
e.printStackTrace();
}
Toast.makeText(getContext(), "Registration Successful", Toast.LENGTH_LONG).show();
}
}
});
lo.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
ViewGroup.LayoutParams param = lin.getLayoutParams();
param.height = LinearLayout.LayoutParams.WRAP_CONTENT;
lin.setLayoutParams(param);
ViewGroup.LayoutParams params = lout.getLayoutParams();
params.height = 0;
lout.setLayoutParams(params);
editor.putString("Flag","False");
Toast.makeText(getContext(), "Logout Successful", Toast.LENGTH_LONG).show();
try {
String fname= mySharedPreferences.getString("User","cde")+".txt";
FileOutputStream fileout = getContext().openFileOutput(fname, MODE_PRIVATE);
OutputStreamWriter outputWriter = new OutputStreamWriter(fileout);
String s = "python:"+mySharedPreferences.getString("python","NOT") + ",c++:"+mySharedPreferences.getString("c++","NOT") + ",java:"+mySharedPreferences.getString("java","NOT");
outputWriter.write(s);
outputWriter.close();
} catch (IOException e) {
e.printStackTrace();
}
editor.putString("python","NOT");
editor.putString("c++","NOT");
editor.putString("java","NOT");
editor.apply();
}
});
return v;
} | {
"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_qiugouxiaoxi, container, false);\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 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\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\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 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(getLayoutId(), container, false);\n init(view);\n return view;\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 = 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 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_star_wars_list, 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 container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, 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,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, 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, 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, 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,\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, @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_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, 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,\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,\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 }",
"@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 }",
"@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 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 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_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,\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, 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 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,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\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 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 }",
"@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 }",
"@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 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.6742135",
"0.6726157",
"0.6724717",
"0.67012674",
"0.66944426",
"0.66910595",
"0.66888237",
"0.668751",
"0.66790944",
"0.667782",
"0.66679764",
"0.66676605",
"0.6667572",
"0.6663008",
"0.66553324",
"0.66510403",
"0.6644715",
"0.6641966",
"0.6639501",
"0.66363883",
"0.6627364",
"0.6622192",
"0.6618751",
"0.6611223",
"0.6600102",
"0.6595181",
"0.6587446",
"0.65868443",
"0.657639",
"0.65741396",
"0.65721875",
"0.6571437",
"0.65713495",
"0.65695465",
"0.6567595",
"0.6556657",
"0.65551215",
"0.65456784",
"0.65455115",
"0.6543597",
"0.6539696",
"0.653948",
"0.6539478",
"0.6536462",
"0.6535526",
"0.6534769",
"0.65328157",
"0.6531191",
"0.652906",
"0.65276444",
"0.6527151",
"0.65269464",
"0.652667",
"0.6526375",
"0.65200573",
"0.6515599",
"0.65155053",
"0.6514812",
"0.6514735",
"0.65131944",
"0.6512836",
"0.65126944",
"0.65114963",
"0.65105927",
"0.65095776",
"0.6505888",
"0.6504343",
"0.65039414",
"0.65034544",
"0.65000975",
"0.64967483",
"0.64948696",
"0.64927816",
"0.64897287",
"0.6489382",
"0.64893246",
"0.64892757",
"0.64892215",
"0.6488534",
"0.64878047",
"0.6486509",
"0.6484873",
"0.64840233",
"0.6483615",
"0.64833665",
"0.6483356",
"0.64798534",
"0.6479144",
"0.64774823",
"0.64773023",
"0.64770895",
"0.64739656",
"0.6472902",
"0.64724356",
"0.6471918",
"0.64701986",
"0.64690036",
"0.64649165",
"0.6464325",
"0.6464025",
"0.64638734"
] | 0.0 | -1 |
Startup method of TimeCloud | public static void main(String[] args) {
try {
DatabaseController databaseController = new DatabaseControllerSQLiteImpl("C:\\TEMP\\TimeCloud2");
EpisodeDAO episodeDao = new EpisodeDaoImpl(databaseController);
TransferDAO transferDao = new TransferDaoImpl(databaseController);
RequestDAO requestDao = new RequestDaoImpl(databaseController);
EpisodeController episodeController = new EpisodeControllerImpl(episodeDao);
TransferController transferController = new TransferControllerImpl(transferDao);
RequestController requestController = new RequestControllerImpl(requestDao);
EmergencyDataFileController emergencyDataFileController = new EmergencyDataFileControllerImpl(episodeDao, transferDao);
CodDataFileController codDataFileController = new CodDataFileControllerImpl(requestDao);
emergencyDataFileController.addObserver(episodeController);
emergencyDataFileController.addObserver(transferController);
codDataFileController.addObserver(requestController);
String path = "D:\\Pieter Van Eechout\\Dropbox\\Database voor data masterproef\\Kwantitatief onderzoek masterproef\\Data spoed\\";
String emergencyFiles[] = {"Opnames op periode 03.03-10.03.xls","Opnames op periode 10.03 -17.03.xls","Opnames op periode 17.02 -03.04.xls","Opnames op periode 17.03 tot 02.04.xls","Opnames op periode 07.03 -22.04.xls"};
String codFiles[] = {"Spoed wachten op COD versie ACMM_2014jantotapril.xls"};
emergencyDataFileController.readEmergencyDataFile(path, emergencyFiles);
codDataFileController.readCodDataFile(path, codFiles);
} catch (Exception ex) {//here we do want to catch the all
Logger.getLogger(TimeCloud.class.getName()).log(Level.SEVERE, null, ex);
System.err.println(ex.getMessage());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void initialize() {\n\n getStartUp();\n }",
"public void startup(){}",
"@Override\n public void startup() {\n }",
"@Override\n protected void startUp() {\n }",
"@PostConstruct\n public void startup()\n {\n //codeFragmentPrinter.startTimer();\n }",
"public void initialize (org.apache.spark.streaming.Time time) { throw new RuntimeException(); }",
"public abstract void startup();",
"@Override\n\tpublic void earlyStartup() {\n\t}",
"Cloud createCloud();",
"@Override\n public void startUpOperations() {\n }",
"@Override\n protected void initialize() {\n startT = Timer.getFPGATimestamp();\n }",
"void startup();",
"void startup();",
"public void startup() {\n\t\tstart();\n }",
"public BrightTimeService() {\n super(\"BrightTimeService\");\n }",
"public void init() {\n // These data structures are initialized here because other\n // module's startUp() might be called before ours\n this.systemStartTime = System.currentTimeMillis();\n }",
"protected void setupTime() {\n this.start = System.currentTimeMillis();\n }",
"@Override\n protected void initialize() {\n desiredTime = System.currentTimeMillis() + (long) (seconds * 1000);\n Robot.driveTrain.configForTeleopMode();\n }",
"public void startup() throws AMPException;",
"public void startup()\n\t{\n\t\t; // do nothing\n\t}",
"public void start()\n/* 354: */ {\n/* 355:434 */ onStartup();\n/* 356: */ }",
"protected void initialize() {\n \ttimer.start();\n }",
"private void initializeStartup()\n {\n /* Turn off Limelight LED when first started up so it doesn't blind drive team. */\n m_limelight.turnOffLED();\n\n /* Start ultrasonics. */\n m_chamber.startUltrasonics();\n }",
"public void earlyStartup() {\r\n //To initialize the sensor.\r\n try {\r\n EclipseSensor.getInstance();\r\n }\r\n catch (SensorShellException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"@Override\n public void onStart(Application app) {\n TimeZone.setDefault(TimeZone.getTimeZone(\"UTC\"));\n }",
"@PostConstruct\n\tpublic void init() {\n\t\tTimeZone.setDefault(TimeZone.getTimeZone(\"UTC\"));\n\t}",
"public void initializeInstance() {\n instanceLife = new Timer();\n }",
"@Override\n public void start() {\n runTime.reset();\n telemetry.addData(\"Run Time\", \"reset\");\n }",
"protected void initialize() {\n \tsetTimeout(timeInSeconds);\n }",
"@SuppressWarnings(\"deprecation\")\n private void initTime() {\n //Time time = new Time(System.currentTimeMillis());\n time = new Date().getTime();\n }",
"public StartUp(){\r\n \r\n }",
"public void startup() {\n neutral();\n }",
"public void init() {\n\ttsp.init();\n }",
"@Override\r\n\tpublic void startup() {\n\t\tif(!initialized)\r\n\t\t\tinitOperation();\r\n\t\tregisterMBean();\r\n\t}",
"public TimeMap() {\n\n }",
"@Override\r\n\tpublic void startup() {\n\t\t\r\n\t\tString wechatID = \"gh_f49bb9a333b3\";\r\n\t\tString Token = \"spotlight-wechat\";\r\n\t\t\r\n\t\tNoIOClient client = new NoIOClient(\"mg.protel.com.hk\",5010);\r\n\t\tclient.addCRouter(wechatID, Token,null,null);\r\n\t\t\r\n\t\tclient.startup();\r\n\r\n\t}",
"public static void init() \r\n {\r\n currentTime = getTime(); \r\n lastTime = getTime(); \r\n }",
"@Override\n protected void appStart() {\n }",
"protected Time() {\n\t}",
"public void start() {\r\n\t\tdiscoverTopology();\r\n\t\tsetUpTimer();\r\n\t}",
"public static void init() {\n\n\t\tsnapshot = new SnapshotService();\n\t\tlog.info(\"App init...\");\n\t}",
"private TimeUtil() {}",
"@Override\n public void initialize() {\n\n drivetrain = Drivetrain.getInstance();\n \n \n\n }",
"@Override\r\n\tpublic void startTime() {\n\t\tSystem.out.println(\"인터페이스 ISports2메소드 --> startTime()\");\r\n\t\t\r\n\t}",
"SyncStart createSyncStart();",
"@PostConstruct\n public void init() {\n prevBatchTime = transients.now();\n }",
"public void initialization() {\n path = Paths.get(\"/home/ubuntu-2018/NetBeansProjects/WatchService Example\");\n try {\n watchService = FileSystems.getDefault().newWatchService();\n path.register(watchService, ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY);\n } catch (IOException ioE) {\n System.out.println(\"Warning! Error message: \" + ioE);\n }\n }",
"public TimeSignatureRetriever ()\r\n {\r\n }",
"@PostConstruct\r\n\tpublic void doMyStartUpStuff() {\r\n\t\t\r\n\t\tSystem.out.println(\"TennisCoach : -> Inside of doMyStartUpStuff()\");\r\n\t}",
"public static long getStartupTime() {\n return startupTime;\n }",
"public static void start(){\n int size = 1024;\n int max = 32;\n GenericObjectPoolConfig genericObjectPoolConfig = new GenericObjectPoolConfig();\n genericObjectPoolConfig.setMaxTotal(size * max);\n genericObjectPoolConfig.setMaxIdle(size * max);\n genericObjectPoolConfig.setMinIdle(size);\n long time = 1000 * 30;\n genericObjectPoolConfig.setMaxWaitMillis(time);\n genericObjectPoolConfig.setSoftMinEvictableIdleTimeMillis(time);\n\n updateEventCacheFactory = new UpdateEventCacheFactory(new UpdateEventPoolFactory(), genericObjectPoolConfig);\n }",
"public void start() {\n startTime = System.currentTimeMillis();\n }",
"public synchronized void startup() {\n\n if (mThread == null) {\n mThread = new CounterThread();\n new Thread(mThread).start();\n }\n Log.d(TAG, \"startup\");\n }",
"public void start() {\n startTime = System.currentTimeMillis();\n }",
"@PostConstruct // bcoz of java 9 and higher version i need to download jar file\r\n\tpublic void doMyStartupStuff() {\r\n\t\tSystem.out.println(\">> TennisCoach: inside of doMyStrtupStuff()\");\r\n\t}",
"@Override\n\tpublic double timeToInitialize() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic void onStartup(ServletContext servletContext)\n\t\t\tthrows ServletException {\n\t\tsuper.onStartup(servletContext);//master line where whole framework works\n\t\t//configure global objects/tasks if required\n\t}",
"public TimeTravel() {\r\n\t\t}",
"default void onCustomStartTimeChanged(LocalTime startTime) {}",
"@BeforeClass\n public static void _startup()\n {\n // this test requires local storage to be enabled\n System.setProperty(\"coherence.distributed.localstorage\", \"true\");\n System.setProperty(\"coherence.distributed.threads.min\", \"4\");\n\n AbstractFunctionalTest._startup();\n }",
"protected void init()\n {\n Timestamp now = new Timestamp(System.currentTimeMillis());\n timestampCreated = now;\n timestampModified = now;\n createdByAgent = AppContextMgr.getInstance() == null? null : (AppContextMgr.getInstance().hasContext() ? Agent.getUserAgent() : null);\n modifiedByAgent = null;\n }",
"public void init() {\r\n\r\n\t\t// dater collectors\r\n\t\t//trucksArrived = new TimeSeries(this, \"arrived\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\t//trucksServiced = new TimeSeries(this, \"finished\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\ttrucksArrived = new TimeSeries(this, \"arrived\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\ttrucksServiced = new TimeSeries(this, \"finished\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\twaitTimeHistogram = new Histogram(this, \"Truck Wait Times\", 0, 16, 10, true, false);\r\n\r\n\t\t// distributions DEFAULT\r\n\t\t// serviceTime = new ContDistUniform(this, \"ServiceTimeStream\", 3.0, 7.0, true, false);\r\n\t\t// truckArrivalTime = new ContDistExponential(this, \"TruckArrivalTimeStream\", 3.0, true, false);\r\n\r\n\t\t// distributions PROBLEM DESCRIPTION\r\n\t\t// serviceTime = new ContDistUniform(this, \"ServiceTimeStream\", 3.5,6.5, true, false);\r\n\t\t// truckArrivalTime = new ContDistExponential(this, \"TruckArrivalTimeStream\", 2.0, true, false);\r\n\t\tserviceTime = new ContDistExponential(this, \"ServiceTimeStream\", 4.0, true, false);\r\n\t\ttruckArrivalTime = new ContDistExponential(this, \"TruckArrivalTimeStream\", 2.0, true, false);\r\n\r\n\t\t// queues\r\n\t\ttruckQueue = new ProcessQueue<Truck>(this, \"Truck Queue\", true, false);\r\n\t\tidleVCQueue = new ProcessQueue<VC>(this, \"idle VC Queue\", true, false);\r\n\t}",
"protected void initialize() {\n \tRobot.telemetry.setAutonomousStatus(\"Starting \" + commandName + \": \" + distance);\n \tRobot.drivetrain.resetEncoder();\n \t\n \tRobot.driveDistancePID.setSetpoint(distance);\n \tRobot.driveDistancePID.setRawTolerance(RobotPreferences.drivetrainTolerance());\n \tRobot.driveDistancePID.enable();\n \t\n \texpireTime = timeSinceInitialized() + (RobotPreferences.timeOut());\n }",
"protected void startup() {\n\t\tsynchronized (this) {\n\t\t\tstartTime = Utilities.getTime();\n\n\t\t\t// Start sets (and their containers' maintenance threads).\n\t\t\tfor (int i = 0; i < sets.length; i++) {\n\t\t\t\tsets[i].startup();\n\t\t\t}\n\n\t\t\tproducerThreadPool.start(this, builders);\n\n\t\t\tpayerThread.start();\n\n\t\t\t// Allow shutdown\n\t\t\tshutdownMutex.release();\n\t\t}\n\t}",
"protected void initialize() { \tthePrintSystem.printWithTimestamp(getClass().getName()); \r\n }",
"public void initialize () {\n\n }",
"Start createStart();",
"private void start() {\n\n\t}",
"public ToUseTimeLineFactoryImpl() {\n\t\tsuper();\n\t}",
"@PostConstruct\n public void init() {\n for (final Entry<String, Set<String>> aggregateEntry : processor.getTaskIndex().entrySet()) {\n final AggregateStopwatch stopwatchEntry = new AggregateStopwatch();\n\n aggregatedTasks.put(aggregateEntry.getKey(), stopwatchEntry);\n\n for (final String nameEntry : aggregateEntry.getValue()) {\n logger.info(\"adding stopwatchEntry - aggregate: \" + aggregateEntry.getKey() + \" task: \" + nameEntry);\n stopwatchEntry.getTimedTasks().put(nameEntry, new TaskStopwatch());\n }\n }\n }",
"@BeforeClass\n public static void _startup()\n {\n // this test requires local storage to be enabled\n System.setProperty(\"coherence.distributed.localstorage\", \"true\");\n\n AbstractFunctionalTest._startup();\n }",
"@BeforeClass\n public static void _startup()\n {\n // this test requires local storage to be enabled\n System.setProperty(\"coherence.distributed.localstorage\", \"true\");\n\n AbstractFunctionalTest._startup();\n }",
"@Override\r\n\tpublic void doInitialSchedules() {\n\t}",
"public void initialize();",
"public void initialize();",
"public void initialize();",
"public void initialize();",
"public void initialize();",
"public void initialize();",
"public void start() {}",
"public void start() {}",
"protected void initialize() {\n \t\n \tstart_time = System.currentTimeMillis();\n \t\n \tgoal = start_time + duration;\n }",
"@Override\n public void beforeStart() {\n \n }",
"@PostConstruct\n public void startWatch() throws Exception {\n LOGGER.info(\"START WATCH.\");\n Runnable task = new Runnable() {\n @Override\n public void run() {\n saveCurrencyListToDb();\n }\n };\n saveScheduleManagement(task, LocalTime.of(timePointHour, timePointMinute), period, TimeUnit.HOURS);\n }",
"private AppTimer() {\n\t\tstart();\n\t}",
"@PostConstruct\n\tvoid init() {\n\t\tTimeZone.setDefault(TimeZone.getTimeZone(\"Africa/Lagos\"));\n\t}",
"private void initialize() {\n }",
"@Override\n public void onCreate() {\n super.onCreate();\n\n JodaTimeAndroid.init(this);\n\n // mApplication = this;\n // initiate Timber\n //Timber.plant(new DebugTree());\n // Setup handler for uncaught exceptions.\n Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {\n @Override\n public void uncaughtException(Thread thread, Throwable e) {\n handleUncaughtException(thread, e);\n }\n });\n\n\n // initApplicationComponent();\n }",
"@PostConstruct\n public void init() {\n interval = AppConfiguration.CONFIG.getStationInfoInterval();\n }",
"protected void setup() {\n\t\t\n\n\n\t\tif(PropertiesLoaderImpl.IS_MAIN_SIMULATION_NODE)addBehaviour(new HandleClockBehaviour(this, TimeRateControl));\n\t\telse addBehaviour(new SlaveNodeClockBehaviour(this, TimeRateControl));\n\t\t\n\t\tif(PropertiesLoaderImpl.DEBUG) System.out.println(this.getName() +\" alive!!!!!!!!!!\\nStarting the simulation time\");\n\t\t\n\t\n\t\t\tSimulationClock.getInstance().setSimulationStarted(true);\n\t\n\t}",
"@Override\n public void start() {\n }",
"public static void created() {\n\t\t// TODO\n\t}",
"@Override\n public void taskStarting() {\n\n }",
"@Override\n public void onInitializeTasks() {\n }",
"public void start() {\n\n\t}",
"@Override\n public void firstApplicationStartup()\n {\n System.out.println(\"firstApplicationStartup\");\n \n }",
"private void init(String[] args) {\n String provider = \"rackspace-clouddatabases-us\";\n\n String username = args[0];\n String apiKey = args[1];\n \n api = ContextBuilder.newBuilder(provider)\n .credentials(username, apiKey)\n .buildApi(TroveApi.class);\n \n flavorApi = api.getFlavorApiForZone(Constants.ZONE);\n }",
"private void init() {\n\t\t/* Add the DNS of your database instances here */\n\t\tdatabaseInstances[0] = \"ec2-52-0-167-69.compute-1.amazonaws.com\";\n\t\tdatabaseInstances[1] = \"ec2-52-0-247-64.compute-1.amazonaws.com\";\n\t}",
"@Override\n public void init() {\n this.log.pri1(LoggingInterface.INIT_START, \"\");\n // Any task initialization code goes here.\n this.log.pri1(LoggingInterface.INIT_END, \"\");\n }",
"public void startup() {\n /* Schedule the cleanup task to delete old logs */\n if (scheduler != null) {\n logger.info(\"Starting log cleanup with a period of {} ms.\", retentionCheckMs);\n scheduler.schedule(\"kafka-log-retention\", new Runnable() {\n @Override\n public void run() {\n cleanupLogs();\n }\n }, InitialTaskDelayMs, retentionCheckMs, TimeUnit.MILLISECONDS);\n logger.info(\"Starting log flusher with a default period of {} ms.\", flushCheckMs);\n scheduler.schedule(\"kafka-log-flusher\", new Runnable() {\n @Override\n public void run() {\n flushDirtyLogs();\n }\n }, InitialTaskDelayMs, flushCheckMs, TimeUnit.MILLISECONDS);\n scheduler.schedule(\"kafka-recovery-point-checkpoint\", new Runnable() {\n @Override\n public void run() {\n checkpointRecoveryPointOffsets();\n }\n }, InitialTaskDelayMs, flushCheckpointMs, TimeUnit.MILLISECONDS);\n }\n if (cleanerConfig.enableCleaner)\n cleaner.startup();\n }",
"public static void init() {\n startTime = System.currentTimeMillis();\n if (clientExecutorEngine == null) {\n clientExecutorEngine = new ClientExecutorEngine();\n HzClient.initClient();\n }\n }"
] | [
"0.6724671",
"0.65009105",
"0.65000886",
"0.6459593",
"0.6272895",
"0.6270745",
"0.6110435",
"0.6060262",
"0.5978498",
"0.59220195",
"0.5888931",
"0.58880216",
"0.58880216",
"0.58794457",
"0.5854522",
"0.58529764",
"0.5834924",
"0.5828296",
"0.5740144",
"0.57088727",
"0.5703736",
"0.5696327",
"0.5685174",
"0.5677055",
"0.5655721",
"0.56446064",
"0.5614378",
"0.55702853",
"0.5560809",
"0.5560055",
"0.55598295",
"0.5556735",
"0.555531",
"0.55459493",
"0.55375785",
"0.553672",
"0.55366737",
"0.5525318",
"0.5524805",
"0.5520447",
"0.5515367",
"0.5511028",
"0.5496319",
"0.5487927",
"0.5479531",
"0.54506034",
"0.5450156",
"0.5448115",
"0.5447688",
"0.54451156",
"0.5441044",
"0.543253",
"0.542141",
"0.5420305",
"0.5418096",
"0.5412294",
"0.5411409",
"0.539631",
"0.5388308",
"0.5384201",
"0.53800154",
"0.5376494",
"0.5373526",
"0.5370631",
"0.53688574",
"0.53478354",
"0.5347526",
"0.5347135",
"0.5345318",
"0.53448206",
"0.53397983",
"0.53397983",
"0.5332824",
"0.53315175",
"0.53315175",
"0.53315175",
"0.53315175",
"0.53315175",
"0.53315175",
"0.5327298",
"0.5327298",
"0.5327106",
"0.53183854",
"0.5310517",
"0.5306345",
"0.53061223",
"0.53058267",
"0.5305036",
"0.53047407",
"0.52859414",
"0.5282439",
"0.5282245",
"0.5280973",
"0.5279406",
"0.52789664",
"0.52789503",
"0.52782184",
"0.52776873",
"0.5274698",
"0.5270715",
"0.5267513"
] | 0.0 | -1 |
public interface for initializing the referrer to the current instance. | public static final AppMeasurementWrapper getInstance (String referer) {
//set the referrer value from receiver to the running instance
instance.referrer = referer;
return instance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void init(boolean forward) throws CertPathValidatorException\n\t{\n\t}",
"public MyCallSite() {\n// mh = findTarget();\n super(findTarget());\n }",
"public void setReferrerRef(Reference referrerRef) {\n this.referrerRef = referrerRef;\n\n // A referrer reference must not include a fragment.\n if ((this.referrerRef != null)\n && (this.referrerRef.getFragment() != null)) {\n this.referrerRef.setFragment(null);\n }\n }",
"@Override\n public void initSelf(OrchidContext oc) throws OrchidException\n {\n super.initSelf(oc);\n\n try {\n BlogPolicy blog = getParentBlog();\n if (blog != null) {\n ContentId blogId = blog.getContentId().getContentId();\n\n parentBlogLink = new OContentIdLink();\n parentBlogLink.setContentId(blogId);\n parentBlogLink.setLabel(blog.getName());\n parentBlogLink.setTitle(blogId.getContentIdString());\n parentBlogLink.init(oc);\n }\n } catch (CMException e) {\n e.printStackTrace();\n }\n }",
"private DIDURL(DID context) {\n\t\tthis(context, (DIDURL)null);\n\t}",
"public void init() throws Throwable\n\t{\n\t\tmemberLookup_Details_Steps = new MemberLookup_Details_Steps(SharedResource,utils);\n\t\tmemberLookup_Formulary_DrugResults_Steps = new MemberLookup_Formulary_DrugResults_Steps(SharedResource,utils);\n\t}",
"public ResourceReferenceDt getReferrer() { \n\t\tif (myReferrer == null) {\n\t\t\tmyReferrer = new ResourceReferenceDt();\n\t\t}\n\t\treturn myReferrer;\n\t}",
"public void setReferral( boolean referral )\n {\n this.referral = referral;\n }",
"public SetOnceRef() {\n this(null, false, false);\n }",
"protected DefaultLink() {\n }",
"public Reference() {\n super();\n }",
"private EagerInitilization(){}",
"public void init() throws Throwable\n\t{\n\t\tmemberLookup_Details_Steps = new MemberLookup_Details_Steps(SharedResource,utils);\n\t\tmemberLookup_BenefitsEligibility_DualCoverage_Steps = new MemberLookup_BenefitsEligibility_DualCoverage_Steps(SharedResource,utils);\n\t}",
"public Forwarding() {\n\n }",
"protected void _initLinks() {\n\tpeopleLink = null;\n\tchangeLogDetailsesLink = null;\n}",
"public void init(boolean forward) throws CertPathValidatorException {\n if (forward) {\n throw new CertPathValidatorException(\"forward checking \"\n + \"not supported\");\n }\n }",
"public void init(boolean forward) throws CertPathValidatorException {\n }",
"public WeakReference(final T referent, final A attachment) {\n this(referent, attachment, (Reaper<T, A>) null);\n }",
"protected LibReference() {\n\t}",
"public void trackReferral() {\n track(\"_referral\");\n }",
"private void initialize(URI p_other) {\n m_scheme = p_other.getScheme();\n m_userinfo = p_other.getUserinfo();\n m_host = p_other.getHost();\n m_port = p_other.getPort();\n m_regAuthority = p_other.getRegBasedAuthority();\n m_path = p_other.getPath();\n m_queryString = p_other.getQueryString();\n m_fragment = p_other.getFragment();\n }",
"public Reference getReferrerRef() {\n return this.referrerRef;\n }",
"public ListReferenceBased() {\r\n\t numItems = 0; // declares numItems is 0\r\n\t head = null; // declares head is null\r\n }",
"public static workflowexecution.proxies.LinkVisit initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject)\r\n\t{\r\n\t\treturn new workflowexecution.proxies.LinkVisit(context, mendixObject);\r\n\t}",
"public void setPreferenceInferrer(PreferenceInferrer inferrer) {\n\t\t\r\n\t}",
"protected void _initLinks() {\n\t\tleaseTaskStartsLink = null;\n\t\tleaseRulesLink = null;\n\t}",
"@Override public void init()\n\t\t{\n\t\t}",
"public WeakReference(final T referent) {\n this(referent, null, (Reaper<T, A>) null);\n }",
"@Override\n public void init(Container cntr, Shouter shouter) {\n this.cntr = cntr;\n\n // Shouter is responsible of notifying subscribers when onr or more Subjects' or Events' state change.\n this.shouter = shouter;\n //Usually Steps keeps a reference to these two objects for further usage\n }",
"public ResourceReferenceDt getReferrerElement() { \n\t\tif (myReferrer == null) {\n\t\t\tmyReferrer = new ResourceReferenceDt();\n\t\t}\n\t\treturn myReferrer;\n\t}",
"public T getRefer() {\n return refer;\n }",
"public ImagingStudy setReferrer(ResourceReferenceDt theValue) {\n\t\tmyReferrer = theValue;\n\t\treturn this;\n\t}",
"public UrlEncapsulation() {\r\n\t\t\r\n\t\tthis(null\r\n\t\t\t\t, null, null, null, null\r\n\t\t\t\t, false, null, null, null, null, null, null, null);\r\n\t\t\r\n\t}",
"public void setRefer(T refer) {\n this.refer = refer;\n }",
"public void init() {\r\n\t\t// to override\r\n\t}",
"public void init() throws Throwable\r\n\t{\n\t\tpharmacyLookup_Details_Steps = new PharmacyLookup_Details_Steps(SharedResource,utils);\r\n\t\tpharmacyLookup_BenefitsEligibility_DualCoverage_Steps = new PharmacyLookup_BenefitsEligibility_DualCoverage_Steps(SharedResource,utils);\r\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"public WeakReference(final T referent, final A attachment, final Reaper<T, A> reaper) {\n super(referent, References.ReaperThread.getReaperQueue());\n this.attachment = attachment;\n this.reaper = reaper;\n }",
"private void init(){\n //Get instance of Members to access Members Lists\n Members members = Members.getInstance();\n \n //add to patient members list\n members.getPatients().addMember(this);\n }",
"@Override\r\n\tpublic void init() {}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"public ResourceSite() {\n this( null);\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n \n //Init grandparent\n ls = LibrarySingleton.librarySingleton();\n this.grandparent = LibrarySingleton.getParent_instance();\n \n }",
"protected void init() {\n // to override and use this method\n }",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"public void initialize() {\n // add direct connections to routing table\n for (Bunker neighbour : neighbours) {\n routing.put(neighbour.getId(), neighbour);\n }\n // add yourself\n routing.put(id, this);\n bunkerIdToCount.put(id, count);\n // kick off the algo\n initiate();\n }",
"@Override\n public void init() {}",
"@objid (\"4bb3363c-38e1-48f1-9894-6dceea1f8d66\")\n public void init() {\n }",
"public LinksBean() {\n }",
"public LinkBuilder() {\n }",
"@Override\n protected void initialize() {\n mDrive.resetGyroPosition();\n try {\n Trajectory left_trajectory = PathfinderFRC.getTrajectory(pathName + \".left\");\n Trajectory right_trajectory = PathfinderFRC.getTrajectory(pathName + \".right\");\n\n m_left_follower = new EncoderFollower(left_trajectory);\n m_right_follower = new EncoderFollower(right_trajectory);\n\n if(isBackwards) {\n initBackwards();\n } else {\n initForwards();\n }\n } catch (IOException e) {\n\t\t e.printStackTrace();\n\t }\n }",
"public void init()\r\n {\r\n eventPublisher.publishEvent(new CachedContentCleanerCreatedEvent(this));\r\n }",
"protected void onInit() {\n super.onInit();\n ruleManager = getBean(RuleManager.BEAN_NAME);\n }",
"private Link() {\n }",
"@Override\r\n public BaseVO refer(BaseVO baseVO) {\n return null;\r\n }",
"protected void init() {\n init(null);\n }",
"@Override\n\t\tprotected void initialise() {\n\n\t\t}",
"public ForwardRequest setInitiator() {\n\t\tthis.isInitiator = true;\n\t\treturn this;\n\t}",
"protected AbstractPropagator() {\n multiplexer = new StepHandlerMultiplexer();\n additionalStateProviders = new ArrayList<>();\n unmanagedStates = new HashMap<>();\n harvester = null;\n }",
"@PostConstruct\n public void initRoad(){\n LinearReference();\n }",
"protected void initialize() {}",
"protected void initialize() {}",
"@Override\n protected void init() {\n }",
"public void initialize(ConfabulatorObject original) {\n\t\tinitialize(original.getMaxLinkDistance(),original.getMaxLinkCount(),original.getLinks());\n\t}",
"@Override\r\n\tpublic final void init() {\r\n\r\n\t}",
"@Override\n protected void init() {\n viewModel.setNavigator(this);\n setUp();\n subscribeToLiveData();\n\n setUpNotificationUi();\n setUpNotification();\n\n setUpAds();\n\n viewModel.start(getCurrentVersionOfApp());\n }",
"@Override\n public void initialize(AcceptVerification acceptVerification) {\n }",
"private void init() {\n listeners = new PropertyChangeSupport(this);\n }",
"private void initSvcInstRef()\n\t{\n\t\tSVC_INST_REF.setType(SVC_INST_NAME);\n\t\tSVC_INST_REF.setValue(SVC_INST_NAME);\n\t}",
"protected Depot() {\n\t\tthis(null);\n\t}",
"public Builder() {\n mParams = new NavigateParams();\n }",
"public void initialize() {\n setCommitteeHelper(getNewCommitteeHelperInstanceHook(this));\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n this.refreshData();\n if(this.backLinkScreen != null) {\n this.backButton.setVisible(true);\n }\n else {\n \tthis.backButton.setVisible(false);\n }\n }",
"public static void init() {\r\n\t\tsetPolicy(BPF.getInstance().getConfig().routes_setting()\r\n\t\t\t\t.getQueuing_policy());\r\n\t}",
"@Override\n public void initialize(URL url, ResourceBundle rb)\n {\n \n try\n {\n //The modelfacade gets instantieted here.\n modelfacade = ModelFacade.getInstance();\n isPaidNum = 1;\n }\n catch (Exception ex) //This exception happens if for some reason the program is unable to get the instance of modelfacade, this is probably unnecessary\n {\n Logger.getLogger(AddClientController.class.getName()).log(Level.SEVERE, null, ex);\n JOptionPane.showMessageDialog(null, \"Couldn't get the instance of modelfacade\" + ex,\"ERROR!\", JOptionPane.ERROR_MESSAGE);\n }\n }",
"protected void initialize(ExternalContext context)\n {\n }",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@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 setReferrerRef(String referrerUri) {\n setReferrerRef(new Reference(referrerUri));\n }",
"@Override\n public void initialize() {\n if(prefix == null)\n prefix = getToolkit().getArguments().referenceFile.getAbsolutePath();\n BWTFiles bwtFiles = new BWTFiles(prefix);\n BWAConfiguration configuration = new BWAConfiguration();\n aligner = new BWACAligner(bwtFiles,configuration);\n }",
"public void setInitiator(ObjectType init) { initiator = init; }",
"public boolean isSetReferer() {\n return this.referer != null;\n }",
"public void setReference(Reference ref)\n {\n this.ref = ref;\n }",
"public ResourceSite( Class<?> baseClass) {\n this( baseClass, null);\n }",
"protected void initialize() {\n \t\n }",
"public Climber(){\n\t\tinst = this;\n\t}",
"private WebRequest() {\n initFields();\n }",
"public LinksResource() {\n }",
"@Override\n public void init() {\n }",
"@Override\r\n public void initialize()\r\n {\n }",
"@Override\n void init() {\n }",
"private void processInstallReferrer() {\n if (referrerClient == null || !referrerClient.isReady()) {\n return;\n }\n\n String referrerStr;\n try {\n referrerStr = referrerClient.getInstallReferrer().getInstallReferrer();\n } catch (Exception e) {\n e.printStackTrace();\n return;\n }\n\n L.d(\"Received install referrer: \" + referrerStr);\n if (TextUtils.isEmpty(referrerStr)) {\n return;\n }\n\n String refUrl = null;\n String refUtmMedium = null;\n String refUtmCampaign = null;\n String refUtmSource = null;\n String refChannel = null;\n try {\n String[] arr = referrerStr.split(\"&\");\n for (String str : arr) {\n String[] item = str.split(\"=\");\n if (item.length < 2) {\n continue;\n }\n switch (item[0]) {\n case InstallReferrerFunnel.PARAM_REFERRER_URL:\n refUrl = item[1];\n break;\n case InstallReferrerFunnel.PARAM_UTM_MEDIUM:\n refUtmMedium = item[1];\n break;\n case InstallReferrerFunnel.PARAM_UTM_CAMPAIGN:\n refUtmCampaign = item[1];\n break;\n case InstallReferrerFunnel.PARAM_UTM_SOURCE:\n refUtmSource = item[1];\n break;\n case InstallReferrerFunnel.PARAM_CHANNEL:\n refChannel = item[1];\n break;\n default:\n break;\n }\n }\n } catch (Exception e) {\n // Can be thrown by getQueryParameter() if the referrer is malformed.\n // Don't worry about it.\n }\n // log the event only if at least one of the parameters is nonempty\n if (!TextUtils.isEmpty(refUrl) || !TextUtils.isEmpty(refUtmMedium)\n || !TextUtils.isEmpty(refUtmCampaign) || !TextUtils.isEmpty(refUtmSource)) {\n InstallReferrerFunnel funnel = new InstallReferrerFunnel(WikipediaApp.getInstance());\n funnel.logInstall(refUrl, refUtmMedium, refUtmCampaign, refUtmSource);\n }\n if (!TextUtils.isEmpty(refUrl) && ShareUtil.canOpenUrlInApp(WikipediaApp.getInstance(), refUrl)) {\n openPageFromUrl(WikipediaApp.getInstance(), refUrl);\n }\n if (!TextUtils.isEmpty(refChannel)) {\n Prefs.setAppChannel(refChannel);\n }\n }",
"@Override\n\tpublic void init(graph g) {\n\t\tthis.GA = g;\n\t}",
"protected void init() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}"
] | [
"0.5633645",
"0.55838835",
"0.55607647",
"0.5557731",
"0.5512717",
"0.55050516",
"0.54774046",
"0.54503053",
"0.54307455",
"0.54233545",
"0.542066",
"0.5412653",
"0.53841305",
"0.5379525",
"0.5364949",
"0.5328625",
"0.53264886",
"0.52866554",
"0.5286299",
"0.52828544",
"0.5279367",
"0.5271196",
"0.52677476",
"0.52620775",
"0.5256839",
"0.52501297",
"0.5238282",
"0.52375966",
"0.5220673",
"0.52092195",
"0.5207448",
"0.5207315",
"0.5201205",
"0.51970744",
"0.51968116",
"0.51858675",
"0.51838326",
"0.5174668",
"0.517111",
"0.51588005",
"0.5152156",
"0.5146599",
"0.5138582",
"0.51361525",
"0.51304686",
"0.51304686",
"0.51229197",
"0.5111884",
"0.51091254",
"0.5098728",
"0.50978833",
"0.50970185",
"0.50963",
"0.5084812",
"0.50827956",
"0.5071893",
"0.5070146",
"0.50484896",
"0.50465256",
"0.5042828",
"0.5041628",
"0.50414896",
"0.50414896",
"0.5041097",
"0.5040384",
"0.5039399",
"0.50383997",
"0.503671",
"0.5036253",
"0.5035217",
"0.5031918",
"0.5029572",
"0.5022289",
"0.50157964",
"0.50100464",
"0.5006347",
"0.50044364",
"0.5004126",
"0.5004126",
"0.5004126",
"0.50024116",
"0.50024116",
"0.50024116",
"0.49917004",
"0.4991067",
"0.49900147",
"0.49885187",
"0.4984309",
"0.4983931",
"0.49837416",
"0.49730963",
"0.49711815",
"0.49614882",
"0.49541408",
"0.4953109",
"0.49509835",
"0.49498078",
"0.4937145",
"0.49371168",
"0.49264005"
] | 0.51376027 | 43 |
This method removes the walls between two given cells. | public void removeWall(Vertex current, Vertex next) {
if (current.label + mazeSize == next.label) {
current.hasDownWall = false;
next.hasUpWall = false;
} else if (current.label + 1 == next.label) {
current.hasRightWall = false;
next.hasLeftWall = false;
} else if (current.label - 1 == next.label) {
current.hasLeftWall = false;
next.hasRightWall = false;
} else if (current.label - mazeSize == next.label) {
current.hasUpWall = false;
next.hasDownWall = false;
}
current.neighbors.remove(next);
next.neighbors.remove(current);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeWalls(Cell neighbor){\n int col2 = col - neighbor.col;\n if(col2 == 1){ // neighbor is to the left of current cell\n walls[3] = false;\n neighbor.walls[1] = false;\n } else if(col2 == -1){ // neighbor is to the right of current cell\n walls[1] = false;\n neighbor.walls[3] = false;\n }\n\n int row2 = row - neighbor.row;\n if(row2 == 1) { // neighbor is above current cell\n walls[0] = false;\n neighbor.walls[2] = false;\n } else if (row2 == -1){ // neighbor is below current cell\n walls[2] = false;\n neighbor.walls[0] = false;\n }\n }",
"private synchronized void removeWall(int desiredRow, int desiredColumn) {\n \tint topBlock = m.maze[desiredRow - 1][desiredColumn];\t\t\t\t\t// block directly above the current block\r\n \tint leftBlock = m.maze[desiredRow][desiredColumn - 1];\t\t\t\t\t// block directly left of the current block\r\n \tint bottomBlock = m.maze[desiredRow + 1][desiredColumn];\t\t\t\t// block directly below the current block\r\n \tint rightBlock = m.maze[desiredRow][desiredColumn + 1];\t\t\t\t\t// block directly right of the current block\r\n \t\r\n if (desiredRow % 2 == 1 && leftBlock != rightBlock) {\t\t\t\t\t// wall is vertical\r\n \tm.fixBlocks(desiredRow, desiredColumn - 1, leftBlock, rightBlock);\t// fix all blocks so a loop is not created when the wall is removed\r\n m.maze[desiredRow][desiredColumn] = rightBlock;\t\t\t\t\t\t// set current block with wall to be empty (no wall) thus removing the wall\r\n } else if (desiredRow % 2 == 0 && topBlock != bottomBlock) {\t\t\t// wall is horizontal\r\n \tm.fixBlocks(desiredRow - 1, desiredColumn, topBlock, bottomBlock);\t// fix all blocks so a loop is not created when the wall is removed\r\n m.maze[desiredRow][desiredColumn] = bottomBlock;\t\t\t\t\t// set current block with wall to be empty (no wall) thus removing the wall\r\n }\r\n repaint();\r\n try { wait(1); }\r\n catch (InterruptedException e) { }\r\n }",
"private void removeWall(Position3D curr, Position3D neighbor, boolean[][][] VisitedCells, Maze3D myMaze) {\n int currR =curr.getRowIndex();\n int currC = curr.getColumnIndex();\n int currD =curr.getDepthIndex();\n int neiR =neighbor.getRowIndex();\n int neiC = neighbor.getColumnIndex();\n int neiD = neighbor.getDepthIndex();\n int wallR;\n int wallC;\n int wallD;\n //check the relative position of the neighbor to the current, and find the wall (position) that we need to break\n if(currR < neiR){\n wallD = currD;\n wallR = currR+1;\n wallC = currC;}\n else if(currR > neiR){\n wallD = currD;\n wallR = currR-1;\n wallC = currC;}\n else{// currR = neiR\n wallR = currR;\n if (currC == neiC){\n wallC = currC;\n if(currD < neiD){\n wallD = currD+1;}\n else{\n wallD = currD-1;}}\n else{\n wallD = currD;\n if(currC < neiC){\n wallC = currC+1;}\n else{\n wallC = currC-1;}}\n }\n\n myMaze.maze[wallD][wallR][wallC]= 0; //change wall position to 0 (break wall)\n changeStatus(wallD,wallR,wallC, VisitedCells); //change wall position to 1 (mark as visited)\n }",
"public void avoidOverlappingCell(Object[] cells2) {\r\n \r\n \t\toverlapping.avoidOverlappingCell(cells2);\r\n \t\tgraphRepaint();\r\n \t\tgraph.getGraphLayoutCache().reload();\r\n \t}",
"public static void removeSomeWalls(TETile[][] t) {\n for (int x = 1; x < WIDTH - 1; x++) {\n for (int y = 1; y < HEIGHT - 1; y++) {\n if (t[x][y] == Elements.TREE\n && t[x + 1][y] == Elements.FLOOR) {\n if (t[x - 1][y] == Elements.FLOOR\n && t[x][y + 1] == Elements.FLOOR) {\n if (t[x][y - 1] == Elements.FLOOR\n && t[x + 1][y + 1] == Elements.FLOOR) {\n if (t[x + 1][y - 1] == Elements.FLOOR\n && t[x - 1][y + 1] == Elements.FLOOR) {\n if (t[x - 1][y - 1] == Elements.FLOOR) {\n t[x][y] = Elements.FLOOR;\n }\n }\n }\n }\n }\n }\n }\n }",
"public void hunt() {\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tif(cells[i].visited == false) {\n\t\t\t\t\n\t\t\t\tint currentIndex = i;\n\t\t\t\t\n\t\t\t\tArrayList<Integer> neighbors = setVisitedNeighbors(i);\n\t\t\t\tint nextIndex = getRandomVisitedNeighborIndex(neighbors);\n\t\t\t\t\t\t\t\t\n\t\t\t\tif(neighbors.size() != 0 ) {\n\t\t\t\t\tcells[currentIndex].visited = true;\n\t\t\t\t\t\n\t\t\t\t\tif(nextIndex == NOT_EXIST) {\n\t\t\t\t\t\tbreak; \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//if there is NO not visited neighbors \n\t\t\t\t\t}\n\t\t\t\t\telse if(currentIndex - nextIndex == -1) {\n\t\t\t\t\t\tcells[currentIndex].border[EAST] = NO_WALL; \t\t\t\t\t\t\t//neighbor is right \n\t\t\t\t\t\tcells[nextIndex].border[WEST] = NO_WALL;\n\t\t\t\t\t}\n\t\t\t\t\telse if(currentIndex - nextIndex == width) {\n\t\t\t\t\t\tcells[currentIndex].border[NORTH] = NO_WALL;\t\t\t\t\t\t\t//neighbor is up\n\t\t\t\t\t\tcells[nextIndex].border[SOUTH] = NO_WALL;\n\t\t\t\t\t}\n\t\t\t\t\telse if(currentIndex - nextIndex == -width) {\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tcells[currentIndex].border[SOUTH] = NO_WALL;\t\t\t\t\t\t\t//neighbor is down\n\t\t\t\t\t\tcells[nextIndex].border[NORTH] = NO_WALL;\n\t\t\t\t\t}\n\t\t\t\t\telse if(currentIndex - nextIndex == 1) {\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tcells[currentIndex].border[WEST] = NO_WALL;\t\t\t\t\t\t\t\t//neighbor is left\n\t\t\t\t\t\tcells[nextIndex].border[EAST] = NO_WALL;\n\t\t\t\t\t}\n\t\t\t\t\tkill(nextIndex);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void removeNeighbours(){\n\t\tgetNeighbours().removeAll(getNeighbours());\n\t}",
"void removeNeighbors();",
"void clearCell(int x, int y);",
"public abstract boolean killOverlapCell(Rectangle rect);",
"public void buildBoundaryWall() {\n for (int i = 0; i < worldWidth; i += 1) {\n for (int j = 0; j < worldHeight; j += 1) {\n if (i == 0 || i == worldWidth - 1\n || j == 0 || j == worldHeight - 1) {\n world[i][j] = Tileset.WALL;\n }\n }\n }\n }",
"public void buildWall() {\n for (int i = 0; i < worldWidth; i += 1) {\n for (int j = 0; j < worldHeight; j += 1) {\n if (world[i][j].equals(Tileset.NOTHING)\n && isAdjacentFloor(i, j)) {\n world[i][j] = Tileset.WALL;\n }\n }\n }\n }",
"public void wipe(){\n\t \tg2d.setColor(Color.yellow);\n g2d.fillRect(0,0, width, height);\n\t\t\n\n\t }",
"public void removeWall(Wall wall, boolean silent) {\n/* 2671 */ if (wall != null) {\n/* */ \n/* 2673 */ if (this.walls != null) {\n/* */ \n/* 2675 */ this.walls.remove(wall);\n/* 2676 */ if (this.walls.size() == 0)\n/* 2677 */ this.walls = null; \n/* */ } \n/* 2679 */ if (this.watchers != null && !silent)\n/* */ {\n/* 2681 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 2685 */ vz.removeWall(this.structure.getWurmId(), wall);\n/* */ }\n/* 2687 */ catch (Exception e) {\n/* */ \n/* 2689 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }\n/* */ } \n/* */ }",
"private void shiftDownTiles(boolean isBorder, int shiftAmount){\n List<Tile> listOfTilesToUpdate = new ArrayList<Tile>();\n int floorRowIndex;\n if(isBorder){\n floorRowIndex=this.board.gridHeight-2;\n } else {\n floorRowIndex=this.board.gridHeight-1;\n }\n\n\n //update all existing tiles y coordinates with shifted y coordinates\n //only shift tile above the row that is being removed\n for(int rowIndex=0; rowIndex<this.rowToBeRemovedIndex; rowIndex++){\n for(int colIndex=0; colIndex<this.board.gridWidth; colIndex++){\n if(this.board.getTile(colIndex,rowIndex)!=null){ //tile exist at coordinates\n if(isBorder){\n if(rowIndex<=floorRowIndex){ //Stop at floor wall\n int leftWallIndex=0;\n int rightWallIndex=this.board.gridWidth-1;\n if(colIndex>leftWallIndex && colIndex<rightWallIndex){ //Ignore the the left and right walls\n Tile tile = this.board.getTile(colIndex,rowIndex);\n tile.rowIndex+=shiftAmount;\n tile.setCoordinates(tile.columnIndex,tile.rowIndex);\n listOfTilesToUpdate.add(tile);\n }\n }\n } else {\n Tile tile = this.board.getTile(colIndex,rowIndex);\n tile.rowIndex+=shiftAmount;\n tile.setCoordinates(tile.columnIndex,tile.rowIndex);\n listOfTilesToUpdate.add(tile);\n }\n }\n }\n }\n\n //Clear Board Grid. Set every element in 2D array to null.\n for(int rowIndex=0; rowIndex<this.board.gridHeight; rowIndex++){\n for(int colIndex=0; colIndex<this.board.gridWidth; colIndex++){\n Tile tile = this.board.getTile(colIndex, rowIndex);\n this.board.removeTile(tile);\n }\n }\n\n //add back tetris border\n if(this.includeTetrisBorder) {\n addBorder();\n }\n\n //Insert new tiles\n for(Tile newTile : listOfTilesToUpdate){\n this.board.placeTile(newTile);\n }\n }",
"public void removeScenery(){\n\t\tfor(int i=0;i<grid.length;i++){\n\t\t\tfor(int j=0;j<grid[0].length;j++){\n\t\t\t\tif(grid[i][j].isScenery())\n\t\t\t\t\tgrid[i][j]=null;\n\t\t\t}\n\t\t}\n\t}",
"public void unvisitCells() {\n for (int r = 0; r < MAX_ROWS; r++) {\n for (int c = 0; c < MAX_COLUMNS; c++) {\n cells[r][c].unvisit();\n }\n }\n }",
"private void testForWallCollision() {\n\t\tVector2 n1 = temp;\n\t\tVector2 hitPoint = temp2;\n\t\t\n\t\tArrayList<Vector2> list;\n\t\tdouble angleOffset;\n\t\t\n\t\tfor (int w=0; w < 2; w++) {\n\t\t\tif (w == 0) {\n\t\t\t\tlist = walls1;\n\t\t\t\tangleOffset = Math.PI/2;\n\t\t\t} else {\n\t\t\t\tlist = walls2;\n\t\t\t\tangleOffset = -Math.PI/2;\n\t\t\t}\n\t\t\tn1.set(list.get(0));\n\t\t\t\n\t\t\tfor (int i=1; i < list.size(); i++) {\n\t\t\t\tVector2 n2 = list.get(i);\n\t\t\t\tif (Intersector.intersectSegments(n1, n2, oldPos, pos, hitPoint)) {\n\t\t\t\t\t// bounceA is technically the normal. angleOffset is used\n\t\t\t\t\t// here to get the correct side of the track segment.\n\t\t\t\t\tfloat bounceA = (float) (Math.atan2(n2.y-n1.y, n2.x-n1.x) + angleOffset);\n\t\t\t\t\tVector2 wall = new Vector2(1, 0);\n\t\t\t\t\twall.setAngleRad(bounceA).nor();\n\t\t\t\t\t\n\t\t\t\t\t// move the car just in front of the wall.\n\t\t\t\t\tpos.set(hitPoint.add((float)Math.cos(bounceA)*0.05f, (float)Math.sin(bounceA)*0.05f));\n\t\t\t\t\t\n\t\t\t\t\t// Lower the speed depending on which angle you hit the wall in.\n\t\t\t\t\ttemp2.setAngleRad(angle).nor();\n\t\t\t\t\tfloat wallHitDot = wall.dot(temp2);\n\t\t\t\t\tspeed *= (1 - Math.abs(wallHitDot)) * 0.85;\n\t\t\t\t\t\n\t\t\t\t\t// calculate the bounce using the reflection formula.\n\t\t\t\t\tfloat dot = vel.dot(wall);\n\t\t\t\t\tvel.sub(wall.scl(dot*2));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tn1.set(n2);\n\t\t\t}\n\t\t}\n\t}",
"void retainOutlineAndBoundaryGrid() {\n\t\tfor (final PNode child : getChildrenAsPNodeArray()) {\n\t\t\tif (child != selectedThumbOutline && child != yellowSIcolumnOutline && child != boundary) {\n\t\t\t\tremoveChild(child);\n\t\t\t}\n\t\t}\n\t\tcreateOrDeleteBoundary();\n\t}",
"public void cleanBoard(){\n\n for(PositionInBoard position : positionsThatArePainted){\n int i = position.row();\n int j = position.column();\n if ((i+j)%2==0) {\n board[i][j].setBackground(Color.BLACK);\n }\n else {\n board[i][j].setBackground(Color.WHITE);\n }\n\n board[i][j].setText(null);\n board[i][j].setIcon(null);\n }\n positionsThatArePainted.clear();\n }",
"private void climbWall() {\n\t\t// TODO Auto-generated method stub\n\t\tthis.goUpWall();\n\t\tthis.goAcrossWall();\n\t\tthis.goDownWall();\n\t}",
"private boolean wall(int cell) {\n\t\treturn cell >= 0 && (cell >= size || DungeonTileSheet.wallStitcheable(Dungeon.level.map[cell]));\n\t}",
"public void create() {\n int emptyBlocks = 0; \t\t\t\t\t\t\t\t// count of empty blocks\r\n int walls = 0; \t\t\t\t\t\t\t\t\t// count of walls\r\n int[] wallsRow = new int[(m.rows*m.columns)/2]; \t// temporary wall positions (half the total maze size)\r\n int[] wallsColumn = new int[(m.rows*m.columns)/2];\r\n \r\n for (int i = 0; i < m.rows; i++) \t\t\t\t\t// for each row\r\n for (int j = 0; j < m.columns; j++)\t\t\t\t// for each column (each block in a row)\r\n \tm.maze[i][j] = 1;\t\t\t\t\t\t\t// make the block a wall\r\n \t\t\t\t\t\t\t\t\t\t\t\t\t// the maze is all walls\r\n \r\n for (int i = 1; i < m.rows - 1; i += 2) \t\t\t// loop over every other block\r\n for (int j = 1; j < m.columns - 1; j += 2) {\r\n \tm.maze[i][j] = -emptyBlocks; \t\t\t\t// make every other block an empty block\r\n \temptyBlocks++;\t\t\t\t\t\t\t\t// so increment our empty blocks\r\n if (i < m.rows - 2) { \t\t\t\t\t\t// if there is a block below this room\r\n \twallsRow[walls] = i + 1;\t\t\t\t// set this block to be a wall in the temporary wall array\r\n \twallsColumn[walls] = j;\r\n walls++;\t\t\t\t\t\t\t\t// increment because we added a wall to the maze\r\n }\r\n if (j < m.columns - 2) { \t\t\t\t\t// if there is a block below this room\r\n \twallsRow[walls] = i;\t\t\t\t\t// set this block to be a wall in the temporary wall array\r\n \twallsColumn[walls] = j + 1;\r\n walls++;\t\t\t\t\t\t\t\t// increment because we added a wall to the maze\r\n }\r\n }\r\n repaint();\r\n for (int i = walls - 1; i > 0; i--) {\t\t\t\t// loop over the number of walls generated (half the total maze size)\r\n int r = (int)(Math.random() * i); \t\t\t\t// choose a random wall\r\n removeWall(wallsRow[r], wallsColumn[r]);\t\t// remove the wall if it doesn't form a loop\r\n wallsRow[r] = wallsRow[i];\r\n wallsColumn[r] = wallsColumn[i];\r\n }\r\n for (int i = 1; i < m.rows - 1; i++) \t\t\t\t// for each row\r\n for (int j = 1; j < m.columns - 1; j++)\t\t\t// for each column (each block in a row)\r\n if (m.maze[i][j] < 0)\t\t\t\t\t\t// set the empty blocks to finalized blocks \r\n \tm.maze[i][j] = 3;\r\n }",
"public boolean removeWallItemFromWall(WallItem wallItem);",
"protected void checkForWalls(int x, int y, ArrayList<Position> walls) {\n int x1 = x - 1;\n int x2 = x + 2;\n int y1 = y - 1;\n int y2 = y + 2;\n\n if (x == 0) // We want to avoid an OutOfBounds exception\n x1 = x;\n if (x == sizeOfFloor - 1)\n x2 = sizeOfFloor;\n if (y == 0)\n y1 = y;\n if (y == sizeOfFloor - 1)\n y2 = sizeOfFloor;\n\n\n for (int i = x1; i < x2; i++) {\n for (int j = y1; j < y2; j++) {\n if (layout[i][j].getContent() == 'a')\n walls.add(layout[i][j]);\n }\n }\n }",
"public void handleRightWall(){\n for(int i = 0; i < 15; i ++){\n if(i % 2 == 1 ){\n maze[18][i] = VISIBLESPACE;\n }\n }\n }",
"public void wallsAndGates(int[][] rooms) {\n if (rooms.length == 0 || rooms[0].length == 0) return;\n Queue<int[]> queue = new LinkedList<>();\n for (int i = 0; i < rooms.length; i++) {\n for (int j = 0; j < rooms[0].length; j++) {\n if (rooms[i][j] == 0) queue.add(new int[]{i, j});\n }\n }\n while (!queue.isEmpty()) {\n int[] top = queue.remove();\n int row = top[0], col = top[1];\n if (row > 0 && rooms[row - 1][col] == Integer.MAX_VALUE) {\n rooms[row - 1][col] = rooms[row][col] + 1;\n queue.add(new int[]{row - 1, col});\n }\n if (row < rooms.length - 1 && rooms[row + 1][col] == Integer.MAX_VALUE) {\n rooms[row + 1][col] = rooms[row][col] + 1;\n queue.add(new int[]{row + 1, col});\n }\n if (col > 0 && rooms[row][col - 1] == Integer.MAX_VALUE) {\n rooms[row][col - 1] = rooms[row][col] + 1;\n queue.add(new int[]{row, col - 1});\n }\n if (col < rooms[0].length - 1 && rooms[row][col + 1] == Integer.MAX_VALUE) {\n rooms[row][col + 1] = rooms[row][col] + 1;\n queue.add(new int[]{row, col + 1});\n }\n }\n }",
"@Test\n\tpublic void testEliminationByMediumBox(){\n\t\tsetBoardUp();\n\t\tMediumBox mBox = new MediumBox(board, 1, 1);\n\t\talgorithm.applyEliminationInMediumBox(mBox);\n\t\tint[] toBeRemoved = {1, 2, 8, 9};\n\t\tint[] fromCells = {0, 1, 4, 7, 8};\n\t\tboolean condition = true;\n\t\tfor(int i = 0; i < toBeRemoved.length; i++)\n\t\t\tfor(int j = 0; j < fromCells.length; j++)\n\t\t\t\tcondition &= !mBox.cell[fromCells[j]].possibilities.contains(toBeRemoved[i]);\t\t\n\t\t\n\t\tassertTrue(condition);\n\t}",
"public void removeAllPieces()\n\t{\n\t\t/* iterate over the rows and columns */\n\t\tfor (int i = 0; i < m_rows; i++) {\n\t\t\tfor (int j = 0; j < m_cols; j++) {\n\t\t\t\tremovePiece(i, j);\n\t\t\t}\n\t\t}\n\t}",
"public void wallsAndGates(int[][] rooms) {\n if (rooms == null || rooms.length == 0 || rooms[0] == null || rooms[0].length == 0)\n return;\n\n Queue<int[]> queue = new LinkedList<>();\n\n for (int i = 0; i < rooms.length; i++) {\n for (int j = 0; j < rooms[0].length; j++) {\n if (rooms[i][j] == 0)\n queue.add(new int[]{i,j});\n }\n }\n\n while (!queue.isEmpty()) {\n int[] top = queue.remove();\n int row = top[0];\n int col = top[1];\n if (row > 0 && rooms[row - 1][col] == Integer.MAX_VALUE) {\n rooms[row - 1][col] = rooms[row][col] + 1;\n queue.add(new int[]{row - 1, col});\n }\n if (row < rooms.length - 1 && rooms[row + 1][col] == Integer.MAX_VALUE) {\n rooms[row+1][col] = rooms[row][col] + 1;\n queue.add(new int[]{row + 1, col});\n }\n if (col > 0 && rooms[row][col - 1] == Integer.MAX_VALUE){\n rooms[row][col -1] = rooms[row][col] + 1;\n queue.add(new int[]{row, col - 1});\n }\n if (col < rooms[0].length - 1 && rooms[row][col + 1] == Integer.MAX_VALUE) {\n rooms[row][col +1] = rooms[row][col] + 1;\n queue.add(new int[]{row, col + 1});\n }\n }\n\n }",
"private void renderWalls(Graphics g, ArrayList<GridLocation> walls, Location gridPosition){\n g.setColor(Color.BLACK);\n for(GridLocation wall : walls){\n g.fillRect(gridPosition.getX() + wall.getX()*CELL_SIZE, gridPosition.getY() + wall.getY()*CELL_SIZE,CELL_SIZE, CELL_SIZE);\n }\n }",
"public void createMaze(int rows, int cols) {\n\t\t\n\t\tint total = rows*cols;\n\t\tDisjSets ds = new DisjSets(total); //Create an object of the disjoint set class\n\t\t \n\t\tList<List<Node>> maze = new ArrayList<List<Node>>();\n\t\t \n\t\tmaze = initializeMaze(rows, cols, maze); //Initialize the maze\n\t\t \n\t\tRandom rand = new Random();\n\t\t \n\t\twhile(ds.find(0) != ds.find(total - 1)) {\n\t\t\t \n\t\t\tint currRow = rand.nextInt(rows); //Random row number\n\t\t\tint currCol = rand.nextInt(cols); //Random column number\n\t\t\tNode currNode = maze.get(currRow).get(currCol); //Current node(cell)\n\t\t\tint currValue = currNode.value;\n\t\t\t \n\t\t\tint root1 = ds.find(currValue); //Find on current node(cell)\n\t\t\tint root2;\n\t\t\tboolean removeHorizontal = false;\n\t\t\t \n\t\t\tif(currValue == total - 1) {\n\t\t\t\tcontinue; //Don't do anything if the current cell is the bottom-rightmost cell\n\t\t\t}\n\t\t\t \n\t\t\tif(currRow == rows - 1) {\n\t\t\t\t//Last row -- can only break the right wall, can't break the wall to the bottom \n\t\t\t\troot2 = ds.find(currValue + 1);\n\t\t\t} else if(currCol == cols - 1) {\n\t\t\t\t//Last column -- can only break the wall to the bottom, can't break the right wall \n\t\t\t\troot2 = ds.find(currValue + cols);\n\t\t\t\tremoveHorizontal = true;\n\t\t\t} else {\n\t\t\t\t//Neither last row nor last column\n\t\t\t\t//Randomly select either right wall or wall to the bottom to break\n\t\t\t\tboolean selectRight;\n\t\t\t\tselectRight = rand.nextBoolean();\n\t\t\t\t \n\t\t\t\tif(selectRight) {\n\t\t\t\t\troot2 = ds.find(currValue + 1);\n\t\t\t\t} else {\n\t\t\t\t\troot2 = ds.find(currValue + cols);\n\t\t\t\t\tremoveHorizontal = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Finds resulted in different sets\n\t\t\tif(root1 != root2) {\n\t\t\t\t \n\t\t\t\tds.union(root1, root2); //Take union of the two sets\n\t\t\t\t \n\t\t\t\tif(removeHorizontal) {\n\t\t\t\t\tcurrNode.horizontal = false; //Break the horizontal wall\n\t\t\t\t} else {\n\t\t\t\t\tcurrNode.vertical = false; //Break the vertical wall\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Leave the bottom right corner open\n\t\tNode destination = maze.get(rows - 1).get(cols - 1);\n\t\tdestination.horizontal = false;\n\t\tdestination.vertical = false;\n\t\t \n\t\tprintMaze(rows, cols, maze); //Print the final maze\n\t}",
"private void conformCorridors() {\n for (int rowView = 0; rowView < rowViewMax; rowView++) {\r\n for (int colView = 0; colView < colViewMax; colView++) {\r\n if (getCell(rowView, colView) != Cell.wall)\r\n setCell(rowView, colView, Cell.corridor);\r\n }\r\n }\r\n }",
"public void border() {\n\t\tfor (int x = 0; x < width; x++) {\n\t\t\tmaze[x][0] = Block.WALL;\n\t\t\tmaze[x][height - 1] = Block.WALL;\n\t\t}\n\t\tfor (int y = 0; y < height; y++) {\n\t\t\tmaze[0][y] = Block.WALL;\n\t\t\tmaze[width - 1][y] = Block.WALL;\n\t\t}\n\t}",
"public void hideInnerMaze(){\n for(int i = 0; i < 20; i ++){\n for(int j = 0; j < 15; j ++){\n if(maze[i][j] == VISIBLESPACE){\n maze[i][j] = NOTVISIBLESPACE;\n }\n }\n }\n\n //SET OUTER WALL TO VISIBLE\n for(int i = 0; i < 20; i ++){\n maze[i][0] = VISIBLEWALL;\n maze[i][14] = VISIBLEWALL;\n }\n for(int i = 0; i < 15; i ++){\n maze[0][i] = VISIBLEWALL;\n maze[19][i] = VISIBLEWALL;\n }\n }",
"public void unsetSwCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(SWCELL$20, 0);\n }\n }",
"public void clearPieces(){\n for(int i =0; i<WIDTH;i++){\n for(int j = 0 ; j<HEIGHT;j++){\n piecesToSwap[i][j]=null;\n }\n }\n }",
"public static void clearBoard(){\n for(int i = 0; i < Board.X_UPPER_BOUND * Board.Y_UPPER_BOUND ; i++){\n Board.board[i] = null;\n }\n white_player.setpieceList(null);\n black_player.setpieceList(null);\n }",
"public void resetWall() {\r\n\tbustedWall = false;\r\n}",
"public void removeSpriteOnGrid(Sprite s, int x, int y) {\n\t\tint i;\n\t\tint id=-1;\n\t\tif(s.getDirection()==Sprite.Direction.HORIZONTAL) {\n\t\t\t\n\t\t\tfor(i=0; i<s.getSize(); i++) {\n\t\t\t\t//set squares occupied by the length of the sprite, starting at grid[x][y] to sprite id -1 to\n\t\t\t\t//signal they are now free\n\t\t\t\tgrid[x+i][y].setSpriteID(id);\n\t\t\t}\n\t\t\t\n\t\t}else { \n\t\t\tfor(i=0; i<s.getSize(); i++) {\n\n\t\t\t\tgrid[x][y+i].setSpriteID(id);\n\t\t\t}\n\t\t\t\n\t\t\n\t\t}\n\t\t\n\t\t\n\t}",
"private void tileSetSurroundingBombs() {\r\n for (int r = 0; r < gridSize; r++) {\r\n for (int c = 0; c < gridSize; c++) {\r\n int neighborBombs = neighborBombCount(grid[r][c]);\r\n grid[r][c].setSurroundingBombs(neighborBombs);\r\n }\r\n } \r\n }",
"public void preyMovement(WallBuilding wb, int x1, int x2, int y1, int y2){\r\n int b1 = wb.block.get(wb.block.stx(x1), wb.block.sty(y1));//one away\r\n int b2 = wb.block.get(wb.block.stx(x2), wb.block.sty(y2));//two away\r\n if(b1 == 0){//if there are no blocks, we can move normally\r\n if(wb.food.getObjectsAtLocation(x1, y1) == null){//if there is no food in that space\r\n wb.prey.setObjectLocation(this, wb.prey.stx(x1),wb.prey.sty(y1));\r\n }\r\n }else if(b1 == 1){//if there is one block\r\n if(b2 == 0){//if the space after is empty, we can move too!\r\n if(wb.food.getObjectsAtLocation(x2, y2) == null){//if there is no food in that space\r\n wb.block.set(wb.block.stx(x2), wb.block.sty(y2), b2+1);\r\n wb.block.set(wb.block.stx(x1), wb.block.sty(y1), b1-1);\r\n wb.prey.setObjectLocation(this, wb.prey.stx(x1),wb.prey.sty(y1));\r\n }\r\n }else if(b2 < 3){//there is space to move the block\r\n wb.block.set(wb.block.stx(x2), wb.block.sty(y2), b2+1);\r\n wb.block.set(wb.block.stx(x1), wb.block.sty(y1), b1-1);\r\n }\r\n }else{//if there are 2 or 3 blocks\r\n if(b2 < 3){//there is space to move the block\r\n if(wb.food.getObjectsAtLocation(x2, y2) == null){//if there is no food in that space\r\n wb.block.set(wb.block.stx(x2), wb.block.sty(y2), b2+1);\r\n wb.block.set(wb.block.stx(x1), wb.block.sty(y1), b1-1);\r\n }\r\n }\r\n }\r\n }",
"public void clear() {\n for (int row = 0; row < 8; ++row) {\n for (int col = 0; col < 8; ++col) {\n board[row][col] = null;\n }\n }\n whitePieces = new LinkedList<Piece>();\n blackPieces = new LinkedList<Piece>();\n }",
"private void drawWalls(Graphics g) {\n\t\tfor(int i=0; i<grid.length; i++){\n\t\t\tfor(int j=0; j<grid[0].length; j++){\n\t\t\t\tif(grid[i][j].getNorth()!=null) {\n\t\t\t\t\tg.setColor(Color.decode(\"#CC3300\"));//Brown\n\t\t\t\t\tg.drawLine(j*widthBlock+padding+doorX, i*heightBlock+padding, j*widthBlock+padding+doorWidth, i*heightBlock+padding);\n\t\t\t\t}else {\n\t\t\t\t\tg.setColor(Color.BLACK);\n\t\t\t\t\tg.drawLine(j*widthBlock+padding, i*heightBlock+padding, j*widthBlock+padding+widthBlock, i*heightBlock+padding);\n\t\t\t\t}\n\t\t\t\tif(grid[i][j].getEast()!=null) {\n\t\t\t\t\tg.setColor(Color.decode(\"#CC3300\"));//Brown\n\t\t\t\t\tg.drawLine((j+1)*widthBlock+padding, i*heightBlock+padding+doorX, (j+1)*widthBlock+padding, i*heightBlock+padding+doorWidth);\n\t\t\t\t}else {\n\t\t\t\t\tg.setColor(Color.BLACK);\n\t\t\t\t\tg.drawLine((j+1)*widthBlock+padding, i*heightBlock+padding, (j+1)*widthBlock+padding, (i+1)*heightBlock+padding);\n\t\t\t\t}\n\t\t\t\tif(grid[i][j].getSouth()!=null) {\n\t\t\t\t\tg.setColor(Color.decode(\"#CC3300\"));//Brown\n\t\t\t\t\tg.drawLine(j*widthBlock+padding+doorX, (i+1)*heightBlock+padding, j*widthBlock+padding+doorWidth, (i+1)*heightBlock+padding);\n\t\t\t\t}else {\n\t\t\t\t\tg.setColor(Color.BLACK);\n\t\t\t\t\tg.drawLine(j*widthBlock+padding, (i+1)*heightBlock+padding, (j+1)*widthBlock+padding, (i+1)*heightBlock+padding);\n\t\t\t\t}\n\t\t\t\tif(grid[i][j].getWest()!=null) {\n\t\t\t\t\tg.setColor(Color.decode(\"#CC3300\"));//Brown\n\t\t\t\t\tg.drawLine(j*widthBlock+padding, i*heightBlock+padding+doorX, j*widthBlock+padding, i*heightBlock+padding+doorWidth);\n\t\t\t\t}else {\n\t\t\t\t\tg.setColor(Color.BLACK);\n\t\t\t\t\tg.drawLine(j*widthBlock+padding, i*heightBlock+padding, j*widthBlock+padding, (i+1)*heightBlock+padding);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void unsetNeCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(NECELL$24, 0);\n }\n }",
"private void createWalls(){\n\t \tfloat wallWidth = GameRenderer.BOARD_WIDTH ;\n\t \tfloat wallHeight = GameRenderer.BOARD_HEIGHT ;\n\t \tint offset = -2;\n\t \tint actionBaOffset = 2;\n\t \t\n\t \t//Left Wall\n\t \tnew SpriteWall(0, actionBaOffset, 0, wallHeight+offset);\n\t \t\n\t \t//Right Wall\n\t \tnew SpriteWall(wallWidth+offset, actionBaOffset, wallWidth+offset, wallHeight+offset);\n\t \t\n\t \t//Top Wall\n\t \tnew SpriteWall(0, actionBaOffset, wallWidth+offset, actionBaOffset);\n\t \t\n\t \t//Bottom Wall\n\t \tnew SpriteWall(0, wallHeight+offset, wallWidth+offset, wallHeight+offset);\n\t \t\n\t }",
"protected void checkEdges(){\n if (getX() > getWorld().getBackground().getWidth() + getImage().getWidth()){\n world.monsterAdded();\n getWorld().removeObject(this);\n world.decreaseLives();\n }\n }",
"void oracle(){\n if (this.neighbors < 1){\n if (!isAlive()){\n observer.deleteCell(id);\n }\n }\n }",
"@Override\n\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\tsuper.paintComponent(g);\n\t\t\t\tfor (int i = 0; i < wall.length; i++) {\n\t\t\t\t\tfor (int j = 0; j < wall[i].length; j++) {\n\t\t\t\t\t\tg.setColor(Color.blue);\n\t\t\t\t\t\tg.drawRect(i*30, j*30, 30, 30);\n\t\t\t\t\t\tif (wall[i][j] == 1) {\n\t\t\t\t\t\t\tg.fillRect(i*30, j*30, 30, 30);\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"void removeIsBoundaryNodeOf(Boundary oldIsBoundaryNodeOf);",
"private void removeBoundaries(Graph graph, Boundaries boundaries) {\n for (Edge boundaryEdge : boundaries.edges) {\n graph.remove(boundaryEdge);\n }\n for (Node boundaryNode : boundaries.nodes) {\n graph.remove(boundaryNode);\n }\n }",
"public void clearNeighborhoods()\n\t{\n\t\tfor (int i=0; i<numberOfNeighborhoods; i++)\n\t\t{\n\t\t\t(listOfNeighborhoods.get(i)).clear();\n\t\t}\n\t}",
"public void crossover(){\n \t\n \t//int cut2 = ((NODELENGTH * 3 + 1) / 3) + cut;\n \tfor (int g = 0; g < (wallpapers.size() - 1); g += 2){\n \t\tint cut = getCutPoint();\n \t\tint[] parent1 = wallpapers.get(g);\n \t\tint[] parent2 = wallpapers.get(g + 1);\n \t\t\n \t\tint[] child1 = new int[parent1.length];\n \t\tint[] child2 = new int[parent2.length];\n \t\tfor (int i = 0; i < (cut); i++){\n \t\t\tchild1[i] = parent1[i];\n \t\t\tchild2[i] = parent2[i];\n \t\t}\n \t\tfor (int j = cut; j < parent1.length; j++){\n \t\t\tchild1[j] = parent2[j];\n \t\t\tchild2[j] = parent1[j];\n \t\t}\n \t\t\n \t\t\n \t\twallpapers.set(g, child1);\n \t\twallpapers.set(g + 1, child2);\n \t}\n \tfor (int d = 0; d < (wallpapers.size() * 2); d++){\n \t\tif (d < wallpapers.size()){\n \t\t\ttemp_wallpapers.add(wallpapers.get(d));\n \t\t}\n \t\telse {\n \t\t\ttemp_wallpapers.add(node());\n \t\t}\n \t}\n \twallpapers.clear();\n \tfor (int u = 0; u < temp_wallpapers.size(); u++){\n\t\t\twallpapers.add(u, temp_wallpapers.get(u));\n\t\t}\n \ttemp_wallpapers.clear();\n }",
"public void kill(int index) {\n\t\tint currentIndex = index;\t\t\t\t\t\t\t\t\t\t\t\t\t\t//start with random cell\n\t\t\n\t\twhile(true) {\n\t\t\tcells[currentIndex].visited = true;\n\t\t\n\t\t\tint nextIndex = getRandomUnvisitedNeighbourIndex(currentIndex);\n\t\t\n\t\t\tif(nextIndex == NOT_EXIST) {\n\t\t\t\thunt(); \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//if there is NO neighbors [DEAD END]\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(currentIndex - nextIndex == -1) {\n\t\t\t\tcells[currentIndex].border[EAST] = NO_WALL; \t\t\t\t\t\t\t//neighbor is on the right \n\t\t\t\tcells[nextIndex].border[WEST] = NO_WALL;\n\t\t\t}\n\t\t\telse if(currentIndex - nextIndex == width) {\n\t\t\t\tcells[currentIndex].border[NORTH] = NO_WALL;\t\t\t\t\t\t\t//neighbor is up\n\t\t\t\tcells[nextIndex].border[SOUTH] = NO_WALL;\n\t\t\t}\n\t\t\telse if(currentIndex - nextIndex == -width) {\t\t\t\t\t\t\t\t\n\t\t\t\tcells[currentIndex].border[SOUTH] = NO_WALL;\t\t\t\t\t\t\t//neighbor is down\n\t\t\t\tcells[nextIndex].border[NORTH] = NO_WALL;\n\t\t\t}\n\t\t\telse if(currentIndex - nextIndex == 1) {\t\t\t\t\t\t\t\t\t\n\t\t\t\tcells[currentIndex].border[WEST] = NO_WALL;\t\t\t\t\t\t\t\t//neighbor is left\n\t\t\t\tcells[nextIndex].border[EAST] = NO_WALL;\n\t\t\t}\n\t\t\tcurrentIndex = nextIndex;\n\t\t}\n\t}",
"public void knockDownWall(Cell nei) {\n if (nei == null) return;\n\n if (nei == neiNorth) {\n setWallNorth(false);\n neiNorth.setWallSouth(false);\n return;\n }\n\n if (nei == neiSouth) {\n setWallSouth(false);\n neiSouth.setWallNorth(false);\n return;\n }\n\n if (nei == neiWest) {\n setWallWest(false);\n neiWest.setWallEast(false);\n return;\n }\n\n if (nei == neiEast) {\n setWallEast(false);\n neiEast.setWallWest(false);\n return;\n }\n\n // Error occurs\n System.err.println(\"Neighbor does not exist\");\n }",
"public Wall(int x1, int y1,int x2,int y2) {\r\n\tthis.x1 = x1 + TRANSLATION;\r\n\tthis.x2 = x2 + TRANSLATION;\r\n\tthis.y1 = y1 + TRANSLATION;\r\n\tthis.y2 = y2 + TRANSLATION;\r\n\tbustedWall = false; \r\n}",
"public void eraseCell(int x, int y) {\n \n //Sets cell to empty\n gameBoard[x][y] = 0;\n }",
"private void addWalls() {\n wallList.add(new RectF(0, 0, wallSize, screenHeight / 2 - doorSize));\n wallList.add(new RectF(0, screenHeight / 2 + doorSize, wallSize, screenHeight));\n wallList.add(new RectF(0, 0, screenWidth / 2 - doorSize, wallSize));\n wallList.add(new RectF(screenWidth / 2 + doorSize, 0, screenWidth, wallSize));\n wallList.add(new RectF(screenWidth - wallSize, 0, screenWidth, screenHeight / 2 - doorSize));\n wallList.add(new RectF(screenWidth - wallSize, screenHeight / 2 + doorSize, screenWidth, screenHeight));\n wallList.add(new RectF(0, screenHeight - wallSize, screenWidth / 2 - doorSize, screenHeight));\n wallList.add(new RectF(screenWidth / 2 + doorSize, screenHeight - wallSize, screenWidth, screenHeight));\n }",
"private void createWalls() {\n int environmentWidth = config.getEnvironmentWidth();\n int environmentHeight = config.getEnvironmentHeight();\n // Left\n Double2D pos = new Double2D(0, environmentHeight / 2.0);\n Double2D v1 = new Double2D(0, -pos.y);\n Double2D v2 = new Double2D(0, pos.y);\n WallObject wall = new WallObject(physicsWorld, pos, v1, v2);\n drawProxy.registerDrawable(wall.getPortrayal());\n\n // Right\n pos = new Double2D(environmentWidth, environmentHeight / 2.0);\n wall = new WallObject(physicsWorld, pos, v1, v2);\n drawProxy.registerDrawable(wall.getPortrayal());\n\n // Top\n pos = new Double2D(environmentWidth / 2.0, 0);\n v1 = new Double2D(-pos.x, 0);\n v2 = new Double2D(pos.x, 0);\n wall = new WallObject(physicsWorld, pos, v1, v2);\n drawProxy.registerDrawable(wall.getPortrayal());\n\n // Bottom\n pos = new Double2D(environmentWidth / 2.0, environmentHeight);\n wall = new WallObject(physicsWorld, pos, v1, v2);\n drawProxy.registerDrawable(wall.getPortrayal());\n }",
"private static void fillBorders()\n\t{\n\t\tfor(int i=0; i<board.length; i++)\n\t\t{\n\t\t\tif(i==0 || i==board.length-1)\n\t\t\t\tArrays.fill(board[i], Cells.WALL);\n\t\t\telse\n\t\t\t{\n\t\t\t\tboard[i][0]=Cells.WALL;\n\t\t\t\tboard[i][board[i].length-1]=Cells.WALL;\n\t\t\t}\n\t\t}\n\t}",
"void nuke() {\n\t\tfor (int a = 0; a < height; a++) {\n\t\t\tfor (int b = 0; b < width; b++) {\n\t\t\t\tif (FWorld[a][b] != null) {\n\t\t\t\t\tEZ.removeEZElement(FWorld[a][b]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tEZ.removeEZElement(background);\n\t\tEZ.removeEZElement(explosion);\n\t\tturtle.kill();\n\t}",
"private void removeColumn() {\n gridWidth--;\n for (ArrayList<EscapeBlock> row : grid) { // for each row\n this.remove(row.get(gridWidth)); // remove the last block from the UI\n for(EscapeBlock block : row)\n block.disconnectAll();\n row.remove(gridWidth); // remove the last block from the grid\n }\n \n }",
"public void removeAllSeconderyColorsFromBoard() {\n\t\tArrayList<Tile> boardTiles= getAllBoardTiles();\n\t\tif(!this.coloredTilesList.isEmpty()) {\n\t\t\tboardTiles.retainAll(coloredTilesList);\n\t\t\tfor(Tile t :boardTiles) {\n\t\t\t\tTile basicTile= new Tile.Builder(t.getLocation(), t.getColor1()).setPiece(t.getPiece()).build();\n\t\t\t\treplaceTileInSameTileLocation(basicTile);\t\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tthis.coloredTilesList=null;\n\t\tthis.coloredTilesList=new ArrayList<Tile>();\n\t\tthis.orangeTiles=null;\n\t\tthis.orangeTiles=new ArrayList<Tile>();\n\n\t}",
"public boolean hasWall(Cell c1, Cell c2) {\n if (c1.getR() == c2.getR()) {\n // Cells are vertically aligned\n\n if (c1.getC() < c2.getC()) {\n // Cell1 : Cell2\n return c1.hasRightWall();\n }\n else if (c2.getC() < c1.getC()) {\n // Cell2 : Cell1\n return c2.hasRightWall();\n }\n }\n else if (c1.getC() == c2.getC()) {\n // Cells are horizontally aligned\n\n if (c1.getR() < c2.getR()) {\n // Cell1\n // Cell2\n return c1.hasBottomWall();\n }\n else if (c2.getR() < c1.getR()) {\n // Cell2\n // Cell1\n return c2.hasBottomWall();\n }\n }\n return true;\n }",
"private void goAcrossWall() {\n\t\t// TODO Auto-generated method stub\n\t\tthis.move();\n\t\tthis.turnRight();\n\t}",
"public void getWalls() {\n\t\tRandomMapGenerator rmg = new RandomMapGenerator();\n\n\t\tboolean[][] cm = rmg.cellmap;\n\n\t\tfor (int x = 0; x < rmg.width; x++) {\n\t\t\tfor (int y = 0; y < rmg.height; y++) {\n\t\t\t\tif (cm[x][y]) {\n\t\t\t\t\twallArray.add(new Wall(x * 12, y * 12, mode));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void setWalls (Array<Rectangle> walls) {\n\t\tthis.walls = walls;\n\t}",
"public void clear(){\r\n\t\tfor ( int x = 0; x < grid.length; x++ )\r\n\t\t\tfor ( int y = 0; y < grid[0].length; y++ )\r\n\t\t\t\tgrid[x][y] = false;\r\n\t}",
"private void removeMine(int i, int j) {\n current[i][j] = new Empty();\n for (int k = -1; k <= 1; k++) {\n for (int l = -1; l <= 1; l++) {\n //pas de omliggende vlaggetjes aan\n if ((k != 0 || l != 0) && inField(i + k, j + l) && current[i + k][j + l].isBound()) {\n current[i + k][j + l].increment();\n }\n }\n }\n }",
"public void clearBoard() {\r\n int i, j;\r\n for (i = 1; i < yMax; i++) {\r\n for (j = 2; j < xMax; j += 2){\r\n grid[i][j] = ' ';\r\n }\r\n }\r\n }",
"public void unsetNwCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(NWCELL$26, 0);\n }\n }",
"@Override\n public void generateMaze() {\n //Opens up the entrance to the maze\n MazeCell current=maze[0][0];\n current.openWall(Directions.North.getBValue());\n\n //A list of sets. The sets contain the cells which can be accessed from one another.\n List<List<MazeCell>> sets=new LinkedList<>();\n //All the walls in the maze\n List<InnerWall> wallList=new LinkedList<>();\n //Initially create a set for each cell\n //Also add the walls to the list\n for(int row=0;row< maze.length;row++){\n for(int column=0;column<maze[0].length;column++){\n sets.add(Arrays.asList(maze[row][column]));\n List<MazeCell> valid=returnValidNeighbours(maze[row][column].getX(), maze[row][column].getY());\n for(int i=0;i<valid.size();i++){\n wallList.add(new InnerWall(maze[row][column], valid.get(i)));\n }\n }\n }\n //Now we have as many wall sets as maze cells, each containing four walls.\n\n Random rnd=new Random();\n int idx;\n //Loops until only one set remains, meaning all cells can be reached from any cell\n while(sets.size()!=1){\n //Select a random wall\n idx=wallList.size()>1 ? rnd.nextInt(wallList.size()) : 0;\n InnerWall w= wallList.get(idx);\n //The two neighbouring cells\n MazeCell c1=w.parent;\n MazeCell c2=w.connected;\n\n //Their relative directions\n Directions d=Directions.getOffsetDirection(c1.getX(),c1.getY(),c2.getX(),c2.getY());\n\n //Check if the two cells are already connected\n if((c1.getOpenWalls() % d.getBValue())==d.getBValue())\n continue;\n\n //Two new sets\n List<MazeCell> set1=null;\n List<MazeCell> set2=null;\n //We get the sets\n boolean b1,b2;\n b1=b2=false;\n //We loop through the set of sets looking for the two which contains the two cells\n for(List<MazeCell> list : sets) {\n if(list.contains(c1)){\n set1=list;\n b1=true;\n }\n if(list.contains(c2)) {\n set2=list;\n b2=true;\n }\n if(b1 && b2)\n break;\n }\n //If the two sets are disjoint then we join them together\n if(set1!=null && set2!=null && !set1.equals(set2)){\n\n //We connect the two cells\n c1.openWall(d.getBValue());\n c2.openOppositeWall(d.getBValue());\n\n if(sleepDrawTime>0) {\n try {\n Thread.sleep(sleepDrawTime);\n mf.repaint();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n //Join the two sets\n List<MazeCell> temp= Stream.concat(set1.stream(), set2.stream())\n .collect(Collectors.toList());\n sets.remove(set2);\n sets.remove(set1);\n sets.add(temp);\n }\n //We remove the wall from the list\n wallList.remove(w);\n //As the walls are double-sided, two cells share a wall, we have to find the opposite cell's wall in the list\n InnerWall oppositeWall=wallList.stream().filter((x)->x.parent==w.connected).findFirst().orElse(null);\n wallList.remove(oppositeWall);\n\n\n }\n //We open an exit in the last row.\n maze[maze.length-1][rnd.nextInt(maze[0].length)].openWall(Directions.South.getBValue());\n\n }",
"public void generate() {\n\t\t// all cardinal direction for up,down,left and right\n\t\tthis.allDirections = Arrays.asList(new Point(-1, 0), new Point(1, 0), new Point(0, 1),\n\t\t\t\tnew Point(0, -1));\n\n\t\twallList = new ArrayList<>();\n\t\tgenerateAddWalls(width / 2, height / 2);\n\t\t// generateAddWalls( 3, 3);\n\n\t\tRandom rand = new Random();\n\n\t\twhile (wallList.size() > 0) {\n\t\t\tPoint wall = wallList.get(rand.nextInt(wallList.size()));\n\n\t\t\tint emptyWallX = wall.x;\n\t\t\tint emptyWallY = wall.y;\n\n\t\t\tfor (Point point : allDirections) {\n\t\t\t\tif (maze[wall.x + point.x][wall.y + point.y] == Block.EMPTY) {\n\t\t\t\t\temptyWallX = wall.x + point.x;\n\t\t\t\t\temptyWallY = wall.y + point.y;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// find if oposite direction is empty by inverting the delta\n\t\t\tint deltaX = wall.x - emptyWallX;\n\t\t\tint deltaY = wall.y - emptyWallY;\n\n\t\t\tif (maze[wall.x + deltaX][wall.y + deltaY] == Block.WALL) {\n\t\t\t\tmaze[wall.x][wall.y] = Block.EMPTY;\n\t\t\t\tgenerateAddWalls(wall.x + deltaX, wall.y + deltaY);\n\t\t\t}\n\n\t\t\twallList.remove(wall);\n\t\t}\n\t}",
"void removeWalls(Map<CreatureType, Integer> percentages, int totalPlayerArrows)\r\n throws UnsupportedOperationException,\r\n IllegalArgumentException, PlayerKilledException;",
"private void moveToWall() {\n\t\t// TODO Auto-generated method stub\n\t\t// if front is clear then keep moving\n\t\twhile (this.frontIsClear()) {\n\t\t\tthis.move();\n\t\t}\n\t}",
"public void reset() {\n for (int i = 0; i < numberOfRows; i++ ) {\n for (int j =0; j < numberOfColumns; j++) {\n if (grid[i][j] == LASER) {\n this.Remove(i,j);\n }\n }\n }\n }",
"void removeEdge(int x, int y);",
"public abstract void manageCell(int x, int y, int livingNeighbours);",
"public void removeBoat (int index) {\n Boat b = getBoatAt(index);\n int startX = Math.min(b.getStartX(), b.getEndX());\n System.out.println(\"removeBoat(): startX = \" + startX);\n int startY = Math.min(b.getStartY(), b.getEndY());\n System.out.println(\"removeBoat(): startY = \" + startY);\n int endX = Math.max(b.getStartX(), b.getEndX());\n System.out.println(\"removeBoat(): endX = \" + endX);\n int endY = Math.max(b.getStartY(), b.getEndY());\n System.out.println(\"removeBoat(): endY = \" + endY);\n \n //reset cells in grid.\n if (startX == endX) { \n for (int j = startY; j <= endY; j++) {\n System.out.println(\"removeBoat(): X constant. Changing coordinate: \" + j);\n grid[startX-1][j-1].setHasBoat(false);\n System.out.println(\"removeBoat(): Cell: \" + grid[startX-1][j-1]);\n } \n } else if (startY == endY) {\n for (int i = startX; i <= endX; i++) {\n System.out.println(\"removeBoat(): Y constant. Changing coordinate: \" + i);\n grid[i-1][startY-1].setHasBoat(false);\n System.out.println(\"removeBoat(): Cell: \" + grid[i-1][startY-1]);\n }\n }\n \n //reset boat\n b.setStartX(INVALID); \n b.setStartY(INVALID); \n b.setEndX(INVALID); \n b.setEndY(INVALID);\n \n }",
"public void removeAllEdges() {\n }",
"private boolean checkSurroundedByWalls(int x, int y) {\n \n int neighborsCount = 0;\n \n if (x > 0) {\n \n if (!gameboard.checkIfSquareIsEmpty(x - 1, y) &&\n gameboard.getObjectAtSquare(x - 1, y, 0).isType(\"wall\")){\n \n neighborsCount++;\n \n }\n \n }\n \n if (x < gameboard.getSize()) {\n \n if (!gameboard.checkIfSquareIsEmpty(x + 1, y) &&\n gameboard.getObjectAtSquare(x + 1, y, 0).isType(\"wall\")){\n \n neighborsCount++;\n \n }\n \n }\n \n if (y > 0) {\n \n if (!gameboard.checkIfSquareIsEmpty(x, y - 1) &&\n gameboard.getObjectAtSquare(x, y - 1, 0).isType(\"wall\")){\n \n neighborsCount++;\n \n }\n \n }\n \n if (y < gameboard.getSize()) {\n \n if (!gameboard.checkIfSquareIsEmpty(x, y + 1) &&\n gameboard.getObjectAtSquare(x, y + 1, 0).isType(\"wall\")){\n \n neighborsCount++;\n \n }\n \n }\n \n return neighborsCount == 4;\n \n }",
"public void RemoveRowsIfStackedTooHigh() {\n \t\t\n while (rowHasBlocks(Parameters.RemoveBiggestPartialRowIfBlockInRow)) {\n int NoOfPiecesRemoved = \n eraseBiggestRowGreaterThan(Parameters.RemoveBiggestPartialRowIfBlockInRow);\n //remove points for each empty square\n ComputeScoreAndDelay(-(COLUMNS - NoOfPiecesRemoved) * Parameters.PointsSubtractedPerEmptySpaceFromPartialRow);\n \n }\n game_grid.repaint();\n LogEvent(\"row_removed\");\n }",
"protected void removeLane()\n {\n if (lane == 1)\n {\n\n MyWorld.Lane1Monsters.remove(this);\n getWorld().removeObject(this);\n\n }\n\n else if (lane == 2)\n {\n MyWorld.Lane2Monsters.remove(this);\n getWorld().removeObject(this);\n\n }\n\n else if (lane == 3)\n {\n MyWorld.Lane3Monsters.remove(this);\n getWorld().removeObject(this);\n\n }\n\n else if (lane == 4)\n {\n MyWorld.Lane4Monsters.remove(this);\n getWorld().removeObject(this);\n\n }\n\n else if (lane == 5)\n {\n MyWorld.Lane5Monsters.remove(this);\n getWorld().removeObject(this);\n\n }\n MyWorld.monsterAdded();\n }",
"public void stitchCells(ACell right, ACell down) {\r\n this.right = right;\r\n right.left = this;\r\n\r\n this.bottom = down;\r\n down.top = this;\r\n }",
"public void clearHighlightTile() {\n\t\tfor(int i = 0;i < 8;i++) {\n\t\t\tfor(int j = 0;j < 8;j++) {\n\t\t\t\tRectangle rect = Main.tile[i][j].rectangle;\n\t\t\t\tif(rect.getStrokeType() == StrokeType.INSIDE){\n\t\t\t\t\trect.setStrokeType(StrokeType.INSIDE);\n\t\t\t\t\trect.setStroke(Color.TRANSPARENT);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public List<Cell> getFreeSorroundingCells(Cell cell) {\r\n List<Cell> freeCells = new LinkedList<>();\r\n if (!getNorthCell(cell).hasAgent()) {\r\n freeCells.add(getNorthCell(cell));\r\n }\r\n if (!getSouthCell(cell).hasAgent()) {\r\n freeCells.add(getSouthCell(cell));\r\n }\r\n if (!getEastCell(cell).hasAgent()) {\r\n freeCells.add(getEastCell(cell));\r\n }\r\n if (!getWestCell(cell).hasAgent()) {\r\n freeCells.add(getWestCell(cell));\r\n }\r\n return freeCells;\r\n }",
"public boolean isWall() {\n return type == CellType.WALL;\n }",
"private void setEmpty() {\n\t\tfor (int r = 0; r < board.length; r++)\n\t\t\tfor (int c = 0; c < board[r].length; c++)\n\t\t\t\tboard[r][c] = new Cell(false, false,\n\t\t\t\t\t\tfalse, false); // totally clear.\n\t}",
"public static void wipeBlocks() {\n for (String location : MyZ.instance.getBlocksConfig().getKeys(false))\n actOnBlock(location, false);\n MyZ.instance.saveBlocksConfig();\n }",
"public void frighten(ArrayList<Wall> listOfWalls, ArrayList<Point> intersections) {\n Random r = new Random();\r\n int targetX = 25;\r\n int targetY = 25;\r\n double minDistance = 5000000000.0; //no distance is greater than this 4head\r\n double upDistance = 500000000.0;\r\n double downDistance = 5000000.0;\r\n double leftDistance = 50000000.0;\r\n double rightDistance = 5000000.0;\r\n\r\n boolean isIntersection = checkIntersection(intersections);\r\n boolean isRightCollision = checkWallCollision(listOfWalls, 2);\r\n boolean isLeftCollision = checkWallCollision(listOfWalls, 3);\r\n boolean isUpCollision = checkWallCollision(listOfWalls,0);\r\n boolean isDownCollision = checkWallCollision(listOfWalls, 1);\r\n\r\n if(isIntersection) {\r\n\r\n if(!isRightCollision && this.direction != 3) {\r\n rightDistance = Math.pow((xPos + 20) - targetX,2) + Math.pow(yPos - targetY,2);\r\n }\r\n if(!isLeftCollision && this.direction !=2) {\r\n leftDistance = Math.pow((xPos - 20) - targetX,2) + Math.pow(yPos - targetY,2);\r\n }\r\n if(!isUpCollision && this.direction != 1) {\r\n upDistance = Math.pow((xPos) - targetX,2) + Math.pow((yPos-20) - targetY,2);\r\n }\r\n if(!isDownCollision && this.direction != 0) {\r\n downDistance = Math.pow((xPos) - targetX,2) + Math.pow((yPos+20) - targetY,2);\r\n }\r\n if(upDistance <= downDistance && upDistance <= leftDistance && upDistance <= rightDistance) {\r\n this.direction = 0;\r\n }\r\n else if(downDistance <= upDistance && downDistance <= leftDistance && downDistance <= rightDistance) {\r\n this.direction = 1;\r\n }\r\n\r\n else if(rightDistance <= leftDistance && rightDistance <= downDistance && rightDistance <= upDistance) {\r\n this.direction = 2;\r\n }\r\n\r\n else if(leftDistance <= rightDistance && leftDistance <= upDistance && leftDistance <= downDistance) {\r\n this.direction = 3;\r\n }\r\n\r\n\r\n }\r\n\r\n if(this.direction == 0) {\r\n yPos = yPos - 5;\r\n }\r\n if(this.direction ==1) {\r\n yPos = yPos + 5;\r\n }\r\n if(this.direction ==2) {\r\n xPos = xPos + 5;\r\n }\r\n if(this.direction == 3) {\r\n xPos = xPos - 5;\r\n }\r\n }",
"void removeFromAvailMoves(int x, int y) {\n\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\tavailMoves[x][y][i] = false;\n\t\t}\n\t}",
"private Cell searchEmptySurrounding(){\n List <Cell> blocks = getSurroundingCells(currentWorm.position.x, currentWorm.position.y);\n for (Cell block : blocks){\n if(!isCellOccupied(block)) return block;\n }\n return null;\n }",
"public void removeTile(){\n\t\toccupied = false;\n\t\tcurrentTile = null;\n\t}",
"private void removeFullRowTiles(List<List<Tile>> listOfFullRows){\n for(List<Tile> tilesInRow : listOfFullRows){\n for(Tile tile : tilesInRow){\n //Remove old tile from board\n this.board.removeTile(tile);\n\n //set old tiles to null\n tile = null;\n }\n }\n }",
"public void stitchCells() {\r\n int x;\r\n int y;\r\n ACell currCell;\r\n ACell nextRight;\r\n ACell nextDown;\r\n\r\n for (x = -1; x < this.blocks; x += 1) {\r\n for (y = -1; y < this.blocks; y += 1) {\r\n\r\n currCell = this.indexHelp(x, y);\r\n nextRight = this.indexHelp(x + 1, y);\r\n nextDown = this.indexHelp(x, y + 1);\r\n\r\n currCell.stitchCells(nextRight, nextDown);\r\n }\r\n }\r\n }",
"private void removeRow() {\n gridHeight--; \n for (EscapeBlock block : grid.get(gridHeight)) { // for each block from the last row\n block.disconnectAll();\n this.remove(block); // remove it from the UI\n }\n\n grid.remove(gridHeight); // remove the row\n }",
"protected void doDeleteBoth() {\r\n\t\tif (renderer.surface != null) {\r\n\t\t\tUndoableMapEdit undo = new UndoableMapEdit(renderer.surface);\r\n\t\t\tdeleteEntitiesOf(renderer.surface.basemap, renderer.selectedRectangle, false);\r\n\t\t\tdeleteEntitiesOf(renderer.surface.buildingmap, renderer.selectedRectangle, true);\r\n\t\t\tundo.setAfter();\r\n\t\t\taddUndo(undo);\r\n\t\t\trepaint();\r\n\t\t}\r\n\t}",
"public void clearAreaReset() {\n for(int x = 0; x < buildSize; x++) {\n for(int y = 4; y < 7; y++) {\n for(int z = 0; z < buildSize; z++) {\n myIal.removeBlock(x, y, z);\n }\n }\n }\n\n myIal.locx = 0; myIal.locy = 0; myIal.locz = 0;\n my2Ial.locx = 0; my2Ial.locy = 0; my2Ial.locz = 0;\n }",
"private void createNonDoorCells(Rectangle cellSize) {\r\n\r\n\t\tfor (int i = 0; i < this.roomCells.length; i++) {\r\n\t\t\tfor (int j = 0; j < this.roomCells[i].length; j++) {\r\n\t\t\t\tif (this.roomCells[i][j] == null) {\r\n\r\n\t\t\t\t\tPoint coordinate = new Point(i * cellSize.width, j * cellSize.height);\r\n\t\t\t\t\tGameLocation location = new GameLocation(coordinate, this.roomId);\r\n\r\n\t\t\t\t\tif (this.stepablePolygon.contains(coordinate)) {\r\n\r\n\t\t\t\t\t\tthis.roomCells[i][j] = new Cell(location, CellProperty.Stepable);\r\n\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\tthis.roomCells[i][j] = new Cell(location, CellProperty.NoProperty);\r\n\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}",
"public void removePiece(int x, int y)\r\n {\r\n if(isValidSqr(x, y)) board[x][y] = null;\r\n }"
] | [
"0.70710945",
"0.6792331",
"0.6414821",
"0.62733847",
"0.6149354",
"0.6082836",
"0.60216564",
"0.59588623",
"0.5946975",
"0.59459877",
"0.5849859",
"0.5847439",
"0.57719433",
"0.5766358",
"0.5751435",
"0.5722796",
"0.5699202",
"0.5698061",
"0.56906605",
"0.56861246",
"0.5673941",
"0.5671239",
"0.5666968",
"0.56649745",
"0.5577023",
"0.55731857",
"0.55615026",
"0.5560632",
"0.55598533",
"0.5528104",
"0.55221295",
"0.5520398",
"0.5516132",
"0.5515749",
"0.55002624",
"0.5498919",
"0.549077",
"0.54740137",
"0.5454998",
"0.5432311",
"0.54309326",
"0.54174346",
"0.54163617",
"0.5409212",
"0.5401434",
"0.53951377",
"0.53845316",
"0.5383421",
"0.53618807",
"0.5360592",
"0.53538424",
"0.53529155",
"0.53512114",
"0.53192645",
"0.531707",
"0.53107125",
"0.5299221",
"0.52985466",
"0.52918774",
"0.52838355",
"0.5282563",
"0.5280897",
"0.5280719",
"0.5278513",
"0.52700955",
"0.5265447",
"0.5264034",
"0.5261041",
"0.5253706",
"0.5250198",
"0.5246615",
"0.52460337",
"0.5241658",
"0.52408147",
"0.5236487",
"0.5226375",
"0.5218786",
"0.52166265",
"0.5212396",
"0.5206061",
"0.5195416",
"0.5194959",
"0.5188696",
"0.5187963",
"0.5172956",
"0.5172199",
"0.5165171",
"0.51584125",
"0.5157757",
"0.51558656",
"0.5154253",
"0.5154206",
"0.515389",
"0.5150058",
"0.5148564",
"0.5142604",
"0.5140461",
"0.5133165",
"0.51324964",
"0.51201546"
] | 0.617598 | 4 |
assign attributes to vertices | public void fill() {
int vertexNumber = 1;
for (int i = 0; i < mazeSize; i++) {
for (int j = 0; j < mazeSize; j++) {
Vertex v = new Vertex(j, i);
graph[j][i] = v;
}
}
for (int i = 0; i < mazeSize; i++) {
for (int j = 0; j < mazeSize; j++) {
graph[j][i].label = vertexNumber;
graph[j][i].parent = null;
vertexNumber++;
}
}
for (int i = 0; i < mazeSize; i++) {
for (int j = 0; j < mazeSize; j++) {
assignNeighbors(graph[j][i]);
}
}
mazeGenerator();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setVertices(int vertices);",
"public abstract void updateVertices();",
"private void setVertices(Vertex[] vs){\n\t\t\n\t\tvertices = new ArrayList<>();\n\t\toriginalVertices = new ArrayList<>();\n\t\tdouble scalar = ViewSettings.getScalar4();\n\n\t\tfor(Vertex v : vs){\n\t\t\tvertices.add(new Vertex(v.getX() * scalar, v.getY() * scalar, v.getZ() * scalar, v.getW() * scalar));\n\t\t\toriginalVertices.add(new Vertex(v.getX(), v.getY(), v.getZ(), v.getW()));\n\t\t}\n\t}",
"public void setVertexAt(int i, Vertex vertex) {\n vertexPositions[3*i] = vertex.position.x;\n vertexPositions[3*i+1] = vertex.position.y;\n vertexPositions[3*i+2] = vertex.position.z;\n vertexNormals[3*i] = vertex.normal.x;\n vertexNormals[3*i+1] = vertex.normal.y;\n vertexNormals[3*i+2] = vertex.normal.z;\n vertexBinormals[3*i] = vertex.binormal.x;\n vertexBinormals[3*i+1] = vertex.binormal.y;\n vertexBinormals[3*i+2] = vertex.binormal.z;\n vertexTangents[3*i] = vertex.tangent.x;\n vertexTangents[3*i+1] = vertex.tangent.y;\n vertexTangents[3*i+2] = vertex.tangent.z;\n vertexUvs[2*i] = vertex.u;\n vertexUvs[2*i+1] = vertex.v;\n\n boundingVolume = null;\n }",
"@Override\n public void fillVertexInfo(String[] args) {\n this.age = Integer.valueOf(args[0]);\n this.sex = args[1];\n }",
"Vertex(){}",
"public void setVertices(float x0, float y0, float z0,\n float x1, float y1, float z1,\n float x2, float y2, float z2) {\n x_array[0] = x0;\n x_array[1] = x1;\n x_array[2] = x2;\n \n y_array[0] = y0;\n y_array[1] = y1;\n y_array[2] = y2;\n \n z_array[0] = z0;\n z_array[1] = z1;\n z_array[2] = z2;\n }",
"public void addVertex();",
"public void setVertexA(E3DTexturedVertex vertex){\r\n\t\tthis.vertices[0] = vertex;\r\n\t\tneedNormalRecalc = true;\r\n\t\tneedPlaneEquationRecalc = true;\r\n\t}",
"public void setVertices(E3DTexturedVertex[] vertices) {\r\n\t\tthis.vertices = vertices;\r\n\t\tneedNormalRecalc = true;\r\n\t\tneedPlaneEquationRecalc = true;\r\n\r\n\t}",
"private void setVertices(){\n \tdouble[] xs = new double[numOfSides];\n \tdouble[] ys = new double[numOfSides];\n \tif (numOfSides%2==1){\n \t\tfor (int i=0; i<numOfSides; i++){\n \t\t\txs[i]=radius*Math.cos(2*i*Math.PI/numOfSides);\n \t\t\tys[i]=radius*Math.sin(2*i*Math.PI/numOfSides);\n \t\t\t}\n \t}\n \telse{\n \t\tdouble start=Math.PI/numOfSides;\n \t\tfor (int i=0; i<numOfSides; i++){\n \t\t\txs[i]=radius*Math.cos(start+2*i*(Math.PI)/numOfSides);\n \t\t\tys[i]=radius*Math.sin(start+2*i*(Math.PI)/numOfSides);\n \t\t\t}\n \t}\n \tsetXLocal(xs);\n \tsetYLocal(ys);\n }",
"public void setVertices (float[] vertices) {\r\n \t\tthis.vertices.setVertices(vertices, 0, vertices.length);\r\n \t}",
"public void setVertices(ProcessVertex inVertex, ProcessVertex outVertex) {\n\t\tthis.inVertex = inVertex;\n\t\tthis.outVertex = outVertex;\n\t}",
"public Vertex(String name){\r\n this.name = name;\r\n }",
"protected void processVertex(Vertex w){\n\t}",
"private void addVertexPositionConstraint(){\n for (int vertex=0; vertex < vertexCount; vertex++){\n addExactlyOne(variables[vertex]);\n }\n }",
"Vertex createVertex();",
"public void setVertexC(E3DTexturedVertex vertex){\r\n\t\tthis.vertices[2] = vertex;\r\n\t\tneedNormalRecalc = true;\r\n\t\tneedPlaneEquationRecalc = true;\r\n\t}",
"public void setVertex(Object vertex2){\r\n this.vertex = vertex2;\r\n }",
"public void setVertices(float[] points) {\n/* 810 */ COSArray ar = new COSArray();\n/* 811 */ ar.setFloatArray(points);\n/* 812 */ getCOSObject().setItem(COSName.VERTICES, (COSBase)ar);\n/* */ }",
"void addVertex(Vertex v);",
"public void setVertices (float[] vertices, int offset, int count) {\r\n \t\tthis.vertices.setVertices(vertices, offset, count);\r\n \t}",
"public void setVertices(){\n\t\tvertices = new ArrayList<V>();\n\t\tfor (E e : edges){\n\t\t\tV v1 = e.getOrigin();\n\t\t\tV v2 = e.getDestination();\n\t\t\tif (!vertices.contains(v1))\n\t\t\t\tvertices.add(v1);\n\t\t\tif (!vertices.contains(v2))\n\t\t\t\tvertices.add(v2);\n\t\t}\n\t}",
"public Vertex(final Vertex vertex){\n\t\tID = vertex.getID();\n\t}",
"public void setVertices(List<double[]> newVertices) {\n vertexLayer.clear();\n for (int i = 0; i < newVertices.size(); i++) {\n double[] eachCoords = newVertices.get(i);\n //invert the y-axis\n vertexLayer.add(new Vertex(eachCoords[0], -eachCoords[1], DEFAULT_DOT_RADIUS, DEFAULT_STROKE_WIDTH, \"C\"+i, DEFAULT_DOT_FILL, DEFAULT_DOT_STROKE, DEFAULT_LABEL_COLOR));\n }\n vertexLayer.requestRedraw();\n }",
"private void addOrUpdatePropertiesVertex(GraphTraversalSource g, Vertex vertex, LineageEntity lineageEntity) {\n Map<String, Object> properties = getProperties(lineageEntity);\n g.inject(properties)\n .unfold()\n .as(PROPERTIES)\n .V(vertex.id())\n .as(V)\n .sideEffect(__.select(PROPERTIES)\n .unfold()\n .as(KV)\n .select(V)\n .property(__.select(KV).by(Column.keys), __.select(KV).by(Column.values))).iterate();\n }",
"public Object getVertex(){\r\n return this.vertex;\r\n }",
"private void addVertexVisitConstraint(){\n\n for (int vertex=0; vertex < vertexCount; vertex++){\n Integer[] pos = new Integer[variables.length];\n for (int position =0; position < positionCount; position++){\n pos[position] = variables[position][vertex];\n }\n addExactlyOne(pos);\n }\n }",
"public void setTo(Vertex<VV> vertex)\r\n { this.to = vertex; }",
"public Vertex(int x, int y) {\r\n this.x = x;\r\n this.y = y;\r\n }",
"AdjacencyGraph(){\r\n vertices = new HashMap<>();\r\n }",
"public void setVertexes(Vertex[] vertexes) {\n int n, i;\n\n n = vertexes.length;\n\n initVertexPositionsArray(n);\n initVertexNormalsArray();\n //initVertexBinormalsArray();\n //initVertexTangentsArray();\n\n for ( i = 0; i < n; i++ ) {\n vertexPositions[3*i] = vertexes[i].position.x;\n vertexPositions[3*i+1] = vertexes[i].position.y;\n vertexPositions[3*i+2] = vertexes[i].position.z;\n vertexNormals[3*i] = vertexes[i].normal.x;\n vertexNormals[3*i+1] = vertexes[i].normal.y;\n vertexNormals[3*i+2] = vertexes[i].normal.z;\n //vertexBinormals[3*i] = vertexes[i].binormal.x;\n //vertexBinormals[3*i+1] = vertexes[i].binormal.y;\n //vertexBinormals[3*i+2] = vertexes[i].binormal.z;\n //vertexTangents[3*i] = vertexes[i].tangent.x;\n //vertexTangents[3*i+1] = vertexes[i].tangent.y;\n //vertexTangents[3*i+2] = vertexes[i].tangent.z;\n //vertexUvs[2*i] = vertexes[i].u;\n //vertexUvs[2*i+1] = vertexes[i].v;\n }\n\n boundingVolume = null;\n }",
"public void setFrom(Vertex<VV> vertex)\r\n { this.from = vertex; }",
"public Vertex(){\n\n }",
"public void setVertexB(E3DTexturedVertex vertex){\r\n\t\tthis.vertices[1] = vertex;\r\n\t\tneedNormalRecalc = true;\r\n\t\tneedPlaneEquationRecalc = true;\r\n\t}",
"int addVertex(Vector position);",
"public void setModelVertice(int i, Vertice vertex) {\n\t\t(modelVertices.get(i)).set(vertex);\n\t}",
"void add(Vertex vertex);",
"public Vertex (String name)\n\t{\n\t vertexName = name ;\n\t adjacencyList = new DoublyLinkedList<>();\n\t indegree = 0;\n\t\t\n\t}",
"public void onUpdateVertices() {\n getVertexBufferObject().onUpdateVertices(this);\n }",
"public ArangoDBVertex() {\n\t\tsuper();\n\t}",
"void add(int vertex);",
"public wVertex(String s){\r\n name = s;\r\n adjacencies = new ArrayList<Edge>();\r\n }",
"public void addVertex(String vertLabel) {\n\n // Implement me!\n if (indexOf(vertLabel, vertices) != -1) {\n return;\n }\n vertices.put(vertLabel, vertices.size());\n if (weights.length == 0) {\n weights = new int[1][0];\n } else {\n weights = addOneRow(weights);\n }\n\n\n }",
"public BSimVertex(double newX, double newY, double newZ){\r\n\t\tVector3d newLocation = new Vector3d(newX,newY,newZ);\r\n\t\tlocation = newLocation;\r\n\t}",
"public void init(Map<String, String> attributes) {\r\n\r\n\t\tif (attributes.containsKey(\"p0\"))\r\n\t\t\tp0 = new Vec(attributes.get(\"p0\"));\r\n\t\tif (attributes.containsKey(\"p1\"))\r\n\t\t\tp1 = new Vec(attributes.get(\"p1\"));\r\n\t\tif (attributes.containsKey(\"p2\"))\r\n\t\t\tp2 = new Vec(attributes.get(\"p2\"));\r\n\t\tif (attributes.containsKey(\"p3\"))\r\n\t\t\tp3 = new Vec(attributes.get(\"p3\"));\r\n\r\n\t\tp4 = Vec.add(Vec.add(Vec.sub(p1, p0), Vec.sub(p3, p0)), p0);\r\n\t\tp5 = Vec.add(Vec.add(Vec.sub(p2, p0), Vec.sub(p3, p0)), p0);\r\n\t\tp6 = Vec.add(Vec.add(Vec.sub(p5, p3), Vec.sub(p4, p3)), p3);\r\n\r\n\t\tbase = new Rectangle(p0, p1, p3, attributes);\r\n\t\tfacep0p2p1 = new Rectangle(p0, p2, p1, attributes);\r\n\t\tfacep0p2p3 = new Rectangle(p0, p2, p3, attributes);\r\n\t\tfacep3p4p5 = new Rectangle(p3, p5, p4, attributes);\r\n\t\tfacep4p1p6 = new Rectangle(p4, p1, p6, attributes);\r\n\t\ttop = new Rectangle(p5, p2, p6, attributes);\r\n\r\n\t\tsuper.init(attributes);\r\n\t}",
"@Override\n\tpublic void implementAddVertex() {\n\t\t\n\t}",
"private void defineVertexes(String orientation){\n if(\"down\".equals(orientation)){\n y2 = y1-height;\n y3 = y1-height;\n \n x2 = x1 - height/2;\n x3 = x1 + height/2;\n }else if(orientation.equals(\"up\")){\n y2 = y1+height;\n y3 = y1+height;\n x2 = x1 - height/2;\n x3 = x1 + height/2;\n }else if(orientation.equals(\"left\")){\n x2 = x1-height;\n y2 = y1+height/2;\n x3 = x1;\n y3 = y1+height;\n }else if(orientation.equals(\"right\")){\n x2 = x1+height;\n y2 = y1+height/2;\n x3 = x1;\n y3 = y1+height;\n }\n }",
"public void setVertexPosA(E3DVector3F vertexPos){\r\n this.vertices[0].setVertexPos(vertexPos);\r\n needNormalRecalc = true;\r\n needPlaneEquationRecalc = true;\r\n }",
"public void addVertex (){\t\t \n\t\tthis.graph.insert( new MyList<Integer>() );\n\t}",
"abstract Vertex apply(Vertex v);",
"public void vertex(PointType p)\r\n\t{\r\n\t // System.out.println(\"vert: \"+p.x+\", \"+p.y+\", \"+p.z);\r\n\t\tgl.glVertex3d(p.x, p.y, p.z);\r\n\t}",
"public Graph(ArrayList<Vertex> vertices){\r\n this.vertices = new HashMap<String, Vertex>();\r\n this.edges = new HashMap<Integer, Edge>();\r\n \r\n for(Vertex v: vertices){\r\n this.vertices.put(v.getLabel(), v);\r\n }\r\n \r\n }",
"private void addVerticesToGraph()\n\t{\n\t\tString vertexName;\n\n\t\tMap<Long, IOFSwitch> switches = this.floodlightProvider.getSwitches();\n\t\tfor(IOFSwitch s :switches.values())\n\t\t{\n\t\t\tvertexName =Long.toString(s.getId());\n\t\t\tm_graph.addVertex(vertexName);\t\t\t \t\t\t \n\t\t}\n\t\tSystem.out.println(m_graph);\n\t}",
"public void setVertexColor(E3DVector4F[] vertexColor) {\r\n\t vertices[0].setVertexColor(vertexColor[0]);\r\n vertices[1].setVertexColor(vertexColor[1]);\r\n vertices[2].setVertexColor(vertexColor[2]);\r\n\t}",
"public MyVertex( ) {\n // Set ID and increment so next Vertex count++\n id = count;\n count++;\n\n // Set color to NULL initially\n color = null;\n\n // Create new Lists\n incidentEdges = new ArrayList< Edge >( );\n adjacentVertices = new ArrayList< Vertex >( );\n }",
"public void setModelVertice(int i, float x, float y, float z) {\n\t\t(modelVertices.get(i)).set(x, y, z);\n\t}",
"public void newVertex(String name)\r\n\t{\r\n\t\t// new vertex initialized here\r\n\t\tmyGraph[graphSize] = new Vertex();\r\n\t\tmyGraph[graphSize].name = name;\r\n\t\tmyGraph[graphSize].adjVertexHead = null;\r\n\t\t// maintain the size counter\r\n\t\tgraphSize++;\r\n\t}",
"public GlBuffer setVertexAttribHandles(final int ...handles){\n //Log.d(TAG,\"setVertexAttribHandles(\"+vertexAttribHandle+\")\");\n this.vertexAttribHandles = handles;\n return this;\n }",
"public void setVertexName(String newName)\n\t{\n\t\tvertexName = newName ;\n\t}",
"public void updateGraphVertices(Vertex[] vertexList) {\n graph.updateVertices(vertexList);\n }",
"public V addVertex(V v);",
"public Vertex( String nm )\n { name = nm; adjEdge = new TreeMap<String,Edge>( ); reset( ); }",
"private E3DTexturedVertex getVertexA(){\r\n\t\treturn vertices[0];\r\n\t}",
"protected void _updateG2AttributesFromLocal(Structure atts)\n {\n }",
"public WeightedAdjacencyGraph() {\n this.vertices = new HashMap<>();\n }",
"private void parseVertex(String line) {\n\n String first_float = line.substring(2);\n first_float = first_float.trim();\n int second_space_index = first_float.indexOf(' ') + 1;\n String second_float = first_float.substring(second_space_index);\n second_float = second_float.trim();\n int third_space_index = second_float.indexOf(' ') + 1;\n String third_float = second_float.substring(third_space_index);\n third_float = third_float.trim();\n\n float vx = parseFloat(first_float.substring(0, second_space_index - 1));\n float vy = parseFloat(second_float.substring(0, third_space_index - 1));\n float vz = parseFloat(third_float);\n\n mMaxX = Math.max(mMaxX, vx);\n mMaxY = Math.max(mMaxY, vy);\n mMaxZ = Math.max(mMaxZ, vz);\n\n mMinX = Math.min(mMinX, vx);\n mMinY = Math.min(mMinY, vy);\n mMinZ = Math.min(mMinZ, vz);\n\n mVertices.add(vx);\n mVertices.add(vy);\n mVertices.add(vz);\n mLastVertexNumber++;\n\n if (mHaveMaterialColor) {\n mColors.add(mMaterialColor[0]);\n mColors.add(mMaterialColor[1]);\n mColors.add(mMaterialColor[2]);\n }\n }",
"public Edge(Object vertex1, Object vertex2, int w){\n v1 = vertex1;\n v2 = vertex2;\n weight = w;\n }",
"public abstract boolean putVertex(Vertex incomingVertex);",
"void glEnableVertexAttribArray(int index);",
"Vertex getVertex();",
"public V getVertex()\r\n/* */ {\r\n/* 198 */ return (V)this.vertex;\r\n/* */ }",
"protected void addNodeAttributes( Node node, String fid, Point point )\n \t{\n \t\tHashMap<String,AttributeSet> attributes = point.getAttributes();\n \t\t\n \t\tfloat x = point.getPosition().x;\n \t\tfloat y = point.getPosition().y;\n \t\t\n \t\tnode.setAttribute( \"xyz\", x, y, 0 );\n \t\t\n \t\tfor( String key: attributes.keySet() )\n \t\t{\n \t\t\tif( ! key.equals( fid ) )\n \t\t\t{\n \t\t\t\tHashMap<String,Object> attrs = attributes.get( key );\n \n \t\t\t\tfor( String k: attrs.keySet() )\n \t\t\t\t{\n \t\t\t\t\tif( nodeAttributeFilter != null )\n \t\t\t\t\t{\n \t\t\t\t\t\tif( nodeAttributeFilter.isKept( k ) )\n \t\t\t\t\t\t\tnode.addAttribute( k, attrs.get( k ) );\n \t\t\t\t\t}\n \t\t\t\t\telse\n \t\t\t\t\t{\n \t\t\t\t\t\tnode.addAttribute( k, attrs.get( k ) );\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}",
"tr(int iv, int iw) {\n\t\t\tthis.vertex = iv;\n\t\t\tthis.wt = iw;\n\t\t}",
"public Vertex(String aName)\r\n\t\t{\r\n\t\t\tthis.name = aName;\r\n\t\t\tthis.neighbors = new ArrayList<Edge>();\r\n\t\t}",
"protected AbstractGraph(List<Edges> edges,List<V> vertices){\n\t\t\n\t\tfor(int i=0;i<vertices.size();i++)\n\t\t\tthis.vertices.add(vertices.get(i));\n\t\t\n\t\tcreateAdjacencyLists(edges,vertices.size());\t\t\n\t}",
"public Vertex(String argName) {\n name = argName;\n }",
"private static VertexAttribute[] createAttributes(int numTexCoords, boolean hasColor, VertexAttribute... generics)\n\t{\n\t\tint genLen = generics != null ? generics.length : 0;\n\t\tint len = hasColor ? 2 : 1;\n\t\tVertexAttribute[] attr = new VertexAttribute[numTexCoords + len + genLen];\n\t\tint off = 0;\n\t\tattr[off++] = new VertexAttribute(Usage.Position, 2, ShaderProgram.POSITION_ATTRIBUTE);\n\t\tif (hasColor)\n\t\t\tattr[off++] = new VertexAttribute(Usage.ColorPacked, 4, ShaderProgram.COLOR_ATTRIBUTE);\n\t\tfor (int i = 0; i < numTexCoords; i++) //add texcoords\n\t\t\tattr[off++] = new VertexAttribute(Usage.TextureCoordinates, 2, ShaderProgram.TEXCOORD_ATTRIBUTE + i);\n\t\tif (generics != null)\n\t\t\tfor (VertexAttribute a : generics) //add generics\n\t\t\t\tattr[off++] = a;\n\t\treturn attr;\n\t}",
"void ldraw_addVertexWithUV(double x, double y, double z, double u, double v) {\n lDraw.a(x, y, z, u, v);\n }",
"public void addVertex( VKeyT key, VDataT data );",
"VertexNetwork() {\r\n /* This constructor creates an empty list of vertex locations. \r\n read The transmission range is set to 0.0. */\r\n transmissionRange = 0.0;\r\n location = new ArrayList<Vertex>(0);\r\n }",
"public void setAttributeFields(Vector a) {\n\tattributeFields = a;\n }",
"public Collection< VDataT > vertexData();",
"public void setWeights() {\n for (Square[] square : squares) {\n for (Square square1 : square) {\n try {\n int i = Integer.parseInt(square1.getText());\n square1.setV(new Vertex(square1.getXcoor(), square1.getYcoor(), i));\n } catch (NumberFormatException e) {\n square1.setV(new Vertex(square1.getXcoor(), square1.getYcoor(), 1));\n }\n }\n }\n }",
"void addVertex(SimpleVertex simpleVertex) {\n\t\tallvertices.add(simpleVertex);\n\t}",
"@Override\n public void addVertex(Set<V> psetVertices, TimeFrame tf) {\n for (V v : psetVertices) {\n addVertex(v,tf);\n }\n }",
"@Override public Set<L> vertices() {\r\n return new HashSet<L>(vertices);//防御式拷贝\r\n }",
"public void setVertexNumber(Integer num) {\n\t\t_vertexId = num;\n\t}",
"Graph(int vertices) {\r\n this.numVertices = vertices;\r\n adjacencylist = new LinkedList[vertices];\r\n //initialize adjacency lists for all the vertices\r\n for (int i = 0; i <vertices ; i++) {\r\n adjacencylist[i] = new LinkedList<>();\r\n }\r\n }",
"public Polygon4D(ArrayList<Vertex> vertices){\n\t\t\n\t\tthis.vertices = vertices;\n\t\tsetFaces();\n\t}",
"public Vertex(L l) {\n\t\tlabel = l;\n\t}",
"@Override\n public VertexCollection getVertexCollection() {\n return this.vertices.copy();\n }",
"public void addVertex(int name) {\n\t\tVertex v = new Vertex(name, parent);\n\t\tthis.addVertex(v);\n\t}",
"public BSimVertex(Vector3d newLocation){\r\n\t\tlocation = newLocation;\r\n\t}",
"public void setAttributes(ShapeAttributes normalAttrs)\n {\n this.normalAttrs = normalAttrs;\n }",
"public Graph() // constructor\n{\n vertexList = new Vertex[MAX_VERTS];\n // adjacency matrix\n adjMat = new int[MAX_VERTS][MAX_VERTS];\n nVerts = 0;\n for (int j = 0; j < MAX_VERTS; j++) // set adjacency\n for (int k = 0; k < MAX_VERTS; k++) // matrix to 0\n adjMat[j][k] = INFINITY;\n}",
"public void addAttributes(Attributes a)\r\n {\r\n\tfinal String name = a.getName();\r\n\tif (ntMap.containsKey(name))\r\n\t throw new RuntimeException(\"Graph already contains <\"+name+\">\");\r\n\tntMap.put(name, new NodeTypeHolder(a));\r\n }",
"private void getVertex(int x, int y, Vector3f vertex) {\n\t\tfloat height = getRawHeightFieldValue(x, y);\n\n\t\tswitch (m_upAxis) {\n\t\tcase 0: {\n\t\t\tvertex.set(height - m_localOrigin.x, (-m_width / 2.0f) + x, (-m_length / 2.0f) + y);\n\t\t\tbreak;\n\t\t}\n\t\tcase 1: {\n\t\t\tvertex.set((-m_width / 2.0f) + x, height - m_localOrigin.y, (-m_length / 2.0f) + y);\n\t\t\tbreak;\n\t\t}\n\n\t\tcase 2: {\n\t\t\tvertex.set((-m_width / 2.0f) + x, (-m_length / 2.0f) + y, height - m_localOrigin.z);\n\t\t\tbreak;\n\t\t}\n\t\t}\n\n\t\tvertex.x = vertex.x * m_localScaling.x;\n\t\tvertex.y = vertex.y * m_localScaling.y;\n\t\tvertex.z = vertex.z * m_localScaling.z;\n\t}",
"protected Vertex() {\n\t\tisInDepot = false;\n\t}",
"protected abstract void createAttributes();",
"public ParentVertex(){\n Random rand = new Random();\n key = rand.nextInt(Integer.MAX_VALUE);\n xPos = rand.nextDouble();\n yPos = rand.nextDouble();\n connectedKeys = new ArrayList<>();\n degree = 0;\n fitness = 0;\n }"
] | [
"0.6747481",
"0.6481843",
"0.6457289",
"0.64324176",
"0.6386928",
"0.63865834",
"0.63403356",
"0.63104093",
"0.6303188",
"0.6280774",
"0.6260675",
"0.6246934",
"0.6244716",
"0.6244454",
"0.6204098",
"0.6171492",
"0.6163314",
"0.61567295",
"0.6147611",
"0.6103622",
"0.6070082",
"0.60562485",
"0.60205597",
"0.5981241",
"0.59621805",
"0.5952016",
"0.5946247",
"0.5939719",
"0.5931009",
"0.5923875",
"0.5916818",
"0.5909569",
"0.59071374",
"0.5903882",
"0.58830756",
"0.5832374",
"0.5831731",
"0.58102185",
"0.5765759",
"0.57560545",
"0.5747024",
"0.5746161",
"0.5745301",
"0.5745082",
"0.5730151",
"0.57212543",
"0.56908745",
"0.56866765",
"0.5665613",
"0.5649539",
"0.5644168",
"0.5643208",
"0.5639331",
"0.56243277",
"0.5622378",
"0.56208515",
"0.561989",
"0.561625",
"0.5613418",
"0.559949",
"0.55979985",
"0.5593546",
"0.55932647",
"0.558337",
"0.5575723",
"0.5574877",
"0.55731624",
"0.5570975",
"0.5564034",
"0.5563594",
"0.55552125",
"0.55544436",
"0.55406785",
"0.5532889",
"0.55271876",
"0.5522268",
"0.5508805",
"0.5506383",
"0.55012655",
"0.54934937",
"0.54930204",
"0.54904056",
"0.54899395",
"0.54605025",
"0.5450729",
"0.5448627",
"0.54416233",
"0.5441262",
"0.544062",
"0.5436232",
"0.54323035",
"0.5431162",
"0.54139066",
"0.540826",
"0.5407806",
"0.54067856",
"0.5403044",
"0.5398502",
"0.53929895",
"0.53852904",
"0.5376812"
] | 0.0 | -1 |
This method assigns neighbors to a specified cell. Uses simple constraints such as determining the (x,y) coordinates of the aforementioned cell | public void assignNeighbors(Vertex v) {
if (v.y != 0) {
v.neighbors.add(graph[v.x][v.y - 1]);
}
if (v.y != (mazeSize - 1)) {
v.neighbors.add(graph[v.x][v.y + 1]);
}
if (v.x != 0) {
v.neighbors.add(graph[v.x - 1][v.y]);
}
if (v.x != mazeSize - 1) {
v.neighbors.add(graph[v.x + 1][v.y]);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void manageCell(int x, int y, int livingNeighbours);",
"public void populateNeighbors(Cell[][] cells) {\n\t\tint limitHoriz = cells[0].length;\n\t\tint limitVert = cells.length;\n\t\t// above left\n\t\tif (myRow > 0 && myRow < limitVert - 1) {\n\t\t\tif (myCol > 0 && myCol < limitHoriz - 1) {\n\t\t\t\tneighbors.add(cells[myRow][myCol]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol +1]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol +1]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol]);\n\t\t\t\tneighbors.add(cells[myRow-1][myCol-1]);\n\t\t\t\tneighbors.add(cells[myRow-1][myCol-1]);\n\t\t\t\tneighbors.add(cells[myRow-1][myCol+1]);\n\t\t\t\t// ADD 8 cells to neighbors (see the diagram from the textbook)\n\t\t\t}\n\t\t\tif (myCol == 0) { // left edge not corner\n\t\t\t\t// ADD 5 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow+1][myCol+1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol+1]);\n\t\t\t\tneighbors.add(cells[myRow+1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow-1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow-1][myCol+1]);\n\t\t\t}\n\t\t\tif (myCol == limitHoriz - 1) { // right edge not corner\n\t\t\t\t// ADD 5 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow +1][myCol-1]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow-1][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow -1][myCol]);\n\t\t\t}\n\t\t}\n\t\tif (myRow == 0) {\n\t\t\tif (myCol > 0 && myCol < limitHoriz - 1) { // top edge not corner\n\t\t\t\t// ADD 5 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow][myCol + 1]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol+1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol-1]);\n\t\t\t\tneighbors.add(cells[myRow+1][myCol -1]);\n\t\t\t}\n\t\t\tif (myCol == 0) { // top left corner\n\t\t\t\t// ADD 3 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow][myCol + 1]);\n\t\t\t\tneighbors.add(cells[myRow + 1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow + 1][myCol+1]);\n\t\t\t}\n\t\t\tif (myCol == limitHoriz - 1) { // top right corner\n\t\t\t\t// ADD 3 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow +1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol -1]);\n\t\t\t}\n\t\t}\n\t\tif (myRow == limitVert - 1) {\n\t\t\tif (myCol > 0 && myCol < limitHoriz - 1) { // bottom edge\n\t\t\t\t// ADD 5 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow-1][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow - 1][myCol+1]);\n\t\t\t\tneighbors.add(cells[myRow - 1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow][myCol +1]);\n\t\t\t}\n\t\t\tif (myCol == 0) { // bottom left corner\n\t\t\t\t// ADD 3 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow - 1][myCol+1]);\n\t\t\t\tneighbors.add(cells[myRow - 1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow][myCol +1]);\n\t\t\t}\n\t\t\tif (myCol == limitHoriz - 1) { // bottom right corner\n\t\t\t\t// ADD 3 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow-1][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow - 1][myCol]);\n\t\t\t}\n\t\t}\n\t}",
"private void setNeighbors() {\n\t\tfor (int i = 0; i < getNumRows(); i++) {\n\t\t\tfor (int j = 0; j < getNumCols(); j++) {\n\t\t\t\tCell c = getCurrentGrid()[i][j];\n\t\t\t\tsetNeighborsForCell(c);\n\t\t\t}\n\t\t}\n\t}",
"public void setNeighbors(){\t\t\t\t\n\t\tint row = position[0];\n\t\tint column = position[1];\t\t\n\t\tif(column+1 < RatMap.SIDELENGTH){\n\t\t\teastCell = RatMap.getMapCell(row,column+1);\t\t\t\n\t\t}else{\n\t\t\teastCell = null;\n\t\t}\t\n\t\tif(row+1 < RatMap.SIDELENGTH){\n\t\t\tnorthCell = RatMap.getMapCell(row+1,column);\n\t\t}else{\n\t\t\tnorthCell = null;\n\t\t}\t\n\t\tif(column-1 > -1){\n\t\t\twestCell = RatMap.getMapCell(row, column-1);\t\t\t\n\t\t}else{\n\t\t\twestCell = null;\n\t\t}\n\t\tif(row-1 > -1){\n\t\t\tsouthCell = RatMap.getMapCell(row-1, column);\n\t\t}else{\n\t\t\tsouthCell = null;\n\t\t}\n\t}",
"private void setNeighbors()\r\n {\r\n for (int x = 0; x < length+2; ++x)\r\n {\r\n for (int y = 0; y < width+2; ++y)\r\n {\r\n // North\r\n if (!this.board[x][y].northwall)\r\n {\r\n this.board[x][y].neighbors.add(this.board[x][y-1]);\r\n }\r\n // South\r\n if (!this.board[x][y].southwall)\r\n {\r\n this.board[x][y].neighbors.add(this.board[x][y+1]);\r\n }\r\n // East\r\n if (!this.board[x][y].eastwall)\r\n {\r\n this.board[x][y].neighbors.add(this.board[x+1][y]);\r\n }\r\n // West\r\n if (!this.board[x][y].westwall)\r\n {\r\n this.board[x][y].neighbors.add(this.board[x-1][y]);\r\n }\r\n }\r\n }\r\n }",
"public ArrayList<Cell> fillNeighbors(Biochip grid, Cell cell, double value, int dest_x, int dest_y){\n\t\tint i = grid.findRow(cell); \n\t\tint j = grid.findColumn(cell); \n\t\tArrayList<Cell> new_filled_cells = new ArrayList<Cell>();\n\t\t//System.out.println(\"fill for : \" + i + \" \" + j); \n\n\t\t// right neighbor - only if it has one \n\t\tif (j+1<grid.width){\n\t\t\tCell right_n = grid.getCell(i, j+1);\n\t\t\tif (right_n.isFaulty==false && right_n.value<0){\n\t\t\t\t\tright_n.value = value; \n\t\t\t\t\tif (grid.findColumn(right_n)==dest_y && grid.findRow(right_n)==dest_x){\n\t\t\t\t\t\treturn new ArrayList<Cell>();\n\t\t\t\t\t}\n\t\t\t\t\telse new_filled_cells.add(right_n);\n\t\t\t}\n\t\t}\n\t\t// left neighbor - only if it has one\n\t\tif (j-1>=0){\n\t\t\tCell left_n = grid.getCell(i, j-1);\n\t\t\tif (left_n.isFaulty==false && left_n.value<0){\n\t\t\t\tleft_n.value = value; \n\t\t\t\tif (grid.findColumn(left_n)==dest_y && grid.findRow(left_n)==dest_x){\n\t\t\t\t\treturn new ArrayList<Cell>();\n\t\t\t\t}\n\t\t\t\telse new_filled_cells.add(left_n);\n\t\t\t}\n\t\t}\n\t\t// up neighbor\n\t\tif (i-1>=0){\n\t\t\tCell up_n = grid.getCell(i-1, j);\n\t\t\tif (up_n.isFaulty==false && up_n.value<0){\n\t\t\t\tup_n.value = value;\n\t\t\t\tif (grid.findColumn(up_n)==dest_y && grid.findRow(up_n)==dest_x){\n\t\t\t\t\treturn new ArrayList<Cell>();\n\t\t\t\t}\n\t\t\t\telse new_filled_cells.add(up_n);\n\t\t\t}\n\t\t}\n\t\t// down neighbor\n\t\tif (i+1<grid.height){\n\t\t\tCell down_n = grid.getCell(i+1, j);\n\t\t\tif (down_n.isFaulty==false && down_n.value<0){\n\t\t\t\tdown_n.value = value; \n\t\t\t\tif (grid.findColumn(down_n)==dest_y && grid.findRow(down_n)==dest_x){\n\t\t\t\t\treturn new ArrayList<Cell>();\n\t\t\t\t}\n\t\t\t\telse new_filled_cells.add(down_n);\n\t\t\t}\n\t\t}\n\t\t\n\t//\tthis.printGrid(grid);\n\t\treturn new_filled_cells; \n\n\t}",
"private void setNeighboringMines(){\n\t\t//cycle the board\n\t\tfor (int r = 0; r < board.length; r++)\n\t\t\tfor (int c = 0; c < board[r].length; c++){\n\t\t\t\tint neighborCount = 0;\n\t\t\t\tif(!board[r][c].isMine()) {\n\t\t\t\t\t//checks if there is mines touching\n\t\t\t\t\tneighborCount = neighboringMines(r, c);\n\t\t\t\t\tif (neighborCount > 0) {\n\t\t\t\t\t\tboard[r][c].setIsNeighboringMine(true);\n\t\t\t\t\t\tboard[r][c].setNumNeighboringMines\n\t\t\t\t\t\t\t\t(neighborCount);\n\t\t\t\t\t} else if (neighborCount == 0) {\n\t\t\t\t\t\tboard[r][c].setNumNeighboringMines(0);\n\t\t\t\t\t\tboard[r][c].setIsNeighboringMine(false);\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void setObstacleCell(int row, int col, boolean obstacle) {\n if (obstacle && (in_start(row, col) || in_goal(row, col)))\n return;\n\n grid[row][col].setIsObstacle(obstacle);\n\n if (row >= 1) {\n grid[row - 1][col].setVirtualWall(obstacle); // bottom cell\n\n if (col < MapConstant.MAP_Y - 1) {\n grid[row - 1][col + 1].setVirtualWall(obstacle); // bottom-right cell\n }\n\n if (col >= 1) {\n grid[row - 1][col - 1].setVirtualWall(obstacle); // bottom-left cell\n }\n }\n\n if (row < MapConstant.MAP_X - 1) {\n grid[row + 1][col].setVirtualWall(obstacle); // top cell\n\n if (col < MapConstant.MAP_Y - 1) {\n grid[row + 1][col + 1].setVirtualWall(obstacle); // top-right cell\n }\n\n if (col >= 1) {\n grid[row + 1][col - 1].setVirtualWall(obstacle); // top-left cell\n }\n }\n\n if (col >= 1) {\n grid[row][col - 1].setVirtualWall(obstacle); // left cell\n }\n\n if (col < MapConstant.MAP_Y - 1) {\n grid[row][col + 1].setVirtualWall(obstacle); // right cell\n }\n }",
"protected static void updateNeighborCells(Coordinate coordinate, Cell cell, Grid grid) {\n\t\tint neighbor_x = coordinate.getX() - 1;\n\n\t\twhile (neighbor_x <= coordinate.getX() + 1) {\n\t\t\tint neighbor_y = coordinate.getY() - 1;\n\n\t\t\twhile (neighbor_y <= coordinate.getY() + 1) {\n\t\t\t\tif (neighbor_x != coordinate.getX() || neighbor_y != coordinate.getY()) {\n\t\t\t\t\tif (isCellWithinBoarder(grid, neighbor_x, neighbor_y)) {\n\t\t\t\t\t\tif (grid.getCells().get(new Coordinate(neighbor_x, neighbor_y)) != null) {\n\t\t\t\t\t\t\tif (cell.alive()) {\n\t\t\t\t\t\t\t\tgrid.getCells().get(new Coordinate(neighbor_x, neighbor_y)).increaseNeighborsNext();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tgrid.getCells().get(new Coordinate(neighbor_x, neighbor_y)).decreaseNeighborsNext();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (cell.alive()) {\n\t\t\t\t\t\t\tgrid.getCells().put(new Coordinate(neighbor_x, neighbor_y), new Cell(State.DEAD));\n\t\t\t\t\t\t\tgrid.getCells().get(new Coordinate(neighbor_x, neighbor_y)).increaseNeighborsNext();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tneighbor_y++;\n\t\t\t}\n\t\t\tneighbor_x++;\n\t\t}\n\t}",
"void Cell(boolean R, int x, int y, Bridge bridge);",
"public void initializeNeighbors() {\n\t\tfor (int r = 0; r < getRows(); r++) {\n\t\t\tfor (int c = 0; c < getCols(); c++) {\n\t\t\t\tList<Cell> nbs = new ArrayList<>();\n\t\t\t\tinitializeNF(shapeType, r, c);\n\t\t\t\tmyNF.findNeighbors();\n\t\t\t\tfor (int[] arr : myNF.getNeighborLocations()){\n\t\t\t\t\tif (contains(arr[0], arr[1])){\n\t\t\t\t\t\tnbs.add(get(arr[0], arr[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tget(r, c).setNeighbors(nbs);\n\t\t\t}\n\t\t}\n\t}",
"public void manageCell(int x, int y, int livingNeighbours){\n if(livingNeighbours < 2 || livingNeighbours > 3)\n turnToDead(x, y);\n else if(livingNeighbours == 3)\n turnToLiving(x, y);\n }",
"private int getNeighbours(Cell cell) {\n\n //Get the X, Y co-ordinates of the cell\n int cellX = cell.getXCord();\n int cellY = cell.getYCord();\n\n // Helper variable initially set to check all neighbours.\n int[][] neighbourCords = allCords;\n\n //Checks what location the cell is and which of its neighbours to check\n //This avoids any array out of bounds issues by trying to look outside the grid\n if (cellX == 0 && cellY == 0) {\n neighbourCords = topLeftCords;\n } else if (cellX == this.width - 1 && cellY == this.height - 1) {\n neighbourCords = bottomRightCords;\n } else if (cellX == this.width - 1 && cellY == 0) {\n neighbourCords = topRightCords;\n } else if (cellX == 0 && cellY == this.height - 1) {\n neighbourCords = bottomLeftCords;\n } else if (cellY == 0) {\n neighbourCords = topCords;\n } else if (cellX == 0) {\n neighbourCords = leftCords;\n } else if (cellX == this.width - 1) {\n neighbourCords = rightCords;\n } else if (cellY == this.height - 1) {\n neighbourCords = bottomCords;\n }\n\n // Return the number of neighbours\n return searchNeighbours(neighbourCords, cellX, cellY);\n }",
"@Override\n\tpublic List<Cell> calcNeighbors(int row, int col) {\n\t\tList<Cell> neighborLocs = new ArrayList<>();\n\t\tint shift_constant = 1 - 2*((row+col) % 2);\n\t\tif(!includesDiagonals) {\n\t\t\tfor(int a = col - 1; a <= col + 1; a++) {\n\t\t\t\tif(a == col)\n\t\t\t\t\taddLocation(row + shift_constant,a,neighborLocs);\n\t\t\t\telse \n\t\t\t\t\taddLocation(row,a,neighborLocs);\n\t\t\t}\n\t\t\treturn neighborLocs;\n\t\t}\n\t\tfor(int b = col - 2; b <= col + 2; b++) {\n\t\t\tfor(int a = row; a != row + 2*shift_constant; a += shift_constant) {\n\t\t\t\tif(a == row && b == col)\n\t\t\t\t\tcontinue;\n\t\t\t\taddLocation(a,b,neighborLocs);\n\t\t\t}\n\t\t}\n\t\tfor(int b = col -1; b <= col + 1; b++) {\n\t\t\taddLocation(row - shift_constant,b,neighborLocs);\n\t\t}\n\t\treturn neighborLocs;\n\t}",
"private void assignMoleculesToCells() {\n for (int i = 0; i < nXCells; i++) {\r\n for (int j = 0; j < nYCells; j++) {\r\n cells[i][j].firstMolecule = null;\r\n }\r\n }\r\n \r\n // Assign molecules to cells - each molecule has a unique cell\r\n for (Molecule m: molecules) {\r\n int xCell = (int) Math.floor(m.x / CELL_SIZE);\r\n if (xCell < 0) xCell = 0;\r\n if (xCell >= nXCells) xCell = nXCells - 1;\r\n int yCell = (int) Math.floor(m.y / CELL_SIZE);\r\n if (yCell < 0) yCell = 0;\r\n if (yCell >= nYCells) yCell = nYCells - 1;\r\n m.nextMoleculeInCell = cells[xCell][yCell].firstMolecule;\r\n cells[xCell][yCell].firstMolecule = m;\r\n }\r\n }",
"public void set_neighbors(Cell[] neighbors)\n\t{\n\t\tthis.neighbors = neighbors;\n\t}",
"private void setCellVisited(Cell cell) {\n\n\t\tif (!isIn(cell))\n\t\t\treturn;\n\n\t\tint r = cell.r;\n\t\tint c = cell.c;\n\t\tif (maze.type == HEX) {\n\t\t\tc = c - (r + 1) / 2;\n\t\t}\n\t\ttry {\n\t\t\tvisited[r][c] = true;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void establishNeighbourCellBodies(int connec){\n\t\tArrayList<ThresholdDataPoint> neighbours = getNeighbours(connec);\n\n\t\tint x = this.getPixelPos().getX();\n\t\tint y = this.getPixelPos().getY();\n\n\t\tSet<Integer> neighbourCellBodies = new HashSet<Integer>();\n\n\t\tfor(ThresholdDataPoint neigh: neighbours){\n\t\t\tif(neigh.getCellBody() !=0){\n\t\t\t\tneighbourCellBodies.add(neigh.getCellBody());\n\t\t\t}\n\t\t}\n\n\t\tsetNeighbourCellBodies(neighbourCellBodies);\n\t}",
"public Cell(int row, int col, int startingState, int[] neighborRowIndexes,\n int[] neighborColIndexes) {\n myState = startingState;\n myRow = row;\n myCol = col;\n neighborRowIndex = neighborRowIndexes;\n if (hexagon) {\n neighborEvenColIndex = new int[]{-1, -1, 0, 1, 0, -1};\n neighborOddColIndex = new int[]{-1, 0, 1, 1, 1, 0};\n neighborRowIndex = new int[]{0, -1, -1, 0, 1, 1};\n } else {\n neighborEvenColIndex = neighborColIndexes;\n neighborOddColIndex = neighborColIndexes;\n }\n }",
"private List<Cell> getNeighbours(int row,int col){\n List<Cell> neighbours = new ArrayList<Cell>();\n for(int i = row -1 ; i <= row+1 ; i++ )\n for(int j = col -1 ; j <= col+1 ; j++)\n if(i>=0 && i<cells.length && j>=0 && j<cells[0].length)\n neighbours.add(cells[i][j]);\n return neighbours;\n }",
"void updateCellNumbers() {\n cells.stream().forEach(row -> row.stream().filter(cell -> !cell.isMine()).forEach(cell -> {\n int numNeighbouringMines =\n (int) getNeighboursOf(cell).stream().filter(neighbour -> neighbour.isMine()).count();\n cell.setNumber(numNeighbouringMines);\n }));\n }",
"private void setCell(int x, int y, int newValue) {\n hiddenGrid[x][y] = newValue;\n }",
"public void update() {\n\t\t// Complete this method\n\n\t\tint [][]tempTable = new int [numberOfRows()][numberOfColumns()];\n\n\t\tfor ( int r = 0; r < numberOfRows(); r++ ){\n\t\t\tfor (int c = 0; c < numberOfColumns(); c++){\n\t\t\t\tif(neighborCount(r,c) == 3){//if there is exactly three\n\t\t\t\t\tif(gameGrid[r][c] == 0)//cell is born\n\t\t\t\t\t\ttempTable[r][c] = 1;//then you add one to your tempTable\t\n\t\t\t\t}\n\n\t\t\t\tif((neighborCount(r,c) == 2) || (neighborCount(r,c) == 3)){//if there is two or three\n\t\t\t\t\tif(gameGrid[r][c] == 1)//this is your existing cell\n\t\t\t\t\t\ttempTable[r][c] = 1;//then the cell remains\n\t\t\t\t}\n\n\t\t\t\tif((neighborCount(r,c) == 0) || (neighborCount(r,c) == 1)){//if there were two neighbors\n\t\t\t\t\tif(gameGrid[r][c] == 0)//if there is no cell\n\t\t\t\t\t\ttempTable[r][c] = 0;//a cell dies\n\t\t\t\t}\n\n\t\t\t\tif((neighborCount(r,c) > 3)){//if there is more than three\n\t\t\t\t\tif(gameGrid[r][c] == 1)//if there is no cell\n\t\t\t\t\t\ttempTable[r][c] = 0;//a cell dies\n\t\t\t\t}\n\n\t\t\t}//end of column for loop\n\t\t}//end of row for loop\n\t\tgameGrid = tempTable;\n\t}",
"private MapCell nextCell(MapCell cell) {\r\n\t\t\r\n\t\t//This is an array that holds the possible neighbouring tiles.\r\n\t\tMapCell[] potentialCells = {null,null,null,null};\r\n\t\t\r\n\t\t//This variable is an indicator. If it remains -1, that means no possible neighbouring tiles were found.\r\n\t\tint next = -1; \r\n\t\t\t\r\n\t\t//If the cell is a north road, check that its neighbour to the north is not null or marked. Then, see if it's either\r\n\t\t//an intersection, the destination, or another north road.\r\n\t\tif(cell.getNeighbour(0)!=null && cell.isNorthRoad()) {\r\n\r\n\t\t\tif(!cell.getNeighbour(0).isMarked()) {\r\n\r\n\t\t\t\tif(cell.getNeighbour(0).isIntersection()||cell.getNeighbour(0).isDestination()||cell.getNeighbour(0).isNorthRoad()) {\r\n\r\n\t\t\t\t\t//Add the north neighbour to the array of potential next tiles.\r\n\t\t\t\t\tpotentialCells[0] = cell.getNeighbour(0);\r\n\t\t\t\t\tnext = 0;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t//If the cell is an east road, check that its neighbour to the east is not null or marked. Then, see if it's either\r\n\t\t//an intersection, the destination, or another east road.\r\n\t\t} else if (cell.getNeighbour(1)!=null && cell.isEastRoad()) {\r\n\r\n\t\t\tif(!cell.getNeighbour(1).isMarked()) {\r\n\r\n\t\t\t\tif(cell.getNeighbour(1).isIntersection()||cell.getNeighbour(1).isDestination()||cell.getNeighbour(1).isEastRoad()) {\r\n\r\n\t\t\t\t\t//Add the east neighbour to the potential next tiles.\r\n\t\t\t\t\tpotentialCells[1] = cell.getNeighbour(1);\r\n\t\t\t\t\tnext = 0;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t//If the cell is a south road, check that its neighbour to the south is not null or marked. Then, see if it's either\r\n\t\t//an intersection, the destination, or another south road.\r\n\t\t} else if (cell.getNeighbour(2)!=null && cell.isSouthRoad()) {\r\n\r\n\t\t\tif(!cell.getNeighbour(2).isMarked()) {\r\n\r\n\t\t\t\tif(cell.getNeighbour(2).isIntersection()||cell.getNeighbour(2).isDestination()||cell.getNeighbour(2).isSouthRoad()) {\r\n\r\n\t\t\t\t\t//Add the south neighbour to the potential next tiles.\r\n\t\t\t\t\tpotentialCells[2] = cell.getNeighbour(2);\r\n\t\t\t\t\tnext = 0;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t//If the cell is a west road, check that its neighbour to the west is not null or marked. Then, see if it's either\r\n\t\t//an intersection, the destination, or another west road.\r\n\t\t} else if (cell.getNeighbour(3)!=null && cell.isWestRoad()) {\r\n\r\n\t\t\tif(!cell.getNeighbour(3).isMarked()) {\r\n\r\n\t\t\t\tif(cell.getNeighbour(3).isIntersection()||cell.getNeighbour(3).isDestination()||cell.getNeighbour(3).isWestRoad()) {\r\n\r\n\t\t\t\t\t//Add the west neighbour to the potential next tiles.\r\n\t\t\t\t\tpotentialCells[3] = cell.getNeighbour(3);\r\n\t\t\t\t\tnext = 0;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t//If the current cell is an intersection, go through all 4 of its potential neighbours.\r\n\t\t} else {\r\n\r\n\t\t\tfor(int i = 0; i<4; i++) {\r\n\r\n\t\t\t\t//Check that the neighbour isn't null or marked.\r\n\t\t\t\tif(cell.getNeighbour(i)!=null) {\r\n\r\n\t\t\t\t\tif(!cell.getNeighbour(i).isMarked()) {\r\n\r\n\t\t\t\t\t\t//Check to see if the neighbour is either an intersection, or a one-way road in the proper orientation to\r\n\t\t\t\t\t\t//continue the path.\r\n\t\t\t\t\t\tif(cell.getNeighbour(i).isIntersection()||cell.getNeighbour(i).isDestination()||(i==0\r\n\t\t\t\t\t\t\t\t&&cell.getNeighbour(i).isNorthRoad())||(i==1&&cell.getNeighbour(i).isEastRoad())||(i==2\r\n\t\t\t\t\t\t\t\t&&cell.getNeighbour(i).isSouthRoad())||(i==3&&cell.getNeighbour(i).isWestRoad())) {\r\n\r\n\t\t\t\t\t\t\t//Add the tile to the possible next tiles.\r\n\t\t\t\t\t\t\tpotentialCells[i] = cell.getNeighbour(i);\r\n\t\t\t\t\t\t\tnext = 0;\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t//If no tiles were found, return null.\r\n\t\tif(next == -1) {\r\n\r\n\t\t\treturn null;\r\n\r\n\t\t//Otherwise, select one (or one of) the next possible tiles and return it.\r\n\t\t} else {\r\n\r\n\t\t\tfor(int i = 3; i >= 0; i--) {\r\n\r\n\t\t\t\tif(potentialCells[i]!=null) {\r\n\r\n\t\t\t\t\tnext = i;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\treturn potentialCells[next];\r\n\r\n\t\t}\r\n\t\t\r\n\t}",
"ArrayList<ArrayList<Cell>> assignedCells(ArrayList<ArrayList<Cell>> links) {\n for (int i = 0; i < links.size(); i = i + 1) {\n for (int j = 0; j < links.get(i).size(); j = j + 1) {\n Cell c = links.get(i).get(j);\n if (i <= 0) {\n c.left = c;\n }\n else {\n c.left = links.get(i - 1).get(j);\n }\n if (i >= ForbiddenIslandWorld.ISLAND_SIZE - 1) {\n c.right = c;\n }\n else {\n c.right = links.get(i + 1).get(j);\n }\n if (j <= 0) {\n c.top = c;\n }\n else {\n c.top = links.get(i).get(j - 1);\n }\n if (j >= ForbiddenIslandWorld.ISLAND_SIZE - 1) {\n c.bottom = c;\n }\n else {\n c.bottom = links.get(i).get(j + 1);\n }\n }\n }\n return links;\n }",
"public void connect(Hashtable<String, ArrayList<Node>> cells, Executable target) {\n Coordinate.CellIterator itr = coordinate.getCellIterator();\n while (itr.hasNext()) {\n String idx = itr.next();\n ArrayList<Node> nodes = cells.get(idx);\n if (nodes == null) continue;\n for (Node node : nodes) {\n if (coordinate.SquaredDistance(node.coordinate, coordinate) > Config.LEGAL_SQUARE_DISTANCE || node.equals(this)) {\n// System.out.println(coordinate.toString() + \" \"\n// + node.coordinate.toString() + \"\" + coordinate.SquaredDistance(node.coordinate, coordinate));\n continue;\n }\n connected.add(node);\n node.getConnected().add(this);\n// if (Config.WILL_DRAW) {\n// target.push(c -> {\n// renderEdgeTo(c, node);\n// });\n// }\n }\n }\n }",
"private void recalculateNeighbours(int x, int y) {\r\n\t\tTile t = map.getTile(x, y + 1, 0);\r\n\t\tif (t != null) {\r\n\t\t\tt.toMap(this, x, y + 1, false);\r\n\t\t}\r\n\t\tt = map.getTile(x + 1, y, 0);\r\n\t\tif (t != null) {\r\n\t\t\tt.toMap(this, x + 1, y, false);\r\n\t\t}\r\n\t\tt = map.getTile(x, y - 1, 0);\r\n\t\tif (t != null) {\r\n\t\t\tt.toMap(this, x, y - 1, false);\r\n\t\t}\r\n\t\tt = map.getTile(x - 1, y, 0);\r\n\t\tif (t != null) {\r\n\t\t\tt.toMap(this, x - 1, y, false);\r\n\t\t}\r\n\t}",
"public boolean isNeighbor(Cell cell){\n \tif((Math.pow(x - cell.getX(), 2) + (Math.pow(y - cell.getY(), 2)) <= 10* 10)){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n }",
"public Cell(int row, int col) {\n\t\talive = false;\n\t\tmyRow = row;\n\t\tmyCol = col;\n\t\tneighbors = new ArrayList<>();\n\t}",
"private void setAdjacentUnknown(Cell cell) {\n\t\tint count = 0;\n\t\tPoint pos = cell.getPosition();\n\t\tfor (Point adjPos : pos.allAdjacent()) {\n\t\t\tif (!map.containsKey(adjPos)) {\n\t\t\t\tCell adjacent = createCell(adjPos, CellType.UNSAFE_UNKNOWN);\n\t\t\t\tmap.put(adjPos, adjacent);\n\t\t\t\t++count;\n\t\t\t}\n\t\t}\n\t\tLOG.trace(\"added {} cell(s) of type around cell at {}\", count, CellType.UNSAFE_UNKNOWN, pos);\n\t}",
"private void setCell(boolean[][] board, int i, int j) {\n\t\tint numOfNeighbors = getNeighbors(board, i, j);\n\t\tif(board[i][j]) { // if alive\n\t\t\tif(numOfNeighbors < 2 || numOfNeighbors >= 4) {\n\t\t\t\ttempBoard[i][j] = false; // kill cell\n\t\t\t}\n\t\t}else{ // if dead\n\t\t\tif(numOfNeighbors == 3)\n\t\t\t\ttempBoard[i][j] = true; // become alive\n\t\t}\n\t}",
"public Cell(int x,int y){\r\n this.x = x;\r\n this.y = y;\r\n level = 0;\r\n occupiedBy = null;\r\n }",
"static void changeNeighbors(DoubleGrid2D landscape, Double2D originalCell, Double2D thisCell, double originalAmount, Bag previousChanges) {\n\n IntBag neighborsX = new IntBag(); // allocate the bags needed by getMooreNeighbors\n IntBag neighborsY = new IntBag();\n DoubleBag neighborsValues = new DoubleBag();\n\n landscape.getMooreNeighbors((int) thisCell.x, (int) thisCell.y, 1, 0, false, neighborsValues, neighborsX, neighborsY);\n for (int i = 0; i < neighborsX.size(); i++) {\n Double2D thisNeighbor = new Double2D(neighborsX.get(i), neighborsY.get(i));\n double thisNeighborValue = landscape.get((int) thisNeighbor.x, (int) thisNeighbor.y);\n if ((thisNeighbor.x == originalCell.x) && (thisNeighbor.y == originalCell.y)) { // if this neighbor is the original cell\n continue;\n }\n if (previousChanges.contains(thisNeighbor)) { // if the cell was changed before\n continue;\n }\n Double newValue = getValueWithDispersal(landscape, originalCell, thisNeighbor, originalAmount); // get the new value for the cell\n if (newValue != thisNeighborValue) { // if it changed above precision level\n landscape.set(neighborsX.get(i), neighborsY.get(i), newValue); // change the value in the landscape\n previousChanges.add(thisNeighbor); // add the cell to the previously changed cells to avoid infinite recursion\n changeNeighbors(landscape, originalCell, thisNeighbor, originalAmount, previousChanges); // recursively call function\n } else { // if it didn't change because change was over precision level\n landscape.set(neighborsX.get(i), neighborsY.get(i), thisNeighborValue); // set the same value\n }\n }\n }",
"private static Iterable<Cell> getNeighbors(Grid<Cell> grid, Cell cell) {\n\t\tMooreQuery<Cell> query = new MooreQuery<Cell>(grid, cell);\n\t\tIterable<Cell> neighbors = query.query();\n\t\treturn neighbors;\n\t}",
"public void solve() {\n for (int i = 0; i < rowsCount; i++) {\n for (int j = 0; j < colsCount; j++) {\n\n // if the current Cell contains a mine, let's skip this iteration.\n if (this.cells[i][j].hasMine()) continue;\n\n // for all non-mine cells, set the default value to 0\n cells[i][j].setValue('0');\n\n // let's get all Cells surrounding the current Cell,\n // checking if the other Cells have a mine.\n // if there is a mine Cell touching the current Cell,\n // proceed to update the value of the current Cell.\n Cell topCell = get_top_cell(i, j);\n if (topCell != null && topCell.hasMine() == true) update_cell(i, j);\n\n Cell trdCell = get_top_right_diagnoal_cell(i, j);\n if (trdCell != null && trdCell.hasMine() == true) update_cell(i, j);\n\n Cell rightCell = get_right_cell(i, j);\n if (rightCell != null && rightCell.hasMine() == true) update_cell(i, j);\n\n Cell brdCell = get_bottom_right_diagnoal_cell(i, j);\n if (brdCell != null && brdCell.hasMine() == true) update_cell(i, j);\n\n Cell bottomCell = get_bottom_cell(i, j);\n if (bottomCell != null && bottomCell.hasMine() == true) update_cell(i, j);\n\n Cell bldCell = get_bottom_left_diagnoal_cell(i, j);\n if (bldCell != null && bldCell.hasMine() == true) update_cell(i, j);\n\n Cell leftCell = get_left_cell(i, j);\n if (leftCell != null && leftCell.hasMine() == true) update_cell(i, j);\n\n\n Cell tldCell = get_top_left_diagnoal_cell(i, j);\n if (tldCell != null && tldCell.hasMine() == true) update_cell(i, j);\n }\n }\n\n // print the solution to System out\n print_solution();\n }",
"public void init_cells()\n\t{\n\t\tint i, j;\n\n\t\t// create a maze of cells\n\t\tMaze = new int[ROWS][COLS];\n//\t\tfor (i = 0; i < ROWS; i++)\n//\t\t\tMaze[i] = new Array(COLS);\n\n\t\t// set all walls of each cell in maze by setting bits : N E S W\n\t\tfor (i = 0; i < ROWS; i++)\n\t\t\tfor (j = 0; j < COLS; j++)\n\t\t\t\tMaze[i][j] = (N + E + S + W);\n\t\t\n\t\t// create stack for storing previously visited locations\n\t\tstack = new Vector<int[]>(ROWS*COLS);\n\t\tfor (i = 0; i < ROWS*COLS; i++)\n\t\t\tstack.add(i, new int[2]);\n\n\t\t// initialize stack\n\t\tfor (i = 0; i < ROWS*COLS; i++)\n\t\t\tfor (j = 0; j < 2; j++)\n\t\t\t\tstack.elementAt(i)[j] = 0;\n\t}",
"public void setNeighbourCellBodies(Set<Integer> neighbourCellBodies) {\n\t\tthis.neighbourCellBodies = neighbourCellBodies;\n\t}",
"public void getNeighbors(){\n // North \n if(this.row - this.value>=0){\n this.north = adjacentcyList[((this.row - this.value)*col_size)+col];\n }\n // South\n if(this.row + value<row_size){\n this.south = adjacentcyList[((this.row+this.value)*row_size)+col];\n }\n // East\n if(this.col + this.value<col_size){\n this.east = adjacentcyList[((this.col+this.value)+(this.row)*(col_size))];\n }\n // West\n if(this.col - this.value>=0){\n this.west = adjacentcyList[((this.row*col_size)+(this.col - this.value))];\n }\n }",
"public void processCells() {\n\n //Create a new grid which will be next iteration\n Cell[][] nextGrid = new Cell[this.width][this.height];\n\n //Populate the new grid with dead cells\n populateGrid(nextGrid);\n\n //Iterate through the grid\n for (int x = 0; x < this.width; x++) {\n for (int y = 0; y < this.height; y++) {\n\n //Get the cell\n Cell currentCell = getCell(x, y);\n\n // Get current status of the Cell\n boolean isAlive = currentCell.isAlive();\n\n //Check its neighbours\n int aliveNeighbours = getNeighbours(currentCell);\n\n //Evaluate against rules\n isAlive = applyRules(isAlive, aliveNeighbours);\n\n //Add cell to new grid\n nextGrid[x][y].setAlive(isAlive);\n }\n }\n\n //Set the next iteration to the current iteration\n this.grid = nextGrid;\n }",
"public void setNeighbours(ArrayList<ThresholdDataPoint> neighbours, int connec) {\n\t\tif(connec == 8){\n\t\t\tthis.eightNeighbours = neighbours;\n\t\t} else if(connec == 4){\n\t\t\tthis.fourNeighbours = neighbours;\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Invalid number of neighbours\");\n\t\t}\n\t}",
"public void setCellValue(int i, int j, int val) {\n\t\tthis.puzzle[i][j] = val;\n\t\t// set val as a singleton in constraints[i][j]\n\t\tthis.constraints[i][j].clear();\n\t\tthis.constraints[i][j].set(val, true);\n\t\t// set val in all units\n\t\tthis.constraints[i][0].set(val, true);\n\t\tthis.constraints[0][j].set(val, true);\n\t\tthis.constraints[N + 1][getBlockIndex(i, j)].set(val, true);\n\t\t// remove from nonAssignedCells\n\t\tnonAssignedCells.removeIf(x -> x.getKey() == i && x.getValue() == j);\n\t}",
"protected abstract void setCell(int x, int y, boolean state);",
"private void getNeighbors() {\n\t\tRowIterator iterator = currentGen.iterateRows();\n\t\twhile (iterator.hasNext()) {\n\t\t\tElemIterator elem = iterator.next();\n\t\t\twhile (elem.hasNext()) {\n\t\t\t\tMatrixElem mElem = elem.next();\n\t\t\t\tint row = mElem.rowIndex();\n\t\t\t\tint col = mElem.columnIndex();\n\t\t\t\tint numNeighbors = 0;\n\t\t\t\tfor (int i = -1; i < 2; i++) { // loops through row above,\n\t\t\t\t\t\t\t\t\t\t\t\t// actual row, and row below\n\t\t\t\t\tfor (int j = -1; j < 2; j++) { // loops through column left,\n\t\t\t\t\t\t\t\t\t\t\t\t\t// actual column, coloumn\n\t\t\t\t\t\t\t\t\t\t\t\t\t// right\n\t\t\t\t\t\tif (!currentGen.elementAt(row + i, col + j).equals(\n\t\t\t\t\t\t\t\tfalse)) // element is alive, add 1 to neighbor\n\t\t\t\t\t\t\t\t\t\t// total\n\t\t\t\t\t\t\tnumNeighbors += 1;\n\t\t\t\t\t\telse { // element is not alive, add 1 to its total\n\t\t\t\t\t\t\t\t// number of neighbors\n\t\t\t\t\t\t\tInteger currentNeighbors = (Integer) neighbors\n\t\t\t\t\t\t\t\t\t.elementAt(row + i, col + j);\n\t\t\t\t\t\t\tneighbors.setValue(row + i, col + j,\n\t\t\t\t\t\t\t\t\tcurrentNeighbors + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tneighbors.setValue(row, col, numNeighbors - 1); // -1 to account\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// for counting\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// itself as a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// neighbor\n\t\t\t}\n\t\t}\n\t}",
"private void updateGrid() {\n\t\tfor (Neighbor neighbor : upsetNeighbors) {\n\t\t\tClear vacated_cell = new Clear(neighbor.getCoordsX(), neighbor.getCoordsY());\n\t\t\tgrid.setGridIndex(vacated_cell, vacated_cell.getCoordsX(), vacated_cell.getCoordsY());\n\t\t\tCell new_location = availableSpaces.get((int) (Math.random() * (availableSpaces.size() - 1)));\n\t\t\tint new_x = new_location.getCoordsX();\n\t\t\tint new_y = new_location.getCoordsY();\n\t\t\tif (neighbor.getClass().equals(Group1.class))\n\t\t\t\tgrid.setGridIndex(new Group1(new_x, new_y, percentSimilar), new_x, new_y);\n\t\t\telse\n\t\t\t\tgrid.setGridIndex(new Group2(new_x, new_y, percentSimilar), new_x, new_y);\n\t\t\tavailableSpaces.remove(new_location);\n\t\t\tavailableSpaces.add(vacated_cell);\n\t\t}\n\t}",
"public void findNeighbours(ArrayList<int[]> visited , Grid curMap) {\r\n\t\tArrayList<int[]> visitd = visited;\r\n\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS cur pos:\" +Arrays.toString(nodePos));\r\n\t\t//for(int j=0; j<visitd.size();j++) {\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +Arrays.toString(visited.get(j)));\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS getvstd\" +Arrays.toString(visited.get(j)));\r\n\t\t//}\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +visited);\r\n\t\tCell left=curMap.getCell(0, 0);\r\n\t\tCell right=curMap.getCell(0, 0);\r\n\t\tCell upper=curMap.getCell(0, 0);\r\n\t\tCell down=curMap.getCell(0, 0);\r\n\t\t//the getStart() method returns x,y coordinates representing the point in x,y axes\r\n\t\t//so if either of [0] or [1] coordinate is zero then we have one less neighbor\r\n\t\tif (nodePos[1]> 0) {\r\n\t\t\tupper=curMap.getCell(nodePos[0], nodePos[1]-1) ; \r\n\t\t}\r\n\t\tif (nodePos[1] < M-1) {\r\n\t\t\tdown=curMap.getCell(nodePos[0], nodePos[1]+1);\r\n\t\t}\r\n\t\tif (nodePos[0] > 0) {\r\n\t\t\tleft=curMap.getCell(nodePos[0] - 1, nodePos[1]);\r\n\t\t}\r\n\t\tif (nodePos[0] < N-1) {\r\n\t\t\tright=curMap.getCell(nodePos[0]+1, nodePos[1]);\r\n\t\t}\r\n\t\t//for(int i=0;i<visitd.size();i++) {\r\n\t\t\t//System.out.println(Arrays.toString(visitd.get(i)));\t\r\n\t\t//}\r\n\t\t\r\n\t\t//check if the neighbor is wall,if its not add to the list\r\n\t\tif(nodePos[1]>0 && !upper.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] - 1}))) {\r\n\t\t\t//Node e=new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1},curMap);\r\n\t\t\t//if(e.getVisited()!=true) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1}, curMap)); // father of the new nodes is this node\r\n\t\t\t//}\r\n\t\t}\r\n\t\tif(nodePos[1]<M-1 &&!down.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] + 1}))){\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] + 1}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]>0 && !left.isWall() && (!exists(visitd,new int[] {nodePos[0] - 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] - 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]<N-1 && !right.isWall() && (!exists(visitd,new int[] {nodePos[0] + 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] + 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\t//for(int i=0; i<NodeChildren.size();i++) {\r\n\t\t\t//System.out.println(\"Paidia sth find:\" + Arrays.toString(NodeChildren.get(i).getNodePos()));\r\n\t\t//}\r\n\t\t\t\t\t\t\r\n\t}",
"private Cell[][] updateCellLocation(Cell[][] grid) {\n\n //Iterate through the grid\n for (int x = 0; x < this.width; x++) {\n for (int y = 0; y < this.height; y++) {\n grid[x][y].setXCord(x); //Set the new X co-ordinate\n grid[x][y].setYCord(y); //Set the new Y co-ordinate\n }\n }\n\n return grid;\n }",
"public Cell()\n\t{\n\t\tthis.alive = 0;\n\t\tthis.neighbors = 0;\n\t}",
"public void checkNeighbours(int row, int column)\r\n {\r\n int counter = 0;\r\n //*************************************************\r\n //Following code was adapted from Harry Tang 2015-04-27\r\n for (int columnNeighbours = column - 1; columnNeighbours <= column + 1; columnNeighbours ++)\r\n {\r\n for (int rowNeighbours = row - 1; rowNeighbours <= row + 1; rowNeighbours ++)\r\n {\r\n try \r\n {\r\n if (cellGrid[columnNeighbours][rowNeighbours].isAlive()\r\n && cellGrid[columnNeighbours][rowNeighbours] != cellGrid[column][row])\r\n {\r\n counter ++;\r\n }\r\n }\r\n catch (IndexOutOfBoundsException e)\r\n {\r\n // do nothing\r\n }\r\n } // end of for (int y = indexY - 1; y == indexY; y++)\r\n } // end of for (int x = indexX - 1; x == indexX; x++)\r\n //*************************************************\r\n \r\n decisionOnCellState(counter, row, column);\r\n }",
"protected void setNeighbours(Cell[] neighbours) throws IllegalArgumentEvent {\r\n\t\tif(neighbours.length != 6){\r\n\t\t\tthrow new IllegalArgumentEvent(\"incorrect number of neighbours\");\r\n\t\t}\r\n\t\tthis.neighbours = neighbours;\r\n\t}",
"private LinkedList<int[]> neighborFinder(){\n LinkedList<int[]> neighborhood= new LinkedList<>();\n int[] curr_loc = blankFinder();\n int x = curr_loc[0];\n int y = curr_loc[1];\n if(x >0){\n neighborhood.add(new int[]{x-1, y});\n }\n if(x < n-1){\n neighborhood.add(new int[]{x+1, y});\n }\n if(y > 0){\n neighborhood.add(new int[]{x, y-1});\n }\n if(y < n-1) {\n neighborhood.add(new int[]{x, y+1});\n }\n\n\n return neighborhood;\n }",
"public void putCellInGoodPlace(JmtCell cell, int x, int y, boolean flag) {\n \t\tif (sp > 9) {\r\n \t\t\tsp = 0;\r\n \t\t}\r\n \t\tint oldPointX = 0;\r\n \t\tint oldPointY = 0;\r\n \t\tboolean inGroup = false;\r\n \t\t// Il flag stato creato per capire sapere se e' una block regione e\r\n \t\t// quindi utilizzare\r\n \t\t// il vecchio metodo oppure se e' una cella quindi flag=true allora uso\r\n \t\t// il nuovo\r\n \t\t// System.out.println(\"------------PUT CELL IN GOOD PLACE\r\n \t\t// ----------------------\");\r\n \r\n \t\tif (flag) {\r\n \t\t\tRectangle bounds = GraphConstants.getBounds(cell.getAttributes()).getBounds();\r\n \t\t\tRectangle bounds2 = new Rectangle((int) bounds.getX() - 20, (int) bounds.getY(), (int) bounds.getWidth() + 38, (int) bounds.getHeight());\r\n \r\n \t\t\toldPointX = x;\r\n \t\t\toldPointY = y;\r\n \t\t\t// ---------inzio\r\n \t\t\t// Object[] cells=(graph).getDescendants(graph.getRoots());\r\n \t\t\t// for(int j=0;j<cells.length;j++){\r\n \t\t\t// if((cells[j] instanceof JmtCell) &&(cells[j]!=cell)){\r\n \t\t\t// Rectangle\r\n \t\t\t// boundcell=GraphConstants.getBounds(((JmtCell)cells[j]).getAttributes()).getBounds();\r\n \t\t\t// if(boundcell.intersects(bounds2)){\r\n \t\t\t// System.out.println(\"true\");\r\n \t\t\t// }\r\n \t\t\t// }\r\n \t\t\t// }\r\n \r\n \t\t\t// ---------------fine\r\n \t\t\t// check if a cell isInGroup\r\n \t\t\tif (isInGroup(cell)) {\r\n \r\n \t\t\t\tinGroup = true;\r\n \t\t\t}\r\n \r\n \t\t\t// Avoids negative starting point\r\n \t\t\tif (bounds.getX() < 20) {\r\n \t\t\t\tbounds.setLocation(20, (int) bounds.getY());\r\n \t\t\t}\r\n \t\t\tif (bounds.getY() < 0) {\r\n \t\t\t\tbounds.setLocation((int) bounds.getX(), 0);\r\n \t\t\t}\r\n \r\n \t\t\t// Qua ho le celle e archi che intersecano la mia cella\r\n \t\t\t// selezionata..bounds (molto efficente dal punto di vista della\r\n \t\t\t// pesantezza)\r\n \t\t\tObject[] overlapping = graph.getDescendants(graph.getRoots(bounds2));\r\n \r\n \t\t\tPoint2D zero = new Point(20, 0);\r\n \t\t\tresetOverLapping = 0;\r\n \t\t\twhile (overlapping.length > 0) {\r\n \r\n \t\t\t\t// Moves bounds until it doesn't overlap with anything\r\n \t\t\t\tPoint2D last = (Point2D) zero.clone();\r\n \t\t\t\tfor (int j = 0; j < overlapping.length; j++) {\r\n \r\n \t\t\t\t\tresetOverLapping++;\r\n \t\t\t\t\t// resetOverLapping is inserted for an anormall behavior of\r\n \t\t\t\t\t// Tool\r\n \t\t\t\t\t// in fact, if you disable this variable you can see that\r\n \t\t\t\t\t// the tools\r\n \t\t\t\t\t// stop and \"for cycle\" will be repeated infinite times\r\n \t\t\t\t\tif (resetOverLapping > 50) {\r\n \t\t\t\t\t\tbounds.setLocation(new Point(oldPointX, oldPointY));\r\n \t\t\t\t\t\tGraphConstants.setBounds(cell.getAttributes(), bounds);\r\n \t\t\t\t\t\tresetOverLapping = 0;\r\n \t\t\t\t\t\treturn;\r\n \t\t\t\t\t}\r\n \t\t\t\t\t// System.out.println(\"---flag in for---\");\r\n \t\t\t\t\t// if(overlapping[j] instanceof JmtEdge\r\n \t\t\t\t\t// &&((JmtEdge)overlapping[j]).intersects((EdgeView)(graph.getGraphLayoutCache()).getMapping(overlapping[j],\r\n \t\t\t\t\t// false),\r\n \t\t\t\t\t// GraphConstants.getBounds(((JmtCell)cell).getAttributes())))\r\n \t\t\t\t\t// System.out.println(\"Intersect TRUE\");\r\n \r\n \t\t\t\t\t// Puts last to last corner of overlapping cells\r\n \t\t\t\t\tif (overlapping[j] instanceof JmtCell && overlapping[j] != cell && inGroup) {\r\n \t\t\t\t\t\tRectangle2D b2 = GraphConstants.getBounds(((JmtCell) overlapping[j]).getAttributes());\r\n \t\t\t\t\t\tif (b2.intersects(bounds)) {\r\n \t\t\t\t\t\t\tif (b2.getMaxX() > last.getX()) {\r\n \t\t\t\t\t\t\t\tlast.setLocation(b2.getMaxX(), last.getY());\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif (b2.getMaxY() > last.getY()) {\r\n \t\t\t\t\t\t\t\tlast.setLocation(last.getX(), b2.getMaxY());\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tlast.setLocation(new Point((int) (last.getX() + .5), (int) (last.getY() + .5)));\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t\tint numberOfChild = cell.getChildCount();\r\n \r\n \t\t\t\t\tif (!inGroup && overlapping[j] instanceof JmtCell && overlapping[j] != cell) {\r\n \r\n \t\t\t\t\t\tRectangle2D b = GraphConstants.getBounds(((JmtCell) overlapping[j]).getAttributes());\r\n \t\t\t\t\t\t// Consider only rectangles that intersects with given\r\n \t\t\t\t\t\t// bound\r\n \t\t\t\t\t\tif (b.intersects(bounds2)) {\r\n \t\t\t\t\t\t\tlast.setLocation(new Point(oldPointX, oldPointY));\r\n \r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\t// inizio a controllare se l intersezione e' un lato\r\n \t\t\t\t\tif (overlapping[j] instanceof JmtEdge\r\n \t\t\t\t\t\t\t&& overlapping[j] != cell\r\n \t\t\t\t\t\t\t&& !isInGroup(overlapping[j])\r\n \t\t\t\t\t\t\t&& ((JmtEdge) overlapping[j]).intersects((EdgeView) (graph.getGraphLayoutCache()).getMapping(overlapping[j], false),\r\n \t\t\t\t\t\t\t\t\tGraphConstants.getBounds(cell.getAttributes())) && ((JmtEdge) overlapping[j]).getSource() != cell.getChildAt(0)) {\r\n \t\t\t\t\t\tboolean access = false;\r\n \t\t\t\t\t\tboolean access2 = false;\r\n \r\n \t\t\t\t\t\t// Nonostatne SourceCell e SinkCell estendano JMTCell\r\n \t\t\t\t\t\t// avevo problemi di nullPointerException per questo\r\n \t\t\t\t\t\t// verifico di che\r\n \t\t\t\t\t\t// tipo sono\r\n \r\n \t\t\t\t\t\tif (cell instanceof SourceCell\r\n \t\t\t\t\t\t\t\t&& ((JmtEdge) overlapping[j]).intersects((EdgeView) (graph.getGraphLayoutCache()).getMapping(overlapping[j], false),\r\n \t\t\t\t\t\t\t\t\t\tGraphConstants.getBounds(((SourceCell) cell).getAttributes()))) {\r\n \t\t\t\t\t\t\tif (((JmtEdge) overlapping[j]).getSource() != cell.getChildAt(0)) {\r\n \t\t\t\t\t\t\t\t// _______INIZIO_____\r\n \t\t\t\t\t\t\t\tArrayList<Point2D> intersectionPoints = ((JmtEdge) overlapping[j]).getIntersectionVertexPoint();\r\n \t\t\t\t\t\t\t\tPoint2D tmp = (intersectionPoints.get(0));\r\n \t\t\t\t\t\t\t\tRectangle2D cellBound = GraphConstants.getBounds(((SourceCell) cell).getAttributes());\r\n \t\t\t\t\t\t\t\tdouble vertexMaxX = (int) cellBound.getMaxX();\r\n \t\t\t\t\t\t\t\tdouble vertexMaxY = (int) cellBound.getMaxY();\r\n \t\t\t\t\t\t\t\tdouble vertexHeight = (int) cellBound.getHeight();\r\n \t\t\t\t\t\t\t\tdouble vertexWidth = (int) cellBound.getWidth();\r\n \t\t\t\t\t\t\t\tboolean upperSideIntersaction = ((JmtEdge) overlapping[j]).getUpperSideIntersaction();\r\n \t\t\t\t\t\t\t\tboolean lowerSideIntersaction = ((JmtEdge) overlapping[j]).getLowerSideIntersaction();\r\n \t\t\t\t\t\t\t\tboolean leftSideIntersaction = ((JmtEdge) overlapping[j]).getLeftSideIntersaction();\r\n \t\t\t\t\t\t\t\tboolean rightSideIntersaction = ((JmtEdge) overlapping[j]).getRightSideIntersaction();\r\n \t\t\t\t\t\t\t\tif (upperSideIntersaction && lowerSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\tint valoreIntermedio = ((int) vertexMaxX - (int) (vertexWidth / 2));\r\n \t\t\t\t\t\t\t\t\tif ((int) tmp.getX() < valoreIntermedio) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, true, false);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t} else {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, false, true);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t} else if (leftSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\tint valoreIntermedio = ((int) vertexMaxY - (int) (vertexHeight / 2));\r\n \t\t\t\t\t\t\t\t\tif ((int) tmp.getY() < valoreIntermedio) {\r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, true, false, false);\r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition2 = new Point(newPosition.x, newPosition.y + sp);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition2);\r\n \t\t\t\t\t\t\t\t\t\tsp = sp + 2;\r\n \t\t\t\t\t\t\t\t\t\t// cellBounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t// GraphConstants.setBounds(((SinkCell)cell).getAttributes(),\r\n \t\t\t\t\t\t\t\t\t\t// cellBounds);\r\n \t\t\t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\ttrue, false, false, false);\r\n \r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t} else if (upperSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp, false,\r\n \t\t\t\t\t\t\t\t\t\t\tfalse, false, true);\r\n \t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \r\n \t\t\t\t\t\t\t\t} else if (upperSideIntersaction && leftSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp, false,\r\n \t\t\t\t\t\t\t\t\t\t\tfalse, true, false);\r\n \t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t} else if (lowerSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\tPoint2D tmp1 = (intersectionPoints.get(1));\r\n \t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp1, false,\r\n \t\t\t\t\t\t\t\t\t\t\tfalse, false, true);\r\n \t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t} else if (lowerSideIntersaction && leftSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp, false,\r\n \t\t\t\t\t\t\t\t\t\t\tfalse, true, false);\r\n \t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\taccess = true;\r\n \t\t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tif (cell instanceof SinkCell) {\r\n \r\n \t\t\t\t\t\t\tif (((JmtEdge) overlapping[j]).getTarget() != cell.getChildAt(0)) {\r\n \r\n \t\t\t\t\t\t\t\tif (((JmtEdge) overlapping[j]).intersects((EdgeView) (graph.getGraphLayoutCache()).getMapping(overlapping[j], false),\r\n \t\t\t\t\t\t\t\t\t\tGraphConstants.getBounds(((SinkCell) cell).getAttributes()))) {\r\n \r\n \t\t\t\t\t\t\t\t\tArrayList<Point2D> intersectionPoints = ((JmtEdge) overlapping[j]).getIntersectionVertexPoint();\r\n \t\t\t\t\t\t\t\t\tPoint2D tmp = (intersectionPoints.get(0));\r\n \t\t\t\t\t\t\t\t\tRectangle2D cellBound = GraphConstants.getBounds(((SinkCell) cell).getAttributes());\r\n \t\t\t\t\t\t\t\t\tdouble vertexMaxX = (int) cellBound.getMaxX();\r\n \t\t\t\t\t\t\t\t\tdouble vertexMaxY = (int) cellBound.getMaxY();\r\n \t\t\t\t\t\t\t\t\tdouble vertexHeight = (int) cellBound.getHeight();\r\n \t\t\t\t\t\t\t\t\tdouble vertexWidth = (int) cellBound.getWidth();\r\n \t\t\t\t\t\t\t\t\tboolean upperSideIntersaction = ((JmtEdge) overlapping[j]).getUpperSideIntersaction();\r\n \t\t\t\t\t\t\t\t\tboolean lowerSideIntersaction = ((JmtEdge) overlapping[j]).getLowerSideIntersaction();\r\n \t\t\t\t\t\t\t\t\tboolean leftSideIntersaction = ((JmtEdge) overlapping[j]).getLeftSideIntersaction();\r\n \t\t\t\t\t\t\t\t\tboolean rightSideIntersaction = ((JmtEdge) overlapping[j]).getRightSideIntersaction();\r\n \t\t\t\t\t\t\t\t\tif (upperSideIntersaction && lowerSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tint valoreIntermedio = ((int) vertexMaxX - (int) (vertexWidth / 2));\r\n \t\t\t\t\t\t\t\t\t\tif ((int) tmp.getX() < valoreIntermedio) {\r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\tfalse, false, true, false);\r\n \t\t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t} else {\r\n \r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\tfalse, false, false, true);\r\n \t\t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\t} else if (leftSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tint valoreIntermedio = ((int) vertexMaxY - (int) (vertexHeight / 2));\r\n \t\t\t\t\t\t\t\t\t\tif ((int) tmp.getY() < valoreIntermedio) {\r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\tfalse, true, false, false);\r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition2 = new Point(newPosition.x, newPosition.y + sp);\r\n \t\t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition2);\r\n \t\t\t\t\t\t\t\t\t\t\tsp = sp + 3;\r\n \t\t\t\t\t\t\t\t\t\t\t// bounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\ttrue, false, false, false);\r\n \r\n \t\t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\t} else if (upperSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, false, true);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \r\n \t\t\t\t\t\t\t\t\t} else if (upperSideIntersaction && leftSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, true, false);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t} else if (lowerSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint2D tmp1 = (intersectionPoints.get(1));\r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp1,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, false, true);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t} else if (lowerSideIntersaction && leftSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, true, false);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t// GraphConstants.setBounds(((SinkCell)cell).getAttributes(),\r\n \t\t\t\t\t\t\t\t\t\t// cellBounds);\r\n \t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\taccess2 = true;\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tif (!isInGroup(overlapping[j]) && !access && !access2 && overlapping[j] instanceof JmtEdge) {\r\n \t\t\t\t\t\t\tif ((numberOfChild == 2)\r\n \t\t\t\t\t\t\t\t\t&& ((JmtEdge) overlapping[j]).getSource() != cell.getChildAt(0)\r\n \t\t\t\t\t\t\t\t\t&& ((JmtEdge) overlapping[j]).getSource() != cell.getChildAt(1)\r\n \t\t\t\t\t\t\t\t\t&& ((JmtEdge) overlapping[j]).getTarget() != cell.getChildAt(0)\r\n \t\t\t\t\t\t\t\t\t&& ((JmtEdge) overlapping[j]).getTarget() != cell.getChildAt(1)\r\n \t\t\t\t\t\t\t\t\t&& ((JmtEdge) overlapping[j]).intersects((EdgeView) (graph.getGraphLayoutCache()).getMapping(overlapping[j],\r\n \t\t\t\t\t\t\t\t\t\t\tfalse), GraphConstants.getBounds(cell.getAttributes()))) {\r\n \r\n \t\t\t\t\t\t\t\taccess = access2 = false;\r\n \r\n \t\t\t\t\t\t\t\tArrayList<Point2D> intersectionPoints = ((JmtEdge) overlapping[j]).getIntersectionVertexPoint();\r\n \t\t\t\t\t\t\t\tif ((intersectionPoints == null) || intersectionPoints.size() <= 0) {\r\n \t\t\t\t\t\t\t\t\tbounds.setLocation(new Point(oldPointX, oldPointY));\r\n \t\t\t\t\t\t\t\t\tGraphConstants.setBounds(cell.getAttributes(), bounds);\r\n \t\t\t\t\t\t\t\t\tresetOverLapping = 0;\r\n \t\t\t\t\t\t\t\t\treturn;\r\n \t\t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\t\tPoint2D tmp = (intersectionPoints.get(0));\r\n \r\n \t\t\t\t\t\t\t\t\tRectangle2D cellBound = GraphConstants.getBounds(cell.getAttributes());\r\n \t\t\t\t\t\t\t\t\tdouble vertexMaxX = (int) cellBound.getMaxX();\r\n \t\t\t\t\t\t\t\t\tdouble vertexMaxY = (int) cellBound.getMaxY();\r\n \t\t\t\t\t\t\t\t\tdouble vertexHeight = (int) cellBound.getHeight();\r\n \t\t\t\t\t\t\t\t\tdouble vertexWidth = (int) cellBound.getWidth();\r\n \t\t\t\t\t\t\t\t\tboolean upperSideIntersaction = ((JmtEdge) overlapping[j]).getUpperSideIntersaction();\r\n \t\t\t\t\t\t\t\t\tboolean lowerSideIntersaction = ((JmtEdge) overlapping[j]).getLowerSideIntersaction();\r\n \t\t\t\t\t\t\t\t\tboolean leftSideIntersaction = ((JmtEdge) overlapping[j]).getLeftSideIntersaction();\r\n \t\t\t\t\t\t\t\t\tboolean rightSideIntersaction = ((JmtEdge) overlapping[j]).getRightSideIntersaction();\r\n \t\t\t\t\t\t\t\t\tif (upperSideIntersaction && lowerSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tint valoreIntermedio = ((int) vertexMaxX - (int) (vertexWidth / 2));\r\n \t\t\t\t\t\t\t\t\t\tif ((int) tmp.getX() < valoreIntermedio) {\r\n \r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\tfalse, false, true, false);\r\n \t\t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t} else {\r\n \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\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\tfalse, false, false, true);\r\n \t\t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\t} else if (leftSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tint valoreIntermedio = ((int) vertexMaxY - (int) (vertexHeight / 2));\r\n \t\t\t\t\t\t\t\t\t\tif ((int) tmp.getY() < valoreIntermedio) {\r\n \r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\tfalse, true, false, false);\r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition2 = new Point(newPosition.x, newPosition.y + sp);\r\n \t\t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition2);\r\n \t\t\t\t\t\t\t\t\t\t\tsp = sp + 3;\r\n \t\t\t\t\t\t\t\t\t\t\t// bounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t\t// GraphConstants.setBounds(((SinkCell)cell).getAttributes(),\r\n \t\t\t\t\t\t\t\t\t\t\t// cellBounds);\r\n \t\t\t\t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\ttrue, false, false, false);\r\n \t\t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\t} else if (upperSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, false, true);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t} else if (upperSideIntersaction && leftSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, true, false);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t} else if (lowerSideIntersaction && rightSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint2D tmp1 = (intersectionPoints.get(1));\r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp1,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, false, true);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\r\n \t\t\t\t\t\t\t\t\t} else if (lowerSideIntersaction && leftSideIntersaction) {\r\n \r\n \t\t\t\t\t\t\t\t\t\tPoint newPosition = (this.overlapping).findFreePosition(((JmtEdge) overlapping[j]), cell, cellBound, tmp,\r\n \t\t\t\t\t\t\t\t\t\t\t\tfalse, false, true, false);\r\n \t\t\t\t\t\t\t\t\t\tbounds.setLocation(newPosition);\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} // end if of edge\r\n \t\t\t\t}\r\n \r\n \t\t\t\tif (last.equals(zero)) {\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \r\n \t\t\t\tbounds.setLocation(new Point((int) (last.getX()), (int) (last.getY())));\r\n \r\n \t\t\t\toverlapping = graph.getDescendants(graph.getRoots(bounds));\r\n \t\t\t}\r\n \r\n \t\t\t// Puts this cell in found position\r\n \t\t\tGraphConstants.setBounds(cell.getAttributes(), bounds);\r\n \r\n \t\t} else {\r\n \r\n \t\t\tRectangle bounds = GraphConstants.getBounds(cell.getAttributes()).getBounds();\r\n \t\t\tif (isInGroup(cell)) {\r\n \t\t\t\tinGroup = true;\r\n \t\t\t}\r\n \r\n \t\t\t// Avoids negative starting point\r\n \t\t\tif (bounds.getX() < 20) {\r\n \t\t\t\tbounds.setLocation(20, (int) bounds.getY());\r\n \t\t\t}\r\n \t\t\tif (bounds.getY() < 0) {\r\n \t\t\t\tbounds.setLocation((int) bounds.getX(), 0);\r\n \t\t\t}\r\n \t\t\tObject[] overlapping = graph.getDescendants(graph.getRoots(bounds));\r\n \r\n \t\t\tif (overlapping == null) {\r\n \r\n \t\t\t\treturn;\r\n \t\t\t}\r\n \r\n \t\t\tPoint2D zero = new Point(20, 0);\r\n \t\t\twhile (overlapping.length > 0) {\r\n \t\t\t\tPoint2D last = (Point2D) zero.clone();\r\n \t\t\t\tfor (Object element : overlapping) {\r\n \t\t\t\t\tif (element instanceof JmtCell && element != cell && inGroup) {\r\n \t\t\t\t\t\tRectangle2D b2 = GraphConstants.getBounds(((JmtCell) element).getAttributes());\r\n \t\t\t\t\t\tif (b2.intersects(bounds)) {\r\n \t\t\t\t\t\t\tif (b2.getMaxX() > last.getX()) {\r\n \t\t\t\t\t\t\t\tlast.setLocation(b2.getMaxX(), last.getY());\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif (b2.getMaxY() > last.getY()) {\r\n \t\t\t\t\t\t\t\tlast.setLocation(last.getX(), b2.getMaxY());\r\n \t\t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t\t\tlast.setLocation(new Point((int) (last.getX() + .5), (int) (last.getY() + .5)));\r\n \t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t}\r\n \t\t\t\t\tif (!inGroup && element instanceof JmtCell && element != cell) {\r\n \t\t\t\t\t\tlast.setLocation(new Point((int) (last.getX() + .5), (int) (last.getY() + .5)));\r\n \t\t\t\t\t}\r\n \t\t\t\t\tint numberOfChild = cell.getChildCount();\r\n \t\t\t\t\tif (isInGroup(element) && element instanceof JmtEdge) {\r\n \t\t\t\t\t\tif ((numberOfChild == 2)\r\n \t\t\t\t\t\t\t\t&& ((JmtEdge) element).getSource() != cell.getChildAt(0)\r\n \t\t\t\t\t\t\t\t&& ((JmtEdge) element).getSource() != cell.getChildAt(1)\r\n \t\t\t\t\t\t\t\t&& ((JmtEdge) element).getTarget() != cell.getChildAt(0)\r\n \t\t\t\t\t\t\t\t&& ((JmtEdge) element).getTarget() != cell.getChildAt(1)\r\n \t\t\t\t\t\t\t\t&& ((JmtEdge) element).intersects((EdgeView) (graph.getGraphLayoutCache()).getMapping(element, false), GraphConstants\r\n \t\t\t\t\t\t\t\t\t\t.getBounds(cell.getAttributes()))) {\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tRectangle2D b2 = GraphConstants.getBounds(((JmtEdge) element).getAttributes());\r\n \t\t\t\t\t\tif (b2.intersects(bounds)) {\r\n \t\t\t\t\t\t\t// ___\r\n \t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t\tlast.setLocation(new Point((int) (last.getX() + .5), (int) (last.getY() + .5)));\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t}\r\n \t\t\t\tif (last.equals(zero)) {\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t\tbounds.setLocation(new Point((int) (last.getX()), (int) (last.getY())));\r\n \t\t\t\toverlapping = graph.getDescendants(graph.getRoots(bounds));\r\n \t\t\t}\r\n \t\t\tGraphConstants.setBounds(cell.getAttributes(), bounds);\r\n \r\n \t\t}\r\n \r\n \t}",
"public void addNeighbours(int i, int j) {\r\n\t\tint fromNode;// origin node of the connection\r\n\t\tint toNode;// destination node of the connection\r\n\t\tArrayList<Connection> connections = new ArrayList<Connection>();// will hold the connections\t\r\n\t\t\tfromNode = i * WIDTH_TILES + j;// calculates the from node by the coordinates\r\n\t\t\tif (i > 0 && j > 0) {// not on left or top game border\r\n\t\t\t\ttoNode = (i-1) * WIDTH_TILES + (j-1);// calculates to node of connection from coords\r\n\t\t\t\tconnections.add(new Connection(fromNode, toNode, 0));// add new connection\r\n\t\t\t}// if (border)\r\n\t\t\tif (i > 0) {// not on left game border\r\n\t\t\t\ttoNode = (i-1) * WIDTH_TILES + (j);// calculates to node of connection from coords\r\n\t\t\t\tconnections.add(new Connection(fromNode, toNode, 0));// add new connection\r\n\t\t\t}// if (border)\r\n\t\t\tif (i > 0 && j < (WIDTH_TILES - 1)) {// not on left or bottom game border\r\n\t\t\t\ttoNode = (i-1) * WIDTH_TILES + (j+1);// calculates to node of connection from coords\r\n\t\t\t\tconnections.add(new Connection(fromNode, toNode, 0));// add new connection\r\n\t\t\t}// if (border)\r\n\t\t\tif (j > 0) {// not on top game border\r\n\t\t\t\ttoNode = (i) * WIDTH_TILES + (j-1);// calculates to node of connection from coords\r\n\t\t\t\tconnections.add(new Connection(fromNode, toNode, 0));// add new connection\r\n\t\t\t}// if (border)\r\n\t\t\tif (j < (WIDTH_TILES - 1)) {// not on bottom game border\r\n\t\t\t\ttoNode = (i) * WIDTH_TILES + (j+1);// calculates to node of connection from coords\r\n\t\t\t\tconnections.add(new Connection(fromNode, toNode, 0));// add new connection\r\n\t\t\t}// if (border)\r\n\t\t\tif (i < (WIDTH_TILES - 1) && j > 0) {// not on right or top game border\r\n\t\t\t\ttoNode = (i+1) * WIDTH_TILES + (j-1);// calculates to node of connection from coords\r\n\t\t\t\tconnections.add(new Connection(fromNode, toNode, 0));// add new connection\r\n\t\t\t}// if (border)\r\n\t\t\tif (i < (WIDTH_TILES - 1)) {// not on right game border\r\n\t\t\t\ttoNode = (i+1) * WIDTH_TILES + (j);// calculates to node of connection from coords\r\n\t\t\t\tconnections.add(new Connection(fromNode, toNode, 0));// add new connection\r\n\t\t\t}// if (border)\r\n\t\t\tif (i < (WIDTH_TILES - 1) && j < (WIDTH_TILES - 1)) {// not on right or bottom game border\r\n\t\t\t\ttoNode = (i+1) * WIDTH_TILES + (j+1);// calculates to node of connection from coords\r\n\t\t\t\tconnections.add(new Connection(fromNode, toNode, 0));// add new connection\r\n\t\t\t}// if (border)\r\n\t\t\tgraph.addConnections(connectionList(connections));// adds the connections for the current node to the graph\r\n\t}",
"public abstract void setCells(int x, int y, int [][] pattern);",
"public void activateCluster(){\n for (int row = 0; row < matrix.length; row++) {\n// Cell[] matrix1 = matrix[i];\n for (int col = 0; col < matrix[row].length; col++) {\n Cell cell = matrix[row][col];\n // check every if null it means there is no cell at that position\n // get fist occured cell and meet it with the next one\n // run the loop while\n // while cell.getRow < cell.bestRow && cell.getCol < cell.bestCol\n if(cell != null) {\n while (cell.getRow() <= this.cellBiggestRow && cell.getCol() <= this.cellBiggestCol) {\n\n if (cell.getCol() >= matrix[row].length) {\n if (!(cell.getRow() >= matrix.length)) {\n cell.setRow(cell.getRow() + 1);\n }\n } else {\n cell.setCol(cell.getCol() + 1);\n }\n\n // if cell.getCol + 1 < matrix[row].length && matrix[row] != null\n // get the next cell and do the fight\n }\n }\n }\n }\n\n }",
"private void fillBoardWithCells(){\n double posx = MyValues.HORIZONTAL_VALUE*0.5*MyValues.HEX_SCALE + MyValues.DIAGONAL_VALUE*MyValues.HEX_SCALE;\n double posy = 2*MyValues.DIAGONAL_VALUE*MyValues.HEX_SCALE ;\n HexCell startCell = new HexCell(0,0, this);\n startCell.changePosition(posx, posy);\n boardCells[0][0] = startCell;\n for (int i = 0; i< x-1; i++) {\n HexCell currentCell = new HexCell(i+1, 0, this);\n boardCells[i+1][0] = currentCell;\n //i mod 2 = 0: Bottom\n if (i % 2 == 0) {\n boardCells[i][0].placeHexCell(currentCell, MyValues.HEX_POSITION.BOT_RIGHT );\n } else {\n //i mod 2 =1: Top\n boardCells[i][0].placeHexCell(currentCell, MyValues.HEX_POSITION.TOP_RIGHT );\n }\n }\n for(int i = 0; i < x; i++){\n for(int j = 0; j < y-1; j++){\n HexCell currentCell = new HexCell(i, j+1, this);\n //System.out.println(Integer.toString(i) + Integer.toString(j));\n boardCells[i][j+1] = currentCell;\n boardCells[i][j].placeHexCell(currentCell, MyValues.HEX_POSITION.BOT);\n }\n }\n }",
"@Override\n\tpublic List<Cell> getSurroundingNeighbors(Cell cell, int vision) {\n\t\tList<Cell> neighbors = new ArrayList<Cell>();\n\t\tCell northCell = cell, eastCell = cell, southCell = cell, westCell = cell;\n\t\tint north, east, south, west;\n\t\tfor (int i = 1; i <= vision; i++) {\n\t\t\tnorth = getNorthCell(northCell);\n\t\t\teast = getEastCell(eastCell);\n\t\t\tsouth = getSouthCell(southCell);\n\t\t\twest = getWestCell(westCell);\n\t\t\tif (north != -1) { \n\t\t\t\tnorthCell = getCellList().get(north);\n\t\t\t\tneighbors.add(northCell); }\n\t\t\tif (east != -1) { \n\t\t\t\teastCell = getCellList().get(east);\n\t\t\t\tneighbors.add(eastCell); }\n\t\t\tif (south != -1) { \n\t\t\t\tsouthCell = getCellList().get(south);\n\t\t\t\tneighbors.add(getCellList().get(south)); }\n\t\t\tif (west != -1) { \n\t\t\t\twestCell = getCellList().get(west);\n\t\t\t\tneighbors.add(getCellList().get(west)); }\n\t\t}\n\t\treturn neighbors;\n\t}",
"public void hunt() {\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tif(cells[i].visited == false) {\n\t\t\t\t\n\t\t\t\tint currentIndex = i;\n\t\t\t\t\n\t\t\t\tArrayList<Integer> neighbors = setVisitedNeighbors(i);\n\t\t\t\tint nextIndex = getRandomVisitedNeighborIndex(neighbors);\n\t\t\t\t\t\t\t\t\n\t\t\t\tif(neighbors.size() != 0 ) {\n\t\t\t\t\tcells[currentIndex].visited = true;\n\t\t\t\t\t\n\t\t\t\t\tif(nextIndex == NOT_EXIST) {\n\t\t\t\t\t\tbreak; \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//if there is NO not visited neighbors \n\t\t\t\t\t}\n\t\t\t\t\telse if(currentIndex - nextIndex == -1) {\n\t\t\t\t\t\tcells[currentIndex].border[EAST] = NO_WALL; \t\t\t\t\t\t\t//neighbor is right \n\t\t\t\t\t\tcells[nextIndex].border[WEST] = NO_WALL;\n\t\t\t\t\t}\n\t\t\t\t\telse if(currentIndex - nextIndex == width) {\n\t\t\t\t\t\tcells[currentIndex].border[NORTH] = NO_WALL;\t\t\t\t\t\t\t//neighbor is up\n\t\t\t\t\t\tcells[nextIndex].border[SOUTH] = NO_WALL;\n\t\t\t\t\t}\n\t\t\t\t\telse if(currentIndex - nextIndex == -width) {\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tcells[currentIndex].border[SOUTH] = NO_WALL;\t\t\t\t\t\t\t//neighbor is down\n\t\t\t\t\t\tcells[nextIndex].border[NORTH] = NO_WALL;\n\t\t\t\t\t}\n\t\t\t\t\telse if(currentIndex - nextIndex == 1) {\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tcells[currentIndex].border[WEST] = NO_WALL;\t\t\t\t\t\t\t\t//neighbor is left\n\t\t\t\t\t\tcells[nextIndex].border[EAST] = NO_WALL;\n\t\t\t\t\t}\n\t\t\t\t\tkill(nextIndex);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"GameBoardVertex(GameBoardVertex neighbor){this.neighbors.add(neighbor);}",
"@Override\n\tpublic List<Cell> getImmediateNeighbors(Cell cell) {\n\t\tList<Cell> neighbors = new ArrayList<Cell>();\n\t\tint north, east, south, west;\n\t\t\n\t\tnorth = getNorthCell(cell);\n\t\teast = getEastCell(cell);\n\t\tsouth = getSouthCell(cell);\n\t\twest = getWestCell(cell);\n\t\t\n\t\tif (north != -1) { neighbors.add(getCellList().get(north)); }\n\t\tif (east != -1) { neighbors.add(getCellList().get(east)); }\n\t\tif (south != -1) { neighbors.add(getCellList().get(south)); }\n\t\tif (west != -1) { neighbors.add(getCellList().get(west)); }\n\t\t\n\t\treturn neighbors;\n\t}",
"@Override\r\n\tpublic void setCell(Integer x, Integer y, Integer value) {\n\t\tgame[x][y] = value;\r\n\t}",
"private ArrayList<Integer> setUnvisitedNeighbors(int currentIndex) {\n\t\t\n\t\tint row = currentIndex / width;\t\t\t\t\t\t\t\t\t\t\t\t//number of row\n\t\tint column = currentIndex % width;\t\t\t\t\t\t\t\t\t\t\t//number of column\n\t\t\n\t\tArrayList<Integer> neighbors = new ArrayList<Integer>();\n\t\t\n\t\tif(row != 0 && !cells[currentIndex - width].visited ) {\t\t\t\t\t\t// cell has upper neighbor\n\t\t\tint upperIndex = ((row - 1) * width) + column;\n\t\t\tneighbors.add(upperIndex);\n\t\t}\n\t\tif(row != height - 1 && !cells[currentIndex + width].visited ) {\t\t\t//cell has lower neighbor\n\t\t\tint lowerIndex = ((row + 1) * width) + column;\n\t\t\tneighbors.add(lowerIndex);\n\t\t}\n\t\tif(column != 0 && !cells[currentIndex - 1].visited) {\t\t\t\t\t\t//cell has left neighbor\n\t\t\tint leftIndex = currentIndex - 1;\n\t\t\tneighbors.add(leftIndex);\n\t\t}\n\t\tif(column != width - 1 && !cells[currentIndex + 1].visited) {\t\t\t\t//cell has right neighbor\n\t\t\tint rightIndex = currentIndex + 1;\n\t\t\tneighbors.add(rightIndex);\n\t\t}\n\t\treturn neighbors;\n\t}",
"private static boolean isCellAlive(int[][] coordinates, int row, int column) {\n\t\tboolean cellAlive = coordinates[row][column] == 1;\r\n\t\tint numberOfNeighbours = 0;\r\n\t\t//check one to the right of col\r\n\t\tif (coordinates[row].length > column + 1) {\r\n\t\t\tif (coordinates[row][column + 1] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one to the left of col\r\n\t\tif (coordinates[row].length > column - 1 && column - 1 >= 0) {\r\n\t\t\tif (coordinates[row][column - 1] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one above col\r\n\t\tif (coordinates.length > row - 1 && row - 1 >= 0) {\r\n\t\t\tif (coordinates[row - 1][column] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one below col\r\n\t\tif (coordinates.length > row + 1) {\r\n\t\t\tif (coordinates[row + 1][column] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one top left diagonal to col\r\n\t\tif (coordinates.length > row - 1 && coordinates[row].length > column - 1 && row - 1 >= 0 && column - 1 >= 0) {\r\n\t\t\tif (coordinates[row - 1][column - 1] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one top right diagonal to col\r\n\t\tif (coordinates.length > row - 1 && coordinates[row].length > column + 1 && row - 1 >= 0) {\r\n\t\t\tif (coordinates[row - 1][column + 1] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one bottom left diagonal to col\r\n\t\tif (coordinates.length > row + 1 && coordinates[row].length > column - 1 && column - 1 >= 0) {\r\n\t\t\tif (coordinates[row + 1][column - 1] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one bottom right diagonal to col\r\n\t\tif (coordinates.length > row + 1 && coordinates[row].length > column + 1) {\r\n\t\t\tif (coordinates[row + 1][column + 1] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t System.out.println(\"Number of neighbours for \" + row + \", \" + column\r\n\t\t + \" was \" + numberOfNeighbours);\r\n\t\t//if the number of neighbours was 2 or 3, the cell is alive\r\n\t\tif ((numberOfNeighbours == 2) && cellAlive) {\r\n\t\t\treturn true;\r\n\t\t} else if (numberOfNeighbours == 3) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"protected Cell[] getNeighbours() {\r\n\t\treturn this.neighbours;\r\n\t}",
"boolean isCellAlive(int x, int y);",
"public void testSetCell() {\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.UNEXPLORED, maze1.getCell(test));\n test = new Location(9, 9);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.UNEXPLORED, maze1.getCell(test));\n test = new Location(1, 0);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.WALL, maze1.getCell(test));\n test = new Location(0, 1);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.WALL, maze1.getCell(test));\n \n \n \n maze1.setCell(test, MazeCell.CURRENT_PATH);\n assertEquals(MazeCell.CURRENT_PATH, maze1.getCell(test));\n maze1.setCell(test, MazeCell.FAILED_PATH);\n assertEquals(MazeCell.FAILED_PATH, maze1.getCell(test));\n \n }",
"public void testSetCell()\r\n {\r\n board.loadBoardState(\"OOOO\",\r\n \"OOOO\",\r\n \"O+OO\",\r\n \"OOOO\");\r\n board.setCell(1, 2, MineSweeperCell.FLAGGED_MINE);\r\n assertBoard(board, \"OOOO\",\r\n \"OOOO\",\r\n \"OMOO\",\r\n \"OOOO\");\r\n }",
"public void checkCellStatus()\r\n {\r\n for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n {\r\n for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n {\r\n checkNeighbours(rows, columns);\r\n } // end of for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n } // end of for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n }",
"public Cell[] getNeighbors(Cell cell) {\n int index = 0;\n Cell neighbors[] = new Cell[4];\n //check top neighbour\n if (cell.getRow() > 0) {\n neighbors[index] = cells[cell.getRow() - 1][cell.getColumn()];\n index++;\n }\n //check left neighbor\n if (cell.getColumn() > 0) {\n neighbors[index] = cells[cell.getRow()][cell.getColumn()-1];\n index++;\n }\n //check bottom neighbor\n if (cell.getRow() < height - 1) {\n neighbors[index] = cells[cell.getRow() + 1][cell.getColumn()];\n index++;\n }\n //check right neighbor\n if (cell.getColumn() < width - 1) {\n neighbors[index] = cells[cell.getRow()][cell.getColumn()+1];\n index++;\n }\n\n //if there are only 3 neighbor cells, copy cells into smaller array\n if (index == 3) {\n Cell neighbors2[] = new Cell[3];\n for (int i = 0; i < neighbors2.length; i++) {\n neighbors2[i] = neighbors[i];\n }\n return neighbors2;\n //if there are only 2 neighbor cells, copy cells into smaller array\n } else if (index == 2) {\n Cell neighbors2[] = new Cell[2];\n for (int i = 0; i < neighbors2.length; i++) {\n neighbors2[i] = neighbors[i];\n }\n return neighbors2;\n }\n return neighbors;\n }",
"public void updateNeighborhood(){\n\t\tList<AnimalEntity> holdingCell = new ArrayList<AnimalEntity>();\n\t\t\n\t\t//add all entities to cell\n\t\tfor(int key: creatureEntities.keySet()){\n\t\t\tfor(AnimalEntity entity: creatureEntities.get(key)){\n\t\t\t\tholdingCell.add(entity);\n\t\t\t}\n\t\t}\n\t\t//clear the neighborhood\n\t\tfor(int key: creatureEntities.keySet()){\n\t\t\tcreatureEntities.get(key).clear();\n\t\t}\n\t\t//add them back\n\t\tfor(AnimalEntity entity: holdingCell){\n\t\t\taddAnimal(entity);\n\t\t}\n\t}",
"public void addToNeighbours(Tile N) {\n \r\n neighbours.add(N);\r\n }",
"public abstract boolean getCell(int x, int y);",
"private Coordinate addNeighbour(boolean locked, int x, int y) {\n\t\ttry {\n\t\t\tCoordinate ret = new Coordinate(x, y);\n\t\t\tif (locked && data[x][y])\tlockedNeighbours.add(ret);\n\t\t\tif (!locked && !data[x][y]) unlockedNeighbours.add(ret);\n\t\t\treturn ret;\n\t\t} catch (RuntimeException e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"public void setCell(Cell cell)\n {\n myCell = cell;\n }",
"public int neighborCount(int row, int col) {//these are your current positions\n\t\tint neighborCell = 0;\n\t\t//array is zero based index\n\n\t\t//down one or row down one\n\t\tif(cellAt((row + 1) % rowCount, col)) //lets say our arrayCell is arrayCell(4,4)\n\t\t\tneighborCell++;\t\t\t\t\t\t// row here is your current cell(this is where you start and put your cell) and you add + 1 \n\t\t\t\t\t\t\t\t\t\t\t\t//lets say row is 1 then it is 1+1 = 2 \n\t\t\t\t\t\t\t\t\t\t\t\t//then 2 % 4(rowCount is 4) = 2\n\t\t\t\t\t\t\t\t\t\t\t\t//then your row is 2 and column 1\n\t\t\n\t\t//row up one\n\t\tif(cellAt((row + rowCount - 1) % rowCount , col))\n\t\t\tneighborCell++;\n\n\t\t//column right or column + 1\n\t\tif(cellAt(row, (col + 1)% colCount))\n\t\t\tneighborCell++;\n\n\t\t//column left or column -1\n\t\tif(cellAt(row,(col + colCount -1)% colCount))\n\t\t\tneighborCell++;\n\n\t\t//row up one and column right one\n\t\tif(cellAt((row + rowCount - 1) % rowCount,(col + 1)% colCount ))\n\t\t\tneighborCell++;\n\n\t\t//row down one and column right \n\t\tif(cellAt((row + 1) % rowCount,(col + 1)% colCount)) \n\t\t\tneighborCell++;\n\n\t\t//row down one and column left\n\t\tif(cellAt((row + 1) % rowCount,(col + colCount -1)% colCount)) \n\t\t\tneighborCell++;\n\n\t\t//row up one and column left\n\t\tif(cellAt((row + rowCount - 1) % rowCount, (col + colCount -1)% colCount))\n\t\t\tneighborCell++;\n\n\t\treturn neighborCell;\n\n\t}",
"private Cell chooseCell(List<Cell> surroundingCells, int destinationX, int destinationY) {\n boolean diagonalChosen = false;\n\n Cell chosenCell = surroundingCells.get(0);\n int i = 0;\n\n // Mencari cell yang bisa membawa ke cell tujuan\n while (i < surroundingCells.size() && !diagonalChosen) { // Karena move diagonal bakal paling efektif, kalo bisa\n // diagonal yang dipilih yang diagonal.\n Cell currentCell = surroundingCells.get(i);\n if (between(currentCell.x, destinationX, currentWorm.position.x)\n && between(currentCell.y, destinationY, currentWorm.position.y)) {\n chosenCell = currentCell;\n if (currentCell.x != currentWorm.position.x && currentCell.y != currentWorm.position.y) {\n diagonalChosen = true;\n }\n }\n i++;\n }\n return chosenCell;\n }",
"public SubCell neighbor(Direction dir) {\n switch (dir) {\n case N:\n return new SubCell(x(), y() - 1);\n case E:\n return new SubCell(x() + 1, y());\n case S:\n return new SubCell(x(), y() + 1);\n case W:\n return new SubCell(x() - 1, y());\n default:\n return new SubCell(x(), y());\n }\n }",
"public Cell(int x, int y){\n\t\tif((x<0 || x>7) || (y<0 || y>7)){\n\t\t\tSystem.out.println(\"The provided coordinates for the cell are out of range.\");\n\t\t\treturn;\n\t\t}\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.placedPiece = null;\n\t}",
"Cell getCellAt(Coord coord);",
"Neighbors() {\n HashMap<Integer, Double> neighbors = new HashMap<>();\n }",
"public void registerCell(int xCord, int yCord, Cell cell) {\n grid[xCord][yCord] = cell;\n }",
"public List<Cell> getNeighbors() {\n return this.neighbors;\n }",
"private ArrayList<Position3D> findNeighbors(Position3D current, Maze3D myMaze,boolean [][][]VisitedCells) throws Exception {\n ArrayList<Position3D> neighbors = new ArrayList<>();\n //for each neighbor, add him into the neighbors array, if it's on the grid (maze), if it's not a corner, not the current position itself, and it's unvisited\n //iterate over all neighbors in the same depth\n for (int x = current.getRowIndex()-2; x < current.getRowIndex()+3; x=x+2) {\n for (int y = current.getColumnIndex()-2; y < current.getColumnIndex()+3 ; y=y+2) {\n if (pointOnGrid(current.getDepthIndex(),x, y, myMaze) && pointNotCorner(current ,current.getDepthIndex(), x, y)\n && pointNotMyCell(current,current.getDepthIndex(), x, y) && !(Visited(current.getDepthIndex(),x,y,VisitedCells))) {\n neighbors.add(new Position3D(current.getDepthIndex(),x, y));\n }\n }\n }\n //check the options from the other depths\n\n if (pointOnGrid(current.getDepthIndex()+2,current.getRowIndex(), current.getColumnIndex(), myMaze) && !(Visited(current.getDepthIndex()+2,current.getRowIndex(),current.getColumnIndex(),VisitedCells))){\n neighbors.add(new Position3D(current.getDepthIndex()+2,current.getRowIndex(), current.getColumnIndex()));\n }\n if (pointOnGrid(current.getDepthIndex()-2,current.getRowIndex(), current.getColumnIndex(), myMaze) && !(Visited(current.getDepthIndex()-2,current.getRowIndex(),current.getColumnIndex(),VisitedCells))){\n neighbors.add(new Position3D(current.getDepthIndex()-2,current.getRowIndex(), current.getColumnIndex()));\n }\n return neighbors;\n }",
"protected void alter_for_neighbour_switch() {\n\t\tint this_l, tother_l, ns_i, ns_j, ns_n;\n\t\t\n\t\t// Let the user know...\n\t\tSystem.out.println(\" H THIS IS IN N_SWITCH (nn comparison) mode, for structure \"+INIT_NPHASE);\n\t\tSystem.out.println(\" H en_shift = \"+EN_SHIFT);\n\t\t\n\t\t// Check that there is room at the inn:\n\t\tif( n > MAX_NNS ) {\n\t\t\tthrow( new LSSimException(LSSimException.PARAM,\n\t\t\t\"neighbour switch needs \"+n+\" neighbours in MAX_NNS!\\n\"));\n\t\t}\n\t\t\n\t\t// Make both structures the same:\n\t\tthis_l = INIT_NPHASE;\n\t\ttother_l = 1 - this_l;\n\t\tfor( ns_i = 0; ns_i < n; ns_i++ ) {\n\t\t\tlatt[tother_l][ns_i].x = latt[this_l][ns_i].x;\n\t\t\tlatt[tother_l][ns_i].y = latt[this_l][ns_i].y;\n\t\t\tlatt[tother_l][ns_i].z = latt[this_l][ns_i].z;\n\t\t\t// copy nn lists as well!\n\t\t\tns_n = 0; ns_j = nns[this_l][ns_i][ns_n];\n\t\t\twhile ( ns_j != NO_MORE_NNS ) {\n\t\t\t\tnns[tother_l][ns_i][ns_n] = nns[this_l][ns_i][ns_n];\n\t\t\t\tns_n++; ns_j = nns[this_l][ns_i][ns_n];\n\t\t\t}\n\t\t\tnns[tother_l][ns_i][ns_n] = NO_MORE_NNS;\n\t\t}\n\t\t\n\t\t// Alter the neighbour list for structure 1;\n\t\tmake_it_order_n_squared(1);\n\t}",
"public void generateAdjList(int row, int col) {\n\t\tBoardCell originCell = this.getCell(row, col);\t\t\t\t\t\t\t\t\t\t// Creates a temporary cell called originCell for convenience\n\t\tBoardCell testCell;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// another temporary cell called testCell\n\t\tif(originCell.getInitial() != 'W' && !originCell.isRoomCenter()) {\t\t\t\t\t// Checks for cells that are in rooms and are not centers\n\t\t\treturn;\n\t\t}\n\t\tif(originCell.getInitial() != 'W' && originCell.isRoomCenter()) {\t\t\t\t\t// Checks for cells that are in rooms and are centers\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tSet<BoardCell> doors = roomMap.get(originCell.getInitial()).getDoors();\t\t\t// grabs all the doors for a certain room\n\t\t\tSystem.out.println(doors.size());\n\t\t\tfor (Iterator<BoardCell> it = doors.iterator(); it.hasNext();) {\t\t\t\t// iterates through the set of doors\n\t\t\t\ttestCell = it.next();\t\t\t\t\t\t\t\t\t\t\t\t\t\t// sets test cell to be the next door in the set of doors\n\t\t\t\toriginCell.addAdj(this.getCell(testCell.getRow(),testCell.getCol()));\t\t// all doors are adjacent to the room center\n\t\t\t}\n\t\t\tif(roomMap.get(originCell.getInitial()).isSecretPassage()) {\t\t\t\t\t// determines if that room has a secret passage\n\t\t\t\tCharacter passage = roomMap.get(originCell.getInitial()).getSecretPassage();// creates a temporary char that is equal to the initial of the originCell's secret passage room\n\t\t\t\tBoardCell passageCell = roomMap.get(passage).getCenterCell();\t\t\t\t// creates a temporary cell that is equal to the center of the room \n\t\t\t\toriginCell.addAdj(this.getCell(passageCell.getRow(), passageCell.getCol()));// adds the corresponding cell from the board to the adjacency set\t\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\telse if(originCell.getInitial() == 'W' && !originCell.isDoorway()) {\t\t\t\t// checks if the originCell is a walkway but not a doorway\n\t\t\tif(row > 0) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Makes sure the cell has a cell above it to avoid null pointer exceptions\n\t\t\t\ttestCell = this.getCell(row-1, col);\t\t\t\t\t\t\t\t\t\t// initializes the test cell to the cell in that location\n\t\t\t\tif(testCell.getInitial() == 'W'){\t\t\t\t\t\t\t\t\t\t\t// Since non-door walkways can only be adjacent to walkways, if the test cell is a walkway...\n\t\t\t\t\toriginCell.addAdj(testCell);\t\t\t\t\t\t\t\t\t\t\t// add it to the adjacency set\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(col > 0) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Makes sure the cell has a cell to the left to avoid null pointer exceptions\n\t\t\t\ttestCell = this.getCell(row, col-1);\t\t\t\t\t\t\t\t\t\t// initializes the test cell to the cell in that location\n\t\t\t\tif(testCell.getInitial() == 'W'){\t\t\t\t\t\t\t\t\t\t\t// Since non-door walkways can only be adjacent to walkways, if the test cell is a walkway...\n\t\t\t\t\toriginCell.addAdj(testCell);\t\t\t\t\t\t\t\t\t\t\t// add it to the adjacency set\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(row < this.getNumRows()-1) {\t\t\t\t\t\t\t\t\t\t\t\t\t// Makes sure the cell has a cell below it to avoid null pointer exceptions\n\t\t\t\ttestCell = this.getCell(row+1, col);\t\t\t\t\t\t\t\t\t\t// initializes the test cell to the cell in that location\n\t\t\t\tif(testCell.getInitial() == 'W'){\t\t\t\t\t\t\t\t\t\t\t// Since non-door walkways can only be adjacent to walkways, if the test cell is a walkway...\n\t\t\t\t\toriginCell.addAdj(testCell);\t\t\t\t\t\t\t\t\t\t\t// add it to the adjacency set\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(col < this.getNumColumns()-1) {\t\t\t\t\t\t\t\t\t\t\t\t// Makes sure the cell has a cell to the right to avoid null pointer exceptions\n\t\t\t\ttestCell = this.getCell(row, col+1);\t\t\t\t\t\t\t\t\t\t// initializes the test cell to the cell in that location\n\t\t\t\tif(testCell.getInitial() == 'W'){\t\t\t\t\t\t\t\t\t\t\t// Since non-door walkways can only be adjacent to walkways, if the test cell is a walkway...\n\t\t\t\t\toriginCell.addAdj(testCell);\t\t\t\t\t\t\t\t\t\t\t// add it to the adjacency set\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\t\n\t\t}\n\t\telse if(originCell.getInitial() == 'W' && originCell.isDoorway()) {\t\t\t\t\t// checks to see if the cell is a doorway\n\t\t\tif(row > 0) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Makes sure the cell has a cell above it to avoid null pointer exceptions\n\t\t\t\ttestCell = this.getCell(row-1, col);\t\t\t\t\t\t\t\t\t\t// initializes the test cell to the cell in that location\n\t\t\t\tif(originCell.getDoorDirection() == DoorDirection.UP)\t\t\t\t\t\t// checks to see if the door direction is up\n\t\t\t\t\toriginCell.addAdj(roomMap.get(testCell.getInitial()).getCenterCell());\t// adds the center of the room corresponding to the character of the test cell to the adjacency list\n\t\t\t\telse if(testCell.getInitial() == 'W')\t\t\t\t\t\t\t\t\t\t// otherwise, if the test cell above is a walkway...\n\t\t\t\t\toriginCell.addAdj(testCell);\t\t\t\t\t\t\t\t\t\t\t// add it to the adjacency set\n\t\t\t}\n\t\t\tif(col > 0) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Makes sure the cell has a cell top the left to avoid null pointer exceptions\n\t\t\t\ttestCell = this.getCell(row, col-1);\t\t\t\t\t\t\t\t\t\t// initializes the test cell to the cell in that location\n\t\t\t\tif(originCell.getDoorDirection() == DoorDirection.LEFT)\t\t\t\t\t\t// checks to see if the door direction is left\n\t\t\t\t\toriginCell.addAdj(roomMap.get(testCell.getInitial()).getCenterCell());\t// adds the center of the room corresponding to the character of the test cell to the adjacency list\n\t\t\t\telse if(testCell.getInitial() == 'W')\t\t\t\t\t\t\t\t\t\t// otherwise, if the test cell above is a walkway...\n\t\t\t\t\toriginCell.addAdj(testCell);\t\t\t\t\t\t\t\t\t\t\t// add it to the adjacency set\n\t\t\t}\n\t\t\tif(row < this.getNumRows()-1) {\t\t\t\t\t\t\t\t\t\t\t\t\t// Makes sure the cell has a cell below it to avoid null pointer exceptions\n\t\t\t\ttestCell = this.getCell(row+1, col);\t\t\t\t\t\t\t\t\t\t// initializes the test cell to the cell in that location\n\t\t\t\tif(originCell.getDoorDirection() == DoorDirection.DOWN)\t\t\t\t\t\t// checks to see if the door direction is down\n\t\t\t\t\toriginCell.addAdj(roomMap.get(testCell.getInitial()).getCenterCell());\t// adds the center of the room corresponding to the character of the test cell to the adjacency list\n\t\t\t\telse if(testCell.getInitial() == 'W')\t\t\t\t\t\t\t\t\t\t// otherwise, if the test cell above is a walkway...\n\t\t\t\t\toriginCell.addAdj(testCell);\t\t\t\t\t\t\t\t\t\t\t// add it to the adjacency set\n\t\t\t}\n\t\t\tif(col < this.getNumColumns()-1) {\t\t\t\t\t\t\t\t\t\t\t\t// Makes sure the cell has a cell to the right to avoid null pointer exceptions\n\t\t\t\ttestCell = this.getCell(row, col+1);\t\t\t\t\t\t\t\t\t\t// initializes the test cell to the cell in that location\n\t\t\t\tif(originCell.getDoorDirection() == DoorDirection.RIGHT)\t\t\t\t\t// checks to see if the door direction is right\n\t\t\t\t\toriginCell.addAdj(roomMap.get(testCell.getInitial()).getCenterCell());\t// adds the center of the room corresponding to the character of the test cell to the adjacency list\n\t\t\t\telse if(testCell.getInitial() == 'W')\t\t\t\t\t\t\t\t\t\t// otherwise, if the test cell above is a walkway...\n\t\t\t\t\toriginCell.addAdj(testCell);\t\t\t\t\t\t\t\t\t\t\t// add it to the adjacency set\n\t\t\t}\n\t\t\treturn;\t\n\t\t}\n\t\treturn;\n\t}",
"private GoLNeighborhood getNeighborhood(int x, int y) {\n\n \tGoLCell[][] tempArray = new GoLCell[3][3];\n\n \ttempArray[0][0] = ((x>0)&&(y>0))?myGoLCell[x-1][y-1]:(new GoLCell(false));\n \ttempArray[1][0] = (y>0)?myGoLCell[x][y-1]:(new GoLCell(false));\n \ttempArray[2][0] = ((x<19)&&(y>0))?myGoLCell[x+1][y-1]:(new GoLCell(false));\n \ttempArray[0][1] = ((x>0))?myGoLCell[x-1][y]:(new GoLCell(false));\n \ttempArray[1][1] = myGoLCell[x][y];\n \ttempArray[2][1] = ((x<19))?myGoLCell[x+1][y]:(new GoLCell(false));\n \ttempArray[0][2] = ((x>0)&&(y<19))?myGoLCell[x-1][y+1]:(new GoLCell(false));\n \ttempArray[1][2] = (y<19)?myGoLCell[x][y+1]:(new GoLCell(false));\n \ttempArray[2][2] = ((x<19)&&(y<19))?myGoLCell[x+1][y+1]:(new GoLCell(false));\n\n \treturn new GoLNeighborhood(tempArray);\n\n }",
"public void progressCells() {\n\t\tint[][] newMatrix = new int[width][height];\n\t\t\n\t\tfor(int x = 0; x < width; x++) {\n\t\t\tfor(int y = 0; y < height; y++) {\n\t\t\t\tint neighbourCount = countLivingNeighbours(x, y);\n\t\t\t\tboolean wasAlive = cellMatrix[x][y] == 1;\n\t\t\t\t\n\t\t\t\tif(wasAlive) {\n\t\t\t\t\tnewMatrix[x][y] = neighbourCount >= deathLimit ? 1 : 0;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tnewMatrix[x][y] = neighbourCount > birthLimit ? 1 : 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcellMatrix = newMatrix;\n\t}",
"protected void deepPopulate(int firstCellX, int firstCellY)\n\t{\n\t\tremoveAll();\n\t\tvalidate();\n\t\t\n\t\tmyGrid = new GridLayout(mySizeY, mySizeX);\n\t\tmyGrid.setHgap(1);\n\t\tmyGrid.setVgap(1);\n\t\t\n\t\tsetBorder(BorderFactory.createEmptyBorder(6,6,6,6));\n\t\tsetLayout(myGrid);\n\t\t\n\t\t//First we get all cells surrounding firstCell and add them to a set, protectedCells\n\t\tSet<Point> protectedCells = new HashSet<Point>();\n\t\t\n\t\t//Define constraints on a 3x3 square to iterate through.\n\t\t//Iterated cells will be added to the protectedCells set.\n\t\t//Declaring start and end points for traversal:\n\t\tint xStart;\n\t\tif(firstCellX - 1 >= 0) xStart = firstCellX - 1; //Make sure we don't go out of bounds\n\t\telse xStart = firstCellX;\n\t\t\n\t\tint xFinish;\n\t\tif(firstCellX + 1 < getSizeX()) xFinish = firstCellX + 1;\n\t\telse xFinish = firstCellX;\n\t\t\n\t\tint yStart = firstCellY - 1;\n\t\tif(firstCellY - 1 >= 0) yStart = firstCellY - 1;\n\t\telse yStart = firstCellY;\n\t\t\n\t\tint yFinish = firstCellY + 1;\n\t\tif(firstCellY + 1 < getSizeY()) yFinish = firstCellY + 1;\n\t\telse yFinish = firstCellY;\n\t\t\n\t\tfor(int x = xStart; x <= xFinish; x++) //Traverse 3x3 square from -1,-1 to +1,+1 (relative to cell clicked)\n\t\t{\n\t\t\tfor(int y = yStart; y <= yFinish; y++)\n\t\t\t{\n\t\t\t\tprotectedCells.add(new Point(x, y));\n\t\t\t\tSystem.out.println(\"Added to protected set: \" + x + \", \" + y);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSet<Point> emptyCellsSet = new HashSet<Point>(); \n\t\t\n\t\tfor(int y = 0; y < mySizeY; y++)\t\t //Fill emptyCells with a Point for each cell available in cells2D.\n\t\t\tfor(int x = 0; x < mySizeX; x++)\t\t\t\n\t\t\t\temptyCellsSet.add(new Point(x, y));\n\t\n\t\temptyCellsSet.removeAll(protectedCells); //Removes all of the protectedCells from the emptyCells set.\n\t\t\n\t\tList<Point> emptyCellsList = new ArrayList<Point>(emptyCellsSet); //Convert sets to lists so we can iterate through them.\n\t\tList<Point> protectedCellsList = new ArrayList<Point>(protectedCells);\n\t\t\t\t\t\n\t\tfor(int i = 0; i < protectedCellsList.size(); i++)\n\t\t\tmyCells2D[protectedCellsList.get(i).y][protectedCellsList.get(i).x] \n\t\t\t\t\t= new SafeCell(this, protectedCellsList.get(i).x, protectedCellsList.get(i).y); //Protected cells are designated as SafeCells\n\t\n\t\tint pointX;\n\t\tint pointY;\n\t\t\n\t\tSystem.out.println(\"Adding mines - number of mines: \" + myNumberMines + \" Empty cells list size: \" + emptyCellsList.size());\n\t\tfor(int y = 0; y < myNumberMines; y++)\n\t\t{\n\t\t\tRandom rn = new Random();\n\t\t\t\n\t\t\tint n = emptyCellsList.size();\n\t\t\tint i = rn.nextInt() % n; //Set i to a random number between 0 and the total number of emptyCells\t\n\t\t\tif(i < 0) i = i * -1; //Make sure the number is positive to prevent stack overflow\n\t\t\t\n\t\t\tpointY = emptyCellsList.get(i).y;\n\t\t\tpointX = emptyCellsList.get(i).x;\n\t\t\t\n\t\t\tmyCells2D[pointY][pointX] = new MineCell(this, pointX, pointY); //Put a MineCell at the random empty cell we chose\n\t\t\tSystem.out.println(\"added MineCell to \" + pointX + \", \" + pointY + \" Iterator: \" + y);\n\t\t\temptyCellsList.remove(i); //Remove the cell we chose from the list of emptyCells so we don't have overlap\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Filling empty cell list of size \" + emptyCellsList.size());\n\t\tfor(int i = 0; i < emptyCellsList.size(); i++)\t\t//Fill each remaining empty cell with a SafeCell\n\t\t{\n\t\t\tpointX = emptyCellsList.get(i).x;\n\t\t\tpointY = emptyCellsList.get(i).y;\n\t\t\tmyCells2D[pointY][pointX] = new SafeCell(this, pointX, pointY);\n\t\t\tSystem.out.println(\"added SafeCell to \" + pointX + \", \" + pointY + \". Iterator: \" + i);\n\t\t} \n\t\t\n\t\tSystem.out.println(\"Adding array objects to panel\");\n\t\tfor(int y = 0; y < mySizeY; y++) //Add the components to this panel.\n\t\t\tfor(int x = 0; x < mySizeX; x++)\n\t\t\t{\n\t\t\t\tadd(myCells2D[y][x]);\t\n\t\t\t\tSystem.out.println(\"Added array cell x: \" + x + \", y: \" + y + \" object: \" + myCells2D[y][x].getClass().toString());\n\t\t\t}\n\t\t\n\t\tvalidate();\n\t}",
"public Cell containingCell() {\n return new Cell(x() / SUBCELL_COUNT, y() / SUBCELL_COUNT);\n }",
"public void setCellCandidates(int i, int j, int... vals) {\n\t\tthis.constraints[i][j].clear();\n\t\tfor (int v : vals)\n\t\t\tthis.constraints[i][j].set(v, true);\n\t}",
"public void setNeighbors(Cell n, Cell s, Cell w, Cell e) {\n setNeiNorth(n);\n setNeiSouth(s);\n setNeiWest(w);\n setNeiEast(e);\n }",
"public void InsertCell(Point2D pt, JmtCell newCell) {\r\n \t\tpt = graph.snap(pt);\r\n \t\tObject[] arg = new Object[] { newCell };\r\n \t\tgraph.getModel().insert(arg, newCell.setAttributes(pt, graph), null, null, null);\r\n \t\t// Puts new cell on back to go under blocking regions\r\n \t\tgraph.getModel().toBack(new Object[] { newCell });\r\n \t\tnewCell.resetParent();\r\n \t\tsetConnect.setEnabled(true);\r\n \t}",
"public void testSetCell()\n {\n // Test setting a cell under ideal conditions\n assertTrue(b1.getCell(0, 0) == Cell.EMPTY);\n assertTrue(b1.setCell(0, 0, Cell.RED1));\n assertTrue(b1.getCell(0, 0) == Cell.RED1 );\n\n // If a cell is out of bounds, should fail\n assertFalse(b1.setCell(-1, 0, Cell.RED1));\n assertFalse(b1.setCell(0, -1, Cell.RED1));\n assertFalse(b1.setCell(3, 0, Cell.RED1));\n assertFalse(b1.setCell(0, 3, Cell.RED1));\n\n // If a cell is already occupied, should fail\n assertFalse(b1.setCell(0, 0, Cell.RED1));\n\n // If the board is won, should fail\n assertTrue(b1.setCell(0, 1, Cell.RED1));\n assertTrue(b1.setCell(0, 2, Cell.RED1));\n assertEquals(b1.getWhoHasWon(), Cell.RED1);\n assertFalse(b1.setCell(1, 1, Cell.RED1)); // Unoccupied\n assertFalse(b1.setCell(0, 0, Cell.RED1)); // Occupied\n\n\n\n\n }",
"public void checkNeighbour() {\r\n for (int y = 0; y < table.length; y++){\r\n for (int x = 0; x < table.length; x++){\r\n rule(y, x);\r\n }\r\n }\r\n for (int i = 0; i < table.length; i++)\r\n System.arraycopy(temp_table[i], 0, table[i], 0, table.length);\r\n }",
"public void setBoardWithColor(BoardCell cell) {\r\n\t\tif(cell==null) throw new NullPointerException();\r\n\t\tfor(int row=0;row<getMaxRows();row++){\r\n\t\t\tfor(int col=0;col<getMaxCols();col++){\r\n\t\t\t\tboardcell[row][col]=cell;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public void put(int x, int y, T cell) {\n int index = convert2d(x, y);\n if (map[index] != null) {\n cells.remove((T) map[index]);\n }\n\n map[index] = cell;\n cells.put(cell, index);\n }",
"public void drawCell(int x, int y) {\n \n //Sets cell to occupied\n gameBoard[x][y] = 1;\n }",
"@Override\n public Iterable<WorldState> neighbors() {\n Queue<WorldState> neighbor = new ArrayDeque<>();\n int xDim = 0, yDim = 0;\n int[][] tiles = new int[_N][_N];\n\n for (int i = 0; i < _N; i++) {\n for (int j = 0; j < _N; j++) {\n tiles[i][j] = _tiles[i][j];\n if (_tiles[i][j] == 0) {\n xDim = i;\n yDim = j;\n }\n }\n }\n\n for (int i = 0; i < _N; i++) {\n for (int j = 0; j < _N; j++) {\n if (Math.abs(i - xDim) + Math.abs(j - yDim) == 1) {\n tiles[i][j] = _tiles[xDim][yDim];\n tiles[xDim][yDim] = _tiles[i][j];\n neighbor.add(new Board(tiles));\n // System.out.println(new Board(tiles));\n tiles[xDim][yDim] = _tiles[xDim][yDim];\n tiles[i][j] = _tiles[i][j];\n }\n }\n }\n return neighbor;\n }",
"protected boolean computeCell( int col, int row){\n boolean liveCell = getCell(col, row);\r\n\r\n // neighbours is the number of live neighbours to cell (col,row)\r\n int neighbours = countNeighbours(col, row);\r\n //System.out.println(neighbours);\r\n boolean nextCell =false;\r\n //System.out.println(neighbours);\r\n //A live cell with less than two neighbours dies (underpopulation)\r\n if (liveCell && neighbours < 2) {//A live cell with two or three neighbours lives (a balanced population)\r\n nextCell = false;\t\t\t\t//2 stays alive if alive already... see 3 below\r\n }\r\n else if(liveCell & neighbours == 2){\r\n nextCell = true;\r\n }\r\n //A live cell with with more than three neighbours dies (overcrowding)\r\n else if(neighbours > 3){\r\n nextCell = false;\r\n }\r\n //A dead cell with exactly three live neighbours comes alive\r\n // 3 live neighbours guarantees\r\n else if(neighbours == 3){\r\n nextCell = true;\r\n }\r\n return nextCell;\r\n }",
"public void generateCells() {\n\t\tfor(int x = 0; x < width; x++) {\n\t\t\tfor(int y = 0; y < height; y++) {\n\t\t\t\tboolean alive;\n\t\t\t\tif(livingYSpaceTop > y || height - livingYSpaceBottom < y || livingXSpaceLeft > x || width - livingXSpaceRight < x) {\n\t\t\t\t\talive = true;\n\t\t\t\t}\n\t\t\t\telse if(deadYSpaceTop > y || height - deadYSpaceBottom < y || deadXSpaceLeft > x || width - deadXSpaceRight < x) {\n\t\t\t\t\talive = false;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\talive = UpWardUtils.randomFloat() < chanceToStartAlive;\n\t\t\t\t}\n\t\t\t\tcellMatrix[x][y] = alive ? 1 : 0;\n\t\t\t}\n\t\t}\n\t}",
"public void changingNeighbor() {\n }",
"private void initCells()\n {\n this.minesweeperCells = new MinesweeperCell[ROWS_COLUMNS][ROWS_COLUMNS];\n int k = 0;\n mines = new ArrayList<>();\n while(k < N_MINES)\n {\n int randomRow, randomColumn;\n randomRow = (int) (Math.random() *this.minesweeperCells.length);\n randomColumn = (int) (Math.random() *this.minesweeperCells[0].length);\n Point mine = new Point(randomRow, randomColumn);\n if(!mines.contains(mine))\n {\n mines.add(mine);\n k++;\n }\n }\n // init the cells\n for(int i = 0; i < this.minesweeperCells.length; i++)\n {\n for(int j = 0; j < this.minesweeperCells[i].length; j++)\n {\n this.minesweeperCells[i][j] = new MinesweeperCell(false, true, getMineCount(i,j), i, j);\n }\n }\n this.minesweeperCustomView.setArray(this.minesweeperCells);\n }"
] | [
"0.7509784",
"0.7499493",
"0.701432",
"0.6858536",
"0.68237007",
"0.67519337",
"0.6636674",
"0.6547842",
"0.6543161",
"0.6524686",
"0.6368634",
"0.6355774",
"0.63255876",
"0.6256828",
"0.62543535",
"0.625194",
"0.6249512",
"0.6138313",
"0.6128497",
"0.61216444",
"0.61112577",
"0.61100876",
"0.6093419",
"0.60675824",
"0.6018209",
"0.60046816",
"0.5996428",
"0.5995213",
"0.59876806",
"0.59762925",
"0.5958739",
"0.5955792",
"0.5947378",
"0.59440124",
"0.5924124",
"0.59045976",
"0.59009594",
"0.58942986",
"0.588777",
"0.5883711",
"0.58697635",
"0.58458036",
"0.5830129",
"0.5828438",
"0.5821273",
"0.58014894",
"0.57955134",
"0.57898444",
"0.57824093",
"0.5780173",
"0.57716167",
"0.575458",
"0.57170343",
"0.5697709",
"0.56958455",
"0.56957096",
"0.5693674",
"0.5692241",
"0.5682907",
"0.5673935",
"0.5673039",
"0.5663401",
"0.5655747",
"0.5629637",
"0.561943",
"0.56191516",
"0.56145966",
"0.5611252",
"0.56076664",
"0.56065285",
"0.5606032",
"0.5594743",
"0.55910087",
"0.5578475",
"0.55738026",
"0.5569738",
"0.5562094",
"0.5556916",
"0.55529314",
"0.55517834",
"0.5545353",
"0.5543954",
"0.5537215",
"0.55362886",
"0.55152726",
"0.5511483",
"0.5510318",
"0.54847383",
"0.54829377",
"0.5472585",
"0.54690504",
"0.54574513",
"0.54558325",
"0.5451466",
"0.5451367",
"0.54478616",
"0.5442653",
"0.54411507",
"0.5427088",
"0.5426181",
"0.54177123"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void actionPerformed(ActionEvent ae) {
String ActionPerformed = ae.getActionCommand();
if(ActionPerformed.equals("SUBMIT"))
{
String name = t1.getText();
String usn = t2.getText();
String email = t3.getText();
String per = t4.getText();
int p=Integer.parseInt(per);
String groupp= t8.getText();
String age= t9.getText();
int ag=Integer.parseInt(age);
String fatherName = t10.getText();
String MotherName = t11.getText();
String sports = t12.getText();
try
{
Connection connection=DriverManager.getConnection("jdbc:mysql://localhost:3306/openended","root","19mar1999");
//Insert
String query1="insert into student1(name,usn,email,percenatge,gr,age,fathername,mothername,sports)"+"values(?,?,?,?,?,?,?,?,?)";
PreparedStatement ps=connection.prepareStatement(query1);
ps.setString(1, name);
ps.setString(2, usn);
ps.setString(3, email);
ps.setInt(4, p);
ps.setString(5, groupp);
ps.setInt(6, ag);
ps.setString(7, fatherName);
ps.setString(8, MotherName);
ps.setString(9, sports);
ps.execute();
}
catch(Exception e)
{
System.out.println("connection fails"+e);
}
dispose();
new mainframe(sports, sports);
}
if(ActionPerformed.equals("GETDETAILS"))
{
String name = t6.getText();
String usn = t7.getText();
try
{
Statement stmt = null;
Connection conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/openended","root","19mar1999");
stmt = conn.createStatement();
ResultSet rs = null;
stmt.execute("select * from student1 where gr='"+proctorname+"'");
rs = stmt.getResultSet();
String sname,susn,semail,sfn,smn,sgp,ssp,sspo;
int sper,sage1;
int count=0;
while(rs.next())
{
sname = rs.getString("name");
susn= rs.getString("usn");
semail= rs.getString("email");
sfn= rs.getString("fathername");
smn= rs.getString("mothername");
sgp= rs.getString("gr");
sspo= rs.getString("sports");
sage1= rs.getInt("age");
sper=rs.getInt("percenatge");
if(sname.equals(name) && susn.equals(usn))
{
count=1;
dispose();
new setpage(sname,susn,semail,sper,sfn,sage1,smn,sgp,sspo,proctorname,proctorpswd);
}
}
if(count==0)
{
JOptionPane.showMessageDialog(this, "INVALID username or password","error",JOptionPane.ERROR_MESSAGE);
}
}
catch(Exception e)
{
}
}
} | {
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void actionPerformed(ActionEvent ae) {
String ActionPerformed = ae.getActionCommand();
if(ActionPerformed.equals("BACK"))
{
dispose();
new mainframe(pna,ppwsd);
}
} | {
"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 a new instance of DroitBean | public DroitBean() {
formdroit=new ProfilMenuItem();
selectdroit=new ProfilMenuItem();
dataListdroit=new ArrayList<>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DonusturucuBean() {\n }",
"public PersonBean() {\n\t}",
"public Bean() {\n\t}",
"public ClasseBean() {\r\n }",
"public ClasseBean() {\r\n }",
"public PersonaBean() {\n domicilio = new Domicilio();\n telefono = new Telefono();\n correoElectronico = new CorreoElectronico();\n persona = new Persona();\n this.tipoOperacion = \"Alta\";\n\n }",
"public PeopleBean() {\n\n }",
"public PapelBean() {\n }",
"public SampleBean() {\n }",
"public DelZadBean() {\n }",
"public DataBean() {\r\n \r\n }",
"public CrudBean() {\n }",
"private GenericBean createTestBean(final String name, final String prename, final String dateofbirth) {\n\t\tString descr = \"<beantype name=\\\"TestBean\\\" idtype=\\\"keyprops\\\">\" + \"<property name=\\\"name\\\" key=\\\"true\\\"/>\"\n\t\t\t\t+ \"<property name=\\\"prename\\\" key=\\\"true\\\"/>\"\n\t\t\t\t+ \"<property name=\\\"dateofbirth\\\" type=\\\"date\\\" key=\\\"true\\\"/>\" + \"</beantype>\";\n\t\tGenericBean bean = null;\n\t\tTypeRapidBean testBeanType = (TypeRapidBean) RapidBeansTypeLoader.getInstance().lookupType(\"TestBean\");\n\t\tif (testBeanType == null) {\n\t\t\tbean = TestHelper.createGenericBeanInstance(descr);\n\t\t\tRapidBeansTypeLoader.getInstance().registerType(bean.getType());\n\t\t} else {\n\t\t\tbean = new GenericBean(testBeanType);\n\t\t}\n\t\tbean.setPropValue(\"name\", name);\n\t\tbean.setPropValue(\"prename\", prename);\n\t\tbean.setPropValue(\"dateofbirth\", dateofbirth);\n\t\treturn bean;\n\t}",
"public SampletypeBean createSampletypeBean()\n {\n return new SampletypeBean();\n }",
"public ProductosBean() {\r\n }",
"public BookingBean() {\n }",
"public RegistroBean() {\r\n }",
"private GenericBean createTestBean() {\n\t\treturn this.createTestBean(\"Bl�mel\", \"Martin\", \"19641014\");\n\t}",
"PlayerBean create(String name);",
"public AtributoAsientoBean() {\n }",
"public UserBean() {\n }",
"public UserBean() {\n }",
"public FacturaBean() {\n }",
"public CampingBean() {\n }",
"public JavaBeans() {\r\n\t\tsuper();\r\n\t}",
"public ClienteBean() {\n }",
"public userBean() {\r\n }",
"public ProfileProjectBean() {\n }",
"public DebtorsAgingBean() {\n }",
"public TestDataBean() {\n\t}",
"BeanPedido crearPedido(BeanCrearPedido pedido);",
"public TiposDocumentosBean(){\r\n }",
"public void create(PraiseDiary bean) {\n\t\tdao.create(bean);\n\t}",
"public ReviewBean() {\n\n }",
"public ItemmatlBean() {\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 ISeeYouBean() {\n }",
"@Override\r\n\tpublic JChangeApply createBean() {\n\t\treturn new JChangeApply();\r\n\t}",
"public ObjetosBeans() {\n this.init();\n }",
"public ProfiledApplicationBean() {}",
"@Override\n public BeanWraper createBeanWraper() {\n \treturn newBeanWraper();\n }",
"public FuncionarioBean() {\n }",
"public ClasificacionBean() {\r\n }",
"@Override\n\tpublic Object creatBean(BeanEntity beanEntity) {\n\t\treturn null;\n\t}",
"public ChatBean() {\r\n }",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public ParticipantBean() {\n }",
"public EntityPropertyBean() {}",
"public ProductoListarBean() {\r\n }",
"public AjaxBean() {\n }",
"public ProdutoDTO()\n {\n super();\n }",
"public CartBean() {\n }",
"public BubbleFactory() {\n // TODO Auto-generated constructor stub\n }",
"public ProductBeans() {\n \n services = BeanHelper.getService();\n list = services.listOfProducts();\n\n }",
"public ScopeDefinition$declareNewDefinition$beanDefinition$1(T t) {\n super(2);\n this.$instance = t;\n }",
"public IndexBeans() {\r\n }",
"SampleBean createSampleBean(Sample sample) {\n\n SampleBean newSampleBean = new SampleBean();\n\n Map<String, String> properties = sample.getProperties();\n\n newSampleBean.setId(sample.getIdentifier());\n newSampleBean.setCode(sample.getCode());\n newSampleBean.setType(sample.getSampleTypeCode());\n newSampleBean.setProperties(properties);\n newSampleBean.setParents(this.getOpenBisClient().getParentsBySearchService(sample.getCode())); \n newSampleBean\n .setChildren(this.getOpenBisClient().getFacade().listSamplesOfSample(sample.getPermId()));\n\n BeanItemContainer<DatasetBean> datasetBeans =\n new BeanItemContainer<DatasetBean>(DatasetBean.class);\n List<DataSet> datasets =\n this.getOpenBisClient().getDataSetsOfSampleByIdentifier(sample.getIdentifier());\n\n Date lastModifiedDate = new Date();\n if (datasets.size() > 0)\n lastModifiedDate = datasets.get(0).getRegistrationDate();\n\n for (DataSet dataset : datasets) {\n DatasetBean datasetBean = this.getDataset(dataset);\n datasetBean.setSample(newSampleBean);\n datasetBeans.addBean(datasetBean);\n Date date = dataset.getRegistrationDate();\n if (date.after(lastModifiedDate)) {\n lastModifiedDate.setTime(date.getTime());\n break;\n }\n }\n\n newSampleBean.setDatasets(datasetBeans);\n newSampleBean.setLastChangedDataset(lastModifiedDate);\n\n Map<String, String> typeLabels = this.getOpenBisClient().getLabelsofProperties(\n this.getOpenBisClient().getSampleTypeByString(sample.getSampleTypeCode()));\n newSampleBean.setTypeLabels(typeLabels);\n\n return newSampleBean;\n }",
"public addressBean() {\n }",
"public FleetBean generateFleet() {\n\t\tfleet = new FleetBean(new ArrayList<>());\n\t\tpointsOccupiedList.clear(); // Remise à zéro de la liste de points déjà occupés\n\t\tfor (int boatSize : fleetBlueprint) {\n\t\t\tSystem.out.println(\"Debug : Generate a boat in function generateFleet\");\n\t\t\tfleet.addBoat(generateBoat(boatSize));\n\t\t}\n\t\treturn fleet;\n\t}",
"public TreeviewBean() {\n \n }",
"public FileBean() {}",
"public PreferenceBean createPreferenceBean()\n {\n return new PreferenceBean();\n }",
"public JobBean() {\n }",
"public CalificacionBean() {\n }",
"public ShoppingCartBean(){\n super();\n }",
"public OfferBean() {\n\n }",
"Foco createFoco();",
"public ProductSearchCriteriaBean() {\n }",
"@Deprecated\n ProjectBean createProjectBean(Project project) {\n\n ProjectBean newProjectBean = new ProjectBean();\n\n List<Experiment> experiments =\n this.getOpenBisClient().getExperimentsOfProjectByIdentifier(project.getIdentifier());\n\n ProgressBar progressBar = new ProgressBar();\n progressBar.setValue(this.getOpenBisClient().computeProjectStatus(project));\n\n Date registrationDate = project.getRegistrationDetails().getRegistrationDate();\n\n newProjectBean.setId(project.getIdentifier());\n newProjectBean.setCode(project.getCode());\n String desc = project.getDescription();\n if (desc == null)\n desc = \"\";\n newProjectBean.setDescription(desc);\n newProjectBean.setRegistrationDate(registrationDate);\n newProjectBean.setProgress(progressBar);\n newProjectBean.setRegistrator(project.getRegistrationDetails().getUserId());\n newProjectBean.setContact(project.getRegistrationDetails().getUserEmail());\n\n BeanItemContainer<ExperimentBean> experimentBeans =\n new BeanItemContainer<ExperimentBean>(ExperimentBean.class);\n\n List<String> experiment_identifiers = new ArrayList<String>();\n\n for (Experiment experiment : experiments) {\n experimentBeans.addBean(this.getExperiment(experiment));\n experiment_identifiers.add(experiment.getIdentifier());\n }\n List<DataSet> datasets = (experiment_identifiers.size() > 0)\n ? getOpenBisClient().getFacade().listDataSetsForExperiments(experiment_identifiers)\n : new ArrayList<DataSet>();\n newProjectBean.setContainsData(datasets.size() != 0);\n\n newProjectBean.setExperiments(experimentBeans);\n newProjectBean.setMembers(this.getOpenBisClient().getSpaceMembers(project.getSpaceCode()));\n\n return newProjectBean;\n }",
"RoomstlogBean()\n {\n }",
"public NewJSFManagedBean() {\n }",
"public borFactoryImpl() {\n\t\tsuper();\n\t}",
"public ProduitManagedBean() {\r\n\t\tthis.produit = new Produit();\r\n//\t\tthis.categorie = new Categorie();\r\n\t}",
"protected T createNewBean() throws InstantiationException {\n try {\n return beanClass.getConstructor().newInstance();\n } catch (final InstantiationException |\n IllegalAccessException |\n IllegalArgumentException |\n InvocationTargetException |\n NoSuchMethodException |\n SecurityException e) {\n // fold it all into one type of exception\n throw new InstantiationException(e.getMessage());\n }\n }",
"public CrudCasinosBean() {\r\n }",
"public milkVariationBean(){}",
"public Bean_article() {\n }",
"private DTOFactory() {\r\n \t}",
"public PersonaDTO(){}",
"public ProductBean(final Instance _prodInst)\n {\n instance = _prodInst;\n }",
"public Billfold()\n {\n \n }",
"public clientesBean() {\n this.clie = new Clientes();\n }",
"public TestManageBean() {\n }",
"public ProxyBean() {\n }",
"@Inject\n public BluetoothProbeFactory() {\n }",
"public LibrosFormBean() {\r\n libr = new ConjuntoLibro();\r\n }",
"BOp createBOp();",
"public ProductoDTO(){\r\n\t\t\r\n\t}",
"@Bean(name = \"product\")\n\tpublic Product getProduct() {\n\t\treturn new Product(\"C0001\", \"테스트\", 1000); // Constructor Injection\n\t}",
"public void create(){}",
"public AdmissionsBean() {\n }",
"public interface BeanFactory {\r\n\t/**\r\n\t * Creates a new instance of the bean this is the factory for and invokes \r\n\t * its {@link Initializer}s.\r\n\t * @param controller the controller to use (needed for Actors only, may be null otherwise)\r\n\t * @param props the initial properties of the new bean\r\n\t * @return the new bean\r\n\t */\r\n\tpublic Object createNewInstance(Controller controller, Props props);\r\n}",
"@Inject\n public Builder() {\n }",
"protected abstract Object createProcessBean(Name name);",
"public Boat() {\n }",
"public DriverForCreateBuilder() {\r\n driverForCreate = new DriverForCreate();\r\n }",
"@Override\r\n\tpublic T createInstance() {\r\n\t\ttry {\r\n\t\t\treturn getClassType().newInstance();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(AbstractCRUDBean.class.getSimpleName()).log(Level.ALL, e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public PostViewBean() {\n }",
"public InstitutionBean createInstitutionBean()\n {\n return new InstitutionBean();\n }"
] | [
"0.68674797",
"0.66172904",
"0.6528885",
"0.6460215",
"0.6460215",
"0.6446009",
"0.6444549",
"0.643586",
"0.6397497",
"0.6361625",
"0.635003",
"0.6325969",
"0.62841266",
"0.62566787",
"0.6210773",
"0.61988723",
"0.6197056",
"0.61231387",
"0.60838354",
"0.6075325",
"0.6073268",
"0.6073268",
"0.6057549",
"0.6036728",
"0.6028537",
"0.6027714",
"0.6021807",
"0.6013703",
"0.5987954",
"0.598742",
"0.5966886",
"0.5963514",
"0.59625363",
"0.5958151",
"0.59487575",
"0.5925794",
"0.5917283",
"0.5895151",
"0.58923024",
"0.5864817",
"0.5842597",
"0.5841572",
"0.58126533",
"0.5807654",
"0.57966846",
"0.578174",
"0.578174",
"0.575861",
"0.5728872",
"0.57155466",
"0.568254",
"0.5661102",
"0.5660317",
"0.56559783",
"0.5651814",
"0.5643679",
"0.56419766",
"0.5641416",
"0.5603685",
"0.5603164",
"0.5595499",
"0.55944794",
"0.5588174",
"0.5585516",
"0.55630916",
"0.55557454",
"0.55545527",
"0.55469173",
"0.55448246",
"0.5527441",
"0.55204296",
"0.5518792",
"0.55158454",
"0.5515683",
"0.55142796",
"0.5506725",
"0.55062264",
"0.550435",
"0.5504182",
"0.55039364",
"0.5502696",
"0.54929006",
"0.5492093",
"0.5483711",
"0.54693156",
"0.54535186",
"0.545036",
"0.54492193",
"0.5446208",
"0.5426115",
"0.5422106",
"0.54118925",
"0.54049104",
"0.53833175",
"0.5376221",
"0.5375538",
"0.53678006",
"0.5367327",
"0.5361053",
"0.5356016"
] | 0.6618966 | 1 |
Create a parser to read from the terminal window. | public InputReader() {
reader = new Scanner(System.in);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Parser makeParser(String input) throws LexicalException {\r\n\t\tshow(input); //Display the input \r\n\t\tScanner scanner = new Scanner(input).scan(); //Create a Scanner and initialize it\r\n\t\tshow(scanner); //Display the Scanner\r\n\t\tParser parser = new Parser(scanner);\r\n\t\treturn parser;\r\n\t}",
"public Node makeInputPanel() {\r\n VBox result = new VBox();\r\n myCommandLine = makeInputArea(350, 250);\r\n Button clearButton = makeButton(\"Clear\", event -> clear());\r\n Button runButton = makeButton(\"Run\", event -> {\r\n try {\r\n runInput(\"script\");\r\n updateModelWithInput( scriptFilePath + \"script.txt\");\r\n } catch (IOException e) {\r\n showError(e.getMessage());\r\n return;\r\n }\r\n });\r\n result.getChildren().addAll(myCommandLine, runButton, clearButton);\r\n result.setAlignment(Pos.CENTER);\r\n result.setSpacing(20);\r\n result.setMargin(myCommandLine, new Insets(0, 20, 0, 10));\r\n return result;\r\n }",
"public abstract ArgumentParser makeParser();",
"public MyViewCLI(InputStreamReader in, OutputStreamWriter out, Controller controller) {\r\n\t\tcli = new CLI(in, out, controller);\r\n\t\tthis.controller = controller;\r\n\t}",
"private TraceParser genParser() throws ParseException {\n TraceParser parser = new TraceParser();\n parser.addRegex(\"^(?<VTIME>)(?<TYPE>)$\");\n parser.addPartitionsSeparator(\"^--$\");\n return parser;\n }",
"private PLPParser makeParser(String input) throws LexicalException {\n\t\t\tshow(input); //Display the input \n\t\t\tPLPScanner scanner = new PLPScanner(input).scan(); //Create a Scanner and initialize it\n\t\t\tshow(scanner); //Display the Scanner\n\t\t\tPLPParser parser = new PLPParser(scanner);\n\t\t\treturn parser;\n\t\t}",
"CParser getParser();",
"protected ASTParser createASTParser() {\n ASTParser parser = ASTParser.newParser(this.testLevel);\n return parser;\n }",
"public JsonParser createParser(InputStream in)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 809 */ IOContext ctxt = _createContext(in, false);\n/* 810 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }",
"public Terminal() {\n initComponents();\n }",
"public JsonParser createParser(Reader r)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 829 */ IOContext ctxt = _createContext(r, false);\n/* 830 */ return _createParser(_decorate(r, ctxt), ctxt);\n/* */ }",
"public static void main(String[] args)\n/* */ {\n/* 214 */ DisabledPreferencesFactory.install();\n/* 215 */ String dataFilename = null;\n/* 216 */ String parserFilename = null;\n/* 217 */ ParserPanel parserPanel = new ParserPanel();\n/* 218 */ if (args.length > 0) {\n/* 219 */ if (args[0].equals(\"-h\")) {\n/* 220 */ System.out.println(\"Usage: java edu.stanford.nlp.parser.ui.ParserPanel [parserfilename] [textFilename]\");\n/* */ } else {\n/* 222 */ parserFilename = args[0];\n/* 223 */ if (args.length > 1) {\n/* 224 */ dataFilename = args[1];\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* 229 */ Parser parser = new Parser(parserFilename, dataFilename);\n/* 230 */ parser.setVisible(true);\n/* */ }",
"private Command parse() throws ParseException {\n next();\n expect(Token.COMMAND);\n cmd = new Command(text);\n next();\n while (!((token == Token.WHERE) || (token == Token.RETURN) || (token == Token.EOL))) {\n param();\n }\n if (token == Token.WHERE) {\n where();\n }\n if (token == Token.RETURN) {\n returns();\n }\n expect(Token.EOL);\n return cmd;\n }",
"public JsonParser createParser(DataInput in)\n/* */ throws IOException\n/* */ {\n/* 920 */ IOContext ctxt = _createContext(in, false);\n/* 921 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }",
"@Before public void initParser() {\n\t\tparser = new CliParserImpl(\"-\", \"--\");\n\t}",
"public Parser() throws IOException {\n\t\tlookahead = System.in.read();\n\t\terrorNum = 0;\n\t\tinput = \"\";\n\t\toutput = \"\";\n\t\terrorPos = \"\";\n\t\terrorList = new ArrayList<String>();\n\t\twrongState = false;\n\t}",
"Parse createParse();",
"public Parser() {}",
"public CLI()\r\n\t{\r\n\t\t//lvl = new Level();\r\n\t\tthis.inputCommand = \"\";\r\n\t\t//this.exitStr = exitStr;\r\n\t\tin = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\r\n\t}",
"public JPanel_Terminal() {\n // initialize components\n initComponents();\n\n // initialize JTerm\n JTermInputProcessor termProcessor = (String command, JTerm console) -> {\n if (jShellTransport == null) {\n updateShellTransport();\n }\n if (jShellTransport != null) {\n try {\n console.remove(command.length());\n jShellTransport.write(command);\n } catch (IOException ex) {\n jShellTransport = null;\n Log.log(Level.SEVERE, \"ShellTransportWrite\", ex);\n }\n }\n };\n\n jTerm = new JTerm(jTextPane_Jterm, termProcessor, Color.BLACK, Color.GREEN, new Font(Font.MONOSPACED, Font.BOLD, 12));\n }",
"public TerminalGame()\n \t{\n \t\tsuper();\n \t\tbuilder = new StringBuilder();\n \t\tscanner = new Scanner(System.in);\n \t}",
"public EditorDriver() {\r\n\t\tgui = new GUI(this);\r\n\t\treadingInputPath = true;\r\n\t\tinputFileFound = false;\r\n\t\teditor = new Editor();\r\n\t\tgui.println(IN_FILE_PROMPT);\r\n\t}",
"@Override\n public ViolationsParser createParser() {\n return new JsLintParser();\n }",
"public JsonParser createParser(char[] content)\n/* */ throws IOException\n/* */ {\n/* 899 */ return createParser(content, 0, content.length);\n/* */ }",
"public JsonParser createParser(char[] content, int offset, int len)\n/* */ throws IOException\n/* */ {\n/* 908 */ if (this._inputDecorator != null) {\n/* 909 */ return createParser(new CharArrayReader(content, offset, len));\n/* */ }\n/* 911 */ return _createParser(content, offset, len, _createContext(content, true), false);\n/* */ }",
"public static\n Terminal in() {\n return Input.terminal;\n }",
"public JsonParser createParser(String content)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 879 */ int strLen = content.length();\n/* */ \n/* 881 */ if ((this._inputDecorator != null) || (strLen > 32768) || (!canUseCharArrays()))\n/* */ {\n/* */ \n/* 884 */ return createParser(new StringReader(content));\n/* */ }\n/* 886 */ IOContext ctxt = _createContext(content, true);\n/* 887 */ char[] buf = ctxt.allocTokenBuffer(strLen);\n/* 888 */ content.getChars(0, strLen, buf, 0);\n/* 889 */ return _createParser(buf, 0, strLen, ctxt, true);\n/* */ }",
"public SmartScriptParser(String text) {\n lexer = new SmartScriptLexer(text);\n documentNode = new DocumentNode();\n stack = new ObjectStack();\n parse();\n\n}",
"private AbstractTerminal()\n\t{\n\t\tio = new SwingTextTerminal();\n\t}",
"public static Options prepCliParser()\n\t{\n\t\tOptions knowsCliDtd = new Options();\n\t\tfinal boolean needsEmbelishment = true;\n\t\tknowsCliDtd.addOption( configFlagS, configFlagLong, needsEmbelishment,\n\t\t\t\t\"path to config (ex C:\\\\Program Files\\\\apache\\\\tomcat.txt)\" );\n\t\tknowsCliDtd.addOption( verboseFlagS, verboseFlagLong,\n\t\t\t\t! needsEmbelishment, \"show debug information\" );\n\t\tknowsCliDtd.addOption( helpFlagS, helpFlagLong,\n\t\t\t\t! needsEmbelishment, \"show arg flags\" );\n\t\treturn knowsCliDtd;\n\t}",
"ChatbotWindow(Command command, Parser parser, TaskList tasks, Storage storage, ChronologerStateList history) {\n super(FXML, null);\n this.command = command;\n this.parser = parser;\n this.tasks = tasks;\n this.storage = storage;\n this.history = history;\n scrollPane.vvalueProperty().bind(dialogBoxContainer.heightProperty());\n\n attachInputListeners();\n printWelcome();\n }",
"static Command parse(String text) throws ParseException {\n Parser parser = new Parser(text);\n return parser.parse();\n }",
"private Parser () { }",
"private void acceptCommands() {\n\t\tScanner input = new Scanner(System.in);\n\t\tInteractiveCommandParser commandParser = new InteractiveCommandParser(\n\t\t\t\tinput, this);\n\t\tcommandParser.readCommands(); // blocking command reader\n\t}",
"private void start() {\n Scanner scanner = new Scanner(System.in);\n \n // While there is input, read line and parse it.\n String input = scanner.nextLine();\n TokenList parsedTokens = readTokens(input);\n }",
"public Ui() {\n this.scanner = new Scanner(System.in);\n }",
"public Ui() {\n this.scanner = new Scanner(System.in);\n }",
"public CommandParser(){\n setLanguage(\"ENGLISH\");\n commandTranslations = getPatterns(new String[] {TRANSLATION});\n commands = new ArrayList<>();\n addErrors();\n }",
"private static DocumentBuilder instantiateParser()\n throws IOException {\n\n DocumentBuilder parser = null;\n\n try {\n DocumentBuilderFactory fac = DocumentBuilderFactory.newInstance();\n fac.setNamespaceAware( true );\n fac.setValidating( false );\n fac.setIgnoringElementContentWhitespace( false );\n parser = fac.newDocumentBuilder();\n return parser;\n } catch ( ParserConfigurationException e ) {\n throw new IOException( \"Unable to initialize DocumentBuilder: \" + e.getMessage() );\n }\n }",
"abstract protected Parser createSACParser();",
"public Command getCommand() {\n String userInput = in.nextLine();\n String[] words = userInput.split(\" \", 2);\n try {\n return new Command(words[0].toLowerCase(), words[1]);\n } catch (ArrayIndexOutOfBoundsException e) {\n return new Command(words[0].toLowerCase(), Command.BLANK_DESCRIPTION);\n }\n }",
"public static Shape parse() {\n Shape shape = null;\n System.out.print(\"Enter command:\");\n try {\n Scanner scanner = new Scanner(System.in);\n String commandString = scanner.nextLine();\n String[] request = commandString.split(\"\\\\s+\"); //the array of strings computed by space\n\n switch (Command.findCommandByAcronyms(request[0])){\n case CANVAS:\n int[] canvasCoordinates = convertStringArrayToIntArray(Arrays.copyOfRange(request,1,request.length));\n canvas = new Canvas(canvasCoordinates);\n shape = canvas;\n break;\n case LINE:\n int[] lineCoordinates = convertStringArrayToIntArray(Arrays.copyOfRange(request,1,request.length));\n shape = new Line(canvas, lineCoordinates);\n break;\n case RECTANGLE:\n int[] rectCoordinates = convertStringArrayToIntArray(Arrays.copyOfRange(request,1,request.length));\n shape = new Rectangle(canvas, rectCoordinates);\n break;\n case FILL:\n shape = new Fill(canvas, Arrays.copyOfRange(request,1,request.length));\n break;\n case EXIT:\n System.out.print(\"Thank you for using the Drawing App! See you again.\");\n System.exit(0);\n default:\n System.out.println(\"Command not supported: \" + request[0]);\n help();\n }\n return shape;\n } catch (NumberFormatException nfe){\n System.out.println(\"Only non negative numbers are allowed in args: \" + nfe.getMessage());\n help();\n } catch (Exception e) {\n System.out.println(\"Sorry! can't parse the entered value. Try again: \" + e.getMessage());\n help();\n }\n return shape;\n }",
"public ConsoleView() {\n\t\tcrapsControl = new CrapsControl();\n\t\tinput = new Scanner(System.in);\n\t}",
"QDisplayTerm createDisplayTerm();",
"public Grammar(){\n this.builder = Cli.<VesperCommand>builder(\"vesper\")\n .withDescription(\"the nice CLI for Vesper\")\n .withDefaultCommand(HelpCommand.class)\n .withCommand(HelpCommand.class)\n .withCommand(LogCommand.class)\n .withCommand(ResetCommand.class)\n .withCommand(InspectCommand.class)\n .withCommand(ReplCommand.class)\n .withCommand(ConfigCommand.class)\n .withCommand(AddCommand.class)\n .withCommand(OriginShow.class)\n .withCommand(PublishCommand.class)\n .withCommand(FormatCommand.class)\n .withCommand(DeduplicateCommand.class)\n .withCommand(OptimizeImportsCommand.class);\n\n builder.withGroup(\"whereis\")\n .withDescription(\"Locates a program unit found in the tracked source\")\n .withDefaultCommand(LocateClassCommand.class)\n .withCommand(LocateClassCommand.class)\n .withCommand(LocateMethodCommand.class)\n .withCommand(LocateParamCommand.class)\n .withCommand(LocateVarCommand.class)\n .withCommand(LocateFieldCommand.class);\n\n builder.withGroup(\"notes\")\n .withDescription(\"Manage set of notes describing the tracked source\")\n .withDefaultCommand(NotesShow.class)\n .withCommand(NotesShow.class)\n .withCommand(NoteAdd.class);\n\n builder.withGroup(\"rename\")\n .withDescription(\"Manage set of renaming commands\")\n .withDefaultCommand(RenameClassCommand.class)\n .withCommand(RenameClassCommand.class)\n .withCommand(RenameMethodCommand.class)\n .withCommand(RenameParameterCommand.class)\n .withCommand(RenameFieldCommand.class)\n .withCommand(RenameLocalVariableCommand.class);\n\n builder.withGroup(\"rm\")\n .withDescription(\"Remove file contents from the tracked source\")\n .withDefaultCommand(RemoveSourceCommand.class)\n .withCommand(RemoveSourceCommand.class)\n .withCommand(RemoveClassCommand.class)\n .withCommand(RemoveMethodCommand.class)\n .withCommand(RemoveParameterCommand.class)\n .withCommand(RemoveFieldCommand.class)\n .withCommand(RemoveLocalVariableCommand.class)\n .withCommand(RemoveRegionCommand.class);\n\n builder.withGroup(\"clip\")\n .withDescription(\"Clip a code section from the tracked source\")\n .withDefaultCommand(ClipRangeCommand.class)\n .withCommand(ClipRangeCommand.class);\n\n }",
"public Program parse() throws SyntaxException {\n\t\tProgram p = program();\n\t\tmatchEOF();\n\t\treturn p;\n\t}",
"public GuiController()\n {\n\n DefaultTerminalFactory terminalFactory = new DefaultTerminalFactory();\n PageStack = new ArrayDeque<>(); // Gives us a screen stack\n window = new BasicWindow(\"Just put anything, I don't even care\");\n try\n {\n screen = terminalFactory.createScreen(); //Populates screen\n screen.startScreen(); //Runs screen\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n textGUI = new MultiWindowTextGUI(screen);\n\n }",
"public CLI(String inputCommand)\r\n\t{\r\n\t\t//lvl = new Level();\r\n\t\tthis.inputCommand = inputCommand;\r\n\t\tin = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\r\n\t}",
"protected JsonParser _createParser(Reader r, IOContext ctxt)\n/* */ throws IOException\n/* */ {\n/* 1288 */ return new ReaderBasedJsonParser(ctxt, this._parserFeatures, r, this._objectCodec, this._rootCharSymbols.makeChild(this._factoryFeatures));\n/* */ }",
"public RingFactoryTokenizer() {\n this(new BufferedReader(new InputStreamReader(System.in,Charset.forName(\"UTF8\"))));\n }",
"public JsonParser createParser(File f)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 755 */ IOContext ctxt = _createContext(f, true);\n/* 756 */ InputStream in = new FileInputStream(f);\n/* 757 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }",
"public Parser(String parserFilename, String dataFilename)\n/* */ {\n/* 57 */ initComponents();\n/* */ \n/* 59 */ this.parserPanel = new ParserPanel();\n/* 60 */ getContentPane().add(\"Center\", this.parserPanel);\n/* 61 */ if (parserFilename != null) {\n/* 62 */ this.parserPanel.loadParser(parserFilename);\n/* */ }\n/* 64 */ if (dataFilename != null) {\n/* 65 */ this.parserPanel.loadFile(dataFilename);\n/* */ }\n/* 67 */ pack();\n/* */ }",
"public static void consoleWindow(CommandLine cmd) throws ParseException {\n\n\t\tif (cmd.getOptionValue(\"u\") == null)\n\t\t\tthrow new ParseException(\"Vista vacía.\");\n\n\t\telse if (cmd.getOptionValue(\"u\").equalsIgnoreCase(\"window\")) {\n\n\t\t\tControladorGui c = new ControladorGui(p, f, tipo);\n\t\t\tnew VistaGUI(c, tipo);\n\n\t\t} else if (cmd.getOptionValue(\"u\").equalsIgnoreCase(\"console\")) {\n\n\t\t\tScanner in = new Scanner(System.in);\n\t\t\tControladorConsola c = new ControladorConsola(f, p, in);\n\t\t\tnew VistaConsola(c);\n\t\t\tc.run();\n\n\t\t} else\n\n\t\t\tthrow new ParseException(\"Comando '\" + cmd.getOptionValue(\"u\")\n\t\t\t\t\t+ \"' incorrecto.\");\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.main);\n\t\tmTerminalLayout = (LinearLayout)findViewById(R.id.terminalLayout);\n\n\t\tmPlotLayout = (LinearLayout)findViewById(R.id.plotLayout);\n\n\t\tmTextView = (TextView)findViewById(R.id.termWindow);\n\n\t\tmScrollView = (ScrollView)findViewById(R.id.scrollView);\n\n\t\tmCmdEditText = (EditText)findViewById(R.id.edit_command);\n\n\t\tmSwitcher = (ViewSwitcher) findViewById(R.id.viewSwitcher);\n\n\t\tmCmdEditText.setOnKeyListener(new OnKeyListener() {\n\t\t\t@Override\n\t\t\tpublic boolean onKey(View view, int keyCode, KeyEvent event) { \n\t\t\t\tif (event.getAction() == KeyEvent.ACTION_DOWN) {\n\t\t\t\t\tif ((keyCode == KeyEvent.KEYCODE_ENTER) && (_ready == true)) {\n\t\t\t\t\t\tString command = mCmdEditText.getText().toString();\n\t\t\t\t\t\tmCmdEditText.setText(\"\");\n\t\t\t\t\t\tmTermSession.write(command + \"\\n\");\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\n\t\t_sessionParent = this;\n\n\t\tViewTreeObserver viewTreeObserver = mTerminalLayout.getViewTreeObserver();\n\t\tif (viewTreeObserver.isAlive()) {\n\t\t\tviewTreeObserver.addOnGlobalLayoutListener(new OnGlobalLayoutListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onGlobalLayout() {\n\t\t\t\t\tmTerminalLayout.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n\t\t\t\t\t_screenHeight = mTerminalLayout.getHeight();\n\t\t\t\t\t_screenWidth = mTerminalLayout.getWidth();\n\t\t\t\t\tif (_screenWidth < _screenHeight) {\n\t\t\t\t\t\t_screenHeight = _screenWidth;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t_screenWidth = _screenHeight;\n\t\t\t\t\t}\n\t\t\t\t\t// Converts 14 dip into its equivalent px\n\t\t\t\t\tResources r = getResources();\n\t\t\t\t\t_textHeight = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 14, r.getDisplayMetrics());\n\t\t\t\t\tPaint paint = new Paint();\n\t\t\t\t\tpaint.setStyle(Paint.Style.STROKE);\n\t\t\t\t\tpaint.setTextSize(_textHeight);\n\t\t\t\t\tpaint.setTypeface(Typeface.MONOSPACE);\n\t\t\t\t\t_textWidth = (int) paint.measureText(\"A\");\n\t\t\t\t\t_bitmap = Bitmap.createBitmap(_screenWidth, _screenHeight, Bitmap.Config.ARGB_8888);\n\t\t\t\t\t_canvas = new Canvas(_bitmap);\n\n\t\t\t\t\tmTermSession = new TermSession(_sessionParent);\n\t\t\t\t\tmTermSession.updateSize(1024, 1024);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tonNewIntent(getIntent());\n\t}",
"public MyEnvironment() {\n\t\t\t\tscan = new Scanner(System.in);\n\t\t\t\tscanClosed = false;\n\t\t\t\tmultilineSymbol = '|';\n\t\t\t\tpromptSymbol = '>';\n\t\t\t\tmorelinesSymbol = '\\\\';\n\t\t\t\tcommands = new TreeMap<>();\n\t\t\t\tcommands.put(\"cat\", new CatShellCommand());\n\t\t\t\tcommands.put(\"charsets\", new CharsetsShellCommand());\n\t\t\t\tcommands.put(\"copy\", new CopyShellCommand());\n\t\t\t\tcommands.put(\"exit\", new ExitShellCommand());\n\t\t\t\tcommands.put(\"hexdump\", new HexdumpShellCommand());\n\t\t\t\tcommands.put(\"ls\", new LsShellCommand());\n\t\t\t\tcommands.put(\"mkdir\", new MkdirShellCommand());\n\t\t\t\tcommands.put(\"tree\", new TreeShellCommand());\n\t\t\t\tcommands.put(\"symbol\", new SymbolShellCommand());\n\t\t\t\tcommands.put(\"help\", new HelpShellCommand());\n\t\t\t\tcommands.put(\"cd\", new CdShellCommand());\n\t\t\t\tcommands.put(\"pwd\", new PwdShellCommand());\n\t\t\t\tcommands.put(\"dropd\", new DropdShellCommand());\n\t\t\t\tcommands.put(\"pushd\", new PushdShellCommand());\n\t\t\t\tcommands.put(\"listd\", new ListdShellCommand());\n\t\t\t\tcommands.put(\"popd\", new PopdShellCommand());\n\t\t\t\tcommands.put(\"massrename\", new MassrenameShellCommand());\n\t\t\t\tcurrentDirectory = Paths.get(\".\");\n\t\t\t\tsharedData = new HashMap<>();\n\t\t\t}",
"private void parseTerm() throws IOException {\r\n\t\tString line;\r\n\t\tTerm newTerm = new Term();\r\n\t\twhile((line=next(0))!=null) {\r\n\t\t\tif(line.startsWith(\"[\"))\r\n\t\t\t\t{\r\n\t\t\t\tthis.buffer=line;\r\n\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\tint colon=line.indexOf(':');\r\n\t\t\tif(colon==-1) continue;\r\n\t\t\tif(line.startsWith(\"id:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.id = line.substring(colon+1).trim();\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\tif(line.startsWith(\"name:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.name=nocomment(line.substring(colon+1));\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\tif(line.startsWith(\"namespace:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.namespace=nocomment(line.substring(colon+1));\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\telse if(line.startsWith(\"def:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.def=nocomment(line.substring(colon+1));\r\n\t\t\t\tterms.addTerm(newTerm);\r\n\t\t\t\tif (newTerm.namespace.equals(\"molecular_function\")){\r\n\t\t\t\t\tdagMF.addVertex(newTerm);\r\n\t\t\t\t}\r\n\t\t\t\telse if (newTerm.namespace.equals(\"biological_process\")){\r\n\t\t\t\t\tdagBP.addVertex(newTerm);\t\r\n\t\t\t\t}\r\n\t\t\t\telse if (newTerm.namespace.equals(\"cellular_component\")){\r\n\t\t\t\t\tdagCC.addVertex(newTerm);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.println(\"TERM WAS NOT ADDED, NO NAMESPACE!\");\r\n\t\t\t\t}\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t}\r\n\t}",
"public parser(java_cup.runtime.Scanner s) {super(s);}",
"public parser(java_cup.runtime.Scanner s) {super(s);}",
"public parser(java_cup.runtime.Scanner s) {super(s);}",
"public parser(java_cup.runtime.Scanner s) {super(s);}",
"public parser(java_cup.runtime.Scanner s) {super(s);}",
"public parser(java_cup.runtime.Scanner s) {super(s);}",
"public parser(java_cup.runtime.Scanner s) {super(s);}",
"public parser(java_cup.runtime.Scanner s) {super(s);}",
"public StringParseable getParser(String input) {\n\t\treturn new XMLStringParser(input);\n\t}",
"private static void createAndShowGUI() {\n\t\tint width = 500, height = 300;\n\t\tJFrame frame = new JFrame(\"Text File Reader\");\n\t\tframe.setSize(new Dimension(width, height));\n\t\tframe.setContentPane(new MainExecutor(width, height)); /* Adds the panel to the frame */\n\n\t\t/* Centralizing the frame */\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint upperLeftCornerX = (screenSize.width - frame.getWidth()) / 2;\n\t\tint upperLeftCornerY = (screenSize.height - frame.getHeight()) / 2;\n\t\tframe.setLocation(upperLeftCornerX, upperLeftCornerY);\n\t\tframe.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\n\t\t/* Shows the GUI */\n\t\tframe.setVisible(true);\n\t}",
"public String readCommand() {\n sc = new Scanner(System.in);\n userInput = new TextField();\n return userInput.getText();\n }",
"public ProgramParser(String[] args) throws InterpreterException {\n java.util.Scanner scanner;\n String text = \"\";\n try {\n scanner = new java.util.Scanner(new java.io.File(args[0]));\n text = scanner.useDelimiter(\"\\u005c\\u005cA\").next();\n scanner.close();\n ProgramParser.programCode = new java.io.StringReader(text);\n } catch (FileNotFoundException ex) {\n throw new InterpreterException(\"FileNotFoundException\", \"Check file path.\", ex.getMessage());\n }\n ProgramParser.stringInput = args[1];\n System.out.println(\"Program: \" + args[0] + \" - input: \" + stringInput);\n //System.out.println(\"code\\n\" + text + \"\\n---Done\");\n }",
"private TwigcsResultParser getParser() {\n\t\tif (parser == null) {\n\t\t\tparser = new TwigcsResultParser();\n\t\t}\n\t\treturn parser;\n\t}",
"public Cli (BufferedReader in,PrintWriter out , Controller thecontroller) {\r\n\t\tsuper(thecontroller);\r\n\t\tthis.in=in;\r\n\t\tthis.out=out;\r\n\t\tthis.commandsSet= controller.getCommandSet();\r\n\t}",
"protected Parser getParser() {\n\t\treturn myParser;\n\t}",
"public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}",
"public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}",
"public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}",
"public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}",
"public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}",
"public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}",
"public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}",
"public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}",
"public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}",
"protected void createContents() {\n\t\tshell = new Shell(SWT.TITLE | SWT.CLOSE | SWT.BORDER);\n\t\tshell.setSize(713, 226);\n\t\tshell.setText(\"ALT Planner\");\n\t\t\n\t\tCalendarPop calendarComp = new CalendarPop(shell, SWT.NONE);\n\t\tcalendarComp.setBounds(5, 5, 139, 148);\n\t\t\n\t\tComposite composite = new PlannerInterface(shell, SWT.NONE, calendarComp);\n\t\tcomposite.setBounds(0, 0, 713, 200);\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmFile = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmFile.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmFile);\n\t\tmntmFile.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmSettings = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmSettings.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSettings settings = new Settings(Display.getDefault());\n\t\t\t\tsettings.open();\n\t\t\t}\n\t\t});\n\t\tmntmSettings.setText(\"Settings\");\n\t}",
"public ConsolePanel() throws Exception, SAXException, IOException\r\n\t{\r\n\t\tgame=null;\r\n\t\tgame_started=false;\r\n\t\tgs=new MainMenuDialog();\r\n\t\tMyKeyHandler kh = new MyKeyHandler();\r\n\t\taddKeyListener(kh);\r\n\t\tsetFocusable(true);\r\n\t}",
"public OptionParser() {\n\n\t}",
"public parser(Scanner s) {super(s);}",
"Program parse() throws SyntaxException {\n\t\tProgram p = null;\n\t\tp = program();\n\t\tmatchEOF();\n\t\treturn p;\n\t}",
"protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}",
"public GosuParser getParser()\n {\n return _parser;\n }",
"public SyntaxParser( StyleScheme scheme )\r\n\t{\r\n\t\tLogger.debug(\"Reading word list\", Level.GUI,this);\r\n\t\tm_listFunctions = new Vector<String>();\r\n\t\tm_listModifiers = new Vector<String>();\r\n\t\tm_listConstants = new Vector<String>();\r\n\t\tm_listLanguage = new Vector<String>();\r\n\t\tfor(String f : s_functions) m_listFunctions.addElement(f);\r\n\t\tfor(String m : s_modifiers) m_listModifiers.addElement(m);\r\n\t\tfor(String l : s_language) m_listLanguage.addElement(l);\r\n\t\tfor(String c : s_constants) m_listConstants.addElement(c);\r\n\t\tLogger.debug(\"Word list read\", Level.GUI,this);\r\n\t\tm_scheme = scheme;\r\n\t\t// Configure the JTOPAS tokenizer to recognise SPEL\r\n\t\tconfigureTokenizer();\r\n\t}",
"private static void createAndShowGUI() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"FrameDemo\");\n frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n\n //main input TextArea\n JTextArea mainIn = new JTextArea(\"Type your Command here.\", 3, 1);\n \n //main Output Display Displays htmlDocuments\n JTextPane mainOut = new JTextPane(new HTMLDocument());\n mainOut.setPreferredSize(new Dimension(800, 600));\n \n //add components to Pane\n frame.getContentPane().add(mainOut);\n frame.getContentPane().add(mainIn);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }",
"public DummyCommand parse(String userInput) throws ParseException {\n HashMap<String, String> aliasList = getAliasManager().getAliasList();\n\n if (aliasList.isEmpty()) {\n return new DummyCommand(MESSAGE_EMPTY);\n }\n\n StringBuilder sb = new StringBuilder();\n aliasList.forEach((alias, command) -> sb.append(String.format(\"%s: %s\\n\", alias, command)));\n\n return new DummyCommand(sb.toString());\n }",
"public Parser() {\n\t\tpopulateMaps();\n\t}",
"protected Parser getParser() throws TemplateException {\n try {\n return (Parser) _broker.getValue(\"parser\",\"wm\"); \n } catch (Exception e) {\n Engine.log.exception(e);\n throw new TemplateException(\"Could not load parser type \\\"\" + \n _parserName + \"\\\": \" + e);\n }\n }",
"public CommandLine parse(String[] args ) throws ParseException\n {\n String[] cleanArgs = CleanArgument.cleanArgs( args );\n CommandLineParser parser = new DefaultParser();\n return parser.parse( options, cleanArgs );\n }",
"public SimpleHtmlParser createNewParserFromHereToText(String text) throws ParseException {\n return new SimpleHtmlParser(getStringToTextAndSkip(text));\n }",
"Object create(InputSource is) throws IOException, SAXException, ParserConfigurationException;",
"public Parser(String[] userInput) {\n this.command = userInput[0];\n if (userInput.length > 1) {\n this.description = userInput[1];\n }\n }",
"public PropertyParser()\n\t{\n\t\tthis(System.getProperties());\n\t}",
"public static JavaParser getParser(final CharStream stream) {\n final JavaLexer lexer = new JavaLexer(stream);\n final CommonTokenStream in = new CommonTokenStream(lexer);\n return new JavaParser(in);\n }",
"public static Command parser(String input) {\r\n\t\tCommand command;\r\n\t\tif (input.equals(\"\")) {\r\n\t\t\treturn new CommandInvalid(\"User input cannot be empty\");\r\n\t\t}\r\n\r\n\t\tif ((command = parserAdd(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserEdit(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserShow(input)) != null) {\r\n\t\t\tcurrent_status = SHOW_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserExit(input)) != null) {\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserDelete(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserSave(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserClear(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserUndo(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserOpen(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserCheck(input)) != null) {\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserSearch(input)) != null) {\r\n\t\t\tcurrent_status = SEARCH_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserRedo(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserHelp(input)) != null) {\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserDisplayAll(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserSort(input)) != null) {\r\n\t\t\tcurrent_status = SORT_STATE;\r\n\t\t\treturn command;\r\n\t\t}\r\n\t\treturn new CommandInvalid(\"Invalid Command. Please check 'Help' for proper input.\");\r\n\t}",
"public Parser(java_cup.runtime.Scanner s) {super(s);}",
"public Parser(java_cup.runtime.Scanner s) {super(s);}"
] | [
"0.5952038",
"0.57542914",
"0.57080024",
"0.55565476",
"0.5525051",
"0.5502214",
"0.55010086",
"0.54707223",
"0.5459558",
"0.5454746",
"0.5428654",
"0.5341056",
"0.5325148",
"0.52931494",
"0.52856565",
"0.5219352",
"0.5203956",
"0.51791763",
"0.51633495",
"0.51514775",
"0.5151044",
"0.51413894",
"0.513125",
"0.5124634",
"0.51115936",
"0.50976044",
"0.50969446",
"0.508272",
"0.50550205",
"0.5051506",
"0.50174576",
"0.49985585",
"0.49958616",
"0.49730355",
"0.49647337",
"0.49595082",
"0.49595082",
"0.4943362",
"0.49361706",
"0.49151182",
"0.4904307",
"0.4903399",
"0.48917475",
"0.4887189",
"0.48799363",
"0.48661768",
"0.4864339",
"0.48565975",
"0.48554045",
"0.4847889",
"0.48439094",
"0.48413965",
"0.48319787",
"0.4801105",
"0.4797479",
"0.47910184",
"0.47815734",
"0.47815734",
"0.47815734",
"0.47815734",
"0.47815734",
"0.47815734",
"0.47815734",
"0.47815734",
"0.47544733",
"0.47525132",
"0.475107",
"0.47411165",
"0.47294998",
"0.47164533",
"0.47154993",
"0.47046766",
"0.47046766",
"0.47046766",
"0.47046766",
"0.47046766",
"0.47046766",
"0.47046766",
"0.47046766",
"0.47046766",
"0.47004268",
"0.46903843",
"0.46894595",
"0.46878263",
"0.46860483",
"0.46854088",
"0.4680276",
"0.468017",
"0.4678005",
"0.46761551",
"0.46750394",
"0.46740654",
"0.46724585",
"0.46718457",
"0.4667842",
"0.4664888",
"0.46581572",
"0.46498105",
"0.46338943",
"0.46291524",
"0.46291524"
] | 0.0 | -1 |
Returns commands from user | public String getCommand(){
return getCommand(null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getUserCommand() {\n out.print(\"Enter command: \");\n String fullInputLine = in.nextLine();\n\n return fullInputLine;\n }",
"public String getUserCommand();",
"public String userCommand(){\n return scanner.nextLine();\n }",
"List<String> getCommands();",
"static String getCommand() {\n\t\tString command;\n\t\twhile (true) {\n\t\t\tScanner sca = new Scanner(System.in);\n\t\t\tSystem.out.print(\"Enter Command: \");\n\t\t\tcommand = sca.next();\n\t\t\tif (command.equals(\"ac\") || command.equals(\"dc\") || command.equals(\"as\") || command.equals(\"ds\") || command.equals(\"p\") || command.equals(\"q\"))\n\t\t\t\tbreak;\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Invalid command: \" + command);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\t// System.out.println(command);\n\t\treturn command;\n\t}",
"java.lang.String getCommand();",
"public String readCommand() {\n Scanner sc = new Scanner(System.in);\n return sc.nextLine();\n }",
"String getCommand();",
"public String[] readCommand();",
"public String readCommand() {\n sc = new Scanner(System.in);\n userInput = new TextField();\n return userInput.getText();\n }",
"public Command getCommand() {\n String userInput = in.nextLine();\n String[] words = userInput.split(\" \", 2);\n try {\n return new Command(words[0].toLowerCase(), words[1]);\n } catch (ArrayIndexOutOfBoundsException e) {\n return new Command(words[0].toLowerCase(), Command.BLANK_DESCRIPTION);\n }\n }",
"public String readCommand() {\n return scanner.nextLine();\n }",
"public static String KeyboardScan(){\n\n System.out.println(\"Enter a command : \");\n Scanner sc = new Scanner(System.in);\n String command = sc.next().toLowerCase();\n if(command.equals(\"help\") || command.equals(\"exit\") || command.equals(\"adduser\") || command.equals(\"edituser\") || command.equals(\"removeuser\") || command.equals(\"listusers\") || command.equals(\"addcar\") || command.equals(\"editcar\") || command.equals(\"removecar\") || command.equals(\"listcars\") || command.equals(\"rentcar\") || command.equals(\"returncar\") || command.equals(\"listrents\") || command.equals(\"saveusers\") || command.equals(\"restoreusers\") || command.equals(\"serialusers\" )|| command.equals(\"saverents\") || command.equals(\"loadrents\") || command.equals(\"savecars\") || command.equals(\"loadcars\") || command.equals(\"saveall\") || command.equals(\"loadall\")) {\n return command;\n } else {\n return \"error\";\n }\n\n }",
"private String getUserCommand(ArrayList<String> parameters) {\n return parameters.get(POSITION_PARAM_COMMAND);\n }",
"String getCommand(){\n\t\tString command=\"\";\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tcommand = br.readLine();\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Somethinf went wrong with the system input!! Please try again.\");\n\t\t}\n\t\treturn command;\n\t}",
"Commands getCommandes();",
"public String readCommand() {\n String input = in.nextLine();\n while (input.trim().isEmpty()) {\n input = in.nextLine();\n }\n return input;\n }",
"public static void listAllCommands(){\n printLine();\n System.out.println(\" Hello there! Here are all the available commands and their respective formats:\");\n System.out.println(\" To add a deadline: \\\"deadline {Name of task} /by {date} \\\"\");\n System.out.println(\" To add an event: \\\"event {Name of task} /at {date} \\\" \\\");\");\n System.out.println(\" To add an item in todo: \\\"todo {Name of task}\\\" \");\n System.out.println(\" To list out all tasks that you have entered: \\\"list\\\"\");\n System.out.println(\" To filter task by date: \\\"list {date}\\\"\");\n System.out.println(\" To mark a task as completed: \\\"done {index of task in list}\\\"\");\n System.out.println(\" To delete a task: \\\"delete {index of task in list}\\\"\");\n System.out.println(\" To find a task: \\\"find {keyword to be searched }\\\"\");\n printLine();\n }",
"java.util.List<java.lang.String>\n getCommandList();",
"public List<String> getCommands()\n\t{\n\t\treturn commands;\n\t}",
"public String[] nextCommand() {\r\n String[] result = null;\r\n if (sc.hasNextLine()) {\r\n String temp = sc.next();\r\n if (temp.equals(\"insert\")) {\r\n result = new String[3];\r\n result[0] = \"insert\";\r\n temp = sc.nextLine().trim();\r\n result[1] = temp.split(\"<SEP>\")[0];\r\n result[2] = temp.split(\"<SEP>\")[1];\r\n }\r\n else if (temp.equals(\"remove\")) {\r\n result = new String[3];\r\n result[0] = \"remove\";\r\n result[1] = sc.next();\r\n result[2] = sc.nextLine().trim();\r\n }\r\n else if (temp.equals(\"print\")) {\r\n result = new String[2];\r\n result[0] = \"print\";\r\n result[1] = sc.nextLine().trim();\r\n }\r\n else {\r\n sc.nextLine();\r\n }\r\n return result;\r\n }\r\n return null;\r\n }",
"private ConsoleCommand[] registerCommands(){\r\n\t\tHelpCommand help = new HelpCommand(this.application, \"Help\", \"?\");\r\n\t\t\r\n\t\tConsoleCommand[] commands = {\r\n\t\t\t\tnew WebServicesCommand(this.application, \"WebService\"),\r\n\t\t\t\tnew ScannerCommand(this.application, \"Scanner\"),\r\n\t\t\t\tnew ShowConfigCommand(this.application, \"System.Config\", \"Config\"),\r\n\t\t\t\tnew ShowStatsCommand(this.application, \"System.Stats\", \"Stats\"),\r\n\t\t\t\tnew ShutdownCommand(this.application, \"System.Shutdown\", \"Exit\", \"Shutdown\"),\r\n\t\t\t\tnew DisableUserCommand(this.application, \"User.Disable\"),\r\n\t\t\t\tnew EnableUserCommand(this.application, \"User.Enable\"),\r\n\t\t\t\tnew ListUsersCommand(this.application, \"User.List\"),\r\n\t\t\t\tnew SetPasswordCommand(this.application, \"User.SetPassword\"),\r\n\t\t\t\tnew UnlockUserCommand(this.application, \"User.Unlock\"),\r\n\t\t\t\tnew AddUserCommand(this.application, \"User.Add\"),\r\n\t\t\t\tnew ShowEventsCommand(this.application, \"ShowEvents\"),\r\n\t\t\t\tnew TaskListCommand(this.application, \"Task.List\"),\r\n\t\t\t\tnew TaskStopCommand(this.application, \"Task.Stop\"),\r\n\t\t\t\tnew EventLogLastCommand(this.application, \"EventLog.Last\"),\r\n\t\t\t\tnew EventLogViewCommand(this.application, \"EventLog.View\"),\r\n\t\t\t\thelp\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\tdefaultCommand = help;\r\n\t\thelp.setCommands(commands);\r\n\t\t\r\n\t\treturn commands;\r\n\t}",
"public SortedMap<String, ShellCommand> commands();",
"public static String allCommands() \n {\n String commandWords = \"\";\n for(CommandWord command : CommandWord.values()) {\n commandWords += command + \" \";\n }\n return commandWords;\n }",
"public static String inputCommand() {\n String command;\n Scanner in = new Scanner(System.in);\n\n command = in.nextLine();\n\n return command;\n }",
"public void getCommand() {\n\t\t\n\t\tSystem.out.println(\"Enter a command:\");\n\t\tString Input = reader.nextLine(); //takes the user's input and places it in String Input\n\t\t\n\t\t//in the collection of commands, will run loop once for each item in that collection and \n\t\t//stores the item it is looking in the variable created\n\t\tfor (Commandable command : Commands) { \n\t\t\t\n\t\t\tif (command.matchCommand(Input)) {\n\t\t\t\t\n\t\t\t\tcommand.doCommand();\n\t\t\t\treturn;\t//this ends the method to break out of the loop\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Command not recognized\");\n\t}",
"public void command() {\n List<String> commands = new ArrayList<>();\n commands.add(\": start\");\n commands.add(\": exit\");\n commands.add(\": help\");\n commands.add(\": commands\");\n\n for (String command : commands) {\n System.out.println(command);\n }\n System.out.println();\n }",
"public static String getCommand(String userInput) {\n String[] components = userInput.split(\" \", 2);\n return components[0];\n }",
"public Command getCommand(String userInput) {\n return this.parser.parse(userInput);\n }",
"private void getCommand(String cmlet) {\n\t\tSystem.out.println(\"Command Version\");\n\t\tSystem.out.println(\"----------- -------\");\n\t\tSystem.out.println(\" Exit 1.0\");\n\t\tSystem.out.println(\" Get-Host 1.0\");\n\t\tSystem.out.println(\" Get-Command 1.0\");\n\t\tSystem.out.println(\" Write-Host 1.0\");\n\t}",
"public byte[] getCmdString() {\n \t\t\n \t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \t\tString strCmd = null;\n \t\tbyte[] byteCmd = null; \t\t\n \t\t\n \t\tSystem.out.print(\"bash$ \");\n \t\ttry {\n\t\t\tstrCmd = br.readLine();\t\n\t\t\tbyteCmd = new byte[ strCmd.length() ]; \n\t\t\tbyteCmd = strCmd.getBytes(\"UTF-8\");\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\tSystem.out.println(\"caught exception.. \");\n\t\t}\n \t\t \t\t \t\t\n \t\treturn byteCmd; \t\n \t}",
"public String Command() {\n\treturn command;\n }",
"public static ArrayList<String> commandList() {\n\r\n\t\tArrayList<String> commands = new ArrayList<String>();\r\n\r\n\t\tcommands.add(\"/HELP\");\r\n\t\tcommands.add(\"/QUIT\");\r\n\t\tcommands.add(\"/REMOVE\");\r\n\t\tcommands.add(\"/BAN\");\r\n\t\tcommands.add(\"/BANIP\");\r\n\t\tcommands.add(\"/REMOVEIP\");\r\n\t\tcommands.add(\"/CLEAR\");\r\n\t\tcommands.add(\"/SHOW\");\r\n\t\tcommands.add(\"/WARN\");\r\n\r\n\t\treturn commands;\r\n\t}",
"public static String getCommandString() {\n String string = \"\";\n for (String validCommand : validCommands.keySet()) {\n string += \" \" + validCommand;\n }\n return string;\n }",
"int getCmd();",
"public String getCommand() {\n if (words.length == 0) {\n return NO_INPUT;\n }\n return words[0].toLowerCase();\n }",
"Commands getIf_commands();",
"protected String getCommand() {\n\treturn \"USER_LOGIN\";\n }",
"public String getNextCommand() {\n System.out.println(\"Left, Right, Advance <n>, Quit , Help: \");\n return scanner.nextLine();\n }",
"private Command getCommandFromConversationManager(String userInput) throws DukeException {\n conversationManager.converse(userInput);\n return conversationManager.getCommand();\n }",
"public Map<String, String> getCommands() {\n return commands;\n }",
"public abstract String getCommand();",
"public ArrayList<CommandOfService> getMyCommand() throws Exception {\n // We retrieve the current user\n Session sessionUser = Session.getInstance();\n User currentUser = sessionUser.getCurrentUser();\n // We ask the DAO to retrieve the services of the user\n return DAO.getServiceBought(currentUser);\n }",
"public String[] getCommands() {\n int len = null == args ? 1 : 1 + args.length;\n List<String> cmds = new ArrayList<>(len);\n cmds.add(command);\n for (CommandArgument arg : args) {\n String[] quotedArgs = arg.getQuotedArgument();\n for (String quotedArg : quotedArgs) {\n cmds.add(quotedArg);\n }\n }\n return (String[]) CollectionUtil.collection2Array(cmds);\n }",
"@Override\n\tpublic String toString()\n\t{\n\t\tString result = \"\";\n\t\tfor(String c : commands)\n\t\t\tresult += c + '\\n';\n\t\treturn result;\n\t}",
"public String getCommand() { return command; }",
"private void askUser()\n { \n System.out.println(\"What is your command?\");\n\n String command = scanner.nextLine();\n commandPrompt(command);\n }",
"List<CommandInfo> list();",
"public List<Command> getCommands() {\n return commands;\n }",
"public String showAll()\n {\n StringBuilder commandList = new StringBuilder();\n \n for(String command : validCommands.keySet()) \n {\n commandList.append( command + \" \" );\n } //for\n \n return commandList.toString();\n }",
"List<String> getCommandDescription();",
"public boolean specialCommand(String userinput){\n return (userinput.equals(\"get\")) || (userinput.equals(\"dir\"));\n }",
"public static CommandList getConsoleCommands() {\n\t\treturn console.commands;\n\t}",
"public String executeGameCommands(ListOfCommands listOfCommands){return \"\";}",
"java.lang.String getCommandName();",
"private void getGameCommands(){\n\n }",
"public String commandLine() {\n String command = \"\";\n for (String arg : builder.command()) {\n command += arg + ' ';\n }\n if (command.endsWith(\" \")) {\n command = command.substring(0, command.length() - 1);\n }\n return command;\n }",
"public String getCommand() {\n\t\tString[] lines = commandLine.getText().split(\"\\n\");\n\t\treturn lines[commandLine.getLineCount() - 2];\n\t}",
"public static CommandList getChatCommands() {\n\t\treturn listener.cmds;\n\t}",
"public String getGameCommands(){return \"\";}",
"public String getCommand()\r\n\t{\r\n\t\treturn command;\r\n\t}",
"public CommandList getBuiltInCommands() {\n return this.commands;\n }",
"String getUserInput();",
"Optional<String> command();",
"public static boolean commands(String userInput) {\n\t\tboolean isCmdValid = false;\n\t\tList<String> validCommands = new ArrayList<>();\n\t\tvalidCommands.add(\"rules\");\n\t\tvalidCommands.add(\"giveall\");\n\t\t\n\t\t// Find if command is valid\n\t\tfor (String cmd: validCommands) {\n\t\t\tif (userInput.equalsIgnoreCase(cmd.trim())) {\n\t\t\t\tisCmdValid = true;\n\t\t\t\t// If cmd valid, execute the command\n\t\t\t\tswitch (validCommands.indexOf(cmd)) {\n\t\t\t\t\n\t\t\t\tcase 0:\n\t\t\t\t\tGameLauncher.showGameRules();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tGameLauncher.giveAll();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isCmdValid;\n\t}",
"public String getCommand() {\r\n return command;\r\n }",
"private void retriveCommand(){\n\t\tdirections.add(\"Turn left.\");\n\t\tdirections.add(\"Walk 20 meters and turn right.\");\n\t\tdirections.add(\"Arrive destination.\");\n\t}",
"@Override\r\n\t\tpublic SortedMap<String, ShellCommand> commands() {\n\t\t\treturn null;\r\n\t\t}",
"public static String getCommand(String cmd) throws IOException {\n Scanner s = new Scanner(Runtime.getRuntime().exec(cmd).getInputStream()).useDelimiter(\"\\\\A\");\n return s.hasNext() ? s.next() : \"\";\n }",
"@RequestMapping(value=\"/ask\", method = RequestMethod.POST)\r\n\tpublic List<Message> ask(@AuthenticationPrincipal User activeUser, @RequestParam String command) {\r\n\t\tLOGGER.debug(\"command : {}\", command);\r\n\t\tList<Message> result = null;\r\n\t\ttry {\r\n\t\t\tString[] split = command.split(\" \");\r\n\t\t\tswitch (split[0]) {\r\n\t\t\tcase \"echo\" : result = service.echo(command); break;\r\n\t\t\tcase \"ls\" : result = service.ls(activeUser.getUsername(), command); break;\r\n\t\t\tcase \"ts\" : result = service.ts(activeUser.getUsername(), command); break;\r\n\t\t\tcase \"go\" : result = service.go(activeUser.getUsername(), command); break;\r\n\t\t\tdefault: result = new ArrayList<Message>();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tresult = Arrays.asList(new Message(e.getMessage()));\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"int getCommand();",
"public String getUserInput() {\n\t\tString input;\n\t\tinput = this.console.next();\n\t\treturn input;\n\t}",
"private void showHelp(CommandSender sender) {\n StringBuilder user = new StringBuilder();\n StringBuilder admin = new StringBuilder();\n\n for (Command cmd : commands.values()) {\n CommandInfo info = cmd.getClass().getAnnotation(CommandInfo.class);\n if(!PermHandler.hasPerm(sender, info.permission())) continue;\n\n StringBuilder buffy;\n if (info.permission().startsWith(\"dar.admin\"))\n buffy = admin;\n else \n buffy = user;\n \n buffy.append(\"\\n\")\n .append(ChatColor.RESET).append(info.usage()).append(\" \")\n .append(ChatColor.YELLOW).append(info.desc());\n }\n\n if (admin.length() == 0) {\n \tMessenger.sendMessage(sender, \"Available Commands: \"+user.toString());\n } else {\n \tMessenger.sendMessage(sender, \"User Commands: \"+user.toString());\n \tMessenger.sendMessage(sender, \"Admin Commands: \"+admin.toString());\n }\n }",
"public String getCommand(){\n return command;\n }",
"Commands createCommands();",
"public String getCmd() {\r\n return cmd;\r\n }",
"public String getCommand() {\n return command;\n }",
"public String getCommand() {\n return command;\n }",
"public void processCommand(String userInput){\n if (userInput.contains(\" \")){ \n processSingleToken(userInput.split(\" \")); //Splits strings based on \" \" \n }\n \n else{\n List<String> tempStore = new ArrayList<String>();\n tempStore.add(userInput);\n String[] token = tempStore.toArray(new String[tempStore.size()]);\n processSingleToken(token);\n }\n }",
"public String getCommand() {\n return this.command;\n }",
"public ArrayList<Command> getCommands(){\n\t\treturn commands;\n\t}",
"private void commandCheck() {\n\t\t//add user command\n\t\tif(cmd.getText().toLowerCase().equals(\"adduser\")) {\n\t\t\t/*\n\t\t\t * permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\t * There will be more user level commands added in version 2, like changing rename to allow a\n\t\t\t * user to rename themselves, but not any other user. Admins can still rename all users.\n\t\t\t */\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\taddUser();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//delete user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"deluser\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tdelUser();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t};\n\t\t}\n\t\t//rename user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"rename\")) {\n\t\t\t//permissions check: if user is an admin, allow the user o chose a user to rename.\n\t\t\t//If not, allow the user to rename themselves only.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\trename(ALL);\n\t\t\t}\n\t\t\telse {\n\t\t\t\trename(SELF);\n\t\t\t}\n\t\t}\n\t\t//promote user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"promote\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tpromote();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//demote user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"demote\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tdemote();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//the rest of the commands are user level, no permission checking\n\t\telse if(cmd.getText().toLowerCase().equals(\"ccprocess\")) {\n\t\t\tccprocess();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"cprocess\")) {\n\t\t\tcprocess();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"opentill\")) {\n\t\t\topenTill();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"closetill\")) {\n\t\t\tcloseTill();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"opendrawer\")) {\n\t\t\topenDrawer();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"sale\")) {\n\t\t\tsale();\n\t\t}\n\t\t//if the command that was entered does not match any command, return an error.\n\t\telse {\n\t\t\terror(CMD_NOT_FOUND);\n\t\t}\n\t}",
"private void extractCommand() throws IllegalCommandException {\n if (userInput.contentEquals(COMMAND_WORD_BYE)) {\n commandType = CommandType.BYE;\n } else if (userInput.startsWith(COMMAND_WORD_LIST)) {\n commandType = CommandType.LIST;\n } else if (userInput.startsWith(COMMAND_WORD_DONE)) {\n commandType = CommandType.DONE;\n } else if (userInput.startsWith(COMMAND_WORD_TODO)) {\n commandType = CommandType.TODO;\n } else if (userInput.startsWith(COMMAND_WORD_DEADLINE)) {\n commandType = CommandType.DEADLINE;\n } else if (userInput.startsWith(COMMAND_WORD_EVENT)) {\n commandType = CommandType.EVENT;\n } else if (userInput.startsWith(COMMAND_WORD_DELETE)) {\n commandType = CommandType.DELETE;\n } else if (userInput.startsWith(COMMAND_WORD_FIND)) {\n commandType = CommandType.FIND;\n } else if (userInput.contentEquals(COMMAND_WORD_HELP)) {\n commandType = CommandType.HELP;\n } else {\n throw new IllegalCommandException();\n }\n }",
"public Command[] readCommands() {\n\t\tList<Command> result = new ArrayList<Command>();\n\t\tCommand next = null;\n\t\tdo {\n\t\t\tnext = readCommand();\n\t\t\tif (next!=null) {\n\t\t\t\tresult.add(next);\n\t\t\t}\n\t\t} while (next!=null);\n\t\treturn (Command[])result.toArray(new Command[0]);\n }",
"public String getCommand() {\n String command = \"\";\n switch (turnCount) {\n case 0:\n command = \"NAME Bot0\";\n break;\n case 1:\n command = \"PASS\";\n break;\n case 2:\n command = \"HELP\";\n break;\n case 3:\n command = \"SCORE\";\n break;\n case 4:\n command = \"POOL\";\n break;\n default:\n command = \"H8 A AN\";\n break;\n }\n turnCount++;\n return command;\n }",
"public static String[] getCommands(String root) {\n\t\treturn commands.get(root).toArray(new String[1]);\n\t}",
"public String parseShortcutCommands(String userInput) {\n HashMap<String, String> shortcutCommandsWithDetails = new HashMap<>();\n shortcutCommandsWithDetails.put(\"a\", \"add\");\n shortcutCommandsWithDetails.put(\"e\", \"edit\");\n shortcutCommandsWithDetails.put(\"l\", \"list\");\n shortcutCommandsWithDetails.put(\"dn\", \"done\");\n shortcutCommandsWithDetails.put(\"dl\", \"delete\");\n shortcutCommandsWithDetails.put(\"v\", \"view\");\n shortcutCommandsWithDetails.put(\"ex\", \"exit\");\n shortcutCommandsWithDetails.put(\"l3\", \"list i/HIGH\");\n shortcutCommandsWithDetails.put(\"l2\", \"list i/MEDIUM\");\n shortcutCommandsWithDetails.put(\"l1\", \"list i/LOW\");\n shortcutCommandsWithDetails.put(\"lw\", \"list f/WEEK\");\n shortcutCommandsWithDetails.put(\"ld\", \"list f/DAY\");\n shortcutCommandsWithDetails.put(\"la\", \"list f/ALL\");\n String actualInputMeaning = userInput;\n if (shortcutCommandsWithDetails.get(actualInputMeaning) != null) {\n actualInputMeaning = shortcutCommandsWithDetails.get(actualInputMeaning);\n }\n return actualInputMeaning;\n }",
"private void acceptCommands() {\n\t\tScanner input = new Scanner(System.in);\n\t\tInteractiveCommandParser commandParser = new InteractiveCommandParser(\n\t\t\t\tinput, this);\n\t\tcommandParser.readCommands(); // blocking command reader\n\t}",
"@Override\r\n\tpublic String getCOMMAND() {\n\t\treturn COMMAND;\r\n\t}",
"public String \n getCommand() \n {\n return pCommand;\n }",
"private void customCommands(MessageEvent message) {\r\n String command = message.getMessage();\r\n \r\n if (!reservedCommands.contains(command)) {\r\n String[]info;\r\n info = manager.getCommandFromDatabase(command, message.getChannel().getName());\r\n\r\n //checks if the command is in custom mod commands\r\n if (info[1].matches(\"-m\")) {\r\n if (message.getChannel().getOps().contains(message.getUser())) {\r\n message.getChannel().send().message(info[0]);\r\n } \r\n else {\r\n message.respond(\"You're not allowed to use this command.\");\r\n }\r\n }\r\n //checks if the command is in the custom commands available to everyone\r\n else if (info[1].matches(\"-e\")) {\r\n message.getChannel().send().message(info[0]);\r\n } \r\n else {\r\n message.respond(\"No such command exists\");\r\n }\r\n }\r\n }",
"public static void helpCommand(){\n\n System.out.println(\"--------list of controls-------\");\n System.out.println(\"'help' : display the list of control\");\n System.out.println(\"'exit' : for quit the app /n\");\n System.out.println(\"'adduser' : you can add user with this command,<fistname>,<lastname>,<country>,<departement>,<age>\");\n System.out.println(\"'edituser' : you can edit an user with this command, <firstname>,<lastname>\");\n System.out.println(\"'removeuser' : you can remove an user with this command, <firstanme>,<lastname>\");\n System.out.println(\"'listusers' : display all of users\");\n System.out.println(\"'addcar' : add a car to the list, <brand>,<model>,<ref>,<year>\");\n System.out.println(\"'editcar' : use this command for edit a car, <ref>\");\n System.out.println(\"'removecar' : use this command for remove a car\");\n System.out.println(\"'listcars' : display all the cars\");\n System.out.println(\"'rentcar' : command for rent a car\");\n System.out.println(\"'returncar' : command for return a car\");\n System.out.println(\"'listrent' : display the list of rents\");\n System.out.println(\"'saveusers' : use this command for save your users file\");\n System.out.println(\"'restoreusers' : use this command open your save users file\");\n System.out.println(\"'serialusers' : use this command serialize object users\");\n System.out.println(\"'saverents' : use this command save the list of rents in file\");\n System.out.println(\"'loadrents' : use this command load the list from file\");\n System.out.println(\"'savecars' : use this command for save the list of cars in a file\");\n System.out.println(\"'loadcars' : use this command for import the list from file \");\n System.out.println(\"'saveall' : use this command for save all the list in a file\");\n System.out.println(\"'loadall' : use this command for import all the list from file\");\n System.out.println(\"----------------------------------\");\n\n }",
"java.lang.String getCommand(int index);",
"public String getCommand() {\n\n return command;\n }",
"private static Object command(String userCommandLine[]) {\n\t\tint size = userCommandLine.length;\n\n\t\tswitch(userCommandLine[0].trim().toUpperCase()) {\n\n\t\t/*\n\t\t * INFORMATION\n\t\t *\n\t\t * Add executecommand on each case\n\t\t * but if it dosn't yet implemented\n\t\t * comment the command allow to user\n\t\t * on the variable string[] commands\n\t\t *\n\t\t */\n\t\t\n\t\t/* ************************************\n\t\t * standard commands\n\t\t *************************************/\n\t\tcase \"QUIT\": return ExecuteCommand.exit();\n\t\tcase \"EXIT\": return ExecuteCommand.exit();\n\t\tcase \"HELP\": help( (size > 1) ? userCommandLine[1].trim() : \"\"); break;\n\t\tcase \"VAR\": ExecuteCommand.showVar(); break;\n\t\tcase \"DEL\" : ExecuteCommand.delVar(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\tcase \"RENAME\": ExecuteCommand.renameVar(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\tcase \"STARTSPARK\": ExecuteCommand.startSpark(); break;\n\t\tcase \"STOPSPARK\": ExecuteCommand.stopSpark(); break;\n\t\t\n\t\t/* ************************************\n\t\t * database\n\t\t *************************************/ \n\t\t\n\t\t/* open database(name: String, filesystem: FileSystem, conf: Config) */\n\t\tcase \"OPEN\" : ExecuteCommand.openDB(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* close database */\n\t\tcase \"CLOSE\" : ExecuteCommand.closeDB(); break;\n\t\t/* restart database */\n\t\tcase \"RESTART\" : ExecuteCommand.restartDB(); break;\n\t\t/* show list of TimeSeries */\n\t\tcase \"SHOW\" : ExecuteCommand.showTS(); break;\n\t\t/* drop a timeSeries */\n\t\tcase \"DROP\" : ExecuteCommand.dropTS(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* exist a timeSeries with name ... */\n\t\tcase \"EXIST\" : ExecuteCommand.existTS(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* get a timeSeries */\n\t\tcase \"GET\" : ExecuteCommand.getTS(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* create a timeSeries */\n\t\tcase \"CREATE\" : ExecuteCommand.createTS2DB(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t\n\t\t\n\t\t/* ************************************\n\t\t * Time Series\n\t\t *************************************/\n\t\t\n\t\t/* create the timeSerie schema */\n\t\tcase \"CREATE_SCHEMA\" : ExecuteCommand.createSchema(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* show the schema of the timeSerie */\n\t\tcase \"SHOW_SCHEMA\" : ExecuteCommand.showSchema(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* get the schema of the timeSerie*/\n\t\tcase \"GET_SCHEMA\" : ExecuteCommand.getSchema(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* insert data at a certain file */\n\t\tcase \"INSERT\" : ExecuteCommand.insertDataFromFile(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* select timeSerie Range from timeStart to timeEnd */\n\t\tcase \"SELECT_RANGE\": break;\n\t\t/* select a column of a timeserie */\n\t\tcase \"SELECT\": ExecuteCommand.selectColumn(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* find max value of timeSerie */\n\t\tcase \"MAX_VALUE\" : ExecuteCommand.maxValue(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* find min value of timeSerie */\n\t\tcase \"MIN_VALUE\" : ExecuteCommand.minValue(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* print first five values */\n\t\tcase \"PRINT\" : ExecuteCommand.printHead(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t\t\t\n\t\t\n\t\t/* ************************************\n\t\t * Transformations\n\t\t *************************************/\n\t\t\n\t\t/* power transformation of timeSerie: square root */\n\t\tcase \"SQRT_TRANSFORM\" : break;\n\t\t/* power transformation of timeSerie: logarithm */\n\t\tcase \"LOG_TRANSFORM\" : break;\n\t\t/* average of timeSerie */\n\t\tcase \"MEAN\" : break;\n\t\t/* shifting timeSerie with coefficient */\n\t\tcase \"SHIFT\" : break;\n\t\t/* scaling timeSerie with coefficient */\n\t\tcase \"SCALE\" : break;\n\t\t/* standard deviation of timeSeries */\n\t\tcase \"STD_DEVIATION\" : break;\n\t\t/* normalize the TimeSerie */\n\t\tcase \"NORMALIZE\" : break;\n\t\t/* search the first time occurs */\n\t\tcase \"SEARCH\" : break;\n\t\t/* moving average */\n\t\tcase \"MOVING_AVERAGE\" : break;\n\t\t/* DFT of timeSerie */\n\t\tcase \"DFT\" : break;\n\t\t/* DTW of 2 timeSerie (similarity between two timeseries) */\n\t\tcase \"DTW\" : break;\n\t\t\n\t\t/* ************************************\n\t\t * Compression \n\t\t *************************************/\n\n\t\t/* compress a timeserie */\n\t\tcase \"COMPRESSION\" : ExecuteCommand.compression(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* decompress a timeserie */\n\t\tcase \"DECOMPRESSION\" : break;\n\n\t\t/* ************************************\n\t\t * indexing \n\t\t *************************************/\n\t\t\n\t\t/* create index for many ts */\n\t\tcase \"CREATE_INDEX\" : ExecuteCommand.createIndex(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* return neighbors of a ts from the create index */\n\t\tcase \"NEIGHBORS\" : break;\n\t\t/* ************************************\n\t\t * clustering \n\t\t *************************************/\n\t\t\n\t\t/* ************************************\n\t\t * Application \n\t\t *************************************/\n\t\tcase \"CREATE_DNA\" : break;\n\t\tcase \"DNA_SIMILARITY\" : ExecuteCommand.dnApplication(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t\n\t\t\t\t\n\t\tdefault: System.out.println(\"oups it may have a code error\");\n\t\t}\n\n\t\treturn true;\n\t}",
"public String[] getCommands (int cmdType)\n\t{\n\t\tif (CMD_CREATE_USER == cmdType)\n\t\t\treturn new String[]\n\t\t\t{\n\t\t\t\"CREATE USER compiere;\",\t\t\t\n\t\t\t};\n\t\t//\n\t\tif (CMD_CREATE_DATABASE == cmdType)\n\t\t\treturn new String[]\n\t\t\t{\n\t\t \"CREATE DATABASE compiere OWNER compiere;\",\n\t\t\t\"GRANT ALL PRIVILEGES ON compiere TO compiere;\"\t,\n\t\t\t\"CREATE SCHEMA compiere;\",\n\t\t\t\"SET search_path TO compiere;\"\n\t\t\t};\n\t\t//\n\t\tif (CMD_DROP_DATABASE == cmdType)\n\t\t\treturn new String[]\n\t\t\t{\n\t\t\t\"DROP DATABASE compiere;\"\n\t\t\t};\n\t\t//\n\t\treturn null;\n\t}",
"private void showMenu() {\n\t Scanner sc = new Scanner(System.in);\n\t Arguments argument = Arguments.INVALID;\n\t System.out.println(\"Enter command of your choice in the correct format\");\n\t do\n\t {\n\t \tString command = sc.nextLine();\n\t \tString[] arguments = command.split(\" +\");\n\t \targument = validateAndReturnType(arguments);\n\t \tswitch(argument) {\n\t\t \tcase INCREASE:\n\t\t \t\tincrease(arguments);\n\t\t \t\tbreak;\n\t\t \tcase REDUCE:\n\t\t \t\treduce(arguments);\n\t\t \t\tbreak;\n\t\t\t\tcase COUNT:\n\t\t\t\t\tcount(arguments);\n\t\t\t\t\tbreak;\n\t\t\t\tcase INRANGE:\n\t\t\t\t\tinRange(arguments);\n\t\t\t\t\tbreak;\n\t\t\t\tcase NEXT:\n\t\t\t\t\tnext(arguments);\n\t\t\t\t\tbreak;\n\t\t\t\tcase PREVIOUS:\n\t\t\t\t\tprevious(arguments);\n\t\t\t\t\tbreak;\n\t\t\t\tcase QUIT:\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\tcase INVALID:\n\t\t\t\t\tSystem.out.println(\"Please enter a valid command\");\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Invalid command. Enter a command in the correct format\");\n\t \t}\n\t } while(argument != Arguments.QUIT);\n\t}",
"private String getCommandWithPrompt() {\n print(\"dbg<\" + pc + getLabel(pc) + \">\");\n return nextLine();\n }",
"@NotNull\n private String getCommandsText() {\n final StringBuilder builder = new StringBuilder();\n\n HashMap<VcsRoot, ArrayList<VirtualFile>> checked = getCheckedFiles();\n for (Map.Entry<VcsRoot, ArrayList<VirtualFile>> entry : checked.entrySet()) {\n final VirtualFile root = entry.getKey().getPath();\n if (root == null) {\n continue;\n }\n\n builder.append(IgnoreBundle.message(\n \"dialog.untrackFiles.commands.repository\",\n root.getCanonicalPath()\n )).append(\"\\n\");\n\n for (VirtualFile file : entry.getValue()) {\n builder.append(IgnoreBundle.message(\n \"dialog.untrackFiles.commands.command\",\n Utils.getRelativePath(root, file)\n )).append(\"\\n\");\n }\n\n builder.append(\"\\n\");\n }\n return builder.toString();\n }",
"private List<Command> getCommands(String name) {\r\n\t\tList<Command> result = new ArrayList<>();\r\n\t\tfor (Command command : commands) {\r\n\t\t\tif (command.name().equals(name) || command.aliases().contains(name)) {\r\n\t\t\t\tresult.add(command);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (LearnedCommand command : learnedCommands) {\r\n\t\t\tif (command.name().equals(name) || command.aliases().contains(name)) {\r\n\t\t\t\tresult.add(command);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}"
] | [
"0.78221494",
"0.77938527",
"0.749828",
"0.74333346",
"0.6991493",
"0.69333315",
"0.6920086",
"0.6869079",
"0.68689656",
"0.67908937",
"0.67852193",
"0.6759777",
"0.6731693",
"0.6726851",
"0.6715781",
"0.6695441",
"0.66421413",
"0.6635349",
"0.66084987",
"0.6603879",
"0.65436786",
"0.6530057",
"0.6508736",
"0.64648396",
"0.6395989",
"0.63590324",
"0.6356615",
"0.6351898",
"0.63318837",
"0.6329795",
"0.62696993",
"0.62575054",
"0.6242207",
"0.6239017",
"0.6236318",
"0.6236028",
"0.6223607",
"0.62076277",
"0.6204679",
"0.6162501",
"0.6148815",
"0.6146076",
"0.613673",
"0.613612",
"0.6117795",
"0.6116693",
"0.6114041",
"0.60892904",
"0.6078697",
"0.60606",
"0.6060278",
"0.60509163",
"0.6049957",
"0.6037849",
"0.60359794",
"0.6017293",
"0.60137534",
"0.60134906",
"0.60134476",
"0.59984624",
"0.5997183",
"0.5986869",
"0.5983235",
"0.5976567",
"0.59748864",
"0.5974463",
"0.59604156",
"0.59516096",
"0.59509104",
"0.5948857",
"0.59407824",
"0.5934524",
"0.5923624",
"0.59179044",
"0.5917612",
"0.59175074",
"0.591497",
"0.591497",
"0.5914756",
"0.5908512",
"0.5907544",
"0.59021443",
"0.5897922",
"0.5896261",
"0.58924186",
"0.5886723",
"0.58799255",
"0.58763725",
"0.585224",
"0.5849418",
"0.5842231",
"0.58388484",
"0.58328444",
"0.5831897",
"0.58299434",
"0.58233064",
"0.5810809",
"0.5798573",
"0.5778412",
"0.57692426"
] | 0.6148687 | 41 |
Match for if the entered user input contains special characters | public boolean isSpecialCharacter(String enteredCmd) {
Pattern regex = Pattern.compile("[%@#€]+");
Matcher m = regex.matcher(enteredCmd);
return m.matches();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean checkSpecialChars(String password) {\n return password.matches(\".*[()#$?!%/@].*\");\n //why does this not work? return password.matches(\"[()#$?!%/@]+\");\n }",
"@Test\n\tpublic void inputVoucher_is_alphanumeric(){\n\t\tString pattern = \"^[a-zA-Z0-9]*$\";\n\t\tvoucher.getInputVoucher().sendKeys(\"aaa aaaa 123\");\n\t\tSystem.out.println(voucher.getInputVoucher().getText().matches(pattern));\n\t\tAssert.assertEquals(voucher.getInputVoucher().getText().matches(pattern), true, \"input voucher code tidak alphanumeric\");\n\t}",
"@Test\n\tpublic void caseNameWithSpecialChar() {\n\t\tString caseName = \"le@d\";\n\t\ttry {\n\t\t\tCaseManagerValidator.isCharAllowed(caseName);\n\t\t} catch (ValidationException e) {\n\t\t}\n\t}",
"public static boolean hasSpecial(String characters ){\n \n // Pattern letter = Pattern.compile(\"[a-zA-z]\"); \n Pattern special = Pattern.compile (\"[//!@#$%&*()_+=|<>?{}\\\\[\\\\]~-]\");\n \n // Matcher hasLetter = letter.matcher(characters); \n Matcher hasSpecial = special.matcher(characters);\n\n // return hasLetter.find() && hasDigit.find() && hasSpecial.find();\n return (hasSpecial.find()); \n \n }",
"public static boolean hasSpecialAndLetters(String characters ){\n \n Pattern letter = Pattern.compile(\"[a-zA-z]\"); \n Pattern special = Pattern.compile (\"[//!@#$%&*()_+=|<>?{}\\\\[\\\\]~-]\");\n \n Matcher hasLetter = letter.matcher(characters); \n Matcher hasSpecial = special.matcher(characters);\n\n // return hasLetter.find() && hasDigit.find() && hasSpecial.find();\n return (hasSpecial.find()==true || hasLetter.find()==true); \n \n }",
"private boolean checkNameChar(String name) {\n\t\tString patternStr = \"[a-zA-Z]+\";\n\t\tPattern pattern = Pattern.compile(patternStr);\n\t\tMatcher matcher = pattern.matcher(name);\n\t\tboolean matchFound = matcher.matches();\n\t\treturn matchFound;\n\t}",
"public static boolean hasSpecialChar(String password) throws NoSpecialCharacterException\r\n {\r\n Pattern pattern = Pattern.compile(\"[a-zA-Z0-9]*\");\r\n Matcher matcher = pattern.matcher(password);\r\n if (matcher.matches())\r\n throw new NoSpecialCharacterException();\r\n return true;\r\n }",
"@Test //TEST FIVE\n void testSpecialCharactersRabbitName()\n {\n Rabbit_RegEx rabbit_Name = new Rabbit_RegEx();\n rabbit_Name.setRabbitName(\"Pot!at!*\"); //potat or potato w/out an o\n assertFalse(rabbit_Name.getRabbitName().matches(\"[A-Za-z-]*\"));\n }",
"public abstract boolean isSingleCharMatcher();",
"public static boolean isValidinput(String query){\r\n\t\tPattern regex = Pattern.compile(\"[$&+,:;=@#|]\");\r\n\t\tMatcher matcher = regex.matcher(query);\r\n\t\tif (matcher.find()){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t}",
"public Boolean hasSpecialCharacters(String string){\n //Check is the string has anything other than a-z and 0-9 case insensitive\n return Pattern.compile(\"[^a-z0-9 ]\", Pattern.CASE_INSENSITIVE)\n .matcher(string)\n .find();\n }",
"private boolean hasSpecialCharacters(String s) {\r\n\t\t\tif (s != s.replaceAll(\"([^A-Za-z0-9.,!?~`'\\\"% _-]+)\", \"\")) return true;\r\n\t\t\treturn false;\r\n\t}",
"private boolean validate(String s)\r\n\t{\r\n\t\tint i=0;\r\n\t\tchar[] s1=s.toLowerCase().toCharArray();\r\n\t\twhile(i<s1.length)\r\n\t\t{\r\n\t\t\tif(s1[i]=='*' || s1[i]=='?')\r\n\t\t\t\tbreak;\r\n\t\t\tif(s1[i]<'a' || s1[i]>'z') return false;\r\n\t\t\ti++;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"private boolean validWord(String word) {\n\t\tPattern p = Pattern.compile(\"[!@#$%&*()_+=|<>?{}\\\\[\\\\]~,;:/§.£/{}¨\\\"]\");\n\t\tMatcher m = p.matcher(word);\n\t\treturn !m.find();\n\t}",
"private boolean isOK(char ch) {\n if(String.valueOf(ch).matches(\"[<|\\\\[|\\\\-|\\\\||&|a-z|!]\")){\n return true;\n }\n return false;\n }",
"private boolean isValid(char input) {\n if (this.isLetter(input) || this.isDigit(input) || this.isOperator(input)\n || this.isIgnored(input)) {\n return true;\n } else return false;\n }",
"public boolean checkFormat(String username){\n\n ArrayList<Character> charList = new ArrayList<Character>();\n Collections.addAll(charList, '!', '$', '#', '@');\n\n //Check for special Character\n boolean containsSpecial = false;\n for(Character character: charList) {\n if (username.contains(Character.toString(character))) {\n containsSpecial = true;\n }\n }\n //Check for Letters\n int numberCharacters = 0;\n if(containsSpecial){\n for(int i=0; i<username.length();i++){\n String symbol = String.valueOf(username.charAt(i));\n\n //REGEX pattern Check\n Pattern pattern = Pattern.compile(\"[A-z]\");\n Matcher matcher = pattern.matcher(symbol);\n\n if(matcher.matches()){\n numberCharacters++;\n System.out.println(\"Match: \" + numberCharacters);\n }\n }\n }\n\n if(numberCharacters>2){\n return true;\n }\n else {\n return false;\n }\n }",
"boolean hasChar();",
"@Test\n public void givenFirstName_WhenSpChar_ShouldReturnFalse() {\n RegexTest valid = new RegexTest();\n boolean result = valid.firstName(\"Fat@ha\");\n Assert.assertEquals(false,result);\n }",
"public static boolean hasSpecialCharacters(String s) {\n if (s == null || s.trim().isEmpty()) {\n //if the string is empty return true\n return true;\n }\n //create a pattern that checks for characters which are not alphanumeric and are not a dot, dash, or comma\n Pattern p = Pattern.compile(\"[^A-Za-z0-9. ,]^-\");\n Matcher m = p.matcher(s);\n // boolean b = m.matches();\n boolean b = m.find();\n if (b){\n //return true, there is special characters\n return true;\n } else {\n //return false, there is no special characters\n return false;\n }\n }",
"@Test\n public void testIsStringOnlyAlphabetAndNumbersAndWhiteSpaces() {\n System.out.println(\"isStringOnlyAlphabetAndNumbersAndWhiteSpaces\");\n String input = \".%6gwdye\";\n boolean expResult = false;\n boolean result = ValidVariables.isStringOnlyAlphabetAndNumbersAndWhiteSpaces(input);\n assertEquals(expResult, result);\n }",
"public static boolean containsInvalidCharacterInLogin(String login) {\n\t\tString regex = \"[|\\\"&*=+'@#$\\\\%\\\\/?{}?:;<>,\\u00C0\\u00C1\\u00C2\\u00C3\\u00C4\\u00C5\\u00C6\\u00C7\\u00C8\\u00C9\\u00CA\\u00CB\\u00CC\\u00CD\\u00CE\\u00CF\\u00D0\\u00D1\\u00D2\\u00D3\\u00D4\\u00D5\\u00D6\\u00D8\\u0152\\u00DE\\u00D9\\u00DA\\u00DB\\u00DC\\u00DD\\u0178\\u00E0\\u00E1\\u00E2\\u00E3\\u00E4\\u00E5\\u00E6\\u00E7\\u00E8\\u00E9\\u00EA\\u00EB\\u00EC\\u00ED\\u00EE\\u00EF\\u00F0\\u00F1\\u00F2\\u00F3\\u00F4\\u00F5\\u00F6\\u00F8\\u0153\\u00DF\\u00FE\\u00F9\\u00FA\\u00FB\\u00FC\\u00FD\\u00FF]\";\n\t\tPattern p = Pattern.compile(regex);\n\t\tMatcher m = p.matcher(login);\n\t\treturn m.find();\n\t}",
"@Test //TEST SIX\n void testSpecialCharactersBreedName()\n {\n Rabbit_RegEx rabbit_breed = new Rabbit_RegEx();\n rabbit_breed.setBreedName(\"Champagne d'Argent\");\n assertFalse(rabbit_breed.getBreedName().matches(\"^[A-Za-z][a-zA-Z- ][a-zA-z- ]*\"));\n }",
"private boolean validDefinition(String definition) {\n\t\tPattern p = Pattern.compile(\"[@#$%&*_+=|<>{}\\\\[\\\\]~¨§£{}]\");\n\t\tMatcher m = p.matcher(definition);\n\t\treturn !m.find();\n\t}",
"public static boolean hasSpecialAndDigits(String characters ){\n \n Pattern digit = Pattern.compile(\"[0-9]\");\n Pattern special = Pattern.compile (\"[//!@#$%&*()_+=|<>?{}\\\\[\\\\]~-]\");\n \n Matcher hasDigit = digit.matcher(characters);\n Matcher hasSpecial = special.matcher(characters);\n \n \n return (hasDigit.find()==true || hasSpecial.find()==true); \n \n }",
"boolean hasHasCharacter();",
"public static boolean checkAllCharsUsingRegex(String input) {\n if (input.length() < 26) {\n return false;\n }\n //Even a single character is missing, return false\n String regex = \"(?i)(?=.*a)(?=.*b)(?=.*c)(?=.*d)(?=.*e)(?=.*f)\"\n + \"(?=.*g)(?=.*h)(?=.*i)(?=.*j)(?=.*k)(?=.*l)(?=.*m)(?=.*n)\"\n + \"(?=.*o)(?=.*p)(?=.*q)(?=.*r)(?=.*s)(?=.*t)(?=.*u)(?=.*v)\"\n + \"(?=.*w)(?=.*x)(?=.*y)(?=.*z).*\";\n\n if (input.matches(regex)) {\n return true;\n }\n return false;\n }",
"public boolean hasSpecial(){\n return (alg.containSpecial(input.getText().toString()));\n }",
"public static Boolean validateInput(String input) {\n\t\tString xInput = input.substring(0,1);\n\n\t\n\n\t\t\n\t\tboolean xIsLetter = Character.isLetter(xInput.charAt(0));\n\n\t\tif((!input.isEmpty()) || (!xIsLetter)) {\n\t\n\t\t\treturn false;\n\t\t} else {\n\n\t\t\treturn true; \n\t\t\t}\n\t\t}",
"public static String userInput()\r\n {\r\n Scanner link = new Scanner(System.in);\r\n String word = link.next();\r\n char[] chars = word.toCharArray();\r\n boolean checkWord = false; \r\n for(int i = 0; i < chars.length; i++)\r\n {\r\n char c = chars[i];\r\n if((c < 97 || c > 122))\r\n {\r\n checkWord = true;\r\n }\r\n }\r\n link.close();\r\n if(!checkWord)\r\n {\r\n return word;\r\n } \r\n else \r\n System.out.println(\"Not a valid input\");\r\n return null;\r\n }",
"public static boolean isValidInput(String str) {\n if (str != null && str.matches(\"^[a-zA-Z0-9_]*$\")){\n return true;\n }\n\n return false;\n }",
"public boolean isValidInput(String input) {\r\n\t\tif (input == null || input.isEmpty())\r\n\t\t\treturn false;\r\n\t\tString inputTokens[] = input.split(\" \");\r\n\t\tif (inputTokens.length < 2)\r\n\t\t\treturn false;\r\n\t\tfor (int i = 0; i < inputTokens.length; i++) {\r\n\t\t\tfor (int j = 0; j < inputTokens[i].length(); j++) {\r\n\t\t\t\tswitch (inputTokens[i].charAt(j)) {\r\n\t\t\t\tcase '!':\r\n\t\t\t\tcase '?':\r\n\t\t\t\tcase '@':\r\n\t\t\t\tcase '#':\r\n\t\t\t\tcase '*':\r\n\t\t\t\tcase '/':\r\n\t\t\t\tcase '<':\r\n\t\t\t\tcase '>':\r\n\t\t\t\tcase '&':\r\n\t\t\t\tcase '%':\r\n\t\t\t\tcase '~':\r\n\t\t\t\tcase ';':\r\n\t\t\t\tcase ':':\r\n\t\t\t\tcase '[':\r\n\t\t\t\tcase ']':\r\n\t\t\t\tcase '{':\r\n\t\t\t\tcase '}':\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}",
"public boolean noOtherSpecialChars(String password) {\n boolean noOtherSpecialCharsPresent = false;\n int otherSpecials = 0;\n String[] splitPW = password.split(\"\");\n\n for (String s : splitPW) {\n //add count, if special char is present\n if (s.matches(\"[^a-zA-Z0-9]\")) {\n otherSpecials++;\n //remove last count, if special char matches allowed chars\n if (s.matches(\"[()#$?!%/@]\")) {\n otherSpecials--;\n }\n }\n }\n noOtherSpecialCharsPresent = otherSpecials == 0;\n return noOtherSpecialCharsPresent;\n }",
"public abstract boolean matches(char c);",
"private void validCharachter() throws DisallowedCharachter {\n if (!test.equals(\"X\") && !test.equals(\"O\")) {\n throw (new DisallowedCharachter());\n }\n }",
"public static void main(String[] args) {\n String s = \"acdcb\", p = \"a*?b\";//true\n System.out.println(isMatch(s, p));\n }",
"public static Boolean Word(String arg){\n\t\tif(arg.matches(\"^[a-zA-ZåÅäÄöÖüÜéÉèÈ]*\")){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\t\n\t}",
"static boolean containsInvalidCharacters(String topic) {\n Matcher matcher = INVALID_CHARS_PATTERN.matcher(topic);\n return matcher.find();\n }",
"private boolean preTest(String str) {\n\t\treturn str.matches(\"^[\\\"A-Z][\\u0000-\\u0080]+$\");\n\t}",
"public boolean hasUnwantedChar(String name, String field) {\r\n\t\tboolean unwantedCharacter = false;\r\n\t\tchar checkName[] = name.toCharArray();\r\n\t\tif(field == \"names\") {\r\n\t\t\tint find = 0;\r\n\t\t\twhile(find < checkName.length) {\r\n\t\t\t\tswitch(checkName[find]) {\r\n\t\t\t\tcase 'A':case 'a':case 'B':case 'b':case 'C':case 'c':case 'D':case 'd':case 'E':case 'e':case 'F':case 'f':case 'G':case 'g':\r\n\t\t\t\tcase 'H':case 'h':case 'I':case 'i':case 'J':case 'j':case 'K':case 'k':case 'L':case 'l':case 'M':case 'm':case 'N':case 'n':\r\n\t\t\t\tcase 'O':case 'o':case 'P':case 'p':case 'Q':case 'q':case 'R':case 'r':case 'S':case 's':case 'T':case 't':case 'U':case 'u':\r\n\t\t\t\tcase 'V':case 'v':case 'W':case 'w':case 'X':case 'x':case 'Y':case 'y':case 'Z':case 'z':\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tunwantedCharacter = true;\r\n\t\t\t\t}\r\n\t\t\t\tif(unwantedCharacter == true)\r\n\t\t\t\t{\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t++find;\r\n\t\t\t}\t\r\n\t\t}else if(field == \"password & physical address\") {\r\n\t\t\tint find = 0;\r\n\t\t\twhile(find < checkName.length) {\r\n\t\t\t\tswitch(checkName[find]) {\r\n\t\t\t\tcase 'A':case 'a':case 'B':case 'b':case 'C':case 'c':case 'D':case 'd':case 'E':case 'e':case 'F':case 'f':case 'G':case 'g':\r\n\t\t\t\tcase 'H':case 'h':case 'I':case 'i':case 'J':case 'j':case 'K':case 'k':case 'L':case 'l':case 'M':case 'm':case 'N':case 'n':\r\n\t\t\t\tcase 'O':case 'o':case 'P':case 'p':case 'Q':case 'q':case 'R':case 'r':case 'S':case 's':case 'T':case 't':case 'U':case 'u':\r\n\t\t\t\tcase 'V':case 'v':case 'W':case 'w':case 'X':case 'x':case 'Y':case 'y':case 'Z':case 'z':\t\r\n\t\t\t\tcase '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8':case '9':case '0':case ' ':case '-':\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\t\r\n\t\t\t\t\tunwantedCharacter = true;\r\n\t\t\t\t}\r\n\t\t\t\tif(unwantedCharacter == true)\r\n\t\t\t\t{\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t++find;\r\n\t\t\t}\t\r\n\t\t}else if(field == \"email\") {\r\n\t\t\tint find = 0;\r\n\t\t\twhile(find < checkName.length) {\r\n\t\t\t\tswitch(checkName[find]) {\r\n\t\t\t\tcase 'A':case 'a':case 'B':case 'b':case 'C':case 'c':case 'D':case 'd':case 'E':case 'e':case 'F':case 'f':case 'G':case 'g':\r\n\t\t\t\tcase 'H':case 'h':case 'I':case 'i':case 'J':case 'j':case 'K':case 'k':case 'L':case 'l':case 'M':case 'm':case 'N':case 'n':\r\n\t\t\t\tcase 'O':case 'o':case 'P':case 'p':case 'Q':case 'q':case 'R':case 'r':case 'S':case 's':case 'T':case 't':case 'U':case 'u':\r\n\t\t\t\tcase 'V':case 'v':case 'W':case 'w':case 'X':case 'x':case 'Y':case 'y':case 'Z':case 'z':\t\r\n\t\t\t\tcase '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8':case '9':case '0':case '@':case '.':\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tunwantedCharacter = true;\r\n\t\t\t\t}\r\n\t\t\t\tif(unwantedCharacter == true)\r\n\t\t\t\t{\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t++find;\r\n\t\t\t}\r\n\t\t}else if(field == \"mobileNumber\") {\r\n\t\t\tint find = 0;\r\n\t\t\twhile(find < checkName.length) {\r\n\t\t\t\tswitch(checkName[find]) {\r\n\t\t\t\tcase '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8':case '9':case '0':case ' ':\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tunwantedCharacter = true;\r\n\t\t\t\t}\r\n\t\t\t\tif(unwantedCharacter == true)\r\n\t\t\t\t{\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t++find;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn unwantedCharacter;\r\n\t}",
"default Boolean validateInput(String input){\n if (input.contains(\"(\") || input.contains(\")\") || input.contains(\"[\") || input.contains(\"}\") || input.contains(\"{\") || input.contains(\"}\") )\n {\n return true;\n }else{\n return false;\n }\n }",
"public static boolean checkOperator(String inputChar){\r\n\t\tchar tempChar = inputChar.charAt(0);\r\n\t\t\r\n\t\tswitch(tempChar){\r\n\t\t\tcase '+': return true;\r\n\t\t\tcase '-': return true;\r\n\t\t\tcase '*': return true;\r\n\t\t\tcase '/': return true;\r\n\t\t\tcase '%': return true;\r\n\t\t\tcase '&': return true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"@Test\n public void shouldNotBeAbleToInputSpecialCharactersInTradeInValueField() {\n }",
"public static boolean lettersCheck(String name) {\r\n\t\treturn name.matches(\"^[\\\\p{L} .'-]+$\");\r\n\t}",
"public static String checkUsername(String in) {\n\t\tif (in.isEmpty())\r\n\t\t\treturn \"Username is empty\";\r\n\t\telse {\r\n\t\t\tPattern passPat = Pattern.compile(\"\\\\w*\");\r\n\t\t\tMatcher matchpass = passPat.matcher(in);\r\n\t\t\tif (!matchpass.matches()) {\r\n\t\t\t\treturn \"The username must only contain character and numeric\";\r\n\t\t\t} else\r\n\t\t\t\treturn null;\r\n\t\t}\r\n\t}",
"boolean checkChar(String s1, String s2);",
"public boolean checkForChar(String str) {\n\t\tif (str.contains(\"a\") || str.contains(\"A\") || str.contains(\"e\") || str.contains(\"E\")) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// TO DO\n\n\t\treturn false;\n\t}",
"@Override public boolean\r\n matches(String regex, CharSequence input) {\n return false;\r\n }",
"public boolean checkInput(String input){\n\t\t//make sure only input 0-9\n\t\tif(input.length() != 1){\n\t\t\treturn false;\n\t\t}\n\t\tchar c = input.charAt(0);\n\t\tif(!Character.isDigit(c)){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private boolean checkInputContent(String contents){\n try {\n char[] temC = contents.toCharArray();\n for (int i=0;i<temC.length;i++) {\n char mid = temC[i];\n if(mid>=48&&mid<=57){//数字\n continue;\n }\n if(mid>=65&&mid<=90){//大写字母\n continue ;\n }\n if(mid>=97&&mid<=122){//小写字母\n continue ;\n }\n// temp.replace(i, i+1, \" \");\n return false;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return true;\n }",
"private boolean containsOnlyASCII(String input) {\r\n\t\tfor (int i = 0; i < input.length(); i++) {\r\n\t\t\tif (input.charAt(i) > 127) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public boolean validarEntradaLetra(String letra) {\n\n\t\tPattern p = Pattern.compile(\"[a-zA-Z]{1,1}\");\n\n\t\tMatcher m = p.matcher(letra);\n\n\t\tif (m.matches() == false) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Letra inválida, favor insira uma letra válida!\");\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"private boolean isValidString(String str){\r\n\t\tString allowedChars=\"! \\\" # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ 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 [ \\\\ ] ^ _ ` 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\tfor(int i=0;i<str.split(\"\").length;i++){\r\n\t\t\tif(allowedChars.indexOf(str.split(\"\")[i]) == -1){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"boolean isLetra(char caracter){\n\r\n if(caracter=='+'||caracter=='-'||caracter=='/'||caracter=='^'||caracter=='*'||caracter=='('||caracter==')'){\r\n return false;\r\n }else{\r\n return true;\r\n }\r\n \r\n }",
"public boolean characterInput(char c);",
"public boolean validateMetaCaracteres(String MetaCaracteres){\n Pattern pattern;\n Matcher matcher; \n// pattern = Pattern.compile(\"^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ]+$\");\n pattern = Pattern.compile(\"^[a-zA-ZñÑáéíóúÁÉÍÓÚ]+$\");\n matcher = pattern.matcher(MetaCaracteres);\n return matcher.matches();\n }",
"private boolean ifAlphabetOnly(String str){\n return str.chars().allMatch(Character :: isLetter);\n }",
"private boolean requiresLettersOrSymbols() {\n return mPasswordMinLetters + mPasswordMinUpperCase\n + mPasswordMinLowerCase + mPasswordMinSymbols + mPasswordMinNonLetter > 0;\n }",
"public static Boolean Letter(String arg){\n\t\tif(arg.matches(\"\\\\p{L}{1}\")){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public static void main(String[] args) {\n CharacterTypeFinder characterTypeFinder = new CharacterTypeFinder();\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Enter a alphabet\");\n String character = scanner.next();\n if (character.length() == 1 && characterTypeFinder.isAlphabet(character)) {\n if(characterTypeFinder.isVowel(character)){\n System.out.println(\"Entered string is a vowel!\");\n }else{\n System.out.println(\"Entered String is a consonant\");\n }\n }else{\n scanner.nextLine();\n System.out.println(\"invalid string\");\n }\n }",
"public boolean isActivationString(String word);",
"public static boolean alphanumericCheck(String name)\r\n\t{\r\n\t\treturn name.matches(\"^[a-zA-Z0-9]*$\");\r\n\t}",
"public boolean validWord(String input){\n\t\t//if it is a valid word, return true\n\t\tif(input.matches(\"[a-zA-Z]+\") && input.length()>1){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private static boolean c(char paramChar)\r\n/* 680: */ {\r\n/* 681:674 */ return ((paramChar >= '0') && (paramChar <= '9')) || ((paramChar >= 'a') && (paramChar <= 'f')) || ((paramChar >= 'A') && (paramChar <= 'F'));\r\n/* 682: */ }",
"public static String validInput(Scanner in) {\r\n\t\tString answer = \"\";\r\n\t\twhile (true) {\r\n\t\t\ttry {\r\n\t\t\t\tanswer = in.nextLine();\r\n\t\t\t\tif (containToken(answer)) {\r\n\t\t\t\t\tthrow new Exception(\"incorrect input\");\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tSystem.out.println(\"Please, enter one letter or one word.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn answer;\r\n\t}",
"private boolean isValid() {\n return Character.isLetter(c);\n }",
"private void checkIfRedName(TextField nameTextField, KeyEvent event) {\n\n final Tooltip tooltip = new Tooltip();\n tooltip.setText(\"Enter the name \");\n nameTextField.setTooltip(tooltip);\n\n nameTextField.textProperty().addListener((observable, oldValue, newValue) -> {\n if (!newValue.matches(\"\\\\sa-zA-Z*\")) {\n nameTextField.setText(newValue.replaceAll(\"[^\\\\sa-zA-Z]\", \"\")); // Allows only wirte a letters!\n }\n });\n\n\n }",
"@Override\n\t\tpublic void keyTyped(KeyEvent e){\n\t\t\tString caracter_valido = \"sinbqrcoetahyzxuvwlmnjkp.1234560789+/*-^()\";\n\t\t\tchar caracter = e.getKeyChar();\n\n\t\t\tif(caracter_valido.indexOf(caracter) == -1)\n\t\t\t\te.consume();\n\t\t}",
"private boolean isValidName(String name)\n {\n String reg = \"^[a-zA-Z]+$\";\n return name.matches(reg);\n }",
"public static void checkWithoutSpecialChars(String name) throws SpecialCharsNotAllowedException{ \n \n if(!name.matches(\"^[0-9 \\\\p{L}]*$\")) throw new SpecialCharsNotAllowedException(\"The special chars in the name of entity are not allowed!\");\n }",
"public static boolean checkInputAlert(String saInput) throws Exception {\r\n\t\tboolean bool = checkInput(saInput);\r\n\r\n\t\tif (! bool) {\r\n\t\t\tStringBuffer sb = new StringBuffer(\"Hazardous characters found in the input: \");\r\n\t\t\tsb.append(\"\\\"\").append(HansFilter.alter(saInput)).append(\"\\\"\");\r\n\r\n\t\t\tthrow new Exception(sb.toString());\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}",
"public boolean validatePass(String pass){\n Pattern pattern;\n Matcher matcher;\n //pattern = Pattern.compile(\"([a-zA-Z]+[0-9]+)|([0-9]+[a-zA-Z]+)\");\n //pattern = Pattern.compile(\"(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{8,10})$\");\n pattern = Pattern.compile(\"(?!^[0-9]*$)(?!^[a-zA-Z]*$)(?!^[a]*$)^([a-zA-Z0-9]{8,45})$\");\n matcher = pattern.matcher(pass);\n return matcher.matches();\n }",
"public static void main(String[] args) {\n System.out.println(\"1. \" + StringTools.isAlpha(\"Happy\"));\n System.out.println(\"2. \" + StringTools.isAlpha(\"Happy-Happy\"));\n System.out.println(\"3. \" + StringTools.isAlpha(\"Happy-Happy\", '-'));\n System.out.println(\"\");\n System.out.println(\"1. \" + StringTools.isNumeric(\"09368955866\"));\n System.out.println(\"2. \" + StringTools.isNumeric(\"0936-895-5866\"));\n System.out.println(\"3. \" + StringTools.isNumeric(\"0936/895/5866\", '/'));\n System.out.println(\"\");\n System.out.println(\"1. \" + StringTools.isAlpha(\"HappyDay\"));\n System.out.println(\"2. \" + StringTools.isAlpha(\"#Happy-Day\"));\n System.out.println(\"3. \" + StringTools.isAlpha(\"Happy-Happy\", '#', '-'));\n // alpha space\n System.out.println(\"1. \" + StringTools.isAlpha(\"asd\", ' '));\n }",
"public static final boolean checkPresenceOfParticularChar(\n\t\t\tString inputParam, String regexExp) {\n\t\tAppLog.begin();\n\t\ttry {\n\t\t\tboolean isFound = false;\n\t\t\tPattern p = Pattern.compile(regexExp, Pattern.CASE_INSENSITIVE);\n\t\t\tMatcher m = p.matcher(inputParam);\n\t\t\tisFound = m.find();\n\t\t\tif (isFound) {\n\t\t\t\tAppLog.end();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tAppLog.error(ex);\n\t\t}\n\t\tAppLog.end();\n\t\treturn false;\n\t}",
"public boolean validateName(String input)//true if valid\n\t{\n\t\t//loop through string verifying for numbers\n\t\tfor(int i = 0;i<input.length(); i++)\n\t\t{\n\t\t\tchar c = input.charAt(i);\n\t\t\t\n\t\t\tif(!Character.isAlphabetic(c))\n\t\t\t{\n\t\t\t if(c == '-' || c == ' ')\n\t\t\t\t{\n\t\t\t\treturn true;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t else return false;\n\t\t\t}\t\n\t\t\t\n\t\t}\n\t\treturn true;\n\t}",
"@Override\r\n\t\t\tpublic boolean test(String t, String u) {\n\t\t\t\t return t.equalsIgnoreCase(u);\r\n\t\t\t}",
"public static boolean checkInput(String saInput) {\r\n\t\treturn checkGenericPattern(saInput) && checkGenericPattern(unalter(saInput));\r\n\t}",
"public static boolean passwordCharOrDig ( String password){\n for (int i = 0; i < password.length(); i++){\n if (!Character.isLetterOrDigit(password.charAt(i))){\n return false;\n }\n\n }\n return true;\n }",
"private static boolean m66068b(String str) {\n for (int i = 0; i < str.length(); i++) {\n char charAt = str.charAt(i);\n if (charAt <= 31 || charAt >= 127 || \" #%/:?@[\\\\]\".indexOf(charAt) != -1) {\n return true;\n }\n }\n return false;\n }",
"boolean isValid(String word);",
"@Test\n public void testIsStringOnlyAlphabetAndWhiteSpaces() {\n System.out.println(\"isStringOnlyAlphabetAndWhiteSpaces\");\n String str = \"52374ggs\";\n boolean expResult = false;\n boolean result = ValidVariables.isStringOnlyAlphabetAndWhiteSpaces(str);\n assertEquals(expResult, result);\n }",
"private static boolean matchSearchWord(String word, String matchWord) {\n // The regex is to match words even though they contain special characters.\n // If this wasn't done the function would not match e.g. Java to \"Java\"\n return word.toLowerCase().replaceAll(\"[^a-zA-Z0-9]\", \"\").equals(matchWord.toLowerCase());\n }",
"protected void validatePassword(){\n //Only Checking For Word Type Password With Minimum Of 8 Digits, At Least One Capital Letter,At Least One Number,At Least One Special Character\n Boolean password = Pattern.matches(\"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9](?=.*[!@#$%^&*()])).{8,}$\",getPassword());\n System.out.println(passwordResult(password));\n }",
"private static boolean isValidWord(String s) {\r\n\t\tString valid = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-'\";\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\t\t\tif (valid.indexOf(s.charAt(i)) < 0) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\r\n\t}",
"public static void main(String[] args) {\n// System.out.println(alphanumeric.replaceAll(\"[aei]\", \"x\"));\n\n\n String regex = \"^[A-Z]|[a-z]\";\n String username = \"kaaviya\";\n\n System.out.println(username.replaceAll( \"^[A-Za-z][A-Za-z0-9_]{7,29}$\", \"x\"));\n System.out.println(username.matches(regex));\n\n }",
"private boolean esDelimitador(char c){\n if ((\"+-/*^=%()\".indexOf (c) != -1)){\n return true;\n }else{\n return false;\n }\n }",
"boolean getHasCharacter();",
"public static void main(String[] args){\n\n String NO=\"张xin\";\n String Name=\"张xin(123)\";\n Boolean B=Name.contains(NO);\n System.out.println(B);\n\n\n\n }",
"public boolean verifyString(String s) {\n\t\t\n\t\tfor (int i = 0; i<s.length();i++) {\n\t\t\tif (!alphabet.contains(s.charAt(i))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t\t\n\t}",
"private static boolean isLegalIdentifier(String str) {\n if (\"\".equals(str)) {\n return false;\n }\n if (str.charAt(0) >= '0' & str.charAt(0) <= '9') {\n return false;\n }\n\n return str.matches(\"^\\\\w+$\");\n }",
"static boolean isValidWord(String word){\n\t\tword = word.toLowerCase();\n\t\tchar check;\n\t\tfor(int i=0; i<word.length(); i++){\n\t\t\tcheck = word.charAt(i);\n\t\t\tif((check<97 || check>122)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"private static boolean valid_input(String user_input) {\n \n boolean output = false;\n \n if(user_input.length() == 2){\n \n output = (user_input.substring(0,1).matches(\"[0-9]\") && user_input.substring(1,2).matches(\"[a-zA-Z]\"));\n } else if (user_input.length() == 3) {\n \n output = (user_input.substring(0,2).matches(\"[1-2][0-9]\") && user_input.substring(2,3).matches(\"[a-zA-Z]\"));\n \n if(Integer.parseInt(user_input.substring(0,2))>TicTacToe.game.gridSize){\n output = false;\n }\n }\n \n return output;\n }",
"public String checkRegularExpression(String input) {\n String actualResult=\"\";\n String pattern=\".*harry*\";\n boolean value= Pattern.matches(pattern,input);\n actualResult+=\"Is harry there?\"+value;\n return actualResult;\n\n }",
"private boolean hasValidCharacters(final String exp)\n {\n for(int i=0; i<exp.length(); i++)\n {\n /*\n If the character is not a part of an operand, an\n operator, or a space, then expression is invalid\n */\n if(!isNumPart(i,exp)\n && !isOperator(exp.charAt(i))\n && exp.charAt(i) != ' ')\n return false; //Invalid character detected\n }\n return true; //All characters are valid\n }",
"private static boolean isUnreservedCharacter(char p_char) {\n return (p_char <= '~' && (fgLookupTable[p_char] & MASK_UNRESERVED_MASK) != 0);\n }",
"private static boolean checkChar(char c) {\n\t\tif (Character.isDigit(c)) {\n\t\t\treturn true;\n\t\t} else if (Character.isLetter(c)) {\n\t\t\tif (Character.toUpperCase(c) >= 'A' && Character.toUpperCase(c) <= 'F') {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"private boolean containsValidCharacters(String inputString)\r\n {\r\n boolean validityFlag = true;\r\n int inputStringLength = inputString.trim().length();\r\n for (int i = 0 ; i < inputStringLength ; i++)\r\n {\r\n char digit = inputString.charAt(i);\r\n if (!((digit >= 'A' && digit <= 'Z') || (digit >= 'a' && digit <= 'z') || (digit >= '0' && digit <= '9')))\r\n {\r\n validityFlag = false;\r\n break;\r\n }\r\n }\r\n return validityFlag;\r\n }",
"private boolean isChar(char c){\n\t\tif(Character.isISOControl(c))\n\t\t\treturn false;\n\t\treturn true;\n\t}",
"public String getValidCommand(String msg) {\n String enteredCmd = getCommand(msg);\n while (enteredCmd.isEmpty()||isSpecialCharacter(enteredCmd)) {\n enteredCmd = getCommand(ANSI_RED+\"Not a valid input. Please enter again\"+ANSI_RESET);\n }\n return enteredCmd;\n }",
"public boolean isChar(String x) {\n\t\tfor (int i = 0; i < x.length(); i++) {\n\t\t\tchar c = x.charAt(i);\n\t\t\tif ((c == '-' || c == '+') && x.length() > 1)\n\t\t\t\tcontinue;\n\t\t\tif (((int) c > 64 && (int) c < 90) || ((int) c > 96 && (int) c < 123))\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}"
] | [
"0.7050415",
"0.69103116",
"0.69015014",
"0.68840885",
"0.6848006",
"0.68277276",
"0.6793901",
"0.67800874",
"0.67651224",
"0.673916",
"0.6678541",
"0.66713023",
"0.6670366",
"0.6563366",
"0.6530021",
"0.6498379",
"0.64821345",
"0.64267534",
"0.64224327",
"0.64114714",
"0.63830787",
"0.63808465",
"0.6348484",
"0.63463765",
"0.63455975",
"0.63025445",
"0.6282239",
"0.6234881",
"0.6224302",
"0.62202895",
"0.6186479",
"0.61864245",
"0.61611384",
"0.6153985",
"0.6151995",
"0.6136824",
"0.61216235",
"0.6111517",
"0.61003184",
"0.607701",
"0.6065889",
"0.60536295",
"0.60534024",
"0.60413384",
"0.60399747",
"0.60386354",
"0.601251",
"0.59899527",
"0.59893185",
"0.59844315",
"0.5955292",
"0.59443027",
"0.59424186",
"0.59380406",
"0.5911319",
"0.5899818",
"0.5888786",
"0.58834106",
"0.587835",
"0.5875577",
"0.58463925",
"0.5834458",
"0.58211535",
"0.5812566",
"0.5810182",
"0.58082205",
"0.58074826",
"0.57973444",
"0.57840335",
"0.5781507",
"0.57796735",
"0.5772287",
"0.5769801",
"0.57673955",
"0.5764537",
"0.57598937",
"0.57560843",
"0.5746533",
"0.573691",
"0.573011",
"0.57293236",
"0.57290524",
"0.57116073",
"0.5711533",
"0.5701678",
"0.5700887",
"0.5690684",
"0.5678621",
"0.5677503",
"0.5669181",
"0.56664884",
"0.5663553",
"0.56604594",
"0.5656505",
"0.56495446",
"0.5649475",
"0.5649338",
"0.5644066",
"0.56382346",
"0.5633696"
] | 0.74006504 | 0 |
Checks whether a String is numeric or not | public boolean isNumeric(String strNum) {
if (strNum == null) {
return false;
}
try {
double d = Double.parseDouble(strNum);
} catch (NumberFormatException nfe) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static boolean isNumeric(String str) { \n\t\ttry { \n\t\t\tDouble.parseDouble(str); \n\t\t} \n\t\tcatch(NumberFormatException nfe) { \n\t\t\treturn false; \n\t\t} \n\t\treturn true; \n\t}",
"private static boolean isNumeric(String str){\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }",
"private static boolean isNumeric(String str)\n\t{\n\t\ttry\n\t\t{\n\t\t\tdouble d = Double.parseDouble(str);\n\t\t}\n\t\tcatch (NumberFormatException nfe)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private static boolean isNumeric(String str){\n return NumberUtils.isNumber(str);\n }",
"public static boolean isNumeric(String strNum) {\n if (strNum == null) {\n return false;\n }\n try {\n double d = Double.parseDouble(strNum);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }",
"private static boolean isNumeric(String str)\t{\n\n\t\treturn str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); \n\t\t\t// match a number with optional '-' and decimal.\n\t}",
"private boolean isNumeric(String s) {\n return java.util.regex.Pattern.matches(\"\\\\d+\", s);\n }",
"public boolean isNumeric(String str) {\n try {\n Double.parseDouble(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }",
"public boolean isNumeric(String str){\n try {\n int i = Integer.parseInt(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }",
"public static boolean isNumeric(String str)\n {\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }",
"public static boolean isNumeric(String str)\n {\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }",
"public static boolean isNumeric(String strNum) {\n if (strNum == null) {\n return false;\n }\n try {\n Integer d = Integer.parseInt(strNum);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }",
"public static boolean isNumeric(String string) { \r\n\t\ttry { \r\n\t\t\tint testNumber = Integer.parseInt(string); \r\n\t\t} catch(NumberFormatException e) { \r\n\t\t\treturn false; \r\n\t\t} \r\n\t\t\r\n\t\treturn true; \r\n\t}",
"public static boolean isNumeric(String strNum) {\r\n if (strNum == null) {\r\n return true;\r\n }\r\n try {\r\n Integer.parseInt(strNum);\r\n } catch (NumberFormatException nfe) {\r\n return true;\r\n }\r\n return false;\r\n }",
"public static boolean isNumericString(String value) {\n\t try {\n\t\t if (Double.parseDouble(value) > 0) {\n\t\t return true;\n\t\t }\n\t } catch (NumberFormatException nfe) {\n\t return false;\n\t }\n\t return false;\n\t}",
"public static boolean isNumeric(String str) {\n try {\n Integer d = Integer.parseInt(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }",
"public boolean isNumeric(String str){\r\n\t Pattern pattern = Pattern.compile(\"[0-9]*\");\r\n\t return pattern.matcher(str).matches(); \r\n\t}",
"public static boolean isNumeric(String num) {\n\t\ttry {\n\t\t\tdouble d = Double.parseDouble(num);\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private static boolean isNumeric(String cadena)\n\t {\n\t\t try \n\t\t {\n\t\t\t Integer.parseInt(cadena);\n\t\t\t return true;\n\t\t } catch (NumberFormatException nfe)\n\t\t {\n\t\t\t return false;\n\t\t }\n\t }",
"private boolean stringIsNumeric(String str) {\n\t\tfor(char c : str.toCharArray()) {\n\t\t\tif(!Character.isDigit(c)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"private boolean isNumeric(String s)\n {\n for (int i = 0; i < s.length(); ++i)\n {\n if (!Character.isDigit(s.charAt(i)))\n {\n return false;\n }\n }\n return true;\n }",
"protected boolean isNumber(String s)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDouble.parseDouble(s);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch(NumberFormatException ex)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"private boolean isNumber(String s) {\n\t\ttry {\n\t\t\tDouble.parseDouble(s);\n\t\t} catch (NumberFormatException nfe) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean isNumeric(String input) {\n\t\ttry {\n\t\t\tInteger.parseInt(input);\n\t\t\treturn true;\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\t// string is not numeric\n\t\t\treturn false;\n\t\t}\n\t}",
"public static boolean isNumeric(String str) {\n\t\ttry {\n\t\t\tInteger.parseInt(str.trim().substring(0, 1));\n\t\t\treturn true;\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t}",
"public static boolean isNumeric(String str) {\n if (isBlank(str)) {\n return false;\n }\n\n char[] charArray = str.toCharArray();\n\n for (char c : charArray) {\n if (!Character.isDigit(c)) {\n return false;\n }\n }\n\n return true;\n }",
"public boolean isNum(String cad){\n try{\n Integer.parseInt(cad);\n return true;\n }catch(NumberFormatException nfe){\n System.out.println(\"Solo se aceptan valores numericos\");\n return false;\n }\n }",
"public static boolean isNumeric(String cadena){ \r\n try {\r\n Integer.parseInt(cadena);\r\n return true;\r\n } catch (NumberFormatException e){\t\r\n System.out.println(e.getMessage());\r\n return false;\r\n }\r\n }",
"public boolean isNum() \n\t{ \n\t try \n\t { \n\t int d = Integer.parseInt(numeric); \n\t } \n\t catch(NumberFormatException nfe) \n\t { \n\t return false; \n\t } \n\t return true; \n\t}",
"public static boolean isNumeric(String str)\n {\n return str.chars().allMatch( Character::isDigit );\n }",
"public boolean isNumeric(String cadena) {\n try {\r\n Integer.parseInt(cadena);\r\n return true;\r\n } catch (NumberFormatException nfe) {\r\n return false;\r\n }\r\n }",
"public static boolean isNumber(String text) {\n try {\n Double.parseDouble(text);\n return true;\n } catch (NumberFormatException e) {\n return false;\n }\n }",
"private boolean isNumber(String str) {\r\n int ASCII_0 = 48;\r\n int ASCII_9 = 57;\r\n if (str.equals(\"\")) {\r\n return false;\r\n }\r\n for (int i = 0; i < str.length(); i++) {\r\n int chr = str.charAt(i);\r\n if (chr < ASCII_0 || chr > ASCII_9) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"public static boolean isNumeric(String cadena) {\n try {\n Integer.parseInt(cadena);\n return true;\n } catch (NumberFormatException ex) {\n return false;\n }\n }",
"public static boolean isNumericInternational(String str)\n {\n try\n {\n double d = Double.parseDouble(str);\n }\n catch(NumberFormatException nfe)\n {\n return false;\n }\n return true;\n }",
"public boolean isNumber(String str) {\n\t\treturn str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\");\n\t}",
"public static boolean isNumeric(final String input) {\n\t\tif (input == null || input.isEmpty())\n\t\t\treturn false;\n\n\t\tfor (int i = 0; i < input.length(); i++)\n\t\t\tif (!Character.isDigit(input.charAt(i)))\n\t\t\t\treturn false;\n\n\t\treturn true;\n\t}",
"public boolean isNumeric(String sNumericString) {\n try {\n for (char c : sNumericString.toCharArray()) {\n if (!Character.isDigit(c)) {\n return false;\n }\n }\n return true;\n } catch (Exception e) {\n return false;\n }\n }",
"private boolean isNotNumeric(String s) {\n return s.matches(\"(.*)\\\\D(.*)\");\n }",
"public static boolean isNumericRegex(String str)\n {\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }",
"public boolean isNumber(String str)\r\n\t{\r\n\t\tfor(int i = 0; i < str.length(); i++)\r\n\t\t{\r\n\t\t\tif(!Character.isDigit(str.charAt(i)))\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public static Boolean isNumeric(String text)\n {\n //This checks for negative numbers...\n if (text.startsWith(\"-\"))\n {\n text = text.substring(1, text.length());\n }\n\n for (char c : text.toCharArray())\n {\n if (!Character.isDigit(c))\n {\n return false;\n }\n }\n return true;\n }",
"public static boolean isNumber(String s) \r\n{ \r\n for (int i = 0; i < s.length(); i++) \r\n if (Character.isDigit(s.charAt(i)) \r\n == false) \r\n return false; \r\n\r\n return true; \r\n}",
"public static boolean isNumber(final String s) {\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\t\t\tif (!Character.isDigit(s.charAt(i))) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}",
"private static boolean isNumber(String value){\r\n\t\tfor (int i = 0; i < value.length(); i++){\r\n\t\t\tif (value.charAt(i) < '0' || value.charAt(i) > '9')\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public static boolean isNumeric(String aString) {\r\n if (aString == null) {\r\n return false;\r\n } else if (aString.isEmpty()) {\r\n return false;\r\n } else if (aString.indexOf(\".\") != aString.lastIndexOf(\".\")) {\r\n return false;\r\n } else {\r\n int counter = 0;\r\n for ( char c : aString.toCharArray()) {\r\n if ( Character.isDigit(c)) {\r\n counter++;\r\n }\r\n }\r\n return counter == aString.length();\r\n// if (counter == aString.length()) {\r\n// return true;\r\n// }\r\n// return false;\r\n }\r\n }",
"@Test\n void checkIsTrueForStringWithNumbers() {\n // Act, Assert\n assertTrue(IsNumeric.check(\"3\"));\n assertTrue(IsNumeric.check(\"0\"));\n assertTrue(IsNumeric.check(\"-0f\"));\n assertTrue(IsNumeric.check(\"3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F\"));\n assertTrue(IsNumeric.check(\"-3\"));\n assertTrue(IsNumeric.check(\"32f\"));\n assertTrue(IsNumeric.check(\"15D\"));\n assertTrue(IsNumeric.check(\"3.2\"));\n assertTrue(IsNumeric.check(\"0.2\"));\n assertTrue(IsNumeric.check(\"-0.28\"));\n assertTrue(IsNumeric.check(\"0.24D\"));\n assertTrue(IsNumeric.check(\"0.379d\"));\n }",
"private static boolean isNumeric(String str) {\n // The regular expression can match all numbers, including negative numbers\n Pattern pattern = Pattern.compile(\"-?[0-9]+(\\\\.[0-9]+)?\");\n String bigStr;\n try {\n bigStr = new BigDecimal(str).toString();\n } catch (Exception e) {\n return false;\n }\n // matcher是全匹配\n Matcher isNum = pattern.matcher(bigStr);\n return isNum.matches();\n }",
"public boolean isNum(String x) {\n\t\tfor (int i = 0; i < x.length(); i++) {\n\t\t\tchar c = x.charAt(i);\n\t\t\tif ((c == '-' || c == '+') && x.length() > 1)\n\t\t\t\tcontinue;\n\t\t\tif ((int) c > 47 && (int) c < 58)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public abstract boolean isNumeric();",
"public static boolean isNumber(String string) {\n\n\t\ttry {\n\t\t\tLong.parseLong(string);\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\n\t}",
"public static boolean isNumber(String text)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tInteger.parseInt(text);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch(NumberFormatException e)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public static boolean isNumber(String str){\n try {\n Integer.parseInt(str);\n } catch(NumberFormatException e) {\n return false;\n } catch(NullPointerException e) {\n return false;\n }\n return true;\n }",
"public static boolean isNumber(String text) {\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(text);\r\n\t\t} catch(NumberFormatException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public static final boolean isNumber(String str) {\n\t\treturn isNumber(str,true);\n\t}",
"public static boolean isNumeric(String value) {\n // Procedimiento para monitorear e informar sobre la excepcion\n try {\n //Se realiza asignacion de dato numerico\n Float.parseFloat(value);\n return true;\n\n }\n //Mostrar mensaje de error\n catch(NumberFormatException e){\n JOptionPane.showMessageDialog(null,Constantes.TXT_Msg_Error,\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n\n return false;\n\n }\n\n }",
"@Test\n void checkIsTrueForStringWithNumbersWithSpacesAtTheBeginningAndEnd() {\n // Act, Assert\n assertTrue(IsNumeric.check(\" 3\"));\n assertTrue(IsNumeric.check(\"32 \"));\n assertTrue(IsNumeric.check(\" 3.2 \"));\n assertTrue(IsNumeric.check(\" -0.2\"));\n assertTrue(IsNumeric.check(\" -0.2d\"));\n assertTrue(IsNumeric.check(\"0.24D \"));\n assertTrue(IsNumeric.check(\"0.28 \"));\n assertTrue(IsNumeric.check(\" 3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F \"));\n }",
"public boolean isNumber(String s)\r\n {\r\n if (s == null)\r\n {\r\n return false;\r\n }\r\n s = s.trim();\r\n ValidNumberStateMachine vnsm = new ValidNumberStateMachine(s);\r\n return vnsm.isValid();\r\n }",
"public static boolean isNumber(String str){\n return str != null && numberPattern.matcher(str).matches();\n }",
"public static boolean ComprobarNumero(String str) {\n try {\n double d = Double.parseDouble(str);\n return true;\n } catch (NumberFormatException nfe) {\n \treturn false;\n }\n }",
"protected boolean isNumeric(final String id) {\n\t\tfinal NumberFormat formatter = NumberFormat.getInstance();\n\t\tfinal ParsePosition pos = new ParsePosition(0);\n\t\tformatter.parse(id, pos);\n\t\treturn id.length() == pos.getIndex();\n\t}",
"private boolean containsOnlyNumbers(String inputString)\r\n {\r\n inputString = inputString.trim();\r\n if (inputString.equals(null))\r\n return false;\r\n else\r\n for (int i = 0; i < inputString.length(); i++)\r\n if (!(inputString.charAt(i) >= '0' && inputString.charAt(i) <= '9'))\r\n return false;\r\n return true;\r\n }",
"private static boolean validNumber(String thing) {\n\t\treturn validDouble(thing);\n\t}",
"private boolean isNumber( String test ) {\n\treturn test.matches(\"\\\\d+\");\n }",
"public static boolean checkIfNumeric(Object toBeChecked)\r\n\t{\r\n\t\ttry {\r\n\t\t\tDouble.parseDouble((String) toBeChecked);\r\n\t\t\treturn true;\r\n\t\t} catch (ClassCastException e) {\r\n\t\t\treturn true;\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean isNumber(String in) \n\t{\n\t\ttry \n\t\t{\n\t\t\tInteger.parseInt(in);\n\t\t\treturn true;\n\t\t}\n\t\tcatch (Exception e) \n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isNumeric() {\n return this.isInteger() || this.isDecimal() || this.isDouble();\n }",
"@Test\n public void isNumeric() {\n assertTrue(Deadline.isNumeric(VALID_YEAR_2018));\n\n //contains other symbols -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_SYMBOLS));\n\n //contains alphabets -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_ALPHABETS));\n\n //contains space -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_SPACE));\n }",
"public static boolean isNumber(String val)\n {\n\t if(val == null || val.trim().isEmpty())\n\t {\n\t\t return false;\n\t }\n\t else\n\t {\n\t\t Pattern patternForNumber = Pattern.compile(\"^[+-]?(([0-9]+\\\\.?[0-9]+)|[0-9]+)\");\n\t\t return patternForNumber.matcher(val).matches();\n\t }\n }",
"private boolean valid_numbers(String nr)\n\t{\n\t\t// loop through the string, char by char\n\t\tfor(int i = 0; i < nr.length();i++)\n\t\t{\n\t\t\t// if the char is not a numeric value or negative\n\t\t\tif(Character.getNumericValue(nr.charAt(i)) < 0)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t// if it did not return false in the loop, return true\n\t\treturn true;\n\t}",
"@Test\n void checkIsFalseForStringWithNumbersAndOtherChars() {\n // Act, Assert\n assertFalse(IsNumeric.check(\"a3\"));\n assertFalse(IsNumeric.check(\"3l\"));\n assertFalse(IsNumeric.check(\"345L\"));\n assertFalse(IsNumeric.check(\"32b\"));\n assertFalse(IsNumeric.check(\"*3.2 \"));\n assertFalse(IsNumeric.check(\"/0.2\"));\n assertFalse(IsNumeric.check(\"0.28L\"));\n assertFalse(IsNumeric.check(\"0.28.\"));\n assertFalse(IsNumeric.check(\"3.2.4\"));\n assertFalse(IsNumeric.check(\"0x400\"));\n assertFalse(IsNumeric.check(\"0.24Dd\"));\n }",
"public boolean isNumber(String sIn)\r\n {\r\n int parseNumber = -1;\r\n \r\n try{\r\n parseNumber = Integer.parseInt(sIn);\r\n }catch(Exception e){\r\n return false;\r\n }\r\n \r\n return true;\r\n }",
"public static boolean isDigit(final String str) {\n if (str == null || str.length() == 0) {\n return false;\n }\n\n for (var i = 0; i < str.length(); i++) {\n if (!Character.isDigit(str.charAt(i)) && str.charAt(i) != '.') {\n return false;\n }\n }\n return true;\n }",
"public static boolean isNumber(String input) {\n boolean hasDecimal = false;\n for (int i = 0; i < input.length(); i++) {\n char test = input.charAt(i);\n if (test == '-' && i == 0)\n continue; // Allow negative indicator.\n\n if (test == '.') {\n if (!hasDecimal) {\n hasDecimal = true;\n continue;\n } else {\n return false; // Multiple decimal = invalid number.\n }\n }\n\n if (!Character.isDigit(test))\n return false; // Character isn't a digit, so it can't be a number.\n }\n\n return true;\n }",
"public static boolean isNumber(String string) {\n if (string == null || string.isEmpty()) {\n return false;\n }\n int i = 0;\n if (string.charAt(0) == '-') {\n if (string.length() > 1) {\n i++;\n } else {\n return false;\n }\n }\n for (; i < string.length(); i++) {\n if (!Character.isDigit(string.charAt(i))) {\n return false;\n }\n }\n return true;\n}",
"public static boolean isNumeric(String field) {\r\n\t\tif (isEmpty(field))\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\tfield = field.trim();\r\n\t\tif (field.trim().matches(\"[0-9\\\\-\\\\(\\\\)\\\\ ]*\")) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public static boolean isNumber(String val){\n\t\t\n\t\tfor(int i=0;i<val.length();i++){\n\t\t\tif((val.charAt(i) >= '0' && val.charAt(i) <= '9') || (val.charAt(i) >= 'A' && val.charAt(i) <= 'F') || (val.charAt(i) >= 97 && val.charAt(i) <= 102)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean isNumeric(String userInput) {\n return Pattern.matches(Constants.ID_VALIDATION, userInput);\n }",
"public static boolean validNumericTextEntryStr(String str, boolean allowDouble)\n\t{\n\t\tif(allowDouble)\n\t\t\treturn str.matches(\"^[0-9]+((\\\\.|,)[0-9]*|)$\");\n\t\telse\n\t\t\treturn str.matches(\"^[0-9]+$\");\n\t}",
"public boolean isNumber(String stringItem) {\n Float floatItem = (float) 0.0;\n try {\n floatItem = Float.valueOf(stringItem);\n } // try\n catch (NumberFormatException IOError) {\n return false;\n } // catch\n return true;\n }",
"public static boolean isNumber(String token) {\n boolean toret = true;\n\n try {\n Double.parseDouble(token);\n }\n catch(Exception e)\n {\n toret = false;\n }\n\n return toret;\n }",
"public static boolean isNumeric(char num) {\n\t\treturn isNumeric(String.valueOf(num));\n\t}",
"@Test\n public void isNumericNegetive() {\n Boolean bool = Utils.isNumeric(\"123a\");\n Assert.assertEquals(false, bool);\n }",
"public boolean isNumber(String num)\t{\n\t\tfor(int i=0;i<13;i++)\t{\n\t\t\tif(Integer.parseInt(num)==i)\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public static boolean numbersCheck(String num)\r\n\t{\r\n\t\treturn num.matches(\"[0-9]+\");\r\n\t}",
"public static boolean isNumeric(char c)\n\t{\n\t\tif (c >= '0' && c <= '9')\n\t\t\treturn true;\n\t\telse if (c == '.')\n\t\t\treturn true;\n\t\telse if (c == '-')\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public boolean isDigit(String s)\r\n\t\t{\n\t\t\tfor(char c : s.toCharArray())\r\n\t\t\t{\r\n\t\t\t if(!(Character.isDigit(c)))\r\n\t\t\t {\r\n\t\t\t return false;\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\t//return false;\r\n\t\t\treturn true;\r\n\t\t}",
"@Test\n void checkIsFalseForStringWithoutNumbers() {\n // Act, Assert\n assertFalse(IsNumeric.check(\"a\"));\n assertFalse(IsNumeric.check(\"ö\"));\n assertFalse(IsNumeric.check(\"\"));\n assertFalse(IsNumeric.check(\"´´´\"));\n assertFalse(IsNumeric.check(\"lgk\"));\n assertFalse(IsNumeric.check(\"lL y\"));\n assertFalse(IsNumeric.check(\" \"));\n assertFalse(IsNumeric.check(\"h* \"));\n assertFalse(IsNumeric.check(\"/+\"));\n assertFalse(IsNumeric.check(\"-\"));\n assertFalse(IsNumeric.check(\"+\"));\n assertFalse(IsNumeric.check(\"d\"));\n assertFalse(IsNumeric.check(\"ariel\"));\n assertFalse(IsNumeric.check(\"#€%/!\"));\n }",
"private static boolean checkIfIsDouble(String num) {\n try {\n Double.parseDouble(num);\n return true;\n } catch (NumberFormatException e) {\n return false;\n }\n }",
"boolean isNumeric(char pChar)\n{\n\n //check each possible number\n if (pChar == '0') {return true;}\n if (pChar == '1') {return true;}\n if (pChar == '2') {return true;}\n if (pChar == '3') {return true;}\n if (pChar == '4') {return true;}\n if (pChar == '5') {return true;}\n if (pChar == '6') {return true;}\n if (pChar == '7') {return true;}\n if (pChar == '8') {return true;}\n if (pChar == '9') {return true;}\n\n return false; //not numeric\n\n}",
"private static boolean areNumbers(String s) {\n boolean isADigit = false;//only changed once everything has been checked\n //checks if places 0-2 are numbers and 3 is a \"-\"\n for(int i = 0; i < 3; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(3) == '-') {\n isADigit = true;\n }\n }\n //checks if places 4-5 are numbers and 6 is a \"-\"\n for(int i = 4; i < 6; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(6) == '-') {\n isADigit = true;\n }\n }\n //checks if places 7-10 are numbers\n for(int i = 7; i < 11; i++) {\n if(Character.isDigit(s.charAt(i))) {\n isADigit = true;\n }\n }\n return isADigit;\n }",
"private boolean isNumber(String number){\n\t\ttry{\r\n\t\t\tFloat.parseFloat(number);\r\n\t\t}catch(Exception e){\r\n\t\t\treturn false;// if the user input is not number it throws flase\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public static boolean isDouble(String strNum) {\n try {\n double d = Double.parseDouble(strNum);\n } catch (NumberFormatException | NullPointerException nfe) {\n System.out.println(\"Invalid data format\");\n log.error(nfe);\n return false;\n }\n return true;\n }",
"public static final boolean isNumeric(char c, int i) {\r\n return NUMERIC_FORMAT_CHARS.indexOf(c) >= 0 || (i <= 2 && NUMERIC_FORMAT_CHARS2.indexOf(c) >= 0);\r\n }",
"private boolean isDouble(String str)\r\n {\r\n try\r\n {\r\n double i = Double.parseDouble(str);\r\n } catch (NumberFormatException nfe)\r\n {\r\n MyLogger.log(Level.INFO, LOG_CLASS_NAME + \"Non numeric value. Value was: {0}\", str);\r\n return false;\r\n }\r\n return true;\r\n }",
"public static boolean isInt(String strNum) {\n try {\n int d = Integer.parseInt(strNum);\n } catch (NumberFormatException | NullPointerException nfe) {\n System.out.println(\"Invalid data format\");\n log.error(nfe);\n return false;\n }\n return true;\n }",
"public boolean isNumber(String s) {\n\t\tif (s==null) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t s = s.trim(); \n\t //avoid \"3e\" which is false\n\t if (s.length() > 0 && s.charAt(s.length() - 1) == 'e') {\n\t \treturn false; \n\t }\n\t \n\t String[] parts = s.split(\"e\");\n\t if (parts.length == 0 || parts.length > 2) {\n\t \treturn false;\n\t }\n\t //check the part before e\n\t boolean res = isValid(parts[0], false); \n\t \n\t //check the part after e, and second half can not have any dot\n\t if (parts.length > 1) {\n\t \tres = res && isValid(parts[1], true);\n\t }\n\t \n\t return res;\n\t}",
"private boolean isNumber(final String number) {\n try {\n Integer.parseInt(number);\n return true;\n } catch (Exception e) {\n LOGGER.error(\"Not a number \" + number, e);\n return false;\n }\n }",
"public static boolean isNumber(String s, int radix) {\n try {\n new BigDecimal(new BigInteger(s, radix));\n\n return true;\n } catch (Exception e) {\n }\n\n return false;\n }",
"public static final boolean isNumberNotNegative(String str) {\n\t\treturn isNumber(str,false);\n\t}"
] | [
"0.8505456",
"0.84165156",
"0.8404291",
"0.8377611",
"0.83762586",
"0.83578336",
"0.835448",
"0.833426",
"0.83035284",
"0.82789993",
"0.82767534",
"0.8256971",
"0.82444954",
"0.82208306",
"0.81665",
"0.8158688",
"0.8133454",
"0.8133114",
"0.81220365",
"0.808878",
"0.8035277",
"0.80314726",
"0.80302864",
"0.7987018",
"0.7982705",
"0.79572266",
"0.79460937",
"0.7928858",
"0.78937185",
"0.78640443",
"0.7857014",
"0.7845933",
"0.78178847",
"0.780198",
"0.7790736",
"0.77905744",
"0.7784466",
"0.7784437",
"0.77649504",
"0.7756059",
"0.7721047",
"0.7687368",
"0.7675914",
"0.7667633",
"0.7667169",
"0.76531655",
"0.7645026",
"0.76237833",
"0.7608263",
"0.7605795",
"0.7545639",
"0.75062186",
"0.7495708",
"0.74525934",
"0.74509263",
"0.74488306",
"0.74411565",
"0.7439183",
"0.74383175",
"0.7436097",
"0.74291086",
"0.7378726",
"0.7331441",
"0.731073",
"0.728939",
"0.72858316",
"0.7278812",
"0.72738874",
"0.7253039",
"0.72471094",
"0.7223347",
"0.72086185",
"0.7200496",
"0.7190889",
"0.7155463",
"0.713697",
"0.71201754",
"0.7117631",
"0.7111917",
"0.7102376",
"0.7079273",
"0.70558125",
"0.70423454",
"0.7023608",
"0.70008945",
"0.69964045",
"0.6996066",
"0.6995667",
"0.6970626",
"0.69654894",
"0.6965176",
"0.69598025",
"0.6925872",
"0.6914057",
"0.6895902",
"0.6879474",
"0.6868967",
"0.6857325",
"0.68436444",
"0.68391675"
] | 0.84439534 | 1 |
Prompts the user to enter the input until the input is not empty and does not have special characters type | public String getValidCommand(String msg) {
String enteredCmd = getCommand(msg);
while (enteredCmd.isEmpty()||isSpecialCharacter(enteredCmd)) {
enteredCmd = getCommand(ANSI_RED+"Not a valid input. Please enter again"+ANSI_RESET);
}
return enteredCmd;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String userInput()\r\n {\r\n Scanner link = new Scanner(System.in);\r\n String word = link.next();\r\n char[] chars = word.toCharArray();\r\n boolean checkWord = false; \r\n for(int i = 0; i < chars.length; i++)\r\n {\r\n char c = chars[i];\r\n if((c < 97 || c > 122))\r\n {\r\n checkWord = true;\r\n }\r\n }\r\n link.close();\r\n if(!checkWord)\r\n {\r\n return word;\r\n } \r\n else \r\n System.out.println(\"Not a valid input\");\r\n return null;\r\n }",
"public static String promptForInput(String prompt, boolean allowEmpty) {\n String input = null;\n boolean invalidInput = true;\n do {\n input = receiveInput(prompt);\n if (allowEmpty) {\n invalidInput = input == null;\n } else {\n invalidInput = input == null || input.isEmpty();\n }\n if (invalidInput) {\n System.out.println(\"Please input a valid string.\");\n }\n } while (invalidInput);\n return input;\n\n }",
"public static boolean userInput(){\n String tempInput = \"y\"; //string to hold input for bulletproofing, default length is one character\n Scanner input = new Scanner(System.in);\n\n do { //bulletproofing input\n\n if (tempInput.length() != 1){ //if looping for second time, output error message\n System.out.println(\"Unaccepted input. Please reenter.\");\n }\n\n tempInput = input.nextLine(); //take input\n\n }while(tempInput.length() != 1); //loops again if input is not single character\n\n return tempInput.charAt(0) == 'y';\n }",
"private static String validateInputStr() {\n String str = \"\";\n Scanner genericString = new Scanner(System.in);\n if (!genericString.hasNextInt()) {\n str = genericString.nextLine();\n return str;\n }\n else {\n validateInputStr();\n }\n return str;\n }",
"public static String inputString(String p) {\n String s = \"\";\n\n do {\n System.out.print(p);\n s = in.nextLine();\n if (!s.isEmpty()) {\n break;\n } else {\n System.err.print(\"\\nCan't be left blank, enter again.\\n\");\n }\n } while (true);\n return s;\n }",
"private String stringKeyBoardInput() {\n\t\tString input = \"\";\n\t\tboolean tryAgain = true;\n\t\twhile (tryAgain) {\n\t\t\ttry {\n\t\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t\tinput = scanner.nextLine();\n\t\t\t\ttryAgain = false;\n\t\t\t} catch (InputMismatchException ime) {\n\t\t\t\tSystem.out.println(\"Invalid input.\");\n\t\t\t}\n\t\t}\n\t\treturn input;\n\t}",
"public static String validInput(Scanner in) {\r\n\t\tString answer = \"\";\r\n\t\twhile (true) {\r\n\t\t\ttry {\r\n\t\t\t\tanswer = in.nextLine();\r\n\t\t\t\tif (containToken(answer)) {\r\n\t\t\t\t\tthrow new Exception(\"incorrect input\");\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tSystem.out.println(\"Please, enter one letter or one word.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn answer;\r\n\t}",
"public static char checkInput() {\r\n\t\tchar ch = ' ';\r\n\t\tboolean check = true;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tch = input.next(\".\").charAt(0);\t\t// samo jedan karakter dozvoljen\r\n\t\t\t\tcheck = false;\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t// hvatanje greske\r\n\t\t\t\tSystem.out.println(\"Pogresan unos, samo jedan karakter dozvoljen! Probaj ponovo:\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t} while (check);\r\n\t\treturn ch;\r\n\t}",
"public static String readUserInput() {\n return in.nextLine();\n }",
"public abstract void promptForInput(final String msg);",
"public char askForLetter() {\n\t\tchar guessLetter;\n\t\tboolean validInput = false;\n\t\twhile (validInput == false) {\n\t\t\tSystem.out.println(\"Enter a letter: \");\n\t\t\tString guessLine = keyboard.nextLine();\n\t\t\tif (guessLine.length() == 0 || guessLine.length() >= 2) {\n\t\t\t\tSystem.out.println(\"Please insert a valid input\");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tguessLine = guessLine.toLowerCase();\n\t\t\t\tguessLetter = guessLine.charAt(0);\n\t\t\t\tif(guessLetter >= 'a' && guessLetter <= 'z') {\n\t\t\t\t\tSystem.out.println(\"You entered: \" + guessLetter);\n\t\t\t\t\tvalidInput = true;\n\t\t\t\t\treturn(guessLetter);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please insert a valid input\");\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn(' ');\n\t\t\n\t\t\n\t}",
"private static String getUserTextTyped () {\n\n\t\tBufferedReader myReader = new BufferedReader(new InputStreamReader(System.in));\n\t\tBoolean loop = true;\n\t\tString text = \"\";\n\t\tdo {\n\t\t\ttry {\n\t\t\t\ttext = myReader.readLine();\n\n\t\t\t\tif ((text.length() < 3)) {\n\t\t\t\t\tshowMessage(\"Please type a minimum of 3 characters: \\n\");\n\t\t\t\t} else {\n\t\t\t\t\treturn text;\n\t\t\t\t}\n\n\t\t\t}catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Character invalid.\");\n\t\t\t}\n\t\t} while (loop);\n\n\n\t\treturn text;\n\n\t}",
"public String getData() {\r\n Scanner sc = new Scanner(System.in);\r\n String s = sc.nextLine();\r\n while ((s.startsWith(\"\") && s.endsWith(\" \")) || (s.length() == 0) || (s.startsWith(\" \"))) {\r\n System.out.print(\"A space record, or a space at the beginning is not acceptable. \\n\"\r\n + \"Please try again: \");\r\n s = sc.nextLine();\r\n }\r\n return s;\r\n }",
"private static void readInput() { input = sc.nextLine().toLowerCase().toCharArray(); }",
"public static char inputChar(String p) {\n String c;\n while (true) {\n System.out.print(p);\n c = in.nextLine();\n if (c.length() == 1) {\n return c.charAt(0);\n } else {\n System.err.print(\"Must enter character, enter again! \");\n }\n }\n }",
"public static String inputString(String prompt) {\n //String errorMsg = \"Must be a non-empty string\\n\";\n\n /*\n String input = \"\";\n while (input == \"\") {\n System.out.print(prompt);\n input = GolferScoresTree.scanner.next().trim();\n if (input == \"\")\n System.out.println(errorMsg);\n }\n */\n\n // scanner automatically ignores empty / all-whitespace inputs\n System.out.print(prompt);\n // trim whitespace off ends of input\n String input = GolferScoresTree.scanner.next().trim();\n\n return input;\n }",
"private static String inputString() {\n Scanner userInput = new Scanner(System.in);\n System.out.print(\"Insert text: \");\n String inputText = userInput.nextLine();\n return inputText;\n }",
"public static void pause(){\n System.out.print(\"Enter anything to continue: \"); // prompts the user to enter anything\n input.nextLine(); // receiving the user's input, but not storing it\n clear(); // clears the screen\n }",
"public String userInputString() {\n Scanner scanner = new Scanner(System.in);\n return scanner.nextLine();\n }",
"@Test\n\tpublic void inputVoucher_is_alphanumeric(){\n\t\tString pattern = \"^[a-zA-Z0-9]*$\";\n\t\tvoucher.getInputVoucher().sendKeys(\"aaa aaaa 123\");\n\t\tSystem.out.println(voucher.getInputVoucher().getText().matches(pattern));\n\t\tAssert.assertEquals(voucher.getInputVoucher().getText().matches(pattern), true, \"input voucher code tidak alphanumeric\");\n\t}",
"public static void waitForInput() {\n BufferedReader buffyTheVampireSlayer = new BufferedReader(new InputStreamReader(System.in));\n System.out.print(\"Press Enter To Continue...\");\n try {\n buffyTheVampireSlayer.readLine();\n } catch (IOException e) {\n System.out.println(e);\n System.out.println(\"an unexpected error occurred\");\n }\n }",
"private char readChar() \n {\n \n String uInput = null;//user input\n do//do while loop to wait for a charater\n {\n try//collect user input\n {\n uInput = br.readLine();\n }\n catch(IOException ioe)//catch IOE\n {\n System.out.println(\"IO error trying to read number. Exiting now\");\n System.exit(1);\n }\n if(uInput.charAt(0)=='?')//special case for ? symbol\n {\n return uInput.charAt(0);\n }\n if(!Character.isLetter(uInput.charAt(0)))//check for charater\n {\n System.out.println(\"Invalid input, use ? for a list of commands\");\n System.out.printf(\"=> \");\n }\n }\n while(!Character.isLetter(uInput.charAt(0)));\n\n return uInput.charAt(0);//return character input\n \n }",
"public void takeUserInput() {\n\t\t\r\n\t}",
"private String readGuess() {\n\t\tString unsafeGuess = readLine(\"Your Guess: \").trim().toUpperCase();\n\t\tif (!unsafeGuess.matches(\"[a-zA-z]\") || unsafeGuess.length() != 1) {\n\t\t\tprintln(\"Please enter a single letter.\");\n\t\t\treturn readGuess();\n\t\t} else {\n\t\t\treturn unsafeGuess.toUpperCase();\n\t\t}\n\t}",
"public static String getName(){\r\n String name = \"\";\r\n do{\r\n System.out.println(\"Please enter your name and press enter\");\r\n name = sc.nextLine();\r\n name = name.trim(); \r\n if(name.equals(\"\")){\r\n System.out.println(\"Error: Please put in name\");\r\n }\r\n }while(name.equals(\"\")); \r\n return name;\r\n }",
"public void getGamerInput() {\n\t\ttry {\n\t\t\tsCurrentCharInput = String.format(\"%s\", (consoleInput.readLine())).toUpperCase(Locale.getDefault());\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t/* ************************************* */\n\t\tconsoleLog.println(\" \");\n\t\t// System.out.println(\" Quit readline \");\n\t\t/* ************************************* */\n\t\t// if (sCurrentCharInput.length() == 0)\n\t\t// continue;\n\n\t\t// if (sCurrentCharInput.contains(sAskedWord))\n\t\t// continue;\n\n\t}",
"public static void oneLetter () {\n System.out.println(\"Type in a letter\");\n Scanner input = new Scanner(System.in);\n String userInput = input.nextLine();\n if ((userInput.equals( \"a\")) || (userInput.equals(\"e\")) || (userInput.equals(\"i\")) || (userInput.equals(\"o\")) || (userInput.equals(\"u\"))) {\n System.out.println(\"That is a vowel!\");\n\n }\n else {\n System.out.println(\"That is a consonant\");\n\n }\n }",
"private String insertTitle()\n {\n boolean valid = false;\n String title = \"\";\n \n Scanner console = new Scanner(System.in);\n \n while (!valid)\n {\n System.out.print(\"\\t\\tPlease insert the movies' title: \");\n title = console.nextLine().trim().toLowerCase();\n valid = validation.checkNoBlank(title);\n }\n \n return title;\n }",
"public static String stringValidation() {\n\t\tString input = \"\";\n\t\tinput = in.nextLine().trim();\n\t\treturn input;\n\t}",
"public static void typingTest(String word){\r\n\t\t//create a scanner for input\r\n\t\tScanner scanner = new Scanner(System.in);\r\n\t\tSystem.out.println();\r\n\t\t//keep asking question until user types it in correctly\r\n\t\twhile (true){\r\n\t\t\t//ask the user to type the word in correctly\r\n\t\t\tSystem.out.println(\"Please type \"+ word + \": \");\r\n\t\t\tString input= scanner.next();\r\n\t\t\t//if the user enters the word correctly\r\n\t\t\tif (input.equalsIgnoreCase(word)){\r\n\t\t\t\tSystem.out.println(\"GOOD JOB!\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private static String getUserInput(String prompt){ \r\n Scanner in = new Scanner(System.in);\r\n System.out.print(prompt);\r\n return in.nextLine();\r\n }",
"public boolean characterInput(char c);",
"private void handleInput() {\n\n // Get the input string and check if its not empty\n String text = textInput.getText().toString();\n if (text.equals(\"\\n\")) {\n textInput.setText(\"\");\n return;\n }\n // remove empty line\n if (text.length() >= 2 && text.endsWith(\"\\n\")) text = text.substring(0, text.length() - 1);\n\n if (TextUtils.isEmpty(text)) return;\n textInput.setText(\"\");\n\n myGame.onInputString(text);\n }",
"private String getSearchString(){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString phrase = null;\n\t\t\n\t\tSystem.out.print(\"Please enter the search phrase: \");\n\t\tphrase = scanner.nextLine();\n\t\t\n\t\tscanner.close();\n\t\t\n\t\treturn phrase;\n\t}",
"public void readInput()\n\t{\n\t\t//wrap input stream read input from user\n\t\tBufferedReader in = new BufferedReader( new InputStreamReader( System.in ));\n\t\t\n\t\t//prompt user for input\n\t\tSystem.out.println( \"Please enter a letter or type Quit to end.\");\n\t\t\n\t\ttry{\n\t\t\tString userGuess = in.readLine();\n\t\t\t\n\t\t\t//loop until the user types \"Quit\"\n\t\t\tdo{\n\t\t\t\t//invoke guessletter function with String input\n\t\t\t\thangmanGame.guessLetter(userGuess);\n\t\t\t\t//update currentGuessText\n\t\t\t\tcurrentGuessText = hangmanGame.getCurrentGuess();\n\t\t\t\t//trace out current guess\n\t\t\t\tSystem.out.println(\"Your current guess is: \" + currentGuessText);\n\t\t\t\t//update remainingStrikes\n\t\t\t\thangmanGame.numberOfRemainingStrikes();\n\t\t\t\t//trace out remaining number of strikes\n\t\t\t\tSystem.out.println(\"You currently have \" + hangmanGame);\n\t\t\t\t//invoke revealAnswer function to check over gameOver, gameWon, and getAnswer\n\t\t\t\trevealAnswer();\n\t\t\t}while ( userGuess != \"Quit\" );\n\t\t}\n\t\t//catch IOException ioe\n\t\tcatch (IOException ioe)\n\t\t{\n\t\t\t//tell exception to print its error log\n\t\t\tioe.printStackTrace();\n\t\t}\n\t}",
"public static String inputValidString(String prompt, List<String> accepted) {\n\t\tboolean inputCorrect = false;\n\t\tString input = \"\";\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\twhile (!inputCorrect) {\n\t\t\ttry {\n\t\t\t\tSystem.out.print(prompt);\n\t\t\t\tinput = br.readLine();\n\t\t\t\t\n\t\t\t\tif (accepted == null)\n\t\t\t\t\treturn input;\n\t\t\t\t\n\t\t\t\tif (!accepted.contains(input))\n\t\t\t\t\tthrow new Exception();\n\t\t\t\telse\n\t\t\t\t\tinputCorrect = true;\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println (\"Invalid input, please try again.\");\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn input;\n\t}",
"@Override\r\n public void getInput() { \r\n \r\n String command;\r\n Scanner inFile = new Scanner(System.in);\r\n \r\n do {\r\n \r\n this.display();\r\n \r\n command = inFile.nextLine();\r\n command = command.trim().toUpperCase();\r\n \r\n switch (command) {\r\n case \"B\":\r\n this.helpMenuControl.displayBoardHelp();\r\n break;\r\n case \"C\":\r\n this.helpMenuControl.displayComputerPlayerHelp();\r\n break;\r\n case \"G\":\r\n this.helpMenuControl.displayGameHelp();\r\n break; \r\n case \"Q\": \r\n break;\r\n default: \r\n new Connect4Error().displayError(\"Invalid command. Please enter a valid command.\");\r\n }\r\n } while (!command.equals(\"Q\")); \r\n }",
"public static Boolean validateInput(String input) {\n\t\tString xInput = input.substring(0,1);\n\n\t\n\n\t\t\n\t\tboolean xIsLetter = Character.isLetter(xInput.charAt(0));\n\n\t\tif((!input.isEmpty()) || (!xIsLetter)) {\n\t\n\t\t\treturn false;\n\t\t} else {\n\n\t\t\treturn true; \n\t\t\t}\n\t\t}",
"private static void promptName() {\n\t\tSystem.out.print(\"Please enter a name: \");\n\t}",
"public String checkEmpty(String msg) {\n while (true) {\n String input = scanner.nextLine();\n // If input is empty and then print out error\n if (input.isEmpty()) {\n System.out.println(\"ERROR: \" + msg + \" can't be empty!\");\n System.out.print(\"Enter \" + msg + \" again: \");\n } else {\n // therwise return input\n return input;\n }\n }\n }",
"private static String getQuery(String query) {\n\t\tScanner reader = new Scanner(System.in);\n\t\tString state = \"\";\n\t\twhile (true) {\n\t\t\tSystem.out.println(\"Please Type in a \" + query + \":\");\n\t\t\ttry {\n\t\t\t\tstate = reader.nextLine();\n\t\t\t\treturn state;\n\t\t\t} catch (InputMismatchException e) {\n\t\t\t\tSystem.out.println(\"Invalid Input\");\n\t\t\t}\n\t\t}\n\t}",
"public static String awaitString(String prefix) {\r\n System.out.print(prefix);\r\n Scanner scanner = new Scanner(System.in);\r\n String input = scanner.nextLine().trim();\r\n if (input.length() == 0)\r\n return awaitString(prefix);\r\n return input;\r\n }",
"public static void main(String[] args) {\n CharacterTypeFinder characterTypeFinder = new CharacterTypeFinder();\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Enter a alphabet\");\n String character = scanner.next();\n if (character.length() == 1 && characterTypeFinder.isAlphabet(character)) {\n if(characterTypeFinder.isVowel(character)){\n System.out.println(\"Entered string is a vowel!\");\n }else{\n System.out.println(\"Entered String is a consonant\");\n }\n }else{\n scanner.nextLine();\n System.out.println(\"invalid string\");\n }\n }",
"protected abstract void fillPromptText();",
"public static void main(String[] args){\n Scanner input = new Scanner(System.in);\n \n int nameLength = 0;\n String answer = \"\";\n boolean flag = true; //true that character is a letter\n \n //check if the name is more than 1 character long\n while(nameLength < 2){\n \n System.out.println(\"What is your name?\");\n \n //get answer from console\n answer = input.next();\n \n //now check if each character is a letter\n while(flag){\n\n //use a for-loop because we know how many letters it has\n for(int index = 0; index < answer.length(); index++){\n\n //check if the character is a letter or number\n if(!Character.isLetter(answer.charAt(index))){ //if it's not a letter\n flag = true;\n System.out.println(\"Please enter in a name that only has letters!\");\n answer = input.next();\n break; //gets out of current loop\n }//end if\n else{\n flag = false;\n }\n }//end of for-loop\n\n //if no non-letters were found, exit while loop\n if(!flag){\n flag = true;\n break;\n }\n } //end of while\n \n //check if name is less than 2 characters\n if(answer.length() < 2){\n System.out.println(\"Please enter in a name that is at least \"\n + \"two letters\");\n }\n \n nameLength = answer.length(); //update length of answer\n \n } //end while loop\n \n if(nameLength >= 2 && flag){\n System.out.println(\"Welcome, \" + answer);\n }\n \n }",
"public static String promptForInput(String prompt, boolean allowEmpty) throws IOException {\r\n\r\n\t\tnullPrompt(prompt);\r\n\r\n\t\tboolean isValid = false;\r\n\t\tString input = null;\r\n\t\twhile (!isValid) {\r\n\t\t\tSystem.out.println(prompt);\r\n\t\t\ttry {\r\n\t\t\t\tinput = in.readLine();\r\n\t\t\t\tif (!allowEmpty && input.isEmpty()) {\r\n\t\t\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tisValid = true;\r\n\t\t\t\t}\r\n\t\t\t} catch (IndexOutOfBoundsException ex) {\r\n\t\t\t\tSystem.out.println(\"Answer cannot be empty\");\r\n\t\t\t\tisValid = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn input;\r\n\t}",
"String userInput(String question);",
"private void checkUserInput() {\n }",
"public String user_string() {\n Scanner input = new Scanner(System.in);\n boolean conditional = true;\n while (conditional) {\n boolean condition = input.hasNextInt();\n if (!condition) {\n String user_input = input.nextLine();\n conditional = false; \n return user_input; \n }\n else {\n System.out.println(\"Invalid Input!\");\n conditional = true;\n input.next();\n }\n }\n return \"0\";\n }",
"private static String getCountryInput(){\n System.out.println(countryPrompt);\n String s = sc.nextLine();\n while(!query.countryExists(s) && !s.equals(\"x\")){\n System.out.println(\"That country is not available. Please ensure correct spelling and capitalization\");\n System.out.println(countryPrompt);\n System.out.println(\"Enter 'x' to cancel this query\");\n s = sc.nextLine();\n }\n if(s.equals(\"x\")){\n return null;\n } else {\n return s;\n }\n\n }",
"public static String loopBadInput(String response) {\r\n\tScanner input = new Scanner(System.in);\r\n\twhile(!(checkInput(response.trim()))) {\r\n\tSystem.out.println(\"Invalid response please try again\\n\"+\t\r\n\t\t\t\t\t \"Are you now able to connect to the internet?(Y / N): \");\r\n\tresponse = input.nextLine();\r\n\t\t}\r\n\treturn response;\r\n\t}",
"private void promptForSomething() {\n userInputValue = prompt(\"Please enter something: \", true);\n System.out.println(\"Thank you. You can see your input by choosing the Display Something menu\");\n }",
"public static String inputStringFromKeyboard(String input){\n System.out.println(\"Input the String: \");\n //Scanner, save the inputted from keyboard\n Scanner scanner = new Scanner(System.in);\n //The value 'scanner' is assigned to 'input'\n input = scanner.next();\n return input;\n }",
"public static char validateProduct(char product)\n {\n while (product != 'W' && product != 'G')\n {\n System.out.print\n (\"ERROR in your input. You must select either W for widgets or G for gizmos (W/G): \");\n System.out.print(\"\\nPlease re-enter either W for widgets or G for gizmos (W/G): \");\n product = GetInput.readLineNonwhiteChar();\n product = Character.toUpperCase(product);\n }//end of while loop\n return (product);\n }",
"public String inseriscinome()\n {\n String nome;\n \n do\n {\n System.out.println(\"--Inserisci il nome utente--\");\n nome=input.nextLine();\n }\n while(nome.isEmpty());\n \n return nome;\n }",
"public void Input() {\n wordArray.clear();\n try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {\n do {\n System.out.print(\"Please input program string, end with '.': \");\n line = in.readLine();\n } while (!line.endsWith(\".\"));\n } catch(IOException e) {\n e.printStackTrace();\n }\n\n int pos;\n if ((pos = line.indexOf(\".\")) != line.length() - 1)\n line = line.substring(0, pos + 1);\n\n }",
"@Nullable\r\n protected abstract Prompt acceptValidatedInput(@NotNull ConversationContext context, @NotNull String input);",
"public static String readKeyBoard() {\n String line = \"\";\n for(;;){\n line = scanner.nextLine();\n if (line.length() < 1) {\n System.out.print(\"Nothing input,please input again:\\n\");\n continue;\n }\n break;\n }\n return line;\n }",
"public void invalid() {\r\n\t\tSystem.out.println(\"Please enter a valid input\");\r\n\t}",
"public static int checkCharType(char input){\n\n // Scanner scanner = new Scanner(System.in);\n // System.out.println(\"Enter a Character : \");\n // char input = scanner.next().charAt(0);\n //scanner.close();\n\n if(input >='a' && input <= 'z'){\n System.out.println(\"Small case Letter.\");\n return 1;\n }\n else if(input >='A' && input <= 'Z'){\n System.out.println(\"Capital Letter.\");\n return 2;\n }\n else if(input >='0' && input <= '9'){\n System.out.println(\"A Digit.\");\n return 3;\n }\n else{\n System.out.println(\"Special Character.\");\n return 4;\n }\n }",
"public static String inputEmail(String s) {\n while (true) {\n System.out.print(s);\n String string = in.nextLine().trim();\n string = string.replace(\"\\\\s+\", \" \");\n Pattern p = Pattern.compile(\"^[a-z0-9A-Z]+@[a-zA-Z]+(\\\\.[a-zA-Z]+){1,3}+$\");\n if (!string.isEmpty()) { // not empty ~> finish\n if (p.matcher(string).find()) {\n return string;\n } else {\n System.err.println(\"Email must in format \"\n + \"Local-Part(name(.name2)@Domain(domain.something(.domain2.domain3))(max 3 '.'), enter again!\");\n }\n } else { // empty string ~> display error & re-enter\n System.err.println(\"Email can not empty, enter again!\");\n }\n }\n }",
"private static void promptAddress() {\n\t\tSystem.out.print(\"Please enter an address: \");\n\t}",
"private void askUser()\n { \n System.out.println(\"What is your command?\");\n\n String command = scanner.nextLine();\n commandPrompt(command);\n }",
"public static String inputString(boolean allowBlank) throws IOException\r\n\t{\r\n\t\t// open a new input reader\r\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t// stores the final string to return\r\n\t\tString returnString = new String();\r\n\t\t\r\n\t\t// Continue requesting inputs until a valid string is entered\r\n\t\tif(allowBlank)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"> \");\r\n\t\t\t\treturnString = input.readLine();\r\n\t\t\t}\r\n\t\t\tcatch (IOException e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"IOException\");\r\n\t\t\t\treturnString = inputString(allowBlank);\r\n\t\t\t}\r\n\t\t\r\n\t\t\treturn returnString;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdo\r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\"> \");\r\n\t\t\t\t\treturnString = input.readLine();\r\n\t\t\t\t}\r\n\t\t\t\tcatch (IOException e)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"IOException\");\r\n\t\t\t\t\treturnString = inputString(false);\r\n\t\t\t\t}\r\n\t\t\t}while(returnString.length() == 0);\r\n\t\t\r\n\t\t\treturn returnString;\r\n\t\t}\r\n\t}",
"public static void WaitForKey(){\n // returns only if a correct value is given.\n do {\n System.out.println(\"Press any key to continue\");\n try { // read the integer, parse it and break.\n Integer.parseInt(in.readLine());\n break;\n }catch (Exception e) {\n //System.out.println(\"Your input is invalid!\");\n break;\n }//end try\n }while (true);\n }",
"private void interactive() {\r\n\t\tBufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\r\n\t\twhile (true) {\r\n\t\t\tSystem.out.print(\"Enter Command: \");\r\n\t\t\ttry {\r\n\t\t\t\tprocessCommandSet(tokenizeInput(keyboard.readLine()));\r\n\t\t\t\tif (quit == true) {\r\n\t\t\t\t\tSystem.out.println(\"Terminated at users request.\");\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.err.println(\"An IO Error Occured. \" + e.getMessage());\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}",
"public boolean isSpecialCharacter(String enteredCmd) {\n Pattern regex = Pattern.compile(\"[%@#€]+\");\n Matcher m = regex.matcher(enteredCmd);\n return m.matches();\n }",
"public void userInput() {\r\n System.out.println(\"You want to convert from:\");\r\n this.fromUnit = in.nextLine();\r\n System.out.print(\"to: \");\r\n this.toUnit = in.nextLine();\r\n System.out.print(\"The value is \");\r\n this.value = in.nextDouble();\r\n }",
"public static void main(String[]args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n System.out.println(\"Enter a character\");\n \n char chr = scan.next().charAt(0);\n \n if((chr>='a' && chr<='z')||(chr>='A' && chr<='Z')) {\n System.out.println(\"The character is in alphabet\");\n }else{\n System.out.println(\"The character is not in alphabet\");\n }\n\t\t scan.close();\n\t\t\n\t}",
"public static void main(String[] args) {\n Scanner scn =new Scanner(System.in);\n boolean b=true;\n while(b)\n {\n \n char ch=scn.next().charAt(0);\n \n if(ch=='+'||ch=='-'||ch=='*'||ch=='/'||ch=='%')\n {\n\t int N1 =scn.nextInt();\n\t int N2 =scn.nextInt();\n\t calculator(ch,N1,N2);\n }\n else if(ch!='X'&&ch=='x')\n\t {System.out.println(\"try again\");}\n else\n\tbreak;\n }\n }",
"private static void inputInstallerCommand() {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString commandLine = scanner.nextLine();\n\t\t//Case-sensitive ans should be always Upper case\n\t\tif (!commandLine.equals(\"END\")) {\n\t\t\tcallIstallerCommand(commandLine);\n\t\t\tinputInstallerCommand();\n\t\t}\n\t}",
"public static boolean makeSure(String message){\n char answer;\n boolean validChar = false;\n do {\n answer = Console.readCharacter(message + \" (S/N) \");\n if (Console.validateQuestion(answer))\n validChar = true;\n else\n System.out.println(\"Opción no válida... \");\n } while(!validChar);\n if (Character.toLowerCase(answer) == 's')\n return true;\n else\n return false;\n }",
"public static String getValidation(String message) { // Example of using Method Overloading\r\n\r\n Scanner reader = new Scanner(System.in); // Create a Scanner object\r\n String input = null;\r\n int charIsNotSpace = 0;\r\n\r\n do {\r\n System.out.print(message);\r\n\r\n while (!reader.hasNextLine()) { // I think that the program never enters this while because .hasNextLine identifies\r\n System.out.print(\"Please enter a valid name with at least 3 characters\"); // any type of input as a valid\r\n reader.next(); // value, including \"enter\" and space, but it is like this in the \"PPT Input Validation\"\r\n }\r\n\r\n input = reader.nextLine();\r\n\r\n for (int i=0; i < input.length(); i++) { // checks if at least three characters are not space\r\n if (input.charAt(i) != ' ') {\r\n charIsNotSpace ++;\r\n }\r\n }\r\n\r\n } while (input == null || input.equals(\"\") || input.length() < 3 || charIsNotSpace < 3); //While the input value is not a null value or empty string or least 3 characters.\r\n\r\n // Loop used to capitalize the first letter of the name and without using any other auxiliary class, such as the StringBuilder\r\n String letter = \"\";\r\n String capitalizedName = \"\";\r\n boolean isFirstLetter;\r\n for (int i=0; i < input.length(); i++) {\r\n\r\n isFirstLetter = false;\r\n\r\n if (i == 0) {\r\n while (input.charAt(i) == ' ') { // Ignores spaces that the user typed before the first letter of the name\r\n i++;\r\n }\r\n isFirstLetter = true;\r\n }\r\n\r\n if (input.charAt(i) == ' ' && (i+1) < input.length()) {\r\n if (input.charAt(i) == ' ' && input.charAt(i + 1) == ' ') {\r\n letter = \"\";\r\n } else {\r\n letter += \" \" + input.charAt(i + 1);\r\n capitalizedName += letter.toUpperCase();\r\n i++;\r\n letter = \"\";\r\n }\r\n }\r\n else if (isFirstLetter == true) {\r\n letter += input.charAt(i);\r\n capitalizedName += letter.toUpperCase();\r\n letter = \"\";\r\n }\r\n else if (input.charAt(i) != ' ') {\r\n letter += input.charAt(i);\r\n capitalizedName += letter.toLowerCase();\r\n letter = \"\";\r\n }\r\n }\r\n\r\n return capitalizedName;\r\n }",
"static String readEntry(String prompt) {\n try {\n StringBuffer buffer = new StringBuffer();\n System.out.print(prompt);\n System.out.flush();\n int c = System.in.read();\n while(c != '\\n' && c != -1) {\n buffer.append((char)c);\n c = System.in.read();\n }\n return buffer.toString().trim();\n } catch (IOException e) {\n return \"\";\n }\n }",
"public void inputWord()\n\t{\n\t\tScanner userInput= new Scanner(System.in);\n\t\tSystem.out.print(\"\\nEnter word:\\t\");\n\t\tword = userInput.nextLine();\n\t\tarraySize = word.length();\n\t\tSystem.out.println(\"You entered:\\t \" + word);\n\t\t// DEBUG\n//\t\tSystem.out.println(\"Word has \" + arraySize + \" letters\");\n\t\t\n\t}",
"static void getNonBlank() throws IOException{\n while(curr_char == 32)\n {\n curr_char = pbIn.read();\n }\n }",
"private boolean isValid(char input) {\n if (this.isLetter(input) || this.isDigit(input) || this.isOperator(input)\n || this.isIgnored(input)) {\n return true;\n } else return false;\n }",
"public static void main(String args[]) {\n\t String str; \r\n\t Scanner sc = new Scanner(System.in);\r\n\t System.out.println(\"Enter the String\");\r\n\t str = sc.nextLine();\r\n\t\t StringBuffer alphabets = new StringBuffer(), \r\n\t\t numbers = new StringBuffer(), \r\n\t\t specialChars = new StringBuffer(); \r\n\t\t \r\n\t\t for (int i=0; i<str.length(); i++) { \r\n\t\t \t\r\n\t\t \tif(Character.isAlphabetic(str.charAt(i))) \r\n\t\t alphabets.append(str.charAt(i)); \r\n\t\t \t \r\n\t\t else if(Character.isDigit(str.charAt(i))) \r\n\t\t \t\tnumbers.append(str.charAt(i));\r\n\t\t \r\n\t\t else\r\n\t\t specialChars.append(str.charAt(i)); \r\n\t\t } \r\n\t\t \r\n\t\t System.out.println(alphabets); \r\n\t\t System.out.println(numbers); \r\n\t\t System.out.println(specialChars);\r\n\t}",
"public static void toContinue() {\n System.out.println(EOF + \"Presiona ENTER para continuar...\");\n new Scanner(System.in).nextLine();\n }",
"private void processInputUntilRoomChange() {\n while (true) {\n // Get the user input\n System.out.print(\"> \");\n String input = scan.nextLine();\n\n // Determine which command they used and act accordingly\n if (input.startsWith(\"help\")) {\n this.displayCommands();\n } else if (input.startsWith(\"look\")) {\n this.displayDescription(input.substring(input.indexOf(\" \") + 1));\n } else if (input.startsWith(\"get\")) {\n this.acquireItem(input.substring(input.indexOf(\" \") + 1));\n } else if (input.startsWith(\"go\")) {\n if (this.movePlayer(input.substring(input.indexOf(\" \") + 1))) {\n break;\n }\n } else if (input.startsWith(\"use\")) {\n this.useItem(input.substring(input.indexOf(\" \") + 1));\n } else if (input.startsWith(\"inventory\")) {\n System.out.print(player.listInventory());\n } // The player did not enter a valid command.\n else {\n System.out.println(\"I don't know how to \" + input);\n }\n }\n }",
"public static void playerInput() \n\t{\n\t\t\n\t\tscanner = new Scanner(System.in);\n\t\tSystem.out.println(\"Choose the character x or o\");\n\t\tplayerInput = scanner.next().charAt(0);\n\t\tif (playerInput == 'x' || playerInput == 'o') \n\t\t{\n\t\t\tif (playerInput == 'x') \n\t\t\t{\n\t\t\t\tcomputerInput = 'o';\n\t\t\t\tSystem.out.println(\"Player chooses x & o is assigned to computer.\\n\");\n\t\t\t} \n\t\t\telse \n\t\t\t{\n\t\t\t\tcomputerInput = 'x';\n\t\t\t\tSystem.out.println(\"Player chooses o & x is assigned to computer.\\n\");\n\t\t\t\t//computerMove();\n\t\t\t}\n\t\t} \n\t\telse \n\t\t{\n\t\t\tSystem.out.println(\"Invalid Input ! Try again.\\n\");\n\t\t\tplayerInput();\n\t\t}\n\t\ttossWhoIsFirst();\n\t}",
"private void pressAnyKey() {\n Scanner myScanner = new Scanner(System.in);\n System.out.println(\"Press Enter key to continue...\");\n myScanner.nextLine();\n }",
"String getInput();",
"private static void getKey(String msg) {\r\n\t\tSystem.out.println(\"press <ENTER> to start: \" + msg);\r\n\t\ttry {\r\n\t\t\twhile (System.in.read() != '\\n');\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.severe(\"error reading standard in\");\r\n\t\t}\r\n\t}",
"private int getUserInput() {\n java.util.Scanner scanner = new java.util.Scanner(System.in);\n int input = scanner.nextInt();\n while(input < 1 || input > 3) {\n System.out.println(\"only enter 1 2 or 3.\");\n input = scanner.nextInt();\n }\n return input;\n }",
"public static void main(String[] args) { \n\t\t\nScanner scan = new Scanner(System.in) ;\n\t\t\n\t\tSystem.out.println(\"lutfen \" + \"\\\"Y\\\"\" + \" veya \" + \"\\\"N\\\"\" + \"giriniz\");\n\t\t\n\tchar input = scan.next().charAt(0)\t ;\n\t\n\tif (input == 'Y' ||input=='y') {\n\t\tSystem.out.println(\"YES\");\n\t\t\n\t} else if (input== 'N' || input == 'n') {\n\t\tSystem.out.println(\"NO\");\n\t\t\n\t} else {\n\t\tSystem.out.println(\"yanlis giris yaptiniz. lutfen tekrar deneyiniz\");\n\n\t}\n\t\n\t\n\t\n\t\n\t\n\tscan.close();\n\t\n\n\t}",
"String readInput() {\n Scanner scanner = new Scanner(System.in);\n return scanner.nextLine();\n }",
"public String nameValidate() {\r\n String regex = \"[a-zA-Z]{1,10}\";\r\n\r\n // create user input\r\n Scanner scanner = new Scanner(System.in);\r\n\r\n while (true) {\r\n System.out.print(\"Enter the name: \");\r\n String input = scanner.nextLine();\r\n // check if user enter a string between 1-10\r\n if (input.matches(regex)) {\r\n return input;\r\n } else {\r\n System.out.println(\"Please enter a correct name, name's length should between 1 and 10.\");\r\n }\r\n }\r\n\r\n }",
"static void take_the_input() throws IOException{\n\t\tSystem.out.print(\"ENTER THE ADDRESS : \");\n\n\t\taddress = hexa_to_deci(scan.readLine());\n\t\tSystem.out.println();\n\n\t\twhile(true){\n\t\t\tprint_the_address(address);\n\t\t\tString instruction = scan.readLine();\n\t\t\tint label_size = check_for_label(instruction);\n\t\t\tinstruction = instruction.substring(label_size);\n\t\t\tmemory.put(address, instruction);\n\t\t\tif(stop_instruction(instruction))\n\t\t\t\tbreak;\n\t\t\taddress+=size_of_code(instruction);\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"DO YOU WANT TO ENTER ANY FURTHUR CODE (Y/N) : \");\n\t\tString choice = scan.readLine();\n\t\tSystem.out.println();\n\t\tif(choice.equals(\"Y\"))\n\t\t\ttake_the_input();\n\t}",
"public static boolean checkInputAlert(String saInput) throws Exception {\r\n\t\tboolean bool = checkInput(saInput);\r\n\r\n\t\tif (! bool) {\r\n\t\t\tStringBuffer sb = new StringBuffer(\"Hazardous characters found in the input: \");\r\n\t\t\tsb.append(\"\\\"\").append(HansFilter.alter(saInput)).append(\"\\\"\");\r\n\r\n\t\t\tthrow new Exception(sb.toString());\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\r\n\r\n System.out.println(\"Please enter a String\");\r\n String input = sc.nextLine();\r\n\r\n if (isUnique(input)) {\r\n System.out.println(\"All characters of String are unique\");\r\n } else {\r\n System.out.println(\"All characters of String are not unique\");\r\n }\r\n\r\n sc.close();\r\n}",
"private static String validateMainMenuChoice(String choice)\r\n {\t\t\r\n boolean isValid = false;\r\n\r\n //loops until user enters A C or E\r\n while (isValid == false)\r\n {\t\t\r\n if (choice.equals(\"A\") || choice.contentEquals(\"C\") || choice.contentEquals(\"E\"))\r\n {\r\n isValid = true;\r\n }else\r\n {\r\n System.out.println(\"\\n!!!!!!!!!!!!!!\\nYOUR CHOICE WAS NOT VALID.\"\r\n + \"\\n\\tPlease enter 'A', 'C', or 'E'\");\t\t\t\r\n\r\n choice = scanner.nextLine();\r\n }\r\n }\t\t\t\r\n return choice;\r\n }",
"protected void enterText(InputHandler input)\n\t{\n\t\tif (clearCharBuffer)\n\t\t{\n\t\t\tinput.consumeLastTypedChar();\n\t\t\tclearCharBuffer = false;\n\t\t}\n\t\tchar c = input.consumeLastTypedChar();\n\t\tif (c == '\\b')\n\t\t{\n\t\t\t// Remove a character if the key was backspace\n\t\t\tremoveChar();\n\t\t}\n\t\telse if (c == '\\n')\n\t\t{\n\t\t\t// Call the enter method if the enter key was pressed\n\t\t\tenterPressed();\n\t\t}\n\t\telse if (c != 0)\n\t\t{\n\t\t\t// Add a character to the text field\n\t\t\tputChar(c);\n\t\t}\n\t}",
"public static void pressEnterToContinue() {\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.println(\"Press Enter to continue...\");\n\t\tinput.nextLine();\n\t}",
"public static void getInput() {\n\t\tSystem.out.print(\"Expression y=? \");\n\t\tScanner s = new Scanner(System.in);\n\t\texpression = s.nextLine();\n\t\texpression.toLowerCase();\n\t\tSystem.out.print(\"x? \");\n\t\tx = s.nextDouble();\n\t}",
"public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\" Bir string giriniz =\");\n String text = sc.nextLine();\n\n boolean boslukVarmi = text.contains(\" \");\n System.out.println(\"boslukVarmi = \" + boslukVarmi);\n \n boolean bosMU=text.isEmpty();\n System.out.println(\"bosMU = \" + bosMU);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }",
"private static void driver() {\n Scanner scnr = new Scanner(System.in);\n String promptCommandLine = \"\\nENTER COMMAND: \";\n\n System.out.print(MENU);\n System.out.print(promptCommandLine);\n String line = scnr.nextLine().trim();\n char c = line.charAt(0);\n\n while (Character.toUpperCase(c) != 'Q') {\n processUserCommandLine(line);\n System.out.println(promptCommandLine);\n line = scnr.nextLine().trim();\n c = line.charAt(0);\n }\n scnr.close();\n }",
"@Override\r\n\tpublic void acceptInput(String input) {\n\t\t\r\n\t}",
"private static char askIfQuit() \n {\n Scanner input = new Scanner(System.in);\n\n\t System.out.print(\"Enter (q)uit to quit: \");\n\t char go = input.next().toLowerCase().charAt(0);\n\n\t return go;\n }",
"private String selectString(String prompt) {\n System.out.println(\"\\n\" + prompt);\n return input.next();\n }"
] | [
"0.65463823",
"0.6523783",
"0.65133715",
"0.65079236",
"0.6439465",
"0.6400609",
"0.6397788",
"0.63444287",
"0.621882",
"0.62185335",
"0.6216751",
"0.61395603",
"0.6128344",
"0.6123711",
"0.60560346",
"0.6024494",
"0.60081345",
"0.5920104",
"0.5853723",
"0.58473516",
"0.5833557",
"0.58225924",
"0.58221245",
"0.5816495",
"0.5810734",
"0.5810398",
"0.58070487",
"0.58063024",
"0.57906604",
"0.5752568",
"0.5747338",
"0.5744767",
"0.57350326",
"0.5729927",
"0.5728716",
"0.57037616",
"0.569362",
"0.56855613",
"0.5685164",
"0.56838906",
"0.5680038",
"0.56685185",
"0.566258",
"0.56584245",
"0.5656801",
"0.56538105",
"0.56499",
"0.56477046",
"0.5646494",
"0.56397146",
"0.56352013",
"0.5631317",
"0.5625693",
"0.561764",
"0.5607039",
"0.5588291",
"0.5586439",
"0.5581371",
"0.5580757",
"0.5578516",
"0.5575202",
"0.5563897",
"0.5562637",
"0.55596524",
"0.55485564",
"0.5547979",
"0.5535201",
"0.55297863",
"0.5525697",
"0.5523699",
"0.55221236",
"0.5521182",
"0.55200434",
"0.5519448",
"0.551879",
"0.5513202",
"0.55121684",
"0.55108124",
"0.5508532",
"0.5507409",
"0.5506199",
"0.5495892",
"0.54899865",
"0.5483263",
"0.5478316",
"0.5475205",
"0.54608387",
"0.54575014",
"0.544768",
"0.54439306",
"0.5443344",
"0.5437622",
"0.5437514",
"0.54299295",
"0.54284334",
"0.5424013",
"0.5423049",
"0.5422247",
"0.5415356",
"0.5414026"
] | 0.5937481 | 17 |
Prompts the user to enter the input until the input is of integer type | public int getValidIntCmd(String msg) {
String readInt = getCommand(msg);
while (!isNumeric(readInt)) {
readInt = getCommand(ANSI_RED+"Not a valid input. Please enter again"+ANSI_RESET);
}
return Integer.parseInt(readInt);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int getIntegerInput() {\n\t\tScanner integer_input = new Scanner(System.in);\n\t\tboolean valid_inputType = false;\n\t\tint menu_option = -1;\n\t\t\n\t\t/*Repeatedly asks user to enter input until user enters an integer value as input*/\n\t\twhile(!valid_inputType){\n\t\t\ttry{\n\t\t\t\tmenu_option = integer_input.nextInt(); //get menu option to execute\n\t\t\t\tvalid_inputType = true;\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"ERROR! Invalid Input Type: Input must be a number\");\n\t\t\t\tSystem.out.println(\"Re-enter input: \");\n\t\t\t\tinteger_input = new Scanner(System.in); //clears value previously in integer_input so that user can enter a new value into menu_option.\n\t\t\t}\n\t\t}\n\t\treturn menu_option;\n\t}",
"public static void WaitForKey(){\n // returns only if a correct value is given.\n do {\n System.out.println(\"Press any key to continue\");\n try { // read the integer, parse it and break.\n Integer.parseInt(in.readLine());\n break;\n }catch (Exception e) {\n //System.out.println(\"Your input is invalid!\");\n break;\n }//end try\n }while (true);\n }",
"public static Integer getInteger(String prompt)\n {\n Integer i = 0;\n while(true)\n {\n try\n {\n System.out.print(prompt + \" \");\n i = Integer.parseInt(in.nextLine());\n break;\n }\n catch(Exception e)\n {\n System.out.println(\"Not a valid Integer\");\n }\n }\n return i; \n }",
"public static Integer getInteger()\n {\n Integer i = 0;\n while(true)\n {\n try\n {\n System.out.print(\"Please enter an integer\");\n i = Integer.parseInt(in.nextLine());\n break;\n }\n catch(Exception e)\n {\n System.out.println(\"Not a valid Integer\");\n }\n }\n return i; \n }",
"private int getUserInput() {\n java.util.Scanner scanner = new java.util.Scanner(System.in);\n int input = scanner.nextInt();\n while(input < 1 || input > 3) {\n System.out.println(\"only enter 1 2 or 3.\");\n input = scanner.nextInt();\n }\n return input;\n }",
"public int user_integer() {\n Scanner input = new Scanner(System.in);\n boolean conditional = true;\n while (conditional) {\n boolean condition = input.hasNextInt();\n if (condition) {\n int user_input = input.nextInt();\n conditional = false; \n return user_input; \n }\n else {\n System.out.println(\"Invalid Input!\");\n conditional = true;\n input.next();\n }\n }\n return 0;\n }",
"private static int validateInput() {\n Scanner genericInt = new Scanner(System.in);\n int number = 0;\n if (genericInt.hasNextInt()) {\n number = genericInt.nextInt();\n return number;\n }\n else {\n validateInput();\n }\n return number;\n }",
"public int checkValidate() {\n while (true) {\n if (scanner.hasNextInt()) {\n // Get input from user\n int choice = scanner.nextInt();\n scanner.nextLine(); // Remove enter key\n return choice; // Return choice\n } else {\n // Show out error if not an interger number\n System.out.println(\"Your inputted not an integer number!\");\n System.out.print(\"Choice again: \"); // Retype\n scanner.next();\n }\n }\n }",
"public static int inputInt(String p) {\n String tmp;\n int i = 0;\n\n do {\n System.out.print(p);\n try {\n tmp = in.nextLine();\n if (Integer.parseInt(tmp) == Integer.parseInt(tmp)) {\n i = Integer.parseInt(tmp);\n }\n break;\n } catch (Exception e) {\n System.err.print(\"You must be enter interger number, enter again.\\n\");\n }\n } while (true);\n return i;\n }",
"private int intKeyboardInput() {\n\t\tint input = 0;\n\t\tboolean tryAgain = true;\n\t\twhile (tryAgain) {\n\t\t\ttry {\n\t\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t\tinput = scanner.nextInt();\n\t\t\t\ttryAgain = false;\n\t\t\t} catch (InputMismatchException ime) {\n\t\t\t\tSystem.out.println(\"Invalid input.\");\n\t\t\t}\n\t\t}\n\t\treturn input;\n\t}",
"public static int input(int grade){\n Scanner myScanner=new Scanner(System.in);\n boolean flag=true;\n while(flag){ \n if(myScanner.hasNextInt()){\n while(flag){\n grade=myScanner.nextInt();\n if(grade>=0&&grade<=100){ \n flag=false;break;}\n else{\n System.out.println(\"ERROR: Please input an integer between 0-100.\");// if input is not in range 0-100, then reinput\n System.out.print(\"Please input again: \");\n flag=true; }}}\n else{\n System.out.println(\"ERROR: Please input an integer.\"); // if input is not an integer, then reinput\n System.out.print(\"Please input again: \");\n myScanner.next();flag=true;}}\n return grade; }",
"protected static int easyIn() {\n // ADDITIONAL CHECKS?\n int a;\n debug(\"Please enter your selection: \");\n scanner = new Scanner(System.in);\n\t\ta = scanner.nextInt();\n return a;\n }",
"public static int inputInt(String prompt) {\n String errorMsg = \"Must be a positive integer >= 0\\n\";\n\n int input = -1;\n // keep prompting user until int >= 0 is input\n while (input < 0) {\n // print prompt\n System.out.print(prompt);\n\n // if the user input an int\n if (GolferScoresTree.scanner.hasNextInt()) {\n // scan the user input\n input = GolferScoresTree.scanner.nextInt();\n\n // if the input is < 0, it is invalid\n if (input < 0) {\n // print error message defining a valid value\n System.out.println(errorMsg);\n // loops and prompt user for another input\n }\n }\n // else if the user did not input an int, input is invalid\n else {\n System.out.println(errorMsg);\n }\n }\n\n return input;\n }",
"public static int integerValidation() {\n\t\tboolean flag = true;\n\t\tint input = 0;\n\t\tString temp = \"\";\n\t\twhile (flag) {\n\t\t\ttry {\n\t\t\t\ttemp = in.nextLine().trim();\n\t\t\t\tinput = Integer.parseInt(temp);\n\t\t\t\tflag = false;\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Please Enter a valid input\");\n\t\t\t}\n\t\t}\n\t\treturn input;\n\t}",
"private static int getNumberAnswer(){\r\n\t\tint answer=0;\r\n\t\tBoolean isNumber = false ;\r\n\t\tdo {\r\n\t\t\ttry{\r\n\t\t\t\tanswer = Integer.parseInt(input.nextLine());\r\n\t\t\t\tisNumber =true;\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException e){\r\n\t\t\t\tSystem.out.println(\"Nope, that's not a number/integer.\");\r\n\t\t\t\tSystem.out.println(\"Provide an integer answer.\");\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tisNumber = false;\r\n\t\t\t}\r\n\t\t} while (!isNumber);\r\n\t\treturn answer;\r\n\t}",
"public static Integer scanInt() {\n\t\tboolean is_Nb = false; int i = 0;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\ti = Integer.parseInt(scan.nextLine());\r\n\t\t\t\tis_Nb= true;\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException e) {\r\n\t\t\t\tSystem.out.println(\"Enter a number\");\r\n\t\t\t}\r\n\t\t}while(!is_Nb);\r\n\t\treturn i;\r\n\t}",
"private int receiveNumberInput() {\n int number;\n while (true) {\n try {\n String temp = userInput.nextLine();\n number = Integer.parseInt(temp);\n break;\n } catch (NumberFormatException e) {\n System.out.println(\"Invalid Input. Please enter a valid number.\");\n continue;\n }\n\n }\n return number;\n }",
"private Integer askInt(String label){\n try{\n System.out.println(label);\n String input = in.nextLine();\n if (input.isEmpty()){\n return null;\n }\n else {\n return Integer.parseInt(input);\n }\n }\n catch(NumberFormatException e){\n return askInt(label);\n }\n }",
"public static int checkInt() {\n\t\tboolean is_Nb = false; int i = 0;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\ti = Integer.parseInt(scan.nextLine());\r\n\t\t\t\tis_Nb= true;\r\n\t\t\t\tif(i<0) {\r\n\t\t\t\t\tSystem.out.println(\"Enter a positive number\");\r\n\t\t\t\t\tis_Nb = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException e) {\r\n\t\t\t\tSystem.out.println(\"Enter a number\");\r\n\t\t\t}\r\n\t\t}while(!is_Nb);\r\n\t\treturn i;\r\n\t}",
"public int userInputInteger() {\n Scanner scanner = new Scanner(System.in);\n int userInputInteger;\n try {\n userInputInteger = Integer.parseInt(scanner.nextLine());\n } catch (NumberFormatException e) {\n System.out.print(\"Please input a valid Integer number: \");\n return userInputInteger();\n } finally {\n System.out.print(\"\");\n }\n return userInputInteger;\n }",
"static int promptForNumber() {\n String input;\n int value = -1;\n\n\n while (value == -1) {\n System.out.print(\">\");\n\n if (Menus.reader.hasNext()) {\n input = Menus.reader.nextLine().strip();\n try {\n value = Integer.parseInt(input);\n } catch (NumberFormatException e) {\n value = -1;\n }\n }\n }\n return value;\n }",
"public static Integer nextInteger(String prompt)\n { // Gets an integer value.\n int originalLength = prompt.length();\n boolean done = false;\n Integer i = null;\n String input;\n\n\n // Get the integer.\n while (!done)\n {\n input = JOptionPane.showInputDialog(prompt);\n if (input == null || input.isEmpty())\n {\n break;\n }\n\n // Try to get something meaningful out of this.\n try\n {\n i = Integer.parseInt(input);\n done = true;\n }\n catch (NumberFormatException ex)\n {\n // Change the prompt if we need to do so.\n if (prompt.length() == originalLength)\n {\n prompt = \"Please enter a numeric value.\\n\" + prompt;\n }\n }\n }\n\n // Return the integer that was entered.\n return i;\n }",
"public static int checkInt() {\n\n\t{\n\t\tint userInput;\n\t\tboolean validInt = false;\n\t\tuserInput = 0;\n\t\tdo\n\t\t{\n\t\t\t\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\t\n\t\t\t//checks if the next entered value is an integer\n\t\t\tif (sc.hasNextInt())\n\t\t\t{\n\t\t\t // do-while loop breaks here\n\t\t\t\tuserInput = sc.nextInt();\n\t\t\t\tvalidInt = true;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tUserInterface.displayError(\"Input is not an integer. Please enter again\");\n\t\t\t}\n\t\t}while(validInt == false);\n\t\treturn userInput;\n\t}\n\n}",
"private void getInput() {\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter a number\");\r\n\t\tn=scan.nextInt();\r\n\r\n\t}",
"public static int getInt()\n {\n int num=0;\n while (true)\n {\n Scanner keyboard = new Scanner(System.in);\n try{\n num = keyboard.nextInt();\n return num;\n }\n catch (java.util.InputMismatchException textException)\n {\n System.out.printf(\"result:\");\n }\n }\n }",
"private int readIntWithPrompt (String prompt) {\n System.out.print(prompt); System.out.flush();\n while (!in.hasNextInt()) {\n in.nextLine();\n System.out.print(prompt); System.out.flush();\n }\n int input = in.nextInt();\n in.nextLine();\n return input;\n }",
"public static Integer getIntegerFromDialog(String prompt){\n Integer i = 0;\n while(true)\n {\n try\n {\n i = Integer.parseInt(JOptionPane.showInputDialog(prompt + \" \"));\n break;\n }\n catch(Exception e)\n {\n //System.out.println(\"Not a valid Integer\");\n break;\n }\n }\n return i;\n }",
"public static int readChoice() {\n int input;\n // returns only if a correct value is given.\n do {\n System.out.print(\"Please make your choice: \");\n try { // read the integer, parse it and break.\n input = Integer.parseInt(in.readLine());\n break;\n }catch (Exception e) {\n System.out.println(\"Your input is invalid!\");\n continue;\n }//end try\n }while (true);\n return input;\n }",
"private int errorCheckingInt(String display) {\n\n\t\tint tempChoice;\n\t\tScanner input = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tSystem.out.print(\"\\n\" + display);\n\t\t\ttry {\n\t\t\t\ttempChoice = input.nextInt();\n\t\t\t\tif(display.equals(\"Enter number of kids: \")) { //only for kids\n\t\t\t\t\tif(tempChoice < 0)\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Error input\\n\");\n\t\t\t\t}\n\t\t\t\telse if (tempChoice < 1)\n\t\t\t\t\tthrow new IllegalArgumentException(\"Error input\\n\");\n\t\t\t\tbreak;\n\t\t\t} catch (InputMismatchException e) {\n\t\t\t\tSystem.out.println(\"Error input \\n\");\n\t\t\t\tinput.next();\n\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t\t}\n\n\t\tinput.nextLine();\n\n\t\treturn tempChoice;\n\t}",
"private static int IntInput(){\n\t\tScanner input = new Scanner(System.in); \n\t\t// set the interger Value to less then the threshold minimum (-1)\n\t\tint Value = -1 ;\n\t\twhile (Value < 0){\n\t\t\tValue = input.nextInt();\n\t\t\tif (Value < 0){\n\t\t\t\tSystem.out.printf(\"The number must be greater than or equal to to 0 \\nPlease enter a different value: \");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn Value;\n\t}",
"int getNumericalUserInput() {\n String input = userInput.next();\n int i = -1; //holds converted input\n boolean success = false;\n\n while (!success) {\n if (input.toLowerCase().equals(\"c\")) {\n i = -1;\n success = true;\n } else {\n try {\n i = Integer.parseInt(input);\n success = true;\n } catch (NumberFormatException e) {\n System.out.println(\"Invalid entry.\");\n break;\n }\n }\n }\n return i;\n }",
"public static int getUserInput(){\r\n String input;\r\n Integer selection;\r\n while(true){\r\n try {\r\n input = JOptionPane.showInputDialog(null, \"Please enter the desired side size or press cancel for default size,\\n\"\r\n + \"you should enter a valid integer between 3 and 100.\");\r\n if (input == null) {\r\n selection = DEFAULT_SIZE;\r\n }\r\n else {\r\n selection = Integer.parseInt(input);\r\n if (selection > UPPER_BOUND) selection = UPPER_BOUND;\r\n else if (selection < LOWER_BOUND) selection = LOWER_BOUND;\r\n }\r\n break;\r\n }\r\n catch (NumberFormatException e){\r\n continue;\r\n }\r\n }\r\n return selection;\r\n \r\n }",
"public static int promptUserForInt(String prompt){\n Scanner scannerln = new Scanner(System.in);\n System.out.print(prompt);\n return scannerln.nextInt();\n }",
"public static int getValidInteger() {\n\n // This keeps looping until integer input is received.\n while (!scnr.hasNextInt()) {\n scnr.nextLine(); // clear the buffer\n System.out.print(\"Please enter an integer! \");\n }\n\n int integerNum = scnr.nextInt();\n scnr.nextLine();\n\n return integerNum;\n }",
"public static void validateInput(Scanner in) {\n\t\twhile (!in.hasNextInt()) {\n\t\t\tSystem.out.println(\"That's not an integer!\");\n\t\t\tin.next();\n\t\t\tSystem.out.print(\"Please try again: \");\n\t\t}\n\t}",
"private static int getIntFromUser(String prompt)\n\t {\n\t System.out.print(prompt); // Prompt user to enter input value\n\t return input.nextInt(); // Read and return user's response\n\t }",
"private static int getIntReply(String prompt) {\n System.out.print(prompt + \": \");\n String input = sc.nextLine();\n if (input.charAt(0) < 48 || input.charAt(0) > 57) {\n System.out.println(\"Invalid input\");\n return -1;\n } else return Integer.parseInt(input);\n }",
"public static int inputInteger()\n\t{\n\t\treturn(sc.nextInt());\n\t}",
"private static Long userInputInt(String message) {\n\t\tLong result = 0L;\n\t\tboolean answer = false;\n\t\twhile (!answer) {\n\t\t\tSystem.out.println(message);\n\t\t\ttry {\n\t\t\t\tresult = scanner.nextLong();\n\t\t\t\tif (result >= 0) {\n\t\t\t\t\tanswer = true;\n\t\t\t\t} else {\n\t\t\t\t\tSystem.err.println(\"Please could you indicate a positive number.\");\n\t\t\t\t}\n\t\t\t} catch (InputMismatchException e) {\n\t\t\t\tSystem.err.println(\"Your answer is not a correct number, please try again.\");\n\t\t\t} finally {\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public static int getInt(String prompt) throws Exception {\n if (scanner == null) {\n throw new Exception(\"Input Utility's scanner is not set\");\n }\n String localPrompt = prompt;\n boolean validInput = false;\n int num = 0;\n\n // enter the number\n do {\n if (localPrompt != null) {\n System.out.print(localPrompt);\n }\n try { // If (works)\n num = scanner.nextInt();\n scanner.nextLine();\n validInput = true;\n } catch (InputMismatchException ime) { // else (fails)\n System.out.println(\"That is not an integer.\");\n scanner.nextLine();\n if (localPrompt == null)\n localPrompt = \"Enter an integer: \";\n num = 0;\n }\n } while (!validInput);\n return num;\n }",
"public String user_string() {\n Scanner input = new Scanner(System.in);\n boolean conditional = true;\n while (conditional) {\n boolean condition = input.hasNextInt();\n if (!condition) {\n String user_input = input.nextLine();\n conditional = false; \n return user_input; \n }\n else {\n System.out.println(\"Invalid Input!\");\n conditional = true;\n input.next();\n }\n }\n return \"0\";\n }",
"static int checkIfInt(int check)\n {\n Scanner input = new Scanner(System.in);\n String str;\n int temp=0;\n int hold = 0;\n do{\n output(check);\n if(input.hasNextInt())\n {\n temp = input.nextInt();\n if(temp >0)\n {\n break;\n }\n }\n str = input.nextLine();\n if(check != 1)\n {\n count++;\n }\n System.out.println(\"Sorry. That's not a valid input\");\n }while(hold == 0);\n return temp;\n }",
"private int getNumber() {\n while (!scanner.hasNextInt()) {\n scanner.nextLine();\n System.out.print(\"Please, Enter a munber : \");\n }\n return scanner.nextInt();\n }",
"public static int awaitInt(String prefix) {\r\n System.out.print(prefix);\r\n Scanner scanner = new Scanner(System.in);\r\n String inputString = scanner.nextLine().trim().toUpperCase();\r\n\r\n try {\r\n int inputInt = Integer.parseInt(inputString);\r\n return inputInt;\r\n } catch (NumberFormatException e) {\r\n System.out.println(\"Please enter a valid number\");\r\n return awaitInt(prefix);\r\n }\r\n }",
"private int getInput()\n {\n int input = 0;\n Scanner scanner = new Scanner(System.in);\n\n try {\n input = scanner.nextInt();\n }\n catch(Exception e) {\n System.out.println(\"Vælg et tal fra menuen.\");\n scanner.nextLine();\n }\n\n return input;\n }",
"public static int prompt_input1(int mx){\n System.out.print(\"Please select your option: \");\n String choice = in.nextLine(); \n boolean invalid = !U.isInteger(choice);\n int c=-1;\n if(!invalid)c = Integer.parseInt(choice)-1;\n while(invalid||c<0||c>=mx){\n System.out.println(\"Invalid Input.\");\n System.out.printf(\"%s %d %s %d: \",\"Enter your choice between\",1,\"-\",mx);\n choice = in.nextLine(); \n invalid = !U.isInteger(choice);\n if(!invalid)c = Integer.parseInt(choice)-1;\n //System.err.println(\"choice: \"+choice);\n }\n return c;\n }",
"public int getUserGuess(){\n int n;\n\n System.out.print(\"Guess a number between 1 and 100:\\t\"); // Prompts for input\n while (!scanner.hasNextInt()) { // Checks to see if input is an integer\n System.out.print(\"Enter a number please: \\t\");\n scanner.next();\n }\n\n n = scanner.nextInt();\n return n;\n }",
"public static int userInput(int maxNum) {\n Scanner scan = new Scanner(System.in);\n int userInput = 0;\n\n // unchecked exception for user input\n do {\n try {\n System.out.println(\"Please input a number between 1 and \" + maxNum);\n userInput = Integer.parseInt(scan.nextLine());\n } catch (NumberFormatException e) {\n System.out.println(\"Not a number. Please try again.\");\n }\n } while (userInput < 1 || userInput > maxNum);\n\n System.out.println(\"You entered \" + userInput + \"\");\n\n return userInput;\n }",
"public static int verifica() {\n boolean naoEInt = true;\n int valor = 0;\n while (naoEInt) {\n Scanner leitor = new Scanner(System.in);\n System.out.println(\"=====================\");\n try {\n valor = leitor.nextInt();\n naoEInt = false;\n } catch (Exception e) {\n System.out.println(\"Os dados digitados não são válidos!\");\n }\n }\n return valor;\n }",
"private static int getInt(String prompt) {\n \t\n Scanner input;\n \n int result = 10; // default if there's no input\n \n \n try {\n \n \tinput = new Scanner(System.in);\n \n System.out.println(prompt);\n \n result = input.nextInt(); //take input\n \n //in case user enters something else than int\n } catch (NumberFormatException e) {\n System.out.println(\"Could not convert to int\");\n System.out.println(e.getMessage());\n System.out.println(\"Value has been set to default (10)\");\n \n //other error exception\n } catch (Exception e) {\n System.out.println(\"There was an error with System.in\");\n System.out.println(e.getMessage()); \n System.out.println(\"Value has been set to default (10)\");\n }\n return result;\n }",
"public static int getInput() {\n Scanner in = new Scanner(System.in);\n\n return in.nextInt();\n }",
"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}",
"public static int askUser(Scanner in)\n {\n System.out.println(\"What do you want, respectable human being?\");\n System.out.println(\"1. Add Reminder\");\n System.out.println(\"2. View Reminder\");\n System.out.println(\"3. Edit Reminder\");\n System.out.println(\"4. Delete Reminder\");\n System.out.println(\"5. Exit\");\n System.out.print(\"User Input : \");\n return in.nextInt();\n }",
"private static String validateInputStr() {\n String str = \"\";\n Scanner genericString = new Scanner(System.in);\n if (!genericString.hasNextInt()) {\n str = genericString.nextLine();\n return str;\n }\n else {\n validateInputStr();\n }\n return str;\n }",
"public static int checkInput() {\r\n\t\tint num = 0;\r\n\t\tboolean error = true; // check for error\r\n\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\t// input has to be an integer and not negative number\r\n\t\t\t\tnum = input.nextInt();\r\n\t\t\t\tif (num < 0)\r\n\t\t\t\t\tthrow new InputMismatchException();\r\n\t\t\t\terror = false;\r\n\r\n\t\t\t} catch (InputMismatchException e) {\r\n\r\n\t\t\t\tSystem.out.print(\"Wrong input, try again...: \");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t\t// loop continue while there is an error\r\n\t\t} while (error);\r\n\r\n\t\treturn num;\r\n\t}",
"public int getInt(String prompt) {\n do {\n try {\n String item = getToken(prompt);\n Integer num = Integer.valueOf(item);\n return num.intValue();\n }\n catch (NumberFormatException nfe) {\n System.out.println(\"Please input a number \");\n }\n } while (true);\n }",
"public int getInt(String prompt) {\n do {\n try {\n String item = getToken(prompt);\n Integer num = Integer.valueOf(item);\n return num.intValue();\n }\n catch (NumberFormatException nfe) {\n System.out.println(\"Please input a number \");\n }\n } while (true);\n }",
"private static int userInterface()\n {\n int uinput = 0;\n boolean badInput = true;\n\n System.out.println(\"This program will print a table of x\");\n System.out.println(\"and f(x) for x from 0 to the user\");\n System.out.println(\"inputted integer with f(x) being\");\n System.out.println(\"equal to:\");\n System.out.println(\"x^2 for x < 5\");\n System.out.println(\"x^2 - 3x - 10 for 5 <= x < 10\");\n System.out.println(\"x^2 - 7x - 8 for 10 <= x.\");\n \n Scanner read = new Scanner(System.in);\n System.out.print(\"Enter number of x: \");\n \n while (badInput)\n {\n if (read.hasNextInt())\n {\n uinput = read.nextInt();\n \t \tbadInput = false;\n\n if (uinput <= 0)\n {\n System.out.print(\"Enter a positive integer: \");\n badInput = true;\n }\n }\n else\n {\n \tSystem.out.print(\"Enter a positive integer: \");\n \t \tbadInput = true;\n \t }\n read.nextLine();\n }\n\n return uinput;\n }",
"public static int queryMenuInput(){\n System.out.println(queryMenu);\n String input = sc.nextLine();\n String[] valid = {\"1\",\"2\",\"3\",\"4\"};\n if(Arrays.asList(valid).contains(input)){\n return Integer.parseInt(input);\n } else {\n return -1;\n }\n }",
"boolean isInt(TextField input);",
"public static int getInt(Scanner console, String prompt) {\r\n System.out.print(prompt);\r\n while (!console.hasNextInt()) {\r\n console.next(); // to discard the input\r\n System.out.println(\"Not an integer; try again.\");\r\n System.out.print(prompt);}return console.nextInt();\r\n }",
"public static int userInput() {\n\n\t\tScanner myscanner = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter Number\");\n\t\tint userinput = 0;\n\n\t\t// validation to accept only numbers\n\t\ttry {\n\t\t\tuserinput = myscanner.nextInt();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Please enter only numbers\");\n\t\t}\n\n\t\treturn userinput;\n\n\t}",
"static int promptForNumber(String prompt) {\n String input;\n int value = -1;\n\n System.out.println(prompt);\n while (value == -1) {\n System.out.print(\">\");\n\n if (Menus.reader.hasNext()) {\n input = Menus.reader.nextLine().strip();\n try {\n value = Integer.parseInt(input);\n } catch (NumberFormatException e) {\n value = -1;\n }\n }\n }\n return value;\n }",
"public static int askInt(String message) {\n return askObject(message, \"Please enter a Number!\", Scanner::nextInt);\n }",
"private int takeCoinInput() {\n\t\tSystem.out.println(\"Enter a denomination\");\n\n\t\tString denomination = scan.next();\n\t\twhile (!denomination.matches(\"\\\\d+\")) {\n\t\t\tSystem.out.println(\"Invalid input, please try again.\");\n\t\t\tdenomination = scan.next();\n\t\t}\n\n\t\tint coin = Integer.valueOf(denomination);\n\n\t\treturn coin;\n\t}",
"public static void addVaccinationsToStock() {\n\r\n Scanner input = new Scanner(System.in);\r\n System.out.print(\"Enter the number of vaccinations which adding to the stock: \");\r\n if (input.hasNextInt()) { //Check the data type of user input\r\n int newVaccines = input.nextInt();\r\n vaccines = vaccines + newVaccines;\r\n System.out.println(newVaccines + \", new vaccines has been added to the stock.\");\r\n }\r\n else {\r\n System.out.println(\"Please check your input again! Input should be an integer.\");\r\n }\r\n }",
"int promptNumber();",
"private int read()\r\n {\r\n Scanner keyboard = new Scanner(System.in);\r\n System.out.println(\"Enter the number: \");\r\n int i = keyboard.nextInt();\r\n if (i > 999999999){\r\n System.out.println(\"The number you have introduced is too big!\");\r\n i = read();\r\n }\r\n if (i < 0){\r\n System.out.println(\"The number you have introduced is negative!\");\r\n i = read();\r\n }\r\n return i;\r\n }",
"public static int mainMenuInput(){\n System.out.println(mainMenu);\n String input = sc.nextLine();\n String[] valid = {\"1\",\"2\",\"3\"};\n if(Arrays.asList(valid).contains(input)){\n return Integer.parseInt(input);\n } else {\n return -1;\n }\n }",
"private static void determineIsPositiveInt() {\n System.out.println(\"Enter a number:\");\r\n Scanner s = new Scanner(System.in);\r\n int i = Integer.parseInt(s.nextLine());\r\n if (i > 0)\r\n System.out.println(\"Positive i\");\r\n else if (i == 0)\r\n System.out.println(\"i=0\");\r\n else\r\n System.out.println(\"Negative i\");\r\n }",
"public static int promptInt(Scanner console) {\n int num = 0;\n try {\n num = console.nextInt();\n } catch (InputMismatchException e) {\n console.next();\n }\n return num;\n }",
"public static int inputValidInteger(String prompt, int low, int high) {\n\t\tboolean inputCorrect = false;\n\t\tint input = Integer.MIN_VALUE;\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\twhile (!inputCorrect) {\n\t\t\ttry {\n\t\t\t\tSystem.out.print(prompt);\n\t\t\t\tinput = (Integer.parseInt(br.readLine()));\n\t\t\t\tif (input < low || input > high)\n\t\t\t\t\tthrow new Exception();\n\t\t\t\telse\n\t\t\t\t\tinputCorrect = true;\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println (\"Please enter a positive number between \" + \n\t\t\t\t\t\tlow + \" and \" + high);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn input;\n\t}",
"private int takeChangeInput() {\n\t\tSystem.out.println(\"Enter desired change amount\");\n\n\t\tString amount = scan.next();\n\t\twhile (!amount.matches(\"\\\\d+\")) {\n\t\t\tSystem.out.println(\"Invalid input, please try again.\");\n\t\t\tamount = scan.next();\n\t\t}\n\n\t\tint change = Integer.valueOf(amount);\n\n\t\treturn change;\n\t}",
"private static int getN ()\n\t{\n\t int inputInt = 1;\n\t BufferedReader in = new BufferedReader (new InputStreamReader (System.in));\n\t String inStr = new String();\n\n\t try\n\t {\n\t inStr = in.readLine ();\n\t inputInt = Integer.parseInt(inStr);\n\t }\n\t catch (IOException e)\n\t {\n\t System.out.println (\"Could not read input, choosing 1.\");\n\t }\n\t catch (NumberFormatException e)\n\t {\n\t System.out.println (\"Entry must be a number, choosing 1.\");\n\t }\n\n\t return (inputInt);\n\t}",
"public void takeInput() {\n\t\tboolean flag = true;\n\t\tMain test = new Main();\n\t\twhile(flag) {\n\t\t\tLOGGER.info(\"Enter an option 1.Calculate Simple Interest 2.Calculate Compound Interest 3.exit\");\n\t\t\tint val = sc.nextInt();\n\t\t\tswitch(val) {\n\t\t\tcase 1:\n\t\t\t\ttest.takeInputForSimpleInterest();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\ttest.takeInputForCompoundInterest();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tLOGGER.info(\"Enter valid input\");\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"static int inputCheck(Mode game){\n Scanner sc=new Scanner(System.in);\r\n int input;\r\n System.out.println(\"Your turn:\");\r\n do {\r\n input = sc.nextInt();\r\n if(input < 1 || input >9){\r\n System.out.println(\"Enter a number from 1-9\");\r\n }else if (game.filled(input)){\r\n System.out.println(\"Box is full, please enter another number\");\r\n }\r\n }while(input < 1 || input >9 || game.filled(input));\r\n return input;\r\n }",
"public static int getPositiveInt(Scanner mIn, String prompt){\n int mOption = -1;\n boolean valid = false;\n while(!valid){\n System.out.print(prompt + \": \");\n if(mIn.hasNextInt()){\n mOption = mIn.nextInt();\n mIn.nextLine();\n if(mOption > -1){\n valid = true;\n return mOption;\n }\n else{\n System.out.println(\"Input out of range. Please choose a positive number.\");\n }\n \n }else{\n System.out.println(\"Invalid Input. Please enter an integer.\");\n mIn.next();\n }\n }\n return mOption;\n }",
"public static int getInt(String prompt) {\n Scanner sc = new Scanner(System.in);\n int userInput;\n\n System.out.println(prompt);\n\n try {\n userInput = sc.nextInt();\n sc.close();\n return userInput;\n } catch (InputMismatchException e) {\n return getInt(prompt);\n }\n\n }",
"public Integer getData() {\r\n Scanner cs = new Scanner(System.in);\r\n int data = 0;\r\n while (true) {\r\n try {\r\n data = cs.nextInt();\r\n break;\r\n } catch (InputMismatchException e) {\r\n System.out.println(\"You should insert an Integer\");\r\n cs.next();\r\n }\r\n }\r\n return data;\r\n }",
"public static int promptUser(Scanner sc){\n int userInput = 0;\n boolean validInput = false;\n\n System.out.print(\"\" +\n \"Choose a game option: \\n\" +\n \" 1. Start playing \\n\" +\n \" 2. Set the starting configuration\\n\" +\n \"Enter your choice --> \");\n\n //loop until a valid input is read in\n while(validInput == false) {\n //ask until an integer is found\n while (!sc.hasNextInt()) {\n System.out.println(\"\\n\\t***INVALID INPUT***\\n\");\n System.out.println(\"\" +\n \"Choose a game option: \\n\" +\n \" 1. Start playing \\n\" +\n \" 2. Set the starting configuration\\n\" +\n \"Enter your choice --> \");\n sc.next();\n }\n\n userInput = sc.nextInt();\n\n //check to see if they entered a 1 or a 2\n if(userInput == 1 || userInput == 2)\n validInput = true;\n else{ //otherwise, re-prompt\n System.out.println(\"\\n\\t***INVALID INPUT***\\n\");\n System.out.println(\"\" +\n \"Choose a game option: \\n\" +\n \" 1. Start playing \\n\" +\n \" 2. Set the starting configuration\\n\" +\n \"Enter your choice --> \");\n continue;\n }\n\n }\n\n return userInput;\n }",
"public int getInteger(String prompt) {\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tString item = getToken(prompt);\r\n\t\t\t\tInteger number = Integer.valueOf(item);\r\n\t\t\t\treturn number.intValue();\r\n\t\t\t} catch (NumberFormatException nfe) {\r\n\t\t\t\tSystem.out.println(\"Please input a number.\");\r\n\t\t\t}\r\n\t\t} while (true);\r\n\t}",
"public static int typeValidation(int type) {\n Scanner scanner = new Scanner(System.in);\n int attempt = type;\n while (attempt > 3 || attempt < 1)// Type 4 is supposed to be people who can make employees. Computer decides that, not the user\n {\n System.out.println(\"Invalid Choice\");\n System.out.print(\" > \");\n attempt = scanner.nextInt();\n }\n return attempt;\n\n }",
"public static int f_number_user() {\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"Input the number\");\n int number = keyboard.nextInt();\n return number;\n }",
"private int insertSearchMenuAnswer()\n {\n boolean valid = false;\n String answer = \"\";\n Scanner content = new Scanner(System.in);\n \n while (!valid)\n {\n menu.searchOptions();\n answer = content.nextLine().trim();\n valid = validation.integerValidation(answer, 1, 3);\n }\n \n int ans = Integer.parseInt(answer);\n return ans;\n }",
"public static int getInt(Scanner sc, String prompt) {\n\t\tint i = 0;\n\t\tboolean isValid = false;\n\t\twhile (isValid == false) {\n\t\t\tSystem.out.print(prompt);\n\t\t\tif (sc.hasNextInt()) {\n\t\t\t\ti = sc.nextInt();\n\t\t\t\tisValid = true;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Error! Invalid integer value. Try again.\");\n\t\t\t}\n\t\t\tsc.nextLine(); // discard any other data entered on the line\n\t\t}\n\t\treturn i;\n\t}",
"public boolean checkInteger(String input, int gridSize)\n {\n Scanner console = new Scanner(System.in);\n boolean error = true;\n boolean value = true;\n int result = 0;\n while(error)\n {\n if(checkInput(input) == true)\n {\n result = Integer.parseInt(input);\n if(result >= 0 && result < gridSize)\n {\n error = false;\n }\n else\n {\n System.out.println(\"Please enter a value between 0 and \"+(gridSize-1));\n value = false;\n error = false;\n }\n }\n else\n {\n System.out.println(\"Wrong Input, please enter correct input\");\n value = false;\n error = false;\n }\n }\n return value;\n }",
"public int getUserIntInput(String question) {\r\n System.out.print(question);\r\n while (!scanner.hasNextInt()) {\r\n scanner.next();\r\n }\r\n int result = scanner.nextInt();\r\n return result;\r\n }",
"public static void main (String [] args) {\n while (true) {\n System.out.println(\"Please enter an integer\");\n Scanner scanner = new Scanner(System.in);\n int input = scanner.nextInt();\n if (input == 17) {\n break;\n }\n else if (input % 2 == 0) {\n System.out.println(\"even\");\n } else {\n System.out.println(\"odd\");\n }\n }\n System.out.println(\"My number 17! Show is over\");\n }",
"private static int askForGoMainMenu(String message){\n\t\tshowMessage(message);\n\t\tBufferedReader myReader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint input;\n\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tinput = Integer.parseInt(myReader.readLine());\n\n\t\t\t\tif ((input < 0) || (input>1)) {\n\t\t\t\t\tSystem.out.println(\"Please type 1 or 2.\\n\");\n\t\t\t\t}\n\n\t\t\t}catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Character invalid. Choose 1 or 2.\\n\");\n\t\t\t\tinput = 0;\n\t\t\t}\n\n\n\t\t}\n\t\twhile ((input < 0) || (input>1));\n\n\t\treturn input;\n\n\t}",
"private int getValidInteger(String msg) {\n\t\twhile (!scan.hasNextInt() || (choice = scan.nextInt()) < 1) {\n\t\t\tSystem.out\n\t\t\t\t\t.print(\"Error ---> Enter Positive Integer Value:\\n\" + msg);\n\t\t\tscan.next();\n\t\t}\n\n\t\treturn choice;\n\t}",
"public static int readInt(String prompt){\n\t\tSystem.out.print(prompt+\": \");\n\t\tstringInput = readInput();\n\t\ttry{\n\t\t\tintInput = Integer.parseInt(stringInput);\n\t\t}\n\t\tcatch (NumberFormatException ex) {\n\t\t System.err.println(\"Not a valid number: \" + stringInput);\n\t\t}\n\t\treturn intInput; \t\t\n\t}",
"public static void main(String[] args) {\n\t\tint number = 0;\n\t\tjava.util.Scanner keyboard = new java.util.Scanner(System.in);\n\t\t\t\t\t\n\t\t\n\t\tdo\n\t\t{\n\t\t\tSystem.out.print(\"Enter an integer between 1 and 99999: \");\n\t\t\tnumber = keyboard.nextInt();\n\t\t\n\t\t\tif (number >= 1 && number <= 99999)\t\t\n\t\t\t\tdisplayDigits(number);\t\n\t\t\telse\n\t\t\t\tSystem.out.print(\"Try again. \");\n\t\t}\n\t\twhile (!(number >= 1 && number <= 99999));\n\t\t\n\t\tkeyboard.close();\n\t\t\n\t}",
"public static int f_number_user(){\n Scanner keyboard=new Scanner(System.in);\r\n int digits;\r\n System.out.println(\"input the entire number \");\r\n digits=keyboard.nextInt();\r\n return digits;\r\n }",
"public int getChoice(String prompt) {\n System.out.print(prompt);\n try {\n return Integer.valueOf(scanner.nextLine());\n } catch (Exception e) {\n // if user does not enter a valid integer, -1 is returned to indicate invalid input\n return -1;\n }\n }",
"public static void main(String[] args) {\n\n Scanner value = new Scanner(System.in);\n\n int minnum = Integer.MAX_VALUE;\n int maxnum = Integer.MIN_VALUE;\n while (true){\n System.out.println(\" Enter Number\");\n boolean Isint = value.hasNextInt();\n if (Isint){\n int number = value.nextInt();\n minnum = Math.min(minnum, number);\n maxnum = Math.max(maxnum, number);\n\n } else {\n System.out.println(\" The Minimum Number entered is \" + minnum + \" & the max number entered is \" + maxnum);\n break;\n }value.nextLine();\n\n } value.close();\n }",
"private static void input(Scanner userScn)\n {\n // Prompt\n //System.out.print(\"Degree value of polynomial? (1-4): \");\n Prompt();\n\n // Sanitation logic... .next() should catch all\n if(!userScn.hasNextInt())\n {\n userScn.next();\n Prompt();\n }\n else if((d = userScn.nextInt()) > MaxDegree || d < MinDegree) // super efficient\n {\n Prompt();\n }\n else // exits with valid input\n {\n System.out.println(\"Your polynomial degree is: \" + d);\n }\n }",
"public static int getIntInput(Scanner console, int min, int max)\n {\n if (console.hasNextInt())\n {\n int num = console.nextInt();\n console.nextLine();\n if (min <= num && num <= max)\n {\n return num;\n }\n }\n console.nextLine();\n System.out.print(\"Invalid input. Please enter an integer between \" + min + \" and \" + max +\": \");\n return getIntInput(console, min, max);\n }",
"private boolean isInt(TextField input){\r\n input.setStyle(\"-fx-border-color: green; -fx-border-radius: 15;-fx-background-radius: 20;\");\r\n try {\r\n int number = Integer.parseInt(input.getText());\r\n System.out.println(\"Input is\" + number );\r\n return true;\r\n } catch (Exception e) {\r\n input.setStyle(\"-fx-border-color: red;\");\r\n input.setText(null);\r\n input.setPromptText(\"Only digits/numbers must be filled\");\r\n return false;\r\n }\r\n }",
"private static void requestInput() {\n Scanner in = new Scanner(System.in);\n System.out.println(\"Enter Item ID\");\n int usedId = 0;\n int usedWithId = 0;\n int level = 0;\n int productId = 0;\n int xp = 0;\n int low = 0;\n int high = 0;\n Scanner scanner = new Scanner(System.in);\n while (true) {\n try {\n usedId = Integer.parseInt(in.nextLine());\n\n System.out.println(\"Enter Secondary Item ID\");\n usedWithId = Integer.parseInt(in.nextLine());\n\n System.out.println(\"Enter Level Requirement\");\n level = Integer.parseInt(in.nextLine());\n\n System.out.println(\"Enter Product Item ID\");\n productId = Integer.parseInt(in.nextLine());\n\n System.out.println(\"Enter Action XP\");\n xp = Integer.parseInt(in.nextLine());\n\n System.out.println(\"Enter Low Roll\");\n low = Integer.parseInt(in.nextLine());\n\n System.out.println(\"Enter High Roll\");\n high = Integer.parseInt(in.nextLine());\n\n createPotionAction(usedId, usedWithId, level, productId, xp, low, high);\n } catch (NumberFormatException e) {\n System.out.println(\"Please input an integer.\");\n }\n }\n }",
"public static int getInt(Scanner scnr, String prompt) {\n\t\tSystem.out.print(prompt);\n\t\ttry {\n\t\t\tint num = scnr.nextInt();\n\t\t\tscnr.nextLine();\n\t\t\treturn num;\n\t\t} catch (ArrayIndexOutOfBoundsException | IllegalArgumentException | InputMismatchException ex) {\n\t\t\tSystem.out.print(\"Enter a whole number 1-8.\");\n\t\t\tscnr.nextLine();\n\t\t\treturn getInt(scnr, prompt);\n\t\t}\n\t}",
"private int insertExitMenuAnswer()\n {\n boolean valid = false;\n String choice = \"\";\n Scanner content = new Scanner(System.in);\n \n while (!valid)\n {\n menu.exitOptions();\n choice = content.nextLine().trim();\n valid = validation.integerValidation(choice, 1, 3);\n }\n \n int ans = Integer.parseInt(choice);\n return ans;\n }"
] | [
"0.7715431",
"0.75382936",
"0.73655206",
"0.7339368",
"0.73241746",
"0.72843665",
"0.727762",
"0.7160752",
"0.71506757",
"0.7074191",
"0.7071771",
"0.7054595",
"0.7023098",
"0.6987198",
"0.69868106",
"0.69638216",
"0.6942457",
"0.6902055",
"0.6866519",
"0.6866213",
"0.68660325",
"0.6860942",
"0.68470764",
"0.6837933",
"0.68307805",
"0.68268764",
"0.6778854",
"0.67760795",
"0.67669976",
"0.6764702",
"0.67527974",
"0.6739388",
"0.6739112",
"0.6705144",
"0.6689057",
"0.6652123",
"0.66446304",
"0.6640886",
"0.6630557",
"0.6628338",
"0.66235775",
"0.6620162",
"0.6604276",
"0.6555749",
"0.6553147",
"0.6551772",
"0.6535074",
"0.6488755",
"0.64822495",
"0.64771724",
"0.6460197",
"0.6450427",
"0.63945",
"0.6394332",
"0.6389286",
"0.6385455",
"0.6385455",
"0.6382838",
"0.63726056",
"0.6363125",
"0.63623023",
"0.63597935",
"0.63516545",
"0.6338182",
"0.63368255",
"0.6318969",
"0.6311942",
"0.63116467",
"0.6304177",
"0.6289752",
"0.6272551",
"0.62689507",
"0.62662464",
"0.62652004",
"0.6253901",
"0.6239643",
"0.623633",
"0.6235475",
"0.62188584",
"0.6218295",
"0.6212864",
"0.6207949",
"0.619881",
"0.61831987",
"0.61805785",
"0.6168737",
"0.6157051",
"0.61398894",
"0.61375976",
"0.6131875",
"0.61272347",
"0.6125376",
"0.6115666",
"0.61154324",
"0.60962576",
"0.60899717",
"0.6054711",
"0.60391134",
"0.60383624",
"0.6035131",
"0.60335636"
] | 0.0 | -1 |
Prompts the user to enter the date until the date is in valid format which is "YYYYMMDD" | public LocalDate getValidDateFormat(String msg) {
String sDate = getCommand(msg);
while (!isValidDate(sDate)){
sDate = getCommand(ANSI_RED+"Invalid date. Enter ISO format"+ANSI_RESET);
}
return LocalDate.parse(sDate);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static String dateAddAndValidation() {\n Scanner scan = new Scanner(System.in);\r\n String date;\r\n while (true) {\r\n System.out.println(\"Please add task due date(YYYY-MM-DD)\");\r\n date = scan.nextLine().trim();\r\n String[] dateArray = date.split(\"-\");\r\n if (dateArray.length != 3 || date.length() != 10) {\r\n System.out.println(RED + \"Date format is incorrect. \" + RESET);\r\n continue;\r\n }\r\n if (dateArray[0].length() != 4 || !StringUtils.isNumeric(dateArray[0])) {\r\n System.out.println(RED + \"You have typed incorrect Year format (not all of the data are numbers or there are too many/ too few signs). \" + RESET);\r\n continue;\r\n }\r\n if (dateArray[1].length() != 2 || !NumberUtils.isDigits(dateArray[1])) {\r\n System.out.println(RED + \"You have given incorrect Month format (not all of the signs are numbers or there are too many/ too few signs). \" + RESET);\r\n continue;\r\n }\r\n if (Integer.parseInt(dateArray[1]) < 1 || Integer.parseInt(dateArray[1]) > 12) {\r\n System.out.println(RED + \"You have given incorrect Month date (Month date shouldn't be greater than 12 or less than 1). \" + RESET);\r\n continue;\r\n }\r\n if (dateArray[2].length() != 2 || !NumberUtils.isDigits(dateArray[2])) {\r\n System.out.println(RED + \"You have given incorrect Day format (not all of the signs are numbers or there are too many/ too few signs). \" + RESET);\r\n continue;\r\n }\r\n if (Integer.parseInt(dateArray[2]) < 1 || Integer.parseInt(dateArray[2]) > 31) {\r\n System.out.println(RED + \"You have typed incorrect Day date (Day date shouldn't be greater than 31 or less than 1). \" + RESET);\r\n continue;\r\n }\r\n break;\r\n }\r\n return date;\r\n }",
"public static void valDate() {\n Scanner input = new Scanner(System.in);\n try {\n LocalDate dateObj = LocalDate.parse(date);\n } catch (DateTimeParseException ex) {\n System.err.println(\"Invalid date, please insert a valid date with pattern yyyy-MM-dd\");\n date = input.next();\n valDate();\n }\n }",
"public static LocalDate getLocalDate(String prompt)\n {\n LocalDate date;\n while(true)\n {\n try\n {\n System.out.print(prompt + \" \");\n date = DateUtility.convertDate((in.nextLine()));\n break;\n }\n catch(Exception e)\n {\n System.out.println(\"Not a valid Date\");\n }\n }\n return date; \n }",
"public void promptDate(String date)\n {\n this.date = date;\n }",
"public static void main(String[] args) {\n\t\tString in=new String();\r\n\t\tString out=new String();\r\n\t\tScanner s=new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"enter date\");\r\n in=s.nextLine();\r\n System.out.println(\"enter another date\");\r\n out=s.nextLine();\r\n\t\t\r\n\t\tLocalDate enteredDate=LocalDate.parse(in);\r\n\t\tLocalDate enteredDate1=LocalDate.parse(out);\r\n\t\t\r\n\t\t//System.out.println(\"Entered Date:\"+enteredDate);\r\n\t\r\n\t\t//LocalDate ld=LocalDate.now();\r\n\t\tPeriod p=enteredDate.until(enteredDate1);\r\n\t\t\r\n\t\tSystem.out.println(p.getDays());\r\n\t\tSystem.out.println(p.getMonths());\r\n\t\tSystem.out.println(p.getYears());\r\n\t}",
"private static LocalDate readDateFromConsole() {\n\t\tboolean validInput = false; \n\t\tLocalDate date = null; \n\t\twhile (! validInput) {\n\t\t\ttry {\n\t\t\t\tOut.print(\" Bitte Datum eingeben (tt.mm.jjjj): \");\n\t\t\t\tdate = readDate();\n\t\t\t\tvalidInput = true; \n\t\t\t} catch (Exception e) {\n\t\t\t\tOut.print(\" Falsche Datumseingabe!\");\n\t\t\t}\n\t\t}\n\t\treturn date; \n\t}",
"public Date checkDate() {\n // Create new sdf with format is dd/MM/yyyy\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n sdf.setLenient(false); // Check special day\n Date date = null; // Create date\n boolean isOK = true; // Condition loop\n\n while (isOK) {\n try {\n String dateStr = checkEmpty(\"DOB\"); // Call method to check input of dob\n date = sdf.parse(dateStr); // Convert string to date\n return date;\n\n } catch (ParseException e) {\n // Print error if date is invalid\n System.out.println(\"Date is invalid !\");\n System.out.print(\"Enter again (dd/MM/yyyy): \");\n }\n }\n return date; // Return date\n }",
"public static void printDateTimeErr() {\n printLine();\n System.out.println(\" Oops! Please enter your date in the yyyy-mm-dd format\\n\");\n printLine();\n }",
"public LocalDate promptDate(String message, String dateFormat) {\n DateTimeFormatter dateFormatter;\n String selection;\n LocalDate date;\n \n dateFormatter = DateTimeFormatter.ofPattern(dateFormat);\n \n // Prompt the date until it can be parsed correctly\n promptDate: do {\n selection = promptString(message);\n try {\n date = LocalDate.parse(selection, dateFormatter);\n break promptDate;\n } catch (DateTimeParseException e) {\n ui.say(\"Text cannot be parsed. The date format should be (\" + dateFormat + \").\");\n }\n } while(true);\n \n return date;\n }",
"public void departure_date()\r\n\t{\r\n\t\r\n\t\tDate date = new Date();\r\n\t\tdate.setDate(date.getDate() + 6);\r\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"MM/dd/YYYY\");\r\n\t\tformattedDate = df.format(date);\r\n\r\n\t\tif (departuredate.isDisplayed()) \r\n\t\t{\r\n\t\t\tdeparturedate.click();\r\n\t\t\tdeparturedate.clear();\r\n\t\t\tTypeInField(departuredate, formattedDate);\r\n\t\t\t//departuredate.sendKeys(formattedDate);\r\n\t\t\t//System.out.println(\"departuredate is entered successfully\");\r\n\t\t\tlogger.info(\"departuredate is entered successfully\");\r\n\t\t\ttest.log(Status.INFO, \"departuredate is entered successfully\");\r\n\r\n\t\t} else {\r\n\t\t\t//System.out.println(\"departuredate TextBox not found\");\r\n\t\t\tlogger.error(\"departuredate TextBox not found\");\r\n\t\t\ttest.log(Status.FAIL, \"departuredate TextBox not found\");\r\n\r\n\t\t}\r\n\t}",
"public static Date inputDate(String p, String pattern) {\n SimpleDateFormat sdf = new SimpleDateFormat(pattern);\n Date date = new Date();\n String tmp;\n while (true) {\n try {\n System.out.print(p);\n tmp = in.nextLine();\n if (!tmp.isEmpty()) {\n date = sdf.parse(tmp);\n if (tmp.equals(sdf.format(date))) {\n return date;\n } else {\n System.err.println(\"Please enter a right date, enter again.\");\n }\n } else {\n System.err.println(\"Not empty! Re-enter.\");\n }\n } catch (Exception e) {\n System.err.println(\"Format must be \" + pattern + \" ! Enter again.\");\n }\n }\n }",
"public static void main(String[] args) {\n\t\t SimpleDateFormat sdf = new SimpleDateFormat (\"dd-MM-yyyy\");\n\t\t\t\t sdf.setLenient(false);\n\t\t\t\t String input = \"13-02-2018\"; \n\t\t\t\t System.out.println(\"Given Date is:\"+ input); \n\t\t\t\t Date dt;\n\t\t\t\t try {\n\t\t\t\t dt = sdf.parse(input); \n\t\t\t\t System.out.println(dt); \n\t\t\t\t } catch (ParseException e) { \n\t\t\t\t System.out.println(\"Invalid date entered :\" + input); \n\t\t\t\t }\n\n\t}",
"private static String getDate() {\n Scanner input = new Scanner(System.in);\n\n String monthName = input.next();\n int month = monthNum(monthName);\n int day = input.nextInt();\n String date = \"'2010-\" + month + \"-\" + day + \"'\";\n return date;\n }",
"public static void dateDue() {\n Date date = new Date();\r\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n String strDate = formatter.format(date);\r\n NewProject.due_date = getInput(\"Please enter the due date for this project(dd/mm/yyyy): \");\r\n\r\n UpdateData.updateDueDate();\r\n updateMenu();\t//Return back to previous menu.\r\n }",
"public static String verifyHireDate(Scanner input, String tempDate){\n \n //String used for regex verification of input date\n String theRegex = \"[0-1][0-9][/][0-3][0-9][/][1-2][0-9][0-9][0-9]\";\n \n //While tempDate does not match theRegex\n while(!tempDate.matches(theRegex)){\n System.out.print(\"The employee's hire date you entered was invalid.\\nMake sure the date you enter matches IX/JX/KXXX including the slashes\"\n + \"\\nwhere I is a 0 or 1, J is 0-3, K is a 1 or 2, and X is a digit 0-9: \");\n tempDate = input.nextLine();\n }\n return tempDate; \n }",
"public void inputDay () {\n\t\tSystem.out.print(\"Enter a day: \");\r\n\t\tday = input.nextInt();\r\n\r\n\t}",
"private void validateDate() {\n if (dtpSightingDate.isEmpty()) {\n dtpSightingDate.setErrorMessage(\"This field cannot be left empty.\");\n dtpSightingDate.setInvalid(true);\n removeValidity();\n }\n // Check that the selected date is after research began (range check)\n else if (!validator.checkDateAfterMin(dtpSightingDate.getValue())) {\n dtpSightingDate.setErrorMessage(\"Please enter from \" + researchDetails.MIN_DATE + \" and afterwards. This is when the research period began.\");\n dtpSightingDate.setInvalid(true);\n removeValidity();\n }\n // Check that the selected date is not in the future (range check / logic check)\n else if (!validator.checkDateNotInFuture(dtpSightingDate.getValue())) {\n dtpSightingDate.setErrorMessage(\"Please enter a date from today or before. Sighting date cannot be in the future.\");\n dtpSightingDate.setInvalid(true);\n removeValidity();\n }\n }",
"public static void promptDate(ArrayList<Task> taskList) {\n String prompt = \"change the date of\"; // initializing the prompt to the user\n Task task; // declaring the task variable for date changing\n int index = promptIndex(taskList, prompt); // prompting, receiving, and error checking the user's input\n if (index != -1) { // if the index exists\n task = taskList.get(index); // assigning the variable pointer to the task at this index\n // declaring the integer variables for the month, day, and year numbers\n int month; // month number\n int day; // day number\n int year; // year number\n // month prompting and error checking\n do { // error checking for correct month value\n System.out.print(\"Enter valid month #: \"); // prompting the user for month number\n month = input.nextInt(); // receiving the user's input for month\n input.nextLine(); // preventing the nextInt/nextLine error\n } while (month < 1 || month > 12); // while the user does not enter a valid input for month\n // year prompting and error checking\n do {\n System.out.print(\"Enter valid year #: \"); // prompting the user for year number\n year = input.nextInt(); // receiving the user's input for year\n input.nextLine(); // preventing the nextInt/nextLine error\n } while (year < 0); // while the user does not enter a valid input for day\n // day prompting and error checking\n do { // error checking for correct day value\n System.out.print(\"Enter valid day #: \"); // prompting the user for day number\n day = input.nextInt(); // receiving the user's input for day\n input.nextLine(); // preventing the nextInt/nextLine error\n } while (day > checkDaysInMonth(month, year) || day <= 0); // while the user does not enter a valid input for day\n String formattedDate = String.format(\"%02d/%02d/%04d\", month, day, year); // formatting the date into String format of mm/dd/yyyy\n task.setDate(formattedDate); // setting the date of the Task object\n } \n System.out.print(\"\\n\"); // printing a newline for formatting\n pause(); // pausing the screen\n }",
"public static LocalDate validDate(String message){\n boolean success = false;\n String line;\n LocalDate date = null;\n do {\n line = readLine(message).trim();\n line = formatDate(line);\n date = checkDate(line, \"dd-MM-yyyy\");\n if (date != null)\n success = true;\n else\n System.out.println(\"Debe introducir una fecha válida (dd-MM-aaaa)... \");\n } while(!success);\n return date;\n }",
"public void departure_date(String departureDatePicker) throws ParseException\r\n\t{\r\n\t\t\r\n\t\tSimpleDateFormat df1;\r\n\t\t\r\n\r\n\t\tif(departuredate.getAttribute(\"placeholder\").equals(\"mm/dd/yyyy\")){\r\n\t\t\t df1 = new SimpleDateFormat(\"MM/dd/yyyy\");\r\n\r\n\t\t}else{\r\n\t\t\t df1 = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\t}\r\n\t\t\r\n\t\t//Formats date based on BE customer date format\r\n\t\tdf1 = new SimpleDateFormat(departuredate.getAttribute(\"placeholder\"));\r\n\t\t\t\t\r\n\t\t//Converts the String text from Data file into a Date object\r\n\t\tDate dateForDeparture = df1.parse(departureDatePicker);\r\n\t\t\t\t\r\n\t\t//Suppose to create the current date\r\n\t\tDate currentDate = new Date();\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"This is current date from departure_date() \" + currentDate);\r\n\t\t\t\r\n\r\n\t\t//will use this attriute to find out the date format\r\n\t\tSystem.out.println(departuredate.getAttribute(\"placeholder\"));\r\n\t\t\r\n\t\t\r\n\t\tif ( dateForDeparture.before(currentDate)){\r\n\t\t\t \r\n\t\t\tdateForDeparture.setDate(currentDate.getDate() + 6);\r\n\t\t }\r\n\t\t\r\n\t\tformattedDate1 = df1.format(dateForDeparture);\r\n\t\t\r\n\t\tSystem.out.println(\"This is the departure date reformat from departure_date() \" + formattedDate1);\r\n\t\t\r\n\t\t\r\n\t\tif (departuredate.isDisplayed()) \r\n\t\t{\r\n\t\t\tdeparturedate.click();\r\n\t\t\tdeparturedate.clear();\r\n\t\t\tTypeInField(departuredate, formattedDate1);\r\n\t\t\t//departuredate.sendKeys(formattedDate1);\r\n\t\t\tSystem.out.println(\"departuredate is entered successfully\");\r\n\t\t\tlogger.info(\"departuredate is entered successfully\");\r\n\t\t\ttest.log(Status.INFO, \"departuredate is entered successfully\");\r\n\r\n\t\t} else {\r\n\t\t\t//System.out.println(\"departuredate TextBox not found\");\r\n\t\t\tlogger.error(\"departuredate TextBox not found\");\r\n\t\t\ttest.log(Status.FAIL, \"departuredate TextBox not found\");\r\n\r\n\t\t}\r\n\t}",
"public static boolean isValidDOB(String userInput) {\n \n return Pattern.matches(Constants.DATE_VALIDATION, userInput);\n }",
"public boolean DateValidation(String date, String startTime, String currentTime) {\n\n boolean state = false;\n\n //String x = dateChooser.getDate().toString();\n String Hyear = date.substring(24, 28); // get user input date\n String Hmonth = monthToCompare(date);\n String Hdate = date.substring(8, 10);\n String stHr = startTime.substring(0, 2);\n String stMin = startTime.substring(3, 5);\n\n int userYr, userMnth, userDate, userHour, userMin = 0;\n userYr = Integer.parseInt(Hyear); // conversion of user entered year to int\n userMnth = Integer.parseInt(Hmonth);\n userDate = Integer.parseInt(Hdate);\n userHour = Integer.parseInt(stHr);\n userMin = Integer.parseInt(stMin);\n\n String yyr = currentTime.substring(0, 4); // get currrent year from the string f\n String mmnth = currentTime.substring(5, 7);\n String ddt = currentTime.substring(8, 10); // get current date from the string f\n String hours = currentTime.substring(11, 13);\n String mins = currentTime.substring(14, 16);\n\n int yr, mnth, dt, shr, smin = 0;\n yr = Integer.parseInt(yyr); // convert current year from string to int\n mnth = Integer.parseInt(mmnth);\n dt = Integer.parseInt(ddt);\n shr = Integer.parseInt(hours);\n smin = Integer.parseInt(mins);\n\n if ((userYr == yr) || (userYr > yr)) { // if user entered year is the current year or future year, ok \n if (((userYr == yr) && (userMnth >= mnth)) || ((userYr > yr) && (userMnth >= mnth)) || ((userYr > yr) && (userMnth < mnth))) {\n if (((userYr == yr) && (userMnth >= mnth) && (userDate >= dt)) || ((userYr == yr) && (userMnth > mnth) && (userDate < dt)) || ((userYr == yr) && (userMnth > mnth) && (userDate >= dt))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt)) || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt))) {\n if (((userYr == yr) && (userMnth == mnth) && (userDate >= dt) && (userHour >= shr)) || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour < shr))\n || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour >= shr)) || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour >= shr))\n || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour < shr)) || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour < shr))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour >= shr)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour >= shr))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour >= shr)) || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour >= shr))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour < shr)) || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour < shr))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour < shr)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour < shr))) {\n if (((userYr == yr) && (userMnth == mnth) && (userDate == dt) && (userHour == shr) && (userMin >= smin)) || ((userYr == yr) && (userMnth == mnth) && (userDate == dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr == yr) && (userMnth == mnth) && (userDate == dt) && (userHour > shr) && (userMin < smin)) || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour < shr) && (userMin >= smin)) || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour >= shr) && (userMin < smin))\n || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour < shr) && (userMin < smin)) || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour >= shr) && (userMin < smin)) || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour >= shr) && (userMin >= smin)) || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour >= shr) && (userMin < smin))\n || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour < shr) && (userMin >= smin)) || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour < shr) && (userMin < smin))\n || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour < shr) && (userMin < smin)) || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour >= shr) && (userMin < smin)) || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour < shr) && (userMin < smin)) || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour >= shr) && (userMin < smin)) || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour < shr) && (userMin < smin)) || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour >= shr) && (userMin < smin)) || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour < shr) && (userMin < smin)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour >= shr) && (userMin < smin)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour < shr) && (userMin < smin))) {\n state = true;\n } else {\n JOptionPane.showMessageDialog(null, \"Invalid time!\");\n state = false;\n }\n\n } else {\n JOptionPane.showMessageDialog(null, \"Invalid time!\");\n state = false;\n }\n\n } else {\n JOptionPane.showMessageDialog(null, \"Invalid day!\");\n state = false;\n }\n\n } else {\n JOptionPane.showMessageDialog(null, \"Invalid month!\");\n state = false;\n }\n } else {// if the user entered year is already passed\n JOptionPane.showMessageDialog(null, \"Invalid year\");\n state = false;\n }\n return state;\n }",
"public Date getDate(String pPrompt) throws ParseException {\r\n\t\tSystem.out.println(pPrompt + \" \");\r\n\t\treturn new SimpleDateFormat(\"dd/MM/yy\").parse(input.nextLine());\r\n\t}",
"public void input() throws ParseException {\r\n\t\tScanner scn = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Please enter id: \");\r\n\t\tString idSt = scn.nextLine();\r\n\t\tid = Integer.parseInt(idSt);\r\n\t\tSystem.out.println(\"Please enter title: \");\r\n\t\ttitle = scn.nextLine();\r\n\t\tSystem.out.println(\"Please enter authors name: \");\r\n\t\tauthor = scn.nextLine();\r\n\t\tSystem.out.println(\"Please enter date (dd.MM.yyyy): \");\r\n\t\tString scnDate = scn.nextLine();\r\n\t\tdateOfPublication = stringToDate(scnDate);\r\n\t}",
"public boolean verifyInputCorrectFormatDate(String dateValue, boolean isNewToDoPage) {\n boolean result = true;\n try {\n // If isNewToDoPage = true :verify in add new to-do page | isNewToDoPage = false, verify in to-do list page\n if (isNewToDoPage) {\n waitForClickableOfElement(eleIdDueDate, \"Due date text box\");\n clickElement(eleIdDueDate, \"Due date text box\");\n sendKeyTextBox(eleIdDueDate, dateValue, \"Due date text box\");\n result = validateAttributeElement(eleIdDueDate, \"value\", \"\");\n } else {\n waitForClickableOfElement(eleToDoNewRowDueDateText.get(0), \"Select due date text box\");\n clickElement(eleToDoNewRowDueDateText.get(0), \"Select due date text box\");\n sendKeyTextBox(eleToDoNewRowDueDateText.get(0), dateValue, \"Select due date text box\");\n result = validateAttributeElement(eleToDoNewRowDueDateText.get(0), \"value\", \"\");\n\n }\n //If result = false : before and after value as not same --> can not input correct data into due date control\n if (!result) {\n NXGReports.addStep(\"TestScript Failed: Input correct date format in due date text box \", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n return false;\n }\n NXGReports.addStep(\"Input correct date format in due date text box \", LogAs.PASSED, null);\n } catch (AssertionError e) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"TestScript Failed: Input correct date format in due date text box \", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n return false;\n }\n return result;\n }",
"private boolean checkValidDate(String inputDate) {\n SimpleDateFormat date = new SimpleDateFormat(\"ddMMyy\");\n date.setLenient(false);\n try {\n date.parse(inputDate);\n return true;\n } catch (ParseException e) {\n return false;\n }\n }",
"public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter a date\");\r\n\t\tint date=sc.nextInt();\r\n\t\tif(date<1 || date>31)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Date is wrong\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tswitch(date%10)\r\n\t\t\t{\r\n\t\t\tcase 1:\r\n\t\t\t\tif(((date/10)%10)==1)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(date+\"th\");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(date+\"st\");\r\n\t\t\t\t}break;\r\n\t\t\tcase 2:\r\n\t\t\t\tif(((date/10)%10)==1)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(date+\"th\");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(date+\"nd\");\r\n\t\t\t\t}break;\r\n\t\t\tcase 3:\r\n\t\t\t\tif(((date/10)%10)==1)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(date+\"th\");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(date+\"rd\");\r\n\t\t\t\t}break;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(date+\"th\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t}\r\n\t}",
"private void fillInDate ( final String dateField, final String date ) {\n waitForAngular();\n driver.findElement( By.name( dateField ) ).clear();\n final WebElement dateElement = driver.findElement( By.name( dateField ) );\n dateElement.sendKeys( date.replace( \"/\", \"\" ) );\n }",
"public void selectAndEnterDate(String Date,String dateInput) {\n\t\tWebElement dateField=findElement(By.xpath(\"//input[contains(@name,'\"+Date+\"')]\"));\n\t\twaitAndClick(dateField);\n\t\tinputText(dateField, dateInput);\n\t}",
"private static LocalDate readDateFromArguments(String dayString, String monthString, String yearString) {\n\t\tint day = 0, month = 0, year = 0 ;\n\t\ttry{\n\t\t\tday = Integer.parseInt(dayString);\n\t\t\tmonth = Integer.parseInt(monthString);\n\t\t\tyear = Integer.parseInt(yearString);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"The dates should be in the format DD MM YY in integer numbers\");\n\t\t\texitArgumentError(); \n\t\t}\n\t\t\t\n\t\treturn LocalDate.of(year,month,day);\n\n\t}",
"private static int getNumDates() {\n Scanner input = new Scanner(System.in);\n\n System.out.print(\"Enter number of dates (1 or 2): \");\n\n int numDates = input.nextInt();\n while (numDates != 1 && numDates != 2) {\n System.out.print(\"Enter number of dates (1 or 2): \");\n numDates = input.nextInt();\n }\n return numDates;\n }",
"private static void checkDate(String date) {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n if (!date.matches(RegexPattern.DATE_PATTERN)) {\n throw new DaoException(ExceptionMessage.getMessage(ExceptionMessage.DATE_PATTERN_ERROR));\n }\n try {\n Date formatDate = simpleDateFormat.parse(date);\n if (formatDate.getTime() + TIME_IN_DAY < new Date().getTime()) {\n throw new DaoException(\"Date must be in Future\");\n }\n } catch (ParseException ex) {\n throw new DaoException(ex.getMessage());\n }\n }",
"public void enterDateField(String date) {\n Reporter.addStepLog(\"Enter date \" + date + \" to date field \" + _dateField.toString());\n sendTextToElement(_dateField, date);\n log.info(\"Enter date \" + date + \" to date field \" + _dateField.toString());\n }",
"@Override\n public String readUserInput() {\n while (true) {\n System.out.println(\"\");\n System.out.print(\"Enter Information: \");\n Scanner in = new Scanner(System.in);\n String userInput = in.nextLine();\n\n if (!userInput.equals(\"0\")) {\n String[] parts = userInput.split(\",\");\n if (parts.length == 5) {\n if (DateSorting.isDateValid(\"dd-MM-yyyy\", parts[2])) {\n if (TodoList.tasks.get(parts[0]) == null) {\n return userInput;\n } else {\n System.out.println(\"A task with this ID already exists, try again: \");\n }\n } else {\n System.out.println(\"The date entered is invalid, try again: \");\n }\n } else {\n System.out.println(\"Please follow instructions, try again: \");\n }\n } else {\n return userInput;\n }\n }\n }",
"private boolean book() throws Exception {\n\t\tSystem.out.println(\"Enter date car required: \");\n\t\tSystem.out.println(\"format DD/MM/YYYY)\");\n\t\tString dateEntered = console.nextLine();\n\t\tDateRegex dateChecker = new DateRegex(dateEntered);\n\t\tint day = Integer.parseInt(dateEntered.substring(0, 2));\n\t\tint month = Integer.parseInt(dateEntered.substring(3, 5));\n\t\tint year = Integer.parseInt(dateEntered.substring(6));\n\t\tDateTime dateRequired = new DateTime(day, month, year);\n\t\t\n\t\tif (!DateUtilities.dateIsNotInPast(dateRequired) || !DateUtilities.dateIsNotMoreThan7Days(dateRequired)) {\n\t\t\tthrow new InvalidBookingDateException(\"Error: Date is invalid, must be within the coming week.\");\n//\t\t\tSystem.out.println(\"Date is invalid, must be within the coming week.\");\n//\t\t\treturn false;\n\t\t}\n\t\t\n\t\tString[] availableCars = application.book(dateRequired);\n\t\t\n\t\tfor (int i = 0; i < availableCars.length; i++) {\n\t\t\tSystem.out.println(availableCars[i]);\n\t\t}\n\t\t\n\t\tif (availableCars.length != 0) {\n\t\t\tSystem.out.println(\"Please enter a number from the list:\");\n\t\t\tString itemSelectedInString = console.nextLine();\n\t\t\t\n\t\t\ttry {\n\t\t\t\tint numberStringChecker = Integer.parseInt(itemSelectedInString);\n\t\t\t}\n\t\t\t\n\t\t\tcatch (NumberFormatException e) {\n\t\t\t\tSystem.out.println(\"Error: Please enter a numeric value.\");\n\t\t\t}\n\t\t\t\n//\t\t\tif (itemSelectedInString.contains(\"[a-zA-Z]+\")) {\n//\t\t\t\tthrow new InvalidCharacterException(\"Error: Input must be a numeric value.\");\n//\t\t\t}\n\t\t\t\n\t\t\tint itemSelected = Integer.parseInt(itemSelectedInString);\n\t\t\t\n\t\t\tif (itemSelected == 0) {\n\t\t\t\tthrow new InvalidZeroUserInputException(\"Error: Number cannot be 0.\");\n\t\t\t}\n\t\t\t\n\t\t\tString regNo = availableCars[itemSelected - 1];\n\t\t\tregNo = regNo.substring(regNo.length() - 6);\n\t\t\tSystem.out.println(\"Please enter your first name:\");\n\t\t\tString firstName = console.nextLine();\n\t\t\tSystem.out.println(\"Please enter your last name:\");\n\t\t\tString lastName = console.nextLine();\n\t\t\tSystem.out.println(\"Please enter the number of passengers:\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tint numPassengers = Integer.parseInt(console.nextLine());\n\t\t\t\tString result = application.book(firstName, lastName, dateRequired, numPassengers, regNo);\n\t\t\t\tSystem.out.println(result);\n\t\t\t}\n\t\t\t\n\t\t\tcatch (NumberFormatException e) {\n\t\t\t\tSystem.out.println(\"Error: The number of passengers should be in numeric input.\");\n\t\t\t}\n\t\t} \n\t\t\n\t\telse {\n\t\t\tSystem.out.println(\"There are no available cars on this date.\");\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"public boolean checkPastDate(boolean said)\n {\n try\n {\n if( date==null ){\n if(this.getDateString()!=null) date = DateHelper.stringToDate(this.getDateString());\n if(super.isMandatory() && date==null)\n {\n message = FacesHelper.getBundleMessage(\"validator_dateformat\", new Object[]{Constants.CommonFormat.DATE_FORMAT_TIP});\n return false;\n } }\n\n }\n catch (Exception e)\n {\n message = FacesHelper.getBundleMessage(\"validator_dateformat\", new Object[]{Constants.CommonFormat.DATE_FORMAT_TIP});\n return false;\n }\n\n if(date==null)\n {\n if(said)\n {\n super.setMessage(\"Date is no correct\");\n }\n return false;\n }\n if(!date.before(currentDate))\n {\n if(said)\n {\n super.setMessage(\"Date is no correct\");\n }\n return false;\n\n }\n else\n {\n return true;\n }\n }",
"private static void incrementDate() {\n\t\ttry {\r\n\t\t\tint days = Integer.valueOf(input(\"Enter number of days: \")).intValue();\r\n\t\t\tcalculator.incrementDate(days); // variable name changes CAL to calculator\r\n\t\t\tlibrary.checkCurrentLoans(); // variable name changes LIB to library\r\n\t\t\toutput(sdf.format(cal.date())); // variable name changes SDF to sdf , CAL to cal , method changes Date() to date()\r\n\t\t\t\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\t output(\"\\nInvalid number of days\\n\");\r\n\t\t}\r\n\t}",
"public static void Main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n String month = scanner.nextLine();\n System.out.println(\"Enter a number between 1 and 12.\");\n\n\n// if(x >= 1 && x <= 12);\n// System.out.println(\"Jan\");\n// System.out.println(\"You must enter a number between 1 and 12\");\n }",
"public static void main(String[] args) {\n\t\tBufferedReader inputDataReader = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t// BufferedReader reader = new BufferedReader(System.in);\r\n\t\t// try catch문을 이용하여 예외처리를 한다.\r\n\t\t// 주소를 입력받는다.\r\n\t\ttry {\r\n\t\t\tSystem.out.print(\"[입력 -> YYYYMMDD] : \");\r\n\t\t\tString bibleDate = inputDataReader.readLine();\r\n\t\t\t// String YYYYMMDD = \"(19|20)\\\\d{2}(0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01])\";\r\n\t\t\t// System.out.println(bibleDate == YYYYMMDD);\r\n\t\t\t// Pattern.compile(yyyyMMdd).matcher(bibleDate)\r\n\t\t\t// System.out.println(Pattern.compile(YYYYMMDD).matcher(bibleDate).matches());\r\n\t\t\t// if(Pattern.compile(YYYYMMDD).matcher(bibleDate).matches()) {\r\n\t\t\t\t/*\r\n\t\t\t\tSystem.out.println(bibleDate);\r\n\t\t\t\tSystem.out.println(bibleDate.substring(0, 4));\r\n\t\t\t\tSystem.out.println(bibleDate.substring(4, 6));\r\n\t\t\t\tSystem.out.println(bibleDate.substring(6, 8));\r\n\t\t\t\tSystem.out.println(bibleDate.substring(0, 4) + \"-\" + bibleDate.substring(4, 6) + \"-\" + bibleDate.substring(6, 8));\r\n\t\t\t\t*/\r\n\t\t\t\tString bible_date = bibleDate.substring(0, 4) + \"-\" + bibleDate.substring(4, 6) + \"-\" + bibleDate.substring(6, 8);\r\n\t\t\t\t// System.out.println(bible_date);\r\n\t\t\t\tString url = \"https://sum.su.or.kr:8888/bible/today/Ajax/Bible/BodyMatter?qt_ty=QT1&base_de=\" + bible_date + \"&bibleType=1\";\r\n\t\t\t\t// url = url + \"&base_de=\" + bibleDate + \"&bibleType=1\";\r\n\t\t\t\tDocument doc = null;\r\n\t\t\t\tdoc = Jsoup.connect(url).post();\r\n\t\t\t\tElement bible_text = doc.select(\".bible_text\").first();\r\n\t\t\t\tString bibleTextStr = bible_text.text();\r\n\t\t\t\tSystem.out.println(bibleTextStr);\r\n\t\t\t\tElement dailybible_info = doc.select(\"#dailybible_info\").first();\r\n\t\t\t\tString dailybibleInfoStr = dailybible_info.text();\r\n\t\t\t\tSystem.out.println(dailybibleInfoStr);\r\n\t\t\t\tElement bibleinfo_box = doc.select(\".bibleinfo_box\").first();\r\n\t\t\t\tString bibleinfoBoxStr = bibleinfo_box.text();\r\n\t\t\t\tSystem.out.println(bibleinfoBoxStr);\r\n\t\t\t\tElements bibleList = doc.select(\".body_list > li\");\r\n\t\t\t\t// System.out.println(\"bibleList => \\n \" + bibleList);\r\n\t\t\t\tfor(Element bibleElement : bibleList) {\r\n\t\t\t\t\tString num = bibleElement.select(\".num\").text();\r\n\t\t\t\t\tString info = bibleElement.select(\".info\").text();\r\n\t\t\t\t\tSystem.out.println(num + \" : \" + info);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// audio(.mp3) 파일을 가져오는 실습\r\n\t\t\t\tElement audioSource = doc.select(\"audio>source\").first();\r\n\t\t\t\t// System.out.println(audioSource);\r\n\t\t\t\tString audioUrl = audioSource.attr(\"src\").trim();\r\n\t\t\t\t// System.out.println(audioUrl);\r\n\t\t\t\tString mp3FileName = audioUrl.substring(audioUrl.lastIndexOf(\"/\") + 1);\r\n\t\t\t\t// System.out.println(mp3FileName);\r\n\t\t\t\trunner(audioUrl, mp3FileName);\r\n\t\t\t\t/*\r\n\t\t\t\tRunnable r = new DownloadBroker(audioUrl , mp3FileName);\r\n\t\t\t\tThread dload = new Thread(r);\r\n\t\t\t\tdload.start();\r\n\t\t\t\tfor(int i = 0 ; i < 10 ; i++) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(\"\" + (i+1));\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(\"=======================================\");\r\n\t\t\t\t*/\r\n\t\t\t\t\r\n\t\t\t\t// image(.jpg) 파일을 가져오는 실습\r\n\t\t\t\tElement imgSource = doc.select(\".img>img\").first();\r\n\t\t\t\t// System.out.println(imgSource);\r\n\t\t\t\tString imgUrl = \"https://sum.su.or.kr:8888\" + imgSource.attr(\"src\").trim();\r\n\t\t\t\t// System.out.println(imgUrl);\r\n\t\t\t\tString jpgFileName = imgUrl.substring(imgUrl.lastIndexOf(\"/\") + 1);\r\n\t\t\t\t// System.out.println(jpgFileName);\r\n\t\t\t\trunner(imgUrl, jpgFileName);\r\n\t\t\t\t/*\r\n\t\t\t\tRunnable r = new DownloadBroker(imgUrl , jpgFileName);\r\n\t\t\t\tThread dload = new Thread(r);\r\n\t\t\t\tdload.start();\r\n\t\t\t\tfor(int i = 0 ; i < 10 ; i++) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(\"\" + (i+1));\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(\"=======================================\");\r\n\t\t\t\t*/\r\n\t\t\t// }\r\n\t\t\t// else {\r\n\t\t\t\t// System.out.println(\"[YYYYMMDD] 형식으로 입력하지 않았습니다.\\n다시 입력해 주세요.\");\r\n\t\t\t\t// return;\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}\r\n\t\t/*\r\n\t\t //이전\r\n function SelectPrevious(tab) {\r\n $.ajax({\r\n type: 'POST',\r\n contentType: \"application/json; charset=utf-8\",\r\n url: \"/Ajax/Bible/BodyMatter\",\r\n //data: \"{ 'qt_ty' : '\" + $(\"#qt_ty\").val() + \"' , 'Base_de' : '\" + $(\"#base_de\").val() + \"'}\",\r\n data: \"{ 'qt_ty' : '\" + $(\"#qt_ty\").val() + \"' ,'SearchTxt1' : 'pre' , 'Base_de' : '\" + $(\"#base_de\").val() + \"'}\",\r\n\t\t */\r\n\t\t// <input name=\"qt_ty\" id=\"qt_ty\" type=\"hidden\" value=\"QT1\">\r\n\t\t// <input name=\"base_de\" id=\"base_de\" type=\"hidden\" value=\"2020-11-22\">\r\n\t\t// <input name=\"bibleType\" id=\"bibleType\" type=\"hidden\" value=\"1\">\r\n\t\t\r\n\t\t/*\r\n\t\tString url = \"https://sum.su.or.kr:8888/bible/today/Ajax/Bible/BodyMatter/qt_ty=QT1/base_de\" + ;\r\n\t\tDocument doc = null;\r\n\t\ttry {\r\n\t\t\tdoc = Jsoup.connect(url).post();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tElement bible_text = doc.select(\"bible_text\").first();\r\n\t\tSystem.out.println(bible_text);\r\n\t\t*/\r\n\t}",
"public void selectDate(){\r\n\t\tcloseDateText.sendKeys(ConvertDate());\r\n\t}",
"public static void main(String[] args) {\n int currentYear = 2021;\r\n Scanner sc = new Scanner(System.in);\r\n System.out.println(\"Enter your birth Year?\");\r\n boolean hasInt = sc.hasNextInt();\r\n if(hasInt){\r\n\r\n int birthYear = sc.nextInt();\r\n sc.nextLine();\r\n\r\n System.out.println(\"Enter your name? \");\r\n String name = sc.nextLine();\r\n\r\n int age = currentYear - birthYear;\r\n if(age>=0 && age<100){\r\n System.out.println(\"Your name is \"+name+\", You are \"+age+\" years old.\");\r\n }else{\r\n System.out.println(\"Invalid age!\");\r\n }\r\n\r\n }else{\r\n System.out.println(\"Invalid Input\");\r\n }\r\n\r\n sc.close();\r\n }",
"private void setStudAccPeriod() throws IOException {\n\n Scanner sc = new Scanner(System.in);\n\n String startDateTime,endDateTime=null;\n Calendar startCal = null, endCal = null;\n String[] dateTimeSplit;\n\n do {\n System.out.println(\"\\nPlease enter start date and time (yyyy MM dd HH mm):\");\n startDateTime = sc.nextLine();\n while(!startDateTime.matches(\"^\\\\d{4} \\\\d{2} \\\\d{2} \\\\d{2} \\\\d{2}$\"))\n {\n System.out.println(\"Invalid input! Please enter again!\");\n System.out.println(\"\\nPlease enter start date and time (yyyy MM dd HH mm):\");\n startDateTime = sc.nextLine();\n }\n dateTimeSplit = startDateTime.split(\" \");\n startDateTime = dateTimeSplit[0]+\"-\"+dateTimeSplit[1]+\"-\"+dateTimeSplit[2]+\" \"+dateTimeSplit[3]+\":\"+dateTimeSplit[4];\n\n startCal = DateTimeManager.convertAccessStringToCalendar(startDateTime);\n\n if(startCal == null){\n System.out.println(\"Invalid input! Please enter again!\");\n continue;\n }\n\n System.out.println(\"Please enter end date and time (yyyy MM dd HH mm):\");\n endDateTime = sc.nextLine();\n while(!endDateTime.matches(\"^\\\\d{4} \\\\d{2} \\\\d{2} \\\\d{2} \\\\d{2}$\"))\n {\n System.out.println(\"Invalid input! Please enter again!\");\n System.out.println(\"Please enter end date and time (yyyy MM dd HH mm):\");\n endDateTime = sc.nextLine();\n }\n dateTimeSplit = endDateTime.split(\" \");\n endDateTime = dateTimeSplit[0]+\"-\"+dateTimeSplit[1]+\"-\"+dateTimeSplit[2]+\" \"+dateTimeSplit[3]+\":\"+dateTimeSplit[4];\n endCal = DateTimeManager.convertAccessStringToCalendar(endDateTime);\n if (endCal==null){\n System.out.println(\"Invalid input! Please enter again!\");\n continue;\n }\n\n if((endCal.before(startCal))||(endCal.equals(startCal)))\n System.out.println(\"Start access period can't be later than equal to end access period!\");\n }while(endCal.before(startCal)||(endCal == null)||(startCal == null)||endCal.equals(startCal));\n\n\n this.adminManager.addAccessPeriod(startDateTime, endDateTime);\n\n System.out.println(\"\\nSet student access period successfully!\\n\");\n\n }",
"public static void isValidCreditCardExpirationDate(String userInput) {\n\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"MM/yy\");\n\t\ttry {\n\t\t\t// Try to parse a YearMonth from the input, then check to make sure it is not in\n\t\t\t// the past.\n\t\t\tif (YearMonth.parse(userInput, formatter).isBefore(YearMonth.now())) {\n\t\t\t\tthrow new IllegalArgumentException(\"Expiration date must be in the future! Please try again:\");\n\t\t\t}\n\t\t} catch (DateTimeException dte) {\n\t\t\tthrow new IllegalArgumentException(\"Expiration date format must be mm/yy. Please try again:\");\n\t\t}\n\n\t}",
"public void selectDate(String format) {\n\t\t//driver.findElement(By.className(\"ui-datepicker-trigger\")).click();\n\t\t// identifying format\n\t\tString date[] = null;\n\t\tif (format.contains(\"-\")) {\n\t\t\tdate = format.split(\"-\");\n\t\t} else if (format.contains(\"/\")) {\n\t\t\tdate = format.split(\"/\");\n\t\t} else if (format.contains(\" \")) {\n\t\t\tdate = format.split(\" \");\n\t\t}\n\t\t// Splitting data\n\t\tString day = date[0];\n\t\tString month = date[1];\n\t\tString year = date[2];\n\t\t// Selecting data based on format\n\t\tif (month.length() == 2) {\n\t\t\t// selecting month if you are giving input format as dd-mm-yyyy\n\t\t\t//new Select(driver.findElement(By.className(\"ui-datepicker-month\"))).selectByIndex(Integer.parseInt(month) - 1);\n\t\t} else if (month.length() != 2) {\n\t\t\t// selecting month if you are giving input format as dd-mmm-yyyy\n\t\t\t//new Select(driver.findElement(By.className(\"ui-datepicker-month\"))).selectByVisibleText(month);\n\t\t}\n\t\t// selecting year\n\t\t//new Select(driver.findElement(By.xpath(\"//select[@class='ui-datepicker-year']\"))).selectByVisibleText(year);\n\n\t\t// click on day\n\t\t//driver.findElement(By.linkText(day)).click();\n\t}",
"private boolean dateValidation(String userDate){\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n sdf.setLenient(false);\n\n try {\n\n //if not valid, it will throw ParseException\n Date date = sdf.parse(userDate);\n System.out.println(date);\n\n } catch (ParseException e) {\n\n e.printStackTrace();\n return false;\n }\n\n return true;\n }",
"public Calendar setReservationDate(){\n\t\t\n\t\t\n\t\tint currentMonth = Calendar.getInstance().get(Calendar.MONTH)+1; //Month starts from zero in Java\n\t\tint currentYear = Calendar.getInstance().get(Calendar.YEAR);\n\t\tint currentDate = Calendar.getInstance().get(Calendar.DAY_OF_MONTH);\n\t\tint currentHour = Calendar.getInstance().get(Calendar.HOUR_OF_DAY);\n\t\tint currentMinute = Calendar.getInstance().get(Calendar.MINUTE);\n\t\t\n\t\t\n\t\tSystem.out.println(\"Current Year \"+ currentYear );\n\t\tSystem.out.println(\"Current Month \"+ currentMonth );\n\t\tSystem.out.println(\"Today's date \"+ currentDate );\n\t\tSystem.out.println(\"Current Hour \"+ currentHour );\n\t\tSystem.out.println(\"Current Minute \"+ currentMinute );\n\t\tSystem.out.println(\"\\t---\\t---\\t---\\t---\\t---\");\n\t\tint inputMonth, inputYear, inputDate, inputHour, inputMinute;\n\t\t\n\t\tCalendar reserveDate = Calendar.getInstance();\n\t\t\n\t\tSystem.out.print(\"Enter the year: \");\n\t\tinputYear = scan.nextInt();\n\t\tscan.nextLine();\n\t\t\n\t\twhile( inputYear < currentYear){\n\t\t\tSystem.out.println(\"Old year entry is not allowed !\\n\");\n\t\t\tSystem.out.print(\"Enter the year: \");\n\t\t\tinputYear = scan.nextInt();\n\t\t\tscan.nextLine();\n\t\t}\t\n\t\treserveDate.set(Calendar.YEAR,inputYear); \n\t\n\t\tSystem.out.print(\"Enter the month: \");\n\t\tinputMonth = scan.nextInt();\t\n\t\tscan.nextLine();\n\t\t\n\t\twhile (inputMonth < 1 || inputMonth > 12){\n\t\t\tSystem.out.println(\"Invalid Month entry!\");\n\t\t\tSystem.out.print(\"Enter the month again: \");\n\t\t\tinputMonth = scan.nextInt();\n\t\t\tscan.nextLine();\n\t\t}\n\t\t\n\t\twhile((inputMonth < currentMonth) && (inputYear == currentYear)){\n\t\t\t\t\t\n\t\t\tSystem.out.println(\"Old month entry is not allowed !\\n\");\n\t\t\tSystem.out.print(\"Enter the month: \");\n\t\t\tinputMonth = scan.nextInt();\n\t\t\tscan.nextLine();\n\t\t\t\n\t\t}\n\t\treserveDate.set(Calendar.MONTH,inputMonth-1);//MONTH is from 0 to 11.\n\t\t\n\t\tSystem.out.print(\"Enter the date for reservation: \");\n\t\tinputDate = scan.nextInt();\n\t\tscan.nextLine();\n\t\t\n\t\twhile( inputDate < 1 || inputDate > 31){\n\t\t\tSystem.out.println(\"Invalid date entry!\");\n\t\t\tSystem.out.print(\"Enter the date again: \");\n\t\t\tinputDate = scan.nextInt();\n\t\t\tscan.nextLine();\n\t\t}\n\t\t\n\t\twhile((inputDate < currentDate) && (inputMonth == currentMonth)&&(inputYear==currentYear)){\n\t\t\tSystem.out.println(\"Past Day is not allowed!\\n\");\n\t\t\tSystem.out.print(\"Enter the date for reservation: \");\n\t\t\tinputDate = scan.nextInt();\n\t\t\tscan.nextLine();\n\t\t}\n\t\treserveDate.set(Calendar.DAY_OF_MONTH,inputDate);\n\t\t\n\t\tSystem.out.print(\"Enter hour (24-hr format): \");\n\t\tinputHour = scan.nextInt();\n\t\tscan.nextLine();\n\t\t\n\t\twhile( inputHour < 0 || inputHour > 23){\n\t\t\tSystem.out.println(\"Invalid hour entry!\");\n\t\t\tSystem.out.print(\"Enter the hour again: \");\n\t\t\tinputHour = scan.nextInt();\n\t\t\tscan.nextLine();\n\t\t}\n\t\t\n\t\twhile(inputHour < currentHour && inputDate == currentDate&&inputMonth == currentMonth&&inputYear==currentYear){\n\t\t\t\n\t\t\tif (inputHour < 0 && inputHour > 23){\n\t\t\t\tSystem.out.println(\"Invalid Hour entry\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"Past hour is not allowed!\\n\");\n\t\t\t\tSystem.out.print(\"Enter hour (24-hr format): \");\n\t\t\t\tinputHour = scan.nextInt();\n\t\t\t\tscan.nextLine();\n\t\t\t}\n\t\t}\n\t\treserveDate.set(Calendar.HOUR_OF_DAY,inputHour); //This uses 24 hour clock\n\t\t\n\t\tSystem.out.print(\"Enter minute: \");\n\t\tinputMinute = scan.nextInt();\n\t\tscan.nextLine();\n\t\t\n\t\twhile(inputMinute < 0 || inputMinute > 59){\n\t\t\tSystem.out.println(\"Invalid Minute entry\");\n\t\t\tSystem.out.print(\"Enter minute again: \");\n\t\t\tinputMinute = scan.nextInt();\n\t\t\tscan.nextLine();\n\t\t}\n\t\t\n\t\twhile((inputMinute-currentMinute) <= 0 && inputHour == currentHour){\n\t\t\t\n\t\t\t//System.out.println(\"Reservation can only be made 30 minutes earlier or invalid input !\");\n\t\t\tSystem.out.print(\"Invalid minute\");\n\t\t\tSystem.out.print(\"Enter minute again: \");\n\t\t\tinputMinute = scan.nextInt();\t\n\t\t\tscan.nextLine();\n\t\t}\n\t\t\n\t\treserveDate.set(Calendar.MINUTE,inputMinute);\n\t\tSystem.out.println(\"Date Reserved!\");\n\t\treturn reserveDate;\n\t}",
"public static void goTo() {\n\t\tMONTHS[] arrayOfMonths = MONTHS.values();\n\t\tLONGDAYS[] arrayOfLongDays = LONGDAYS.values();\n\t\tScanner sc = new Scanner(System.in);\n\t\tString date = \"\";\n\t\tSystem.out.println(\"Enter a date on MM/DD/YYYY format: \");\n\t\tif (sc.hasNextLine()) {\n\t\t\tdate = sc.nextLine().toLowerCase();\n\t\t}\n\t\tint month = Integer.parseInt(date.substring(0, 2));\n\t\tint day = Integer.parseInt(date.substring(3, 5));\n\t\tint year = Integer.parseInt(date.substring(6, 10));\n\t\tGregorianCalendar toDisplay = new GregorianCalendar(year, month, day);\n\t\tString value = getValues(toDisplay);\n\t\tif (value != \"\") {\n\t\t\tSystem.out.println(value);\n\t\t} else {\n\t\t\tSystem.out.println(\"There are no events at this day\");\n\t\t}\n\t}",
"private void checkDate(String strDate, LocalDate localDate) {\n if (Integer.parseInt(strDate.substring(0, 4)) != localDate.getYear()\n || Integer.parseInt(strDate.substring(5, 7)) != localDate.getMonthValue()\n || Integer.parseInt(strDate.substring(8,10)) != localDate.getDayOfMonth()) {\n throw new IllegalArgumentException(\"Illegal date: date dose not exist.\");\n }\n }",
"public boolean checkFutureOrCurrentDate()\n {\n boolean valid = this.check();\n try{\n\n date = DateHelper.stringToDate(this.getDateString());\n if(super.isMandatory() && date==null)\n {\n message = FacesHelper.getBundleMessage(\"validator_dateformat\", new Object[]{Constants.CommonFormat.DATE_FORMAT_TIP});\n return false;\n }\n\n }\n catch (Exception e)\n {\n message = FacesHelper.getBundleMessage(\"validator_dateformat\", new Object[]{Constants.CommonFormat.DATE_FORMAT_TIP});\n return false;\n }\n if (date != null\n &&\n (date.before(currentDate)))\n {\n super.clearMessage();\n super.setMessage(\"Date should be in future or in present date!\");\n\n return valid && false;\n }\n return valid;\n\n }",
"@Test\n public void wam_005_testDatePicker() {\n wam.verifyDateInDatePicker();\n // test behaviour of selecting a date\n String date = \"June 1, 2019\";\n wam.typeDateInDatePicker(date);\n wam.verifyDateInDatePicker(date);\n wam.verifyWamIndexIsNotEmpty();\n }",
"public Boolean validateDate(String date_of_birth) {\n DateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n try {\n format.parse(date_of_birth);\n } catch (ParseException exception) {\n System.out.println(\"Invalid Input!\");\n return true;\n }\n return false;\n }",
"public void produceDateFromDay(String dayInput, int plus) {\n LocalDate date = null;\n \n if (plus == 2) {\n date = LocalDate.now().plusWeeks(1);\n } else if (plus == 3) {\n date = LocalDate.now().plusMonths(1);\n } else if (plus == 4) {\n date = LocalDate.now().plusYears(1);\n } else if (plus == 5) {\n date = LocalDate.now();\n } else if (plus == 6) {\n date = LocalDate.now().plusDays(1);\n } else {\n for (int n = 0; n < Constants.DAYS_LIST.length; n++) {\n if (dayInput.toLowerCase().matches(Constants.DAYS_LIST[n])) {\n int days = (n+1) - LocalDate.now().getDayOfWeek().getValue();\n\n if (days >= 0) {\n if (plus == 1) {\n date = LocalDate.now().plusDays(days+7);\n } else {\n date = LocalDate.now().plusDays(days);\n }\n } else {\n date = LocalDate.now().plusDays(days+7);\n }\n\n break;\n }\n }\n }\n startDate = date.getDayOfMonth() + \"/\" + date.getMonthValue() + \"/\" +date.getYear();\n }",
"private void jumpMonth() {\n\t\tJFrame frame = new JFrame(\"Enter Date\");\n\t\tContainer content = frame.getContentPane();\n\t\tcontent.setLayout(new BorderLayout());\n\t\tframe.setSize(new Dimension(270, 105));\n\t\t\n\t\tJLabel prompt = new JLabel(\"Please enter the target date MM/YYYY\");\n\t\tcontent.add(prompt, BorderLayout.NORTH);\n\t\t\n\t\tTextField input = new TextField(15);\n\t\tcontent.add(input, BorderLayout.CENTER);\n\t\t\n\t\tJButton submit = new JButton(\"OK\");\n\t\tsubmit.addActionListener(e -> {\n\t\t\tString[] strDate = input.getText().split(\"/\");\n\t\t\tDriver.getApp().getMView()\n\t\t\t.jumpToMonth(Integer.parseInt(strDate[0])-1, Integer.parseInt(strDate[1]));\n\t\t\tframe.setVisible(false);\n\t\t});\n\t\tcontent.add(submit, BorderLayout.SOUTH);\n\t\t\n\t\tframe.setVisible(true);\n\t}",
"public void TypeBirthdayDate4(String TypeBirthdayDate4) {\r\n\t\tbirthdaydate4.clear();\r\n\t\tbirthdaydate4.sendKeys(TypeBirthdayDate4);\r\n\t\t\tLog(\"Entered Birthday (MM/DD) 4: \" + TypeBirthdayDate4);\r\n\t}",
"public void expiredate() {\n\t\tdr.findElement(By.xpath(\"//input[@id='expiryDate']\")).sendKeys(\"05/2028\");\r\n\t\t\r\n\t\t\r\n\t\t}",
"public String verifyDateInput(String object, String data) {\n logger.debug(\"verifying Date in Input\");\n try {\n Boolean flag = false;\n String actual = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object)))).getAttribute(\"value\");\n String expected = data.replace(\",\", \"/\");\n logger.debug(actual);\n logger.debug(expected);\n if (actual.trim().equals(expected.trim()))\n flag = true;\n else\n flag = false;\n\n if (flag)\n return Constants.KEYWORD_PASS + \"--Date Inputs Matched\";\n else\n return Constants.KEYWORD_FAIL + \"--Date Input is not matched\";\n\n } \ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n catch (Exception ex) {\n \t\n return Constants.KEYWORD_FAIL + ex.getLocalizedMessage();\n }\n }",
"void checkForValidDate(String dateTime) {\n\n int daysOfMonth[] = {31,28,31,30,31,30,31,31,30,31,30,31};\n\n Timestamp now = new Timestamp(new java.util.Date().getTime());\n Timestamp date = Timestamp.valueOf(startDateTime);\n if (date.after(now)) {\n outputError(lineCount + \" - Fatal - \" +\n \"Date / Time later than today's date : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (date.after(now))\n\n StringTokenizer t = new StringTokenizer(dateTime, \"- :.\");\n int year = Integer.parseInt(t.nextToken());\n int month = Integer.parseInt(t.nextToken());\n int day = Integer.parseInt(t.nextToken());\n int hour = Integer.parseInt(t.nextToken());\n int minute = Integer.parseInt(t.nextToken());\n boolean isLeapYear = ((year % 4 == 0) && (year % 100 != 0) || (year % 400 == 0));\n if (isLeapYear) daysOfMonth[1] += 1;\n if (year < 1850) {\n outputError(lineCount + \" - Fatal - \" +\n \"Year before 1850 : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (year < 1850)\n\n if (month > 12) {\n outputError(lineCount + \" - Fatal - \" +\n \"Month invalid ( > 12) : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (month > 12)\n\n if (day > daysOfMonth[month-1]) {\n outputError(lineCount + \" - Fatal - \" +\n \"Day invalid ( > no of days in month) : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (day > (daysOfMonth[month-1])\n\n if (hour > 23) {\n outputError(lineCount + \" - Fatal - \" +\n \"Hour invalid ( > 23) : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (hour > 23)\n\n if (minute > 59) {\n outputError(lineCount + \" - Fatal - \" +\n \"Minute invalid ( > 59) : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (minute > 59)\n\n }",
"public static void yearOfCar() {\n System.out.println(\"What is the year of your car? Please input the 2-digit number. \");\n int carYear = sc.nextInt(); \n if (carYear>99) {\n System.out.println(\"Invalid input. Please enter 2 digit number for your car year\");\n for(int i=0; i<10; i++) {\n carYear = sc.nextInt(); \n }\n }\n }",
"public static void main(String[] args) {\n\n\n Scanner scan = new Scanner(System.in);\n\n System.out.println(\"Enter a number please \");\n int day = scan.nextInt();\n\n\n\n if (day == 1) {\n System.out.println(\"It's a Monday!\");\n }\n if (day == 2) {\n System.out.println(\"It's a Tuesday!\");\n }\n if (day == 3) {\n System.out.println(\"It's a Wednesday!\");\n }\n if (day == 4) {\n System.out.println(\"It's a Thursday!\");\n }\n if (day == 5) {\n System.out.println(\"It's a Friday!\");\n }\n if (day == 6) {\n System.out.println(\"It's a Saturday!\");\n }\n if (day == 7) {\n System.out.println(\"It's a Sunday!\");\n }else if(day>7 || day <1){\n System.out.println(\"There is no such a day!\");\n }\n\n\n\n\n\n\n }",
"public void setInputDate(Date inputDate) {\r\n this.inputDate = inputDate;\r\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tjava.util.Scanner input = new java.util.Scanner (System.in);\r\n\t\tint year = 0;\r\n\t\tboolean works1 = true;\r\n\t\t\r\n\t\t//petlja koja kontrolise unos godine (mora biti veca od nule)\r\n\t\twhile(works1){\t\t\t\t\t\t\t\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tSystem.out.print(\"Unesite godinu: \");\r\n\t\t\t\tyear = input.nextInt();\r\n\t\t\t\t\r\n\t\t\t\tif (year <= 0){\r\n\t\t\t\t\tSystem.out.println(\"Unesite cijeli broj veci od nule!\");\r\n\t\t\t\t\tworks1 = true;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tworks1 = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}catch (InputMismatchException ex){\r\n\t\t\t\tSystem.out.println(\"Unesite cijeli broj veci od nule!\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t}\r\n\t\tboolean works2 = true;\r\n\t\tString month = \"\";\r\n\t\t\r\n\t\t//petlja koja kontrolise unos prva tri slova mjeseca, ukoliko se prva tri slova slazu sa nekim od naziva mjeseci\r\n\t\t//stampa se broj dana za taj mjesec, a ukoliko se prva tri slova ne zlazu ni sa jednim nazivom trazi se ponovni unos\r\n\t\twhile (works2){\r\n\t\t\tSystem.out.print(\"Unesite prva tri slova naziva mjeseca (npr., dec): \");\r\n\t\t\tmonth = input.next();\r\n\t\t\tmonth = month.toLowerCase();\r\n\t\t\t\r\n\t\t\tif (month.equals(\"jan\")){\r\n\t\t\t\tSystem.out.println(\"Jan \" + year + \". ima 31 dan.\");\r\n\t\t\t\tworks2 = false;\r\n\t\t\t}\r\n\t\t\telse if(month.equals(\"feb\")){\r\n\t\t\t\tif (isLeapYear(year)){\t\t\t\t\t\t\t\t\t\t\t//poziv metode za provjeru je li godina prestupna\r\n\t\t\t\t\tSystem.out.println(\"Feb \" + year + \". ima 29 dana.\");\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Feb \" + year + \". ima 28 dana.\");\r\n\t\t\t\t}\r\n\t\t\t\tworks2 = false;\r\n\t\t\t}\r\n\t\t\telse if (month.equals(\"mar\")){\r\n\t\t\t\tSystem.out.println(\"Mar \" + year + \". ima 31 dan.\");\r\n\t\t\t\tworks2 = false;\r\n\t\t\t}\r\n\t\t\telse if (month.equals(\"apr\")){\r\n\t\t\t\tSystem.out.println(\"Apr \" + year + \". ima 30 dana.\");\r\n\t\t\t\tworks2 = false;\r\n\t\t\t}\r\n\t\t\telse if (month.equals(\"maj\")){\r\n\t\t\t\tSystem.out.println(\"Maj \" + year + \". ima 31 dan.\");\r\n\t\t\t\tworks2 = false;\r\n\t\t\t}\r\n\t\t\telse if (month.equals(\"jun\")){\r\n\t\t\t\tSystem.out.println(\"Jun \" + year + \". ima 30 dana.\");\r\n\t\t\t\tworks2 = false;\r\n\t\t\t}\r\n\t\t\telse if (month.equals(\"jul\")){\r\n\t\t\t\tSystem.out.println(\"Jul \" + year + \". ima 31 dan.\");\r\n\t\t\t\tworks2 = false;\r\n\t\t\t}\r\n\t\t\telse if (month.equals(\"avg\")){\r\n\t\t\t\tSystem.out.println(\"Avg \" + year + \". ima 31 dan.\");\r\n\t\t\t\tworks2 = false;\r\n\t\t\t}\r\n\t\t\telse if (month.equals(\"sep\")){\r\n\t\t\t\tSystem.out.println(\"Sep \" + year + \". ima 30 dana.\");\r\n\t\t\t\tworks2 = false;\r\n\t\t\t}\r\n\t\t\telse if (month.equals(\"oct\")){\r\n\t\t\t\tSystem.out.println(\"Oct \" + year + \". ima 31 dan.\");\r\n\t\t\t\tworks2 = false;\r\n\t\t\t}\r\n\t\t\telse if (month.equals(\"nov\")){\r\n\t\t\t\tSystem.out.println(\"Nov \" + year + \". ima 30 dana.\");\r\n\t\t\t\tworks2 = false;\r\n\t\t\t}\r\n\t\t\telse if (month.equals(\"dec\")){\r\n\t\t\t\tSystem.out.println(\"Dec \" + year + \". ima 31 dan.\");\r\n\t\t\t\tworks2 = false;\r\n\t\t\t}else{\r\n\t\t\t\tworks2 = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tinput.close();\r\n\t\t\r\n\t}",
"public void setInputDate(Date inputDate) {\r\n\t\tthis.inputDate = inputDate;\r\n\r\n\t}",
"public static void printEmptyDeadlineDateError() {\n botSpeak(Message.EMPTY_DEADLINE_DATE_ERROR);\n }",
"public void TypeBirthdayDate1(String TypeBirthdayDate1) {\r\n\t\tbirthdaydate1.clear();\r\n\t\tbirthdaydate1.sendKeys(TypeBirthdayDate1);\r\n\t\t\tLog(\"Entered Birthday (MM/DD) 1: \" + TypeBirthdayDate1);\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSystem.out.println(\"请输入年份:\");\r\n\t\tint year = sc.nextInt();\r\n\t\tif(year <= 0) { //判断输入的年份是否正确\r\n\t\t\tSystem.out.println(\"请正确输入年份!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.println(\"请输入月份:\");\r\n\t\tint month = sc.nextInt();\r\n\t\tif(month <= 0 || month > 12) {\t//判断输入的月份是否正确\r\n\t\t\tSystem.out.println(\"请正确输入月份!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.println(\"请输入号数:\");\r\n\t\tint day = sc.nextInt();\r\n\t\tif(month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10 || month == 12) {\t//判断输入的号数是否正确\r\n\t\t\tif(day < 1 || day > 31) {\r\n\t\t\t\tSystem.out.println(\"请正确输入号数!\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}else if(month == 4 || month == 6 || month == 9 || month == 11) {\r\n\t\t\tif(day < 1 || day > 30) {\r\n\t\t\t\tSystem.out.println(\"请正确输入号数!\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tif((year%4 == 0 && year%100 != 0) || year%400 == 0) {\r\n\t\t\tif(month == 2) {\r\n\t\t\t\tif(day < 1 || day > 29) {\r\n\t\t\t\t\tSystem.out.println(\"请正确输入号数!\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tif(month == 2) {\r\n\t\t\t\tif(day < 1 || day > 28) {\r\n\t\t\t\t\tSystem.out.println(\"请正确输入号数!\");\r\n\t\t\t\t\treturn;\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\tif((year%4 == 0 && year%100 != 0) || year%400 == 0) {//判断为闰年时\r\n\t\t\tif(month >= 3) {\t//闰年月份大于等于3时,天数加1\r\n\t\t\t\tSystem.out.println(\"这天是本年的第\" + (sumday(month,day)+1) + \"天。\");\r\n\t\t\t}else {\t//闰年的前两个月\r\n\t\t\t\tSystem.out.println(\"这天是本年的第\" + sumday(month,day) + \"天。\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else {//为平年时\r\n\t\t\tSystem.out.println(\"这天是本年的第\" + sumday(month,day) + \"天。\");\r\n\t\t}\r\n\t\t\r\n\t}",
"@SuppressWarnings(\"deprecation\")\r\n\tpublic static void main(String[] args) {\n\t\tint days, months, year;\r\n\t\t\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSimpleDateFormat myFormat = new SimpleDateFormat(\"dd MM yyyy\");\r\n\t\tDate currentDate = new Date();\r\n\t\tSystem.out.println(\"Enter date in dd mm yyyy format\");\r\n\t\tString date = sc.nextLine();\r\n\t\tDate d;\r\n\t\ttry {\r\n\t\t\td = myFormat.parse(date);\r\n\t\t\t//System.out.println(d);\r\n\t\t\tdays = Math.abs(d.getDay() - currentDate.getDay());\r\n\t\t\tmonths = Math.abs(d.getMonth() - currentDate.getMonth());\r\n\t\t\tyear = Math.abs(d.getYear() - currentDate.getYear());\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Day= \" + days + \" Months= \" + months + \"Years = \" + year );\r\n\t\t\t\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}",
"public void fillDateOfBirth(String value) {\n // Only sets main dob for testing results -- Not sufficient to test dob UI itself\n dateOfBirth.sendKeys(value);\n }",
"public boolean verifyInputWrongValue(String dateValue, boolean isNewToDoPage) {\n boolean result = true;\n try {\n // If isNewToDoPage = true :verify in add new to-do page | isNewToDoPage = false, verify in to-do list page\n if (isNewToDoPage) {\n waitForClickableOfElement(eleIdDueDate, \"Due date text box\");\n clickElement(eleIdDueDate, \"Due date text box\");\n sendKeyTextBox(eleIdDueDate, dateValue, \"Due date text box\");\n result = eleIdDueDate.getAttribute(\"value\").equals(dateValue);\n } else {\n waitForClickableOfElement(eleToDoNewRowDueDateText.get(0), \"Select due date text box\");\n clickElement(eleToDoNewRowDueDateText.get(0), \"Select due date text box\");\n sendKeyTextBox(eleToDoNewRowDueDateText.get(0), dateValue, \"Select due date text box\");\n result = eleToDoNewRowDueDateText.get(0).getAttribute(\"value\").equals(dateValue);\n\n }\n //If result = true : before and after value as same --> can input wrong data into due date control\n if (result) {\n NXGReports.addStep(\"TestScript Failed: Input wrong date format in due date text box \", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n return false;\n }\n NXGReports.addStep(\"Input wrong date format in due date text box \", LogAs.PASSED, null);\n } catch (AssertionError e) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"TestScript Failed: Input wrong date format in due date text box \", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n return false;\n }\n return true;\n }",
"public boolean isValidDate(String valD) { //Checks if date is in proper format\n String valDWithoutSpace = valD.replaceAll(\"\\\\s\", \"\");\n return valDWithoutSpace.length() == 8;\n}",
"public static Date introducirFecha(Scanner keyboard, String s) throws ParseException{ \n String f;\n \n Date fecha;\n do{\n System.out.println(\"Introduzca la \"+ s +\" (dd/MM/yyyy): \");\n f = keyboard.next();\n System.out.print(f);\n }while(!comprobarFecha(f));\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n \n fecha = dateFormat.parse(f);\n \n //fecha = new SimpleDateFormat(\"DD/MM/YYYY\").parse(f); // Creamos un date con la entrada en el formato especificado \n System.out.print(fecha);\n return fecha;\n }",
"public static void main(String[] args) {\n\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter a year: \");\n\t\tint year = input.nextInt();\n\t\t\n\t\tSystem.out.print(\"Enter a month: \");\n\t\tString s = input.next();\n\t\tchar temp = s.charAt(0);\n\t\t\n\t\tif (s.length() != 3 || Character.isUpperCase(temp) != true) {\n\t\t\tSystem.out.println(s + \" is not a correct month name\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\tint isleap = 0;\n\t\t//إذ¶دتا·ٌتابٍؤê\n\t\tif ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)) {\n\t\t\tisleap = 1;\n\t\t}\n\t\t\n\t\tint days = 0;\n\t\t\n\t\tswitch(temp) {\n\t\tcase 'J':\n\t\t\tif(s.equals(\"Jan\")) {\n\t\t\t\tdays = 31;\n\t\t\t}\n\t\t\tif(s.equals(\"Jun\")) {\n\t\t\t\tdays = 30;\n\t\t\t}\n\t\t\tif(s.equals(\"Jul\")) {\n\t\t\t\tdays = 31;\n\t\t\t}\n\t\tbreak;\n\t\tcase 'F':\n\t\t\tif(isleap == 1) {\n\t\t\t\tdays = 29;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdays = 28;\n\t\t\t};\n\t\tcase 'M':days = 31;break;\n\t\tcase 'A':\n\t\t\tif(s.equals(\"Apr\")) {\n\t\t\t\tdays = 30;\n\t\t\t}\n\t\t\tif(s.equals(\"Aug\")) {\n\t\t\t\tdays = 31;\n\t\t\t}\n\t\tcase 'S':days = 30;break;\n\t\tcase 'O':days = 31;break;\n\t\tcase 'N':days = 30;break;\n\t\tcase 'D':days = 31;break;\n\t\t}\n\t\t\n\t\tSystem.out.println(s + \" \" + year + \" has \" + days + \" days\");\n\t}",
"public void arrival_date()\r\n\t{\r\n\t\tExplicitWait(arrivaldate);\r\n\t\t\r\n\t\tDate date1 = new Date();\r\n\t\tdate1.setDate(date1.getDate() + 1);\r\n\t\tSimpleDateFormat df1 = new SimpleDateFormat(\"MM/dd/YYYY\");\r\n\t\tformattedDate1 = df1.format(date1);\r\n\r\n\t\tif (SeleniumRepo.isElementPresent(arrivaldate)) \r\n\t\t{\r\n\t\t\tarrivaldate.click();\r\n\t\t\tarrivaldate.clear();\r\n\t\t\tarrivaldate.sendKeys(formattedDate1);\r\n\t\t\t//System.out.println(formattedDate1);\r\n\t\t\ttest.log(Status.INFO, \"Clicked on arrivaldate Link\");\r\n\t\t\tlogger.info(\"Clicked on arrivaldate Link\");\r\n\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\t//System.out.println(\"arrivaldate TextBox not found\");\r\n\t\t\tlogger.error(\"arrivaldate TextBox not found\");\r\n\t\t\ttest.log(Status.FAIL, \"arrivaldate TextBox not found\");\r\n\r\n\t\t}\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tDateTimeFormatter formatter=DateTimeFormatter.ofPattern(\"yy/MM/dd\");\n\t\tString input=\"19/12/09\";//user can give input any format of date\n\t\t\n\t\tLocalDate date=LocalDate.parse(input,formatter);\n\t\tSystem.out.println(date);\n\t\t\n\t\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc=new Scanner (System.in);\r\n\t\tSystem.out.println(\"Enter month between 1-12\");\r\n\t\tString month=sc.nextLine();\r\n\t\tScanner sc1=new Scanner (System.in);\r\n\t\tSystem.out.println(\"Enter year between\");\r\n\t\tString year=sc1.nextLine();\r\n\t\tswitch(month)\r\n\t\t{\r\n\t\tcase \"1\":\r\n\t\t\tSystem.out.println(\"jan\" + year +\" has 30 days\");\r\n\t\t\r\n case \"2\":\r\n\t\t\tSystem.out.println(\"feb\" + year +\" has 28 days\");\r\n\r\n\t\tcase \"3\":\r\n\t\t\tSystem.out.println(\"march\" + year +\" has 31 days\");\r\n\r\n\t\tcase \"4\":\r\n\t\t\tSystem.out.println(\"April \" + year +\" has 30 days\");\r\n\r\n\r\n\t\tcase \"5\":\r\n\t\t\tSystem.out.println(\"may\" + month + year +\" has 31 days\");\r\n break;\r\n\r\n\t\tcase \"6\":\r\n\t\t\tSystem.out.println(\"june \" + year + \" has 30 days\");\r\n\t\t\tbreak;\r\n\r\n\r\n\t\tcase \"7\":\r\n\t\t\tSystem.out.println(\"jully\" + year +\" has 31 days\");\r\n\t\t\tbreak;\r\n\r\n\r\n\r\n\t\tcase \"8\":\r\n\t\t\tSystem.out.println(\"aug\" + year +\" has 31 days\");\r\n\t\t\tbreak;\r\n\r\n\r\n\r\n\t\tcase \"9\":\r\n\t\t\tSystem.out.println(\"sept\" + year +\" 30 days\");\r\n\t\t\tbreak;\r\n\r\n\r\n\r\n\t\tcase \"10\":\r\n\t\t\tSystem.out.println(\"oct\" + year +\"31 days\");\r\n\t\t\tbreak;\r\n\r\n\r\n\r\n\t\tcase \"11\":\r\n\t\t\tSystem.out.println(\"nov\" + year +\" has 30 days\");\r\n\t\t\tbreak;\r\n\r\n\r\n\r\n\t\tcase \"12\":\r\n\t\t\tSystem.out.println(\"dec\" + year +\" has 31 days\");\r\n\t\t\tbreak;\r\n\r\n\r\n\r\n\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\r\n\t\t}\r\n\r\n\r\n\r\n\t\t\r\n\r\n\t}",
"public static void main(String[] args) {\n int[] months = {31,28,31,30,31,30,31,31,30,31,30,31};\n Calendar now = Calendar.getInstance();\n System.out.println(now.get(Calendar.DAY_OF_YEAR));\n int year = now.get(Calendar.YEAR);\n int month = now.get(Calendar.MONTH) + 1;\n int day = now.get(Calendar.DAY_OF_MONTH);\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n System.out.println(\"Please input year: (\" + year + \")\");\n String yearString = br.readLine();\n year = (yearString.length() > 0) ? Integer.parseInt(yearString) : year;\n System.out.println(year);\n System.out.println(\"Please input month: (\" + month + \")\");\n String monthString = br.readLine();\n month = (monthString.length() > 0) ? Integer.parseInt(monthString) : month;\n System.out.println(month);\n System.out.println(\"Please input month: (\" + day + \")\");\n String dayString = br.readLine();\n day = (dayString.length() > 0) ? Integer.parseInt(dayString) : day;\n System.out.println(day);\n int days = 0;\n for (int i = 0; i < month-1; i ++) {\n days += months[i];\n }\n days += day;\n if (year % 400 == 0 || (year % 4 == 0 && year % 100 !=0)) {\n days ++;\n }\n System.out.println(days);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) {\r\n\t\tDate today = new Date(2, 26, 2012);\r\n\t\tSystem.out.println(\"Input date is \" + today);\r\n\t\tSystem.out.println(\"Printing the next 10 days after \" + today);\r\n\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\ttoday = today.next();\r\n\t\t\tSystem.out.println(today);\r\n\t\t}\r\n\t\tDate expiry = new Date(2011);\r\n\t\tSystem.out.println(\"testing year 2011 as input:\" + expiry);\r\n\r\n\t\tDate todayDate = new Date();\r\n\t\tSystem.out.println(\"todays date: \" + todayDate);\r\n\t\tSystem.out.println(\"current month:\" + todayDate.month);\r\n\r\n\t\t// testing isValidMonth function\r\n\t\tDate start = new Date(\"08-01-2010\");\r\n\t\tDate end1 = new Date(\"09-01-2010\");\r\n\t\tboolean param1 = start.isValidMonth(4, end1);\r\n\t\tSystem.out.println(\"is April valid between: \" + start + \" and \" + end1\r\n\t\t\t\t+ \": \" + param1);\r\n\t\tDate end2 = new Date(\"02-01-2011\");\r\n\t\tboolean param2 = start.isValidMonth(2, end2);\r\n\t\tSystem.out.println(\"is feb valid between: \" + start + \" and \" + end2\r\n\t\t\t\t+ \": \" + param2);\r\n\t\tboolean param3 = start.isValidMonth(8, start);\r\n\t\tSystem.out.println(\"is aug valid between: \" + start + \" and \" + start\r\n\t\t\t\t+ \": \" + param3);\r\n\t\tparam3 = start.isValidMonth(4, start);\r\n\t\tSystem.out.println(\"is april valid between: \" + start + \" and \" + start\r\n\t\t\t\t+ \": \" + param3);\r\n\t\tDate end3 = new Date(\"02-01-2010\");\r\n\t\tboolean param4 = start.isValidMonth(8, end3);\r\n\t\tSystem.out.println(\"is aug valid between: \" + start + \" and \" + end3\r\n\t\t\t\t+ \": \" + param4);\r\n\t\t \r\n\t\tDate lease = new Date(\"1-01-2012\");\r\n\t\tDate expiry1 = new Date(\"12-31-2012\");\r\n\r\n\t\t// testing daysBetween\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nTESTING daysBetween method\\n------------------------------\");\r\n\t\tint count = lease.daysBetween(expiry);\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and \" + expiry + \"is: \"\r\n\t\t\t\t+ count);\r\n count = new Date(\"1-01-2011\").daysBetween(new Date(\"12-31-2011\"));\r\n\t\tSystem.out.println(\"Days between [1-01-2011] and [12-31-2011]\" + \"is: \"\r\n\t\t\t\t+ count);\r\n\t\tcount = lease.daysBetween(expiry1);\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and \" + expiry1 + \"is: \"\r\n\t\t\t\t+ count);\r\n\t\tDate testDate = new Date(\"12-31-2013\");\r\n\t\tcount = lease.daysBetween(testDate);\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and [12-31-2013] \"\r\n\t\t\t\t+ \"is: \" + count);\r\n\t\tcount = lease.daysBetween(lease);\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and \" + lease + \"is: \"\r\n\t\t\t\t+ count);\r\n count = lease.daysBetween(new Date(\"1-10-2012\"));\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and [1-10-2012\" + \"is: \"\r\n\t\t\t\t+ count);\r\n \r\n\t\tcount = testDate.daysBetween(lease);\r\n\t\tSystem.out.println(\"Days between \" + testDate + \" and \" + lease + \"is: \"\r\n\t\t\t\t+ count);\r\n\r\n\t\t// testin isBefore\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nTESTING isBefore method\\n------------------------------\");\r\n\t\tboolean isBefore = today.isBefore(today.next());\r\n\t\tSystem.out.println(today + \"is before \" + today.next() + \": \"\r\n\t\t\t\t+ isBefore);\r\n\t\tisBefore = today.next().isBefore(today);\r\n\t\tSystem.out.println(today.next() + \"is before \" + today + \": \"\r\n\t\t\t\t+ isBefore);\r\n\t\tisBefore = today.isBefore(today);\r\n\t\tSystem.out.println(today + \"is before \" + today + \": \" + isBefore);\r\n isBefore = today.isBefore(today.addMonths(12));\r\n\t\tSystem.out.println(today + \"is before \" + today.addMonths(12) + \": \" + isBefore);\r\n\r\n\t\t// testing addMonths\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nTESTING addMonths method\\n------------------------------\");\r\n\t\ttoday = new Date(\"1-31-2011\");\r\n\t\tDate newDate = today.addMonths(1);\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"adding 1 months to \" + today + \" gives: \" + newDate);\r\n\t\tnewDate = today.addMonths(13);\r\n\t\tSystem.out.println(\"adding 13 months to \" + today + \" gives: \"\r\n\t\t\t\t+ newDate);\r\n\t\ttoday = new Date(\"3-31-2010\");\r\n\t\tnewDate = today.addMonths(15);\r\n\t\tSystem.out.println(\"adding 15 months to \" + today + \" gives: \"\r\n\t\t\t\t+ newDate);\r\n\t\tnewDate = today.addMonths(23);\r\n\t\tSystem.out.println(\"adding 23 months to \" + today + \" gives: \"\r\n\t\t\t\t+ newDate);\r\n\t\tnewDate = today.addMonths(49);\r\n\t\tSystem.out.println(\"adding 49 months to \" + today + \" gives: \"\r\n\t\t\t\t+ newDate);\r\n\t\tnewDate = today.addMonths(0);\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"adding 0 months to \" + today + \" gives: \" + newDate);\r\n\t\t\r\n\t\t// testing monthsBetween\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nTESTING monthsBetween method\\n------------------------------\");\r\n\t\tint monthDiff = today.monthsBetween(today.addMonths(1));\r\n\t\tSystem.out.println(\"months between \" + today + \" and \" + today.addMonths(1)\r\n\t\t\t\t+ \": \" + monthDiff);\r\n\t\tmonthDiff = today.next().monthsBetween(today);\r\n\t\tSystem.out.println(\"months between \" + today.next() + \" and \" + today\r\n\t\t\t\t+ \": \" + monthDiff);\r\n\t\ttoday = new Date(\"09-30-2011\");\r\n\t\tDate endDate = new Date(\"2-29-2012\");\r\n\t\tmonthDiff = today.monthsBetween(endDate);\r\n\t\tSystem.out.println(\"months between \" + today + \" and \" + endDate + \": \"\r\n\t\t\t\t+ monthDiff);\r\n\t\ttoday = new Date();\r\n\t\tDate endDate1 = new Date(\"12-04-2011\");\r\n\t\tmonthDiff = today.monthsBetween(endDate1);\r\n\t\tSystem.out.println(\"months between \" + today + \" and \" + endDate1\r\n\t\t\t\t+ \": \" + monthDiff);\r\n\t\ttoday = new Date();\r\n\t\tDate endDate2 = new Date(\"12-22-2010\");\r\n\t\tmonthDiff = today.monthsBetween(endDate2);\r\n\t\tSystem.out.println(\"months between \" + today + \" and \" + endDate2\r\n\t\t\t\t+ \": \" + monthDiff);\r\n\t\t\r\n\t\t// following should generate exception as date is invalid!\r\n\t\t// today = new Date(13, 13, 2010);\r\n\r\n\t\t// expiry = new Date(\"2-29-2009\");\r\n // newDate = today.addMonths(-11);\r\n\r\n\t}",
"public static String checkDate(String paramName, String paramValue,\n\t\t\tint maxLength, boolean isNulable) {\n\t\tAppLog.begin();\n\t\tString errMsg = null;\n\t\ttry {\n\t\t\tif (null != paramValue) {\n\t\t\t\tif (!isNulable && paramValue.trim().length() == 0) {\n\n\t\t\t\t\terrMsg = paramName + \" is Mandatory.\";\n\t\t\t\t\tAppLog.end();\n\t\t\t\t\treturn errMsg;\n\t\t\t\t}\n\t\t\t\tif (paramValue.trim().length() != 0) {\n\t\t\t\t\tif (!validateDateDDMMYYYY(paramValue,\n\t\t\t\t\t\t\tDJBConstants.checkDateRegex)) {\n\t\t\t\t\t\terrMsg = paramName\n\t\t\t\t\t\t\t\t+ \" is Invalid Date Format, Please Enter in dd/MM/yyyy format.(eg. 01/01/2013)\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (paramValue.trim().length() > maxLength) {\n\t\t\t\t\terrMsg = paramName + \" Should not Contain More than \"\n\t\t\t\t\t\t\t+ maxLength + \" Characters.\";\n\t\t\t\t}\n\t\t\t\tif (paramValue.trim().length() > 0\n\t\t\t\t\t\t&& paramValue.trim().length() < 10) {\n\t\t\t\t\terrMsg = paramName\n\t\t\t\t\t\t\t+ \" is Invalid Date Format, Please Enter in dd/MM/yyyy format.(eg. 01/01/2013).\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (!isNulable) {\n\t\t\t\t\terrMsg = paramName + \" is Mandatory.\";\n\t\t\t\t\tAppLog.end();\n\t\t\t\t\treturn errMsg;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\terrMsg = \"Invalid \" + paramName + \".\";\n\t\t\tAppLog.error(ex);\n\t\t}\n\t\tAppLog.end();\n\t\treturn errMsg;\n\t}",
"public boolean selectDate(String dateString);",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Please enter year (yyyy) : \");\n int year = sc.nextInt();\n \n System.out.print(\"Please enter month (mm) : \");\n int month = sc.nextInt();\n \n System.out.println(\"Year: \" + year + \"leap year?\" + isLeapYear(year));\n \n System.out.println(\"There are \" + lastDayInMonth(month,year) + \"days in month : \" + month);\n }",
"private boolean checkDeadline(String d)\n\t{\n\t\t//yyyy/mm/dd\n\t\treturn Pattern.matches(\"[0-9][0-9][0-9][0-9]/[0-1][0-9]/[0-3][0-9]\", d);\n\t}",
"public void arrival_date(String arrivalDatePicker) throws ParseException\r\n\t{\r\n\t\tExplicitWait(arrivaldate);\r\n\r\n\t\tSimpleDateFormat df1;\r\n\t\t\r\n\t\t\r\n\t\t//Formats date based on BE customer date format\t\t\r\n\t\t//Create and if statement around this dictating the date format arrivaldate.getAttribute(\"placeholder\")\r\n\t\t\r\n\t\t\r\n\t\tif(arrivaldate.getAttribute(\"placeholder\").equals(\"mm/dd/yyyy\")){\r\n\t\t\t df1 = new SimpleDateFormat(\"MM/dd/yyyy\");\r\n\r\n\t\t}else{\r\n\t\t\t df1 = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\t}\r\n\t\t\r\n\t\t//Converts the String text from Data file into a Date object\r\n\t\tDate dateForArrival = df1.parse(arrivalDatePicker);\r\n\t\t\r\n\t\t//Suppose to create the current date\r\n\t\tDate currentDate = new Date();\r\n\t\t\r\n\t\tSystem.out.println(\"This is current date from arrival_date() \" + currentDate);\r\n\t\t\t\t\r\n\t\t if ( dateForArrival.before(currentDate)){\r\n\t\t\t \r\n\t\t\t dateForArrival.setDate(currentDate.getDate() + 1);\r\n\t\t\t \r\n\t\t }\r\n\t\t\r\n\t\tformattedDate1 = df1.format(dateForArrival);\r\n\t\t\r\n\t\tSystem.out.println(\"This is the arrival date reformat from arrival_date() \" + formattedDate1);\r\n\r\n\r\n\t\tif (SeleniumRepo.isElementPresent(arrivaldate)) \r\n\t\t{\r\n\t\t\t\r\n\t\t\tarrivaldate.click();\r\n\t\t\tarrivaldate.clear();\r\n\t\t\t\r\n\t\t\tTypeInField(arrivaldate, formattedDate1);\r\n\t\t\t\r\n\t\t\t//arrivaldate.sendKeys(formattedDate1);\r\n\t\t\t//System.out.println(formattedDate1);\r\n\t\t\ttest.log(Status.INFO, \"Clicked on arrivaldate Link\");\r\n\t\t\tlogger.info(\"Clicked on arrivaldate Link\");\r\n\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\t//System.out.println(\"arrivaldate TextBox not found\");\r\n\t\t\tlogger.error(\"arrivaldate TextBox not found\");\r\n\t\t\ttest.log(Status.FAIL, \"arrivaldate TextBox not found\");\r\n\r\n\t\t}\r\n\r\n\t}",
"public void TypeBirthdayDate3(String TypeBirthdayDate3) {\r\n\t\tbirthdaydate3.clear();\r\n\t\tbirthdaydate3.sendKeys(TypeBirthdayDate3);\r\n\t\t\tLog(\"Entered Birthday (MM/DD) 3: \" + TypeBirthdayDate3);\r\n\t}",
"public static void main(String[] args)throws Exception {\n\t\tScanner sc=new Scanner(System.in);\n\t\tSystem.out.println(\"Enter date in dd-MM-yyyy format :\");\n\t\tString s=sc.nextLine();\n\t\tSystem.out.println(getDay(s));\n\t}",
"public void months() {\n System.out.print(\"Enter a month: \");\n String userMonth = in.nextLine();\n userMonth = userMonth.toUpperCase();\n //28 or 29 days. 30 days. 31 days. That's not a valid month.\n switch (userMonth) {\n case \"JANUARY\":\n case \"JANU\":\n case \"JAN\":\n System.out.println(\"\\n31 days.\\n\");\n break;\n case \"FEBRUARY\":\n case \"FEBR\":\n case \"FEB\":\n System.out.println(\"\\n28 or 29 days.\\n\");\n break;\n case \"MARCH\":\n case \"MARC\":\n case \"MAR\":\n System.out.println(\"\\n31 days.\\n\");\n break;\n case \"APRIL\":\n case \"APRI\":\n case \"APR\":\n System.out.println(\"\\n30 days.\\n\");\n break;\n case \"MAY\":\n System.out.println(\"\\n31 days.\\n\");\n break;\n case \"JUNE\":\n case \"JUN\":\n System.out.println(\"\\n30 days.\\n\");\n break;\n case \"JULY\":\n case \"JUL\":\n System.out.println(\"\\n31 days.\\n\");\n break;\n case \"AUGUST\":\n case \"AUGU\":\n case \"AUG\":\n System.out.println(\"\\n31 days.\\n\");\n break;\n case \"SEPTEMBER\":\n case \"SEPT\":\n case \"SEP\":\n System.out.println(\"\\n30 days.\\n\");\n break;\n case \"OCTOBER\":\n case \"OCTO\":\n case \"OCT\":\n System.out.println(\"\\n31 days.\\n\");\n break;\n case \"NOVEMBER\":\n case \"NOVE\":\n case \"NOV\":\n System.out.println(\"\\n30 days.\\n\");\n break;\n case \"DECEMBER\":\n case \"DECE\":\n case \"DEC\":\n System.out.println(\"\\n31 days.\\n\");\n break;\n default:\n System.out.println(\"\\nThat's not a valid month.\\n\");\n break;\n }\n }",
"public static boolean isValidDate(String input) {\n try {\n LocalDate.parse(input);\n return true;\n } catch (DateTimeParseException e) {\n return false;\n }\n }",
"public static String dateStr(String input ){\n String mm = input.substring(0,2);\n String dd = input.substring(3,5);\n String yyyy = input.substring(6,10);\n return dd + \" - \" + mm + \" - \" + yyyy;\n }",
"public void inputMonth () {\n\t\tSystem.out.print(\"Enter a month: \");\r\n\t\tmonth = input.nextInt();\r\n\t}",
"public void selectDate(String d){\n\t\tDate current = new Date();\n\t\tSimpleDateFormat sd = new SimpleDateFormat(\"d-MM-yyyy\");\n\t\ttry {\n\t\t\tDate selected = sd.parse(d);\n\t\t\tString day = new SimpleDateFormat(\"d\").format(selected);\n\t\t\tString month = new SimpleDateFormat(\"MMMM\").format(selected);\n\t\t\tString year = new SimpleDateFormat(\"yyyy\").format(selected);\n\t\t\tSystem.out.println(day+\" --- \"+month+\" --- \"+ year);\n\t\t\tString desiredMonthYear=month+\" \"+year;\n\t\t\t\n\t\t\twhile(true){\n\t\t\t\tString displayedMonthYear=driver.findElement(By.cssSelector(\".dpTitleText\")).getText();\n\t\t\t\tif(desiredMonthYear.equals(displayedMonthYear)){\n\t\t\t\t\t// select the day\n\t\t\t\t\tdriver.findElement(By.xpath(\"//td[text()='\"+day+\"']\")).click();\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\tif(selected.compareTo(current) > 0)\n\t\t\t\t\t\tdriver.findElement(By.xpath(\"//*[@id='datepicker']/table/tbody/tr[1]/td[4]/button\")).click();\n\t\t\t\t\telse if(selected.compareTo(current) < 0)\n\t\t\t\t\t\tdriver.findElement(By.xpath(\"//*[@id='datepicker']/table/tbody/tr[1]/td[2]/button\")).click();\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public void setValidUntil(Date validUntil);",
"public boolean checkReservationDateFromToday(String resMonth, String resDay, String resYear){\n int daysDiff,monthDiff,yearDiff; //date difference\n int monthToday,dayToday,yearToday; //date today\n int monthReserved,dayReserved,yearReserved; //date of reservation\n \n //date of reservation\n String sMonth,sDay,sYear;\n sMonth = resMonth;\n sDay = resDay;\n sYear = resYear;\n \n getCurrentDate(); //call to get current date\n \n boolean dateValid = false;\n sMonth = convertMonthToDigit(sMonth); //convert string month to string number\n \n monthToday = parseInt(month);\n dayToday = parseInt(day);\n yearToday = parseInt(year);\n \n //convert to integer\n monthReserved = parseInt(sMonth);\n dayReserved = parseInt(sDay);\n yearReserved = parseInt(sYear);\n \n //get the difference\n monthDiff = monthReserved - monthToday;\n daysDiff = dayReserved - dayToday;\n yearDiff = yearReserved - yearToday;\n \n System.out.println(\"startMonth: \"+ sMonth);\n System.out.println(\"yearDiff: \" + yearDiff);\n System.out.println(\"daysDiff: \" + daysDiff);\n System.out.println(\"monthDiff: \" + monthDiff);\n \n if(yearDiff > 0){ //next year\n return true;\n }\n \n if(yearDiff == 0){ //this year\n if(monthDiff >= 0){\n if(monthDiff == 0 && daysDiff == 0){ //cannot reserve room on the day\n //invalid day, the date is today\n dateValid = false;\n System.out.println(\"reservation day must not today.\");\n }else if(monthDiff==0 && daysDiff < 0){ // same month today, invalid day diff\n dateValid = false; \n System.out.println(\"reservation day must not in the past\");\n }else if(monthDiff>0 && daysDiff < 0){ //not the same month today, accept negative day diff\n dateValid = true;\n }else{ //the same month and valid future day\n dateValid = true;\n }\n }else{\n //invalid month\n System.out.println(\"reservation month must not in the past.\");\n }\n }else{\n //invalid year\n System.out.println(\"reservation year must not in the past.\");\n }\n \n return dateValid;\n }",
"private boolean isValidDate(String date){\n Date inputDate = new Date(date);\n boolean isValid = false;\n\n if (inputDate.isValid()) {\n isValid = true;\n }else{\n generalTextArea.appendText(date + \" is not a valid date!\\n\");\n }\n return isValid;\n }",
"void validateDates(ComponentSystemEvent event);",
"private void completeBooking() throws Exception {\n\t\tint regNoLength = 6;\n\t\tint dateLength = 10;\n\t\tSystem.out.print(\"Enter Registration or Booking Date:\");\n\t\tString response = console.nextLine();\n\t\t\n\t\tif (response.length() != regNoLength) {\n\t\t\t\n\t\t\tif (response.length() != dateLength) {\n\t\t\t\tthrow new InvalidRegNoOrDateException(\"Error: Invalid character length\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tString result;\n\t\t\n\t\t// User entered a booking date\n\t\tif (response.contains(\"/\")) {\n\t\t\tString dateEntered = response;\n\t\t\tDateRegex dateChecker = new DateRegex(dateEntered);\n\t\t\tSystem.out.print(\"Enter First Name:\");\n\t\t\tString firstName = console.nextLine();\n\t\t\tSystem.out.print(\"Enter Last Name:\");\n\t\t\tString lastName = console.nextLine();\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSystem.out.print(\"Enter kilometers:\");\n\t\t\t\tdouble kilometers = Double.parseDouble(console.nextLine());\n\t\t\t\tint day = Integer.parseInt(response.substring(0, 2));\n\t\t\t\tint month = Integer.parseInt(response.substring(3, 5));\n\t\t\t\tint year = Integer.parseInt(response.substring(6));\n\t\t\t\tDateTime dateOfBooking = new DateTime(day, month, year);\n\t\t\t\tresult = application.completeBooking(firstName, lastName, dateOfBooking, kilometers);\n\t\t\t\tSystem.out.println(result);\n\t\t\t}\n\t\t\t\n\t\t\tcatch (NumberFormatException e){\n\t\t\t\tSystem.out.println(\"Error: The number of passengers should be in numeric input.\");\n\t\t\t}\n\t\t\t\n\t\t} \n\t\t\n\t\telse {\n\t\t\tSystem.out.print(\"Enter First Name:\");\n\t\t\tString firstName = console.nextLine();\n\t\t\tSystem.out.print(\"Enter Last Name:\");\n\t\t\tString lastName = console.nextLine();\n\t\t\t\n\t\t\tif (application.getBookingByName(firstName, lastName, response)) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.print(\"Enter kilometers:\");\n\t\t\t\t\tdouble kilometers = Double.parseDouble(console.nextLine());\n\t\t\t\t\tresult = application.completeBooking(firstName, lastName, response, kilometers);\n\t\t\t\t\tSystem.out.println(result);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcatch (NumberFormatException e){\n\t\t\t\t\tSystem.out.println(\"Error: The number of passengers should be in numeric input.\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Error: Booking not found.\");\n\t\t\t}\n\t\t}\n\t}",
"private long daysBetween() throws ParseException {\n Scanner input = new Scanner(System.in);\n System.out.println(\"Enter the date of when you rented the game dd/MM/yyyy:\");\n String dateReturn = input.nextLine();\n Date date = new SimpleDateFormat(\"dd/MM/yyyy\").parse(dateReturn);\n long interval = new Date().getTime() - date.getTime();\n return TimeUnit.DAYS.convert(interval, TimeUnit.MILLISECONDS);\n }",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n\n String set1 = \"\"\"\n 1 3 5 7\n 9 11 12 15\n 17 19 21 23\n 25 27 29 31\n \"\"\";\n String set2 = \"\"\"\n 2 3 6 7\n 10 11 14 15\n 18 19 22 23\n 26 27 30 31\n \"\"\";\n String set3 = \"\"\"\n 4 5 6 7\n 12 13 14 15\n 20 21 22 23\n 28 29 30 31\n \"\"\";\n String set4 = \"\"\"\n 8 9 10 11\n 12 12 14 15\n 24 25 26 27\n 28 29 30 31\n \"\"\";\n String set5 = \"\"\"\n 16 17 18 19\n 20 21 22 23\n 24 25 26 27\n 28 29 30 31\n \"\"\";\n\n //placeholder\n int day = 0;\n\n //Ask user some questions\n System.out.println(\"Is you birthday in Set 1?\\n\");\n System.out.println(set1);\n System.out.print(\"\\nEnter N for No and Y for Yes: \");\n String answer = input.nextLine();\n if (answer.equals(\"Y\")){\n day = day + 1;\n }\n System.out.println(\"Is you birthday in Set 2?\\n\");\n System.out.println(set2);\n System.out.print(\"\\nEnter N for No and Y for Yes: \");\n answer = input.nextLine();\n if (answer.equals(\"Y\")){\n day = day + 2;\n }\n System.out.println(\"Is you birthday in Set 3?\\n\");\n System.out.println(set3);\n System.out.print(\"\\nEnter N for No and Y for Yes: \");\n answer = input.nextLine();\n if (answer.equals(\"Y\")){\n day = day + 4;\n }\n System.out.println(\"Is you birthday in Set 4?\\n\");\n System.out.println(set4);\n System.out.print(\"\\nEnter N for No and Y for Yes: \");\n answer = input.nextLine();\n if (answer.equals(\"Y\")){\n day = day + 8;\n }\n System.out.println(\"Is you birthday in Set 5\\n\");\n System.out.println(set5);\n System.out.print(\"\\nEnter N for No and Y for Yes: \");\n answer = input.nextLine();\n if (answer.equals(\"Y\")){\n day = day + 16;\n }\n System.out.println(\"\\nYour birthday is on the \" + day + \"!\");\n }",
"public boolean checkFutureDate(String message)\n {\n boolean valid = this.check();\n if(!valid) return valid;\n try{\n\n date = DateHelper.stringToDate(this.getDateString());\n if(super.isMandatory() && date==null)\n {\n message = FacesHelper.getBundleMessage(\"validator_dateformat\", new Object[]{Constants.CommonFormat.DATE_FORMAT_TIP});\n return false;\n }\n\n }\n catch (Exception e)\n {\n message = FacesHelper.getBundleMessage(\"validator_dateformat\", new Object[]{Constants.CommonFormat.DATE_FORMAT_TIP});\n return false;\n }\n\n if (date != null\n &&\n (date.before(currentDate)|| date.equals(currentDate)))\n {\n super.clearMessage();\n super.setMessage(\"Date should be in future!\");\n\n return valid && false;\n }\n return valid;\n }",
"java.lang.String getStartDateYYYYMMDD();",
"public boolean checkCurrentDate()\n {\n boolean valid = this.check();\n if(!valid) return valid;\n\n try{\n\n date = DateHelper.stringToDate(this.getDateString());\n if(super.isMandatory() && date==null)\n {\n message = FacesHelper.getBundleMessage(\"validator_dateformat\", new Object[]{Constants.CommonFormat.DATE_FORMAT_TIP});\n return false;\n }\n\n }\n catch (Exception e)\n {\n message = FacesHelper.getBundleMessage(\"validator_dateformat\", new Object[]{Constants.CommonFormat.DATE_FORMAT_TIP});\n return false;\n }\n\n\n if (date != null\n &&\n (date.after(currentDate) || date.equals(currentDate)))\n {\n super.clearMessage();\n super.setMessage(FacesHelper.getBundleMessage(\"date_after_current\"));\n\n return valid && false;\n }\n return valid;\n }",
"private void app_requestAppointment() {\r\n if (!app_patientNameTextField.getText().equals((\"\"))) {\r\n currentPatient = MainGUI.pimsSystem.patient_details\r\n (pInfo_lastNameTextField.getText(), Integer.parseInt(pInfo_ssnTextField.getText()));\r\n if (currentPatient != null) {\r\n String message = MainGUI.pimsSystem.add_date(datePicker.getText(), timePicker.getText(), currentPatient);\r\n JOptionPane.showMessageDialog(null, message);\r\n }\r\n } else {\r\n JOptionPane.showMessageDialog(null, \"Must Search a Patient First (Search Tab)\");\r\n }\r\n }",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Введите день, месяц, год рождения\");\n\t\tint day;\n\t\tint month;\n\t\tint year;\n\t\tdo {\n\t\t\tSystem.out.println(\"Количество дней в месяце от 1 до 31\");\n\t\t\tday = scan.nextInt();\n\t\t}while((day > 31) || (day <= 0));\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"Месяц равен от 1 до 12\");\n\t\t\tmonth = scan.nextInt();\n\t\t}while(month <1 || month > 12);\n\t\tint i;\n\t\tint n;\n\t\tdo {\n\t\t\ti = 0;\n\t\t\tSystem.out.println(\"Год - четырехзначное число\");\n\t\t\tyear = scan.nextInt();\n\t\t\tn = year;\n\t\t\twhile (n > 0) {\n\t\t\t n = n/10;\n\t\t\t i += 1;\n\t\t\t }\n\t\t}while(i != 4);\n\t\t\n\t\tSystem.out.println(day + \" \" + month + \" \" + year);\n\t\tString znakZodiak;\n\t\tString animalYear;\n\t\t\t\n\t\tif ((month == 3 && day >= 21) || (month == 4 && day <= 20))\n\t\t\tznakZodiak = \"Овен\";\n\t\telse if ((month == 4 && day >= 21) || (month == 5 && day <= 21))\n\t\t\tznakZodiak = \"Телец\";\n\t\telse if ((month == 5 && day >= 22) || (month == 6 && day <= 21))\n\t\t\tznakZodiak = \"Близнецы\";\n\t\telse if ((month == 6 && day >= 22) || (month == 7 && day <= 22))\n\t\t\tznakZodiak = \"Рак\";\n\t\telse if ((month == 7 && day >= 23) || (month == 8 && day <= 22))\n\t\t\tznakZodiak = \"Лев\";\n\t\telse if ((month == 8 && day >= 23) || (month == 9 && day <= 23))\n\t\t\tznakZodiak = \"Дева\";\n\t\telse if ((month == 9 && day >= 24) || (month == 10 && day <= 23))\n\t\t\tznakZodiak = \"Весы\";\n\t\telse if ((month == 10 && day >= 24) || (month == 11 && day <= 21))\n\t\t\tznakZodiak = \"Скорпион\";\n\t\telse if ((month == 11 && day >= 22) || (month == 12 && day <= 21))\n\t\t\tznakZodiak = \"Стрелец\";\n\t\telse if ((month == 12 && day >= 22) || (month == 1 && day <= 21))\n\t\t\tznakZodiak = \"Козерог\";\n\t\telse if ((month == 1 && day >= 22) || (month == 2 && day <= 19))\n\t\t\tznakZodiak = \"Водолей\";\n\t\telse if ((month == 2 && day >= 20) || (month == 3 && day <= 20))\n\t\t\tznakZodiak = \"Рыбы\";\n\t\telse\n\t\t\tznakZodiak = \"Введенный месяц не соответствует ни одному значению знака задиака. Месяц должен быть от 1 до 124\";\n\t\tswitch(year % 12) {\n\t\tcase 0: \n\t\t\tanimalYear = \"Год обезьяны\";\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tanimalYear = \"Год петуха\";\n\t\t\tbreak;\n\t\tcase 2: \n\t\t\tanimalYear = \"Год собаки\";\n\t\t\tbreak;\n\t\tcase 3: \n\t\t\tanimalYear = \"Год свиньи\";\n\t\t\tbreak;\n\t\tcase 4: \n\t\t\tanimalYear = \"Год крысы\";\n\t\t\tbreak;\n\t\tcase 5: \n\t\t\tanimalYear = \"Год коровы\";\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tanimalYear = \"Год тигра\";\n\t\t\tbreak;\n\t\tcase 7: \n\t\t\tanimalYear = \"Год зайца\";\n\t\t\tbreak;\n\t\tcase 8: \n\t\t\tanimalYear = \"Год дракона\";\n\t\t\tbreak;\n\t\tcase 9: \n\t\t\tanimalYear = \"Год змеи\";\n\t\t\tbreak;\n\t\tcase 10: \n\t\t\tanimalYear = \"Год лошади\";\n\t\t\tbreak;\n\t\tcase 11: \n\t\t\tanimalYear = \"Год овцы\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tanimalYear = \"Что-то пошло не так\";\n\t\t}\n\t\tSystem.out.println(\"Знак: \" + znakZodiak);\n\t\tSystem.out.println(\"Знак: \" + animalYear);\n\t\tscan.close();\n\t}"
] | [
"0.7131851",
"0.7120627",
"0.6808014",
"0.68042856",
"0.6746719",
"0.66405934",
"0.64891416",
"0.6427789",
"0.64007527",
"0.636025",
"0.63511616",
"0.63220435",
"0.6271735",
"0.617516",
"0.6159796",
"0.61404",
"0.6039485",
"0.6019423",
"0.59801334",
"0.58939415",
"0.5883405",
"0.587781",
"0.58764595",
"0.5844823",
"0.58085966",
"0.57874954",
"0.5769061",
"0.5699506",
"0.5699017",
"0.56970143",
"0.5689888",
"0.565933",
"0.56573105",
"0.5647935",
"0.56455904",
"0.56180274",
"0.56169945",
"0.56073433",
"0.56063557",
"0.5603867",
"0.5591638",
"0.5583525",
"0.5566619",
"0.5562814",
"0.5561421",
"0.5551045",
"0.55452806",
"0.5521766",
"0.5513216",
"0.5500415",
"0.5498819",
"0.54979223",
"0.5477806",
"0.54666424",
"0.54597527",
"0.5444439",
"0.5443914",
"0.54386777",
"0.54365206",
"0.54360837",
"0.54320204",
"0.54292065",
"0.54263544",
"0.54259974",
"0.54086953",
"0.5405639",
"0.5400386",
"0.53966534",
"0.5394736",
"0.5393736",
"0.53874224",
"0.5384128",
"0.53825",
"0.5380078",
"0.53554547",
"0.5353505",
"0.53521127",
"0.5348554",
"0.5348377",
"0.53464437",
"0.5346439",
"0.53385806",
"0.53355104",
"0.5330189",
"0.53230745",
"0.531599",
"0.531585",
"0.5310498",
"0.53052294",
"0.529793",
"0.52701724",
"0.52701706",
"0.5269527",
"0.52676654",
"0.5259032",
"0.5250748",
"0.52478045",
"0.5242265",
"0.5237791",
"0.52358294"
] | 0.5762618 | 27 |
Returns true if the date is in valid ISO format "YYYYMMDD" | public boolean isValidDate(String s) {
try {
LocalDate.parse(s);
return true;
} catch (DateTimeParseException e) {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean checkDatePattern(String date) {\n return date.matches(\"^[0-9]{4}-[0-9]{2}-[0-9]{2}$\");\n }",
"public boolean looksLikeISO8601(String str) {\n if (str.length() < 5 || !Character.isDigit(str.charAt(0)) || !Character.isDigit(str.charAt(3)) || str.charAt(4) != '-') {\n return false;\n }\n return true;\n }",
"public static boolean dateFormatCheck(String date)\r\n\t{\r\n\t\treturn date.matches(\"(0?[1-9]|[12][0-9]|3[01])-(0?[1-9]|1[012])-((19|20)\\\\d\\\\d)\");\t\r\n\t}",
"public boolean isValidDate(String valD) { //Checks if date is in proper format\n String valDWithoutSpace = valD.replaceAll(\"\\\\s\", \"\");\n return valDWithoutSpace.length() == 8;\n}",
"@Override\n public boolean isInputDateValid(String dateStr) {\n DateFormat sdf = new SimpleDateFormat(this.date);\n sdf.setLenient(false);\n try {\n sdf.parse(dateStr);\n } catch (ParseException e) {\n return false;\n }\n return true;\n }",
"private boolean isValidDate(String date) {\n\t Date d = null;\n\t try {\n\t\t\td = format.parse(date);\t\t\t\n\t\t\treturn d != null;\n\t\t} catch (java.text.ParseException e) {\n\t\t\treturn false;\n\t\t}\n\t}",
"public static boolean isValidDate(String date) {\n try {\n LocalDate.parse(date, INPUT_FORMATTER);\n return true;\n } catch (DateTimeParseException e) {\n return false;\n }\n }",
"private boolean checkValidDate(String inputDate) {\n SimpleDateFormat date = new SimpleDateFormat(\"ddMMyy\");\n date.setLenient(false);\n try {\n date.parse(inputDate);\n return true;\n } catch (ParseException e) {\n return false;\n }\n }",
"private boolean checkDate(String date) {\n return date.matches(regexDate);\n }",
"public static boolean isValidDate(String test) {\n if (test.matches(VALIDATION_REGEX)) {\n try {\n DateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd-MM-yyyy\");\n LocalDate date = LocalDate.parse(test, format);\n if (date.format(format).equals(test)) {\n return true;\n }\n return false;\n } catch (DateTimeParseException e) {\n return false;\n }\n }\n return false;\n }",
"public static boolean isValidDate(String input) {\n try {\n LocalDate.parse(input);\n return true;\n } catch (DateTimeParseException e) {\n return false;\n }\n }",
"public Boolean validateDate(String date_of_birth) {\n DateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n try {\n format.parse(date_of_birth);\n } catch (ParseException exception) {\n System.out.println(\"Invalid Input!\");\n return true;\n }\n return false;\n }",
"public static boolean isValidDate(String date) {\n\t\tDateTimeFormatter f = DateTimeFormatter.ofPattern( \"uuuu-MM-dd\" );\n\t\ttry {\n\t\t LocalDate localDateBad = LocalDate.parse( (CharSequence) date , f );\n\t\t} catch ( DateTimeParseException e ) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean isValidDate(String inDate) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"mm/DD/yyyy\");\n dateFormat.setLenient(false);\n try {\n dateFormat.parse(inDate.trim());\n }\n catch (ParseException pe) {\n\n return false;\n }\n\n return true;\n }",
"public static boolean isValidDate(String date) {\n return isValidDate(date, getDateTimeFormatter());\n }",
"private boolean isDateValid(String date) {\n return date.contains(\"/\");\n }",
"boolean isValidDate(String datestr)\n {\n String validch = \"1234567890/\";\n String month, day, year;\n Integer I;\n int m, d, y;\n int slash1, slash2;\n\n datestr.trim();\n if (datestr.length() == 0)\n return false;\n\n if (!checkchars(datestr, validch, false)) {\n // Invalid date entry\n return false;\n }\n\n\n slash1 = datestr.indexOf(\"/\");\n slash2 = datestr.indexOf(\"/\",slash1+1);\n if (slash1 <= 0 || slash2 <= 0)\n {\n // Invalid Entry\n return false;\n }\n\n month = datestr.substring(0,slash1);\n day = datestr.substring(slash1+1,slash2);\n year = datestr.substring(slash2+1,datestr.length());\n if ((month.length()<1 || month.length()>2) ||\n (day.length()<1 || day.length()>2) || (year.length()!=4))\n {\n // Invalid Date\n return false;\n }\n\n I = new Integer(month);\n m = I.intValue();\n I = new Integer(day);\n d = I.intValue();\n I = new Integer(year);\n y = I.intValue();\n //basic error checking\n if (m<1 || m>12 || d<1 || d>31 || y<0 || y>9999)\n return false;\n\n // months with 30 days\n if (d==31 && (m==4 || m==6 || m==9 || m==11)){\n return false;\n }\n\n // february, leap year\n if (m==2 && d>28){\n if (d > 29)\n return false;\n if ((y%4 == 0) || ((y%400==0) && (y%100!=0)))\n return false;\n }\n\n return true;\n }",
"private boolean isValidDate(String date){\n Date inputDate = new Date(date);\n boolean isValid = false;\n\n if (inputDate.isValid()) {\n isValid = true;\n }else{\n generalTextArea.appendText(date + \" is not a valid date!\\n\");\n }\n return isValid;\n }",
"boolean isValidFor (@Nonnull DATATYPE aDate);",
"boolean validDate(String dateString){\r\n\t\t\r\n\t\tif(DateUtil.parse(dateString) != null){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public static boolean validateDateFormat(String date, String format) {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(format);\n try {\n LocalDate.parse(date, formatter);\n } catch (DateTimeParseException e) {\n return false;\n }\n return true;\n }",
"@Test\n public void testIsValidateDate() {\n System.out.println(\"isValidateDate\");\n String dateString = \"2016-03-23T10:25:01Z\";\n boolean expResult = true;\n boolean result = DateUtil.isValidateDate(dateString);\n assertEquals(expResult, result);\n }",
"public boolean checkData(String data){\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\n\t dateFormat.setLenient(false);\n\t try {\n\t\t\tdateFormat.parse(data.trim());\n\t\t} catch (java.text.ParseException e) {\n\t\t\treturn false;\n\t\t}\n\t return true;\n\t}",
"private static boolean validDate(String date) {\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yy\");\n\t\tformatter.setLenient(false);\n\t\tDate tryDate = null; \n\t\t\ttry\n\t\t{\n\t\t\ttryDate = formatter.parse(date);\n\t\t}catch (ParseException e) {\n\t\t\treturn false;\n\t\t}\n\t\tformatDate(tryDate);\n\t\treturn true; \n\t\t\n\t}",
"public static boolean isReservationDateValid(String date, String date_format) {\r\n try {\r\n DateFormat df = new SimpleDateFormat(date_format);\r\n df.setLenient(false);\r\n df.parse(date);\r\n return true;\r\n } catch (ParseException e) {\r\n return false;\r\n }\r\n }",
"public static boolean isValidDate(String date) throws DateTimeException, NumberFormatException {\n\n if (date.length() != 10) {\n return false;\n }\n\n String[] dateComponents = date.split(\"/\");\n\n if (dateComponents.length != 3) {\n return false;\n }\n\n int day = Integer.parseInt(dateComponents[0]);\n int month = Integer.parseInt(dateComponents[1]);\n int year = Integer.parseInt(dateComponents[2]);\n\n LocalDate localdate;\n localdate = LocalDate.of(year, month, day);\n return true;\n }",
"private boolean dateValidation(String userDate){\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n sdf.setLenient(false);\n\n try {\n\n //if not valid, it will throw ParseException\n Date date = sdf.parse(userDate);\n System.out.println(date);\n\n } catch (ParseException e) {\n\n e.printStackTrace();\n return false;\n }\n\n return true;\n }",
"public static boolean validateJavaDate(String strDate)\r\n {\r\n\tif (strDate.trim().equals(\"\"))\r\n\t{\r\n\t\tSystem.out.println(strDate+\" is Invalid Date format\");\r\n\t return false;\r\n\t \r\n\t}\r\n\t/* Date is not 'null' */\r\n\telse\r\n\t{\r\n\t /*\r\n\t * Set preferred date format,\r\n\t * For example MM-dd-yyyy, MM.dd.yyyy,dd.MM.yyyy etc.*/\r\n\t SimpleDateFormat sdfrmt = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t sdfrmt.setLenient(false);\r\n\t /* Create Date object\r\n\t * parse the string into date \r\n */\r\n\t try\r\n\t {\r\n\t Date javaDate = sdfrmt.parse(strDate); \r\n\t System.out.println(strDate+\" is valid date format\");\r\n\t }\r\n\t /* Date format is invalid */\r\n\t catch (ParseException e)\r\n\t {\r\n\t System.out.println(strDate+\" is Invalid Date format\");\r\n\t return false;\r\n\t }\r\n\t \r\n\t return true;\r\n\t}\r\n }",
"boolean checkNumberFormat (String birthDate){\r\n for (int i = 0; i < birthDate.length(); i++) {\r\n if ((birthDate.charAt(i) < 48 && birthDate.charAt(i) != 32 \r\n && birthDate.charAt(i) != 10) \r\n || birthDate.charAt(i) > 57){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"@Test\n public void testconvertDateYearsLongueurPasValide() {\n FieldVerifier projet = new FieldVerifier();\n boolean longueurInvalideTest = projet.isValidDate(\"01/05/102\");\n assertEquals(false, longueurInvalideTest);\n }",
"public static boolean isValidDate(String dateString) {\r\n\t\tboolean convertSuccess = true;\r\n\t\tSimpleDateFormat dateformat = new SimpleDateFormat(SDF_DATE, Locale.CHINA);\r\n\t\ttry {\r\n\t\t\tdateformat.setLenient(false);\r\n\t\t\tdateformat.parse(dateString);\r\n\t\t} catch (ParseException e) {\r\n\t\t\tconvertSuccess = false;\r\n\t\t}\r\n\t\treturn convertSuccess;\r\n\t}",
"protected boolean isValidDateTimeFormat(String str) {\n SimpleDateFormat inputFormat = new SimpleDateFormat(\"dd/MM/yyy hhmm\");\n try {\n inputFormat.parse(str);\n return true;\n } catch (ParseException e) {\n return false;\n }\n }",
"public static boolean validateDate(String dateString) {\n boolean isValidDate = true;\n try {\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(PATTERN);\n LocalDate ld = LocalDate.parse(dateString, dtf);\n } catch (Exception exc) {\n isValidDate = false;\n logger.error(\"Date found to be not parseable. Please check the \" +\n \"format!\");\n }\n return isValidDate;\n }",
"private boolean dateExists(){\n SimpleDateFormat dateFormat = getDateFormat();\n String toParse = wheels.getDateTimeString();\n try {\n dateFormat.setLenient(false); // disallow parsing invalid dates\n dateFormat.parse(toParse);\n return true;\n } catch (ParseException e) {\n return false;\n }\n }",
"public boolean checkDate() {\n\t\tboolean cd = checkDate(this.year, this.month, this.day, this.hour);\n\t\treturn cd;\n\t}",
"private void checkDate(String strDate, LocalDate localDate) {\n if (Integer.parseInt(strDate.substring(0, 4)) != localDate.getYear()\n || Integer.parseInt(strDate.substring(5, 7)) != localDate.getMonthValue()\n || Integer.parseInt(strDate.substring(8,10)) != localDate.getDayOfMonth()) {\n throw new IllegalArgumentException(\"Illegal date: date dose not exist.\");\n }\n }",
"boolean isValidForDate(LocalDate date);",
"public boolean validateDate(String date) {\n\n\t\tDate enteredDate = null;\n\t\ttry {\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\tenteredDate = format.parse(date);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tDate currentDate = new Date();\n\t\treturn enteredDate.before(currentDate);\n\t}",
"public static boolean validarFecha(String fecha) {\n return validar(\"[0-9]{4}[-/][0-9]{2}[-/][0-9]{2}|[0-9]{2}[-/][0-9]{2}[-/][0-9]{4}\", fecha);\n }",
"public static boolean isValidDate(String date, String[] openMarketTime) {\n if (date.length() != 14) {\n return false;\n }\n\n String hhmm = date.substring(8, 10) + \":\" + date.substring(10, 12); // yyyyMMddHHmmss -> hh:mm\n return Util.isBetweenTimes(openMarketTime, hhmm);\n }",
"protected final boolean ok_date (int year, int month, int day)\n {\n return ((year >= FIRST_YEAR) &&\n (1 <= month && month <= getLastMonthOfYear(year)) &&\n (1 <= day && day <= getLengthOfMonth (year, month)));\n }",
"@Test\n public void isValidFormat() {\n assertFalse(Deadline.isValidFormat(VALID_DAY_1));\n\n // Deadline with day and month dd/mm -> true\n assertTrue(Deadline.isValidFormat(VALID_1ST_JAN_WITHOUT_YEAR.toString()));\n\n // Deadline with all 3 fields dd/mm/yyyy -> true\n assertTrue(Deadline.isValidFormat(VALID_1ST_JAN_2018.toString()));\n }",
"public static boolean validDate(String fechaString) {\n // Try to parse the String.\n return DateUtil.parse(fechaString) != null;\n }",
"private static boolean dateValid(int[] time ) { \r\n\t\tfor ( int i = 0 ; i < time.length; i++) \r\n\t\t\tif (time[i] >2400 || time[i] < 0 ) \r\n\t\t\t\treturn false;\r\n\t\treturn true;\t\t\r\n\t}",
"private boolean checkNgay(String ngaySD){\n String pattern=\"\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}\";\n return ngaySD.matches(pattern);\n }",
"private static boolean isParseDate(String dateStr) {\n try {\n simpleDateFormat.parse(dateStr);\n return true;\n } catch (Exception e) {\n return false;\n }\n }",
"private static boolean isDate(String token) {\n return dateRegex.matcher(token).matches();\n }",
"public static boolean comprobarFecha(String s){\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n //dateFormat.setLenient(false);\n try {\n dateFormat.parse(s.trim());\n }catch (ParseException pe) {\n System.out.println(\"Fecha introducida de manera erronea\");\n return false;\n }\n return true;\n }",
"private boolean isDOBValid(String DOB) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n dateFormat.setLenient(false);\n try {\n dateFormat.parse(DOB.trim());\n } catch (ParseException pe) {\n return false;\n }\n return true;\n }",
"public boolean isValidDate() {\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(mDate.getDate());\n int yearNow = cal.get(Calendar.YEAR);\n int monthNow = cal.get(Calendar.MONTH);\n int dayNow = cal.get(Calendar.DAY_OF_MONTH);\n cal.setTimeInMillis(selectedDate.getTimeInMillis());\n int yearSelected = cal.get(Calendar.YEAR);\n int monthSelected = cal.get(Calendar.MONTH);\n int daySelected = cal.get(Calendar.DAY_OF_MONTH);\n if (yearSelected <= yearNow) {\n if (monthSelected <= monthNow) {\n return daySelected >= dayNow;\n }\n }\n return true;\n }",
"public static boolean checkExpDate(String cS_exp_date) {\n\t\t\n\t\t\n\t\treturn true;\n\t}",
"boolean hasDate();",
"private boolean isParse(String date){\n boolean isParseble = false;\n try{\n String[] parsedDate = date.split(\"/\");\n Integer.parseInt(parsedDate[0]);\n Integer.parseInt(parsedDate[1]);\n Integer.parseInt(parsedDate[2]);\n isParseble = true;\n }catch(NumberFormatException | ArrayIndexOutOfBoundsException e){\n generalTextArea.appendText(\"Please enter a valid date! Use the following format: mm/dd/yyyy. \\n\");\n dateRemoveText.clear();\n dateAddText.clear();\n dateSetText.clear();\n }\n return isParseble;\n }",
"private boolean validateDateAndTime(String date) {\n boolean isValid;\n Calendar prevDay;\n\n if(date != null && !date.isEmpty() && date.length() < MIN_DATE_LEN) {\n isValid = false;\n } else {\n prevDay = Calendar.getInstance(Locale.CANADA);\n prevDay.add(Calendar.DATE, -1); // All days valid from one day in the past\n Calendar cal = DateUtility.convertToDateObj(date);\n isValid = cal != null && cal.after(prevDay);\n }\n\n return isValid;\n }",
"public static boolean isValidDate(String date, DateTimeFormatter formatter) {\n try {\n LocalDate.parse(date, formatter);\n } catch (DateTimeException e) {\n return false;\n }\n return true;\n }",
"public boolean selectDate(String dateString);",
"private static boolean isDeliveryDate(String string) {\n\t\tString[] tmp = string.split(\"/\");\n\t\tint[] date = new int[tmp.length];\n\t\t\n\t\tif(date.length != 3) {\n\t\t\treturn false;\n\t\t}\n\t\tfor(int i = 0; i < date.length; i++) {\n\t\t\tdate[i] = Integer.parseInt(tmp[i]);\n\t\t}\n\t\t\n\t\tCalendar cal = new GregorianCalendar(date[2], date[0]-1, date[1]);\n\t\t\n\t\t//check valid date\n\t\tboolean is_valid_date = true;\n\t\tif(cal.get(Calendar.YEAR) != date[2]) is_valid_date = false;\n\t\tif(cal.get(Calendar.MONTH)+1 != date[0]) is_valid_date = false;\n\t\tif(cal.get(Calendar.DAY_OF_MONTH) != date[1]) is_valid_date = false;\n\t\treturn is_valid_date;\n\t\t\n\t\t/****** THIS IS USED FOR SETTING A LIMIT ON HOW EARLY OR LATE A INVOICE CAN BE ENTERED\n\t\t\n\t\tCalendar today = new GregorianCalendar();\n\t\tCalendar limit_date;\n\t\tif(today.MONTH < 8) \n\t\tlimit_date = new GregorianCalendar( today.get(Calendar.YEAR), \n\t\t\t\t\t\t\t\t\t\t\ttoday.get(Calendar.MONTH)+4, \n\t\t\t\t\t\t\t\t\t\t\ttoday.get(Calendar.DAY_OF_MONTH) ); // limit date is 4 months ahead of current time. \n\t\telse\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\tlimit_date = new GregorianCalendar(\ttoday.get(Calendar.YEAR)+1, \n\t\t\t\t\t\t\t\t\t\t\ttoday.get(Calendar.MONTH)+4%11, \n\t\t\t\t\t\t\t\t\t\t\ttoday.get(Calendar.DAY_OF_MONTH) );\n\t\t\t\n\n\t\tif(delivery_date.compareTo(today) <= 0) \n\t\treturn false;\n\t\telse if(delivery_date.compareTo(limit_date) >= 0)\n\t\treturn false;\n\t\telse*/\n\t\t\n\t}",
"protected boolean checkDateFormat(String dateStr) {\n try {\n dateFormat.parse(dateStr);\n } catch (ParseException ex) {\n if (log4j.isDebugEnabled()) {\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Date.Parse.Error\"));} //$NON-NLS-1$\n }\n if ( (alternateFormatString != null) ) {\n if (log4j.isDebugEnabled()) {\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Date.Parse.Choose.Alt\"));} //$NON-NLS-1$\n }\n dateFormatString = alternateFormatString;\n dateFormat = new SimpleDateFormat(dateFormatString);\n alternateFormatString = null;\n try {\n dateFormat.parse(dateStr);\n } catch (ParseException ex2) {\n return false;\n }\n } else {\n log4j.error(BaseMessages.getString(PKG, \"MVSFileParser.ERROR.Date.Parse.Fail\", dateStr)); //$NON-NLS-1$\n return false;\n }\n }\n return true;\n }",
"private void checkCorrectDateFormat(String date) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\", Locale.getDefault());\n sdf.setLenient(false);\n try {\n sdf.parse(date);\n } catch (ParseException e) {\n throw new IllegalArgumentException(\n \"Google Calendar Event Date must follow\" + \" the format: \\\"yyyy-MM-dd'T'HH:mm:ss\\\"\");\n }\n }",
"@Test\n public void test0() {\n chkDate(\"> '2013'\", true);\n\n }",
"public static boolean isValidBirthdate (String test) {\n try {\n LocalDate.parse(test);\n return isValidBirthdate(LocalDate.parse(test));\n } catch (DateTimeParseException e) {\n return false;\n }\n }",
"public boolean validateDate() {\r\n\t\tDate now = new Date();\r\n\t\t// expire date should be in the future\r\n\t\tif (now.compareTo(getExpireDate()) != -1)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}",
"public boolean verifyReturnDate(Date date){\n\t\tLocale en = new Locale(\"en\");\n\t\tString rDate = String.format(en, \"%1$ta, %1$tb %1$te, %1$tY\", date);\n\t\treturn returnDate.getText().equals(rDate);\n\t}",
"public static boolean isDate(InputField f, String format) {\r\n\t\tString d = f.getValue().replace(\"-\", \"\").replace(\"/\", \"\");\r\n\t\ttry {\r\n\t\t\tnew SimpleDateFormat(format).parse(d);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public String verifyDateFormat(String object, String data) {\n\t\tlogger.debug(\"verifying the date format\");\n\t\ttry {\n\t\t\tString date_text = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object)))).getText();\n\t\t\tString date[] = date_text.split(\"/\");\n\t\t\tBoolean flag = false;\n\n\t\t\tint month = Integer.parseInt(date[0]);\n\t\t\tint day = Integer.parseInt(date[1]);\n\t\t\tint year = Integer.parseInt(date[2]);\n\n\t\t\tfor (int i = 0; i < date.length; i++) {\n\t\t\t\tif (month <= 12 && day <= 31 && year > 2000) {\n\t\t\t\t\tflag = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (flag) {\n\n\t\t\t\treturn Constants.KEYWORD_PASS + \"--date is in correct format\";\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\treturn Constants.KEYWORD_FAIL + \"--date is not in correct format\";\n\t\t\t}\n\n\t\t} \ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\n\t\t\treturn Constants.KEYWORD_FAIL + e.getLocalizedMessage();\n\t\t}\n\t}",
"public static boolean isValid (int yyyy, int mm, int dd)\n {\n // null date 0000 00 00 is considered valid\n // but otherwise year 0000 never happened.\n if ( yyyy == 0 ) return(mm == 0) && (dd == 0);\n if ( (yyyy < MIN_YEAR) || (yyyy > MAX_YEAR)\n || (mm < 1) || (mm > 12)\n || (dd < 1) || (dd > 31) ) return false;\n // account for missing 10 days in 1582.\n // Thursday 1582 October 4 Julian was followed\n // immediately by Friday 1582 October 15\n // Similarly for the British Calendar\n if ( yyyy == OJC_lastYYYY\n && mm == OJC_lastMM\n && OJC_lastDD < dd\n && dd < GC_firstDD )\n return false;\n return dd <= daysInMonth(mm, yyyy);\n }",
"private boolean checkDeadline(String d)\n\t{\n\t\t//yyyy/mm/dd\n\t\treturn Pattern.matches(\"[0-9][0-9][0-9][0-9]/[0-1][0-9]/[0-3][0-9]\", d);\n\t}",
"String isOoseChangeDateAllowed(Record inputRecord);",
"public static boolean validateDateDDMMYYYY(String inputParam,\n\t\t\tString regexExp) {\n\t\tPattern pattern = Pattern.compile(regexExp);\n\n\t\tMatcher matcher = pattern.matcher(inputParam);\n\n\t\tif (matcher.matches()) {\n\n\t\t\tmatcher.reset();\n\n\t\t\tif (matcher.find()) {\n\n\t\t\t\tString day = matcher.group(1);\n\t\t\t\tString month = matcher.group(2);\n\t\t\t\tint year = Integer.parseInt(matcher.group(3));\n\n\t\t\t\tif (\"31\".equals(day)\n\t\t\t\t\t\t&& (\"4\".equals(month) || \"6\".equals(month)\n\t\t\t\t\t\t\t\t|| \"9\".equals(month) || \"11\".equals(month)\n\t\t\t\t\t\t\t\t|| \"04\".equals(month) || \"06\".equals(month) || \"09\"\n\t\t\t\t\t\t\t\t.equals(month))) {\n\t\t\t\t\treturn false; // only 1,3,5,7,8,10,12 has 31 days\n\t\t\t\t} else if (\"2\".equals(month) || \"02\".equals(month)) {\n\t\t\t\t\t// leap year\n\t\t\t\t\tif (year % 4 == 0) {\n\t\t\t\t\t\tif (\"30\".equals(day) || \"31\".equals(day)) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (\"29\".equals(day) || \"30\".equals(day)\n\t\t\t\t\t\t\t\t|| \"31\".equals(day)) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public static boolean verificaDataInserita (String data){\r\n\t\t\r\n\t\t//if (!(Pattern.matches(\"(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[-/.](19|20)\\\\d\\\\d\", data))) {\r\n\r\n\t\tif (!(Pattern.matches(\"(19|20)\\\\d\\\\d[\\\\-.](0[1-9]|1[012])[\\\\-.](0[1-9]|[12][0-9]|3[01])\", data))) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"La data Inserita deve essere di tipo aaaa-mm-gg\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public boolean isValid() {\n if (this.month >= 1 && this.month <= 12 && this.day >= 1 && this.day < 32) {\n\n if ((this.month == 1 || this.month == 3 || this.month == 5 || this.month == 7 || this.month == 8\n || this.month == 10 || this.month == 12) && this.day > 30) {\n return false;\n } else if (this.month == 2 && this.day > 29) {\n return false;\n } else if (this.month == 2 && this.day > 28 && !isLeap(this.year)) {\n return false;\n } else {\n return true;\n }\n\n } else {\n return false;\n }\n }",
"public static boolean isValidDOB(String userInput) {\n \n return Pattern.matches(Constants.DATE_VALIDATION, userInput);\n }",
"public static boolean isValidDatetime(String test) {\n String[] components = test.split(\" \");\n String date = components[0];\n String startTime = components[1];\n\n //If the format is dd/mm/yyyy hhmm k\n if (components.length == 3) {\n String duration = components[2];\n return isValidDate(date) && isValidTime(startTime) && isValidDuration(duration);\n //If the format is dd/mm/yyyy hhmm to hhmm\n } else if (components.length == 4) {\n String endtime = components[3];\n return isValidDate(date) && isValidTime(startTime) && isValidTime(endtime);\n } else {\n return false;\n }\n }",
"private static void checkDate(String date) {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n if (!date.matches(RegexPattern.DATE_PATTERN)) {\n throw new DaoException(ExceptionMessage.getMessage(ExceptionMessage.DATE_PATTERN_ERROR));\n }\n try {\n Date formatDate = simpleDateFormat.parse(date);\n if (formatDate.getTime() + TIME_IN_DAY < new Date().getTime()) {\n throw new DaoException(\"Date must be in Future\");\n }\n } catch (ParseException ex) {\n throw new DaoException(ex.getMessage());\n }\n }",
"@Test\n public void isNumeric() {\n assertTrue(Deadline.isNumeric(VALID_YEAR_2018));\n\n //contains other symbols -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_SYMBOLS));\n\n //contains alphabets -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_ALPHABETS));\n\n //contains space -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_SPACE));\n }",
"public Boolean validarFecha(LocalDate fechaIngresada);",
"@Test\n public void testSsnvalidatorFalse(){\n assertFalse(register.ssnValidator(\"70091212345\")); // a date can`t start with 70\n }",
"@Test\n public void testIsValidarFecha() {\n System.out.println(\"isValidarFecha\");\n String fecha = \"06/09/2018\";\n boolean expResult = true;\n boolean result = Entradas.isValidarFecha(fecha);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n \n }",
"public static void validateDate(String date) throws CustomExceptionHandler {\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd.MM.yyyy\");\n formatter.setLenient(false);\n Date parsedDate;\n\n //Throw Exception if string is blank\n if(date.isBlank()||date.isEmpty())\n throw new CustomExceptionHandler(\"Date NOT Specified\");\n\n\n\n //Throw exception if date is not formatted correctly\n try\n {\n parsedDate = formatter.parse(date);\n\n }\n catch (Exception e)\n {\n throw new CustomExceptionHandler(\"The date format is not correct\");\n }\n }",
"public static boolean isValidDate(Date date) {\n\n if (date == null) return false;\n\n LocalDate localDate = date.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();\n\n if (localDate.isBefore(LocalDate.parse(\"2000-01-01\"))) return false;\n\n if (localDate.isAfter(LocalDate.now().plusDays(30))) return false;\n\n return true;\n }",
"public boolean checkDate(int year, int month, int day) {\n\t\tboolean cd = checkDate(year, month, day, 0.0);\n\t\treturn cd;\n\t}",
"@Test(expected = IllegalArgumentException.class)\r\n public void testIncorrectYear() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/1700\");\r\n }",
"boolean isSetDate();",
"public static boolean checkDate(String dates, String times) {\n if (dates.matches(\"\\\\d\\\\d/\\\\d/\\\\d\\\\d\\\\d\\\\d\") || dates.matches(\"\\\\d/\\\\d\\\\d/\\\\d\\\\d\\\\d\\\\d\") || dates.matches(\"\\\\d\\\\d/\\\\d\\\\d/\\\\d\\\\d\\\\d\\\\d\")) {\n if (times.matches(\"\\\\d\\\\d:\\\\d\\\\d\") || times.matches(\"\\\\d:\\\\d\\\\d\"))\n return true;\n else\n return false;\n\n } else return false;\n\n }",
"public boolean isDate (int year, int doy)\n {\n return ((year >= FIRST_YEAR)\n && (1 <= doy && doy <= getLengthOfYear (year)));\n }",
"private static Boolean checkYear(){\r\n try{\r\n int year = Integer.parseInt(yearField.getText().trim());\r\n int now = LocalDate.now().getYear();\r\n \r\n if(LocalDate.now().getMonth().compareTo(Month.SEPTEMBER) < 0){\r\n now--;\r\n }\r\n //SIS stores the schedule for last 3 years only \r\n if(year <= now && year >= now - 3 ){\r\n return true;\r\n }\r\n }\r\n catch(Exception e){\r\n Logger.getLogger(\"Year checker\").log(Level.WARNING, \"Exception while resolving the year \", e);\r\n }\r\n return false;\r\n }",
"public boolean verifyLeaveDate(Date date){\t\t\n\t\tLocale en = new Locale(\"en\");\t\t\n\t\tString lDate = String.format(en, \"%1$ta, %1$tb %1$te, %1$tY\", date);\n\t\treturn leaveDate.getText().equals(lDate);\n\t}",
"boolean hasDateTime();",
"@Override\n public boolean isValidExpression(String expr) {\n final Pattern pattern1 = Pattern.compile(DATE_REGEX_FULL);\n final Pattern pattern2 = Pattern.compile(DATE_REGEX_FULL_2);\n final Matcher matcher1 = pattern1.matcher(expr);\n final Matcher matcher2 = pattern2.matcher(expr);\n return matcher1.matches() ^ matcher2.matches();\n }",
"@Test\n public void isLeapYearOk(){\n assertTrue(Date.isLeapYear(2008));\n }",
"public boolean isDate() {\n if ( expiryDate==null) return false;\n else return expiryDate.isSIPDate();\n }",
"void checkForValidDate(String dateTime) {\n\n int daysOfMonth[] = {31,28,31,30,31,30,31,31,30,31,30,31};\n\n Timestamp now = new Timestamp(new java.util.Date().getTime());\n Timestamp date = Timestamp.valueOf(startDateTime);\n if (date.after(now)) {\n outputError(lineCount + \" - Fatal - \" +\n \"Date / Time later than today's date : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (date.after(now))\n\n StringTokenizer t = new StringTokenizer(dateTime, \"- :.\");\n int year = Integer.parseInt(t.nextToken());\n int month = Integer.parseInt(t.nextToken());\n int day = Integer.parseInt(t.nextToken());\n int hour = Integer.parseInt(t.nextToken());\n int minute = Integer.parseInt(t.nextToken());\n boolean isLeapYear = ((year % 4 == 0) && (year % 100 != 0) || (year % 400 == 0));\n if (isLeapYear) daysOfMonth[1] += 1;\n if (year < 1850) {\n outputError(lineCount + \" - Fatal - \" +\n \"Year before 1850 : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (year < 1850)\n\n if (month > 12) {\n outputError(lineCount + \" - Fatal - \" +\n \"Month invalid ( > 12) : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (month > 12)\n\n if (day > daysOfMonth[month-1]) {\n outputError(lineCount + \" - Fatal - \" +\n \"Day invalid ( > no of days in month) : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (day > (daysOfMonth[month-1])\n\n if (hour > 23) {\n outputError(lineCount + \" - Fatal - \" +\n \"Hour invalid ( > 23) : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (hour > 23)\n\n if (minute > 59) {\n outputError(lineCount + \" - Fatal - \" +\n \"Minute invalid ( > 59) : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (minute > 59)\n\n }",
"private boolean splitDate(String dateString) throws Exception {\n\t\tif (dateSet)\n\t\t\tthrow new Exception(\"Double date \" + dateString);\n\t\tStringTokenizer st = new StringTokenizer(dateString, \"/\");\n\t\tif (st.countTokens() == 3) {\n\t\t\tyear = Integer.valueOf(st.nextToken()).intValue();\n\t\t\tmonth = Integer.valueOf(st.nextToken()).intValue();\n\t\t\tday = Integer.valueOf(st.nextToken()).intValue();\n\t\t\tif (year < 1900)\n\t\t\t\tyear = year + 1900;\n\t\t}\n\t\telse\n\t\t\tthrow new Exception(\"Too few or too many argument \" + dateString);\n\t\tif ((day < 1)\n\t\t|| (day > 31)\n\t\t|| (month <1)\n\t\t|| (month > 12)) {\n\t\t\tthrow new Exception(\"Not a valid date \" + dateString);\n}\n\t\tdate = new Date((year - 1900)\n\t\t\t , (month - 1)\n\t\t\t\t , day\n\t\t\t\t , hour\n\t\t\t\t , minute\n\t\t\t , second);\n\t\tdateSet = true;\n\t\treturn true;\n }",
"private static String checkFormat(String date){\r\n\t\tif(date.length()==0) return \"\";\r\n\t\tint dateChars=0,timeChars=0;\r\n\t\tchar currenChar;\r\n\t\t\r\n\t\t//check if the first and the last character of the string is a number, it must always be\r\n\t\tif(!Character.isDigit(date.charAt(0))) return \"\";\r\n\t\tif(!Character.isDigit(date.charAt((date.length()-1)))) return \"\";\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=1; i<date.length()-1;i++){\r\n\t\t\tcurrenChar=date.charAt(i);\r\n\t\t\t\r\n\t\t\t//check if every character is / or : or number\t\t\r\n\t\t\tif(!(Character.isDigit(currenChar) || currenChar==':' || currenChar=='/')) return \"\";\r\n\t\t\t//check if there is a number between // or ::, if not it returns false\r\n\t\t\tif((currenChar==':' || currenChar=='/') && (date.charAt(i+1)==':' || date.charAt(i+1)=='/')) return \"\";\r\n\t\t\t\r\n\t\t\t//count the / and :\r\n\t\t\tif(currenChar==':') timeChars++; \r\n\t\t\telse if(currenChar=='/') dateChars++;\r\n\t\t}\r\n\t\t\r\n\t\t//if it is time with one :\r\n\t\tif(timeChars==1 && dateChars==0){\r\n\t\t\t//check if one of the numbers has more than 2 digits, then it is invalid\r\n\t\t\tint index=0;\r\n\t\t\tfor(String s:splitWords(date.replaceAll(\":\", \" \"))){\r\n\t\t\t\tif( index==0 && s.length()!=1 && s.length()!=2) return \"\";\r\n\t\t\t\telse if(index>0 && s.length()!=2 ) return \"\";\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\r\n\t\t\treturn formats[2];\r\n\t\t}\r\n\t\t\r\n\t\t//if it is time with two :\r\n\t\telse if(timeChars==2 && dateChars==0){\r\n\t\t\t//check if one of the numbers has more than 2 digits, then it is invalid\r\n\t\t\tint index=0;\r\n\t\t\tfor(String s:splitWords(date.replaceAll(\":\", \" \"))){\r\n\t\t\t\tif( index==0 && s.length()!=1 && s.length()!=2) return \"\";\r\n\t\t\t\telse if(index>0 && s.length()!=2 ) return \"\";\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\r\n\t\t\treturn formats[1];\r\n\t\t}\r\n\t\t\r\n\t\t//if it is a date with two /\r\n\t\telse if(dateChars==2 && timeChars==0){\r\n\t\t\t//check if one of the numbers have the right amount of digits\r\n\t\t\tString[] numbers= splitWords(date.replaceAll(\"/\", \" \"));\r\n\t\t\tif(numbers[0].length()>2) return \"\";\r\n\t\t\tif(numbers[1].length()>2) return \"\";\r\n\t\t\tif(numbers[2].length()>4) return \"\";\r\n\t\t\t\r\n\t\t\treturn formats[0];\r\n\t\t}\r\n\t\t\r\n\t\telse return \"\";\t\t\r\n\t}",
"@Test\n public void testV4HeaderDateValidationSuccess()\n throws MalformedResourceException {\n LocalDate now = LocalDate.now();\n String dateStr = DATE_FORMATTER.format(now);\n testRequestWithSpecificDate(dateStr);\n\n // Case 2: Valid date with in range.\n dateStr = DATE_FORMATTER.format(now.plus(1, DAYS));\n testRequestWithSpecificDate(dateStr);\n\n // Case 3: Valid date with in range.\n dateStr = DATE_FORMATTER.format(now.minus(1, DAYS));\n testRequestWithSpecificDate(dateStr);\n }",
"private boolean formalDateContainsNegativeNumber(String source) {\n String dateWithNegativePattern = \".*-\\\\d+/|/-\\\\d+.*\";\n return source.matches(dateWithNegativePattern);\n }",
"protected boolean isAirportIDValid(String airportID) {\n return (airportID.length() <= 5 && airportID.matches(\"[0-9]+\"));\n }",
"public boolean validateDate(TradeModel tradeModel)\n {\n int i = tradeModel.getMaturityDate().compareTo(LocalDate.now());\n if (i<0)\n return false;\n else\n return true;\n }",
"@Test\n public void isValidDeadline() {\n assertFalse(Deadline.isValidDeadline(INVALID_0_JAN_2018.toString()));\n assertFalse(Deadline.isValidDeadline(INVALID_1ST_0_2018.toString()));\n\n // Valid deadline -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_1ST_JAN_2018.toString()));\n\n // Valid deadline for february -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_28TH_FEB_2018.toString()));\n\n // Invalid deadline for february in common year -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_29TH_FEB_2018.toString()));\n\n // Valid deadline for february during leap year -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_29TH_FEB_2020.toString()));\n\n // Invalid deadline for february during leap year -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_30TH_FEB_2020.toString()));\n\n // Valid deadline for months with 30 days -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_30TH_APR_2018.toString()));\n\n // Invalid deadline for months with 30 days -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_31ST_APR_2018.toString()));\n\n // Valid deadline for months with 31 days -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_31ST_JAN_2018.toString()));\n\n // Invalid deadline for months with 31 days -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_32ND_JAN_2018.toString()));\n\n // Invalid month -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_1ST_0_2018.toString()));\n assertFalse(Deadline.isValidDeadline(INVALID_1ST_13_2018.toString()));\n\n // Valid month -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_1ST_APR_2018.toString()));\n\n // Valid year -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_1ST_JAN_9999.toString()));\n\n // Invalid year -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_1ST_JAN_2017.toString()));\n assertFalse(Deadline.isValidDeadline(INVALID_1ST_JAN_10000.toString()));\n\n // Valid date without year -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_1ST_JAN_WITHOUT_YEAR.toString()));\n\n // Invalid date without year -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_32ND_JAN_WITHOUT_YEAR.toString()));\n }",
"private String validateDateString(String dateString) {\n String returnValue = null;\n DateFormat dateFormat1 = new SimpleDateFormat(\"yyyy-MM-dd\");\n DateFormat dateFormat2 = new SimpleDateFormat(\"yyyy-MM\");\n DateFormat dateFormat3 = new SimpleDateFormat(\"yyyy\");\n Date date = null;\n \n if (dateString == null || dateString.equals(\"\")) {\n return dateString;\n }\n else {\n try {\n date = dateFormat1.parse(dateString);\n returnValue = dateFormat1.format(date);\n }\n catch (ParseException e1) {\n try {\n date = dateFormat2.parse(dateString);\n returnValue = dateFormat2.format(date);\n }\n catch (ParseException e2) {\n try {\n date = dateFormat3.parse(dateString);\n returnValue = dateFormat3.format(date);\n }\n catch (ParseException e3) {\n logger.warn(\"Couldn't parse date string using any of the recognized formats: \" + dateString);\n } \n }\n }\n }\n \n return returnValue;\n }"
] | [
"0.7321027",
"0.72199476",
"0.71966064",
"0.7180678",
"0.717726",
"0.7171947",
"0.7169014",
"0.7109055",
"0.7095845",
"0.7043892",
"0.6972037",
"0.695364",
"0.6903462",
"0.68290913",
"0.68085665",
"0.6804827",
"0.67909926",
"0.67507696",
"0.67340255",
"0.6729337",
"0.6708239",
"0.6673402",
"0.6667816",
"0.6647375",
"0.6639845",
"0.6572112",
"0.65017337",
"0.6483396",
"0.64819354",
"0.64737874",
"0.6456803",
"0.6446117",
"0.64099056",
"0.63833505",
"0.6371621",
"0.6367097",
"0.636548",
"0.6352103",
"0.6322425",
"0.63071424",
"0.6303091",
"0.62991595",
"0.6287224",
"0.6278496",
"0.62622494",
"0.6256504",
"0.62200624",
"0.6181227",
"0.6177552",
"0.61618555",
"0.6153808",
"0.60796076",
"0.6069224",
"0.6012263",
"0.5980791",
"0.5971214",
"0.59598356",
"0.5959426",
"0.59263784",
"0.59155667",
"0.5895477",
"0.5871311",
"0.58682996",
"0.58643436",
"0.58429176",
"0.58423865",
"0.5833854",
"0.58245254",
"0.58245",
"0.58103377",
"0.580311",
"0.5793815",
"0.57787895",
"0.5770505",
"0.5767138",
"0.57514644",
"0.5722536",
"0.5710524",
"0.56825405",
"0.56818616",
"0.56721145",
"0.56682014",
"0.56533265",
"0.5652245",
"0.562052",
"0.56186193",
"0.56155",
"0.5607807",
"0.559295",
"0.5590243",
"0.5580443",
"0.55769694",
"0.55632514",
"0.55588317",
"0.5544313",
"0.55384845",
"0.55366266",
"0.5534321",
"0.5533729",
"0.5528221"
] | 0.68079674 | 15 |
Checks if the argument length is within certain parameters, and if not, informs the CommandSender of how to correctly use the command. | protected boolean correctLength(final CommandSender sender, final int size, final int min, final int max) {
if (size < min || size > max) {
this.help(sender, false);
return false;
} else {
return true;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void invalidArgLength(Player player, String name) {\n \t\tplugin.sendWarning(player, \"Invalid Argument Length\");\n \t\t\n \t\tMethod method = plugin.getCommandManager().getCommandExecutor(name).getMethod();\n \t\t\n \t\tif (method.getAnnotation(CommandInfo.class) != null)\n \t\t\tplugin.sendInfo(player, \"Usage: /titanchat \" + method.getAnnotation(CommandInfo.class).usage());\n \t}",
"@Override\n protected boolean hasValidNumberOfArguments(int numberOfParametersEntered) {\n return numberOfParametersEntered == 3;\n }",
"private static void checkCmdArgs(int numberOfArgs, String[] args) {\n\t\tif (args.length != numberOfArgs) {\n\t\t\tSystem.out.println(\"Wrong number of command line arguments!\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t}",
"abstract public boolean argsNotFull();",
"private void checkArgTypes() {\n Parameter[] methodParams = method.getParameters();\n if(methodParams.length != arguments.length + 1) {\n throw new InvalidCommandException(\"Incorrect number of arguments on command method. Commands must have 1 argument for the sender and one argument per annotated argument\");\n }\n\n Class<?> firstParamType = methodParams[0].getType();\n\n boolean isFirstArgValid = true;\n if(requiresPlayer) {\n if(firstParamType.isAssignableFrom(IPlayerData.class)) {\n usePlayerData = true; // Command methods annotated with a player requirement can also use IPlayerData as their first argument\n } else if(!firstParamType.isAssignableFrom(Player.class)) {\n isFirstArgValid = false; // Otherwise, set it to invalid if we can't assign it from a player\n }\n } else if(!firstParamType.isAssignableFrom(CommandSender.class)) { // Non player requirement annotated commands must just take a CommandSender\n isFirstArgValid = false;\n }\n\n if(!isFirstArgValid) {\n throw new InvalidCommandException(\"The first argument for a command must be a CommandSender. (or a Player/IPlayerData if annotated with a player requirement)\");\n }\n }",
"@Override\n\tprotected void checkNumberOfInputs(int length) {\n\n\t}",
"public static boolean validateInputLength(String[] args) {\n return args.length == 3;\n }",
"protected void checkCommand(String com) throws IllegalArgumentException {\n if (com.length() != PushCacheProtocol.COMMAND_LEN) {\n throw new IllegalArgumentException(\"Command \\\"\" + com + \"\\\" is wrong length\");\n }\n if (com.charAt(3) != '\\0') {\n throw new IllegalArgumentException(\"Command \\\"\" + com + \"\\\" is not null terminated\");\n }\n }",
"public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\n\t\tPlayer player = (Player) sender;\n\t\t// if console\n\t\tif (!(sender instanceof Player)) {\n\t\t\tsender.sendMessage(\"You Cant Use This In Here DUDE!\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// first argument specified\n\t\tString argumentOne;\n\t\t// try this out instead of 100% doing it, because it could give an error if it doesnt exist\n\t\ttry {\n\t\t\t// String[] args are the arguments that were provided after the command\n\t\t\t// like \"/dab mystats\" has one argument, \"mystats\"\n\t\t\t// arrays start at 0, so the first argument is args[0]\n\t\t\targumentOne = args[0];\n\t\t} catch (Exception e) {\n\t\t\t// if the argument does not exist, scream and return\n\t\t\tplayer.sendMessage(ChatColor.GRAY + \"No You need To Specify An Argument! \" + ChatColor.RED + \">:-(\");\n\t\t\treturn false;\n\t\t}\n\t\t// now that we have secured that argumentOne is the first argument\n\t\t// if the first argument is \"buy\" (/zuccbucc buy), do stuff\n\t\tif (argumentOne.equalsIgnoreCase(\"buy\")) {\n\t\t\t// you'll need to specify an amount, like \"/zuccbucc buy 5\"\n\t\t\t// so we need to do the same thing with that amount\n\t\t\t// argumentTwo is what is typed\n\t\t\tString argumentTwo;\n\t\t\t// amountOfZuccBuccs is the integer that represents this value\n\t\t\tint amountOfZuccBuccs;\n\t\t\ttry {\n\t\t\t\targumentTwo = args[1];\n\t\t\t\t// you can't use a string as a number, so you have to turn the number given into an integer\n\t\t\t\t// parseInt(string) turns a string into an integer\n\t\t\t\tamountOfZuccBuccs = Integer.parseInt(argumentTwo);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// scream and return if doesnt work\n\t\t\t\tplayer.sendMessage(ChatColor.GRAY + \"No You need To Specify How Many ZuccBuccs! \" + ChatColor.RED + \">:-(\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// if the amount given is too much to buy at one time, tell them to stop\n\t\t\tif (amountOfZuccBuccs > 50) {\n\t\t\t\tplayer.sendMessage(ChatColor.DARK_RED + \"No! You Cant Buy This menay. Grrr...\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// string name of the player\n\t\t\tString owner = player.getName();\n\t\t\t// add the amount of ZuccBuccs specified to the BuccHandler\n\t\t\t// loop through and create a new ZuccBucc each number between 0 and amountOfZuccBuccs\n\t\t\tfor (int i = 0; i < amountOfZuccBuccs; i++) {\n\t\t\t\tZuccBucc zuccBucc = new ZuccBucc(owner);\n\t\t\t\tZuccBuccPlugin.getHandler().addZuccBucc(zuccBucc);\n\t\t\t}\n\t\t\t// congrats\n\t\t\tplayer.sendMessage(ChatColor.GREEN + \"You just bought \" + amountOfZuccBuccs + \" ZuccBuccs! Nice!\");\n\t\t\treturn true;\n\t\t}\n\t\t// check the amount of ZuccBuccs you have, and the value of them\n\t\tif (argumentOne.equalsIgnoreCase(\"amount\")) { \n\t\t\t// get the list of ZuccBuccs that the player owns (method created in BuccHandler)\n\t\t\tList<ZuccBucc> zuccBuccs = ZuccBuccPlugin.getHandler().getZuccBuccs(player);\n\t\t\t// you got that amount of ZuccBuccs total\n\t\t\tplayer.sendMessage(ChatColor.GRAY + String.valueOf(zuccBuccs.size()) + \" ZuccBuccs total!\");\n\t\t\t// value of each ZuccBucc is added to this double\n\t\t\tdouble value = 0;\n\t\t\t// loop through each ZuccBucc you own and add it to the total value\n\t\t\tfor (ZuccBucc zuccBucc : zuccBuccs) {\n\t\t\t\tvalue = value + zuccBucc.getValue();\n\t\t\t}\n\t\t\t// now that you have the total value, send it to them\n\t\t\tplayer.sendMessage(ChatColor.GRAY + \"Your ZuccBuccs are valued at \" + String.valueOf(value) + \"!\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n public boolean onCommand(final CommandSender sender, final Command cmd, final String label, final String[] args) {\n\n // If the sender is a PLAYER\n if (sender instanceof Player) {\n final Player p = (Player) sender;\n\n // If there are arguments and not the main command alone\n if (args.length > 0) {\n boolean cont = false;\n CmdProperties cmdClass = null;\n\n // Assign all commands to their name in the hashmap\n for (final Map.Entry<String, CmdProperties> entry : commandClasses.entrySet()) {\n if (!cont) {\n if (entry.getKey().equalsIgnoreCase(args[0])) {\n cont = true;\n cmdClass = entry.getValue();\n }\n }\n }\n\n // check for permission i think? idk whats entirely going on here, review later\n if (cont) {\n final int argsNeeded = cmdClass.getLength();\n if (args.length - 1 >= argsNeeded) {\n if (p.hasPermission(cmdClass.getPermission())) {\n if (args[argsNeeded] == null) {\n args[argsNeeded] = \"Nothing\";\n }\n final StringBuilder sb = new StringBuilder();\n for (int i = argsNeeded; i < args.length; i++) {\n sb.append(args[i]).append(\" \");\n }\n\n final String allArgs = sb.toString().trim();\n if (cmdClass.isAlias())\n cmdClass.getAlias().perform(p, allArgs, args);\n else\n cmdClass.perform(p, allArgs, args);\n return true;\n } else {\n // D: no permission!\n MsgUtils.error (sender, \"(no permission)\");\n return true;\n }\n } else {\n // Not the right amount of arguments for the command. Maybe put something like cmdClass.getUsage() here to show the player how to use the command\n MsgUtils.error (sender, cmdClass.getUsage());\n return true;\n }\n } else {\n // The argument doesn't exist.\n MsgUtils.error (sender, \"/ca \" + MsgUtils.Colors.VARIABLE + args[0] + MsgUtils.Colors.ERROR + \" is not a command\");\n return true;\n }\n } else {\n // Not enough arguments (show help here)\n MsgUtils.raw(p, \"&e-=-=-=- &7Availible &bClanArena &7Commands: &e-=-=-=-\");\n for (final Map.Entry<String, CmdProperties> entry : commandClasses.entrySet()) {\n if (p.hasPermission(entry.getValue().getPermission())) {\n MsgUtils.sendMessage(p, \"/ca \" + MsgUtils.Colors.VARIABLE + entry.getKey() + MsgUtils.Colors.INFO + \": \" + entry.getValue().getHelpMessage());\n }\n }\n return true;\n }\n } else {\n // Sender isn't a player\n MsgUtils.error (sender, \"Sorry! No console commands are available yet :(\");\n return true;\n }\n }",
"@Override\n public ValidationResults validArguments(String[] arguments) {\n final int MANDATORY_NUM_OF_ARGUMENTS = 1;\n if (arguments.length == MANDATORY_NUM_OF_ARGUMENTS) {\n // Check if CommandMAN was called on itself (Checker doesn't need to\n // validate CommandMAN twice).\n if (arguments[0].equals(this.getCommandName())) {\n this.toDocument = this; // man will document itself.\n } else {\n // Man will document this command object.\n try {\n this.toDocument = Checker.getCommand(arguments[0], true);\n } catch (Exception ex) {\n return new ValidationResults(false, \"No manual entry for \"\n + arguments[0]); // CMD does not exist.\n }\n }\n return new ValidationResults(true, null);\n }\n return new ValidationResults(false, \"Requires \"\n + MANDATORY_NUM_OF_ARGUMENTS + \" argument.\");\n }",
"public boolean validateOptions() throws CommandValidationException\n {\n super.validateOptions();\n\n //verify adminpassword is greater than 8 characters\t\n if (!isPasswordValid(newMasterPassword)) {\n throw new CommandValidationException(getLocalizedString(\"PasswordLimit\",\n new Object[]{NEW_MASTER_PASSWORD}));\n }\n \n return true;\n }",
"public boolean satisfiesMinimumDoneCommandLength(String[] command) {\n return (command.length > 1);\n }",
"public boolean onCommand(CommandSender arg0, Command arg1, String arg2,\n\t\t\tString[] arg3) {\n\t\treturn false;\n\t}",
"@Override\n public int getArgLength() {\n return 4;\n }",
"private boolean validateArguments() {\n return !isEmpty(getWsConfig()) && !isEmpty(getVirtualServer()) && !isEmpty(getVirtualServer()) && !isEmpty(getAppContext()) && !isEmpty(getWarFile()) && !isEmpty(getUser()) && !isEmpty(getPwdLocation());\n }",
"public static boolean isAkParamLengthValid(String parameter, int length)\n {\n boolean ret = true;\n if (isConstantAkParamsDefined())\n {\n int i = getAkParamIndex(parameter);\n if (length != akParams_[i].len)\n {\n ret = false;\n Log.e(LOG_TAG, \"In configuration file, the AK parameter \" + parameter + \" values length \"\n + length + \" is NOT compatible to the defined length \" + akParams_[i].len);\n }\n }\n return ret;\n }",
"private static void checkNumOfArguments(String[] args) throws IllegalArgumentException{\n\t\ttry{\n\t\t\tif(args.length != App.numberOfExpectedArguments ) {\t\n\t\t\t\tthrow new IllegalArgumentException(\"Expected \" + App.numberOfExpectedArguments + \" arguments but received \" + args.length);\n\t\t\t}\n }\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\texitArgumentError();\n\t\t}\n\t\t\n\t}",
"@Override\n\tpublic boolean onCommand(CommandSender cs, Command arg1, String arg2,\n\t\t\tString[] args) {\n\t\treturn false;\n\t}",
"public boolean canCommandSenderUseCommand(int p_70003_1_, String p_70003_2_)\n {\n return true;\n }",
"@Override\npublic boolean onCommand(CommandSender arg0, Command arg1, String arg2, String[] arg3) {\n\treturn false;\n}",
"protected static boolean ensureNumArgs( String param[], int n ) {\n\t\tif ( n >= 0 && param.length != n || n < 0 && param.length < -n ) {\n\t\t\tSystem.err.println( \"Wrong number (\" + param.length + \") of arguments.\" );\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public static void checkWindowsCommandLineLength(String... commands) throws IOException {\n\t\tint len = 0;\n\t\tfor (String s : commands) {\n\t\t\tlen += s.length();\n\t\t}\n\t\tif (len > WINDOWS_MAX_SHELL_LENGHT) {\n\t\t\tthrow new IOException(String.format(\n\t\t\t\t\t\"The command line has a length of %d exceeds maximum allowed length of %d. \"\n\t\t\t\t\t\t\t+ \"Command starts with: %s\",\n\t\t\t\t\tlen, WINDOWS_MAX_SHELL_LENGHT, join(\"\", commands).substring(0, 100)));\n\t\t}\n\t}",
"static Boolean verifyArguments(String[] args)\n {\n if (args.length < 2)\n {\n return false;\n }\n \n return true;\n }",
"@Override\n\tpublic boolean onCommand(CommandSender sender, Command command, String label, String[] args)\n\t{\n\t\tif ((sender instanceof Player && !allowPlayer) || (!(sender instanceof Player) && !allowConsole))\n\t\t{\n\t\t\tsender.sendMessage(ChatUtility.getSettings().nickMessage + \"You can't do that from here\");\n\t\t\treturn false;\n\t\t}\n\t\tif (permission == null || sender.hasPermission(permission))\n\t\t\tonInvoked(sender, args);\n\t\telse\n\t\t\tsender.sendMessage(ChatUtility.getSettings().nickMessage + \"You don't have permission to do this\");\n\t\treturn true;\n\t}",
"private static void checkPassedInArguments(String[] args, EquationManipulator manipulator) {\n // Convert arguments to a String\n StringBuilder builder = new StringBuilder();\n for (String argument: args) {\n builder.append(argument + \" \");\n }\n \n // check if equation is valid\n String[] equation = manipulator.getEquation(builder.toString());\n if (equation.length == 0) {\n // unable to parse passed in arguments\n printErrorMessage();\n handleUserInput(manipulator);\n } else {\n // arguments were passed in correctly\n System.out.println(\"Wohoo! It looks like everything was passed in correctly!\"\n + \"\\nYour equation is: \" + builder.toString() + \"\\n\");\n handleArguments(equation, manipulator);\n }\n }",
"private boolean canSend() {\n\n if (StringUtils.isEmpty(constructedCommand())) return false;\n\n int beginIndex = constructedCommand()\n .indexOf(serialProperties.getCmdBeginMarker());\n int endIndex = constructedCommand()\n .indexOf(serialProperties.getCmdEndMarker());\n\n return beginIndex != -1 && endIndex != -1 && beginIndex < endIndex;\n }",
"@Override\n\tpublic boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\n\t\tPlayer player = (Player) sender;\n\t\tif (label.equalsIgnoreCase(\"help\")) {\n\t\t\tif (args.length == 0 || (args.length == 1 && args[0].equalsIgnoreCase(\"1\"))) {\n\t\t\t\tplayer.sendMessage(ChatColor.RED + \"Help 1 of 4 - Cubeville Commands:\");\n\t\t\t\t// player.sendMessage(ChatColor.RED + \"< > represents required parameters. [ ] represents optional ones.\");\n\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"1) \\\"/modreq <message>\\\" to request staff assistance.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"2) \\\"/spawn\\\" to teleport to spawn.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"3) \\\"/hub\\\" to teleport to the teleport hub\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"4) \\\"/spleef tp\\\" to teleport to the spleef arena\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"5) \\\"/sethome\\\" to set your home.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" \\\"/home\\\" to teleport to your home.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"6) \\\"/money\\\" to see your cube balance.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" \\\"/money pay <username> <amount>\\\" to pay someone in cubes.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"7) \\\"/modlist\\\" to see currently online staff.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" \" + ChatColor.GREEN + \"MODs \" + ChatColor.GOLD + \"can handle general questions and chat issues\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" \" + ChatColor.LIGHT_PURPLE + \"SMODs \" + ChatColor.GOLD + \"can handle griefings\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" \" + ChatColor.AQUA + \"ADMINs \" + ChatColor.GOLD + \"can handle most issues\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" \" + ChatColor.DARK_RED + \"SADMINs \" + ChatColor.GOLD+ \"are the server managers\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"8) \\\"/mumble register\\\" to complete Mumble registration.\");\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t} else if (args.length == 1 && args[0].equalsIgnoreCase(\"2\")) {\n\t\t\t\tplayer.sendMessage(ChatColor.RED + \"Help 2 of 4 - Chat Commands:\");\n\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"1) \\\"/y <message>\\\" will send your message to all players.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"2) Typing without \\\"/\\\" will send your message to players within 50 blocks of you.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"3) \\\"/ch list\\\" shows you channels available to you.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" \\\"/ch j <channel name>\\\" to join a channel.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" \\\"/ch l <channel name>\\\" to leave a channel.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"5) \\\"/msg <username> <message>\\\" to send a private message to a user.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"6) \\\"/group invite <username>\\\" to invite a user to your group.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" \\\"/group join <username>\\\" to join a user's group.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" \\\"/p <message>\\\" to send a message to your group.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" \\\"/group leave\\\" to leave your group.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"7) Be sure to follow all rules when chatting.\");\n\n\t\t\t\treturn true;\n\t\t\t} else if (args.length == 1 && (args[0].equalsIgnoreCase(\"we\") || args[0].equalsIgnoreCase(\"worldguard\") || args[0].equalsIgnoreCase(\"3\"))) {\n\n\t\t\t\tplayer.sendMessage(ChatColor.RED + \"Help 3 of 4 - WorldGuard Commands:\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"1) \\\"/rg i\\\" to show the data for the region you are in.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"2) \\\"/rg flag <region name> <flag type> [flag parameters]\\\" to add a flag to a region.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" ex: \\\"/rg flag tutorial greeting Hello World!\\\" sets flag greeting: \\\"Hello World!\\\" to region \\\"tutorial\\\"\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"3) \\\"/rg addmember <region name> <username>\\\" to add a member to your region.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" ex: \\\"/rg addmember tutorial RandomRob13\\\" will add RandomRob13 as a member to your region.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"4) \\\"//size\\\" will show you the size of your selected region after using \\\"//wand\\\"\");\n\t\t\t\treturn true;\n\t\t\t} else if (args.length == 2 && ((args[0].equalsIgnoreCase(\"we\") || args[0].equalsIgnoreCase(\"worldguard\") || args[0].equalsIgnoreCase(\"3\")) && (args[1].equalsIgnoreCase(\"2\") || args[1].equalsIgnoreCase(\"tut\") || args[1].equalsIgnoreCase(\"tutorial\")))) {\n\t\t\t\tString playerName = player.getName().toString();\n\n\t\t\t\tplayer.sendMessage(ChatColor.RED + \"Automatic Worldguard Region:\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"1) \\\"/claimhere\\\" to automatically claim a 30x30x256 region.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" Be sure to stay AT LEAST 40 blocks away from all builds and 100 blocks away from CV Towns & Villages!\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" The region will be named home_\" + playerName + \".\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" \\\"/rg addmember home_\" + playerName + \" <username>\\\" to add a member to your region.\");\n\n\t\t\t\tplayer.sendMessage(\"\");\n\n\t\t\t\tplayer.sendMessage(ChatColor.RED + \"Custom Worldguard Region:\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"1) Be sure to stay AT LEAST 40 blocks away from all builds and 100 blocks away from CV Towns & Villages!\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"2) \\\"//wand\\\" to give yourself a worldguard wand.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"3) Right click one corner of your build, and left click the opposite corner.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"4) \\\"//expand vert\\\" to expand your region vertically\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"5) \\\"/rg claim <region name>\\\" to claim your region.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"6) \\\"/rg addmember <reigon name> <username>\\\" to add a user to your region.\");\n\n\t\t\t\treturn true;\n\t\t\t} else if (args.length == 1 && (args[0].equalsIgnoreCase(\"lwc\") || args[0].equalsIgnoreCase(\"4\"))) {\n\t\t\t\tplayer.sendMessage(ChatColor.RED + \"Help 4 of 4 - LWC Commands:\");\n\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"1) \\\"/cprivate\\\" to lock a chest, door, furnace, etc.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"2) \\\"/cmodify <username>\\\" to allow a user to use your locked item.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" \\\"/cmodify -<username>\\\" to disallow a user to use your locked item.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" \\\"/cmodify @<username>\\\" to add someone to your lock as an admin\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"3) \\\"/cpersist\\\" to allow locking/modifying multiple items without typing command.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"4) \\\"/cremove\\\" to remove a lock from a chest, door, furnace, etc.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"5) \\\"/cpublic\\\" to allow anyone to access your chest but not break it.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"6) \\\"/cdonation\\\" to allow anyone to add to your chest but not take from or break it.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"7) \\\"/cpassword <password>\\\" to allow anyone with a password to access your locked item.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" \\\"/cunlock <password>\\\" to unlock a locked item with a passcode for you.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"8) \\\"/lwc flag <flag> <on/off>\\\" to apply a flag to a locked item.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" ex: \\\"/lwc flag autoclose on\\\" will apply a flag that autocloses a door after being opened.\");\n\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tplayer.sendMessage(ChatColor.RED + \"Those are not valid parameters!\");\n\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (label.equalsIgnoreCase(\"faq\")) {\n\t\t\tif (args.length == 0 || (args.length == 1 && args[0].equalsIgnoreCase(\"1\"))) {\n\t\t\t\tplayer.sendMessage(ChatColor.RED + \"FAQ Page 1 of 2:\");\n\t\t\t\t\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"1) Players are chosen to be staff through honesty, politeness, and being mature.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" We will not select players to be staff if they ask.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"2) Earn cubes by voting for the server or selling items.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" Vote for cubes at www.cubeville.org/vote/.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"3) Build AT LEAST 40 blocks away from all builds and 100 blocks away from CV Towns & Villages!\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" Only build closer with permission from other players/\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"4) Staff will not spawn items for you.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"5) Staff will not teleport you by request.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"6) Staff will not sell spawned items.\");\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t} else if (args.length == 1 && args[0].equalsIgnoreCase(\"2\")) {\n\t\t\t\tplayer.sendMessage(ChatColor.RED + \"FAQ Page 2 of 2:\");\n\t\t\t\t\n\t\t\t\tplayer.sendMessage(ChatColor.RED + \"Instaday, Instanight, Instastorm, and Instasun all cost cubes!\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"1) Use \\\"/instaday\\\" and \\\"/instanight\\\" to change between day and night.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"2) Use \\\"/instasun\\\" and \\\"/instastorm\\\" to change between sun and storm.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"3) PvP is disabled everywhere except the PvP Arenas.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"4) You can join channels with \\\"/ch j <channel name>\\\".\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" \\\"/ch j market\\\" to join market chat.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" \\\"/mch <message>\\\" to type in market chat.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" \\\"/ch j pvp\\\" to join pvp chat.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \" \\\"/pvp <message>\\\" to type in pvp chat.\");\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tplayer.sendMessage(ChatColor.RED + \"Those are not valid parameters!\");\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (label.equalsIgnoreCase(\"rules\")) {\n\t\t\tif (args.length == 0 || (args.length == 1 && args[0].equalsIgnoreCase(\"1\"))) {\n\t\t\t\tplayer.sendMessage(ChatColor.RED + \"Rules Page 1 of 2:\");\n\t\t\t\tplayer.sendMessage(ChatColor.DARK_RED + \"THESE RULES ARE NOT NEGOTIABLE\");\n\t\t\t\tplayer.sendMessage(ChatColor.DARK_RED + \"THE FULL RULES ARE ON CUBEVILLE.ORG\");\n\t\t\t\t\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"1) Do as the staff say. We know best. We can help you if you cooperate.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"2) Do not grief a build for\" + ChatColor.BOLD + \"ANY\" + ChatColor.RESET + \"\" + ChatColor.GOLD + \"reason.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"3) No stealing. Give back items you accidentally pick up.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"4) No hacking. No hacking clients. No hacking codes.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"5) No XRaying of any form, including resource packs, mods, glitches, etc.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"6) No swearing, this includes acronyms.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"7) No vulgar/offensive behavior. Chat, skins, signs, builds.\");\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t} else if (args.length == 1 && args [0].equalsIgnoreCase(\"2\")) {\n\t\t\t\tplayer.sendMessage(ChatColor.RED + \"Rules Page 2 of 2:\");\n\t\t\t\t\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"8) No exploiting glitches.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"9) No unconsented PvP. This means any damage to players.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"10) No advertising other servers.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"11) Report any violations you see to staff.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"12) Do not post offensive/vulgar links in chat.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"13) Do not trick players into /kill'ing themselves.\");\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + \"14) Do not create excessive lag on the server.\");\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tplayer.sendMessage(ChatColor.RED + \"Those are not valid parameters!\");\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (label.equalsIgnoreCase(\"finish\")) {\n\t\t\tplayer.teleport(new Location(Bukkit.getWorld(\"world\"), -984, 70, -836));\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\n\t\t\n\t\t\n\t\tString[] split1 = args;\n\t String commandName = command.getName().toLowerCase();\n\t if (sender instanceof Player) {\n\t Player player = (Player) sender;\n\t if (!plugin.getPermission(player, \"Plug1.take\")) {\n\t\t \t player.sendMessage(ChatColor.RED + \"No help for you!\");\n\t\t return true; \n\t\t }\n\t if (commandName.equals(\"dying\")) {\n\t \tif (split1.length == 0) {\n\n\t \tplayer.getInventory().addItem(new ItemStack(Material.BED, 1));\n\t \tplayer.getInventory().addItem(new ItemStack(Material.BREAD, 3));\n\t \tplayer.getInventory().addItem(new ItemStack(Material.IRON_SWORD, 1));\n\t \tplayer.getInventory().addItem(new ItemStack(Material.TORCH, 3));\n\t \tplayer.sendMessage(ChatColor.RED + \"Oh no, you're dying! Take these items!\");\n\t \t//is here better? seems to be\t\n\t \treturn true;\n\t \t\t}\n\t \t}\n\n\n\t }\n\t //throws an error here\n\t //return true;\n\t \n\t\tif (args.length == 0) {\n\t\t\treturn false;\n\t\t} else if (!(sender instanceof Player)) {\n\t\t\treturn false;\n\t\t\t// the cake will appear on the ground but not\n\t\t\t// necessarily where the player is looking\n\t\t} else if (args[0].equalsIgnoreCase(\"cake\")) {\n\t\t\tPlayer fred = (Player) sender;\n\t\t\tLocation loc = fred.getLocation();\n\t\t\tWorld w = loc.getWorld();\n\t\t\tloc.setX(loc.getX() + 1);\n\t\t\tBlock b = w.getBlockAt(loc);\n\t\t\tb.setTypeId(92);\n\t\t\treturn true;\n\t\t\t// the stored message now always begins with\n\t\t\t// the word \"message\"--do you know how to easily\n\t\t\t// fix that problem?\n\t\t} else if (args[0].equalsIgnoreCase(\"message\")\n\t\t\t\t&& sender.hasPermission(\"Plug1.message\")) {\n\t\t\tthis.plugin.getConfig().set(\"Plug1.message\", Joiner.on(' ').join(args));\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t} \n\t}",
"public abstract boolean commandExecution(CommandSender sender, String label, String[] args);",
"Boolean checkLength(String detail);",
"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 }",
"@Override\n public void verifyArgs(ArrayList<String> args) throws ArgumentFormatException {\n super.checkNumArgs(args);\n _args = true;\n }",
"public static void checkMinimumLength(String[] value, String argName, int minLength) {\n\t\t//Arguments.notNullOrEmpty(value, argName);\n\t\tif(value.length < minLength) {\n\t\t\tthrow new IllegalArgumentException (\"The string '\" + argName + \"' does not have minimum length of '\" + minLength + \"'\");\n\t\t}\n\t}",
"@Override\n public boolean onCommand(CommandSender sender, Command command, String label, String[] arguments) {\n if (!(sender instanceof Player)) {\n sender.sendMessage(Constants.PLUGIN_NAME + \" commands can only be run by a player\");\n return true;\n }\n\n // Now we know that the sender was a player\n Player player = (Player) sender;\n String commandName = command.getName();\n\n if (commandName.equalsIgnoreCase(PLUGIN_COMMAND_LONG_NAME) || commandName\n .equalsIgnoreCase(PLUGIN_COMMAND_SHORT_NAME)) {\n if (arguments.length < 1) {\n MessageHelper.pluginMessage(player, \"Not enough arguments\");\n return false;\n }\n\n if (arguments.length > 2) {\n MessageHelper.pluginMessage(player, \"Too many arguments\");\n return false;\n }\n\n String commandArgument, otherPlayerName;\n\n commandArgument = arguments[0];\n if (arguments.length == 2) {\n // TODO: Add permission for allowing players to add/remove other players\n otherPlayerName = arguments[1];\n }\n\n // Handle the plugin command arguments here to allow players to add, remove, etc. themselves from the queue\n // TODO: Add, remove, start, stop, score, players\n // TODO: Teleport to source block option?\n switch (commandArgument) {\n case \"a\":\n case \"add\":\n mPlugin.getPlayerQueue().addPlayer(player);\n MessageHelper.pluginMessage(player, \"Added yourself to the queue\");\n MessageHelper.pluginMessage(player, mPlugin.getPlayerQueue().toString());\n // TODO: Send an error message to the player if they're already in a queue\n return true;\n case \"r\":\n case \"remove\":\n mPlugin.getPlayerQueue().removePlayer(player);\n MessageHelper.pluginMessage(player, \"Removed yourself from the queue\");\n MessageHelper.pluginMessage(player, mPlugin.getPlayerQueue().toString());\n // TODO: Send an error message to the player if they're not in the queue\n return true;\n case \"start\":\n break;\n case \"stop\":\n break;\n case \"p\":\n case \"players\":\n case \"s\":\n case \"scores\":\n MessageHelper.pluginMessage(player, \"Player count: \" + mPlugin.getPlayerQueue().getPlayerCount());\n MessageHelper.pluginMessage(player, mPlugin.getPlayerQueue().getScoreStrings());\n return true;\n default:\n return false;\n }\n }\n\n return false;\n }",
"default boolean onCommand(CommandSender sender, ConnectionCommand connectionCommand) {\n String[] split = connectionCommand.getCommand().split(\" \");\n\n return onCommand(sender, split[0], Arrays.copyOfRange(split, 1, split.length), connectionCommand.getArgs());\n }",
"public boolean hasValidArgs() {\r\n // if it has has zero argument, it is valid\r\n boolean zeroArgs = this.getCmd().getArguments().size() == 0;\r\n // return the boolean value\r\n return zeroArgs;\r\n }",
"@Override\r\n public String doCommand(String... parametry) {\n if (parametry.length > 0) {\r\n return \"Show what? I don't understand, why there's another word after this command.\";\r\n }\r\n else {\r\n return this.plan.getCurrentRoom().listingOfExits();\r\n }\r\n }",
"private void checkArguments(ArrayList<String> applicationArguments) throws JshException {\n if (applicationArguments.size() > 1) {\n throw new JshException(\"history: too many arguments\");\n }\n }",
"public abstract CommandResponse onCommand(CommandSender sender, String label, String[] args);",
"public static void CheckIfParametersAreValid(String args[]) {\n if (args.length != 4) {\n System.err.printf(\"usage: %s server_name port\\n\", args[1]);\n System.exit(1);\n }\n\n IP = args[0];\n PORT = Integer.parseInt(args[1]);\n BUFFER_SIZE = Integer.parseInt(args[2]);\n MSG_RATE = Integer.parseInt(args[3]);\n\n\n String[] ipSeparated = args[0].split(\"\\\\.\");\n\n if(ipSeparated.length<4){\n System.out.println(\"Invalid IP format.\");\n System.exit(1);\n }\n if (ipSeparated.length == 4) {\n\n for (int i = 0; i < ipSeparated.length; i++) {\n if (Integer.valueOf(ipSeparated[i]) < 0 || Integer.valueOf(ipSeparated[i]) > 255 ) {//if ip is not complete i get error\n System.out.println(\"Invalid IP format.\");\n System.exit(1);\n }else {\n IP = args[0];\n }\n }\n }\n\n if (Integer.parseInt(args[1])>= 0 && Integer.parseInt(args[1]) < 65535) {\n PORT = Integer.parseInt((args[1]));\n }\n else {\n System.out.println(\"Invalid PORT Number.\");\n System.exit(1);\n }\n if (Integer.parseInt(args[2]) > 0 || Integer.parseInt(args[2]) < 2048) {\n BUFFER_SIZE = Integer.parseInt((args[2]));\n }\n\n else {\n System.out.println(\"Invalid Buffer Size.\");\n System.exit(1);\n }\n if (Integer.parseInt(args[3]) >= 0) {\n MSG_RATE = Integer.parseInt(args[3]);\n } else {\n System.out.println(\"Message RATE Invalid.\");\n System.exit(1);\n }\n\n }",
"boolean commandUse(CommandSender sender, String[] args);",
"public static boolean checkInputAlert(String saInput, int ilLength) throws Exception {\r\n\t\tif ( (saInput != null) && (saInput.length() > ilLength)) {\r\n\t\t\tthrow new Exception(\"The parameter's size is more than allowed length for \" + saInput);\r\n\t\t}\r\n\r\n\t\treturn checkInputAlert(saInput);\r\n\t}",
"@Override\n public void do_command(String option) throws IllegalArgumentException {\n if (!option.equals(\"Me\")) {\n throw new IllegalArgumentException(\"Invalid command. Try again!\");\n }\n }",
"@Override\n public void dealWithCommand(MessageReceivedEvent event) {\n List<String> contentSplit = new ArrayList<>(Arrays.asList(event.getMessage().getContentStripped().split(\" \")));\n\n // remove the command part of the message\n contentSplit.remove(0);\n boolean isXpDesired = DetermineArguments.determineIsXpDesired(contentSplit);\n boolean isCollection = DetermineArguments.determineIsCollection(contentSplit);\n long timeToSpend = DetermineArguments.determineTimeToSpend(contentSplit, event.getTextChannel());\n int classLevel = DetermineArguments.determineClassLevel(contentSplit, event.getTextChannel());\n long amountDesired = DetermineArguments.determineAmountDesired(contentSplit, event.getTextChannel());\n\n // be done if something bad was found\n if (timeToSpend == -2 || classLevel == -2 || amountDesired == -2)\n return;\n\n if (contentSplit.isEmpty()) {\n // user did not specify what player they want\n event.getChannel().sendMessage(\"Specify what player you want to analyze.\").queue();\n return;\n }\n String username = contentSplit.get(0);\n WynncraftPlayer player = GetPlayerStats.get(username);\n if (player == null) {\n event.getChannel().sendMessage(\"Either the api is down, or '\" + username + \"' is not a player.\").queue();\n return;\n }\n\n // tell the user we're working on the answer\n event.getMessage().addReaction(\"\\uD83D\\uDEE0\").queue();\n\n List<String> classNames = new ArrayList<>();\n for (WynncraftClass playerClass : player.classes) {\n classNames.add(playerClass.name);\n }\n ChoiceArguments choiceArguments = new ChoiceArguments(\n isXpDesired, isCollection, timeToSpend, amountDesired, classLevel, classNames, player, true);\n\n\n long xpDesiredGivenPerc = 0;\n long emeraldDesiredGivenPerc = 0;\n for (WynncraftClass wynncraftClass : player.classes)\n for (Quest quest : wynncraftClass.questsNotCompleted) {\n if (quest.levelMinimum <= (classLevel == -1 ? wynncraftClass.combatLevel : classLevel)) {\n xpDesiredGivenPerc += quest.xp;\n emeraldDesiredGivenPerc += quest.emerald;\n }\n }\n xpDesiredGivenPerc *= GetAnswers.DEFAULT_PERCENTAGE_AMOUNT;\n emeraldDesiredGivenPerc *= GetAnswers.DEFAULT_PERCENTAGE_AMOUNT;\n\n FinalQuestOptionsAll finalQuestOptionsAll = GetAnswers.getAllFullAnswers(player, choiceArguments);\n String spreadsheetId = SheetsWrite.writeSheet(finalQuestOptionsAll, event.getAuthor().getIdLong(), player.name, true);\n if (spreadsheetId == null) return;\n new QuestRecommendationMessagePlayer(spreadsheetId, finalQuestOptionsAll, event.getChannel(), choiceArguments, xpDesiredGivenPerc, emeraldDesiredGivenPerc);\n\n event.getMessage().removeReaction(\"\\uD83D\\uDEE0\", DiscordBot.client.getSelfUser()).queue();\n }",
"@Override\n public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\n int LEXP = uc.getLangConfig().getInt(\"LevelingEXP\");\n if (args.length == 0) {\n if(sender.hasPermission(\"lp.lps\")) {\n for (String x : uc.getLangConfig().getStringList(\"lp\")) {\n API api = new API();\n sender.sendMessage(api.format(x));\n }\n }else{\n API api = new API();\n sender.sendMessage(api.format(uc.getLangConfig().getString(\"LPSErrorPermission\")));\n }\n }\n\n if(args.length >= 1) {\n if(args[0].equalsIgnoreCase(\"test\")){\n double math = 0;\n for(int i = 0; i<Integer.parseInt(args[1]); i++){\n math = 50 * Math.pow(1.5,i );\n BigDecimal bigDecimal = BigDecimal.valueOf(math);\n bigDecimal.setScale(0, RoundingMode.HALF_UP);\n sender.sendMessage(NumberFormat.getNumberInstance(Locale.US).format(Math.round(Float.parseFloat(uc.formatter.format(bigDecimal.doubleValue())))));\n }\n }\n if (args.length == 1) {\n if (args[0].equalsIgnoreCase(\"reload\")) {\n if (sender.hasPermission(\"lp.admin.reload\")) {\n lp.reloadConfig();\n uc.RunFiles();\n API api = new API();\n\n sender.sendMessage(api.format(uc.getLangConfig().getString(\"lpreload\")));\n } else {\n API api = new API();\n sender.sendMessage(api.format(uc.getLangConfig().getString(\"LPSErrorPermission\")));\n }\n\n }\n }\n\n if (sender.hasPermission(\"lp.admin.give\")) {\n\n if (args[0].equalsIgnoreCase(\"expgive\")) {\n if (args.length == 1) {\n API api = new API();\n sender.sendMessage(api.format(uc.getLangConfig().getString(\"lpsEXPGIVEPlayer\")));\n return true;\n }\n\n if (args.length == 2) {\n API api = new API();\n sender.sendMessage(api.format(uc.getLangConfig().getString(\"lpsEXPGIVEAmount\")));\n return true;\n }\n if (args.length == 3) {\n Player target = Bukkit.getPlayer(args[1]);\n\n\n if (target != null) {\n\n //lp.CustomXP(target, Integer.parseInt(args[2]), 0);\n uc.GainEXP(target, Integer.valueOf(args[2]));\n API api = new API();\n sender.sendMessage(api.format(uc.getLangConfig().getString(\"lpAdminEXPGive\").replace(\"{lp_Target}\", target.getName()).replace(\"{lp_Earn_Exp}\", args[2])));\n target.sendMessage(api.format(uc.getLangConfig().getString(\"lpEXPGive\").replace(\"{lp_Earn_Exp}\", args[2]).replace(\"{lp_player}\", uc.getLangConfig().getString(\"lpServerName\"))));\n\n }\n }\n }\n\n }\n if (sender.hasPermission(\"lp.admin.remove\")) {\n if (args[0].equalsIgnoreCase(\"expremove\")) {\n\n if (args.length == 1) {\n API api = new API();\n sender.sendMessage(api.format(uc.getLangConfig().getString(\"lpsEXPREMOVEPlayer\")));\n return true;\n }\n if (args.length == 2) {\n API api = new API();\n sender.sendMessage(api.format(uc.getLangConfig().getString(\"lpsEXPREMOVEAmount\")));\n return true;\n }\n if (args.length == 3) {\n Player target = Bukkit.getPlayer(args[1]);\n File userdata = new File(lp.userFolder, target.getUniqueId() + \".yml\");\n FileConfiguration UsersConfig = YamlConfiguration.loadConfiguration(userdata);\n\n if (target != null) {\n double expp = uc.getCurrentEXP(target);\n double t = Double.valueOf(args[2]);\n double tep = expp - t;\n UsersConfig.set(\"EXP.Amount\", tep);\n try {\n UsersConfig.save(userdata);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if(lp.getConfig().getBoolean(\"BossBar\")){\n uc.updateBossbar(uc.getBossbar(target), target);\n }\n if (sender instanceof Player) {\n API api = new API();\n target.sendMessage(api.format(uc.getLangConfig().getString(\"lpEXPRemove\").replace(\"{lp_Earn_Exp}\", args[2]).replace(\"{LP_USER}\", sender.getName())));\n sender.sendMessage(api.format(uc.getLangConfig().getString(\"lpAdminEXPRemove\").replace(\"{lp_Target}\", target.getName()).replace(\"{lp_Earn_Exp}\", args[2])));\n }else{\n API api = new API();\n target.sendMessage(api.format(uc.getLangConfig().getString(\"lpEXPRemove\").replace(\"{lp_Earn_Exp}\", args[2]).replace(\"{lp_player}\", uc.getLangConfig().getString(\"lpServerName\"))));\n sender.sendMessage(api.format(uc.getLangConfig().getString(\"lpAdminEXPRemove\").replace(\"{lp_Target}\", target.getName()).replace(\"{lp_Earn_Exp}\", args[2])));\n }\n\n }\n }\n }\n\n if (sender.hasPermission(\"lp.player\")) {\n if (args[0].equalsIgnoreCase(\"top\")) {\n posTop = 0;\n\n\n for (String x : uc.getLangConfig().getStringList(\"lpsTopListTop\")) {\n API api = new API((Player) sender, x);\n sender.sendMessage(api.formatTags());\n // Here you can send to player or do whatever you wan't.\n\n }\n ConfigurationSection cf = uc.getTopListConfig().getConfigurationSection(\"\");\n cf.getValues(false)\n .entrySet()\n .stream()\n .sorted((a1, a2) -> {\n int points1 = ((MemorySection) a1.getValue()).getInt(\"Level\");\n int points2 = ((MemorySection) a2.getValue()).getInt(\"Level\");\n return points2 - points1;\n })\n .limit(10) // Limit the number of 'results'\n .forEach(f -> {\n posTop += 1;\n\n int points = ((MemorySection) f.getValue()).getInt(\"Level\");\n String playername = ((MemorySection) f.getValue()).getString(\"Name\");\n\n for (String x : uc.getLangConfig().getStringList(\"lpsTopListMid\")) {\n sender.sendMessage(API.format(x).replace(\"{LP_Ranked}\", Integer.toString(posTop)).replace(\"{lp_player}\", playername).replace(\"{lp_level}\", Integer.toString(points)));\n // Here you can send to player or do whatever you wan't.\n\n }\n });\n for (String x : uc.getLangConfig().getStringList(\"lpsTopListBottom\")) {\n API api = new API((Player) sender, x);\n sender.sendMessage(api.formatTags());\n // Here you can send to player or do whatever you wan't.\n\n }\n if (args[0].equalsIgnoreCase(\"creator\")) {\n sender.sendMessage(ChatColor.DARK_AQUA + \"LevelPoints Created by: \" + ChatColor.AQUA + \"Zoon20X\");\n }\n }\n } else {\n API api = new API();\n sender.sendMessage(api.format(uc.getLangConfig().getString(\"LPSErrorPermission\")));\n }\n }\n\n if (sender.hasPermission(\"lp.player\")) {\n\n if (sender instanceof Player) {\n if (args.length >= 1) {\n Player player = (Player) sender;\n File userdata = new File(lp.userFolder, player.getUniqueId() + \".yml\");\n FileConfiguration UsersConfig = YamlConfiguration.loadConfiguration(userdata);\n\n\n if (args.length == 1) {\n if (args[0].equalsIgnoreCase(\"prestige\")) {\n if (UsersConfig.getInt(\"Level\") == uc.getMaxLevel()) {\n if (UsersConfig.getInt(\"EXP.Amount\") >= uc.getMaxLevelEXP(player)) {\n\n int pres = UsersConfig.getInt(\"Prestige\");\n sender.sendMessage(ChatColor.DARK_AQUA + \"You Prestiged\");\n UsersConfig.set(\"Level\", 1);\n UsersConfig.set(\"Prestige\", pres + 1);\n UsersConfig.set(\"EXP.Amount\", 0);\n\n try {\n UsersConfig.save(userdata);\n } catch (IOException e) {\n e.printStackTrace();\n }\n API api = new API(player, uc.getLangConfig().getString(\"lpsPrestigeLevelUP\"));\n player.sendMessage(api.formatTags());\n return true;\n } else {\n double need = uc.getRequiredEXP(player) - uc.getCurrentEXP(player);\n\n API api = new API();\n player.sendMessage(api.format(uc.getLangConfig().getString(\"lpsPrestigeMoreEXP\").replace(\"{lp_Required_EXP}\", String.valueOf(need))));\n }\n } else {\n player.sendMessage(API.format(uc.getLangConfig().getString(\"lpsPrestigeLevelNot\").replace(\"{lp_Max_Level}\", String.valueOf(uc.getMaxLevel()))));\n }\n }\n if (args[0].equalsIgnoreCase(\"info\")) {\n\n for (String x : uc.getLangConfig().getStringList(\"lpsInfo\")) {\n API api = new API(player, x);\n sender.sendMessage(api.formatTags());\n }\n;\n return true;\n }\n if (args[0].equalsIgnoreCase(\"toggle\")) {\n if (UsersConfig.getBoolean(\"ActionBar\")) {\n UsersConfig.set(\"ActionBar\", false);\n } else {\n UsersConfig.set(\"ActionBar\", true);\n }\n try {\n UsersConfig.save(userdata);\n } catch (IOException e) {\n e.printStackTrace();\n }\n API api = new API();\n player.sendMessage(api.format(uc.getLangConfig().getString(\"lpsActionBarToggle\").replace(\"{LP_Toggle_Value}\", String.valueOf(UsersConfig.getBoolean(\"ActionBar\")))));\n\n }\n }\n if(args[0].equalsIgnoreCase(\"setRequirement\")){\n if(player.hasPermission(\"lp.admin\")){\n ItemStack item = player.getInventory().getItemInMainHand();\n if(item !=null){\n ItemMeta im = item.getItemMeta();\n ArrayList<String> lore = new ArrayList<>();\n if(im.hasLore()){\n for(String x : im.getLore()) {\n if(!x.contains(API.format(uc.getLangConfig().getString(\"lpRequirement\").replace(\"{Required_Level}\", \"\")))) {\n lore.add(x);\n }\n }\n lore.add(API.format(uc.getLangConfig().getString(\"lpRequirement\").replace(\"{Required_Level}\", args[1])));\n }else{\n lore.add(API.format(uc.getLangConfig().getString(\"lpRequirement\").replace(\"{Required_Level}\", args[1])));\n }\n im.setLore(lore);\n item.setItemMeta(im);\n\n }\n }\n }\n if(args[0].equalsIgnoreCase(\"removeRequirement\")){\n if(player.hasPermission(\"lp.admin\")){\n ItemStack item = player.getInventory().getItemInMainHand();\n if(item !=null){\n ItemMeta im = item.getItemMeta();\n ArrayList<String> lore = new ArrayList<>();\n if(im.hasLore()){\n for(String x : im.getLore()) {\n if(!x.contains(API.format(uc.getLangConfig().getString(\"lpRequirement\").replace(\"{Required_Level}\", \"\")))) {\n lore.add(x);\n }\n }\n }\n im.setLore(lore);\n item.setItemMeta(im);\n\n }\n }\n }\n if (args[0].equalsIgnoreCase(\"setPrestige\")) {\n if (player.hasPermission(\"lp.admin\")) {\n if (args.length == 1) {\n sender.sendMessage(ChatColor.RED + \"You Must Pick a Player\");\n return true;\n }\n if (args.length == 2) {\n sender.sendMessage(ChatColor.RED + \"You Must Pick a Level to set\");\n return true;\n }\n Player target = Bukkit.getPlayer(args[1]);\n File targetData = new File(lp.userFolder, target.getUniqueId() + \".yml\");\n FileConfiguration TargetConfig = YamlConfiguration.loadConfiguration(targetData);\n if (target != null) {\n int prestige = Integer.parseInt(args[2]);\n TargetConfig.set(\"Prestige\", prestige);\n\n\n try {\n TargetConfig.save(targetData);\n } catch (IOException e) {\n e.printStackTrace();\n }\n API api = new API();\n target.sendMessage(api.format(uc.getLangConfig().getString(\"lpSetPrestige\").replace(\"{lp_Earn_Prestige}\", args[2]).replace(\"{lp_player}\", sender.getName())));\n sender.sendMessage(api.format(uc.getLangConfig().getString(\"lpAdminSetPrestige\").replace(\"{lp_Target}\", target.getName()).replace(\"{lp_Earn_Prestige}\", args[2])));\n }\n } else {\n player.sendMessage(ChatColor.RED + \"You Have Insufficient Permission\");\n }\n }\n if (args[0].equalsIgnoreCase(\"setlevel\")) {\n if (player.hasPermission(\"lp.admin\")) {\n if (args.length == 1) {\n sender.sendMessage(ChatColor.RED + \"You Must Pick a Player\");\n return true;\n }\n if (args.length == 2) {\n sender.sendMessage(ChatColor.RED + \"You Must Pick a Level to set\");\n return true;\n }\n Player target = Bukkit.getPlayer(args[1]);\n File targetData = new File(lp.userFolder, target.getUniqueId() + \".yml\");\n FileConfiguration TargetConfig = YamlConfiguration.loadConfiguration(targetData);\n if (target != null) {\n int level = Integer.parseInt(args[2]);\n TargetConfig.set(\"Level\", level);\n uc.TopListConfig.set(target.getUniqueId() + \".Name\", target.getName());\n uc.TopListConfig.set(target.getUniqueId() + \".Level\", level);\n\n try {\n TargetConfig.save(targetData);\n uc.TopListConfig.save(uc.TopListFile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n API api = new API();\n target.sendMessage(api.format(uc.getLangConfig().getString(\"lpSetLevel\").replace(\"{lp_Earn_Level}\", args[2]).replace(\"{lp_player}\", sender.getName())));\n sender.sendMessage(api.format(uc.getLangConfig().getString(\"lpAdminSetLevel\").replace(\"{lp_Target}\", target.getName()).replace(\"{lp_Earn_Level}\", args[2])));\n if(lp.getConfig().getBoolean(\"BossBar\")){\n uc.updateBossbar(uc.getBossbar(target), target);\n }\n }\n } else {\n player.sendMessage(ChatColor.RED + \"You Have Insufficient Permission\");\n }\n\n }\n if (args[0].equalsIgnoreCase(\"addlevel\")) {\n if (player.hasPermission(\"lp.admin\")) {\n if (args.length == 1) {\n sender.sendMessage(ChatColor.RED + \"You Must Pick a Player\");\n return true;\n }\n if (args.length == 2) {\n sender.sendMessage(ChatColor.RED + \"You Must Pick a Level to add\");\n return true;\n }\n\n Player target = Bukkit.getPlayer(args[1]);\n File targetData = new File(lp.userFolder, target.getUniqueId() + \".yml\");\n FileConfiguration TargetConfig = YamlConfiguration.loadConfiguration(targetData);\n int CurrentLevel = uc.getCurrentLevel(target);\n TargetConfig.set(\"Level\", CurrentLevel + Integer.parseInt(args[2]));\n uc.TopListConfig.set(target.getUniqueId() + \".Name\", target.getName());\n uc.TopListConfig.set(target.getUniqueId() + \".Level\", CurrentLevel + Integer.parseInt(args[2]));\n try {\n uc.TopListConfig.save(uc.TopListFile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n TargetConfig.save(targetData);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n if(lp.getConfig().getBoolean(\"BossBar\")){\n uc.updateBossbar(uc.getBossbar(target), target);\n }\n }\n }\n }\n\n\n if (args.length == 2) {\n if (args[0].equalsIgnoreCase(\"info\")) {\n StringBuilder str = new StringBuilder(args[1]);\n\n for (int i = 2; i < args.length; i++) {\n str.append(' ').append(args[i]);\n }\n if (Bukkit.getPlayer(str.toString()) != null) {\n Player TargetPlayer = Bukkit.getPlayer(str.toString());\n\n File userdata = new File(lp.userFolder, TargetPlayer.getUniqueId() + \".yml\");\n FileConfiguration UsersConfig = YamlConfiguration.loadConfiguration(userdata);\n\n int levels = uc.getCurrentLevel(TargetPlayer);\n int pres = UsersConfig.getInt(\"Prestige\");\n double LevelUpEXP = uc.getRequiredEXP(TargetPlayer);\n double expss = uc.getCurrentEXP(TargetPlayer);\n\n\n double percentage = expss * 100;\n\n\n String EXP = expss + \"/\" + LevelUpEXP;\n String Percentage = Math.round(percentage / LevelUpEXP) + \"%\";\n\n\n for (String x : uc.getLangConfig().getStringList(\"lpsInfo\")) {\n API api = new API(TargetPlayer, x);\n sender.sendMessage(api.format(api.formatTags()));\n }\n return true;\n } else {\n API api = new API();\n sender.sendMessage(api.format(uc.getLangConfig().getString(\"LPSNotOnline\")));\n }\n }\n }\n\n if(args.length == 5){\n if(sender.hasPermission(\"lp.*\")){\n if(args[0].equalsIgnoreCase(\"booster\")){\n if(args[1].equalsIgnoreCase(\"give\")){\n Player Target = Bukkit.getPlayer(args[2]);\n if(Target != null) {\n int Multipler = 0;\n int amount = 0;\n try {\n Multipler = Integer.parseInt(args[3]);\n amount = Integer.parseInt(args[4]);\n }catch (NumberFormatException e){\n API api = new API();\n sender.sendMessage(api.format(\"&4Error&8>> &cString is not a Number\"));\n }\n File userdata = new File(lp.userFolder, Target.getUniqueId() + \".yml\");\n FileConfiguration UsersConfig = YamlConfiguration.loadConfiguration(userdata);\n\n if(UsersConfig.getInt(\"Boosters.\" + Multipler) == 0) {\n UsersConfig.set(\"Boosters.\" + Multipler, amount);\n }else{\n int current = uc.getCurrentBoosters(Target, Multipler);\n UsersConfig.set(\"Boosters.\" + Multipler, amount + current);\n }\n try {\n UsersConfig.save(userdata);\n } catch (IOException e) {\n e.printStackTrace();\n }\n API api = new API();\n sender.sendMessage(api.format(uc.getLangConfig().getString(\"BoosterAdminGive\")\n .replace(\"{BoosterMultiplier}\", String.valueOf(Multipler))\n .replace(\"{lp_player}\", Target.getName()))\n .replace(\"{Booster_Amount}\", String.valueOf(amount)));\n Target.sendMessage(api.format(uc.getLangConfig().getString(\"BoosterGive\"))\n .replace(\"{BoosterMultiplier}\", String.valueOf(Multipler))\n .replace(\"{Booster_Amount}\", String.valueOf(amount)));\n }\n }\n }\n }\n }\n if(sender.hasPermission(\"lp.player\")) {\n if (args.length >= 1) {\n if (args[0].equalsIgnoreCase(\"booster\")) {\n Player player = (Player) sender;\n File userdata = new File(lp.userFolder, player.getUniqueId() + \".yml\");\n FileConfiguration UsersConfig = YamlConfiguration.loadConfiguration(userdata);\n if (args[1].equalsIgnoreCase(\"list\")) {\n\n ConfigurationSection BoostersList = UsersConfig.getConfigurationSection(\"Boosters\");\n if (BoostersList == null) {\n API api = new API();\n player.sendMessage(api.format(\"&cYou currently have 0 boosters\"));\n } else {\n for (String x : BoostersList.getKeys(false)) {\n int amount = UsersConfig.getInt(\"Boosters.\" + x);\n API api = new API();\n player.sendMessage(api.format(uc.getLangConfig().getString(\"lpsBoosterList\").replace(\"{Booster_Multiplier}\", x).replace(\"{Booster_Amount}\", String.valueOf(amount))));\n }\n }\n }\n if (args[1].equalsIgnoreCase(\"use\")) {\n try {\n uc.boosteruseclick(player, Integer.parseInt(args[2]));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }else{\n\n }\n }\n }else if (sender instanceof ConsoleCommandSender){\n if(args.length == 5){\n if(sender.hasPermission(\"lp.*\")){\n if(args[0].equalsIgnoreCase(\"booster\")){\n if(args[1].equalsIgnoreCase(\"give\")){\n Player Target = Bukkit.getPlayer(args[2]);\n if(Target != null) {\n int Multipler = 0;\n int amount = 0;\n try {\n Multipler = Integer.parseInt(args[3]);\n amount = Integer.parseInt(args[4]);\n }catch (NumberFormatException e){\n API api = new API();\n sender.sendMessage(api.format(\"&4Error&8>> &cString is not a Number\"));\n }\n File userdata = new File(lp.userFolder, Target.getUniqueId() + \".yml\");\n FileConfiguration UsersConfig = YamlConfiguration.loadConfiguration(userdata);\n\n if(UsersConfig.getInt(\"Boosters.\" + Multipler) == 0) {\n UsersConfig.set(\"Boosters.\" + Multipler, amount);\n }else{\n int current = uc.getCurrentBoosters(Target, Multipler);\n UsersConfig.set(\"Boosters.\" + Multipler, amount + current);\n }\n try {\n UsersConfig.save(userdata);\n } catch (IOException e) {\n e.printStackTrace();\n }\n API api = new API();\n sender.sendMessage(api.format(uc.getLangConfig().getString(\"BoosterAdminGive\")\n .replace(\"{BoosterMultiplier}\", String.valueOf(Multipler))\n .replace(\"{lp_player}\", Target.getName())\n .replace(\"{Booster_Amount}\", String.valueOf(amount))));\n Target.sendMessage(api.format(uc.getLangConfig().getString(\"BoosterGive\"))\n .replace(\"{BoosterMultiplier}\", String.valueOf(Multipler))\n .replace(\"{Booster_Amount}\", String.valueOf(amount)));\n }\n }\n }\n }\n }\n }\n }else{\n API api = new API((Player) sender, uc.getLangConfig().getString(\"LPSErrorPermission\"));\n sender.sendMessage(api.formatTags());\n }\n return true;\n }",
"private void argumentChecker(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tif (args.length != 2) {\n\t\t\tSystem.out.println(\"Invalid arguments. \\nExpected:\\tDriver inputFile.txt outputFile.txt\");\n\t\t}\n\t}",
"private boolean checkingAllArguments() {\n\t\t\n\t\t// test if the four player types have been selected\n\t\tfor(int i=0;i<allButtons.size();i++) {\n\t\t\tif(allButtons.get(i)==null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// test if the seed is in the correct format\n\t\tif(!(seed.textProperty().get().isEmpty())){\n\t\t\ttry {\n\t\t\t\tgameSeed = Long.parseLong(seed.getText());\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\tmenuMessage.setText(\"Given seed is not a valid number\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t}\n\t\t\n\t\t// test if for each of the players the given arguments are correct\n\t\tfor(int i = 0; i < allButtons.size(); ++i) {\n\t\t\tchar playerType = allButtons.get(i).getText().charAt(0);\n\t\t\tString argument = texts.get(2 * i + 1).getText();\n\t\t\t\n\t\t\tif(!argument.isEmpty()) {\n\t\t\t\tswitch(playerType) {\n\t\t\t\t\n\t\t\t\tcase 'S' : \n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlong l = Long.parseLong(texts.get(2 * i + 1).getText());\n\t\t\t\t\t\tif(l < 9) {\n\t\t\t\t\t\t\tmenuMessage.setText(\"The iteration value must be at least 9\");\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\tmenuMessage.setText(\"One of the iteration number is not a valid number\");\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 'R' :\n\t\t\t\t\t\n\t\t\t\t\tString[] parts = StringSerializer.split(\"\\\\.\", argument); \n\t\t\t\t\t\n\t\t\t\t\tif (parts.length != 4) { \n\t\t\t\t\t\tmenuMessage.setText(\"One of the IP Address is not a valid address\");\n\t\t\t\t\t\treturn false; \n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\tfor (String str : parts) { \n\t\t\t\t\t\tint j = Integer.parseInt(str); \n\t\t\t\t\t\tif ((j < 0) || (j > 255)) { \n\t\t\t\t\t\t\tmenuMessage.setText(\"One of the IP Address is not a valid address\");\n\t\t\t\t\t\t\treturn false; \n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\treturn true;\n\t}",
"private static void validateCommandLineArguments(AutomationContext context, String extendedCommandLineArgs[])\r\n\t{\r\n\t\t//fetch the argument configuration types required\r\n\t\tCollection<IPlugin<?, ?>> plugins = PluginManager.getInstance().getPlugins();\r\n \t\tList<Class<?>> argBeanTypes = plugins.stream()\r\n\t\t\t\t.map(config -> config.getArgumentBeanType())\r\n\t\t\t\t.filter(type -> (type != null))\r\n\t\t\t\t.collect(Collectors.toList());\r\n\t\t\r\n\t\targBeanTypes = new ArrayList<>(argBeanTypes);\r\n\t\t\r\n\t\t//Add basic arguments type, so that on error its properties are not skipped in error message\r\n\t\targBeanTypes.add(AutoxCliArguments.class);\r\n\r\n\t\t//if any type is required creation command line options and parse command line arguments\r\n\t\tCommandLineOptions commandLineOptions = OptionsFactory.buildCommandLineOptions(argBeanTypes.toArray(new Class<?>[0]));\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tcommandLineOptions.parseBeans(extendedCommandLineArgs);\r\n\t\t} catch(MissingArgumentException e)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\r\n\t\t\tSystem.err.println(commandLineOptions.fetchHelpInfo(COMMAND_SYNTAX));\r\n\t\t\tSystem.exit(-1);\r\n\t\t} catch(Exception ex)\r\n\t\t{\r\n\t\t\tex.printStackTrace();\r\n\t\t\tSystem.err.println(commandLineOptions.fetchHelpInfo(COMMAND_SYNTAX));\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t}",
"public boolean meetsMinimumLength(){\n\n return alg.meetsMinimumLength(input.getText().toString());\n }",
"public static boolean handle(String arguments) {\n String[] args = arguments.split(\" \");\n if (args.length == 0 || arguments.length() == 0) {\n System.out.println(\"No commands are given.\");\n return false;\n }\n switch (args[0]) {\n case \"C\":\n if (args.length != 2) {\n System.out.println(\"Wrong usage for C <Name>.\");\n return false;\n }\n CCommand(args[1]);\n return true;\n case \"S\":\n if (args.length <= 2) {\n System.out.println(\"Wrong usage for S <Name> <Song>.\");\n return false;\n }\n SCommand(args[1], arguments.replace(args[0] + \" \" + args[1] + \" \", \"\"));\n return true;\n case \"E\":\n if (args.length <= 2) {\n System.out.println(\"Wrong usage for E <Name> <Song>.\");\n return false;\n }\n ECommand(args[1], arguments.replace(args[0] + \" \" + args[1] + \" \", \"\"));\n return true;\n case \"L\":\n if (args.length != 2) {\n System.out.println(\"Wrong usage for L <Name>.\");\n return false;\n }\n LCommand(args[1]);\n return true;\n case \"N\":\n if (args.length != 1) {\n System.out.println(\"Wrong usage for N.\");\n return false;\n }\n NCommand();\n return true;\n case \"M\":\n if (args.length != 1) {\n System.out.println(\"Wrong usage for M.\");\n return false;\n }\n MCommand();\n return true;\n case \"R\":\n if (args.length != 1) {\n System.out.println(\"Wrong usage for R.\");\n return false;\n }\n RCommand();\n return true;\n default:\n System.out.println(\"Given argument is not suitable.\");\n return false;\n }\n }",
"@Override\n \tpublic boolean onPlayerRunCommand(Player player, String[] args) {\n \t\tif(args.length == 10 &&\n \t\t\t\tDungeonManager.dungeonExists(args[0]) && //dungeon\n \t\t\t\tDeityDungeons.isInt(args[1]) &&\t//mob id\n \t\t\t\tDungeonManager.getDungeonByName(args[0]).hasMob(Integer.parseInt(args[1])) && //mob\n \t\t\t\tDeityDungeons.isInt(args[6]) && //health\n \t\t\t\tEntityType.valueOf(args[7]) != null && //type\n \t\t\t\t(args[8].equalsIgnoreCase(\"t\") || args[8].equalsIgnoreCase(\"f\") || args[8].equalsIgnoreCase(\"true\") || args[8].equalsIgnoreCase(\"false\")) && //target\n \t\t\t\tDeityDungeons.isInt(args[9])){ //weapon id \n \n \t\t\tDungeon dungeon = DungeonManager.getDungeonByName(args[0]);\n \t\t\tMob mob = dungeon.getMobByID(Integer.parseInt(args[1]));\n \n \t\t\tDungeonManager.setMobArmor(mob, ArmorMaterial.getByChar(args[2].toUpperCase().charAt(0)), ArmorPiece.HELMET);\n \t\t\tDungeonManager.setMobArmor(mob, ArmorMaterial.getByChar(args[3].toUpperCase().charAt(0)), ArmorPiece.CHESTPLATE);\n \t\t\tDungeonManager.setMobArmor(mob, ArmorMaterial.getByChar(args[4].toUpperCase().charAt(0)), ArmorPiece.LEGGINGS);\n \t\t\tDungeonManager.setMobArmor(mob, ArmorMaterial.getByChar(args[5].toUpperCase().charAt(0)), ArmorPiece.BOOTS);\n \n \t\t\tDungeonManager.setMobHealth(mob, Integer.parseInt(args[6]));\n \n \t\t\tDungeonManager.setMobType(mob, EntityType.fromName(args[7]));\n \n \t\t\tString f = args[8];\n \n \t\t\tif(f.equalsIgnoreCase(\"true\") || f.equalsIgnoreCase(\"t\")) {\n \t\t\t\tDungeonManager.setMobTarget(mob, true);\n \t\t\t}else if(f.equalsIgnoreCase(\"false\") || f.equalsIgnoreCase(\"f\")){\n \t\t\t\tDungeonManager.setMobTarget(mob, false);\n \t\t\t}else{\n \t\t\t\tDeityAPI.getAPI().getChatAPI().sendPlayerError(player, \"DeityDungeons\", \"Usage: /dungeon editmob <dungeon> <mobid> <helm> <chest> <legs> <boots> <health> <type> <target> <weapon id>\");\n \t\t\t}\n \t\t\t\n \t\t\tDungeonManager.setMobWeapon(mob, Integer.parseInt(args[9]));\n \t\t\t\n \t\t\tDeityAPI.getAPI().getChatAPI().sendPlayerMessage(player, \"DeityDungeons\", \"<green>The mob attributes have been set for mob with id <red>\" + args[1]);\n \t\t\treturn true;\n \n \t\t\t//Already having a dungeon selected\n \t\t}else if(args.length == 9 &&\n \t\t\t\tDungeonManager.playerHasDungeon(player) &&\n \t\t\t\tDeityDungeons.isInt(args[0]) &&\t//mob id\n \t\t\t\tDungeonManager.getPlayersDungeon(player).hasMob(Integer.parseInt(args[0])) && //mob\n \t\t\t\tDeityDungeons.isInt(args[5]) && //health\n \t\t\t\tEntityType.valueOf(args[6]) != null && //type\n \t\t\t\t(args[7].equalsIgnoreCase(\"t\") || args[7].equalsIgnoreCase(\"f\") || args[7].equalsIgnoreCase(\"true\") || args[7].equalsIgnoreCase(\"false\")) && //target\n \t\t\t\tDeityDungeons.isInt(args[8])) {\n \t\t\t\n \t\t\tDungeon dungeon = DungeonManager.getPlayersDungeon(player);\n \t\t\tMob mob = dungeon.getMobByID(Integer.parseInt(args[0]));\n \n \t\t\tDungeonManager.setMobArmor(mob, ArmorMaterial.getByChar(args[1].toUpperCase().charAt(0)), ArmorPiece.HELMET);\n \t\t\tDungeonManager.setMobArmor(mob, ArmorMaterial.getByChar(args[2].toUpperCase().charAt(0)), ArmorPiece.CHESTPLATE);\n \t\t\tDungeonManager.setMobArmor(mob, ArmorMaterial.getByChar(args[3].toUpperCase().charAt(0)), ArmorPiece.LEGGINGS);\n \t\t\tDungeonManager.setMobArmor(mob, ArmorMaterial.getByChar(args[4].toUpperCase().charAt(0)), ArmorPiece.BOOTS);\n \n \t\t\tDungeonManager.setMobHealth(mob, Integer.parseInt(args[5]));\n \n \t\t\tDungeonManager.setMobType(mob, EntityType.valueOf(args[6]));\n \n \t\t\tString f = args[7];\n \n \t\t\tif(f.equalsIgnoreCase(\"true\") || f.equalsIgnoreCase(\"t\")) {\n \t\t\t\tDungeonManager.setMobTarget(mob, true);\n \t\t\t}else if(f.equalsIgnoreCase(\"false\") || f.equalsIgnoreCase(\"f\")){\n \t\t\t\tDungeonManager.setMobTarget(mob, false);\n \t\t\t}else{\n \t\t\t\tDeityAPI.getAPI().getChatAPI().sendPlayerError(player, \"DeityDungeons\", \"Usage: /dungeon editmob <dungeon> <mobid> <helm> <chest> <legs> <boots> <health> <type> <target> <weapon id>\");\n \t\t\t}\n \t\t\t\n \t\t\tDungeonManager.setMobWeapon(mob, Integer.parseInt(args[8]));\n \t\t\t\n \t\t\tDeityAPI.getAPI().getChatAPI().sendPlayerMessage(player, \"DeityDungeons\", \"<green>The mob attributes have been set for mob with id <red>\" + args[1]);\n \t\t\treturn true;\n \n \t\t}\n \t\t\n \t\tDeityAPI.getAPI().getChatAPI().sendPlayerError(player, \"DeityDungeons\", \"Usage: /dungeon editmob <dungeon> <mobid> <helm> <chest> <legs> <boots> <health> <type> <target> <weapon id>\");\n \t\treturn true;\n \t}",
"@Override\n public boolean onCommand(CommandSender sender, Command arg1, String arg2, String[] args) {\n if(sender instanceof Player) {\n Player p = (Player)sender;\n if(p.hasPermission(\"pixel.build\")) {\n\n if(args.length == 0) {\n if(OnJoin.build.contains(p)) {\n OnJoin.build.remove(p);\n p.sendMessage(MLGWars.prefix+\"§7Du bist nun nicht mehr im §cBuild modus\");\n p.setGameMode(GameMode.SURVIVAL);\n p.playSound(p.getLocation(), Sound.FIREWORK_BLAST, 2, 3);\n } else {\n OnJoin.build.add(p);\n p.sendMessage(MLGWars.prefix+\"§7Du bist nun im §cBuild modus\");\n p.getInventory().clear();\n p.playSound(p.getLocation(), Sound.FIREWORK_BLAST, 2, 3);\n p.setGameMode(GameMode.CREATIVE);\n }\n } else {\n p.sendMessage(MLGWars.prefix+\"§7Nutze: §c/build\");\n }\n\n } else {\n p.sendMessage(MLGWars.prefix+\"§cDazu hast du keine Berechtigung!\");\n }\n }\n return true;\n }",
"@Test(expected = InvalidInputLineException.class)\n\tpublic void testValidateTypeCCommandTooManyParameters() throws InvalidInputLineException {\n\t\t\n\t\tString[] expWords = new String[]{\"Q\", \"4\", \"5\"};\n\t\tinputValidator.validate(expWords);\n\t}",
"@Override\n public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\n if (!(sender instanceof Player)) {\n sender.sendMessage(\"Command needs to be run by a player.\");\n return true;\n }\n\n return doCommand(sender, null, ((Player) sender).getUniqueId().toString(), sender.getName());\n }",
"@Override\r\n\tpublic boolean validCommand(CommandStack stack) {\r\n\t\treturn true;\r\n\t}",
"public boolean onCommand(CommandSender sender, Command command, String label, String[] args) throws ArrayIndexOutOfBoundsException{\n\t\n\t\ttry {\n\t\tString cmd = command.getName().toLowerCase();\n\t\t if (cmd.equals(\"stat\")) {\n\t\t\tif (args[0] == \"\" || args[1] == \"\" || args[0] == \"null\" || args[1] == \"null\"){\n\t\t\t\tthrow new ArrayIndexOutOfBoundsException(\"type /stat reg to register or /stat view playerName to view stats\");\n\t\t\t\t\n\t\t\t}\n\t\t\treturn statsMethod(sender,args);\n\t\t}\n\t\t\tif (args[0].equalsIgnoreCase(\"armor\")) {\n\t\t\t\tItem.class.getMethods();\n\n\t\t\t\tPlayer p = (Player)sender;\n\t\t\t\tPlayerInventory inventory = p.getInventory();\n\t\t\t\t//give the player an iron set of armor \n\t\t\t\tinventory.addItem(new ItemStack(Material.IRON_HELMET, 1));\n\t\t\t\tinventory.addItem(new ItemStack(Material.IRON_CHESTPLATE, 1));\n\t\t\t\tinventory.addItem(new ItemStack(Material.IRON_LEGGINGS, 1));\n\t\t\t\tinventory.addItem(new ItemStack(Material.IRON_HELMET, 1));\n\n\t\t\t\t//send a message to inform player they received a set of armor\n\t\t\t\tp.sendMessage(ChatColor.RED + \"Armorset is in Inventory... \");\n\t\t\t\t\n\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t}\n\telse {\n\t\t\treturn false;\n\t\t}\n\t\t}\n\t\tcatch(ArrayIndexOutOfBoundsException ie){\n\t\t\tie.printStackTrace();\n\t\t\t//System.out.println(\"type /stat view playerName to view your statistics\");\n\t\t\tsender.sendMessage(\"type /stat view playerName to view your statistics or /stat reg playerName to register \");\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean onCommand(CommandSender sender, Command command, String alias, String[] args) {\n if (sender instanceof Player)\n switch (args.length) {\n case 0 -> {\n //send to all players\n Bukkit.broadcastMessage(WorldUtils.Messages.positionMessage(\n sender.getName(), ((Player) sender).getLocation()));\n return true;\n }\n case 1 -> {\n //send to one player\n try {\n Objects.requireNonNull(Bukkit.getPlayer(args[0])).sendMessage(WorldUtils.Messages.positionMessage(\n sender.getName(), ((Player) sender).getLocation()));\n } catch (NullPointerException e) {\n WorldUtils.Messages.playerNotFound(sender);\n }\n return true;\n }\n }\n else {\n WorldUtils.Messages.notConsole(sender);\n return true;\n }\n return false;\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}",
"@Override\n public void run(String[] args, Player player) {\n \n if (args.length == 2) {\n sendInfoTranslation(player, \"tport.command.public.listSize.succeeded\", getPublicTPortSize());\n } else if (args.length == 3) {\n if (!emptySize.hasPermissionToRun(player, true)) {\n return;\n }\n try {\n setPublicTPortSize(Integer.parseInt(args[2]));\n sendSuccessTranslation(player, \"tport.command.public.listSize.size.succeeded\", args[2]);\n } catch (NumberFormatException nfe) {\n sendErrorTranslation(player, \"tport.command.public.listSize.size.invalidNumber\", args[2]);\n }\n } else {\n sendErrorTranslation(player, \"tport.command.wrongUsage\", \"/tport public listSize [size]\");\n }\n }",
"public void checkNumberArgs(int argNum) throws WrongNumberArgsException {\n/* 79 */ if (argNum < 2) {\n/* 80 */ reportWrongNumberArgs();\n/* */ }\n/* */ }",
"public abstract void execute(CommandSender sender, String[] args);",
"public void checkNumberOfArguments3() {\n logger.info(\"Hello {}, {}, {}, {}, {}, {}, {}\", \"world\", 2, \"third argument\", 4, 5, 6, new String(\"last arg\"));\n }",
"private boolean argumentsEquals(Command other) {\n return Arrays.equals(this.arguments, other.arguments);\n }",
"private boolean isValidQuestionsArgument(ArrayList<String> argArray) {\n boolean isValid = true;\n if (argArray.size() != ADD_NOTE_ARGUMENTS) {\n TerminusLogger.warning(String.format(\"Failed to find %d arguments: %d arguments found\",\n ADD_NOTE_ARGUMENTS, argArray.size()));\n isValid = false;\n } else if (CommonUtils.hasEmptyString(argArray)) {\n TerminusLogger.warning(\"Failed to parse arguments: some arguments found is empty\");\n isValid = false;\n }\n return isValid;\n }",
"@Override\n\tpublic boolean execute(RPGEssentials plugin, CommandSender sender, String... args) {\n String base = (args.length > 0 ? args[0] : \"\");\n String last = (args.length > 0 ? args[args.length - 1] : \"\");\n \n // If there's no base argument, show a helpful message.\n if (base.equals(\"\")) {\n Messenger.sendMessage(sender, \"/karma help|?\");\n return true;\n }\n \n // The help command is a little special\n if (base.equals(\"?\") || base.equalsIgnoreCase(\"help\")) {\n showHelp(sender);\n return true;\n }\n \n // Get all commands that match the base.\n List<Command> matches = getMatchingCommands(base);\n \n // If there's more than one match, display them.\n if (matches.size() > 1) {\n Messenger.sendMessage(sender, \"Multiple command matches\");\n for (Command cmd : matches) {\n showUsage(cmd, sender, false);\n }\n return true;\n }\n \n // If there are no matches at all, notify.\n if (matches.size() == 0 && args.length > 0) {\n \tif(sender instanceof Player) {\n \t\tplugin.getKarma();\n\t\t\t\tMessenger.sendMessage(sender, ChatColor.GRAY+\"Karma von \"+sender.getName()+\": \"+ChatColor.WHITE+Karma.getPlayerHandler().getKarma(sender.getName()));\n \t} else\n \t\tMessenger.sendMessage(sender, \"Command not found\");\n \treturn true;\n }\n \n // Grab the only match.\n Command command = matches.get(0);\n CommandInfo info = command.getClass().getAnnotation(CommandInfo.class);\n \n // First check if the sender has permission.\n if (!PermHandler.hasPerm(sender, info.permission())) {\n \tMessenger.sendMessage(sender, \"No Permission\");\n return true;\n }\n \n // Check if the last argument is a ?, in which case, display usage and description\n if (last.equals(\"?\") || last.equals(\"help\")) {\n showUsage(command, sender, true);\n return true;\n }\n \n // Otherwise, execute the command!\n String[] params = trimFirstArg(args);\n if (!command.execute(plugin, sender, params)) {\n showUsage(command, sender, true);\n }\n return true;\n }",
"public boolean canCommandSenderUseCommand(ICommandSender sender)\n {\n\t\treturn FMLCommonHandler.instance().getMinecraftServerInstance().getConfigurationManager().canSendCommands(((EntityPlayerMP) sender).getGameProfile());\n }",
"private Command createUpdateIfValidCommand(ArrayList<String> arguments) {\n Command command;\n if (findFullStop(arguments)) {\n command = createUpdateCommand(arguments);\n } else {\n logger.log(Level.WARNING, \"full stop not found in user input.\");\n command = createInvalidCommand();\n }\n return command;\n }",
"private boolean validatePacket(String[] packet)throws NullPointerException\n\t{\n\n\t\tif(packet == null)\n\t\t{\n\t\t\tthrow new NullPointerException(\"Packet was null\");\n\t\t}\n\n\t\tfor(int i = 2 ; i< packet.length ; i++)\n\t\t{\n\t\t\tif(packet.length > MAX_SIZE)\n\t\t\t{\n\t\t\t\tthrow new StringIndexOutOfBoundsException(\"Message \" + (i-1)+\": \" + \"'\" + packet[i] + \"'\" + \"is to long\");\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public int commandLength() {\r\n return command.length();\r\n }",
"Result command(@NotNull CommandSender sender, List<String> args);",
"@Override\n public void run(String[] args, Player player) {\n \n if (args.length > 1) {\n if (runCommands(getActions(), args[1], args, player)) {\n return;\n }\n }\n sendErrorTranslation(player, translateKeyPrefix + \".command.wrongUsage\", \"/\" + commandName + \" permissions \" + convertToArgs(getActions(), false));\n \n }",
"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}",
"private boolean isComplete() {\n return redisCommand != null && redisCommand.getAction() != null && !\"\".equals(redisCommand.getAction().trim()) && redisCommand.getArgList().size() == argSize - 1;\n }",
"public boolean checkLength(Contribution contribution) {\n\t\tint longness= jdbc.queryForObject(\"select lineLength from stories where title=:title\", \n\t\t\t\tnew MapSqlParameterSource(\"title\", contribution.getTitle()), Integer.class);\n\t\tSystem.out.println(\"Your content: \"+contribution.getAddition().length()+\" the max length: \"+longness);\n\t\tif(contribution.getAddition().length() > longness) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private boolean hasValidLength()\n {\n final int length = mTextInputLayout.getText().length();\n return (length >= mMinLen && length <= mMaxLen);\n }",
"@Override\r\n public boolean onCommand(@NotNull CommandSender sender, @NotNull Command cmd, @NotNull String label, String[] args){\r\n\r\n if(!(sender instanceof Player)){\r\n sender.sendMessage(\"You can't do that in the console.\");\r\n return true;\r\n }\r\n\r\n Player player = (Player) sender;\r\n if(args.length == 0){\r\n if(CheckPermission.checkPerm(\"essentials.time\", player)){\r\n player.sendMessage(ChatColor.DARK_RED + \"To use this command, run: time [set/add] [day/night/dawn/ticks]\");\r\n return true;\r\n }\r\n } else if(args[0].equals(\"set\")) {\r\n if(CheckPermission.checkPerm(\"essentials.time.set\", player)){\r\n if(args[1] == null){\r\n player.sendMessage(ChatColor.DARK_RED + \"To use this command, run: time [set] [day/night/dawn/ticks]\");\r\n return true;\r\n }\r\n }\r\n if(args[1].equals(\"day\")){\r\n World w = player.getWorld();\r\n w.setTime(Long.parseLong(\"2000\"));\r\n player.sendMessage(ChatColor.DARK_GREEN + \"The time was successfully changed.\");\r\n return true;\r\n }\r\n if(args[1].equals(\"dawn\")){\r\n World w = player.getWorld();\r\n w.setTime(Long.parseLong(\"23041\"));\r\n player.sendMessage(ChatColor.DARK_GREEN + \"The time was successfully changed.\");\r\n return true;\r\n }\r\n if(args[1].equals(\"night\")){\r\n World w = player.getWorld();\r\n w.setTime(Long.parseLong(\"13000\"));\r\n player.sendMessage(ChatColor.DARK_GREEN + \"The time was successfully changed.\");\r\n return true;\r\n }\r\n else{\r\n try{\r\n World w = player.getWorld();\r\n w.setTime(Long.parseLong(args[1]));\r\n player.sendMessage(ChatColor.DARK_GREEN + \"The time was successfully changed.\");\r\n return true;\r\n }catch (NumberFormatException e){\r\n player.sendMessage(ChatColor.DARK_RED + \"To use this command, run: time [set] [day/night/dawn/ticks]\");\r\n return true;\r\n }\r\n }\r\n\r\n }else if(args[0].equals(\"add\")){\r\n if(CheckPermission.checkPerm(\"essentials.time.add\", player)) {\r\n if (args[1] == null) {\r\n player.sendMessage(ChatColor.DARK_RED + \"To use this command, run: time [add] [int/ticks]\");\r\n return true;\r\n } else {\r\n try {\r\n World w = player.getWorld();\r\n int time = Integer.parseInt(w.getTime() + args[1]);\r\n player.sendMessage(ChatColor.DARK_GREEN + \"The time was successfully changed.\");\r\n w.setTime(time);\r\n } catch (NumberFormatException e) {\r\n player.sendMessage(ChatColor.DARK_RED + \"To use this command, run: time [set] [day/night/dawn/ticks]\");\r\n return true;\r\n }\r\n }\r\n }\r\n }\r\n return true;\r\n }",
"@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 }",
"boolean onCommand(CommandSender sender, String command, String[] args, Object... objects);",
"@Inject (\n inClass = \"org.bukkit.craftbukkit.{nms_version}.CraftServer\",\n inMethod = \"dispatchCommand(\" +\n \"Lorg/bukkit/command/CommandSender;\" +\n \"Ljava/lang/String;\" +\n \")Z\",\n at = Inject.Position.BEGINNING\n )\n public static void checkCommandDispatch(MethodParam<?> sender, MethodParam<String> command) {\n onCommand(command.getValue());\n }",
"private static boolean checkLength(String password) {\n \treturn password.length() >= minLength;\n }",
"@Override\n\tpublic void validateCommand(CommandRequest commandRequest) throws ValidationException {\n\t\tlogger.trace(\"Enter validateCommand\");\n\t\tif (commandRequest.getLineInput().length() < (currentCommand.getKey().length() + 2)) {\n\t\t\tthrow new ValidationException(\"Invalid Input\");\n\t\t}\n\t\t\n\t\tString[] inputs = commandRequest.getLineInput().split(\" \");\n\t\tif (inputs.length < 2) {\n\t\t\tthrow new ValidationException(\"Insufficient Input Command for : \" + currentCommand.name() + \n\t\t\t\tcommandRequest.getLineInput());\n\t\t}\n\t\t\n\t\tInteger leaveSlotNumber = null;\n\t\t\n\t\ttry {\n\t\t\tleaveSlotNumber = Integer.parseInt(inputs[1]);\n\t\t} catch (NumberFormatException exception) {\n\t\t\tthrow new ValidationException(\"Invalid Leave Slot Number \", exception);\n\t\t}\n\t\t\n\t\tif (leaveSlotNumber < 1) {\n\t\t\tthrow new ValidationException(\"Invalid Leave Slot Number : \" + leaveSlotNumber);\n\t\t}\n\t\n\t\tcommandRequest.setCommand(Command.LEAVE);\n\t\tcommandRequest.setDataInput(String.valueOf(leaveSlotNumber));\n\t\tlogger.trace(\"Exit validateCommand\");\n\t}",
"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 }",
"public boolean subCommandProcess(CommandSender sender, Command command, String string, String[] args) {\n\n\t\tif ((consoleOnly && sender instanceof Player) || (permission != null && !sender.hasPermission(permission))) {\n\n\t\t\tsender.sendMessage(errorPrefix + noPermissionError);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn execute(sender, command, string, args);\n\t}",
"private void checkSendOption(SendOptions options) {\n if(options.getFrom() == null || !Utils.isAddress(options.getFrom())) {\n throw new IllegalArgumentException(\"Invalid 'from' parameter : \" + options.getFrom());\n }\n\n if(options.getGas() == null || !Utils.isNumber(options.getGas())) {\n throw new IllegalArgumentException(\"Invalid 'gas' parameter : \" + options.getGas());\n }\n\n if(options.getValue() == null || !Utils.isNumber(options.getValue())) {\n throw new IllegalArgumentException(\"Invalid 'value' parameter : \" + options.getValue());\n }\n }",
"void validate(final WriteableCommandLine commandLine)\n throws OptionException;",
"@NotNull\n CommandResult onCommand(@NotNull Player player, @NotNull String[] params);",
"public static void checkNumArgs(String[] args, int n) {\r\n if (args.length != n) {\r\n throw new GitletException(\"Incorrect operands.\");\r\n }\r\n return;\r\n }",
"@Override\n\tpublic void onCommand(CommandSender sender, String[] args) {\n\t\t\n\t}",
"@Override\n\tpublic void onCommand(CommandSender sender, String[] args) {\n\t\t\n\t}",
"public abstract ValidationResults validArguments(String[] arguments);",
"private static boolean argsAreValid(String[] args) {\n try {\n if (args.length != NUM_OF_ARGS) {\n System.err.println(TypeTwoErrorException.TYPE_II_GENERAL_MSG +\n BAD_COMMAND_LINE_ARGUMENTS);\n return false;\n }\n File sourceDirectory = new File(args[0]);\n File commandFile = new File(args[1]);\n if ((!sourceDirectory.isDirectory()) || (!commandFile.isFile())) {\n System.err.println(TypeTwoErrorException.TYPE_II_GENERAL_MSG +\n BAD_COMMAND_LINE_ARGUMENTS);\n return false;\n }\n } catch (Exception e) {\n System.err.println(TypeTwoErrorException.TYPE_II_GENERAL_MSG +\n UNKNOWN_ERROR_COMMAND_LINE_ARGUMENTS);\n return false;\n }\n return true;\n }",
"@Override\n public String execute(String argument) {\n try {\n if (!argument.isEmpty()) {\n throw new WrongArgumentException();\n }\n\n System.out.println(\"Программа успешно завершена!\");\n System.exit(0);\n } catch (WrongArgumentException e) {\n System.out.println(\"Используйте: '\" + getName() + \"'\");\n } catch (Exception e) {\n System.out.println(\"Что-то пошло не так. Повторите ввод.\");\n }\n return argument;\n }",
"public void runCommand(CommandSender sender, SubCommand command, List<String> argsList) {\n if (!(sender instanceof Player) && !command.isConsoleAllowed()) {\n MessageUtil.colour(sender, LangUtil.formatErrorKey(\"error.noConsole\"));\n return;\n }\n\n // No permission\n if (!sender.hasPermission(command.getPermission())) {\n MessageUtil.colour(sender, LangUtil.formatErrorKey(\"error.noPermission\"));\n return;\n }\n\n // Remove first argument from the list before calling run.\n argsList.remove(0);\n command.run(sender, argsList);\n }",
"private void handleCommand() throws IOException {\n\t\tboolean commandHasParameter = false;\n\t\tboolean parameterIsNegative = false;\n\t\tint parameterValue = 0;\n\t\tStringBuilder commandText = new StringBuilder();\n\t\tStringBuilder parameterText = new StringBuilder();\n\n\t\tint ch = source.read();\n\t\tif (ch == -1) {\n\t\t\tthrow new EOFException();\n\t\t}\n\n\t\tcommandText.append((char) ch);\n\n\t\tif (!Character.isLetter(ch)) {\n\t\t\thandleCommand(commandText, 0, commandHasParameter);\n\t\t\treturn;\n\t\t}\n\n\t\twhile (true) {\n\t\t\tch = source.read();\n\t\t\tif (ch == -1 || !Character.isLetter(ch)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcommandText.append((char) ch);\n\t\t\tif (commandText.length() > MAX_COMMAND_LENGTH) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (ch == -1) {\n\t\t\tthrow new EOFException();\n\t\t}\n\n\t\tif (commandText.length() > MAX_COMMAND_LENGTH) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid keyword: \"\n\t\t\t\t\t+ commandText.toString());\n\t\t}\n\n\t\tif (ch == '-') {\n\t\t\tparameterIsNegative = true;\n\t\t\tch = source.read();\n\t\t\tif (ch == -1) {\n\t\t\t\tthrow new EOFException();\n\t\t\t}\n\t\t}\n\t\tif (Character.isDigit(ch)) {\n\t\t\tcommandHasParameter = true;\n\t\t\tparameterText.append((char) ch);\n\t\t\twhile (true) {\n\t\t\t\tch = source.read();\n\t\t\t\tif (ch == -1 || !Character.isDigit(ch)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tparameterText.append((char) ch);\n\t\t\t\tif (parameterText.length() > MAX_PARAMETER_LENGTH) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (parameterText.length() > MAX_PARAMETER_LENGTH) {\n\t\t\t\tthrow new IllegalArgumentException(\"Invalid parameter: \"\n\t\t\t\t\t\t+ parameterText.toString());\n\t\t\t}\n\n\t\t\tparameterValue = Integer.parseInt(parameterText.toString());\n\t\t\tif (parameterIsNegative) {\n\t\t\t\tparameterValue = -parameterValue;\n\t\t\t}\n\t\t}\n\n\t\tif (ch != ' ') {\n\t\t\tsource.canselRead(ch);\n\t\t}\n\n\t\thandleCommand(commandText, parameterValue, commandHasParameter);\n\t}",
"public boolean execute(CommandSender sender, Command command, String string, String[] args) {\n\n\t\treturn true;\n\t}",
"private void checkForEmptyLine() throws OutmatchingParametersToMethodCall {\n if (this.params.isEmpty() && method.getParamAmount() != 0) {\n throw new OutmatchingParametersToMethodCall();\n } else if (method.getParamAmount() == 0 && !this.params.isEmpty()) {\n throw new OutmatchingParametersToMethodCall();\n }\n }",
"@Override\n public boolean onCommand(Player p, String[] args) {\n\n if (!teamManager.playerIsInvitedToTeam(p)) {\n p.sendMessage(Messaging.Tag.ERROR.getTag() + \"You have no pending team invites, maybe you took to long to decline?\");\n return false;\n }\n\n teamManager.declineInvite(p);\n\n return false;\n }",
"public void handleCommand(String command, String args[], Player player){\n\t}",
"@Override\n\tpublic boolean onCommand(CommandSender sender, Command command,\n\t\t\tString label, String[] args) {\n\t\tif (args.length == 0) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (args[0].equals(\"help\")) {\n\t\t\tsender.sendMessage(\"----------------\"+plugin.TAG+\"----------------\");\n\t\t\tsender.sendMessage(ChatColor.AQUA+\"Aide générale OpenCities\");\n\t\t\tsender.sendMessage(\"Vous ne pouvez pas placer ou casser sur la map principale.\");\n\t\t\tsender.sendMessage(\"Commandes de ville : /ville help\");\n\t\t\tsender.sendMessage(\"Commandes de parcelles : /parcelle help\");\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}"
] | [
"0.72517085",
"0.66782683",
"0.6508528",
"0.64870584",
"0.648591",
"0.631386",
"0.6240683",
"0.62377274",
"0.6182279",
"0.61381906",
"0.60887265",
"0.6060036",
"0.60405725",
"0.59548324",
"0.5898788",
"0.5872599",
"0.58713",
"0.5782006",
"0.5751261",
"0.57487565",
"0.5736965",
"0.57290184",
"0.5721403",
"0.5682835",
"0.56748706",
"0.5662127",
"0.56565535",
"0.56527984",
"0.56452954",
"0.5644489",
"0.56358624",
"0.5633877",
"0.5601314",
"0.5584841",
"0.55594975",
"0.55576444",
"0.5556036",
"0.55558044",
"0.555021",
"0.5533209",
"0.5526045",
"0.5524661",
"0.5519781",
"0.5516149",
"0.551291",
"0.55022705",
"0.5486492",
"0.5451366",
"0.5441137",
"0.5422217",
"0.5418146",
"0.54127544",
"0.5407897",
"0.5394004",
"0.53882104",
"0.5388118",
"0.53859013",
"0.53786606",
"0.53713506",
"0.53694135",
"0.53691417",
"0.534537",
"0.53447825",
"0.5297812",
"0.52911496",
"0.5288217",
"0.52848697",
"0.52816683",
"0.52759176",
"0.5275792",
"0.5268196",
"0.52654296",
"0.525794",
"0.52551955",
"0.5252775",
"0.5241722",
"0.523997",
"0.523796",
"0.5232086",
"0.52222025",
"0.52191263",
"0.52120435",
"0.5211505",
"0.520678",
"0.520167",
"0.5200976",
"0.51807153",
"0.5178415",
"0.51560783",
"0.51560783",
"0.5155706",
"0.51469684",
"0.51435655",
"0.51387405",
"0.51378006",
"0.512873",
"0.5122636",
"0.5120292",
"0.5114476",
"0.511314"
] | 0.6679898 | 1 |
Checks if the CommandSender is an instance of a Player. If not, it tells them they must be a Player to use the command. | protected boolean isPlayer(final CommandSender sender) {
if (sender instanceof Player) {
return true;
} else {
ChatUtil.sendBrandingMessage(sender, this.mustBePlayerMessage);
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\n if (!(sender instanceof Player)) {\n sender.sendMessage(\"Command needs to be run by a player.\");\n return true;\n }\n\n return doCommand(sender, null, ((Player) sender).getUniqueId().toString(), sender.getName());\n }",
"@Override\n public boolean onCommand(CommandSender sender, Command command, String label, String[] arguments) {\n if (!(sender instanceof Player)) {\n sender.sendMessage(Constants.PLUGIN_NAME + \" commands can only be run by a player\");\n return true;\n }\n\n // Now we know that the sender was a player\n Player player = (Player) sender;\n String commandName = command.getName();\n\n if (commandName.equalsIgnoreCase(PLUGIN_COMMAND_LONG_NAME) || commandName\n .equalsIgnoreCase(PLUGIN_COMMAND_SHORT_NAME)) {\n if (arguments.length < 1) {\n MessageHelper.pluginMessage(player, \"Not enough arguments\");\n return false;\n }\n\n if (arguments.length > 2) {\n MessageHelper.pluginMessage(player, \"Too many arguments\");\n return false;\n }\n\n String commandArgument, otherPlayerName;\n\n commandArgument = arguments[0];\n if (arguments.length == 2) {\n // TODO: Add permission for allowing players to add/remove other players\n otherPlayerName = arguments[1];\n }\n\n // Handle the plugin command arguments here to allow players to add, remove, etc. themselves from the queue\n // TODO: Add, remove, start, stop, score, players\n // TODO: Teleport to source block option?\n switch (commandArgument) {\n case \"a\":\n case \"add\":\n mPlugin.getPlayerQueue().addPlayer(player);\n MessageHelper.pluginMessage(player, \"Added yourself to the queue\");\n MessageHelper.pluginMessage(player, mPlugin.getPlayerQueue().toString());\n // TODO: Send an error message to the player if they're already in a queue\n return true;\n case \"r\":\n case \"remove\":\n mPlugin.getPlayerQueue().removePlayer(player);\n MessageHelper.pluginMessage(player, \"Removed yourself from the queue\");\n MessageHelper.pluginMessage(player, mPlugin.getPlayerQueue().toString());\n // TODO: Send an error message to the player if they're not in the queue\n return true;\n case \"start\":\n break;\n case \"stop\":\n break;\n case \"p\":\n case \"players\":\n case \"s\":\n case \"scores\":\n MessageHelper.pluginMessage(player, \"Player count: \" + mPlugin.getPlayerQueue().getPlayerCount());\n MessageHelper.pluginMessage(player, mPlugin.getPlayerQueue().getScoreStrings());\n return true;\n default:\n return false;\n }\n }\n\n return false;\n }",
"public boolean canCommandSenderUseCommand(ICommandSender sender)\n {\n\t\treturn FMLCommonHandler.instance().getMinecraftServerInstance().getConfigurationManager().canSendCommands(((EntityPlayerMP) sender).getGameProfile());\n }",
"@Override\n public boolean onCommand(final CommandSender sender, final Command cmd, final String label, final String[] args) {\n\n // If the sender is a PLAYER\n if (sender instanceof Player) {\n final Player p = (Player) sender;\n\n // If there are arguments and not the main command alone\n if (args.length > 0) {\n boolean cont = false;\n CmdProperties cmdClass = null;\n\n // Assign all commands to their name in the hashmap\n for (final Map.Entry<String, CmdProperties> entry : commandClasses.entrySet()) {\n if (!cont) {\n if (entry.getKey().equalsIgnoreCase(args[0])) {\n cont = true;\n cmdClass = entry.getValue();\n }\n }\n }\n\n // check for permission i think? idk whats entirely going on here, review later\n if (cont) {\n final int argsNeeded = cmdClass.getLength();\n if (args.length - 1 >= argsNeeded) {\n if (p.hasPermission(cmdClass.getPermission())) {\n if (args[argsNeeded] == null) {\n args[argsNeeded] = \"Nothing\";\n }\n final StringBuilder sb = new StringBuilder();\n for (int i = argsNeeded; i < args.length; i++) {\n sb.append(args[i]).append(\" \");\n }\n\n final String allArgs = sb.toString().trim();\n if (cmdClass.isAlias())\n cmdClass.getAlias().perform(p, allArgs, args);\n else\n cmdClass.perform(p, allArgs, args);\n return true;\n } else {\n // D: no permission!\n MsgUtils.error (sender, \"(no permission)\");\n return true;\n }\n } else {\n // Not the right amount of arguments for the command. Maybe put something like cmdClass.getUsage() here to show the player how to use the command\n MsgUtils.error (sender, cmdClass.getUsage());\n return true;\n }\n } else {\n // The argument doesn't exist.\n MsgUtils.error (sender, \"/ca \" + MsgUtils.Colors.VARIABLE + args[0] + MsgUtils.Colors.ERROR + \" is not a command\");\n return true;\n }\n } else {\n // Not enough arguments (show help here)\n MsgUtils.raw(p, \"&e-=-=-=- &7Availible &bClanArena &7Commands: &e-=-=-=-\");\n for (final Map.Entry<String, CmdProperties> entry : commandClasses.entrySet()) {\n if (p.hasPermission(entry.getValue().getPermission())) {\n MsgUtils.sendMessage(p, \"/ca \" + MsgUtils.Colors.VARIABLE + entry.getKey() + MsgUtils.Colors.INFO + \": \" + entry.getValue().getHelpMessage());\n }\n }\n return true;\n }\n } else {\n // Sender isn't a player\n MsgUtils.error (sender, \"Sorry! No console commands are available yet :(\");\n return true;\n }\n }",
"@Override\n public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {\n if (sender instanceof Player) {\n final Player player = (Player) sender;\n // PLAYER COMMANDS\n for(Map.Entry<String, CommandAction> entry : commands.entrySet()) {\n if (cmd.getName().equalsIgnoreCase(entry.getKey())) {\n entry.getValue().run(sender, cmd, label, args, player);\n }\n }\n\n // MODERATOR COMMANDS\n for(Map.Entry<String, CommandAction> entry : modCommands.entrySet()) {\n if (cmd.getName().equalsIgnoreCase(entry.getKey())) {\n if (isModerator(player)) {\n entry.getValue().run(sender, cmd, label, args, player);\n } else {\n sender.sendMessage(\"You don't have enough permissions to execute this command!\");\n }\n }\n }\n }\n return true;\n }",
"@Override\n public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\n if (sender instanceof Player) {\n Player p = (Player) sender;\n return executeGamemodeCommand(p, aliasMap.get(label.toLowerCase()), args);\n } else if (sender instanceof ConsoleCommandSender){\n ConsoleCommandSender console = Bukkit.getServer().getConsoleSender();\n return executeGamemodeCommand(console, aliasMap.get(label.toLowerCase()), args);\n }\n return false;\n }",
"@Override\n public boolean onCommand(CommandSender sender, Command command, String alias, String[] args) {\n if (sender instanceof Player)\n switch (args.length) {\n case 0 -> {\n //send to all players\n Bukkit.broadcastMessage(WorldUtils.Messages.positionMessage(\n sender.getName(), ((Player) sender).getLocation()));\n return true;\n }\n case 1 -> {\n //send to one player\n try {\n Objects.requireNonNull(Bukkit.getPlayer(args[0])).sendMessage(WorldUtils.Messages.positionMessage(\n sender.getName(), ((Player) sender).getLocation()));\n } catch (NullPointerException e) {\n WorldUtils.Messages.playerNotFound(sender);\n }\n return true;\n }\n }\n else {\n WorldUtils.Messages.notConsole(sender);\n return true;\n }\n return false;\n }",
"@Override\n\tpublic boolean onCommand(CommandSender sender, Command command, String label, String[] args)\n\t{\n\t\tif ((sender instanceof Player && !allowPlayer) || (!(sender instanceof Player) && !allowConsole))\n\t\t{\n\t\t\tsender.sendMessage(ChatUtility.getSettings().nickMessage + \"You can't do that from here\");\n\t\t\treturn false;\n\t\t}\n\t\tif (permission == null || sender.hasPermission(permission))\n\t\t\tonInvoked(sender, args);\n\t\telse\n\t\t\tsender.sendMessage(ChatUtility.getSettings().nickMessage + \"You don't have permission to do this\");\n\t\treturn true;\n\t}",
"public boolean onCommand(CommandSender sender, Command command, String label, String[] args)\n {\n // get the player from the server.\n String playerName = sender.getName(); \n Player player = this.getServer().getPlayerExact(playerName);\n \n if (player != null)\n {\n String name = command.getName();\n if (name.equals(\"afk\")) \n {\n this.handleAFKCommand(player, playerName);\n return true;\n }\n else if (name.equals(\"list\"))\n {\n this.handleListCommand(player);\n return true;\n }\n }\n\n return false;\n }",
"@Override\n public boolean isPlayer() {\n return super.isPlayer();\n }",
"@Override\n\tpublic boolean execute(AdrundaalGods plugin, CommandSender sender, String... args) {\n\t String arg1 = (args.length > 0 ? args[0] : \"\");\n\t\t\n\t if(Bukkit.getPlayer(arg1) == null && !arg1.isEmpty()) {\n\t \tMessenger.sendMessage(sender, Message.playerNotFound);\n\t \treturn true;\n\t }\n\t \n\t Player p = (Bukkit.getPlayer(arg1) != null ? Bukkit.getPlayer(arg1) : (Player) sender);\n\t AGPlayer agp = AGManager.getPlayerHandler().getAGPlayer(p.getName());\n\t\tif(agp == null) {\n\t\t\tMessenger.sendMessage(sender, Message.playerNotFound);\n\t\t\treturn true;\t\n\t\t}\t\n\t\tMessenger.sendMessage(sender, Message.shrinesFound, \"%found%\", agp.getFoundShrines().size()+\"\", \"%max%\", AGManager.getShrineHandler().getShrines().size()+\"\");\n\t\treturn true;\n\t}",
"private void checkArgTypes() {\n Parameter[] methodParams = method.getParameters();\n if(methodParams.length != arguments.length + 1) {\n throw new InvalidCommandException(\"Incorrect number of arguments on command method. Commands must have 1 argument for the sender and one argument per annotated argument\");\n }\n\n Class<?> firstParamType = methodParams[0].getType();\n\n boolean isFirstArgValid = true;\n if(requiresPlayer) {\n if(firstParamType.isAssignableFrom(IPlayerData.class)) {\n usePlayerData = true; // Command methods annotated with a player requirement can also use IPlayerData as their first argument\n } else if(!firstParamType.isAssignableFrom(Player.class)) {\n isFirstArgValid = false; // Otherwise, set it to invalid if we can't assign it from a player\n }\n } else if(!firstParamType.isAssignableFrom(CommandSender.class)) { // Non player requirement annotated commands must just take a CommandSender\n isFirstArgValid = false;\n }\n\n if(!isFirstArgValid) {\n throw new InvalidCommandException(\"The first argument for a command must be a CommandSender. (or a Player/IPlayerData if annotated with a player requirement)\");\n }\n }",
"public boolean isPlayer() {\n return player != null;\n }",
"public boolean canCommandSenderUseCommand(int p_70003_1_, String p_70003_2_)\n {\n return true;\n }",
"public PlayerHelper(NerdPlotPlugin plugin, CommandSender sender) {\n\t\t// Setup plugin\n\t\tthis.plugin = plugin;\n\t\twg = plugin.getWG();\n\t\twe = plugin.getWE();\n\t\t\n\t\t// Are we a player?\n \tif (!(sender instanceof Player)) {\n \t\tsender.sendMessage(\"Who are you? Your not a player.\");\n \t\treturn;\n \t}\n \tplayer = (Player)sender;\n \tplayerName = player.getName();\n \tplayerID = player.getUniqueId();\n \tworld = player.getWorld();\n \tworldName = world.getName();\n \t\n \t// Is WG setup in this world?\n \trm = Util.getWorldGuardRegionManager(this.world);\n \tif (rm == null) {\n \t\tsender.sendMessage(ChatColor.RED + \"WorldGuard is not enabled in this world\");\n \t\treturn;\n \t}\n\n \tplot = null;\n \tareaName = null;\n \tinitialized = true;\n\t}",
"public boolean isOwner(EntityPlayer player) {\n\t\treturn player.getDisplayName().equals(owner) /*|| Platform.worldType() != Platform.WorldMode.MP*/;\r\n\t}",
"@Override\n public boolean hasPermission(CommandSender sender, String pNode) {\n if (!(sender instanceof Player)) return true;\n return hasPermission((Player) sender, pNode);\n }",
"@Override\n public void processPlayer(Player sender, CDPlayer playerData, String[] args) {\n }",
"@Override\n\tpublic boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {\n\n\t\tboolean playerCanDo = false;\n\t\tboolean isConsole = false;\n\t\tPlayer senderPlayer = null, targetPlayer = null;\n\t\tGroup senderGroup = null;\n\t\tUser senderUser = null;\n\t\tboolean isOpOverride = config.isOpOverride();\n\t\tboolean isAllowCommandBlocks = config.isAllowCommandBlocks();\n\t\t\n\t\t// PREVENT GM COMMANDS BEING USED ON COMMANDBLOCKS\n\t\tif (sender instanceof BlockCommandSender && !isAllowCommandBlocks) {\n\t\t\tBlock block = ((BlockCommandSender)sender).getBlock();\n\t\t\tGroupManager.logger.warning(ChatColor.RED + \"GM Commands can not be called from CommandBlocks\");\n\t\t\tGroupManager.logger.warning(ChatColor.RED + \"Location: \" + ChatColor.GREEN + block.getWorld().getName() + \", \" + block.getX() + \", \" + block.getY() + \", \" + block.getZ());\n\t\t \treturn true;\n\t\t}\n\n\t\t// DETERMINING PLAYER INFORMATION\n\t\tif (sender instanceof Player) {\n\t\t\tsenderPlayer = (Player) sender;\n\n\t\t\tif (!lastError.isEmpty() && !commandLabel.equalsIgnoreCase(\"manload\")) {\n\t\t\t\tsender.sendMessage(ChatColor.RED + \"All commands are locked due to an error. \" + ChatColor.BOLD + \"\" + ChatColor.UNDERLINE + \"Check plugins/groupmanager/error.log or console\" + ChatColor.RESET + \"\" + ChatColor.RED + \" and then try a '/manload'.\");\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tsenderUser = worldsHolder.getWorldData(senderPlayer).getUser(senderPlayer.getUniqueId().toString());\n\t\t\tsenderGroup = senderUser.getGroup();\n\t\t\tisOpOverride = (isOpOverride && (senderPlayer.isOp() || worldsHolder.getWorldPermissions(senderPlayer).has(senderPlayer, \"groupmanager.op\")));\n\n\t\t\tif (isOpOverride || worldsHolder.getWorldPermissions(senderPlayer).has(senderPlayer, \"groupmanager.\" + cmd.getName())) {\n\t\t\t\tplayerCanDo = true;\n\t\t\t}\n\t\t} else {\n\n\t\t\tif (!lastError.isEmpty() && !commandLabel.equalsIgnoreCase(\"manload\")) {\n\t\t\t\tsender.sendMessage(ChatColor.RED + \"All commands are locked due to an error. \" + ChatColor.BOLD + \"\" + ChatColor.UNDERLINE + \"Check plugins/groupmanager/error.log or console\" + ChatColor.RESET + \"\" + ChatColor.RED + \" and then try a '/manload'.\");\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tisConsole = true;\n\t\t}\n\n\t\t// PERMISSIONS FOR COMMAND BEING LOADED\n\t\tdataHolder = null;\n\t\tpermissionHandler = null;\n\n\t\tif (senderPlayer != null) {\n\t\t\tdataHolder = worldsHolder.getWorldData(senderPlayer);\n\t\t}\n\n\t\tString selectedWorld = selectedWorlds.get(sender.getName());\n\t\tif (selectedWorld != null) {\n\t\t\tdataHolder = worldsHolder.getWorldData(selectedWorld);\n\t\t}\n\n\t\tif (dataHolder != null) {\n\t\t\tpermissionHandler = dataHolder.getPermissionsHandler();\n\t\t}\n\n\t\t// VARIABLES USED IN COMMANDS\n\n\t\tint count;\n\t\tPermissionCheckResult permissionResult = null;\n\t\tArrayList<User> removeList = null;\n\t\tString auxString = null;\n\t\tList<String> match = null;\n\t\tUser auxUser = null;\n\t\tGroup auxGroup = null;\n\t\tGroup auxGroup2 = null;\n\n\t\tGroupManagerPermissions execCmd = null;\n\t\ttry {\n\t\t\texecCmd = GroupManagerPermissions.valueOf(cmd.getName());\n\t\t} catch (Exception e) {\n\t\t\t// this error happened once with someone. now im prepared... i think\n\t\t\tGroupManager.logger.severe(\"===================================================\");\n\t\t\tGroupManager.logger.severe(\"= ERROR REPORT START =\");\n\t\t\tGroupManager.logger.severe(\"===================================================\");\n\t\t\tGroupManager.logger.severe(\"= COPY AND PASTE THIS TO A GROUPMANAGER DEVELOPER =\");\n\t\t\tGroupManager.logger.severe(\"===================================================\");\n\t\t\tGroupManager.logger.severe(this.getDescription().getName());\n\t\t\tGroupManager.logger.severe(this.getDescription().getVersion());\n\t\t\tGroupManager.logger.severe(\"An error occured while trying to execute command:\");\n\t\t\tGroupManager.logger.severe(cmd.getName());\n\t\t\tGroupManager.logger.severe(\"With \" + args.length + \" arguments:\");\n\t\t\tfor (String ar : args) {\n\t\t\t\tGroupManager.logger.severe(ar);\n\t\t\t}\n\t\t\tGroupManager.logger.severe(\"The field '\" + cmd.getName() + \"' was not found in enum.\");\n\t\t\tGroupManager.logger.severe(\"And could not be parsed.\");\n\t\t\tGroupManager.logger.severe(\"FIELDS FOUND IN ENUM:\");\n\t\t\tfor (GroupManagerPermissions val : GroupManagerPermissions.values()) {\n\t\t\t\tGroupManager.logger.severe(val.name());\n\t\t\t}\n\t\t\tGroupManager.logger.severe(\"===================================================\");\n\t\t\tGroupManager.logger.severe(\"= ERROR REPORT ENDED =\");\n\t\t\tGroupManager.logger.severe(\"===================================================\");\n\t\t\tsender.sendMessage(\"An error occurred. Ask the admin to take a look at the console.\");\n\t\t}\n\n\t\tif (isConsole || playerCanDo) {\n\t\t\tswitch (execCmd) {\n\t\t\tcase manuadd:\n\n\t\t\t\t// Validating arguments\n\t\t\t\tif ((args.length != 2) && (args.length != 3)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manuadd <player> <group> | optional [world])\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\t// Select the relevant world (if specified)\n\t\t\t\tif (args.length == 3) {\n\t\t\t\t\tdataHolder = worldsHolder.getWorldData(args[2]);\n\t\t\t\t\tpermissionHandler = dataHolder.getPermissionsHandler();\n\t\t\t\t}\n\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[1]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[1] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (auxGroup.isGlobal()) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Players may not be members of GlobalGroups directly.\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\t// Validating permissions\n\t\t\t\tif (!isConsole && !isOpOverride && (senderGroup != null ? permissionHandler.inGroup(auxUser.getUUID(), senderGroup.getName()) : false)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Can't modify a player with the same permissions as you, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!isConsole && !isOpOverride && (permissionHandler.hasGroupInInheritance(auxGroup, senderGroup.getName()))) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"The destination group can't be the same as yours, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!isConsole && !isOpOverride && (!permissionHandler.inGroup(senderUser.getUUID(), auxUser.getGroupName()) || !permissionHandler.inGroup(senderUser.getUUID(), auxGroup.getName()))) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player involving a group that you don't inherit.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\t// Seems OK\n\t\t\t\tauxUser.setGroup(auxGroup);\n\t\t\t\tif (!sender.hasPermission(\"groupmanager.notify.other\") || (isConsole))\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You changed player '\" + auxUser.getLastName() + \"' group to '\" + auxGroup.getName() + \"' in world '\" + dataHolder.getName() + \"'.\");\n\n\t\t\t\treturn true;\n\n\t\t\tcase manudel:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manudel <player>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\tif (!isConsole && !isOpOverride && (senderGroup != null ? permissionHandler.inGroup(auxUser.getUUID(), senderGroup.getName()) : false)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player with same permissions as you, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tdataHolder.removeUser(auxUser.getUUID());\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You changed player '\" + auxUser.getLastName() + \"' to default settings.\");\n\n\t\t\t\t// If the player is online, this will create new data for the user.\n\t\t\t\tif(auxUser.getUUID() != null) {\n\t\t\t\t\ttargetPlayer = this.getServer().getPlayer(UUID.fromString(auxUser.getUUID()));\n\t\t\t\t\tif (targetPlayer != null)\n\t\t\t\t\t\tBukkitPermissions.updatePermissions(targetPlayer);\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\n\t\t\tcase manuaddsub:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender)) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Couldn't retrieve your world. World selection is needed.\");\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Use /manselect <world>\");\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manuaddsub <player> <group>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[1]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[1] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\tif (!isConsole && !isOpOverride && (senderGroup != null ? permissionHandler.inGroup(auxUser.getUUID(), senderGroup.getName()) : false)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player with same permissions as you, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!isConsole && !isOpOverride && (permissionHandler.hasGroupInInheritance(auxGroup, senderGroup.getName()))) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"The sub-group can't be the same as yours, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!isConsole && !isOpOverride && (!permissionHandler.inGroup(senderUser.getUUID(), auxUser.getGroupName()) || !permissionHandler.inGroup(senderUser.getUUID(), auxGroup.getName()))) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player involving a group that you don't inherit.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tif (auxUser.addSubGroup(auxGroup))\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You added subgroup '\" + auxGroup.getName() + \"' to player '\" + auxUser.getLastName() + \"'.\");\n\t\t\t\telse\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"The subgroup '\" + auxGroup.getName() + \"' is already available to '\" + auxUser.getLastName() + \"'.\");\n\n\t\t\t\treturn true;\n\n\t\t\tcase manudelsub:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manudelsub <user> <group>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[1]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[1] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\t// Validating permission\n\t\t\t\tif (!isConsole && !isOpOverride && (senderGroup != null ? permissionHandler.inGroup(auxUser.getUUID(), senderGroup.getName()) : false)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player with same permissions as you, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tauxUser.removeSubGroup(auxGroup);\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You removed subgroup '\" + auxGroup.getName() + \"' from player '\" + auxUser.getLastName() + \"' list.\");\n\n\t\t\t\t// targetPlayer = this.getServer().getPlayer(auxUser.getName());\n\t\t\t\t// if (targetPlayer != null)\n\t\t\t\t// BukkitPermissions.updatePermissions(targetPlayer);\n\n\t\t\t\treturn true;\n\n\t\t\tcase mangadd:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mangadd <group>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup != null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group already exists!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tauxGroup = dataHolder.createGroup(args[0]);\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You created a group named: \" + auxGroup.getName());\n\n\t\t\t\treturn true;\n\n\t\t\tcase mangdel:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mangdel <group>)\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tdataHolder.removeGroup(auxGroup.getName());\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You deleted a group named \" + auxGroup.getName() + \", it's users are default group now.\");\n\n\t\t\t\tBukkitPermissions.updateAllPlayers();\n\n\t\t\t\treturn true;\n\n\t\t\tcase manuaddp:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length < 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manuaddp <player> <permission> [permission2] [permission3]...)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Validating your permissions\n\t\t\t\tif (!isConsole && !isOpOverride && (senderGroup != null ? permissionHandler.inGroup(auxUser.getUUID(), senderGroup.getName()) : false)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Can't modify player with same group than you, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (int i = 1; i < args.length; i++)\n\t\t\t\t{\n\t\t\t\t\tauxString = args[i].replace(\"'\", \"\");\n\t\t\t\t\n\t\t\t\t\tpermissionResult = permissionHandler.checkFullUserPermission(senderUser, auxString);\n\t\t\t\t\tif (!isConsole && !isOpOverride && (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND) || permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION))) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't add a permission you don't have: '\" + auxString + \"'\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t// Validating permissions of user\n\t\t\t\t\tpermissionResult = permissionHandler.checkUserOnlyPermission(auxUser, auxString);\n\t\t\t\t\tif (checkPermissionExists(sender, auxString, permissionResult, \"user\")) \n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t// Seems Ok\n\t\t\t\t\tauxUser.addPermission(auxString);\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You added '\" + auxString + \"' to player '\" + auxUser.getLastName() + \"' permissions.\");\n\t\t\t\t}\n\n\n\t\t\t\ttargetPlayer = this.getServer().getPlayer(auxUser.getLastName());\n\t\t\t\tif (targetPlayer != null)\n\t\t\t\t\tBukkitPermissions.updatePermissions(targetPlayer);\n\n\t\t\t\treturn true;\n\n\t\t\tcase manudelp:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length < 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manudelp <player> <permission> [permission2] [permission3]...)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (int i = 1; i < args.length; i++)\n\t\t\t\t{\n\t\t\t\t\tauxString = args[i].replace(\"'\", \"\");\n\t\t\t\t\n\t\t\t\t\tif (!isConsole && !isOpOverride && (senderGroup != null ? permissionHandler.inGroup(auxUser.getUUID(), senderGroup.getName()) : false)) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player with same group as you, or higher.\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t// Validating your permissions\n\t\t\t\t\tpermissionResult = permissionHandler.checkFullUserPermission(senderUser, auxString);\n\t\t\t\t\tif (!isConsole && !isOpOverride && (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND) || permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION))) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't remove a permission you don't have: '\" + auxString + \"'\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t// Validating permissions of user\n\t\t\t\t\tpermissionResult = permissionHandler.checkUserOnlyPermission(auxUser, auxString);\n\t\t\t\t\tif (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND)) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"The user doesn't have direct access to that permission: '\" + auxString + \"'\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (!auxUser.hasSamePermissionNode(auxString)) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"This permission node doesn't match any node.\");\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"But might match node: \" + permissionResult.accessLevel);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tauxUser.removePermission(auxString);\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You removed '\" + auxString + \"' from player '\" + auxUser.getLastName() + \"' permissions.\");\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\n\t\t\t\ttargetPlayer = this.getServer().getPlayer(auxUser.getLastName());\n\t\t\t\tif (targetPlayer != null)\n\t\t\t\t\tBukkitPermissions.updatePermissions(targetPlayer);\n\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\tcase manuclearp:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manuclearp <player>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\t// Validating your permissions\n\t\t\t\tif (!isConsole && !isOpOverride && (senderGroup != null ? permissionHandler.inGroup(auxUser.getUUID(), senderGroup.getName()) : false)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player with same group as you, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tfor (String perm : auxUser.getPermissionList()) {\n\t\t\t\t\tpermissionResult = permissionHandler.checkFullUserPermission(senderUser, perm);\n\t\t\t\t\tif (!isConsole && !isOpOverride && (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND) || permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION))) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't remove a permission you don't have: '\" + perm + \"'.\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tauxUser.removePermission(perm);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You removed all permissions from player '\" + auxUser.getLastName() + \"'.\");\n\n\t\t\t\ttargetPlayer = this.getServer().getPlayer(auxUser.getLastName());\n\t\t\t\tif (targetPlayer != null)\n\t\t\t\t\tBukkitPermissions.updatePermissions(targetPlayer);\n\n\t\t\t\treturn true;\n\n\t\t\tcase manulistp:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif ((args.length == 0) || (args.length > 2)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manulistp <player> (+))\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\t// Seems OK\n\t\t\t\tauxString = \"\";\n\t\t\t\tfor (String perm : auxUser.getPermissionList()) {\n\t\t\t\t\tauxString += perm + \", \";\n\t\t\t\t}\n\t\t\t\tif (auxString.lastIndexOf(\",\") > 0) {\n\t\t\t\t\tauxString = auxString.substring(0, auxString.lastIndexOf(\",\"));\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The player '\" + auxUser.getLastName() + \"' has following permissions: \" + ChatColor.WHITE + auxString);\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"And all permissions from group: \" + auxUser.getGroupName());\n\t\t\t\t\tauxString = \"\";\n\t\t\t\t\tfor (String subGroup : auxUser.subGroupListStringCopy()) {\n\t\t\t\t\t\tauxString += subGroup + \", \";\n\t\t\t\t\t}\n\t\t\t\t\tif (auxString.lastIndexOf(\",\") > 0) {\n\t\t\t\t\t\tauxString = auxString.substring(0, auxString.lastIndexOf(\",\"));\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"And all permissions from subgroups: \" + auxString);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The player '\" + auxUser.getLastName() + \"' has no specific permissions.\");\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Only all permissions from group: \" + auxUser.getGroupName());\n\t\t\t\t\tauxString = \"\";\n\t\t\t\t\tfor (String subGroup : auxUser.subGroupListStringCopy()) {\n\t\t\t\t\t\tauxString += subGroup + \", \";\n\t\t\t\t\t}\n\t\t\t\t\tif (auxString.lastIndexOf(\",\") > 0) {\n\t\t\t\t\t\tauxString = auxString.substring(0, auxString.lastIndexOf(\",\"));\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"And all permissions from subgroups: \" + auxString);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// bukkit perms\n\t\t\t\tif ((args.length == 2) && (args[1].equalsIgnoreCase(\"+\"))) {\n\t\t\t\t\ttargetPlayer = this.getServer().getPlayer(auxUser.getLastName());\n\t\t\t\t\tif (targetPlayer != null) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Superperms reports: \");\n\t\t\t\t\t\tfor (String line : BukkitPermissions.listPerms(targetPlayer))\n\t\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + line);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\n\t\t\tcase manucheckp:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manucheckp <player> <permission>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tauxString = args[1].replace(\"'\", \"\");\n\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\ttargetPlayer = this.getServer().getPlayer(auxUser.getLastName());\n\t\t\t\t// Validating permission\n\t\t\t\tpermissionResult = permissionHandler.checkFullGMPermission(auxUser, auxString, false);\n\n\t\t\t\tif (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND)) {\n\t\t\t\t\t// No permissions found in GM so fall through and check Bukkit.\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The player doesn't have access to that permission\");\n\n\t\t\t\t} else {\n\t\t\t\t\t// This permission was found in groupmanager.\n\t\t\t\t\tif (permissionResult.owner instanceof User) {\n\t\t\t\t\t\tif (permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION)) {\n\t\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The user has directly a negation node for that permission.\");\n\t\t\t\t\t\t} else if (permissionResult.resultType.equals(PermissionCheckResult.Type.EXCEPTION)) {\n\t\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The user has directly an Exception node for that permission.\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The user has directly this permission.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Permission Node: \" + permissionResult.accessLevel);\n\t\t\t\t\t} else if (permissionResult.owner instanceof Group) {\n\t\t\t\t\t\tif (permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION)) {\n\t\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The user inherits a negation permission from group: \" + permissionResult.owner.getLastName());\n\t\t\t\t\t\t} else if (permissionResult.resultType.equals(PermissionCheckResult.Type.EXCEPTION)) {\n\t\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The user inherits an Exception permission from group: \" + permissionResult.owner.getLastName());\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The user inherits the permission from group: \" + permissionResult.owner.getLastName());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Permission Node: \" + permissionResult.accessLevel);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// superperms\n\t\t\t\tif (targetPlayer != null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"SuperPerms reports Node: \" + targetPlayer.hasPermission(args[1]) + ((!targetPlayer.hasPermission(args[1]) && targetPlayer.isPermissionSet(args[1])) ? \" (Negated)\": \"\"));\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\n\t\t\tcase mangaddp:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length < 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mangaddp <group> <permission> [permission2] [permission3]...)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (int i = 1; i < args.length; i++)\n\t\t\t\t{\n\t\t\t\t\tauxString = args[i].replace(\"'\", \"\");\n\t\t\t\t\n\t\t\t\t\t// Validating your permissions\n\t\t\t\t\tpermissionResult = permissionHandler.checkFullUserPermission(senderUser, auxString);\n\t\t\t\t\tif (!isConsole && !isOpOverride && (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND) || permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION))) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't add a permission you don't have: '\" + auxString + \"'\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t// Validating permissions of user\n\t\t\t\t\tpermissionResult = permissionHandler.checkGroupOnlyPermission(auxGroup, auxString);\n\t\t\t\t\tif (checkPermissionExists(sender, auxString, permissionResult, \"group\")) \n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t// Seems OK\n\t\t\t\t\tauxGroup.addPermission(auxString);\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You added '\" + auxString + \"' to group '\" + auxGroup.getName() + \"' permissions.\");\n\t\t\t\t}\n\n\t\t\t\tBukkitPermissions.updateAllPlayers();\n\n\t\t\t\treturn true;\n\n\t\t\tcase mangdelp:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length < 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mangdelp <group> <permission> [permission2] [permission3]...)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tfor (int i = 1; i < args.length; i++)\n\t\t\t\t{\n\t\t\t\t\tauxString = args[i].replace(\"'\", \"\");\n\t\t\t\t\n\t\t\t\t\t// Validating your permissions\n\t\t\t\t\tpermissionResult = permissionHandler.checkFullUserPermission(senderUser, auxString);\n\t\t\t\t\tif (!isConsole && !isOpOverride && (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND) || permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION))) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Can't remove a permission you don't have: '\" + auxString + \"'\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t// Validating permissions of user\n\t\t\t\t\tpermissionResult = permissionHandler.checkGroupOnlyPermission(auxGroup, auxString);\n\t\t\t\t\tif (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND)) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The group doesn't have direct access to that permission: '\" + auxString + \"'\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (!auxGroup.hasSamePermissionNode(auxString)) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"This permission node doesn't match any node.\");\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"But might match node: \" + permissionResult.accessLevel);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t// Seems OK\n\t\t\t\t\tauxGroup.removePermission(auxString);\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You removed '\" + auxString + \"' from group '\" + auxGroup.getName() + \"' permissions.\");\n\t\t\t\t}\n\n\t\t\t\tBukkitPermissions.updateAllPlayers();\n\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\tcase mangclearp:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mangclearp <group>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (String perm : auxGroup.getPermissionList()) {\n\t\t\t\t\tpermissionResult = permissionHandler.checkFullUserPermission(senderUser, perm);\n\t\t\t\t\tif (!isConsole && !isOpOverride && (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND) || permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION))) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Can't remove a permission you don't have: '\" + perm + \"'.\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tauxGroup.removePermission(perm);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You removed all permissions from group '\" + auxGroup.getName() + \"'.\");\n\n\t\t\t\tBukkitPermissions.updateAllPlayers();\n\n\t\t\t\treturn true;\n\n\t\t\tcase manglistp:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manglistp <group>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\n\t\t\t\t// Seems OK\n\t\t\t\tauxString = \"\";\n\t\t\t\tfor (String perm : auxGroup.getPermissionList()) {\n\t\t\t\t\tauxString += perm + \", \";\n\t\t\t\t}\n\t\t\t\tif (auxString.lastIndexOf(\",\") > 0) {\n\t\t\t\t\tauxString = auxString.substring(0, auxString.lastIndexOf(\",\"));\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The group '\" + auxGroup.getName() + \"' has following permissions: \" + ChatColor.WHITE + auxString);\n\t\t\t\t\tauxString = \"\";\n\t\t\t\t\tfor (String grp : auxGroup.getInherits()) {\n\t\t\t\t\t\tauxString += grp + \", \";\n\t\t\t\t\t}\n\t\t\t\t\tif (auxString.lastIndexOf(\",\") > 0) {\n\t\t\t\t\t\tauxString = auxString.substring(0, auxString.lastIndexOf(\",\"));\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"And all permissions from groups: \" + auxString);\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The group '\" + auxGroup.getName() + \"' has no specific permissions.\");\n\t\t\t\t\tauxString = \"\";\n\t\t\t\t\tfor (String grp : auxGroup.getInherits()) {\n\t\t\t\t\t\tauxString += grp + \", \";\n\t\t\t\t\t}\n\t\t\t\t\tif (auxString.lastIndexOf(\",\") > 0) {\n\t\t\t\t\t\tauxString = auxString.substring(0, auxString.lastIndexOf(\",\"));\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Only all permissions from groups: \" + auxString);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\treturn true;\n\n\t\t\tcase mangcheckp:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mangcheckp <group> <permission>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tauxString = args[1];\n\t\t\t\tif (auxString.startsWith(\"'\") && auxString.endsWith(\"'\"))\n\t\t\t\t{\n\t\t\t\t\tauxString = auxString.substring(1, auxString.length() - 1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\tpermissionResult = permissionHandler.checkGroupPermissionWithInheritance(auxGroup, auxString);\n\t\t\t\tif (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The group doesn't have access to that permission\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\t// auxString = permissionHandler.checkUserOnlyPermission(auxUser, args[1]);\n\t\t\t\tif (permissionResult.owner instanceof Group) {\n\t\t\t\t\tif (permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION)) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The group inherits the negation permission from group: \" + permissionResult.owner.getLastName());\n\t\t\t\t\t} else if (permissionResult.resultType.equals(PermissionCheckResult.Type.EXCEPTION)) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The group inherits an Exception permission from group: \" + permissionResult.owner.getLastName());\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The group inherits the permission from group: \" + permissionResult.owner.getLastName());\n\t\t\t\t\t}\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Permission Node: \" + permissionResult.accessLevel);\n\n\t\t\t\t}\n\t\t\t\treturn true;\n\n\t\t\tcase mangaddi:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mangaddi <group1> <group2>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tauxGroup2 = dataHolder.getGroup(args[1]);\n\t\t\t\tif (auxGroup2 == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[1] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (auxGroup.isGlobal()) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"GlobalGroups do NOT support inheritance.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\t// Validating permission\n\t\t\t\tif (permissionHandler.hasGroupInInheritance(auxGroup, auxGroup2.getName())) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Group \" + auxGroup.getName() + \" already inherits \" + auxGroup2.getName() + \" (might not be directly)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tauxGroup.addInherits(auxGroup2);\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Group \" + auxGroup2.getName() + \" is now in \" + auxGroup.getName() + \" inheritance list.\");\n\n\t\t\t\tBukkitPermissions.updateAllPlayers();\n\n\t\t\t\treturn true;\n\n\t\t\tcase mangdeli:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mangdeli <group1> <group2>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tauxGroup2 = dataHolder.getGroup(args[1]);\n\t\t\t\tif (auxGroup2 == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[1] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (auxGroup.isGlobal()) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"GlobalGroups do NOT support inheritance.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\t// Validating permission\n\t\t\t\tif (!permissionHandler.hasGroupInInheritance(auxGroup, auxGroup2.getName())) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Group \" + auxGroup.getName() + \" does not inherit \" + auxGroup2.getName() + \".\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!auxGroup.getInherits().contains(auxGroup2.getName())) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Group \" + auxGroup.getName() + \" does not inherit \" + auxGroup2.getName() + \" directly.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tauxGroup.removeInherits(auxGroup2.getName());\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Group \" + auxGroup2.getName() + \" was removed from \" + auxGroup.getName() + \" inheritance list.\");\n\n\t\t\t\tBukkitPermissions.updateAllPlayers();\n\n\t\t\t\treturn true;\n\n\t\t\tcase manuaddv:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length < 3) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manuaddv <user> <variable> <value>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\t// Seems OK\n\t\t\t\tauxString = \"\";\n\t\t\t\tfor (int i = 2; i < args.length; i++) {\n\t\t\t\t\tauxString += args[i];\n\t\t\t\t\tif ((i + 1) < args.length) {\n\t\t\t\t\t\tauxString += \" \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tauxString = auxString.replace(\"'\", \"\");\n\t\t\t\tauxUser.getVariables().addVar(args[1], Variables.parseVariableValue(auxString));\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Variable \" + ChatColor.GOLD + args[1] + ChatColor.YELLOW + \":'\" + ChatColor.GREEN + auxString + ChatColor.YELLOW + \"' added to the user \" + auxUser.getLastName());\n\n\t\t\t\treturn true;\n\n\t\t\tcase manudelv:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manudelv <user> <variable>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\tif (!auxUser.getVariables().hasVar(args[1])) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"The user doesn't have directly that variable!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tauxUser.getVariables().removeVar(args[1]);\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Variable \" + ChatColor.GOLD + args[1] + ChatColor.YELLOW + \" removed from the user \" + ChatColor.GREEN + auxUser.getLastName());\n\n\t\t\t\treturn true;\n\n\t\t\tcase manulistv:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manulistv <user>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\t// Seems OK\n\t\t\t\tauxString = \"\";\n\t\t\t\tfor (String varKey : auxUser.getVariables().getVarKeyList()) {\n\t\t\t\t\tObject o = auxUser.getVariables().getVarObject(varKey);\n\t\t\t\t\tauxString += ChatColor.GOLD + varKey + ChatColor.WHITE + \":'\" + ChatColor.GREEN + o.toString() + ChatColor.WHITE + \"', \";\n\t\t\t\t}\n\t\t\t\tif (auxString.lastIndexOf(\",\") > 0) {\n\t\t\t\t\tauxString = auxString.substring(0, auxString.lastIndexOf(\",\"));\n\t\t\t\t}\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Variables of user \" + auxUser.getLastName() + \": \");\n\t\t\t\tsender.sendMessage(auxString + \".\");\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Plus all variables from group: \" + auxUser.getGroupName());\n\n\t\t\t\treturn true;\n\n\t\t\tcase manucheckv:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manucheckv <user> <variable>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\tauxGroup = auxUser.getGroup();\n\t\t\t\tauxGroup2 = permissionHandler.nextGroupWithVariable(auxGroup, args[1]);\n\n\t\t\t\tif (!auxUser.getVariables().hasVar(args[1])) {\n\t\t\t\t\t// Check sub groups\n\t\t\t\t\tif (!auxUser.isSubGroupsEmpty() && auxGroup2 == null)\n\t\t\t\t\t\tfor (Group subGroup : auxUser.subGroupListCopy()) {\n\t\t\t\t\t\t\tauxGroup2 = permissionHandler.nextGroupWithVariable(subGroup, args[1]);\n\t\t\t\t\t\t\tif (auxGroup2 != null)\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\tif (auxGroup2 == null) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The user doesn't have access to that variable!\");\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tif (auxUser.getVariables().hasVar(auxString)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The value of variable '\" + ChatColor.GOLD + args[1] + ChatColor.YELLOW + \"' is: '\" + ChatColor.GREEN + auxUser.getVariables().getVarObject(args[1]).toString() + ChatColor.WHITE + \"'\");\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"This user own directly the variable\");\n\t\t\t\t}\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The value of variable '\" + ChatColor.GOLD + args[1] + ChatColor.YELLOW + \"' is: '\" + ChatColor.GREEN + auxGroup2.getVariables().getVarObject(args[1]).toString() + ChatColor.WHITE + \"'\");\n\t\t\t\tif (!auxGroup.equals(auxGroup2)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"And the value was inherited from group: \" + ChatColor.GREEN + auxGroup2.getName());\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\n\t\t\tcase mangaddv:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length < 3) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mangaddv <group> <variable> <value>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (auxGroup.isGlobal()) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"GlobalGroups do NOT support Info Nodes.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\t// Seems OK\n\t\t\t\tauxString = \"\";\n\t\t\t\tfor (int i = 2; i < args.length; i++) {\n\t\t\t\t\tauxString += args[i];\n\t\t\t\t\tif ((i + 1) < args.length) {\n\t\t\t\t\t\tauxString += \" \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tauxString = auxString.replace(\"'\", \"\");\n\t\t\t\tauxGroup.getVariables().addVar(args[1], Variables.parseVariableValue(auxString));\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Variable \" + ChatColor.GOLD + args[1] + ChatColor.YELLOW + \":'\" + ChatColor.GREEN + auxString + ChatColor.YELLOW + \"' added to the group \" + auxGroup.getName());\n\n\t\t\t\treturn true;\n\n\t\t\tcase mangdelv:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mangdelv <group> <variable>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (auxGroup.isGlobal()) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"GlobalGroups do NOT support Info Nodes.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\tif (!auxGroup.getVariables().hasVar(args[1])) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"The group doesn't have directly that variable!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tauxGroup.getVariables().removeVar(args[1]);\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Variable \" + ChatColor.GOLD + args[1] + ChatColor.YELLOW + \" removed from the group \" + ChatColor.GREEN + auxGroup.getName());\n\n\t\t\t\treturn true;\n\n\t\t\tcase manglistv:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manglistv <group>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (auxGroup.isGlobal()) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"GlobalGroups do NOT support Info Nodes.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\t// Seems OK\n\t\t\t\tauxString = \"\";\n\t\t\t\tfor (String varKey : auxGroup.getVariables().getVarKeyList()) {\n\t\t\t\t\tObject o = auxGroup.getVariables().getVarObject(varKey);\n\t\t\t\t\tauxString += ChatColor.GOLD + varKey + ChatColor.WHITE + \":'\" + ChatColor.GREEN + o.toString() + ChatColor.WHITE + \"', \";\n\t\t\t\t}\n\t\t\t\tif (auxString.lastIndexOf(\",\") > 0) {\n\t\t\t\t\tauxString = auxString.substring(0, auxString.lastIndexOf(\",\"));\n\t\t\t\t}\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Variables of group \" + auxGroup.getName() + \": \");\n\t\t\t\tsender.sendMessage(auxString + \".\");\n\t\t\t\tauxString = \"\";\n\t\t\t\tfor (String grp : auxGroup.getInherits()) {\n\t\t\t\t\tauxString += grp + \", \";\n\t\t\t\t}\n\t\t\t\tif (auxString.lastIndexOf(\",\") > 0) {\n\t\t\t\t\tauxString = auxString.substring(0, auxString.lastIndexOf(\",\"));\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Plus all variables from groups: \" + auxString);\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\n\t\t\tcase mangcheckv:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mangcheckv <group> <variable>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (auxGroup.isGlobal()) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"GlobalGroups do NOT support Info Nodes.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\tauxGroup2 = permissionHandler.nextGroupWithVariable(auxGroup, args[1]);\n\t\t\t\tif (auxGroup2 == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"The group doesn't have access to that variable!\");\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The value of variable '\" + ChatColor.GOLD + args[1] + ChatColor.YELLOW + \"' is: '\" + ChatColor.GREEN + auxGroup2.getVariables().getVarObject(args[1]).toString() + ChatColor.WHITE + \"'\");\n\t\t\t\tif (!auxGroup.equals(auxGroup2)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"And the value was inherited from group: \" + ChatColor.GREEN + auxGroup2.getName());\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\n\t\t\tcase manwhois:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manwhois <player>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Name: \" + ChatColor.GREEN + auxUser.getLastName());\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Group: \" + ChatColor.GREEN + auxUser.getGroup().getName());\n\t\t\t\t// Compile a list of subgroups\n\t\t\t\tauxString = \"\";\n\t\t\t\tfor (String subGroup : auxUser.subGroupListStringCopy()) {\n\t\t\t\t\tauxString += subGroup + \", \";\n\t\t\t\t}\n\t\t\t\tif (auxString.lastIndexOf(\",\") > 0) {\n\t\t\t\t\tauxString = auxString.substring(0, auxString.lastIndexOf(\",\"));\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"subgroups: \" + auxString);\n\t\t\t\t}\n\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Overloaded: \" + ChatColor.GREEN + dataHolder.isOverloaded(auxUser.getUUID()));\n\t\t\t\tauxGroup = dataHolder.surpassOverload(auxUser.getUUID()).getGroup();\n\t\t\t\tif (!auxGroup.equals(auxUser.getGroup())) {\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Original Group: \" + ChatColor.GREEN + auxGroup.getName());\n\t\t\t\t}\n\t\t\t\t// victim.permissions.add(args[1]);\n\t\t\t\treturn true;\n\n\t\t\tcase tempadd:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/tempadd <player>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\tif (!isConsole && !isOpOverride && (senderGroup != null ? permissionHandler.inGroup(auxUser.getUUID(), senderGroup.getName()) : false)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Can't modify player with same permissions than you, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tif (overloadedUsers.get(dataHolder.getName().toLowerCase()) == null) {\n\t\t\t\t\toverloadedUsers.put(dataHolder.getName().toLowerCase(), new ArrayList<User>());\n\t\t\t\t}\n\t\t\t\tdataHolder.overloadUser(auxUser.getUUID());\n\t\t\t\toverloadedUsers.get(dataHolder.getName().toLowerCase()).add(dataHolder.getUser(auxUser.getUUID()));\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Player set to overload mode!\");\n\n\t\t\t\treturn true;\n\n\t\t\tcase tempdel:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/tempdel <player>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\tif (!isConsole && !isOpOverride && (senderGroup != null ? permissionHandler.inGroup(auxUser.getUUID(), senderGroup.getName()) : false)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player with same permissions as you, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tif (overloadedUsers.get(dataHolder.getName().toLowerCase()) == null) {\n\t\t\t\t\toverloadedUsers.put(dataHolder.getName().toLowerCase(), new ArrayList<User>());\n\t\t\t\t}\n\t\t\t\tdataHolder.removeOverload(auxUser.getUUID());\n\t\t\t\tif (overloadedUsers.get(dataHolder.getName().toLowerCase()).contains(auxUser)) {\n\t\t\t\t\toverloadedUsers.get(dataHolder.getName().toLowerCase()).remove(auxUser);\n\t\t\t\t}\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Player overload mode is now disabled.\");\n\n\t\t\t\treturn true;\n\n\t\t\tcase templist:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// WORKING\n\t\t\t\tauxString = \"\";\n\t\t\t\tremoveList = new ArrayList<User>();\n\t\t\t\tcount = 0;\n\t\t\t\tfor (User u : overloadedUsers.get(dataHolder.getName().toLowerCase())) {\n\t\t\t\t\tif (!dataHolder.isOverloaded(u.getUUID())) {\n\t\t\t\t\t\tremoveList.add(u);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tauxString += u.getLastName() + \", \";\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (count == 0) {\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"There are no users in overload mode.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tauxString = auxString.substring(0, auxString.lastIndexOf(\",\"));\n\t\t\t\tif (overloadedUsers.get(dataHolder.getName().toLowerCase()) == null) {\n\t\t\t\t\toverloadedUsers.put(dataHolder.getName().toLowerCase(), new ArrayList<User>());\n\t\t\t\t}\n\t\t\t\toverloadedUsers.get(dataHolder.getName().toLowerCase()).removeAll(removeList);\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \" \" + count + \" Users in overload mode: \" + ChatColor.WHITE + auxString);\n\n\t\t\t\treturn true;\n\n\t\t\tcase tempdelall:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// WORKING\n\t\t\t\tremoveList = new ArrayList<User>();\n\t\t\t\tcount = 0;\n\t\t\t\tfor (User u : overloadedUsers.get(dataHolder.getName().toLowerCase())) {\n\t\t\t\t\tif (dataHolder.isOverloaded(u.getUUID())) {\n\t\t\t\t\t\tdataHolder.removeOverload(u.getUUID());\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (count == 0) {\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"There are no users in overload mode.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (overloadedUsers.get(dataHolder.getName().toLowerCase()) == null) {\n\t\t\t\t\toverloadedUsers.put(dataHolder.getName().toLowerCase(), new ArrayList<User>());\n\t\t\t\t}\n\t\t\t\toverloadedUsers.get(dataHolder.getName().toLowerCase()).clear();\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \" \" + count + \"All users in overload mode are now normal again.\");\n\n\t\t\t\treturn true;\n\n\t\t\tcase mansave:\n\n\t\t\t\tboolean forced = false;\n\n\t\t\t\tif ((args.length == 1) && (args[0].equalsIgnoreCase(\"force\")))\n\t\t\t\t\tforced = true;\n\n\t\t\t\ttry {\n\t\t\t\t\tworldsHolder.saveChanges(forced);\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"All changes were saved.\");\n\t\t\t\t} catch (IllegalStateException ex) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + ex.getMessage());\n\t\t\t\t}\n\t\t\t\treturn true;\n\n\t\t\tcase manload:\n\n\t\t\t\t/**\n\t\t\t\t * Attempt to reload a specific world\n\t\t\t\t */\n\t\t\t\tif (args.length > 0) {\n\n\t\t\t\t\tif (!lastError.isEmpty()) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"All commands are locked due to an error. \" + ChatColor.BOLD + \"\" + ChatColor.UNDERLINE + \"Check plugins/groupmanager/error.log or console\" + ChatColor.RESET + \"\" + ChatColor.RED + \" and then try a '/manload'.\");\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\n\t\t\t\t\tauxString = \"\";\n\t\t\t\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\t\t\t\tauxString += args[i];\n\t\t\t\t\t\tif ((i + 1) < args.length) {\n\t\t\t\t\t\t\tauxString += \" \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tisLoaded = false; // Disable Bukkit Perms update and event triggers\n\n\t\t\t\t\tglobalGroups.load();\n\t\t\t\t\tworldsHolder.loadWorld(auxString);\n\n\t\t\t\t\tsender.sendMessage(\"The request to reload world '\" + auxString + \"' was attempted.\");\n\n\t\t\t\t\tisLoaded = true;\n\n\t\t\t\t\tBukkitPermissions.reset();\n\n\t\t\t\t} else {\n\n\t\t\t\t\t/**\n\t\t\t\t\t * Reload all settings and data as no world was specified.\n\t\t\t\t\t */\n\n\t\t\t\t\t/*\n\t\t\t\t\t * Attempting a fresh load.\n\t\t\t\t\t */\n\t\t\t\t\tonDisable(true);\n\t\t\t\t\tonEnable(true);\n\n\t\t\t\t\tsender.sendMessage(\"All settings and worlds were reloaded!\");\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * Fire an event as none will have been triggered in the reload.\n\t\t\t\t */\n\t\t\t\tif (GroupManager.isLoaded())\n\t\t\t\t\tGroupManager.getGMEventHandler().callEvent(GMSystemEvent.Action.RELOADED);\n\n\t\t\t\treturn true;\n\n\t\t\tcase listgroups:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// WORKING\n\t\t\t\tauxString = \"\";\n\t\t\t\tString auxString2 = \"\";\n\t\t\t\tfor (Group g : dataHolder.getGroupList()) {\n\t\t\t\t\tauxString += g.getName() + \", \";\n\t\t\t\t}\n\t\t\t\tfor (Group g : getGlobalGroups().getGroupList()) {\n\t\t\t\t\tauxString2 += g.getName() + \", \";\n\t\t\t\t}\n\t\t\t\tif (auxString.lastIndexOf(\",\") > 0) {\n\t\t\t\t\tauxString = auxString.substring(0, auxString.lastIndexOf(\",\"));\n\t\t\t\t}\n\t\t\t\tif (auxString2.lastIndexOf(\",\") > 0) {\n\t\t\t\t\tauxString2 = auxString2.substring(0, auxString2.lastIndexOf(\",\"));\n\t\t\t\t}\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Groups Available: \" + ChatColor.WHITE + auxString);\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"GlobalGroups Available: \" + ChatColor.WHITE + auxString2);\n\n\t\t\t\treturn true;\n\n\t\t\tcase manpromote:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manpromote <player> <group>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[1]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[1] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (auxGroup.isGlobal()) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Players may not be members of GlobalGroups directly.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\tif (!isConsole && !isOpOverride && (senderGroup != null ? permissionHandler.inGroup(auxUser.getUUID(), senderGroup.getName()) : false)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player with same permissions as you, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!isConsole && !isOpOverride && (permissionHandler.hasGroupInInheritance(auxGroup, senderGroup.getName()))) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"The destination group can't be the same as yours, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!isConsole && !isOpOverride && (!permissionHandler.inGroup(senderUser.getUUID(), auxUser.getGroupName()) || !permissionHandler.inGroup(senderUser.getUUID(), auxGroup.getName()))) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player involving a group that you don't inherit.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!permissionHandler.hasGroupInInheritance(auxUser.getGroup(), auxGroup.getName()) && !permissionHandler.hasGroupInInheritance(auxGroup, auxUser.getGroupName())) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player using groups with different heritage line.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!permissionHandler.hasGroupInInheritance(auxGroup, auxUser.getGroupName())) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"The new group must be a higher rank.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tauxUser.setGroup(auxGroup);\n\t\t\t\tif (!sender.hasPermission(\"groupmanager.notify.other\") || (isConsole))\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You changed \" + auxUser.getLastName() + \" group to \" + auxGroup.getName() + \".\");\n\n\t\t\t\treturn true;\n\n\t\t\tcase mandemote:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mandemote <player> <group>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[1]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[1] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (auxGroup.isGlobal()) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Players may not be members of GlobalGroups directly.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\tif (!isConsole && !isOpOverride && (senderGroup != null ? permissionHandler.inGroup(auxUser.getUUID(), senderGroup.getName()) : false)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player with same permissions as you, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!isConsole && !isOpOverride && (permissionHandler.hasGroupInInheritance(auxGroup, senderGroup.getName()))) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"The destination group can't be the same as yours, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!isConsole && !isOpOverride && (!permissionHandler.inGroup(senderUser.getUUID(), auxUser.getGroupName()) || !permissionHandler.inGroup(senderUser.getUUID(), auxGroup.getName()))) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player involving a group that you don't inherit.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!permissionHandler.hasGroupInInheritance(auxUser.getGroup(), auxGroup.getName()) && !permissionHandler.hasGroupInInheritance(auxGroup, auxUser.getGroupName())) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player using groups with different inheritage line.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (permissionHandler.hasGroupInInheritance(auxGroup, auxUser.getGroupName())) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"The new group must be a lower rank.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tauxUser.setGroup(auxGroup);\n\t\t\t\tif (!sender.hasPermission(\"groupmanager.notify.other\") || (isConsole))\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You changed \" + auxUser.getLastName() + \" group to \" + auxGroup.getName() + \".\");\n\n\t\t\t\treturn true;\n\n\t\t\tcase mantogglevalidate:\n\t\t\t\tvalidateOnlinePlayer = !validateOnlinePlayer;\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Validate if player is online, now set to: \" + Boolean.toString(validateOnlinePlayer));\n\t\t\t\tif (!validateOnlinePlayer) {\n\t\t\t\t\tsender.sendMessage(ChatColor.GOLD + \"From now on you can edit players that are not connected... BUT:\");\n\t\t\t\t\tsender.sendMessage(ChatColor.LIGHT_PURPLE + \"From now on you should type the whole name of the player, correctly.\");\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\tcase mantogglesave:\n\t\t\t\tif (scheduler == null) {\n\t\t\t\t\tenableScheduler();\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The auto-saving is enabled!\");\n\t\t\t\t} else {\n\t\t\t\t\tdisableScheduler();\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The auto-saving is disabled!\");\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\tcase manworld:\n\t\t\t\tauxString = selectedWorlds.get(sender.getName());\n\t\t\t\tif (auxString != null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You have the world '\" + dataHolder.getName() + \"' in your selection.\");\n\t\t\t\t} else {\n\t\t\t\t\tif (dataHolder == null) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"There is no world selected. And no world is available now.\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You don't have a world in your selection..\");\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Working with the direct world where your player is.\");\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Your world now uses permissions of world name: '\" + dataHolder.getName() + \"' \");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\n\t\t\tcase manselect:\n\t\t\t\tif (args.length < 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manselect <world>)\");\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Worlds available: \");\n\t\t\t\t\tArrayList<OverloadedWorldHolder> worlds = worldsHolder.allWorldsDataList();\n\t\t\t\t\tauxString = \"\";\n\t\t\t\t\tfor (int i = 0; i < worlds.size(); i++) {\n\t\t\t\t\t\tauxString += worlds.get(i).getName();\n\t\t\t\t\t\tif ((i + 1) < worlds.size()) {\n\t\t\t\t\t\t\tauxString += \", \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + auxString);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tauxString = \"\";\n\t\t\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\t\t\tif (args[i] == null) {\n\t\t\t\t\t\tlogger.warning(\"Bukkit gave invalid arguments array! Cmd: \" + cmd.getName() + \" args.length: \" + args.length);\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tauxString += args[i];\n\t\t\t\t\tif (i < (args.length - 1)) {\n\t\t\t\t\t\tauxString += \" \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdataHolder = worldsHolder.getWorldData(auxString);\n\t\t\t\tpermissionHandler = dataHolder.getPermissionsHandler();\n\t\t\t\tselectedWorlds.put(sender.getName(), dataHolder.getName());\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You have selected world '\" + dataHolder.getName() + \"'.\");\n\n\t\t\t\treturn true;\n\n\t\t\tcase manclear:\n\t\t\t\tif (args.length != 0) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count!\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tselectedWorlds.remove(sender.getName());\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You have removed your world selection. Working with current world(if possible).\");\n\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\tcase mancheckw:\n\t\t\t\tif (args.length < 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mancheckw <world>)\");\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Worlds available: \");\n\t\t\t\t\tArrayList<OverloadedWorldHolder> worlds = worldsHolder.allWorldsDataList();\n\t\t\t\t\tauxString = \"\";\n\t\t\t\t\tfor (int i = 0; i < worlds.size(); i++) {\n\t\t\t\t\t\tauxString += worlds.get(i).getName();\n\t\t\t\t\t\tif ((i + 1) < worlds.size()) {\n\t\t\t\t\t\t\tauxString += \", \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + auxString);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tauxString = \"\";\n\t\t\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\t\t\tif (args[i] == null) {\n\t\t\t\t\t\tlogger.warning(\"Bukkit gave invalid arguments array! Cmd: \" + cmd.getName() + \" args.length: \" + args.length);\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tauxString += args[i];\n\t\t\t\t\tif (i < (args.length - 1)) {\n\t\t\t\t\t\tauxString += \" \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdataHolder = worldsHolder.getWorldData(auxString);\n\t\t\t\t\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You have selected world '\" + dataHolder.getName() + \"'.\");\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"This world is using the following data files..\");\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Groups:\" + ChatColor.GREEN + \" \" + dataHolder.getGroupsFile().getAbsolutePath());\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Users:\" + ChatColor.GREEN + \" \" + dataHolder.getUsersFile().getAbsolutePath());\n\n\t\t\t\treturn true;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tsender.sendMessage(ChatColor.RED + \"You are not allowed to use that command.\");\n\t\treturn true;\n\t}",
"@Override\r\n\t\tpublic boolean isPlayer() {\n\t\t\treturn state.isPlayer();\r\n\t\t}",
"public void onBakeCommandByNonPlayer(CommandSender sender) {\n\t\tif (sender instanceof Player) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid command sender. The command sender is a player while the method does not expect it to be a player.\");\n\t\t}\n\t\tString s = this.bakeInstance.StringParser.BakeCommandString;\n\t\ts = s.replaceAll(\"%TOOLTIP%\", bakeInstance.StringParser.getFormattedTooltip(activeQuest.getRawTooltip(), \"\"));\n\t\ts = this.bakeInstance.StringParser.replaceFrequent(s, \"\");\n\t\tsender.sendMessage(s);\n\t}",
"@Override\n\tpublic boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {\n\t\tif (sender instanceof ConsoleCommandSender){\n\t\t\t\n\t\t\tsender.sendMessage(\"§r ARRETE DE FAIRE LE CON\");\n\t\t\t\n\t\t}\n\t\t//si c'est un joueur on gère la commandes\n\t\telse if(sender instanceof Player){\n\t\t\t\n\t\t\tPlayer player = (Player) sender;\n\t\t\t\n\t\t\t//on verifie que la commende est la bonne\n\t\t\tif(cmd.getName().equalsIgnoreCase(\"castejoin\")){\n\t\t\t\t\n\t\t\t\t//on verifie que l'on a bien des arguments\n\t\t\t\tif(args.length != 0){\n\t\t\t\t\t\n\t\t\t\t\t//on recupère la caste en argument\n\t\t\t\t\tString caste = args[0];\n\t\t\t\t\t\n\t\t\t\t\t//le message que le joueur recevra s'il ne peut pas rejoindre la caste au cas ou il y aurais plusieur raison\n\t\t\t\t\tString message = \"\"; \n\t\t\t\t\t\n\t\t\t\t\t//si le joueur peut rejoindre une caste\n\t\t\t\t\tif( (message = playerCanJoinCaste(player,caste)).equals(\"ok\")){\n\t\t\t\t\t\t\n\t\t\t\t\t\tint indexCaste = -1;\n\t\t\t\t\t\t//si la caste existe elle nous renvoie l'id de la position dans la liste des Caste sinon -1\n\t\t\t\t\t\tif( (indexCaste = isCasteExiste(caste)) != -1){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//on recupère la class caste qui correspond pour la mettre dans la hashmap\n\t\t\t\t\t\t\tCaste casteClass = Caste.castes.get(indexCaste);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//on l'ajoute a la liste des joueur et des caste qui leur corespond\n\t\t\t\t\t\t\tMain.playerCaste.put(player, casteClass);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//on ecrit le changement dans le fichier player .yml\n\t\t\t\t\t\t\tPlayerManager.createEntryYml(player);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//message de confirmation\n\t\t\t\t\t\t\tplayer.sendMessage(\"vous avez rejoins la caste : \"+caste);\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//la caste demander n'existe pas\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tplayer.sendMessage(\"la caste : \"+caste+\" n'existe pas\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//le joueur ne peut pas pretendre a aller dans cette caste\n\t\t\t\t\telse{\n\t\t\t\t\t\t\n\t\t\t\t\t\tplayer.sendMessage(message);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tplayer.sendMessage(\"/casteJoin <nom_de_la_caste>\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\tsender.sendMessage(\"impossible Oo\");\n\t\t}\n\t\treturn true;\n\t\t\n\t}",
"public boolean needPlayer() {\n\t\treturn false;\n\t}",
"public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {\n\t\tif (label.equalsIgnoreCase(\"truth\")) {\n\t\t\tif (sender instanceof Player) {\n\t\t\t\t//player (not console)\n\t\t\t\tPlayer player = (Player) sender;\n\t\t\t\tif (player.hasPermission(\"stinky.use\")) { \n\t\t\t\t\tplayer.sendMessage(ChatColor.LIGHT_PURPLE+\"\"+ChatColor.BOLD+\"Alex Stinks\");\n\t\t\t\t\tplayer.sendMessage(ChatColor.translateAlternateColorCodes('&', \"&ehe really Does\"));\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tplayer.sendMessage(ChatColor.DARK_RED+\"\"+ChatColor.BOLD+\"You don't Have permission to use this!\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//console (not player)\n\t\t\t\tsender.sendMessage(\"hey Console\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"@SuppressWarnings(\"unchecked\")\n \tpublic static boolean isMinecraftPlayer(final Object obj) {\n \t\treturn getEntityPlayerClass().isAssignableFrom(obj.getClass());\n \t}",
"@Override\n public void onExecute(GenericExecutor sender, String[] args) {\n if (sender.getOriginal() instanceof ProxiedPlayer) {\n ProxiedPlayer player = (ProxiedPlayer) sender.getOriginal();\n\n CommandProxyPayload payload = new CommandProxyPayload();\n payload.setExecutor(player.getUniqueId());\n payload.setArgs(args);\n payload.setCommandProxy(CommandProxy.SHOW);\n\n OpenAudioMcBungee.getInstance().getNodeManager().getPacketManager().sendPacket(new PacketPlayer(player), new CommandProxyPacket(payload));\n }\n }",
"@Override\n public boolean canInteractWith(EntityPlayer player)\n {\n return teKeeper.isUsableByPlayer(player);\n }",
"@Override\n public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {\n \tif (cmd.getName().equalsIgnoreCase(\"notifier\")) { // The menu and plugin info\n \t\tString[] say = {\n \t\t\t\t\"/-------------------------/\",\n \t\t\t\t\"-\" + PLUGIN_NAME + \" is running version \" + PLUGIN_VERSION,\n \t\t\t\t\"- Commands:\",\n \t\t\t\t\"- /notifier - Shows this\",\n \t\t\t\t\"- /notify - Toggle notifications\",\n \t\t\t\t\"/-------------------------/\"};\n \t\tsender.sendMessage(say);\n \t\treturn true;\n \t}\n \tif (cmd.getName().equalsIgnoreCase(\"notify\")) { // enable and disable notifications\n \t\tif (!(sender instanceof Player)) {\n \t\t\tsender.sendMessage(\"This command can only be run by a player.\");\n \t\t} else {\n \t\t\tPlayer player = (Player) sender;\n \t\t\tPlayerHandler todisable = null;\n \t\t\tfor(PlayerHandler ph : players){\n \t\t\t\tif(ph.getPlayerName().equals(player.getName())){\n \t\t\t\t\ttodisable = ph; // Found a player thread already running\n \t\t\t\t}\n \t\t\t}\n \t\t\tif(todisable != null){\n \t\t\t\t// Disable it and remove it from the ArrayList\n \t\t\t\ttodisable.disable();\n \t\t\t\tplayers.remove(todisable);\n \t\t\t\ttodisable.notify(1);\n \t\t\t\ttodisable = null;\n \t\t\t\tplayer.sendMessage(PLUGIN_NAME + \" disabled!\");\n \t\t\t\tshowConsole(\"Disabled player: \" + player.getName());\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\t// Enable\n \t\t\tPlayerHandler ph = new PlayerHandler(player, true);\n \t\t\tplayers.add(ph);\n \t\t\tplayer.sendMessage(PLUGIN_NAME + \" enabled!\");\n \t\t\tshowConsole(\"Enabled player: \" + player.getName());\n \t\t}\n \t\treturn true;\n \t}\n \tif(cmd.getName().equalsIgnoreCase(\"nudge\")){\n \t\tif(args.length != 1) return false;\n \t\tString name = args[0];\n \t\tif (!(sender instanceof Player)) {\n \t\t\tsender.sendMessage(\"Notifying player!\");\n this.notifyPlayer(name);\n \t\t} else {\n \t\t\tPlayer player = (Player) sender;\n \t\t\tplayer.sendMessage(\"This command is only available for the console!\");\n // this.notifyPlayer(name);\n // TODO Set delay for players without the right permission.\n \t\t}\n \t\treturn true;\n \t}\n \treturn false; \n }",
"default boolean isCommanderObject(Player player, MageObject object) {\n UUID idToCheck = null;\n if (object instanceof Spell) {\n idToCheck = ((Spell) object).getCard().getId();\n }\n if (object instanceof CommandObject) {\n idToCheck = object.getId();\n }\n if (object instanceof Card) {\n idToCheck = ((Card) object).getMainCard().getId();\n }\n return idToCheck != null && this.getCommandersIds(player, CommanderCardType.COMMANDER_OR_OATHBREAKER, false).contains(idToCheck);\n }",
"public abstract void isUsedBy(Player player);",
"boolean commandUse(CommandSender sender, String[] args);",
"public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\n\t\t\n\t\t\n\t\tString[] split1 = args;\n\t String commandName = command.getName().toLowerCase();\n\t if (sender instanceof Player) {\n\t Player player = (Player) sender;\n\t if (!plugin.getPermission(player, \"Plug1.take\")) {\n\t\t \t player.sendMessage(ChatColor.RED + \"No help for you!\");\n\t\t return true; \n\t\t }\n\t if (commandName.equals(\"dying\")) {\n\t \tif (split1.length == 0) {\n\n\t \tplayer.getInventory().addItem(new ItemStack(Material.BED, 1));\n\t \tplayer.getInventory().addItem(new ItemStack(Material.BREAD, 3));\n\t \tplayer.getInventory().addItem(new ItemStack(Material.IRON_SWORD, 1));\n\t \tplayer.getInventory().addItem(new ItemStack(Material.TORCH, 3));\n\t \tplayer.sendMessage(ChatColor.RED + \"Oh no, you're dying! Take these items!\");\n\t \t//is here better? seems to be\t\n\t \treturn true;\n\t \t\t}\n\t \t}\n\n\n\t }\n\t //throws an error here\n\t //return true;\n\t \n\t\tif (args.length == 0) {\n\t\t\treturn false;\n\t\t} else if (!(sender instanceof Player)) {\n\t\t\treturn false;\n\t\t\t// the cake will appear on the ground but not\n\t\t\t// necessarily where the player is looking\n\t\t} else if (args[0].equalsIgnoreCase(\"cake\")) {\n\t\t\tPlayer fred = (Player) sender;\n\t\t\tLocation loc = fred.getLocation();\n\t\t\tWorld w = loc.getWorld();\n\t\t\tloc.setX(loc.getX() + 1);\n\t\t\tBlock b = w.getBlockAt(loc);\n\t\t\tb.setTypeId(92);\n\t\t\treturn true;\n\t\t\t// the stored message now always begins with\n\t\t\t// the word \"message\"--do you know how to easily\n\t\t\t// fix that problem?\n\t\t} else if (args[0].equalsIgnoreCase(\"message\")\n\t\t\t\t&& sender.hasPermission(\"Plug1.message\")) {\n\t\t\tthis.plugin.getConfig().set(\"Plug1.message\", Joiner.on(' ').join(args));\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t} \n\t}",
"private void manualCommand(String player) {\n try {\n Piece s = Piece.playerValueOf(player);\n _playing = false;\n _players[s.ordinal()] = new HumanPlayer(s, this);\n } catch (IllegalArgumentException excp) {\n error(\"unknown player: %s\", player);\n System.out.println();\n }\n }",
"@Override\n public boolean onCommand(Player p, String[] args) {\n\n if (!teamManager.playerIsInvitedToTeam(p)) {\n p.sendMessage(Messaging.Tag.ERROR.getTag() + \"You have no pending team invites, maybe you took to long to decline?\");\n return false;\n }\n\n teamManager.declineInvite(p);\n\n return false;\n }",
"private boolean shouldAttackPlayer(EntityPlayer player) {\n ItemStack itemStack = player.inventory.armorInventory[3];\n if (itemStack != null && itemStack.getItem() == Item.getItemFromBlock(Blocks.pumpkin))\n return false;\n Vec3 lookVec = player.getLook(1.0F).normalize();\n Vec3 posVec = Vec3.createVectorHelper(this.posX - player.posX, this.boundingBox.minY + this.height / 2.0 - player.posY - player.getEyeHeight(), this.posZ - player.posZ);\n double distance = posVec.lengthVector();\n posVec = posVec.normalize();\n double dotProduct = lookVec.dotProduct(posVec);\n return dotProduct > 1.0 - 0.025 / distance ? player.canEntityBeSeen(this) : false;\n }",
"public final Player getSender() {\n return sender;\n }",
"boolean hasSendPlayerName();",
"public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\n\t\tPlayer player = (Player) sender;\n\t\t// if console\n\t\tif (!(sender instanceof Player)) {\n\t\t\tsender.sendMessage(\"You Cant Use This In Here DUDE!\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// first argument specified\n\t\tString argumentOne;\n\t\t// try this out instead of 100% doing it, because it could give an error if it doesnt exist\n\t\ttry {\n\t\t\t// String[] args are the arguments that were provided after the command\n\t\t\t// like \"/dab mystats\" has one argument, \"mystats\"\n\t\t\t// arrays start at 0, so the first argument is args[0]\n\t\t\targumentOne = args[0];\n\t\t} catch (Exception e) {\n\t\t\t// if the argument does not exist, scream and return\n\t\t\tplayer.sendMessage(ChatColor.GRAY + \"No You need To Specify An Argument! \" + ChatColor.RED + \">:-(\");\n\t\t\treturn false;\n\t\t}\n\t\t// now that we have secured that argumentOne is the first argument\n\t\t// if the first argument is \"buy\" (/zuccbucc buy), do stuff\n\t\tif (argumentOne.equalsIgnoreCase(\"buy\")) {\n\t\t\t// you'll need to specify an amount, like \"/zuccbucc buy 5\"\n\t\t\t// so we need to do the same thing with that amount\n\t\t\t// argumentTwo is what is typed\n\t\t\tString argumentTwo;\n\t\t\t// amountOfZuccBuccs is the integer that represents this value\n\t\t\tint amountOfZuccBuccs;\n\t\t\ttry {\n\t\t\t\targumentTwo = args[1];\n\t\t\t\t// you can't use a string as a number, so you have to turn the number given into an integer\n\t\t\t\t// parseInt(string) turns a string into an integer\n\t\t\t\tamountOfZuccBuccs = Integer.parseInt(argumentTwo);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// scream and return if doesnt work\n\t\t\t\tplayer.sendMessage(ChatColor.GRAY + \"No You need To Specify How Many ZuccBuccs! \" + ChatColor.RED + \">:-(\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// if the amount given is too much to buy at one time, tell them to stop\n\t\t\tif (amountOfZuccBuccs > 50) {\n\t\t\t\tplayer.sendMessage(ChatColor.DARK_RED + \"No! You Cant Buy This menay. Grrr...\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// string name of the player\n\t\t\tString owner = player.getName();\n\t\t\t// add the amount of ZuccBuccs specified to the BuccHandler\n\t\t\t// loop through and create a new ZuccBucc each number between 0 and amountOfZuccBuccs\n\t\t\tfor (int i = 0; i < amountOfZuccBuccs; i++) {\n\t\t\t\tZuccBucc zuccBucc = new ZuccBucc(owner);\n\t\t\t\tZuccBuccPlugin.getHandler().addZuccBucc(zuccBucc);\n\t\t\t}\n\t\t\t// congrats\n\t\t\tplayer.sendMessage(ChatColor.GREEN + \"You just bought \" + amountOfZuccBuccs + \" ZuccBuccs! Nice!\");\n\t\t\treturn true;\n\t\t}\n\t\t// check the amount of ZuccBuccs you have, and the value of them\n\t\tif (argumentOne.equalsIgnoreCase(\"amount\")) { \n\t\t\t// get the list of ZuccBuccs that the player owns (method created in BuccHandler)\n\t\t\tList<ZuccBucc> zuccBuccs = ZuccBuccPlugin.getHandler().getZuccBuccs(player);\n\t\t\t// you got that amount of ZuccBuccs total\n\t\t\tplayer.sendMessage(ChatColor.GRAY + String.valueOf(zuccBuccs.size()) + \" ZuccBuccs total!\");\n\t\t\t// value of each ZuccBucc is added to this double\n\t\t\tdouble value = 0;\n\t\t\t// loop through each ZuccBucc you own and add it to the total value\n\t\t\tfor (ZuccBucc zuccBucc : zuccBuccs) {\n\t\t\t\tvalue = value + zuccBucc.getValue();\n\t\t\t}\n\t\t\t// now that you have the total value, send it to them\n\t\t\tplayer.sendMessage(ChatColor.GRAY + \"Your ZuccBuccs are valued at \" + String.valueOf(value) + \"!\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onCommand(CommandSender cs, Command arg1, String arg2,\n\t\t\tString[] args) {\n\t\tif (cs instanceof ConsoleCommandSender) {\n\t\t\tcs.sendMessage(main.prefix + \"Only Player\");\n\t\t\treturn false;\n\t\t}\n\t\tPlayer p = (Player) cs;\n\t\tif (p.getWorld().getGameRuleValue(\"doDaylightCycle\").equals(\"true\")) {\n\t\t\tp.getWorld().setGameRuleValue(\"doDaylightCycle\", \"false\");\n\t\t\tp.sendMessage(main.prefix\n\t\t\t\t\t+ \"Die Zeit in dieser Welt bleibt nun stehn!\");\n\t\t} else {\n\t\t\tp.getWorld().setGameRuleValue(\"doDaylightCycle\", \"true\");\n\t\t\tp.sendMessage(main.prefix + \"Die Zeit in dieser Welt läuft!\");\n\t\t}\n\n\t\treturn false;\n\t}",
"public void setAsPlayer(){\n\t\tthis.isPlayer = true;\n\t}",
"@Override\n public void sendChatMessage(EntityPlayer player) {\n }",
"public boolean subCommandProcess(CommandSender sender, Command command, String string, String[] args) {\n\n\t\tif ((consoleOnly && sender instanceof Player) || (permission != null && !sender.hasPermission(permission))) {\n\n\t\t\tsender.sendMessage(errorPrefix + noPermissionError);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn execute(sender, command, string, args);\n\t}",
"@Override\n public CommandResult execute(CommandSource src, CommandContext commandContext) throws CommandException {\n return CommandResult.success();\n\n /*if (src instanceof Player) {\n Player sender = (Player) src;\n if(!commandContext.hasAny(\"target\")) {\n src.sendMessage(Text.of(new Object[]{TextColors.RED, \"Invalid arguments\"}));\n return CommandResult.success();\n } else {\n User user = commandContext.<User>getOne(\"target\").get();\n if (user.isOnline()) {\n sender.sendMessage(Text.of(TextColors.RED, \"Player is online, Please use /teleport\"));\n } else {\n GameProfileManager gameProfileManager = Sponge.getGame().getServer().getGameProfileManager();\n Optional<UserStorageService> userStorage = Sponge.getServiceManager().provide(UserStorageService.class);\n UUID uuid = null;\n try {\n uuid = userStorage.get().getOrCreate(gameProfileManager.get(user.getName(), false).get()).getUniqueId();\n } catch (InterruptedException | ExecutionException e) {\n e.printStackTrace();\n }\n if (userStorage.isPresent()) {\n UserStorageService userStorage2 = userStorage.get();\n Optional<User> userOptional = userStorage2.get(uuid);\n if (userOptional.isPresent()) {\n User user2 = userOptional.get();\n double x = user2.getPlayer().get().getLocation().getX();\n double y = user2.getPlayer().get().getLocation().getY();\n double z = user2.getPlayer().get().getLocation().getZ();\n sender.sendMessage(Text.of(\"Loc: x:\", x, \" y:\", y, \" z:\", z));\n Vector3d vector = new Vector3d(x, y, z);\n sender.setLocation(sender.getLocation().setPosition(vector));\n } else {\n // error?\n }\n }\n }\n return CommandResult.success();\n }\n } else {\n src.sendMessage(Text.of(\"Only a player Can run this command!\"));\n return CommandResult.success();\n }*/\n }",
"@java.lang.Override\n public boolean hasPlayer() {\n return player_ != null;\n }",
"public boolean isNear(Player player) {\n if(this.worldObject.getLocation().distance(player.getLocation()) <= this.harvestableObject.distanceToInteract()) {\n return true;\n }\n return false;\n }",
"public boolean onCommand(CommandSender sender, Command command, String label, String[] args) throws ArrayIndexOutOfBoundsException{\n\t\n\t\ttry {\n\t\tString cmd = command.getName().toLowerCase();\n\t\t if (cmd.equals(\"stat\")) {\n\t\t\tif (args[0] == \"\" || args[1] == \"\" || args[0] == \"null\" || args[1] == \"null\"){\n\t\t\t\tthrow new ArrayIndexOutOfBoundsException(\"type /stat reg to register or /stat view playerName to view stats\");\n\t\t\t\t\n\t\t\t}\n\t\t\treturn statsMethod(sender,args);\n\t\t}\n\t\t\tif (args[0].equalsIgnoreCase(\"armor\")) {\n\t\t\t\tItem.class.getMethods();\n\n\t\t\t\tPlayer p = (Player)sender;\n\t\t\t\tPlayerInventory inventory = p.getInventory();\n\t\t\t\t//give the player an iron set of armor \n\t\t\t\tinventory.addItem(new ItemStack(Material.IRON_HELMET, 1));\n\t\t\t\tinventory.addItem(new ItemStack(Material.IRON_CHESTPLATE, 1));\n\t\t\t\tinventory.addItem(new ItemStack(Material.IRON_LEGGINGS, 1));\n\t\t\t\tinventory.addItem(new ItemStack(Material.IRON_HELMET, 1));\n\n\t\t\t\t//send a message to inform player they received a set of armor\n\t\t\t\tp.sendMessage(ChatColor.RED + \"Armorset is in Inventory... \");\n\t\t\t\t\n\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t}\n\telse {\n\t\t\treturn false;\n\t\t}\n\t\t}\n\t\tcatch(ArrayIndexOutOfBoundsException ie){\n\t\t\tie.printStackTrace();\n\t\t\t//System.out.println(\"type /stat view playerName to view your statistics\");\n\t\t\tsender.sendMessage(\"type /stat view playerName to view your statistics or /stat reg playerName to register \");\n\t\t}\n\t\treturn true;\n\t}",
"public void handleCommand(String command, String args[], Player player){\n\t}",
"public static void unknownPlayer(Command command, String player) {\n\t\tString str = command.getSender().getAsMention() + \",\\n\";\n\t\t\n\t\tstr += ConfigManager.getMessage(\"unknown player\").replace(\"%player%\", player);\n\t\tcommand.getChannel().sendMessage(str).complete();\n\t}",
"default boolean hasPlayer(Player player) {\n return hasPlayer(Objects.requireNonNull(player, \"player\").getName());\n }",
"@Override\n\tpublic boolean onCommand(CommandSender cs, Command arg1, String arg2,\n\t\t\tString[] args) {\n\t\treturn false;\n\t}",
"public abstract boolean isPlayer();",
"public boolean hasPlayer() {\n return playerBuilder_ != null || player_ != null;\n }",
"@Override\n public boolean onCommand(CommandSender aCommandSender, Command aCommand, String aString, String[] aStrings) {\n World lWorld = null;\n Player lPlayer = null;\n String lPlayerName = null;\n String lWorldName = null;\n if (aCommandSender instanceof Player) {\n lPlayer = (Player)aCommandSender;\n lPlayerName = lPlayer.getName();\n lWorld = lPlayer.getWorld();\n lWorldName = lWorld.getName();\n }\n if (aStrings.length > 0) {\n OfflinePlayer lOfflinePlayer = Framework.plugin.getServer().getOfflinePlayer(aStrings[0]);\n if (lOfflinePlayer != null) {\n lPlayerName = lOfflinePlayer.getName();\n } else {\n World lW = Framework.plugin.getServer().getWorld(aStrings[0]);\n if (lW != null) {\n lWorldName = lW.getName();\n }\n }\n if (aStrings.length > 1) {\n World lW = Framework.plugin.getServer().getWorld(aStrings[1]);\n if (lW != null) {\n lWorldName = lW.getName();\n }\n }\n }\n WorldPlayerInventory lPInv = Framework.plugin.getWorldPlayerInventoryDB().get(lWorldName, lPlayerName);\n if (lPInv != null) {\n ArrayList<ItemStack> lStacks = lPInv.getAsItemStacks();\n for(ItemStack lStack : lStacks) {\n aCommandSender.sendMessage(\"\" + lStack);\n }\n } else {\n aCommandSender.sendMessage(Framework.plugin.getText(aCommandSender, \"no inventory for player %s in world %s found!\", lPlayerName, lWorldName));\n }\n return true;\n }",
"public boolean handleCommand(LocalPlayer player, String[] split) {\n try {\n split[0] = split[0].substring(1);\n\n // No command found!\n if (!commandManager.hasCommand(split[0])) {\n return false;\n }\n\n try {\n commandManager.execute(split, player, player);\n } catch (CommandPermissionsException e) {\n player.sendMessage(ChatColor.RED + \"You don't have permission to do this.\");\n } catch (MissingNestedCommandException e) {\n player.sendMessage(ChatColor.RED + e.getUsage());\n } catch (CommandUsageException e) {\n player.sendMessage(ChatColor.RED + e.getMessage());\n player.sendMessage(ChatColor.RED + e.getUsage());\n } catch (UnhandledCommandException e) {\n return false;\n } catch (WrappedCommandException e) {\n throw e.getCause();\n } catch (CommandException e) {\n player.sendMessage(ChatColor.RED + e.getMessage());\n } catch (NumberFormatException e) {\n player.sendMessage(ChatColor.RED + \"Number expected; string given.\");\n }\n } catch (Throwable e) {\n player.sendMessage(ChatColor.RED + \"Please report this error: [See console]\");\n player.sendMessage(ChatColor.RED + e.getClass().getName() + \": \" + e.getMessage());\n e.printStackTrace();\n }\n\n return true;\n }",
"@Inject (\n inClass = \"org.bukkit.craftbukkit.{nms_version}.CraftServer\",\n inMethod = \"dispatchCommand(\" +\n \"Lorg/bukkit/command/CommandSender;\" +\n \"Ljava/lang/String;\" +\n \")Z\",\n at = Inject.Position.BEGINNING\n )\n public static void checkCommandDispatch(MethodParam<?> sender, MethodParam<String> command) {\n onCommand(command.getValue());\n }",
"@Override\n\tpublic boolean canInteractWith(EntityPlayer playerIn) {\n\t\treturn false;\n\t}",
"public static boolean testPermission(CommandSender sender, String perm) {\n return !(sender instanceof Player) || sender.hasPermission(\"SlapPlugin.\" + perm);\n }",
"@Override\npublic boolean onCommand(CommandSender arg0, Command arg1, String arg2, String[] arg3) {\n\treturn false;\n}",
"public boolean execute(CommandSender sender, Command command, String string, String[] args) {\n\n\t\treturn true;\n\t}",
"public boolean onCommand(CommandSender arg0, Command arg1, String arg2,\n\t\t\tString[] arg3) {\n\t\treturn false;\n\t}",
"public void setPlayer(Player player) {\n this.player = player;\n }",
"public CommandSender getSender() {\n return sender;\n }",
"public boolean isUseableByPlayer(EntityPlayer p_70300_1_)\n {\n return true;\n }",
"public void setPlayer(Player player) {\r\n this.player = player;\r\n }",
"public void setPlayer(Player player) {\n this.player = player;\n }",
"public boolean canEnterDestination(CommandSender sender, MVDestination d) {\n if (!(sender instanceof Player)) {\n return true;\n }\n Player p = (Player) sender;\n if (d == null || d.getLocation(p) == null) {\n return false;\n }\n String worldName = d.getLocation(p).getWorld().getName();\n if (!this.worldMgr.isMVWorld(worldName)) {\n return false;\n }\n if (!canEnterLocation(p, d.getLocation(p))) {\n return false;\n }\n return this.hasPermission(p, d.getRequiredPermission(), false);\n }",
"public boolean checkForUser(Player p) {\n\t\tif(p.getName(p).equals(\"user\")) {\n\t\t\treturn true;\t\t\t\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n public final boolean canStand(Playery player) {\n return true;\n }",
"public boolean execute(CommandSender sender, String alias, String[] args) {\r\n\t\tif (sender instanceof Player) {\r\n\t\t\tPlayer player = (Player) sender;\r\n\t\t\tif (player.hasPermission(\"corefunctionality.utility.setxp\")) {\r\n\r\n\t\t\t\tif (args.length == 1) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tint amount = Integer.parseInt(args[0]);\r\n\t\t\t\t\t\tplayer.setLevel(amount);\r\n\t\t\t\t\t\tplayer.sendMessage(ChatColor.GREEN + \"Your xp level has been set.\");\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\tplayer.sendMessage(ChatColor.RED + \"Invalid amount specified.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (args.length == 2) {\r\n\r\n\t\t\t\t\tif (player.hasPermission(\"server.utility.setxp.other\")) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tint amount = Integer.parseInt(args[0]);\r\n\t\t\t\t\t\t\tPlayer target = Bukkit.getPlayer(args[1]);\r\n\t\t\t\t\t\t\tif (target != null) {\r\n\t\t\t\t\t\t\t\ttarget.setLevel(amount);\r\n\t\t\t\t\t\t\t\tplayer.sendMessage(ChatColor.GREEN + target.getName() + \"'s xp level has been set.\");\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tplayer.sendMessage(ChatColor.RED + \"Could not find specified player.\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\tplayer.sendMessage(ChatColor.RED + \"Invalid amount specified.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tplayer.sendMessage(ChatColor.RED + \"You do not have the power to do this.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Syntax Error: /setxp <amount> [player]\");\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\tplayer.sendMessage(ChatColor.RED + \"You do not have the power to do this.\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tsender.sendMessage(\"You must be a player to use this command\");\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"protected abstract boolean isPlayerActivatable(PlayerSimple player);",
"public final void setSender(final Player newSender) {\n this.sender = newSender;\n }",
"public boolean isSetPlayer() {\n return this.player != null;\n }",
"public boolean test(CommandSender sender, MCommand command);",
"@Override\n public boolean interact(EntityPlayer player)\n {\n if (!super.interact(player)) return false;\n \n targetHelicopter = null; // inactivate ai\n \n return true;\n }",
"@Override\n\tpublic boolean isUseableByPlayer(EntityPlayer player) {\n\t\treturn true;\n\t}",
"public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args)\r\n {\r\n Player p = (Player)sender;\r\n World World = p.getWorld();\r\n Location spawn = new Location(World, 448.5, 165, 1156.5);\r\n if(!(sender instanceof Player))\r\n {\r\n p.sendMessage(\"vous n'êtes pas un joueur, vous ne pouvez pas éxecuter la commande.\");\r\n }\r\n if(cmd.getName().equalsIgnoreCase(\"jump\"))\r\n {\r\n if((args.length == 1))\r\n {\r\n if(args[0].equalsIgnoreCase(\"stop\"))\r\n {\r\n if(EventClass.bParcour.contains(p.getUniqueId()))\r\n {\r\n p.teleport(spawn);\r\n EventClass.checkPoint = 0;\r\n EventClass.remove(p);\r\n }\r\n else\r\n {\r\n p.sendMessage(\"Pour arrêter le parcours il faut au moins l'avoir commncé !\");\r\n }\r\n }\r\n else if(args[0].equalsIgnoreCase(\"help\"))\r\n {\r\n p.sendMessage(\"§6[Parcours] §fCette commande te permet d'arrêter le parcour à condition de l'avoir commencer !.\");\r\n }\r\n else\r\n {\r\n p.sendMessage(\"/jump stop\");\r\n }\r\n\r\n }\r\n else if(args.length == 0)\r\n {\r\n p.sendMessage(\"/jump stop\");\r\n }\r\n else\r\n {\r\n p.sendMessage(\"/jump stop\");\r\n }\r\n }\r\n\r\n return false;\r\n }",
"public abstract void sendConfirmationMessage(Player player);",
"static void drop(Player player, String what) {\n if (player.drop(what)) {\n System.out.println(\"You dropped \" + what);\n }\n else {\n System.out.println(\"You aren't carrying \" + what);\n }\n }",
"boolean onCommand(CommandSender sender, String command, String[] args, Object... objects);",
"public boolean execute(ChatClient sender, String[] args) {\n\t\t\n\t\tif (args.length < 2) {\n\t\t\tsender.serverChat(usage());\n\t\t\treturn true;\n\t\t}\n\t\t\t\n\t\tString[] snoopArgs = args[1].split(\" \");\n\t\n\t\tif (snoopArgs.length < 2) {\n\t\t\tsender.serverChat(usage());\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tString command = snoopArgs[0].toLowerCase();\n\t\t\t\t\n\t\tChatClient target = ChatServer.getClientByName(snoopArgs[1]);\n\t\t\n\t\tif (target == null) {\n\t\t\tsender.sendChat(\"I could not locate anyone by that name\");\n\t\t}\n\t\t\n\t\tif (command.compareTo(\"start\") == 0) {\n\t\t\ttarget.startSnoop(sender);\n\t\t\t\n\t\t} else if (command.compareTo(\"stop\") == 0) {\n\t\t\ttarget.stopSnoop(sender);\n\t\t//} else if (command.compareTo(\"enable\") == 0) {\n\t\t\t\n\t\t} else\n\t\t\tsender.serverChat(usage());\n\t\t\n\t\treturn true;\n\t}",
"public void setPlayer(Player player) {\n\t\tthis.player = player;\n\t}",
"@Override\n public boolean isChasingPlayer()\n {\n return(chasingPlayer);\n }",
"public void setPlayer(String player) {\r\n this.player = player;\r\n }",
"@Override\n\tpublic void setPlayer(Player player) {\n\n\t}",
"public abstract CommandResponse onCommand(CommandSender sender, String label, String[] args);",
"@Override\n public void landedOn(Player player) {}",
"public CommandSender getBukkitSender(CommandListenerWrapper wrapper) {\n/* 110 */ return (CommandSender)EntityMinecartCommandBlock.this.getBukkitEntity();\n/* */ }",
"public boolean checkPlays(Player player){\n return true;\n }",
"static void pickup(Player player, String what) {\n if (player.getLocation().contains(what)) {\n Thing thing = player.pickup(what);\n if (thing != null) {\n System.out.println(\"You now have \" + thing);\n }\n else {\n System.out.println(\"You can't carry that. You may need to drop something first.\");\n }\n }\n else {\n System.out.println(\"I don't see a \" + what);\n }\n }",
"public boolean isHasPlayer() {\n\t\treturn HasPlayer;\n\t}",
"protected boolean IsPlayerStaringAtMe( EntityPlayer player )\r\n {\r\n ItemStack headStack = player.inventory.armorInventory[3];\r\n\r\n if ( headStack == null || headStack.itemID != \r\n \tFCBetterThanWolves.fcItemEnderSpectacles.itemID )\r\n {\r\n Vec3 vLook = player.getLook( 1F ).normalize();\r\n \r\n Vec3 vDelta = worldObj.getWorldVec3Pool().getVecFromPool( posX - player.posX, \r\n \tboundingBox.minY + ( height / 2F ) - ( player.posY + player.getEyeHeight() ), \r\n \tposZ - player.posZ );\r\n \r\n double dDist = vDelta.lengthVector();\r\n \r\n vDelta = vDelta.normalize();\r\n \r\n double dotDelta = vLook.dotProduct( vDelta );\r\n \r\n if ( dotDelta > 1D - 0.025D / dDist )\r\n {\r\n \treturn player.canEntityBeSeen( this );\r\n }\r\n }\r\n \r\n return false;\r\n }",
"public void playCard(IPlayer owner){\n // Wont play card unless a player has it\n if(command == \"Move1\"){\n owner.Move(owner.getPlayerDir());\n }\n else if(command == \"Move2\"){\n for (Integer i=0; i < 2; i++) {\n owner.Move(owner.getPlayerDir());\n }\n }\n else if(command == \"Move3\"){\n for (Integer i=0; i < 3; i++) {\n owner.Move(owner.getPlayerDir());\n }\n }\n else if (command == \"MoveBack\"){\n owner.Move(dirCtrl.invertDirection(owner.getPlayerDir()));\n }\n else if(command == \"TurnRight\"){\n owner.Turn(TurnDirection.RIGHT);\n }\n else if(command == \"TurnLeft\"){\n owner.Turn(TurnDirection.LEFT);\n }\n else if(command == \"Turn180\"){\n owner.Turn(TurnDirection.BACKWARDS);\n }\n }",
"void sendPacketToPlayer(Player player, Object packet);",
"public void setPlayer(Player player) {\n\t\tthis.player = player;\r\n\t}",
"public static void neverJoined(Command command, String player) {\n\t\tString str = command.getSender().getAsMention() + \",\\n\";\n\t\t\n\t\tstr += ConfigManager.getMessage(\"never joined\").replace(\"%player%\", player);\n\t\tcommand.getChannel().sendMessage(str).complete();\n\t}",
"public static Boolean run(CommandSender sender, String alias, String[] args) {\r\n \t\tif (PlayerHelper.checkIsPlayer(sender)) {\r\n \t\t\tPlayer player = (Player)sender;\r\n \r\n \t\t\tif (!Utils.checkCommandSpam(player, \"tp-tploc\")) {\r\n \t\t\t\t// first of all, check permissions\r\n \t\t\t\tif (Permissions.checkPerms(player, \"cex.tploc\")) {\r\n \t\t\t\t\t// alternative usage, all 3 coords separated by comma in 1 argument\r\n \t\t\t \tif (args.length == 1) {\r\n \t\t\t \tif (args[0].contains(\",\")) {\r\n \t\t\t \t\targs = args[0].split(\",\");\r\n \t\t\t \t} else {\r\n\t\t\t \t\tCommands.showCommandHelpAndUsage(sender, \"cex_tploc\", alias);\r\n\t\t\t \t\treturn true;\r\n \t\t\t \t}\r\n \t\t\t }\r\n \t\t\t \t\r\n \t\t\t if (args.length <= 0) {\r\n \t\t\t \t// no coordinates\r\n \t\t\t \tCommands.showCommandHelpAndUsage(sender, \"cex_tploc\", alias);\r\n \t\t\t } else if (!(args.length == 3 || args.length == 4)) {\r\n \t\t\t \t// too few or too many arguments\r\n \t\t\t \tLogHelper.showWarning(\"tpMissingCoords\", sender);\r\n \t\t\t \treturn false;\r\n \t\t\t } else if (!args[0].matches(CommandsEX.intRegex) || !args[1].matches(CommandsEX.intRegex) || !args[2].matches(CommandsEX.intRegex)) {\r\n \t\t\t \t// one of the coordinates is not a number\r\n \t\t\t \tLogHelper.showWarning(\"tpCoordsMustBeNumeric\", sender);\r\n \t\t\t } else {\r\n \t\t\t \ttry {\r\n \t\t\t \t\tPlayer target = null;\r\n \t\t\t \t\tif (args.length == 4){\r\n \t\t\t \t\t\tif (Bukkit.getPlayer(args[3]) != null){\r\n \t\t\t\t \t\t\ttarget = Bukkit.getPlayer(args[3]);\r\n \t\t\t\t \t\t} else {\r\n \t\t\t\t \t\t\tLogHelper.showInfo(\"invalidPlayer\", player, ChatColor.RED);\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} else {\r\n \t\t\t \t\t\ttarget = player;\r\n \t\t\t \t\t}\r\n \r\n \t\t\t \t\tdelayedTeleport(target, new Location(player.getWorld(), new Double(args[0]), new Double(args[1]), new Double(args[2])));\r\n \t\t\t \t\t\r\n \t\t\t \t\tLogHelper.showInfo(\"tpLocMsgToTarget#####[\" + args[0].toString() + \" \" + args[1].toString() + \" \" + args[2].toString(), sender, ChatColor.AQUA);\r\n \t\t\t \t\tif (player != target){\r\n \t\t\t \t\t\tLogHelper.showInfo(\"tpLocSuccess#####[\" + target.getName() + \" #####tpLocToCoords#####[\" + args[0].toString() + \" \" + args[1].toString() + \" \" + args[2].toString(), sender, ChatColor.GREEN);\r\n \t\t\t \t\t}\r\n \t\t\t \t} catch (Throwable e) {\r\n \t\t\t \t\tLogHelper.showWarning(\"internalError\", sender);\r\n \t\t\t \t\tLogHelper.logSevere(\"[CommandsEX]: TPLOC returned an unexpected error for player \" + player.getName() + \".\");\r\n \t\t\t \t\tLogHelper.logDebug(\"Message: \" + e.getMessage() + \", cause: \" + e.getCause());\r\n \t\t\t \t\te.printStackTrace();\r\n \t\t\t \t\treturn false;\r\n \t\t\t \t}\r\n \t\t\t }\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n return true;\r\n \t}",
"public static void badMsg(CommandSender sender, String msg) {\n if (sender instanceof Player) {\n sender.sendMessage(ChatColor.RED + msg);\n } else {\n sender.sendMessage(msg);\n }\n }",
"@Override\n public void run(String[] args, Player player) {\n \n if (args.length > 1) {\n if (runCommands(getActions(), args[1], args, player)) {\n return;\n }\n }\n sendErrorTranslation(player, translateKeyPrefix + \".command.wrongUsage\", \"/\" + commandName + \" permissions \" + convertToArgs(getActions(), false));\n \n }",
"private void promptPlayerTurn(Player player) {\r\n JOptionPane.showMessageDialog(\r\n null,\r\n player.getName() + \", it's your turn!\",\r\n \"Player Confirmation\",\r\n JOptionPane.INFORMATION_MESSAGE);\r\n }",
"private void autoCommand(String player) {\n try {\n Piece s = Piece.playerValueOf(player);\n _playing = false;\n _players[s.ordinal()] = new MachinePlayer(s, this);\n } catch (IllegalArgumentException excp) {\n error(\"unknown player: %s\", player);\n System.out.println();\n }\n }"
] | [
"0.7450936",
"0.70127964",
"0.6950957",
"0.6862124",
"0.6808158",
"0.67940843",
"0.6745402",
"0.6559842",
"0.6545415",
"0.6421964",
"0.6338266",
"0.6302191",
"0.622742",
"0.6154704",
"0.6148526",
"0.61392564",
"0.6128468",
"0.6097145",
"0.6086296",
"0.60793644",
"0.60543066",
"0.60521615",
"0.60269225",
"0.5971525",
"0.5932696",
"0.59309137",
"0.5814922",
"0.58083814",
"0.58068454",
"0.5781934",
"0.5779439",
"0.5772085",
"0.574279",
"0.5667958",
"0.56630284",
"0.5660679",
"0.5653653",
"0.56506294",
"0.5650398",
"0.56380504",
"0.56290424",
"0.5624808",
"0.561496",
"0.5603169",
"0.55625576",
"0.555176",
"0.5532729",
"0.55179125",
"0.5510435",
"0.5507458",
"0.54995465",
"0.5496028",
"0.5495923",
"0.54874045",
"0.5484643",
"0.5481158",
"0.5463904",
"0.54574776",
"0.545664",
"0.5453333",
"0.54505134",
"0.54428726",
"0.5435205",
"0.5434543",
"0.54280716",
"0.5416509",
"0.54156303",
"0.5413813",
"0.5412772",
"0.5407283",
"0.54065293",
"0.5405747",
"0.540272",
"0.54021347",
"0.5396028",
"0.53927386",
"0.5388706",
"0.538032",
"0.5377065",
"0.5372755",
"0.53644043",
"0.53629285",
"0.53547996",
"0.5354707",
"0.53509516",
"0.53496283",
"0.53472817",
"0.5346749",
"0.53466856",
"0.53460103",
"0.53396225",
"0.5329231",
"0.53268206",
"0.53234965",
"0.53219604",
"0.5317218",
"0.5309648",
"0.53092927",
"0.5293008",
"0.52926433"
] | 0.7934956 | 0 |
Returns a string representation of one of the five base elements, converted from any possible alias of that element, its combos, or its subelements. | public String getElement(final String element) {
if (Arrays.asList(Commands.firealiases).contains(element) || Arrays.asList(Commands.firecomboaliases).contains(element)) {
return "fire";
} else if (Arrays.asList(Commands.combustionaliases).contains(element)) {
return "combustion";
} else if (Arrays.asList(Commands.lightningaliases).contains(element)) {
return "lightning";
} else if (Arrays.asList(Commands.earthaliases).contains(element) || Arrays.asList(Commands.earthcomboaliases).contains(element)) {
return "earth";
} else if (Arrays.asList(Commands.metalbendingaliases).contains(element)) {
return "metal";
} else if (Arrays.asList(Commands.sandbendingaliases).contains(element)) {
return "sand";
} else if (Arrays.asList(Commands.lavabendingaliases).contains(element)) {
return "lava";
} else if (Arrays.asList(Commands.airaliases).contains(element) || Arrays.asList(Commands.aircomboaliases).contains(element)) {
return "air";
} else if (Arrays.asList(Commands.spiritualprojectionaliases).contains(element)) {
return "spiritual";
} else if (Arrays.asList(Commands.flightaliases).contains(element)) {
return "flight";
} else if (Arrays.asList(Commands.wateraliases).contains(element) || Arrays.asList(Commands.watercomboaliases).contains(element)) {
return "water";
} else if (Arrays.asList(Commands.healingaliases).contains(element)) {
return "healing";
} else if (Arrays.asList(Commands.bloodaliases).contains(element)) {
return "blood";
} else if (Arrays.asList(Commands.icealiases).contains(element)) {
return "ice";
} else if (Arrays.asList(Commands.plantaliases).contains(element)) {
return "plant";
} else if (Arrays.asList(Commands.chialiases).contains(element) || Arrays.asList(Commands.chicomboaliases).contains(element)) {
return "chi";
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toStringAsElement() {\r\n \t\treturn \"?\";\r\n \t}",
"protected String toStringAsCode() {\r\n \t\treturn \"<\"+toStringAsElement()+\">\";\r\n \t}",
"public String toString() {\r\n\t\tString elements = \"<\";\r\n\t\t\r\n\t\tfor(int i = 0; i < count; i++) {\r\n\t\t\telements += \" \" + array[i];\r\n\t\t\t}\r\n\t\t\r\n\t\t\telements += \" >\";\r\n\t\t\treturn elements;\r\n\t }",
"@Override\n public String toString() {\n return \"{\" + this.elementos[0] + \",\" + this.elementos[1] + \"}\";\n }",
"private String toString2(BinaryNode<E> t) {\n if (t == null) return \"\";\n StringBuilder sb = new StringBuilder();\n sb.append(toString2(t.left));\n sb.append(t.element.toString() + \" \");\n sb.append(toString2(t.right));\n return sb.toString();\n }",
"String getElementStringValue(Object element);",
"public String represent();",
"String getModeledBaseType(Object elementID) throws Exception;",
"private static String printInTagElement(Element element) {\n\t\tif (element == null) {\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\tif (element instanceof ElementFunction) {\n\t\t\treturn ParserDelimiters.FUNCTION_DELIMITER.getValue() + element.asText();\n\t\t}\n\t\t\n\t\tif (element instanceof ElementString) {\n\t\t\treturn ParserDelimiters.STRING_DELIMITER.getValue()\n\t\t\t\t\t+ addEscapes(\n\t\t\t\t\t\t\telement.asText(),\n\t\t\t\t\t\t\tEscapableArrays.stringEscpable(),\n\t\t\t\t\t\t\tParserDelimiters.ESCAPE_DELIMITER.getValue()\n\t\t\t\t\t\t)\n\t\t\t\t\t+ ParserDelimiters.STRING_DELIMITER.getValue();\n\t\t}\n\t\t\n\t\treturn element.asText();\n\t}",
"private <T> String populateInClause(Collection<T> elements) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"(\");\n for (Iterator<T> it = elements.iterator(); it.hasNext();) {\n sb.append(it.next());\n if (it.hasNext()) { sb.append(\", \"); }\n }\n sb.append(\")\");\n return sb.toString();\n }",
"@Override\n public Object string(Object node) {\n return ((Node<E>) node).element.toString();\n }",
"@Override\n public String toString() {\n switch (this) {\n case CODE128_A:\n return \"code128A\";\n case CODE25INTER:\n return \"2/5 interleave\";\n default:\n return name();\n }\n }",
"public String toString()\n {\n return element.toString();\n }",
"public String extended() {\r\n final StringBuilder sb = new StringBuilder();\r\n if(type != null) sb.append(\"[\" + code() + \"] \");\r\n return sb + simple();\r\n }",
"private String makeElementString (Object value, JField jf, MarshalContext context) throws Exception {\n\t\tString result;\n if (jf instanceof JCompositeField) {\n\t\t\tcontext.addDepth ();\n\t\t\tresult = marshal (value, context, jf.getJavaName(),\n\t\t\t\t\t\t\t jf.getObjectType ());\n\t\t\tcontext.removeDepth ();\n\t\t} else\n\t\t\tresult = context.getIndent () + \"\\t<\" + jf.getJavaName() + \">\" + objectOut (jf, value, context)\n\t\t\t\t+ \"</\" + jf.getJavaName() + \">\\n\";\n\t\treturn result;\n }",
"public static String toString(final Element element) {\n\t\treturn new XMLSerializer(true).serialize(element); //serialize the element to a string, formatting the XML output\n\t}",
"public String getText(Object element) {\n String retval = \"\";\n Object index;\n if (element instanceof Integer) {\n index = element != null ? element : Integer.valueOf(0);\n retval = (String) values.get(index);\n } else if(element instanceof Short) {\n index = element != null ? element : Short.valueOf((short)0);\n retval = (String) values.get(index);\n }\n return retval;\n }",
"public String calculateBaseTypeToString(Object value) \r\n\t{\r\n\t\tString valueString = \"\";\r\n\t\tif(value instanceof Boolean)\r\n\t\t{\r\n\t\t\tvalueString = value.toString();\r\n\t\t}\r\n\t\tif (value == null) \r\n\t\t{\r\n\t\t\tvalueString = \"\";\r\n\t\t}\r\n\t\tif (value instanceof Integer) \r\n\t\t{\r\n\t\t\tvalueString = ((Integer) value).toString();\r\n\t\t}\r\n\t\tif (value instanceof Long)\r\n\t\t{\r\n\t\t\tvalueString = ((Long) value).toString();\r\n\t\t}\r\n\t\tif (value instanceof Float) \r\n\t\t{\r\n\t\t\tvalueString = ((Float) value).toString();\r\n\t\t}\r\n\t\tif (value instanceof BigDecimal)\r\n\t\t{\r\n\t\t\tvalueString = ((BigDecimal) value).toString();\r\n\t\t}\r\n\t\treturn valueString;\r\n\t}",
"private String toString2(){\n String s;\n Enumeration enu = null;\n s = \"Exemplar[\";\n if (numInstances() == 0) {\n\treturn s + \"Empty]\";\n }\n s += \"{\";\n enu = enumerateInstances();\n while(enu.hasMoreElements()){\n\ts = s + \"<\" + enu.nextElement().toString() + \"> \";\n }\n s = s.substring(0, s.length()-1);\n s = s + \"} {\" + toRules() + \"} p=\" + m_PositiveCount + \" n=\" + m_NegativeCount + \"]\";\n return s;\n }",
"public String possibleValues(){\n int nbElement = 9-this.possibilities.size();\n String result = \"\";\n result = result+\"\"+this.value+\" (\";\n for(int i : this.possibilities){\n result = result+i;\n }\n for(int i = 0; i< nbElement ;i++){\n result = result+\".\";\n }\n result = result+\")\";\n return result;\n\n }",
"public String toString()\n\t{\t\n\t\treturn \"Element name:\\t \"+elementName+\"\\nAtomic number:\\t \"+atomicNum+\"\\nSymbol:\\t\\t \"+symbol+\"\\nBoiling Point:\\t \"+boilingPoint+\" K\"+\"\\nMelting Point:\\t \"+meltingPoint+\" K\"+\"\\nDensity:\\t \"\n\t\t\t\t+density+\" g/L\"+\"\\nMolecular Weight: \"+molecularWeight+\" g/mole\\n\";\t\t\t\n\t\n\t}",
"public static <E> String concatElements(Collection<E> collection) {\n return concatElements(collection, EMPTY);\n }",
"public String toString()\n {\n\n String elem;\n StringBuilder s = new StringBuilder();\n for(int i = 0 ; i < n ; i++)\n {\n elem = Integer.toString(array1[i]);\n s.append(elem);\n if(i < (n-1))\n s.append(',');\n }\n s.append('|');\n for(int i = 0 ; i < n ; i++)\n {\n elem = Integer.toString(array2[i]);\n s.append(elem);\n if(i < (n-1))\n s.append(',');\n }\n return s.toString();\n }",
"private String getFlavorableSupertype(Element element, List<String> flavorables) {\n\t\tfor (TypeMirror directSuperType : mTypeUtils.directSupertypes(element.asType())) {\n\t\t\tList<TypeMirror> allSuperTypes = new ArrayList<>(mTypeUtils.directSupertypes(directSuperType));\n\t\t\tallSuperTypes.add(directSuperType);\n\t\t\tfor (TypeMirror superType : allSuperTypes) {\n\t\t\t\tfor (String flavorable : flavorables) {\n//\t\t\t\tProcessorLog.warn(element, \"AAAA \" + flavorable);\n\t\t\t\t\tif (flavorable.equals(superType.toString())) {\n\t\t\t\t\t\treturn flavorable;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tProcessorLog.error(element,\n\t\t\t\t\"Element %s does not extend the %s type.\",\n\t\t\t\telement.getSimpleName(), Flavorable.class.getSimpleName(),\n\t\t\t\tFlavored.class.getSimpleName());\n\t\treturn null;\n\t}",
"protected String convertGroupElement(final int groupWord, final int elementWord) {\r\n String first, second;\r\n\r\n first = Integer.toString(groupWord, 16);\r\n\r\n while (first.length() < 4) { // prepend with '0' as needed\r\n first = \"0\" + first;\r\n }\r\n\r\n first = first.toUpperCase();\r\n second = Integer.toString(elementWord, 16);\r\n\r\n while (second.length() < 4) { // prepend with '0' as needed\r\n second = \"0\" + second;\r\n }\r\n\r\n second = second.toUpperCase();\r\n\r\n return (first + \",\" + second); // name is the hex string of the tag\r\n }",
"public static NodeValue strConcat(List<NodeValue> args) {\n // Step 1 : Choose type.\n // One lang tag -> that lang tag\n String lang = null ;\n boolean mixedLang = false ;\n boolean xsdString = false ;\n boolean simpleLiteral = false ;\n\n StringBuilder sb = new StringBuilder() ;\n\n for (NodeValue nv : args) {\n Node n = checkAndGetStringLiteral(\"CONCAT\", nv) ;\n String lang1 = n.getLiteralLanguage() ;\n if ( !lang1.equals(\"\") ) {\n if ( lang != null && !lang1.equals(lang) )\n // throw new\n // ExprEvalException(\"CONCAT: Mixed language tags: \"+args) ;\n mixedLang = true ;\n lang = lang1 ;\n } else if ( n.getLiteralDatatype() != null )\n xsdString = true ;\n else\n simpleLiteral = true ;\n\n sb.append(n.getLiteralLexicalForm()) ;\n }\n\n if ( mixedLang )\n return NodeValue.makeString(sb.toString()) ;\n\n // Must be all one lang.\n if ( lang != null ) {\n if ( !xsdString && !simpleLiteral )\n return NodeValue.makeNode(sb.toString(), lang, (String)null) ;\n else\n // Lang and one or more of xsd:string or simpleLiteral.\n return NodeValue.makeString(sb.toString()) ;\n }\n\n if ( simpleLiteral && xsdString )\n return NodeValue.makeString(sb.toString()) ;\n // All xsdString\n if ( xsdString )\n return NodeValue.makeNode(sb.toString(), XSDDatatype.XSDstring) ;\n if ( simpleLiteral )\n return NodeValue.makeString(sb.toString()) ;\n\n // No types - i.e. no arguments\n return NodeValue.makeString(sb.toString()) ;\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\tStringBuilder stb = new StringBuilder();\r\n\t\tfor (int i = 0; i < elements.size(); i++) {\r\n\t\t\tstb.append(\"Element \" + i + \":\" + elements.get(i) + \" \");\r\n\t\t}\r\n\t\treturn stb.toString();\r\n\t}",
"public static <E> String concatElements(Elements<E> elements) {\n return concatElements(elements.asList(), EMPTY);\n }",
"public String toString() {\n\t\tif(left == this && right == this) {\n\t\t\treturn getElementString();\n\t\t}\n\t\telse {\n\t\t\tif(right.right == right && right.noBranchBit == true) {\n\t\t\t\treturn \"(\" + left.toString() + \")\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn \"(\" + left.toString() + \" && \" + right.toString() + \")\";\n\t\t\t}\n\t\t}\n\t}",
"static String getElementLabel(IJavaElement[] elements) {\n switch(elements.length) {\n case 0:\n Assert.isTrue(false);\n return null;\n case 1:\n return Messages.format(TypeHierarchyMessages.HistoryAction_inputElements_1, new String[] { getShortLabel(elements[0]) });\n case 2:\n return Messages.format(TypeHierarchyMessages.HistoryAction_inputElements_2, new String[] { getShortLabel(elements[0]), getShortLabel(elements[1]) });\n default:\n return Messages.format(TypeHierarchyMessages.HistoryAction_inputElements_more, new String[] { getShortLabel(elements[0]), getShortLabel(elements[1]), getShortLabel(elements[2]) });\n }\n }",
"public String genotypeToString()\n {\n StringBuilder s = new StringBuilder();\n s.append( Code.encode( genome.length ) );\n for( int i = 0 ; i < genome.length ; i++ ) {\n s.append(Code.encode(genome[i].toString()));\n }\n return s.toString();\n }",
"static String getShortLabel(IJavaElement element) {\n return JavaElementLabels.getElementLabel(element, JavaElementLabels.ALL_DEFAULT | JavaElementLabels.ALL_POST_QUALIFIED | JavaElementLabels.P_COMPRESSED);\n }",
"String getElement();",
"private String getStringValue(NodeArray nodes) {\n StringBuilder stringBuilder = new StringBuilder();\n // If all we have is just a bunch of nodes and the user wants a string\n // we'll use a parent element called <string> to have a valid XML document\n stringBuilder.append(\"<string>\");\n for (Node node : nodes) {\n stringBuilder.append(getStringValue(node));\n }\n stringBuilder.append(\"</string>\");\n return stringBuilder.toString();\n }",
"public String toString()\n\t{\n\t\tString output;\n\t\tif (value == null)\n\t\t\toutput = \"Null\";\n\t\telse\n\t\t\toutput = value.toString() + frequency;\n\t\tif (isLeaf())\n\t\t\treturn output;\n\t\t//don't need to check cases if only right or left is null\n\t\t//don't need to print out frequency\n\t\telse\n\t\t\treturn output + \"(\" + left.toString() + \",\" + right.toString() + \")\";\n\t}",
"public String shortRepr() {\n\t\treturn \"Value of some kind.\";\n\t}",
"public String toString() {\n\t \tif(size == 0) {\n\t \t\treturn \"[]\";\n\t \t}else {\n\t \t\t\n\t \t\tString result = \"[\" + elementData[0];\n\t \t\tfor(int i = 1; i < size; i++) {\n\t \t\t\tresult += \", \" + elementData[i];\n\t \t\t}\n\t \t\t\n\t \t\tresult += \"]\";\n\t \t\t\n\t \t\treturn result;\n\t \t}\n\t }",
"public String toString() {\n String result = \"[\";\n if (!isEmpty()) {\n result += elementData[1];\n for (int i = 2; i <= size; i++) {\n result += \", \" + elementData[i];\n }\n }\n return result + \"]\";\n }",
"public String toString()\n {\n if (stringRep == null)\n {\n StringBuilder sb = new StringBuilder();\n switch (type)\n {\n case THREE_PRIME:\n sb.append(\"DNA 3'-\");\n break;\n case FIVE_PRIME:\n sb.append(\"DNA 5'-\");\n break;\n case RNA:\n sb.append(\"RNA \");\n break;\n }\n \n for (int i = 0; i < seq.length; i++)\n {\n sb.append(seq[i]); // Java magic with Enum types -- converts to string.\n }\n \n switch (type)\n {\n case THREE_PRIME:\n sb.append(\"-5'\");\n break;\n case FIVE_PRIME:\n sb.append(\"-3'\");\n break;\n }\n \n stringRep = sb.toString();\n }\n \n return stringRep;\n }",
"public String printCharStack() {\r\n\t\t String elements = \"<\";\r\n\t\t \r\n\t\tfor(int i = 0; i < count; i++) {\r\n\t\t\telements += \" \" + (char)array[i];\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\telements += \">\";\r\n\t\t\treturn elements;\r\n\t }",
"java.lang.String getS5();",
"public String toString() {\n/* 97 */ StringBuffer stringBuffer = new StringBuffer();\n/* 98 */ for (byte b = 0; b < this.controls.length; b++) {\n/* 99 */ if (b != 0) {\n/* 100 */ stringBuffer.append(\", \");\n/* 101 */ if (b + 1 == this.controls.length) {\n/* 102 */ stringBuffer.append(\"and \");\n/* */ }\n/* */ } \n/* 105 */ stringBuffer.append(this.controls[b].getType());\n/* */ } \n/* */ \n/* 108 */ return new String(getType() + \" Control containing \" + stringBuffer + \" Controls.\");\n/* */ }",
"@Override\r\n\tpublic String toString() {\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tif(id != null) sb.append(\"#\" + id);\r\n\t\tif(_class != null) sb.append(\".\" + _class);\r\n\t\tif(elemnt != null) sb.append(elemnt);\r\n\t\tfor (Attr attr : attrs) {\r\n\t\t\tsb.append(attr.toString());\r\n\t\t}\r\n\t\tfor (String pseudo : pseudos) {\r\n\t\t\tsb.append(\":\" + pseudo);\r\n\t\t}\t\t\r\n\t\t\r\n\t\t//if(child != null) sb.append(child.getExp() + child.toString());\r\n\t\tif(child != null) sb.append(\" \" + child.toString());\r\n\t\t\r\n\t\treturn sb.toString();\r\n\t}",
"public abstract String toString_short();",
"public String tagAsString();",
"public static String toStringValue(final Element element) throws XMLException{\n\t\ttry {\n\t\t\tfinal ByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\t\twrite(element, baos, null);\n\t\t\treturn baos.toString();\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tthrow new XMLException(e);\n\t\t}\n\t}",
"public BEREncoding\nber_encode()\n throws ASN1Exception\n{\n BEREncoding chosen = null;\n\n BEREncoding enc[];\n\n // Encoding choice: c_resultSets\n if (c_resultSets != null) {\n chosen = c_resultSets.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 1);\n }\n\n // Encoding choice: c_badSet\n if (c_badSet != null) {\n if (chosen != null)\n throw new ASN1Exception(\"CHOICE multiply set\");\n chosen = c_badSet.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 2);\n }\n\n // Encoding choice: c_relation\n if (c_relation != null) {\n if (chosen != null)\n throw new ASN1Exception(\"CHOICE multiply set\");\n chosen = c_relation.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 3);\n }\n\n // Encoding choice: c_unit\n if (c_unit != null) {\n if (chosen != null)\n throw new ASN1Exception(\"CHOICE multiply set\");\n chosen = c_unit.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 4);\n }\n\n // Encoding choice: c_distance\n if (c_distance != null) {\n if (chosen != null)\n throw new ASN1Exception(\"CHOICE multiply set\");\n chosen = c_distance.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 5);\n }\n\n // Encoding choice: c_attributes\n if (c_attributes != null) {\n if (chosen != null)\n throw new ASN1Exception(\"CHOICE multiply set\");\n enc = new BEREncoding[1];\n enc[0] = c_attributes.ber_encode();\n chosen = new BERConstructed(BEREncoding.CONTEXT_SPECIFIC_TAG, 6, enc);\n }\n\n // Encoding choice: c_ordered\n if (c_ordered != null) {\n if (chosen != null)\n throw new ASN1Exception(\"CHOICE multiply set\");\n chosen = c_ordered.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 7);\n }\n\n // Encoding choice: c_exclusion\n if (c_exclusion != null) {\n if (chosen != null)\n throw new ASN1Exception(\"CHOICE multiply set\");\n chosen = c_exclusion.ber_encode(BEREncoding.CONTEXT_SPECIFIC_TAG, 8);\n }\n\n // Check for error of having none of the choices set\n if (chosen == null)\n throw new ASN1Exception(\"CHOICE not set\");\n\n return chosen;\n}",
"private String getElementRefExt(Node elementRefNode, XmlProcessor simpleXmlProcessor)\n\t\t\tthrows XPathExpressionException {\n\t\tString extension = \"\";\n\t\tif (elementRefNode.hasChildNodes()) {\n\t\t\tNode childNode = elementRefNode.getFirstChild();\n\t\t\tif (\"attribute\".equals(childNode.getNodeName())) {\n\t\t\t\textension = childNode.getAttributes().getNamedItem(ATTR_UUID).getNodeValue();\n\t\t\t}\n\t\t} else {\n\t\t\tString id = elementRefNode.getAttributes().getNamedItem(ID).getNodeValue();\n\t\t\tNode qdmNode = simpleXmlProcessor.findNode(simpleXmlProcessor.getOriginalDoc(),\n\t\t\t\t\t\"/measure/elementLookUp/qdm[@uuid='\" + id + \"']\");\n\t\t\tif (qdmNode != null) {\n\t\t\t\tString dataType = qdmNode.getAttributes().getNamedItem(DATATYPE).getNodeValue();\n\t\t\t\tString qdmName = qdmNode.getAttributes().getNamedItem(NAME).getNodeValue();\n\t\t\t\textension = qdmName + \"_\" + dataType;\n\t\t\t\tif (qdmNode.getAttributes().getNamedItem(INSTANCE) != null) {\n\t\t\t\t\textension = qdmNode.getAttributes().getNamedItem(INSTANCE).getNodeValue() + \"_\" + extension;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn StringUtils.deleteWhitespace(extension);\n\t}",
"public String toString() {\n\t\t\n\t\treturn \"Uniform\";\n\t}",
"@Override\n public String toString() {\n StringBuilder b = new StringBuilder();\n boolean any = false;\n if (isUnknown()) {\n b.append(\"?\");\n any = true;\n } else if (isPolymorphic()) {\n b.append(\"^(\").append(var).append('[');\n if (isMaybeAbsent()) {\n b.append(\"absent\");\n any = true;\n }\n if (isMaybePresent()) {\n if (any)\n b.append('|');\n b.append(\"present\");\n }\n b.append(\"])\");\n any = true;\n } else {\n if (isMaybeUndef()) {\n b.append(\"Undef\");\n any = true;\n }\n if (isMaybeNull()) {\n if (any)\n b.append('|');\n b.append(\"Null\");\n any = true;\n }\n if (isMaybeAnyBool()) {\n if (any)\n b.append('|');\n b.append(\"Bool\");\n any = true;\n } else if (isMaybeTrueButNotFalse()) {\n if (any)\n b.append('|');\n b.append(\"true\");\n any = true;\n } else if (isMaybeFalseButNotTrue()) {\n if (any)\n b.append('|');\n b.append(\"false\");\n any = true;\n }\n if (isMaybeAnyNum()) {\n if (any)\n b.append('|');\n b.append(\"Num\");\n any = true;\n } else {\n if (num == null && isMaybeZero() && !isMaybeNumUIntPos()) {\n if (any)\n b.append('|');\n b.append(\"Zero\");\n any = true;\n } else if (!isMaybeZero() && isMaybeNumUIntPos()) {\n if (any)\n b.append('|');\n b.append(\"UIntPos\");\n any = true;\n } else if (isMaybeNumUInt()) {\n if (any)\n b.append('|');\n b.append(\"UInt\");\n any = true;\n }\n if (isMaybeNumOther()) {\n if (any)\n b.append('|');\n b.append(\"NotUInt\");\n any = true;\n }\n if (isMaybeNaN()) {\n if (any)\n b.append('|');\n b.append(\"NaN\");\n any = true;\n }\n if (isMaybeInf()) {\n if (any)\n b.append('|');\n b.append(\"Inf\");\n any = true;\n }\n if (num != null) {\n if (any)\n b.append('|');\n b.append(num);\n any = true;\n }\n }\n if (excluded_strings != null || included_strings != null) {\n if (any)\n b.append('|');\n b.append('(');\n any = false;\n }\n if (isMaybeAnyStr()) {\n if (any)\n b.append('|');\n b.append(\"Str\");\n any = true;\n } else {\n if (isMaybeStrUInt()) {\n if (any)\n b.append('|');\n b.append(\"UIntStr\");\n any = true;\n }\n if (isMaybeStrOtherNum()) {\n if (any)\n b.append('|');\n b.append(\"NotUIntStr\"); // TODO: change to OtherNumStr?\n any = true;\n }\n if (isMaybeStrIdentifier()) {\n if (any)\n b.append('|');\n b.append(\"IdentStr\");\n any = true;\n }\n if (isMaybeStrOtherIdentifierParts()) {\n if (any)\n b.append('|');\n b.append(\"OtherIdentPartsStr\");\n any = true;\n }\n if (isMaybeStrOther()) {\n if (any)\n b.append('|');\n b.append(\"OtherStr\");\n any = true;\n }\n if (isStrJSON()) {\n if (any)\n b.append(\"|\");\n b.append(\"JSONStr\");\n any = true;\n }\n if (isMaybeStrPrefix()) {\n if (any)\n b.append('|');\n b.append(\"PrefixStr[\").append(Strings.escape(str)).append(']');\n any = true;\n } else if (str != null) {\n if (any)\n b.append('|');\n b.append('\"').append(Strings.escape(str)).append('\"');\n any = true;\n }\n }\n if (excluded_strings != null || included_strings != null) {\n b.append(')');\n if (excluded_strings != null)\n b.append(\"\\\\{\").append(excluded_strings.stream().sorted().map(s -> '\"' + Strings.escape(s) + '\"').collect(java.util.stream.Collectors.joining(\",\"))).append(\"}\");\n if (included_strings != null)\n b.append(\"{\").append(included_strings.stream().sorted().map(s -> '\"' + Strings.escape(s) + '\"').collect(java.util.stream.Collectors.joining(\",\"))).append(\"}\");\n any = true;\n }\n if (object_labels != null) {\n if (any)\n b.append('|');\n b.append(object_labels);\n any = true;\n }\n if (getters != null) {\n if (any)\n b.append('|');\n b.append(\"getter \").append(getters);\n any = true;\n }\n if (setters != null) {\n if (any)\n b.append('|');\n b.append(\"setter \").append(setters);\n any = true;\n }\n if (isMaybeAbsent()) {\n if (any)\n b.append('|');\n b.append(\"absent\");\n any = true;\n }\n if (functionPartitions != null) {\n if (any)\n b.append(',');\n b.append(\"functionPartitions=\").append(functionPartitions);\n any = true;\n }\n if (functionTypeSignatures != null) {\n if (any)\n b.append(',');\n b.append(\"functionTypeSignatures=\").append(functionTypeSignatures);\n // any = true;\n }\n }\n if (!any)\n b.append(\"<no value>\");\n// if (isMaybeModified())\n// b.append(\"%\");\n return b.toString();\n }",
"@AutoEscape\n\tpublic String getNode_5();",
"private String getStringBase(int n1){\n return Integer.toString(n1, base).toUpperCase();\n }",
"public String toString(){return \"(X\" + variable + \" (\"+ zero + \")\" + \" (\" + one +\"))\";}",
"@Override\n public Object string(Object node) {\n Node<E> myNode = (Node<E>)node;\n String parentString = \"null\";\n if (myNode.parent != null) {\n parentString = myNode.parent.element.toString();\n }\n return myNode.element + \"_p(\" + parentString + \")\"; }",
"private String arrayToString(TOP fsIn, int arrayType) throws SAXException {\n if (fsIn == null) {\n return null;\n }\n\n StringBuilder buf = new StringBuilder();\n CommonArrayFS fs = (CommonArrayFS) fsIn;\n String elemStr = null;\n\n // FS arrays: handle shared data items\n if (fs instanceof FSArray) {\n List<XmiArrayElement> ootsArrayElementsList = cds.sharedData == null ? null\n : cds.sharedData.getOutOfTypeSystemArrayElements((FSArray) fs);\n int ootsIndex = 0;\n\n int j = -1;\n for (TOP elemFS : ((FSArray) fs)._getTheArray()) {\n j++;\n if (elemFS == null) { // null case\n // special NULL object with xmi:id=0 is used to represent\n // a null in an FSArray\n elemStr = \"0\";\n // However, this null array element might have been a reference to an\n // out-of-typesystem FS, so check the ootsArrayElementsList\n if (ootsArrayElementsList != null) {\n\n while (ootsIndex < ootsArrayElementsList.size()) {\n XmiArrayElement arel = ootsArrayElementsList.get(ootsIndex++);\n if (arel.index == j) {\n elemStr = arel.xmiId;\n break;\n }\n }\n }\n\n } else { // not null\n String xmiId = cds.getXmiId(elemFS);\n if (cds.isFiltering) { // return as null any references to types not in target TS\n String typeName = elemFS._getTypeImpl().getName();\n if (cds.filterTypeSystem_inner.getType(typeName) == null) {\n xmiId = \"0\";\n }\n }\n elemStr = xmiId;\n }\n\n if (buf.length() > 0) {\n buf.append(' ');\n }\n buf.append(elemStr);\n } // end of loop over FS Array elements\n\n return buf.toString();\n\n } else if (fs instanceof ByteArray) {\n\n // special case for byte arrays: serialize as hex digits\n byte[] ba = ((ByteArray) fs)._getTheArray();\n\n char[] r = new char[ba.length * 2];\n\n int i = 0;\n for (byte b : ba) {\n r[i++] = INT_TO_HEX[(b & 0xF0) >>> 4];\n r[i++] = INT_TO_HEX[b & 0x0F];\n }\n return new String(r);\n } else {\n // is not FSarray, is not ByteArray, is not String Array\n // CommonArrayFS fs;\n // String[] fsvalues;\n //\n // switch (arrayType) {\n // case LowLevelCAS.TYPE_CLASS_INTARRAY:\n // fs = new IntArrayFSImpl(addr, cds.cas);\n // break;\n // case LowLevelCAS.TYPE_CLASS_FLOATARRAY:\n // fs = new FloatArrayFSImpl(addr, cds.cas);\n // break;\n // case LowLevelCAS.TYPE_CLASS_BOOLEANARRAY:\n // fs = new BooleanArrayFSImpl(addr, cds.cas);\n // break;\n // case LowLevelCAS.TYPE_CLASS_SHORTARRAY:\n // fs = new ShortArrayFSImpl(addr, cds.cas);\n // break;\n // case LowLevelCAS.TYPE_CLASS_LONGARRAY:\n // fs = new LongArrayFSImpl(addr, cds.cas);\n // break;\n // case LowLevelCAS.TYPE_CLASS_DOUBLEARRAY:\n // fs = new DoubleArrayFSImpl(addr, cds.cas);\n // break;\n // case LowLevelCAS.TYPE_CLASS_BYTEARRAY:\n // fs = new ByteArrayFSImpl(addr, cds.cas);\n // break;\n // default: {\n // return \"\";\n // }\n // }\n\n // if (arrayType == LowLevelCAS.TYPE_CLASS_STRINGARRAY) { // this method never called for\n // StringArrays\n // StringArrayFS strFS = new StringArrayFSImpl(addr, cds.cas);\n // fsvalues = strFS.toArray();\n // } else {\n String[] fsvalues = fs.toStringArray();\n // }\n\n for (String s : fsvalues) {\n if (buf.length() > 0) {\n buf.append(' ');\n }\n buf.append(s);\n }\n return buf.toString();\n }\n }",
"protected String getReferenceNameElement(WebElement elemento) {\n \tField[] fields = (Field[]) ArrayUtils.addAll(\n \t\t\tgetClass().getSuperclass().getDeclaredFields(),\n getClass().getDeclaredFields());\n \t\n \tfor (Field field : fields) {\n \tif(field.getType().getName().toLowerCase().contains(\"menu\")) {\n \t\tfor (Field fieldMenu: field.getType().getDeclaredFields()) {\n if (fieldMenu.getType().getName().toString().contains(\"pageObject\")) {\n \tfields = (Field[]) ArrayUtils.add(fields,fieldMenu);\n }\t\t\t\t\t\n\t\t\t\t}\t\n \t}\n\t\t}\n \treturn \"<b>\" + getFieldFinder(fields, elemento) + \"</b>\";\n }",
"protected static String toString(Value value) {\n String result = StringProvider.toIvmlString(value);\n IDatatype type = value.getType();\n if (StringType.TYPE.isAssignableFrom(type)) {\n while (result.startsWith(\"\\\"\")) {\n result = result.substring(1);\n }\n while (result.endsWith(\"\\\"\")) {\n result = result.substring(0, result.length() - 1);\n }\n } else if (Enum.TYPE.isAssignableFrom(type)) {\n int pos = result.lastIndexOf(\".\");\n if (pos > 0 && pos + 1 < result.length()) {\n result = result.substring(pos + 1);\n }\n } else if (Container.TYPE.isAssignableFrom(type)) {\n if (result.startsWith(\"{\\\"\")) {\n result = result.substring(2);\n }\n while (result.endsWith(\"\\\"}\")) {\n result = result.substring(0, result.length() - 2);\n }\n }\n return result;\n }",
"@DSSafe(DSCat.SAFE_OTHERS)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:53.096 -0500\", hash_original_method = \"AD601F3532730C1588B10C0B2F4700C0\", hash_generated_method = \"7CF3579665197E3D9616E88D35150E2D\")\n \npublic ASN1BitString() {\n super(TAG_BITSTRING);\n }",
"public abstract String toString(String bin);",
"public String toString()\n\t{\n\t\tString result = new String();\n\t\tfor (boolean bit : bits)\n\t\t{\n\t\t\tif (bit) result += '1';\n\t\t\telse result += '0';\n\t\t}\n\t\treturn result;\n\t}",
"@Override\n\tpublic String toString() {\n\t\tString st = \"(\";\n\t\tfor (int i = 0; i < m_elems.length; i++){\n\t\t\tif (i>0)\n\t\t\t\tst+=\",\";\n\t\t\tst += m_elems[i];\n\t\t}\n\t\tst += \"):\" + String.valueOf(m_frequency);\n\t\treturn st;\n\t}",
"@Override\n public String toString() {\n Helpers f = new Helpers();\n Expression left = super.getLeft();\n Expression right = super.getRight();\n\n if (super.isBonus()) {\n // x * y -> xy\n if (left instanceof Var && right instanceof Var) {\n return \"(\" + left.toString() + \"\" + right.toString() + \")\";\n }\n // 4 * x -> 4x\n if (right instanceof Var) {\n return \"(\" + left.toString() + \"\" + right.toString() + \")\";\n }\n // x * 4 -> 4x\n if (left instanceof Var) {\n return \"(\" + right.toString() + \"\" + left.toString() + \")\";\n }\n // 4 * (x^2) -> 4(x^2)\n if (right instanceof Pow) {\n return \"(\" + left.toString() + \"\" + right.toString() + \")\";\n }\n // 4 * (xy) -> 4xy\n if (right instanceof Mult) {\n if (((Mult) right).getLeft() instanceof Var && ((Mult) right).getRight() instanceof Var) {\n return \"(\" + left.toString() + \"\" + f.removeOuterParentheses(right.toString()) + \")\";\n }\n }\n }\n return \"(\" + left.toString() + \" * \" + right.toString() + \")\";\n }",
"public String toString() {\n\t\tString s = \"\";\n\t\tfor (Coord x : array)\n\t\t\ts += x;\n\t\treturn s;\n\t}",
"@Override\n public String toString() {\n StringBuilder outString = new StringBuilder();\n int currentTreeIndex = this.indexCorrespondingToTheFirstElement;\n if (treeSize > 0) {\n while (currentTreeIndex != -1) {\n Node<T> currentNode = getHelper(currentTreeIndex);\n outString.append(currentNode.data).append(\", \");\n currentTreeIndex = currentNode.nextIndex;\n }\n }\n\n if (outString.length() != 0) {\n outString.deleteCharAt(outString.length() - 1); // \", \"\n outString.deleteCharAt(outString.length() - 1);\n }\n return \"[\" + outString.toString() + \"]\";\n }",
"private void jetBinopExprStr(){\n\t\tBinopExpr binopExpr = (BinopExpr) rExpr;\n\t\tValue op1 = binopExpr.getOp1();\n\t\tValue op2 = binopExpr.getOp2();\n\t\tZ3Type op1Z3Type = Z3MiscFunctions.v().z3Type(op1.getType());\n\t\tZ3Type op2Z3Type = Z3MiscFunctions.v().z3Type(op2.getType());\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tBinopExprType binopType = Z3MiscFunctions.v().getBinopExprType(binopExpr);\n\t\tswitch(binopType){\n\t\t//[start]ADD\n\t\tcase ADD:\n\t\t\t//add_expr = immediate \"+\" immediate;\n\t\t\t//immediate = constant | local;\n\t\t\t//only Int, Real, String can ADD\n\t\t\t//Exceptional Cases: \"084\" + 42; we exclude them\n\t\t\tassert((op1Z3Type == Z3Type.Z3String && op2Z3Type == Z3Type.Z3String) ||\n\t\t\t\t\t(op1Z3Type != Z3Type.Z3String && op2Z3Type != Z3Type.Z3String));\n\t\t\tif(op1Z3Type == Z3Type.Z3String ){\n\t\t\t\t//( Concat \"te\" y1 )\n\t\t\t\tsb.append(\"( Concat \");\n\t\t\t}else{\n\t\t\t\t//(+ 2 i2)\n\t\t\t\tsb.append(\"(+ \");\n\t\t\t}\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\" )\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end]ADD\n\t\tcase AND:\n\t\t\t//and_expr = immediate \"&\" immediate;\n\t\t\t//TODO\n\t\t\t//assert(false) : \"AND Expr\";\n\t\t\tbreak;\n\t\t//[start] DIV\n\t\tcase DIV:\n\t\t\t//div_expr = immediate \"/\" immediate;\n\t\t\t//(div a b) integer division\n\t\t\t//(/ a b) float division\n\t\t\tif(op1Z3Type == Z3Type.Z3Real || op2Z3Type == Z3Type.Z3Real){\n\t\t\t\tsb.append(\"(/ \");\n\t\t\t}else{\n\t\t\t\tsb.append(\"(div \");\n\t\t\t}\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] DIV\n\t\t//[start] EQ\n\t\tcase EQ:\n\t\t\t//eq_expr = immediate \"==\" immediate;\n\t\t\t//b = r1 == r2\n\t\t\t//(assert (= b (= r1 r2)))\n\t\t\tsb.append(\"(= \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] EQ\n\t\t//[start] GE\n\t\tcase GE:\n\t\t\t//ge_expr = immediate \">=\" immediate;\n\t\t\t//b = r1 >= r2\n\t\t\t//(assert (= b (>= r1 r2)))\n\t\t\tsb.append(\"(>= \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] GE\n\t\t//[start] GT\n\t\tcase GT:\n\t\t\t//gt_expr = immediate \">\" immediate;\n\t\t\t//b = r1 > r2\n\t\t\t//(assert (= b (> r1 r2)))\n\t\t\tsb.append(\"(> \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] GT\n\t\t//[start] LE\n\t\tcase LE:\n\t\t\t//le_expr = immediate \"<=\" immediate;\n\t\t\t//b = r1 <= r2\n\t\t\t//(assert (= b (<= r1 r2)))\n\t\t\tsb.append(\"(<= \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] LE\n\t\t//[start] LT\n\t\tcase LT:\n\t\t\t//lt_expr = immediate \"<\" immediate;\n\t\t\t//b = r1 < r2\n\t\t\t//(assert (= b (< r1 r2)))\n\t\t\tsb.append(\"(< \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] LT\n\t\t//[start] MUL\n\t\tcase MUL:\n\t\t\t//mul_expr = immediate \"*\" immediate;\n\t\t\t//(* op1 op2)\n\t\t\tsb.append(\"(* \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] MUL\n\t\t//[start] NE\n\t\tcase NE:\n\t\t\t//ne_expr = immediate \"!=\" immediate;\n\t\t\t//(not (= op1 op2))\n\t\t\tsb.append(\"(not (= \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\"))\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] NE\n\t\tcase OR:\n\t\t\t//or_expr = immediate \"|\" immediate;\n\t\t\t//TODO\n\t\t\tassert(false) : \"OR Expr\";\n\t\t\tbreak;\n\t\t//[start] REM\n\t\tcase REM:\n\t\t\t//rem_expr = immediate \"%\" immediate;\n\t\t\t//(rem op1 op2)\n\t\t\tsb.append(\"(rem \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] REM\n\t\t//[start] SUB\n\t\tcase SUB:\n\t\t\t//sub_expr = immediate \"-\" immediate;\n\t\t\t//(- op1 op2)\n\t\t\tsb.append(\"(- \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] SUB\n\t\t}\n\t}",
"String getPhysElemLongName(int phys_elem, int ent_id) {\n switch (phys_elem) {\n case 1:\n return \"Imager Visible\";\n case 2:\n return \"Imager 3.9 micron IR\";\n case 3:\n return \"Imager 6.7/6.5 micron IR (WV)\";\n case 4:\n return \"Imager 11 micron IR\";\n case 5:\n return \"Imager 12 micron IR\";\n case 6:\n return \"Imager 13 micron IR\";\n case 7:\n return \"Imager 1.3 micron IR\";\n case 13:\n return \"Lifted Index LI\";\n case 14:\n return \"Precipitable Water PW\";\n case 15:\n return \"Surface Skin Temperature\";\n case 16:\n return \"Lifted Index LI\";\n case 17:\n return \"Precipitable Water PW\";\n case 18:\n return \"Surface Skin Temperature\";\n case 19:\n return \"Convective Available Potential Energy\";\n case 20:\n return \"land-sea Temperature\";\n case 21:\n return \"Wind Index\";\n case 22:\n return \"Dry Microburst Potential Index\";\n case 23:\n return \"Microburst Potential Index\";\n case 24:\n return \"Derived Convective Inhibition\";\n case 25:\n if (ent_id == 99)\n return \"1km National Hybrid Hydrometeor Classification Composite (Unidata)\";\n else\n return \"Volcano_imagery\";\n case 26:\n if (ent_id == 99)\n return \"1 km National Echo Tops Composite (Unidata)\";\n else\n return \"4 km National Echo Tops\";\n case 27:\n if (ent_id == 99)\n return \"1 km National Base Reflectivity Composite (Unidata)\";\n else\n return \"Cloud Top Pressure or Height\";\n case 28:\n if (ent_id == 99)\n return \"1 km National Reflectivity Composite (Unidata)\";\n else\n return \"Cloud Amount\";\n case 29:\n if (ent_id == 99)\n return \"1 km National Vertically Integrated Liquid Water (Unidata)\";\n else\n return \"4 km National Vertically Integrated Liquid Water\";\n case 30:\n if (ent_id == 99)\n return \"1 km National 1-hour Precipitation (Unidata)\";\n else\n return \"Surface wind speeds over oceans and Great Lakes\";\n case 31:\n if (ent_id == 99)\n return \"4 km National Storm Total Precipitation (Unidata)\";\n else\n return \"Surface Wetness\";\n case 32:\n return \"Ice concentrations\";\n case 33:\n return \"Ice type\";\n case 34:\n return \"Ice edge\";\n case 35:\n return \"Cloud water content\";\n case 36:\n return \"Surface type\";\n case 37:\n return \"Snow indicator\";\n case 38:\n return \"Snow/water content\";\n case 39:\n return \"Derived volcano imagery\";\n case 41:\n return \"Sounder 14.71 micron imagery\";\n case 42:\n return \"Sounder 14.37 micron imagery\";\n case 43:\n return \"Sounder 14.06 micron imagery\";\n case 44:\n return \"Sounder 13.64 micron imagery\";\n case 45:\n return \"Sounder 13.37 micron imagery\";\n case 46:\n return \"Sounder 12.66 micron imagery\";\n case 47:\n return \"Sounder 12.02 micron imagery\";\n case 48:\n return \"11.03 micron sounder image\";\n case 49:\n return \"Sounder 11.03 micron imagery\";\n case 50:\n return \"7.43 micron sounder image\";\n case 51:\n return \"7.02 micron sounder image\";\n case 52:\n return \"6.51 micron sounder image\";\n case 53:\n return \"Sounder 4.57 micron imagery\";\n case 54:\n return \"Sounder 4.52 micron imagery\";\n case 55:\n return \"4.45 micron sounder image\";\n case 56:\n return \"Sounder 4.13 micron imagery\";\n case 57:\n return \"3.98 micron sounder image\";\n case 58:\n return \"Sounder 3.74 micron imagery\";\n case 59:\n return \"VIS sounder image \";\n default:\n return \"unknown physical element \" + phys_elem;\n }\n }",
"@SuppressWarnings(\"rawtypes\")\n\tprotected static String asString(Object o){\n\t\tif(o == null)\n\t\t\treturn \"null\";\n\t\tif(o instanceof Integer)\n\t\t\treturn ((Integer)o).toString() + \" [Java]\";\n\t\tif(o instanceof String)\n\t\t\treturn ((String)o) + \" [Java]\";\n\t\tif(o instanceof IValue)\n\t\t\treturn ((IValue) o).toString() +\" [IValue]\";\n\t\tif(o instanceof Type)\n\t\t\treturn ((Type) o).toString() + \" [Type]\";\n\t\tif(o instanceof Object[]){\n\t\t\tStringBuilder w = new StringBuilder();\n\t\t\tObject[] lst = (Object[]) o;\n\t\t\tw.append(\"[\");\n\t\t\tfor(int i = 0; i < lst.length; i++){\n\t\t\t\tw.append(asString(lst[i]));\n\t\t\t\tif(i < lst.length - 1)\n\t\t\t\t\t\tw.append(\", \");\n\t\t\t}\n\t\t\tw.append(\"]\");\n\t\t\treturn w.toString() + \" [Object[]]\";\n\t\t}\n\t\tif(o instanceof Coroutine){\n\t\t\tif(((Coroutine)o).frame != null && ((Coroutine)o).frame.function != null){\n\t\t\t\treturn \"Coroutine[\" + ((Coroutine)o).frame.function.getName() + \"]\";\n\t\t\t} else {\n\t\t\t\treturn \"Coroutine[**no name**]\";\n\t\t\t}\n\t\t}\n\t\tif(o instanceof Function){\n\t\t\treturn \"Function[\" + ((Function)o).getName() + \"]\";\n\t\t}\n\t\tif(o instanceof FunctionInstance){\n\t\t\treturn \"Function[\" + ((FunctionInstance)o).function.getName() + \"]\";\n\t\t}\n\t\tif(o instanceof OverloadedFunctionInstance) {\n\t\t\treturn ((OverloadedFunctionInstance) o).toString();\n\t\t}\n\t\tif(o instanceof Reference){\n\t\t\tReference ref = (Reference) o;\n\t\t\treturn ref.toString(); //\"Reference[\" + ref.stack + \", \" + ref.pos + \"]\";\n\t\t}\n\t\tif(o instanceof IListWriter){\n\t\t\treturn \"ListWriter[\" + ((IListWriter) o).toString() + \"]\";\n\t\t}\n\t\tif(o instanceof ISetWriter){\n\t\t\treturn \"SetWriter[\" + ((ISetWriter) o).toString() + \"]\";\n\t\t}\n\t\tif(o instanceof IMapWriter){\n\t\t\treturn \"MapWriter[\" + ((IMapWriter) o).toString() + \"]\";\n\t\t}\n\t\tif(o instanceof Matcher){\n\t\t\treturn \"Matcher[\" + ((Matcher) o).pattern() + \"]\";\n\t\t}\n\t\tif(o instanceof Thrown) {\n\t\t\treturn \"THROWN[ \" + asString(((Thrown) o).getValue()) + \" ]\";\n\t\t}\n\t\t\n\t\tif(o instanceof StringBuilder){\n\t\t\treturn \"StringBuilder[\" + ((StringBuilder) o).toString() + \"]\";\n\t\t}\n\t\tif(o instanceof HashSet){\n\t\t\treturn \"HashSet[\" + ((HashSet<?>) o).toString() + \"]\";\n\t\t}\n\t\tif(o instanceof Map){\n\t\t\treturn \"Map[\" + ((Map<?, ?>) o).toString() + \"]\";\n\t\t}\n\t\tif(o instanceof HashMap){\n\t\t\treturn \"HashMap[\" + ((HashMap<?, ?>) o).toString() + \"]\";\n\t\t}\n\t\tif(o instanceof Map.Entry){\n\t\t\treturn \"Map.Entry[\" + ((Map.Entry) o).toString() + \"]\";\n\t\t}\n\t\t\n\t\treturn o.getClass().getName();\n\t\n\t\t//throw new CompilerError(\"asString cannot convert: \" + o);\n\t}",
"@Override\n\tpublic String toString(){\n\t\treturn B_number+\",\"+left+\",\"+right+\",\"+filterType;\n\t}",
"private static String indexToType(int orbit) {\n String value = \"\";\n switch (orbit){\n case ORBIT_6_KNOT: value = \"Trefoil\"; break;\n case ORBIT_4_KNOT: value = \"Trefoil2\"; break;\n case ORBIT_4_SIMPLE: value = \"Simple3\"; break;\n case ORBIT_3_SIMPLE: value = \"Simple4\"; break;\n case ORBIT_5_SIMPLE: value = \"Simple5\"; break;\n case ORBIT_8: value = \"Chasing\"; break;\n }\n return value;\n }",
"public String ToStringClass()\n\t{\n\t\tif (!_canonical)\n\t\t{\n\t\t\tCanonicalize();\n\t\t}\n\n\t\t// make a guess about the length of the ranges. We'll update this at the end. \n\t\t// This is important because if the last range ends in LastChar, we won't append\n\t\t// LastChar to the list. \n\t\tint rangeLen = _rangelist.size() * 2;\n\t\tStringBuilder sb = new StringBuilder(rangeLen + _categories.length() + 3);\n\n\t\tint flags;\n\t\tif (_negate)\n\t\t{\n\t\t\tflags = 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tflags = 0;\n\t\t}\n\n\t\tsb.append((char) flags);\n\t\tsb.append((char) rangeLen);\n\t\tsb.append((char) _categories.length());\n\n\t\tfor (int i = 0; i < _rangelist.size(); i++)\n\t\t{\n\t\t\tSingleRange currentRange = _rangelist.get(i);\n\t\t\tsb.append(currentRange._first);\n\n\t\t\tif (currentRange._last != Lastchar)\n\t\t\t{\n\t\t\t\tsb.append((char)(currentRange._last + 1));\n\t\t\t}\n\t\t}\n\n\t\tsb.setCharAt(SETLENGTH, (char)(sb.length() - SETSTART));\n\n\t\tsb.append(_categories);\n\n\t\tif (_subtractor != null)\n\t\t{\n\t\t\tsb.append(_subtractor.ToStringClass());\n\t\t}\n\n\t\treturn sb.toString();\n\t}",
"public String getStringRepresentation() {\n String result = \"\";\n result += \"GAIndividual: (\";\n result += \"Fitness {\";\n for (int i = 0; i < this.m_Fitness.length; i++) result += this.m_Fitness[i] + \";\";\n result += \"}/SelProb{\";\n for (int i = 0; i < this.m_SelectionProbability.length; i++) result += this.m_SelectionProbability[i] + \";\";\n result += \"})\\n Value: \";\n result += \"{\";\n for (int i = 0; i < this.m_GenotypeLength; i++) {\n if (i%8==0) result+=\"|\";\n if (this.m_Genotype.get(i)) result += \"1\";\n else result += \"0\";\n }\n result += \"}\";\n result += \"\\n Mutation (\"+this.m_MutationProbability+\"):\" + this.m_MutationOperator.getStringRepresentation();\n return result;\n }",
"static String OIDtoString(byte[] buffer, int offset, int length) {\n StringBuffer result;\n int end;\n int t;\n int x;\n int y;\n\n if (length == 0) {\n return \"\";\n }\n\n result = new StringBuffer(40);\n\n end = offset + length;\n\n /*\n * first byte (t) always represents the first 2 values (x, y).\n * t = (x * 40) + y;\n */\n t = buffer[offset++] & 0xff;\n x = t / 40;\n y = t - (x * 40);\n\n result.append(x);\n result.append('.');\n result.append(y);\n\n x = 0;\n while (offset < end) {\n // 7 bit per byte, bit 8 = 0 means the end of a value\n x = x << 7;\n\n t = buffer[offset++];\n if (t >= 0) {\n x += t;\n result.append('.');\n result.append(x);\n x = 0;\n } else {\n x += t & 0x7f;\n }\n }\n\n return result.toString();\n }",
"java.lang.String getUnknown4();",
"@Override\n public String toString(\n ){\n return toXRI(); \n }",
"@Override\n\tpublic String toString() {\n\t\tswitch(type) {\n\t\tcase CLOSURE : return \"*\";\n\t\tcase CONCATENATION : return \"\";\n\t\tcase LPAREN : return \"(\";\n\t\tcase RPAREN : return \")\";\n\t\tcase UNION : return \"|\";\n\t\tdefault: return value;\n\t\t}\n\t}",
"org.apache.xmlbeans.XmlString xgetPurpose();",
"public String affichage() {\r\n\t\tString s = \"\";\r\n\t\tfor (int i=0; i<this.allJ.length; i++) {\r\n\t\t\ts = s + this.allJ[i];\r\n\t\t}\r\n\t\treturn s;\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\tString str = \"(\";\n\t\tif(this.error) str += \"1 - \";\n\t\tint i = 0;\n\t\tfor(String component : this.components) {\n\t\t\tif(i != 0) {\n\t\t\t\tstr += \" * \";\n\t\t\t}\n\t\t\tstr += component;\n\t\t\ti++;\n\t\t}\n\t\treturn str + \")\";\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn \"\" + get3 + 'A';\r\n\t}",
"@Override\r\n public String toString() {\r\n \r\n StringBuilder builder = new StringBuilder();\r\n builder.append(this.name);\r\n builder.append(\": \");\r\n builder.append(this.element.toString());\r\n builder.append(\" \");\r\n builder.append(this.monster);\r\n builder.append(\".\");\r\n return builder.toString();\r\n }",
"java.lang.String getField1128();",
"String getModeledPrimitiveType(Object elementID) throws Exception;",
"@Override\n public String toString() {\n StringBuilder buff = new StringBuilder();\n\n buff.append(\" refex:\");\n buff.append(informAboutUuid(this.refexUuid));\n buff.append(\" component:\");\n buff.append(informAboutUuid(this.componentUuid));\n buff.append(\" \");\n buff.append(super.toString());\n\n return buff.toString();\n }",
"String gini_GetPhysElemID(int phys_elem, int ent_id) {\n String name;\n switch (phys_elem) {\n case 1:\n name = \"VIS\";\n break;\n case 3:\n name = \"IR_WV\";\n break;\n case 2:\n case 4:\n case 5:\n case 6:\n case 7:\n name = \"IR\";\n break;\n case 13:\n case 16:\n name = \"LI\";\n break;\n case 14:\n case 17:\n name = \"PW\";\n break;\n case 15:\n case 18:\n name = \"SFC_T\";\n break;\n case 19:\n name = \"CAPE\";\n break;\n case 20:\n name = \"T\";\n break;\n case 21:\n name = \"WINDEX\";\n break;\n case 22:\n name = \"DMPI\";\n break;\n case 23:\n name = \"MDPI\";\n break;\n case 25:\n if (ent_id == 99)\n name = \"HHC\";\n else\n name = \"Volcano_imagery\";\n break;\n case 26:\n name = \"EchoTops\";\n break;\n case 27:\n if (ent_id == 99)\n name = \"Reflectivity\";\n else\n name = \"CTP\";\n break;\n case 28:\n if (ent_id == 99)\n name = \"Reflectivity\";\n else\n name = \"Cloud_Amount\";\n break;\n case 29:\n name = \"VIL\";\n break;\n case 30:\n case 31:\n name = \"Precipitation\";\n break;\n case 40:\n case 41:\n case 42:\n case 43:\n case 44:\n case 45:\n case 46:\n case 47:\n case 48:\n case 49:\n case 50:\n case 51:\n case 52:\n case 53:\n case 54:\n case 55:\n case 56:\n case 57:\n case 58:\n name = \"sounder_imagery\";\n break;\n case 59:\n name = \"VIS_sounder\";\n break;\n default:\n name = \"Unknown\";\n }\n\n return name;\n }",
"@Override\n\t\tpublic String toString() {\n\t\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\t\tif (prev != null) {\n\t\t\t\tstringBuilder.append(prev.elementE);\n\t\t\t}else {\n\t\t\t\tstringBuilder.append(\"null\");\n\t\t\t}\n\t\t\tstringBuilder.append(\"_\").append(elementE).append(\"_\");\n\t\t\tif (next != null) {\n\t\t\t\tstringBuilder.append(next.elementE);\n\t\t\t}else {\n\t\t\t\tstringBuilder.append(\"null\");\n\t\t\t}\n\t\t\treturn stringBuilder.toString();\n\t\t}",
"@Override\n public final String toString() {\n return asString(0, 4);\n }",
"public String toString() {\r\n String result = \"\";\r\n result += \"My Genealogy contains \" + size() + \" members:\\n\";\r\n\r\n for (int i = 0; i < SIZE; i++) {\r\n // i below is used to check for exponentiation, and create newlines for readability\r\n if (((i+1) & -(i+1)) == (i+1)) {\r\n result += \"\\n\";\r\n }\r\n\r\n result += tree[i] + \" \";\r\n }\r\n\r\n return result;\r\n }",
"@Override String toDot() {\r\n switch ( operator ) {\r\n case EQUALS_PREFIX :\r\n case EQUALS :\r\n return left.toDot() + \" = \" + right.toDot();\r\n case NEQ :\r\n return left.toDot() + \" ≠ \" + right.toDot();\r\n case GE : \r\n return left.toDot() + \" ≥ \" + right.toDot();\r\n case GT : \r\n return left.toDot() + \" > \" + right.toDot(); \r\n case LE :\r\n return left.toDot() + \" ≤ \" + right.toDot();\r\n case LT : \r\n return left.toDot() + \" < \" + right.toDot();\r\n }\r\n assert false:operator;\r\n return null;\r\n }",
"public String toString() {\r\n return DOM2Writer.nodeToString((Node) element);\r\n }",
"private static final String toString(\r\n Set<MappableItem> mappableItemSet,\r\n Object object\r\n )\r\n {\r\n if(object.getClass().isArray()) {\r\n StringBuilder sb = new StringBuilder();\r\n Object[] array = (Object[])object;\r\n boolean first = true;\r\n Object[] arr$ = array;\r\n int len$ = arr$.length;\r\n\r\n for(int i$ = 0; i$ < len$; i$++) {\r\n Object o = arr$[i$];\r\n\r\n if(first) {\r\n first = false;\r\n }\r\n else {\r\n sb.append(',');\r\n }\r\n sb.append( toString(mappableItemSet, o) );\r\n }\r\n\r\n return (new StringBuilder())\r\n .append('[')\r\n .append(sb)\r\n .append(']')\r\n .toString();\r\n }\r\n\r\n if(mappableItemSet.contains(MappableItem.DO_ITERATOR)) {\r\n if(object instanceof java.util.Iterator) {\r\n Iterator<?> iter = (Iterator<?>)object;\r\n StringBuilder sb = new StringBuilder();\r\n boolean first = true;\r\n\r\n for(; iter.hasNext(); sb.append(toString(mappableItemSet, iter.next()))) {\r\n if(first) {\r\n first = false;\r\n }\r\n else {\r\n sb.append(',');\r\n }\r\n }\r\n\r\n return (new StringBuilder())\r\n .append(\"Iterator[\")\r\n .append(sb)\r\n .append(']')\r\n .toString();\r\n }\r\n }\r\n else if(mappableItemSet.contains(MappableItem.DO_ENUMERATION) && (object instanceof java.util.Enumeration)) {\r\n Enumeration<?> enum0 = (Enumeration<?>)object;\r\n StringBuilder sb = new StringBuilder();\r\n boolean first = true;\r\n\r\n for(; enum0.hasMoreElements(); sb.append( toString(mappableItemSet, enum0.nextElement()))) {\r\n if(first) {\r\n first = false;\r\n }\r\n else {\r\n sb.append(',');\r\n }\r\n }\r\n\r\n return (new StringBuilder())\r\n .append(\"Enumeration[\")\r\n .append(sb.toString())\r\n .append(']')\r\n .toString();\r\n }\r\n\r\n return object.toString();\r\n }",
"String getElem();",
"public String toString()\n {\n return elementName;\n }",
"@org.junit.Test\n public void k2ComputeConElem15() {\n final XQuery query = new XQuery(\n \"\\n\" +\n \" declare default element namespace \\\"http://example.com/NS\\\"; \\n\" +\n \" element {exactly-one((//*)[3])} {}\",\n ctx);\n try {\n query.context(node(file(\"op/union/acme_corp.xml\")));\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertSerialization(\"<Boston xmlns=\\\"http://example.com/NS\\\"/>\", false)\n );\n }",
"private String edgeString()\n {\n Iterator<DSAGraphEdge<E>> iter = edgeList.iterator();\n String outputString = \"\";\n DSAGraphEdge<E> edge = null;\n while (iter.hasNext())\n {\n edge = iter.next();\n outputString = (outputString + edge.getLabel() + \", \");\n }\n return outputString;\n }",
"public java.lang.String getS5() {\n java.lang.Object ref = s5_;\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 s5_ = s;\n }\n return s;\n }\n }",
"public String toString() {\n switch (m_type) {\n case OPENTAG:\n return \"OPEN-\" + m_value.toUpperCase();\n case CLOSETAG:\n return \"CLOSE-\" + m_value.toUpperCase();\n case WORD:\n return \"WORD(\" + m_value + \")\";\n case NUMBER:\n return \"NUMBER(\" + m_value + \")\";\n case APOSTROPHIZED:\n return \"APOSTROPHIZED(\" + m_value + \")\";\n case HYPHENATED:\n return \"HYPHENATED(\" + m_value + \")\";\n case PUNCTUATION:\n return \"PUNCTUATION(\" + m_value + \")\";\n default:\n return \"UNKNOWN(\" + m_value + \")\";\n }\n }",
"@Test\n\tpublic void testUnion5() {\n\n\t\tint[] arr = {};\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\t\tint[] uni2 = { 0, 2, 3 };\n\t\tSLLSet listObj7 = new SLLSet(uni2);\n\t\tSLLSet listObj8 = listObj2.union(listObj7);\n\n\t\tString expected = \"0, 2, 3\";\n\t\tint expectedSize = 3;\n\n\t\tassertEquals(expectedSize, listObj8.getSize());\n\t\tassertEquals(expected, listObj8.toString());\n\n\t}",
"public static <E> String concatElements(Collection<E> collection, Function<E, String> mapper) {\n return concatElements(collection, mapper, EMPTY);\n }",
"public String toString() {\n // Introducing StringBuilder\n StringBuilder sb = new StringBuilder();\n sb.append(String.format(\"\\nThis stack has %d elements and %d of them are used\",\n this.foundation.length, this.usage));\n sb.append(\"\\n\\t[ \");\n for (int i = this.foundation.length - this.usage; i < this.foundation.length; i++) {\n sb.append(String.format(\"%s \", foundation[i]));\n }\n sb.append(\"]\");\n return sb.toString();\n }",
"static StyledString getSingleElementLabel(IJavaElement element) {\n return JavaElementLabels.getStyledElementLabel(element, JavaElementLabels.ALL_POST_QUALIFIED | JavaElementLabels.COLORIZE | JavaElementLabels.P_COMPRESSED);\n }"
] | [
"0.5717489",
"0.54135376",
"0.5331185",
"0.51552725",
"0.51534545",
"0.51155597",
"0.5109209",
"0.5096759",
"0.502019",
"0.49950743",
"0.4964703",
"0.4958795",
"0.4909582",
"0.4871915",
"0.48644313",
"0.48584276",
"0.48569888",
"0.48516968",
"0.48388782",
"0.48387787",
"0.482858",
"0.48273155",
"0.48078898",
"0.47972715",
"0.47855327",
"0.47843045",
"0.4776004",
"0.47731867",
"0.4762975",
"0.4757941",
"0.47556177",
"0.4745096",
"0.4744674",
"0.4744381",
"0.47194096",
"0.47189993",
"0.4711397",
"0.4709742",
"0.46900377",
"0.46877614",
"0.46844327",
"0.46800146",
"0.46787518",
"0.46597105",
"0.465844",
"0.46574074",
"0.46539795",
"0.46504402",
"0.46388626",
"0.46316645",
"0.46175823",
"0.4613259",
"0.46033844",
"0.45981145",
"0.45969608",
"0.45967117",
"0.45906413",
"0.45804107",
"0.45763728",
"0.45690116",
"0.45667413",
"0.45654896",
"0.45573732",
"0.45394003",
"0.45261666",
"0.45261034",
"0.4524994",
"0.4522062",
"0.45214865",
"0.45122615",
"0.45052233",
"0.45016977",
"0.44992626",
"0.44988716",
"0.4493883",
"0.4488878",
"0.44882748",
"0.44873",
"0.44861192",
"0.44851667",
"0.44774827",
"0.44721785",
"0.4469795",
"0.44674918",
"0.44670975",
"0.44647557",
"0.44583604",
"0.44547594",
"0.44515768",
"0.4444208",
"0.44441047",
"0.4443916",
"0.4441945",
"0.44394514",
"0.4436264",
"0.44352394",
"0.4434182",
"0.44307014",
"0.44287926",
"0.4428109"
] | 0.5459317 | 1 |
Returns a boolean if the string provided is numerical. | protected boolean isNumeric(final String id) {
final NumberFormat formatter = NumberFormat.getInstance();
final ParsePosition pos = new ParsePosition(0);
formatter.parse(id, pos);
return id.length() == pos.getIndex();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean isNumeric(String string) { \r\n\t\ttry { \r\n\t\t\tint testNumber = Integer.parseInt(string); \r\n\t\t} catch(NumberFormatException e) { \r\n\t\t\treturn false; \r\n\t\t} \r\n\t\t\r\n\t\treturn true; \r\n\t}",
"public boolean isNumeric(String strNum) {\n if (strNum == null) {\n return false;\n }\n try {\n double d = Double.parseDouble(strNum);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }",
"public boolean isNum() \n\t{ \n\t try \n\t { \n\t int d = Integer.parseInt(numeric); \n\t } \n\t catch(NumberFormatException nfe) \n\t { \n\t return false; \n\t } \n\t return true; \n\t}",
"public boolean isNumeric(String str){\n try {\n int i = Integer.parseInt(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }",
"public static boolean isNumeric(String strNum) {\n if (strNum == null) {\n return false;\n }\n try {\n double d = Double.parseDouble(strNum);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }",
"private boolean isNumeric(String s) {\n return java.util.regex.Pattern.matches(\"\\\\d+\", s);\n }",
"public boolean isNum(String cad){\n try{\n Integer.parseInt(cad);\n return true;\n }catch(NumberFormatException nfe){\n System.out.println(\"Solo se aceptan valores numericos\");\n return false;\n }\n }",
"private boolean isNumber(String s) {\n\t\ttry {\n\t\t\tDouble.parseDouble(s);\n\t\t} catch (NumberFormatException nfe) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean isNumeric(String strNum) {\n if (strNum == null) {\n return false;\n }\n try {\n Integer d = Integer.parseInt(strNum);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }",
"public static boolean isNumericString(String value) {\n\t try {\n\t\t if (Double.parseDouble(value) > 0) {\n\t\t return true;\n\t\t }\n\t } catch (NumberFormatException nfe) {\n\t return false;\n\t }\n\t return false;\n\t}",
"private static boolean isNumeric(String str){\n return NumberUtils.isNumber(str);\n }",
"private static boolean isNumeric(String str){\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }",
"public static boolean isNumeric(String strNum) {\r\n if (strNum == null) {\r\n return true;\r\n }\r\n try {\r\n Integer.parseInt(strNum);\r\n } catch (NumberFormatException nfe) {\r\n return true;\r\n }\r\n return false;\r\n }",
"protected boolean isNumber(String s)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDouble.parseDouble(s);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch(NumberFormatException ex)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean isNumeric(String str) {\n try {\n Double.parseDouble(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }",
"public static boolean isNumeric(String str)\n {\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }",
"private static boolean isNumeric(String str) { \n\t\ttry { \n\t\t\tDouble.parseDouble(str); \n\t\t} \n\t\tcatch(NumberFormatException nfe) { \n\t\t\treturn false; \n\t\t} \n\t\treturn true; \n\t}",
"public static boolean isNumber(String string) {\n\n\t\ttry {\n\t\t\tLong.parseLong(string);\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\n\t}",
"public static boolean isNumeric(String num) {\n\t\ttry {\n\t\t\tdouble d = Double.parseDouble(num);\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private static boolean isNumeric(String str)\t{\n\n\t\treturn str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); \n\t\t\t// match a number with optional '-' and decimal.\n\t}",
"public boolean isNumeric(String str){\r\n\t Pattern pattern = Pattern.compile(\"[0-9]*\");\r\n\t return pattern.matcher(str).matches(); \r\n\t}",
"private static boolean isNumeric(String str)\n\t{\n\t\ttry\n\t\t{\n\t\t\tdouble d = Double.parseDouble(str);\n\t\t}\n\t\tcatch (NumberFormatException nfe)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean isNumeric(String str)\n {\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }",
"public static boolean isNumeric(String str) {\n\t\ttry {\n\t\t\tInteger.parseInt(str.trim().substring(0, 1));\n\t\t\treturn true;\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t}",
"public static boolean isNumeric(String cadena){ \r\n try {\r\n Integer.parseInt(cadena);\r\n return true;\r\n } catch (NumberFormatException e){\t\r\n System.out.println(e.getMessage());\r\n return false;\r\n }\r\n }",
"public static boolean isNumeric(String str) {\n try {\n Integer d = Integer.parseInt(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }",
"public static boolean isNumber(String text) {\n try {\n Double.parseDouble(text);\n return true;\n } catch (NumberFormatException e) {\n return false;\n }\n }",
"public abstract boolean isNumeric();",
"private static boolean isNumeric(String cadena)\n\t {\n\t\t try \n\t\t {\n\t\t\t Integer.parseInt(cadena);\n\t\t\t return true;\n\t\t } catch (NumberFormatException nfe)\n\t\t {\n\t\t\t return false;\n\t\t }\n\t }",
"public static boolean isNumeric(String input) {\n\t\ttry {\n\t\t\tInteger.parseInt(input);\n\t\t\treturn true;\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\t// string is not numeric\n\t\t\treturn false;\n\t\t}\n\t}",
"public static boolean ComprobarNumero(String str) {\n try {\n double d = Double.parseDouble(str);\n return true;\n } catch (NumberFormatException nfe) {\n \treturn false;\n }\n }",
"public boolean isNumber(String str) {\n\t\treturn str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\");\n\t}",
"public static final boolean isNumber(String str) {\n\t\treturn isNumber(str,true);\n\t}",
"public static boolean isNumber(String s) \r\n{ \r\n for (int i = 0; i < s.length(); i++) \r\n if (Character.isDigit(s.charAt(i)) \r\n == false) \r\n return false; \r\n\r\n return true; \r\n}",
"private static boolean isNumber(String value){\r\n\t\tfor (int i = 0; i < value.length(); i++){\r\n\t\t\tif (value.charAt(i) < '0' || value.charAt(i) > '9')\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"private boolean isNumeric(String s)\n {\n for (int i = 0; i < s.length(); ++i)\n {\n if (!Character.isDigit(s.charAt(i)))\n {\n return false;\n }\n }\n return true;\n }",
"public boolean isNumeric(String cadena) {\n try {\r\n Integer.parseInt(cadena);\r\n return true;\r\n } catch (NumberFormatException nfe) {\r\n return false;\r\n }\r\n }",
"public static Boolean isNumeric(String text)\n {\n //This checks for negative numbers...\n if (text.startsWith(\"-\"))\n {\n text = text.substring(1, text.length());\n }\n\n for (char c : text.toCharArray())\n {\n if (!Character.isDigit(c))\n {\n return false;\n }\n }\n return true;\n }",
"public boolean isNumber(String s)\r\n {\r\n if (s == null)\r\n {\r\n return false;\r\n }\r\n s = s.trim();\r\n ValidNumberStateMachine vnsm = new ValidNumberStateMachine(s);\r\n return vnsm.isValid();\r\n }",
"public static boolean isNumber(final String s) {\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\t\t\tif (!Character.isDigit(s.charAt(i))) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}",
"public static boolean isNumeric(String cadena) {\n try {\n Integer.parseInt(cadena);\n return true;\n } catch (NumberFormatException ex) {\n return false;\n }\n }",
"public boolean isNum(String x) {\n\t\tfor (int i = 0; i < x.length(); i++) {\n\t\t\tchar c = x.charAt(i);\n\t\t\tif ((c == '-' || c == '+') && x.length() > 1)\n\t\t\t\tcontinue;\n\t\t\tif ((int) c > 47 && (int) c < 58)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private boolean isNumber(String str) {\r\n int ASCII_0 = 48;\r\n int ASCII_9 = 57;\r\n if (str.equals(\"\")) {\r\n return false;\r\n }\r\n for (int i = 0; i < str.length(); i++) {\r\n int chr = str.charAt(i);\r\n if (chr < ASCII_0 || chr > ASCII_9) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"public static boolean isNumber(String str){\n try {\n Integer.parseInt(str);\n } catch(NumberFormatException e) {\n return false;\n } catch(NullPointerException e) {\n return false;\n }\n return true;\n }",
"public boolean isNumeric(String sNumericString) {\n try {\n for (char c : sNumericString.toCharArray()) {\n if (!Character.isDigit(c)) {\n return false;\n }\n }\n return true;\n } catch (Exception e) {\n return false;\n }\n }",
"public static boolean isNumber(String text)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tInteger.parseInt(text);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch(NumberFormatException e)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public static boolean isNumeric(final String input) {\n\t\tif (input == null || input.isEmpty())\n\t\t\treturn false;\n\n\t\tfor (int i = 0; i < input.length(); i++)\n\t\t\tif (!Character.isDigit(input.charAt(i)))\n\t\t\t\treturn false;\n\n\t\treturn true;\n\t}",
"public boolean isNumber(String str)\r\n\t{\r\n\t\tfor(int i = 0; i < str.length(); i++)\r\n\t\t{\r\n\t\t\tif(!Character.isDigit(str.charAt(i)))\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public static boolean isNumeric(String aString) {\r\n if (aString == null) {\r\n return false;\r\n } else if (aString.isEmpty()) {\r\n return false;\r\n } else if (aString.indexOf(\".\") != aString.lastIndexOf(\".\")) {\r\n return false;\r\n } else {\r\n int counter = 0;\r\n for ( char c : aString.toCharArray()) {\r\n if ( Character.isDigit(c)) {\r\n counter++;\r\n }\r\n }\r\n return counter == aString.length();\r\n// if (counter == aString.length()) {\r\n// return true;\r\n// }\r\n// return false;\r\n }\r\n }",
"public static boolean isNumeric(String str)\n {\n return str.chars().allMatch( Character::isDigit );\n }",
"public static boolean isNumber(String string) {\n if (string == null || string.isEmpty()) {\n return false;\n }\n int i = 0;\n if (string.charAt(0) == '-') {\n if (string.length() > 1) {\n i++;\n } else {\n return false;\n }\n }\n for (; i < string.length(); i++) {\n if (!Character.isDigit(string.charAt(i))) {\n return false;\n }\n }\n return true;\n}",
"public static boolean isNumber(String text) {\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(text);\r\n\t\t} catch(NumberFormatException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"private boolean stringIsNumeric(String str) {\n\t\tfor(char c : str.toCharArray()) {\n\t\t\tif(!Character.isDigit(c)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"public boolean isNumber(String sIn)\r\n {\r\n int parseNumber = -1;\r\n \r\n try{\r\n parseNumber = Integer.parseInt(sIn);\r\n }catch(Exception e){\r\n return false;\r\n }\r\n \r\n return true;\r\n }",
"public boolean isNumber(String in) \n\t{\n\t\ttry \n\t\t{\n\t\t\tInteger.parseInt(in);\n\t\t\treturn true;\n\t\t}\n\t\tcatch (Exception e) \n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}",
"@Test\n void checkIsTrueForStringWithNumbers() {\n // Act, Assert\n assertTrue(IsNumeric.check(\"3\"));\n assertTrue(IsNumeric.check(\"0\"));\n assertTrue(IsNumeric.check(\"-0f\"));\n assertTrue(IsNumeric.check(\"3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F\"));\n assertTrue(IsNumeric.check(\"-3\"));\n assertTrue(IsNumeric.check(\"32f\"));\n assertTrue(IsNumeric.check(\"15D\"));\n assertTrue(IsNumeric.check(\"3.2\"));\n assertTrue(IsNumeric.check(\"0.2\"));\n assertTrue(IsNumeric.check(\"-0.28\"));\n assertTrue(IsNumeric.check(\"0.24D\"));\n assertTrue(IsNumeric.check(\"0.379d\"));\n }",
"public static boolean isNumber(String str){\n return str != null && numberPattern.matcher(str).matches();\n }",
"public static boolean isNumeric(String str) {\n if (isBlank(str)) {\n return false;\n }\n\n char[] charArray = str.toCharArray();\n\n for (char c : charArray) {\n if (!Character.isDigit(c)) {\n return false;\n }\n }\n\n return true;\n }",
"private boolean isNumber( String test ) {\n\treturn test.matches(\"\\\\d+\");\n }",
"public static boolean isNumericInternational(String str)\n {\n try\n {\n double d = Double.parseDouble(str);\n }\n catch(NumberFormatException nfe)\n {\n return false;\n }\n return true;\n }",
"public static boolean isNumericRegex(String str)\n {\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }",
"public static boolean isNumber(String token) {\n boolean toret = true;\n\n try {\n Double.parseDouble(token);\n }\n catch(Exception e)\n {\n toret = false;\n }\n\n return toret;\n }",
"public static boolean isNumber(String s, int radix) {\n try {\n new BigDecimal(new BigInteger(s, radix));\n\n return true;\n } catch (Exception e) {\n }\n\n return false;\n }",
"private static boolean isNumeric(String str) {\n // The regular expression can match all numbers, including negative numbers\n Pattern pattern = Pattern.compile(\"-?[0-9]+(\\\\.[0-9]+)?\");\n String bigStr;\n try {\n bigStr = new BigDecimal(str).toString();\n } catch (Exception e) {\n return false;\n }\n // matcher是全匹配\n Matcher isNum = pattern.matcher(bigStr);\n return isNum.matches();\n }",
"public boolean isNumber(String stringItem) {\n Float floatItem = (float) 0.0;\n try {\n floatItem = Float.valueOf(stringItem);\n } // try\n catch (NumberFormatException IOError) {\n return false;\n } // catch\n return true;\n }",
"public boolean isNumeric() {\n return this.isInteger() || this.isDecimal() || this.isDouble();\n }",
"private static boolean validNumber(String thing) {\n\t\treturn validDouble(thing);\n\t}",
"public static boolean isNumber(String val)\n {\n\t if(val == null || val.trim().isEmpty())\n\t {\n\t\t return false;\n\t }\n\t else\n\t {\n\t\t Pattern patternForNumber = Pattern.compile(\"^[+-]?(([0-9]+\\\\.?[0-9]+)|[0-9]+)\");\n\t\t return patternForNumber.matcher(val).matches();\n\t }\n }",
"public boolean isNumber(String num)\t{\n\t\tfor(int i=0;i<13;i++)\t{\n\t\t\tif(Integer.parseInt(num)==i)\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"@Test\n public void isNumeric() {\n Boolean bool = Utils.isNumeric(\"123\");\n Assert.assertEquals(true, bool);\n }",
"private boolean containsOnlyNumbers(String inputString)\r\n {\r\n inputString = inputString.trim();\r\n if (inputString.equals(null))\r\n return false;\r\n else\r\n for (int i = 0; i < inputString.length(); i++)\r\n if (!(inputString.charAt(i) >= '0' && inputString.charAt(i) <= '9'))\r\n return false;\r\n return true;\r\n }",
"@Test\n public void isNumericNegetive() {\n Boolean bool = Utils.isNumeric(\"123a\");\n Assert.assertEquals(false, bool);\n }",
"public static boolean isNumber(String input) {\n boolean hasDecimal = false;\n for (int i = 0; i < input.length(); i++) {\n char test = input.charAt(i);\n if (test == '-' && i == 0)\n continue; // Allow negative indicator.\n\n if (test == '.') {\n if (!hasDecimal) {\n hasDecimal = true;\n continue;\n } else {\n return false; // Multiple decimal = invalid number.\n }\n }\n\n if (!Character.isDigit(test))\n return false; // Character isn't a digit, so it can't be a number.\n }\n\n return true;\n }",
"private boolean isNotNumeric(String s) {\n return s.matches(\"(.*)\\\\D(.*)\");\n }",
"public static boolean isNumeric(String value) {\n // Procedimiento para monitorear e informar sobre la excepcion\n try {\n //Se realiza asignacion de dato numerico\n Float.parseFloat(value);\n return true;\n\n }\n //Mostrar mensaje de error\n catch(NumberFormatException e){\n JOptionPane.showMessageDialog(null,Constantes.TXT_Msg_Error,\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n\n return false;\n\n }\n\n }",
"@Test\n void checkIsTrueForStringWithNumbersWithSpacesAtTheBeginningAndEnd() {\n // Act, Assert\n assertTrue(IsNumeric.check(\" 3\"));\n assertTrue(IsNumeric.check(\"32 \"));\n assertTrue(IsNumeric.check(\" 3.2 \"));\n assertTrue(IsNumeric.check(\" -0.2\"));\n assertTrue(IsNumeric.check(\" -0.2d\"));\n assertTrue(IsNumeric.check(\"0.24D \"));\n assertTrue(IsNumeric.check(\"0.28 \"));\n assertTrue(IsNumeric.check(\" 3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F \"));\n }",
"public static boolean isNumeric(char num) {\n\t\treturn isNumeric(String.valueOf(num));\n\t}",
"private static boolean areNumbers(String s) {\n boolean isADigit = false;//only changed once everything has been checked\n //checks if places 0-2 are numbers and 3 is a \"-\"\n for(int i = 0; i < 3; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(3) == '-') {\n isADigit = true;\n }\n }\n //checks if places 4-5 are numbers and 6 is a \"-\"\n for(int i = 4; i < 6; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(6) == '-') {\n isADigit = true;\n }\n }\n //checks if places 7-10 are numbers\n for(int i = 7; i < 11; i++) {\n if(Character.isDigit(s.charAt(i))) {\n isADigit = true;\n }\n }\n return isADigit;\n }",
"public static boolean isNumeric(String userInput) {\n return Pattern.matches(Constants.ID_VALIDATION, userInput);\n }",
"public static boolean isInt(String strNum) {\n try {\n int d = Integer.parseInt(strNum);\n } catch (NumberFormatException | NullPointerException nfe) {\n System.out.println(\"Invalid data format\");\n log.error(nfe);\n return false;\n }\n return true;\n }",
"private boolean isInt(String num) {\n boolean isInt;\n try {\n Integer.parseInt(num);\n isInt = true;\n } catch (Exception e) {\n isInt = false;\n }\n return isInt;\n }",
"public static boolean isNumeric(String field) {\r\n\t\tif (isEmpty(field))\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\tfield = field.trim();\r\n\t\tif (field.trim().matches(\"[0-9\\\\-\\\\(\\\\)\\\\ ]*\")) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public static boolean isNumber(String val){\n\t\t\n\t\tfor(int i=0;i<val.length();i++){\n\t\t\tif((val.charAt(i) >= '0' && val.charAt(i) <= '9') || (val.charAt(i) >= 'A' && val.charAt(i) <= 'F') || (val.charAt(i) >= 97 && val.charAt(i) <= 102)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isNumber(String input) {\r\n\t\tif (input == null || input.isEmpty())\r\n\t\t\treturn false;\r\n\t\tif (input.charAt(0) == '-')\r\n\t\t\treturn false;\r\n\t\tfor (int i = 0; i < input.length(); i++) {\r\n\t\t\tif (Character.isDigit(input.charAt(i)) == false)\r\n\t\t\t\treturn false;\r\n\t\t\tif (Integer.parseInt(input) < 1 || Integer.parseInt(input) > 7)\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public static boolean numbersCheck(String num)\r\n\t{\r\n\t\treturn num.matches(\"[0-9]+\");\r\n\t}",
"private boolean checkForNumber(String field) {\n\n\t\tPattern p = Pattern.compile(\"[0-9].\");\n\t\tMatcher m = p.matcher(field);\n\n\t\treturn (m.find()) ? true : false;\n\t}",
"public static boolean checkIfNumeric(Object toBeChecked)\r\n\t{\r\n\t\ttry {\r\n\t\t\tDouble.parseDouble((String) toBeChecked);\r\n\t\t\treturn true;\r\n\t\t} catch (ClassCastException e) {\r\n\t\t\treturn true;\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public static boolean IsNumber(String par_Number) {\n\n java.util.regex.Pattern p = java.util.regex.Pattern.compile(\"^\\\\-?\\\\d*.?\\\\d+$\");\n java.util.regex.Matcher m = p.matcher(par_Number);\n\n return m.matches() || IsInteger(par_Number);\n }",
"public static boolean isNumber(char n) {\r\n\t\treturn (n >= '0' && n <= '9');\r\n\t}",
"private static boolean isPrimitive(String value) {\n boolean status = true;\n value = value.trim();\n if (value.length() < 1) {\n return false;\n }\n for (int i = 0; i < value.length(); i++) {\n char c = value.charAt(i);\n if (!Character.isDigit(c)) {\n status = false;\n break;\n }\n }\n\n return status;\n }",
"private boolean isNumber(final String number) {\n try {\n Integer.parseInt(number);\n return true;\n } catch (Exception e) {\n LOGGER.error(\"Not a number \" + number, e);\n return false;\n }\n }",
"public static boolean containsOnlyNumbers(String string) {\n\n\t\tboolean letterFound = false;\n\n\t\tfor (char ch : string.toCharArray()) {\n\t\t\tif (Character.isLetter(ch)) {\n\t\t\t\tletterFound = true;\n\t\t\t}\n\t\t\tif (letterFound) {\n\t\t\t\t//Si tenemos letras retornar false\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t//Si no se encuentran letras, retornar true\n\t\treturn true;\n\t}",
"public boolean isNumeric() {\n\t\treturn numeric;\n\t}",
"private boolean valid_numbers(String nr)\n\t{\n\t\t// loop through the string, char by char\n\t\tfor(int i = 0; i < nr.length();i++)\n\t\t{\n\t\t\t// if the char is not a numeric value or negative\n\t\t\tif(Character.getNumericValue(nr.charAt(i)) < 0)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t// if it did not return false in the loop, return true\n\t\treturn true;\n\t}",
"public static final boolean isNumberNotNegative(String str) {\n\t\treturn isNumber(str,false);\n\t}",
"private boolean isNumber(String number){\n\t\ttry{\r\n\t\t\tFloat.parseFloat(number);\r\n\t\t}catch(Exception e){\r\n\t\t\treturn false;// if the user input is not number it throws flase\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public static boolean isDigit(final String str) {\n if (str == null || str.length() == 0) {\n return false;\n }\n\n for (var i = 0; i < str.length(); i++) {\n if (!Character.isDigit(str.charAt(i)) && str.charAt(i) != '.') {\n return false;\n }\n }\n return true;\n }",
"public boolean isNumber(String s) {\n\t\tif (s==null) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t s = s.trim(); \n\t //avoid \"3e\" which is false\n\t if (s.length() > 0 && s.charAt(s.length() - 1) == 'e') {\n\t \treturn false; \n\t }\n\t \n\t String[] parts = s.split(\"e\");\n\t if (parts.length == 0 || parts.length > 2) {\n\t \treturn false;\n\t }\n\t //check the part before e\n\t boolean res = isValid(parts[0], false); \n\t \n\t //check the part after e, and second half can not have any dot\n\t if (parts.length > 1) {\n\t \tres = res && isValid(parts[1], true);\n\t }\n\t \n\t return res;\n\t}",
"private static boolean stringTest(String s){\n try{ //depending on whether this is successful or not will return the relevant value\n Integer.parseInt(s);\n return true;\n } catch (NumberFormatException ex){\n return false;\n }\n }",
"@Test\n public void isNumeric() {\n assertTrue(Deadline.isNumeric(VALID_YEAR_2018));\n\n //contains other symbols -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_SYMBOLS));\n\n //contains alphabets -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_ALPHABETS));\n\n //contains space -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_SPACE));\n }"
] | [
"0.7910063",
"0.7848735",
"0.78403074",
"0.7789819",
"0.77436876",
"0.77372205",
"0.77335244",
"0.77307445",
"0.7726554",
"0.7712242",
"0.7697571",
"0.7685501",
"0.7669671",
"0.76342976",
"0.7631909",
"0.7603321",
"0.76015896",
"0.7597702",
"0.75831085",
"0.75658655",
"0.75643784",
"0.7560684",
"0.7550454",
"0.7537001",
"0.75357354",
"0.7530831",
"0.7529621",
"0.7521861",
"0.74904585",
"0.74882156",
"0.7473959",
"0.74649394",
"0.7459811",
"0.7450915",
"0.74381185",
"0.7436577",
"0.7431834",
"0.7415914",
"0.7410793",
"0.73979735",
"0.739076",
"0.73849404",
"0.7374244",
"0.7370006",
"0.7346573",
"0.7322508",
"0.7307286",
"0.7306898",
"0.73052996",
"0.7298254",
"0.729407",
"0.7293229",
"0.7282556",
"0.72792685",
"0.7277055",
"0.7276736",
"0.7238873",
"0.72330487",
"0.7226524",
"0.7208847",
"0.7205916",
"0.7193256",
"0.714046",
"0.71396214",
"0.7135728",
"0.70454675",
"0.70449805",
"0.7015391",
"0.70080924",
"0.69894606",
"0.6965412",
"0.69201076",
"0.6919543",
"0.69189703",
"0.6900524",
"0.690033",
"0.6890786",
"0.68826395",
"0.6865211",
"0.68371594",
"0.6809872",
"0.6783058",
"0.6774892",
"0.67662",
"0.6747485",
"0.6745211",
"0.6743323",
"0.67353314",
"0.6729774",
"0.6728331",
"0.67242205",
"0.6721592",
"0.6719708",
"0.66984856",
"0.66913193",
"0.6682029",
"0.6676843",
"0.6640066",
"0.6635959",
"0.66336155"
] | 0.69980544 | 69 |
Returns a list for of commands for a page. | protected List<String> getPage(final List<String> entries, final String title, int page, final boolean sort) {
final List<String> strings = new ArrayList<String>();
if (sort) {
Collections.sort(entries);
}
if (page < 1) {
page = 1;
}
if ((page * 8) - 8 >= entries.size()) {
page = Math.round(entries.size() / 8) + 1;
if (page < 1) {
page = 1;
}
}
strings.add(ChatColor.DARK_GRAY + "- [" + ChatColor.GRAY + page + "/" + (int) Math.ceil((entries.size() + .0) / (8 + .0)) + ChatColor.DARK_GRAY + "]");
strings.add(title);
if (entries.size() > ((page * 8) - 8)) {
for (int i = ((page * 8) - 8); i < entries.size(); i++) {
if (entries.get(i) != null) {
strings.add(entries.get(i).toString());
}
if (i >= (page * 8) - 1) {
break;
}
}
}
return strings;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<String> getCommands();",
"List<CommandInfo> list();",
"public List<Command> getCommands() {\n return commands;\n }",
"@Override\n public WebCommands webCommands() {\n return this._webCommands.get();\n }",
"java.util.List<java.lang.String>\n getCommandList();",
"public List<String> getCommands()\n\t{\n\t\treturn commands;\n\t}",
"public SortedMap<String, ShellCommand> commands();",
"@RequestMapping(method = RequestMethod.GET)\n @Override\n public List<Command> commands() {\n try {\n if (repos.count() > maxLimit) {\n logger.error(\"Max limit exceeded in request for commands\");\n throw new LimitExceededException(\"Command\");\n }\n Sort sort = new Sort(Sort.Direction.DESC, \"_id\");\n return repos.findAll(sort);\n } catch (LimitExceededException lE) {\n throw lE;\n } catch (Exception e) {\n logger.error(\"Error getting commands: \" + e.getMessage());\n throw new ServiceException(e);\n }\n }",
"public static ArrayList<String> commandList() {\n\r\n\t\tArrayList<String> commands = new ArrayList<String>();\r\n\r\n\t\tcommands.add(\"/HELP\");\r\n\t\tcommands.add(\"/QUIT\");\r\n\t\tcommands.add(\"/REMOVE\");\r\n\t\tcommands.add(\"/BAN\");\r\n\t\tcommands.add(\"/BANIP\");\r\n\t\tcommands.add(\"/REMOVEIP\");\r\n\t\tcommands.add(\"/CLEAR\");\r\n\t\tcommands.add(\"/SHOW\");\r\n\t\tcommands.add(\"/WARN\");\r\n\r\n\t\treturn commands;\r\n\t}",
"public static String allCommands() \n {\n String commandWords = \"\";\n for(CommandWord command : CommandWord.values()) {\n commandWords += command + \" \";\n }\n return commandWords;\n }",
"public HomePageHelper writeTextOfMenuCommands(){\n System.out.println (\"Quantity of elements: \" + menuCommands.size());\n for(WebElement el : menuCommands){\n System.out.println(\"Name of menu: \" + el.getText());\n }\n return this;\n }",
"public static void listAllCommands(){\n printLine();\n System.out.println(\" Hello there! Here are all the available commands and their respective formats:\");\n System.out.println(\" To add a deadline: \\\"deadline {Name of task} /by {date} \\\"\");\n System.out.println(\" To add an event: \\\"event {Name of task} /at {date} \\\" \\\");\");\n System.out.println(\" To add an item in todo: \\\"todo {Name of task}\\\" \");\n System.out.println(\" To list out all tasks that you have entered: \\\"list\\\"\");\n System.out.println(\" To filter task by date: \\\"list {date}\\\"\");\n System.out.println(\" To mark a task as completed: \\\"done {index of task in list}\\\"\");\n System.out.println(\" To delete a task: \\\"delete {index of task in list}\\\"\");\n System.out.println(\" To find a task: \\\"find {keyword to be searched }\\\"\");\n printLine();\n }",
"Commands getCommandes();",
"public ArrayList<Command> getCommands(){\n\t\treturn commands;\n\t}",
"private ConsoleCommand[] registerCommands(){\r\n\t\tHelpCommand help = new HelpCommand(this.application, \"Help\", \"?\");\r\n\t\t\r\n\t\tConsoleCommand[] commands = {\r\n\t\t\t\tnew WebServicesCommand(this.application, \"WebService\"),\r\n\t\t\t\tnew ScannerCommand(this.application, \"Scanner\"),\r\n\t\t\t\tnew ShowConfigCommand(this.application, \"System.Config\", \"Config\"),\r\n\t\t\t\tnew ShowStatsCommand(this.application, \"System.Stats\", \"Stats\"),\r\n\t\t\t\tnew ShutdownCommand(this.application, \"System.Shutdown\", \"Exit\", \"Shutdown\"),\r\n\t\t\t\tnew DisableUserCommand(this.application, \"User.Disable\"),\r\n\t\t\t\tnew EnableUserCommand(this.application, \"User.Enable\"),\r\n\t\t\t\tnew ListUsersCommand(this.application, \"User.List\"),\r\n\t\t\t\tnew SetPasswordCommand(this.application, \"User.SetPassword\"),\r\n\t\t\t\tnew UnlockUserCommand(this.application, \"User.Unlock\"),\r\n\t\t\t\tnew AddUserCommand(this.application, \"User.Add\"),\r\n\t\t\t\tnew ShowEventsCommand(this.application, \"ShowEvents\"),\r\n\t\t\t\tnew TaskListCommand(this.application, \"Task.List\"),\r\n\t\t\t\tnew TaskStopCommand(this.application, \"Task.Stop\"),\r\n\t\t\t\tnew EventLogLastCommand(this.application, \"EventLog.Last\"),\r\n\t\t\t\tnew EventLogViewCommand(this.application, \"EventLog.View\"),\r\n\t\t\t\thelp\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\tdefaultCommand = help;\r\n\t\thelp.setCommands(commands);\r\n\t\t\r\n\t\treturn commands;\r\n\t}",
"public native final JsArray<? extends JavaScriptObject> commands() /*-{\n\t\treturn this.commands;\n\t}-*/;",
"public List<MailCommand> listAll() {\n\t\tSet<Object> keys = properties.keySet();\n\t\tList<MailCommand> commands = new ArrayList<MailCommand>();\n\t\t\n\t\tfor (Object object : keys) {\n\t\t\ttry {\n\t\t\t\tClass<?> c = Class.forName(properties.getProperty(object.toString()));\n\t\t\t\tcommands.add((MailCommand)c.newInstance());\n\t\t\t}\n\t\t\tcatch(ClassNotFoundException e) {\n\t\t\t\tthrow new RuntimeException(\"Could not find class \" + object.toString());\n\t\t\t}\n\t\t\tcatch(ClassCastException e) {\n\t\t\t\tthrow new RuntimeException(\"Class \" + object.toString() + \" is not a command\");\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\tthrow new RuntimeException(\"Could not instantiate class \" + object.toString());\n\t\t\t}\n\t\t}\n\t\treturn commands;\n\t}",
"public Map<String, String> getCommands() {\n return commands;\n }",
"public Command[] readCommands() {\n\t\tList<Command> result = new ArrayList<Command>();\n\t\tCommand next = null;\n\t\tdo {\n\t\t\tnext = readCommand();\n\t\t\tif (next!=null) {\n\t\t\t\tresult.add(next);\n\t\t\t}\n\t\t} while (next!=null);\n\t\treturn (Command[])result.toArray(new Command[0]);\n }",
"@Override\r\n\t\tpublic SortedMap<String, ShellCommand> commands() {\n\t\t\treturn null;\r\n\t\t}",
"public static CommandList getConsoleCommands() {\n\t\treturn console.commands;\n\t}",
"public List<Page> getPageList() {\n return conf.getPages().getPage();\n }",
"@Override\n @Transactional(readOnly = true)\n public Page<CommandDTO> findAll(Pageable pageable) {\n log.debug(\"Request to get all Commands\");\n return commandRepository.findAll(pageable)\n .map(commandMapper::toDto);\n }",
"Set<CommandConfigurationDTO> getCommands();",
"Collection<String> getVoicedCommandList();",
"public List<String> iterateProgramPageList();",
"public CommandList getBuiltInCommands() {\n return this.commands;\n }",
"private List<Command> getCommands(String name) {\r\n\t\tList<Command> result = new ArrayList<>();\r\n\t\tfor (Command command : commands) {\r\n\t\t\tif (command.name().equals(name) || command.aliases().contains(name)) {\r\n\t\t\t\tresult.add(command);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (LearnedCommand command : learnedCommands) {\r\n\t\t\tif (command.name().equals(name) || command.aliases().contains(name)) {\r\n\t\t\t\tresult.add(command);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public static ArrayList<String> getListOfAllAvailableCommandsForACertainPlayer(Player p) {\n ArrayList<String> list = new ArrayList<>();\n\n for (final Map.Entry<String, CmdProperties> entry : commandClasses.entrySet()) {\n if (p.hasPermission(entry.getValue().getPermission())) {\n list.add(entry.getKey());\n }\n }\n\n return list;\n }",
"public List<GenericTextModel> selector(PageEnum page) {\n\t\tString value = \"Metacube is a Software Engineering Services company with experience in\"\n\t\t\t\t+ \" developing enterprise applications for a wide spectrum of domains including\"\n\t\t\t\t+ \" global trade management, supply chain analytics, manufacturing analytics, business\"\n\t\t\t\t+ \" continuity planning, CRM, content management and eCommerce. These applications have\"\n\t\t\t\t+ \" been developed on a variety of technology platforms.\";\n\t\tGenericTextModel model;\n\t\t\n\t\t\n\t\tif (page.equals(PageEnum.LandingPage)) {//if Landing Page\n\t\t\tmodel = new GenericTextModel(value);\n\t\t\tcontentList.add(model);\n\t\t} else if (page.equals(PageEnum.EmployeeListPage)) { //if employee List page\n\t\t\tmodel = new GenericTextModel(\"Employee List Page\");\n\t\t\tcontentList.add(model);\n\t\t} else if (page.equals(PageEnum.EmployeeDetailsPage)) { //if employee Detail page\n\t\t\tmodel = new GenericTextModel(\"Employee Detail Page\");\n\t\t\tcontentList.add(model);\n\t\t} else if (page.equals(PageEnum.EmployeeRegistrationPage)) {//if employee Registeration page\n\t\t\tmodel = new GenericTextModel(\"Employee Registration/Edit Page\");\n\t\t\tcontentList.add(model);\n\t\t} else {//if other then all pages\n\t\t\tmodel = new GenericTextModel(\"Someting Wrong happen\");\n\t\t\tcontentList.add(model);\n\t\t}\n\n\t\treturn contentList;\n\t}",
"List<String> getCommandDescription();",
"public void createDefaultCommands() {\n commands.put(\"Top 10 Items in logs serving 404s sorted by count\", \"grep 'HTTP/1.1\\\\\\\" 404' httpd-access.log | cut -d ' ' -f 7 | sort | uniq -c | sort -nr | head\");\n commands.put(\"Top 10 User agents\", \"cat httpd-access.log | cut -d '\\\\\\\"' -f 6 | sort | uniq -c | sort -nr | head\");\n commands.put(\"Most requested URLs\", \"awk -F\\\\\\\" '{print $2}' httpd-access.log | awk '{print $2}' | sort | uniq -c | sort -nr | head\");\n commands.put(\"Top 10 IP Addresses\", \"cat httpd-access.log | awk '{print $1}' | sort -n | uniq -c | sort -nr | head -10\");\n }",
"public static CommandList getChatCommands() {\n\t\treturn listener.cmds;\n\t}",
"public static List<String> getAllScriptLinks(final String page)\n {\n return getAllMatches(page, SCRIPT_PATTERN, 1);\n }",
"public static String[] getCommands(String root) {\n\t\treturn commands.get(root).toArray(new String[1]);\n\t}",
"Iterable<Callable<?>> getCommands(Class<? extends Annotation> transition);",
"public String showAll()\n {\n StringBuilder commandList = new StringBuilder();\n \n for(String command : validCommands.keySet()) \n {\n commandList.append( command + \" \" );\n } //for\n \n return commandList.toString();\n }",
"public void printCommands(){\n LocalApi.print_commands();\n }",
"java.util.List<com.rpg.framework.database.Protocol.CharacterAction> \n getActionsList();",
"java.util.List<com.rpg.framework.database.Protocol.CharacterAction> \n getActionsList();",
"public ArrayList<MessageEmbed.Field> getPage(String category, ArrayList<CommandInfo> commandInfos) {\n ArrayList<MessageEmbed.Field> page = new ArrayList<>();\n\n if(commandInfos != null) {\n MessageEmbed.Field categoryTitle = new MessageEmbed.Field(category.toUpperCase(), \"\", false);\n MessageEmbed.Field command = null;\n\n page.add(categoryTitle);\n for(int j = 0; j < commandInfos.size(); j++) {\n if(commandInfos.get(j).getCategory().replace(\"\\\"\", \"\").equalsIgnoreCase(category)) {\n command = new MessageEmbed.Field(commandInfos.get(j).getCommand().replace(\"\\\"\", \"\"),\n commandInfos.get(j).getDescription().replace(\"\\\"\", \"\") +\n \"\\nUsage: \" + commandInfos.get(j).getUsage().replace(\"\\\"\", \"\"), true);\n page.add(command);\n }\n }\n }\n return page;\n }",
"public void registerCommands() {\n commands = new LinkedHashMap<String,Command>();\n \n /*\n * admin commands\n */\n //file util cmds\n register(ReloadCommand.class);\n register(SaveCommand.class);\n \n //shrine cmds\n register(KarmaGetCommand.class);\n register(KarmaSetCommand.class); \n }",
"private void getGameCommands(){\n\n }",
"public List<PageContent> getAllPageContent();",
"public String[] getCommands() {\n int len = null == args ? 1 : 1 + args.length;\n List<String> cmds = new ArrayList<>(len);\n cmds.add(command);\n for (CommandArgument arg : args) {\n String[] quotedArgs = arg.getQuotedArgument();\n for (String quotedArg : quotedArgs) {\n cmds.add(quotedArg);\n }\n }\n return (String[]) CollectionUtil.collection2Array(cmds);\n }",
"@Override\n\tpublic Page<Operation> listeOperation(String codeCompte, int page, int size) {\n\t\treturn operationrepository.listOperation(codeCompte, PageRequest.of(page, size));\n\t}",
"public String[] getNativeCommands(String mime_type) {\n/* 199 */ String[] cmds = null;\n/* 200 */ List v = (List)this.native_commands.get(mime_type.toLowerCase(Locale.ENGLISH));\n/* */ \n/* 202 */ if (v != null) {\n/* 203 */ cmds = new String[v.size()];\n/* 204 */ cmds = (String[])v.toArray((Object[])cmds);\n/* */ } \n/* 206 */ return cmds;\n/* */ }",
"public void command() {\n List<String> commands = new ArrayList<>();\n commands.add(\": start\");\n commands.add(\": exit\");\n commands.add(\": help\");\n commands.add(\": commands\");\n\n for (String command : commands) {\n System.out.println(command);\n }\n System.out.println();\n }",
"public List<T> getPageElementsList();",
"public com.google.protobuf.ProtocolStringList\n getCommandList() {\n return command_.getUnmodifiableView();\n }",
"Iterable<BuildozerCommand> getCommands();",
"public IScapSyncSearchPage[] getPages();",
"Commands createCommands();",
"public Collection<String> getPageLinkProperties(ItemStack page);",
"@GetMapping(\"/provider-commands\")\n @Transactional\n public List<ProviderCommand> getAllProviderCommands() {\n List<ProviderCommand> commands = providerCommandService.findAll();\n List<ProviderCommand> fakeProviders = new ArrayList<>();\n for (final ProviderCommand command:commands){\n final ProviderCommand pCommand = getLocalProviderCommand(command.getId());\n for(SecurityParams param:command.getSecurityParams()){\n param.getId();\n }\n for(SecurityParams param:command.getServiceSecurity().getSecurityParams()){\n param.getId();\n }\n fakeProviders.add(pCommand);\n// break;\n }\n return fakeProviders;\n }",
"private void createCommands()\n{\n exitCommand = new Command(\"Exit\", Command.EXIT, 0);\n helpCommand=new Command(\"Help\",Command.HELP, 1);\n backCommand = new Command(\"Back\",Command.BACK, 1);\n}",
"private void putCommands() {\r\n ShellCommand charset = new CharsetCommand();\r\n commands.put(charset.getCommandName(), charset);\r\n ShellCommand symbol = new SymbolCommand();\r\n commands.put(symbol.getCommandName(), symbol);\r\n ShellCommand exit = new ExitCommand();\r\n commands.put(exit.getCommandName(), exit);\r\n ShellCommand cat = new CatCommand();\r\n commands.put(cat.getCommandName(), cat);\r\n ShellCommand copy = new CopyCommand();\r\n commands.put(copy.getCommandName(), copy);\r\n ShellCommand ls = new LsCommand();\r\n commands.put(ls.getCommandName(), ls);\r\n ShellCommand mkdir = new MkdirCommand();\r\n commands.put(mkdir.getCommandName(), mkdir);\r\n ShellCommand hexdump = new HexdumpCommand();\r\n commands.put(hexdump.getCommandName(), hexdump);\r\n ShellCommand tree = new TreeCommand();\r\n commands.put(tree.getCommandName(), tree);\r\n ShellCommand help = new HelpCommand();\r\n commands.put(help.getCommandName(), help);\r\n ShellCommand pwd = new PwdCommand();\r\n commands.put(pwd.getCommandName(), pwd);\r\n ShellCommand cd = new CdCommand();\r\n commands.put(cd.getCommandName(), cd);\r\n ShellCommand pushd = new PushdCommand();\r\n commands.put(pushd.getCommandName(), pushd);\r\n ShellCommand popd = new PopdCommand();\r\n commands.put(popd.getCommandName(), popd);\r\n ShellCommand listd = new ListdCommand();\r\n commands.put(listd.getCommandName(), listd);\r\n ShellCommand dropd = new DropdCommand();\r\n commands.put(dropd.getCommandName(), dropd);\r\n ShellCommand rmtree = new RmtreeCommand();\r\n commands.put(rmtree.getCommandName(), rmtree);\r\n ShellCommand cptree = new CptreeCommand();\r\n commands.put(cptree.getCommandName(), cptree);\r\n ShellCommand massrename = new MassrenameCommand();\r\n commands.put(massrename.getCommandName(), massrename);\r\n }",
"List<? extends Page> getPages();",
"Commands getIf_commands();",
"@Override\r\n\tpublic String ShowListCMD() {\n\t\treturn \"dir\";\r\n\t}",
"public CommandWords()\n {\n validCommands = new HashMap<String, CommandWord>();\n for(CommandWord command : CommandWord.values()) \n {\n if(command != CommandWord.UNKNOWN) \n {\n validCommands.put(command.toString(), command);\n }\n }\n \n commands = new HashMap<CommandWord, Command>();\n commands.put(CommandWord.GO, new GoCommand());\n commands.put(CommandWord.HELP, new HelpCommand());\n commands.put(CommandWord.QUIT, new QuitCommand());\n commands.put(CommandWord.EAT, new EatCommand());\n commands.put(CommandWord.SEE, new SeeCommand());\n commands.put(CommandWord.TAKE, new TakeCommand());\n commands.put(CommandWord.DROP, new DropCommand());\n //commands.put(CommandWord.TO, new ToCommand());\n //commands.put(CommandWord.LOCK, new LockCommand());\n //commands.put(CommandWord.UNLOCK, new UnlockCommand());\n commands.put(CommandWord.USEITEM, new UseCommand());\n commands.put(CommandWord.INSPECT, new InspectCommand());\n commands.put(CommandWord.TEST, new TestCommand());\n commands.put(CommandWord.INSPECTBAG, new InspectBagCommand());\n //commands.put(CommandWord.BACK, new BackCommand());\n commands.put(CommandWord.TALK, new TalkCommand());\n commands.put(CommandWord.BUY, new BuyCommand());\n commands.put(CommandWord.ALEA, new AleaCommand());\n commands.put(CommandWord.FREEZE, new FreezeCommand());\n }",
"private Command getCommandTree() {\n var command = this.commands.get(0);\n var comSize = commands.size();\n commands = commands.subList(1, comSize);\n return builder(command);\n }",
"java.lang.String getCommand(int index);",
"abstract public List<Command> getChildren();",
"CommandList getExpandedCommands(Context context, Map<String, String> rollupArgs);",
"@RequestMapping(value = \"/console\", method = RequestMethod.GET)\n @ResponseStatus(value = HttpStatus.OK)\n public List<Console> getAllConsole() {\n return serviceLayer.getAllConsole();\n }",
"List<ProviderCommandRequest> findAll();",
"PageAgent getPage();",
"public com.google.protobuf.ProtocolStringList\n getCommandList() {\n return command_;\n }",
"String getCommand();",
"public Map<String, Commands> getCommandMap() {\n return cmdMap;\n }",
"@Override\n\tpublic String listByPage(Page page, Model m) throws Exception {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String listByPage(Page page, Model m) throws Exception {\n\t\treturn null;\n\t}",
"public Set<CommandType> getAccessCommands(){\n return this.accessCommands;\n }",
"public String[] getCommands (int cmdType)\n\t{\n\t\tif (CMD_CREATE_USER == cmdType)\n\t\t\treturn new String[]\n\t\t\t{\n\t\t\t\"CREATE USER compiere;\",\t\t\t\n\t\t\t};\n\t\t//\n\t\tif (CMD_CREATE_DATABASE == cmdType)\n\t\t\treturn new String[]\n\t\t\t{\n\t\t \"CREATE DATABASE compiere OWNER compiere;\",\n\t\t\t\"GRANT ALL PRIVILEGES ON compiere TO compiere;\"\t,\n\t\t\t\"CREATE SCHEMA compiere;\",\n\t\t\t\"SET search_path TO compiere;\"\n\t\t\t};\n\t\t//\n\t\tif (CMD_DROP_DATABASE == cmdType)\n\t\t\treturn new String[]\n\t\t\t{\n\t\t\t\"DROP DATABASE compiere;\"\n\t\t\t};\n\t\t//\n\t\treturn null;\n\t}",
"protected void helpPage() {\n \n System.out.println(\"Commands:\");\n System.out.println(\"\\tQ [filename]\\t\\t\\tquit and save to filename\"); \n System.out.println(\"\\t ~ is used for a space character\" ); \n System.out.println(\"\\tb [STRING] [INDEX]\\t\\tinsert [STRING] \" +\n \"before [INDEX]\");\n System.out.println(\"\\tr [START] [STOP]\\t\\tremove all charecters\" +\n \" from index start to stop\");\n System.out.println(\"\\td [CHAR]\\t\\t\\tremove all [CHAR] elements \" +\n \"in the list\");\n System.out.println(\"\\tr [CHAR1] [CHAR2]\\t\\treplace all \" + \n \"[CHAR1]'s with [CHAR2]\");\n System.out.println(\"\\tz\\t\\t\\t\\trandomly run other commands several\" +\n \" times\");\n System.out.println(\"\\tp [INDEX] [CLIPBOARD]\\t\\tpaste from \" +\n \"clipboard number [CLIPBOARD] to message index [INDEX]\");\n System.out.println(\"\\tc [START] [STOP] [CLIPBOARD]\\t\" + \n \"copy message values from index [START] to [STOP] to \" + \n \"clipboard [CLIPBOARD]\");\n System.out.println(\"\\tx [STOP] [START] [CLIPBOARD]\\tcut from \" +\n \"message index [START] to [STOP] to clipboard [CLIPBOARD]\");\n System.out.println(\"\\th\\t\\t\\t\\tmeans to show this help page\");\n }",
"@Override\r\n\tpublic List<CustomizePage> getCustomizePages() {\n\t\tDetachedCriteria detachedCriteria = DetachedCriteria.forClass(CustomizePage.class);\r\n\t\tList<CustomizePage> bolist= findByCriteria(detachedCriteria);\r\n\t\treturn bolist;\r\n\t}",
"List<String> tab(CommandSender sender, List<String> args);",
"@Command\n\t@NotifyChange(\"*\")\n\tpublic void paginarLista(){\n\t\tint page=pagAnalistas.getActivePage();\n\t\tcambiarAnalistas(page, null, null);\n\t}",
"@Override // com.zhihu.android.app.p1311ui.fragment.BaseFragment\n public PageInfoType[] getPageContent() {\n return new PageInfoType[]{new PageInfoType(ContentType.EnumC30787c.Topic, this.f90217G.mo110111g())};\n }",
"public static List<String> getAllStyleContents(final String page)\n {\n return getAllMatches(page, STYLE_CONTENT_PATTERN, 1);\n }",
"public String getPageText();",
"@Override\n\tpublic String toString()\n\t{\n\t\tString result = \"\";\n\t\tfor(String c : commands)\n\t\t\tresult += c + '\\n';\n\t\treturn result;\n\t}",
"public String[] readCommand();",
"Page getPage();",
"public Iterable<Command> createCommands(String command) {\n\t\tList<Command> result;\n\t\tif (myFuncMap.containsKey(command)) {\n\t\t\tresult = Arrays.asList(myFuncMap.get(command));\n\t\t} else {\n\t\t\tString keyword = myLanguages.get(command);\n\t\t\tFactory factory = myFactoryMap.get(myFactories.getString(keyword));\n\t\t\tresult = factory.create(keyword);\n\t\t}\n\t\treturn () -> result.iterator();\n\t}",
"List<JournalPage> getAllPages();",
"@View( value = VIEW_LIST, defaultView = true )\r\n public XPage viewList( HttpServletRequest request )\r\n {\r\n List<BotDescription> listBots = getBotsDescription( );\r\n\r\n Map<String, Object> model = getModel( );\r\n model.put( MARK_BOTS_LIST, listBots );\r\n\r\n return getXPage( TEMPLATE_BOTS_LIST, request.getLocale( ), model );\r\n }",
"@NotNull\n private String getCommandsText() {\n final StringBuilder builder = new StringBuilder();\n\n HashMap<VcsRoot, ArrayList<VirtualFile>> checked = getCheckedFiles();\n for (Map.Entry<VcsRoot, ArrayList<VirtualFile>> entry : checked.entrySet()) {\n final VirtualFile root = entry.getKey().getPath();\n if (root == null) {\n continue;\n }\n\n builder.append(IgnoreBundle.message(\n \"dialog.untrackFiles.commands.repository\",\n root.getCanonicalPath()\n )).append(\"\\n\");\n\n for (VirtualFile file : entry.getValue()) {\n builder.append(IgnoreBundle.message(\n \"dialog.untrackFiles.commands.command\",\n Utils.getRelativePath(root, file)\n )).append(\"\\n\");\n }\n\n builder.append(\"\\n\");\n }\n return builder.toString();\n }",
"private void registerCommands() {\n }",
"public String[] nextCommand() {\r\n String[] result = null;\r\n if (sc.hasNextLine()) {\r\n String temp = sc.next();\r\n if (temp.equals(\"insert\")) {\r\n result = new String[3];\r\n result[0] = \"insert\";\r\n temp = sc.nextLine().trim();\r\n result[1] = temp.split(\"<SEP>\")[0];\r\n result[2] = temp.split(\"<SEP>\")[1];\r\n }\r\n else if (temp.equals(\"remove\")) {\r\n result = new String[3];\r\n result[0] = \"remove\";\r\n result[1] = sc.next();\r\n result[2] = sc.nextLine().trim();\r\n }\r\n else if (temp.equals(\"print\")) {\r\n result = new String[2];\r\n result[0] = \"print\";\r\n result[1] = sc.nextLine().trim();\r\n }\r\n else {\r\n sc.nextLine();\r\n }\r\n return result;\r\n }\r\n return null;\r\n }",
"java.lang.String getCommand();",
"lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPage();",
"List<ButtonLink> getBtnActionLinks();",
"protected void initializeCommands() {\n\t\t\r\n\t\tcommands.add(injector.getInstance(Keys.inputQuestionCommand));\r\n\t\tcommands.add(injector.getInstance(Keys.backCommand));\r\n\t\tcommands.add(injector.getInstance(Keys.helpCommand));\r\n\t\tcommands.add(injector.getInstance(Keys.quitCommand));\r\n\t}",
"void retrievePageContents()\n\t{\n\t\tStringBuilder longString = new StringBuilder();\n\t\tfor (int i = 0; i < pageContents.size(); i++)\n\t\t{\n\t\t\tlongString.append(pageContents.get(i));\n\t\t}\n\t\tString pageMarkup = longString.toString().toLowerCase();\n\t\textractComments(pageMarkup);\n\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic List selectThemeGuideContentsList(Map<String, Object> commandMap) throws Exception {\n\t\treturn defaultDAO.selectList(\"PcWedding.selectThemeGuideContentsList\", commandMap);\n\t}",
"public interface Command {\n /**\n * @param request from browser\n * @return String page\n */\n String execute(HttpServletRequest request);\n}",
"@UML(identifier=\"page\", obligation=OPTIONAL, specification=ISO_19115)\n String getPage();",
"public String getPages() {\n return pages;\n }",
"public ArrayList<String> getCommandsHistory() {\n\t\treturn commandsHistory;\n\t}"
] | [
"0.69523966",
"0.6601708",
"0.63881236",
"0.6381767",
"0.6323421",
"0.63147485",
"0.62552667",
"0.6252343",
"0.62342703",
"0.61604136",
"0.6100224",
"0.6091169",
"0.6063845",
"0.60406536",
"0.60366756",
"0.59425867",
"0.59408313",
"0.591803",
"0.5865862",
"0.5844463",
"0.5832854",
"0.58318466",
"0.580924",
"0.58004767",
"0.5726007",
"0.56995964",
"0.56848323",
"0.5649837",
"0.5603393",
"0.5568066",
"0.554982",
"0.55236703",
"0.551157",
"0.5508077",
"0.5464911",
"0.5455831",
"0.5451573",
"0.54072684",
"0.53982",
"0.53982",
"0.53931606",
"0.538174",
"0.53783435",
"0.5376343",
"0.53745127",
"0.53741544",
"0.5372992",
"0.53640264",
"0.5332193",
"0.53266966",
"0.53133404",
"0.5290036",
"0.528591",
"0.527354",
"0.5263032",
"0.5253599",
"0.52339524",
"0.523012",
"0.5203414",
"0.51804477",
"0.51785517",
"0.51766455",
"0.51741415",
"0.5166662",
"0.5151584",
"0.51450664",
"0.51439005",
"0.51387167",
"0.51374376",
"0.5135718",
"0.51327205",
"0.51323843",
"0.51323843",
"0.5116909",
"0.5112403",
"0.50871754",
"0.50860107",
"0.50853676",
"0.50787044",
"0.50668055",
"0.5053383",
"0.50529134",
"0.50492823",
"0.5047502",
"0.50356394",
"0.50353396",
"0.50311667",
"0.5030161",
"0.5028931",
"0.5026599",
"0.5025801",
"0.50224197",
"0.50191826",
"0.5016252",
"0.5015956",
"0.5006213",
"0.5003578",
"0.50018245",
"0.49920028",
"0.4986883",
"0.49815744"
] | 0.0 | -1 |
Gets a list of valid arguments that can be used in tabbing. | protected List<String> getTabCompletion(final CommandSender sender, final List<String> args) {
return new ArrayList<String>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.util.List<java.lang.String>\n getArgsList();",
"String getArguments();",
"java.util.List<java.lang.String>\n getArgsList();",
"java.util.List<java.lang.String>\n\t\tgetArgsList();",
"List<IArgumentBuilder> getArguments();",
"public List<String> getArguments() {\n return arguments;\n }",
"public static Sequence<? extends String> getArguments() {\n return Entry.getArguments();\n }",
"public String[] getArgumentStrings() {\r\n String[] sa = new String[arguments.size()];\r\n int i = 0;\r\n for (Object o : arguments)\r\n \tif (o!=null) sa[i++] = o.toString();\r\n \telse sa[i++] = \"\";\r\n return sa;\r\n // return (String [])arguments.toArray(new String [arguments.size ()]); \t\r\n }",
"public String[] getArguments(){\r\n\t\treturn args.toArray(new String[args.size()]);\r\n\t}",
"@Override\r\n\tpublic List<String> getArguments()\r\n\t{\n\t\treturn null;\r\n\t}",
"public @NonNull List<@NonNull String> getArgs()\n {\n return input.getArgs();\n }",
"public List<String> getArguments()\n\t{\n\t\treturn mArgs;\n\t}",
"public List<Argument> getArguments() {\n return arguments;\n }",
"public java.util.List<java.lang.String>\n getArgsList() {\n return java.util.Collections.unmodifiableList(args_);\n }",
"public String[] getArguments() {\n return this.arguments;\n }",
"Object[] getArguments();",
"Object[] getArguments();",
"java.util.List<com.google.protobuf.ByteString> getArgumentsList();",
"public List<Object> getArguments() {\n return this.arguments;\n }",
"List<String> tab(CommandSender sender, List<String> args);",
"java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();",
"java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();",
"public Type[] getArgumentTypes() {\n/* 236 */ return Type.getArgumentTypes(this.desc);\n/* */ }",
"ImmutableList<String> mainArgs();",
"public java.util.List<java.lang.String>\n getArgsList() {\n return args_;\n }",
"public Vector<Argument> getAllArguments() {\r\n \t\tVector<Argument> args = new Vector<Argument>();\r\n \t\targs.addAll(argumentsFor);\r\n \t\targs.addAll(argumentsAgainst);\r\n \t\targs.addAll(relationships);\r\n \t\treturn args;\r\n \t}",
"public List<Element> getArguments()\n {\n List<Element> args = new ArrayList<>(getSigChildren());\n\n // remove the \"use\", \"no\", or \"require\"\n args.remove(0);\n\n // remove the terminator - ha! - he'll be back!\n if (ElementUtils.isSemiColonToken(args.get(args.size() - 1)))\n {\n args.remove(args.size() - 1);\n }\n\n // remove the module name or version dependency\n args.remove(0);\n\n if (args.isEmpty())\n {\n return Collections.emptyList();\n }\n\n // do we have a required version...\n if (args.get(0) instanceof NumberToken)\n {\n // yup, and that's it...\n if (args.size() == 1)\n {\n return Collections.emptyList();\n }\n\n // yes, and additional arguments\n if (!(args.get(1) instanceof OperatorToken))\n {\n args.remove(0);\n }\n }\n\n return args;\n }",
"public java.util.List<com.google.protobuf.ByteString>\n getArgumentsList() {\n return java.util.Collections.unmodifiableList(arguments_);\n }",
"java.util.List<godot.wire.Wire.Value> \n getArgsList();",
"default List<String> tabComplete(CommandSender sender, String[] args) {\n return Collections.emptyList();\n }",
"public Map<String, String> getArgList() {\n return argMap;\n }",
"@Override\r\n\tpublic String getPrintArgs() {\n\t\treturn null;\r\n\t}",
"public Object[] getArguments() {\n return arguments;\n }",
"public List<Expression> getArgs()\n {\n return args;\n }",
"public java.util.List<com.google.protobuf.ByteString>\n getArgumentsList() {\n return arguments_;\n }",
"@Override\r\n\tpublic List<String> onTabComplete(CommandSender sender, Command cmd, String label, String[] args) {\r\n\t\t\r\n\t\tfinal int leng = args.length;\r\n\t\t\r\n\t\tList<String> completions = new ArrayList<String>();\r\n\t\t\r\n\t\tswitch(leng) {\r\n\t\t\t\r\n\t\tcase 1:\r\n\t\t\tfor(OpsCommandType t : OpsCommandType.values()) {\r\n\t\t\t\tif(t == OpsCommandType.OPS) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tcompletions.add(t.getLabel());\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tif(!cmdConfig.getSubArgs(args[0]).isEmpty()) {\r\n\t\t\t\tcompletions.addAll(cmdConfig.getSubArgs(args[0]));\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tcompletions.add(\"true\");\r\n\t\t\tcompletions.add(\"false\");\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\treturn completions;\r\n\t}",
"public List<String> getArgumentList()\n\t{\n\t\treturn m_argumentList;\n\t}",
"protected static List<String> arguments(String[] args) {\n List<String> arguments = new ArrayList<>(args.length);\n for (int i = 0; i < args.length; ++i) {\n if (args[i].equals(\"--\")) {\n arguments.addAll(Arrays.asList(args).subList(i + 1, args.length));\n break;\n } else if (!args[i].startsWith(\"-\")) {\n arguments.add(args[i]);\n }\n }\n return arguments;\n }",
"private Term[] parseArgumentList() throws ParseException {\n \n final Term[] args = parseTermList();\n final int tt = _tokenizer.next();\n if (tt != ')') {\n _tokenizer.pushBack();\n reportError(\"Missing ')' or ','.\"); /*I18N*/\n }\n \n return args;\n }",
"Optional<String[]> arguments();",
"private String[] getArgs()\n {\n return cmd.getArgs();\n }",
"public Object[] getArguments() { return args;}",
"private static String printOptionalArgs() {\n String output = \"\";\n for (int i = 0; i < MAX_OPTIONAL_ARGS; i++)\n output += \" [-\" + VALID_OPTIONAL_ARGS[i] + \"]\";\n return output + \" \";\n }",
"public String getArguments() {\r\n return key.getArguments();\r\n }",
"public String getCppArguments() {\n\t\treturn this.getCppArguments(true);\n\t}",
"public java.lang.String getArgs() {\n return args;\n }",
"public Object[] getArguments()\n {\n return __m_Arguments;\n }",
"public com.google.protobuf.ProtocolStringList\n\t\t\tgetArgsList() {\n\t\t\t\treturn args_.getUnmodifiableView();\n\t\t\t}",
"public java.lang.String getArgs() {\n return args;\n }",
"public java.lang.Object[] getArgs() {\n return args;\n }",
"public com.google.protobuf.ProtocolStringList\n getArgsList() {\n return args_.getUnmodifiableView();\n }",
"@Override\n protected String[] getArguments() {\n String[] args = new String[1];\n args[0] = _game_file_name;\n return args;\n }",
"public Object[] getArgumentArray() {\n return null;\n }",
"@java.lang.Override\n public java.util.List<godot.wire.Wire.Value> getArgsList() {\n return args_;\n }",
"@Override\n public Map<String, String> getInputArgs() {\n Log.w(TAG, \"Test input args is not supported.\");\n return new HashMap<>();\n }",
"public ArrayList<JavaScope> getArguments() {\n\t\tArrayList<JavaScope> ret = new ArrayList<JavaScope>();\n\t\tfor (TypeContainer t : this.sig)\n\t\t\tret.add(t.item);\n\t\t\n\t\treturn ret;\n\t}",
"@Override public int getNumArguments()\t\t\t{ return arg_list.size(); }",
"public com.google.protobuf.ProtocolStringList\n\t\tgetArgsList() {\n\t\t\treturn args_;\n\t\t}",
"java.lang.String getArgs(int index);",
"java.lang.String getArgs(int index);",
"java.lang.String getArgs(int index);",
"public List<ModuleArgumentItem> getParams() {\n return params;\n }",
"public String[] getNoArguments(){\r\n\t\treturn args.toArray(new String[args.size()]);\r\n\t}",
"public com.google.protobuf.ProtocolStringList\n getArgsList() {\n return args_;\n }",
"public List<String> getOptionArgList(String[] names) {\n\t\tOpt op = getOption(names);\n\t\tif (op != null) {\n\t\t\treturn op.getArgList();\n\t\t}\n\t\treturn Collections.EMPTY_LIST;\n\t}",
"public static String[] getRemainingArgs(int starting, String[] arguments) {\r\n List<String> args = new ArrayList<>(Arrays.asList(arguments));\r\n return args.subList(starting, args.size()).toArray(new String[]{});\r\n }",
"Object[] args();",
"public String[] getCommandFlags() throws BuildException;",
"public Collection<T> getArgumentsToAttack(T goalArgument);",
"public LinkedList<String> getActionArgs() {\n\t\treturn actionArgs;\n\t}",
"String [] getParameters();",
"public CellTable<CQLFunctionArgument> getArgumentListTable() {\n\t\treturn argumentListTable;\n\t}",
"java.util.List<java.lang.String>\n getExtraJavacoptsList();",
"public String[] getOptions() {\n return argv;\n }",
"@Override\n public Object[] getArguments() {\n return null;\n }",
"protected List<String> configurationArguments() {\n List<String> args = new ArrayList<String>();\n return args;\n }",
"public void testGetInputArguments() {\n List<String> args = mb.getInputArguments();\n assertNotNull(args);\n for (String string : args) {\n assertNotNull(string);\n assertTrue(string.length() > 0);\n }\n }",
"private LinkedList<String> getActivatedFeatureArgs(\r\n\t\t\tList<String> myActivatedFeatures) {\r\n\t\tLinkedList<String> args = new LinkedList<String>();\r\n\t\tfor (String feature : myActivatedFeatures) {\r\n\t\t\targs.add(\"-D\" + feature);\r\n\t\t}\r\n\t\treturn args;\r\n\r\n\t}",
"@Override\n public String[] getOptions() {\n List<String> options = new ArrayList<String>();\n\n for (String opt : getJobOptionsOnly()) {\n options.add(opt);\n }\n\n return options.toArray(new String[options.size()]);\n }",
"public abstract ValidationResults validArguments(String[] arguments);",
"public abstract int getMinimumArguments();",
"public Map<String, Class<?>> getArgumentTypes() {\n return argumentTypes;\n }",
"List<PowreedCommandParameter> getParameters();",
"ImmutableList<String> vmOptions();",
"public java.util.List<godot.wire.Wire.Value> getArgsList() {\n if (argsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(args_);\n } else {\n return argsBuilder_.getMessageList();\n }\n }",
"protected Set<ValidOption> usageOptions() {\n Set<ValidOption> opts = new LinkedHashSet<ValidOption>();\n addOption(opts, \"printprompt\", '\\0', \"BOOLEAN\", false,\n Boolean.toString(programOpts.isInteractive()));\n opts.addAll(commandOpts);\n opts.remove(printPromptOption);\n return opts;\n }",
"@Override\n public Stream<? extends Arguments> provideArguments(ExtensionContext context) throws Exception {\n return Stream.of(\n Arguments.of(CONTENT, 10, 25),\n Arguments.of(CONTENT, 3, 40),\n Arguments.of(CONTENT, 23, 10),\n Arguments.of(\"NAVEEN\", 23, 1),\n Arguments.of(\" Develop a word \", 5, 7),\n Arguments.of(\" \", 23, 1),\n Arguments.of(\"\", 23, 1)\n );\n }",
"public List<String> defaultArgs() {\n return defaultArgs;\n }",
"public String[] getCommands() {\n int len = null == args ? 1 : 1 + args.length;\n List<String> cmds = new ArrayList<>(len);\n cmds.add(command);\n for (CommandArgument arg : args) {\n String[] quotedArgs = arg.getQuotedArgument();\n for (String quotedArg : quotedArgs) {\n cmds.add(quotedArg);\n }\n }\n return (String[]) CollectionUtil.collection2Array(cmds);\n }",
"public Object getArguments() {\n return m_args;\n }",
"@Test\r\n\tpublic void testListArg() {\r\n\t\tAssert.assertEquals(\"test[(`a,`b,`c)]\", new FunctionImpl.FunctionBuilderImpl(\"test\").param(SymbolValue.froms(\"a\", \"b\", \"c\")).build().toQ());\r\n\t}",
"java.util.List<org.tensorflow.proto.framework.FullTypeDef> \n getArgsList();",
"private static void validateCommandLineArguments(AutomationContext context, String extendedCommandLineArgs[])\r\n\t{\r\n\t\t//fetch the argument configuration types required\r\n\t\tCollection<IPlugin<?, ?>> plugins = PluginManager.getInstance().getPlugins();\r\n \t\tList<Class<?>> argBeanTypes = plugins.stream()\r\n\t\t\t\t.map(config -> config.getArgumentBeanType())\r\n\t\t\t\t.filter(type -> (type != null))\r\n\t\t\t\t.collect(Collectors.toList());\r\n\t\t\r\n\t\targBeanTypes = new ArrayList<>(argBeanTypes);\r\n\t\t\r\n\t\t//Add basic arguments type, so that on error its properties are not skipped in error message\r\n\t\targBeanTypes.add(AutoxCliArguments.class);\r\n\r\n\t\t//if any type is required creation command line options and parse command line arguments\r\n\t\tCommandLineOptions commandLineOptions = OptionsFactory.buildCommandLineOptions(argBeanTypes.toArray(new Class<?>[0]));\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tcommandLineOptions.parseBeans(extendedCommandLineArgs);\r\n\t\t} catch(MissingArgumentException e)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\r\n\t\t\tSystem.err.println(commandLineOptions.fetchHelpInfo(COMMAND_SYNTAX));\r\n\t\t\tSystem.exit(-1);\r\n\t\t} catch(Exception ex)\r\n\t\t{\r\n\t\t\tex.printStackTrace();\r\n\t\t\tSystem.err.println(commandLineOptions.fetchHelpInfo(COMMAND_SYNTAX));\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t}",
"public Object[] getArguments() {\n if (args.length == 0) {\n return args;\n }\n Object[] copy = new Object[args.length];\n System.arraycopy(args, 0, copy, 0, args.length);\n return copy;\n }",
"static String[] getNavigateArgs()\n \t{\n \t\tint os = PropertiesAndDirectories.os();\n \t\tString[] result = cachedNavigateArgs;\n \t\tif (result == null)\n \t\t{\n \t\t\tswitch (os)\n \t\t\t{\n \t\t\tcase PropertiesAndDirectories.XP:\n \t\t\tcase PropertiesAndDirectories.VISTA_AND_7:\n \t\t\t\tString path = null;\n \t\t\t\tif (!Pref.lookupBoolean(\"navigate_with_ie\"))\n \t\t\t\t\tpath = FIREFOX_PATH_WINDOWS;\n \t\t\t\tif (path != null)\n \t\t\t\t{\n \t\t\t\t\tFile existentialTester = new File(path);\n \t\t\t\t\tfirefoxExists = existentialTester.exists();\n \t\t\t\t\tif (!firefoxExists)\n \t\t\t\t\t{\n \t\t\t\t\t\tpath = FIREFOX_PATH_WINDOWS_64;\n \t\t\t\t\t\texistentialTester = new File(path);\n \t\t\t\t\t\tfirefoxExists = existentialTester.exists();\n \t\t\t\t\t}\n \t\t\t\t\tif (firefoxExists)\n \t\t\t\t\t{ // cool! firefox\n \t\t\t\t\t\tresult = new String[3];\n \t\t\t\t\t\tresult[0] = path;\n \t\t\t\t\t\tresult[1] = \"-new-tab\";\n \t\t\t\t\t} else {\n \t\t\t\t\t\t//Use the SCC Virtualization Path\n \t\t\t\t\t\tpath = FIREFOX_PATH_VIRT;\n \t\t\t\t\t\texistentialTester = new File(path);\n \t\t\t\t\t\tfirefoxExists = existentialTester.exists();\n \t\t\t\t\t\tif(firefoxExists)\n \t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = new String[5];\n \t\t\t\t\t\t\tresult[0] = path;\n\t\t\t\t\t\t\tresult[1] = \"/launch\";\n\t\t\t\t\t\t\tresult[2] = \"\\\"Mozilla Firefox 11\\\"\";\n\t\t\t\t\t\t\tresult[3] = \"-new-tab\";\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t}\n \t\t\t\tif (result == null)\n \t\t\t\t{\n \t\t\t\t\tpath = IE_PATH_WINDOWS;\n \t\t\t\t\tFile existentialTester = new File(path);\n \t\t\t\t\tif (existentialTester.exists())\n \t\t\t\t\t{\n \t\t\t\t\t\tresult = new String[2];\n \t\t\t\t\t\tresult[0] = path;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\tcase PropertiesAndDirectories.MAC:\n \t\t\t\tresult = new String[4];\n \t\t\t\tresult[0] = \"/usr/bin/open\";\n \t\t\t\tresult[1] = \"-a\";\n \t\t\t\tresult[2] = \"firefox\";\n \t\t\t\tfirefoxExists = true;\n \t\t\t\tbreak;\n \t\t\tcase PropertiesAndDirectories.LINUX:\n \t\t\t\tresult = new String[2];\n \t\t\t\tresult[0] = FIREFOX_PATH_LINUX;\n \t\t\t\tfirefoxExists = true;\n \t\t\t\tbreak;\n \t\t\tdefault:\n \t\t\t\terror(PropertiesAndDirectories.getOsName(), \"go(ParsedURL) not supported\");\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tif (result != null)\n \t\t\t{\n \t\t\t\tcachedNavigateArgs = result;\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}",
"int getArgumentsCount();",
"public Map<String, String> arguments() {\n if (this.arguments.isEmpty()) {\n for (final String argument : this.args) {\n final Matcher keys = KEY.matcher(argument);\n if (keys.find()) {\n final String identifier = keys.group(\"identifier\");\n final String value = keys.group(\"value\");\n if (!this.arguments.containsKey(identifier)) {\n this.arguments.put(identifier, value);\n } else {\n throw new IllegalArgumentException(\"duplicated keys\");\n }\n }\n }\n }\n return Collections.unmodifiableMap(this.arguments);\n }",
"public String getExecutionArgs() {\n\t\treturn null;\n\t}",
"@Override\n public String[] getOptions() {\n\n Vector<String> result = new Vector<String>();\n\n Collections.addAll(result, super.getOptions());\n\n result.add(\"-a\");\n result.add(\"\" + getNumAttributes());\n\n if (getClassFlag()) {\n result.add(\"-c\");\n }\n\n return result.toArray(new String[result.size()]);\n }",
"public String[] getExcludedRuntimeProgramArguments(boolean debug, boolean starting);"
] | [
"0.6635858",
"0.6505698",
"0.6504316",
"0.6461242",
"0.629792",
"0.6291525",
"0.628483",
"0.6259721",
"0.62245625",
"0.6164818",
"0.6147574",
"0.61285496",
"0.6084214",
"0.6081558",
"0.60698235",
"0.6030517",
"0.6030517",
"0.5986935",
"0.59435344",
"0.5910703",
"0.58695394",
"0.58695394",
"0.5860636",
"0.58537716",
"0.5840298",
"0.58379173",
"0.58228374",
"0.57978576",
"0.5765229",
"0.57592934",
"0.5758224",
"0.5696751",
"0.5695233",
"0.56682336",
"0.5658331",
"0.5645837",
"0.5643917",
"0.5625408",
"0.56246656",
"0.5601478",
"0.5600537",
"0.55883414",
"0.55758667",
"0.5559831",
"0.5540216",
"0.55008787",
"0.5471968",
"0.54604477",
"0.5458452",
"0.54560584",
"0.54410285",
"0.54224825",
"0.5405353",
"0.5390616",
"0.53665185",
"0.53593004",
"0.534269",
"0.5303046",
"0.5284331",
"0.5284331",
"0.5284331",
"0.5274056",
"0.52710307",
"0.5261987",
"0.5258783",
"0.52553755",
"0.5253332",
"0.5249586",
"0.52321255",
"0.5226372",
"0.52239615",
"0.5218818",
"0.5201378",
"0.5200843",
"0.5200513",
"0.5193201",
"0.51881695",
"0.51849675",
"0.5180635",
"0.5175244",
"0.5167296",
"0.51572496",
"0.5155541",
"0.5148496",
"0.51462287",
"0.51399934",
"0.5136368",
"0.5133186",
"0.51329017",
"0.5132717",
"0.5127711",
"0.512651",
"0.5122725",
"0.51217914",
"0.5114042",
"0.5098943",
"0.50971",
"0.50882363",
"0.50875926",
"0.5085283"
] | 0.6212981 | 9 |
Create all command instances again. We do this so all commands pull their stuff from configs again | public static void reloadCommands() {
instances.clear();
Commands.initializeCommands();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public CommandDirector() {\n\t\t//factory = ApplicationContextFactory.getInstance();\n\t\t//context = factory.getClassPathXmlApplicationContext();\n\t\t\n\t\t//commands.put(\"createEntry\", context.getBean(\"creationEntryCommand\", CreationEntryCommand.class));\n\t\t//commands.put(\"searchEntry\", context.getBean(\"searchingEntryCommand\", SearchingEntryCommand.class));\n\t\t\n\t\tcommands.put(\"createEntry\", new CreationEntryCommand());\n\t\tcommands.put(\"searchEntry\", new SearchingEntryCommand());\n\t\t\n\t}",
"public void instantiateCommand() throws SystemException {\r\n\t\t// Check the definitation.\r\n\t\tdefinitionCheck();\r\n\t\t\r\n\t\t// Create the fresh instance.\r\n\t\tcommandInstance = new ReadWriteableAttributes();\r\n\t}",
"Commands createCommands();",
"private static void _reset() {\n // clear metrics\n HystrixCommandMetrics.reset();\n HystrixThreadPoolMetrics.reset();\n HystrixCollapserMetrics.reset();\n // clear collapsers\n HystrixCollapser.reset();\n // clear circuit breakers\n HystrixCircuitBreaker.Factory.reset();\n HystrixPlugins.reset();\n HystrixPropertiesFactory.reset();\n currentCommand.set(new LinkedList<HystrixCommandKey>());\n }",
"public void registerCommands() {\n\t CommandSpec cmdCreate = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdCreate.getInstance())\n\t .permission(\"blockyarena.create\")\n\t .build();\n\n\t CommandSpec cmdRemove = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdRemove.getInstance())\n\t .permission(\"blockyarena.remove\")\n\t .build();\n\n\t CommandSpec cmdJoin = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"mode\")))\n\t )\n\t .executor(CmdJoin.getInstance())\n\t .build();\n\n\t CommandSpec cmdQuit = CommandSpec.builder()\n\t .executor(CmdQuit.getInstance())\n\t .build();\n\n\t CommandSpec cmdEdit = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t GenericArguments.optional(onlyOne(GenericArguments.string(Text.of(\"param\"))))\n\t )\n\t .executor(CmdEdit.getInstance())\n\t .permission(\"blockyarena.edit\")\n\t .build();\n\n\t CommandSpec cmdKit = CommandSpec.builder()\n\t .arguments(onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdKit.getInstance())\n\t .build();\n\n\t CommandSpec arenaCommandSpec = CommandSpec.builder()\n\t .child(cmdEdit, \"edit\")\n\t .child(cmdCreate, \"create\")\n\t .child(cmdRemove, \"remove\")\n\t .child(cmdJoin, \"join\")\n\t .child(cmdQuit, \"quit\")\n\t .child(cmdKit, \"kit\")\n\t .build();\n\n\t Sponge.getCommandManager()\n\t .register(BlockyArena.getInstance(), arenaCommandSpec, \"blockyarena\", \"arena\", \"ba\");\n\t }",
"public synchronized void initializeCommands() {\n/* 101 */ Set<String> ignoredPlugins = new HashSet<String>(this.yaml.getIgnoredPlugins());\n/* */ \n/* */ \n/* 104 */ if (ignoredPlugins.contains(\"All\")) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* 109 */ label61: for (Command command : this.server.getCommandMap().getCommands()) {\n/* 110 */ if (commandInIgnoredPlugin(command, ignoredPlugins)) {\n/* */ continue;\n/* */ }\n/* */ \n/* */ \n/* 115 */ for (Class c : this.topicFactoryMap.keySet()) {\n/* 116 */ if (c.isAssignableFrom(command.getClass())) {\n/* 117 */ HelpTopic t = ((HelpTopicFactory)this.topicFactoryMap.get(c)).createTopic(command);\n/* 118 */ if (t != null) { addTopic(t); continue label61; }\n/* */ continue label61;\n/* */ } \n/* 121 */ if (command instanceof PluginCommand && c.isAssignableFrom(((PluginCommand)command).getExecutor().getClass())) {\n/* 122 */ HelpTopic t = ((HelpTopicFactory)this.topicFactoryMap.get(c)).createTopic(command);\n/* 123 */ if (t != null) addTopic(t);\n/* */ \n/* */ } \n/* */ } \n/* 127 */ addTopic((HelpTopic)new GenericCommandHelpTopic(command));\n/* */ } \n/* */ \n/* */ \n/* 131 */ for (Command command : this.server.getCommandMap().getCommands()) {\n/* 132 */ if (commandInIgnoredPlugin(command, ignoredPlugins)) {\n/* */ continue;\n/* */ }\n/* 135 */ for (String alias : command.getAliases()) {\n/* */ \n/* 137 */ if (this.server.getCommandMap().getCommand(alias) == command) {\n/* 138 */ addTopic(new CommandAliasHelpTopic(\"/\" + alias, \"/\" + command.getLabel(), this));\n/* */ }\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* 144 */ Collection<HelpTopic> filteredTopics = Collections2.filter(this.helpTopics.values(), Predicates.instanceOf(CommandAliasHelpTopic.class));\n/* 145 */ if (!filteredTopics.isEmpty()) {\n/* 146 */ addTopic((HelpTopic)new IndexHelpTopic(\"Aliases\", \"Lists command aliases\", null, filteredTopics));\n/* */ }\n/* */ \n/* */ \n/* 150 */ Map<String, Set<HelpTopic>> pluginIndexes = new HashMap<String, Set<HelpTopic>>();\n/* 151 */ fillPluginIndexes(pluginIndexes, this.server.getCommandMap().getCommands());\n/* */ \n/* 153 */ for (Map.Entry<String, Set<HelpTopic>> entry : pluginIndexes.entrySet()) {\n/* 154 */ addTopic((HelpTopic)new IndexHelpTopic(entry.getKey(), \"All commands for \" + (String)entry.getKey(), null, entry.getValue(), \"Below is a list of all \" + (String)entry.getKey() + \" commands:\"));\n/* */ }\n/* */ \n/* */ \n/* 158 */ for (HelpTopicAmendment amendment : this.yaml.getTopicAmendments()) {\n/* 159 */ if (this.helpTopics.containsKey(amendment.getTopicName())) {\n/* 160 */ ((HelpTopic)this.helpTopics.get(amendment.getTopicName())).amendTopic(amendment.getShortText(), amendment.getFullText());\n/* 161 */ if (amendment.getPermission() != null) {\n/* 162 */ ((HelpTopic)this.helpTopics.get(amendment.getTopicName())).amendCanSee(amendment.getPermission());\n/* */ }\n/* */ } \n/* */ } \n/* */ }",
"private void createCommands()\n{\n exitCommand = new Command(\"Exit\", Command.EXIT, 0);\n helpCommand=new Command(\"Help\",Command.HELP, 1);\n backCommand = new Command(\"Back\",Command.BACK, 1);\n}",
"private void loadRegistredCommands() {\n ServiceLoader<Command> loader = ServiceLoader.load(Command.class);\n for (Command command : loader) {\n addCommand(command);\n }\n }",
"private void putCommands() {\r\n ShellCommand charset = new CharsetCommand();\r\n commands.put(charset.getCommandName(), charset);\r\n ShellCommand symbol = new SymbolCommand();\r\n commands.put(symbol.getCommandName(), symbol);\r\n ShellCommand exit = new ExitCommand();\r\n commands.put(exit.getCommandName(), exit);\r\n ShellCommand cat = new CatCommand();\r\n commands.put(cat.getCommandName(), cat);\r\n ShellCommand copy = new CopyCommand();\r\n commands.put(copy.getCommandName(), copy);\r\n ShellCommand ls = new LsCommand();\r\n commands.put(ls.getCommandName(), ls);\r\n ShellCommand mkdir = new MkdirCommand();\r\n commands.put(mkdir.getCommandName(), mkdir);\r\n ShellCommand hexdump = new HexdumpCommand();\r\n commands.put(hexdump.getCommandName(), hexdump);\r\n ShellCommand tree = new TreeCommand();\r\n commands.put(tree.getCommandName(), tree);\r\n ShellCommand help = new HelpCommand();\r\n commands.put(help.getCommandName(), help);\r\n ShellCommand pwd = new PwdCommand();\r\n commands.put(pwd.getCommandName(), pwd);\r\n ShellCommand cd = new CdCommand();\r\n commands.put(cd.getCommandName(), cd);\r\n ShellCommand pushd = new PushdCommand();\r\n commands.put(pushd.getCommandName(), pushd);\r\n ShellCommand popd = new PopdCommand();\r\n commands.put(popd.getCommandName(), popd);\r\n ShellCommand listd = new ListdCommand();\r\n commands.put(listd.getCommandName(), listd);\r\n ShellCommand dropd = new DropdCommand();\r\n commands.put(dropd.getCommandName(), dropd);\r\n ShellCommand rmtree = new RmtreeCommand();\r\n commands.put(rmtree.getCommandName(), rmtree);\r\n ShellCommand cptree = new CptreeCommand();\r\n commands.put(cptree.getCommandName(), cptree);\r\n ShellCommand massrename = new MassrenameCommand();\r\n commands.put(massrename.getCommandName(), massrename);\r\n }",
"private void registerCommands() {\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.HOME.toString())) {\r\n\t\t\t(new HomeCommand(this)).register();\r\n\t\t\t(new SetHomeCommand(this)).register();\r\n\t\t\t(new DelHomeCommand(this)).register();\r\n\t\t\t(new ListHomesCommand(this)).register();\r\n\t\t\t(new NearbyHomesCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.BACK.toString())) {\r\n\t\t\t(new Back(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.TPASK.toString())) {\r\n\t\t\t(new TeleportToggle(this)).register();\r\n\t\t\t(new TpAsk(this)).register();\r\n\t\t\t(new TpAskHere(this)).register();\r\n\t\t\t(new TeleportAccept(this)).register();\r\n\t\t\t(new TeleportDeny(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.TELEPORT.toString())) {\r\n\t\t\t(new Teleport(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.SPEED_SETTING.toString())) {\r\n\t\t\t(new SpeedCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.FLY.toString())) {\r\n\t\t\t(new FlyCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.GAMEMODE.toString())) {\r\n\t\t\tGameModeCommand gmc = new GameModeCommand(this);\r\n\t\t\tPlayerLoader loader = new PlayerLoader(true, false, false, false);\r\n\t\t\tGameModeLoader gml = new GameModeLoader(true);\r\n\t\t\tgmc.setLoader(gml);\r\n\t\t\tgml.setLoader(loader);\r\n\t\t\tgmc.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.PLAYER_CMD.toString())) {\r\n\t\t\t// create command and player loader\r\n\t\t\tPlayerCommand pc = new PlayerCommand();\r\n\t\t\tPlayerLoader playerLoader = new PlayerLoader(true, false, false, false);\r\n\t\t\t\r\n\t\t\t// create components\r\n\t\t\tFeedComponent fc = new FeedComponent();\r\n\t\t\tfc.setLoader(playerLoader);\r\n\t\t\tStarveComponent sc = new StarveComponent();\r\n\t\t\tsc.setLoader(playerLoader);\r\n\t\t\tHealComponent hc = new HealComponent();\r\n\t\t\thc.setLoader(playerLoader);\r\n\t\t\tKillComponent kc = new KillComponent();\r\n\t\t\tkc.setLoader(playerLoader);\r\n\t\t\tBurnComponent bc = new BurnComponent();\r\n\t\t\tbc.setLoader(playerLoader);\r\n\t\t\tExtinguishComponent ec = new ExtinguishComponent();\r\n\t\t\tec.setLoader(playerLoader);\r\n\t\t\tLightningComponent lc = new LightningComponent();\r\n\t\t\tlc.setLoader(playerLoader);\r\n\t\t\tLightningEffectComponent lec = new LightningEffectComponent();\r\n\t\t\tlec.setLoader(playerLoader);\r\n\t\t\t\r\n\t\t\tPlayerLoader gcLoader = new PlayerLoader(false, false, false, false);\r\n\t\t\tBinaryLoader ooc = new BinaryLoader(true, BinaryLoader.BINARY.ENABLE_DISABLE);\r\n\t\t\tooc.setLoader(gcLoader);\r\n\t\t\t\r\n\t\t\tInvincibleComponent gc = new InvincibleComponent();\r\n\t\t\tgc.setLoader(ooc);\r\n\t\t\t\r\n\t\t\t// add components\r\n\t\t\tpc.addComponent(\"feed\", fc);\r\n\t\t\tpc.addComponent(\"starve\", sc);\r\n\t\t\tpc.addComponent(\"heal\", hc);\r\n\t\t\tpc.addComponent(\"invincible\", gc);\r\n\t\t\tpc.addComponent(\"kill\", kc);\r\n\t\t\tpc.addComponent(\"burn\", bc);\r\n\t\t\tpc.addComponent(\"extinguish\", ec);\r\n\t\t\tpc.addComponent(\"lightning\", lc);\r\n\t\t\tpc.addComponent(\"lightningeffect\", lec);\r\n\t\t\t\r\n\t\t\t// register command\r\n\t\t\tpc.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.HAT.toString())) {\r\n\t\t\t// /hat command\r\n\t\t\t(new HatCommand()).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.WORKBENCH_ENDERCHEST.toString())) {\r\n\t\t\t// /enderchest and /workbench commands\r\n\t\t\tWorkbenchCommand wb = new WorkbenchCommand();\r\n\t\t\twb.setPermission(\"karanteenials.inventory.workbench\");\r\n\t\t\twb.register();\r\n\t\t\t\r\n\t\t\tEnderChestCommand ec = new EnderChestCommand();\r\n\t\t\tec.setPermission(\"karanteenials.inventory.enderchest\");\r\n\t\t\tec.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.CLEAR_INVENTORY.toString())) {\r\n\t\t\tClearInventoryCommand cic = new ClearInventoryCommand();\r\n\t\t\tPlayerLoader pl = new PlayerLoader(true, false, false, false);\r\n\t\t\tMaterialLoader ml = new MaterialLoader(true, false, false);\r\n\t\t\tpl.setLoader(ml);\r\n\t\t\tcic.setLoader(pl);\r\n\t\t\tpl.setPermission(\"karanteenials.inventory.clear-multiple\");\r\n\t\t\tcic.setPermission(\"karanteenials.inventory.clear\");\r\n\t\t\tcic.register();\r\n\t\t}\r\n\t\t\r\n\t\t// /nick command\r\n\t\t/*if(getSettings().getBoolean(KEY_PREFIX+KEYS.NICK.toString())) {\r\n\t\t\tNickCommand nc = new NickCommand();\r\n\t\t\tnc.register();\r\n\t\t}*/\r\n\t\t\r\n\t\t\r\n\t\t// /enchant command\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.ENCHANT_COMMAND.toString())) {\r\n\t\t\tEnchantCommand ec = new EnchantCommand();\r\n\t\t\t\r\n\t\t\tGiveEnchantmentComponent gec = new GiveEnchantmentComponent();\r\n\t\t\tgec.setPermission(\"karanteenials.enchant.set\");\r\n\t\t\t\r\n\t\t\tRemoveEnchantmentComponent rec = new RemoveEnchantmentComponent();\r\n\t\t\trec.setPermission(\"karanteenials.enchant.remove\");\r\n\t\t\t\r\n\t\t\tec.addComponent(\"give\", gec);\r\n\t\t\tec.addComponent(\"remove\", rec);\r\n\t\t\t\r\n\t\t\tEnchantmentLoader giveEnchLoader = new EnchantmentLoader();\r\n\t\t\tgec.setLoader(giveEnchLoader);\r\n\t\t\t\r\n\t\t\tEnchantmentLoader removeEnchLoader = new EnchantmentLoader();\r\n\t\t\trec.setLoader(removeEnchLoader);\r\n\t\t\t\r\n\t\t\tLevelLoader ll = new LevelLoader();\r\n\t\t\tgiveEnchLoader.setLoader(ll);\r\n\t\t\t\r\n\t\t\tec.register();\r\n\t\t}\r\n\t\t\r\n\t\t// /rtp command\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.RANDOM_TELEPORT.toString())) {\r\n\t\t\tRandomTeleport rtp = new RandomTeleport();\r\n\t\t\tPlayerLoader pl = new PlayerLoader(true, false, true, false);\r\n\t\t\trtp.setLoader(pl);\r\n\t\t\trtp.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.NEAR_COMMAND.toString())) {\r\n\t\t\tNearCommand nc = new NearCommand();\r\n\t\t\tnc.setPermission(\"karanteenials.near\");\r\n\t\t\tnc.register();\r\n\t\t}\r\n\t}",
"public CommandManager() {}",
"protected void initializeCommands() {\n\t\t\r\n\t\tcommands.add(injector.getInstance(Keys.inputQuestionCommand));\r\n\t\tcommands.add(injector.getInstance(Keys.backCommand));\r\n\t\tcommands.add(injector.getInstance(Keys.helpCommand));\r\n\t\tcommands.add(injector.getInstance(Keys.quitCommand));\r\n\t}",
"public CommandsFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"public void registerCommands() {\n commands = new LinkedHashMap<String,Command>();\n \n /*\n * admin commands\n */\n //file util cmds\n register(ReloadCommand.class);\n register(SaveCommand.class);\n \n //shrine cmds\n register(KarmaGetCommand.class);\n register(KarmaSetCommand.class); \n }",
"private void registerCommands() {\n CommandSpec showBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.show\")\r\n .description(Text.of(\"Show how many Banpoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsShow.class)).build();\r\n\r\n CommandSpec addBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.add\")\r\n .description(Text.of(\"Add a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsAdd.class)).build();\r\n\r\n CommandSpec removeBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.remove\")\r\n .description(Text.of(\"Remove a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsRemove.class)).build();\r\n\r\n CommandSpec banpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints\")\r\n .description(Text.of(\"Show the Banpoints help menu\")).arguments(GenericArguments.none())\r\n .child(showBanpoints, \"show\").child(addBanpoints, \"add\").child(removeBanpoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, banpoints, \"banpoints\", \"bp\");\r\n\r\n CommandSpec showMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.show\")\r\n .description(Text.of(\"Show how many Mutepoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsShow.class)).build();\r\n\r\n CommandSpec addMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsAdd.class)).build();\r\n\r\n CommandSpec removeMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsRemove.class)).build();\r\n\r\n CommandSpec mutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints\")\r\n .description(Text.of(\"Show the Mutepoints help menu\")).arguments(GenericArguments.none())\r\n .child(showMutepoints, \"show\").child(addMutepoints, \"add\").child(removeMutepoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, mutepoints, \"mutepoints\", \"mp\");\r\n\r\n CommandSpec playerInfo = CommandSpec.builder().permission(\"dtpunishment.playerinfo\")\r\n .description(Text.of(\"Show your info \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.optionalWeak(GenericArguments.requiringPermission(\r\n GenericArguments.user(Text.of(\"player\")), \"dtpunishment.playerinfo.others\"))))\r\n .executor(childInjector.getInstance(CommandPlayerInfo.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, playerInfo, \"pinfo\", \"playerinfo\");\r\n\r\n CommandSpec addWord = CommandSpec.builder().permission(\"dtpunishment.word.add\")\r\n .description(Text.of(\"Add a word to the list of banned ones \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.string(Text.of(\"word\"))))\r\n .executor(childInjector.getInstance(CommandWordAdd.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, addWord, \"addword\");\r\n\r\n CommandSpec unmute = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Unmute a player immediately (removing all mutepoints)\"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandUnmute.class)).build();\r\n\r\n CommandSpec reloadConfig = CommandSpec.builder().permission(\"dtpunishment.admin.reload\")\r\n .description(Text.of(\"Reload configuration from disk\"))\r\n .executor(childInjector.getInstance(CommandReloadConfig.class)).build();\r\n\r\n CommandSpec adminCmd = CommandSpec.builder().permission(\"dtpunishment.admin\")\r\n .description(Text.of(\"Admin commands for DTPunishment\")).child(reloadConfig, \"reload\")\r\n .child(unmute, \"unmute\").build();\r\n\r\n Sponge.getCommandManager().register(this, adminCmd, \"dtp\", \"dtpunish\");\r\n }",
"private void registerCommands(){\n getCommand(\"mineregion\").setExecutor(new MineRegionCommand());\n getCommand(\"cellblock\").setExecutor(new CellBlockCommand());\n getCommand(\"cell\").setExecutor(new CellCommand());\n getCommand(\"prisonblock\").setExecutor(new PrisonBlockCommand());\n getCommand(\"rankup\").setExecutor(new RankUpCommand());\n getCommand(\"portal\").setExecutor(new PortalCommand());\n }",
"public void deleteCommands() {\n\t\tcommands = new ArrayList<Command>();\n\t\tassert(commands.size() == 0);\n\t}",
"private CommandBrocker() {}",
"private void registerCommands() {\n }",
"public Command() {\r\n\t\t// If default, use a local one.\r\n\t\tmYCommandRegistry = LocalCommandRegistry.getGlobalRegistryStatic();\r\n\t}",
"private Command() {\n initFields();\n }",
"@Override\n public Cli<C> build() {\n ParserMetadata<C> parserConfig = this.parserBuilder.build();\n\n CommandMetadata defaultCommandMetadata = null;\n List<CommandMetadata> allCommands = new ArrayList<CommandMetadata>();\n if (defaultCommand != null) {\n defaultCommandMetadata = MetadataLoader.loadCommand(defaultCommand, baseHelpSections, parserConfig);\n }\n\n List<CommandMetadata> defaultCommandGroup = defaultCommandGroupCommands != null\n ? MetadataLoader.loadCommands(defaultCommandGroupCommands, baseHelpSections, parserConfig)\n : new ArrayList<CommandMetadata>();\n\n allCommands.addAll(defaultCommandGroup);\n if (defaultCommandMetadata != null)\n allCommands.add(defaultCommandMetadata);\n\n // Build groups\n List<CommandGroupMetadata> commandGroups;\n if (groups != null) {\n commandGroups = new ArrayList<CommandGroupMetadata>();\n for (GroupBuilder<C> groupBuilder : groups.values()) {\n commandGroups.add(groupBuilder.build());\n }\n } else {\n commandGroups = new ArrayList<>();\n }\n\n // Find all commands registered in groups and sub-groups, we use this to\n // check this is a valid CLI with at least 1 command\n for (CommandGroupMetadata group : commandGroups) {\n allCommands.addAll(group.getCommands());\n if (group.getDefaultCommand() != null)\n allCommands.add(group.getDefaultCommand());\n\n // Make sure to scan sub-groups\n Queue<CommandGroupMetadata> subGroups = new LinkedList<CommandGroupMetadata>();\n subGroups.addAll(group.getSubGroups());\n while (!subGroups.isEmpty()) {\n CommandGroupMetadata subGroup = subGroups.poll();\n allCommands.addAll(subGroup.getCommands());\n if (subGroup.getDefaultCommand() != null)\n allCommands.add(subGroup.getDefaultCommand());\n subGroups.addAll(subGroup.getSubGroups());\n }\n }\n\n // add commands to groups based on the value of groups in the @Command\n // annotations\n // rather than change the entire way metadata is loaded, I figured just\n // post-processing was an easier, yet uglier, way to go\n MetadataLoader.loadCommandsIntoGroupsByAnnotation(allCommands, commandGroups, defaultCommandGroup,\n baseHelpSections, parserConfig);\n\n // Build restrictions\n // Use defaults if none specified\n if (restrictions.size() == 0)\n withDefaultRestrictions();\n\n if (allCommands.size() == 0)\n throw new IllegalArgumentException(\"Must specify at least one command to create a CLI\");\n\n // Build metadata objects\n GlobalMetadata<C> metadata = MetadataLoader.<C> loadGlobal(name, description, defaultCommandMetadata,\n ListUtils.unmodifiableList(defaultCommandGroup), ListUtils.unmodifiableList(commandGroups),\n ListUtils.unmodifiableList(restrictions), Collections.unmodifiableCollection(baseHelpSections.values()),\n parserConfig);\n\n return new Cli<C>(metadata);\n }",
"public CommandHandler() {\r\n\t\tcommands.put(\"userinfo\", new UserInfoCommand());\r\n\t\tcommands.put(\"verify\", new VerifyCommand());\r\n\t\tcommands.put(\"ping\", new PingCommand());\r\n\t\tcommands.put(\"rapsheet\", new RapsheetCommand());\r\n\t\tcommands.put(\"bet\", new BetCommand());\r\n\t\tcommands.put(\"buttons\", new ButtonCommand());\r\n\r\n\t\t// for each command in commands\r\n\t\t// call getAlternativeName and assign to that key\r\n\t\tcommands.keySet().stream().forEach(key -> {\r\n\t\t\tList<String> alts = commands.get(key).getAlternativeNames();\r\n\t\t\tif (alts != null)\r\n\t\t\t\talts.forEach(a -> commandAlternative.put(a, key));\r\n\t\t});\r\n\t}",
"public CreateUserCommand() {\n userReceiver = new UserReceiver();\n roleReceiver = new RoleReceiver();\n next = new GetRolesCommand();\n result = new CommandResult();\n }",
"public void initDefaultCommand() {\n \n }",
"private ConsoleCommand[] registerCommands(){\r\n\t\tHelpCommand help = new HelpCommand(this.application, \"Help\", \"?\");\r\n\t\t\r\n\t\tConsoleCommand[] commands = {\r\n\t\t\t\tnew WebServicesCommand(this.application, \"WebService\"),\r\n\t\t\t\tnew ScannerCommand(this.application, \"Scanner\"),\r\n\t\t\t\tnew ShowConfigCommand(this.application, \"System.Config\", \"Config\"),\r\n\t\t\t\tnew ShowStatsCommand(this.application, \"System.Stats\", \"Stats\"),\r\n\t\t\t\tnew ShutdownCommand(this.application, \"System.Shutdown\", \"Exit\", \"Shutdown\"),\r\n\t\t\t\tnew DisableUserCommand(this.application, \"User.Disable\"),\r\n\t\t\t\tnew EnableUserCommand(this.application, \"User.Enable\"),\r\n\t\t\t\tnew ListUsersCommand(this.application, \"User.List\"),\r\n\t\t\t\tnew SetPasswordCommand(this.application, \"User.SetPassword\"),\r\n\t\t\t\tnew UnlockUserCommand(this.application, \"User.Unlock\"),\r\n\t\t\t\tnew AddUserCommand(this.application, \"User.Add\"),\r\n\t\t\t\tnew ShowEventsCommand(this.application, \"ShowEvents\"),\r\n\t\t\t\tnew TaskListCommand(this.application, \"Task.List\"),\r\n\t\t\t\tnew TaskStopCommand(this.application, \"Task.Stop\"),\r\n\t\t\t\tnew EventLogLastCommand(this.application, \"EventLog.Last\"),\r\n\t\t\t\tnew EventLogViewCommand(this.application, \"EventLog.View\"),\r\n\t\t\t\thelp\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\tdefaultCommand = help;\r\n\t\thelp.setCommands(commands);\r\n\t\t\r\n\t\treturn commands;\r\n\t}",
"public void initDefaultCommand() {\n\t}",
"@StartStep(localName=\"command-engineering\", after={\"config\"})\n public static void startCommandEngineering(LifecycleContext context) \n {\n // for each class that is a Catalog or Command, create an entry for those in the context.\n ClassScanner classScanner = new ClassScanner(context);\n classScanner.scan();\n }",
"public CommandFactory() {\n command = new HashMap<>();\n command.put(\"GET/login\", new EmptyCommand());\n command.put(\"POST/login\", new LoginCommand());\n command.put(\"GET/admin\", new ForwardToProfileCommand(Pages.ADMIN_PATH, Pages.USER_PATH));\n command.put(\"GET/user\", new ForwardToProfileCommand(Pages.ADMIN_PATH, Pages.USER_PATH));\n command.put(\"GET/profile\", new ForwardToProfileCommand(Pages.ADMIN_PATH, Pages.USER_PATH));\n command.put(\"POST/ban\", new BanUserCommand());\n command.put(\"POST/changelang\", new ChangeLanguageCommand());\n command.put(\"POST/unban\", new UnbanUserCommand());\n command.put(\"POST/add\", new AddPublicationCommand());\n command.put(\"POST/delete\", new DeletePublicationCommand());\n command.put(\"GET/main\", new ForwardToMainCommand());\n command.put(\"GET/controller/error\", new ForwardToErrorCommand());\n command.put(\"GET/logout\", new LogoutCommand());\n command.put(\"POST/subscribe\", new SubscribeCommand());\n command.put(\"POST/unsubscribe\", new UnsubscribeCommand());\n command.put(\"POST/changename\", new ChangeNameCommand());\n command.put(\"POST/changepassword\", new ChangePasswordCommand());\n command.put(\"POST/adminchangename\", new SetUserNameCommand());\n command.put(\"POST/changebalance\", new SetUserBalanceCommand());\n command.put(\"POST/changepublicationprice\", new SetPublicationPriceCommand());\n command.put(\"POST/changepublicationname\", new SetPublicationNameCommand());\n command.put(\"POST/changepublicationtype\", new SetPublicationTypeCommand());\n command.put(\"GET/admin/publications\", new ForwardToProfileCommand(Pages.PUBLICATIONS_PATH, Pages.USER_PATH));\n command.put(\"GET/user/payments\", new ForwardToProfileCommand(Pages.ADMIN_PATH, Pages.PAYMENTS_PATH));\n command.put(\"GET/admin/users\", new ForwardToProfileCommand(Pages.USERS_PATH, Pages.USERS_PATH));\n command.put(\"POST/login/restore\", new RestorePasswordCommand());\n\n }",
"public Command createInstance() {\n\t\t\n\t\tif(name == \"Direction\")\n\t\t\treturn new Direction();\n\t\t\n\t\tif(name == \"Gear\")\n\t\t\treturn new Gear();\n\t\t\n\t\tif(name == \"Pause\")\n\t\t\treturn new Pause();\n\t\t\n\t\treturn null;\n\t\t\n\t}",
"public RemoteControl() {\n onCommands = new ArrayList<Command>(7); // concrete command.Command registers itself with the invoker\n offCommands = new ArrayList<Command>(7);\n\n Command noCommand = new NoCommand(); //Good programming practice to create dummy objects like this\n for (int i = 0;i < 7;i++) {\n onCommands.add(noCommand);\n }\n\n //Initialize the off command objects\n for (int i = 0;i < 7;i++) {\n offCommands.add(noCommand);\n }\n\n undoCommand = noCommand;\n }",
"private void registerCommands() {\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecurtick\")\n\t\t\t\t\t\t.then(argument(\"Number of Ticks Between Sends\", integer())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.timeBetween = getInteger(c, \"Number of Ticks Between Sends\");\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message will be sent every \" + getInteger(c, \"Number of Ticks Between Sends\") + \" ticks.\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//arrecurphrase [Recurring Phrase]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecurphrase\")\n\t\t\t\t\t\t.then(argument(\"Recurring Phrase\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.persistentPhrase = getString(c, \"Recurring Phrase\");\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message set to \\\"\" + getString(c, \"Recurring Phrase\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//arrecurtoggle\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecurtoggle\")\n\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\tconfig.persistentChat = !config.persistentChat;\n\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message has been turned \" + (config.persistentChat ? \"on\" : \"off\") + \".\"), false);\n\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t})\n\t\t));\n\t\t//arrecur [Enabled?]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecur\")\n\t\t\t\t\t\t.then(argument(\"Enabled?\", bool())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.persistentChat = getBool(c, \"Enabled?\");\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message set to \\\"\" + (config.persistentChat ? \"on\" : \"off\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//aradditem [Item Name] [Trigger Term]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddterm\")\n\t\t\t\t\t\t.then(argument(\"Item Name\", string())\n\t\t\t\t\t\t\t\t.then(argument(\"Trigger Term\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.terms.add(getString(c, \"Trigger Term\") + \"|\" + getString(c, \"Item Name\"));\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tHelper.setupChatMessages();\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added term \\\"\" + getString(c, \"Trigger Term\") + \"\\\" to item \\\"\" + getString(c, \"Item Name\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t})))\n\t\t));\n\t\t//araddin [In Phrase]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddin\")\n\t\t\t\t\t\t.then(argument(\"In Phrase\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.ins.add(getString(c, \"In Phrase\"));\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added in-phrase \\\"\" + getString(c, \"In Phrase\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//araddout [Out Phrase]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddout\")\n\t\t\t\t\t\t.then(argument(\"Out Phrase\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.outs.add(getString(c, \"Out Phrase\"));\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added out-phrase \\\"\" + getString(c, \"Out Phrase\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//arreload\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arreload\")\n\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\tarreload();\n\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"AutoReply config reloaded.\"), false);\n\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t})\n\t\t));\n\t\t//araddshopitem [Item Name] [Quantity] [Price]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddshopitem\")\n\t\t\t\t\t\t.then(argument(\"Item Name\", string()).then(argument(\"Quantity\", string()).then(argument(\"Price\", string())\n\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\tconfig.shopItems.add(getString(c, \"Item Name\") + \"|\" + getString(c, \"Quantity\") + \"|$\" + getString(c, \"Price\"));\n\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added \" + getString(c, \"Item Name\") + \" to shop stock.\"), false);\n\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t}))))\n\t\t));\n\t}",
"public GameGenerator() {\r\n\t\tthis.actionsCommand = new ArrayList<ICommand>();\r\n\t\tthis.invokerCommands = new ArrayList<InvokerCommand>();\r\n\t}",
"protected void initDefaultCommand() {\n \t\t\n \t}",
"private void initializeAvailableCommandMap() {\n availableCommandMap = new HashMap<String, Command>();\n availableCommandMap.put(\"cd\", new CdCommand());\n availableCommandMap.put(\"ls\", new LsCommand());\n availableCommandMap.put(\"mkdir\", new MkdirCommand());\n availableCommandMap.put(\"upload\", new UploadCommand());\n availableCommandMap.put(\"download\", new DownloadCommand());\n availableCommandMap.put(\"exit\", new ExitCommand());\n }",
"public void initDefaultCommand() {\n \n }",
"@PostConstruct\n public void init() {\n String[] commandPathPatterns = new String[]{\"classpath*:/commands/**\",\n \"classpath*:/crash/commands/**\"};\n\n // Patterns to use to look for configurations.\n String[] configPathPatterns = new String[]{\"classpath*:/crash/*\"};\n\n // Comma-separated list of commands to disable.\n String[] disabledCommands = new String[]{\"jpa*\", \"jdbc*\", \"jndi*\"};\n\n // Comma-separated list of plugins to disable. Certain plugins are disabled by default\n // based on the environment.\n String[] disabledPlugins = new String[0];\n\n FS commandFileSystem = createFileSystem(\n commandPathPatterns,\n disabledCommands);\n FS configurationFileSystem = createFileSystem(\n configPathPatterns, new String[0]);\n\n PluginDiscovery discovery = new BeanFactoryFilteringPluginDiscovery(\n this.resourceLoader.getClassLoader(), this.beanFactory,\n disabledPlugins);\n\n PluginContext context = new PluginContext(discovery,\n createPluginContextAttributes(), commandFileSystem,\n configurationFileSystem, this.resourceLoader.getClassLoader());\n\n context.refresh();\n start(context);\n }",
"private CommandFactory( ThreadGroup mainThreadGroup ) {\n this.mainThreadGroup = mainThreadGroup;\n \n map = new HashMap<String, String>();\n\n map.put( \"LS\", \"org.ajstark.LinuxShell.Command.LsCommand\" );\n map.put( \"GREP\", \"org.ajstark.LinuxShell.Command.GrepCommand\" );\n map.put( \"PWD\", \"org.ajstark.LinuxShell.Command.PwdCommand\" );\n map.put( \"CD\", \"org.ajstark.LinuxShell.Command.CdCommand\" );\n map.put( \"ENV_VAR\", \"org.ajstark.LinuxShell.Command.SetEnvVarCommand\" );\n map.put( \"ENV\", \"org.ajstark.LinuxShell.Command.EnvCommand\" );\n map.put( \"HISTORY\", \"org.ajstark.LinuxShell.Command.HistoryCommand\" );\n }",
"@Override\n public Command build() {\n switch (CommandType.fromString(commandName.getEscapedAndStrippedValue())) {\n case ASSIGN:\n return new AssignmentCommand(commandArgs);\n case CAT:\n return new CatCommand(commandArgs);\n case ECHO:\n return new EchoCommand(commandArgs);\n case WC:\n return new WcCommand(commandArgs);\n case PWD:\n return new PwdCommand(commandArgs);\n case GREP:\n return new GrepCommand(commandArgs);\n case EXIT:\n return new ExitCommand(commandArgs);\n default:\n return new OtherCommand(commandName, commandArgs);\n }\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void run() {\n\n for (IDrawShape copiedShape : shapeList.getClipBoard() ) {\n newShape = copiedShape;\n //offset the shape, per Prof instructions\n newShape.addX(100);\n newShape.addY(100);\n\n CreateShapeCommand shape = new CreateShapeCommand(appState, shapeList, newShape.getShapeInfo());\n\n shapeList.add(shape.shapeFactory.createShape(newShape.getShapeInfo()));\n\n }\n CommandHistory.add(this);\n }",
"void reset() {\n synchronized (instances) {\n instances.clear();\n }\n }",
"Command createCommand();",
"private void clearPreviousInstances() {\n DiscardedCards.clearInstance();\n Fireworks.clearInstance();\n History.clearInstance();\n SelectedSymbol.clearInstance();\n Tokens.clearInstance();\n HanabiCards.initDeck();\n }",
"@Override\n\tprotected void onInitialAgentsCreation() {\n\t\tSystem.out.println(\"Création drones\");\n\t\tDrone drone = null;\n\t\tDroneBuilder droneBuilder;\n\t\tfor (int i = 0; i < INITIAL_DRONE_COUNT; i++) {\n\t\t\tdrone = new Drone(this, getEnvironment().getRandom().nextInt(World.WIDTH), getEnvironment().getRandom().nextInt(World.HEIGHT));\n\t\t\tdroneBuilder = new DroneBuilder();\n\t\t\tdroneBuilder.setDrone(drone);\n\t\t\tdroneBuilder.buildBehaviorStates();\n\t\t\tdroneBuilder.buildAgentPhase();\n\t\t}\n\t}",
"@Override\n\tpublic void run() {\n\t\tshape = factory.createShape(config);\n\t\tthis.list.add(shape);\n\t\tCommandHistory.add(this);\n\n\t}",
"public AbstractCommand()\n {\n this.logger = new ConsoleLogger();\n }",
"private void cleanUpRunningProcessInstances() {\n List<ProcessInstance> runningInstances = processEngine.getRuntimeService().createProcessInstanceQuery().processDefinitionKey(PROCESS_DEFINITION_KEY).list();\n runningInstances.addAll(processEngine.getRuntimeService().createProcessInstanceQuery().processDefinitionKey(INCIDENT_PROCESS_DEFINITION).list());\n for (ProcessInstance processInstance : runningInstances) {\n processEngine.getRuntimeService().deleteProcessInstance(processInstance.getId(), \"deleted to have a clean environment for Arquillian\");\n }\n }",
"public void initDefaultCommand() \n {\n }",
"public void initDefaultCommand() {\n\t\t// Don't do anything\n }",
"private void commandLoop() {\n\t\twhile (true) {\n\t\t\tString s = getString();\n\t\t\tString sl = s.toLowerCase();\n\t\t\tif (sl.startsWith(\"load\") || sl.startsWith(\"save\")) {\n\t\t\t\ts = s.replace(\"\\\"\", \" \").trim();\n\t\t\t}\n\t\t\tString[] split = s.split(\" \");\n\t\t\tif (sl.equals(\"list\")) {\n\t\t\t\tputString(store.toString());\n\t\t\t} else if (sl.equals(\"new\")) {\n\t\t\t\tstore.clear();\n\t\t\t} else if (sl.equals(\"cls\")) {\n\t\t\t\tcls();\n\t\t\t} else if (sl.equals(\"dir\")) {\n\t\t\t\tdir();\n\t\t\t} else if (sl.equals(\"run\")) {\n\t\t\t\tif (runner != null) {\n\t\t\t\t\trunner.dispose();\n\t\t\t\t}\n\t\t\t\trunner = new Runner(store.toArray(), this);\n\t\t\t\trunner.synchronousStart();\n\t\t\t} else if (split[0].toLowerCase().equals(\"save\")) {\n\t\t\t\tString msg = store.save(split[1]);\n\t\t\t\tputString(msg);\n\t\t\t} else if (split[0].toLowerCase().equals(\"load\")) {\n\t\t\t\tString msg = store.load(split[1]);\n\t\t\t\tputString(msg);\n\t\t\t} else {\n\t\t\t\tif (!store.insert(s)) {\n\t\t\t\t\tif (runner == null) {\n\t\t\t\t\t\trunner = new Runner(new String[] {}, this);\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\trunner.executeDirectCommand(s);\n\t\t\t\t\t} catch (Throwable t) {\n\t\t\t\t\t\tputString(\"?ERROR\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public abstract List<ICMakeBuildCommand> createCommands(String moduleName);",
"public void initDefaultCommand()\n {\n }",
"CommandHandler() {\n registerArgument(new ChallengeCmd());\n registerArgument(new CreateCmd());\n }",
"private void createAllGames() {\n\t\t// Create a melee game for each melee arena\n\t\tmeleeArenaManager.loadArenas();\n\t\tmeleeArenaManager.getArenas().forEach(meleeArena -> {\n\t\t\tMeleeGame game = new MeleeGame(meleeArena);\n\t\t\tmeleeGameManager.addGame(meleeArena.getName(), game, new PerMapLegacyLobby(game, PlayerProfile::restore, Melee.MELEE_CHAT_PREFIX));\n\t\t});\n\t\t\n\t\t// Create a rabbit game for each rabbit arena\n\t\trabbitArenaManager.loadArenas();\n\t\trabbitArenaManager.getArenas().forEach(rabbitArena -> {\n\t\t\tRabbitGame game = new RabbitGame(rabbitArena);\n\t\t\trabbitGameManager.addGame(rabbitArena.getName(), game, new PerMapLegacyLobby(game, PlayerProfile::restore, Melee.RABBIT_CHAT_PREFIX));\n\t\t});\n\t\t\n\t\t// Log out what games were created\n\t\tString meleeGamesList = meleeGameManager.getGamesList().stream()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .map(game -> game.getArena().getName())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .collect(Collectors.joining(\", \"));\n\t\tgetLogger().info(\"Created Melee Games for arenas : \" + meleeGamesList);\n\n\t\tString rabbitGamesList = rabbitGameManager.getGamesList().stream()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .map(game -> game.getArena().getName())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .collect(Collectors.joining(\", \"));\n\t\tgetLogger().info(\"Created Rabbit Games for arenas : \" + rabbitGamesList);\n\t}",
"public cmdAutoDrop() {\n addSequential(new cmdAutoDrive());\n addSequential(new cmdAutoHopper());\n addParallel(new cmdAutoHopDrive());\n addSequential(new cmdAutoBack());\n addSequential(new cmdAutoTurn());\n }",
"private ArrayList<Command> fillRoot() {\n var rootList = new ArrayList<Command>();\n while(!commands.isEmpty()) {\n rootList.add(getCommandTree());\n }\n return rootList;\n }",
"public void initDefaultCommand()\n\t{\n\t}",
"public void init() {\r\n reservedCommands.add(\"!addCom\");\r\n reservedCommands.add(\"!editCom\");\r\n reservedCommands.add(\"!delCom\");\r\n reservedCommands.add(\"!commands\");\r\n reservedCommands.add(\"!command\");\r\n reservedCommands.add(\"!utility\");\r\n reservedCommands.add(\"!music\");\r\n reservedCommands.add(\"!queue\");\r\n reservedCommands.add(\"!join\");\r\n reservedCommands.add(\"!leave\");\r\n reservedCommands.add(\"!getPlayers\");\r\n reservedCommands.add(\"!createPoll\");\r\n reservedCommands.add(\"!vote\");\r\n reservedCommands.add(\"!closePoll\");\r\n reservedCommands.add(\"!closeGiveaway\");\r\n reservedCommands.add(\"!raffle\");\r\n reservedCommands.add(\"!winner\");\r\n reservedCommands.add(\"!permit\");\r\n reservedCommands.add(\"!spam\");\r\n reservedCommands.add(\"!addQuote\");\r\n reservedCommands.add(\"!quoting\");\r\n reservedCommands.add(\"!removeQuote\");\r\n reservedCommands.add(\"!displayQuote\");\r\n reservedCommands.add(\"!quotes\");\r\n }",
"@Override\n public StartupCommand[] initialize() {\n return null;\n }",
"public Commands(final Main main) {\r\n this.main = main;\r\n main.getCommand(\"fly\").setExecutor(this);\r\n }",
"private void initBoard() {\n initCommands();\n setBackground(Color.BLACK);\n setPreferredSize(new Dimension((int) (W * Application.scale), (int) (H * Application.scale)));\n\n commandClasses.forEach((cmdstr) -> {\n try {\n Object obj = Class.forName(cmdstr).getDeclaredConstructor().newInstance();\n Command cmd = (Command) obj;\n connectCommand(cmd);\n System.out.println(\"Loaded \" + cmdstr);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n });\n\n Particle.heatmap.addColor(0, Color.GREEN);\n Particle.heatmap.addColor(50, Color.YELLOW);\n Particle.heatmap.addColor(100, Color.RED);\n\n Particle.slopemap.addColor(-5, Color.RED);\n Particle.slopemap.addColor(0, Color.WHITE);\n Particle.slopemap.addColor(5, Color.GREEN);\n\n setFocusable(true);\n }",
"@SuppressWarnings(\"deprecation\")\n public void createAll(boolean clean) {\n if (clean) {\n plugin.getLogger().info(\"[AdvancementAPI] Cleaning previously generated advancements\");\n for (Advancement advancement : this.advancements.values()) {\n if (Bukkit.getAdvancement(advancement.getKey()) != null) {\n Bukkit.getUnsafe().removeAdvancement(advancement.getKey());\n }\n }\n\n Bukkit.reloadData();\n }\n\n plugin.getLogger().info(\"[AdvancementAPI] Generating advancements\");\n for (Advancement advancement : this.advancements.values()) {\n if (Bukkit.getAdvancement(advancement.getKey()) == null) {\n Bukkit.getUnsafe().loadAdvancement(advancement.getKey(), serializer.serialize(advancement));\n }\n }\n\n Bukkit.reloadData();\n }",
"public ConfigureRobot()\n {\n Scheduler.getInstance().removeAll(); //remove all running commands\n addSequential(new BrakeOpen(),2);\n addSequential(new WaitCommand(1));\n addSequential(new LiftToBottom(),3);\n }",
"private void startSkeletons() {\n if (this.skeletons_started) return;\n\n this.add_registration_api();\n this.registration_skeleton.start();\n this.add_service_api();\n this.service_skeleton.start();\n\n this.skeletons_started = true;\n }",
"private void processCommands() {\n while (!commandQueue.isEmpty()) {\n var msg = commandQueue.remove();\n treatCommand.parseCommand(msg);\n }\n }",
"@Override\n\tpublic void onEnable() {\n\n\t\tinstance = this;\n\n\t\tCommon.registerCommands(\n\t\t\t\tnew CommandHat(),\n\t\t\t\tnew CommandFly(),\n\t\t\t\tnew CommandFeed(),\n\t\t\t\tnew CommandHeal(),\n\t\t\t\tnew CommandClearInv(),\n\t\t\t\tnew CommandBroadcast(),\n\t\t\t\tnew CommandHome(),\n\t\t\t\tnew CommandSetHome(),\n\t\t\t\tnew CommandRC(),\n\t\t\t\tnew CommandBackpack()\n\t\t\t\t);\n\n\t\tCommon.registerEvents(this, \n\t\t\t\tnew JoinLeaveListener(),\n\t\t\t\tnew PlayerChatListener(),\n\t\t\t\tnew BackpackListener()\n\t\t\t\t);\n\n\t\t//adding custom recipes\n\t\tCustomRecipes.addCustomRecipes();\n\t\t\n\t\tloadConfigManager();\n\n\t\tCommon.log(\"Initialized RoyalCommands. [Version \" + this.getDescription().getVersion() + \"]\");\n\t}",
"@Override\n public void initDefaultCommand() {\n\n }",
"private DockerCommand<?> createCommand(Class<? extends DockerCommand<?>> commandType) {\n try {\n return commandType.newInstance();\n } catch (InstantiationException | IllegalAccessException e) {\n throw new BeanCreationException(\"Failed to create Docker command of type: \" + commandType, e);\n }\n }",
"@SuppressWarnings(\"unused\")\n\tprivate AbstractCommand() {\n\t\t//\n\t}",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }"
] | [
"0.6137826",
"0.59099066",
"0.58219683",
"0.5816233",
"0.5808622",
"0.58037955",
"0.5801001",
"0.57824844",
"0.56956005",
"0.5687288",
"0.55543804",
"0.5518106",
"0.55137604",
"0.5508719",
"0.5487973",
"0.54734397",
"0.547063",
"0.5452398",
"0.54339355",
"0.5407089",
"0.5359614",
"0.53111416",
"0.5269349",
"0.520659",
"0.5198982",
"0.5191407",
"0.5185175",
"0.5175982",
"0.517496",
"0.51532763",
"0.514577",
"0.51417756",
"0.5134205",
"0.51319194",
"0.5130252",
"0.51269495",
"0.5124098",
"0.5123646",
"0.5119438",
"0.51082915",
"0.51082915",
"0.51082915",
"0.51082915",
"0.51082915",
"0.51082915",
"0.51082915",
"0.51082915",
"0.51082915",
"0.51082915",
"0.51082915",
"0.51082915",
"0.51082915",
"0.51082915",
"0.51082915",
"0.51082915",
"0.51082915",
"0.51082915",
"0.51082915",
"0.51082915",
"0.51082915",
"0.51082915",
"0.51082915",
"0.51082915",
"0.51082915",
"0.50924486",
"0.50923854",
"0.50852484",
"0.5081888",
"0.50810415",
"0.5065544",
"0.50587356",
"0.50537515",
"0.50457567",
"0.50440305",
"0.50306547",
"0.5024708",
"0.5022691",
"0.50207657",
"0.50157934",
"0.50149626",
"0.5007034",
"0.49984413",
"0.4990927",
"0.49904218",
"0.4984282",
"0.49753118",
"0.49719426",
"0.49571076",
"0.49552137",
"0.49451718",
"0.4939663",
"0.49294055",
"0.4927771",
"0.49117234",
"0.49040186",
"0.49040186",
"0.49040186",
"0.49040186",
"0.49040186",
"0.49040186"
] | 0.66181403 | 0 |
and csmi_id is null | public M csmiIdNull(){if(this.get("csmiIdNot")==null)this.put("csmiIdNot", "");this.put("csmiId", null);return this;} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public M csseIdNull(){if(this.get(\"csseIdNot\")==null)this.put(\"csseIdNot\", \"\");this.put(\"csseId\", null);return this;}",
"public M csolIdNull(){if(this.get(\"csolIdNot\")==null)this.put(\"csolIdNot\", \"\");this.put(\"csolId\", null);return this;}",
"public M csrtIdNull(){if(this.get(\"csrtIdNot\")==null)this.put(\"csrtIdNot\", \"\");this.put(\"csrtId\", null);return this;}",
"public M csmiMemberIdNull(){if(this.get(\"csmiMemberIdNot\")==null)this.put(\"csmiMemberIdNot\", \"\");this.put(\"csmiMemberId\", null);return this;}",
"public M csmiContactNull(){if(this.get(\"csmiContactNot\")==null)this.put(\"csmiContactNot\", \"\");this.put(\"csmiContact\", null);return this;}",
"public M csolMemberNull(){if(this.get(\"csolMemberNot\")==null)this.put(\"csolMemberNot\", \"\");this.put(\"csolMember\", null);return this;}",
"public M csmiAddressNull(){if(this.get(\"csmiAddressNot\")==null)this.put(\"csmiAddressNot\", \"\");this.put(\"csmiAddress\", null);return this;}",
"public M csmiStatusNull(){if(this.get(\"csmiStatusNot\")==null)this.put(\"csmiStatusNot\", \"\");this.put(\"csmiStatus\", null);return this;}",
"public M csmiPersonNull(){if(this.get(\"csmiPersonNot\")==null)this.put(\"csmiPersonNot\", \"\");this.put(\"csmiPerson\", null);return this;}",
"public boolean isNotNullMcc() {\n return genClient.cacheValueIsNotNull(CacheKey.mcc);\n }",
"public M csolFromNull(){if(this.get(\"csolFromNot\")==null)this.put(\"csolFromNot\", \"\");this.put(\"csolFrom\", null);return this;}",
"boolean getXAxisCharacteristicIdNull();",
"public M csmiNameNull(){if(this.get(\"csmiNameNot\")==null)this.put(\"csmiNameNot\", \"\");this.put(\"csmiName\", null);return this;}",
"boolean getValueCharacteristicIdNull();",
"public M csrtIsIncomeNull(){if(this.get(\"csrtIsIncomeNot\")==null)this.put(\"csrtIsIncomeNot\", \"\");this.put(\"csrtIsIncome\", null);return this;}",
"public M cssePersonNull(){if(this.get(\"cssePersonNot\")==null)this.put(\"cssePersonNot\", \"\");this.put(\"cssePerson\", null);return this;}",
"public M csmiHostNull(){if(this.get(\"csmiHostNot\")==null)this.put(\"csmiHostNot\", \"\");this.put(\"csmiHost\", null);return this;}",
"boolean getCampaignIdNull();",
"public M csrtCanInvoiceNull(){if(this.get(\"csrtCanInvoiceNot\")==null)this.put(\"csrtCanInvoiceNot\", \"\");this.put(\"csrtCanInvoice\", null);return this;}",
"boolean getNodeCharacteristicIdNull();",
"public M csmiDriverNumNull(){if(this.get(\"csmiDriverNumNot\")==null)this.put(\"csmiDriverNumNot\", \"\");this.put(\"csmiDriverNum\", null);return this;}",
"public M csolSrcNull(){if(this.get(\"csolSrcNot\")==null)this.put(\"csolSrcNot\", \"\");this.put(\"csolSrc\", null);return this;}",
"public M csmiRelationNull(){if(this.get(\"csmiRelationNot\")==null)this.put(\"csmiRelationNot\", \"\");this.put(\"csmiRelation\", null);return this;}",
"public M csseStartNull(){if(this.get(\"csseStartNot\")==null)this.put(\"csseStartNot\", \"\");this.put(\"csseStart\", null);return this;}",
"public M csmiNationNull(){if(this.get(\"csmiNationNot\")==null)this.put(\"csmiNationNot\", \"\");this.put(\"csmiNation\", null);return this;}",
"public M csmiOnCertifyImageNull(){if(this.get(\"csmiOnCertifyImageNot\")==null)this.put(\"csmiOnCertifyImageNot\", \"\");this.put(\"csmiOnCertifyImage\", null);return this;}",
"public M csmiCompanyNull(){if(this.get(\"csmiCompanyNot\")==null)this.put(\"csmiCompanyNot\", \"\");this.put(\"csmiCompany\", null);return this;}",
"public M csolRemarkNull(){if(this.get(\"csolRemarkNot\")==null)this.put(\"csolRemarkNot\", \"\");this.put(\"csolRemark\", null);return this;}",
"public M csseStatusNull(){if(this.get(\"csseStatusNot\")==null)this.put(\"csseStatusNot\", \"\");this.put(\"csseStatus\", null);return this;}",
"public M csmiQqNull(){if(this.get(\"csmiQqNot\")==null)this.put(\"csmiQqNot\", \"\");this.put(\"csmiQq\", null);return this;}",
"public M csmiCertifyNumNull(){if(this.get(\"csmiCertifyNumNot\")==null)this.put(\"csmiCertifyNumNot\", \"\");this.put(\"csmiCertifyNum\", null);return this;}",
"public void setIccid(String iccid) {\r\n this.iccid = iccid == null ? null : iccid.trim();\r\n }",
"public M csseAddressNull(){if(this.get(\"csseAddressNot\")==null)this.put(\"csseAddressNot\", \"\");this.put(\"csseAddress\", null);return this;}",
"public M csmiDriverImageNull(){if(this.get(\"csmiDriverImageNot\")==null)this.put(\"csmiDriverImageNot\", \"\");this.put(\"csmiDriverImage\", null);return this;}",
"public M csmiCheckPhotoNull(){if(this.get(\"csmiCheckPhotoNot\")==null)this.put(\"csmiCheckPhotoNot\", \"\");this.put(\"csmiCheckPhoto\", null);return this;}",
"public M cssePostionNull(){if(this.get(\"cssePostionNot\")==null)this.put(\"cssePostionNot\", \"\");this.put(\"cssePostion\", null);return this;}",
"public M csmiCertifyImageNull(){if(this.get(\"csmiCertifyImageNot\")==null)this.put(\"csmiCertifyImageNot\", \"\");this.put(\"csmiCertifyImage\", null);return this;}",
"boolean getSearchNodeCharacteristicIdsNull();",
"public M csseSubjectNull(){if(this.get(\"csseSubjectNot\")==null)this.put(\"csseSubjectNot\", \"\");this.put(\"csseSubject\", null);return this;}",
"public M csseTypeNull(){if(this.get(\"csseTypeNot\")==null)this.put(\"csseTypeNot\", \"\");this.put(\"csseType\", null);return this;}",
"public M csseRemarkNull(){if(this.get(\"csseRemarkNot\")==null)this.put(\"csseRemarkNot\", \"\");this.put(\"csseRemark\", null);return this;}",
"public M csmiCertifyTypeNull(){if(this.get(\"csmiCertifyTypeNot\")==null)this.put(\"csmiCertifyTypeNot\", \"\");this.put(\"csmiCertifyType\", null);return this;}",
"boolean getUnitIdNull();",
"public M csseBattleNull(){if(this.get(\"csseBattleNot\")==null)this.put(\"csseBattleNot\", \"\");this.put(\"csseBattle\", null);return this;}",
"public M csseHostNull(){if(this.get(\"csseHostNot\")==null)this.put(\"csseHostNot\", \"\");this.put(\"csseHost\", null);return this;}",
"@Override\n\tpublic String checkAccount(int idc) {\n\t\treturn null;\n\t}",
"public boolean isNotNullMid() {\n return genClient.cacheValueIsNotNull(CacheKey.mid);\n }",
"boolean getActiveNull();",
"public boolean hasC() {\n return c_ != null;\n }",
"boolean isNilID();",
"public boolean isNull()\n\t{\n\t\treturn cp.isNull();\n\t}",
"boolean getPersonCharacteristicIdsNull();",
"public boolean isIdPermisosNull()\r\n\t{\r\n\t\treturn idPermisosNull;\r\n\t}",
"boolean getYAxisCharacteristicIdNull();",
"boolean isNullOmittable();",
"public boolean getValueCharacteristicIdNull() {\n return valueCharacteristicIdNull_;\n }",
"private boolean checkNotCanceledReservation(int id) throws SQLException {\n\t\tcheckNotCanceledReservationStatement.clearParameters();\n\t\tcheckNotCanceledReservationStatement.setInt(1, id);\n\t\tcheckNotCanceledReservationStatement.setString(2, this.username);\n\t\tResultSet result = checkNotCanceledReservationStatement.executeQuery();\n\t\tresult.next();\n\t\tboolean out = result.getInt(1) == 1;\n\t\tif (DEBUG) {\n\t\t\tSystem.out.println(\"checkNotCanceledReservation: \"+result.getInt(1)+\"\\n\");\n\t\t}\n\t\tresult.close();\n\t\treturn out;\n\t}",
"public M csseFinishNull(){if(this.get(\"csseFinishNot\")==null)this.put(\"csseFinishNot\", \"\");this.put(\"csseFinish\", null);return this;}",
"public M csmiSexNull(){if(this.get(\"csmiSexNot\")==null)this.put(\"csmiSexNot\", \"\");this.put(\"csmiSex\", null);return this;}",
"public M csseDescNull(){if(this.get(\"csseDescNot\")==null)this.put(\"csseDescNot\", \"\");this.put(\"csseDesc\", null);return this;}",
"public boolean getSearchNodeCharacteristicIdsNull() {\n return searchNodeCharacteristicIdsNull_;\n }",
"public M csmiPlaceNull(){if(this.get(\"csmiPlaceNot\")==null)this.put(\"csmiPlaceNot\", \"\");this.put(\"csmiPlace\", null);return this;}",
"private Optional<Long> idAnyNonExistingCpMenuItem(CwSession cwSession){\n List<Long> sessionCpMenuItemIds = getCpMenuItemIds(cwSession);\n List<Long> existingCpMenuItemIds =\n cpMenuItemRepository.findByIdIn(sessionCpMenuItemIds)\n .stream().map(CpMenuItem::getId)\n .collect(Collectors.toList());\n sessionCpMenuItemIds.removeAll(existingCpMenuItemIds);// Remove all items that exist in the database\n if (sessionCpMenuItemIds.size()>0){\n return Optional.of(sessionCpMenuItemIds.get(0)); //Return first id of CpMenuItem which is never saved to the database.\n }\n return Optional.empty();\n }",
"public boolean isSetCustID() {\n return this.CustID != null;\n }",
"public boolean getSearchNodeCharacteristicIdsNull() {\n return searchNodeCharacteristicIdsNull_;\n }",
"public M csmiUpdateTimeNull(){if(this.get(\"csmiUpdateTimeNot\")==null)this.put(\"csmiUpdateTimeNot\", \"\");this.put(\"csmiUpdateTime\", null);return this;}",
"private boolean isEmpty( int r, int c ) {\n\treturn matrix[r][c] == null;\n }",
"public boolean getValueCharacteristicIdNull() {\n return valueCharacteristicIdNull_;\n }",
"public static Object getIccid() {\n\t\treturn null;\n\t}",
"public boolean isNullInstance()\n {\n return code == null;\n }",
"public boolean getXAxisCharacteristicIdNull() {\n return xAxisCharacteristicIdNull_;\n }",
"public M csrtSubjectNull(){if(this.get(\"csrtSubjectNot\")==null)this.put(\"csrtSubjectNot\", \"\");this.put(\"csrtSubject\", null);return this;}",
"public boolean isIdubicacionfiscalNull()\r\n\t{\r\n\t\treturn idubicacionfiscalNull;\r\n\t}",
"public void setIdPermisosNull(boolean idPermisosNull)\r\n\t{\r\n\t\tthis.idPermisosNull = idPermisosNull;\r\n\t}",
"private boolean allCardsAreNull(ArrayList<Card> set) {\r\n\t\tfor (Card c : set) {\r\n\t\t\tif (c != null) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public boolean isNull(){\n return false;\n }",
"@Override\n public boolean isNull(){\n return (this.nativeHandle == 0L); \n }",
"public M csrtStatusNull(){if(this.get(\"csrtStatusNot\")==null)this.put(\"csrtStatusNot\", \"\");this.put(\"csrtStatus\", null);return this;}",
"boolean isSetSOID();",
"public boolean getXAxisCharacteristicIdNull() {\n return xAxisCharacteristicIdNull_;\n }",
"public boolean isNotNullFrontendMid() {\n return genClient.cacheValueIsNotNull(CacheKey.frontendMid);\n }",
"public M csmiIdMin(Object min){this.put(\"csmiIdMin\", min);return this;}",
"public M csolOrderNull(){if(this.get(\"csolOrderNot\")==null)this.put(\"csolOrderNot\", \"\");this.put(\"csolOrder\", null);return this;}",
"boolean isNilPoolId();",
"boolean getOrderPersonIdNull();",
"public static void setIccid(Object iccid) {\n\t\t\n\t}",
"boolean isSetCit();",
"public boolean isSetCnsCidadao() {\n return this.cnsCidadao != null;\n }",
"boolean isNull();",
"boolean hasBusinessCircleId();",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Crisis)) {\n return false;\n }\n Crisis other = (Crisis) object;\n if ((this.crisisID == null && other.crisisID != null) || (this.crisisID != null && !this.crisisID.equals(other.crisisID))) {\n return false;\n }\n return true;\n }",
"boolean getForumIdNull();",
"public boolean getNodeCharacteristicIdNull() {\n return nodeCharacteristicIdNull_;\n }",
"public boolean getCampaignIdNull() {\n return campaignIdNull_;\n }",
"public boolean isNotNullTid() {\n return genClient.cacheValueIsNotNull(CacheKey.tid);\n }",
"public M csseUpdateTimeNull(){if(this.get(\"csseUpdateTimeNot\")==null)this.put(\"csseUpdateTimeNot\", \"\");this.put(\"csseUpdateTime\", null);return this;}",
"public M csmiAddTimeNull(){if(this.get(\"csmiAddTimeNot\")==null)this.put(\"csmiAddTimeNot\", \"\");this.put(\"csmiAddTime\", null);return this;}",
"@Override\n\tpublic List<Cours> listOfNonAssignedCours() {\n\t\tQuery q = em.createQuery(\"FROM Cours c where c.enseignant IS EMPTY\");\n\t\treturn q.getResultList();\n\t}",
"boolean hasResMineID();",
"public Builder setValueCharacteristicIdNull(boolean value) {\n \n valueCharacteristicIdNull_ = value;\n onChanged();\n return this;\n }"
] | [
"0.66739976",
"0.6580075",
"0.6241554",
"0.6037802",
"0.5799854",
"0.57558376",
"0.5672569",
"0.567075",
"0.56480277",
"0.56344384",
"0.5609455",
"0.55842155",
"0.55221367",
"0.55126834",
"0.547773",
"0.54745674",
"0.5449424",
"0.5397471",
"0.5377783",
"0.5361192",
"0.5344455",
"0.5338748",
"0.5337145",
"0.53228426",
"0.53226674",
"0.53087497",
"0.53056496",
"0.52816194",
"0.52775097",
"0.5265406",
"0.52576864",
"0.5225575",
"0.52213806",
"0.52183515",
"0.52159935",
"0.5181669",
"0.5171952",
"0.5138404",
"0.51166546",
"0.51059705",
"0.5053326",
"0.505197",
"0.5037014",
"0.5017819",
"0.5009792",
"0.49918503",
"0.49881816",
"0.49780944",
"0.4976892",
"0.49721128",
"0.4968643",
"0.4959315",
"0.4949774",
"0.4923648",
"0.49130395",
"0.48980486",
"0.4893715",
"0.48781982",
"0.48568028",
"0.48559383",
"0.48549584",
"0.4850753",
"0.48484975",
"0.4833788",
"0.4833104",
"0.48294884",
"0.48286515",
"0.48284057",
"0.4827869",
"0.48136115",
"0.48113024",
"0.48082316",
"0.48015946",
"0.48013517",
"0.4792011",
"0.47785532",
"0.47690105",
"0.47638804",
"0.47597465",
"0.4744971",
"0.47352508",
"0.4733484",
"0.47221953",
"0.4712357",
"0.469714",
"0.46962005",
"0.469427",
"0.469327",
"0.46862453",
"0.46847504",
"0.46766526",
"0.46711746",
"0.46696383",
"0.46621382",
"0.46520317",
"0.4638731",
"0.463494",
"0.4630886",
"0.46246386",
"0.46192908"
] | 0.70402765 | 0 |
and csmi_id >= ? | public M csmiIdMin(Object min){this.put("csmiIdMin", min);return this;} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic int queryCurrentIdbyStudentId(int sid) {\n\t\tSystem.out.println(\"curredt id\");\n\t\treturn leaseDAO.findCurrentIdbyStudentId(sid);\n\t}",
"HrMscChaAssig selectByPrimaryKey(Date day, Integer hour, String mscid);",
"public Criteria andIdLessThanOrEqualToColumn(TCpyBankCredit.Column column) {\n addCriterion(new StringBuilder(\"id <= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"MnMscQos selectByPrimaryKey(Integer month, String mscid, Integer year);",
"BaseCountract selectByPrimaryKey(Integer cId);",
"HrHBscCpuQos selectByPrimaryKey(String bscid, Date day, Integer hour);",
"public M csmiMemberIdMin(Object min){this.put(\"csmiMemberIdMin\", min);return this;}",
"public ResultSet appcomp(Long comp_id)throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from company where comp_id=\"+comp_id+\"\");\r\n\treturn rs;\r\n}",
"public ResultSet Cmus(Long comp_id) throws SQLException {\n\tjava.util.Date d=new java.util.Date();\r\n\tSimpleDateFormat sd=new SimpleDateFormat(\"dd-MMM-yy\");\r\n\tString sdate=sd.format(d);\r\n\tSystem.out.println(comp_id);\r\n\t//String sql=\"select c.compname,s.shareprice,s.no_share from company c,share_details s where c.comp_id=s.comp_id and c.comp_id=\"+comp_id+\" and s.DATEOFTRANS='\"+sdate+\"'\";\r\n\t//System.out.println(sql);\r\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname,s.shareprice,s.no_share from company c,share_details s where c.comp_id=s.comp_id and c.comp_id=\"+comp_id+\" and s.DATEOFTRANS='\"+sdate+\"'\");\r\n\treturn rs;\r\n}",
"private int queryfromCP() {\n\t\tString[] projection = { Databse_for_CP.COLUMN_VAL };\n\t\tString selection = Databse_for_CP.COLUMN_KEY+\"=\" + \"'\" +seqList.get(i).toString()+\"'\";\n\t\tCursor new_cursor = Content_Provider.query_dump(\n\t\t\t\tContent_Provider.cp_uri, projection, selection,\n\t\t\t\tnull, null);\n\t\tLog.d(\"key is :\", \"\" + seqList.get(i).toString());\n\t\t\n\t\tString cursret=\"\";\n\t\tif (new_cursor != null && new_cursor.getCount() != 0) {\n\t\t\twhile (new_cursor.moveToNext()) {\n\t\t\t\t\n\t\t\t\tcursret += new_cursor.getString(new_cursor\n\t\t\t\t\t\t.getColumnIndexOrThrow(Databse_for_CP.COLUMN_VAL));\n\t\t\t\t\n\t\t\t}\n\t\t\tif(new_cursor.getCount()>0){\n\t\t\t\treturn 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treturn -1;\n\t\t\t\t} \n\t\t} else {\n\t\t\tif(Content_Provider.returnC.isEmpty()){\n\t\t\t\tLog.d(\"data not found\", \"\");\n\t\t\t\treturn -1;\n\t\t\t}else if (Content_Provider.returnC.contains(messageList.get(i).toString())) {\n\t\t\t\treturn 1;\n\t\t\t} else {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\t\n\t\t\t\n\n\t\t\t\n\t\t}\n\t}",
"public Criteria andIdLessThanColumn(TCpyBankCredit.Column column) {\n addCriterion(new StringBuilder(\"id < \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"List<ResultsView2> findByCnoBetween(int min,int max);",
"CGcontractCredit selectByPrimaryKey(Integer id);",
"Course selectByPrimaryKey(Integer cid);",
"public Criteria andIdLessThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"id <= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"List<CustomerOrderBroadbandASID> selectCustomerOrderBroadbandASID(CustomerOrderBroadbandASID cobasid);",
"public DyMscMgwSccp selectByPrimaryKey(Date day, String mscid) {\r\n DyMscMgwSccp key = new DyMscMgwSccp();\r\n key.setDay(day);\r\n key.setMscid(mscid);\r\n DyMscMgwSccp record = (DyMscMgwSccp) getSqlMapClientTemplate().queryForObject(\"DY_MSC_MGW_SCCP.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }",
"int insertSelective(CGcontractCredit record);",
"public ResultSet Rebroker11(Long idd)throws SQLException {\n\tLong brid=null;\r\n\tResultSet rss=DbConnect.getStatement().executeQuery(\"select cd.broker_id from from login l,CUSTOMER c,CUSTOMER_DETAILS cd where l.login_id=c.login_id and c.user_id=cd.user_id and l.login_id=\"+idd+\"\");\r\n\tif(rss.next())\r\n\t{\r\n\t\tbrid=rss.getLong(1);\r\n\t}\r\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker where broker_id=\"+brid+\"\");\r\n\treturn rs;\r\n}",
"public ResultSet Editbroker(Long broker_id) throws SQLException {\n\t\r\nSystem.out.println(\"edit broker\");\r\n\trs=DbConnect.getStatement().executeQuery(\"select * from broker where broker_id=\"+broker_id+\" \");\r\n\treturn rs;\r\n}",
"ChannelAli selectByPrimaryKey(Integer id);",
"TbInvCategory selectByPrimaryKey(TbInvCategoryKey key);",
"public Criteria andIdGreaterThanOrEqualToColumn(TCpyBankCredit.Column column) {\n addCriterion(new StringBuilder(\"id >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"private boolean checkNotCanceledReservation(int id) throws SQLException {\n\t\tcheckNotCanceledReservationStatement.clearParameters();\n\t\tcheckNotCanceledReservationStatement.setInt(1, id);\n\t\tcheckNotCanceledReservationStatement.setString(2, this.username);\n\t\tResultSet result = checkNotCanceledReservationStatement.executeQuery();\n\t\tresult.next();\n\t\tboolean out = result.getInt(1) == 1;\n\t\tif (DEBUG) {\n\t\t\tSystem.out.println(\"checkNotCanceledReservation: \"+result.getInt(1)+\"\\n\");\n\t\t}\n\t\tresult.close();\n\t\treturn out;\n\t}",
"public ResultSet Custmr(Long Userid) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from customer c,customer_details cd where c.user_id=cd.user_id and c.user_id=\"+Userid+\" \");\r\n\treturn rs;\r\n\t\r\n}",
"PcQualificationInfo selectByPrimaryKey(Integer zid);",
"public void searchCustomerReservations(Connection connection, int CID) throws SQLException {\n\n ResultSet rs = null;\n String sql = \"SELECT res_num FROM Reservation WHERE c_ID = ?\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setCID(CID);\n pStmt.setInt(1, getCID());\n\n try {\n\n System.out.printf(\" Reservations for C_ID (%d):\\n\", getCID());\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while (rs.next()) {\n System.out.println(\"Reservation number: \" + rs.getInt(1));\n }\n }\n catch (SQLException e) { e.printStackTrace(); }\n finally {\n pStmt.close();\n if(rs != null) { rs.close(); }\n }\n }",
"public void getSelectedGame(int bin){\r\n try{\r\n c = DbConnect.getConnection();\r\n pstmt = c.prepareStatement(\"Select serial FROM tickets WHERE Bin = ?\");\r\n pstmt.setInt(1,bin);\r\n rs = pstmt.executeQuery();\r\n rs.next();\r\n }catch (Exception e) { e.printStackTrace(); }\r\n}",
"int updateByPrimaryKeySelective(CGcontractCredit record);",
"public ResultSet getCustomerInfo(int cid) throws IllegalStateException{\n\t \n if(!isLoggedIn())\n throw new IllegalStateException(\"MUST BE LOGGED IN FIRST!\");\n try{\n \t stmt = con.createStatement();\n String queryString = \"Select * FROM CUSTOMER where\"\n \t\t+ \" id= '\" + cid +\"'\";\n result = stmt.executeQuery(queryString);\n } \n catch (Exception E) {\n \t E.printStackTrace();\n }\n return result;\n\t}",
"Caiwu selectByPrimaryKey(Integer id);",
"public ResultSet Brus(Long broker_id) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from broker where broker_id=\"+broker_id+\" \");\r\n\treturn rs;\r\n\t\r\n}",
"FctWorkguide selectByPrimaryKey(Long autoid);",
"public Criteria andIdGreaterThanColumn(TCpyBankCredit.Column column) {\n addCriterion(new StringBuilder(\"id > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"OcCustContract selectByPrimaryKey(String contractNo);",
"CommunityInform selectByPrimaryKey(String id);",
"BnesBrowsingHis selectByPrimaryKey(BigDecimal browsingHisId) throws SQLException;",
"TSubjectInfo selectByPrimaryKey(BigDecimal subjectNo);",
"public Criteria andIdLessThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"id <= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"@Query(value = \"Select * From Seat Where row_number = ?1 and col_number = ?2 and train_train_id = ?3 \",nativeQuery=true)\n public Optional<Seat> checkSeatAvailability(int r, int c, int trainId);",
"public ResultSet edComp(String login_id)throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname,c.address,c.city,c.state,c.offno,c.faxno,c.website,c.email from login l,company c where l.login_id=c.login_id and l.login_id=\"+login_id+\"\");\r\n\treturn rs;\r\n}",
"int getMinX(Long id) throws RemoteException;",
"int updateByPrimaryKeySelective(HrHBscCpuQos record);",
"public int Approvecomp(Long id) throws SQLException {\n\tLong idd=null;\r\n\trs=DbConnect.getStatement().executeQuery(\"select login_id from company where comp_id=\"+id+\"\");\r\n\tif(rs.next())\r\n\t{\r\n\t\tidd=rs.getLong(1);\r\n\t}\r\n\tSystem.out.println(idd);\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+idd+\"\");\r\n\treturn i;\r\n\t\r\n}",
"ChronicCheck selectByPrimaryKey(Integer chroniccheckId);",
"public M csmiStatusMin(Object min){this.put(\"csmiStatusMin\", min);return this;}",
"boolean isCachedCodeCategoryCurrent(UUID id)\n throws DAOException;",
"void insertSelective(HrMscChaAssig record);",
"public void setCreditid(Integer creditid) {\n this.creditid = creditid;\n }",
"@Override\n\tpublic Localidad buscarLocalidadPorCp(Integer cp) {\n\t\treturn (Localidad)sesion.getCurrentSession().createCriteria(Localidad.class)\n\t\t\t\t.add(Restrictions.eq(\"cp\", cp))\n\t\t\t\t\n\t\t\t\t.uniqueResult();\n\t}",
"int updateByPrimaryKeySelective(HrMscChaAssig record);",
"public abstract Integer getCompteId();",
"PmKeyDbObj selectByPrimaryKey(Integer pmKeyId);",
"public static boolean containsID(int segID) {\n String sql = \"SELECT id FROM corpus1 where id= ?\";\n\n Connection conn = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n\n try {\n conn = DatabaseOperations.connect();\n pstmt = conn.prepareStatement(sql);\n\n pstmt.setInt(1, segID);\n rs = pstmt.executeQuery();\n // loop through the result set\n while (rs.next()) {\n if (segID == rs.getInt(\"id\")) {\n return true;\n }\n }\n } catch (SQLException e) {\n System.out.println(\"containsID: \" + e.getMessage());\n } finally {\n try {\n if (rs != null) {\n rs.close();\n }\n if (pstmt != null) {\n pstmt.close();\n }\n if (conn != null) {\n conn.close();\n }\n } catch (SQLException e) {\n System.out.println(\"containsID: \" + e.getMessage());\n }\n }\n return false;\n\n }",
"public MinimumCircuit getMinimumCircuit(SInt[] as, SInt m, SInt[] cs);",
"priorizedListObject find( int id ) throws DAOException;",
"public static int getCalendarTrackerIsClimb(long id, Context mContext) {\n DatabaseHelper handler = new DatabaseHelper(mContext);\n SQLiteDatabase database = handler.getWritableDatabase();\n\n //grade type\n String[] projection = {\n DatabaseContract.CalendarTrackerEntry._ID,\n DatabaseContract.CalendarTrackerEntry.COLUMN_ISCLIMB};\n String whereClause = DatabaseContract.CalendarTrackerEntry._ID + \"=?\";\n String[] whereValue = {String.valueOf(id)};\n\n Cursor cursor = database.query(DatabaseContract.CalendarTrackerEntry.TABLE_NAME,\n projection,\n whereClause,\n whereValue,\n null,\n null,\n null);\n\n int idColumnOutput = cursor.getColumnIndex(DatabaseContract.CalendarTrackerEntry.COLUMN_ISCLIMB);\n\n try {\n cursor.moveToFirst();\n return cursor.getInt(idColumnOutput);\n } finally {\n cursor.close();\n database.close();\n }\n }",
"public static ru.terralink.mvideo.sap.Orders findByPrimaryKey(java.lang.String IV_FO_TOR_ID\n ,java.lang.String IV_FU_TOR_ID)\n {\n String intervalName = null;\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n intervalName = \"Orders.findByPrimaryKey\";\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().startInterval(intervalName, com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.PersistenceRead);\n }\n try\n {\n \n \n String _selectSQL = \"SELECT x.\\\"a\\\",x.\\\"b\\\",x.\\\"c\\\",x.\\\"d\\\",x.\\\"e\\\",x.\\\"f\\\",x.\\\"g\\\",x.\\\"h\\\",x.\\\"i\\\",x.\\\"j\\\",x.\\\"l\\\",x.\\\"m\\\",x.\\\"n\\\",x.\\\"o\\\",x.\\\"p\\\",x.\\\"q\\\",x.\\\"r\\\",x.\\\"s\\\",x.\\\"t\\\",x.\\\"u\\\",x.\\\"v\\\",x.\\\"w\\\",x.\\\"x\\\",x.\\\"y\\\",x.\\\"z\\\",x.\\\"ba\\\",x.\\\"bb\\\",x.\\\"bc\\\",x.\\\"bd\\\",x.\\\"be\\\",x.\\\"bf\\\",x.\\\"bg\\\",x.\\\"bh\\\",x.\\\"bi\\\",x.\\\"bj\\\",x.\\\"bl\\\",x.\\\"bm\\\",x.\\\"pending\\\",x.\\\"_pc\\\",x.\\\"_rp\\\",x\"\n + \".\\\"_rf\\\",x.\\\"relationsFK\\\",x.\\\"bn\\\",x.\\\"_rc\\\",x.\\\"_ds\\\",x.\\\"cvpOperation_length\\\",x.\\\"cvpOperationLobs_length\\\" FROM \\\"mvideo5_1_0_orders\\\" x WHERE (((x.\\\"pending\\\" = 1 or not exists (select x_os.\\\"bn\\\" from \\\"mvideo5_1_0_orders_os\\\" x_os where x_os.\\\"bn\\\" = x.\\\"bn\\\")))) and ( x.\\\"bl\\\" = ? AND x.\\\"bm\\\" = ?)\";\n String[] ids = new String[0];\n com.sybase.reflection.DataType[] dts = new com.sybase.reflection.DataType[]{ \n com.sybase.reflection.DataType.forName(\"string\"),\n com.sybase.reflection.DataType.forName(\"string\"),\n };\n Object[] values = new Object[] { \n IV_FO_TOR_ID,\n IV_FU_TOR_ID,\n };\n Object res = DELEGATE.findWithSQL(_selectSQL, dts, values, ids, ru.terralink.mvideo.sap.Orders.class);\n return (ru.terralink.mvideo.sap.Orders)res;\n }\n finally\n {\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().stopInterval(intervalName);\n }\n }\n }",
"public Conge find( Integer idConge ) ;",
"public Zclass selectByCid(String xandc) {\n\t\tZclassExample example=new ZclassExample();\r\n\t\tcom.pdsu.stuManage.bean.ZclassExample.Criteria criteria=example.createCriteria();\r\n\t\tcriteria.andZcidEqualTo(xandc);\r\n\t\tList<Zclass>list=zclassMapper.selectByExample(example);\r\n\t\tif(list.size()!=0)\r\n\t\treturn list.get(0);\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}",
"Course selectByPrimaryKey(Integer cId);",
"int updateByPrimaryKeySelective(MnMscQos record);",
"ShopAccount selectByPrimaryKey(Integer spAccount);",
"public Criteria andIdEqualToColumn(TCpyBankCredit.Column column) {\n addCriterion(new StringBuilder(\"id = \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"Miss_control_log selectByPrimaryKey(String loginuuid);",
"@Override\r\npublic int selectByPrimaryKey(Integer possalesdetailid) {\n\t\r\n\tPossalesdetail p= possalesdetail.selectByPrimaryKey(possalesdetailid);\r\n if(p.getPossalesdetailid()>0){\r\n \t\r\n \treturn 1;\r\n } else{\r\n\t return 0;\r\n }\r\n}",
"public Criteria andCompanyIdLessThanOrEqualToColumn(TCpyBankCredit.Column column) {\n addCriterion(new StringBuilder(\"company_id <= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"public com.MyBlog.entity.Archivescommit FindByCId(int CID) {\n\t\treturn acmapper.FindByCId(CID);\n\t}",
"@Test\r\n public void testGetTcgaCenterIdFromBcrId() {\n assertEquals(new Long(6), queries.getTcgaCenterIdFromBcrId(\"02\"));\r\n\r\n getSimpleJdbcTemplate().update(\"delete from center_to_bcr_center where bcr_center_id = '02'\");\r\n //make sure the entry is not in the database\r\n assertEquals(0, (getSimpleJdbcTemplate().queryForList(\" select * from center_to_bcr_center where bcr_center_id = '02'\")).size());\r\n // Read it from cache\r\n assertEquals(new Long(6), queries.getTcgaCenterIdFromBcrId(\"02\"));\r\n }",
"public Criteria andMainIdLessThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"main_id <= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"public Criteria andIdLessThanColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"id < \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"public static Cursor query(SQLiteDatabase db, long topicId, int from, int to, int limit) {\n String sql = \"SELECT * FROM \" + TABLE_NAME +\n \" WHERE \" +\n COLUMN_NAME_TOPIC_ID + \"=\" + topicId +\n (from > 0 ? \" AND \" + COLUMN_NAME_SEQ + \">\" + from : \"\") +\n (to > 0 ? \" AND \" + COLUMN_NAME_SEQ + \"<=\" + to : \"\") +\n \" AND \" + COLUMN_NAME_STATUS + \"<=\" + BaseDb.STATUS_VISIBLE +\n \" ORDER BY \" + COLUMN_NAME_TS +\n (limit > 0 ? \" LIMIT \" + limit : \"\");\n\n // Log.d(TAG, \"Sql=[\" + sql + \"]\");\n\n return db.rawQuery(sql, null);\n }",
"public Cliente[] findWhereSincronizacionMicrosipEquals(int sincronizacionMicrosip) throws ClienteDaoException;",
"public Criteria andIdLessThanOrEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"id <= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"NjOrderWork2 selectByPrimaryKey(String id);",
"CraftAdvReq selectByPrimaryKey(Integer id);",
"public void setcId(Integer cId) {\n this.cId = cId;\n }",
"@Override\r\n\tpublic CustVO findByPrimaryKey(String cust_ID) {\n\t\tCustVO custVO = null;\r\n\t\tConnection con = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\r\n\t\ttry {\r\n\t\t\tcon = ds.getConnection();\r\n\t\t\tpstmt = con.prepareStatement(GET_ONE_STMT);\r\n\r\n\t\t\tpstmt.setString(1, cust_ID);\r\n\r\n\t\t\trs = pstmt.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustVO = new CustVO();\r\n\t\t\t\tcustVO.setCust_ID(rs.getString(\"CUST_ID\"));\r\n\t\t\t\tcustVO.setCust_acc(rs.getString(\"CUST_ACC\"));\r\n\t\t\t\tcustVO.setCust_pwd(rs.getString(\"CUST_PWD\"));\r\n\t\t\t\tcustVO.setCust_name(rs.getString(\"CUST_NAME\"));\r\n\t\t\t\tcustVO.setCust_sex(rs.getString(\"CUST_SEX\"));\r\n\t\t\t\tcustVO.setCust_tel(rs.getString(\"CUST_TEL\"));\r\n\t\t\t\tcustVO.setCust_addr(rs.getString(\"CUST_ADDR\"));\r\n\t\t\t\tcustVO.setCust_pid(rs.getString(\"CUST_PID\"));\r\n\t\t\t\tcustVO.setCust_mail(rs.getString(\"CUST_MAIL\"));\r\n\t\t\t\tcustVO.setCust_brd(rs.getDate(\"CUST_BRD\"));\r\n\t\t\t\tcustVO.setCust_reg(rs.getDate(\"CUST_REG\"));\r\n\t\t\t\tcustVO.setCust_pic(rs.getBytes(\"CUST_PIC\"));\r\n\t\t\t\tcustVO.setCust_status(rs.getString(\"CUST_STATUS\"));\r\n\t\t\t\tcustVO.setCust_niname(rs.getString(\"CUST_NINAME\"));\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException se) {\r\n\t\t\tthrow new RuntimeException(\"A database error occured. \" + se.getMessage());\r\n\t\t} finally {\r\n\t\t\tif (rs != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\trs.close();\r\n\t\t\t\t} catch (SQLException se) {\r\n\t\t\t\t\tse.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (pstmt != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tpstmt.close();\r\n\t\t\t\t} catch (SQLException se) {\r\n\t\t\t\t\tse.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (con != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcon.close();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn custVO;\r\n\t}",
"public ResultSet Apmail(Long id)throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from broker where login_id=\"+id+\"\");\r\n\treturn rs;\r\n}",
"public Criteria andIdGreaterThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"id >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"AbsractCategory searchByID(int identificaitonNumber) throws PersistenceException;",
"CE findById(ID id);",
"GICLClaimReserve getClaimReserve(Integer claimId, Integer itemNo, Integer perilCd) throws SQLException;",
"@Override\n public CerereDePrietenie update(CerereDePrietenie c ){\n String SQL = \"UPDATE cerereDePrietenie \"\n + \"SET status = ? \"\n + \"WHERE id = ?\";\n\n int affectedrows = 0;\n\n try (Connection conn = connect();\n PreparedStatement pstmt = conn.prepareStatement(SQL)) {\n\n\n pstmt.setString(1, c.getStatus());\n pstmt.setInt(2, Math.toIntExact(c.getId()));\n\n affectedrows = pstmt.executeUpdate();\n\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n }\n return c;\n\n }",
"Computer selectByPrimaryKey(Long id);",
"IrpSignInfo selectByPrimaryKey(Long signinfoid) throws SQLException;",
"private int cidPosition(int[] cids, int cid) {\n int index = -1;\n if (cids[cids.length - 1] == cid) {\n return cids.length - 1;\n }\n for (int i = 0; i < cids.length; i++) {\n if (cids[i] > cid) {\n break;\n }\n index++;\n }\n logger.info(\"Checkpoint is in position \" + index);\n return index;\n }",
"public Criteria andIdLessThanOrEqualToColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"id <= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"public Criteria andIdLessThanColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"id < \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"Procdef selectByPrimaryKey(String id);",
"public ResultSet view(Long userid) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.compname,f.no_share from company c,finalallocation f,login l,customer cu where l.login_id=cu.login_id and c.comp_id=f.comp_id and cu.user_id=f.user_id and cu.login_id=\"+userid+\"\");\r\n\treturn rs;\r\n}",
"public boolean isBeforeFirst() throws SQLException {\n/* 151 */ return (this.currentPositionInEntireResult < 0);\n/* */ }",
"public boolean checkStudentID(Student s) {\n\t\tboolean res = false;\n\t\tConnection conn = DBUtil.getConn();\n\t\tStatement stmt = DBUtil.createStmt(conn);\n\t\tString sql = \"select * from student where stu_ID=%d\";\n\t\tsql = String.format(sql, s.getID());\n\t\tSystem.out.println(sql);\n\t\tResultSet rst = DBUtil.getRs(stmt, sql);\n\t\ttry {\n\t\t\tif (rst.next()) {\n\t\t\t\tres = true;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tres = false;\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tDBUtil.closeStmt(stmt);\n\t\t\tDBUtil.closeConn(conn);\n\t\t\tDBUtil.closeRs(rst);\n\t\t}\n\t\treturn res;\n\t}",
"public ResultSet SelectUser(long userid) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select l.loginid,l.username,l.password,c.firstname,c.lastname,c.city,c.e_mail,c.phno,c.dob,c.doReg,c.pincode,c.address,cd.pancard_no,cd.bank_name,cd.branch_name,cd.bank_acc_no,cd.demat_acc_no from login l,customer c,customer_details cd\" +\r\n\t\t\t\"where l.loginid=c.loginid and c.user_id=cd.user_id and l.loginid=\"+userid+\"\");\r\n\treturn rs;\r\n}",
"@Override\n\tpublic RcuSettime selectByPrimaryKey(String rcuid) {\n\t\treturn rcuSettimeMapper.selectByPrimaryKey(rcuid);\n\t}",
"@Query(\"select m from MiniStatement m where m.custId=:custId ORDER BY m.id DESC\")\n\tList<MiniStatement> findByCustId(@Param(\"custId\") Long custId);",
"void insertSelective(HrHBscCpuQos record);",
"int insertSelective(TbInvCategory record);",
"public Card selectCardById(int cno) {\n\t\treturn this.caDao.selectCardById(cno);\n\t}",
"int updateByPrimaryKey(MnMscQos record);"
] | [
"0.54871124",
"0.5193369",
"0.5120124",
"0.5110871",
"0.5095409",
"0.503548",
"0.5004166",
"0.4892403",
"0.48791775",
"0.48775297",
"0.4864519",
"0.4809998",
"0.47736907",
"0.47485235",
"0.47477892",
"0.4739738",
"0.47340187",
"0.47312388",
"0.47236273",
"0.4717279",
"0.47062644",
"0.4693955",
"0.46831268",
"0.46678677",
"0.46565482",
"0.46562472",
"0.46365595",
"0.4619726",
"0.460831",
"0.46038646",
"0.4596031",
"0.4591498",
"0.45872486",
"0.45841524",
"0.45841298",
"0.4579474",
"0.45786634",
"0.4576449",
"0.45739678",
"0.4559415",
"0.45516038",
"0.45494503",
"0.45465186",
"0.45430362",
"0.45339265",
"0.45214102",
"0.4520966",
"0.45208427",
"0.45017484",
"0.44989216",
"0.44955975",
"0.44950262",
"0.44933665",
"0.44905373",
"0.448206",
"0.44636476",
"0.44635928",
"0.44576234",
"0.4456916",
"0.44509563",
"0.44375274",
"0.44372028",
"0.4432223",
"0.44318956",
"0.44312176",
"0.44308332",
"0.44275564",
"0.44207722",
"0.44163874",
"0.44138184",
"0.44044733",
"0.43927622",
"0.43898982",
"0.4386107",
"0.4379362",
"0.4374377",
"0.4371416",
"0.43687466",
"0.43684742",
"0.436759",
"0.4365607",
"0.43655115",
"0.436286",
"0.43622997",
"0.43593088",
"0.43591633",
"0.43582103",
"0.4353357",
"0.43490824",
"0.43432948",
"0.43376747",
"0.43369696",
"0.43342474",
"0.4333377",
"0.43318275",
"0.4331616",
"0.43302",
"0.43296808",
"0.43261167",
"0.4326027"
] | 0.5403601 | 1 |
and csmi_id <= ? | public M csmiIdMax(Object max){this.put("csmiIdMax", max);return this;} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic int queryCurrentIdbyStudentId(int sid) {\n\t\tSystem.out.println(\"curredt id\");\n\t\treturn leaseDAO.findCurrentIdbyStudentId(sid);\n\t}",
"public M csmiIdMin(Object min){this.put(\"csmiIdMin\", min);return this;}",
"MnMscQos selectByPrimaryKey(Integer month, String mscid, Integer year);",
"public ResultSet Rebroker11(Long idd)throws SQLException {\n\tLong brid=null;\r\n\tResultSet rss=DbConnect.getStatement().executeQuery(\"select cd.broker_id from from login l,CUSTOMER c,CUSTOMER_DETAILS cd where l.login_id=c.login_id and c.user_id=cd.user_id and l.login_id=\"+idd+\"\");\r\n\tif(rss.next())\r\n\t{\r\n\t\tbrid=rss.getLong(1);\r\n\t}\r\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker where broker_id=\"+brid+\"\");\r\n\treturn rs;\r\n}",
"HrMscChaAssig selectByPrimaryKey(Date day, Integer hour, String mscid);",
"public ResultSet appcomp(Long comp_id)throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from company where comp_id=\"+comp_id+\"\");\r\n\treturn rs;\r\n}",
"public Criteria andIdLessThanOrEqualToColumn(TCpyBankCredit.Column column) {\n addCriterion(new StringBuilder(\"id <= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"public ResultSet Editbroker(Long broker_id) throws SQLException {\n\t\r\nSystem.out.println(\"edit broker\");\r\n\trs=DbConnect.getStatement().executeQuery(\"select * from broker where broker_id=\"+broker_id+\" \");\r\n\treturn rs;\r\n}",
"public ResultSet Cmus(Long comp_id) throws SQLException {\n\tjava.util.Date d=new java.util.Date();\r\n\tSimpleDateFormat sd=new SimpleDateFormat(\"dd-MMM-yy\");\r\n\tString sdate=sd.format(d);\r\n\tSystem.out.println(comp_id);\r\n\t//String sql=\"select c.compname,s.shareprice,s.no_share from company c,share_details s where c.comp_id=s.comp_id and c.comp_id=\"+comp_id+\" and s.DATEOFTRANS='\"+sdate+\"'\";\r\n\t//System.out.println(sql);\r\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname,s.shareprice,s.no_share from company c,share_details s where c.comp_id=s.comp_id and c.comp_id=\"+comp_id+\" and s.DATEOFTRANS='\"+sdate+\"'\");\r\n\treturn rs;\r\n}",
"public M csmiMemberIdMin(Object min){this.put(\"csmiMemberIdMin\", min);return this;}",
"List<ResultsView2> findByCnoBetween(int min,int max);",
"BaseCountract selectByPrimaryKey(Integer cId);",
"private int queryfromCP() {\n\t\tString[] projection = { Databse_for_CP.COLUMN_VAL };\n\t\tString selection = Databse_for_CP.COLUMN_KEY+\"=\" + \"'\" +seqList.get(i).toString()+\"'\";\n\t\tCursor new_cursor = Content_Provider.query_dump(\n\t\t\t\tContent_Provider.cp_uri, projection, selection,\n\t\t\t\tnull, null);\n\t\tLog.d(\"key is :\", \"\" + seqList.get(i).toString());\n\t\t\n\t\tString cursret=\"\";\n\t\tif (new_cursor != null && new_cursor.getCount() != 0) {\n\t\t\twhile (new_cursor.moveToNext()) {\n\t\t\t\t\n\t\t\t\tcursret += new_cursor.getString(new_cursor\n\t\t\t\t\t\t.getColumnIndexOrThrow(Databse_for_CP.COLUMN_VAL));\n\t\t\t\t\n\t\t\t}\n\t\t\tif(new_cursor.getCount()>0){\n\t\t\t\treturn 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treturn -1;\n\t\t\t\t} \n\t\t} else {\n\t\t\tif(Content_Provider.returnC.isEmpty()){\n\t\t\t\tLog.d(\"data not found\", \"\");\n\t\t\t\treturn -1;\n\t\t\t}else if (Content_Provider.returnC.contains(messageList.get(i).toString())) {\n\t\t\t\treturn 1;\n\t\t\t} else {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\t\n\t\t\t\n\n\t\t\t\n\t\t}\n\t}",
"public int Approvecomp(Long id) throws SQLException {\n\tLong idd=null;\r\n\trs=DbConnect.getStatement().executeQuery(\"select login_id from company where comp_id=\"+id+\"\");\r\n\tif(rs.next())\r\n\t{\r\n\t\tidd=rs.getLong(1);\r\n\t}\r\n\tSystem.out.println(idd);\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+idd+\"\");\r\n\treturn i;\r\n\t\r\n}",
"HrHBscCpuQos selectByPrimaryKey(String bscid, Date day, Integer hour);",
"public ResultSet Custmr(Long Userid) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from customer c,customer_details cd where c.user_id=cd.user_id and c.user_id=\"+Userid+\" \");\r\n\treturn rs;\r\n\t\r\n}",
"public DyMscMgwSccp selectByPrimaryKey(Date day, String mscid) {\r\n DyMscMgwSccp key = new DyMscMgwSccp();\r\n key.setDay(day);\r\n key.setMscid(mscid);\r\n DyMscMgwSccp record = (DyMscMgwSccp) getSqlMapClientTemplate().queryForObject(\"DY_MSC_MGW_SCCP.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }",
"List<CustomerOrderBroadbandASID> selectCustomerOrderBroadbandASID(CustomerOrderBroadbandASID cobasid);",
"public void setCreditid(Integer creditid) {\n this.creditid = creditid;\n }",
"public M csmiIdNull(){if(this.get(\"csmiIdNot\")==null)this.put(\"csmiIdNot\", \"\");this.put(\"csmiId\", null);return this;}",
"int updateByPrimaryKeySelective(CGcontractCredit record);",
"public ResultSet edComp(String login_id)throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.comp_id,c.compname,c.address,c.city,c.state,c.offno,c.faxno,c.website,c.email from login l,company c where l.login_id=c.login_id and l.login_id=\"+login_id+\"\");\r\n\treturn rs;\r\n}",
"public ResultSet Brus(Long broker_id) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from broker where broker_id=\"+broker_id+\" \");\r\n\treturn rs;\r\n\t\r\n}",
"Course selectByPrimaryKey(Integer cid);",
"public MinimumCircuit getMinimumCircuit(SInt[] as, SInt m, SInt[] cs);",
"private boolean checkNotCanceledReservation(int id) throws SQLException {\n\t\tcheckNotCanceledReservationStatement.clearParameters();\n\t\tcheckNotCanceledReservationStatement.setInt(1, id);\n\t\tcheckNotCanceledReservationStatement.setString(2, this.username);\n\t\tResultSet result = checkNotCanceledReservationStatement.executeQuery();\n\t\tresult.next();\n\t\tboolean out = result.getInt(1) == 1;\n\t\tif (DEBUG) {\n\t\t\tSystem.out.println(\"checkNotCanceledReservation: \"+result.getInt(1)+\"\\n\");\n\t\t}\n\t\tresult.close();\n\t\treturn out;\n\t}",
"@Override\n\tpublic Localidad buscarLocalidadPorCp(Integer cp) {\n\t\treturn (Localidad)sesion.getCurrentSession().createCriteria(Localidad.class)\n\t\t\t\t.add(Restrictions.eq(\"cp\", cp))\n\t\t\t\t\n\t\t\t\t.uniqueResult();\n\t}",
"public abstract Integer getCompteId();",
"public void searchCustomerReservations(Connection connection, int CID) throws SQLException {\n\n ResultSet rs = null;\n String sql = \"SELECT res_num FROM Reservation WHERE c_ID = ?\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setCID(CID);\n pStmt.setInt(1, getCID());\n\n try {\n\n System.out.printf(\" Reservations for C_ID (%d):\\n\", getCID());\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while (rs.next()) {\n System.out.println(\"Reservation number: \" + rs.getInt(1));\n }\n }\n catch (SQLException e) { e.printStackTrace(); }\n finally {\n pStmt.close();\n if(rs != null) { rs.close(); }\n }\n }",
"public Criteria andIdLessThanColumn(TCpyBankCredit.Column column) {\n addCriterion(new StringBuilder(\"id < \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"private static void getSCset(){\n\t\ttry{\n\t\t\tSystem.out.print(\"SC set being processed\\n\");\n\t\t\tPreparedStatement pstm1 = CAMPS_CONNECTION.prepareStatement(\"select cluster_id, cluster_threshold from cp_clusters2 where type=?\");\n\t\t\tPreparedStatement pstm2 = CAMPS_CONNECTION.prepareStatement(\"select sequenceid from clusters_mcl2 where cluster_id=? and cluster_threshold=? \");\n\t\t\tpstm1.setString(1, \"sc_cluster\");\n\t\t\tResultSet rs1 = pstm1.executeQuery();\n\t\t\twhile(rs1.next()){\n\t\t\t\tint clusid = rs1.getInt(1);\n\t\t\t\tfloat thresh = rs1.getFloat(2);\n\t\t\t\tpstm2.setInt(1, clusid);\n\t\t\t\tpstm2.setFloat(2, thresh);\n\t\t\t\tint seqid;\n\t\t\t\tResultSet rs2 = pstm2.executeQuery();\n\t\t\t\twhile(rs2.next()){\n\t\t\t\t\tseqid = rs2.getInt(1);\n\t\t\t\t\tint tmNo = Initial_sequences.get(seqid);\n\t\t\t\t\tSC_sequences.put(seqid, tmNo);\n\t\t\t\t}\n\t\t\t\trs2.close();\n\t\t\t\tpstm2.clearBatch();\n\n\t\t\t}\n\t\t\trs1.close();\n\t\t\tpstm1.close();\n\t\t\tpstm2.close();\n\n\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void setcId(Integer cId) {\n this.cId = cId;\n }",
"int updateByPrimaryKeySelective(HrHBscCpuQos record);",
"int insertSelective(CGcontractCredit record);",
"int updateByPrimaryKeySelective(HrMscChaAssig record);",
"public ResultSet getCustomerInfo(int cid) throws IllegalStateException{\n\t \n if(!isLoggedIn())\n throw new IllegalStateException(\"MUST BE LOGGED IN FIRST!\");\n try{\n \t stmt = con.createStatement();\n String queryString = \"Select * FROM CUSTOMER where\"\n \t\t+ \" id= '\" + cid +\"'\";\n result = stmt.executeQuery(queryString);\n } \n catch (Exception E) {\n \t E.printStackTrace();\n }\n return result;\n\t}",
"public Conge find( Integer idConge ) ;",
"@Test\r\n public void testGetTcgaCenterIdFromBcrId() {\n assertEquals(new Long(6), queries.getTcgaCenterIdFromBcrId(\"02\"));\r\n\r\n getSimpleJdbcTemplate().update(\"delete from center_to_bcr_center where bcr_center_id = '02'\");\r\n //make sure the entry is not in the database\r\n assertEquals(0, (getSimpleJdbcTemplate().queryForList(\" select * from center_to_bcr_center where bcr_center_id = '02'\")).size());\r\n // Read it from cache\r\n assertEquals(new Long(6), queries.getTcgaCenterIdFromBcrId(\"02\"));\r\n }",
"@Override\r\n\tpublic boolean selectCourse(String sid, String[] cid) throws Exception {\n\t\tboolean flag = false;\r\n\t\ttry {\r\n\t\t\tflag = this.dao.selectCourse(sid, cid);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow e;\r\n\t\t}finally {\r\n\t\t\tthis.dbc.close();\r\n\t\t}\r\n\t\treturn flag;\r\n\t}",
"int updateByPrimaryKeySelective(MnMscQos record);",
"protected ConditionValue getCValueEnterpriseId() { return _myCQ.getEnterpriseId(); }",
"public boolean inAValidSequenceRange(PBFTServerMessage m){\n\n long seqn = m.getSequenceNumber();\n long low = getLCWM();\n long high = getHCWM();\n\n return seqn > low && seqn <= high;\n\n }",
"@Override\n public CerereDePrietenie update(CerereDePrietenie c ){\n String SQL = \"UPDATE cerereDePrietenie \"\n + \"SET status = ? \"\n + \"WHERE id = ?\";\n\n int affectedrows = 0;\n\n try (Connection conn = connect();\n PreparedStatement pstmt = conn.prepareStatement(SQL)) {\n\n\n pstmt.setString(1, c.getStatus());\n pstmt.setInt(2, Math.toIntExact(c.getId()));\n\n affectedrows = pstmt.executeUpdate();\n\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n }\n return c;\n\n }",
"public abstract void setCompteId(Integer pCompteId);",
"public Criteria andIdLessThanOrEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"id <= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"private boolean moverInvBodReservado(java.sql.Connection conExt,int intCodEmp,int intCodLoc,int intCodCot){\n boolean blnRes=false, blnIns=true;\n java.sql.Statement stmLoc;\n java.sql.ResultSet rstLoc;\n double dblCanDis=0.00, dblCanSolRes=0.00;\n String strIns=\"\";\n try{\n if(conExt!=null){\n stmLoc = conExt.createStatement();\n strSql=\"\";\n strSql+=\" SELECT a1.co_emp,a1.co_loc,a1.co_cot,a1.co_reg,a1.nd_canAut, a2.co_emp as co_empInvBod,a2.co_bod as co_bodInvBod,a2.co_itm,a2.nd_stkAct, \\n\";\n strSql+=\" CASE WHEN a2.nd_canDis IS NULL THEN 0 ELSE a2.nd_canDis END as nd_canDis \\n\";\n strSql+=\" FROM tbm_pedOtrBodCotVen as a1 \\n\";\n strSql+=\" INNER JOIN tbm_invBod as a2 ON (a1.co_empRel=a2.co_emp AND a1.co_bodRel=a2.co_bod AND a1.co_itmRel=a2.co_itm) \\n\";\n strSql+=\" WHERE a1.co_emp=\"+intCodEmp+\" AND a1.co_loc=\"+intCodLoc+\" AND a1.co_cot=\"+intCodCot+\" \\n\";\n System.out.println(\"moverInvBodReservado: \\n\" + strSql);\n rstLoc = stmLoc.executeQuery(strSql);\n while(rstLoc.next()){\n dblCanDis = rstLoc.getDouble(\"nd_canDis\");\n dblCanSolRes = rstLoc.getDouble(\"nd_canAut\");\n if(dblCanSolRes<=dblCanDis){\n strSql=\"\";\n strSql+=\" UPDATE tbm_invBod SET nd_canDis=(nd_canDis-\"+dblCanSolRes+\"), nd_canRes=((CASE WHEN nd_canRes IS NULL THEN 0 ELSE nd_canRes END) + \" + dblCanSolRes+\") \";\n strSql+=\" WHERE co_emp=\"+rstLoc.getInt(\"co_empInvBod\")+\" AND co_bod=\"+rstLoc.getInt(\"co_bodInvBod\");\n strSql+=\" AND co_itm=\"+rstLoc.getInt(\"co_itm\")+\";\\n\";\n strIns+=strSql;\n }else{\n blnIns=false;\n System.out.println(\"NO DISPONIBLE \" + rstLoc.getInt(\"co_itm\"));\n //return false; CONTENEDOR PARA MOSTRAR ITEMS DE PROBLEMAS\n }\n }\n rstLoc.close();\n rstLoc=null;\n \n if(blnIns){\n System.out.println(\"moverInvBodReservado: \" + strIns);\n stmLoc.executeUpdate(strIns);\n blnRes=true;\n }\n else{\n blnRes=false;\n }\n stmLoc.close();\n stmLoc=null;\n\t\n \n }\n }\n catch (java.sql.SQLException e) { \n objUti.mostrarMsgErr_F1(this, e); \n }\n catch(Exception Evt){ \n objUti.mostrarMsgErr_F1(this, Evt);\n } \n return blnRes;\n }",
"public void updateSCId(int sCid){\n\t\tthis.sCiD = sCid;\n\t}",
"ChannelAli selectByPrimaryKey(Integer id);",
"public static int getCalendarTrackerIsClimb(long id, Context mContext) {\n DatabaseHelper handler = new DatabaseHelper(mContext);\n SQLiteDatabase database = handler.getWritableDatabase();\n\n //grade type\n String[] projection = {\n DatabaseContract.CalendarTrackerEntry._ID,\n DatabaseContract.CalendarTrackerEntry.COLUMN_ISCLIMB};\n String whereClause = DatabaseContract.CalendarTrackerEntry._ID + \"=?\";\n String[] whereValue = {String.valueOf(id)};\n\n Cursor cursor = database.query(DatabaseContract.CalendarTrackerEntry.TABLE_NAME,\n projection,\n whereClause,\n whereValue,\n null,\n null,\n null);\n\n int idColumnOutput = cursor.getColumnIndex(DatabaseContract.CalendarTrackerEntry.COLUMN_ISCLIMB);\n\n try {\n cursor.moveToFirst();\n return cursor.getInt(idColumnOutput);\n } finally {\n cursor.close();\n database.close();\n }\n }",
"CGcontractCredit selectByPrimaryKey(Integer id);",
"private void updateRange(CDS _cds)\n\t{\n\t\t// the boundary is out of the protein's CDS\n\t\tif((this.m_end < _cds.m_start) || (this.m_start > _cds.m_end))\n\t\t{\n\t\t\tthis.m_start = -1;\n\t\t\tthis.m_end = -1;\n\t\t\tthis.m_length = -1;\n\t\t\tthis.startPhase = ExonPhase.OUT_OF_CDS;\n\t\t\tthis.endPhase = ExonPhase.OUT_OF_CDS;\n\t\t}\n\t\telse\n\t\t{ \n\t\t\tthis.startPhase = determinePhase((this.m_start - _cds.m_start));\n\t\t\tthis.endPhase = determinePhase((this.m_end - _cds.m_start));\n\t\t\t\n\t\t\t// the start of the boundary is out of the protein's CDS.\n\t\t\tif(this.m_start < _cds.m_start)\n\t\t\t{\n\t\t\t\tthis.m_start = _cds.m_start;\n\t\t\t\tthis.startPhase = ExonPhase.OUT_OF_CDS;\n\t\t\t}\n\t\t\t// the end of the boundary is out of the protein's CDS.\n\t\t\tif(this.m_end > _cds.m_end)\n\t\t\t{\n\t\t\t\tthis.m_end = _cds.m_end;\n\t\t\t\tthis.endPhase = ExonPhase.OUT_OF_CDS;\n\t\t\t}\n\t\t\t\n\t\t\t// the boundaries are in the rang of the protein's CDS\n\t\t\tthis.m_start = (int) (Math.floor(((this.m_start - _cds.m_start) / 3)) + 1);\n\t\t\tthis.m_end = (int) (Math.floor(((this.m_end - _cds.m_start) / 3)) + 1);\n\t\t\tthis.m_length = this.m_end - this.m_start;\n\t\t}\t\n\t}",
"public void getSelectedGame(int bin){\r\n try{\r\n c = DbConnect.getConnection();\r\n pstmt = c.prepareStatement(\"Select serial FROM tickets WHERE Bin = ?\");\r\n pstmt.setInt(1,bin);\r\n rs = pstmt.executeQuery();\r\n rs.next();\r\n }catch (Exception e) { e.printStackTrace(); }\r\n}",
"public Criteria andIdGreaterThanOrEqualToColumn(TCpyBankCredit.Column column) {\n addCriterion(new StringBuilder(\"id >= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"boolean isCachedCodeCategoryCurrent(UUID id)\n throws DAOException;",
"private int cidPosition(int[] cids, int cid) {\n int index = -1;\n if (cids[cids.length - 1] == cid) {\n return cids.length - 1;\n }\n for (int i = 0; i < cids.length; i++) {\n if (cids[i] > cid) {\n break;\n }\n index++;\n }\n logger.info(\"Checkpoint is in position \" + index);\n return index;\n }",
"public M csmiStatusMin(Object min){this.put(\"csmiStatusMin\", min);return this;}",
"public ResultSet returnAccno(Long userid)throws Exception {\n\trs=DbConnect.getStatement().executeQuery(\"select bank_acc_no from CUSTOMER_DETAILS where user_id=\"+userid+\"\");\r\n\treturn rs;\r\n}",
"public Criteria andIdGreaterThanColumn(TCpyBankCredit.Column column) {\n addCriterion(new StringBuilder(\"id > \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"@Override\n\tpublic RcuSettime selectByPrimaryKey(String rcuid) {\n\t\treturn rcuSettimeMapper.selectByPrimaryKey(rcuid);\n\t}",
"public ResultSet getAccno(Long ano)throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select balance from bank where Accno=\"+ano+\"\");\r\n\treturn rs;\r\n}",
"public ResultSet Apmail(Long id)throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from broker where login_id=\"+id+\"\");\r\n\treturn rs;\r\n}",
"public static boolean containsID(int segID) {\n String sql = \"SELECT id FROM corpus1 where id= ?\";\n\n Connection conn = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n\n try {\n conn = DatabaseOperations.connect();\n pstmt = conn.prepareStatement(sql);\n\n pstmt.setInt(1, segID);\n rs = pstmt.executeQuery();\n // loop through the result set\n while (rs.next()) {\n if (segID == rs.getInt(\"id\")) {\n return true;\n }\n }\n } catch (SQLException e) {\n System.out.println(\"containsID: \" + e.getMessage());\n } finally {\n try {\n if (rs != null) {\n rs.close();\n }\n if (pstmt != null) {\n pstmt.close();\n }\n if (conn != null) {\n conn.close();\n }\n } catch (SQLException e) {\n System.out.println(\"containsID: \" + e.getMessage());\n }\n }\n return false;\n\n }",
"@Override\r\n\tpublic boolean overlapCheck(String id) {\n\t\tboolean result = true;\r\n\r\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"select * from member where id=?\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\tps.setString(1, id);\r\n\t\t\trs = ps.executeQuery();\r\n\r\n\t\t\twhile (!rs.next()) {\r\n\t\t\t\treturn false;// 결과가 없다면 중복되지 않음\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\tps.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\tresult = false;\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}",
"public int getLowestChromID();",
"TbInvCategory selectByPrimaryKey(TbInvCategoryKey key);",
"@Query(value = \"select max(sec_id) from section where course_id = ?1\",nativeQuery = true)\n Optional<Integer> currentSecId(Long courseId);",
"@Override\r\n\tpublic Map<String, Object> read(int id) {\n\t\tSystem.out.println(id);\r\n\t\tsimpleJdbcCall = new SimpleJdbcCall(jdbcTemplate).withCatalogName(\"PKG_ESTADO_CIVIL\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t .withProcedureName(\"PR_BUS_ESTADO_CIVIL\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t .declareParameters(new SqlOutParameter(\"CUR_ESTADO_CIVIL\", OracleTypes.CURSOR,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t new ColumnMapRowMapper()), new SqlParameter(\"IDESTADO_CIVIL\", Types.INTEGER));\r\n\t\tSqlParameterSource in = new MapSqlParameterSource().addValue(\"IDESTADO_CIVIL\", id);\r\n\t\treturn simpleJdbcCall.execute(in);\r\n\t}",
"public static void setIccid(Object iccid) {\n\t\t\n\t}",
"public M csmiMemberIdMax(Object max){this.put(\"csmiMemberIdMax\", max);return this;}",
"public ResultSet view(Long userid) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.compname,f.no_share from company c,finalallocation f,login l,customer cu where l.login_id=cu.login_id and c.comp_id=f.comp_id and cu.user_id=f.user_id and cu.login_id=\"+userid+\"\");\r\n\treturn rs;\r\n}",
"public void setICID(int value) {\n this.icid = value;\n }",
"public ResultSet SelectUser(long userid) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select l.loginid,l.username,l.password,c.firstname,c.lastname,c.city,c.e_mail,c.phno,c.dob,c.doReg,c.pincode,c.address,cd.pancard_no,cd.bank_name,cd.branch_name,cd.bank_acc_no,cd.demat_acc_no from login l,customer c,customer_details cd\" +\r\n\t\t\t\"where l.loginid=c.loginid and c.user_id=cd.user_id and l.loginid=\"+userid+\"\");\r\n\treturn rs;\r\n}",
"public void setCaseID(java.lang.String param){\n \n this.localCaseID=param;\n \n\n }",
"private int c(alq paramalq)\r\n/* 30: */ {\r\n/* 31: 52 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 32: 53 */ if ((this.a[i] != null) && (this.a[i].b() == paramalq)) {\r\n/* 33: 54 */ return i;\r\n/* 34: */ }\r\n/* 35: */ }\r\n/* 36: 57 */ return -1;\r\n/* 37: */ }",
"public Integer getcId() {\n return cId;\n }",
"public Card selectCardById(int cno) {\n\t\treturn this.caDao.selectCardById(cno);\n\t}",
"public M csseIdNull(){if(this.get(\"csseIdNot\")==null)this.put(\"csseIdNot\", \"\");this.put(\"csseId\", null);return this;}",
"public boolean shouldHaveArrivedEarlier(int sID);",
"int getMinX(Long id) throws RemoteException;",
"public int updateByPrimaryKeySelective(DyMscMgwSccp record) {\r\n int rows = getSqlMapClientTemplate().update(\"DY_MSC_MGW_SCCP.ibatorgenerated_updateByPrimaryKeySelective\", record);\r\n return rows;\r\n }",
"@Query(value = \"Select * From Seat Where row_number = ?1 and col_number = ?2 and train_train_id = ?3 \",nativeQuery=true)\n public Optional<Seat> checkSeatAvailability(int r, int c, int trainId);",
"public int Approvedbroker(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set userstatus='approved'where loginid=\"+id+\"\");\r\n\treturn i;\r\n}",
"int updateByPrimaryKey(MnMscQos record);",
"private static int getClusterCorrespondance(Integer cl1, Integer cl2,\n HashMap<Integer, HashMap<Integer, Integer>> clusterCorresp, int nextId)\n{\n HashMap<Integer, Integer> map = clusterCorresp.get(cl1);\n if (map == null) {\n map = new HashMap<Integer, Integer>();\n map.put(cl2, nextId);\n clusterCorresp.put(cl1, map);\n return nextId;\n }\n Integer corresp = map.get(cl2);\n if (corresp == null) {\n map.put(cl2, nextId);\n return nextId;\n }\n return corresp.intValue();\n}",
"public boolean checkStudentID(Student s) {\n\t\tboolean res = false;\n\t\tConnection conn = DBUtil.getConn();\n\t\tStatement stmt = DBUtil.createStmt(conn);\n\t\tString sql = \"select * from student where stu_ID=%d\";\n\t\tsql = String.format(sql, s.getID());\n\t\tSystem.out.println(sql);\n\t\tResultSet rst = DBUtil.getRs(stmt, sql);\n\t\ttry {\n\t\t\tif (rst.next()) {\n\t\t\t\tres = true;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tres = false;\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tDBUtil.closeStmt(stmt);\n\t\t\tDBUtil.closeConn(conn);\n\t\t\tDBUtil.closeRs(rst);\n\t\t}\n\t\treturn res;\n\t}",
"void insertSelective(HrMscChaAssig record);",
"boolean hasChannelAssignmentMoved(String ccid);",
"public Criteria andIdEqualToColumn(TCpyBankCredit.Column column) {\n addCriterion(new StringBuilder(\"id = \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"public Cliente[] findWhereSincronizacionMicrosipEquals(int sincronizacionMicrosip) throws ClienteDaoException;",
"ConceptChronicleBI findChronicle(String sctid);",
"public Criteria andIdLessThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"id <= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"public com.MyBlog.entity.Archivescommit FindByCId(int CID) {\n\t\treturn acmapper.FindByCId(CID);\n\t}",
"public void rellenarDevoluciones(DTOSolicitudValidacion dtoSolicitud)\n throws MareException{\n UtilidadesLog.info(\"DAOSolicitudes.rellenarDevoluciones(DTOSolicitudValidacion dtoSolicitud):Entrada\");\n Long oidConsolidado = null, oidPeriodo = null;\n RecordSet rs;\n StringBuffer query = new StringBuffer();\n\n query.append(\" SELECT MAX(SOL_ORIG.OID_SOLI_CABE) OID_SOLI_CABE, MAX(SOL_ORIG.PERD_OID_PERI) PERD_OID_PERI \");\n\n query.append(\" FROM PED_SOLIC_CABEC SOL_DEVO, \");\n query.append(\" PED_SOLIC_CABEC SOL_ORIG, \");\n query.append(\" PED_SOLIC_CABEC SOL_DEVUELTA, \");\n query.append(\" INC_SOLIC_CONCU_PUNTA SCP, \");\n query.append(\" PED_TIPO_SOLIC_PAIS PTSP, \");\n query.append(\" PED_TIPO_SOLIC PTS \");\n \n query.append(\" WHERE SOL_DEVO.OID_SOLI_CABE = \" + dtoSolicitud.getOidSolicitud().toString() );\n query.append(\" AND SOL_DEVO.SOCA_OID_DOCU_REFE = SOL_ORIG.OID_SOLI_CABE \");\n query.append(\" AND SOL_ORIG.OID_SOLI_CABE = SOL_DEVUELTA.SOCA_OID_SOLI_CABE \");\n query.append(\" AND SOL_DEVUELTA.OID_SOLI_CABE = SCP.SOCA_OID_SOLI_CABE \");\n query.append(\" AND SOL_DEVO.TSPA_OID_TIPO_SOLI_PAIS = PTSP.OID_TIPO_SOLI_PAIS \");\n query.append(\" AND PTSP.TSOL_OID_TIPO_SOLI = PTS.OID_TIPO_SOLI \");\n query.append(\" AND PTS.IND_DEVO = 1 \");\n \n try {\n rs = BelcorpService.getInstance().dbService.executeStaticQuery(query.toString());\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n \n if(! rs.esVacio() ){\n oidConsolidado = rs.getValueAt(0,\"OID_SOLI_CABE\" )!=null?\n new Long( ((BigDecimal)rs.getValueAt(0,\"OID_SOLI_CABE\" ) ).longValue() ):null;\n }\n \n if( oidConsolidado != null ){\n oidPeriodo = rs.getValueAt(0,\"PERD_OID_PERI\" )!=null?\n new Long( ((BigDecimal)rs.getValueAt(0,\"PERD_OID_PERI\" ) ).longValue() ):null; \n \n dtoSolicitud.setOidSolicitud( oidConsolidado );\n dtoSolicitud.setOidPeriodo( oidPeriodo );\n }\n\n UtilidadesLog.info(\"DAOSolicitudes.rellenarDevoluciones(DTOSolicitudValidacion dtoSolicitud):Salida\");\n }",
"public void setCompid(Integer compid) {\n this.compid = compid;\n }",
"public ResultSet retid(String username) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select user_seq.nextval-1 from dual\");\r\n\treturn rs;\r\n}",
"@Override\r\n\tpublic Course getCourse(int cid) {\n\t\ttry {\r\n\t\t\tCourse dummy=new Course();\r\n\t\t\tdummy.setCid(cid);\r\n\t\t\tif(allCoursesList.contains(dummy))\r\n\t\t\t{\r\n\t\t\t\tint index=allCoursesList.indexOf(dummy);\r\n\t\t\t\treturn allCoursesList.get(index);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tConnection connection=DBConnection.getConnection();\r\n\t\t\tString sqlQuery=\"select * from \"+TABLECourse+\" where \"+COLcid+\" = ?\";\r\n\t\t\tPreparedStatement pst;\r\n\t\t\tpst = connection.prepareStatement(sqlQuery);\r\n\t\t\tpst.setInt(1, cid);\r\n\t\t\tpst.executeQuery();\r\n\t\t\tResultSet rs=pst.getResultSet();\r\n\t\t\t\r\n\t\t\tif(rs.next()==false)\r\n\t\t\t{\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tString name=rs.getString(COLcname);\r\n\t\t\tint duration=rs.getInt(COLduration);\r\n\t\t\tint fees=rs.getInt(COLfees);\r\n\t\t\t\r\n\t\t\tCourse course =new Course(cid,name,duration,fees);\r\n\t\t\tallCoursesList.add(course);\r\n\t\t\treturn course;\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 null;\r\n\t\t\r\n\t\t\r\n\t}",
"public Criteria andCompanyIdLessThanOrEqualToColumn(TCpyBankCredit.Column column) {\n addCriterion(new StringBuilder(\"company_id <= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"public int Appbr(Long broker_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+broker_id+\"\");\r\n\treturn i;\r\n}",
"OcCustContract selectByPrimaryKey(String contractNo);",
"CE findById(ID id);"
] | [
"0.54680675",
"0.5198106",
"0.49331653",
"0.48681667",
"0.48511708",
"0.48140576",
"0.48018572",
"0.47561345",
"0.4737659",
"0.4732355",
"0.47034463",
"0.46995762",
"0.46970195",
"0.46395653",
"0.46309078",
"0.46220052",
"0.46168777",
"0.46131226",
"0.45853806",
"0.45696405",
"0.45640853",
"0.45580003",
"0.45483536",
"0.45409793",
"0.45397246",
"0.45342433",
"0.45334914",
"0.45287672",
"0.4525318",
"0.45219588",
"0.4521256",
"0.45035124",
"0.44765997",
"0.44695354",
"0.4456688",
"0.4454876",
"0.44529328",
"0.4443993",
"0.4438981",
"0.44358978",
"0.44255233",
"0.44241023",
"0.44230583",
"0.44179186",
"0.44068807",
"0.44061905",
"0.44057924",
"0.43946382",
"0.43940443",
"0.4388176",
"0.43861973",
"0.4386153",
"0.43847618",
"0.43815896",
"0.43674308",
"0.43612006",
"0.43596163",
"0.43488967",
"0.43456993",
"0.43440703",
"0.43415952",
"0.43275744",
"0.43254212",
"0.43193725",
"0.43174285",
"0.43146983",
"0.43084854",
"0.4308153",
"0.4301329",
"0.43008757",
"0.43004408",
"0.42988428",
"0.42946172",
"0.42886406",
"0.42875084",
"0.42813167",
"0.42769465",
"0.42766142",
"0.42766124",
"0.4273238",
"0.42731404",
"0.4270679",
"0.42627037",
"0.42618713",
"0.42591625",
"0.42531773",
"0.42444468",
"0.42408052",
"0.4236823",
"0.42323008",
"0.42299485",
"0.42277598",
"0.42269176",
"0.42266262",
"0.42222446",
"0.42205596",
"0.42201662",
"0.4219716",
"0.42191508",
"0.42190972"
] | 0.46017408 | 18 |
and csmi_host is null | public M csmiHostNull(){if(this.get("csmiHostNot")==null)this.put("csmiHostNot", "");this.put("csmiHost", null);return this;} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public M csseHostNull(){if(this.get(\"csseHostNot\")==null)this.put(\"csseHostNot\", \"\");this.put(\"csseHost\", null);return this;}",
"public boolean isSetHost() {\r\n return this.host != null;\r\n }",
"public boolean isSetHost() {\r\n return this.host != null;\r\n }",
"public boolean isSetHost() {\r\n return this.host != null;\r\n }",
"public boolean isSetHost() {\r\n return this.host != null;\r\n }",
"public boolean isSetHost() {\r\n return this.host != null;\r\n }",
"public boolean isSetHost() {\n return this.host != null;\n }",
"boolean hasHost();",
"boolean hasHost();",
"public boolean isSetHost() {\n return this.host != null;\n }",
"private boolean isConnectedToPrimary(SRVRecord[] recs)\n\t{\n\t\tString primaryAddress = getPrimaryServerRecord(recs).getTarget();\n\t\tif (primaryAddress != null && primaryAddress.equals(currentAddress))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"boolean hasRemoteHost();",
"boolean getIsVirtHost();",
"public M csmiAddressNull(){if(this.get(\"csmiAddressNot\")==null)this.put(\"csmiAddressNot\", \"\");this.put(\"csmiAddress\", null);return this;}",
"public String getHostName() {\n return null;\n }",
"public boolean isComputeLiveConfigured() {\n return\n identity != null && credential != null && image != null && location != null\n && !identity.isEmpty() && !credential.isEmpty() && !image.isEmpty() && !location.isEmpty();\n }",
"public Boolean getHostNetwork() {\n return hostNetwork;\n }",
"@Override\n\tpublic String getRemoteHost() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getRemoteHost() {\n\t\treturn null;\n\t}",
"public boolean isSetClient_ip() {\n return this.client_ip != null;\n }",
"public void test3(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().equals(\"trustme.com\")){ /* BUG */\n\n }\n }",
"@Override\n\t\tpublic String getHost() {\n\t\t\treturn null;\n\t\t}",
"@Override\n\t\tpublic String getRemoteHost() {\n\t\t\treturn null;\n\t\t}",
"public boolean isNotNullMcc() {\n return genClient.cacheValueIsNotNull(CacheKey.mcc);\n }",
"boolean resourceInHost(final Host host) {\n for (final DrbdVolumeInfo dvi : drbdVolumes) {\n for (final BlockDevInfo bdi : dvi.getBlockDevInfos()) {\n if (bdi.getHost() == host) {\n return true;\n }\n }\n }\n return false;\n }",
"public void test4(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().equalsIgnoreCase(\"trustme.com\")){ /* BUG */\n\n }\n }",
"public boolean isSetMachineOuterIP() {\n return this.machineOuterIP != null;\n }",
"public M csseAddressNull(){if(this.get(\"csseAddressNot\")==null)this.put(\"csseAddressNot\", \"\");this.put(\"csseAddress\", null);return this;}",
"public boolean isConnected(){\r\n return (id!=-1 && matlabEng!=null); \r\n }",
"public boolean isCollectorHostExternal(String clusterName);",
"boolean canHostVirtualMachine(VirtualMachine vm) {\n return getLeftoverCPU().compareTo(vm.getCPU()) >= 0 &&\n getLeftoverMemory().compareTo(vm.getMemory()) >= 0 &&\n vm.canRunInPhysicalMachine(pm) &&\n (!vm.isAntiColocatable() ||\n !mapped_anti_coloc_job_ids.contains(new Integer(vm.getJobID())));\n }",
"public void test2(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().endsWith(\"trustme.com\")){ /* BUG */\n\n }\n }",
"public void test6(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().startsWith(\"trustme.com\")){ /* BUG */\n\n }\n }",
"public boolean hasRemoteHost() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"boolean getNodeCharacteristicIdNull();",
"public boolean isConfigServerHostLike() {\n return this == confighost || this == controllerhost;\n }",
"boolean isIsRemote();",
"public M csmiHostMin(Object min){this.put(\"csmiHostMin\", min);return this;}",
"public boolean isNotNullFrontendMid() {\n return genClient.cacheValueIsNotNull(CacheKey.frontendMid);\n }",
"public boolean hasRemoteHost() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"boolean isCollectorHostLive(String clusterName, MetricsService service) throws SystemException;",
"default Optional<String> getExternalHostName(String clusterName, String componentName) {\n return Optional.empty();\n }",
"boolean isAllowClusterGet();",
"public boolean isSetMachineInnerIP() {\n return this.machineInnerIP != null;\n }",
"public boolean isRunOnHost() {\n return Mode.HOST == mode;\n }",
"public void test7(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n\n if(addr.getCanonicalHostName().startsWith(\"trustme.com\", 3)){ /* BUG */\n\n }\n }",
"public boolean isSetResourceHostId() {\n return this.resourceHostId != null;\n }",
"private boolean isConnected() {\n\t\treturn (this.serverConnection!=null); \n }",
"public boolean checkConnection() {\n\treturn getBoolean(ATTR_CONNECTION, false);\n }",
"public boolean hasHost() {\n return result.hasHost();\n }",
"public NetworkInfo getActiveNetworkInfo() {\n\treturn null;\r\n}",
"public void testSetHost() {\n }",
"public boolean isSetStrIP() {\n return this.strIP != null;\n }",
"public void verifyServerCn(boolean yesno);",
"public void test10(HttpServletRequest request) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getHostName().endsWith(\"trustme.com\")){ /* BUG */\n\n }\n }",
"boolean getXAxisCharacteristicIdNull();",
"boolean hasServer();",
"public M csolSrcNull(){if(this.get(\"csolSrcNot\")==null)this.put(\"csolSrcNot\", \"\");this.put(\"csolSrc\", null);return this;}",
"@Test\n public void shouldGetHostAddress() {\n assertEquals(NE_IP, session.getAddress().getHostAddress());\n }",
"@Override\n\tpublic ArrayList<String> getHost() {\n\t\treturn null;\n\t}",
"@Test(groups = \"Integration\")\n public void testIsSshableWhenFalse() throws Exception {\n byte[] unreachableIp = new byte[] {123,123,123,123};\n SshMachineLocation unreachableHost = new SshMachineLocation(MutableMap.of(\"address\", InetAddress.getByAddress(\"unreachablename\", unreachableIp)));\n assertFalse(unreachableHost.isSshable());\n }",
"public M csmiDriverImageNull(){if(this.get(\"csmiDriverImageNot\")==null)this.put(\"csmiDriverImageNot\", \"\");this.put(\"csmiDriverImage\", null);return this;}",
"java.lang.String getHost();",
"java.lang.String getHost();",
"public void testParseHost_Null() throws UnknownHostException {\n try {\n PortParser.parseHost(null);\n fail(\"Expected CommandSyntaxException\");\n }\n catch (CommandSyntaxException expected) {\n LOG.info(\"Expected: \" + expected);\n }\n }",
"private boolean initDataOnHosts(String srcIP, String destIP)\t\n\t{\n\t\tSystem.out.println(\"######### In initDataOnHosts #############\");\n\t\tSwitchPort[] SwitchPort;\n\t\tboolean isHostSrcFound = false;\n\t\tboolean isHostDestFound = false;\n\t\t\n\t\t//Get all devices known by the controller.(device = host)\n\t\tCollection<? extends IDevice> alldevices = deviceManager.getAllDevices();\n\n\t\tfor (IDevice device : alldevices)\n\t\t{\n\t\t\tInteger [] deviceAssociatedIPv4Addr = device.getIPv4Addresses();\n\n\t\t\tif(deviceAssociatedIPv4Addr.length>0)\n\t\t\t{\n\t\t\t\tString assocIpv4Addr = IPv4.fromIPv4Address(deviceAssociatedIPv4Addr[0]);\n\n\t\t\t\tif(assocIpv4Addr.equals(srcIP))\n\t\t\t\t{\n\t\t\t\t\t//Get attachment points associated with the device\n\t\t\t\t\tSwitchPort = device.getAttachmentPoints();\n\t\t\t\t\tif(SwitchPort.length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tm_switchSrc =SwitchPort[0].getSwitchDPID();\n\t\t\t\t\t\tm_sourceMacAddr = device.getMACAddressString();\n\t\t\t\t\t\tm_switchSrcPortToHostSource =( short)SwitchPort[0].getPort();\n\t\t\t\t\t\tisHostSrcFound = true;\n\t\t\t\t\t\tSystem.out.println(\"######### Update src Host \"+\"switchId\"+m_switchSrc.toString()+ \"#############\");\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\telse if(assocIpv4Addr .equals(destIP))\n\t\t\t\t{\n\t\t\t\t\t//Get attachment points associated with the device\n\t\t\t\t\tSwitchPort =device.getAttachmentPoints();\n\t\t\t\t\tif(SwitchPort.length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tm_switchDst =SwitchPort[0].getSwitchDPID();\n\t\t\t\t\t\tm_destMacAddr = device.getMACAddressString();\n\t\t\t\t\t\tm_switchDstPortToHostTarget =(short)SwitchPort[0].getPort();\n\t\t\t\t\t\tisHostDestFound = true;\n\t\t\t\t\t\tSystem.out.println(\"######### Update dest Host \"+\"switchId\"+m_switchDst.toString()+ \"#############\");\n\t\t\t\t\t}\t\n\t\t\t\t}\t\t\t\t\n\t\t\t}\t\t\n\t\t}\n\t\tif(isHostSrcFound && isHostDestFound)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\t\n\t}",
"Host getHost();",
"@Override\n public boolean hasClientinfo() {\n return clientinfo_ != null;\n }",
"boolean isNilPoolId();",
"public boolean isNotNullBackendMid() {\n return genClient.cacheValueIsNotNull(CacheKey.backendMid);\n }",
"@Test\n public void testConnectToInvalidService()\n throws IOException\n {\n final boolean availability = ConnectionChecker.checkServiceAvailability(\"localhost\", 65534, 3000);\n\n assertFalse(availability);\n }",
"private static void updateInfo(\n Host host, Row row, Cluster.Manager cluster, boolean isInitialConnection) {\n if (!row.isNull(\"data_center\") || !row.isNull(\"rack\"))\n updateLocationInfo(\n host, row.getString(\"data_center\"), row.getString(\"rack\"), isInitialConnection, cluster);\n\n String version = row.getString(\"release_version\");\n host.setVersion(version);\n\n // Before CASSANDRA-9436 local row did not contain any info about the host addresses.\n // After CASSANDRA-9436 (2.0.16, 2.1.6, 2.2.0 rc1) local row contains two new columns:\n // - broadcast_address\n // - rpc_address\n // After CASSANDRA-9603 (2.0.17, 2.1.8, 2.2.0 rc2) local row contains one more column:\n // - listen_address\n // After CASSANDRA-7544 (4.0) local row also contains:\n // - broadcast_port\n // - listen_port\n\n InetSocketAddress broadcastRpcAddress = null;\n if (row.getColumnDefinitions().contains(\"native_address\")) {\n InetAddress nativeAddress = row.getInet(\"native_address\");\n int nativePort = row.getInt(\"native_port\");\n broadcastRpcAddress = new InetSocketAddress(nativeAddress, nativePort);\n } else if (row.getColumnDefinitions().contains(\"native_transport_address\")) {\n // DSE 6.8 introduced native_transport_address and native_transport_port for the\n // listen address. Also included is native_transport_port_ssl (in case users\n // want to setup a different port for SSL and non-SSL conns).\n InetAddress nativeAddress = row.getInet(\"native_transport_address\");\n int nativePort = row.getInt(\"native_transport_port\");\n if (cluster.getCluster().getConfiguration().getProtocolOptions().getSSLOptions() != null\n && !row.isNull(\"native_transport_port_ssl\")) {\n nativePort = row.getInt(\"native_transport_port_ssl\");\n }\n broadcastRpcAddress = new InetSocketAddress(nativeAddress, nativePort);\n } else if (row.getColumnDefinitions().contains(\"rpc_address\")) {\n InetAddress rpcAddress = row.getInet(\"rpc_address\");\n broadcastRpcAddress = new InetSocketAddress(rpcAddress, cluster.connectionFactory.getPort());\n }\n // Before CASSANDRA-9436, system.local doesn't have rpc_address, so this might be null. It's not\n // a big deal because we only use this for server events, and the control node doesn't receive\n // events for itself.\n host.setBroadcastRpcAddress(broadcastRpcAddress);\n\n InetSocketAddress broadcastSocketAddress = null;\n if (row.getColumnDefinitions().contains(\"peer\")) { // system.peers\n int broadcastPort =\n row.getColumnDefinitions().contains(\"peer_port\") ? row.getInt(\"peer_port\") : 0;\n broadcastSocketAddress = new InetSocketAddress(row.getInet(\"peer\"), broadcastPort);\n } else if (row.getColumnDefinitions().contains(\"broadcast_address\")) { // system.local\n int broadcastPort =\n row.getColumnDefinitions().contains(\"broadcast_port\") ? row.getInt(\"broadcast_port\") : 0;\n broadcastSocketAddress =\n new InetSocketAddress(row.getInet(\"broadcast_address\"), broadcastPort);\n }\n host.setBroadcastSocketAddress(broadcastSocketAddress);\n\n // in system.local only for C* versions >= 2.0.17, 2.1.8, 2.2.0 rc2,\n // not yet in system.peers as of C* 3.2\n InetSocketAddress listenAddress = null;\n if (row.getColumnDefinitions().contains(\"listen_address\")) {\n int listenPort =\n row.getColumnDefinitions().contains(\"listen_port\") ? row.getInt(\"listen_port\") : 0;\n listenAddress = new InetSocketAddress(row.getInet(\"listen_address\"), listenPort);\n }\n host.setListenSocketAddress(listenAddress);\n\n if (row.getColumnDefinitions().contains(\"workload\")) {\n String dseWorkload = row.getString(\"workload\");\n host.setDseWorkload(dseWorkload);\n }\n if (row.getColumnDefinitions().contains(\"graph\")) {\n boolean isDseGraph = row.getBool(\"graph\");\n host.setDseGraphEnabled(isDseGraph);\n }\n if (row.getColumnDefinitions().contains(\"dse_version\")) {\n String dseVersion = row.getString(\"dse_version\");\n host.setDseVersion(dseVersion);\n }\n host.setHostId(row.getUUID(\"host_id\"));\n host.setSchemaVersion(row.getUUID(\"schema_version\"));\n\n EndPoint endPoint = cluster.configuration.getPolicies().getEndPointFactory().create(row);\n if (endPoint != null) {\n host.setEndPoint(endPoint);\n }\n }",
"private boolean checkServer(Context mContext) {\n\t\t\t\tConnectivityManager cm = (ConnectivityManager) mContext\n\t\t\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\t\t\tNetworkInfo netInfo = cm.getActiveNetworkInfo();\n\t\t\t\tif (netInfo != null && netInfo.isConnectedOrConnecting()) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}",
"boolean hasCluster();",
"public boolean isNetwork() {\r\n \t\treturn (network != null);\r\n \t}",
"public String getBoxNetHost();",
"boolean hasServerId();",
"abstract boolean fakeHostname();",
"boolean hasMachineId();",
"boolean getActiveNull();",
"public boolean isVerifyHost(Env env) {\n return client.isVerifyHost();\n }",
"boolean hasIp();",
"boolean hasIp();",
"boolean hasIp();",
"boolean hasIp();",
"public M csmiIdNull(){if(this.get(\"csmiIdNot\")==null)this.put(\"csmiIdNot\", \"\");this.put(\"csmiId\", null);return this;}",
"boolean hasSsid();",
"String getIntegHost();",
"boolean isNilPoolName();",
"private static boolean checkNetwork(ConnectivityManager cm) {\n NetworkInfo[] allNetworkInfo = cm.getAllNetworkInfo();\n for (NetworkInfo networkInfo : allNetworkInfo) {\n if(networkInfo.isConnected()){\n return true;\n }\n }\n\n return false;\n }",
"public boolean run(String connection) throws IOException {\n\t\tString Command = \"netsh interface ip set dns\" + \" \" + connection + \" \" + \"static \" + (routers.get(myServer)).get(0);\n\t\tProcess pross = rt.exec(Command);\n\t\tBufferedReader lines = new BufferedReader(new InputStreamReader(pross.getInputStream()));\n\t\tString s = lines.readLine();\n\t\tif(s.length()>0){\n\t\t\tCommand = \"netsh interface ip set dns\" + \" \" + connection + \" \" + \"static\" + \" \" + (routers.get(myServer)).get(1);\n\t\t\tpross = rt.exec(Command);\n\t\t\tlines = new BufferedReader(new InputStreamReader(pross.getInputStream()));\n\t\t\ts = lines.readLine();\n\t\t\tif(s.length()>0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\t\n\t}",
"private boolean mAsClient(String sRemoteDeviceName) {\n return (sRemoteDeviceName.equals(sDeviceName));\n }",
"boolean isSetNcbistdaa();",
"public String getHost();",
"public String getHost();",
"public boolean findServerByHostName() {\n\t\tboolean success = false;\n\t\tthis.serverName = textUI.getString(\"What is the hostname of the server?\");\n\t\t\n\t\ttry {\n\t\t\tthis.serverAddress = NetworkLayer.getAdressByName(this.serverName); \n\t\t\tsuccess = true;\n\t\t} catch (UnknownHostException e) {\n\t\t\ttextUI.showError(\"Something went wrong while searching for host \" + this.serverName \n\t\t\t\t\t+ \": \" + e.getLocalizedMessage());\n\t\t} \n\t\t\n\t\treturn success;\n\t}",
"public void test1(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n\n if(addr.getCanonicalHostName().contains(\"trustme.com\")){ // disabled\n\n }\n }",
"boolean hasClusterName();",
"public String getHostName (){\n return hostName;\n }",
"public boolean existsHost(String name)\n {\n try\n {\n return (lookup(name)!=null); \n }\n catch (UnknownHostException e)\n {\n return false; \n }\n }"
] | [
"0.7124803",
"0.62875783",
"0.62875783",
"0.62875783",
"0.62875783",
"0.62875783",
"0.6212415",
"0.6136948",
"0.6136948",
"0.61124957",
"0.5719524",
"0.5686134",
"0.55767906",
"0.5554056",
"0.54966867",
"0.5488241",
"0.5467206",
"0.54365665",
"0.54365665",
"0.54345214",
"0.5409457",
"0.5401341",
"0.537146",
"0.5366142",
"0.53075993",
"0.5268612",
"0.5267634",
"0.52619255",
"0.5232475",
"0.52271694",
"0.5223349",
"0.52026707",
"0.5200122",
"0.51989955",
"0.5190844",
"0.51640314",
"0.5161382",
"0.5159457",
"0.5152231",
"0.5151768",
"0.5150243",
"0.5145396",
"0.514463",
"0.5137154",
"0.51198983",
"0.5111134",
"0.5102796",
"0.5085288",
"0.5081037",
"0.5066897",
"0.5064556",
"0.50462615",
"0.50453466",
"0.5025524",
"0.49999505",
"0.49975893",
"0.49839702",
"0.4982754",
"0.49593678",
"0.49571815",
"0.4952942",
"0.49513444",
"0.49262598",
"0.49262598",
"0.4924835",
"0.49237096",
"0.49233365",
"0.4918557",
"0.49125373",
"0.49123448",
"0.49119386",
"0.4911262",
"0.4910612",
"0.49079928",
"0.49064663",
"0.49036792",
"0.49021366",
"0.4895543",
"0.48874226",
"0.48861748",
"0.48825163",
"0.48752624",
"0.48752624",
"0.48752624",
"0.48752624",
"0.4867633",
"0.48646265",
"0.48603332",
"0.4850962",
"0.4842104",
"0.48328704",
"0.48321977",
"0.48310864",
"0.48250186",
"0.48250186",
"0.4821026",
"0.48207402",
"0.48120657",
"0.481189",
"0.48061752"
] | 0.73836374 | 0 |
and csmi_host >= ? | public M csmiHostMin(Object min){this.put("csmiHostMin", min);return this;} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Computer findComputerByActiveTrueAndIpAndPort(String ip, int port);",
"boolean resourceInHost(final Host host) {\n for (final DrbdVolumeInfo dvi : drbdVolumes) {\n for (final BlockDevInfo bdi : dvi.getBlockDevInfos()) {\n if (bdi.getHost() == host) {\n return true;\n }\n }\n }\n return false;\n }",
"boolean hasHost();",
"boolean hasHost();",
"boolean getIsVirtHost();",
"private boolean isConnectedToPrimary(SRVRecord[] recs)\n\t{\n\t\tString primaryAddress = getPrimaryServerRecord(recs).getTarget();\n\t\tif (primaryAddress != null && primaryAddress.equals(currentAddress))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public void checkFreeness(String hostComp);",
"boolean canHostVirtualMachine(VirtualMachine vm) {\n return getLeftoverCPU().compareTo(vm.getCPU()) >= 0 &&\n getLeftoverMemory().compareTo(vm.getMemory()) >= 0 &&\n vm.canRunInPhysicalMachine(pm) &&\n (!vm.isAntiColocatable() ||\n !mapped_anti_coloc_job_ids.contains(new Integer(vm.getJobID())));\n }",
"public M csmiHostNull(){if(this.get(\"csmiHostNot\")==null)this.put(\"csmiHostNot\", \"\");this.put(\"csmiHost\", null);return this;}",
"boolean isCollectorHostLive(String clusterName, MetricsService service) throws SystemException;",
"public abstract boolean isInGroup(String hostname);",
"Switch getHostSwitch();",
"private boolean checkConnection(int x1, int x2) {\n\t\treturn (xStartValue <= x1 && xEndValue >= x1) || (xStartValue <= x2 && xEndValue >= x2) ||\n\t\t\t\t(x1 <= xStartValue && x2 >= xStartValue) || (x1 <= xEndValue && x2 >= xEndValue);\n\t\t\n\t}",
"@Override\n public boolean allocateHostForVm(Vm vm) {\n\n Collections.sort(this.<Host>getHostList(), new Comparator<Host>() {\n @Override\n public int compare(Host h1, Host h2) {\n // -1 - less than, 1 - greater than, 0 - equal, all inversed for descending\n return (h1.getMaxAvailableMips() + h1.getRam()) > (h2.getMaxAvailableMips() + h2.getRam()) ? -1 : ((h1.getMaxAvailableMips() + h1.getRam()) < (h2.getMaxAvailableMips() + h2.getRam()) ? 1 : 0);\n }\n });\n\n for (Host h : getHostList()) { // allocate the vm within the first host with enough resources\n if (h.vmCreate(vm)) {\n this.hoster.put(vm.getUid(), h);\n return true;\n }\n }\n return false;\n }",
"boolean hasRemoteHost();",
"public void hcClickOnHost(String hostIP)\r\n\t{\r\n\t\tString IP = hostIP.replace(\".\", \"\\\\.\");\r\n\t\tString host = \"#collectionView-hosts-card-\" +IP+ \"newCard\";\r\n\t\tString OVHP = \"#OVHP-host-\" + IP;\r\n\t\t\r\n\t\tclickOn(host);\r\n\t\twaitForElementVisible(OVHP);\t\r\n\t}",
"public boolean isCollectorHostExternal(String clusterName);",
"@Override\n public int compare(Host h1, Host h2) {\n return (h1.getMaxAvailableMips() + h1.getRam()) > (h2.getMaxAvailableMips() + h2.getRam()) ? -1 : ((h1.getMaxAvailableMips() + h1.getRam()) < (h2.getMaxAvailableMips() + h2.getRam()) ? 1 : 0);\n }",
"public M csseHostNull(){if(this.get(\"csseHostNot\")==null)this.put(\"csseHostNot\", \"\");this.put(\"csseHost\", null);return this;}",
"public M csmiHostMax(Object max){this.put(\"csmiHostMax\", max);return this;}",
"void host(String host);",
"void host(String host);",
"int getMinAvailable(ClusterSpec clusterSpec);",
"Host getHost();",
"HostingMode hostingMode();",
"CTelnetServers selectByPrimaryKey(String ipAddress, String module, String ne);",
"private boolean isInRange(int a, int b, int c) {\n return c >= a ;\n }",
"private void runTcpScan()\n {\n String ipAddress = new NetworkInfrastructure().getLocalInetAddress().getHostAddress();\n\n //make sure we are on a private range...\n if(isPrivateIpRange(ipAddress))\n {\n // TODO: Check the sub-net mask for smaller than /24 to reduce possible hosts\n\n String range = ipAddress.substring(0, ipAddress.lastIndexOf('.') + 1);\n\n for (int i = 1; i < 255; i++) {\n try {\n\n // See if port is open - if it's not, an exception will bubble\n probeTcpPort(range + i, 80);\n\n // still here? its open lets see if IOTAS is on the host...\n probeIotasApi(range + i);\n\n }catch (JSONException e) {\n // Cant get JSON api probe failed\n } catch (UnknownHostException e) {\n // bad address - ignore\n } catch (SocketTimeoutException e) {\n // socket timeout - ignore\n } catch (IOException e) {\n // socket closed - ignore\n }\n }\n }\n\n log.info(\"Holiday TCP Scan Complete...\");\n }",
"private void computeHSPhase(int i) {\n\t\t\n\t\tHostService hs = new HostService(this.myConnection,this.shareVariable,this.vList);\n\t\tint hostId;\n\t\tint serviceId;\n\t\tString hostServiceSource;\n\t\tboolean isDowntime;\n\t\tboolean previousState;\n\t\tboolean previousDowntime = false;\n\t\tint hostStatusStateFlag;\n\t\t//0 if previousState is not Outage\n\t\t//1 if previousState outage does not inherit from Hoststatus\n\t\t//2 if previousState outage inherit from Hoststatus\n\t\tint previousHoststatusStateFlag;\n\t\t//0 if previous downtime false and previous host service downtime bit = 0\n\t\t//1 if previous downtime true and previous host service downtime bit = 0\n\t\t//2 if previous downtime true and previous host service downtime bit = 1\n\t\tint previousDowntimeHostAndHostService;\n\t\t//Value of previous outage minute last bit before apply hoststatus mask\n\t\tint previousHSOutageBit =0;\n\t\t//Value of previous downtime minute last bit before apply hoststatus mask\n\t\tint previousHSDowntimeBit = 0;\n\t\tint availability;\n\t\tint state = 0;\n\t\tboolean executeHSStateLookup;\n\t\tboolean executeHSDowntimeLookup;\n\t\tint validatorId;\n\t\tint validatorType;\n\t\t\n\t\tfor(int j = 0; j < this.cPlanList.get(i).size(); j++)\n\t\t{\n\t\t\tvalidatorId = this.cPlanList.get(i).get(j);\n\t\t\t/**validatorType = -1 if validator is hostservice*/\n\t\t\tvalidatorType = this.vList.getHashMapValidator().get(validatorId).getIdApplication();\n\t\t\t\n\t\t\t//If validator is host service\n\t\t\tif(validatorType == -1) {\n\t\t\t hs = new HostService(this.myConnection,this.shareVariable,this.vList);\n\t\t\t\thostServiceSource = this.vList.getHashMapValidator().get(validatorId).getSource();\n\t\t\t\thostId = this.vList.getHashMapValidator().get(validatorId).getIdHost();\n\t\t\t\tserviceId = this.vList.getHashMapValidator().get(validatorId).getIdService();\n\t\t\t\tisDowntime = false;\t\n\t\t\t\thostStatusStateFlag = 0;\n\t\t\t\t\n\t\t\t\tpreviousHoststatusStateFlag = this.myConnection.getHSPreviousState(hostId,serviceId);\n\t\t\t\t\n\t\t\t\tif(previousHoststatusStateFlag != 0)\n\t\t\t\t\tthis.myConnection.getHSPreviousInternOutageEventNum(hostId, serviceId);\n\t\t\t\telse this.shareVariable.setInternOutageEventId(this.shareVariable.getEpochBegin());\n\t\t\t\t\n\t\t\t\tif(previousHoststatusStateFlag == 0) {\n\t\t\t\t\tpreviousState = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpreviousState = false;\n\t\t\t\t\tif(previousHoststatusStateFlag == 2) {\n\t\t\t\t\t\tpreviousHoststatusStateFlag = 1;\n\t\t\t\t\t\tpreviousHSOutageBit=0;\n\t\t\t\t\t}\n\t\t\t\t\telse if(previousHoststatusStateFlag == 1) {\n\t\t\t\t\t\tpreviousHoststatusStateFlag = 1;\n\t\t\t\t\t\tpreviousHSOutageBit=1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tpreviousDowntimeHostAndHostService = this.myConnection.getHSPreviousDowntime(hostId,serviceId);\n\t\t\t\tif(previousDowntimeHostAndHostService == 2) {\n\t\t\t\t\tpreviousDowntime = true;\n\t\t\t\t\tpreviousHSDowntimeBit = 1;\n\t\t\t\t}\n\t\t\t\telse if (previousDowntimeHostAndHostService == 1)\n\t\t\t\t{\n\t\t\t\t\tpreviousDowntime = true;\n\t\t\t\t\tpreviousHSDowntimeBit = 0;\n\t\t\t\t}\n\t\t\t\telse if (previousDowntimeHostAndHostService == 0)\n\t\t\t\t{\n\t\t\t\t\tpreviousDowntime = false;\n\t\t\t\t\tpreviousHSDowntimeBit = 0;\n\t\t\t\t}\n\t\t\t\tif(previousDowntime)\n\t\t\t\t\tthis.myConnection.getHSPreviousInternDowntimeEnventNum(hostId, serviceId);\n\t\t\t\telse this.shareVariable.setInternDowntimeEventId(this.shareVariable.getEpochEnd());\n\t\t\t\tavailability = 0;\n\t\t\t\tstate = 1;\n\t\t\t\t\n\t\t\t\ths.initializeDateMinuteStateArray();\n\t\t\t\texecuteHSStateLookup = this.myConnection.testHSOutage(hostId,serviceId,hs,previousState);\n\t\t\t\texecuteHSDowntimeLookup = this.myConnection.testHSDowntime(hostId,serviceId,hs);\n\t\t\t\t\n\t\t\t\t//warning\n\t\t\t\t/*if(hostId == 21 && serviceId == 46 and )\n\t\t\t\t\tSystem.out.print(\"\");*/\n\t\t\t\t\t\n\t\t\t\tint k = this.shareVariable.getEpochBegin();\n\t\t\t\t//Compute for each minute\n\t\t\t\t\n\t\t\t\tif((!previousState || executeHSStateLookup) && (previousDowntime || executeHSDowntimeLookup)) {\n\t\t\t\t\t\n\t\t\t\t\tthis.vList.getHashMapValidator().get(validatorId).setAreEventsOnPeriod(true);\n\t\t\t\t\t//initialisation de l'objet hs\n\t\t\t\t\ths.hostServiceInit(validatorId,hostServiceSource,hostId,serviceId,isDowntime,previousState,previousDowntime, availability, state, hostStatusStateFlag, previousHoststatusStateFlag,previousHSDowntimeBit, previousHSOutageBit);\n\t\t\t\t\t\n\t\t\t\t\t//Créer table log temporaire 1j /1 host service\n\t\t\t\t\tthis.myConnection.createTmpLogHSTable(hostId,serviceId);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t//Créer table log downtime temporaire 1j /1 host service\n\t\t\t\t\tthis.myConnection.createTmpLogDowntimeHSTable(hostId,serviceId);\n\t\t\t\t\t\n\t\t\t\t\ths.compute(this.shareVariable, 1);\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"I finish host \" + hostId + \" service \" + serviceId +\" which had downtime and outage\");\n\t\t\t\t}\n\t\t\t\telse if(!(!previousState || executeHSStateLookup) && (previousDowntime || executeHSDowntimeLookup))\n\t\t\t\t{\n\t\t\t\t\t//System.out.println(\"Create tmp host service downtime table \" + hostId + \" service \" + serviceId +\" which had downtime and outage\");\n\t\t\t\t\t\n\t\t\t\t\t//If there are not Outage event for this HS, there will be no computation on linked application\n\t\t\t\t\tthis.vList.getHashMapValidator().get(validatorId).setAreEventsOnPeriod(false);\n\t\t\t\t\t//initialisation de l'objet hs\n\t\t\t\t\ths.hostServiceInit(validatorId,hostServiceSource,hostId,serviceId,isDowntime,previousState,previousDowntime, availability, state, hostStatusStateFlag, previousHoststatusStateFlag,previousHSDowntimeBit,previousHSOutageBit);\n\t\t\t\t\t\n\t\t\t\t\t//Créer table log downtime temporaire 1j /1 host service\n\t\t\t\t\tthis.myConnection.createTmpLogDowntimeHSTable(hostId,serviceId);\n\t\t\t\t\t\n\t\t\t\t\ths.compute(this.shareVariable, 2);\n\t\t\t\t}\n\t\t\t\telse if((!previousState || executeHSStateLookup) && !(previousDowntime || executeHSDowntimeLookup))\n\t\t\t\t{\n\t\t\t\t\tthis.vList.getHashMapValidator().get(validatorId).setAreEventsOnPeriod(true);\n\t\t\t\t\t//initialisation de l'objet hs\n\t\t\t\t\ths.hostServiceInit(validatorId,hostServiceSource,hostId,serviceId,isDowntime,previousState,previousDowntime, availability, state, hostStatusStateFlag, previousHoststatusStateFlag,previousHSDowntimeBit,previousHSOutageBit);\n\t\t\t\t\t\n\t\t\t\t\t//Créer table log temporaire 1j /1 host service\n\t\t\t\t\tthis.myConnection.createTmpLogHSTable(hostId,serviceId);\n\t\t\t\t\t\n\t\t\t\t\ths.compute(this.shareVariable, 3);\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"I finish host \" + hostId + \" service \" + serviceId +\" which had no downtime but outage\");\n\t\t\t\t}\n\t\t\t\t//If there are not Outage event for this HS, there will be no computation on linked application\n\t\t\t\telse this.vList.getHashMapValidator().get(validatorId).setAreEventsOnPeriod(false);\n\t\t\t\t\n\t\t\t\t\t//System.out.println(\"I finish host \" + hostId + \" service \" + serviceId +\" which had no downtime and no outage\");\n\t\t\t\t\n\t\t\t\tthis.myConnection.dropDayLogHSTable();\n\t\t\t\tthis.myConnection.dropDayDowntimeLogHSTable();\n\t\t\t}\n\t\t\t// if validator is application\n\t\t\telse {\n\t\t\t\tthis.vList.getHashMapValidator().get(validatorId).compute();\n\t\t\t}\n\t\t}\n\t}",
"boolean testCriticalPath(String[] criticalPath) {\n\t\tInetAddress addr = null;\n\t\tboolean result = true;\n\n\t\tThreadCategory log = log();\n\t\tlog.debug(\"Test critical path IP \" + criticalPath[0]);\n\t\ttry {\n\t\t\taddr = InetAddress.getByName(criticalPath[0]);\n\t\t} catch (UnknownHostException e) {\n\t\t\tlog.error(\"failed to convert string address to InetAddress \"\n\t\t\t\t\t+ criticalPath[0]);\n\t\t\treturn true;\n\t\t}\n\t\tIcmpPlugin p = new IcmpPlugin();\n\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t// map.put(\"retry\", new Long(OpennmsServerConfigFactory.getInstance()\n\t\t// .getDefaultCriticalPathRetries()));\n\t\t// map.put(\"timeout\", new Long(OpennmsServerConfigFactory.getInstance()\n\t\t// .getDefaultCriticalPathTimeout()));\n\n\t\tresult = p.isProtocolSupported(addr, map);\n\t\treturn result;\n\t}",
"private static void updateInfo(\n Host host, Row row, Cluster.Manager cluster, boolean isInitialConnection) {\n if (!row.isNull(\"data_center\") || !row.isNull(\"rack\"))\n updateLocationInfo(\n host, row.getString(\"data_center\"), row.getString(\"rack\"), isInitialConnection, cluster);\n\n String version = row.getString(\"release_version\");\n host.setVersion(version);\n\n // Before CASSANDRA-9436 local row did not contain any info about the host addresses.\n // After CASSANDRA-9436 (2.0.16, 2.1.6, 2.2.0 rc1) local row contains two new columns:\n // - broadcast_address\n // - rpc_address\n // After CASSANDRA-9603 (2.0.17, 2.1.8, 2.2.0 rc2) local row contains one more column:\n // - listen_address\n // After CASSANDRA-7544 (4.0) local row also contains:\n // - broadcast_port\n // - listen_port\n\n InetSocketAddress broadcastRpcAddress = null;\n if (row.getColumnDefinitions().contains(\"native_address\")) {\n InetAddress nativeAddress = row.getInet(\"native_address\");\n int nativePort = row.getInt(\"native_port\");\n broadcastRpcAddress = new InetSocketAddress(nativeAddress, nativePort);\n } else if (row.getColumnDefinitions().contains(\"native_transport_address\")) {\n // DSE 6.8 introduced native_transport_address and native_transport_port for the\n // listen address. Also included is native_transport_port_ssl (in case users\n // want to setup a different port for SSL and non-SSL conns).\n InetAddress nativeAddress = row.getInet(\"native_transport_address\");\n int nativePort = row.getInt(\"native_transport_port\");\n if (cluster.getCluster().getConfiguration().getProtocolOptions().getSSLOptions() != null\n && !row.isNull(\"native_transport_port_ssl\")) {\n nativePort = row.getInt(\"native_transport_port_ssl\");\n }\n broadcastRpcAddress = new InetSocketAddress(nativeAddress, nativePort);\n } else if (row.getColumnDefinitions().contains(\"rpc_address\")) {\n InetAddress rpcAddress = row.getInet(\"rpc_address\");\n broadcastRpcAddress = new InetSocketAddress(rpcAddress, cluster.connectionFactory.getPort());\n }\n // Before CASSANDRA-9436, system.local doesn't have rpc_address, so this might be null. It's not\n // a big deal because we only use this for server events, and the control node doesn't receive\n // events for itself.\n host.setBroadcastRpcAddress(broadcastRpcAddress);\n\n InetSocketAddress broadcastSocketAddress = null;\n if (row.getColumnDefinitions().contains(\"peer\")) { // system.peers\n int broadcastPort =\n row.getColumnDefinitions().contains(\"peer_port\") ? row.getInt(\"peer_port\") : 0;\n broadcastSocketAddress = new InetSocketAddress(row.getInet(\"peer\"), broadcastPort);\n } else if (row.getColumnDefinitions().contains(\"broadcast_address\")) { // system.local\n int broadcastPort =\n row.getColumnDefinitions().contains(\"broadcast_port\") ? row.getInt(\"broadcast_port\") : 0;\n broadcastSocketAddress =\n new InetSocketAddress(row.getInet(\"broadcast_address\"), broadcastPort);\n }\n host.setBroadcastSocketAddress(broadcastSocketAddress);\n\n // in system.local only for C* versions >= 2.0.17, 2.1.8, 2.2.0 rc2,\n // not yet in system.peers as of C* 3.2\n InetSocketAddress listenAddress = null;\n if (row.getColumnDefinitions().contains(\"listen_address\")) {\n int listenPort =\n row.getColumnDefinitions().contains(\"listen_port\") ? row.getInt(\"listen_port\") : 0;\n listenAddress = new InetSocketAddress(row.getInet(\"listen_address\"), listenPort);\n }\n host.setListenSocketAddress(listenAddress);\n\n if (row.getColumnDefinitions().contains(\"workload\")) {\n String dseWorkload = row.getString(\"workload\");\n host.setDseWorkload(dseWorkload);\n }\n if (row.getColumnDefinitions().contains(\"graph\")) {\n boolean isDseGraph = row.getBool(\"graph\");\n host.setDseGraphEnabled(isDseGraph);\n }\n if (row.getColumnDefinitions().contains(\"dse_version\")) {\n String dseVersion = row.getString(\"dse_version\");\n host.setDseVersion(dseVersion);\n }\n host.setHostId(row.getUUID(\"host_id\"));\n host.setSchemaVersion(row.getUUID(\"schema_version\"));\n\n EndPoint endPoint = cluster.configuration.getPolicies().getEndPointFactory().create(row);\n if (endPoint != null) {\n host.setEndPoint(endPoint);\n }\n }",
"public abstract void check(ArrayList<Connection> c_list) throws Exception ;",
"public void test7(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n\n if(addr.getCanonicalHostName().startsWith(\"trustme.com\", 3)){ /* BUG */\n\n }\n }",
"public boolean isSetHost() {\r\n return this.host != null;\r\n }",
"public boolean isSetHost() {\r\n return this.host != null;\r\n }",
"public boolean isSetHost() {\r\n return this.host != null;\r\n }",
"public boolean isSetHost() {\r\n return this.host != null;\r\n }",
"public boolean isSetHost() {\r\n return this.host != null;\r\n }",
"public int checkNIC(String NIC) {\n try {\n con = (Connection) DriverManager.getConnection(url, this.usernamel, this.passwordl);\n String query = \"SELECT NIC FROM user\";\n pst = (com.mysql.jdbc.PreparedStatement) con.prepareStatement(query);\n rs = pst.executeQuery();\n while (rs.next()) {\n if (NIC.equals(rs.getString(1))) {\n return 0;\n\n }\n }\n return 1;\n\n } catch (Exception e) {\n //System.out.print(e);\n return 2;\n } finally {\n try {\n if (pst != null) {\n pst.close();\n }\n if (con != null) {\n con.close();\n }\n } catch (Exception e) {\n }\n\n }\n }",
"public boolean isSetHost() {\n return this.host != null;\n }",
"HrHBscCpuQos selectByPrimaryKey(String bscid, Date day, Integer hour);",
"private String lookup_ip (String host) throws LookupException\n , NameServerContactException{\n return lookup(host)[0];\n }",
"public void test10(HttpServletRequest request) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getHostName().endsWith(\"trustme.com\")){ /* BUG */\n\n }\n }",
"public boolean buscarServidor(String nomServidor){\n conectar();\n query=\"SELECT COUNT(*) as contador FROM ipServidor WHERE servidor='%s';\";\n query= String.format(query,nomServidor);\n try{\n if(miBaseDatos.executeQuery(query,\"respuesta\")){\n miBaseDatos.next(\"respuesta\");\n String aparece = miBaseDatos.getString(\"contador\",\"respuesta\");\n if(aparece.equals(\"1\")){\n return true;\n }else{\n return false;\n }\n }else{\n System.out.println(\"No se pudo hacer la consulta\");\n return false;\n }\n }catch(Exception e){\n System.out.println(e.getClass());\n System.out.println(e.getMessage());\n e.printStackTrace();\n return false;\n }\n }",
"public boolean testConnection(int keyToTest){\n if (connectedKeys.contains(keyToTest)){\n return true;\n }\n else{\n return false;\n }\n }",
"public M csmiStatusMin(Object min){this.put(\"csmiStatusMin\", min);return this;}",
"void insertSelective(HrHBscCpuQos record);",
"public boolean inAValidSequenceRange(PBFTServerMessage m){\n\n long seqn = m.getSequenceNumber();\n long low = getLCWM();\n long high = getHCWM();\n\n return seqn > low && seqn <= high;\n\n }",
"ServerName findDeployedHSI(Map<ServerName, List<String>> mm, HRegionInfo hri) {\n for (Map.Entry<ServerName,List <String>> e : mm.entrySet()) {\n if (e.getValue().contains(hri.getRegionNameAsString())) {\n return e.getKey();\n }\n }\n return null;\n }",
"boolean challengeStart (String pHostname, String pValue);",
"boolean isAllowClusterGet();",
"protected boolean pingFromMaster(String who) throws Throwable {\n Log.INFO(\"Attempting to ping \" + who + \" from the master node\");\n if (runSystemCommand(\n SSH_ROOT + adminVIP +\" \\\"\"+ PING + \" \" + who + \"\\\"\" ))\n {\n Log.INFO(who + \" is pingable\");\n return true;\n } else {\n Log.ERROR(who + \" is not pingable\");\n return false;\n }\n }",
"private boolean initDataOnHosts(String srcIP, String destIP)\t\n\t{\n\t\tSystem.out.println(\"######### In initDataOnHosts #############\");\n\t\tSwitchPort[] SwitchPort;\n\t\tboolean isHostSrcFound = false;\n\t\tboolean isHostDestFound = false;\n\t\t\n\t\t//Get all devices known by the controller.(device = host)\n\t\tCollection<? extends IDevice> alldevices = deviceManager.getAllDevices();\n\n\t\tfor (IDevice device : alldevices)\n\t\t{\n\t\t\tInteger [] deviceAssociatedIPv4Addr = device.getIPv4Addresses();\n\n\t\t\tif(deviceAssociatedIPv4Addr.length>0)\n\t\t\t{\n\t\t\t\tString assocIpv4Addr = IPv4.fromIPv4Address(deviceAssociatedIPv4Addr[0]);\n\n\t\t\t\tif(assocIpv4Addr.equals(srcIP))\n\t\t\t\t{\n\t\t\t\t\t//Get attachment points associated with the device\n\t\t\t\t\tSwitchPort = device.getAttachmentPoints();\n\t\t\t\t\tif(SwitchPort.length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tm_switchSrc =SwitchPort[0].getSwitchDPID();\n\t\t\t\t\t\tm_sourceMacAddr = device.getMACAddressString();\n\t\t\t\t\t\tm_switchSrcPortToHostSource =( short)SwitchPort[0].getPort();\n\t\t\t\t\t\tisHostSrcFound = true;\n\t\t\t\t\t\tSystem.out.println(\"######### Update src Host \"+\"switchId\"+m_switchSrc.toString()+ \"#############\");\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\telse if(assocIpv4Addr .equals(destIP))\n\t\t\t\t{\n\t\t\t\t\t//Get attachment points associated with the device\n\t\t\t\t\tSwitchPort =device.getAttachmentPoints();\n\t\t\t\t\tif(SwitchPort.length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tm_switchDst =SwitchPort[0].getSwitchDPID();\n\t\t\t\t\t\tm_destMacAddr = device.getMACAddressString();\n\t\t\t\t\t\tm_switchDstPortToHostTarget =(short)SwitchPort[0].getPort();\n\t\t\t\t\t\tisHostDestFound = true;\n\t\t\t\t\t\tSystem.out.println(\"######### Update dest Host \"+\"switchId\"+m_switchDst.toString()+ \"#############\");\n\t\t\t\t\t}\t\n\t\t\t\t}\t\t\t\t\n\t\t\t}\t\t\n\t\t}\n\t\tif(isHostSrcFound && isHostDestFound)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\t\n\t}",
"public boolean isSetHost() {\n return this.host != null;\n }",
"public boolean isRunOnHost() {\n return Mode.HOST == mode;\n }",
"public void test6(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().startsWith(\"trustme.com\")){ /* BUG */\n\n }\n }",
"public Boolean getHostNetwork() {\n return hostNetwork;\n }",
"boolean hasQueryPort();",
"public boolean findServerByHostName() {\n\t\tboolean success = false;\n\t\tthis.serverName = textUI.getString(\"What is the hostname of the server?\");\n\t\t\n\t\ttry {\n\t\t\tthis.serverAddress = NetworkLayer.getAdressByName(this.serverName); \n\t\t\tsuccess = true;\n\t\t} catch (UnknownHostException e) {\n\t\t\ttextUI.showError(\"Something went wrong while searching for host \" + this.serverName \n\t\t\t\t\t+ \": \" + e.getLocalizedMessage());\n\t\t} \n\t\t\n\t\treturn success;\n\t}",
"public void test2(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().endsWith(\"trustme.com\")){ /* BUG */\n\n }\n }",
"public boolean colonne(int c){\n\tint l=0;\n\tboolean trouve=false;\n\tObject tmp='@';\n\twhile(l<5 && !trouve){\n\t\tif(gc[l][c]==tmp)\n\t\t\ttrouve=true;\n\t\telse\n\t\t\tl++;\n\t}\n\treturn trouve;\n}",
"public Cliente[] findWhereColoniaEquals(String colonia) throws ClienteDaoException;",
"public boolean isHostReachable(String sIPAddress) {\n try {\n\n Process p1 = java.lang.Runtime.getRuntime().exec(\"ping \" + sIPAddress);\n int iRetVal = p1.waitFor();\n if (iRetVal == 0) {\n return true;\n } else {\n return false;\n }\n\n //InetAddress inet = InetAddress.getByName(sIPAddress);\n //return (inet.isReachable(5000) ? true : false);\n } catch (Exception e) {\n return false;\n }\n }",
"public interface PingHost {\n IcmpV4EchoReplyPacket ping(String host);\n}",
"Option<AcHost> findByKey(String key) throws Throwable;",
"public void test3(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().equals(\"trustme.com\")){ /* BUG */\n\n }\n }",
"private int lookup_port (String host) throws LookupException\n , NameServerContactException{\n return Integer.parseInt(lookup(host)[1]);\n }",
"List<ConnectionElement> findConnections(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String searchString,\n int startFrom,\n int pageSize,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;",
"public boolean isConnectedPort() {\n for (Tile t : getTile().getSurroundingTiles(1)) {\n if (!t.isLand() && t.isHighSeasConnected()) return true;\n }\n return false;\n }",
"String getIntegHost();",
"org.jacorb.imr.HostInfo[] list_hosts();",
"public void byeHost(Host aHost);",
"public static String look_for_any_node(final Context context,final String subnet) {\n String host;\n for (int i = 98; i < 255; i++) {\n host = subnet + i;\n try {\n MyClientTask myClientTask = new MyClientTask(\n context,\n NodeDB.getNode_db(context),\n host,\n 2121,\n new RequestObj(\"HeartBeat\", null).toString());\n String rs = myClientTask.sendData();\n\n if (rs.contains(\"HeartBeat\")){\n return host;\n }\n\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return null;\n\n }",
"void connected(InetAddress address, boolean isMine);",
"public MyPowerHost findHostForVm(Vm vm) {\n\t\t//找到第一个合适的host就返回\n\t\tfor (MyPowerHost host : this.<MyPowerHost> getHostList()) {\n\t\t\tif (host.isSuitableForVm(vm)) {\n\t\t\t\treturn host;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public HostSystem searchHostSystem(String hostIp) throws Exception{\r\n\t\tManagedEntity[] mes = new\r\n\t\t\t\tInventoryNavigator(_instance.getRootFolder()).searchManagedEntities(\"HostSystem\");\r\n\t\tfor (ManagedEntity managedEntity : mes) {\r\n\t\t\tHostSystem currHostSystem = (HostSystem)managedEntity;\r\n\t\t\tif(currHostSystem.getName().equals(hostIp))\r\n\t\t\t\treturn currHostSystem;\r\n\t\t}\r\n\t\tthrow new Exception(String.format(\"Host System with IP address : %s not found.\", hostIp));\r\n\t}",
"boolean hasXconnect(ConnectPoint cp);",
"private boolean isInRange(int c) {\n switch (border) {\n case between:\n return min <= c && c <= max;\n case min:\n return min <= c;\n case max:\n return c <= max;\n default:\n throw new IllegalStateException(\"Unexpected value: \" + border);\n }\n }",
"private boolean checkHostAddressesFieldsChanged() {\n boolean changed = false;\n for (final Host host : getBrowser().getClusterHosts()) {\n final GuiComboBox cb = addressComboBoxHash.get(host);\n if (cb == null) {\n continue;\n }\n final String haSaved = savedHostAddresses.get(host);\n final Object value = cb.getValue();\n if (!Tools.areEqual(haSaved, value)) {\n changed = true;\n }\n cb.setBackground(null, haSaved, false);\n }\n /* port */\n final GuiComboBox pcb = portComboBox;\n if (pcb != null) {\n if (!Tools.areEqual(savedPort, pcb.getValue())) {\n changed = true;\n }\n pcb.setBackground(null,\n savedPort,\n false);\n }\n return changed;\n }",
"Condition lessThanOrEqualTo(QueryParameter parameter, Object x);",
"boolean testConnection(RemoteService service);",
"String getHost();",
"boolean mo7389hm() throws RemoteException;",
"public void connectionCheck(Long sessionId);",
"private static void checkTouchpoint(DBConnection dbConnection,int id, String sshUserName, String sshUserPass, String server, boolean status) throws JSchException, IOException, InterruptedException{\n\t\t\n\t\tString owner= \"\";\t\t\n\t\tString sw = \"\";\n\t\tString swVersion= \"\";\n\t\tString os= \"\";\n\t\tString oracle= \"\";\n\t\tString jboss=\"\";\n\t\tString java=\"\";\n\t\t\t\n\t\t\n\n\t\tSSHClient tpHostSSHClient = new SSHClient();\n\t\t\n\t\tif (status){\n\t\n\t\t\t// Connect to the server\n\t\t\ttpHostSSHClient.connect(sshUserName, sshUserPass, server, SSH_PORT);\n\t\t\t\n\t\t\t//OS Version\n\t\t\tint exitCode = tpHostSSHClient.send(\"uname -a\");\n\t\t\tAssert.assertFalse(exitCode != 0, \"uname -a failed with exit code: \" + exitCode);\n\t\t\tos = ServerStatusUtils.parseOS(tpHostSSHClient.getLastResponse());\n\t\t\t\n\t\t\t//Check if Assure is installed\n\t\t\ttpHostSSHClient.send(\"cat /etc/passwd | grep assure | awk -F: '{ print $1 }'\");\n\t\t\tAssert.assertFalse(exitCode != 0, \"cat /etc/passwd | grep assure | awk -F: '{ print $1 }' a failed with exit code: \" + exitCode);\n\t\t\tsw=ServerStatusUtils.swInstalled(tpHostSSHClient.getLastResponse());\n\t\t\t\n\t\t\t//Assure Version\n\t\t\ttpHostSSHClient.send(\"assure version\");\n\t\t\tAssert.assertFalse(exitCode != 0, \"assure version failed with exit code: \" + exitCode);\n\t\t\tswVersion=ServerStatusUtils.parseAssureVersion(tpHostSSHClient.getLastResponse());\n\t\t\t\n\t\t\t//Owner\n\t\t\ttpHostSSHClient.send(\"cat /etc/motd |grep Current |cut -d \\\\[ -f 2 |cut -d \\\\] -f 1\");\n\t\t\tAssert.assertFalse(exitCode != 0, \"Check for owner failed with exit code: \" + exitCode);\n\t\t\towner=ServerStatusUtils.parseOwner(tpHostSSHClient.getLastResponse());\n\t\t\t\n\t\t\t//Oracle\n\t\t\ttpHostSSHClient.send(\"$ORACLE_HOME/bin/sqlplus -v |grep SQL\");\n\t\t\tAssert.assertFalse(exitCode != 0, \"Check for Oracle Version failed with exit code: \" + exitCode);\n\t\t\toracle=ServerStatusUtils.parseOracle(tpHostSSHClient.getLastResponse());\n\t\t\t\n\t\t\t//Jboss\n\t\t\ttpHostSSHClient.send(\" ls /opt/arantech/current/ |grep jboss- |grep -v client\");\n\t\t\tAssert.assertFalse(exitCode != 0, \"Check for Jboss failed with exit code: \" + exitCode);\n\t\t\tjboss=ServerStatusUtils.parseJboss(tpHostSSHClient.getLastResponse());\n\t\t\t\n\t\t\t//Java\n\t\t\ttpHostSSHClient.send(\"java -version\");\n\t\t\tAssert.assertFalse(exitCode != 0, \"Check for Oracle Version failed with exit code: \" + exitCode);\n\t\t\tjava=ServerStatusUtils.parseJava(tpHostSSHClient.getLastResponse());\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tServerStatusUtils.statusWriter(dbConnection, id, server, (status)?\"alive\":\"stopped\", os, sw, swVersion, owner, oracle, jboss, java);\n\n\t}",
"public void init(IMmsSettingsHost host) { \n if (getSimState() != TelephonyManager.SIM_STATE_ABSENT) {\n mMmsHost = host;\n \n if (querySmsParameter()) {\n Log.i(TAG, \"there has sms parameter data in regionalphonemanager database. \\n\");\n String lastTimeStamp = getSmsTimeStamp((Context)host);\n int compareRst = mTimeStamp.compareTo(lastTimeStamp);\n if (compareRst > 0) {\n host.setSmsValues(mValues);\n host.registerSmsStateReceiver();\n setSmsTimeStamp((Context)host, mTimeStamp);\n } \n } else {\n Log.i(TAG, \"there has not sms parameter data in regionalphonemanager databse. \\n\");\n Log.i(TAG, \"Register contentobserver to listen database change. \\n\");\n\t\t\t\tmObserver = new RegionalPhoneContentObserver(new Handler());\n mContext.getContentResolver().registerContentObserver(mUri, true, mObserver);\n }\n } \n }",
"private boolean isValidConstantPoolIndex(int cpIdx) {\n return (cpIdx > 0 && cpIdx <= numConstantPoolEntries);\n }",
"protected boolean supportsSecMecUSRSSBPWD()\n {\n return\n (\n ( clientType == DNC_CLIENT ) &&\n ( greaterThanOrEqualTo( 10, 2, 0 ) )\n );\n }",
"public void testSetHost() {\n }",
"public void setHost(HostAgent host){\n\tthis.host = host;\n }",
"public CmShainCQ queryCmShain() {\n return xdfgetConditionQueryCmShain();\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 }",
"boolean isIsRemote();",
"private boolean C4(SchedulingPlan plan) {\n for (int i = 0; i < sockets; i++) {\n if (!C4_socket(plan, i)) {\n return false;\n }\n }\n return true;\n }",
"public void test4(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().equalsIgnoreCase(\"trustme.com\")){ /* BUG */\n\n }\n }",
"boolean ping(String asker);",
"@Test(groups = \"Integration\")\n public void testIsSshableWhenTrue() throws Exception {\n assertTrue(host.isSshable());\n }",
"@SuppressWarnings(\"rawtypes\")\n public ManagedConnection matchManagedConnections(Set connectionSet,\n Subject subject, ConnectionRequestInfo cxRequestInfo)\n throws ResourceException { \n \n for(Object result : connectionSet){\n if (result instanceof VertxManagedConnection) {\n VertxManagedConnection vertMC = (VertxManagedConnection) result;\n if (this.equals(vertMC.getManagementConnectionFactory())) {\n return vertMC;\n }\n }\n }\n return null;\n }",
"Host getHostById(long aId) throws DaoException;",
"public abstract void queryRemoteCardInfo();"
] | [
"0.5555665",
"0.53444624",
"0.5235808",
"0.5235808",
"0.5220076",
"0.5172875",
"0.51007766",
"0.50724953",
"0.5004062",
"0.49978223",
"0.49238098",
"0.48870936",
"0.48493528",
"0.47793704",
"0.47461826",
"0.4730523",
"0.47266838",
"0.47166452",
"0.4713745",
"0.4711361",
"0.47046226",
"0.47046226",
"0.4691127",
"0.46862522",
"0.4683611",
"0.4672614",
"0.46714312",
"0.46647555",
"0.46397087",
"0.46091196",
"0.46071976",
"0.45907652",
"0.45884842",
"0.45802075",
"0.45802075",
"0.45802075",
"0.45802075",
"0.45802075",
"0.45727253",
"0.45667353",
"0.4559674",
"0.45549238",
"0.45367938",
"0.4535253",
"0.452653",
"0.45212615",
"0.4489329",
"0.44849244",
"0.44774663",
"0.4475873",
"0.44703066",
"0.44642872",
"0.4455312",
"0.4447351",
"0.444571",
"0.44256955",
"0.44247139",
"0.44127825",
"0.44109386",
"0.4405895",
"0.44058684",
"0.44034946",
"0.43984592",
"0.43983516",
"0.4377669",
"0.4377357",
"0.43758678",
"0.43714014",
"0.4369983",
"0.4366427",
"0.43634942",
"0.43557027",
"0.4350945",
"0.4348619",
"0.4342078",
"0.43376282",
"0.43273616",
"0.4326925",
"0.43214208",
"0.43129325",
"0.43101746",
"0.4295851",
"0.42946434",
"0.42896953",
"0.4287455",
"0.42833224",
"0.42815903",
"0.4280774",
"0.42778748",
"0.4277476",
"0.42755806",
"0.42746383",
"0.42732614",
"0.42702425",
"0.42696887",
"0.4268198",
"0.42644593",
"0.42600662",
"0.42593348",
"0.42573613"
] | 0.6040364 | 0 |
and csmi_host <= ? | public M csmiHostMax(Object max){this.put("csmiHostMax", max);return this;} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public M csmiHostMin(Object min){this.put(\"csmiHostMin\", min);return this;}",
"Computer findComputerByActiveTrueAndIpAndPort(String ip, int port);",
"private boolean isConnectedToPrimary(SRVRecord[] recs)\n\t{\n\t\tString primaryAddress = getPrimaryServerRecord(recs).getTarget();\n\t\tif (primaryAddress != null && primaryAddress.equals(currentAddress))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public M csmiHostNull(){if(this.get(\"csmiHostNot\")==null)this.put(\"csmiHostNot\", \"\");this.put(\"csmiHost\", null);return this;}",
"boolean resourceInHost(final Host host) {\n for (final DrbdVolumeInfo dvi : drbdVolumes) {\n for (final BlockDevInfo bdi : dvi.getBlockDevInfos()) {\n if (bdi.getHost() == host) {\n return true;\n }\n }\n }\n return false;\n }",
"boolean getIsVirtHost();",
"boolean hasHost();",
"boolean hasHost();",
"Switch getHostSwitch();",
"public M csseHostNull(){if(this.get(\"csseHostNot\")==null)this.put(\"csseHostNot\", \"\");this.put(\"csseHost\", null);return this;}",
"public void checkFreeness(String hostComp);",
"public abstract boolean isInGroup(String hostname);",
"private boolean checkConnection(int x1, int x2) {\n\t\treturn (xStartValue <= x1 && xEndValue >= x1) || (xStartValue <= x2 && xEndValue >= x2) ||\n\t\t\t\t(x1 <= xStartValue && x2 >= xStartValue) || (x1 <= xEndValue && x2 >= xEndValue);\n\t\t\n\t}",
"boolean canHostVirtualMachine(VirtualMachine vm) {\n return getLeftoverCPU().compareTo(vm.getCPU()) >= 0 &&\n getLeftoverMemory().compareTo(vm.getMemory()) >= 0 &&\n vm.canRunInPhysicalMachine(pm) &&\n (!vm.isAntiColocatable() ||\n !mapped_anti_coloc_job_ids.contains(new Integer(vm.getJobID())));\n }",
"boolean isCollectorHostLive(String clusterName, MetricsService service) throws SystemException;",
"HostingMode hostingMode();",
"void host(String host);",
"void host(String host);",
"Host getHost();",
"public int checkNIC(String NIC) {\n try {\n con = (Connection) DriverManager.getConnection(url, this.usernamel, this.passwordl);\n String query = \"SELECT NIC FROM user\";\n pst = (com.mysql.jdbc.PreparedStatement) con.prepareStatement(query);\n rs = pst.executeQuery();\n while (rs.next()) {\n if (NIC.equals(rs.getString(1))) {\n return 0;\n\n }\n }\n return 1;\n\n } catch (Exception e) {\n //System.out.print(e);\n return 2;\n } finally {\n try {\n if (pst != null) {\n pst.close();\n }\n if (con != null) {\n con.close();\n }\n } catch (Exception e) {\n }\n\n }\n }",
"boolean testCriticalPath(String[] criticalPath) {\n\t\tInetAddress addr = null;\n\t\tboolean result = true;\n\n\t\tThreadCategory log = log();\n\t\tlog.debug(\"Test critical path IP \" + criticalPath[0]);\n\t\ttry {\n\t\t\taddr = InetAddress.getByName(criticalPath[0]);\n\t\t} catch (UnknownHostException e) {\n\t\t\tlog.error(\"failed to convert string address to InetAddress \"\n\t\t\t\t\t+ criticalPath[0]);\n\t\t\treturn true;\n\t\t}\n\t\tIcmpPlugin p = new IcmpPlugin();\n\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t// map.put(\"retry\", new Long(OpennmsServerConfigFactory.getInstance()\n\t\t// .getDefaultCriticalPathRetries()));\n\t\t// map.put(\"timeout\", new Long(OpennmsServerConfigFactory.getInstance()\n\t\t// .getDefaultCriticalPathTimeout()));\n\n\t\tresult = p.isProtocolSupported(addr, map);\n\t\treturn result;\n\t}",
"boolean hasRemoteHost();",
"public boolean isSetHost() {\r\n return this.host != null;\r\n }",
"public boolean isSetHost() {\r\n return this.host != null;\r\n }",
"public boolean isSetHost() {\r\n return this.host != null;\r\n }",
"public boolean isSetHost() {\r\n return this.host != null;\r\n }",
"public boolean isSetHost() {\r\n return this.host != null;\r\n }",
"private boolean initDataOnHosts(String srcIP, String destIP)\t\n\t{\n\t\tSystem.out.println(\"######### In initDataOnHosts #############\");\n\t\tSwitchPort[] SwitchPort;\n\t\tboolean isHostSrcFound = false;\n\t\tboolean isHostDestFound = false;\n\t\t\n\t\t//Get all devices known by the controller.(device = host)\n\t\tCollection<? extends IDevice> alldevices = deviceManager.getAllDevices();\n\n\t\tfor (IDevice device : alldevices)\n\t\t{\n\t\t\tInteger [] deviceAssociatedIPv4Addr = device.getIPv4Addresses();\n\n\t\t\tif(deviceAssociatedIPv4Addr.length>0)\n\t\t\t{\n\t\t\t\tString assocIpv4Addr = IPv4.fromIPv4Address(deviceAssociatedIPv4Addr[0]);\n\n\t\t\t\tif(assocIpv4Addr.equals(srcIP))\n\t\t\t\t{\n\t\t\t\t\t//Get attachment points associated with the device\n\t\t\t\t\tSwitchPort = device.getAttachmentPoints();\n\t\t\t\t\tif(SwitchPort.length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tm_switchSrc =SwitchPort[0].getSwitchDPID();\n\t\t\t\t\t\tm_sourceMacAddr = device.getMACAddressString();\n\t\t\t\t\t\tm_switchSrcPortToHostSource =( short)SwitchPort[0].getPort();\n\t\t\t\t\t\tisHostSrcFound = true;\n\t\t\t\t\t\tSystem.out.println(\"######### Update src Host \"+\"switchId\"+m_switchSrc.toString()+ \"#############\");\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\telse if(assocIpv4Addr .equals(destIP))\n\t\t\t\t{\n\t\t\t\t\t//Get attachment points associated with the device\n\t\t\t\t\tSwitchPort =device.getAttachmentPoints();\n\t\t\t\t\tif(SwitchPort.length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tm_switchDst =SwitchPort[0].getSwitchDPID();\n\t\t\t\t\t\tm_destMacAddr = device.getMACAddressString();\n\t\t\t\t\t\tm_switchDstPortToHostTarget =(short)SwitchPort[0].getPort();\n\t\t\t\t\t\tisHostDestFound = true;\n\t\t\t\t\t\tSystem.out.println(\"######### Update dest Host \"+\"switchId\"+m_switchDst.toString()+ \"#############\");\n\t\t\t\t\t}\t\n\t\t\t\t}\t\t\t\t\n\t\t\t}\t\t\n\t\t}\n\t\tif(isHostSrcFound && isHostDestFound)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\t\n\t}",
"CTelnetServers selectByPrimaryKey(String ipAddress, String module, String ne);",
"private void runTcpScan()\n {\n String ipAddress = new NetworkInfrastructure().getLocalInetAddress().getHostAddress();\n\n //make sure we are on a private range...\n if(isPrivateIpRange(ipAddress))\n {\n // TODO: Check the sub-net mask for smaller than /24 to reduce possible hosts\n\n String range = ipAddress.substring(0, ipAddress.lastIndexOf('.') + 1);\n\n for (int i = 1; i < 255; i++) {\n try {\n\n // See if port is open - if it's not, an exception will bubble\n probeTcpPort(range + i, 80);\n\n // still here? its open lets see if IOTAS is on the host...\n probeIotasApi(range + i);\n\n }catch (JSONException e) {\n // Cant get JSON api probe failed\n } catch (UnknownHostException e) {\n // bad address - ignore\n } catch (SocketTimeoutException e) {\n // socket timeout - ignore\n } catch (IOException e) {\n // socket closed - ignore\n }\n }\n }\n\n log.info(\"Holiday TCP Scan Complete...\");\n }",
"@Override\n public int compare(Host h1, Host h2) {\n return (h1.getMaxAvailableMips() + h1.getRam()) > (h2.getMaxAvailableMips() + h2.getRam()) ? -1 : ((h1.getMaxAvailableMips() + h1.getRam()) < (h2.getMaxAvailableMips() + h2.getRam()) ? 1 : 0);\n }",
"public boolean isCollectorHostExternal(String clusterName);",
"public boolean isSetHost() {\n return this.host != null;\n }",
"public boolean testConnection(int keyToTest){\n if (connectedKeys.contains(keyToTest)){\n return true;\n }\n else{\n return false;\n }\n }",
"public abstract void check(ArrayList<Connection> c_list) throws Exception ;",
"public boolean colonne(int c){\n\tint l=0;\n\tboolean trouve=false;\n\tObject tmp='@';\n\twhile(l<5 && !trouve){\n\t\tif(gc[l][c]==tmp)\n\t\t\ttrouve=true;\n\t\telse\n\t\t\tl++;\n\t}\n\treturn trouve;\n}",
"private static void updateInfo(\n Host host, Row row, Cluster.Manager cluster, boolean isInitialConnection) {\n if (!row.isNull(\"data_center\") || !row.isNull(\"rack\"))\n updateLocationInfo(\n host, row.getString(\"data_center\"), row.getString(\"rack\"), isInitialConnection, cluster);\n\n String version = row.getString(\"release_version\");\n host.setVersion(version);\n\n // Before CASSANDRA-9436 local row did not contain any info about the host addresses.\n // After CASSANDRA-9436 (2.0.16, 2.1.6, 2.2.0 rc1) local row contains two new columns:\n // - broadcast_address\n // - rpc_address\n // After CASSANDRA-9603 (2.0.17, 2.1.8, 2.2.0 rc2) local row contains one more column:\n // - listen_address\n // After CASSANDRA-7544 (4.0) local row also contains:\n // - broadcast_port\n // - listen_port\n\n InetSocketAddress broadcastRpcAddress = null;\n if (row.getColumnDefinitions().contains(\"native_address\")) {\n InetAddress nativeAddress = row.getInet(\"native_address\");\n int nativePort = row.getInt(\"native_port\");\n broadcastRpcAddress = new InetSocketAddress(nativeAddress, nativePort);\n } else if (row.getColumnDefinitions().contains(\"native_transport_address\")) {\n // DSE 6.8 introduced native_transport_address and native_transport_port for the\n // listen address. Also included is native_transport_port_ssl (in case users\n // want to setup a different port for SSL and non-SSL conns).\n InetAddress nativeAddress = row.getInet(\"native_transport_address\");\n int nativePort = row.getInt(\"native_transport_port\");\n if (cluster.getCluster().getConfiguration().getProtocolOptions().getSSLOptions() != null\n && !row.isNull(\"native_transport_port_ssl\")) {\n nativePort = row.getInt(\"native_transport_port_ssl\");\n }\n broadcastRpcAddress = new InetSocketAddress(nativeAddress, nativePort);\n } else if (row.getColumnDefinitions().contains(\"rpc_address\")) {\n InetAddress rpcAddress = row.getInet(\"rpc_address\");\n broadcastRpcAddress = new InetSocketAddress(rpcAddress, cluster.connectionFactory.getPort());\n }\n // Before CASSANDRA-9436, system.local doesn't have rpc_address, so this might be null. It's not\n // a big deal because we only use this for server events, and the control node doesn't receive\n // events for itself.\n host.setBroadcastRpcAddress(broadcastRpcAddress);\n\n InetSocketAddress broadcastSocketAddress = null;\n if (row.getColumnDefinitions().contains(\"peer\")) { // system.peers\n int broadcastPort =\n row.getColumnDefinitions().contains(\"peer_port\") ? row.getInt(\"peer_port\") : 0;\n broadcastSocketAddress = new InetSocketAddress(row.getInet(\"peer\"), broadcastPort);\n } else if (row.getColumnDefinitions().contains(\"broadcast_address\")) { // system.local\n int broadcastPort =\n row.getColumnDefinitions().contains(\"broadcast_port\") ? row.getInt(\"broadcast_port\") : 0;\n broadcastSocketAddress =\n new InetSocketAddress(row.getInet(\"broadcast_address\"), broadcastPort);\n }\n host.setBroadcastSocketAddress(broadcastSocketAddress);\n\n // in system.local only for C* versions >= 2.0.17, 2.1.8, 2.2.0 rc2,\n // not yet in system.peers as of C* 3.2\n InetSocketAddress listenAddress = null;\n if (row.getColumnDefinitions().contains(\"listen_address\")) {\n int listenPort =\n row.getColumnDefinitions().contains(\"listen_port\") ? row.getInt(\"listen_port\") : 0;\n listenAddress = new InetSocketAddress(row.getInet(\"listen_address\"), listenPort);\n }\n host.setListenSocketAddress(listenAddress);\n\n if (row.getColumnDefinitions().contains(\"workload\")) {\n String dseWorkload = row.getString(\"workload\");\n host.setDseWorkload(dseWorkload);\n }\n if (row.getColumnDefinitions().contains(\"graph\")) {\n boolean isDseGraph = row.getBool(\"graph\");\n host.setDseGraphEnabled(isDseGraph);\n }\n if (row.getColumnDefinitions().contains(\"dse_version\")) {\n String dseVersion = row.getString(\"dse_version\");\n host.setDseVersion(dseVersion);\n }\n host.setHostId(row.getUUID(\"host_id\"));\n host.setSchemaVersion(row.getUUID(\"schema_version\"));\n\n EndPoint endPoint = cluster.configuration.getPolicies().getEndPointFactory().create(row);\n if (endPoint != null) {\n host.setEndPoint(endPoint);\n }\n }",
"boolean isAllowClusterGet();",
"boolean challengeStart (String pHostname, String pValue);",
"private void computeHSPhase(int i) {\n\t\t\n\t\tHostService hs = new HostService(this.myConnection,this.shareVariable,this.vList);\n\t\tint hostId;\n\t\tint serviceId;\n\t\tString hostServiceSource;\n\t\tboolean isDowntime;\n\t\tboolean previousState;\n\t\tboolean previousDowntime = false;\n\t\tint hostStatusStateFlag;\n\t\t//0 if previousState is not Outage\n\t\t//1 if previousState outage does not inherit from Hoststatus\n\t\t//2 if previousState outage inherit from Hoststatus\n\t\tint previousHoststatusStateFlag;\n\t\t//0 if previous downtime false and previous host service downtime bit = 0\n\t\t//1 if previous downtime true and previous host service downtime bit = 0\n\t\t//2 if previous downtime true and previous host service downtime bit = 1\n\t\tint previousDowntimeHostAndHostService;\n\t\t//Value of previous outage minute last bit before apply hoststatus mask\n\t\tint previousHSOutageBit =0;\n\t\t//Value of previous downtime minute last bit before apply hoststatus mask\n\t\tint previousHSDowntimeBit = 0;\n\t\tint availability;\n\t\tint state = 0;\n\t\tboolean executeHSStateLookup;\n\t\tboolean executeHSDowntimeLookup;\n\t\tint validatorId;\n\t\tint validatorType;\n\t\t\n\t\tfor(int j = 0; j < this.cPlanList.get(i).size(); j++)\n\t\t{\n\t\t\tvalidatorId = this.cPlanList.get(i).get(j);\n\t\t\t/**validatorType = -1 if validator is hostservice*/\n\t\t\tvalidatorType = this.vList.getHashMapValidator().get(validatorId).getIdApplication();\n\t\t\t\n\t\t\t//If validator is host service\n\t\t\tif(validatorType == -1) {\n\t\t\t hs = new HostService(this.myConnection,this.shareVariable,this.vList);\n\t\t\t\thostServiceSource = this.vList.getHashMapValidator().get(validatorId).getSource();\n\t\t\t\thostId = this.vList.getHashMapValidator().get(validatorId).getIdHost();\n\t\t\t\tserviceId = this.vList.getHashMapValidator().get(validatorId).getIdService();\n\t\t\t\tisDowntime = false;\t\n\t\t\t\thostStatusStateFlag = 0;\n\t\t\t\t\n\t\t\t\tpreviousHoststatusStateFlag = this.myConnection.getHSPreviousState(hostId,serviceId);\n\t\t\t\t\n\t\t\t\tif(previousHoststatusStateFlag != 0)\n\t\t\t\t\tthis.myConnection.getHSPreviousInternOutageEventNum(hostId, serviceId);\n\t\t\t\telse this.shareVariable.setInternOutageEventId(this.shareVariable.getEpochBegin());\n\t\t\t\t\n\t\t\t\tif(previousHoststatusStateFlag == 0) {\n\t\t\t\t\tpreviousState = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpreviousState = false;\n\t\t\t\t\tif(previousHoststatusStateFlag == 2) {\n\t\t\t\t\t\tpreviousHoststatusStateFlag = 1;\n\t\t\t\t\t\tpreviousHSOutageBit=0;\n\t\t\t\t\t}\n\t\t\t\t\telse if(previousHoststatusStateFlag == 1) {\n\t\t\t\t\t\tpreviousHoststatusStateFlag = 1;\n\t\t\t\t\t\tpreviousHSOutageBit=1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tpreviousDowntimeHostAndHostService = this.myConnection.getHSPreviousDowntime(hostId,serviceId);\n\t\t\t\tif(previousDowntimeHostAndHostService == 2) {\n\t\t\t\t\tpreviousDowntime = true;\n\t\t\t\t\tpreviousHSDowntimeBit = 1;\n\t\t\t\t}\n\t\t\t\telse if (previousDowntimeHostAndHostService == 1)\n\t\t\t\t{\n\t\t\t\t\tpreviousDowntime = true;\n\t\t\t\t\tpreviousHSDowntimeBit = 0;\n\t\t\t\t}\n\t\t\t\telse if (previousDowntimeHostAndHostService == 0)\n\t\t\t\t{\n\t\t\t\t\tpreviousDowntime = false;\n\t\t\t\t\tpreviousHSDowntimeBit = 0;\n\t\t\t\t}\n\t\t\t\tif(previousDowntime)\n\t\t\t\t\tthis.myConnection.getHSPreviousInternDowntimeEnventNum(hostId, serviceId);\n\t\t\t\telse this.shareVariable.setInternDowntimeEventId(this.shareVariable.getEpochEnd());\n\t\t\t\tavailability = 0;\n\t\t\t\tstate = 1;\n\t\t\t\t\n\t\t\t\ths.initializeDateMinuteStateArray();\n\t\t\t\texecuteHSStateLookup = this.myConnection.testHSOutage(hostId,serviceId,hs,previousState);\n\t\t\t\texecuteHSDowntimeLookup = this.myConnection.testHSDowntime(hostId,serviceId,hs);\n\t\t\t\t\n\t\t\t\t//warning\n\t\t\t\t/*if(hostId == 21 && serviceId == 46 and )\n\t\t\t\t\tSystem.out.print(\"\");*/\n\t\t\t\t\t\n\t\t\t\tint k = this.shareVariable.getEpochBegin();\n\t\t\t\t//Compute for each minute\n\t\t\t\t\n\t\t\t\tif((!previousState || executeHSStateLookup) && (previousDowntime || executeHSDowntimeLookup)) {\n\t\t\t\t\t\n\t\t\t\t\tthis.vList.getHashMapValidator().get(validatorId).setAreEventsOnPeriod(true);\n\t\t\t\t\t//initialisation de l'objet hs\n\t\t\t\t\ths.hostServiceInit(validatorId,hostServiceSource,hostId,serviceId,isDowntime,previousState,previousDowntime, availability, state, hostStatusStateFlag, previousHoststatusStateFlag,previousHSDowntimeBit, previousHSOutageBit);\n\t\t\t\t\t\n\t\t\t\t\t//Créer table log temporaire 1j /1 host service\n\t\t\t\t\tthis.myConnection.createTmpLogHSTable(hostId,serviceId);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t//Créer table log downtime temporaire 1j /1 host service\n\t\t\t\t\tthis.myConnection.createTmpLogDowntimeHSTable(hostId,serviceId);\n\t\t\t\t\t\n\t\t\t\t\ths.compute(this.shareVariable, 1);\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"I finish host \" + hostId + \" service \" + serviceId +\" which had downtime and outage\");\n\t\t\t\t}\n\t\t\t\telse if(!(!previousState || executeHSStateLookup) && (previousDowntime || executeHSDowntimeLookup))\n\t\t\t\t{\n\t\t\t\t\t//System.out.println(\"Create tmp host service downtime table \" + hostId + \" service \" + serviceId +\" which had downtime and outage\");\n\t\t\t\t\t\n\t\t\t\t\t//If there are not Outage event for this HS, there will be no computation on linked application\n\t\t\t\t\tthis.vList.getHashMapValidator().get(validatorId).setAreEventsOnPeriod(false);\n\t\t\t\t\t//initialisation de l'objet hs\n\t\t\t\t\ths.hostServiceInit(validatorId,hostServiceSource,hostId,serviceId,isDowntime,previousState,previousDowntime, availability, state, hostStatusStateFlag, previousHoststatusStateFlag,previousHSDowntimeBit,previousHSOutageBit);\n\t\t\t\t\t\n\t\t\t\t\t//Créer table log downtime temporaire 1j /1 host service\n\t\t\t\t\tthis.myConnection.createTmpLogDowntimeHSTable(hostId,serviceId);\n\t\t\t\t\t\n\t\t\t\t\ths.compute(this.shareVariable, 2);\n\t\t\t\t}\n\t\t\t\telse if((!previousState || executeHSStateLookup) && !(previousDowntime || executeHSDowntimeLookup))\n\t\t\t\t{\n\t\t\t\t\tthis.vList.getHashMapValidator().get(validatorId).setAreEventsOnPeriod(true);\n\t\t\t\t\t//initialisation de l'objet hs\n\t\t\t\t\ths.hostServiceInit(validatorId,hostServiceSource,hostId,serviceId,isDowntime,previousState,previousDowntime, availability, state, hostStatusStateFlag, previousHoststatusStateFlag,previousHSDowntimeBit,previousHSOutageBit);\n\t\t\t\t\t\n\t\t\t\t\t//Créer table log temporaire 1j /1 host service\n\t\t\t\t\tthis.myConnection.createTmpLogHSTable(hostId,serviceId);\n\t\t\t\t\t\n\t\t\t\t\ths.compute(this.shareVariable, 3);\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"I finish host \" + hostId + \" service \" + serviceId +\" which had no downtime but outage\");\n\t\t\t\t}\n\t\t\t\t//If there are not Outage event for this HS, there will be no computation on linked application\n\t\t\t\telse this.vList.getHashMapValidator().get(validatorId).setAreEventsOnPeriod(false);\n\t\t\t\t\n\t\t\t\t\t//System.out.println(\"I finish host \" + hostId + \" service \" + serviceId +\" which had no downtime and no outage\");\n\t\t\t\t\n\t\t\t\tthis.myConnection.dropDayLogHSTable();\n\t\t\t\tthis.myConnection.dropDayDowntimeLogHSTable();\n\t\t\t}\n\t\t\t// if validator is application\n\t\t\telse {\n\t\t\t\tthis.vList.getHashMapValidator().get(validatorId).compute();\n\t\t\t}\n\t\t}\n\t}",
"ServerName findDeployedHSI(Map<ServerName, List<String>> mm, HRegionInfo hri) {\n for (Map.Entry<ServerName,List <String>> e : mm.entrySet()) {\n if (e.getValue().contains(hri.getRegionNameAsString())) {\n return e.getKey();\n }\n }\n return null;\n }",
"public void test7(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n\n if(addr.getCanonicalHostName().startsWith(\"trustme.com\", 3)){ /* BUG */\n\n }\n }",
"public Boolean getHostNetwork() {\n return hostNetwork;\n }",
"public boolean isConnectedPort() {\n for (Tile t : getTile().getSurroundingTiles(1)) {\n if (!t.isLand() && t.isHighSeasConnected()) return true;\n }\n return false;\n }",
"String getIntegHost();",
"private String lookup_ip (String host) throws LookupException\n , NameServerContactException{\n return lookup(host)[0];\n }",
"public void test10(HttpServletRequest request) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getHostName().endsWith(\"trustme.com\")){ /* BUG */\n\n }\n }",
"public boolean isConfigServerHostLike() {\n return this == confighost || this == controllerhost;\n }",
"public boolean buscarServidor(String nomServidor){\n conectar();\n query=\"SELECT COUNT(*) as contador FROM ipServidor WHERE servidor='%s';\";\n query= String.format(query,nomServidor);\n try{\n if(miBaseDatos.executeQuery(query,\"respuesta\")){\n miBaseDatos.next(\"respuesta\");\n String aparece = miBaseDatos.getString(\"contador\",\"respuesta\");\n if(aparece.equals(\"1\")){\n return true;\n }else{\n return false;\n }\n }else{\n System.out.println(\"No se pudo hacer la consulta\");\n return false;\n }\n }catch(Exception e){\n System.out.println(e.getClass());\n System.out.println(e.getMessage());\n e.printStackTrace();\n return false;\n }\n }",
"public void test2(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().endsWith(\"trustme.com\")){ /* BUG */\n\n }\n }",
"public boolean isSetHost() {\n return this.host != null;\n }",
"public Cliente[] findWhereColoniaEquals(String colonia) throws ClienteDaoException;",
"@Override\n public boolean allocateHostForVm(Vm vm) {\n\n Collections.sort(this.<Host>getHostList(), new Comparator<Host>() {\n @Override\n public int compare(Host h1, Host h2) {\n // -1 - less than, 1 - greater than, 0 - equal, all inversed for descending\n return (h1.getMaxAvailableMips() + h1.getRam()) > (h2.getMaxAvailableMips() + h2.getRam()) ? -1 : ((h1.getMaxAvailableMips() + h1.getRam()) < (h2.getMaxAvailableMips() + h2.getRam()) ? 1 : 0);\n }\n });\n\n for (Host h : getHostList()) { // allocate the vm within the first host with enough resources\n if (h.vmCreate(vm)) {\n this.hoster.put(vm.getUid(), h);\n return true;\n }\n }\n return false;\n }",
"private boolean C4(SchedulingPlan plan) {\n for (int i = 0; i < sockets; i++) {\n if (!C4_socket(plan, i)) {\n return false;\n }\n }\n return true;\n }",
"int getMinAvailable(ClusterSpec clusterSpec);",
"public void test6(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().startsWith(\"trustme.com\")){ /* BUG */\n\n }\n }",
"public void test3(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().equals(\"trustme.com\")){ /* BUG */\n\n }\n }",
"public void hcClickOnHost(String hostIP)\r\n\t{\r\n\t\tString IP = hostIP.replace(\".\", \"\\\\.\");\r\n\t\tString host = \"#collectionView-hosts-card-\" +IP+ \"newCard\";\r\n\t\tString OVHP = \"#OVHP-host-\" + IP;\r\n\t\t\r\n\t\tclickOn(host);\r\n\t\twaitForElementVisible(OVHP);\t\r\n\t}",
"public boolean findServerByHostName() {\n\t\tboolean success = false;\n\t\tthis.serverName = textUI.getString(\"What is the hostname of the server?\");\n\t\t\n\t\ttry {\n\t\t\tthis.serverAddress = NetworkLayer.getAdressByName(this.serverName); \n\t\t\tsuccess = true;\n\t\t} catch (UnknownHostException e) {\n\t\t\ttextUI.showError(\"Something went wrong while searching for host \" + this.serverName \n\t\t\t\t\t+ \": \" + e.getLocalizedMessage());\n\t\t} \n\t\t\n\t\treturn success;\n\t}",
"protected boolean supportsSecMecUSRSSBPWD()\n {\n return\n (\n ( clientType == DNC_CLIENT ) &&\n ( greaterThanOrEqualTo( 10, 2, 0 ) )\n );\n }",
"public boolean isConnected(){\r\n return (id!=-1 && matlabEng!=null); \r\n }",
"public void testSetHost() {\n }",
"public String getBoxNetHost();",
"private int lookup_port (String host) throws LookupException\n , NameServerContactException{\n return Integer.parseInt(lookup(host)[1]);\n }",
"String getHost();",
"public static String look_for_any_node(final Context context,final String subnet) {\n String host;\n for (int i = 98; i < 255; i++) {\n host = subnet + i;\n try {\n MyClientTask myClientTask = new MyClientTask(\n context,\n NodeDB.getNode_db(context),\n host,\n 2121,\n new RequestObj(\"HeartBeat\", null).toString());\n String rs = myClientTask.sendData();\n\n if (rs.contains(\"HeartBeat\")){\n return host;\n }\n\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return null;\n\n }",
"void connected(InetAddress address, boolean isMine);",
"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 }",
"public boolean inAValidSequenceRange(PBFTServerMessage m){\n\n long seqn = m.getSequenceNumber();\n long low = getLCWM();\n long high = getHCWM();\n\n return seqn > low && seqn <= high;\n\n }",
"public boolean run(String connection) throws IOException {\n\t\tString Command = \"netsh interface ip set dns\" + \" \" + connection + \" \" + \"static \" + (routers.get(myServer)).get(0);\n\t\tProcess pross = rt.exec(Command);\n\t\tBufferedReader lines = new BufferedReader(new InputStreamReader(pross.getInputStream()));\n\t\tString s = lines.readLine();\n\t\tif(s.length()>0){\n\t\t\tCommand = \"netsh interface ip set dns\" + \" \" + connection + \" \" + \"static\" + \" \" + (routers.get(myServer)).get(1);\n\t\t\tpross = rt.exec(Command);\n\t\t\tlines = new BufferedReader(new InputStreamReader(pross.getInputStream()));\n\t\t\ts = lines.readLine();\n\t\t\tif(s.length()>0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\t\n\t}",
"private boolean isInRange(int a, int b, int c) {\n return c >= a ;\n }",
"java.lang.String getHost();",
"java.lang.String getHost();",
"@Test\n public void shouldGetHostAddress() {\n assertEquals(NE_IP, session.getAddress().getHostAddress());\n }",
"private boolean checkHostAddressesFieldsChanged() {\n boolean changed = false;\n for (final Host host : getBrowser().getClusterHosts()) {\n final GuiComboBox cb = addressComboBoxHash.get(host);\n if (cb == null) {\n continue;\n }\n final String haSaved = savedHostAddresses.get(host);\n final Object value = cb.getValue();\n if (!Tools.areEqual(haSaved, value)) {\n changed = true;\n }\n cb.setBackground(null, haSaved, false);\n }\n /* port */\n final GuiComboBox pcb = portComboBox;\n if (pcb != null) {\n if (!Tools.areEqual(savedPort, pcb.getValue())) {\n changed = true;\n }\n pcb.setBackground(null,\n savedPort,\n false);\n }\n return changed;\n }",
"public String connectedHost()\n {\n return connectedHost;\n }",
"public void setHost(HostAgent host){\n\tthis.host = host;\n }",
"public void test4(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().equalsIgnoreCase(\"trustme.com\")){ /* BUG */\n\n }\n }",
"private boolean isValidServerBasedAuthority(String host, int port, String userinfo) {\n \n // Check if the host is well formed.\n if (!isWellFormedAddress(host)) {\n return false;\n }\n \n // Check that port is well formed if it exists.\n // REVISIT: There's no restriction on port value ranges, but\n // perform the same check as in setPort to be consistent. Pass\n // in a string to this method instead of an integer.\n if (port < -1 || port > 65535) {\n return false;\n }\n \n // Check that userinfo is well formed if it exists.\n if (userinfo != null) {\n // Userinfo can contain alphanumerics, mark characters, escaped\n // and ';',':','&','=','+','$',','\n int index = 0;\n int end = userinfo.length();\n char testChar = '\\0';\n while (index < end) {\n testChar = userinfo.charAt(index);\n if (testChar == '%') {\n if (index+2 >= end ||\n !isHex(userinfo.charAt(index+1)) ||\n !isHex(userinfo.charAt(index+2))) {\n return false;\n }\n index += 2;\n }\n else if (!isUserinfoCharacter(testChar)) {\n return false;\n }\n ++index;\n }\n }\n return true;\n }",
"private boolean isValidConstantPoolIndex(int cpIdx) {\n return (cpIdx > 0 && cpIdx <= numConstantPoolEntries);\n }",
"public boolean isRunOnHost() {\n return Mode.HOST == mode;\n }",
"org.jacorb.imr.HostInfo[] list_hosts();",
"List<ConnectionElement> findConnections(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String searchString,\n int startFrom,\n int pageSize,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;",
"private static int catalogCompare(String line) {\r\n\r\n\t\tint ret = -1;\r\n\r\n\t\tif (line.equals(\"catalog.driver=\")) {\r\n\t\t\tret = 0;\r\n\t\t} else if (line.equals(\"catalog.hostname=\")) {\r\n\t\t\tret = 1;\r\n\t\t} else if (line.equals(\"catalog.username=\")) {\r\n\t\t\tret = 2;\r\n\t\t} else if (line.equals(\"catalog.passwd=\")) {\r\n\t\t\tret = 3;\r\n\t\t} else if (line.equals(\"numnodes=\")) {\r\n\t\t\tret = 4;\r\n\t\t}\r\n\r\n\t\treturn (ret);\r\n\t}",
"private FailoverConnectionMonitor(ProtocolProviderServiceJabberImpl provider)\n\t{\n\t\tthis.parentProvider = provider;\n\t\tthis.parentProvider.addRegistrationStateChangeListener(this);\n\n\t\t// checks for custom interval check configuration\n\t\tCHECK_FOR_PRIMARY_UP_INTERVAL = JabberActivator.getConfigurationService()\n\t\t\t\t.getInt(FAILOVER_CHECK_INTERVAL_PROP, CHECK_FOR_PRIMARY_UP_INTERVAL);\n\t}",
"public void init(IMmsSettingsHost host) { \n if (getSimState() != TelephonyManager.SIM_STATE_ABSENT) {\n mMmsHost = host;\n \n if (querySmsParameter()) {\n Log.i(TAG, \"there has sms parameter data in regionalphonemanager database. \\n\");\n String lastTimeStamp = getSmsTimeStamp((Context)host);\n int compareRst = mTimeStamp.compareTo(lastTimeStamp);\n if (compareRst > 0) {\n host.setSmsValues(mValues);\n host.registerSmsStateReceiver();\n setSmsTimeStamp((Context)host, mTimeStamp);\n } \n } else {\n Log.i(TAG, \"there has not sms parameter data in regionalphonemanager databse. \\n\");\n Log.i(TAG, \"Register contentobserver to listen database change. \\n\");\n\t\t\t\tmObserver = new RegionalPhoneContentObserver(new Handler());\n mContext.getContentResolver().registerContentObserver(mUri, true, mObserver);\n }\n } \n }",
"protected boolean pingFromMaster(String who) throws Throwable {\n Log.INFO(\"Attempting to ping \" + who + \" from the master node\");\n if (runSystemCommand(\n SSH_ROOT + adminVIP +\" \\\"\"+ PING + \" \" + who + \"\\\"\" ))\n {\n Log.INFO(who + \" is pingable\");\n return true;\n } else {\n Log.ERROR(who + \" is not pingable\");\n return false;\n }\n }",
"@SuppressWarnings(\"rawtypes\")\n public ManagedConnection matchManagedConnections(Set connectionSet,\n Subject subject, ConnectionRequestInfo cxRequestInfo)\n throws ResourceException { \n \n for(Object result : connectionSet){\n if (result instanceof VertxManagedConnection) {\n VertxManagedConnection vertMC = (VertxManagedConnection) result;\n if (this.equals(vertMC.getManagementConnectionFactory())) {\n return vertMC;\n }\n }\n }\n return null;\n }",
"boolean connected(int p, int q) {return false; /*mock*/}",
"boolean testConnection(RemoteService service);",
"Option<AcHost> findByKey(String key) throws Throwable;",
"boolean isIsRemote();",
"public void test8(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getParameter(\"domain\"));\n\n if(addr.getCanonicalHostName().endsWith(\"trustme.com\")){ /* BUG */\n\n }\n }",
"public String getHost();",
"public String getHost();",
"boolean hasCluster();",
"void EnableRemote (int boardID, short[] addrlist);",
"private boolean mAsClient(String sRemoteDeviceName) {\n return (sRemoteDeviceName.equals(sDeviceName));\n }",
"private boolean isControlPacket(Ethernet eth) {\n short type = eth.getEtherType();\n return type == Ethernet.TYPE_LLDP || type == Ethernet.TYPE_BSN;\n }",
"public M csmiStatusMin(Object min){this.put(\"csmiStatusMin\", min);return this;}"
] | [
"0.58827376",
"0.5528861",
"0.5449294",
"0.5379304",
"0.5245417",
"0.52267486",
"0.5144723",
"0.5144723",
"0.5088917",
"0.50806874",
"0.50546205",
"0.5001854",
"0.4915397",
"0.4896099",
"0.4819797",
"0.47579154",
"0.47364298",
"0.47364298",
"0.47293195",
"0.47195613",
"0.4697526",
"0.4694235",
"0.46792457",
"0.46792457",
"0.46792457",
"0.46792457",
"0.46792457",
"0.46758875",
"0.46751997",
"0.46645033",
"0.4661079",
"0.4655376",
"0.46511704",
"0.46495345",
"0.4646075",
"0.46408123",
"0.46356973",
"0.46354616",
"0.46274415",
"0.46254244",
"0.46244055",
"0.46020812",
"0.45825467",
"0.4581501",
"0.4580243",
"0.4578719",
"0.4577112",
"0.45676857",
"0.45370498",
"0.45320973",
"0.4524216",
"0.45223838",
"0.4521788",
"0.4518812",
"0.45076573",
"0.44976285",
"0.44946754",
"0.44863945",
"0.44836035",
"0.44801167",
"0.44660226",
"0.44574663",
"0.445725",
"0.44541365",
"0.44508758",
"0.44494984",
"0.4442354",
"0.44408777",
"0.44386473",
"0.44384763",
"0.44296038",
"0.44242167",
"0.44242167",
"0.44238123",
"0.44157034",
"0.4415447",
"0.4413445",
"0.44098794",
"0.4409606",
"0.43955278",
"0.43931618",
"0.4388078",
"0.43877324",
"0.43822137",
"0.43797866",
"0.43767115",
"0.4367286",
"0.43617645",
"0.43606257",
"0.43592012",
"0.4354057",
"0.43539557",
"0.4346542",
"0.43417963",
"0.43417963",
"0.43350646",
"0.43300667",
"0.432885",
"0.43283707",
"0.43280095"
] | 0.49579558 | 12 |
and csmi_name is null | public M csmiNameNull(){if(this.get("csmiNameNot")==null)this.put("csmiNameNot", "");this.put("csmiName", null);return this;} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public M csmiIdNull(){if(this.get(\"csmiIdNot\")==null)this.put(\"csmiIdNot\", \"\");this.put(\"csmiId\", null);return this;}",
"public M csolMemberNull(){if(this.get(\"csolMemberNot\")==null)this.put(\"csolMemberNot\", \"\");this.put(\"csolMember\", null);return this;}",
"public M csseIdNull(){if(this.get(\"csseIdNot\")==null)this.put(\"csseIdNot\", \"\");this.put(\"csseId\", null);return this;}",
"public M csolIdNull(){if(this.get(\"csolIdNot\")==null)this.put(\"csolIdNot\", \"\");this.put(\"csolId\", null);return this;}",
"public M csmiHostNull(){if(this.get(\"csmiHostNot\")==null)this.put(\"csmiHostNot\", \"\");this.put(\"csmiHost\", null);return this;}",
"public M csmiAddressNull(){if(this.get(\"csmiAddressNot\")==null)this.put(\"csmiAddressNot\", \"\");this.put(\"csmiAddress\", null);return this;}",
"public M csmiPersonNull(){if(this.get(\"csmiPersonNot\")==null)this.put(\"csmiPersonNot\", \"\");this.put(\"csmiPerson\", null);return this;}",
"public M cssePersonNull(){if(this.get(\"cssePersonNot\")==null)this.put(\"cssePersonNot\", \"\");this.put(\"cssePerson\", null);return this;}",
"public M csmiContactNull(){if(this.get(\"csmiContactNot\")==null)this.put(\"csmiContactNot\", \"\");this.put(\"csmiContact\", null);return this;}",
"public M csmiStatusNull(){if(this.get(\"csmiStatusNot\")==null)this.put(\"csmiStatusNot\", \"\");this.put(\"csmiStatus\", null);return this;}",
"public M csolFromNull(){if(this.get(\"csolFromNot\")==null)this.put(\"csolFromNot\", \"\");this.put(\"csolFrom\", null);return this;}",
"public boolean isSetCnName() {\n return this.cnName != null;\n }",
"public boolean isNotNullMcc() {\n return genClient.cacheValueIsNotNull(CacheKey.mcc);\n }",
"public M csolSrcNull(){if(this.get(\"csolSrcNot\")==null)this.put(\"csolSrcNot\", \"\");this.put(\"csolSrc\", null);return this;}",
"public M csseHostNull(){if(this.get(\"csseHostNot\")==null)this.put(\"csseHostNot\", \"\");this.put(\"csseHost\", null);return this;}",
"public M csseAddressNull(){if(this.get(\"csseAddressNot\")==null)this.put(\"csseAddressNot\", \"\");this.put(\"csseAddress\", null);return this;}",
"public M csmiDriverImageNull(){if(this.get(\"csmiDriverImageNot\")==null)this.put(\"csmiDriverImageNot\", \"\");this.put(\"csmiDriverImage\", null);return this;}",
"public M csseTypeNull(){if(this.get(\"csseTypeNot\")==null)this.put(\"csseTypeNot\", \"\");this.put(\"csseType\", null);return this;}",
"public M csmiDriverNumNull(){if(this.get(\"csmiDriverNumNot\")==null)this.put(\"csmiDriverNumNot\", \"\");this.put(\"csmiDriverNum\", null);return this;}",
"public M csmiCompanyNull(){if(this.get(\"csmiCompanyNot\")==null)this.put(\"csmiCompanyNot\", \"\");this.put(\"csmiCompany\", null);return this;}",
"public M csmiMemberIdNull(){if(this.get(\"csmiMemberIdNot\")==null)this.put(\"csmiMemberIdNot\", \"\");this.put(\"csmiMemberId\", null);return this;}",
"public M csseStatusNull(){if(this.get(\"csseStatusNot\")==null)this.put(\"csseStatusNot\", \"\");this.put(\"csseStatus\", null);return this;}",
"public M csseStartNull(){if(this.get(\"csseStartNot\")==null)this.put(\"csseStartNot\", \"\");this.put(\"csseStart\", null);return this;}",
"public M csmiNationNull(){if(this.get(\"csmiNationNot\")==null)this.put(\"csmiNationNot\", \"\");this.put(\"csmiNation\", null);return this;}",
"boolean getCampaignNameNull();",
"boolean getXAxisCharacteristicIdNull();",
"public M csseDescNull(){if(this.get(\"csseDescNot\")==null)this.put(\"csseDescNot\", \"\");this.put(\"csseDesc\", null);return this;}",
"public M csolTitleNull(){if(this.get(\"csolTitleNot\")==null)this.put(\"csolTitleNot\", \"\");this.put(\"csolTitle\", null);return this;}",
"public M csrtTypeNameNull(){if(this.get(\"csrtTypeNameNot\")==null)this.put(\"csrtTypeNameNot\", \"\");this.put(\"csrtTypeName\", null);return this;}",
"public M csmiOnCertifyImageNull(){if(this.get(\"csmiOnCertifyImageNot\")==null)this.put(\"csmiOnCertifyImageNot\", \"\");this.put(\"csmiOnCertifyImage\", null);return this;}",
"public M csrtIsIncomeNull(){if(this.get(\"csrtIsIncomeNot\")==null)this.put(\"csrtIsIncomeNot\", \"\");this.put(\"csrtIsIncome\", null);return this;}",
"public M csrtIdNull(){if(this.get(\"csrtIdNot\")==null)this.put(\"csrtIdNot\", \"\");this.put(\"csrtId\", null);return this;}",
"public M csseBattleNull(){if(this.get(\"csseBattleNot\")==null)this.put(\"csseBattleNot\", \"\");this.put(\"csseBattle\", null);return this;}",
"boolean getActiveNull();",
"public M csolRemarkNull(){if(this.get(\"csolRemarkNot\")==null)this.put(\"csolRemarkNot\", \"\");this.put(\"csolRemark\", null);return this;}",
"public M csmiCertifyTypeNull(){if(this.get(\"csmiCertifyTypeNot\")==null)this.put(\"csmiCertifyTypeNot\", \"\");this.put(\"csmiCertifyType\", null);return this;}",
"public M csmiRelationNull(){if(this.get(\"csmiRelationNot\")==null)this.put(\"csmiRelationNot\", \"\");this.put(\"csmiRelation\", null);return this;}",
"public M csmiCertifyImageNull(){if(this.get(\"csmiCertifyImageNot\")==null)this.put(\"csmiCertifyImageNot\", \"\");this.put(\"csmiCertifyImage\", null);return this;}",
"public M csseSubjectNull(){if(this.get(\"csseSubjectNot\")==null)this.put(\"csseSubjectNot\", \"\");this.put(\"csseSubject\", null);return this;}",
"public M csmiQqNull(){if(this.get(\"csmiQqNot\")==null)this.put(\"csmiQqNot\", \"\");this.put(\"csmiQq\", null);return this;}",
"boolean getValueCharacteristicIdNull();",
"public M csmiCheckPhotoNull(){if(this.get(\"csmiCheckPhotoNot\")==null)this.put(\"csmiCheckPhotoNot\", \"\");this.put(\"csmiCheckPhoto\", null);return this;}",
"public boolean isSetCardistrictname() {\n return this.cardistrictname != null;\n }",
"private static boolean checkCwpNameExists(String name, Object value) {\r\n\t\tList<?> boIds = QueryUtil.executeQuery(\r\n\t\t\t\t\"select bo.id from \" + Cwp.class.getSimpleName() + \" bo\", null, new FilterParams(\r\n\t\t\t\t\t\tname, value), AhRestoreNewMapTools.getonlyDomain().getId());\r\n\t\treturn !boIds.isEmpty();\r\n\t}",
"public M csmiSexNull(){if(this.get(\"csmiSexNot\")==null)this.put(\"csmiSexNot\", \"\");this.put(\"csmiSex\", null);return this;}",
"boolean getNodeCharacteristicIdNull();",
"boolean getSearchNodeCharacteristicIdsNull();",
"public boolean hasSRCCDCOPERNM() {\n return fieldSetFlags()[11];\n }",
"public void setS_c_n(String s_c_n) {\n this.s_c_n = s_c_n == null ? null : s_c_n.trim();\n }",
"public M csmiPlaceNull(){if(this.get(\"csmiPlaceNot\")==null)this.put(\"csmiPlaceNot\", \"\");this.put(\"csmiPlace\", null);return this;}",
"public Object getCustName() {\n\t\treturn null;\n\t}",
"public boolean hasSRCCDCOPERNM() {\n return fieldSetFlags()[13];\n }",
"private static boolean checkSsidNameExists(String name, Object value) {\r\n\t\tList<?> boIds = QueryUtil.executeQuery(\r\n\t\t\t\t\"select bo.id from \" + SsidProfile.class.getSimpleName() + \" bo\", null, new FilterParams(\r\n\t\t\t\t\t\tname, value), AhRestoreNewMapTools.getonlyDomain().getId());\r\n\t\treturn !boIds.isEmpty();\r\n\t}",
"public M cssePostionNull(){if(this.get(\"cssePostionNot\")==null)this.put(\"cssePostionNot\", \"\");this.put(\"cssePostion\", null);return this;}",
"public void setCname(String cname) {\r\n this.cname = cname == null ? null : cname.trim();\r\n }",
"public boolean isNull()\n\t{\n\t\treturn cp.isNull();\n\t}",
"@Override\n\tpublic String checkAccount(int idc) {\n\t\treturn null;\n\t}",
"boolean isSetNcbistdaa();",
"public void setcName(String cName) {\n this.cName = cName == null ? null : cName.trim();\n }",
"boolean hasClusterName();",
"public M csmiCertifyNumNull(){if(this.get(\"csmiCertifyNumNot\")==null)this.put(\"csmiCertifyNumNot\", \"\");this.put(\"csmiCertifyNum\", null);return this;}",
"public M csseRemarkNull(){if(this.get(\"csseRemarkNot\")==null)this.put(\"csseRemarkNot\", \"\");this.put(\"csseRemark\", null);return this;}",
"private boolean isComboBoxEmpty(String entry){\n return entry == null || entry.isBlank();\n }",
"public boolean hasC() {\n return c_ != null;\n }",
"boolean isNilPoolName();",
"public M csrtCanInvoiceNull(){if(this.get(\"csrtCanInvoiceNot\")==null)this.put(\"csrtCanInvoiceNot\", \"\");this.put(\"csrtCanInvoice\", null);return this;}",
"boolean getConditionListNull();",
"@Test\n public void testFindProviderEntryByName() throws ConnectionException {\n ProviderEntry result = MariaDbConnectorTest.instance.findProviderEntryByName(\"Waze\");\n assertTrue((result != null)&& (result.getName() != null) && !(result.getName().equals(\"\")) && (result.getName().length() != 0));\n }",
"private boolean contactHasNoName(String[] attributes, int numAttributes) {\n if (attributes[0].matches(\"\")) {\n return true;\n }\n return false;\n }",
"public M csrtStatusNull(){if(this.get(\"csrtStatusNot\")==null)this.put(\"csrtStatusNot\", \"\");this.put(\"csrtStatus\", null);return this;}",
"boolean getPersonCharacteristicIdsNull();",
"boolean getCharacteristicDescriptionNull();",
"public boolean hasSRCCDCOPERNM() {\n return fieldSetFlags()[16];\n }",
"public boolean isNameSet( ) {\n \t\t\treturn id == null;\n \t\t}",
"public M csseFinishNull(){if(this.get(\"csseFinishNot\")==null)this.put(\"csseFinishNot\", \"\");this.put(\"csseFinish\", null);return this;}",
"boolean isNilDisplayName();",
"public boolean isSetName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(NAME$2) != null;\r\n }\r\n }",
"@Override\n\tpublic DmcObject findUniqueObject(DmcObjectName name) {\n\t\treturn null;\n\t}",
"boolean getUnitIdNull();",
"public static String getSsosvc_name() {\treturn ssosvc_name; }",
"boolean isNullOmittable();",
"@Test\n public void getNullCompanyInfo() throws Exception {\n List<Stock> comps = quoteService.companiesByNameOrSymbol(TestConfiguration.NULL_QUOTE_SYMBOL);\n assertTrue(comps.isEmpty());\n }",
"public M csolEditorNull(){if(this.get(\"csolEditorNot\")==null)this.put(\"csolEditorNot\", \"\");this.put(\"csolEditor\", null);return this;}",
"public boolean isNilUniqueName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(UNIQUENAME$10, 0);\r\n if (target == null) return false;\r\n return target.isNil();\r\n }\r\n }",
"public M csrtSubjectNull(){if(this.get(\"csrtSubjectNot\")==null)this.put(\"csrtSubjectNot\", \"\");this.put(\"csrtSubject\", null);return this;}",
"@Test(timeout = 4000)\n public void test099() throws Throwable {\n DBCatalog dBCatalog0 = new DBCatalog(\"c56KWC#%&((\");\n DBSchema dBSchema0 = new DBSchema((String) null, dBCatalog0);\n String string0 = SQLUtil.ownerDotComponent(dBSchema0);\n assertEquals(\"c56KWC#%&((.null\", string0);\n }",
"String siToCcsdsName(String siName);",
"public static boolean isNCName(int c) {\n return c < 0x10000 && (CHARS[c] & MASK_NCNAME) != 0;\n }",
"boolean getProcedureNamesNull();",
"public static <C extends CharSequence> C nullIfEmpty(final C cs) {\n if (isNotEmpty(cs)) {\n return cs;\n }\n return null;\n }",
"public boolean isNotNullAccountName() {\n return genClient.cacheValueIsNotNull(CacheKey.accountName);\n }",
"public boolean isNotNullSredCode() {\n return genClient.cacheValueIsNotNull(CacheKey.sredCode);\n }",
"public M csmiUpdateTimeNull(){if(this.get(\"csmiUpdateTimeNot\")==null)this.put(\"csmiUpdateTimeNot\", \"\");this.put(\"csmiUpdateTime\", null);return this;}",
"@Test\n\tpublic void IscaseNameNotExist(){\n\t\tString caseName = \"Real 3D Cases\";\n\t\tboolean isExist;\n\t\ttry {\n\t\t\tisExist = CaseManagerValidator.isCaseNameExist(caseName);\n\t\t\tassertFalse(isExist);\n\t\t} catch (Exception e) {\n\t\t\tfail();\n\t\t}\n\t\t\n\t}",
"public boolean isNotNullPaymentProcessorName() {\n return genClient.cacheValueIsNotNull(CacheKey.paymentProcessorName);\n }",
"@Test\n public void testFindProviderEntryByID() throws ConnectionException {\n ProviderEntry result = MariaDbConnectorTest.instance.findProviderEntryByID(1);\n assertTrue((result != null)&& (result.getName() != null) && !(result.getName().equals(\"\")) && (result.getName().length() != 0));\n }",
"public boolean isSetCity_ename() {\n return this.city_ename != null;\n }",
"boolean isNilIsManaged();",
"boolean isNull();",
"public boolean isSetCnsCidadao() {\n return this.cnsCidadao != null;\n }"
] | [
"0.62693775",
"0.6153192",
"0.6022289",
"0.5986273",
"0.5965861",
"0.59644693",
"0.59512395",
"0.591874",
"0.5874585",
"0.5852563",
"0.5822733",
"0.5821558",
"0.5733831",
"0.5669997",
"0.56693715",
"0.56631356",
"0.56338376",
"0.5630527",
"0.56263745",
"0.56210256",
"0.55784553",
"0.5577482",
"0.5556304",
"0.5553585",
"0.5527479",
"0.54913104",
"0.54670703",
"0.5412666",
"0.53738534",
"0.53564173",
"0.5343675",
"0.53271437",
"0.5316047",
"0.5299072",
"0.5279923",
"0.5277353",
"0.5245727",
"0.52416945",
"0.5221698",
"0.52189195",
"0.5213894",
"0.5212747",
"0.51921725",
"0.51734877",
"0.51720715",
"0.5150829",
"0.51355296",
"0.51224667",
"0.5113524",
"0.50964695",
"0.5089167",
"0.5088198",
"0.50857955",
"0.507528",
"0.5071356",
"0.5059709",
"0.5046084",
"0.50418746",
"0.50400984",
"0.50329536",
"0.5014779",
"0.5012365",
"0.5010123",
"0.5010059",
"0.5001778",
"0.49955666",
"0.4972165",
"0.49458796",
"0.49341",
"0.49322122",
"0.49287543",
"0.49181765",
"0.4917456",
"0.49135184",
"0.49119648",
"0.49106622",
"0.4909159",
"0.49045712",
"0.4901718",
"0.4901347",
"0.4900058",
"0.48977944",
"0.48912477",
"0.48779365",
"0.48582783",
"0.4853768",
"0.48428127",
"0.48361284",
"0.48319873",
"0.48124793",
"0.4803944",
"0.4795671",
"0.47933394",
"0.47820774",
"0.47772816",
"0.47756115",
"0.47687674",
"0.4765507",
"0.4762805",
"0.47573042"
] | 0.72297937 | 0 |
and csmi_member_id is null | public M csmiMemberIdNull(){if(this.get("csmiMemberIdNot")==null)this.put("csmiMemberIdNot", "");this.put("csmiMemberId", null);return this;} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public M csolMemberNull(){if(this.get(\"csolMemberNot\")==null)this.put(\"csolMemberNot\", \"\");this.put(\"csolMember\", null);return this;}",
"@Test\r\n public void lookProfileByNull() {\n assertNull(Activity.find(\"select a from Activity a where a.member = ?\", member).first());\r\n\r\n // A not connected user looked at member profile\r\n member.lookedBy(null);\r\n \r\n // Still no activity for member\r\n assertNull(Activity.find(\"select a from Activity a where a.member = ?\", member).first());\r\n }",
"public M csmiIdNull(){if(this.get(\"csmiIdNot\")==null)this.put(\"csmiIdNot\", \"\");this.put(\"csmiId\", null);return this;}",
"public void setMemberID(String memberID){ this.memberID=memberID; }",
"public void setMember_id(String member_id) {\r\n this.member_id = member_id;\r\n }",
"public void setMember_id(String member_id) {\r\n this.member_id = member_id;\r\n }",
"@Override\n\tpublic Member findMemberId(long memberId) {\n\t\treturn null;\n\t}",
"boolean getCampaignIdNull();",
"public M csseIdNull(){if(this.get(\"csseIdNot\")==null)this.put(\"csseIdNot\", \"\");this.put(\"csseId\", null);return this;}",
"public M csmiPersonNull(){if(this.get(\"csmiPersonNot\")==null)this.put(\"csmiPersonNot\", \"\");this.put(\"csmiPerson\", null);return this;}",
"public M csmiContactNull(){if(this.get(\"csmiContactNot\")==null)this.put(\"csmiContactNot\", \"\");this.put(\"csmiContact\", null);return this;}",
"public boolean isNotComingToChurch(Member member) {\n int weekCounter = 4; //the default\n SystemVar var = (systemVarService.getSystemVarByNameUnique(Constants.NUMBER_OF_WEEKS_TO_RENDER_INACTIVE));\n if (var != null && !StringUtils.isEmpty(var.getValue())) {\n weekCounter = Integer.parseInt(var.getValue());\n logger.debug(\"using configured inactivity week counter : \" + weekCounter);\n }\n DateRange dateRange = Utils.goBackXWeeks(new Date(), weekCounter);\n //now check if this member has any event logs for him during this period\n List<EventLog> logs = eventService.getEventLogsByMemberandDateRange(member, dateRange);\n logger.debug(\"found \" + logs.size() + \" event logs for \" + member.getFullName());\n\n if (logs.isEmpty())\n return true;\n return false;\n\n }",
"public M csolIdNull(){if(this.get(\"csolIdNot\")==null)this.put(\"csolIdNot\", \"\");this.put(\"csolId\", null);return this;}",
"@Override\n\tpublic Member getMember(int id) {\n\t\treturn null;\n\t}",
"public M cssePersonNull(){if(this.get(\"cssePersonNot\")==null)this.put(\"cssePersonNot\", \"\");this.put(\"cssePerson\", null);return this;}",
"public void setMemberid(String memberid) {\n\t\tthis.memberid = memberid;\n\t}",
"public boolean existsMember(final String id);",
"public UcMember(Integer id, Date createdAt, String creator, String modifier, Date updatedAt, Integer memberInfoId, Integer expertId, Integer enterpriseId, String nickname, String title, Byte sex, Integer age, Date birthday, String mobile, String email, String qq, String photo, Integer provinceId, Integer cityId, Integer countryId, String introduce, String remark, Integer visitCount, Integer dayVisitCount, Date dayVisitTime, Byte deleteFlag, Byte disableFlag, Byte mobileVerifyFlag, Byte emailVerifyFlag, Byte auditFlag, Byte openConcatFlag, Byte showFlag, Byte emailRemindFlag, Byte blogFlag, Byte realnameAuditStatus, String auditReason, Byte expertAuditStatus, Byte expertInfoAuditStatus, Byte enterpriseAuditStatus, Byte enterpriseInfoAuditStatus, Byte modFlag, Date resModUpdate, Integer safeScore, Integer safeNextId, Byte vipLevel, Date vipStartdate, Date vipEnddate) {\n this.id = id;\n this.createdAt = createdAt;\n this.creator = creator;\n this.modifier = modifier;\n this.updatedAt = updatedAt;\n this.memberInfoId = memberInfoId;\n this.expertId = expertId;\n this.enterpriseId = enterpriseId;\n this.nickname = nickname;\n this.title = title;\n this.sex = sex;\n this.age = age;\n this.birthday = birthday;\n this.mobile = mobile;\n this.email = email;\n this.qq = qq;\n this.photo = photo;\n this.provinceId = provinceId;\n this.cityId = cityId;\n this.countryId = countryId;\n this.introduce = introduce;\n this.remark = remark;\n this.visitCount = visitCount;\n this.dayVisitCount = dayVisitCount;\n this.dayVisitTime = dayVisitTime;\n this.deleteFlag = deleteFlag;\n this.disableFlag = disableFlag;\n this.mobileVerifyFlag = mobileVerifyFlag;\n this.emailVerifyFlag = emailVerifyFlag;\n this.auditFlag = auditFlag;\n this.openConcatFlag = openConcatFlag;\n this.showFlag = showFlag;\n this.emailRemindFlag = emailRemindFlag;\n this.blogFlag = blogFlag;\n this.realnameAuditStatus = realnameAuditStatus;\n this.auditReason = auditReason;\n this.expertAuditStatus = expertAuditStatus;\n this.expertInfoAuditStatus = expertInfoAuditStatus;\n this.enterpriseAuditStatus = enterpriseAuditStatus;\n this.enterpriseInfoAuditStatus = enterpriseInfoAuditStatus;\n this.modFlag = modFlag;\n this.resModUpdate = resModUpdate;\n this.safeScore = safeScore;\n this.safeNextId = safeNextId;\n this.vipLevel = vipLevel;\n this.vipStartdate = vipStartdate;\n this.vipEnddate = vipEnddate;\n }",
"public M csrtIdNull(){if(this.get(\"csrtIdNot\")==null)this.put(\"csrtIdNot\", \"\");this.put(\"csrtId\", null);return this;}",
"@Override\n\tpublic MemberBean findById(MemberBean member) {\n\t\treturn null;\n\t}",
"public boolean isNotNullMcc() {\n return genClient.cacheValueIsNotNull(CacheKey.mcc);\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof MemMemberShipMaster)) {\n return false;\n }\n MemMemberShipMaster other = (MemMemberShipMaster) object;\n if ((this.nMemberID == null && other.nMemberID != null) || (this.nMemberID != null && !this.nMemberID.equals(other.nMemberID))) {\n return false;\n }\n return true;\n }",
"@Test\r\n public void lookProfileByOwner() {\n assertNull(Activity.find(\"select a from Activity a where a.member = ?\", member).first());\r\n\r\n // Our member looked at his own profile\r\n member.lookedBy(member);\r\n \r\n // Still no activity for member\r\n assertNull(Activity.find(\"select a from Activity a where a.member = ?\", member).first());\r\n }",
"@Override\n\tpublic List<Member> findMemberFirstname(String memberFirstname) {\n\t\treturn null;\n\t}",
"boolean isMember();",
"public M csrtCanInvoiceNull(){if(this.get(\"csrtCanInvoiceNot\")==null)this.put(\"csrtCanInvoiceNot\", \"\");this.put(\"csrtCanInvoice\", null);return this;}",
"public void setMemberId(String memberId) {\n this.memberId = memberId == null ? null : memberId.trim();\n }",
"public void setMemberId(String memberId) {\n this.memberId = memberId == null ? null : memberId.trim();\n }",
"boolean getForumIdNull();",
"List<S> memberOf(String memberUuid);",
"public String getMember_id() {\r\n return member_id;\r\n }",
"public String getMember_id() {\r\n return member_id;\r\n }",
"boolean getXAxisCharacteristicIdNull();",
"public ParseTreeNode visit(MemberNode memberNode) {\n return null;\n }",
"public M csmiStatusNull(){if(this.get(\"csmiStatusNot\")==null)this.put(\"csmiStatusNot\", \"\");this.put(\"csmiStatus\", null);return this;}",
"public M csmiNameNull(){if(this.get(\"csmiNameNot\")==null)this.put(\"csmiNameNot\", \"\");this.put(\"csmiName\", null);return this;}",
"public M csmiAddressNull(){if(this.get(\"csmiAddressNot\")==null)this.put(\"csmiAddressNot\", \"\");this.put(\"csmiAddress\", null);return this;}",
"public Member searchMemberByMemberId(List<Member> members,Long memberId) throws WorkShopException {\n try {\n for (Member member : members) {\n if (member.getMemberId().equals(memberId)) {\n return member;\n }\n }\n } catch (Exception e) {\n throw new WorkShopException(e);\n }\n return null;\n }",
"@Test\n public void getHeapCriticalMembersFrom_WithEmptyCriticalMembersReturnsEmptySet() {\n getHeapCriticalMembersFrom_returnsEmptySet(Collections.emptySet(), memberSet);\n }",
"boolean getNodeCharacteristicIdNull();",
"@Test\n\tpublic void testIsMember() {\n\t\tresetTestVars();\n\t\t\n\t\tassertFalse(\"Nothing in list\", sn.isMember(\"Hello\"));\n\t\tuser1.setID(\"1\");\n\t\tsn.addUser(user1);\n\t\tassertTrue(\"User with given ID exists\", sn.isMember(\"1\"));\n\t}",
"public M csrtIsIncomeNull(){if(this.get(\"csrtIsIncomeNot\")==null)this.put(\"csrtIsIncomeNot\", \"\");this.put(\"csrtIsIncome\", null);return this;}",
"boolean hasCampaignId();",
"boolean hasCampaignId();",
"@Test\r\n public void NegativeTestisMember1() {\r\n Assert.assertNotEquals(true, set1.isMember(10));\r\n }",
"public Boolean sismember(final String key, final String member) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n Boolean sismember = jedis.sismember(key, member);\n return sismember;\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }",
"public void setMemberId(Integer memberId) {\n this.memberId = memberId;\n }",
"public void setMemberId(Integer memberId) {\n this.memberId = memberId;\n }",
"@Override\n\tpublic List<Member> getMemberList() {\n\t\treturn null;\n\t}",
"boolean getPersonCharacteristicIdsNull();",
"boolean getUnitIdNull();",
"public M csmiRelationNull(){if(this.get(\"csmiRelationNot\")==null)this.put(\"csmiRelationNot\", \"\");this.put(\"csmiRelation\", null);return this;}",
"protected boolean isValid(AccessUser obj)\n {\n return obj != null && obj.username != null && !getMembers().contains(obj);\n }",
"private void getHeapCriticalMembersFrom_returnsEmptySet(Set adviseCriticalMembers, Set argSet) {\n when(resourceAdvisor.adviseCriticalMembers()).thenReturn(adviseCriticalMembers);\n\n Set<DistributedMember> criticalMembers = heapMonitor.getHeapCriticalMembersFrom(argSet);\n\n assertThat(criticalMembers).isEmpty();\n }",
"boolean getSearchNodeCharacteristicIdsNull();",
"boolean isMember(Item item) throws AccessManagementException;",
"public MemberCQ queryMember() {\n return xdfgetConditionQueryMember();\n }",
"public Object getMemberId() {\n\t\treturn null;\n\t}",
"public void unassignedMembers() {\n \n unassignedMembers.clear();\n PersistenceManager pm = PMF.get().getPersistenceManager();\n Iterator iter = mMemberCurrentLocation.entrySet().iterator();\n while (iter.hasNext()) {\n Entry<Long, Tracking> pairs = (Entry<Long, Tracking>)iter.next();\n if (pairs.getValue().getresponseType().equalsIgnoreCase(\"manuallyAddMember\")) {\n Member m = pm.getObjectById(Member.class, pairs.getKey());\n unassignedMembers.add(m); \n iter.remove();\n }\n }\n System.out.println(\"unassigned members qty: \" + unassignedMembers.size());\n System.out.println(\"Exit: unassignedMembers\");\n \n }",
"public boolean isNotNullMid() {\n return genClient.cacheValueIsNotNull(CacheKey.mid);\n }",
"boolean containsCreature(Creature creature) {\n/* 1585 */ return (this.creatures != null && this.creatures.contains(creature));\n/* */ }",
"public void setMemberId(String string) {\n\t\t\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof EmProjectMemberDto)) {\n return false;\n }\n EmProjectMemberDto other = (EmProjectMemberDto) object;\n if ((this.projectMemberId == null && other.projectMemberId != null) || (this.projectMemberId != null && !this.projectMemberId.equals(other.projectMemberId))) {\n return false;\n }\n return true;\n }",
"@Override\n\tpublic MemberDTO confirmMember(MemberDTO mdto) {\n\t\treturn mdao.getMember(mdto);\n\t}",
"@Override\n\tpublic MemberVO idCheck(String userid) {\n\t\treturn sqlSession.selectOne(\"com.coderdy.myapp.member.dao.mapper.MemberMapper.idCheck\", userid);\n\t}",
"int insertSelective(UcMembers record);",
"boolean getOrderPersonIdNull();",
"public void setMemberId(Integer memberId) {\n\t\tthis.memberId = memberId;\n\t}",
"protected void checkMember(final String dn) {\n\t\tCacheGroup group = cacheGroupRepository.findByNameExpected(\"ligoj-gStack\");\n\t\tList<CacheMembership> members = cacheMembershipRepository.findAllBy(\"group\", group);\n\t\tAssertions.assertEquals(1, members.size());\n\t\tAssertions.assertEquals(dn, members.get(0).getGroup().getDescription());\n\t}",
"public boolean getCampaignIdNull() {\n return campaignIdNull_;\n }",
"@Override\n\tpublic long countMemberExcep() {\n\t\treturn 0;\n\t}",
"public boolean isIdPermisosNull()\r\n\t{\r\n\t\treturn idPermisosNull;\r\n\t}",
"public boolean isNotTithing(Member member){\n int weekCounter = 4; //the default\n SystemVar var = (systemVarService.getSystemVarByNameUnique(Constants.NUMBER_OF_WEEKS_TO_RENDER_INACTIVE));\n if (var != null && !StringUtils.isEmpty(var.getValue())) {\n weekCounter = Integer.parseInt(var.getValue());\n logger.debug(\"using configured inactivity week counter : \" + weekCounter);\n }\n DateRange dateRange = Utils.goBackXWeeks(new Date(), weekCounter);\n\n //Now look for financial transactions for the specified period\n List<Transaction> transactions = txnService.getTithesByMemberAndDateRange(member, dateRange);\n\n if (transactions.isEmpty())\n return true;\n return false;\n }",
"public M csmiNationNull(){if(this.get(\"csmiNationNot\")==null)this.put(\"csmiNationNot\", \"\");this.put(\"csmiNation\", null);return this;}",
"private boolean checkUserNameExists(ArrayList<Member> members) throws Exception {\nfor(Member member:members) {\nif(this.userName.equals(member.userName)){\nreturn true;\n}\n}\nreturn false;\n}",
"public M csolFromNull(){if(this.get(\"csolFromNot\")==null)this.put(\"csolFromNot\", \"\");this.put(\"csolFrom\", null);return this;}",
"@Override\n\tpublic Member findMemberEmailAndMemberPassword(String memberEmail, String memberPassword) {\n\t\treturn null;\n\t}",
"public M csseBattleNull(){if(this.get(\"csseBattleNot\")==null)this.put(\"csseBattleNot\", \"\");this.put(\"csseBattle\", null);return this;}",
"public void testGetModificationUserMatchCriteriaNullUser() {\r\n try {\r\n FieldMatchCriteria.getModificationUserMatchCriteria(null);\r\n fail(\"testGetModificationUserMatchCriteriaNullUser is failure.\");\r\n } catch (IllegalArgumentException iae) {\r\n // pass\r\n } catch (Exception e) {\r\n fail(\"testGetModificationUserMatchCriteriaNullUser is failure.\");\r\n }\r\n }",
"public Member getMember(int memberId) {\r\n\t\tfor(Member m : members) {\r\n\t\t\tif(m.getMemberNumber() == memberId) {\r\n\t\t\t\treturn m;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"public M csseSubjectNull(){if(this.get(\"csseSubjectNot\")==null)this.put(\"csseSubjectNot\", \"\");this.put(\"csseSubject\", null);return this;}",
"@Override\n\tpublic SnsMemberVO selectSnsMember(String sns_id) {\n\t\treturn (SnsMemberVO) sqlSession.selectOne(\"com.coderdy.myapp.member.dao.mapper.MemberMapper.selectSnsMember\",\n\t\t\t\tsns_id);\n\t}",
"@Override\n\tpublic boolean updateMember(MemberDTO member) {\n\t\treturn false;\n\t}",
"@Override\n public List<Object> getGroupMember(Map<String, Object> condition) {\n return null;\n }",
"public String getMemberid() {\n\t\treturn memberid;\n\t}",
"public boolean hasCampaignId() {\n return campaignId_ != null;\n }",
"public boolean hasCampaignId() {\n return campaignId_ != null;\n }",
"public boolean isEmpty() {\n\t\treturn members == 0;\n\t}",
"public boolean getCampaignIdNull() {\n return campaignIdNull_;\n }",
"@Override\r\n\tpublic Member getMemberByPin(String pinMember) {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tQuery query = session.createQuery(\"FROM Member WHERE pinMember =:pinMember\");\r\n\t\tquery.setString(\"pinMember\", pinMember);\r\n\t\tList<Member> member = query.list();\r\n\t\tif(!member.isEmpty())\r\n\t\treturn member.get(0);\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}",
"public M csmiMemberIdMin(Object min){this.put(\"csmiMemberIdMin\", min);return this;}",
"boolean hasBusinessCircleId();",
"public void testNullBlogOwners() {\n rootBlog.removeProperty(SimpleBlog.BLOG_OWNERS_KEY);\n assertEquals(null, rootBlog.getBlogOwners());\n\n Collection users = rootBlog.getUsersInRole(Constants.BLOG_OWNER_ROLE);\n assertEquals(0, users.size());\n }",
"@Override\n\tpublic NurseBean[] nurselist(MemberBean member) {\n\t\treturn null;\n\t}",
"public ParseTreeNode visit(WithMemberNode calcMemberNode) {\n return null;\n }",
"@Override\n\tpublic List<Member> getAllMember() {\n\t\treturn null;\n\t}",
"private boolean isColumnEmpty(Vertex column) {\n return (column == null || !StringUtils.isNotEmpty(getGuid(column)));\n }",
"private void initEventMembers()\n {\n if(mMarkersMap==null)\n mMarkersMap = new HashMap<>();\n memberPresentFlags= new HashMap<>();\n memberHandler=new Handler();\n\n runnable = new Runnable() {\n @Override\n public void run() {\n for(Map.Entry<String,Boolean> isMemberPresentFlag: memberPresentFlags.entrySet())\n {\n if(!isMemberPresentFlag.getValue())\n {\n //Member not present. Remove marker\n mMarkersMap.get(isMemberPresentFlag.getKey()).remove();\n mMarkersMap.remove(isMemberPresentFlag.getKey());\n }\n else\n {\n //Member present. Set marker to false\n isMemberPresentFlag.setValue(false);\n }\n }\n\n getEventMembers();\n Toast.makeText(getContext(),Double.toString(radius),Toast.LENGTH_SHORT).show();\n memberHandler.postDelayed(this,2500);\n }\n } ;\n\n memberHandler.postDelayed(runnable,2500);\n\n }",
"private void validateDuplicateMember(Member member) {\n memberRepository.findByName(member.getName())\n .ifPresent(m -> {\n throw new IllegalStateException(\"이미 존재하는 회원입니다.\");\n });\n }",
"public M csmiQqNull(){if(this.get(\"csmiQqNot\")==null)this.put(\"csmiQqNot\", \"\");this.put(\"csmiQq\", null);return this;}"
] | [
"0.69090945",
"0.5976388",
"0.5892592",
"0.5737558",
"0.5725839",
"0.5725839",
"0.5703621",
"0.564964",
"0.5556184",
"0.55522275",
"0.54927915",
"0.5470721",
"0.5446027",
"0.53714406",
"0.5365707",
"0.5284711",
"0.5270242",
"0.5247792",
"0.5239605",
"0.5200307",
"0.51843244",
"0.5169051",
"0.51629466",
"0.51582104",
"0.5136855",
"0.51063687",
"0.5091238",
"0.5091238",
"0.5062518",
"0.50568163",
"0.5055967",
"0.5055967",
"0.50404125",
"0.5033009",
"0.5023264",
"0.50189906",
"0.50132245",
"0.5009173",
"0.5008752",
"0.50087225",
"0.5003413",
"0.4988817",
"0.49799532",
"0.49799532",
"0.49793944",
"0.49775654",
"0.49687713",
"0.49687713",
"0.49684927",
"0.49674416",
"0.49648657",
"0.49627042",
"0.492792",
"0.4915599",
"0.4913747",
"0.4910375",
"0.49051243",
"0.48983836",
"0.48942506",
"0.4887728",
"0.48858646",
"0.48834667",
"0.48717207",
"0.48532176",
"0.4852654",
"0.485231",
"0.48462236",
"0.48460448",
"0.48397213",
"0.4832939",
"0.48309013",
"0.4830506",
"0.48305044",
"0.482916",
"0.4824431",
"0.48082167",
"0.48058864",
"0.48034042",
"0.48009259",
"0.47977963",
"0.47949678",
"0.47944343",
"0.47940254",
"0.47838065",
"0.47678846",
"0.4765821",
"0.4765821",
"0.4765622",
"0.47648016",
"0.47460896",
"0.47412813",
"0.47293165",
"0.4725415",
"0.47247407",
"0.47193506",
"0.47186175",
"0.47149104",
"0.4710431",
"0.47077543",
"0.47069147"
] | 0.6825734 | 1 |
and csmi_member_id >= ? | public M csmiMemberIdMin(Object min){this.put("csmiMemberIdMin", min);return this;} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setMemberID(String memberID){ this.memberID=memberID; }",
"UcMembers selectByPrimaryKey(Long uid);",
"List<S> memberOf(String memberUuid);",
"int insertSelective(UcMembers record);",
"public void setMember_id(String member_id) {\r\n this.member_id = member_id;\r\n }",
"public void setMember_id(String member_id) {\r\n this.member_id = member_id;\r\n }",
"int getMemberId2();",
"public MemberCQ queryMember() {\n return xdfgetConditionQueryMember();\n }",
"public boolean checkVentureCheckListByMemberSubID(String account, int id) {\n\t\tSl = \"SELECT * FROM venture_checklist WHERE memberAccount=? AND mapSubClassID=?\";\r\n\t\ttry {\r\n\t\t\tconn = dataSource.getConnection();\r\n\t\t\tsmt = conn.prepareStatement(Sl);\r\n\t\t\tsmt.setString(1, account);\r\n\t\t\tsmt.setInt(2, id);\r\n\t\t\trs = smt.executeQuery();\r\n\t\t\tif(rs.next()){\t\t\t\t\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tsmt.executeQuery();\t\r\n\t\t\trs.close();\r\n\t\t\tsmt.close();\r\n \r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n \r\n\t\t} finally {\r\n\t\t\tif (conn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t} catch (SQLException e) {}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"int getMemberId1();",
"IMemberDto getMember(/*old :String searchMember*/Integer id);",
"public List<Member> getMemberList2(final int point) {\n\t\treturn this.jdbcTemplate.query(\"SELECT * FROM MEMBERS WHERE POINT > ?\", this.memberRowMapper, point);\n\t}",
"List<UcMembers> selectByExample(UcMembersExample example);",
"@Override\n\tpublic Member findMemberId(long memberId) {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic boolean overlapCheck(String id) {\n\t\tboolean result = true;\r\n\r\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"select * from member where id=?\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\tps.setString(1, id);\r\n\t\t\trs = ps.executeQuery();\r\n\r\n\t\t\twhile (!rs.next()) {\r\n\t\t\t\treturn false;// 결과가 없다면 중복되지 않음\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\tps.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\tresult = false;\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}",
"public MemberPo findMember(final String id);",
"public boolean existsMember(final String id);",
"public List<MemberVO> searchMembers(String search, String sendingId, boolean isConnected) {\n\t\tString searchTerm = \"%\"+StringUtil.checkVal(search).toLowerCase()+\"%\";\n\t\tlog.debug(\"searching members for \" + searchTerm);\n\n\t\tStringBuilder sql = new StringBuilder(250);\n\t\tString schema = getCustomSchema();\n\t\tList<Object> params = new ArrayList<>();\n\t\tString[] idParts = sendingId.split(\"_\");\n\n\t\tsql.append(\"select m.member_id, m.profile_id, m.first_nm, m.last_nm, m.email_address_txt \");\n\t\tsql.append(DBUtil.FROM_CLAUSE).append(schema).append(\"rezdox_member m \");\n\t\t//only allow active resident and hybrid members to be found - not business owners or inactive accounts\n\t\tsql.append(\"inner join profile_role pr on m.profile_id=pr.profile_id and pr.role_id in (?,?) and pr.site_id=? and pr.status_id=? \");\n\t\tparams.add(RezDoxUtils.REZDOX_RES_BUS_ROLE);\n\t\tparams.add(RezDoxUtils.REZDOX_RESIDENCE_ROLE);\n\t\tparams.add(RezDoxUtils.MAIN_SITE_ID);\n\t\tparams.add(SecurityController.STATUS_ACTIVE);\n\n\t\tsql.append(\"where (LOWER(first_nm || ' ' || last_nm) like ? or lower(m.email_address_txt) like ? or m.search_address_txt like ?) \"); //search address is already lowercase\n\t\tparams.add(searchTerm);\n\t\tparams.add(searchTerm);\n\t\tparams.add(searchTerm);\n\t\tsql.append(\"and member_id != ? \");\n\t\tparams.add(idParts[1]);\n\t\tsql.append(\"and member_id \");\n\t\tsql.append(isConnected ? \"in\" : \"not in\").append(\" (select case \"); //boolean toggle allows this method to be reused by SharingAction\n\n\t\tif (\"m\".equalsIgnoreCase(idParts[0])) {\n\t\t\t//member looking for member\n\t\t\tsql.append(\"when sndr_member_id is not null and sndr_member_id=? and rcpt_member_id is not null then rcpt_member_id \");\n\t\t\tsql.append(\"when rcpt_member_id is not null and rcpt_member_id=? and sndr_member_id is not null then sndr_member_id \");\n\t\t\tparams.add(idParts[1]);\n\t\t\tparams.add(idParts[1]);\n\t\t} else {\n\t\t\t//business looking for member\n\t\t\tsql.append(\"when sndr_business_id is not null and sndr_business_id=? and rcpt_member_id is not null then rcpt_member_id \");\n\t\t\tsql.append(\"when rcpt_business_id is not null and rcpt_business_id=? and sndr_member_id is not null then sndr_member_id \");\n\t\t\tparams.add(idParts[1]);\n\t\t\tparams.add(idParts[1]);\n\t\t}\n\n\t\tsql.append(\"else '-1' end as member_id from \").append(schema).append(\"rezdox_connection where approved_flg >= 0 group by member_id) \");\n\t\tsql.append(\"order by last_nm, first_nm asc\");\n\n\t\t//run the query & return the results\n\t\tDBProcessor dbp = new DBProcessor(dbConn, schema);\n\t\tdbp.setGenerateExecutedSQL(log.isDebugEnabled());\n\t\tList<MemberVO> data = dbp.executeSelect(sql.toString(), params, new MemberVO());\n\t\tlog.debug(\"number of members found \" + data.size());\n\t\treturn data;\n\t}",
"public void setMemberid(String memberid) {\n\t\tthis.memberid = memberid;\n\t}",
"ScPartyMember selectByPrimaryKey(Integer id);",
"boolean isMember(Item item) throws AccessManagementException;",
"int insertSelective(OrgMemberRecord record);",
"@Override\r\n\tpublic Member getMemberByPin(String pinMember) {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tQuery query = session.createQuery(\"FROM Member WHERE pinMember =:pinMember\");\r\n\t\tquery.setString(\"pinMember\", pinMember);\r\n\t\tList<Member> member = query.list();\r\n\t\tif(!member.isEmpty())\r\n\t\treturn member.get(0);\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}",
"@Override\n public Void call(DBConnection c) throws SQLException {\n DBPreparedStatement groups = c.run(\"select lower(replace(ggd.group_id, ':', '-')) group_id, ggd.description, ggd.ready_for_sync_time\" +\n \" from \" + groupInfoTable + \" ggd \" +\n \" where ggd.ready_for_sync_time >= ?\");\n\n groups.param(time);\n\n for (ResultSet rs : groups.executeQuery()) {\n String groupName = rs.getString(\"group_id\");\n String description = rs.getString(\"description\");\n long lastModifiedTime = rs.getLong(\"ready_for_sync_time\");\n\n Group group = result.createOrGetGroup(new Group(groupName, description));\n group.setLastModifiedTime(lastModifiedTime);\n }\n\n // Populate any members for non-deleted groups\n DBPreparedStatement members = c.run(\"select lower(replace(ggu.group_id, ':', '-')) group_id, ggu.role, ggu.email\" +\n \" from \" + groupInfoTable + \" ggd \" +\n \" inner join \" + memberInfoTable + \" ggu \" +\n \" on ggd.group_id = ggu.group_id\" +\n \" where ggd.ready_for_sync_time >= ? AND ggd.deleted = 0\");\n\n members.param(time);\n\n for (ResultSet rs : members.executeQuery()) {\n String groupName = rs.getString(\"group_id\");\n String email = rs.getString(\"email\");\n String role = mapRole(rs.getString(\"role\"));\n\n if (result.hasGroup(groupName)) {\n Group group = result.get(groupName);\n group.addMembership(email, role);\n } else {\n // This can happen if a membership row is added after we\n // pull our initial group list, and if our database\n // doesn't give us repeatable reads. This should be\n // very rare.\n logger.warn(String.format(\"Got a row referencing group %s but that group wasn't in our set\",\n groupName));\n }\n }\n\n return null;\n }",
"@Override\n\tpublic MemberVO idCheck(String userid) {\n\t\treturn sqlSession.selectOne(\"com.coderdy.myapp.member.dao.mapper.MemberMapper.idCheck\", userid);\n\t}",
"public Member searchMemberByMemberId(List<Member> members,Long memberId) throws WorkShopException {\n try {\n for (Member member : members) {\n if (member.getMemberId().equals(memberId)) {\n return member;\n }\n }\n } catch (Exception e) {\n throw new WorkShopException(e);\n }\n return null;\n }",
"Member selectByPrimaryKey(Long id);",
"private BonusMember checkGoldLimit(BonusMember member, LocalDate date) {\n\t\tif (member == null)\n\t\t\tthrow new IllegalArgumentException(\"Could not find member\");\n\t\t\n\t\tint points = member.findQualificationPoints(date);\n\n\t\tif (points > GOLD_LIMIT) {\n\t\t\tGoldMember goldMember = new GoldMember(member.getMemberNo(), member.getPersonals(), date, points);\n\t\t\treturn goldMember;\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"public String getMember_id() {\r\n return member_id;\r\n }",
"public String getMember_id() {\r\n return member_id;\r\n }",
"boolean isMember();",
"public UcMember(Integer id, Date createdAt, String creator, String modifier, Date updatedAt, Integer memberInfoId, Integer expertId, Integer enterpriseId, String nickname, String title, Byte sex, Integer age, Date birthday, String mobile, String email, String qq, String photo, Integer provinceId, Integer cityId, Integer countryId, String introduce, String remark, Integer visitCount, Integer dayVisitCount, Date dayVisitTime, Byte deleteFlag, Byte disableFlag, Byte mobileVerifyFlag, Byte emailVerifyFlag, Byte auditFlag, Byte openConcatFlag, Byte showFlag, Byte emailRemindFlag, Byte blogFlag, Byte realnameAuditStatus, String auditReason, Byte expertAuditStatus, Byte expertInfoAuditStatus, Byte enterpriseAuditStatus, Byte enterpriseInfoAuditStatus, Byte modFlag, Date resModUpdate, Integer safeScore, Integer safeNextId, Byte vipLevel, Date vipStartdate, Date vipEnddate) {\n this.id = id;\n this.createdAt = createdAt;\n this.creator = creator;\n this.modifier = modifier;\n this.updatedAt = updatedAt;\n this.memberInfoId = memberInfoId;\n this.expertId = expertId;\n this.enterpriseId = enterpriseId;\n this.nickname = nickname;\n this.title = title;\n this.sex = sex;\n this.age = age;\n this.birthday = birthday;\n this.mobile = mobile;\n this.email = email;\n this.qq = qq;\n this.photo = photo;\n this.provinceId = provinceId;\n this.cityId = cityId;\n this.countryId = countryId;\n this.introduce = introduce;\n this.remark = remark;\n this.visitCount = visitCount;\n this.dayVisitCount = dayVisitCount;\n this.dayVisitTime = dayVisitTime;\n this.deleteFlag = deleteFlag;\n this.disableFlag = disableFlag;\n this.mobileVerifyFlag = mobileVerifyFlag;\n this.emailVerifyFlag = emailVerifyFlag;\n this.auditFlag = auditFlag;\n this.openConcatFlag = openConcatFlag;\n this.showFlag = showFlag;\n this.emailRemindFlag = emailRemindFlag;\n this.blogFlag = blogFlag;\n this.realnameAuditStatus = realnameAuditStatus;\n this.auditReason = auditReason;\n this.expertAuditStatus = expertAuditStatus;\n this.expertInfoAuditStatus = expertInfoAuditStatus;\n this.enterpriseAuditStatus = enterpriseAuditStatus;\n this.enterpriseInfoAuditStatus = enterpriseInfoAuditStatus;\n this.modFlag = modFlag;\n this.resModUpdate = resModUpdate;\n this.safeScore = safeScore;\n this.safeNextId = safeNextId;\n this.vipLevel = vipLevel;\n this.vipStartdate = vipStartdate;\n this.vipEnddate = vipEnddate;\n }",
"@Override\r\n\tpublic Member memberLogin(Member m) {\n\t\treturn mDAO.selectMember(sqlSession, m);\r\n\t}",
"public void setMemberId(String string) {\n\t\t\n\t}",
"public Member getMember(int id){\n super.open();\n\n // 2. build query\n Cursor cursor =\n db.query(TABLE_MEMBER, // a. table\n COLUMNS, // b. column names\n \" id = ?\", // c. selections\n new String[] { String.valueOf(id) }, // d. selections args\n null, // e. group by\n null, // f. having\n null, // g. order by\n null); // h. limit\n\n // 3. if we got results get the first one\n if (cursor != null)\n cursor.moveToFirst();\n\n // 4. build Member object\n Member member = new Member();\n member.id = Integer.parseInt(cursor.getString(0));\n member.nickName = cursor.getString(1);\n member.type = cursor.getInt(2);\n member.joinDate = cursor.getString(3);\n\n\n Log.d(\"getNotice(\" + id + \")\", member.toString());\n\n // 5. return member\n return member;\n }",
"public boolean recordMember(int assignmentID, int groupID, String newMember) {\n \t\tboolean retVal = false;\n\t\tString queryString;\n\t\tPreparedStatement pStatement;\n\t\tResultSet rs;\n\n\t\ttry{\n\t\t\tqueryString = \"select * \" +\n\t\t\t\t\t\"from (select assignment.assignment_id, group_id \" +\n\t\t\t\t\t\t\"from markus.assignment full join markus.assignmentgroup \" +\n\t\t\t\t\t\t\"on assignment.assignment_id = assignmentgroup.assignment_id) as assigAndGroup\" +\n\t\t\t\t\t\" where assignment_id = \" + assignmentID + \" and group_id = \" + groupID + \";\";\n\t\t\tSystem.out.println(\"Query: \" + queryString);\n\t\t\tpStatement = connection.prepareStatement(queryString);\n\t\t\trs = pStatement.executeQuery();\n\n\t\t\t//check\n\t\t\t//there is no assignment with this assignmentID\n\t\t\t//the groupID has not been declared for the assignment\n\t\t\tif(rs.next()){\n\t\t\t\t//check\n\t\t\t\t//newMember is not a valid user\n\t\t\t\tqueryString = \"select * \" +\n\t\t\t\t\t\t\"from (select markususer.*, group_id from markus.markususer \" +\n\t\t\t\t\t\t\t\"left join markus.membership \" +\n\t\t\t\t\t\t\t\"on markus.markususer.username = markus.membership.username) as usermembership \" +\n\t\t\t\t\t\t\"where username = '\" +\n\t\t\t\t\t\tnewMember +\n\t\t\t\t\t\t\"' and type = 'student';\";\n\t\t\t\tSystem.out.println(\"Query: \" + queryString);\n\t\t\t\tpStatement = connection.prepareStatement(queryString);\n\t\t\t\trs = pStatement.executeQuery();\n\t\t\t\t\n\t\t\t\tif(rs.next()){\n\t\t\t\t\tdo{\n\t\t\t\t\t\tint g = rs.getInt(\"group_id\");\n\t\t\t\t\t\tif(g == groupID){\n\t\t\t\t\t\t\tSystem.out.println(\"student is already assigned to the group\");\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}while(rs.next());\n\t\t\t\t\t//the group is at capacity\n\t\t\t\t\tqueryString = \"select count \" +\n\t\t\t\t\t\t\t\"from (select count(*), group_id \" +\n\t\t\t\t\t\t\t\t\"from markus.membership group by group_id) as groupcount \" +\n\t\t\t\t\t\t\t\"where group_id = \" +\n\t\t\t\t\t\t\tgroupID +\n\t\t\t\t\t\t\t\" ;\";\n\t\t\t\t\tSystem.out.println(\"Query: \" + queryString);\n\t\t\t\t\tpStatement = connection.prepareStatement(queryString);\n\t\t\t\t\trs = pStatement.executeQuery();\n\t\t\t\t\trs.next();\n\t\t\t\t\tint numMember = rs.getInt(\"count\");\n\n\t\t\t\t\tqueryString = \"select group_max from markus.assignment \" +\n\t\t\t\t\t\t\t\"where assignment_id = \" +\n\t\t\t\t\t\t\tassignmentID +\n\t\t\t\t\t\t\t\";\";\n\t\t\t\t\tSystem.out.println(\"Query: \" + queryString);\n\t\t\t\t\tpStatement = connection.prepareStatement(queryString);\n\t\t\t\t\trs = pStatement.executeQuery();\n\t\t\t\t\trs.next();\n\t\t\t\t\tint max = rs.getInt(\"group_max\");\n\n\t\t\t\t\tif(max > numMember){\n\t\t\t\t\t\tqueryString = \"insert into markus.membership values ('\" +\n\t\t\t\t\t\t\t\tnewMember +\n\t\t\t\t\t\t\t\t\"',\" +\n\t\t\t\t\t\t\t\tgroupID +\n\t\t\t\t\t\t\t\t\");\";\n\t\t\t\t\t\tSystem.out.println(\"Query: \" + queryString);\n\t\t\t\t\t\tpStatement = connection.prepareStatement(queryString);\n\t\t\t\t\t\tpStatement.executeUpdate();\n\t\t\t\t\t\tretVal = true;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"Group at capacity\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"Invalid user\");\t\t\t\t\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"there is no assignment with this assignmentID or the groupID has not been declared for the assignment\");\t\n\t\t\t}\n\n\t\t}catch (Exception se){\n\t\t\tSystem.err.println(\"SQL Exception.\" +\n\t\t\t\t\t\"<Message>: \" + se.getMessage());\n\t\t}\n\n\n\n\t\t//if none of the above holds, record the member\n\n\t\t// Replace this return statement with an implementation of this method!\n return retVal;\n }",
"boolean memberHasPermission(String perm, Member m);",
"int updateByPrimaryKeySelective(UcMembers record);",
"OrgMemberRecord selectByPrimaryKey(String id);",
"@Override\n\tpublic Member searchByID(String memberID) {\n\t\tConnection conn = null;\n\t\tMember member = new Member();\n\t\ttry {\n\t\t\tconn = DbcpConnectionPool.getConnection();\n\t\t\tCallableStatement cstmt = conn.prepareCall(\"{call Member_searchByID(?)}\");\n\t\t\tcstmt.setString(1, memberID);\n\t\t\tResultSet rs = cstmt.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tmember.setMemberID(rs.getString(\"MemberID\"));\n\t\t\t\tmember.setMemberCard(rs.getString(\"MemberCard\"));\n\t\t\t\tmember.setTotalCost(rs.getDouble(\"TotalCost\"));\n\t\t\t\tString time = rs.getString(\"RegDate\");\n\t\t\t\ttry {\n\t\t\t\t\tmember.setRegDate((Date)(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").parseObject(time)));\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\trs.close();\n\t\t\tcstmt.close();\n\t\t\tconn.close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (member.getMemberID()!= null){\n\t\t\treturn member;\n\t\t}else{\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n\tpublic Member getMember(int id) {\n\t\treturn null;\n\t}",
"List<InviteEntity> getUpcomingInvitationsByMemberId(Integer memberId);",
"public List<Member> selectMemberList(int cPage, int numPerPage) {\n\tConnection conn =getConnection();\n\tList<Member> list=dao.selectMemberList(conn,cPage,numPerPage);\n\tclose(conn);\n\t\n\treturn list;\n\n}",
"public RoomMember getMember(Collection<RoomMember> members, String userID) {\n if (isAlive()) {\n for (RoomMember member : members) {\n if (TextUtils.equals(userID, member.getUserId())) {\n return member;\n }\n }\n } else {\n Log.e(LOG_TAG, \"getMember : the session is not anymore active\");\n }\n return null;\n }",
"int updateByPrimaryKeySelective(OrgMemberRecord record);",
"@Override\n\tpublic SnsMemberVO selectSnsMember(String sns_id) {\n\t\treturn (SnsMemberVO) sqlSession.selectOne(\"com.coderdy.myapp.member.dao.mapper.MemberMapper.selectSnsMember\",\n\t\t\t\tsns_id);\n\t}",
"@Test\r\n public void lookProfileByOwner() {\n assertNull(Activity.find(\"select a from Activity a where a.member = ?\", member).first());\r\n\r\n // Our member looked at his own profile\r\n member.lookedBy(member);\r\n \r\n // Still no activity for member\r\n assertNull(Activity.find(\"select a from Activity a where a.member = ?\", member).first());\r\n }",
"public void setMemberId(Integer memberId) {\n this.memberId = memberId;\n }",
"public void setMemberId(Integer memberId) {\n this.memberId = memberId;\n }",
"@Override\r\n\tpublic MemberVO selectMemberazax(HashMap<String, String> param) {\n\t\treturn memberDAO.selectMemberazax(param);\r\n\t}",
"Member findById(Long id);",
"public boolean isMember(int k) {\n\t \n\t int a = sparse[k];\n\n\t if (a < members && dense[a] == k) \n\t \treturn true;\n\t else\n\t \treturn false;\n\n\t}",
"int insertSelective(MemberFav record);",
"public M csmiMemberIdNull(){if(this.get(\"csmiMemberIdNot\")==null)this.put(\"csmiMemberIdNot\", \"\");this.put(\"csmiMemberId\", null);return this;}",
"@Override\n\tpublic List<Member> findMemberFirstname(String memberFirstname) {\n\t\treturn null;\n\t}",
"private BonusMember checkSilverLimit(BonusMember member, LocalDate date) {\n\t\tif (member == null)\n\t\t\tthrow new IllegalArgumentException(\"Could not find member\");\n\t\t\n\t\tint points = member.findQualificationPoints(date);\n\t\t\n\t\tif (points > SILVER_LIMIT) {\n\t\t\tSilverMember silverMember = new SilverMember(member.getMemberNo(), member.getPersonals(), date, points);\n\t\t\treturn silverMember;\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"@Test\n\tpublic void testIsMember() {\n\t\tresetTestVars();\n\t\t\n\t\tassertFalse(\"Nothing in list\", sn.isMember(\"Hello\"));\n\t\tuser1.setID(\"1\");\n\t\tsn.addUser(user1);\n\t\tassertTrue(\"User with given ID exists\", sn.isMember(\"1\"));\n\t}",
"int insert(UcMembers record);",
"int countByExample(UcMembersExample example);",
"@Override\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) {\n\t\tMemberDao mdao= new MemberDao();\n\t\tString id=request.getParameter(\"ch_id\");\n\t\tSystem.out.println(id);\n\t\tint check=mdao.id_check(id);\n\t\t\n\t\trequest.setAttribute(\"check\", check);\n\t\tif(check==0) {\n\t\trequest.setAttribute(\"id_ch\", id);\n\t\t}\n\t}",
"public Vector getUserAndMemberId(String mailId) throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT A.user_id, B.member_id FROM \"+DBHelper.USEA_MMS_USERMASTER+\" A, \"+\n DBHelper.USEA_MMS_MEMBERDETAIL+\" B \"+ \n \" WHERE A.user_id = B.user_id and A.email_id = ?\";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, mailId.trim());\n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the getUserAndMemberId mailId : \"+mailId);\n if (rs.next()) {\n this.userId = rs.getString(1);\n this.memberId = rs.getString(2);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n String [] useMemberId = {userId,memberId};\n vObj.add(useMemberId);\n return vObj;\n }",
"public Member getMember(int memberId) {\r\n\t\tfor(Member m : members) {\r\n\t\t\tif(m.getMemberNumber() == memberId) {\r\n\t\t\t\treturn m;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"public String getMemberid() {\n\t\treturn memberid;\n\t}",
"@Override\n\t@Transactional\n\tpublic List<IoMember> searchMember(String name) {\n\t\treturn memberDao.searchMember(name);\n\t}",
"public void setMemberId(Integer memberId) {\n\t\tthis.memberId = memberId;\n\t}",
"public Criteria andIdLessThanOrEqualToColumn(TCpyBankCredit.Column column) {\n addCriterion(new StringBuilder(\"id <= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"List<Member> list(long now);",
"public Boolean sismember(final String key, final String member) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n Boolean sismember = jedis.sismember(key, member);\n return sismember;\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }",
"private BonusMember checkGoldLimit(int memberNo, LocalDate date) {\n\t\tBonusMember member = findMember(memberNo);\n\t\t\n\t\tif (member == null)\n\t\t\tthrow new IllegalArgumentException(\"Could not find member\");\n\t\t\n\t\tint points = member.findQualificationPoints(date);\n\t\t\n\t\tif (points > GOLD_LIMIT) {\n\t\t\tGoldMember goldMember = new GoldMember(memberNo, member.getPersonals(), date, points);\n\t\t\treturn goldMember;\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"public Member getMemberById(int id) {\n\t\tfor (Iterator<Member> it = db.iterator(); it.hasNext(); ) {\n\t\t\tMember m = it.next();\n\t\t\tif (m.getId() == id) {\n\t\t\t\treturn m;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public ArrayList<Member> getMembers()\n {\n ArrayList<Member> members = new ArrayList<>();\n String sql = \"SELECT [mem_id]\\n\" +\n \" ,[mem_name]\\n \" +\n \" ,[mem_address]\\n\" +\n \" ,[mem_mobile]\\n\" +\n \" ,[mem_registered_date]\\n\" +\n \" ,[mem_active]\\n\" +\n \" FROM [lib_member_master]\";\n try {\n PreparedStatement statement = connection.prepareStatement(sql);\n ResultSet rs = statement.executeQuery();\n //cursor\n while(rs.next()) \n { \n int mem_id = rs.getInt(\"mem_id\");\n String mem_name = rs.getString(\"mem_name\");\n String mem_address = rs.getString(\"mem_address\");\n String mem_mobile = rs.getString(\"mem_mobile\");\n Date mem_registered_date = rs.getDate(\"mem_registered_date\");\n boolean mem_active = rs.getBoolean(\"mem_active\"); \n \n Member s = new Member(mem_id,mem_name, mem_address, mem_mobile, mem_registered_date,mem_active);\n members.add(s);\n }\n \n } catch (SQLException ex) {\n Logger.getLogger(DBContext.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n return members;\n }",
"@Override\n\tpublic MemberDTO confirmMember(MemberDTO mdto) {\n\t\treturn mdao.getMember(mdto);\n\t}",
"public boolean isMember(int x) {\n\t\t\n\t\tNode current = top;\n\t\t\n\t\twhile (current != null) {\n\t\t\t\n\t\t\tif(current.equals(x)) {\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tcurrent = current.next;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public boolean checkHumanResourceContentByMember(Member member) {\n\t\tSl = \"SELECT * FROM human_resource_content WHERE memberAccount=?\";\r\n\t\ttry {\r\n\t\t\tconn = dataSource.getConnection();\r\n\t\t\tsmt = conn.prepareStatement(Sl);\r\n\t\t\tsmt.setString(1, member.getAccount());\r\n\t\t\trs = smt.executeQuery();\r\n\t\t\tif(rs.next()){\t\t\t\t\r\n\t\t\t\tsmt.setString(1, member.getAccount());\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tsmt.executeQuery();\t\r\n\t\t\trs.close();\r\n\t\t\tsmt.close();\r\n \r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n \r\n\t\t} finally {\r\n\t\t\tif (conn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t} catch (SQLException e) {}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public int getMember(){\n String memberString = member.getSelectedItem().toString();\n int memberId = this.memberMap.get(memberString);\n \n System.out.println(\"getMember2: \"+ memberString +\",\"+ memberId);\n return memberId;\n }",
"int countSelective(MemberAdvisoryComment record);",
"public boolean activateMember(int id) {\n boolean done = false;\n String sql = \"UPDATE member SET active=?\"\n + \" WHERE member_id = ?\";\n String sql2 = \"INSERT INTO payment(description,total,member_id) VALUES(?,?,?)\";\n String sql3 = \"INSERT INTO notify(member_id,notification_id) VALUES(?,?)\";\n try ( Connection con = connect(); PreparedStatement pstmt = con.prepareStatement(sql); PreparedStatement pstmt2 = con.prepareStatement(sql2);PreparedStatement pstmt3 = con.prepareStatement(sql3);) {\n\n pstmt.setInt(1, 1);\n pstmt.setInt(2, id);\n pstmt.executeUpdate();\n\n pstmt2.setString(1, \"Annual fee\");\n pstmt2.setInt(2, -30);\n pstmt2.setInt(3, id);\n pstmt2.executeUpdate();\n \n pstmt3.setInt(1, id);\n pstmt3.setInt(2, 4);\n pstmt3.executeUpdate();\n\n return true;\n\n } catch (SQLException e) {\n System.out.println(\"fail activating a member\");\n System.out.println(e.getMessage());\n\n }\n return done;\n }",
"@Override\n\tpublic String queryMemberInvest(Long memberId, String fromUserName, String toUserName,Date date,String dateString) {\n\t\tTransactionQuery transactionQuery=new TransactionQuery();\n\t\t//transactionQuery.setMemberId(memberId);\n\t\ttransactionQuery.setTransactionStartTime(DateUtils.zerolizedTime(date));\n\t\ttransactionQuery.setTransactionEndTime(DateUtils.getEndTime(date));\n\t\tTextMsg msg = new TextMsg();\n\t\tdate=DateUtils.getDateFromString(DateUtils.getDateStrFromDate(date), DateUtils.DATE_FMT_3);\n\t\tint count=memberService.countRegisterNumberByDate(date);\n\t\ttry {\n\t\t\tBigDecimal totalAssets=BigDecimal.ZERO;\n\t\t\tBigDecimal returnAssets=BigDecimal.ZERO;\n\t\t\tBigDecimal hadAssets=BigDecimal.ZERO;\n\t\tTransactionInterest transactionInterest=transactionManager.selectWaitPayByEndDate(0,date);\n\t\tif(transactionInterest!=null){\n\t\t\t BigDecimal principal = transactionInterest.getPayablePrincipal()==null?BigDecimal.ZERO:transactionInterest.getPayablePrincipal();\n\t\t\t BigDecimal interest = transactionInterest.getPayableInterest()==null?BigDecimal.ZERO:transactionInterest.getPayableInterest();\n\t\t\t totalAssets =principal.add(interest);\n\t\t}\n\t\t\n\t\tTransactionInterest returnInterest=transactionManager.selectWaitPayByEndDate(4,date);\n\t\tif(returnInterest!=null){\n\t\t\t BigDecimal principal = returnInterest.getPayablePrincipal()==null?BigDecimal.ZERO:returnInterest.getPayablePrincipal();\n\t\t\t BigDecimal interest = returnInterest.getPayableInterest()==null?BigDecimal.ZERO:returnInterest.getPayableInterest();\n\t\t\t returnAssets =principal.add(interest);\n\t\t}\n\t\t\n\t\tTransactionInterest hadInterest=transactionManager.selectRealPayByEndDate(date);\n\t\tif(hadInterest!=null){\n\t\t\t BigDecimal principal = hadInterest.getRealPayPrincipal()==null?BigDecimal.ZERO:hadInterest.getRealPayPrincipal();\n\t\t\t BigDecimal interest = hadInterest.getRealPayInterest()==null?BigDecimal.ZERO:hadInterest.getRealPayInterest();\n\t\t\t hadAssets =principal.add(interest);\n\t\t}\n\t\t\n\t\t\tBigDecimal investAmount = transactionManager.getMemberTotalInvestByStatus(transactionQuery);\n\t\t\tint waitCount=transactionManager.getCountInterestByMemberId(memberId,0,date);\n\t\t\tint hadCount=transactionManager.getCountInterestByMemberId(memberId,1,date);\n\t\t\tint countIng=transactionManager.getCountInterestByMemberId(memberId,4,date);\n\t\t\t\n\t\t\tBigDecimal totalInvestAmount = transactionManager.getTotalInvestAmount(date);\n\t \t \t// msg.add(\"亲爱的\").add(trueName).add(\",平台\").add(dateString).add(\":\");\n\t \t \t// msg.addln();\n\t \t \t msg.add(\"平台注册量:\").add(Integer.toString(count));\n\t \t \t msg.addln();\n\t \t \t msg.add(\"平台投资额为:\").add(FormulaUtil.getFormatPriceRound(investAmount));\n\t \t \t msg.addln();\n\t \t \t msg.add(\"募集中金额:\").add(FormulaUtil.getFormatPriceRound(totalInvestAmount));\n\t \t \t msg.addln();\n\t \t \t msg.add(\"待回款笔数:\").add(Integer.toString(waitCount)).add(\"总额:\").add(FormulaUtil.getFormatPriceRound(totalAssets));\n\t \t \t msg.addln();\n\t \t \t msg.add(\"回款中笔数:\").add(Integer.toString(countIng)).add(\"总额:\").add(FormulaUtil.getFormatPriceRound(returnAssets));\n\t \t \t msg.addln();\n\t \t \t msg.add(\"已回款笔数:\").add(Integer.toString(hadCount)).add(\"总额:\").add(FormulaUtil.getFormatPriceRound(hadAssets));\n\t \t \t msg.addln();\n\t \t \t msg.setToUserName(fromUserName);\n\t \t \t msg.setFromUserName(toUserName);\n\t\t\t\n\t\t} catch (ManagerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t return msg.toXml();\n\t\t\n\t}",
"int getBelongToPlayer();",
"@Override\r\n\tpublic Member SearchMemberByID(String id) {\n\t\tMember m = new Member();\r\n\r\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"select * from member where id=?\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\tps.setString(1, id);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\tSystem.out.println(id);\r\n\t\t\twhile (rs.next()) {\r\n\r\n\t\t\t\tm.setID(rs.getString(\"id\"));\r\n\t\t\t\tm.setPW(rs.getString(\"pw\"));\r\n\t\t\t\tm.setNickName(rs.getString(\"nickname\"));\r\n\t\t\t\tm.setQuiz(rs.getString(\"quiz\"));\r\n\t\t\t\tm.setAnswer(rs.getString(\"answer\"));\r\n\t\t\t\tm.setScore(rs.getInt(\"score\"));\r\n\t\t\t\t\r\n\t\t\t\treturn m;\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\tps.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\treturn m;\r\n\t}",
"public Vector listICPUserRegBasedOnReleaseId(String releaseId) throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"select A.assesment_level, A.assesment_date, A.no_of_days, B.area_name, \"+\n \" A.location, C.first_name, C.last_name, D.address1, D.country, D.state, \"+\n \"D.zip, D.phone_no, D.fax_no, E.membership_status, E.member_id, E.add_date, E.request_status,C.email_id, D.city,E.release_id,E.comments FROM \"+\n DBHelper.USEA_INSTRUCTOR_DETAILS+\" A, \"+DBHelper.USEA_AREA_MASTER+\" B, \"+DBHelper.USEA_MMS_USERMASTER+\" C, \"+\n DBHelper.USEA_CONTACT_DETAILS+\" D, \"+DBHelper.USEA_ICP_USER_DETAIL+\" E \"+\n \" where E.icp_meeting_id = A.icp_meeting_id and E.user_id = C.user_id and \"+\n \" A.usea_area_id = B.area_id and C.user_id = D.user_id and C.contact_type_id = D.contact_type_id and \"+\n \" E.release_id = ? \";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, releaseId);\n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listICPUserReg status : \"+userId);\n if(rs.next()) {\n this.assesmentLevel = rs.getString(1);\n Date assesmentDate1 = rs.getDate(2);\n this.noOfDays = rs.getString(3);\n this.areaName = rs.getString(4);\n this.location = rs.getString(5);\n this.firstName = rs.getString(6);\n this.lastName = rs.getString(7);\n this.address1 = rs.getString(8);\n this.country = rs.getString(9);\n this.state = rs.getString(10);\n this.zip = rs.getString(11);\n this.phoneNo = rs.getString(12);\n this.faxNo = rs.getString(13);\n this.membershipStatus = rs.getString(14);\n this.memberId = rs.getString(15);\n Date addDate1 = rs.getDate(16);\n this.requestStatus = rs.getString(17);\n this.emailId = rs.getString(18);\n this.city = rs.getString(19);\n this.releaseId = rs.getString(20);\n this.comments = rs.getString(21);\n \n this.addDate = DBHelper.dateToString(addDate1);\n this.assesmentDate = DBHelper.dateToString(assesmentDate1);\n \n String [] userList = {assesmentLevel,assesmentDate,noOfDays,areaName,location,firstName,lastName,address1,\n country,state,zip,phoneNo,faxNo,membershipStatus,memberId,addDate,requestStatus,emailId,city,releaseId,comments};\n vObj.add(userList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"public M csmiMemberIdMax(Object max){this.put(\"csmiMemberIdMax\", max);return this;}",
"@Override\r\n\tpublic List<ExecuteTask> getByMemberByTime(int memberId, String time1, String time2) {\n\t\tString sql = \"SELECT et_id id,et_member_id memberId,et_task_id taskId,et_comments comments FROM executetask\"\r\n\t\t\t\t+ \" WHERE et_member_id = ? AND et_task_id IN(SELECT task_id FROM task WHERE task_start_time >= ? AND task_start_time <= ?)\";\r\n\t\treturn getForList(sql,memberId,time1,time2);\r\n\t}",
"public boolean isMember(String uuid) {\n return this.members.contains(uuid);\n }",
"public boolean isNotComingToChurch(Member member) {\n int weekCounter = 4; //the default\n SystemVar var = (systemVarService.getSystemVarByNameUnique(Constants.NUMBER_OF_WEEKS_TO_RENDER_INACTIVE));\n if (var != null && !StringUtils.isEmpty(var.getValue())) {\n weekCounter = Integer.parseInt(var.getValue());\n logger.debug(\"using configured inactivity week counter : \" + weekCounter);\n }\n DateRange dateRange = Utils.goBackXWeeks(new Date(), weekCounter);\n //now check if this member has any event logs for him during this period\n List<EventLog> logs = eventService.getEventLogsByMemberandDateRange(member, dateRange);\n logger.debug(\"found \" + logs.size() + \" event logs for \" + member.getFullName());\n\n if (logs.isEmpty())\n return true;\n return false;\n\n }",
"public M csolMemberNull(){if(this.get(\"csolMemberNot\")==null)this.put(\"csolMemberNot\", \"\");this.put(\"csolMember\", null);return this;}",
"@Override\n\tpublic int queryCurrentIdbyStudentId(int sid) {\n\t\tSystem.out.println(\"curredt id\");\n\t\treturn leaseDAO.findCurrentIdbyStudentId(sid);\n\t}",
"public Vector listICPUserRegBasedOnStatus(String status) throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT A.icp_meeting_id,A.user_id,B.first_name, B.last_name, A.membership_status,A.member_id,A.add_date,A.active_status,A.request_status,A.release_id FROM \"+\n DBHelper.USEA_ICP_USER_DETAIL+\" A, \"+DBHelper.USEA_MMS_USERMASTER+\" B WHERE A.user_id = B.user_id AND A.request_status = ? \";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, status);\n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listICPUserReg status : \"+userId);\n while (rs.next()) {\n this.icpMeetingId = rs.getString(1);\n this.userId = rs.getString(2);\n this.firstName = rs.getString(3);\n this.lastName = rs.getString(4);\n this.membershipStatus = rs.getString(5);\n this.memberId = rs.getString(6);\n Date addDate1 = rs.getDate(7);\n this.activeStatus = rs.getString(8);\n this.requestStatus = rs.getString(9);\n this.releaseId = rs.getString(10);\n \n this.addDate = DBHelper.dateToString(addDate1);\n \n String [] userList = {icpMeetingId,userId,firstName,lastName,membershipStatus,memberId,addDate,activeStatus,requestStatus,releaseId};\n vObj.add(userList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"private boolean checkUserNameExists(ArrayList<Member> members) throws Exception {\nfor(Member member:members) {\nif(this.userName.equals(member.userName)){\nreturn true;\n}\n}\nreturn false;\n}",
"@Override\n\tpublic MemberVO selectMember(String userid) {\n\t\treturn (MemberVO) sqlSession.selectOne(\"com.coderdy.myapp.member.dao.mapper.MemberMapper.selectMember\", userid);\n\t}",
"private BonusMember findMember(int memberNo) {\n\t\tfor (BonusMember member : members) {\n\t\t\tif (member.getMemberNo() == memberNo)\n\t\t\t\treturn member;\n\t\t}\n\t\treturn null;\n\t}",
"public EventMember getTimeKeepingEventMemberById(long eventMemberId);",
"public String getMemberID() {\n return memberID;\n }",
"List<CommunityCollectionMember> getMyCommunities(String userId,\n int startFrom,\n int pageSize) throws InvalidParameterException,\n PropertyServerException,\n UserNotAuthorizedException;",
"public Member getMemberPoint(SqlSessionTemplate sqlSession, Member m) {\n\t\treturn sqlSession.selectOne(\"memberMapper.getMemberPoint\", m);\n\t}",
"public int getMemberId1() {\n return memberId1_;\n }",
"ConferenceMember getConferenceMember(CallPeer peer, Component visualComponent);",
"int updateByExampleSelective(@Param(\"record\") UcMembers record, @Param(\"example\") UcMembersExample example);",
"void memberAdded(final String id);",
"int updateByPrimaryKeySelective(MemberFav record);"
] | [
"0.5641876",
"0.5615286",
"0.5524243",
"0.5521049",
"0.54866517",
"0.54866517",
"0.54198015",
"0.54038",
"0.5380408",
"0.53459877",
"0.53353536",
"0.53189206",
"0.5309098",
"0.53064495",
"0.52468157",
"0.5244494",
"0.52152604",
"0.5105513",
"0.50952685",
"0.5094019",
"0.50939435",
"0.50818247",
"0.5081732",
"0.50605315",
"0.50548536",
"0.504598",
"0.5043939",
"0.50273705",
"0.5020099",
"0.5020099",
"0.5019932",
"0.5015898",
"0.500159",
"0.49859935",
"0.49839953",
"0.49755183",
"0.49751917",
"0.49641848",
"0.49564323",
"0.49436283",
"0.49324614",
"0.49240023",
"0.4911619",
"0.49057525",
"0.48998052",
"0.4886409",
"0.48772913",
"0.48554024",
"0.48554024",
"0.4847198",
"0.4843716",
"0.48231462",
"0.4817903",
"0.48060328",
"0.47987294",
"0.4793802",
"0.47889277",
"0.478329",
"0.47812346",
"0.47686765",
"0.47665644",
"0.4763651",
"0.47586656",
"0.47533765",
"0.47507772",
"0.4750764",
"0.47353944",
"0.47189716",
"0.47103494",
"0.47006395",
"0.46979952",
"0.4692366",
"0.46906826",
"0.46867234",
"0.4684155",
"0.46838263",
"0.467895",
"0.4678347",
"0.46738344",
"0.46628883",
"0.4660295",
"0.4659354",
"0.46582636",
"0.46515933",
"0.464984",
"0.46416947",
"0.46301278",
"0.46240225",
"0.46182314",
"0.46158782",
"0.46048164",
"0.45994708",
"0.45912394",
"0.45845878",
"0.4581064",
"0.45807266",
"0.45803875",
"0.4569197",
"0.45663428",
"0.45615026"
] | 0.54811436 | 6 |
and csmi_member_id <= ? | public M csmiMemberIdMax(Object max){this.put("csmiMemberIdMax", max);return this;} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setMemberID(String memberID){ this.memberID=memberID; }",
"public void setMember_id(String member_id) {\r\n this.member_id = member_id;\r\n }",
"public void setMember_id(String member_id) {\r\n this.member_id = member_id;\r\n }",
"int getMemberId2();",
"public boolean checkVentureCheckListByMemberSubID(String account, int id) {\n\t\tSl = \"SELECT * FROM venture_checklist WHERE memberAccount=? AND mapSubClassID=?\";\r\n\t\ttry {\r\n\t\t\tconn = dataSource.getConnection();\r\n\t\t\tsmt = conn.prepareStatement(Sl);\r\n\t\t\tsmt.setString(1, account);\r\n\t\t\tsmt.setInt(2, id);\r\n\t\t\trs = smt.executeQuery();\r\n\t\t\tif(rs.next()){\t\t\t\t\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tsmt.executeQuery();\t\r\n\t\t\trs.close();\r\n\t\t\tsmt.close();\r\n \r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n \r\n\t\t} finally {\r\n\t\t\tif (conn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t} catch (SQLException e) {}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"int insertSelective(UcMembers record);",
"@Override\r\n\tpublic boolean overlapCheck(String id) {\n\t\tboolean result = true;\r\n\r\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"select * from member where id=?\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\tps.setString(1, id);\r\n\t\t\trs = ps.executeQuery();\r\n\r\n\t\t\twhile (!rs.next()) {\r\n\t\t\t\treturn false;// 결과가 없다면 중복되지 않음\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\tps.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\tresult = false;\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}",
"UcMembers selectByPrimaryKey(Long uid);",
"List<S> memberOf(String memberUuid);",
"@Override\n\tpublic Member findMemberId(long memberId) {\n\t\treturn null;\n\t}",
"public M csmiMemberIdMin(Object min){this.put(\"csmiMemberIdMin\", min);return this;}",
"int getMemberId1();",
"public List<Member> getMemberList2(final int point) {\n\t\treturn this.jdbcTemplate.query(\"SELECT * FROM MEMBERS WHERE POINT > ?\", this.memberRowMapper, point);\n\t}",
"IMemberDto getMember(/*old :String searchMember*/Integer id);",
"public void setMemberid(String memberid) {\n\t\tthis.memberid = memberid;\n\t}",
"public MemberCQ queryMember() {\n return xdfgetConditionQueryMember();\n }",
"List<UcMembers> selectByExample(UcMembersExample example);",
"public boolean recordMember(int assignmentID, int groupID, String newMember) {\n \t\tboolean retVal = false;\n\t\tString queryString;\n\t\tPreparedStatement pStatement;\n\t\tResultSet rs;\n\n\t\ttry{\n\t\t\tqueryString = \"select * \" +\n\t\t\t\t\t\"from (select assignment.assignment_id, group_id \" +\n\t\t\t\t\t\t\"from markus.assignment full join markus.assignmentgroup \" +\n\t\t\t\t\t\t\"on assignment.assignment_id = assignmentgroup.assignment_id) as assigAndGroup\" +\n\t\t\t\t\t\" where assignment_id = \" + assignmentID + \" and group_id = \" + groupID + \";\";\n\t\t\tSystem.out.println(\"Query: \" + queryString);\n\t\t\tpStatement = connection.prepareStatement(queryString);\n\t\t\trs = pStatement.executeQuery();\n\n\t\t\t//check\n\t\t\t//there is no assignment with this assignmentID\n\t\t\t//the groupID has not been declared for the assignment\n\t\t\tif(rs.next()){\n\t\t\t\t//check\n\t\t\t\t//newMember is not a valid user\n\t\t\t\tqueryString = \"select * \" +\n\t\t\t\t\t\t\"from (select markususer.*, group_id from markus.markususer \" +\n\t\t\t\t\t\t\t\"left join markus.membership \" +\n\t\t\t\t\t\t\t\"on markus.markususer.username = markus.membership.username) as usermembership \" +\n\t\t\t\t\t\t\"where username = '\" +\n\t\t\t\t\t\tnewMember +\n\t\t\t\t\t\t\"' and type = 'student';\";\n\t\t\t\tSystem.out.println(\"Query: \" + queryString);\n\t\t\t\tpStatement = connection.prepareStatement(queryString);\n\t\t\t\trs = pStatement.executeQuery();\n\t\t\t\t\n\t\t\t\tif(rs.next()){\n\t\t\t\t\tdo{\n\t\t\t\t\t\tint g = rs.getInt(\"group_id\");\n\t\t\t\t\t\tif(g == groupID){\n\t\t\t\t\t\t\tSystem.out.println(\"student is already assigned to the group\");\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}while(rs.next());\n\t\t\t\t\t//the group is at capacity\n\t\t\t\t\tqueryString = \"select count \" +\n\t\t\t\t\t\t\t\"from (select count(*), group_id \" +\n\t\t\t\t\t\t\t\t\"from markus.membership group by group_id) as groupcount \" +\n\t\t\t\t\t\t\t\"where group_id = \" +\n\t\t\t\t\t\t\tgroupID +\n\t\t\t\t\t\t\t\" ;\";\n\t\t\t\t\tSystem.out.println(\"Query: \" + queryString);\n\t\t\t\t\tpStatement = connection.prepareStatement(queryString);\n\t\t\t\t\trs = pStatement.executeQuery();\n\t\t\t\t\trs.next();\n\t\t\t\t\tint numMember = rs.getInt(\"count\");\n\n\t\t\t\t\tqueryString = \"select group_max from markus.assignment \" +\n\t\t\t\t\t\t\t\"where assignment_id = \" +\n\t\t\t\t\t\t\tassignmentID +\n\t\t\t\t\t\t\t\";\";\n\t\t\t\t\tSystem.out.println(\"Query: \" + queryString);\n\t\t\t\t\tpStatement = connection.prepareStatement(queryString);\n\t\t\t\t\trs = pStatement.executeQuery();\n\t\t\t\t\trs.next();\n\t\t\t\t\tint max = rs.getInt(\"group_max\");\n\n\t\t\t\t\tif(max > numMember){\n\t\t\t\t\t\tqueryString = \"insert into markus.membership values ('\" +\n\t\t\t\t\t\t\t\tnewMember +\n\t\t\t\t\t\t\t\t\"',\" +\n\t\t\t\t\t\t\t\tgroupID +\n\t\t\t\t\t\t\t\t\");\";\n\t\t\t\t\t\tSystem.out.println(\"Query: \" + queryString);\n\t\t\t\t\t\tpStatement = connection.prepareStatement(queryString);\n\t\t\t\t\t\tpStatement.executeUpdate();\n\t\t\t\t\t\tretVal = true;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"Group at capacity\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"Invalid user\");\t\t\t\t\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"there is no assignment with this assignmentID or the groupID has not been declared for the assignment\");\t\n\t\t\t}\n\n\t\t}catch (Exception se){\n\t\t\tSystem.err.println(\"SQL Exception.\" +\n\t\t\t\t\t\"<Message>: \" + se.getMessage());\n\t\t}\n\n\n\n\t\t//if none of the above holds, record the member\n\n\t\t// Replace this return statement with an implementation of this method!\n return retVal;\n }",
"public MemberPo findMember(final String id);",
"public String getMember_id() {\r\n return member_id;\r\n }",
"public String getMember_id() {\r\n return member_id;\r\n }",
"public boolean existsMember(final String id);",
"@Override\n\tpublic MemberVO idCheck(String userid) {\n\t\treturn sqlSession.selectOne(\"com.coderdy.myapp.member.dao.mapper.MemberMapper.idCheck\", userid);\n\t}",
"@Override\n public Void call(DBConnection c) throws SQLException {\n DBPreparedStatement groups = c.run(\"select lower(replace(ggd.group_id, ':', '-')) group_id, ggd.description, ggd.ready_for_sync_time\" +\n \" from \" + groupInfoTable + \" ggd \" +\n \" where ggd.ready_for_sync_time >= ?\");\n\n groups.param(time);\n\n for (ResultSet rs : groups.executeQuery()) {\n String groupName = rs.getString(\"group_id\");\n String description = rs.getString(\"description\");\n long lastModifiedTime = rs.getLong(\"ready_for_sync_time\");\n\n Group group = result.createOrGetGroup(new Group(groupName, description));\n group.setLastModifiedTime(lastModifiedTime);\n }\n\n // Populate any members for non-deleted groups\n DBPreparedStatement members = c.run(\"select lower(replace(ggu.group_id, ':', '-')) group_id, ggu.role, ggu.email\" +\n \" from \" + groupInfoTable + \" ggd \" +\n \" inner join \" + memberInfoTable + \" ggu \" +\n \" on ggd.group_id = ggu.group_id\" +\n \" where ggd.ready_for_sync_time >= ? AND ggd.deleted = 0\");\n\n members.param(time);\n\n for (ResultSet rs : members.executeQuery()) {\n String groupName = rs.getString(\"group_id\");\n String email = rs.getString(\"email\");\n String role = mapRole(rs.getString(\"role\"));\n\n if (result.hasGroup(groupName)) {\n Group group = result.get(groupName);\n group.addMembership(email, role);\n } else {\n // This can happen if a membership row is added after we\n // pull our initial group list, and if our database\n // doesn't give us repeatable reads. This should be\n // very rare.\n logger.warn(String.format(\"Got a row referencing group %s but that group wasn't in our set\",\n groupName));\n }\n }\n\n return null;\n }",
"boolean isMember();",
"int updateByPrimaryKeySelective(UcMembers record);",
"public List<MemberVO> searchMembers(String search, String sendingId, boolean isConnected) {\n\t\tString searchTerm = \"%\"+StringUtil.checkVal(search).toLowerCase()+\"%\";\n\t\tlog.debug(\"searching members for \" + searchTerm);\n\n\t\tStringBuilder sql = new StringBuilder(250);\n\t\tString schema = getCustomSchema();\n\t\tList<Object> params = new ArrayList<>();\n\t\tString[] idParts = sendingId.split(\"_\");\n\n\t\tsql.append(\"select m.member_id, m.profile_id, m.first_nm, m.last_nm, m.email_address_txt \");\n\t\tsql.append(DBUtil.FROM_CLAUSE).append(schema).append(\"rezdox_member m \");\n\t\t//only allow active resident and hybrid members to be found - not business owners or inactive accounts\n\t\tsql.append(\"inner join profile_role pr on m.profile_id=pr.profile_id and pr.role_id in (?,?) and pr.site_id=? and pr.status_id=? \");\n\t\tparams.add(RezDoxUtils.REZDOX_RES_BUS_ROLE);\n\t\tparams.add(RezDoxUtils.REZDOX_RESIDENCE_ROLE);\n\t\tparams.add(RezDoxUtils.MAIN_SITE_ID);\n\t\tparams.add(SecurityController.STATUS_ACTIVE);\n\n\t\tsql.append(\"where (LOWER(first_nm || ' ' || last_nm) like ? or lower(m.email_address_txt) like ? or m.search_address_txt like ?) \"); //search address is already lowercase\n\t\tparams.add(searchTerm);\n\t\tparams.add(searchTerm);\n\t\tparams.add(searchTerm);\n\t\tsql.append(\"and member_id != ? \");\n\t\tparams.add(idParts[1]);\n\t\tsql.append(\"and member_id \");\n\t\tsql.append(isConnected ? \"in\" : \"not in\").append(\" (select case \"); //boolean toggle allows this method to be reused by SharingAction\n\n\t\tif (\"m\".equalsIgnoreCase(idParts[0])) {\n\t\t\t//member looking for member\n\t\t\tsql.append(\"when sndr_member_id is not null and sndr_member_id=? and rcpt_member_id is not null then rcpt_member_id \");\n\t\t\tsql.append(\"when rcpt_member_id is not null and rcpt_member_id=? and sndr_member_id is not null then sndr_member_id \");\n\t\t\tparams.add(idParts[1]);\n\t\t\tparams.add(idParts[1]);\n\t\t} else {\n\t\t\t//business looking for member\n\t\t\tsql.append(\"when sndr_business_id is not null and sndr_business_id=? and rcpt_member_id is not null then rcpt_member_id \");\n\t\t\tsql.append(\"when rcpt_business_id is not null and rcpt_business_id=? and sndr_member_id is not null then sndr_member_id \");\n\t\t\tparams.add(idParts[1]);\n\t\t\tparams.add(idParts[1]);\n\t\t}\n\n\t\tsql.append(\"else '-1' end as member_id from \").append(schema).append(\"rezdox_connection where approved_flg >= 0 group by member_id) \");\n\t\tsql.append(\"order by last_nm, first_nm asc\");\n\n\t\t//run the query & return the results\n\t\tDBProcessor dbp = new DBProcessor(dbConn, schema);\n\t\tdbp.setGenerateExecutedSQL(log.isDebugEnabled());\n\t\tList<MemberVO> data = dbp.executeSelect(sql.toString(), params, new MemberVO());\n\t\tlog.debug(\"number of members found \" + data.size());\n\t\treturn data;\n\t}",
"public void setMemberId(String string) {\n\t\t\n\t}",
"@Override\r\n\tpublic Member getMemberByPin(String pinMember) {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tQuery query = session.createQuery(\"FROM Member WHERE pinMember =:pinMember\");\r\n\t\tquery.setString(\"pinMember\", pinMember);\r\n\t\tList<Member> member = query.list();\r\n\t\tif(!member.isEmpty())\r\n\t\treturn member.get(0);\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}",
"public M csmiMemberIdNull(){if(this.get(\"csmiMemberIdNot\")==null)this.put(\"csmiMemberIdNot\", \"\");this.put(\"csmiMemberId\", null);return this;}",
"@Override\r\n\tpublic Member memberLogin(Member m) {\n\t\treturn mDAO.selectMember(sqlSession, m);\r\n\t}",
"int updateByPrimaryKeySelective(OrgMemberRecord record);",
"private BonusMember checkGoldLimit(BonusMember member, LocalDate date) {\n\t\tif (member == null)\n\t\t\tthrow new IllegalArgumentException(\"Could not find member\");\n\t\t\n\t\tint points = member.findQualificationPoints(date);\n\n\t\tif (points > GOLD_LIMIT) {\n\t\t\tGoldMember goldMember = new GoldMember(member.getMemberNo(), member.getPersonals(), date, points);\n\t\t\treturn goldMember;\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"int insertSelective(OrgMemberRecord record);",
"boolean isMember(Item item) throws AccessManagementException;",
"public Member searchMemberByMemberId(List<Member> members,Long memberId) throws WorkShopException {\n try {\n for (Member member : members) {\n if (member.getMemberId().equals(memberId)) {\n return member;\n }\n }\n } catch (Exception e) {\n throw new WorkShopException(e);\n }\n return null;\n }",
"public UcMember(Integer id, Date createdAt, String creator, String modifier, Date updatedAt, Integer memberInfoId, Integer expertId, Integer enterpriseId, String nickname, String title, Byte sex, Integer age, Date birthday, String mobile, String email, String qq, String photo, Integer provinceId, Integer cityId, Integer countryId, String introduce, String remark, Integer visitCount, Integer dayVisitCount, Date dayVisitTime, Byte deleteFlag, Byte disableFlag, Byte mobileVerifyFlag, Byte emailVerifyFlag, Byte auditFlag, Byte openConcatFlag, Byte showFlag, Byte emailRemindFlag, Byte blogFlag, Byte realnameAuditStatus, String auditReason, Byte expertAuditStatus, Byte expertInfoAuditStatus, Byte enterpriseAuditStatus, Byte enterpriseInfoAuditStatus, Byte modFlag, Date resModUpdate, Integer safeScore, Integer safeNextId, Byte vipLevel, Date vipStartdate, Date vipEnddate) {\n this.id = id;\n this.createdAt = createdAt;\n this.creator = creator;\n this.modifier = modifier;\n this.updatedAt = updatedAt;\n this.memberInfoId = memberInfoId;\n this.expertId = expertId;\n this.enterpriseId = enterpriseId;\n this.nickname = nickname;\n this.title = title;\n this.sex = sex;\n this.age = age;\n this.birthday = birthday;\n this.mobile = mobile;\n this.email = email;\n this.qq = qq;\n this.photo = photo;\n this.provinceId = provinceId;\n this.cityId = cityId;\n this.countryId = countryId;\n this.introduce = introduce;\n this.remark = remark;\n this.visitCount = visitCount;\n this.dayVisitCount = dayVisitCount;\n this.dayVisitTime = dayVisitTime;\n this.deleteFlag = deleteFlag;\n this.disableFlag = disableFlag;\n this.mobileVerifyFlag = mobileVerifyFlag;\n this.emailVerifyFlag = emailVerifyFlag;\n this.auditFlag = auditFlag;\n this.openConcatFlag = openConcatFlag;\n this.showFlag = showFlag;\n this.emailRemindFlag = emailRemindFlag;\n this.blogFlag = blogFlag;\n this.realnameAuditStatus = realnameAuditStatus;\n this.auditReason = auditReason;\n this.expertAuditStatus = expertAuditStatus;\n this.expertInfoAuditStatus = expertInfoAuditStatus;\n this.enterpriseAuditStatus = enterpriseAuditStatus;\n this.enterpriseInfoAuditStatus = enterpriseInfoAuditStatus;\n this.modFlag = modFlag;\n this.resModUpdate = resModUpdate;\n this.safeScore = safeScore;\n this.safeNextId = safeNextId;\n this.vipLevel = vipLevel;\n this.vipStartdate = vipStartdate;\n this.vipEnddate = vipEnddate;\n }",
"public boolean isMember(int k) {\n\t \n\t int a = sparse[k];\n\n\t if (a < members && dense[a] == k) \n\t \treturn true;\n\t else\n\t \treturn false;\n\n\t}",
"@Override\n\tpublic Member getMember(int id) {\n\t\treturn null;\n\t}",
"public M csolMemberNull(){if(this.get(\"csolMemberNot\")==null)this.put(\"csolMemberNot\", \"\");this.put(\"csolMember\", null);return this;}",
"public RoomMember getMember(Collection<RoomMember> members, String userID) {\n if (isAlive()) {\n for (RoomMember member : members) {\n if (TextUtils.equals(userID, member.getUserId())) {\n return member;\n }\n }\n } else {\n Log.e(LOG_TAG, \"getMember : the session is not anymore active\");\n }\n return null;\n }",
"public void setMemberId(Integer memberId) {\n this.memberId = memberId;\n }",
"public void setMemberId(Integer memberId) {\n this.memberId = memberId;\n }",
"@Override\n\tpublic SnsMemberVO selectSnsMember(String sns_id) {\n\t\treturn (SnsMemberVO) sqlSession.selectOne(\"com.coderdy.myapp.member.dao.mapper.MemberMapper.selectSnsMember\",\n\t\t\t\tsns_id);\n\t}",
"public List<Member> selectMemberList(int cPage, int numPerPage) {\n\tConnection conn =getConnection();\n\tList<Member> list=dao.selectMemberList(conn,cPage,numPerPage);\n\tclose(conn);\n\t\n\treturn list;\n\n}",
"@Test\r\n public void lookProfileByOwner() {\n assertNull(Activity.find(\"select a from Activity a where a.member = ?\", member).first());\r\n\r\n // Our member looked at his own profile\r\n member.lookedBy(member);\r\n \r\n // Still no activity for member\r\n assertNull(Activity.find(\"select a from Activity a where a.member = ?\", member).first());\r\n }",
"@Override\n\tpublic Member searchByID(String memberID) {\n\t\tConnection conn = null;\n\t\tMember member = new Member();\n\t\ttry {\n\t\t\tconn = DbcpConnectionPool.getConnection();\n\t\t\tCallableStatement cstmt = conn.prepareCall(\"{call Member_searchByID(?)}\");\n\t\t\tcstmt.setString(1, memberID);\n\t\t\tResultSet rs = cstmt.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tmember.setMemberID(rs.getString(\"MemberID\"));\n\t\t\t\tmember.setMemberCard(rs.getString(\"MemberCard\"));\n\t\t\t\tmember.setTotalCost(rs.getDouble(\"TotalCost\"));\n\t\t\t\tString time = rs.getString(\"RegDate\");\n\t\t\t\ttry {\n\t\t\t\t\tmember.setRegDate((Date)(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").parseObject(time)));\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\trs.close();\n\t\t\tcstmt.close();\n\t\t\tconn.close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (member.getMemberID()!= null){\n\t\t\treturn member;\n\t\t}else{\n\t\t\treturn null;\n\t\t}\n\t}",
"boolean memberHasPermission(String perm, Member m);",
"@Override\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) {\n\t\tMemberDao mdao= new MemberDao();\n\t\tString id=request.getParameter(\"ch_id\");\n\t\tSystem.out.println(id);\n\t\tint check=mdao.id_check(id);\n\t\t\n\t\trequest.setAttribute(\"check\", check);\n\t\tif(check==0) {\n\t\trequest.setAttribute(\"id_ch\", id);\n\t\t}\n\t}",
"public String getMemberid() {\n\t\treturn memberid;\n\t}",
"ScPartyMember selectByPrimaryKey(Integer id);",
"public Member getMember(int id){\n super.open();\n\n // 2. build query\n Cursor cursor =\n db.query(TABLE_MEMBER, // a. table\n COLUMNS, // b. column names\n \" id = ?\", // c. selections\n new String[] { String.valueOf(id) }, // d. selections args\n null, // e. group by\n null, // f. having\n null, // g. order by\n null); // h. limit\n\n // 3. if we got results get the first one\n if (cursor != null)\n cursor.moveToFirst();\n\n // 4. build Member object\n Member member = new Member();\n member.id = Integer.parseInt(cursor.getString(0));\n member.nickName = cursor.getString(1);\n member.type = cursor.getInt(2);\n member.joinDate = cursor.getString(3);\n\n\n Log.d(\"getNotice(\" + id + \")\", member.toString());\n\n // 5. return member\n return member;\n }",
"private BonusMember checkSilverLimit(BonusMember member, LocalDate date) {\n\t\tif (member == null)\n\t\t\tthrow new IllegalArgumentException(\"Could not find member\");\n\t\t\n\t\tint points = member.findQualificationPoints(date);\n\t\t\n\t\tif (points > SILVER_LIMIT) {\n\t\t\tSilverMember silverMember = new SilverMember(member.getMemberNo(), member.getPersonals(), date, points);\n\t\t\treturn silverMember;\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"public Member getMember(int memberId) {\r\n\t\tfor(Member m : members) {\r\n\t\t\tif(m.getMemberNumber() == memberId) {\r\n\t\t\t\treturn m;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"public void setMemberId(Integer memberId) {\n\t\tthis.memberId = memberId;\n\t}",
"@Test\n\tpublic void testIsMember() {\n\t\tresetTestVars();\n\t\t\n\t\tassertFalse(\"Nothing in list\", sn.isMember(\"Hello\"));\n\t\tuser1.setID(\"1\");\n\t\tsn.addUser(user1);\n\t\tassertTrue(\"User with given ID exists\", sn.isMember(\"1\"));\n\t}",
"public boolean isNotComingToChurch(Member member) {\n int weekCounter = 4; //the default\n SystemVar var = (systemVarService.getSystemVarByNameUnique(Constants.NUMBER_OF_WEEKS_TO_RENDER_INACTIVE));\n if (var != null && !StringUtils.isEmpty(var.getValue())) {\n weekCounter = Integer.parseInt(var.getValue());\n logger.debug(\"using configured inactivity week counter : \" + weekCounter);\n }\n DateRange dateRange = Utils.goBackXWeeks(new Date(), weekCounter);\n //now check if this member has any event logs for him during this period\n List<EventLog> logs = eventService.getEventLogsByMemberandDateRange(member, dateRange);\n logger.debug(\"found \" + logs.size() + \" event logs for \" + member.getFullName());\n\n if (logs.isEmpty())\n return true;\n return false;\n\n }",
"public Vector listICPUserRegBasedOnReleaseId(String releaseId) throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"select A.assesment_level, A.assesment_date, A.no_of_days, B.area_name, \"+\n \" A.location, C.first_name, C.last_name, D.address1, D.country, D.state, \"+\n \"D.zip, D.phone_no, D.fax_no, E.membership_status, E.member_id, E.add_date, E.request_status,C.email_id, D.city,E.release_id,E.comments FROM \"+\n DBHelper.USEA_INSTRUCTOR_DETAILS+\" A, \"+DBHelper.USEA_AREA_MASTER+\" B, \"+DBHelper.USEA_MMS_USERMASTER+\" C, \"+\n DBHelper.USEA_CONTACT_DETAILS+\" D, \"+DBHelper.USEA_ICP_USER_DETAIL+\" E \"+\n \" where E.icp_meeting_id = A.icp_meeting_id and E.user_id = C.user_id and \"+\n \" A.usea_area_id = B.area_id and C.user_id = D.user_id and C.contact_type_id = D.contact_type_id and \"+\n \" E.release_id = ? \";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, releaseId);\n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listICPUserReg status : \"+userId);\n if(rs.next()) {\n this.assesmentLevel = rs.getString(1);\n Date assesmentDate1 = rs.getDate(2);\n this.noOfDays = rs.getString(3);\n this.areaName = rs.getString(4);\n this.location = rs.getString(5);\n this.firstName = rs.getString(6);\n this.lastName = rs.getString(7);\n this.address1 = rs.getString(8);\n this.country = rs.getString(9);\n this.state = rs.getString(10);\n this.zip = rs.getString(11);\n this.phoneNo = rs.getString(12);\n this.faxNo = rs.getString(13);\n this.membershipStatus = rs.getString(14);\n this.memberId = rs.getString(15);\n Date addDate1 = rs.getDate(16);\n this.requestStatus = rs.getString(17);\n this.emailId = rs.getString(18);\n this.city = rs.getString(19);\n this.releaseId = rs.getString(20);\n this.comments = rs.getString(21);\n \n this.addDate = DBHelper.dateToString(addDate1);\n this.assesmentDate = DBHelper.dateToString(assesmentDate1);\n \n String [] userList = {assesmentLevel,assesmentDate,noOfDays,areaName,location,firstName,lastName,address1,\n country,state,zip,phoneNo,faxNo,membershipStatus,memberId,addDate,requestStatus,emailId,city,releaseId,comments};\n vObj.add(userList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"public int getMembershipRestriction() {\n return membershipRestriction;\n }",
"public Boolean sismember(final String key, final String member) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n Boolean sismember = jedis.sismember(key, member);\n return sismember;\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }",
"public Vector getUserAndMemberId(String mailId) throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT A.user_id, B.member_id FROM \"+DBHelper.USEA_MMS_USERMASTER+\" A, \"+\n DBHelper.USEA_MMS_MEMBERDETAIL+\" B \"+ \n \" WHERE A.user_id = B.user_id and A.email_id = ?\";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, mailId.trim());\n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the getUserAndMemberId mailId : \"+mailId);\n if (rs.next()) {\n this.userId = rs.getString(1);\n this.memberId = rs.getString(2);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n String [] useMemberId = {userId,memberId};\n vObj.add(useMemberId);\n return vObj;\n }",
"OrgMemberRecord selectByPrimaryKey(String id);",
"Member selectByPrimaryKey(Long id);",
"public boolean disableMember(int id) {\n boolean done = false;\n String sql = \"UPDATE member SET active=? WHERE member_id = ?\";\n\n try ( Connection con = connect(); PreparedStatement pstmt = con.prepareStatement(sql)) {\n\n pstmt.setBoolean(1, false);\n pstmt.setInt(2, id);\n pstmt.executeUpdate();\n return true;\n\n } catch (SQLException e) {\n System.out.println(\"fail disabling a member\");\n System.out.println(e.getMessage());\n\n }\n return done;\n }",
"Member findById(Long id);",
"public int getMemberId2() {\n return memberId2_;\n }",
"@Override\n\tpublic MemberDTO confirmMember(MemberDTO mdto) {\n\t\treturn mdao.getMember(mdto);\n\t}",
"private BonusMember checkGoldLimit(int memberNo, LocalDate date) {\n\t\tBonusMember member = findMember(memberNo);\n\t\t\n\t\tif (member == null)\n\t\t\tthrow new IllegalArgumentException(\"Could not find member\");\n\t\t\n\t\tint points = member.findQualificationPoints(date);\n\t\t\n\t\tif (points > GOLD_LIMIT) {\n\t\t\tGoldMember goldMember = new GoldMember(memberNo, member.getPersonals(), date, points);\n\t\t\treturn goldMember;\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"public boolean isMember(int x) {\n\t\t\n\t\tNode current = top;\n\t\t\n\t\twhile (current != null) {\n\t\t\t\n\t\t\tif(current.equals(x)) {\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tcurrent = current.next;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"boolean isAssignedForChannel(String ccid);",
"int countSelective(MemberAdvisoryComment record);",
"int getBelongToPlayer();",
"List<InviteEntity> getUpcomingInvitationsByMemberId(Integer memberId);",
"@Override\r\n\tpublic MemberVO selectMemberazax(HashMap<String, String> param) {\n\t\treturn memberDAO.selectMemberazax(param);\r\n\t}",
"private boolean checkUserNameExists(ArrayList<Member> members) throws Exception {\nfor(Member member:members) {\nif(this.userName.equals(member.userName)){\nreturn true;\n}\n}\nreturn false;\n}",
"int countByExample(UcMembersExample example);",
"public Vector listICPUserRegBasedOnStatus(String status) throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT A.icp_meeting_id,A.user_id,B.first_name, B.last_name, A.membership_status,A.member_id,A.add_date,A.active_status,A.request_status,A.release_id FROM \"+\n DBHelper.USEA_ICP_USER_DETAIL+\" A, \"+DBHelper.USEA_MMS_USERMASTER+\" B WHERE A.user_id = B.user_id AND A.request_status = ? \";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, status);\n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listICPUserReg status : \"+userId);\n while (rs.next()) {\n this.icpMeetingId = rs.getString(1);\n this.userId = rs.getString(2);\n this.firstName = rs.getString(3);\n this.lastName = rs.getString(4);\n this.membershipStatus = rs.getString(5);\n this.memberId = rs.getString(6);\n Date addDate1 = rs.getDate(7);\n this.activeStatus = rs.getString(8);\n this.requestStatus = rs.getString(9);\n this.releaseId = rs.getString(10);\n \n this.addDate = DBHelper.dateToString(addDate1);\n \n String [] userList = {icpMeetingId,userId,firstName,lastName,membershipStatus,memberId,addDate,activeStatus,requestStatus,releaseId};\n vObj.add(userList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"@Override\n\tpublic List<Member> findMemberFirstname(String memberFirstname) {\n\t\treturn null;\n\t}",
"int updateByExampleSelective(@Param(\"record\") UcMembers record, @Param(\"example\") UcMembersExample example);",
"private final static void checkInterlachen(Connection con) {\n\n PreparedStatement pstmt = null;\n PreparedStatement pstmt2 = null;\n ResultSet rs = null;\n\n String user = \"\";\n String mtype= \"\";\n String mtypeNew = \"\";\n String mtype1 = \"Jr Ages 6 - 11\";\n String mtype2 = \"Jr Ages 12 - 15\";\n String mtype3 = \"Jr Ages 16 - 24\";\n\n int birth = 0;\n int inact = 0;\n\n //\n // Get current date\n //\n Calendar cal = new GregorianCalendar(); // get todays date\n int year = cal.get(Calendar.YEAR);\n int month = cal.get(Calendar.MONTH)+1;\n int day = cal.get(Calendar.DAY_OF_MONTH);\n\n year = year - 12; // date to determine if < 12 yrs old\n\n int date12 = (year * 10000) + (month * 100) + day;\n\n year = year - 4; // date to determine if < 16 yrs old\n\n int date16 = (year * 10000) + (month * 100) + day;\n\n year = year - 9; // date to determine if < 25 yrs old\n\n int date25 = (year * 10000) + (month * 100) + day;\n\n\n\n //\n // Check each Junior to see if the mtype should be changed\n //\n try {\n\n pstmt = con.prepareStatement (\n \"SELECT username, m-type, birth, inact FROM member2b \" +\n \"WHERE m_type = ? OR m_type = ? OR m_type = ? AND birth != 0 AND inact = 0\");\n\n pstmt.clearParameters();\n pstmt.setString(1, mtype1);\n pstmt.setString(2, mtype2);\n pstmt.setString(3, mtype3);\n rs = pstmt.executeQuery();\n\n while (rs.next()) {\n\n user = rs.getString(1);\n mtype = rs.getString(2);\n birth = rs.getInt(3);\n inact = rs.getInt(4);\n\n mtypeNew = mtype;\n\n if (birth > date12) { // if < 12 yrs old\n\n mtypeNew = mtype1; // 6 - 11\n\n } else {\n\n if (birth > date16) { // if < 16 yrs old\n\n mtypeNew = mtype2; // 12 - 15\n\n } else {\n\n if (birth > date25) { // if < 25 yrs old\n\n mtypeNew = mtype3; // 16 - 24\n\n } else {\n\n inact = 1; // older than 24, set inactive\n }\n }\n }\n\n //\n // Update the record if mtype has changed or we are setting member inactive\n //\n if (!mtypeNew.equals(mtype) || inact == 1) {\n\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET m_type = ?, inact = ? \" +\n \"WHERE username = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt.setString(1, mtypeNew);\n pstmt.setInt(2, inact);\n pstmt.setString(3, user);\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n }\n }\n\n pstmt.close();\n\n }\n catch (Exception exc) {\n }\n\n }",
"public int getMember(){\n String memberString = member.getSelectedItem().toString();\n int memberId = this.memberMap.get(memberString);\n \n System.out.println(\"getMember2: \"+ memberString +\",\"+ memberId);\n return memberId;\n }",
"int insertSelective(MemberFav record);",
"public String getMemberID() {\n return memberID;\n }",
"protected void checkMember(final String dn) {\n\t\tCacheGroup group = cacheGroupRepository.findByNameExpected(\"ligoj-gStack\");\n\t\tList<CacheMembership> members = cacheMembershipRepository.findAllBy(\"group\", group);\n\t\tAssertions.assertEquals(1, members.size());\n\t\tAssertions.assertEquals(dn, members.get(0).getGroup().getDescription());\n\t}",
"@Override\n\tpublic int queryCurrentIdbyStudentId(int sid) {\n\t\tSystem.out.println(\"curredt id\");\n\t\treturn leaseDAO.findCurrentIdbyStudentId(sid);\n\t}",
"public void setMemberIDs(ArrayList<Integer> memberIDs) {\n this.memberIDs = memberIDs;\n }",
"public boolean checkHumanResourceContentByMember(Member member) {\n\t\tSl = \"SELECT * FROM human_resource_content WHERE memberAccount=?\";\r\n\t\ttry {\r\n\t\t\tconn = dataSource.getConnection();\r\n\t\t\tsmt = conn.prepareStatement(Sl);\r\n\t\t\tsmt.setString(1, member.getAccount());\r\n\t\t\trs = smt.executeQuery();\r\n\t\t\tif(rs.next()){\t\t\t\t\r\n\t\t\t\tsmt.setString(1, member.getAccount());\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tsmt.executeQuery();\t\r\n\t\t\trs.close();\r\n\t\t\tsmt.close();\r\n \r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n \r\n\t\t} finally {\r\n\t\t\tif (conn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t} catch (SQLException e) {}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean activateMember(int id) {\n boolean done = false;\n String sql = \"UPDATE member SET active=?\"\n + \" WHERE member_id = ?\";\n String sql2 = \"INSERT INTO payment(description,total,member_id) VALUES(?,?,?)\";\n String sql3 = \"INSERT INTO notify(member_id,notification_id) VALUES(?,?)\";\n try ( Connection con = connect(); PreparedStatement pstmt = con.prepareStatement(sql); PreparedStatement pstmt2 = con.prepareStatement(sql2);PreparedStatement pstmt3 = con.prepareStatement(sql3);) {\n\n pstmt.setInt(1, 1);\n pstmt.setInt(2, id);\n pstmt.executeUpdate();\n\n pstmt2.setString(1, \"Annual fee\");\n pstmt2.setInt(2, -30);\n pstmt2.setInt(3, id);\n pstmt2.executeUpdate();\n \n pstmt3.setInt(1, id);\n pstmt3.setInt(2, 4);\n pstmt3.executeUpdate();\n\n return true;\n\n } catch (SQLException e) {\n System.out.println(\"fail activating a member\");\n System.out.println(e.getMessage());\n\n }\n return done;\n }",
"public Member getMemberById(int id) {\n\t\tfor (Iterator<Member> it = db.iterator(); it.hasNext(); ) {\n\t\t\tMember m = it.next();\n\t\t\tif (m.getId() == id) {\n\t\t\t\treturn m;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private void updateMemberList(Set<ChatRoomUser> chatRoomUserSet,\n boolean removeMember)\n {\n Iterator<ChatRoomUser> it = chatRoomUserSet.iterator();\n\n while (it.hasNext())\n {\n ChatRoomUser user = it.next();\n String uid = user.getScreenname().getFormatted();\n\n // we want to add a member and he/she is not in our member list\n if (!removeMember && !participants.containsKey(uid)\n && !uid.equals(provider.getAccountID().getUserID()))\n {\n OperationSetPersistentPresenceIcqImpl presenceOpSet =\n (OperationSetPersistentPresenceIcqImpl) getParentProvider()\n .getOperationSet(OperationSetPersistentPresence.class);\n\n Contact participant =\n presenceOpSet.getServerStoredContactList()\n .findContactByScreenName(uid);\n\n participants.put(uid, participant);\n\n fireParticipantPresenceEvent(participant,\n AdHocChatRoomParticipantPresenceChangeEvent.CONTACT_JOINED,\n null);\n }\n // we want to remove a member and found him/her in our member list\n if (removeMember && participants.containsKey(uid))\n {\n Contact participant = participants.get(uid);\n\n participants.remove(uid);\n\n fireParticipantPresenceEvent(participant,\n AdHocChatRoomParticipantPresenceChangeEvent.CONTACT_LEFT,\n null);\n }\n }\n }",
"@Override\r\n\tpublic Member SearchMemberByID(String id) {\n\t\tMember m = new Member();\r\n\r\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"select * from member where id=?\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\tps.setString(1, id);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\tSystem.out.println(id);\r\n\t\t\twhile (rs.next()) {\r\n\r\n\t\t\t\tm.setID(rs.getString(\"id\"));\r\n\t\t\t\tm.setPW(rs.getString(\"pw\"));\r\n\t\t\t\tm.setNickName(rs.getString(\"nickname\"));\r\n\t\t\t\tm.setQuiz(rs.getString(\"quiz\"));\r\n\t\t\t\tm.setAnswer(rs.getString(\"answer\"));\r\n\t\t\t\tm.setScore(rs.getInt(\"score\"));\r\n\t\t\t\t\r\n\t\t\t\treturn m;\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\tps.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\treturn m;\r\n\t}",
"public int getMemeberConnectionCount(String memberId, String roleId) {\n\t\tif (StringUtil.isEmpty(memberId)) return 0;\n\n\t\tboolean printedBiz = false;\n\t\tSet<String> bizIds = new HashSet<>();\n\t\tString schema = getCustomSchema();\n\t\tList<Object> params = new ArrayList<>();\n\t\tStringBuilder sql = new StringBuilder(250);\n\t\tsql.append(\"select cast(sum(cnt) as int) as total_rows_no from (\");\n\n\t\t//if not residence only, include their businesses\n\t\tif (!RezDoxUtils.REZDOX_RESIDENCE_ROLE.equals(roleId)) {\n\t\t\tList<GenericVO> myBusinesses = loadBusinessOptions(memberId);\n\t\t\tfor (GenericVO vo : myBusinesses)\n\t\t\t\tbizIds.add((String)vo.getKey());\n\n\t\t\tif (!bizIds.isEmpty()) {\n\t\t\t\tprintedBiz = true;\n\t\t\t\tString qMarks = DBUtil.preparedStatmentQuestion(bizIds.size());\n\t\t\t\tsql.append(\"select count(*) as cnt from \").append(schema).append(\"rezdox_connection where \");\n\t\t\t\tsql.append(\"(sndr_business_id in (\").append(qMarks).append(\") or rcpt_business_id in (\").append(qMarks).append(\")) and approved_flg=1 \");\n\t\t\t\tparams.addAll(bizIds);\n\t\t\t\tparams.addAll(bizIds);\n\t\t\t}\n\t\t}\n\n\t\t//not business only - include their personal account\n\t\tif (!RezDoxUtils.REZDOX_BUSINESS_ROLE.equals(roleId)) {\n\t\t\tif (printedBiz) sql.append(DBUtil.UNION);\n\t\t\tsql.append(\"select count(*) as cnt from \").append(schema).append(\"rezdox_connection \");\n\t\t\tsql.append(\"where (sndr_member_id=? or rcpt_member_id=? ) and approved_flg=1 \");\n\t\t\tparams.add(memberId);\n\t\t\tparams.add(memberId);\n\t\t}\n\t\tsql.append(\") a\"); //close shell/sumation query\n\t\tlog.debug(sql + \" \" + params);\n\n\t\tDBProcessor dbp = new DBProcessor(dbConn, schema);\n\t\tList<SQLTotalVO> data = dbp.executeSelect(sql.toString(), params, new SQLTotalVO());\n\t\treturn data != null && !data.isEmpty() ? data.get(0).getTotal() : 0;\n\t}",
"private BonusMember findMember(int memberNo) {\n\t\tfor (BonusMember member : members) {\n\t\t\tif (member.getMemberNo() == memberNo)\n\t\t\t\treturn member;\n\t\t}\n\t\treturn null;\n\t}",
"public int getMemberId2() {\n return memberId2_;\n }",
"public boolean isMember(String uuid) {\n return this.members.contains(uuid);\n }",
"@Override\n\tpublic MemberVO selectMember(String userid) {\n\t\treturn (MemberVO) sqlSession.selectOne(\"com.coderdy.myapp.member.dao.mapper.MemberMapper.selectMember\", userid);\n\t}",
"boolean hasLobbyId();",
"int insert(UcMembers record);",
"private BonusMember checkSilverLimit(int memberNo, LocalDate date) {\n\t\tBonusMember member = findMember(memberNo);\n\t\t\n\t\tif (member == null)\n\t\t\tthrow new IllegalArgumentException(\"Could not find member\");\n\t\t\n\t\tint points = member.findQualificationPoints(date);\n\t\t\n\t\tif (points > SILVER_LIMIT) {\n\t\t\tBonusMember sMember = new SilverMember(memberNo, member.getPersonals(), date, points);\n\t\t\treturn sMember;\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"public ArrayList<Member> getMembers()\n {\n ArrayList<Member> members = new ArrayList<>();\n String sql = \"SELECT [mem_id]\\n\" +\n \" ,[mem_name]\\n \" +\n \" ,[mem_address]\\n\" +\n \" ,[mem_mobile]\\n\" +\n \" ,[mem_registered_date]\\n\" +\n \" ,[mem_active]\\n\" +\n \" FROM [lib_member_master]\";\n try {\n PreparedStatement statement = connection.prepareStatement(sql);\n ResultSet rs = statement.executeQuery();\n //cursor\n while(rs.next()) \n { \n int mem_id = rs.getInt(\"mem_id\");\n String mem_name = rs.getString(\"mem_name\");\n String mem_address = rs.getString(\"mem_address\");\n String mem_mobile = rs.getString(\"mem_mobile\");\n Date mem_registered_date = rs.getDate(\"mem_registered_date\");\n boolean mem_active = rs.getBoolean(\"mem_active\"); \n \n Member s = new Member(mem_id,mem_name, mem_address, mem_mobile, mem_registered_date,mem_active);\n members.add(s);\n }\n \n } catch (SQLException ex) {\n Logger.getLogger(DBContext.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n return members;\n }"
] | [
"0.5781765",
"0.55747867",
"0.55747867",
"0.5415886",
"0.54104",
"0.5373027",
"0.536213",
"0.53453815",
"0.5327927",
"0.5276999",
"0.5275871",
"0.5261812",
"0.5223341",
"0.5215833",
"0.5195558",
"0.51814497",
"0.513177",
"0.5099644",
"0.5065547",
"0.505932",
"0.505932",
"0.50548303",
"0.5024623",
"0.5022713",
"0.5007404",
"0.500643",
"0.49955928",
"0.4985545",
"0.49809787",
"0.4979217",
"0.49747834",
"0.4957153",
"0.4956055",
"0.4944591",
"0.4943085",
"0.49385592",
"0.49304482",
"0.4919508",
"0.4909983",
"0.4894251",
"0.48825592",
"0.48671827",
"0.48671827",
"0.48588467",
"0.48565617",
"0.48521897",
"0.4828777",
"0.4827673",
"0.47930866",
"0.47925097",
"0.47739783",
"0.47718143",
"0.47634345",
"0.47600496",
"0.4755561",
"0.47536436",
"0.47524533",
"0.47321993",
"0.4725924",
"0.47250754",
"0.4716001",
"0.47158855",
"0.4706384",
"0.4693987",
"0.46882764",
"0.4680512",
"0.46793655",
"0.4677153",
"0.46762705",
"0.46684846",
"0.46624434",
"0.46611264",
"0.46591347",
"0.4648788",
"0.46475548",
"0.46450216",
"0.4641376",
"0.46328506",
"0.46269238",
"0.4626121",
"0.4619925",
"0.4614853",
"0.4614289",
"0.4614003",
"0.46098238",
"0.4604925",
"0.4603819",
"0.46024418",
"0.4602053",
"0.46013647",
"0.4598333",
"0.45719042",
"0.4571402",
"0.4566256",
"0.45623305",
"0.45557618",
"0.45536405",
"0.45518512",
"0.45513853",
"0.4548863"
] | 0.49545375 | 33 |
and csmi_certify_type is null | public M csmiCertifyTypeNull(){if(this.get("csmiCertifyTypeNot")==null)this.put("csmiCertifyTypeNot", "");this.put("csmiCertifyType", null);return this;} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public M csmiCertifyNumNull(){if(this.get(\"csmiCertifyNumNot\")==null)this.put(\"csmiCertifyNumNot\", \"\");this.put(\"csmiCertifyNum\", null);return this;}",
"public M csmiCertifyImageNull(){if(this.get(\"csmiCertifyImageNot\")==null)this.put(\"csmiCertifyImageNot\", \"\");this.put(\"csmiCertifyImage\", null);return this;}",
"public M csmiOnCertifyImageNull(){if(this.get(\"csmiOnCertifyImageNot\")==null)this.put(\"csmiOnCertifyImageNot\", \"\");this.put(\"csmiOnCertifyImage\", null);return this;}",
"public M csseTypeNull(){if(this.get(\"csseTypeNot\")==null)this.put(\"csseTypeNot\", \"\");this.put(\"csseType\", null);return this;}",
"boolean getXAxisCharacteristicIdNull();",
"public M csrtCanInvoiceNull(){if(this.get(\"csrtCanInvoiceNot\")==null)this.put(\"csrtCanInvoiceNot\", \"\");this.put(\"csrtCanInvoice\", null);return this;}",
"public M csseIdNull(){if(this.get(\"csseIdNot\")==null)this.put(\"csseIdNot\", \"\");this.put(\"csseId\", null);return this;}",
"boolean hasSecIdType();",
"public boolean isRequiresTaxCertificate() \n{\nObject oo = get_Value(COLUMNNAME_RequiresTaxCertificate);\nif (oo != null) \n{\n if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();\n return \"Y\".equals(oo);\n}\nreturn false;\n}",
"boolean isNilIsManaged();",
"boolean hasC3();",
"public boolean isSetContructionType()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(CONTRUCTIONTYPE$24) != null;\r\n }\r\n }",
"boolean hasCertificate();",
"public M csseSubjectNull(){if(this.get(\"csseSubjectNot\")==null)this.put(\"csseSubjectNot\", \"\");this.put(\"csseSubject\", null);return this;}",
"public M csrtIsIncomeNull(){if(this.get(\"csrtIsIncomeNot\")==null)this.put(\"csrtIsIncomeNot\", \"\");this.put(\"csrtIsIncome\", null);return this;}",
"boolean getValueCharacteristicIdNull();",
"public M csseAddressNull(){if(this.get(\"csseAddressNot\")==null)this.put(\"csseAddressNot\", \"\");this.put(\"csseAddress\", null);return this;}",
"public M cssePersonNull(){if(this.get(\"cssePersonNot\")==null)this.put(\"cssePersonNot\", \"\");this.put(\"cssePerson\", null);return this;}",
"public boolean isNotNullMcc() {\n return genClient.cacheValueIsNotNull(CacheKey.mcc);\n }",
"public M csolIdNull(){if(this.get(\"csolIdNot\")==null)this.put(\"csolIdNot\", \"\");this.put(\"csolId\", null);return this;}",
"boolean isSetCit();",
"boolean isSetNcbi8Aa();",
"public M csolRemarkNull(){if(this.get(\"csolRemarkNot\")==null)this.put(\"csolRemarkNot\", \"\");this.put(\"csolRemark\", null);return this;}",
"public M csmiContactNull(){if(this.get(\"csmiContactNot\")==null)this.put(\"csmiContactNot\", \"\");this.put(\"csmiContact\", null);return this;}",
"boolean isSetCryptProviderTypeExt();",
"boolean getYAxisCharacteristicIdNull();",
"public M csseDescNull(){if(this.get(\"csseDescNot\")==null)this.put(\"csseDescNot\", \"\");this.put(\"csseDesc\", null);return this;}",
"public boolean hasC() {\n return c_ != null;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Certificat)) {\r\n return false;\r\n }\r\n Certificat other = (Certificat) object;\r\n if ((this.idCertificat == null && other.idCertificat != null) || (this.idCertificat != null && !this.idCertificat.equals(other.idCertificat))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public M csseRemarkNull(){if(this.get(\"csseRemarkNot\")==null)this.put(\"csseRemarkNot\", \"\");this.put(\"csseRemark\", null);return this;}",
"public boolean isSetCostrate() {\n return __isset_bit_vector.get(__COSTRATE_ISSET_ID);\n }",
"@Test\n public void test02ConfRespSignedByDefaultCA() throws Exception {\n log.trace(\">test02ConfRespSignedByDefaultCA\");\n\n this.cmpConfiguration.setResponseProtection(cmpAlias, \"signature\");\n this.cmpConfiguration.setCMPDefaultCA(cmpAlias, this.testx509ca.getSubjectDN());\n this.globalConfigurationSession.saveConfiguration(ADMIN, this.cmpConfiguration);\n\n byte[] nonce = CmpMessageHelper.createSenderNonce();\n byte[] transid = CmpMessageHelper.createSenderNonce();\n\n // Send a confirm message to the CA\n String hash = \"foo123\";\n // the parameter 'null' is to generate a confirm request for a recipient that does not exist\n PKIMessage confirm = genCertConfirm(userDN, null, nonce, transid, hash, 0, PKCSObjectIdentifiers.sha1WithRSAEncryption);\n assertNotNull(confirm);\n ByteArrayOutputStream bao = new ByteArrayOutputStream();\n ASN1OutputStream dOut = ASN1OutputStream.create(bao, ASN1Encoding.DER);\n dOut.writeObject(confirm);\n byte[] ba = bao.toByteArray();\n // Send request and receive response\n byte[] resp = sendCmpHttp(ba, 200, cmpAlias);\n checkCmpResponseGeneral(resp, this.testx509ca.getSubjectDN(), userDN, this.cacert, nonce, transid, true, null, PKCSObjectIdentifiers.sha1WithRSAEncryption.getId());\n checkCmpPKIConfirmMessage(userDN, this.cacert, resp);\n\n log.trace(\"<test02ConfRespSignedByDefaultCA\");\n }",
"public M csmiCompanyNull(){if(this.get(\"csmiCompanyNot\")==null)this.put(\"csmiCompanyNot\", \"\");this.put(\"csmiCompany\", null);return this;}",
"public boolean testConstructiontype(EIfcdoorstyle type) throws SdaiException;",
"@Override\n\tpublic boolean checkCNP() {\n\t\treturn false;\n\t}",
"public M csmiCheckPhotoNull(){if(this.get(\"csmiCheckPhotoNot\")==null)this.put(\"csmiCheckPhotoNot\", \"\");this.put(\"csmiCheckPhoto\", null);return this;}",
"void setNilIsManaged();",
"public void setSupEntCertification(String supEntCertification) {\n this.supEntCertification = supEntCertification == null ? null : supEntCertification.trim();\n }",
"public M csmiIdNull(){if(this.get(\"csmiIdNot\")==null)this.put(\"csmiIdNot\", \"\");this.put(\"csmiId\", null);return this;}",
"boolean isSetCryptProviderTypeExtSource();",
"boolean hasExternalAttributionCredit();",
"public boolean hasCNCRNCYVRSN() {\n return fieldSetFlags()[3];\n }",
"public M csolFromNull(){if(this.get(\"csolFromNot\")==null)this.put(\"csolFromNot\", \"\");this.put(\"csolFrom\", null);return this;}",
"public boolean isSetCnsCidadao() {\n return this.cnsCidadao != null;\n }",
"public boolean isNotNullSupportsNakedCredit() {\n return genClient.cacheValueIsNotNull(CacheKey.supportsNakedCredit);\n }",
"public boolean isCFF() throws PDFNetException {\n/* 922 */ return IsCFF(this.a);\n/* */ }",
"public boolean testCategory(EIfcmaterialconstituent type) throws SdaiException;",
"boolean isSetNcbistdaa();",
"boolean isSetDelegateSuggestedSigner2();",
"@Override\n public boolean isEmpty() {\n return super.isEmpty() && ElementUtil.isEmpty(subsidyCode, programCode, prescriberTypes, notes, cautionaryNotes,\n restriction, commonwealthExManufacturerPrice, manufacturerExManufacturerPrice);\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Clpns)) {\n return false;\n }\n Clpns other = (Clpns) object;\n if ((this.cLPNSConsInteb == null && other.cLPNSConsInteb != null) || (this.cLPNSConsInteb != null && !this.cLPNSConsInteb.equals(other.cLPNSConsInteb))) {\n return false;\n }\n return true;\n }",
"public void setCertiType(java.lang.String certiType) {\n this.certiType = certiType;\n }",
"public boolean isCompletelyGeneralized(HashGroupifyEntry entry) {\n if (entry.hashcode != this.suppressedHashCode) {\n return false;\n }\n int column = 0;\n entry.read();\n while (entry.hasNext()) {\n if (suppressedCodes[column++] != (entry.next() & Data.REMOVE_OUTLIER_MASK)) {\n return false;\n }\n }\n return true;\n }",
"@Override\n public boolean hasIsTransient()\n {\n return version.compareTo(\"ca\") >= 0;\n }",
"public boolean isCertificadoActivo(ComunidadQueryBean query){\r\n\t\tif(query.getHashCertificado()!=null){\r\n\t\t\tJugComunidadCertificado entity= comunidadRepository.getCertificadoByHashComunidad(query);\r\n\t\t\tif(entity.getIndActivo()==1) \r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public M csmiAddressNull(){if(this.get(\"csmiAddressNot\")==null)this.put(\"csmiAddressNot\", \"\");this.put(\"csmiAddress\", null);return this;}",
"public M csmiNationNull(){if(this.get(\"csmiNationNot\")==null)this.put(\"csmiNationNot\", \"\");this.put(\"csmiNation\", null);return this;}",
"boolean hasSecId();",
"public boolean isSetCarprovincename() {\n return this.carprovincename != null;\n }",
"public M csseStatusNull(){if(this.get(\"csseStatusNot\")==null)this.put(\"csseStatusNot\", \"\");this.put(\"csseStatus\", null);return this;}",
"@Override\n\tpublic String toCLPInfo() {\n\t\treturn null;\n\t}",
"switch (buffer[ISO7816.OFFSET_CDATA + 4]) {\r\n\t\tcase BASIC:\r\n\t\t\tsetSignatureType(BASIC);\r\n\t\t\tbreak;\r\n\t\tcase AUTHENTICATION: // use authentication private key\r\n\t\t\tsetSignatureType(AUTHENTICATION);\r\n\t\t\tbreak;\r\n\t\tcase NON_REPUDIATION: // use non repudiation private key\r\n\t\t\tsetSignatureType(NON_REPUDIATION);\r\n\t\t\tbreak;\r\n\t\tcase CA_ROLE:\r\n\t\t\tsetSignatureType(NO_SIGNATURE);\r\n\t\t\tISOException.throwIt(ISO7816.SW_WRONG_DATA);\r\n\t\t\tbreak; //~allow_dead_code\r\n\t\tdefault:\r\n\t\t\tsetSignatureType(NO_SIGNATURE);\r\n\t\t\tISOException.throwIt(SW_REFERENCE_DATA_NOT_FOUND);\r\n\t\t\tbreak; //~allow_dead_code\r\n\t\t}",
"boolean getPersonCharacteristicIdsNull();",
"final void checkForComodification() {\n\t}",
"public M csolSrcNull(){if(this.get(\"csolSrcNot\")==null)this.put(\"csolSrcNot\", \"\");this.put(\"csolSrc\", null);return this;}",
"public M csmiPersonNull(){if(this.get(\"csmiPersonNot\")==null)this.put(\"csmiPersonNot\", \"\");this.put(\"csmiPerson\", null);return this;}",
"public void verifyServerCertificates(boolean yesno);",
"boolean isSetIsManaged();",
"public boolean isSetComparesource()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(COMPARESOURCE$2) != 0;\r\n }\r\n }",
"@Override\r\n\tpublic String getType() {\n\t\treturn \"Concert\";\r\n\t}",
"boolean hasCertificates();",
"boolean hasCertificates();",
"boolean hasC();",
"public boolean existCertificadoComunidad(ComunidadQueryBean query){\r\n \t\tString hash=null;\r\n \t\tif(query.getHashCertificado()!=null)\r\n \t\t\thash=query.getHashCertificado();\r\n \t\telse hash=UtilidadCertificados.calcularHashCertificado(query.getCertificado()) ;\r\n \t\tquery.setHashCertificado(hash);\r\n \t\t\r\n \t\tJugComunidadCertificado entity= comunidadRepository.getCertificadoByHashComunidad(query);\r\n \t\tif(entity!=null) return true; \r\n \treturn false;\r\n \t\t\r\n}",
"public M cssePostionNull(){if(this.get(\"cssePostionNot\")==null)this.put(\"cssePostionNot\", \"\");this.put(\"cssePostion\", null);return this;}",
"public M csrtSubjectNull(){if(this.get(\"csrtSubjectNot\")==null)this.put(\"csrtSubjectNot\", \"\");this.put(\"csrtSubject\", null);return this;}",
"boolean getNodeCharacteristicIdNull();",
"boolean isSetCryptProvider();",
"public boolean hasC() {\n return cBuilder_ != null || c_ != null;\n }",
"private void periodCertification() {\n if (((st0 & MASK) == 0) && (st1 == 0) && (st2 == 0) && (st3 == 0)) {\n st0 = 'T';\n st1 = 'I';\n st2 = 'N';\n st3 = 'Y';\n }\n }",
"boolean isSetSOID();",
"@Override\n\tpublic String checkAccount(int idc) {\n\t\treturn null;\n\t}",
"public void notifyNoAcctReport (COPSPdpOSReqStateMan man);",
"boolean no_type(DiagnosticChain diagnostics, Map<Object, Object> context);",
"public void setCertiNo(java.lang.String certiNo) {\n this.certiNo = certiNo;\n }",
"boolean getCharacteristicDescriptionNull();",
"boolean hasCdkey();",
"public M csolMemberNull(){if(this.get(\"csolMemberNot\")==null)this.put(\"csolMemberNot\", \"\");this.put(\"csolMember\", null);return this;}",
"public boolean existOtrotCertificadoActivoComunidad(ComunidadQueryBean query){\r\n \tif(query.getIndActivo()!=null && query.getIndActivo().equals(1)){\r\n \t\tString hash=null;\r\n \t\tif(query.getHashCertificado()!=null)\r\n \t\t\thash=query.getHashCertificado();\r\n \t\telse hash=UtilidadCertificados.calcularHashCertificado(query.getCertificado()) ;\r\n \t\t\r\n \t\tJugComunidadCertificado entity= comunidadRepository.getCertificadoActivoComunidad(query);\r\n \t\tif(entity!=null && !entity.getHashCertificado().equals(hash)) return true; \r\n \t}\r\n \treturn false;\r\n \t\t\r\n\t}",
"public M csrtMoneyTypeNull(){if(this.get(\"csrtMoneyTypeNot\")==null)this.put(\"csrtMoneyTypeNot\", \"\");this.put(\"csrtMoneyType\", null);return this;}",
"public boolean isNotNullAltMid() {\n return genClient.cacheValueIsNotNull(CacheKey.altMid);\n }",
"public boolean isNotNullSredCode() {\n return genClient.cacheValueIsNotNull(CacheKey.sredCode);\n }",
"private boolean verifyDocType() {\n if (getC_DocType_ID() == 0) {\n return false;\n }\n //\n Boolean invoiceSO = null;\n //\tCheck Invoice First\n if (getC_Invoice_ID() > 0) {\n String sql = \"SELECT idt.IsSOTrx \"\n + \"FROM C_Invoice i\"\n + \" INNER JOIN C_DocType idt ON (i.C_DocType_ID=idt.C_DocType_ID) \"\n + \"WHERE i.C_Invoice_ID=?\";\n PreparedStatement pstmt = null;\n try {\n pstmt = DB.prepareStatement(sql, get_TrxName());\n pstmt.setInt(1, getC_Invoice_ID());\n ResultSet rs = pstmt.executeQuery();\n if (rs.next()) {\n invoiceSO = new Boolean(\"Y\".equals(rs.getString(1)));\n }\n rs.close();\n pstmt.close();\n pstmt = null;\n } catch (Exception e) {\n log.log(Level.SEVERE, sql, e);\n }\n try {\n if (pstmt != null) {\n pstmt.close();\n }\n pstmt = null;\n } catch (Exception e) {\n pstmt = null;\n }\n }\t//\tInvoice\n\n //\tDocumentType\n Boolean paymentSO = null;\n PreparedStatement pstmt = null;\n String sql = \"SELECT IsSOTrx \"\n + \"FROM C_DocType \"\n + \"WHERE C_DocType_ID=?\";\n try {\n pstmt = DB.prepareStatement(sql, get_TrxName());\n pstmt.setInt(1, getC_DocType_ID());\n ResultSet rs = pstmt.executeQuery();\n if (rs.next()) {\n paymentSO = new Boolean(\"Y\".equals(rs.getString(1)));\n }\n rs.close();\n pstmt.close();\n pstmt = null;\n } catch (Exception e) {\n log.log(Level.SEVERE, sql, e);\n }\n try {\n if (pstmt != null) {\n pstmt.close();\n }\n pstmt = null;\n } catch (Exception e) {\n pstmt = null;\n }\n //\tNo Payment info\n if (paymentSO == null) {\n return false;\n }\n setIsReceipt(paymentSO.booleanValue());\n\n //\tWe have an Invoice .. and it does not match\n if (invoiceSO != null\n && invoiceSO.booleanValue() != paymentSO.booleanValue()) {\n return false;\n }\n //\tOK\n return true;\n }",
"private void markConfidentialPropertiesUsingMetadata(IdentityProvider identityProvider)\n throws IdentityProviderManagementException {\n\n Map<String, List<String>> metaFedAuthConfigMap = createFedAuthConfidentialPropsMap();\n Arrays.asList(identityProvider.getFederatedAuthenticatorConfigs()).forEach(fedAuthConfig -> {\n List<String> secretProperties = metaFedAuthConfigMap.get(fedAuthConfig.getName());\n Arrays.asList(fedAuthConfig.getProperties()).forEach(prop -> {\n if (secretProperties != null && secretProperties.contains(prop.getName())) {\n prop.setConfidential(true);\n }\n });\n });\n\n Map<String, List<String>> metaProvisioningConfigMap = createProvisioningConfidentialPropsMap();\n Arrays.asList(identityProvider.getProvisioningConnectorConfigs()).forEach(provisioningConfig -> {\n List<String> secretProperties = metaProvisioningConfigMap.get(provisioningConfig.getName());\n if (provisioningConfig.getProvisioningProperties() != null) {\n Arrays.asList(provisioningConfig.getProvisioningProperties()).forEach(prop -> {\n if (prop != null) {\n if (secretProperties != null && secretProperties.contains(prop.getName())) {\n prop.setConfidential(true);\n }\n if (prop.getSubProperties().length > 0) {\n Arrays.asList(prop.getSubProperties()).forEach(subProp -> {\n if (secretProperties != null && secretProperties.contains(subProp.getName())) {\n subProp.setConfidential(true);\n }\n });\n }\n }\n });\n }\n });\n }",
"int insertSelective(TdxNoticeCertificate record);",
"public void removeCvvKeys(Map<String, Object> productAttributes) {\n\n\t\tString embossApplicable = (String) productAttributes.get(\"embossApplicable\");\n\t\tString cvkFormat = (String) productAttributes.get(\"cvkFormat\");\n\t\tString cardVerifyType = (String) productAttributes.get(\"cardVerifyType\");\n\n\t\tif (\"true\".equals(embossApplicable) && \"true\".equals(cvkFormat) && \"true\".equals(cardVerifyType)) {\n\t\t\tproductAttributes.remove(\"cvkA\");\n\t\t\tproductAttributes.remove(\"cvkB\");\n\t\t\tproductAttributes.remove(\"cscKey\");\n\n\t\t} else if (\"true\".equals(embossApplicable) && \"false\".equals(cardVerifyType)) {\n\t\t\tproductAttributes.remove(\"cvkIndex\");\n\t\t\tproductAttributes.remove(\"cvkA\");\n\t\t\tproductAttributes.remove(\"cvkB\");\n\t\t\tproductAttributes.remove(\"cvkKeySpecifier\");\n\t\t} else if (\"true\".equals(embossApplicable) && \"false\".equals(cvkFormat) && \"true\".equals(cardVerifyType)) {\n\t\t\tproductAttributes.remove(\"cscKey\");\n\t\t\tproductAttributes.remove(\"cvkIndex\");\n\t\t} else if (\"false\".equals(embossApplicable)) {\n\t\t\tproductAttributes.remove(\"cvkA\");\n\t\t\tproductAttributes.remove(\"cvkB\");\n\t\t\tproductAttributes.remove(\"cscKey\");\n\t\t\tproductAttributes.remove(\"cvkKeySpecifier\");\n\t\t\tproductAttributes.remove(\"cvkIndex\");\n\t\t}\n\t}",
"boolean isSetNcbieaa();",
"@Test\n @SmallTest\n public void tesUiccCartdInfoSanity() {\n assertEquals(0, mUicccard.getNumApplications());\n assertNull(mUicccard.getCardState());\n assertNull(mUicccard.getUniversalPinState());\n assertNull(mUicccard.getOperatorBrandOverride());\n /* CarrierPrivilegeRule equals null, return true */\n assertTrue(mUicccard.areCarrierPriviligeRulesLoaded());\n for (IccCardApplicationStatus.AppType mAppType :\n IccCardApplicationStatus.AppType.values()) {\n assertFalse(mUicccard.isApplicationOnIcc(mAppType));\n }\n }",
"private CSAData checkData(CSAData data){\n\t\tif(data !=null){\n\t\t\tif(data.getServiceTemplates().size() > 0){\n\t\t\t\tdata.setEvalResult(OK);\n\t\t\t\treturn data;\n\t\t\t}else{\n\t\t\t\tdata.setEvalResult(ERROR_1);\n\t\t\t\treturn data;\n\t\t\t}\n\t\t}else{\n\t\t\treturn data;\n\t\t}\n\t\t\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CpserxconPK)) {\n return false;\n }\n CpserxconPK other = (CpserxconPK) object;\n if (this.cscnclinic != other.cscnclinic) {\n return false;\n }\n if (this.cscnnumero != other.cscnnumero) {\n return false;\n }\n if ((this.csccservic == null && other.csccservic != null) || (this.csccservic != null && !this.csccservic.equals(other.csccservic))) {\n return false;\n }\n if (this.cscnposisuper != other.cscnposisuper) {\n return false;\n }\n if ((this.csccutiliza == null && other.csccutiliza != null) || (this.csccutiliza != null && !this.csccutiliza.equals(other.csccutiliza))) {\n return false;\n }\n return true;\n }"
] | [
"0.6411322",
"0.63119656",
"0.6218801",
"0.5700822",
"0.5373981",
"0.5311067",
"0.5231368",
"0.5183592",
"0.51826704",
"0.51325166",
"0.50955343",
"0.5094828",
"0.50849605",
"0.5054274",
"0.50417084",
"0.50329083",
"0.50189126",
"0.50171614",
"0.5014134",
"0.50047106",
"0.4996961",
"0.49772832",
"0.49738038",
"0.4962593",
"0.49496025",
"0.49459296",
"0.49317363",
"0.49268436",
"0.4924417",
"0.49177593",
"0.49146545",
"0.49104142",
"0.49041054",
"0.48898754",
"0.48886707",
"0.48643133",
"0.48528814",
"0.4825097",
"0.48232588",
"0.48143852",
"0.4792196",
"0.47880605",
"0.47820663",
"0.4762208",
"0.47574255",
"0.47526643",
"0.47486237",
"0.47463122",
"0.47408742",
"0.4736671",
"0.47293437",
"0.4719585",
"0.47156626",
"0.47152245",
"0.4710287",
"0.47093278",
"0.469155",
"0.4684322",
"0.46821392",
"0.46789536",
"0.46744114",
"0.46677053",
"0.46669966",
"0.46646333",
"0.4659259",
"0.4657225",
"0.46543828",
"0.46512607",
"0.4650384",
"0.46492612",
"0.46350315",
"0.46350315",
"0.4634427",
"0.4633812",
"0.4633648",
"0.4624709",
"0.46202058",
"0.4616584",
"0.46112406",
"0.46046913",
"0.46008798",
"0.45980698",
"0.45913205",
"0.45912",
"0.45879987",
"0.45866355",
"0.45787463",
"0.4578474",
"0.45680672",
"0.45564237",
"0.45558587",
"0.45530033",
"0.45461017",
"0.45439327",
"0.45431927",
"0.45428187",
"0.45400012",
"0.45348373",
"0.4534744",
"0.4532613"
] | 0.7268396 | 0 |
and csmi_certify_type >= ? | public M csmiCertifyTypeMin(Object min){this.put("csmiCertifyTypeMin", min);return this;} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static String segOnsetCtype(Item seg, String ctype) {\n\t\tItem daughter = seg.getItemAs(Relation.SYLLABLE_STRUCTURE).getParent().getDaughter();\n\n\t\twhile (daughter != null) {\n\t\t\tif (\"+\".equals(getPhoneFeature(daughter, \"vc\"))) {\n\t\t\t\treturn \"0\";\n\t\t\t}\n\t\t\tif (ctype.equals(getPhoneFeature(daughter, \"ctype\"))) {\n\t\t\t\treturn \"1\";\n\t\t\t}\n\n\t\t\tdaughter = daughter.getNext();\n\t\t}\n\t\treturn \"0\";\n\t}",
"public boolean testCategory(EIfcmaterialconstituent type) throws SdaiException;",
"public boolean testConstructiontype(EIfcdoorstyle type) throws SdaiException;",
"public boolean testParametertakesprecedence(EIfcdoorstyle type) throws SdaiException;",
"int insertSelective(TdxNoticeCertificate record);",
"public boolean isRequiresTaxCertificate() \n{\nObject oo = get_Value(COLUMNNAME_RequiresTaxCertificate);\nif (oo != null) \n{\n if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();\n return \"Y\".equals(oo);\n}\nreturn false;\n}",
"@Override\r\n\tpublic String getType() {\n\t\treturn \"Concert\";\r\n\t}",
"boolean hasC3();",
"public M csmiCertifyTypeNull(){if(this.get(\"csmiCertifyTypeNot\")==null)this.put(\"csmiCertifyTypeNot\", \"\");this.put(\"csmiCertifyType\", null);return this;}",
"private static String segCodaCtype(Item seg, String ctype) {\n\t\tItem daughter = seg.getItemAs(Relation.SYLLABLE_STRUCTURE).getParent().getLastDaughter();\n\n\t\twhile (daughter != null) {\n\t\t\tif (\"+\".equals(getPhoneFeature(daughter, \"vc\"))) {\n\t\t\t\treturn \"0\";\n\t\t\t}\n\t\t\tif (ctype.equals(getPhoneFeature(daughter, \"ctype\"))) {\n\t\t\t\treturn \"1\";\n\t\t\t}\n\n\t\t\tdaughter = daughter.getPrevious();\n\t\t}\n\t\treturn \"0\";\n\t}",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ComplianceCheckResult getComplianceCheckResult();",
"static int type_of_cnc(String passed){\n\t\treturn 1;\n\t}",
"private boolean checkCustomerID(int CusIDPty, int CusID) {\n\t\tint getCusIDPtyValue = 0 ; \t\t\r\n\t\ttry {\r\n\t\t\tgetCusIDPtyValue = SDKSession.getCameraPropertyClint().getCurrentPropertyValue(CusIDPty);\r\n\t\t} catch (IchInvalidSessionException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IchSocketException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IchCameraModeException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IchDevicePropException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\t\t\t\t\r\n\t\tif ((getCusIDPtyValue & 0xffff) == (CusID & 0xffff) ) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"int insertSelective(PcQualificationInfo record);",
"boolean isSetCryptProviderTypeExt();",
"boolean isSatisfiableFor(AResourceType type, int amount) ;",
"public void setCertiType(java.lang.String certiType) {\n this.certiType = certiType;\n }",
"switch (buffer[ISO7816.OFFSET_CDATA + 4]) {\r\n\t\tcase BASIC:\r\n\t\t\tsetSignatureType(BASIC);\r\n\t\t\tbreak;\r\n\t\tcase AUTHENTICATION: // use authentication private key\r\n\t\t\tsetSignatureType(AUTHENTICATION);\r\n\t\t\tbreak;\r\n\t\tcase NON_REPUDIATION: // use non repudiation private key\r\n\t\t\tsetSignatureType(NON_REPUDIATION);\r\n\t\t\tbreak;\r\n\t\tcase CA_ROLE:\r\n\t\t\tsetSignatureType(NO_SIGNATURE);\r\n\t\t\tISOException.throwIt(ISO7816.SW_WRONG_DATA);\r\n\t\t\tbreak; //~allow_dead_code\r\n\t\tdefault:\r\n\t\t\tsetSignatureType(NO_SIGNATURE);\r\n\t\t\tISOException.throwIt(SW_REFERENCE_DATA_NOT_FOUND);\r\n\t\t\tbreak; //~allow_dead_code\r\n\t\t}",
"public String getCollectCondition()\n\t{\n\t\tStringBuffer stbf = new StringBuffer(256) ;\n\t\tboolean existFlg = false ;\n\n\t\tfor (int i = 0; i < _searchKeyList.size(); i++)\n\t\t{\n\t\t\tKey ky = (Key)_searchKeyList.get(i) ;\n\t\t\tif (ky.getTableCollect() != null)\n\t\t\t{\n\n\t\t\t\t//#CM708969\n\t\t\t\t// Edit acquisition Condition + acquisition column when acquisition Condition is described clearly. \n\t\t\t\tif (!ky.getTableCollect().trim().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tstbf.append(ky.getTableCollect()) ;\n\t\t\t\t\tstbf.append(\"(\") ;\n\t\t\t\t\tstbf.append(ky.getTableColumn()) ;\n\t\t\t\t\tstbf.append(\") \") ;\n\t\t\t\t\tint wPnt = ky.getTableColumn().indexOf(\".\") ;\n\n\t\t\t\t\tif (wPnt >= 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tstbf.append(ky.getTableColumn().substring((wPnt + 1))) ;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tstbf.append(ky.getTableColumn()) ;\n\t\t\t\t\t}\n\t\t\t\t\tstbf.append(\", \") ;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tstbf.append(ky.getTableColumn()) ;\n\t\t\t\t\tstbf.append(\", \") ;\n\t\t\t\t}\n\n\t\t\t\tif (existFlg == false)\n\t\t\t\t\texistFlg = true ;\n\t\t\t}\n\t\t}\n\t\t//#CM708970\n\t\t// Return '*' as all item acquisition when data is not set in the key value. \n\t\tif (existFlg == false)\n\t\t\treturn null ;\n\n\t\t//#CM708971\n\t\t// The last \"\"is removed because it is extra. \n\t\tint ep = stbf.toString().lastIndexOf(\",\") ;\n\t\treturn stbf.toString().substring(0, ep) ;\n\t}",
"static int type_of_cpe(String passed){\n\t\treturn 1;\n\t}",
"public boolean estSurLaCase(ICase c) ;",
"public boolean isCompletelyGeneralized(HashGroupifyEntry entry) {\n if (entry.hashcode != this.suppressedHashCode) {\n return false;\n }\n int column = 0;\n entry.read();\n while (entry.hasNext()) {\n if (suppressedCodes[column++] != (entry.next() & Data.REMOVE_OUTLIER_MASK)) {\n return false;\n }\n }\n return true;\n }",
"protected boolean mo4002a(C2007e c2007e) {\n return ((float) c2007e.getData().m15597k()) < ((float) c2007e.getMaxVisibleCount()) * this.o.m15882q();\n }",
"static int type_of_cz(String passed){\n\t\treturn 1;\n\t}",
"public boolean testPredefinedtype(EIfccablecarrierfitting type) throws SdaiException;",
"private boolean canPrintContratEngagement(ContratDTO c)\r\n\t{\n\t\tif (new EditionSpeService().needEngagement(c.modeleContratId)==false)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tswitch (peMesContrats.canPrintContratEngagement)\r\n\t\t{\r\n\t\tcase TOUJOURS:\r\n\t\t\treturn true;\r\n\t\t\t\r\n\t\tcase JAMAIS:\r\n\t\t\treturn false;\r\n\t\t\t\r\n\t\tcase APRES_DATE_FIN_DES_INSCRIPTIONS:\r\n\t\t\tDate dateRef = DateUtils.getDateWithNoTime();\r\n\t\t\treturn dateRef.after(c.dateFinInscription);\r\n\r\n\t\tdefault:\r\n\t\t\tthrow new AmapjRuntimeException();\r\n\t\t}\r\n\t}",
"public M csmiCertifyTypeMax(Object max){this.put(\"csmiCertifyTypeMax\", max);return this;}",
"FilterCondition createFilterCondition(int clueNum);",
"if (charge == adhocTicket.getCharge()) {\n System.out.println(\"Charge is passed\");\n }",
"List<PcQualificationInfo> selectByExampleWithBLOBs(PcQualificationInfoExample example);",
"int countByExample(TdxNoticeCertificateExample example);",
"public boolean testOperationtype(EIfcdoorstyle type) throws SdaiException;",
"boolean mo6498O(C41531v c41531v);",
"public void setGBInterval_iscomp(gov.nih.nlm.ncbi.www.soap.eutils.efetch_seq.GBInterval_iscomp_type0 param){\n localGBInterval_iscompTracker = param != null;\n \n this.localGBInterval_iscomp=param;\n \n\n }",
"Datatype internalize(Datatype arg) throws CCAException;",
"boolean hasGcj02();",
"private void periodCertification() {\n if (((st0 & MASK) == 0) && (st1 == 0) && (st2 == 0) && (st3 == 0)) {\n st0 = 'T';\n st1 = 'I';\n st2 = 'N';\n st3 = 'Y';\n }\n }",
"boolean isSetCit();",
"private void convertReqsInCriterions(){\n\t\tArrayList<Criterion> criteria = this.data.getCriteria();\n\t\t\n\t\tfor(Requirement req : this.data.getRequirements()){\n\t\t\tif(req.isCriterion()){\n\t\t\t\t//create new criterion\n\t\t\t\tCriterion crit = new Criterion();\n\t\t\t\tif(req.getQuantType() != null)\n\t\t\t\t\tcrit.setName(req.getQuantType().getValue());\n\t\t\t\telse if(req.getQualType() != null)\n\t\t\t\t\tcrit.setName(req.getQualType().getValue());\n\t\t\t\telse\n\t\t\t\t\t//this is a price requirement\n\t\t\t\t\tcrit.setName(\"price\");\n\t\t\t\t\n\t\t\t\tString[] msg = {crit.getName(), \"General\"};\n\t\t\t\tif(this.methodID == CloudAid.SAW){\n\t\t\t\t\tFloat weight = Float.parseFloat(CloudAid.askData(CloudAid.GET_WEIGHT, msg, null));\n\t\t\t\t\tcrit.setWeight(weight);\n\t\t\t\t}\n\t\t\t\t//get the criterion preference direction\n\t\t\t\tString res = CloudAid.askData(CloudAid.GET_PREFERENCE_DIRECTION, msg, null);\n\t\t\t\tif(res.equalsIgnoreCase(\"y\")){\n\t\t\t\t\tcrit.setPreferenceDirection(\"max\");\n\t\t\t\t}else if(res.equalsIgnoreCase(\"n\")){\n\t\t\t\t\tcrit.setPreferenceDirection(\"min\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcriteria.add(crit);\n\t\t\t}\n\t\t}\n\t\tthis.data.setCriteria(criteria);\n\t\t\n\t\t//convert each serpiceTemplate requirements\n\t\tfor(ServiceTemplate template : this.data.getServiceTemplates()){\n\t\t\tArrayList<Criterion> templateCriteria = template.getCriteria();\n\t\t\tfor(Requirement req: template.getRequirements()){\n\t\t\t\tif(req.isCriterion()){\n\t\t\t\t\t//create new criterion\n\t\t\t\t\tCriterion crit = new Criterion();\n\t\t\t\t\tif(req.getQuantType() != null)\n\t\t\t\t\t\tcrit.setName(req.getQuantType().getValue());\n\t\t\t\t\telse if(req.getQualType() != null)\n\t\t\t\t\t\tcrit.setName(req.getQualType().getValue());\n\t\t\t\t\telse\n\t\t\t\t\t\t//this is a price requirement\n\t\t\t\t\t\tcrit.setName(\"price\");\n\t\t\t\t\t\n\t\t\t\t\tString[] msg = {crit.getName(), template.getType()};\n\t\t\t\t\tif(this.methodID == CloudAid.SAW){\n\t\t\t\t\t\tFloat weight = Float.parseFloat(CloudAid.askData(CloudAid.GET_WEIGHT, msg, null));\n\t\t\t\t\t\tcrit.setWeight(weight);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//get the criterion preference direction\n\t\t\t\t\tString res = CloudAid.askData(CloudAid.GET_PREFERENCE_DIRECTION, msg, null);\n\t\t\t\t\tif(res.equalsIgnoreCase(\"y\")){\n\t\t\t\t\t\tcrit.setPreferenceDirection(\"max\");\n\t\t\t\t\t}else if(res.equalsIgnoreCase(\"n\")){\n\t\t\t\t\t\tcrit.setPreferenceDirection(\"min\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\ttemplateCriteria.add(crit);\n\t\t\t\t}\n\t\t\t}\n\t\t\ttemplate.setCriteria(templateCriteria);\n\t\t}\n\t}",
"public boolean isCertificadoActivo(ComunidadQueryBean query){\r\n\t\tif(query.getHashCertificado()!=null){\r\n\t\t\tJugComunidadCertificado entity= comunidadRepository.getCertificadoByHashComunidad(query);\r\n\t\t\tif(entity.getIndActivo()==1) \r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean testDescription(EIfcmaterialconstituent type) throws SdaiException;",
"public void setIsCert(Integer isCert) {\n\t\tthis.isCert = isCert;\n\t}",
"boolean hasSecIdType();",
"private boolean checkVisualCondition(final String[] condArray) throws Exception {\r\n\t\t//boolean isDisplay = true ; // remarked by Leo YEUNG for testing\r\n\t\tboolean isDisplay = false ;\r\n\t\tint CondPassCount = 0; //Use to count the number of Boolean expressions passed\t\t\t\t\t\t \r\n\t\tint CondAmount = condArray.length;//Total number of Boolean expressions in this Node\r\n\t\t//Loop for all Boolean expressions in one conditon\t\t\t \r\n\t\tfor (int k=0; k<CondAmount; k++) {\t\t \t\t\t\t\t\r\n\t\t\tif (CondPassCount<k) break;\t //Exit the following condition check while one of the Boolean expresssion is failure which save the loop time\r\n\t\t\t//Loop for sort out different Attribute\r\n\t\t\tfor (int m=0; m<conAttName.length; m++) {\r\n\t\t\t\tint previousCondPassCount = CondPassCount;//a value use to check the Boolean expresssion is failure\r\n\t\t\t\tif (condArray[k].toUpperCase().startsWith(conAttName[m].toUpperCase())){ \r\n\t\t\t\t\tfinal String tempConAttType = conAttType[m]; // ldap attribute type\r\n\t\t\t\t\tfinal String tempValue = condArray[k].substring(conAttName[m].length());\r\n\t\t\t\t\tfinal int tempColonIndex = condArray[k].indexOf(\"\\\"\");\r\n\t\t\t\t\tfinal String attName = condArray[k].substring(0,conAttName[m].length()); \t \t\t\t \t\t \t\t\t\t //Attribute Name\r\n\t\t\t\t\tfinal String attCond = condArray[k].substring(conAttName[m].length(),tempColonIndex); //Attribute condition syntax\r\n\t\t\t\t\tfinal String attVal = condArray[k].substring(tempColonIndex+1,condArray[k].lastIndexOf(\"\\\"\"));//Attribute Value\r\n\t\t\t\t\tint k2 = k+1;\r\n\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" checking for \" + condArray[k]+\" Start\");\r\n\t\t\t\t\t//Condition Greater Than\r\n\t\t\t\t\tif (attCond.equalsIgnoreCase(Constant.gt)){ \r\n\t\t\t\t\t\tif (ht.get(attName.toUpperCase()) != null){\r\n\t\t\t\t\t\t\tint intCrtUserInfo;\r\n\t\t\t\t\t\t\tint intAttVal;\r\n\t\t\t\t\t\t\tString strCrtUserInfo;\r\n\t\t\t\t\t\t\tString strAttVal;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (tempConAttType.equalsIgnoreCase(\"cis\")){\r\n\t\t\t\t\t\t\t\tstrCrtUserInfo = (String)ht.get(attName.toUpperCase());\r\n\t\t\t\t\t\t\t\tstrAttVal = attVal;\r\n\t\t\t\t\t\t\t\tif (strCrtUserInfo.compareTo(strAttVal) > 0 ){\r\n\t\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\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\t\t\t\t\t\t \t \t\t\r\n\t\t\t\t\t\t\t} else if(tempConAttType.equalsIgnoreCase(\"int\")){\r\n\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\tintCrtUserInfo = Integer.parseInt((String)ht.get(attName.toUpperCase()));\r\n\t\t\t\t\t\t\t\t\tintAttVal = Integer.parseInt(attVal);\r\n\t\t\t\t\t\t\t\t}catch (NumberFormatException e){\r\n\t\t\t\t\t\t\t\t\tlogger.error(\"checkVisualCondition:\" + e.getMessage(), e);\r\n\t\t\t\t\t\t\t\t\tlogger.error(\"Invalid attribute value: The attribute value is not numeric, the <Greater Than> condition cannot apply.\");\r\n\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\tthrow new Exception(e.getMessage());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (intCrtUserInfo > intAttVal){\r\n\t\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\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\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t//Condition Less Than\r\n\t\t\t\t\t} else if (attCond.equalsIgnoreCase(Constant.lt)){\r\n\t\t\t\t\t\tif (ht.get(attName.toUpperCase()) != null) {\r\n\t\t\t\t\t\t\tint intCrtUserInfo;\r\n\t\t\t\t\t\t\tint intAttVal;\r\n\t\t\t\t\t\t\tString strCrtUserInfo;\r\n\t\t\t\t\t\t\tString strAttVal;\t\t\t\t\t\t\t\t\t\t\t \t \t\r\n\t\t\t\t\t\t\tif (tempConAttType.equalsIgnoreCase(\"cis\")){\r\n\t\t\t\t\t\t\t\tstrCrtUserInfo = (String)ht.get(attName.toUpperCase());\r\n\t\t\t\t\t\t\t\tstrAttVal = attVal;\r\n\t\t\t\t\t\t\t\tif (strCrtUserInfo.compareTo(strAttVal) < 0 ){\r\n\t\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\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\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}else if(tempConAttType.equalsIgnoreCase(\"int\")){\r\n\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\tintCrtUserInfo = Integer.parseInt((String)ht.get(attName.toUpperCase()));\r\n\t\t\t\t\t\t\t\t\tintAttVal = Integer.parseInt(attVal);\r\n\t\t\t\t\t\t\t\t}catch (NumberFormatException e){\r\n\t\t\t\t\t\t\t\t\tlogger.error(\"checkVisualCondition:\" + e.getMessage(), e);\r\n\t\t\t\t\t\t\t\t\tlogger.error(\"Invalid attribute value: The attribute value is not numeric, the <Less than> condition cannot apply.\");\r\n\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\tthrow new Exception(e.getMessage());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (intCrtUserInfo < intAttVal){\r\n\t\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\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}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t//Condition Greater and Equal\t\r\n\t\t\t\t\t} else if (attCond.equalsIgnoreCase(Constant.ge)){ \r\n\t\t\t\t\t\tif (ht.get(attName.toUpperCase()) != null) {\r\n\t\t\t\t\t\t\tint intCrtUserInfo;\r\n\t\t\t\t\t\t\tint intAttVal;\r\n\t\t\t\t\t\t\tString strCrtUserInfo;\r\n\t\t\t\t\t\t\tString strAttVal;\t\t\t\t\t\t\t\t\t\t\t \t \t\r\n\t\t\t\t\t\t\tif (tempConAttType.equalsIgnoreCase(\"cis\")){\r\n\t\t\t\t\t\t\t\tstrCrtUserInfo = (String)ht.get(attName.toUpperCase());\r\n\t\t\t\t\t\t\t\tstrAttVal = attVal;\r\n\t\t\t\t\t\t\t\tif (strCrtUserInfo.compareTo(strAttVal) >= 0 ){\r\n\t\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\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\t\t\t\t\t\t \t \t\t\r\n\t\t\t\t\t\t\t}else if(tempConAttType.equalsIgnoreCase(\"int\")){\r\n\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\tintCrtUserInfo = Integer.parseInt((String)ht.get(attName.toUpperCase()));\r\n\t\t\t\t\t\t\t\t\tintAttVal = Integer.parseInt(attVal);\r\n\t\t\t\t\t\t\t\t} catch (NumberFormatException e){\r\n\t\t\t\t\t\t\t\t\tlogger.error(\"checkVisualCondition:\" + e.getMessage(), e);\r\n\t\t\t\t\t\t\t\t\tlogger.error(\"Invalid attribute value: The attribute value is not numeric, the <Greater and Equal to> condition cannot apply.\");\r\n\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\tthrow new Exception(e.getMessage());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (intCrtUserInfo >= intAttVal){\r\n\t\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\r\n\t\t\t\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//Condition Less and Equal\t\t\t\t\t\t\r\n\t\t\t\t\t} else if (attCond.equalsIgnoreCase(Constant.le)){ \r\n\t\t\t\t\t\tif (ht.get(attName.toUpperCase()) != null) {\r\n\t\t\t\t\t\t\tint intCrtUserInfo;\r\n\t\t\t\t\t\t\tint intAttVal;\r\n\t\t\t\t\t\t\tString strCrtUserInfo;\r\n\t\t\t\t\t\t\tString strAttVal;\t\t\t\t\t\t\t\t\t\t\t \t \t\r\n\t\t\t\t\t\t\tif (tempConAttType.equalsIgnoreCase(\"cis\")){\r\n\t\t\t\t\t\t\t\tstrCrtUserInfo = (String)ht.get(attName.toUpperCase());\r\n\t\t\t\t\t\t\t\tstrAttVal = attVal;\r\n\t\t\t\t\t\t\t\tif (strCrtUserInfo.compareTo(strAttVal) <= 0 ){\r\n\t\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\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\t\t\t\t\t\t \t \t\t\r\n\t\t\t\t\t\t\t}else if(tempConAttType.equalsIgnoreCase(\"int\")){\r\n\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\tintCrtUserInfo = Integer.parseInt((String)ht.get(attName.toUpperCase()));\r\n\t\t\t\t\t\t\t\t\tintAttVal = Integer.parseInt(attVal);\r\n\t\t\t\t\t\t\t\t}catch (NumberFormatException e){\r\n\t\t\t\t\t\t\t\t\tlogger.error(\"checkVisualCondition::\" + e.getMessage(), e);\r\n\t\t\t\t\t\t\t\t\tlogger.error(\"Invalid attribute value: The attribute value is not numeric, the <Less and Equal to> condition cannot apply.\");\r\n\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\tthrow new Exception(e.getMessage());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (intCrtUserInfo <= intAttVal){\r\n\t\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\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}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t//Condition Equal\t\r\n\t\t\t\t\t} else if (attCond.equalsIgnoreCase(Constant.equal)){ //Equal\r\n\t\t\t\t\t\tif (ht.get(attName.toUpperCase()) != null) {\r\n\t\t\t\t\t\t\tint intCrtUserInfo;\r\n\t\t\t\t\t\t\tint intAttVal;\r\n\t\t\t\t\t\t\tString strCrtUserInfo;\r\n\t\t\t\t\t\t\tString strAttVal;\t\t\t\t\t\t\t\t\t\t\t \t \t\r\n\t\t\t\t\t\t\tif (tempConAttType.equalsIgnoreCase(\"cis\")){\r\n\t\t\t\t\t\t\t\tstrCrtUserInfo = (String)ht.get(attName.toUpperCase());\r\n\t\t\t\t\t\t\t\tstrAttVal = attVal;\r\n\t\t\t\t\t\t\t\t\tif (strCrtUserInfo.equalsIgnoreCase(strAttVal)){\r\n\t\t\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\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\t\t\t\t\t\t\t \t \t\t\r\n\t\t\t\t\t\t\t} else if(tempConAttType.equalsIgnoreCase(\"int\")){\r\n\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\tintCrtUserInfo = Integer.parseInt((String)ht.get(attName.toUpperCase()));\r\n\t\t\t\t\t\t\t\t\tintAttVal = Integer.parseInt(attVal);\r\n\t\t\t\t\t\t\t\t}catch (NumberFormatException e){\r\n\t\t\t\t\t\t\t\t\tlogger.error(\"checkVisualCondition:\" + e.getMessage(), e);\r\n\t\t\t\t\t\t\t\t\tlogger.error(\"Invalid attribute value: The attribute value is not numeric, the <equal to> condition cannot apply.\");\r\n\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\tthrow new Exception(e.getMessage());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (intCrtUserInfo == intAttVal){\r\n\t\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\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\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t//Condition Not Equal to\t\r\n\t\t\t\t\t} else if (attCond.equalsIgnoreCase(Constant.not_equal)){\r\n\t\t\t\t\t\tif (ht.get(attName.toUpperCase()) != null) {\r\n\t\t\t\t\t\t\tint intCrtUserInfo;\r\n\t\t\t\t\t\t\tint intAttVal;\r\n\t\t\t\t\t\t\tString strCrtUserInfo;\r\n\t\t\t\t\t\t\tString strAttVal;\t\t\t\t\t\t\t\t\t\t\t \t \t\r\n\t\t\t\t\t\t\tif (tempConAttType.equalsIgnoreCase(\"cis\")){\r\n\t\t\t\t\t\t\t\tstrCrtUserInfo = (String)ht.get(attName.toUpperCase());\r\n\t\t\t\t\t\t\t\tstrAttVal = attVal;\r\n\t\t\t\t\t\t\t\tif (!strCrtUserInfo.equalsIgnoreCase(strAttVal)){\r\n\t\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\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\t\t\t\t\t\t \t \t\t\r\n\t\t\t\t\t\t\t} else if(tempConAttType.equalsIgnoreCase(\"int\")){\r\n\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\tintCrtUserInfo = Integer.parseInt((String)ht.get(attName.toUpperCase()));\r\n\t\t\t\t\t\t\t\t\tintAttVal = Integer.parseInt(attVal);\r\n\t\t\t\t\t\t\t\t}catch (NumberFormatException e){\r\n\t\t\t\t\t\t\t\t\tlogger.error(\"checkVisualCondition:\" + e.getMessage(), e);\r\n\t\t\t\t\t\t\t\t\tlogger.error(\"Invalid attribute value: The attribute value is not numeric, the <Not equal to> condition cannot apply.\");\r\n\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\tthrow new Exception(e.getMessage());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (intCrtUserInfo != intAttVal){\r\n\t\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\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}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t//Condition Contain\t\r\n\t\t\t\t\t} else if (attCond.equalsIgnoreCase(Constant.contain)){ \r\n\t\t\t\t\t\tif (ht.get(attName.toUpperCase()) != null) {\r\n\t\t\t\t\t\t\tif (((String)ht.get(attName.toUpperCase())).indexOf(attVal)!=-1){\r\n\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\r\n\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t//Condition Start with\t \t \r\n\t\t\t\t\t} else if (attCond.equalsIgnoreCase(Constant.start_with)){\r\n\t\t\t\t\t\tif (ht.get(attName.toUpperCase()) != null) {\r\n\t\t\t\t\t\t\tif (((String)ht.get(attName.toUpperCase())).startsWith(attVal)){\r\n\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\r\n\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t//Condition\tNot contain\t\r\n\t\t\t\t\t} else if (attCond.equalsIgnoreCase(Constant.not_contain)){ \r\n\t\t\t\t\t\tif (ht.get(attName.toUpperCase()) != null) {\r\n\t\t\t\t\t\t\tif (((String)ht.get(attName.toUpperCase())).indexOf(attVal)==-1){\r\n\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\r\n\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t//Condition Not start with\t\r\n\t\t\t\t\t} else if (attCond.equalsIgnoreCase(Constant.not_start_with)){\r\n\t\t\t\t\t\tif (!((String)ht.get(attName.toUpperCase())).startsWith(attVal)){\r\n\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t//Finally, Syntax Error\t \r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tlogger.error(\"checkVisualCondition:Invalid condition syntax found: \" + attCond);\r\n\t\t\t\t\t} \r\n\t\t\t\t}\t\r\n\t\t\t\tif (previousCondPassCount<CondPassCount) break; // condition passed. Exit the for loop\r\n\t\t\t}\r\n\t\t\tif (CondPassCount == CondAmount) isDisplay = true;\r\n\t\t}\r\n\t\t//logger.debug(\"checkVistualCondition: isDisplay = \" + isDisplay);\r\n\t\t//logger.debug(\"checkVistualCondition: CondPassCount = \" + CondPassCount);\r\n\t\t//logger.debug(\"checkVistualCondition: CondAmount = \" + CondAmount);\r\n\t\treturn isDisplay;\r\n\t}",
"boolean hasC();",
"@Override\r\n public boolean isCompatible(QosLiveliness requested) {\r\n if ((kind >= requested.kind) && (lease_duration.asMillis() <= requested.lease_duration.asMillis())) {\r\n return true;\r\n }\r\n return false;\r\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ComplianceCheckResult addNewComplianceCheckResult();",
"protected boolean isConsistentWith(BasisCondition uc)\n{\n if (uc instanceof BasisConditionDuration) {\n BasisConditionDuration bct = (BasisConditionDuration) uc;\n if (bct.base_condition == bct.base_condition) {\n\t if (max_time <= bct.min_time || min_time >= bct.max_time) return false;\n\t return true;\n }\n }\n\n return base_condition.isConsistentWith(uc);\n}",
"static int type_of_cnz(String passed){\n\t\treturn 1;\n\t}",
"boolean hasReqardTypeThree();",
"static int type_of_cpo(String passed){\n\t\treturn 1;\n\t}",
"boolean hasHas_certainty();",
"boolean hasExternalAttributionCredit();",
"protected final void checkExtensionValueSpec119612Vers020101(ITSLObject tsl, ServiceHistoryInstance shi, boolean isCritical) throws TSLMalformedException {\n\n\t\t// Comprobamos primero los Qualifiers.\n\t\tif (qualifiersList.isEmpty()) {\n\t\t\tthrow new TSLMalformedException(IValetException.COD_187, Language.getFormatResCoreTsl(ICoreTslMessages.LOGMTSL026, new Object[ ] { ITSLElementsAndAttributes.ELEMENT_EXTENSION_QUALIFICATION_QUALIFIER }));\n\t\t} else {\n\t\t\tfor (URI qualifierUri: qualifiersList) {\n\t\t\t\tString qualifierUriString = qualifierUri.toString();\n\t\t\t\tboolean isValid = qualifierUriString.equals(ITSLCommonURIs.TSL_SERVINFEXT_QUALEXT_QUALIFIER_QCWITHSSCD) || qualifierUriString.equals(ITSLCommonURIs.TSL_SERVINFEXT_QUALEXT_QUALIFIER_QCNOSSCD);\n\t\t\t\tisValid = isValid || qualifierUriString.equals(ITSLCommonURIs.TSL_SERVINFEXT_QUALEXT_QUALIFIER_QCSTATUSASINCERT) || qualifierUriString.equals(ITSLCommonURIs.TSL_SERVINFEXT_QUALEXT_QUALIFIER_QCWITHQSCD);\n\t\t\t\tisValid = isValid || qualifierUriString.equals(ITSLCommonURIs.TSL_SERVINFEXT_QUALEXT_QUALIFIER_QCNOQSCD) || qualifierUriString.equals(ITSLCommonURIs.TSL_SERVINFEXT_QUALEXT_QUALIFIER_QCQSCDSTATUSASINCERT);\n\t\t\t\tisValid = isValid || qualifierUriString.equals(ITSLCommonURIs.TSL_SERVINFEXT_QUALEXT_QUALIFIER_QCQSCDMANAGEDONBEHALF) || qualifierUriString.equals(ITSLCommonURIs.TSL_SERVINFEXT_QUALEXT_QUALIFIER_QCFORLEGALPERSON);\n\t\t\t\tisValid = isValid || qualifierUriString.equals(ITSLCommonURIs.TSL_SERVINFEXT_QUALEXT_QUALIFIER_QCFORESIG) || qualifierUriString.equals(ITSLCommonURIs.TSL_SERVINFEXT_QUALEXT_QUALIFIER_QCFORESEAL);\n\t\t\t\tisValid = isValid || qualifierUriString.equals(ITSLCommonURIs.TSL_SERVINFEXT_QUALEXT_QUALIFIER_QCFORWSA) || qualifierUriString.equals(ITSLCommonURIs.TSL_SERVINFEXT_QUALEXT_QUALIFIER_NOTQUALIFIED);\n\t\t\t\tisValid = isValid || qualifierUriString.equals(ITSLCommonURIs.TSL_SERVINFEXT_QUALEXT_QUALIFIER_QCSTATEMENT);\n\t\t\t\tif (!isValid) {\n\t\t\t\t\tthrow new TSLMalformedException(IValetException.COD_187, Language.getFormatResCoreTsl(ICoreTslMessages.LOGMTSL036, new Object[ ] { qualifierUriString }));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Comprobamos el CriteriaList.\n\t\tif (criteriaList == null) {\n\t\t\tthrow new TSLMalformedException(IValetException.COD_187, Language.getFormatResCoreTsl(ICoreTslMessages.LOGMTSL024, new Object[ ] { ITSLElementsAndAttributes.ELEMENT_EXTENSION_QUALIFICATIONS_QUALIFICATION, ITSLElementsAndAttributes.ELEMENT_EXTENSION_QUALIFICATION_CRITERIALIST }));\n\t\t} else {\n\t\t\tcriteriaList.checkExtensionValueSpec119612Vers020101(tsl, shi, isCritical);\n\t\t}\n\n\t}",
"org.openxmlformats.schemas.presentationml.x2006.main.STCryptProv xgetCryptProviderType();",
"boolean isSetCapitalPayed();",
"boolean isSetCryptProviderTypeExtSource();",
"int updateByPrimaryKeySelective(TdxNoticeCertificate record);",
"@Test\n public void testBoundsAsCompositesWithSingleEqAndSliceRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n ByteBuffer value4 = ByteBufferUtil.bytes(4);\n ByteBuffer value5 = ByteBufferUtil.bytes(5);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) > (2, 3)\n Restriction singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction multiSlice = newMultiSlice(cfMetaData, 1, Bound.START, false, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiSlice);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, EOC.END);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) > (2, 3) AND (clustering_1) < (4)\n singleEq = newSingleEq(cfMetaData, 0, value1);\n multiSlice = newMultiSlice(cfMetaData, 1, Bound.START, false, value2, value3);\n Restriction multiSlice2 = newMultiSlice(cfMetaData, 1, Bound.END, false, value4);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiSlice2).mergeWith(singleEq).mergeWith(multiSlice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value4, EOC.START);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) => (2, 3) AND (clustering_1, clustering_2) <= (4, 5)\n singleEq = newSingleEq(cfMetaData, 0, value1);\n multiSlice = newMultiSlice(cfMetaData, 1, Bound.START, true, value2, value3);\n multiSlice2 = newMultiSlice(cfMetaData, 1, Bound.END, true, value4, value5);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(multiSlice2).mergeWith(singleEq).mergeWith(multiSlice);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.NONE);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value4, value5, EOC.END);\n }",
"boolean isSetNcbi8Aa();",
"int insertSelective(CGcontractCredit record);",
"int updateByPrimaryKeySelective(PcQualificationInfo record);",
"private boolean isContractionTag(int ce)\n {\n return RuleBasedCollator.isSpecial(ce) &&\n RuleBasedCollator.getTag(ce) == CE_CONTRACTION_TAG_;\n }",
"Collection<? extends Object> getHas_certainty();",
"int insertSelective(CostAccountingStatisticByLineDetail record);",
"public static boolean isSupplemental(int c) {\n return (c >= 0x10000 && c <= 0x10FFFF);\n }",
"int countByExample(PcQualificationInfoExample example);",
"static int type_of_dcx(String passed){\n\t\treturn 1;\n\t}",
"public boolean testMaterial(EIfcmaterialconstituent type) throws SdaiException;",
"boolean hasI11();",
"public void evel_thresholdcross_type_set(String type)\r\n\t{\r\n\t EVEL_ENTER();\r\n\r\n\t /***************************************************************************/\r\n\t /* Check preconditions and call evel_header_type_set. */\r\n\t /***************************************************************************/\r\n\t assert(type!=null);\r\n\t assert(event_domain == EvelHeader.DOMAINS.EVEL_DOMAIN_THRESHOLD_CROSSING);\r\n\t evel_header_type_set(type);\r\n\r\n\t EVEL_EXIT();\r\n\t}",
"private void checkConditionsToInteroperate(AID client) {\r\n\t\tif (!client.equals(TRUSTED_AID_1))\r\n\t\t\tISOException.throwIt(SW_CLIENT_UNAUTHORISED);\r\n\t\tif (image.isActive())\r\n\t\t\tISOException.throwIt(ISO7816.SW_CONDITIONS_NOT_SATISFIED);\r\n\t}",
"boolean hasReqardTypeThirty();",
"@Test\n public void testBoundsAsCompositesWithSingleEqAndMultiEqRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n ByteBuffer value4 = ByteBufferUtil.bytes(4);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) = (2, 3)\n Restriction singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction multiEq = newMultiEq(cfMetaData, 1, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND clustering_1 = 2 AND (clustering_2, clustering_3) = (3, 4)\n singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction singleEq2 = newSingleEq(cfMetaData, 1, value2);\n multiEq = newMultiEq(cfMetaData, 2, value3, value4);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(singleEq2).mergeWith(multiEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.END);\n\n // (clustering_0, clustering_1) = (1, 2) AND clustering_2 = 3\n singleEq = newSingleEq(cfMetaData, 2, value3);\n multiEq = newMultiEq(cfMetaData, 0, value1, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) = (2, 3) AND clustering_3 = 4\n singleEq = newSingleEq(cfMetaData, 0, value1);\n singleEq2 = newSingleEq(cfMetaData, 3, value4);\n multiEq = newMultiEq(cfMetaData, 1, value2, value3);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq).mergeWith(singleEq2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.END);\n }",
"org.openxmlformats.schemas.presentationml.x2006.main.STCryptProv.Enum getCryptProviderType();",
"boolean hasCertificate();",
"@Test\n @Tag(\"bm1000\")\n public void testCAPRI() {\n CuteNetlibCase.doTest(\"CAPRI.SIF\", \"2690.0129137681624\", null, NumberContext.of(7, 4));\n }",
"boolean hasReqardTypeTen();",
"private void CustomerPaidCheck() {\n\t\tfloat CompanyDemand = Float.parseFloat(label_7.getText());\n\t\tif (CompanyDemand > 0) {\n\n\t\t\ttry {\n\t\t\t\tPreparedStatement statement = DBConnection.connection\n\t\t\t\t\t\t.prepareStatement(\"update customer_list set `Check` = 0 where Name = '\"\n\t\t\t\t\t\t\t\t+ name + \"'And Last_Name = '\" + lastName + \"' \");\n\t\t\t\tstatement.execute();\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tPreparedStatement statement = DBConnection.connection\n\t\t\t\t\t\t.prepareStatement(\"update customer_list set `Check` = 1 where Name = '\"\n\t\t\t\t\t\t\t\t+ name + \"'And Last_Name = '\" + lastName + \"' \");\n\t\t\t\tstatement.execute();\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"@Test\n\tpublic void serviceQualificationEE() throws Exception {\n\t\tTSLParser parser = new TSLParser(new FileInputStream(new File(\"src/test/resources/tsls/0A191C3E18CAB7B783E690D3E4431C354A068FF0.xml\")));\n\t\tTSLParserResult model = parser.call();\n\n\t\tList<TSLServiceProvider> serviceProviders = model.getServiceProviders();\n\t\tassertEquals(2, serviceProviders.size());\n\n\t\tTSLService service = getESTEIDSK2007(serviceProviders);\n\t\tassertNotNull(service);\n\n\t\tList<TSLServiceExtension> extensions = service.getExtensions();\n\t\tassertEquals(1, extensions.size());\n\t\tTSLServiceExtension extension = extensions.get(0);\n\n\t\tList<TSLConditionsForQualifiers> conditionsForQualifiers = extension.getConditionsForQualifiers();\n\t\tassertEquals(1, conditionsForQualifiers.size());\n\n\t\tTSLConditionsForQualifiers qcStatement = getQualificationQCStatement(conditionsForQualifiers);\n\t\tassertNull(qcStatement);\n\n\t\t// ***************************** NEW VERSION OF TL\n\n\t\tCertificateToken certificate = DSSUtils.loadCertificateFromBase64EncodedString(\n\t\t\t\t\"MIID3DCCAsSgAwIBAgIER/idhzANBgkqhkiG9w0BAQUFADBbMQswCQYDVQQGEwJFRTEiMCAGA1UEChMZQVMgU2VydGlmaXRzZWVyaW1pc2tlc2t1czEPMA0GA1UECxMGRVNURUlEMRcwFQYDVQQDEw5FU1RFSUQtU0sgMjAwNzAeFw0wODA0MDYwOTUzMDlaFw0xMjAzMDUyMjAwMDBaMIGWMQswCQYDVQQGEwJFRTEPMA0GA1UEChMGRVNURUlEMRowGAYDVQQLExFkaWdpdGFsIHNpZ25hdHVyZTEiMCAGA1UEAxMZU0lOSVZFRSxWRUlLTywzNjcwNjAyMDIxMDEQMA4GA1UEBBMHU0lOSVZFRTEOMAwGA1UEKhMFVkVJS08xFDASBgNVBAUTCzM2NzA2MDIwMjEwMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCGRN42R9e6VEHMCyvacuubjtm1+5Kk92WgIgtWA8hY8DW2iNvQJ3jOF5XlVIyIDTwl2JVKxWKhXX+8+yNFPpqAK43IINcmMfznw/KcR7jACGNuTrivA9HrvRiqDzTg5E1rktjho6OkDkdV3dgOLB2wyhVm2anNpICfrUq8c09HPwIDMMP5o4HvMIHsMA4GA1UdDwEB/wQEAwIGQDA8BgNVHR8ENTAzMDGgL6AthitodHRwOi8vd3d3LnNrLmVlL2NybHMvZXN0ZWlkL2VzdGVpZDIwMDcuY3JsMFEGA1UdIARKMEgwRgYLKwYBBAHOHwEBAQEwNzASBggrBgEFBQcCAjAGGgRub25lMCEGCCsGAQUFBwIBFhVodHRwOi8vd3d3LnNrLmVlL2Nwcy8wHwYDVR0jBBgwFoAUSAbevoyHV5WAeGP6nCMrK6A6GHUwHQYDVR0OBBYEFJAJUyDrH3rdxTStU+LDa6aHdE8dMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQEFBQADggEBAA5qjfeuTdOoEtatiA9hpjDHzyqN1PROcaPrABXGqpLxcHbLVr7xmovILAjxS9fJAw28u9ZE3asRNa9xgQNTeX23mMlojJAYVbYCeIeJ6jtsRiCo34wgvO3CtVfO3+C1T8Du5XLCHa6SoT8SpCApW+Crwe+6eCZDmv2NKTjhn1wCCNO2e8HuSt+pTUNBTUB+rkvF4KO9VnuzRzT7zN7AUdW4OFF3bI+9+VmW3t9vq1zDOxNTdBkCM3zm5TRa8ZtyAPL48bW19JAcYzQLjPGORwoIRNSXdVTqX+cDiw2wbmb2IhPdxRqN9uPwU1x/ltZZ3W5GzJ1t8JeQN7PuGM0OHqE=\");\n\n\t\tparser = new TSLParser(new FileInputStream(new File(\"src/test/resources/tsls/0A191C3E18CAB7B783E690D3E4431C354A068FF0-2.xml\")));\n\t\tmodel = parser.call();\n\n\t\tserviceProviders = model.getServiceProviders();\n\t\tassertEquals(2, serviceProviders.size());\n\n\t\tservice = getESTEIDSK2007(serviceProviders);\n\t\tassertNotNull(service);\n\n\t\textensions = service.getExtensions();\n\t\tassertEquals(1, extensions.size());\n\t\textension = extensions.get(0);\n\n\t\tconditionsForQualifiers = extension.getConditionsForQualifiers();\n\t\tassertEquals(2, conditionsForQualifiers.size());\n\n\t\tqcStatement = getQualificationQCStatement(conditionsForQualifiers);\n\t\tassertNotNull(qcStatement);\n\n\t\tCondition condition = qcStatement.getCondition();\n\t\tassertTrue(condition.check(certificate));\n\t}",
"int insertSelective(CmIndustryConfig record);",
"boolean mo6499P(C41531v c41531v);",
"static int type_of_cc(String passed){\n\t\treturn 1;\n\t}",
"@Override\n public boolean hasIsTransient()\n {\n return version.compareTo(\"ca\") >= 0;\n }",
"int insertSelective(ErpOaLicKey record);",
"public void setCpscCase(int cpscCase) { this.cpscCase = cpscCase; }",
"@Test\n public void testBoundsAsCompositesWithOneEqRestrictionsAndOneClusteringColumn()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC);\n\n ByteBuffer clustering_0 = ByteBufferUtil.bytes(1);\n Restriction eq = newSingleEq(cfMetaData, 0, clustering_0);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.END);\n }",
"@Override\n public void checkServerTrusted(\n java.security.cert.X509Certificate[] certs, String authType)\n throws CertificateException {\n InputStream inStream = null;\n try {\n // Loading the CA cert\n URL u = getClass().getResource(\"dstca.cer\");\n inStream = new FileInputStream(u.getFile());\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n X509Certificate ca = (X509Certificate) cf.generateCertificate(inStream);\n inStream.close();\n //if(certs[0].getSignature().equals(ca.getSignature()))\n for (int i = 0; i < certs.length ; i++) {\n X509Certificate cert = certs[i];\n // Verifing by public key\n try{\n cert.verify(certs[i+1].getPublicKey());\n }catch (Exception e) {\n cert.verify(ca.getPublicKey());\n }\n }\n } catch (Exception ex) {\n Monitor.logger(ex.getLocalizedMessage());\n ex.printStackTrace();\n throw new CertificateException(ex);\n } finally {\n try {\n inStream.close();\n } catch (IOException ex) {\n Monitor.logger(ex.getLocalizedMessage());\n ex.printStackTrace();\n }\n }\n\n }",
"org.apache.xmlbeans.XmlUnsignedInt xgetCryptProviderTypeExt();",
"private boolean doMASCCheckFor(Mounted masc, Vector<Report> vDesc, HashMap<Integer, CriticalSlot> vCriticals) {\n if (masc != null) {\n boolean bFailure = false;\n int nRoll = Compute.d6(2);\n\n usedMASC = true;\n Report r = new Report(2365);\n r.subject = getId();\n r.addDesc(this);\n r.add(masc.getName());\n vDesc.addElement(r);\n r = new Report(2370);\n r.subject = getId();\n r.indent();\n r.add(getMASCTarget());\n r.add(nRoll);\n\n if (nRoll < getMASCTarget()) {\n // uh oh\n bFailure = true;\n r.choose(false);\n vDesc.addElement(r);\n\n if (((MiscType) (masc.getType())).hasSubType(MiscType.S_SUPERCHARGER)) {\n if (masc.getType().hasFlag(MiscType.F_MASC)) {\n masc.setHit(true);\n masc.setMode(\"Off\");\n }\n // do the damage - engine crits\n int hits = 0;\n int roll = Compute.d6(2);\n r = new Report(6310);\n r.subject = getId();\n r.add(roll);\n r.newlines = 0;\n vDesc.addElement(r);\n if (roll <= 7) {\n // no effect\n r = new Report(6005);\n r.subject = getId();\n r.newlines = 0;\n vDesc.addElement(r);\n } else if ((roll >= 8) && (roll <= 9)) {\n hits = 1;\n r = new Report(6315);\n r.subject = getId();\n r.newlines = 0;\n vDesc.addElement(r);\n } else if ((roll >= 10) && (roll <= 11)) {\n hits = 2;\n r = new Report(6320);\n r.subject = getId();\n r.newlines = 0;\n vDesc.addElement(r);\n } else if (roll == 12) {\n hits = 3;\n r = new Report(6325);\n r.subject = getId();\n r.newlines = 0;\n vDesc.addElement(r);\n }\n for (int i = 0; (i < 12) && (hits > 0); i++) {\n CriticalSlot cs = getCritical(LOC_CT, i);\n if ((cs.getType() == CriticalSlot.TYPE_SYSTEM) && (cs.getIndex() == SYSTEM_ENGINE)) {\n vCriticals.put(new Integer(LOC_CT), cs);\n hits--;\n }\n }\n } else {\n // do the damage.\n // random crit on each leg, but MASC is not destroyed\n for (int loc = 0; loc < locations(); loc++) {\n if (locationIsLeg(loc) && (getHittableCriticals(loc) > 0)) {\n CriticalSlot slot = null;\n do {\n int slotIndex = Compute.randomInt(getNumberOfCriticals(loc));\n slot = getCritical(loc, slotIndex);\n } while ((slot == null) || !slot.isHittable());\n vCriticals.put(new Integer(loc), slot);\n }\n }\n }\n // failed a PSR, check for stalling\n doCheckEngineStallRoll(vDesc);\n } else {\n r.choose(true);\n vDesc.addElement(r);\n }\n return bFailure;\n }\n return false;\n }",
"public int getCpscCase() { return cpscCase; }",
"public void testAllSupportedMedicalConditionsForNotify() {\n Map<String, MedicalCondition> conditions = cache.getConditions(Service.NOTIFY);\n assertEquals(165, conditions.size());\n }",
"int insertSelective(CmGroupRelIndustry record);",
"private boolean verifyDocType() {\n if (getC_DocType_ID() == 0) {\n return false;\n }\n //\n Boolean invoiceSO = null;\n //\tCheck Invoice First\n if (getC_Invoice_ID() > 0) {\n String sql = \"SELECT idt.IsSOTrx \"\n + \"FROM C_Invoice i\"\n + \" INNER JOIN C_DocType idt ON (i.C_DocType_ID=idt.C_DocType_ID) \"\n + \"WHERE i.C_Invoice_ID=?\";\n PreparedStatement pstmt = null;\n try {\n pstmt = DB.prepareStatement(sql, get_TrxName());\n pstmt.setInt(1, getC_Invoice_ID());\n ResultSet rs = pstmt.executeQuery();\n if (rs.next()) {\n invoiceSO = new Boolean(\"Y\".equals(rs.getString(1)));\n }\n rs.close();\n pstmt.close();\n pstmt = null;\n } catch (Exception e) {\n log.log(Level.SEVERE, sql, e);\n }\n try {\n if (pstmt != null) {\n pstmt.close();\n }\n pstmt = null;\n } catch (Exception e) {\n pstmt = null;\n }\n }\t//\tInvoice\n\n //\tDocumentType\n Boolean paymentSO = null;\n PreparedStatement pstmt = null;\n String sql = \"SELECT IsSOTrx \"\n + \"FROM C_DocType \"\n + \"WHERE C_DocType_ID=?\";\n try {\n pstmt = DB.prepareStatement(sql, get_TrxName());\n pstmt.setInt(1, getC_DocType_ID());\n ResultSet rs = pstmt.executeQuery();\n if (rs.next()) {\n paymentSO = new Boolean(\"Y\".equals(rs.getString(1)));\n }\n rs.close();\n pstmt.close();\n pstmt = null;\n } catch (Exception e) {\n log.log(Level.SEVERE, sql, e);\n }\n try {\n if (pstmt != null) {\n pstmt.close();\n }\n pstmt = null;\n } catch (Exception e) {\n pstmt = null;\n }\n //\tNo Payment info\n if (paymentSO == null) {\n return false;\n }\n setIsReceipt(paymentSO.booleanValue());\n\n //\tWe have an Invoice .. and it does not match\n if (invoiceSO != null\n && invoiceSO.booleanValue() != paymentSO.booleanValue()) {\n return false;\n }\n //\tOK\n return true;\n }",
"private boolean getCashStatus(String type) {\n boolean flag = false;\n if (type.equalsIgnoreCase(PdfConstants.PROMO_CREDIT) || type.equalsIgnoreCase(PdfConstants.BLACKHAWK)\n || type.equalsIgnoreCase(PdfConstants.PRECASH) || type.equalsIgnoreCase(PdfConstants.INCOMM)) {\n flag = true;\n }\n return flag;\n }",
"long getCryptProviderTypeExt();",
"boolean canCrit();",
"public void setAttVCA(int att){\n\t\t\n\t\tsuper.setAttVCA((att == 0)? 1 : att );\n\t}",
"public Criteria andCnameLessThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"cname <= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"public void evel_threshold_cross_data_elementtype_set(String sheader)\r\n\t {\r\n\t\t EVEL_ENTER();\r\n\r\n\t\t /***************************************************************************/\r\n\t\t /* Check preconditions. */\r\n\t\t /***************************************************************************/\r\n\t\t assert(event_domain == EvelHeader.DOMAINS.EVEL_DOMAIN_THRESHOLD_CROSSING);\r\n\t\t \r\n\t\t assert(sheader != null);\r\n\r\n\t\t elementType.SetValuePr(\r\n\t\t sheader,\r\n\t\t \"TCA Element type value\");\r\n\t\t EVEL_EXIT();\r\n\t }"
] | [
"0.51960033",
"0.5155125",
"0.50733036",
"0.49396527",
"0.48858297",
"0.48713347",
"0.485039",
"0.47646803",
"0.47348824",
"0.47298408",
"0.47172925",
"0.4711344",
"0.4696557",
"0.4675918",
"0.46711794",
"0.46337393",
"0.46311548",
"0.4609378",
"0.45833716",
"0.45759055",
"0.45724446",
"0.45714644",
"0.45603073",
"0.45531446",
"0.45463398",
"0.4542803",
"0.454254",
"0.45219225",
"0.4513439",
"0.44968942",
"0.44948295",
"0.44945654",
"0.44899672",
"0.4488646",
"0.4486997",
"0.4482016",
"0.448193",
"0.44805238",
"0.4478215",
"0.4476148",
"0.44732302",
"0.4473093",
"0.44704545",
"0.44699162",
"0.44622928",
"0.44598868",
"0.44494885",
"0.44473213",
"0.44446746",
"0.4440388",
"0.44333684",
"0.4431577",
"0.44192258",
"0.4397234",
"0.43866268",
"0.43860325",
"0.43824923",
"0.43811047",
"0.43707904",
"0.43701187",
"0.4369485",
"0.4369269",
"0.43688387",
"0.4364794",
"0.4363391",
"0.43578756",
"0.43566477",
"0.43564653",
"0.4355319",
"0.4349209",
"0.43491206",
"0.43458715",
"0.43425715",
"0.43386823",
"0.43350288",
"0.43337294",
"0.43266836",
"0.4318396",
"0.43111885",
"0.43109772",
"0.43107876",
"0.43023658",
"0.43002945",
"0.4293895",
"0.4292635",
"0.4290993",
"0.4288549",
"0.4287473",
"0.42871365",
"0.42838517",
"0.42800885",
"0.42785385",
"0.42772",
"0.4277145",
"0.4273156",
"0.42722824",
"0.42704815",
"0.426722",
"0.42627868",
"0.42627063"
] | 0.540129 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.