query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Get Configuration if object is Configurable
public static Configuration getConfIfPossible(Object object) { if (object instanceof Configurable) { return ((Configurable) object).getConf(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract Configurable<?> getConfigurable();", "public interface Configurable {\n void setConf(Configuration conf);\n Configuration getConf();\n}", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "public interface Configurable {\n RequestConfig getConfig();\n}", "public Configuration getConfiguration() {\n return config;\n }", "public Configuration getConfiguration() {\n return config;\n }", "public static Configuration getConfiguration() {\r\n\t\treturn config;\r\n\t}", "public ComponentConfiguration getConfiguration();", "public Configuration getConfiguration() {\n return configurationParameter.getConfiguration();\n }", "public ConfigurationHolder getConfiguration() {\n return this.cfg;\n }", "protected Configuration getConfiguration(){\n return configuration;\n }", "public Config getConfig();", "public Configuration getConfiguration() {\n return configuration;\n }", "public Configuration getConfiguration() {\n return configuration;\n }", "public Configuration getConfiguration() {\n return configuration;\n }", "public Configuration getConfiguration() {\n return configuration;\n }", "public interface Configurable {\n\n void configure(Properties properties);\n}", "protected Configuration getConfiguration() {\n return configuration;\n }", "public static Configuration getConfiguration() {\n synchronized (Configuration.class) {\n return configuration;\n }\n }", "public Object getConfig() {\n return config;\n }", "public Object\tgetConfiguration();", "public Configuration getConfiguration() {\n\t\treturn theConfiguration;\n\t}", "public static ConfigManager getConfiguration() {\n return configuration;\n }", "public Configuration getConfiguration() {\n \tif (configurationRef==null)\n \t\treturn null;\n \treturn (Configuration)configurationRef.get();\n }", "protected Configuration getConfiguration() {\n return variable.getConfiguration();\n }", "public CompositeConfiguration getConfiguration() {\n return _configuration;\n }", "private Configuration getConfiguration() {\n return getPackageData().getConfiguration();\n }", "GeneralConfiguration getGeneralConfiguration();", "public abstract Configuration configuration();", "protected final Configuration getConfiguration()\n {\n return mConfiguration;\n }", "public ConfigurationManagement getConfig() {\r\n\t\treturn config;\r\n\t}", "public String getConfiguration()\r\n\t{\r\n\t\treturn _configuration; \r\n\t}", "public Configuration getCfg() {\n return cfg;\n }", "public static Configurable configure() {\n return new RedisManager.ConfigurableImpl();\n }", "public Object getConf() {\n return this.conf;\n }", "public C getConfig()\n {\n return config;\n }", "public String getConfiguration(){\n\t\treturn this.config;\n\t}", "protected Config getConfig () {\n return this.conf;\n }", "public String getConfiguration() {\n return this.configuration;\n }", "public static Config getConfig() {\r\n\t\treturn cfg;\r\n\t}", "public Configuration c() {\n return configuration;\n }", "public Config getConfig() {\n return config;\n }", "public String getConfiguration() {\n return configuration;\n }", "public ClientConfiguration getConfiguration() {\r\n return this.configuration;\r\n }", "public ConfigCommon getConfig() {\n return config;\n }", "public ConfigProvider getConfig() {\n return config;\n }", "@Override\n\tpublic Configuration getConf() {\n\t\treturn this.Conf;\n\t}", "public interface Configuration {\n\n}", "private Configuration getConfig() {\n final Configuration config = new Configuration();\n for (final Field field : getClass().getDeclaredFields()) {\n try {\n final Field configField = Configuration.class.getDeclaredField(field.getName());\n field.setAccessible(true);\n configField.setAccessible(true);\n\n final Object value = field.get(this);\n if (value != null) {\n configField.set(config, value);\n getLog().debug(\"using \" + field.getName() + \" = \" + value);\n }\n } catch (final NoSuchFieldException nsfe) {\n // ignored\n } catch (final Exception e) {\n getLog().warn(\"can't initialize attribute \" + field.getName());\n }\n\n }\n if (containerProperties != null) {\n final Properties props = new Properties();\n props.putAll(containerProperties);\n config.setProperties(props);\n }\n if (forceJspDevelopment) {\n if (config.getProperties() == null) {\n config.setProperties(new Properties());\n }\n config.getProperties().put(\"tomee.jsp-development\", \"true\");\n }\n return config;\n }", "public String getConfiguration() {\r\n\t\treturn configuration;\r\n\t}", "public ConfigurationNode getConfig() {\n return this.configManager.getConfig();\n }", "public ConfigurationService getConfigurationService() {\n return configurationService;\n }", "public interface Configurable\t{\n\t/**\n\t *\tConfiguration files have changed.\n\t */\n\tpublic void reConfigure();\n}", "public IProjectConfiguration getConfiguration()\n {\n return new ProjectConfiguration(mProject, mCheckConfigs, mFileSets, mFilters,\n mUseSimpleConfig);\n }", "public T caseConfigurable(Configurable object) {\n\t\treturn null;\n\t}", "public interface ConfigureConfiguration {\n\n\t// A list of names of configuration files\n\t@Option(shortName=\"c\", description = \"Name of one or many configuration \"\n\t\t+ \"files. Parameters in configuration files override each other. If a\"\n\t\t+ \" parameter is provided in more than one file, the first occurrence \"\n\t\t+ \" is used.\"\n\t) \n\tList<File> getConf();\n\tboolean isConf();\n\t\n}", "public static Config getConfig(){\n return _Config;\n }", "@java.lang.Override\n public com.google.protobuf.AnyOrBuilder getConfigurationOrBuilder() {\n return getConfiguration();\n }", "public ConfigurationType getConfigurationType() {\n return this.configurationType;\n }", "EntityConfiguration getConfiguration();", "C getConfiguration();", "public interface IConfiguration extends ISessionAwareObject {\n\n\tString ENV_SOPECO_HOME = \"SOPECO_HOME\";\n\n\tString CONF_LOGGER_CONFIG_FILE_NAME = \"sopeco.config.loggerConfigFileName\";\n\n\tString CONF_SCENARIO_DESCRIPTION_FILE_NAME = \"sopeco.config.measurementSpecFileName\";\n\n\tString CONF_SCENARIO_DESCRIPTION = \"sopeco.config.measurementSpecification\";\n\n\tString CONF_MEASUREMENT_CONTROLLER_URI = \"sopeco.config.measurementControllerURI\";\n\n\tString CONF_MEASUREMENT_CONTROLLER_CLASS_NAME = \"sopeco.config.measurementControllerClassName\";\n\n\tString CONF_APP_NAME = \"sopeco.config.applicationName\";\n\n\tString CONF_MAIN_CLASS = \"sopeco.config.mainClass\";\n\n\tString CONF_MEC_ACQUISITION_TIMEOUT = \"sopeco.config.MECAcquisitionTimeout\";\n\n\n\tString CONF_MEC_SOCKET_RECONNECT_DELAY = \"sopeco.config.mec.reconnectDelay\";\n\n\tString CONF_HTTP_PROXY_HOST = \"sopeco.config.httpProxyHost\";\n\t\n\tString CONF_HTTP_PROXY_PORT = \"sopeco.config.httpProxyPort\";\n\n\t\n\tString CONF_DEFINITION_CHANGE_HANDLING_MODE = \"sopeco.config.definitionChangeHandlingMode\";\n\tString DCHM_ARCHIVE = \"archive\";\n\tString DCHM_DISCARD = \"discard\";\n\n\tString CONF_SCENARIO_DEFINITION_PACKAGE = \"sopeco.config.xml.scenarioDefinitionPackage\";\n\t/** Holds the path to the root folder of SoPeCo. */\n\tString CONF_APP_ROOT_FOLDER = \"sopeco.config.rootFolder\";\n\tString CONF_EXPERIMENT_EXECUTION_SELECTION = \"sopeco.engine.experimentExecutionSelection\";\n\t/**\n\t * Holds the path to the plugins folder, relative to the root folder of\n\t * SoPeCo.\n\t */\n\tString CONF_PLUGINS_DIRECTORIES = \"sopeco.config.pluginsDirs\";\n\n\tString CLA_EXTENSION_ID = \"org.sopeco.config.commandlinearguments\";\n\n\t/** Folder for configuration files relative to the application root folder */\n\tString DEFAULT_CONFIG_FOLDER_NAME = \"config\";\n\n\tString DEFAULT_CONFIG_FILE_NAME = \"sopeco-defaults.conf\";\n\n\tString DIR_SEPARATOR = \":\";\n\t\n\tString EXPERIMENT_RUN_ABORT = \"org.sopeco.experiment.run.abort\";\n\n\t/**\n\t * Export the configuration as a key-value map. Both, the default ones and the ones in the\n\t * system environment are included.\n\t * \n\t * @return a key-value representation of the configuration\n\t * \n\t * @deprecated Use {@code exportConfiguration()} and {@code exportDefaultConfiguration}.\n\t */\n\t@Deprecated\n\tMap<String, Object> getProperties();\n\t\n\t/**\n\t * Exports the configuration as a key-value map. The default configuration and the ones\n\t * defined in the system environment are not included. \n\t * \n\t * @return a key-value representation of the configuration\n\t */\n\tMap<String, Object> exportConfiguration();\n\t\n\t/**\n\t * Exports the default configuration as a key-value map. The actual configuration and the ones\n\t * defined in the system environment are not included. \n\t * \n\t * @return a key-value representation of the configuration\n\t */\n\tMap<String, Object> exportDefaultConfiguration();\n\t\n\t/**\n\t * Imports the configuration as a key-value map. \n\t * \n\t * @param config a key-value map representation of the configuration\n\t */\n\tvoid importConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Imports the default configuration as a key-value map. \n\t * \n\t * @param config a key-value map representation of the configuration\n\t */\n\tvoid importDefaultConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Overwrites the configuration with the given configuration. \n\t * \n\t * @param config a key-value map representation of the configuration\n\t */\n\tvoid overwriteConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Overwrites the default configuration with the given configuration. \n\t * \n\t * @param config a key-value map representation of the default configuration\n\t */\n\tvoid overwriteDefaultConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Returns the configured value of the given property in SoPeCo.\n\t * \n\t * It first looks up the current SoPeCo configuration, if there is no value\n\t * defined there, looks up the system properties, if no value is defined\n\t * there, then loads it from the default values; in case of no default\n\t * value, returns null.\n\t * \n\t * @param key\n\t * property key\n\t * @return Returns the configured value of the given property in SoPeCo.\n\t */\n\tObject getProperty(String key);\n\n\t/**\n\t * Returns the configured value of the given property as a String.\n\t * \n\t * This method calls the {@link Object#toString()} of the property value and\n\t * is for convenience only. If the given property is not set, it returns\n\t * <code>null</code>.\n\t * \n\t * @param key\n\t * property key\n\t * \n\t * @see #getProperty(String)\n\t * @return Returns the configured value of the given property as a String.\n\t */\n\tString getPropertyAsStr(String key);\n\n\t/**\n\t * Returns the configured value of the given property as a Boolean value.\n\t * \n\t * This method uses the {@link #getPropertyAsStr(String)} and interprets\n\t * values 'yes' and 'true' (case insensitive) as a Boolean <code>true</code>\n\t * value and all other values as <code>false</code>. If the value of the\n\t * given property is <code>null</code> it returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as a boolean\n\t * \n\t * @see #getProperty(String)\n\t */\n\tboolean getPropertyAsBoolean(String key, boolean defaultValue);\n\n\t/**\n\t * Returns the configured value of the given property as a Long value.\n\t * \n\t * This method uses the {@link Long.#parseLong(String)} to interpret the\n\t * values. If the value of the given property is <code>null</code> it\n\t * returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as a long\n\t * \n\t * @see #getProperty(String)\n\t */\n\tlong getPropertyAsLong(String key, long defaultValue);\n\n\t/**\n\t * Returns the configured value of the given property as a Double value.\n\t * \n\t * This method uses the {@link Double.#parseLong(String)} to interpret the\n\t * values. If the value of the given property is <code>null</code> it\n\t * returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as a double\n\t * \n\t * @see #getProperty(String)\n\t */\n\tdouble getPropertyAsDouble(String key, double defaultValue);\n\n\t/**\n\t * Returns the configured value of the given property as an Integer value.\n\t * \n\t * This method uses the {@link Integer.#parseInt(String)} to interpret the\n\t * values. If the value of the given property is <code>null</code> it\n\t * returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as an int\n\t * \n\t * @see #getProperty(String)\n\t */\n\tint getPropertyAsInteger(String key, int defaultValue);\n\n\t/**\n\t * Sets the value of a property for the current run.\n\t * \n\t * @param key\n\t * property key\n\t * @param value\n\t * property value\n\t */\n\tvoid setProperty(String key, Object value);\n\n\t/**\n\t * Clears the value of the given property in all layers of configuration,\n\t * including the system property environment.\n\t * \n\t * @param key the property\n\t */\n\tvoid clearProperty(String key);\n\n\t/**\n\t * Returns the default value (ignoring the current runtime configuration)\n\t * for a given property.\n\t * \n\t * @param key\n\t * porperty key\n\t * \n\t * @return Returns the default value for a given property.\n\t */\n\tObject getDefaultValue(String key);\n\n\t/**\n\t * Processes the given command line arguments, the effects of which will\n\t * reflect in the global property values.\n\t * \n\t * @param args\n\t * command line arguments\n\t * @throws ConfigurationException\n\t * if there is any problem with command line arguments\n\t */\n\tvoid processCommandLineArguments(String[] args) throws ConfigurationException;\n\n\t/**\n\t * Loads default configurations from a file name. If the file name is not an\n\t * absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finaly the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the system class loader. See\n\t * {@link #loadDefaultConfiguration(ClassLoader, String)} for loading\n\t * default configuration providing a class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t * \n\t */\n\tvoid loadDefaultConfiguration(String fileName) throws ConfigurationException;\n\n\t/**\n\t * Loads default configurations from a file name. If the file name is not an\n\t * absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finaly the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the given class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param classLoader\n\t * an instance of a class loader\n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t */\n\tvoid loadDefaultConfiguration(ClassLoader classLoader, String fileName) throws ConfigurationException;\n\n\t/**\n\t * Loads user-level configurations from a file name. If the file name is not\n\t * an absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finaly the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the system class loader. See\n\t * {@link #loadConfiguration(ClassLoader, String)} for loading default\n\t * configuration providing a class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t */\n\tvoid loadConfiguration(String fileName) throws ConfigurationException;\n\n\t/**\n\t * Loads user-level configurations from a file name. If the file name is not\n\t * an absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finally the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the given class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param classLoader\n\t * an instance of a class loader\n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t */\n\tvoid loadConfiguration(ClassLoader classLoader, String fileName) throws ConfigurationException;\n\n\t/**\n\t * Performs any post processing of configuration settings that may be\n\t * required.\n\t * \n\t * This method can be called after manually making changes to the\n\t * configuration values. It should be called automatically after a call to\n\t * {@link IConfiguration#loadConfiguration(String)}.\n\t */\n\tvoid applyConfiguration();\n\n\t/**\n\t * Sets the value of scenario description file name.\n\t * \n\t * @param fileName\n\t * file name\n\t * @see #CONF_SCENARIO_DESCRIPTION_FILE_NAME\n\t */\n\tvoid setScenarioDescriptionFileName(String fileName);\n\n\t/**\n\t * Sets the sceanrio description as the given object. This property in\n\t * effect overrides the value of scenario description file name (\n\t * {@link IConfiguration#CONF_SCENARIO_DESCRIPTION_FILE_NAME}).\n\t * \n\t * @param sceanrioDescription\n\t * an instance of a scenario description\n\t * @see #CONF_SCENARIO_DESCRIPTION\n\t */\n\tvoid setScenarioDescription(Object sceanrioDescription);\n\n\t/**\n\t * Sets the measurement controller URI.\n\t * \n\t * @param uriStr\n\t * a URI as an String\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t * @see #CONF_MEASUREMENT_CONTROLLER_URI\n\t */\n\tvoid setMeasurementControllerURI(String uriStr) throws ConfigurationException;\n\n\t/**\n\t * Sets the measurement controller class name. This also sets the\n\t * measurement controller URI to be '<code>class://[CLASS_NAME]</code>'.\n\t * \n\t * @param className\n\t * the full name of the class\n\t * @see #CONF_MEASUREMENT_CONTROLLER_CLASS_NAME\n\t */\n\tvoid setMeasurementControllerClassName(String className);\n\n\t/**\n\t * Sets the application name for this executable instance.\n\t * \n\t * @param appName\n\t * an application name\n\t */\n\tvoid setApplicationName(String appName);\n\n\t/**\n\t * Sets the main class that runs this thread. This will also be used in\n\t * finding the root folder\n\t * \n\t * @param mainClass\n\t * class to be set as main class\n\t */\n\tvoid setMainClass(Class<?> mainClass);\n\n\t/**\n\t * Sets the logger configuration file name and triggers logger\n\t * configuration.\n\t * \n\t * @param fileName\n\t * a file name\n\t */\n\tvoid setLoggerConfigFileName(String fileName);\n\n\t/**\n\t * @return Returns the application root directory.\n\t */\n\tString getAppRootDirectory();\n\n\t/**\n\t * Sets the application root directory to the given folder.\n\t * \n\t * @param rootDir\n\t * path to a folder\n\t */\n\tvoid setAppRootDirectory(String rootDir);\n\n\t/**\n\t * @return Returns the application's configuration directory.\n\t */\n\tString getAppConfDirectory();\n\n\t/**\n\t * @return Returns the value of scenario description file name.\n\t * \n\t * @see #CONF_SCENARIO_DESCRIPTION_FILE_NAME\n\t */\n\tString getScenarioDescriptionFileName();\n\n\t/**\n\t * @return returns the sceanrio description as the given object.\n\t * \n\t * @see #CONF_SCENARIO_DESCRIPTION\n\t */\n\tObject getScenarioDescription();\n\n\t/**\n\t * @return Returns the measurement controller URI.\n\t * \n\t * @see #CONF_MEASUREMENT_CONTROLLER_URI\n\t */\n\tURI getMeasurementControllerURI();\n\n\t/**\n\t * @return Returns the measurement controller URI as a String.\n\t * \n\t * @see #CONF_MEASUREMENT_CONTROLLER_URI\n\t */\n\tString getMeasurementControllerURIAsStr();\n\n\t/**\n\t * @return Returns the measurement controller class name.\n\t * \n\t * @see #CONF_MEASUREMENT_CONTROLLER_CLASS_NAME\n\t */\n\tString getMeasurementControllerClassName();\n\n\t/**\n\t * @return Returns the application name for this executable instance.\n\t */\n\tString getApplicationName();\n\n\t/**\n\t * @return Returns the main class that runs this thread. This value must\n\t * have been set by a call to\n\t * {@link IConfiguration#setMainClass(Class)}.\n\t */\n\tClass<?> getMainClass();\n\n\t/**\n\t * Writes the current configuration values into a file.\n\t * \n\t * @param fileName\n\t * the name of the file\n\t * @throws IOException\n\t * if exporting the configuration fails\n\t */\n\tvoid writeConfiguration(String fileName) throws IOException;\n\n\t/**\n\t * Overrides the values of this configuration with those of the given\n\t * configuration.\n\t * \n\t * @param configuration\n\t * with the new values\n\t */\n\t void overwrite(IConfiguration configuration);\n\n\t /**\n\t * Adds a new command-line extension to the configuration component. \n\t * \n\t * The same extension will not be added twice. \n\t * \n\t * @param extension a command-line extension\n\t */\n\t void addCommandLineExtension(ICommandLineArgumentsExtension extension);\n\t \n\t /**\n\t * Removes a new command-line extension from the configuration component. \n\t * \n\t * @param extension a command-line extension\n\t */\n\t void removeCommandLineExtension(ICommandLineArgumentsExtension extension);\n}", "ConfigBlock getConfig();", "IBeanConfiguration getBeanConfiguration(String beanName);", "protected T getConfigurationByCascading() {\n\t\t\n\t\tList<T> configurationObjectList = new ArrayList<T>();\n\t\t\n\t\t// Add the configuration objects in the order they should override \n\t\t// each other. Command line options override property file information\n\t\t// which in turn override any default configuration objects that may\n\t\t// have been given.\n\t\t//\n\t\tconfigurationObjectList.add (getConfigurationByCommandline());\n\t\tconfigurationObjectList.addAll (getConfigurationByProperties(this.propertyFile));\n\t\tconfigurationObjectList.addAll (configurationObjects);\n\t\t\n\t\tInvocationHandler handler = new ConfigurationByCascading<T>(configurationObjectList);\n\n\t\t@SuppressWarnings(\"unchecked\")\t\t\n\t\tT configuration = (T)\n\t\t\tjava.lang.reflect.Proxy.newProxyInstance(\n\t\t\t\tthis.configurationInterface.getClassLoader(),\n\t\t\t\tnew Class[] { this.configurationInterface },\n\t\t\t\thandler\n\t\t);\n\n\t\treturn configuration;\n\t}", "public Bmv2Configuration configuration() {\n return configuration;\n }", "@java.lang.Override\n public com.google.protobuf.Any getConfiguration() {\n return configuration_ == null ? com.google.protobuf.Any.getDefaultInstance() : configuration_;\n }", "public static Configurable configure() {\n return new RecoveryServicesManager.ConfigurableImpl();\n }", "public static Configurable configure() {\n return new RecoveryServicesManager.ConfigurableImpl();\n }", "@Test\n public void testDetectConfigurationConfig() throws Exception {\n\n Config config = ConfigFactory.load(\"componentTest\").getConfig(\"configuredComponent\");\n\n ComponentConfigurator<ComponentConfiguration> configurator = new ComponentConfigurator<>(ComponentConfiguration.class);\n\n ComponentConfiguration testPojo = mapper.readValue(config.root().render(ConfigRenderOptions.concise()), ComponentConfiguration.class);\n\n assert(testPojo != null);\n\n ComponentConfiguration configuredPojo = configurator.detectConfiguration(config);\n\n assert(configuredPojo != null);\n\n Assert.assertEquals(configuredPojo,testPojo);\n\n }", "public interface Config {\n\t/**\n * Get value to corresponding to the key.\n *\n * @param key\n * @return\n * \tstring value.\n */\n String getString(String key);\n\n /**\n * Get value to corresponding to the key.\n * Specified value is returned if not contains key to config file.\n *\n * @param key\n * @param defaultValue\n * @return\n * \tString value.\n */\n String getString(String key, String defaultValue);\n\n /**\n * Get value to corresponding to the key.\n *\n * @param key\n * @return\n * \tint value.\n */\n int getInt(String key);\n\n /**\n * Get value to corresponding to the key.\n * Specified value is returned if not contains key to config file.\n *\n * @param key\n * @param defaultValue\n * @return\n * \tint value.\n */\n int getInt(String key, int defaultValue);\n\n /**\n * Return with string in contents of config file.\n *\n * @return\n * \tContents of config file.\n */\n String getContents();\n\n /**\n * Return with Configuration object in contents of config file.\n *\n * @return\n * \tContents of Configuration object.\n */\n Configuration getConfiguration();\n\n List<Object> getList(String key);\n}", "PackageConfiguration getPackageConfiguration();", "public JsonObject getConfig() {\n return config;\n }", "public T caseConfiguration(Configuration object) {\n\t\treturn null;\n\t}", "public FabricCommonConfig getConfig() {\n if (null == config) {\n config = new FabricCommonConfig();\n }\n return config;\n }", "public static JCloudScaleConfiguration getConfiguration()\n\t{\n\t\tJCloudScaleConfiguration cfg = JCloudScaleClient.getConfiguration();\n\t\tif(cfg == null)\n\t\t{\n\t\t\tcfg = loadConfiguration();\n\t\t\tJCloudScaleClient.setConfiguration(cfg);\n\t\t}\n\t\t\n\t\treturn cfg;\n\t}", "ConfigurationPackage getConfigurationPackage();", "public abstract Optional<FileConfiguration> getConfiguration(String name);", "public KernelConfig getConfig()\n {\n Kernel.checkAccess();\n return config;\n }", "public MyConfig getConfig() {\n return config;\n }", "public ApiConfiguration getApiConfiguration() {\n return apiConfiguration;\n }", "public static Configuration getCurrentConfig() {\n return ConfigManager.getCurrentConfig();\n }", "public static IConfig getCfg(Object owner) {\n\t\tif (emptyConfig == null) emptyConfig = new HashConfig();\n\t\treturn get().getCfgManager().getCfg(owner, emptyConfig);\n\t}", "@Override\n public Map<String, ConfiguredVariableItem> getConfiguration() {\n return config;\n }", "public com.google.protobuf.Any getConfiguration() {\n if (configurationBuilder_ == null) {\n return configuration_ == null ? com.google.protobuf.Any.getDefaultInstance() : configuration_;\n } else {\n return configurationBuilder_.getMessage();\n }\n }", "protected T getConfigurationByCommandline() {\n\t\t\n\t\tT result = null;\n\t\t\n\t\tString[] args = this.commandLineArguments; \n\t\t\n\t\tif (args == null) {\n\t\t\tthrow new NullPointerException(\"Command line arguments have not been set in factory!\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tresult = (T) CliFactory.parseArguments(\n\t\t\t\tthis.configurationInterface, args\n\t\t\t);\n\t\t} catch (ArgumentValidationException e) {\n\t\t\tthrow new ConfigurationException(e.getMessage());\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public T caseConfiguration(Configuration object)\n {\n return null;\n }", "public FileConfiguration getConfiguration() {\n return configuration;\n }", "protected final Map<String, String> getConfiguration() {\r\n\t\treturn Collections.unmodifiableMap(configuration);\r\n\t}", "public interface Configurable extends AzureConfigurable<Configurable> {\n /**\n * Creates an instance of RedisManager that exposes Cache management API entry points.\n *\n * @param credentials the credentials to use\n * @param subscriptionId the subscription UUID\n * @return the interface exposing Cache management API entry points that work across subscriptions\n */\n RedisManager authenticate(AzureTokenCredentials credentials, String subscriptionId);\n }", "@Override\n public DataSourceConfiguration getConfiguration() {\n return configuration;\n }", "public static Configurable configure() {\n return new SqlServerManager.ConfigurableImpl();\n }", "public JsonConfiguration getJsonConfiguration() {\n return this.jsonConfiguration;\n }", "public static synchronized Configuration getInstance() {\n\t\tif (configuration == null) configuration = new Configuration();\n\t\treturn configuration;\n\t}", "public static Configurable configure() {\n return new SqlVirtualMachineManager.ConfigurableImpl();\n }", "boolean hasConfiguration();", "static Properties getConfig()\n {\n return(config);\n }" ]
[ "0.7799088", "0.72202927", "0.69086325", "0.69086325", "0.69086325", "0.69086325", "0.67763907", "0.66901976", "0.66901976", "0.6616973", "0.6596429", "0.65919536", "0.6478595", "0.6463596", "0.6458511", "0.64555097", "0.64555097", "0.64555097", "0.64555097", "0.644648", "0.64366496", "0.64153576", "0.6385358", "0.6342403", "0.63363546", "0.63161147", "0.63125974", "0.6296447", "0.62918913", "0.62498605", "0.62404454", "0.6238211", "0.62025344", "0.61418605", "0.6130157", "0.6116264", "0.6109147", "0.6108129", "0.60786843", "0.60786796", "0.6056642", "0.6050838", "0.60458463", "0.6023858", "0.5994692", "0.5969368", "0.5960104", "0.5953647", "0.59432524", "0.5937616", "0.59295976", "0.5913249", "0.590047", "0.58783066", "0.58720756", "0.5854177", "0.5850882", "0.58412707", "0.58395267", "0.58353823", "0.5833203", "0.58219326", "0.58070034", "0.57989424", "0.57966995", "0.5787355", "0.577158", "0.57705724", "0.5769741", "0.5761396", "0.57578665", "0.57578665", "0.57496566", "0.57495135", "0.57366717", "0.57236797", "0.5719745", "0.56586665", "0.5647125", "0.5645856", "0.5642019", "0.56280845", "0.562349", "0.56179523", "0.5616586", "0.56136626", "0.56080484", "0.55955184", "0.5578202", "0.5567734", "0.55677325", "0.55617416", "0.55540913", "0.55525315", "0.5550717", "0.55449986", "0.55429804", "0.5537653", "0.5535129", "0.55254287" ]
0.78870994
0
Get path to output directory as Path
public static Path getOutputPath(Configuration conf) { return new Path(getOutputDir(conf)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Path getOutputPath() {\n\t\t\n\t\tString name = getSimulationName();\t\t\n\t\tint l = name.length();\n\t\tString sim_name = name.substring(0, l-11); // \"_SIM_FOLDER\" contains 11 character\n\t\t\n\t\tPath path = Paths.get(outpath + \"\\\\\"+ sim_name);\n\t\tif(!Files.exists(path)) {\n\t\t try {\n\t\t Files.createDirectories(path);\n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t}\n\t\treturn path;\n\t}", "public Path outputDir() {\n return dir;\n }", "public static String getOutputDir() {\n outputDir = getProperty(\"outputDir\");\n if (outputDir == null) outputDir = \"./\";\n return outputDir;\n }", "public String getOutputPath()\n {\n return __m_OutputPath;\n }", "public String getOutputPath () \n\t{\n\t\treturn outputPathTextField.getText();\n\t}", "public String getOutputPath() {\n\t\treturn outputPath;\n\t}", "public String getOutputSubdir() {\n return m_optionalOutputSubDir;\n }", "public File getOutput(){\n return outputDir;\n }", "public String getOutputFolder() {\n return txtOutputFolder().getText();\n }", "public String getDirectoryPath() { return DirectoryManager.OUTPUT_RESULTAT + \"/\" + directoryName;}", "public String getPathFileOut() {\r\n\t\treturn pathFileOut;\r\n\t}", "private String getOutputFolder(String path){\n\n //Remove the portion of the path which is prior to our repositories file path\n path = StringUtils.removeStart(FilenameUtils.getFullPath(path), REPOSITORY_LOCATION);\n //Return the path without leading and ending / and ensures the file path uses forward slashes instead of backslashes\n return StringUtils.strip(StringUtils.strip(path,\"/\"),\"\\\\\").replace(\"\\\\\", \"/\");\n }", "public static String buildPathToTestOutputDir(String relpath) {\n return String.format(\"%s/src/test/resources/test_output/%s\", System.getProperty(\"user.dir\"), relpath);\n }", "public static String getOutputFilePath(String path) {\n StringBuilder outputFilePath = new StringBuilder();\n String[] splittedPath = path.split(Constants.SLASH);\n outputFilePath.append(Constants.OUTPUT_FILE_LOCATION);\n outputFilePath.append(Constants.SLASH);\n outputFilePath.append(splittedPath[splittedPath.length - 1]\n .split(\"\\\\.\")[0]);\n outputFilePath.append(System.currentTimeMillis());\n outputFilePath.append(Constants.DOT_WAV);\n return outputFilePath.toString();\n }", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "public static String getOutputFolder() {\n\n if ((m_sOutputFolder == null) || m_sOutputFolder.trim().equals(\"\")) {\n return System.getProperty(\"user.home\");\n }\n else {\n return m_sOutputFolder;\n }\n\n }", "Path getBaseInputDir();", "File getTargetDirectory();", "static Path improvedOutputDirectory(CalcConfig config) {\n Path out = config.output.directory;\n if (out.toString().equals(CalcConfig.DEFAULT_OUT)) {\n return (config.rate.valueFormat == ValueFormat.POISSON_PROBABILITY) ? Paths.get(\"eq-prob\")\n : Paths.get(\"eq-rate\");\n }\n return out;\n }", "public Path getOutputBase() {\n return outputBase;\n }", "public String getpathOutput() {\r\n\t\treturn pathOutput;\r\n\t}", "String getDirectoryPath();", "public File getOutputDirectory() {\n\t\treturn outputDirectory;\n\t}", "@Nullable\n @Override\n public Path getPathToOutputFile() {\n return null; // I mean, seriously? OK.\n }", "public String getOutputDirectory() {\n return outputDirectory;\n }", "public String getPath();", "public String getPath();", "public String getPath();", "static Path getOutputPath(Configuration conf, String name) {\n String root = conf.get(WORKING_DIR, \"tmp/reasoning\");\n return new Path(root + \"/\" + name);\n }", "public String outputFileDir() {\n return outputFileDir;\n }", "public String getPath() {\n String result = \"\";\n Directory curDir = this;\n // Keep looping while the current directories parent exists\n while (curDir.parent != null) {\n // Create the full path string based on the name\n result = curDir.getName() + \"/\" + result;\n curDir = (Directory) curDir.getParent();\n }\n // Return the full string\n result = \"/#/\" + result;\n return result;\n }", "public String getPathToJarFolder(){\n Class cls = ReadWriteFiles.class;\r\n ProtectionDomain domain = cls.getProtectionDomain();\r\n CodeSource source = domain.getCodeSource();\r\n URL url = source.getLocation();\r\n try {\r\n URI uri = url.toURI();\r\n path = uri.getPath();\r\n \r\n // get path without the jar\r\n String[] pathSplitArray = path.split(\"/\");\r\n path = \"\";\r\n for(int i = 0; i < pathSplitArray.length-1;i++){\r\n path += pathSplitArray[i] + \"/\";\r\n }\r\n \r\n return path;\r\n \r\n } catch (URISyntaxException ex) {\r\n LoggingAspect.afterThrown(ex);\r\n return null;\r\n }\r\n }", "public String getPath() {\n\t\treturn this.baseDir.getAbsolutePath();\n\t}", "public String getOutputFilePath() {\t\n\t\treturn outputFilePath; \n\t}", "public String toPathString() {\n return path();\n }", "public String getResultPath() {\n\t\tString append = (DBCatalog.getCatalog().inputPath.contains(\"/\") ? \"/sortResult\" : \"\\\\sortResult\");\n\t\treturn tempsubdir + append;\n\t}", "public Path getPath() {\r\n return getTargetPath().resolve(folder);\r\n }", "public String getPath() {\n\t\treturn pfDir.getPath();\n\t}", "abstract File getTargetDirectory();", "public File getOutputFilePath() {\n return outputFile;\n }", "public static String getGeneratorOutputFolder() {\n\t\treturn getOutputFolderName() + \"/\" + PropertiesFile.getInstance().getProperty(\"output_qualifier\");\n\t}", "Path getPath();", "@Nonnull\n Path getPath();", "FsPath baseDir();", "public final String getPath() {\n\t\treturn this.path.toString();\n\t}", "@OutputDirectory\n public File getDestinationDir() {\n return _destinationDir;\n }", "public String getDir();", "@Nullable String getPath();", "public final String path() {\n return string(preparePath(concat(path, SLASH, name)));\n }", "public static String getOutputFolderName() {\n\t\treturn PropertiesFile.getSystemRoot()+PropertiesFile.getInstance().getProperty(\"default_folder\");\n\t}", "private static Path getTargetPath() {\r\n return Paths.get(getBaseDir(), \"target\");\r\n }", "public abstract String getPath();", "public abstract String getPath();", "@Override\r\n\tpublic String getOutputFile() {\n\t\t\r\n\t\treturn fileOutputPath;\r\n\t}", "public static Path getPath() {\n\t\tPath path = Paths.get(getManagerDir(), NAME);\n\t\treturn path;\n\t}", "public String getPath() {\n return (path == null || path.equals(\"\")) ? \"/\" : path;\n }", "String getDir();", "public String getAbsPath();", "public Path getPath();", "public String getPath()\n\t{\n\t\tString previousPath = File.separator;\n\t\t\n\t\t//if there is a parent\n\t\tif(getParentDirectory() != null)\n\t\t{\n\t\t\t//write over the previous path with the parent's path and a slash\n\t\t\t// /path/to/parent\n\t\t\tpreviousPath = getParentDirectory().getPath() + File.separator;\n\t\t}\n\t\t//else- no parent, this is the root \"/\"\n\t\t\n\t\t//add the name, /path/to/parent/thisdir \n\t\treturn previousPath + getName();\t\t\n\t}", "public String getWorkDirectory(){\n String wd = \"\";\n try {\n wd = new File(\"test.txt\").getCanonicalPath().replace(\"/test.txt\",\"\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n return wd;\n }", "public String getLocationPath();", "Path createPath();", "public String resolvePath();", "public String getRelativePath();", "public static File fBuildDir() \r\n\t{\r\n\t\treturn new File(sBasePath() + File.separator + \"build\");\r\n\t}", "public final String getPath()\n {\n return path;\n }", "public String getPath() {\n\t\treturn file.getPath();\n\t}", "public String getPrideOutputFolder() {\n\n \n return prideOutputFolder;\n\n }", "String folderPath();", "java.lang.String getFilePath();", "java.io.File getBaseDir();", "private String getDirectoryForBackup() {\n\t\tString backupPath = configurationService.getValue(BACKUP_FOLDER_CONFIG);\n\t\tif (backupPath == null) {\n\t\t\t// if backup path null throw error, backup folder must be set\n\t\t\tthrow new ResultCodeException(CoreResultCode.BACKUP_FOLDER_NOT_FOUND,\n\t\t\t\t\tImmutableMap.of(\"property\", BACKUP_FOLDER_CONFIG));\n\t\t}\n\t\t// apend script default backup folder\n\t\tbackupPath = backupPath + \"/\" + SCRIPT_DEFAULT_BACKUP_FOLDER;\n\t\t// add date folder\n\t\tZonedDateTime date = ZonedDateTime.now();\n\t\tDecimalFormat decimalFormat = new DecimalFormat(\"00\");\n\t\treturn backupPath + date.getYear() + decimalFormat.format(date.getMonthValue())\n\t\t\t\t+ decimalFormat.format(date.getDayOfMonth()) + \"/\";\n\t}", "public String getPath()\n {\n StringBuilder buff = new StringBuilder();\n Resource r = this;\n while(r != null)\n {\n if(r.getId() != 1)\n {\n buff.insert(0, r.getName());\n }\n r = r.getParent();\n if(r != null || this.getId() == 1)\n {\n buff.insert(0, '/');\n }\n }\n return buff.toString();\n }", "public static String getWorkingDirectory() {\r\n try {\r\n // get working directory as File\r\n String path = DBLIS.class.getProtectionDomain().getCodeSource()\r\n .getLocation().toURI().getPath();\r\n File folder = new File(path);\r\n folder = folder.getParentFile().getParentFile(); // 2x .getParentFile() for debug, 1x for normal\r\n\r\n // directory as String\r\n return folder.getPath() + \"/\"; // /dist/ for debug, / for normal\r\n } catch (URISyntaxException ex) {\r\n return \"./\";\r\n }\r\n }", "private String getFullPath()\n\t{\n\t\tif (libraryName.equals(\"\"))\n\t\t{\n\t\t\treturn fileName;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn libraryName + \"/\" + fileName;\n\t\t}\n\t}", "Path getFilePath();", "public String path() {\n return filesystem().pathString(path);\n }", "public File getDefaultOutputDir() {\n File out = _mkdir(XPreferencesFactory.kDefaultReportsOutputDir.getDir(false));\r\n String dn = NamingConventions.createNiceEnglishDate_for_dirs();\r\n return _mkdir(new File(out, dn));\r\n }", "public String getAbsolutePath() {\n\t\treturn Util.getAbsolutePath();\n\t}", "public String getOutputHdfsDir() {\n\t\treturn outputHdfsDir;\n\t}", "public String getOutputPath(String inputPath) {\n String fileName;\n String ext = \"\";\n if (inputPath.indexOf(\".\") > 0) {\n int dotIndex = inputPath.lastIndexOf(\".\");\n fileName = inputPath.substring(0, dotIndex);\n ext = inputPath.substring(dotIndex, inputPath.length());\n } else {\n fileName = inputPath;\n }\n return fileName + \"_chk\" + ext;\n }", "public String getTargetDir() {\n\t\tif (targetDir != null)\n\t\t\treturn targetDir;\n\t\telse if (parent == null)\n\t\t\treturn \"./\";\n\t\telse\n\t\t\treturn parent.getTargetDir();\n\t}", "default Optional<Path> getProjectDir() {\n Optional<Path> projectDir = get(MICRONAUT_PROCESSING_PROJECT_DIR, Path.class);\n if (projectDir.isPresent()) {\n return projectDir;\n }\n // let's find the projectDir\n Optional<GeneratedFile> dummyFile = visitGeneratedFile(\"dummy\" + System.nanoTime());\n if (dummyFile.isPresent()) {\n URI uri = dummyFile.get().toURI();\n // happens in tests 'mem:///CLASS_OUTPUT/dummy'\n if (uri.getScheme() != null && !uri.getScheme().equals(\"mem\")) {\n // assume files are generated in 'build' or 'target' directories\n Path dummy = Paths.get(uri).normalize();\n while (dummy != null) {\n Path dummyFileName = dummy.getFileName();\n if (dummyFileName != null && (\"build\".equals(dummyFileName.toString()) || \"target\".equals(dummyFileName.toString()))) {\n projectDir = Optional.ofNullable(dummy.getParent());\n put(MICRONAUT_PROCESSING_PROJECT_DIR, dummy.getParent());\n break;\n }\n dummy = dummy.getParent();\n }\n }\n }\n\n return projectDir;\n }", "public static void setOutputDir(Configuration conf, String path) {\n conf.set(OUTPUT_DIR_KEY, path);\n }", "public static void createOutputDirectoryPath(String path){\n \n new File(path).mkdirs();\n \n }", "String getFilepath();", "String path(Configuration configuration);", "private String getAbsoluteFilesPath() {\n\n //sdcard/Android/data/cucumber.cukeulator\n //File directory = getTargetContext().getExternalFilesDir(null);\n //return new File(directory,\"reports\").getAbsolutePath();\n return null;\n }", "public Path getSimulationLocation() {\n return FileManager.getSimulationDirectory(name);\n }", "java.lang.String getSrcPath();", "public File getFileChooserDirectory() {\n\n\t\tFile dir = null;\n\n\t\ttry {\n\t\t\tFile tmpDir = new File(diffuseBaseValueControl.getText());\n\t\t\tif (tmpDir.exists()) dir = tmpDir.getParentFile();\n\t\t} catch (Exception ex) {\n\t\t}\n\n\t\ttry {\n\t\t\tFile tmpDir = new File(specularBaseValueControl.getText());\n\t\t\tif (tmpDir.exists()) dir = tmpDir.getParentFile();\n\t\t} catch (Exception ex) {\n\t\t}\n\n\t\ttry {\n\t\t\tFile tmpDir = new File(((TextField) textureInputLayout.lookup(\"tex_path\")).getText());\n\t\t\tif (tmpDir.exists()) dir = tmpDir.getParentFile();\n\t\t} catch (Exception ex) {\n\t\t}\n\n\t\treturn dir;\n\t}", "public String getArchiveFolderPath()\n {\n String currentWorkingDir = SystemUtil.getWorkingDirPath()+\"/\";\n \n ConfigurationStore configStore = ConfigurationStore.getInstance();\n String archiveFolder = configStore.getProperty(IISATProperty.CATEGORY, IISATProperty.ARCHIVE_FOLDER, null);\n String absArchiveFolderPath = currentWorkingDir + archiveFolder;\n _logger.logMessage(\"getArchiveFolderPath\", null, \"Abs archive folder path is \"+absArchiveFolderPath);\n return absArchiveFolderPath;\n }", "public static void setWorkOutputDir(TaskAttemptContext context)\n throws IOException\n {\n Configuration conf = context.getConfiguration();\n String outputPath = getOutputDir(conf);\n // we need to do this to get the task path and set it for mapred\n // implementation since it can't be done automatically because of\n // mapreduce->mapred abstraction\n if (outputPath != null) {\n FileOutputCommitter foc =\n new FileOutputCommitter(getOutputPath(conf), context);\n Path path = foc.getWorkPath();\n FileSystem fs = path.getFileSystem(conf);\n fs.mkdirs(path);\n conf.set(\"mapred.work.output.dir\", path.toString());\n LOG.info(\"Setting mapred.work.output.dir to {}\", path.toString());\n }\n }", "Path getRootPath();", "public abstract String getFullPath();" ]
[ "0.7672602", "0.74964356", "0.73823786", "0.7145306", "0.71445894", "0.71429646", "0.69704586", "0.68991506", "0.6866032", "0.6820043", "0.67568886", "0.6744907", "0.67164123", "0.66544044", "0.66521317", "0.66521317", "0.66521317", "0.66521317", "0.66521317", "0.6651018", "0.6633322", "0.6621874", "0.6597064", "0.65938103", "0.6580379", "0.65677214", "0.656177", "0.65333116", "0.653222", "0.6528009", "0.6528009", "0.6528009", "0.652186", "0.64883846", "0.64854825", "0.645172", "0.6438217", "0.6410223", "0.63849044", "0.6375242", "0.6337701", "0.6334681", "0.63049406", "0.6283349", "0.6278863", "0.6249341", "0.62468415", "0.6239048", "0.61335444", "0.6132096", "0.6108805", "0.6097024", "0.60921293", "0.6089405", "0.60870624", "0.6086754", "0.6086754", "0.60862267", "0.60705394", "0.6046246", "0.60385257", "0.6029595", "0.60257876", "0.60061455", "0.5999065", "0.59963626", "0.59846056", "0.5973969", "0.5968614", "0.5962605", "0.59578633", "0.5931513", "0.5908443", "0.59049404", "0.59003866", "0.5896058", "0.58920974", "0.5888076", "0.5880142", "0.5873922", "0.58618164", "0.5857454", "0.58551514", "0.58525074", "0.58437735", "0.5840592", "0.5836791", "0.58226526", "0.58205694", "0.5793086", "0.5790171", "0.57741874", "0.57616854", "0.57606834", "0.5747346", "0.5747175", "0.57457024", "0.57442033", "0.57267207", "0.57170993" ]
0.7760175
0
Set output directory to use
public static void setOutputDir(Configuration conf, String path) { conf.set(OUTPUT_DIR_KEY, path); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setOutputDir(String outputDir) {\n this.outputDir = outputDir;\n }", "void setOutputPath(String outputPath);", "public void setOutput(File file){\n outputDir = file;\n }", "public void setOutputDirectory(String dir) {\n\t\tnew LabeledText(\"Output directory:\").setText(dir);\n\t}", "public void setOutputDirectory(File outputDirectory) {\n\t\tthis.outputDirectory = outputDirectory;\n\t}", "public static String getOutputDir() {\n outputDir = getProperty(\"outputDir\");\n if (outputDir == null) outputDir = \"./\";\n return outputDir;\n }", "public void setOutputDirectory(String outputDirectory) {\n this.outputDirectory = outputDirectory;\n }", "public void setOutputDirectory(final String outputDirectory) {\n this.outputDirectory = outputDirectory;\n }", "public static void setWorkOutputDir(TaskAttemptContext context)\n throws IOException\n {\n Configuration conf = context.getConfiguration();\n String outputPath = getOutputDir(conf);\n // we need to do this to get the task path and set it for mapred\n // implementation since it can't be done automatically because of\n // mapreduce->mapred abstraction\n if (outputPath != null) {\n FileOutputCommitter foc =\n new FileOutputCommitter(getOutputPath(conf), context);\n Path path = foc.getWorkPath();\n FileSystem fs = path.getFileSystem(conf);\n fs.mkdirs(path);\n conf.set(\"mapred.work.output.dir\", path.toString());\n LOG.info(\"Setting mapred.work.output.dir to {}\", path.toString());\n }\n }", "public Path outputDir() {\n return dir;\n }", "private static void setOutputProcessor(File outputDir, Launcher spoon, Environment environment) {\n JavaOutputProcessor outProcessor = spoon.createOutputWriter(); // Spoon 8\r\n environment.setDefaultFileGenerator(outProcessor); // Define output folder (needed for the output type: classes)\r\n\r\n // spoon.setOutputDirectory(IoUtils.getCanonicalPath(outputDir)); // Define output folder AGAIN (needed for the\r\n spoon.setSourceOutputDirectory(SpecsIo.getCanonicalPath(outputDir));// Define output folder AGAIN\r\n spoon.setBinaryOutputDirectory(SpecsIo.getCanonicalPath(outputDir)); // Define output folder AGAIN (needed for\r\n }", "public String getOutputDirectory() {\n return outputDirectory;\n }", "public void chooseOutputDirectory() {\n File file;\n JFileChooser fileChooser = new JFileChooser(\n new java.io.File(defaultDirectory));\n fileChooser.setDialogTitle(NbBundle.getMessage(\n SessionTopComponent.class, \"ChooseOutputDirectory\"));\n fileChooser.setFileSelectionMode(\n JFileChooser.DIRECTORIES_ONLY);\n int returnVal = fileChooser.showOpenDialog(this);\n\n if (returnVal == JFileChooser.APPROVE_OPTION) {\n file = fileChooser.getSelectedFile();\n\n outputDirectoryTextField.setText(file.getAbsolutePath());\n defaultDirectory = file.getPath();\n }\n enableStartButton();\n }", "public void setOutputPath(String path) {\n\t\tthis.outputPath = path;\n\t}", "public void setOutput(File output) {\r\n this.output = output;\r\n }", "public void setToDir(File dir) {\n _destDir = dir;\n }", "public void setMappingOutputDir(String mappingOutputDir)\n {\n this.mappingDirName = mappingOutputDir;\n }", "public File getOutputDirectory() {\n\t\treturn outputDirectory;\n\t}", "public File getDefaultOutputDir() {\n File out = _mkdir(XPreferencesFactory.kDefaultReportsOutputDir.getDir(false));\r\n String dn = NamingConventions.createNiceEnglishDate_for_dirs();\r\n return _mkdir(new File(out, dn));\r\n }", "public void setOutput(File out) {\r\n this.output = out;\r\n incompatibleWithSpawn = true;\r\n }", "public static void initializeOutputFolder() {\n\t\tString default_folder = PropertiesFile.getInstance().getProperty(\"default_folder\");\n\t\t\n\t\t// The file has to exist and is a directory (Not just a child file)\n\t\tString fullQualifiedFolderName = getFullyQualifiedFileName(default_folder);\n\t\tFile defaultDir = new File(fullQualifiedFolderName);\n\t\tif (!checkFolder(fullQualifiedFolderName)) {\n\t\t\tboolean dirCreated = defaultDir.mkdir();\n\t\t\tif(dirCreated == false) {\n\t\t\t\tlog.error(\"Could not create generation folder\");\n\t\t\t}\n\t\t} else\n\t\t\tdeleteFolderRecursively(defaultDir);\n\t}", "public void setOutputPath(String pOutputPath)\n {\n __m_OutputPath = pOutputPath;\n }", "public File getOutput(){\n return outputDir;\n }", "static Path improvedOutputDirectory(CalcConfig config) {\n Path out = config.output.directory;\n if (out.toString().equals(CalcConfig.DEFAULT_OUT)) {\n return (config.rate.valueFormat == ValueFormat.POISSON_PROBABILITY) ? Paths.get(\"eq-prob\")\n : Paths.get(\"eq-rate\");\n }\n return out;\n }", "public String outputFileDir() {\n return outputFileDir;\n }", "public void setOutputPath(String outputPath) {\n\t\tthis.outputPath = outputPath;\n\t}", "public void setOutputFolder(String text) {\n txtOutputFolder().setText(text);\n }", "@OptionMetadata(displayName = \"Output subdirectory\",\n description = \"An optional subdirectory of <output-dir>/eval in which to \"\n + \"store the results \", displayOrder = 1)\n public void setOutputSubdir(String subdir) {\n m_optionalOutputSubDir = subdir;\n }", "File getTargetDirectory();", "public void createTestDir() {\n\t\tworkDir = new File(System.getProperty(\"test.dir\", \"target\"));\n\t}", "public String getDirectoryPath() { return DirectoryManager.OUTPUT_RESULTAT + \"/\" + directoryName;}", "public void setOutputFilePath(String outputFilePath) {\r\n this.outputFilePath = outputFilePath;\r\n }", "public Builder outputFileDir(String outputFileDir) {\n this.outputFileDir = outputFileDir;\n return this;\n }", "abstract File getTargetDirectory();", "public static String buildPathToTestOutputDir(String relpath) {\n return String.format(\"%s/src/test/resources/test_output/%s\", System.getProperty(\"user.dir\"), relpath);\n }", "@OutputDirectory\n public File getDestinationDir() {\n return _destinationDir;\n }", "public void setDestDir( File d )\n {\n this.destDir = d;\n }", "void setDirectory(File dir);", "private void setWorkDiretory() {\n\t\tthis.workDiretory = System.getProperty(\"user.dir\");\n\t}", "public abstract void setOutputUrl(String outputUrl);", "public void setOutput(String outputFile) {\n this.output = outputFile;\n }", "public void setRootDir(String rootDir);", "void exportToDirectory(File targetDirectory) throws IOException;", "public void setOutputFilePath(String outputFilePath) {\n if (outputFilePath != null && !outputFilePath.trim().isEmpty()) {\n if (CONSOLE.equals(outputFilePath.toLowerCase())) {\n writer = new PrintWriter(System.out);\n } else {\n File outputFile = new File(outputFilePath);\n try {\n writer = new FileWriter(outputFile, false);\n } catch (IOException e) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(e.getMessage(), e);\n } else {\n LOG.error(e.getMessage());\n }\n }\n }\n }\n }", "public String getOutputPath() {\n\t\treturn outputPath;\n\t}", "public Path getOutputPath() {\n\t\t\n\t\tString name = getSimulationName();\t\t\n\t\tint l = name.length();\n\t\tString sim_name = name.substring(0, l-11); // \"_SIM_FOLDER\" contains 11 character\n\t\t\n\t\tPath path = Paths.get(outpath + \"\\\\\"+ sim_name);\n\t\tif(!Files.exists(path)) {\n\t\t try {\n\t\t Files.createDirectories(path);\n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t}\n\t\treturn path;\n\t}", "public static String getOutputFolder() {\n\n if ((m_sOutputFolder == null) || m_sOutputFolder.trim().equals(\"\")) {\n return System.getProperty(\"user.home\");\n }\n else {\n return m_sOutputFolder;\n }\n\n }", "public static String getGeneratorOutputFolder() {\n\t\treturn getOutputFolderName() + \"/\" + PropertiesFile.getInstance().getProperty(\"output_qualifier\");\n\t}", "public static String getOutputFolderName() {\n\t\treturn PropertiesFile.getSystemRoot()+PropertiesFile.getInstance().getProperty(\"default_folder\");\n\t}", "public String getOutputFolder() {\n return txtOutputFolder().getText();\n }", "public void setOutput(String outputFileName) {\n\t\tnative_set_output(outputFileName);\n\t}", "public static void setImageIOCacheDir() {\n final String tmpDirProperty = System.getProperty(\"java.io.tmpdir\");\n if(tmpDirProperty == null || \"\".equals(tmpDirProperty)) {\n return;\n }\n // ensure that temp-dir exists because ImageIO requires it\n File tmpDir = new File(tmpDirProperty);\n if(!tmpDir.exists() && !tmpDir.mkdirs()) {\n throw new IllegalStateException(\"Could not create temporary directory \" + tmpDirProperty + \", full path \" + tmpDir.getAbsolutePath());\n }\n ImageIO.setCacheDirectory(tmpDir);\n }", "public String getOutputSubdir() {\n return m_optionalOutputSubDir;\n }", "public static void createOutputDirectoryPath(String path){\n \n new File(path).mkdirs();\n \n }", "public String getPrideOutputFolder() {\n\n \n return prideOutputFolder;\n\n }", "public void setDir(File dir) {\n _sourceDir = dir;\n }", "public void setOutFile(final File val) {\n outFile = val;\n }", "private static File setYdfDirectory()\r\n/* 27: */ throws IOException\r\n/* 28: */ {\r\n/* 29: 32 */ log.finest(\"OSHandler.setYdfDirectory\");\r\n/* 30: 33 */ ydfDirectory = new File(USER_HOME + \"/\" + \".yourdigitalfile\");\r\n/* 31: 34 */ ydfDirectory.mkdir();\r\n/* 32: 35 */ return ydfDirectory;\r\n/* 33: */ }", "public void setPrideOutputFolder(String prideOutputFolder) {\n \n this.prideOutputFolder = prideOutputFolder;\n\n }", "public void setOutputFileName(String outputFileName) {\n this.outputFileName = outputFileName;\n }", "public void setOutputHdfsDir(String outputHdfsDir) {\n\t\tthis.outputHdfsDir = outputHdfsDir;\n\t}", "public void setDir(File d) {\r\n this.dir = d;\r\n }", "private void setupWorkingDir(Execute exe) {\r\n if (dir == null) {\r\n dir = getProject().getBaseDir();\r\n }\r\n else if (!dir.exists() || !dir.isDirectory()) {\r\n throw new BuildException(dir.getAbsolutePath() + \" is not a valid directory\", getLocation());\r\n }\r\n exe.setWorkingDirectory(dir);\r\n }", "public void setWarDir(final File val) {\n warDir = val;\n }", "public void setDestdir(File dest) {\n this.destdir = dest;\n }", "public void setBasedir(String baseD) throws BuildException {\n setBaseDir(new File(baseD));\n }", "public String getOutputPath()\n {\n return __m_OutputPath;\n }", "public JobBuilder outputPath(String outputPath) {\r\n job.setOutputPath(outputPath);\r\n return this;\r\n }", "public void setBasedir( File basedir )\n {\n this.basedir = basedir;\n }", "public void setDefaultOutputFiles() {\n setOutputFileValue(\"t\",false);\n setOutputFileValue(\"s\",false);\n setOutputFileValue(\"opsit\",false);\n setOutputFileValue(\"airt\",false);\n setOutputFileValue(\"q\",false);\n setOutputFileValue(\"cost\",false);\n setOutputFileValue(\"psi\",false);\n setOutputFileValue(\"opsi\",false);\n setOutputFileValue(\"opsip\",false);\n setOutputFileValue(\"opsia\",false);\n setOutputFileValue(\"zpsi\",false);\n setOutputFileValue(\"fofy\",false);\n setOutputFileValue(\"rho\",false);\n setOutputFileValue(\"err\",false);\n setOutputFileValue(\"sst\",false);\n setOutputFileValue(\"sss\",false);\n setOutputFileValue(\"tair\",false);\n setOutputFileValue(\"qair\",false);\n setOutputFileValue(\"hice\",false);\n setOutputFileValue(\"aice\",false);\n setOutputFileValue(\"tice\",false);\n setOutputFileValue(\"pptn\",false);\n setOutputFileValue(\"evap\",false);\n setOutputFileValue(\"runoff\",false);\n setOutputFileValue(\"arcice\",false);\n setOutputFileValue(\"fwfxneto\",false);\n setOutputFileValue(\"fx0neto\",false);\n setOutputFileValue(\"fxfa\",false);\n setOutputFileValue(\"temp\",false);\n setOutputFileValue(\"saln\",false);\n setOutputFileValue(\"albedo\",false);\n }", "@Override\r\n\t\tpublic void setDir(String dir)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "private void cleanOutputFolder(String output) {\n \t\tFile[] files = new File[1];\n \t\tfiles[0] = new File(output);\n \t\tcleanFolder(files);\n \t}", "public void createDirectory() {\r\n\t\tpath = env.getProperty(\"resources\") + \"/\" + Year.now().getValue() + \"/\";\r\n\t\tFile file = new File(path);\r\n\t\tif (!file.exists())\r\n\t\t\tfile.mkdirs();\r\n\t}", "public static void setRootDir() {\n for(int i = 0; i < rootDir.length; i++){\n Character temp = (char) (65 + i);\n Search.rootDir[i] = temp.toString() + \":\\\\\\\\\";\n }\n }", "void setAppRootDirectory(String rootDir);", "@Test\n\tpublic void testSetGetOutputFileFolder() {\n\t\tString path = \"a\" + File.separator + \"path\";\n\t\toutput.setOutputFileFolder(path);\n\t\tboolean result = output.getOutputFileFolder() != null &&\n\t\t\t\toutput.getOutputFileFolder() == path;\n\t\tassertTrue(result);\n\t}", "public void setOutput(TestOut output) {\n\tthis.output = output;\n\tsuper.setOutput(output);\n }", "public void customRootDir() {\n //Be careful with case when res is false which means dir is not valid.\n boolean res = KOOM.getInstance().setRootDir(this.getCacheDir().getAbsolutePath());\n }", "@BeforeClass\n public static void createOutputDir() throws OfficeException {\n\n // Ensure we start with a fresh output directory\n final File outputDir = new File(OUTPUT_DIR);\n FileUtils.deleteQuietly(outputDir);\n outputDir.mkdirs();\n }", "@OutputDirectory\n public DirectoryProperty getObjectFileDir() {\n return objectFileDir;\n }", "private void outputFolderButtonActionPerformed(java.awt.event.ActionEvent evt) {\n JFileChooser chooser = new JFileChooser();\n chooser.setDialogTitle(\"Select Output Folder\");\n chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n File workingDirectory = new File(System.getProperty(\"user.dir\"));\n chooser.setCurrentDirectory(workingDirectory);\n if (chooser.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {\n outputFile = chooser.getSelectedFile();\n outputFolderLabel.setText(getFileName(chooser.getSelectedFile()));\n }\n }", "private boolean shouldMarkOutputDir(JobConf conf) {\r\n return conf.getBoolean(SUCCESSFUL_JOB_OUTPUT_DIR_MARKER, true);\r\n }", "public void setDir(File dir)\n {\n this.dir = dir;\n }", "public void setAndCreateDirPath(String dirname) {\r\n\t File newPath = new File(dirname); \r\n\t \r\n\t if(!newPath.isDirectory()) {\r\n\t\t newPath.mkdirs();\r\n\t }\r\n\t \r\n\t directory = newPath;\r\n }", "public String getOutputFilePath() {\t\n\t\treturn outputFilePath; \n\t}", "private void makeDirectory() {\n String userHome = System.getProperty(\"user.home\");\n wnwData = new File(userHome + \"/.wnwdata\");\n wnwData.mkdirs();\n\n makeCampaignChallengesFile();\n makeCustomChallengesFile();\n makeProgressFile();\n makeSettingsFile();\n }", "public void setExtractDir(final String dir) {\n this.extractBaseDir = new File(dir);\n extractBaseDir.mkdirs();\n }", "void doPWD()\n {\n out(System.getProperty(\"user.dir\")); //$NON-NLS-1$\n }", "public String getSaveOutputDir() {\n return saveOutputDir;\n }", "public void setShHarvestDir(String val) {\n\n\t\tshHarvestDir = val;\n\n\t\t// add to the commonDirs object\n\n\t\tadd_to_common_dirs(val);\n\n\t}", "public void setOutputFile(File out) {\n rnaFile = out;\n }", "protected void setHMetisOutFile(final String str) {\n\t\tthis.hMetisOutFile = str;\n\t}", "public static Path getOutputPath(Configuration conf) {\n return new Path(getOutputDir(conf));\n }", "public final void setValidationOutputFolder(final File cValidationOutputFolder) {\n\t\tthis.validationOutputFolder = cValidationOutputFolder;\n\t}", "public Builder outputFileName(String outputFileName) {\n this.outputFileName = outputFileName;\n return this;\n }", "public void setDir(File dir) {\n this.dir = dir;\n }", "@attribute(value = \"\", required = true)\t\r\n\tpublic void setDir(String dir) {\r\n\t\tthis.dir = new File(dir);\r\n\t}", "public void setHarvestedDataDir(String val) {\n\n\t\tthis.harvestedDataDir = val;\n\n\t}", "public void setOutput(Output output) {\n\t\tthis.output = output;\n\t}", "public void setBasedir( String basedir )\n {\n setBasedir( new File( basedir.replace( '/', File.separatorChar ).replace( '\\\\', File.separatorChar ) ) );\n }" ]
[ "0.7768638", "0.76745915", "0.7607667", "0.74517494", "0.7175016", "0.69694424", "0.68994874", "0.68588936", "0.67694217", "0.66953707", "0.6610938", "0.6515678", "0.6512169", "0.639163", "0.6362215", "0.6340203", "0.63274294", "0.63233435", "0.6307045", "0.6296849", "0.6268555", "0.6263649", "0.62414175", "0.6235498", "0.62047", "0.6196812", "0.6144988", "0.6104936", "0.6050512", "0.60491055", "0.6026758", "0.6013087", "0.5997162", "0.5961057", "0.59459054", "0.5881731", "0.58750993", "0.5863697", "0.58512586", "0.58322895", "0.58092993", "0.5747435", "0.5737437", "0.57374185", "0.573526", "0.5691674", "0.56902796", "0.5685099", "0.56830114", "0.5676981", "0.5661345", "0.5659359", "0.5657221", "0.56285304", "0.5613237", "0.56097645", "0.56047595", "0.55933017", "0.55701137", "0.5564103", "0.5549122", "0.5519464", "0.5502746", "0.55024785", "0.5501562", "0.55010337", "0.54874974", "0.547293", "0.54716665", "0.5466148", "0.5462382", "0.5443117", "0.5440264", "0.5419543", "0.5401148", "0.53817374", "0.5378071", "0.53763455", "0.53742844", "0.5366113", "0.5364536", "0.5353256", "0.5351766", "0.5349533", "0.53471535", "0.53425777", "0.53397316", "0.5334284", "0.53306556", "0.5318232", "0.5316882", "0.52940416", "0.5292214", "0.5291032", "0.52890325", "0.52824134", "0.52752906", "0.5262802", "0.52595234", "0.5238693" ]
0.7279061
4
Delete output directory for this job
public static void deleteOutputDir(Configuration conf) throws IOException { Path outputPath = getOutputPath(conf); outputPath.getFileSystem(conf).delete(outputPath, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@AfterClass\n public static void deleteOutputDir() throws OfficeException {\n\n // Delete the output directory\n FileUtils.deleteQuietly(new File(OUTPUT_DIR));\n }", "public static void setupAndRemoveOutputIf(final JobConf job, String outputDirectory, boolean deleteIf) throws IOException {\r\n\t\t\r\n\t\tif (job.getOutputFormat() instanceof FileOutputFormat) {\r\n\t\t\tPath outputPath = new Path(outputDirectory);\r\n\t\t\tif (FileOutputFormat.getOutputPath(job)==null) {\r\n\t\t\t\tFileOutputFormat.setOutputPath(job, outputPath);\r\n\t\t\t}\r\n\t\t\tif (deleteIf) {\r\n\t\t\t\tFileSystem fs = outputPath.getFileSystem(job);\r\n\t\t\t\tif (fs.exists(outputPath)) {\r\n\t\t\t\t\tfs.delete(outputPath, true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void cleanOutputFolder(String output) {\n \t\tFile[] files = new File[1];\n \t\tfiles[0] = new File(output);\n \t\tcleanFolder(files);\n \t}", "public void deleteOutputData() {\n\t\tif (outputData != null) {\n\t\t\tFile file = outputData;\n\t\t\toutputData = null;\n\t\t\tsave();\n\t\t\tfile.delete();\n\t\t}\n\t}", "public void deleteTmpDirectory() {\n\t\tdeleteTmpDirectory(tmpDir);\n\t}", "private void cleanOutputFiles() throws DeviceNotAvailableException {\n CLog.d(\"Remove output file: %s\", mOutputFile);\n String extStore = mTestDevice.getMountPoint(IDevice.MNT_EXTERNAL_STORAGE);\n mTestDevice.executeShellCommand(String.format(\"rm %s/%s\", extStore, mOutputFile));\n }", "public static void cleanFolder(File outputFolder)\n {\n File[] files = outputFolder.listFiles();\n for (File file : files)\n {\n if (file.isDirectory())\n {\n cleanFolder(file);\n }\n else\n {\n if (file.delete())\n {\n Main.out(\"Deleted: \" + file);\n }\n else\n {\n Main.warn(\"Failed to delete file: \" + file);\n }\n }\n }\n }", "private Step deleteHdfsWorkingDir() {\n return stepBuilderFactory.get(STEP_DELETE_HDFS_WORK_DIR)\n .tasklet(deleteHdfsWorkingDir)\n .build();\n }", "@Override public void cleanupTempCheckpointDirectory() throws IgniteCheckedException {\n try {\n try (DirectoryStream<Path> files = Files.newDirectoryStream(cpDir.toPath(), TMP_FILE_MATCHER::matches)) {\n for (Path path : files)\n Files.delete(path);\n }\n }\n catch (IOException e) {\n throw new IgniteCheckedException(\"Failed to cleanup checkpoint directory from temporary files: \" + cpDir, e);\n }\n }", "public static void cleanOldTemp(String rootOutput){\r\n\t\tif(new File(rootOutput).exists()){\r\n\t\t\tLog.log(\"cleanOldTemp \"+rootOutput);\r\n\t\t\tPath pathToBeDeleted = Paths.get(rootOutput);\r\n\t\t\ttry {\r\n\t\t\t\tFiles.walk(pathToBeDeleted)\r\n\t\t\t\t .sorted(Comparator.reverseOrder())\r\n\t\t\t\t .map(Path::toFile)\r\n\t\t\t\t .forEach(File::delete);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tLog.error(e);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void clean()\r\n {\r\n // DO NOT TOUCH\r\n // System.out.println(unzipedFilePath);\r\n\r\n // only clean if there was a successful unzipping\r\n if (success)\r\n {\r\n // only clean if the file path to remove matches the zipped file.\r\n if (unzippedFilePath.equals(zippedFilePath.substring(0,\r\n zippedFilePath.length() - 4)))\r\n {\r\n // System.out.println(\"to be implmented\");\r\n for (File c : outputDir.listFiles())\r\n {\r\n // System.out.println(c.toString());\r\n if (!c.delete())\r\n {\r\n System.out.println(\"failed to delete\" + c.toString());\r\n }\r\n }\r\n outputDir.delete();\r\n outputDir = null;\r\n }\r\n }\r\n }", "private void emptyTestDirectory() {\n // Delete the files in the /tmp/QVCSTestFiles directory.\n File tempDirectory = new File(TestHelper.buildTestDirectoryName(TEST_SUBDIRECTORY));\n File[] files = tempDirectory.listFiles();\n if (files != null) {\n for (File file : files) {\n if (file.isDirectory()) {\n File[] subFiles = file.listFiles();\n for (File subFile : subFiles) {\n if (subFile.isDirectory()) {\n File[] subSubFiles = subFile.listFiles();\n for (File subSubFile : subSubFiles) {\n subSubFile.delete();\n }\n }\n subFile.delete();\n }\n }\n file.delete();\n }\n }\n }", "private void cleanTempFolder() {\n File tmpFolder = new File(getTmpPath());\n if (tmpFolder.isDirectory()) {\n String[] children = tmpFolder.list();\n for (int i = 0; i < children.length; i++) {\n if (children[i].startsWith(TMP_IMAGE_PREFIX)) {\n new File(tmpFolder, children[i]).delete();\n }\n }\n }\n }", "private void cleanupLocal() throws IOException {\n FileSystem lfs = FileSystem.getLocal(new Configuration());\n lfs.delete(new Path(\"build\"), true);\n System.setProperty(\"hadoop.log.dir\", \"logs\");\n }", "private void cleanup() {\n File tmpdir = new File(System.getProperty(\"java.io.tmpdir\"));\n File[] backupDirs = tmpdir.listFiles(file -> file.getName().contains(BACKUP_TEMP_DIR_PREFIX));\n if (backupDirs != null) {\n for (File file : backupDirs) {\n try {\n FileUtils.deleteDirectory(file);\n log.info(\"removed temporary backup directory {}\", file.getAbsolutePath());\n } catch (IOException e) {\n log.error(\"failed to delete the temporary backup directory {}\", file.getAbsolutePath());\n }\n }\n }\n }", "public void commitJob(JobContext context) throws IOException {\n JobConf conf = context.getJobConf();\r\n Path outputPath = FileOutputFormat.getOutputPath(conf);\r\n if (outputPath != null) {\r\n FileSystem outputFileSystem = outputPath.getFileSystem(conf);\r\n Path tmpDir = new Path(outputPath, getJobAttemptBaseDirName(context) +\r\n Path.SEPARATOR + FileOutputCommitter.TEMP_DIR_NAME);\r\n FileSystem fileSys = tmpDir.getFileSystem(context.getConfiguration());\r\n if (fileSys.exists(tmpDir)) {\r\n fileSys.delete(tmpDir, true);\r\n } else {\r\n LOG.warn(\"Task temp dir could not be deleted \" + tmpDir);\r\n }\r\n\r\n //move the job output to final place\r\n Path jobOutputPath = \r\n new Path(outputPath, getJobAttemptBaseDirName(context));\r\n moveJobOutputs(outputFileSystem, \r\n jobOutputPath, outputPath, jobOutputPath);\r\n\r\n // delete the _temporary folder in the output folder\r\n cleanupJob(context);\r\n // check if the output-dir marking is required\r\n if (shouldMarkOutputDir(context.getJobConf())) {\r\n // create a _success file in the output folder\r\n markOutputDirSuccessful(context);\r\n }\r\n }\r\n }", "void deleteStoryDirectory() {\n\n try {\n\n Log.i(\"Deleting StoryDirectory\", story_directory.toString());\n FileUtils.deleteDirectory(story_directory);\n } catch (IOException e) {\n\n }\n\n }", "@AfterClass\n public static void teardown() {\n logger.info(\"teardown: remove the temporary directory\");\n\n // the assumption is that we only have one level of temporary files\n for (File file : directory.listFiles()) {\n file.delete();\n }\n directory.delete();\n }", "@Test\n\tpublic void removeUnneededDirectory() throws IOException {\n\t\tfinal Path targetDir = _temp.toPath().resolve(\"target\");\n\t\tfinal Path fsTargetDir = targetDir.resolve(DIR_FIRSTSPIRIT_5);\n\t\tfinal Path installerTar = new File(getClass().getResource(TEST_INSTALLER_TAR_GZ).getFile()).toPath();\n\t\tServerInstaller.decompressInstaller(targetDir, installerTar);\n\t\tassertTrue(fsTargetDir.toFile().exists(), DIR_FIRSTSPIRIT_5 + \" dir should exist\");\n\n\t\t// test\n\t\tServerInstaller.removeUnneededDirectory(targetDir);\n\n\t\t// verify\n\t\tassertFalse(fsTargetDir.toFile().exists(), DIR_FIRSTSPIRIT_5 + \" dir should have been deleted\");\n\t}", "@Test\n\tpublic void cleanupTargetDirectory() throws IOException {\n\t\tfinal Path targetDir = _temp.toPath().resolve(\"target\");\n\t\tfinal Path installerTar = new File(getClass().getResource(TEST_INSTALLER_TAR_GZ).getFile()).toPath();\n\t\tFileUtil.mkDirs(targetDir);\n\t\tArchiveUtil.decompressTarGz(installerTar, targetDir);\n\n\t\t// test\n\t\tassertTrue(targetDir.toFile().list().length > 0, \"target dir should exist with children\");\n\t\tServerInstaller.cleanupTargetDirectory(targetDir);\n\n\t\t// verify\n\t\tassertFalse(targetDir.toFile().exists(), \"target dir should not exist\");\n\t}", "@Test\n public void test01cleanup() throws IOException {\n // when\n Map<String, Job> jobs = jenkins.getJobs();\n for (String jobName: jobs.keySet()) {\n if (!JOB_GENERATOR_JOB_NAME.equals(jobName)) {\n jenkins.deleteJob(jobName);\n }\n }\n jobs = jenkins.getJobs();\n\n // then\n assertThat(jobs.size(), is(1));\n }", "public void deleteStorage() {\n deleteReportDir(reportDir_);\n reportDir_ = null;\n deleteReportDir(leftoverDir_);\n leftoverDir_ = null;\n }", "public void deleteGeneratedFiles();", "private Step deleteLocalWorkingDir() {\n return stepBuilderFactory.get(STEP_DELETE_LOCAL_WORK_DIR)\n .tasklet(deleteLocalWorkingDir)\n .build();\n }", "@AfterClass\n\tpublic static void cleanup() {\n\t\ttestDir.delete();\n\t\tfile.delete();\n\t}", "@SuppressWarnings(\"ResultOfMethodCallIgnored\")\n\tpublic static void cleanAgentCoverageDirectory() throws IOException {\n\t\tPath coverageDir = AgentUtils.getAgentDirectory().resolve(\"coverage\");\n\t\tif (Files.exists(coverageDir)) {\n\t\t\tFiles.list(coverageDir).forEach(path -> path.toFile().delete());\n\t\t\tFiles.delete(coverageDir);\n\t\t}\n\t}", "protected static void cleanUpWorkingDir() {\n final Path testControllerPath =\n Paths.get(SystemPersistence.manager.getConfigurationPath().toString(), TEST_CONTROLLER_FILE);\n try {\n Files.deleteIfExists(testControllerPath);\n } catch (final Exception e) {\n logger.info(\"Problem cleaning {}\", testControllerPath, e);\n }\n\n final Path testControllerBakPath =\n Paths.get(SystemPersistence.manager.getConfigurationPath().toString(), TEST_CONTROLLER_FILE_BAK);\n try {\n Files.deleteIfExists(testControllerBakPath);\n } catch (final Exception e) {\n logger.info(\"Problem cleaning {}\", testControllerBakPath, e);\n }\n }", "private void tearDown() {\n if (tempDir != null) {\n OS.deleteDirectory(tempDir);\n tempFiles.clear();\n tempDir = null;\n }\n }", "private static void cleanAutomationResults() {\n \tLOG.info(\"Deleting unneccessary automation results.\");\n \t\n \t// Stop the graph database because it gets deleted\n \tDBUtil.closeGraph();\n \t\n \t// Remove clustering results\n \tFileUtil.deleteFileOrDirectory(clArgs.clusteringOutDir);\n \t\n \t// Remove graph database\n \tFileUtil.deleteFileOrDirectory(DBUtil.getNeo4jPath());\n }", "void deleteCoverDirectory() {\n\n try {\n\n Log.i(\"Deleting Covr Directory\", cover_directory.toString());\n FileUtils.deleteDirectory(cover_directory);\n } catch (IOException e) {\n\n }\n\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tFile dir = new File(\"src/reports\");\n\t\t\t\tfor (File file : dir.listFiles())\n\t\t\t\tif (!file.isDirectory())\n\t\t\t\tfile.delete();\n\t\t\t\t}", "public void assertJobAbortCleanedUp(JobData jobData) throws Exception {\n FileSystem fs = getFileSystem();\n try {\n FileStatus[] children = listChildren(fs, outputDir);\n if (children.length != 0) {\n lsR(fs, outputDir, true);\n }\n Assertions.assertThat(children)\n .as(\"Output directory not empty \" + ls(outputDir))\n .containsExactly(new FileStatus[0]);\n } catch (FileNotFoundException e) {\n // this is a valid state; it means the dest dir doesn't exist yet.\n }\n\n }", "public synchronized void cleanup() {\n\t\tString[] children = mStorageDirectory.list();\n\t\tif (children != null) { // children will be null if the directory does\n\t\t\t\t\t\t\t\t// not exist.\n\t\t\tfor (int i = 0; i < children.length; i++) { // remove too small file\n\t\t\t\tFile child = new File(mStorageDirectory, children[i]);\n\t\t\t\tif (!child.equals(new File(mStorageDirectory, NOMEDIA))\n\t\t\t\t\t\t&& child.length() <= MIN_FILE_SIZE_IN_BYTES) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tchild.delete();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@AfterClass\n\tpublic static void cleanUp() throws IOException {\n\t\tLpeFileUtils.removeDir(tempDir.getAbsolutePath());\n\t}", "public void removeOutput(String outputAssetId) throws Throwable {\n removeRelationshipFrom(OUTPUT_RELATIONSHIP, outputAssetId);\n }", "void deleteTagDirectory() {\n\n try {\n\n Log.i(\"Deleting Tag Directory\", tag_directory.toString());\n FileUtils.deleteDirectory(tag_directory);\n } catch (IOException e) {\n\n }\n\n }", "protected void cleanup() {\n // if the java runtime is holding onto any files in the build dir, we\n // won't be able to delete them, so we need to force a gc here\n System.gc();\n\n if (deleteFilesOnNextBuild) {\n // delete the entire directory and all contents\n // when we know something changed and all objects\n // need to be recompiled, or if the board does not\n // use setting build.dependency\n //Base.removeDir(tempBuildFolder);\n \n // note that we can't remove the builddir itself, otherwise\n // the next time we start up, internal runs using Runner won't\n // work because the build dir won't exist at startup, so the classloader\n // will ignore the fact that that dir is in the CLASSPATH in run.sh\n Base.removeDescendants(tempBuildFolder);\n \n deleteFilesOnNextBuild = false;\n } else {\n // delete only stale source files, from the previously\n // compiled sketch. This allows multiple windows to be\n // used. Keep everything else, which might be reusable\n if (tempBuildFolder.exists()) {\n String files[] = tempBuildFolder.list();\n for (String file : files) {\n if (file.endsWith(\".c\") || file.endsWith(\".cpp\") || file.endsWith(\".s\")) {\n File deleteMe = new File(tempBuildFolder, file);\n if (!deleteMe.delete()) {\n System.err.println(\"Could not delete \" + deleteMe);\n }\n }\n }\n }\n }\n \n // Create a fresh applet folder (needed before preproc is run below)\n //tempBuildFolder.mkdirs();\n }", "public void deleteJobDataFiles(Job job) throws IOException {\n\t\tCore.deleteJobFiles(job, httpMethodExecutor);\n\t}", "@Override\n\tpublic void delete()\n\t{\n\t\tcachedContent = null;\n\t\tFile outputFile = getStoreLocation();\n\t\tif ((outputFile != null) && outputFile.exists())\n\t\t{\n\t\t\tif (Files.remove(outputFile) == false)\n\t\t\t{\n\t\t\t\tlog.error(\"failed to delete file: \" + outputFile.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t}", "private void cleanupStagingDir() {\n if (getApplicationId() != null) {\n dagUtils.cleanMr3Dir(getStagingDir(), sessionConf);\n }\n sessionScratchDir = null;\n }", "public static void initializeOutputFolder() {\n\t\tString default_folder = PropertiesFile.getInstance().getProperty(\"default_folder\");\n\t\t\n\t\t// The file has to exist and is a directory (Not just a child file)\n\t\tString fullQualifiedFolderName = getFullyQualifiedFileName(default_folder);\n\t\tFile defaultDir = new File(fullQualifiedFolderName);\n\t\tif (!checkFolder(fullQualifiedFolderName)) {\n\t\t\tboolean dirCreated = defaultDir.mkdir();\n\t\t\tif(dirCreated == false) {\n\t\t\t\tlog.error(\"Could not create generation folder\");\n\t\t\t}\n\t\t} else\n\t\t\tdeleteFolderRecursively(defaultDir);\n\t}", "@AfterClass\n public static void cleanup() throws Exception {\n fs.delete(new Path(baseDir), true);\n }", "public static void deleteTempMapset() {\r\n if ((getGrassMapsetFolder() != null) && (getGrassMapsetFolder().length() > 2)) {\r\n String tmpFolder;\r\n tmpFolder = new String(getGrassMapsetFolder().substring(0, getGrassMapsetFolder().lastIndexOf(File.separator)));\r\n if (new File(tmpFolder).exists()) {\r\n deleteDirectory(new File(tmpFolder));\r\n }\r\n }\r\n }", "public void destroy() {\n if (yarnTwillRunnerService != null) {\n yarnTwillRunnerService.stop();\n }\n if (zkServer != null) {\n zkServer.stopAndWait();\n }\n if (locationFactory != null) {\n Location location = locationFactory.create(\"/\");\n try {\n location.delete(true);\n } catch (IOException e) {\n LOG.warn(\"Failed to delete location {}\", location, e);\n }\n }\n }", "@Override\n\tprotected void finalize() throws Throwable\n\t{\n\t\tsuper.finalize(); // currently empty but there for safer refactoring\n\n\t\tFile outputFile = dfos.getFile();\n\n\t\tif ((outputFile != null) && outputFile.exists())\n\t\t{\n\t\t\tif (Files.remove(outputFile) == false)\n\t\t\t{\n\t\t\t\tlog.error(\"failed to delete file: \" + outputFile.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t}", "public static void deleteBundleTemporaryDirectory(Bundle bundle) throws IOException {\n // The RoBundleService#saveToFile call will delegate to Apache Taverna's\n // Bundles.closeAndSaveBundle, which empties the bundle temporary\n // directory without deleting the directory itself. The following call is\n // just for cleaning it up.\n if (bundle != null) {\n BundleFileSystem fs = (BundleFileSystem) bundle.getFileSystem();\n File tmpDir = new File(System.getProperty(\"java.io.tmpdir\"));\n // The file system source will be something like /tmp/bundles_dir/hash/bundle.zip,\n // and we want /tmp/hash to be deleted. N.B. Apache Taverna uses the temporary directory\n // for the temporary bundles' directory, not the bundles file specified by Spring.\n Path parent = fs.getSource().toAbsolutePath().getParent().getFileName();\n if (parent != null) {\n String bundleTmpDirName = parent.toString();\n File bundleTmpDir = new File(tmpDir, bundleTmpDirName);\n if (bundleTmpDir.exists() && bundleTmpDir.isDirectory()) {\n File[] files = bundleTmpDir.listFiles();\n // We expect the file to be empty, else we better avoid deleting it.\n if (files != null && files.length == 0) {\n org.apache.commons.io.FileUtils.forceDelete(bundleTmpDir);\n }\n }\n }\n }\n }", "static void clean(Configuration conf) throws IOException {\n if (!debug(conf)) {\n int iteration = getCurrentIteration(conf);\n for (int i = 0; i <= iteration; i++) {\n deleteIfExists(conf, OUTPUT_BASE + i);\n deleteIfExists(conf, OUTPUT_BASE + i + TEMP_SUFFIX);\n deleteIfExists(conf, SCHEMA_BASE + i);\n }\n deleteIfExists(conf, \"input\");\n }\n }", "private void cleanReporter(){\n File file = new File(\"test-report.html\");\n file.delete();\n\n }", "public synchronized void deleteOutputData(String name) {\n if (name == null) {\n throw new NullPointerException();\n }\n\n synchronized (TestResult.this) {\n synchronized (this) {\n OutputBuffer b = findOutputBuffer(name);\n if (b != null && b instanceof WritableOutputBuffer) {\n ((WritableOutputBuffer) b).deleteAllOutput();\n }\n }\n }\n }", "private void deleteTempHTMLFile()\n {\n File file = new File(\"resources/tempHTML\" +Thread.currentThread().getName() +\".html\");\n file.delete();\n }", "private static void deleteTempFolder(String folderName) throws IOException {\n Path tempFolderPath = Paths.get(folderName);\n\n if (Files.exists(tempFolderPath) && Files.isDirectory(tempFolderPath)) {\n Files.walk(tempFolderPath)\n .sorted(Comparator.reverseOrder())\n .map(Path::toFile)\n .forEach(File::delete);\n }\n }", "private void deleteCacheFiles() {\n\n\t\t// get the directory file\n\t\tFile cache = new File(Constants.CACHE_DIR_PATH);\n\n\t\t// check if we got the correct instance of that directory file.\n\t\tif (!cache.exists() || !cache.isDirectory())\n\t\t\treturn;\n\n\t\t// gets the list of files in the directory\n\t\tFile[] files = cache.listFiles();\n\t\t// deleting\n\n\t\tdeleteFiles(cache);\n\t\tfiles = null;\n\t\tcache = null;\n\n\t}", "public void cleanDirs() {\n\t\tfor (File f : files) {\n\t\t\tFileUtils.deleteDir(f.toString());\n\t\t}\n\t}", "protected void deleteTmpDirectory(File file) {\n\t\tif (file.exists() && file.canWrite()) {\n\t\t\tif (file.isDirectory()) {\n\t\t\t\tFile[] files = file.listFiles();\n\t\t\t\tfor (File child : files) {\n\t\t\t\t\tif (child.isDirectory()) {\n\t\t\t\t\t\tdeleteTmpDirectory(child);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tchild.delete();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfile.delete();\n\t\t}\n\t}", "static void clean(TreeDeleter treeDeleter, Path outputBase) {\n Path stashDir = getStashBase(outputBase);\n if (!stashDir.isDirectory()) {\n return;\n }\n Path stashTrashDir = stashDir.getChild(\"__trash\");\n try {\n stashDir.renameTo(stashTrashDir);\n } catch (IOException e) {\n // If we couldn't move the stashdir away for deletion, we need to delete it synchronously\n // in place, so we can't use the treeDeleter.\n treeDeleter = null;\n stashTrashDir = stashDir;\n }\n try {\n if (treeDeleter != null) {\n treeDeleter.deleteTree(stashTrashDir);\n } else {\n stashTrashDir.deleteTree();\n }\n } catch (IOException e) {\n logger.atWarning().withCause(e).log(\"Failed to clean sandbox stash %s\", stashDir);\n }\n }", "@After\n\tpublic void tearDown() throws Exception {\n\t\tFileUtils.cleanDirectory(new File(this.tempFolderPath));\n\t}", "private void deleteTempFiles() {\n\t\tfor (int i = 0; i < prevPrevTotalBuckets; i++) {\n\t\t\ttry {\n\t\t\t\tString filename = DatabaseCatalog.getInstance().getTempDirectory() + \"/\" + instanceHashcode + \"_\"\n\t\t\t\t\t\t+ (passNumber - 1) + \"_\" + i;\n\t\t\t\tFile file = new File(filename);\n\t\t\t\tfile.delete();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void fix(TaskListener listener) throws IOException, InterruptedException {\n File dir = new File(job.getRootDir(), \"outOfOrderBuilds\");\n dir.mkdirs();\n File dst = new File(dir, buildDir.getName());\n listener.getLogger().println(\"Renaming \"+buildDir);\n listener.getLogger().println(\" -> \"+dst);\n if (!buildDir.renameTo(dst)) {\n FilePath bd = new FilePath(buildDir);\n bd.copyRecursiveTo(new FilePath(dst));\n bd.deleteRecursive();\n }\n\n // if there's a symlink delete it\n new File(buildDir.getParentFile(),String.valueOf(n)).delete();\n }", "private void markOutputDirSuccessful(JobContext context) throws IOException {\r\n JobConf conf = context.getJobConf();\r\n // get the o/p path\r\n Path outputPath = FileOutputFormat.getOutputPath(conf);\r\n if (outputPath != null) {\r\n // get the filesys\r\n FileSystem fileSys = outputPath.getFileSystem(conf);\r\n // create a file in the output folder to mark the job completion\r\n Path filePath = new Path(outputPath, SUCCEEDED_FILE_NAME);\r\n fileSys.create(filePath).close();\r\n }\r\n }", "@AfterClass\n public static void cleanup() throws IOException {\n File directory = new File(TMP_DIR_BASE);\n File dirname = directory.getParentFile();\n final String basename = directory.getName() + \"[0-9]+\";\n File[] files = dirname.listFiles(new FilenameFilter() {\n @Override\n public boolean accept(File dir, String name) {\n return name.matches(basename);\n }\n });\n for (File file : files) {\n if (file.delete() == false) {\n throw new IOException(\"Can't delete \" + file);\n }\n }\n }", "public void deleteDir() throws Exception\n{\n if(_repo!=null) _repo.close(); _repo = null;\n _gdir.delete();\n _gdir.setProp(GitDir.class.getName(), null);\n}", "private void cleanUpDestination(DownloadRequest request) {\n DownLoadLog.d(\"cleanupDestination() deleting \" + request.getUrl());\n File destinationFile = new File(request.getFileFullName());\n if (destinationFile.exists()) {\n destinationFile.delete();\n }\n }", "@OutputDirectory\n public File getDestinationDir() {\n return _destinationDir;\n }", "private void deleteWorkingRoot(WorkUnit workUnit, boolean copy) {\n\n // Construct folder name (will be copy or not)\n String folderToDelete = format(\"%s%s\", workUnit.root, (copy ? \"_copy\" : \"\"));\n\n // 7. Clean work directory\n MigrationHistory history = historyMgr.startStep(workUnit.migration,\n StepEnum.CLEANING, format(\"Remove %s\", folderToDelete));\n\n // Sanity check\n if (!StringUtils.isBlank(folderToDelete) && folderToDelete.contains(\"20\") && folderToDelete.contains(\"_\")) {\n\n try {\n\n if (isWindows) {\n // FileUtils.deleteDirectory(new File(folderToDelete));\n // JBU : Fails occassionally on windows with file lock issue\n // FileUtils.deleteDirectory(new File(folderToDelete));\n // JBU : Fails on windows not able to delete a large number of files?..\n String gitCommand = format(\"rd /s /q %s\", folderToDelete);\n execCommand(workUnit.commandManager, Shell.formatDirectory(applicationProperties.work.directory), gitCommand);\n\n } else {\n // Seems to work ok on linux. Keeping Java command for the moment\n FileSystemUtils.deleteRecursively(new File(folderToDelete));\n }\n\n historyMgr.endStep(history, StatusEnum.DONE, null);\n } catch (Exception exc) {\n LOG.error(\"Failed deleteDirectory: \", exc);\n historyMgr.endStep(history, StatusEnum.FAILED, exc.getMessage());\n }\n\n } else {\n LOG.error(\"Failed deleteDirectory: Badly formed delete path\");\n historyMgr.endStep(history, StatusEnum.FAILED, \"Badly formed delete path\");\n }\n }", "public Path outputDir() {\n return dir;\n }", "private void clearClipsDirectory(){\n /* Citation : http://helpdesk.objects.com.au/java/how-to-delete-all-files-in-a-directory#:~:text=Use%20the%20listFiles()%20method,used%20to%20delete%20each%20file. */\n File directory = new File(Main.CREATED_CLIPS_DIRECTORY_PATH);\n File[] files = directory.listFiles();\n if(files != null){\n for(File file : files){\n if(!file.delete()) System.out.println(\"Failed to remove file \" + file.getName() + \" from \" + Main.CREATED_CLIPS_DIRECTORY_PATH);\n }\n }\n }", "public void delete() {\n if (tempFile != null) {\n tempFile.delete();\n }\n }", "public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder clearOutputs() {\n outputs = null;\n fieldSetFlags()[5] = false;\n return this;\n }", "@SuppressWarnings(\"unchecked\")\n void clean(long cutoff, HistoryStorage storage) throws IOException {\n boolean halted = false;\n // TODO Delete YYYY/MM/DD directories.\n List<FileStatus> serialDirList = findTimestampedDirectories();\n // Sort in ascending order. Relies on YYYY/MM/DD/Serial\n Collections.sort(serialDirList);\n for (FileStatus serialDir : serialDirList) {\n List<FileStatus> historyFileList = scanDirectoryForHistoryFiles(\n serialDir.getPath(), doneDirFc);\n for (FileStatus historyFile : historyFileList) {\n JobIndexInfo jobIndexInfo = FileNameIndexUtils.getIndexInfo(historyFile\n .getPath().getName());\n long effectiveTimestamp = getEffectiveTimestamp(\n jobIndexInfo.getFinishTime(), historyFile);\n if (effectiveTimestamp <= cutoff) {\n String confFileName = JobHistoryUtils\n .getIntermediateConfFileName(jobIndexInfo.getJobId());\n MetaInfo metaInfo = new MetaInfo(historyFile.getPath(), new Path(\n historyFile.getPath().getParent(), confFileName), null,\n jobIndexInfo);\n storage.jobRemovedFromHDFS(metaInfo.getJobId());\n deleteJobFromDone(metaInfo);\n } else {\n halted = true;\n break;\n }\n }\n if (!halted) {\n doneDirFc.delete(doneDirFc.makeQualified(serialDir.getPath()), true);\n removeDirectoryFromSerialNumberIndex(serialDir.getPath());\n synchronized (existingDoneSubdirs) {\n existingDoneSubdirs.remove(serialDir.getPath());\n }\n } else {\n break; // Don't scan any more directories.\n }\n }\n }", "@BeforeClass\n public static void createOutputDir() throws OfficeException {\n\n // Ensure we start with a fresh output directory\n final File outputDir = new File(OUTPUT_DIR);\n FileUtils.deleteQuietly(outputDir);\n outputDir.mkdirs();\n }", "private void clearFiles() {\r\n File file = new File(\"test_files/upload\");\r\n File[] files = file.listFiles();\r\n for (File delFile : files) {\r\n delFile.delete();\r\n }\r\n file = new File(\"test_files/stress.jar\");\r\n file.delete();\r\n }", "@Test(timeOut = AbstractTestSupport.DEFAULT_TEST_TIMEOUT, groups = \"1\", enabled = false)\n\t@TestConfiguration(os = TestConfiguration.VM.WINDOWS)\n\tpublic void testCleanWorkDirectory() throws IOException, InterruptedException {\n\n\t\tfinal String buildDir = SGTestHelper.getBuildDir();\n\n\t\tfinal File workDir = new File(buildDir + \"/work/processing-units\");\n\t\tAssert.assertTrue(workDir.exists(), \"work dir does not exist at: \" + workDir);\n\t\tAssert.assertTrue(workDir.isDirectory(), \"work dir is not a directory at: \" + workDir);\n\n\t\t\n\t\tFile[] children = getDirectoriesInWorkDir(workDir);\n\n\t\tAssert.assertTrue(children.length >= 3, \"Expected at-least three service directories in work directory\");\n\t\tif(children.length == 3) {\n\t\t\t// need to install something to verify\n\t\t\tServiceInstaller installer = new ServiceInstaller(this.restUrl, \"empty\");\n\t\t\tinstaller.recipePath(CommandTestUtils.getPath(\"src/main/resources/apps/USM/usm/empty\"));\n\t\t\tinstaller.install();\n\t\t}\n\t\t\n\t\tboolean gsaLocated = this.admin.getGridServiceAgents().waitFor(1, 1, TimeUnit.MINUTES);\n\t\tAssert.assertTrue(gsaLocated, \"Could not find GSA of local cloud\");\n\t\t\n\t\tfinal Set<String> pidsToKill = new HashSet<String>();\n\t\tGridServiceAgent gsa = this.admin.getGridServiceAgents().getAgents()[0];\n\t\tfinal long agentPid = gsa.getVirtualMachine().getDetails().getPid();\n\t\tpidsToKill.add(Long.toString(agentPid));\n\t\tAgentProcessDetails[] processDetails = gsa.getProcessesDetails().getProcessDetails();\n\t\tfor (AgentProcessDetails agentProcessDetails : processDetails) {\n\t\t\tpidsToKill.add(Long.toString(agentProcessDetails.getProcessId()));\n\t\t}\n\t\t\n\t\tLogUtils.log(\"About to kill PIDS: \" + pidsToKill);\n\t\tkillProcessesByIDs(pidsToKill);\n\t\tchildren = getDirectoriesInWorkDir(workDir);\n\t\t\n\t\tAssert.assertTrue(children.length > 3,\n\t\t\t\t\"Expected at-least three directories in work dir, found: \" + Arrays.toString(children));\n\t\t\n\t\tCommandTestUtils.runCloudifyCommandAndWait(\"bootstrap-localcloud\");\n\n\t\tchildren = getDirectoriesInWorkDir(workDir);\n\t\tAssert.assertEquals(children.length, 3,\n\t\t\t\t\"Expected exactly three directories in work directory, got: \" + Arrays.toString(children));\n\n\t}", "public static void setWorkOutputDir(TaskAttemptContext context)\n throws IOException\n {\n Configuration conf = context.getConfiguration();\n String outputPath = getOutputDir(conf);\n // we need to do this to get the task path and set it for mapred\n // implementation since it can't be done automatically because of\n // mapreduce->mapred abstraction\n if (outputPath != null) {\n FileOutputCommitter foc =\n new FileOutputCommitter(getOutputPath(conf), context);\n Path path = foc.getWorkPath();\n FileSystem fs = path.getFileSystem(conf);\n fs.mkdirs(path);\n conf.set(\"mapred.work.output.dir\", path.toString());\n LOG.info(\"Setting mapred.work.output.dir to {}\", path.toString());\n }\n }", "public static String getOutputDir() {\n outputDir = getProperty(\"outputDir\");\n if (outputDir == null) outputDir = \"./\";\n return outputDir;\n }", "protected static void deleteTrash() {\n\t\tArrays.stream(new File(\".\").listFiles())\n\t\t\t.filter(f -> f.getName().startsWith(\"_tmp.\"))\n\t\t\t.forEach(File::delete);\n\t}", "public String getOutputDirectory() {\n return outputDirectory;\n }", "void deleteChains() {\n\t\tif (!params.isDebug()) {\n\t\t\tfor (File deleteCandidate : toDelete) {\n\t\t\t\tdeleteCandidate.delete();\n\t\t\t\t\n\t\t\t\ttry (DirectoryStream<Path> directoryStream = Files.newDirectoryStream(deleteCandidate.toPath())) {\n\t\t\t\t\tfor (Path path : directoryStream) {\n\t\t\t\t\t\tif (!path.getFileName().toString().endsWith(\"_SCWRLed.pdb\")) {\n\t\t\t\t\t\t\tpath.toFile().delete();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException ex) {\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void deleteBundleParentDirectory(Bundle bundle) throws IOException {\n if (bundle != null) {\n Path bundleSource = bundle.getSource();\n File parent = bundleSource.getParent().toFile();\n if (parent.exists() && parent.isDirectory()) {\n File[] files = parent.listFiles();\n // We expect the directory to be empty or contain just one file (the ZIP bundle,\n // since the bundle files are stored temporarily in another temporary directory).\n if (files != null && files.length <= 1) {\n org.apache.commons.io.FileUtils.forceDelete(parent);\n }\n }\n }\n }", "public void deleteOutfiles(String filename) {\n Runtime runTime = Runtime.getRuntime();\n\n String[] commands = new String[]{MYSQL, mysqlDb, userFlag + mysqlUser, pwdFlag + mysqlPwd,\n executeFlag, sourceCommand + filename};\n\n try {\n Process proc = runTime.exec(commands);\n\n StreamGobbler errorGobbler = new StreamGobbler(proc.getErrorStream(), \"ERROR\");\n\n StreamGobbler outputGobbler = new StreamGobbler(proc.getInputStream(), \"OUTPUT\");\n\n errorGobbler.start();\n outputGobbler.start();\n\n try {\n if (proc.waitFor() == 1) {\n logger.error(\"Return code indicates error in deleting the load data outfiles \"\n + \"process\");\n }\n } catch (InterruptedException exception) {\n logger.error(\"Interrupted Exception while running the delete load data outfiles \"\n + \"process\", exception);\n }\n\n } catch (IOException exception) {\n logger.error(\"Attempt to spawn a DBMerge mysql process failed for file: \"\n + filename, exception);\n }\n }", "@AfterEach\n public void tearDown() {\n if (topoPath != null) {\n try {\n Utils.forceDelete(topoPath.toString());\n } catch (IOException e) {\n // ignore...\n }\n }\n }", "static public void clearOutputFiles() {\n\t\tfor(Department d: Department.values()){\n\t\t\ttry{\n\t\t\t\tPrintWriter writer = new PrintWriter(d + \".txt\");\n\t\t\t\twriter.print(\"\");\n\t\t\t\twriter.close();\n\t\t\t}\n\t\t\tcatch (IOException ex){\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "void deleteDirectories() {\n\n if (story_directory != null && !newStoryReady) {\n deleteStoryDirectory();\n }\n\n if (tag_directory != null && !newStoryReady) {\n deleteTagDirectory();\n }\n\n if (cover_directory != null && !newStoryReady) {\n deleteCoverDirectory();\n }\n }", "public synchronized void deleteCache() {\n\n for (final File f : Constants.CACHE_LOCATION.listFiles()) {\n if (!f.isDirectory()) {\n f.delete();\n }\n }\n\n logsByCharacterMap = Collections.emptyMap();\n }", "public String outputFileDir() {\n return outputFileDir;\n }", "public static void cleanUpCustomTempDirectories(){\n\n\t\tif(tempDirectoryList != null){\n\t\t\tlog.info(\"Removing custom temp directories\");\n\t\t\ttry {\n\t\t\t\tfor(File tempFile : tempDirectoryList)\n\t\t\t\t\tif(tempFile.exists()){\n\t\t\t\t\t\tlog.info(\"Deleting : \" + tempFile.getCanonicalPath());\n\t\t\t\t\t\tdeleteDirectory(tempFile);\n\t\t\t\t\t}\n\t\t\t\t// also remove all file references from ArrayList\n\t\t\t\ttempDirectoryList.clear();\n\t\t\t} catch (IOException e) {e.printStackTrace();}\n\t\t}\n\t\telse\n\t\t\tlog.info(\"No custom temp directory created.\");\n\t\tlog.info(\"Finished removing custom temp directories\");\n\t}", "private boolean shouldMarkOutputDir(JobConf conf) {\r\n return conf.getBoolean(SUCCESSFUL_JOB_OUTPUT_DIR_MARKER, true);\r\n }", "private void removeTmpConfigFile() throws IOException {\n fileSystem.delete(tempConfigPath, true);\n LOG.info(\"delete temp configuration file: \" + tempConfigPath);\n }", "File prepareTempSourceDirectory() throws FileNotFoundException, IOException{\n\t\tFile tempfile = null;\n\t\tFile tempdir = null;\n\t\ttempfile = File.createTempFile(\"temp\", \"Delete\");\n\t\ttempdir = tempfile.getParentFile();\n\t\ttempfile.delete();\n\t\ttempdir = new File(tempdir, \"SAFS_UPDATE\");\n\t\ttempdir.mkdir();\n\n\t\tFile[] files = tempdir.listFiles();\n\t\tif(files != null && files.length > 0){\n\t\t\tfor(File file:files){\n\t\t\t\tif(file.isDirectory()) {\n\t\t\t\t\ttry{\n\t\t\t\t\t\tFileUtilities.deleteDirectoryRecursively(file.getAbsolutePath(), false);\n\t\t\t\t\t}catch(Throwable x){\n\t\t\t\t\t\t// java.lang.NoClassDefFoundError\n\t\t\t\t\t\terrors.println(x.getClass().getName()+\": \"+x.getMessage());\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\ttry{\n\t\t\t\t\t\tfile.delete();\n\t\t\t\t\t}catch(Throwable x){\n\t\t\t\t\t\terrors.println(x.getClass().getName()+\": \"+x.getMessage());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(tempdir==null || !tempdir.isDirectory()) throw new IOException(\"Cannot deduce a root source directory for HTTP extraction.\");\n\t\treturn tempdir;\n\t}", "private static void deletePublicationDir(File pubDir) {\n System.out.println(\" Deleting contents of directory: \" + pubDir);\n for (File pubFile : pubDir.listFiles()) {\n if (pubFile.isFile()) {\n System.out.println(\" Deleting file: \" + pubFile);\n pubFile.delete();\n }\n }\n System.out.println(\" Now deleting directory: \" + pubDir);\n pubDir.delete();\n }", "public void cleanup() {\n this.close();\n this.delete(this.backingFileBasename + RECORDING_OUTPUT_STREAM_SUFFIX);\n this.delete(this.backingFileBasename + RECORDING_INPUT_STREAM_SUFFIX);\n }", "public void setOutputDirectory(String outputDirectory) {\n this.outputDirectory = outputDirectory;\n }", "void removeIndexDir(String indexDirPath) throws IOException {\n File indexDir = new File(indexDirPath);\n if (indexDir.exists())\n FileUtils.deleteDirectory(indexDir);\n }", "public JobBuilder outputPath(String outputPath) {\r\n job.setOutputPath(outputPath);\r\n return this;\r\n }", "public void cleanup() {\n try {\n Files.delete(path);\n } catch (final IOException e) {\n throw new StageAccessException(\"Unable to delete staged document!\", e);\n }\n }", "private static void cleanUpGlobalStateAndFileStore() {\n FileUtils.deleteDirectory(Paths.get(GLOBAL_STATE_DIR));\n }", "private void deleteDirectory(Path path) throws IOException {\n if (Files.isDirectory(path, LinkOption.NOFOLLOW_LINKS)) {\n try (DirectoryStream<Path> entries = Files.newDirectoryStream(path)) {\n for (Path entry : entries) {\n deleteDirectory(entry);\n }\n }\n }\n Files.delete(path);\n }", "private void removePolicyContextDirectory(){\n\tString directoryName = getContextDirectoryName();\n\tFile f = new File(directoryName);\n\tif(f.exists()){\n\n // WORKAROUND: due to existence of timestamp file in given directory\n // for SE/EE synchronization\n File[] files = f.listFiles();\n if (files != null && files.length > 0) {\n for (int i = 0; i < files.length; i++) {\n files[i].delete();\n }\n }\n //WORKAROUND: End \n\n\t if (!f.delete()) {\n String defMsg = \"Failure removing policy context directory: \"+directoryName;\n String msg=localStrings.getLocalString(\"pc.file_delete_error\", defMsg);\n\t\tlogger.log(Level.SEVERE,msg);\n\t\tthrow new RuntimeException(defMsg);\n\t } else if(logger.isLoggable(Level.FINE)){\n\t\tlogger.fine(\"JACC Policy Provider: Policy context directory removed: \"+directoryName);\n\t }\n\n File appDir = f.getParentFile();\n // WORKAROUND: due to existence of timestamp file in given directory\n // for SE/EE synchronization\n File[] fs = appDir.listFiles();\n if (fs != null && fs.length > 0) {\n boolean hasDir = false;\n for (int i = 0; i < fs.length; i++) {\n if (fs[i].isDirectory()) {\n hasDir = true;\n break;\n }\n }\n if (!hasDir) {\n for (int i = 0; i < fs.length; i++) {\n fs[i].delete();\n }\n }\n }\n //WORKAROUND: End \n\n File[] moduleDirs = appDir.listFiles();\n if (moduleDirs == null || moduleDirs.length == 0) {\n if (!appDir.delete()) {\n String defMsg = \"Failure removing policy context directory: \" + appDir;\n String msg = localStrings.getLocalString(\"pc.file_delete_error\", defMsg);\n\t\t logger.log(Level.SEVERE,msg);\n\t\t throw new RuntimeException(defMsg);\n }\n }\n\t}\n }", "public void delete() throws IOException {\n\t\tclose();\n\t\tdeleteContents(directory);\n\t}", "public void deleteMoreFile() {\n\t\tFile outfile = new File(outFileString);\n\t\tFile files[] = outfile.listFiles();\n\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\tString name = files[i].getAbsolutePath();\n\t\t\tif ((!name.contains(\"SICG\")) && (!name.contains(\"AndroidManifest.xml\"))) {\n\t\t\t\tDirDelete delete = new DirDelete();\n\t\t\t\tdelete.deleteDir(files[i]);\n\t\t\t}\n\t\t}\n\t}", "public Path getOutputPath() {\n\t\t\n\t\tString name = getSimulationName();\t\t\n\t\tint l = name.length();\n\t\tString sim_name = name.substring(0, l-11); // \"_SIM_FOLDER\" contains 11 character\n\t\t\n\t\tPath path = Paths.get(outpath + \"\\\\\"+ sim_name);\n\t\tif(!Files.exists(path)) {\n\t\t try {\n\t\t Files.createDirectories(path);\n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t}\n\t\treturn path;\n\t}" ]
[ "0.7123146", "0.7087458", "0.6820506", "0.65834856", "0.6464042", "0.642637", "0.63800395", "0.6308178", "0.6236598", "0.6121952", "0.60669047", "0.59876925", "0.5841857", "0.5831736", "0.5809056", "0.58071417", "0.57772213", "0.577588", "0.5754695", "0.5748973", "0.5725078", "0.57051474", "0.568436", "0.5670632", "0.56284857", "0.56261444", "0.5616802", "0.5582098", "0.5578593", "0.55761075", "0.55670494", "0.5545723", "0.55381835", "0.5503258", "0.5437559", "0.5427813", "0.5423255", "0.542321", "0.5406105", "0.53787863", "0.5375798", "0.53546005", "0.53479904", "0.5322507", "0.5309337", "0.5305228", "0.52717525", "0.52598757", "0.5247901", "0.5214804", "0.5195472", "0.5193606", "0.51932794", "0.5191526", "0.51810366", "0.5179118", "0.516831", "0.5159065", "0.51543367", "0.51469857", "0.5137711", "0.5123403", "0.50918365", "0.507495", "0.5070608", "0.5069571", "0.5061933", "0.50573194", "0.50515836", "0.5045621", "0.50420463", "0.5039013", "0.5035036", "0.50226516", "0.5016831", "0.4976424", "0.49763542", "0.49710432", "0.4962588", "0.49593148", "0.49548644", "0.4951385", "0.4945923", "0.49433947", "0.49379984", "0.49362656", "0.4934728", "0.4916925", "0.49150756", "0.49001914", "0.48964068", "0.48774505", "0.48744774", "0.48683533", "0.48597687", "0.4852421", "0.4834183", "0.48261577", "0.48204923", "0.48171696" ]
0.74265903
0
Set number of map task attempts
public static void setMapAttempts(Configuration conf, int numAttempts) { conf.setInt("mapred.map.max.attempts", numAttempts); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void increaseAttempts() {\n attempts++;\n }", "public void setAttempts(int value) {\n this.attempts = value;\n }", "public void setAttempts(int A)\t\n\t{\t//start of setAttempts method\n\t\tattempts = A;\n\t}", "public void setTries(int tries) {\n this.tries = tries;\n }", "public void resetTries() {\n this.tries = 0;\n }", "public void setNumTasks(int n) {\n if (latch != null && latch.getCount() > 0) {\n throw new IllegalStateException(\"Method called during wait period\");\n }\n\n latch = new CountDownLatch(n);\n }", "private void updateRetries(int tries) {\n synchronized(this) {\n maxNum = maxNum < tries ? tries : maxNum;\n minNum = minNum < tries ? minNum : tries;\n }\n if (tries > 0 && Utils.VERBOSE) {\n System.err.println(\"Retries this round: \" + tries);\n }\n }", "public void incrementRetryCount() {\n this.retryCount++;\n }", "public void populateMap(int playerNumber){\n\t\tint factor = 1;\n\t\t\n\t\t\n\t}", "public void resetAttackAttempts() {\r\n\t\tattackAttempts = 0;\r\n\t}", "private static double exerciseMap(int threadCount, int perThread, int range, \n final OurMap<Integer, String> map) {\n Thread[] threads = new Thread[threadCount];\n for (int t=0; t<threadCount; t++) {\n final int myThread = t;\n threads[t] = new Thread(() -> {\n Random random = new Random(37 * myThread + 78);\n for (int i=0; i<perThread; i++) {\n Integer key = random.nextInt(range);\n if (!map.containsKey(key)) {\n // Add key with probability 60%\n if (random.nextDouble() < 0.60) \n map.put(key, Integer.toString(key));\n } \n else // Remove key with probability 2% and reinsert\n if (random.nextDouble() < 0.02) {\n map.remove(key);\n map.putIfAbsent(key, Integer.toString(key));\n }\n }\n final AtomicInteger ai = new AtomicInteger();\n map.forEach(new Consumer<Integer,String>() { \n public void accept(Integer k, String v) {\n ai.getAndIncrement();\n }});\n // System.out.println(ai.intValue() + \" \" + map.size());\n });\n }\n for (int t=0; t<threadCount; t++) \n threads[t].start();\n map.reallocateBuckets();\n try {\n for (int t=0; t<threadCount; t++) \n threads[t].join();\n } catch (InterruptedException exn) { }\n return map.size();\n }", "public void resetMovementAttempts() {\r\n\t\tmovementAttempts = 0;\r\n\t}", "protected short maxRetries() { return 15; }", "int getRetries();", "public void setPassCounter()\r\n {\r\n passCounter++;\r\n\r\n }", "public void incrementNumAbandonRequests() {\n this.numAbandonRequests.incrementAndGet();\n }", "public int recNumMapTasks(int mis)\r\n\t{\r\n\t long splitSize = mis*1024*1024;\r\n\t return (int)(inputSize/splitSize)+1;\r\n\t}", "public void addConsecutiveLoginAttempts(){\n\t\tconsecutiveLoginAttempts++;\t\n\t}", "private void setAttemptsPerTurn(final String s) {\n attemptsPerTurn = getInt(s);\n setAttemptsLeftThisTurn(attemptsPerTurn);\n }", "int getTries();", "public static void setRetryCount(int count) {\n logger.debug(\"The retry count value is {}\", count);\n retryCount = count;\n }", "public void setMaxattempts(int maxattempts) {\n this.maxattempts = maxattempts;\n }", "public void resetRunCount() {\n\n }", "public void setJumpCount(int count)\n{\n jumpCount = count;\n}", "void incrementLoginAttempts(String username);", "public void setNumAttemptsOfGeneOption(int newIntParameter) {\n m_NumAttemptsOfGene = newIntParameter;\n }", "public void setNumTests(int i){\n if (i <= 0){\n throw new ArithmeticException(\"Number of random GAM tests must be at least 1.\");\n }\n\n numTests = i;\n }", "public void setNumDeparting() {\n if (isStopped() && !embarkingPassengersSet){\n \tRandom rand = new Random();\n \tint n = rand.nextInt(this.numPassengers+1);\n \tif (this.numPassengers - n <= 0) {\n \t\tthis.numPassengers = 0;\n n = this.numPassengers;\n \t} else {\n this.numPassengers = this.numPassengers - n;\n }\n trkMdl.passengersUnboarded(trainID, n);\n }\n \t//return 0;\n }", "public void setReuse(int times)\n {\n this.reuseGrid = times;\n }", "public MapWorkPool(int nThreads) {\n\t\tthis.nThreads = nThreads;\n\n\t}", "public void setTaskCount(java.lang.Integer taskCount) {\n this.taskCount = taskCount;\n }", "public void onTryFails(int currentRetryCount, Exception e) {}", "private void processTilesetMap() {\r\n for (int t = 0; t < this.getTileSetCount(); t++) {\r\n TileSet tileSet = this.getTileSet(t);\r\n this.tilesetNameToIDMap.put(tileSet.name, t);\r\n }\r\n }", "private void incrementFailures() {\n totalFailures++;\n totalTunitFailures++;\n }", "void setNumberOfInfantry(int infantry);", "public int getAttemptCount() {\n return maxAttemptCount;\n }", "Integer totalRetryAttempts();", "public void attemptAttack() {\r\n\t\tattackAttempts += 100;\r\n\t}", "public CountingMap( Map<K, Integer> map ) {\n this.map = map;\n }", "public void setRuns(int runs);", "public void updateWayPointCount(MapMarkerUtilities mapUtilities) {\n\t\tmetaInfo.setNumWaypoints(mapUtilities.getOrderedWayPoints().size());\n\t}", "public void setUpdateOften(int i){\n countNum = i;\n }", "public void InitializeMaxNumInstances(int num) {\n }", "public static void setNumThreads(int newNumThreads) throws Exception \n { \n /** In case of incorrect input */\n if(newNumThreads < 0)\n throw new Exception(\"attepmt to create negative count of threads\");\n numThreads = newNumThreads; \n }", "public final void setfailure_count(Integer failure_count)\n\t{\n\t\tsetfailure_count(getContext(), failure_count);\n\t}", "public void setUp()\n {\n map = new Map(5, 5, null);\n }", "public int retry() {\r\n\t\treturn ++retryCount;\r\n\t}", "public void setRetryCount( int retries ) {\n numberRetries = retries;\n }", "public void setNumRetries(int numRetries) {\n\t\tif(numRetries < 0) {\n\t\t\tthrow new IllegalArgumentException(\"Retries should not be negative\");\n\t\t}\n\t\tthis.numRetries = numRetries;\n\t}", "private void updateCountersOfMap(final Map<String, Integer> map, final String key) {\n Integer visitTimes = map.get(key);\n visitTimes = (visitTimes != null ? visitTimes : 0);\n map.put(key, visitTimes + 1);\n }", "public void incrementNumBindRequests() {\n this.numBindRequests.incrementAndGet();\n }", "public int getAttempts() {\n return attempts;\n }", "void setReplicaCount(String clusterName, ClusterSpec clusterSpec, int replicaLimit);", "protected synchronized void increaseThreadsNumber() {\r\n threadNumber++;\r\n }", "public void incrementNumUnbindRequests() {\n this.numUnbindRequests.incrementAndGet();\n }", "public int getAttempts() {\n return attempts;\n }", "public int getAttempts() {\n return attempts;\n }", "public int getAttempts() {\n return attempts;\n }", "private void resetTriesRemaining() {\n triesLeft[0] = tryLimit;\n }", "void setSpinCount(long spinCount);", "protected void mo4171e(Map<String, String> map) {\n map.put(\"slot_count\", Integer.toString(this.f2488a));\n }", "public void setOneNewWanted () {\r\n numWanted ++;\r\n }", "private static double timeMap(int threadCount, final OurMap<Integer, String> map) {\n final int iterations = 5_000_000, perThread = iterations / threadCount;\n final int range = 200_000;\n return exerciseMap(threadCount, perThread, range, map);\n }", "public static void setNumIterations(long aNumIterations) {\n\t\tnumIterations = aNumIterations;\n\t}", "public static void addFailCount(int count)\r\n\t{\r\n\t\tsynchronized(keywords)\r\n\t\t{\r\n\t\t\tfailCount += count;\r\n\t\t}//sync\r\n\t}", "public void setNumGruppoPacchetti(int numGruppoPacchetti);", "public void setSteak(double countNo) {\n steak = countNo;\r\n }", "public void setNumOfActionTaken(int numOfActionTaken) {\n this.numOfActionTaken = numOfActionTaken;\n }", "@Before\n public void setUp() throws Exception {\n solution2.count = 0;\n solution4.map.clear();\n }", "public int countPoolMaps(){\n\n\t\treturn poolMaps.size();\n\t}", "protected abstract void onMaxAttempts(final Exception exception);", "public void incrementActiveRequests() \n {\n ++requests;\n }", "@Override\n public void start(int totalTasks) {\n }", "public void setJumpCount(int jumpCount) {this.jumpCount = jumpCount;}", "void retry(Task task);", "protected int retryLimit() {\n return DEFAULT_RETRIES;\n }", "public int getAttempts(int attempts)\t\n\t{\t//start of getAttempts mehtod\n\t\treturn attempts;\n\t}", "public void resetMissedCallsCount();", "void setAccessCounter(int cnt);", "public void setNumberShips(int numberShips);", "@Override\n\tpublic void resetTripCount() {\n\t\tthis.tripCount = 0;\n\t}", "@Override\n\tpublic void resetTripCount() {\n\t\tthis.tripCount = 0;\n\n\t}", "public void setKillCount(){\n killCount = killCount + 1;\n System.out.println(\"Kill count: \"+ killCount);\n }", "public int askMap();", "public void zeroConsecutiveLoginAttempts(){\n\t\tconsecutiveLoginAttempts = 0;\t\n\t}", "public void setObjectives(TiledMap map)\r\n/* 72: */ {\r\n/* 73: 80 */ this.mission = true;\r\n/* 74: 81 */ for (int x = 0; x < getWidthInTiles(); x++) {\r\n/* 75: 83 */ for (int y = 0; y < getHeightInTiles(); y++)\r\n/* 76: */ {\r\n/* 77: 85 */ this.reach[x][y] = checkTileProperty(x, y, \"reach\", \"true\");\r\n/* 78: 86 */ if (this.reach[x][y] != 0) {\r\n/* 79: 88 */ this.reachablePlaces += 1;\r\n/* 80: */ }\r\n/* 81: 90 */ this.fire[x][y] = checkTileProperty(x, y, \"fire\", \"true\");\r\n/* 82: 91 */ if (this.fire[x][y] != 0) {\r\n/* 83: 93 */ this.burnPlaces += 1;\r\n/* 84: */ }\r\n/* 85: */ }\r\n/* 86: */ }\r\n/* 87: */ }", "public void setSocketRetries(int retries);", "public void setRecoveryRetries(int retries);", "public void set_map(int[][] map) \n\t{\n\t\tthis.map = map;\n\t}", "public void resetStepCount() {\r\n\t\tstepCount = 500;\r\n\t}", "public void setTrials(int n){\n\t\tsuper.setTrials(1);\n\t}", "public void setRetryAttempt(int retryAttempt)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RETRYATTEMPT$24, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(RETRYATTEMPT$24);\n }\n target.setIntValue(retryAttempt);\n }\n }", "public void setFreeTimes(Integer freeTimes) {\r\n this.freeTimes = freeTimes;\r\n }", "private void incWaiters()\r\n/* 443: */ {\r\n/* 444:530 */ if (this.waiters == 32767) {\r\n/* 445:531 */ throw new IllegalStateException(\"too many waiters: \" + this);\r\n/* 446: */ }\r\n/* 447:533 */ this.waiters = ((short)(this.waiters + 1));\r\n/* 448: */ }", "private void setUpMap() {\n if (points.size()>2) {\n drawCircle();\n }\n\n\n }", "void setPoolNumber(int poolNumber);", "public static void resetGlobals(int numTasks){\n time = 0;\n terminatedCount = 0;\n removeSet.clear();\n resourceArr = maxResourceArr.clone();\n releaseArr = new int [numResources];\n taskPointers = new int [numTasks];\n taskList = bankersTaskList;\n waitingList.clear();\n\n }", "public void setRetries(int retries) {\n\t\tthis.retries = retries;\n\t}", "public int getTries() {\n return tries;\n }", "public void resetMap() {\n for (int x = 0; x < cells; x++) {\n for (int y = 0; y < cells; y++) {\n Node current = map[x][y];\n if (current.getType() == 4 || current.getType() == 5)\n map[x][y] = new Node(3, x, y);\n }\n }\n\n if (startx > -1 && starty > -1) { //RESET THE START AND FINISH\n map[startx][starty] = new Node(0, startx, starty);\n map[startx][starty].setJumps(0);\n }\n\n if (finishx > -1 && finishy > -1)\n map[finishx][finishy] = new Node(1, finishx, finishy);\n\n reset(); //RESET SOME VARIABLES\n }" ]
[ "0.66830945", "0.65835375", "0.61640614", "0.6036364", "0.58904773", "0.5861714", "0.5782749", "0.5735282", "0.5661556", "0.5653915", "0.5624702", "0.56100184", "0.55914766", "0.5591179", "0.55633384", "0.55577224", "0.5542649", "0.55409485", "0.55283123", "0.55019146", "0.5495037", "0.5479656", "0.54793346", "0.54642856", "0.5437073", "0.54185885", "0.53955066", "0.53886116", "0.536305", "0.5362646", "0.5341549", "0.53304875", "0.53266203", "0.5324424", "0.53200465", "0.53160757", "0.5305603", "0.5303748", "0.5290079", "0.52834666", "0.52799493", "0.52770054", "0.5273671", "0.5263686", "0.52511674", "0.52436864", "0.5234243", "0.52184683", "0.52176684", "0.5212444", "0.5198296", "0.51879966", "0.5184195", "0.5163826", "0.5163231", "0.5160401", "0.5160401", "0.5160401", "0.5156603", "0.5153827", "0.5151028", "0.5148487", "0.5136876", "0.51360726", "0.5124719", "0.5122111", "0.5112634", "0.509687", "0.50951", "0.5079974", "0.507556", "0.50747037", "0.5074585", "0.5071995", "0.50707966", "0.50503373", "0.50468445", "0.5045459", "0.5040321", "0.50402427", "0.50380534", "0.50364494", "0.5035555", "0.5035137", "0.5034603", "0.5030028", "0.50277823", "0.502488", "0.50144064", "0.50134534", "0.50050664", "0.5003829", "0.50008917", "0.49982998", "0.49914938", "0.49874187", "0.4985432", "0.49787325", "0.49726453", "0.49696237" ]
0.7248338
0
Set Hadoop Pool to use
public static void setPool(Configuration conf, String pool) { conf.set("mapred.fairscheduler.pool", pool); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setPoolNumber(int poolNumber);", "public void setWorkerpool(Executor workerpool) {\n\t pool.setWorkerpool(workerpool);\n\t}", "void setPoolName(java.lang.String poolName);", "public void setPoolSize(int aPoolSize) {\n poolSize = aPoolSize;\n }", "OMMPool getPool();", "public static void setPoolProvider(PoolProvider provider) {\n SharedRedisPools.poolProvider = provider;\n }", "public void setPoolId(Long poolId);", "void setPoolId(java.lang.String poolId);", "public void setPool(boolean mPool) {\r\n this.mPool = mPool;\r\n }", "public PoolBoneCpManager() {\n pool = null;\n }", "public SynapseNotebookActivity setSparkPool(BigDataPoolParametrizationReference sparkPool) {\n this.sparkPool = sparkPool;\n return this;\n }", "protected abstract void createPool();", "@Override\n\tpublic void setConnectionPoolSize(int arg0) {\n\n\t}", "public ForkJoinPoolMgr() {\n }", "public void setPoolSize(final int poolSize) {\n this.poolSize = poolSize;\n }", "public GraphPool() {\n\t\tmMetadataPool = new PoolNodeMetadata();\n\t\tmIdentifierPool = new PoolNodeIdentifier(mMetadataPool);\n\t\tmLinkPool = new PoolExpandedLink(mIdentifierPool, mMetadataPool);\n\t}", "public static void setConnectionPool(BoneCP connectionPool) {\n\t\tSQLDataBaseConnector.connectionPool = connectionPool;\n\t}", "@Override\n\tpublic void setParallelModule(java.lang.String parallelModule) {\n\t\t_scienceApp.setParallelModule(parallelModule);\n\t}", "public void setHadoopJob( Job currJob ) ;", "void setPoolRaces(int poolRaces);", "public void setPoolLocked(boolean lockingState){poolLocked=lockingState;}", "public ThreadPool( int totalPoolSize ) {\n\n\tpoolLocked = false;\n\n\ttry {\n\n\t initializePools( null, totalPoolSize );\n\n\t} catch( Exception exc ) {}\n\n }", "void setNilPoolName();", "public void setPoolDataSource(ConnectionPoolDataSource poolDataSource)\n throws SQLException\n {\n DriverConfig driver;\n \n if (_driverList.size() > 0)\n driver = _driverList.get(0);\n else\n driver = createDriver();\n \n driver.setPoolDataSource(poolDataSource);\n }", "public BigDataPoolParametrizationReference getSparkPool() {\n return this.sparkPool;\n }", "public ResourcePoolImpl() {\r\n this((ResourcePool) null);\r\n }", "public AbstractParallelAlgorithm(\n final ThreadPoolExecutor threadPool)\n {\n super();\n\n this.setThreadPool(threadPool);\n }", "public void setMinPoolSize(int minPoolSize) {\n this.minPoolSize = minPoolSize;\n }", "public void setName(String name) {\n if (name == null || name.length() == 0)\n throw new IllegalArgumentException(\"Cannot set pool name to null or empty!\");\n if (poolName != null && !poolName.equals(name))\n throw new IllegalStateException(\"Cannot change pool name once set!\");\n poolName = name;\n log = Logger.getLogger(ObjectPool.class.getName() + \".\" + name);\n }", "public ObjectPool(PoolObjectFactory factory, String poolName) {\n setObjectFactory(factory);\n setName(poolName);\n }", "protected void configureConnectionPool() {\n JdbcPropertyAdapter adapter = getPropertyAdapter(dbType, properties);\n JdbcConnectionProvider cp = new JdbcConnectionProvider(this.translator, adapter);\n this.connectionPool = new PoolConnectionProvider(cp, this.maxConnectionPoolSize);\n this.transactionProvider = new SimpleTransactionProvider(this.connectionPool);\n }", "void setNilPoolId();", "@Override\n public void open() {\n if (getProperty(\"master\").equals(\"yarn-client\")) {\n System.setProperty(\"SPARK_YARN_MODE\", \"true\");\n }\n Properties interpreterProperties = getProperties();\n if (interpreterProperties.containsKey(\"spark.yarn.keytab\") &&\n interpreterProperties.containsKey(\"spark.yarn.principal\")) {\n try {\n String keytab = interpreterProperties.getProperty(\"spark.yarn.keytab\");\n String principal = interpreterProperties.getProperty(\"spark.yarn.principal\");\n UserGroupInformation.loginUserFromKeytab(principal, keytab);\n } catch (IOException e) {\n throw new RuntimeException(\"Can not pass kerberos authentication\", e);\n }\n }\n\n conf = new SparkConf();\n URL[] urls = getClassloaderUrls();\n\n // Very nice discussion about how scala compiler handle classpath\n // https://groups.google.com/forum/#!topic/scala-user/MlVwo2xCCI0\n\n /*\n * > val env = new nsc.Settings(errLogger) > env.usejavacp.value = true > val p = new\n * Interpreter(env) > p.setContextClassLoader > Alternatively you can set the class path through\n * nsc.Settings.classpath.\n *\n * >> val settings = new Settings() >> settings.usejavacp.value = true >>\n * settings.classpath.value += File.pathSeparator + >> System.getProperty(\"java.class.path\") >>\n * val in = new Interpreter(settings) { >> override protected def parentClassLoader =\n * getClass.getClassLoader >> } >> in.setContextClassLoader()\n */\n Settings settings = new Settings();\n\n // process args\n String args = getProperty(\"args\");\n if (args == null) {\n args = \"\";\n }\n\n String[] argsArray = args.split(\" \");\n LinkedList<String> argList = new LinkedList<String>();\n for (String arg : argsArray) {\n argList.add(arg);\n }\n\n String sparkReplClassDir = getProperty(\"spark.repl.classdir\");\n if (sparkReplClassDir == null) {\n sparkReplClassDir = System.getProperty(\"spark.repl.classdir\");\n }\n if (sparkReplClassDir == null) {\n sparkReplClassDir = System.getProperty(\"java.io.tmpdir\");\n }\n\n outputDir = createTempDir(sparkReplClassDir);\n\n argList.add(\"-Yrepl-class-based\");\n argList.add(\"-Yrepl-outdir\");\n argList.add(outputDir.getAbsolutePath());\n\n\n scala.collection.immutable.List<String> list =\n JavaConversions.asScalaBuffer(argList).toList();\n\n settings.processArguments(list, true);\n\n\n // set classpath for scala compiler\n PathSetting pathSettings = settings.classpath();\n String classpath = \"\";\n List<File> paths = currentClassPath();\n for (File f : paths) {\n if (classpath.length() > 0) {\n classpath += File.pathSeparator;\n }\n classpath += f.getAbsolutePath();\n }\n\n if (urls != null) {\n for (URL u : urls) {\n if (classpath.length() > 0) {\n classpath += File.pathSeparator;\n }\n classpath += u.getFile();\n }\n }\n\n // add dependency from local repo\n String localRepo = getProperty(\"zeppelin.interpreter.localRepo\");\n if (localRepo != null) {\n File localRepoDir = new File(localRepo);\n if (localRepoDir.exists()) {\n File[] files = localRepoDir.listFiles();\n if (files != null) {\n for (File f : files) {\n if (classpath.length() > 0) {\n classpath += File.pathSeparator;\n }\n classpath += f.getAbsolutePath();\n }\n }\n }\n }\n\n pathSettings.v_$eq(classpath);\n settings.scala$tools$nsc$settings$ScalaSettings$_setter_$classpath_$eq(pathSettings);\n\n\n // set classloader for scala compiler\n settings.explicitParentLoader_$eq(new Some<ClassLoader>(Thread.currentThread()\n .getContextClassLoader()));\n BooleanSetting b = (BooleanSetting) settings.usejavacp();\n b.v_$eq(true);\n settings.scala$tools$nsc$settings$StandardScalaSettings$_setter_$usejavacp_$eq(b);\n\n /* Required for scoped mode.\n * In scoped mode multiple scala compiler (repl) generates class in the same directory.\n * Class names is not randomly generated and look like '$line12.$read$$iw$$iw'\n * Therefore it's possible to generated class conflict(overwrite) with other repl generated\n * class.\n *\n * To prevent generated class name conflict,\n * change prefix of generated class name from each scala compiler (repl) instance.\n *\n * In Spark 2.x, REPL generated wrapper class name should compatible with the pattern\n * ^(\\$line(?:\\d+)\\.\\$read)(?:\\$\\$iw)+$\n */\n System.setProperty(\"scala.repl.name.line\", \"$line\" + this.hashCode());\n\n // To prevent 'File name too long' error on some file system.\n MutableSettings.IntSetting numClassFileSetting = settings.maxClassfileName();\n numClassFileSetting.v_$eq(128);\n settings.scala$tools$nsc$settings$ScalaSettings$_setter_$maxClassfileName_$eq(\n numClassFileSetting);\n\n synchronized (sharedInterpreterLock) {\n /* create scala repl */\n\n this.interpreter = new SparkILoop((java.io.BufferedReader) null, new PrintWriter(out));\n\n interpreter.settings_$eq(settings);\n\n interpreter.createInterpreter();\n\n intp = ZeppelinIntpUtil.invokeMethod(interpreter, \"intp\");\n ZeppelinIntpUtil.invokeMethod(intp, \"setContextClassLoader\");\n ZeppelinIntpUtil.invokeMethod(intp, \"initializeSynchronous\");\n\n\n if (ZeppelinIntpUtil.findClass(\"org.apache.spark.repl.SparkJLineCompletion\", true) != null) {\n completer = ZeppelinIntpUtil.instantiateClass(\n \"org.apache.spark.repl.SparkJLineCompletion\",\n new Class[]{ZeppelinIntpUtil.findClass(\"org.apache.spark.repl.SparkIMain\")},\n new Object[]{intp});\n } else if (ZeppelinIntpUtil.findClass(\n \"scala.tools.nsc.interpreter.PresentationCompilerCompleter\", true) != null) {\n completer = ZeppelinIntpUtil.instantiateClass(\n \"scala.tools.nsc.interpreter.PresentationCompilerCompleter\",\n new Class[]{IMain.class},\n new Object[]{intp});\n } else if (ZeppelinIntpUtil.findClass(\n \"scala.tools.nsc.interpreter.JLineCompletion\", true) != null) {\n completer = ZeppelinIntpUtil.instantiateClass(\n \"scala.tools.nsc.interpreter.JLineCompletion\",\n new Class[]{IMain.class},\n new Object[]{intp});\n }\n sparkSession = getSparkSession();\n sc = getSparkContext();\n if (sc.getPoolForName(\"fair\").isEmpty()) {\n Value schedulingMode = org.apache.spark.scheduler.SchedulingMode.FAIR();\n int minimumShare = 0;\n int weight = 1;\n Pool pool = new Pool(\"fair\", schedulingMode, minimumShare, weight);\n sc.taskScheduler().rootPool().addSchedulable(pool);\n }\n\n if (null != getProperty(Constants.FS_S3A_ACCESS_KEY) && null != getProperty(Constants.FS_S3A_SECRET_KEY)) {\n sc.hadoopConfiguration().set(Constants.FS_S3A_IMPL, \"org.apache.hadoop.fs.s3a.S3AFileSystem\");\n sc.hadoopConfiguration().set(Constants.FS_S3A_ACCESS_KEY, getProperty(Constants.FS_S3A_ACCESS_KEY));\n sc.hadoopConfiguration().set(Constants.FS_S3A_SECRET_KEY, getProperty(Constants.FS_S3A_SECRET_KEY));\n }\n sparkVersion = SparkVersion.fromVersionString(sc.version());\n\n snc = getSnappyContext();\n\n dep = getDependencyResolver();\n addDeployedJars();\n\n hooks = getInterpreterGroup().getInterpreterHookRegistry();\n z = new SparkZeppelinContext(sc, hooks,\n Integer.parseInt(getProperty(\"zeppelin.spark.maxResult\")));\n\n interpret(\"@transient val _binder = new java.util.HashMap[String, Object]()\");\n Map<String, Object> binder;\n\n binder = (Map<String, Object>) getLastObject();\n binder.put(\"sc\", sc);\n binder.put(\"snc\", snc);\n binder.put(\"z\", z);\n\n binder.put(\"spark\", sparkSession);\n\n\n interpret(\"@transient val z = \"\n + \"_binder.get(\\\"z\\\").asInstanceOf[org.apache.zeppelin.spark.ZeppelinContext]\");\n interpret(\"@transient val sc = \"\n + \"_binder.get(\\\"sc\\\").asInstanceOf[org.apache.spark.SparkContext]\");\n // Injecting SnappyContext in repl\n interpret(\"@transient val snc = \"\n + \"_binder.get(\\\"snc\\\").asInstanceOf[org.apache.spark.sql.SnappyContext]\");\n interpret(\"@transient val snappyContext = \"\n + \"_binder.get(\\\"snc\\\").asInstanceOf[org.apache.spark.sql.SnappyContext]\");\n\n interpret(\"@transient val spark = \"\n + \"_binder.get(\\\"spark\\\").asInstanceOf[org.apache.spark.sql.SparkSession]\");\n\n interpret(\"import org.apache.spark.SparkContext._\");\n interpret(\"import org.apache.spark.sql.SnappyContext._\");\n interpret(\"import org.apache.spark.sql.{Row, SaveMode, SnappyContext}\");\n if (importImplicit()) {\n interpret(\"import spark.implicits._\");\n interpret(\"import spark.sql\");\n interpret(\"import org.apache.spark.sql.functions._\");\n\n }\n }\n\n /* Temporary disabling DisplayUtils. see https://issues.apache.org/jira/browse/ZEPPELIN-127\n *\n // Utility functions for display\n intp.interpret(\"import org.apache.zeppelin.spark.utils.DisplayUtils._\");\n\n // Scala implicit value for spark.maxResult\n intp.interpret(\"import org.apache.zeppelin.spark.utils.SparkMaxResult\");\n intp.interpret(\"implicit val sparkMaxResult = new SparkMaxResult(\" +\n Integer.parseInt(getProperty(\"zeppelin.spark.maxResult\")) + \")\");\n */\n\n\n // add jar from local repo\n if (localRepo != null) {\n File localRepoDir = new File(localRepo);\n if (localRepoDir.exists()) {\n File[] files = localRepoDir.listFiles();\n if (files != null) {\n for (File f : files) {\n if (f.getName().toLowerCase().endsWith(\".jar\")) {\n sc.addJar(f.getAbsolutePath());\n logger.info(\"sc.addJar(\" + f.getAbsolutePath() + \")\");\n } else {\n sc.addFile(f.getAbsolutePath());\n logger.info(\"sc.addFile(\" + f.getAbsolutePath() + \")\");\n }\n }\n }\n }\n }\n\n }", "public void setPoolLog(String poolLog) { this.poolLog = poolLog; }", "public WorkerPool(String name) {\n this.name = name;\n\n log = LogFactory.getLog(WorkerPool.class.getName() + \":\" + name);\n }", "private void setJedisFromPool() {\n\t\tjedis = jedisPool.getResource();\n\t}", "void setExecutorService(ExecutorService executorService);", "public static void setAvailableProcessors(int availableProcessors) {\n/* 87 */ holder.setAvailableProcessors(availableProcessors);\n/* */ }", "public Pooled(T t, Pool<T> pool, LogTarget logTarget) {\n\t\t\tcontent = t;\n\t\t\tthis.pool = pool;\n\t\t\tthis.logTarget = logTarget;\n\t\t}", "public void setThreadPoolChooser(String componentId, ThreadPoolChooser aThreadPoolChooser);", "public void start() {\n synchronized (initLock) {\n\n try {\n connectionPool = new ConnectionPool(driver, serverURL, username,\n password, minConnections, maxConnections, connectionTimeout,\n mysqlUseUnicode);\n }\n catch (IOException e) {\n Log.error(e);\n }\n }\n }", "public WorkerPool(IWorkerPoolConfiguration config) {\n this(config.getName());\n setConfiguration(config);\n }", "public ForkJoinPool getPool() {\n return pool;\n }", "public void setTotalPoolSize(int totalPoolSize) throws ClientsUnderServiceException, IllegalClassException, IllegalAccessException, InstantiationException{\n\n\tif(totalPoolSize == this.totalPoolSize)return;\n\n\tif(totalPoolSize > this.totalPoolSize){\n\n\t for(int i=0;i<(totalPoolSize-this.totalPoolSize);i++){\n\n\t\ttempThreadCapsule=new ThreadCapsule(threadClass);\n\t\ttempThreadCapsule.setActivePool(activePool);\n\t\ttempThreadCapsule.setPassivePool(passivePool);\n\t\tpassivePool.push(tempThreadCapsule);\n\n\t\tactivePoolSize=activePool.getPresentSize();\n\t\tpassivePoolSize=passivePool.getPresentSize();\n\n\t }//for closing\n\n\t}//if closing\n\n\telse{\n\n\t poolLocked=true;\n\n\t int reduce=this.totalPoolSize-totalPoolSize;\n\n\t if(reduce > passivePoolSize){\n\n\t\tpoolLocked=false; \n\t\tthrow new ClientsUnderServiceException(\"Clients under service, cannot reduce pool size\");\n\n\t }//if closing\n\n\t else if(reduce == passivePoolSize){poolLocked=false; return;}\n\t else {passivePool.setSize(this.totalPoolSize-reduce); poolLocked=false;}\n\n\t}//else closing\n\n }", "void bind(WorkerPool workerPool);", "public MapWorkPool(int nThreads) {\n\t\tthis.nThreads = nThreads;\n\n\t}", "public PlasticClassPool(ClassLoader parentLoader, PlasticManagerDelegate delegate, Set<String> controlledPackages,\n Set<TransformationOption> options)\n {\n loader = new PlasticClassLoader(parentLoader, this);\n this.delegate = delegate;\n this.controlledPackages = controlledPackages;\n this.options = options;\n }", "private CollectTaskPool() {\n\t\tsuper();\n\t}", "public SRWDatabasePool() {\n }", "@Override\n\tprotected void setup(Reducer<LongWritable, Text, Text, Text>.Context context)\n\t\t\tthrows IOException, InterruptedException {\n\t\tsuper.setup(context);\n\t\tminPnts=Long.parseLong(context.getConfiguration().get(\"minPnts\"));\n\t\tepsilon=Double.parseDouble(context.getConfiguration().get(\"epsilon\"));\n\t\toutput = new MultipleOutputs<Text,Text>(context);\n\t\tPath[] cacheFilesLocal = DistributedCache.getLocalCacheFiles(context.getConfiguration());\n\t\tfor (Path eachPath : cacheFilesLocal) {\n\t\t\t\n\t\t\tloadPartition(eachPath, context);\n\t\t\t\n\t\t}\n\t}", "public Pool() {\n\t\t// inicializaDataSource();\n\t}", "private void init() {\n\t\tJedisPoolConfig config = new JedisPoolConfig();\r\n\t\tconfig.setMaxTotal(1024);\r\n\t\tconfig.setMaxIdle(200);\r\n\t\tconfig.setMaxWaitMillis(1000);\r\n\t\tconfig.setTestOnBorrow(false);\r\n\t\tconfig.setTestOnReturn(true);\r\n\t\tString ip = \"sg-redis-new.jo1mjq.0001.apse1.cache.amazonaws.com\";\r\n\t\tint port = 6379;\r\n\t\tjedisPool = new JedisPool(config, ip, port);\r\n\t\tlog.info(\"init redis pool[ip:\" + ip + \",port:\" + port + \"]\");\r\n\t}", "@Override\n public void setParallel(boolean parallel) {\n super.setParallel(true);\n }", "public void setMulticore(boolean enabled) {\n if (enabled) {\n mUsableCores = DroidContext.getInstance().getProfile().processors;\n }\n else {\n mUsableCores = 1;\n }\n }", "public interface PoolStrategy<T> {\n T onPoolExhausted() throws PoolException;\n\n boolean onNoImpactRecycle() throws PoolException;\n }", "void xsetPoolName(org.apache.xmlbeans.XmlString poolName);", "private void initPool() throws SQLException {\n\t\tint POOL_SIZE = 90;\n\t\tthis.connectionPool = new LinkedBlockingQueue<>(POOL_SIZE);\n\t\tfor(int i = 0; i < POOL_SIZE; i++) {\n\t\t\tConnection con = DriverManager.getConnection(dburl, user, password);\n\t\t\tconnectionPool.offer(con);\n\t\t}\n\t}", "public boolean isPoolingEnabled();", "public synchronized void setConfiguration(IWorkerPoolConfiguration newConfig) {\n if (name != null && !name.equals(newConfig.getName())) {\n // The given configuration is not for the managed worker pool!\n log.error(\"Name conflict between supplied configuration and worker pool: Config is for:\" + config.getName() + \", while worker pools name is:\" + name);\n throw new IllegalArgumentException(\"Name conflict between supplied configuration and worker pool: Config is for:\" + config.getName() + \", while worker pools name is:\" + name);\n } else {\n log.info(\"Start configuration\");\n if (this.config == null) {\n setup(newConfig);\n } else {\n reconfigure(newConfig);\n }\n \n this.config = newConfig;\n log.info(\"Done configuration\");\n }\n }", "public BoneCP getPool() {\n return pool;\n }", "public void setThreadPoolExecutor(ThreadPoolExecutor threadPoolExecutor)\n\t{\n\t\tthis.threadPoolExecutor = threadPoolExecutor;\n\t}", "public ObjectPool() {\n }", "static void setBlockSize(int blockSize) {\n synchronized (BlocksPool.class) { // can be easily changed to lock-free\n if (instance != null) {\n instance.close();\n }\n instance = new BlocksPool(blockSize);\n }\n }", "@Override\n\tpublic void setCpu() {\n\t\tcom.setCpu(\"i7\");\n\t}", "protected StealingThread(StealingPool pool) throws IOException {\n if (pool == null) throw new NullPointerException();\n this.pool = pool;\n this.ioManager = new NioManager();\n // Note: poolIndex is set by pool during construction\n // Remaining initialization is deferred to onStart\n }", "protected ThreadPool getPool()\r\n {\r\n return threadPool_;\r\n }", "void connect(FmqPool pool);", "void unsetPoolName();", "public AbstractParallelAlgorithm()\n {\n this(null);\n }", "private BlocksPool() {\n this(DEFAULT_BLOCK_SIZE_BYTES);\n }", "public void setPoolClass(final cto.framework.service.schema.types.PoolClassType poolClass) {\r\n this._poolClass = poolClass;\r\n }", "protected void setProvider() {\n fs.getClient().setKeyProvider(cluster.getNameNode().getNamesystem()\n .getProvider());\n }", "@Before\n public void conn() throws Exception {\n conf = new Configuration();\n fs = FileSystem.get(URI.create(\"hdfs://hadoop001:9000\"), conf, \"hadoop\");\n\n //fs = FileSystem.get(conf);\n }", "@Override\n\tprotected void setup(org.apache.hadoop.mapreduce.Mapper.Context context)\n\t\t\tthrows IOException, InterruptedException {\n\t\tConfiguration conf=context.getConfiguration() ;\n\n\t\tPath p=new Path(conf.get(\"HDFS\"));\n\n\t//\tPath p=new Path(Constants.HADOOP_PATH);\n\t\t FileSystem fs = p.getFileSystem ( conf) ;\n\t//\tSequenceFile.Reader reader=new SequenceFile.Reader(fs, new Path(\"hdfs://localhost:9000/home/novas/clusterpointoutput/part-r-00000\"), context.getConfiguration());\n\t\t SequenceFile.Reader reader=new SequenceFile.Reader(fs, new Path(conf.get(\"cluster\")),conf);\n\t//\tSystem.out.println(\"in setup\");\n\t\t//FileSystem fs=FileSystem.get(context.getConfiguration());\n\t\t// Path p=new Path(\"hdfs://localhost:9000\");\n\t\t// FileSystem fs = p.getFileSystem ( context.getConfiguration() ) ;\n\t//\tSequenceFile.Reader reader=new SequenceFile.Reader(fs, new Path(\"hdfs://localhost:9000/home/novas/clusterpointoutput/part-r-00000\"), context.getConfiguration());\n\t while(reader.next(seqkey, seqvalue))\n\t {\n\t//\t System.out.println(seqvalue.toString());\n\t\t clist.add(seqvalue.toString());\n\t }\n\t}", "public String poolName();", "public void setThreadPoolSize(int size) {\r\n if(size <= 0) {\r\n throw new IllegalArgumentException(\"size invalid: \" + size + \". The size of the threadpool must be greater than 0.\");\r\n }\r\n threadPoolSize = size;\r\n }", "protected ClassPool getClassPool() {\r\n return pool;\r\n }", "@Override\n public void configureMiniCluster(MiniAccumuloConfigImpl cfg, Configuration hadoopCoreSite) {\n cfg.setProperty(Property.TSERV_NATIVEMAP_ENABLED, \"false\");\n cfg.setNumTservers(1);\n }", "public void initialize() {\n\n\t\t// Initialize taskList\n\t\tthis.taskList = new LinkedList<Task>();\n\n\t\t// create a new thread for total size of pool\n\t\tfor (int i = 0; i < this.poolSize; ++i) {\n\t\t\tthreadPool.add(new WorkerThread(this));\n\t\t}\n\n\t\t// Start each thread in thread pool\n\t\tfor (WorkerThread t : threadPool) {\n\t\t\tnew Thread(t).start();\n\t\t}\n\n\t}", "protected Smp(int maxThreads) {\r\n\tmaxThreads = Math.max(1,maxThreads);\r\n\tthis.maxThreads = maxThreads;\r\n\tif (maxThreads>1) {\r\n\t\tthis.taskGroup = new FJTaskRunnerGroup(maxThreads);\r\n\t}\r\n\telse { // avoid parallel overhead\r\n\t\tthis.taskGroup = null;\r\n\t}\r\n}", "public PoolingHttpClientConnectionManager buildPoolingHttpClientConnectionManager(int maxTotal, int defaultMaxPerRoute)\n/* */ {\n/* 203 */ PoolingHttpClientConnectionManager connectionManager = new PoolingHttpClientConnectionManager();\n/* 204 */ connectionManager.setMaxTotal(maxTotal);\n/* 205 */ connectionManager.setDefaultMaxPerRoute(defaultMaxPerRoute);\n/* 206 */ return connectionManager;\n/* */ }", "int getPoolNumber();", "int getPoolSize();", "void unsetPoolNumber();", "protected ForkJoinWorkerThread(ForkJoinPool pool) {\n<<<<<<< HEAD\n super(pool.nextWorkerName());\n this.pool = pool;\n int k = pool.registerWorker(this);\n poolIndex = k;\n eventCount = ~k & SMASK; // clear wait count\n locallyFifo = pool.locallyFifo;\n Thread.UncaughtExceptionHandler ueh = pool.ueh;\n if (ueh != null)\n setUncaughtExceptionHandler(ueh);\n setDaemon(true);\n }", "public void manage(int parallel) {\n this.manage(parallel, 60L, 120L);\n }", "public void setObjectFactory(PoolObjectFactory factory) {\n if (initialized)\n throw new IllegalStateException(INITIALIZED);\n this.factory = factory;\n }", "public ThreadPool getDefaultThreadPool();", "public BufferPool(int numPages) {\n // some code goes here\n this.numPages = numPages;\n this.bufferPool = new PageBufferPool(numPages);\n }", "private ConnectionPool() {\r\n\t\tResourceManagerDB resourceManager = ResourceManagerDB.getInstance();\r\n\t\tthis.driver = resourceManager.getValue(ParameterDB.DRIVER_DB);\r\n\t\tthis.url = resourceManager.getValue(ParameterDB.URL_DB);\r\n\t\tthis.user = resourceManager.getValue(ParameterDB.USER_DB);\r\n\t\tthis.password = resourceManager.getValue(ParameterDB.PASSWORD_DB);\r\n\t\tthis.poolsize = Integer.parseInt(resourceManager.getValue(ParameterDB.POOLSIZE_DB));\r\n\t}", "public static void main(String[] args) throws IOException {\n JobConf conf = new JobConf(CrimeComputer.class);\n\t conf.setJobName(\"CrimeComputer\");\n\t\n\t conf.setOutputKeyClass(Text.class);\n\t conf.setOutputValueClass(IntWritable.class);\n \n System.out.println(\"\\n Please select a region defintion:\\n 1.Highest one digit of Northing & Easting \\n 2.Highest two digits of Northing & Easting \\n 3.Highest three digits of Northing & Easting \\n Enter: 1,2 or 3 \\n \");\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t String option=br.readLine();\n if(option.equals(\"1\"))\n {\n conf.setMapperClass(Map1.class); \n }\n else if(option.equals(\"2\"))\n conf.setMapperClass(Map2.class);\n else if(option.equals(\"3\"))\n {\n conf.setMapperClass(Map3.class); \n }\n else\n {\n System.out.println(\"Invalid Input!\");\n System.exit(0);\n }\n\n\t \n System.out.println(\"\\n Please select the number of Mappers: 1, 2 or 5? \\n\");\n option=br.readLine();\n if(option.equals(\"1\"))\n conf.setNumMapTasks(1);\n if(option.equals(\"2\"))\n conf.setNumMapTasks(2);\n if(option.equals(\"5\"))\n conf.setNumMapTasks(5); \n \n System.out.println(\"\\n Please select the number of Reducers: 1, 2 or 5? \\n\");\n option=br.readLine();\n if(option.equals(\"1\"))\n conf.setNumReduceTasks(1);\n if(option.equals(\"2\"))\n conf.setNumReduceTasks(2);\n if(option.equals(\"5\"))\n conf.setNumReduceTasks(5); \n \n conf.setCombinerClass(Reduce.class);\n\t conf.setReducerClass(Reduce.class);\n\t\n \n\t conf.setInputFormat(TextInputFormat.class);\n\t conf.setOutputFormat(TextOutputFormat.class);\n\t\n\t FileInputFormat.setInputPaths(conf, new Path(args[0]));\n\t FileOutputFormat.setOutputPath(conf, new Path(args[1]));\n JobClient.runJob(conf);\n \n }", "public AssemblerContext(ConstantPool pool)\n {\n assert pool != null;\n m_pool = pool;\n }", "@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n\t\tprotected void setup(org.apache.hadoop.mapreduce.Mapper.Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tConfiguration conf=context.getConfiguration() ;\n\t\t\tPath p=new Path(conf.get(\"HDFS\"));\n\t\t\tFileSystem fs = p.getFileSystem ( conf) ;\n\t\t//\tSequenceFile.Reader reader=new SequenceFile.Reader(fs, new Path(\"hdfs://localhost:9000/home/novas/clusterpointoutput/part-r-00000\"), context.getConfiguration());\n\t\t\t SequenceFile.Reader reader=new SequenceFile.Reader(fs, new Path(conf.get(\"cluster\")),conf);\n\t\t\t while(reader.next(seqkey, seqvalue))\n\t\t {\n\t\t\t // System.out.println(seqvalue.toString());\n\t\t\t clist.add(seqvalue.toString());\n\t\t }\n\t\t}", "void xsetPoolId(org.apache.xmlbeans.XmlString poolId);", "@Override\n\tpublic void setProcessorsPerNode(int processorsPerNode) {\n\t\tmodel.setProcessorsPerNode(processorsPerNode);\n\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}" ]
[ "0.6198882", "0.6191533", "0.604887", "0.5983124", "0.59691757", "0.58241946", "0.5818203", "0.58085173", "0.57717305", "0.56789273", "0.5673366", "0.5606543", "0.55978423", "0.5577588", "0.5528727", "0.5479612", "0.5446858", "0.54428995", "0.5437518", "0.5415304", "0.5409682", "0.5393704", "0.5346185", "0.52791804", "0.5253678", "0.52479684", "0.5227184", "0.5217138", "0.5196833", "0.5161122", "0.5152528", "0.5135848", "0.51126736", "0.5109403", "0.51057285", "0.5101834", "0.5042326", "0.50328237", "0.50282705", "0.5020537", "0.50064147", "0.4988624", "0.49878713", "0.49707592", "0.49645865", "0.49453092", "0.49004897", "0.48982537", "0.48977247", "0.48816824", "0.48800093", "0.48606667", "0.4856877", "0.4855371", "0.4842664", "0.4840856", "0.48235735", "0.48211658", "0.47924837", "0.4789062", "0.47853452", "0.47840774", "0.47822377", "0.4781106", "0.47766015", "0.47754234", "0.47751904", "0.47718465", "0.47675982", "0.4753449", "0.47170618", "0.47156438", "0.47078195", "0.47056648", "0.47027946", "0.4700418", "0.46865365", "0.46848553", "0.4682503", "0.467559", "0.4674818", "0.4669855", "0.46679732", "0.46534225", "0.4644522", "0.46364912", "0.4628464", "0.462352", "0.46112454", "0.46028757", "0.4595917", "0.45921874", "0.4588912", "0.4588912", "0.45874584", "0.4583304", "0.45828032", "0.45759475", "0.45759475", "0.45759475" ]
0.7069271
0
Check if output committer needs success marker
public static boolean needSuccessMarker(Configuration conf) { return conf.getBoolean("mapreduce.fileoutputcommitter.marksuccessfuljobs", false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean isInterestedInSuccess() {\n\t\treturn false;\n\t}", "@Override\n public void markSuccess() {\n }", "boolean hasOutput();", "public void reportSuccess() {\n Crashlytics.logBreadcrumb(\"MuunLockOverlay: reportSuccess\");\n\n pinInput.setSuccess();\n }", "public boolean isCommitOnFailure () {\n return commitOnFailure;\n }", "@Override\n\t\tpublic boolean isSuccess() {\n\t\t\treturn false;\n\t\t}", "public boolean lastOpSuccess()\r\n {\r\n \treturn this.stat == VirtualPointer.Serializer.STATUS_SUCCESS;\r\n }", "private void markOutputDirSuccessful(JobContext context) throws IOException {\r\n JobConf conf = context.getJobConf();\r\n // get the o/p path\r\n Path outputPath = FileOutputFormat.getOutputPath(conf);\r\n if (outputPath != null) {\r\n // get the filesys\r\n FileSystem fileSys = outputPath.getFileSystem(conf);\r\n // create a file in the output folder to mark the job completion\r\n Path filePath = new Path(outputPath, SUCCEEDED_FILE_NAME);\r\n fileSys.create(filePath).close();\r\n }\r\n }", "private boolean printing_status() {\n\t\treturn _status_line != null;\n\t}", "public boolean checkpoint() {\n\t\ttry {\n\t\t\toutputStream.flush();\n\t\t} catch (IOException e) {\n\t\t\tif (RTS_COMMON.Option.VERBOSE)\n\t\t\t\te.printStackTrace();\n\t\t\treturn (false);\n\t\t}\n\t\treturn (true);\n\t}", "@Test\n public void testCommitterWithNoOutputs() throws Exception {\n describe(\"Have a task and job with no outputs: expect success\");\n JobData jobData = startJob(localCommitterFactory, false);\n TaskAttemptContext tContext = jobData.tContext;\n ManifestCommitter committer = jobData.committer;\n\n // do commit\n committer.commitTask(tContext);\n Path attemptPath = committer.getTaskAttemptPath(tContext);\n ContractTestUtils.assertPathExists(\n attemptPath.getFileSystem(tContext.getConfiguration()),\n \"task attempt dir\",\n attemptPath);\n }", "private void reportTransactionStatus(boolean success){\n if(success){\n sendMessage(\"<st>\");\n }else{\n sendMessage(\"<f>\");\n }\n }", "public boolean getOutput(){\n if (output){\n System.out.println(\"Archivo Cocol/R Aceptado\");\n return true;\n }\n else{\n System.out.println(\"Archivo Cocol/R no aceptado, tiene errores de estructura\");\n return false;\n }\n }", "public boolean hasOutput() {\n return output_ != null;\n }", "public static void sendIsHitMessage (PrintWriter out, MoveResult moveResult) {\r\n\t\tString isHit = \"\";\r\n\t\tif (moveResult == MoveResult.HIT) {\r\n\t\t\tisHit = \"true\";\r\n\t\t} else {\r\n\t\t\tisHit = \"false\";\r\n\t\t}\r\n\t\tString pack = \"2|\"+isHit;\r\n\t\tout.println(pack);\r\n\t}", "public final boolean\n isOutcomeSuccess() { return hasOutcome_ && outcome_ == true; }", "protected boolean checkCache()\n\t{\n\t\ttry {\n\t\t\tStream<String> lines = Files.lines(Paths.get(output.getAbsolutePath(), markerFile));\n\t\t\tString content = lines.collect(Collectors.joining());\n\t\t\t//System.out.println(content);\n\t\t\treturn content.equals(successString);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "boolean isMarkAsResponse();", "public boolean wasSuccessful() throws TavernaException, ProcessException {\n try {\n boolean result = runner.waitFor() == 0;\n if (outputFile == null){\n saveOutput();\n }\n return result;\n } catch (InterruptedException ex) {\n throw new TavernaException(\"Error checking if run was successfull\", ex);\n }\n }", "public boolean isSuccess();", "public boolean isSuccess();", "boolean hasDelegatedOutput();", "private boolean exportResult(){\n System.out.println(\"Writing to \" + \"out_\" + inputFile);\n return true;\n }", "public static void success(String TAG, boolean flag) {\n\t}", "public final boolean\n hasOutcome() { return hasOutcome_; }", "@Override\r\n\tpublic boolean getOutput() {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean isCommitted() {\n\t\treturn false;\n\t}", "public boolean isSuccessful() {\n return this.reason == Reason.NONE;\n }", "public void printFailure() {\n //\n }", "boolean isSuccessful();", "public boolean isCommitted() {\n\t\treturn false;\n\t}", "public void ex02() {\n\n boolean hasFinished = false;\n\n\n if (hasFinished==true) {\n printResults();\n }\n\n\n }", "@Override\n\tpublic void finishSuccess() {\n\t\tSystem.err.println(\"finishSuccess\");\n\n\t}", "private boolean decideIfEventShouldBeReportedAsAFailure() {\n \tint value = new Random().nextInt(100);\n \tif (value < TARGET_SUCCESS_RATE) {\n \t\treturn false;\n \t} else {\n \treturn true;\n \t}\n }", "boolean hasStartingInfo();", "boolean isSuccess();", "boolean isSuccess();", "boolean isSuccess();", "boolean isSuccess();", "boolean isSuccess();", "boolean isSuccess();", "boolean isSuccess();", "boolean hasOutputParams();", "private boolean no_output() {\n\t\treturn _outcaptures.size() > 0 || _outhides.size() > 0;\n\t}", "boolean getSuccess();", "boolean getSuccess();", "boolean getSuccess();", "boolean getSuccess();", "boolean hasIsComplete();", "boolean hasIsComplete();", "boolean isComplete();", "boolean isComplete();", "public boolean isDone() { return true; }", "public boolean isComplete();", "protected boolean isFinished(){\r\n return true;\r\n }", "public boolean isSuccess()\r\n {\r\n return success;\r\n }", "public boolean needsProcessing() {\r\n return !INTL_NODE.getOutMarbles().isEmpty();\r\n }", "public void checkFinish()\t{\n\t\tif(readCompareResult() == true)\t{\n\t\t\tfinished = true;\n\t\t}\n\t}", "public abstract boolean isComplete();", "public final boolean isNeedParseeErrorMsg() {\r\n return getCommand() == 10;\r\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-09-06 12:50:58.288 -0400\", hash_original_method = \"41AED877D51F56AB121F4235E96580E7\", hash_generated_method = \"FAE5E8273CFAE7048C4C302C5D04574C\")\n \npublic boolean isCompleted() {\n return getInfo().getState() == PrintJobInfo.STATE_COMPLETED;\n }", "public abstract boolean getOutput();", "public boolean isSuccess() {\r\n return success;\r\n }", "public boolean isSuccess() {\r\n return success;\r\n }", "public boolean isSuccess() {\n return success;\n }", "public boolean isSuccess() {\n return success;\n }", "public boolean isSuccess() {\n return success;\n }", "@Override\n\tpublic void isFinish() {\n\n\t}", "public boolean wasScriptOutputAnalyzed() {\n return scriptHistory != null && scriptHistory.isOutputAnalyzed();\n }", "boolean isDone(){\n\t\t\n\t\treturn (x0==x1 && y0==y1);\n\t}", "public static void main(String[] args) throws Exception {\n\n\n\n\n boolean success = false;\n }", "public boolean isDone() { return false; }", "private void checkStatus()\n {\n // If the last command failed\n if(!project.getLastCommandStatus())\n {\n view.alert(\"Error: \" + project.getLastCommandStatusMessage());\n\t\t}\n\t\telse\n\t\t{\n\t\t\tCommand lastCmd = project.getLastCommand();\n\t\t\tif (lastCmd != null && lastCmd.hasOptionalState())\n\t\t\t{\n\t\t\t\tview.loadFromJSON(lastCmd.getOptionalState());\n\t\t\t\tview.onUpdate(project.getProjectSnapshot(), false);\n\t\t\t}\n\t\t}\n }", "public boolean performOk() {\r\n\t\treturn super.performOk();\r\n\t}", "@Override\n\tpublic boolean status() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean status() {\n\t\treturn false;\n\t}", "boolean hasProgress();", "boolean hasProgress();", "@Override\n protected void succeeded(Description description) {\n LOGGER.debug(generateJsonFromLogMap(\"passed\"));\n }", "public boolean isSuccessful() {\r\n return isTargetTemplateSetPresent() && missing.isEmpty();\r\n }", "public boolean hasPassed()\n {\n return status == Status.PASSED || status == Status.SKIPPED;\n }", "public boolean isSuccessIndicator() {\n return successIndicator;\n }", "protected boolean isFinished() {\n return Math.abs(pid.getError()) < 0.25;\n }", "protected void executionSuccess() {\n this.isUndoable = true;\n }", "public boolean takeBugreportOnInvocationEnded();", "public String getOutputFlag();", "boolean hasInitialResponse();", "public void onTestSuccess(ITestResult arg0) {\n\t\tSystem.out.println(\"Test passed \" + getMethodeName(arg0));\r\n\t\tReporter.log(\"Test passed \" + getMethodeName(arg0));\r\n\r\n\t\t/*\r\n\t\t * if (arg0.getStatus() == ITestResult.SUCCESS) {\r\n\t\t * \r\n\t\t * // Screenshots betätigen String temp =\r\n\t\t * Utility.getScreenshot(ExtentReportDemo.driver, arg0.getName()); //\r\n\t\t * ExtentReportDemo.logger.pas);\r\n\t\t * \r\n\t\t * ExtentReportDemo.logger.log(Status.PASS, \"Assert Pass as condition is True\");\r\n\t\t * }\r\n\t\t */\r\n\t}", "protected boolean isFinished() {\n //return !RobotMap.TOTE_SWITCH.get();\n \treturn false;\n }", "public void setCommitOnFailure (boolean commitOnFailure) {\n this.commitOnFailure = commitOnFailure;\n }", "private boolean setIsSuccessful() {\n\t\tisSuccessful = false;\n\t\tRandom rand = new Random();\n\t\tint val = rand.nextInt(50);\n\t\tif (val % 2 == 0) {\n\t\t\tisSuccessful = true;\n\t\t}\n\t\treturn isSuccessful;\n\t}", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "public boolean isFinished(){\n return true;\n }", "@Override\n public boolean isCommitted() {\n return false;\n }", "@Override\n public boolean exitChecker() {\n return false;\n }", "public boolean fullCommitNeeded ()\n {\n return true;\n }", "public boolean processOutput();", "protected boolean isFinished() {\n\t\treturn false;\r\n\t}", "boolean hasFinalTallyResult();" ]
[ "0.64955354", "0.6409002", "0.6402011", "0.6336851", "0.59516543", "0.5914265", "0.58840656", "0.5828817", "0.5813389", "0.5805918", "0.5789828", "0.578562", "0.57824683", "0.56420004", "0.5614382", "0.5594025", "0.55872464", "0.5585021", "0.556422", "0.5560505", "0.5560505", "0.5526562", "0.5480206", "0.5476898", "0.547522", "0.5473724", "0.54651463", "0.5449888", "0.5446934", "0.54438365", "0.5437318", "0.5431609", "0.5431391", "0.5428356", "0.542172", "0.5420322", "0.5420322", "0.5420322", "0.5420322", "0.5420322", "0.5420322", "0.5420322", "0.54147756", "0.5412578", "0.54057866", "0.54057866", "0.54057866", "0.54057866", "0.54034966", "0.54034966", "0.5403426", "0.5403426", "0.5398305", "0.5373757", "0.5373466", "0.537328", "0.53721225", "0.5367154", "0.5361899", "0.535026", "0.5344679", "0.53428555", "0.5340122", "0.5340122", "0.5334104", "0.5334104", "0.5334104", "0.5330767", "0.5323674", "0.53157395", "0.5312941", "0.53126746", "0.53114444", "0.52873284", "0.52795017", "0.52795017", "0.52784497", "0.52784497", "0.5275513", "0.5273195", "0.52659947", "0.52530146", "0.5252042", "0.52517647", "0.5247645", "0.52442986", "0.5243494", "0.52428025", "0.524205", "0.52419794", "0.5239323", "0.52389413", "0.52389413", "0.52335435", "0.52264374", "0.52262527", "0.5226241", "0.5223667", "0.5218665", "0.52169037" ]
0.71388644
0
Set Hadoop Output Key class
public static void setOutputKeyWritableClass(Configuration conf, Class<? extends Writable> writableClass) { conf.set("mapred.output.key.class", writableClass.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Class<?> getNamedOutputKeyClass(JobContext job,\r\n\t\t\tString namedOutput) {\r\n\t\treturn job.getConfiguration().getClass(MO_PREFIX + namedOutput + KEY, null,\r\n\t\t\t\tWritableComparable.class);\r\n\t}", "public Class<?> getKeyClass() \n\t{\n\t return keyClass ;\n\t}", "public IndexMapKey(final int[] kernel, final int[] output) {\n super();\n this.kernel = kernel;\n this.output = output;\n }", "public void write(KEYOUT key, VALUEOUT value\n ) throws IOException, InterruptedException {\n\t \n\t int disableHashing_flag=0;\n\t \n\t disableHashing_flag = this.getConfiguration().getInt(\"mapred.job.disableHashing\", 0);\n\t \n//\t System.out.println(\"___________inside write() in TaskInputOutputContextImpl.java_______________Thread.currentThread().getStackTrace() = \");\n//\t for (StackTraceElement ste : Thread.currentThread().getStackTrace()) {System.out.println(\"ste = \"+ste);}\n\t \n\t String reducerORmapper = this.local_taskID.split(\"_\")[3];\n\t \n\t //System.out.println(\"\\n\\n\\n\\nENTERED write\\n\\n\\n\\n\\n\");\n\t \n//\t if(key !=null)\n//\t {\n//\t\t System.out.println(\"key = \"+key); \n//\t }\n//\t if(value !=null)\n//\t {\n//\t\t System.out.println(\"value = \"+value); \n//\t }\n\t \n\t \n\t if(reducerORmapper.equals(\"r\") && disableHashing_flag==0) //&& key !=null && value !=null )\n\t {\n\t\t //KV=key.toString()+value.toString();\n\t\t if(key !=null && value!=null)\n\t\t {\n\t\t\t KV=key.toString()+value.toString();\n\t\t }else\n\t\t if(value !=null)\n\t\t {\n\t\t\t KV=value.toString();\n\t\t }\n\t\t //total_hash+=KV.hashCode();//This was the old way of doing the hashes and it worked perfectly\n\t\t //This old hash value was an integer, now it is becoming a String\n\t\t //Reducer.external_total_hash=total_hash;\n\t\t MessageDigest messageDigest;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"SHA-256\");\n\t\t\tbyte[] hash = messageDigest.digest(KV.getBytes(\"UTF-8\"));\n\t\t\t\n\t\t\t//System.out.println(\"firstKey = \"+firstKey);\n\t\t\t\n\t\t\tif(firstKey==0)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"1 ENTERED firstKey==0\");\n\t\t\t\tReducer.external_total_hash_byteArray=new byte[hash.length];\t\t\t\t\n\t\t\t}\n\t\t\t//messageDigest.update(KV.getBytes());\n\t\t\t//String encryptedString = new String(messageDigest.digest());\n\t\t\t//total_hash_string+=encryptedString;\n\t\t\t//Reducer.external_total_hash_string=total_hash_string;\n\t\t for(int i=0; i< hash.length;i++){//(byte b : hash) {\n\t\t \tif(firstKey==0)\n\t\t \t{\t\t \t\t\n\t\t \t\tSystem.out.println(\"2 ENTERED firstKey==0\");\n\t\t \t\tReducer.external_total_hash_byteArray[i]=hash[i];//Integer.toHexString(hash[i] & 0xff);\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\tReducer.external_total_hash_byteArray[i]=(byte)(Reducer.external_total_hash_byteArray[i]+hash[i]);\n\t\t \t}\n\t\t }\n\t\t\t//Reducer.external_total_hash_byteArray+=hash;\n\t\t\t \n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t\tfirstKey++;\n\t\t \n//\t\t System.out.println(\"this.local_taskID = \"+this.local_taskID);\n//\t\t System.out.println(\"++++++ inside write in TaskInputOutputContextImpl key.toString() = \"\n//\t\t +key.toString()+\" value.toString() = \"+value.toString()+\" KV.hashCode() = \"+KV.hashCode()\n//\t\t + \" total_hash = \"+total_hash + \" Reducer.external_total_hash = \"+Reducer.external_total_hash);\n\t }\n\t \n\t //System.out.println(\"Reducer.finalValue = \"+Reducer.finalValue);\n output.write(key, value);\n \n// if(conf.getInt(MRJobConfig.BFT_FLAG, 1)==3)//TODO NEED TO ADD CASE 2\n// {\n//\t\t\n// \t int local_NUM_REPLICAS = conf.getInt(MRJobConfig.NUM_REPLICAS,4); \n// \t String reducerORmapper = this.local_taskID.split(\"_\")[3];\n// \t int reducerNumber = Integer.parseInt(this.local_taskID.split(\"_\")[4]);\n// \t int unreplicatedReducerNumber = (int) Math.floor(reducerNumber/local_NUM_REPLICAS);\n// \t \n// \t \n// \t \n// \n// try {\n// \tString KV=\"\"; int i=0; long totalHash=0; String stringToSend=\"\"; String stringReceived=\"\";\n// \t//System.out.println(\"+++ entered try\");\n// \twhile (context.nextKey()) {\n// reduce(context.getCurrentKey(), context.getValues(), context);\n// \n// if(reducerORmapper.equals(\"r\"))\n// {\n// \t //KV+=context.getCurrentKey().toString()+context.getCurrentValue().toString();// first hashing method\n// \t KV=context.getCurrentKey().toString()+context.getCurrentValue().toString();\n// \t totalHash+=KV.hashCode();\n// \t //System.out.println(\"key = \"+context.getCurrentKey()+\" value = \"+context.getCurrentValue()+\n// \t //\t\t\" KV.hashCode() = \"+KV.hashCode()+\" totalHash = \"+totalHash);\n// \t //KV=\"p\";\n// }\n// \n// // If a back up store is used, reset it\n// Iterator<VALUEIN> iter = context.getValues().iterator();\n// if(iter instanceof ReduceContext.ValueIterator) {((ReduceContext.ValueIterator<VALUEIN>)iter).resetBackupStore();} \n// \n// \n// i++;\n// }\n// \n// \n// \n// if(reducerORmapper.equals(\"r\"))\n// {\n// \t \n// \t System.out.println(\"ENTERED if(reducerORmapper.equals(\\\"r\\\"))\");\n// \t \n// \t totalHash=0;//just for now for testing \t \n// \t stringToSend=reducerNumber+\" \"+this.local_taskID+\" \"+totalHash;\n// \t \n// \t \n// \t try {\n// \t\t\tclientSocket = new Socket(\"mc07.cs.purdue.edu\", 2222);//(\"mc07.cs.purdue.edu\", 2222);\n// \t\t\tinputLine = new BufferedReader(new InputStreamReader(System.in));\n// \t\t\tos = new PrintStream(clientSocket.getOutputStream());\n// \t\t\tis = new DataInputStream(clientSocket.getInputStream());\n// \t\t} catch (UnknownHostException e) {\n// \t\t\tSystem.err.println(\"Don't know about host mc07.cs.purdue.edu\");\n// \t\t} catch (IOException e) {\n// \t\t\tSystem.err.println(\"Couldn't get I/O for the connection to the host mc07.cs.purdue.edu\");\n// \t\t\tSystem.out.println(\"e.getMessage() = \"+e.getMessage());\n// \t\t\tSystem.out.println(\"e.toString() = \"+e.toString());\n// \t\t\tSystem.out.println(\"e.getCause() = \"+e.getCause()); \t\t\t\n// \t\t}\n//\n// \t\t\n// \t\tif (clientSocket != null && os != null && is != null) {\n// \t\t\ttry {\n//\n// \t\t\t\tos.println(stringToSend);\n// \t\t\t\tString responseLine;\n// \t\t\t\tSystem.out.println(\"Before while\");\n// \t\t\t\twhile(true){\n// \t\t\t\t\tSystem.out.println(\"Entered while\");\n// \t\t\t\t\tresponseLine = is.readLine();\n// \t\t\t\t\tSystem.out.println(\"responseLine = \"+responseLine);\n// \t\t\t\t\tif(responseLine!=null && !responseLine.isEmpty())\n// \t\t\t\t\t{\n// \t\t\t\t\t\t//add if stmt for checking the server address, but first open a socket here for each Reducer for accepting server address\n// \t\t\t\t\t\t//clientSocket = serverSocket.accept();(put it above)\n// \t\t\t\t\t\tif (Integer.parseInt(responseLine)==unreplicatedReducerNumber)\n// \t\t\t\t\t\t{\t\n// \t\t\t\t\t\t\tSystem.out.println(\"Entered XXX------\");\n// \t\t\t\t\t\t\tbreak;\n// \t\t\t\t\t\t}\n// \t\t\t\t\t}\n// \t\t\t\t} \t\t\t\t\n// \t\t\t\t/* WORKING PERFECTLY .... need to uncomment class MultiThreadChatClient\n// \t\t\t\t // Create a thread to read from the server\n// \t\t\t\tnew Thread(new MultiThreadChatClient(unreplicatedReducerNumber)).start();//try sending is,closed if this didn't work\n// \t\t\t\tos.println(stringToSend);\n// \t\t\t\t\n// \t\t\t\t while (true) {\n// \t\t\t\t\tsynchronized(lock){//CHECK IF THIS CAUSES AN OVERHEAD\n// \t\t\t\t\tif(closed)\n// \t\t\t\t\t\t{\n// \t\t\t\t\t\t\tSystem.out.println(\"ENTERED if(closed)\");\n// \t\t\t\t\t\t\tbreak;\n// \t\t\t\t\t\t}\n// \t\t\t\t\t}\n// \t\t\t\t}*/\n// \t\t\t\t//os.println(\"ok\");\n// \t\t\t\tSystem.out.println(\"AFTER THE TWO WHILES\");\n// \t\t\t\tos.close();\n// \t\t\t\tis.close();\n// \t\t\t\tclientSocket.close();\n// \t\t\t} \n// \t\t\tcatch (IOException e) {\n// \t\t\t\tSystem.err.println(\"IOException: \" + e);\n// \t\t\t}\n// \t\t}\n// \t\t \n// \t\t \t \n// \t\t KV=\"\";stringToSend=\"\";totalHash=0;\n// }\n// \n// \n// \n// } \n// \n// }\n \n }", "public <T> SerializationStream writeKey( T key) {\n return writeObject(key);\n }", "public ClassKey(final Class<?> classe) {\n super(classe);\n }", "public static void setOutputValueWritableClass(Configuration conf,\n Class<? extends Writable> writableClass) {\n conf.get(\"mapred.output.value.class\", writableClass.getName());\n }", "public Key(final Class<?> classe) {\n this(classe.getName());\n valueClass = classe;\n }", "public static Class get_CLASS()\n {\n return WrapperMap.KeySet.class;\n }", "@Override\n\tpublic String getClassNameKey() {\n\t\treturn CLASS_NAME_KEY;\n\t}", "private void writeClassesKey() {\n writeSpacesCorrespondingToNestedLevel(PKG_INFO_NEST_LEVEL);\n writer.println(\"classes:\");\n }", "public Class<? extends DBRecordKey<gDBR>> getKeyClass()\n {\n return this.keyClass;\n }", "public void setClassLabel(String key, String label);", "public Builder setKeyClass(Type keyType) {\n this.keyType = keyType;\n return this;\n }", "private void setKey() {\n\t\t \n\t}", "@Override\n public String getKey() {\n return key;\n }", "void setKey(String key);", "@Override\n public Class<?> getKeyClass() {\n return this.isCollection() && this.getKeyDataClassDefinition() != null?this.getKeyDataClassDefinition().getDataClass():null;\n }", "public IndexMapKey(@Nonnull final Tensor kernel, final Tensor input, @Nonnull final Tensor output) {\n super();\n this.kernel = kernel.getDimensions();\n this.output = output.getDimensions();\n }", "@Override\n\tpublic void setClassPK(long classPK) {\n\t\t_changesetEntry.setClassPK(classPK);\n\t}", "Class<?> getKeyType();", "public void setEncryptionKey(Class<?> k) throws Exception\n {\n setEncryptionKey(k.getName());\n }", "public JsonWriter key(Binary key) {\n startKey();\n\n if (key == null) {\n throw new IllegalArgumentException(\"Expected map key, but got null.\");\n }\n\n writer.write('\\\"');\n writer.write(key.toBase64());\n writer.write('\\\"');\n writer.write(':');\n return this;\n }", "@Override\n public void setKey(byte[] key) {\n }", "void setKey(K key);", "public com.opentext.bn.converters.avro.entity.ContentKey.Builder setKeyType(java.lang.String value) {\n validate(fields()[2], value);\n this.keyType = value;\n fieldSetFlags()[2] = true;\n return this;\n }", "public JsonWriter key(long key) {\n startKey();\n\n writer.write('\\\"');\n writer.print(key);\n writer.write('\\\"');\n writer.write(':');\n return this;\n }", "@Override\n\tpublic String typeKey() {\n\t return \"class\";\n\t}", "@Override\n default String getKey(){\n return key();\n }", "public JsonWriter key(byte key) {\n startKey();\n\n writer.write('\\\"');\n writer.print((int) key);\n writer.write('\\\"');\n writer.write(':');\n return this;\n }", "public void setIdkey(String pIdkey){\n this.idkey = pIdkey;\n }", "void setKey(java.lang.String key);", "public void setKey(int key){\r\n this.key = key; \r\n }", "@Override\n\tpublic String getKey() {\n\t\treturn key;\n\t}", "public void setKey(int key);", "public void setKey(int key);", "void setKey(final String key);", "public static Class get_CLASS()\n {\n return WrapperMap.KeySet.Iterator.class;\n }", "String newKey();", "XClass getMapKey();", "String getMemberKey(AbstractClassMetaData cmd);", "private static com.google.crypto.tink.Key parseKeyWithProgrammableOutputPrefix(\n ProtoKeySerialization serialization, @Nullable SecretKeyAccess access) {\n com.google.crypto.tink.util.Bytes outputPrefix =\n com.google.crypto.tink.util.Bytes.copyFrom(serialization.getValue().toByteArray());\n return new MacKey() {\n @Override\n public com.google.crypto.tink.util.Bytes getOutputPrefix() {\n return outputPrefix;\n }\n\n @Override\n public MacParameters getParameters() {\n return new MacParameters() {\n @Override\n public boolean hasIdRequirement() {\n throw new UnsupportedOperationException(\"Not needed in test\");\n }\n };\n }\n\n @Override\n public Integer getIdRequirementOrNull() {\n throw new UnsupportedOperationException(\"Not needed in test\");\n }\n\n @Override\n public boolean equalsKey(com.google.crypto.tink.Key k) {\n throw new UnsupportedOperationException(\"Not needed in test\");\n }\n };\n }", "void setKey(int key);", "public void setClassPK(long classPK) {\n this.classPK = classPK;\n }", "@Override\n public byte[] getKey() {\n return MetricUtils.concat2(clusterName, topologyName, getTime().getTime()).getBytes();\n\n }", "@Override\n public void write(DataOutput output) throws IOException {\n output.writeUTF(getPartitionKey());\n output.writeUTF(getRowKey());\n output.writeLong(getTimestamp().getTime());\n // Write the rest of the properties.\n HashMap<String, EntityProperty> properties = getProperties();\n output.writeInt(properties.size());\n for (Map.Entry<String, EntityProperty> current : properties.entrySet()) {\n output.writeUTF(current.getKey());\n output.writeUTF(current.getValue().getValueAsString());\n }\n }", "protected void setProvider() {\n fs.getClient().setKeyProvider(cluster.getNameNode().getNamesystem()\n .getProvider());\n }", "@Override\n public void setUploadKey(String output) {\n if(output != null){\n //Store the upload key\n upload = output;\n //Set the initialized variable to true (so we don't try it again)\n initialized = true;\n //Display message to the user.\n if(toast)\n Toast.makeText(this, getString(R.string.initialization_complete), Toast.LENGTH_SHORT).show();\n }\n //If initialization didn't work, display a message, will try again later.\n else{\n if(toast)\n Toast.makeText(this, getString(R.string.initialization_failed), Toast.LENGTH_SHORT).show();\n }\n //Regardless of the result we have now finished attempting to initialize\n initializing = false;\n }", "abstract public String getKey();", "public void set(String newKey)\n\t{\n\t\tthis.Key = newKey;\n\t}", "default String getKey() {\n return key(getClassName(), getName());\n }", "private void setKey(String key) {\n this.key = key;\n }", "public interface SKey {\n\n String FAIL_STORE = \"job.fail.store\";\n\n String LOADBALANCE = \"loadbalance\";\n\n String EVENT_CENTER = \"event.center\";\n\n String REMOTING = \"lts.remoting\";\n\n String REMOTING_SERIALIZABLE_DFT = \"lts.remoting.serializable.default\";\n\n String ZK_CLIENT_KEY = \"zk.client\";\n\n String JOB_ID_GENERATOR = \"id.generator\";\n\n String JOB_LOGGER = \"job.logger\";\n\n String JOB_QUEUE = \"job.queue\";\n}", "@Test\n public void testSetKey() {\n Integer key = 12;\n AVLNode<Integer> instance = new AVLNode<> ();\n instance.setKey( key );\n assertEquals( instance.getKey(), key );\n }", "@Override \r\n\t@SuppressWarnings(\"unchecked\")\r\n\tpublic <K, V> void write(String namedOutput, K key, V value,\r\n\t\t\tString baseOutputPath) throws IOException, InterruptedException {\r\n\t\tcheckNamedOutputName(context, namedOutput, false);\r\n\t\tcheckBaseOutputPath(baseOutputPath);\r\n\t\tif (!namedOutputs.contains(namedOutput)) {\r\n\t\t\tthrow new IllegalArgumentException(\"Undefined named output '\" +\r\n\t\t\t\t\tnamedOutput + \"'\");\r\n\t\t}\r\n\t\tTaskAttemptContext taskContext = getContext(namedOutput);\r\n\t\tgetRecordWriter(taskContext, baseOutputPath).write(key, value);\r\n\t}", "public String key() {\n return key;\n }", "public String key() {\n return key;\n }", "private void rebuildKey() {\r\n\r\n final StringBuffer sb = new StringBuffer();\r\n\r\n sb.append(getClassField().getCanonicalName());\r\n for (final Object k : this.keyPartList) {\r\n sb.append(k.toString()).append('|');\r\n }\r\n this.key = sb.toString();\r\n }", "public String getKeyClass(String classPath)\n throws EnhancerMetaDataUserException, EnhancerMetaDataFatalError\n {\n final JDOClass clazz = getJDOClass(classPath);\n if (clazz == null) {\n return null;\n }\n final String name = clazz.getDeclaredObjectIdClassName();\n return (name != null ? name.replace('.', '/') : null);\n }", "public mapper3c(Integer theKey, String theValue) { super(theKey, theValue); }", "public void _setKey(String e)\n {\n _key = e;\n }", "String setKey(String newKey);", "public void setInputKey(String inputKey) {\n this.inputKey = inputKey;\n }", "public String key() {\n return this.key;\n }", "public String key() {\n return this.key;\n }", "public String key() {\n return this.key;\n }", "public String key() {\n return this.key;\n }", "public synchronized K finalKey() throws IOException {\n\t\t\treadIndex();\n\t\t\treturn finalKey;\n\t\t}", "public void setKey(String key) {\n this.key = key;\n }", "public K setKey(K key);", "public JsonWriter key(CharSequence key) {\n startKey();\n\n if (key == null) {\n throw new IllegalArgumentException(\"Expected map key, but got null.\");\n }\n\n writeQuotedAndEscaped(key);\n writer.write(':');\n return this;\n }", "public NodeKey createNodeKey();", "public OldToolInfo(String key, Class clazz)\n {\n super(key, clazz);\n }", "public void setKey(String key) {\r\n this.key = key;\r\n }", "protected String getKeymapName() {\n String nm = getClass().getName();\n int index = nm.lastIndexOf('.');\n if (index >= 0) {\n nm = nm.substring(index+1);\n }\n return nm;\n }", "public GenerateKey() {\n\t\tsuper(\"generate_key\", org.jooq.example.jaxrs.db.LicenseServer.LICENSE_SERVER, org.jooq.impl.SQLDataType.VARCHAR);\n\n\t\tsetReturnParameter(RETURN_VALUE);\n\t\taddInParameter(LICENSE_DATE);\n\t\taddInParameter(EMAIL);\n\t}", "private void setKey(String key){\n\t\tthis.key=key;\n\t}", "private static Class<? extends Writable> getNamedOutputValueClass(JobContext job, String namedOutput) {\r\n\t\treturn job.getConfiguration().getClass(MO_PREFIX + namedOutput + VALUE,\r\n\t\t\t\tnull, Writable.class);\r\n\t}", "public void setKey(final String key);", "public void setKey(final String key);", "public JsonWriter key(short key) {\n startKey();\n\n writer.write('\\\"');\n writer.print((int) key);\n writer.write('\\\"');\n writer.write(':');\n return this;\n }", "private void _writeKeyValue(String key, String value) throws IOException {\n _out.key(key);\n _out.value(value);\n }", "@Override\r\n\tpublic String getKey() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getKey() {\n\t\treturn null;\r\n\t}", "public String getPKCClass();", "@Override\n\t\tpublic K getKey(){\n\t\t\treturn key;\n\t\t}", "protected void setKey(String key) {\r\n this.key = key;\r\n }", "protected abstract String getExecutableKey();", "public JsonWriter key(int key) {\n startKey();\n\n writer.write('\\\"');\n writer.print(key);\n writer.write('\\\"');\n writer.write(':');\n return this;\n }", "public void setOpckeytype(java.lang.Long value) {\n\t\tsetValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCKEYTYPE, value);\n\t}", "public MEKeyTool() {\n keystore = new PublicKeyStoreBuilderBase();\n }", "public Class<PUB> getPublicKeyClass() {\n return pubKeyType;\n }", "@Override\n protected final Object getKey()\n {\n return this;\n }", "public void setKey( Long key ) {\n this.key = key ;\n }", "private com.hps.july.persistence.SuperRegionAccKey keyFromFields ( int f0 ) {\n com.hps.july.persistence.SuperRegionAccKey keyClass = new com.hps.july.persistence.SuperRegionAccKey();\n keyClass.accessid = f0;\n return keyClass;\n }", "@Override\n\tpublic String getKey() {\n\t\treturn null;\n\t}", "@Override\n\t\tprotected void map(Object key, Text value, Mapper<Object, Text, Text, NullWritable>.Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tString[] infos = value.toString().split(\"\\t\");\n\t\t\tapplication_no = infos[PatentStructure.application_no];\n\t\t\tif(typeSet.contains(application_no.charAt(6))){\n\t\t\t\ttype = String.valueOf(application_no.charAt(6));\n\t\t\t}else {\n\t\t\t\ttype = \"4\";\n\t\t\t}\n\t\t\tinfos[0] = \"null\";\n\t\t\tinfos[PatentStructure.url] = infos[PatentStructure.url] + \"\\t\" + type + \"\\t\" + infos[PatentStructure.url+3];\n\t\t\toutKey.set(StringUtils.join(infos, \"\\t\"));\n\t\t\tcontext.write(outKey, NullWritable.get());\n\t\t}", "void setOutputFormat(String outputFormat);", "public void completeS_Output_Key(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {\n\t\t// subclasses may override\n\t}", "@Override\n\tpublic String getKey() {\n\t\treturn id+\"\";\n\t}" ]
[ "0.6466079", "0.6070501", "0.5971104", "0.5969049", "0.5762348", "0.5704179", "0.5674475", "0.56216645", "0.5616321", "0.54968834", "0.5476793", "0.5472577", "0.5379195", "0.53356385", "0.53332555", "0.52651685", "0.5238126", "0.52251", "0.51959705", "0.51911855", "0.51848006", "0.5182094", "0.5155593", "0.5140227", "0.5134434", "0.5128711", "0.51180077", "0.51078165", "0.5104881", "0.51018184", "0.5084274", "0.5067489", "0.5066265", "0.5058004", "0.5045508", "0.5045508", "0.5045338", "0.50365406", "0.5013585", "0.50119984", "0.5006649", "0.5002582", "0.49993375", "0.49854618", "0.4981699", "0.4977588", "0.4976617", "0.49749935", "0.4968837", "0.4960941", "0.49606788", "0.49562842", "0.49538612", "0.49469164", "0.4943674", "0.49373832", "0.49373832", "0.49325094", "0.49281442", "0.49258685", "0.49145177", "0.4913777", "0.4912365", "0.49116263", "0.49116263", "0.49116263", "0.49116263", "0.4895595", "0.48949096", "0.48936984", "0.48927546", "0.48923987", "0.48908725", "0.4890519", "0.4889102", "0.48882687", "0.48872623", "0.48791546", "0.4865434", "0.4865434", "0.4854603", "0.48534787", "0.48502395", "0.48502395", "0.48496103", "0.48466036", "0.48446074", "0.48443097", "0.48437598", "0.48414811", "0.48408845", "0.48398373", "0.483792", "0.48300123", "0.4827569", "0.48223147", "0.48216572", "0.48159698", "0.4813437", "0.4812536" ]
0.78444207
0
Set Hadoop Output Value class
public static void setOutputValueWritableClass(Configuration conf, Class<? extends Writable> writableClass) { conf.get("mapred.output.value.class", writableClass.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getOutValueClass() {\n return null;\n }", "private static Class<? extends Writable> getNamedOutputValueClass(JobContext job, String namedOutput) {\r\n\t\treturn job.getConfiguration().getClass(MO_PREFIX + namedOutput + VALUE,\r\n\t\t\t\tnull, Writable.class);\r\n\t}", "public void setValueClass(Class<? extends Type> valueClass) {\n this.valueClass = valueClass;\n }", "void setOutputFormat(String outputFormat);", "public static void setOutputKeyWritableClass(Configuration conf,\n Class<? extends Writable> writableClass) {\n conf.set(\"mapred.output.key.class\", writableClass.getName());\n }", "@Override\n\tpublic void setClassValue(final String value) {\n\n\t}", "@Override\n\tpublic void serializeTo(DataOutputStream output) throws IOException\n\t{\n\t\toutput.writeLong(value);\n\t}", "public void setClass_(String newValue);", "@Override\r\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeShort(this.classType);\r\n\t\tout.writeShort(this.skinType);\r\n\t}", "@Override\n public Format setOutputFormat(Format format)\n {\n Format outputFormat = super.setOutputFormat(format);\n \n if (logger.isDebugEnabled() && (outputFormat != null))\n logger.debug(\"SwScaler set to output in \" + outputFormat);\n return outputFormat;\n }", "public Format setOutputFormat(Format output) {\n outputFormat = output;\n return output;\n }", "public void setOutput(Output output) {\n\t\tthis.output = output;\n\t}", "public AiAnalysisTaskClassificationOutput(AiAnalysisTaskClassificationOutput source) {\n if (source.ClassificationSet != null) {\n this.ClassificationSet = new MediaAiAnalysisClassificationItem[source.ClassificationSet.length];\n for (int i = 0; i < source.ClassificationSet.length; i++) {\n this.ClassificationSet[i] = new MediaAiAnalysisClassificationItem(source.ClassificationSet[i]);\n }\n }\n if (source.ClassificationSetFileUrl != null) {\n this.ClassificationSetFileUrl = new String(source.ClassificationSetFileUrl);\n }\n if (source.ClassificationSetFileUrlExpireTime != null) {\n this.ClassificationSetFileUrlExpireTime = new String(source.ClassificationSetFileUrlExpireTime);\n }\n }", "public void pidWrite(double output) {\n set(output);\n }", "public void setOutput(int output) {\n Output = output;\n }", "public void setOutput(TestOut output) {\n\tthis.output = output;\n\tsuper.setOutput(output);\n }", "public void setOutput(String output) { this.output = output; }", "public Builder setOutput(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n output_ = value;\n onChanged();\n return this;\n }", "public void setOutputFormat(OutputFormat format);", "void emit(DataOutputStream out, ConstantPool cp) throws IOException, ClassException {\n out.write(getType());\n // The rest is dependent on what type of constant this is.\n emit2(out, cp);\n }", "protected abstract void write (Object val);", "@Override\n\tpublic void setClassValue(final double value) {\n\n\t}", "public Class<V> getValueClass() {\n return valueClass;\n }", "Output(Res r){\n this.r = r;\n }", "@Override\n public void setOutputType(TypeInformation<T> outTypeInfo, ExecutionConfig executionConfig) {\n Preconditions.checkState(\n elements != null,\n \"The output type should've been specified before shipping the graph to the cluster\");\n checkIterable(elements, outTypeInfo.getTypeClass());\n TypeSerializer<T> newSerializer = outTypeInfo.createSerializer(executionConfig);\n if (Objects.equals(serializer, newSerializer)) {\n return;\n }\n serializer = newSerializer;\n try {\n serializeElements();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }", "public Builder setOutput(org.hyperledger.fabric.protos.token.Transaction.PlainOutput value) {\n if (outputBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n output_ = value;\n onChanged();\n } else {\n outputBuilder_.setMessage(value);\n }\n\n return this;\n }", "public void setOutput(File out) {\r\n this.output = out;\r\n incompatibleWithSpawn = true;\r\n }", "public void setOutput(File output) {\r\n this.output = output;\r\n }", "@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}", "public IRubyObject setClassVar(String name, IRubyObject value) {\n RubyModule module = this;\n do {\n if (module.hasClassVariable(name)) {\n return module.storeClassVariable(name, value);\n }\n } while ((module = module.getSuperClass()) != null);\n \n return storeClassVariable(name, value);\n }", "@Override final protected Class<?>[] getOutputTypes() { return this.OutputTypes; }", "JavaOutputMapper(final ExecutableOutputField field, final TypeToken<?> javaType) {\n Preconditions.checkArgument(!javaType.getRawType().equals(Object.class));\n // Preconditions.checkArgument(!TypeVariable.class.isAssignableFrom(javaType.getType().getClass()));\n this.javaType = javaType;\n this.modelType = javaType;\n this.apply = UnaryOperator.identity();\n }", "public void setValue(Object value) { this.value = value; }", "private void setOutputs(\n int index, com.dogecoin.protocols.payments.Protos.Output value) {\n value.getClass();\n ensureOutputsIsMutable();\n outputs_.set(index, value);\n }", "public void setValue(Object val);", "public void writeObject(Obj input){\n\t\tlong newFanSpeedSetpointValue = 0;\n\t\tif(input instanceof FanSpeedActuator){\n\t\t\tFanSpeedActuator in = (FanSpeedActuator) input;\n\t\t\tlog.finer(\"Writing on FanSpeedActuator: \" + in.fanSpeedSetpointValue().get() + \",\" + in.enabled().get());\n\t\t\t\n\t\t\tnewFanSpeedSetpointValue = in.fanSpeedSetpointValue().get();\t\n\t\t\tenabledValue.set(in.enabled().get());\n\t\t\t\n\t\t}\n\t\telse if(input instanceof Int){\n\t\t\tnewFanSpeedSetpointValue = ((Int) input).get();\n\t\t}\n\t\telse if(input instanceof Bool){\n\t\t\tthis.enabledValue.set(((Bool) input).get());\n\t\t}\n\t\tthis.fanSpeedSetpointValue.set(newFanSpeedSetpointValue);\n\t}", "public void setOutputproperty(String outputProp) {\r\n redirector.setOutputProperty(outputProp);\r\n incompatibleWithSpawn = true;\r\n }", "public Class<? extends Type> getValueClass() {\n return valueClass;\n }", "public void setModelOutputLabel(String modelOutputLabel);", "public void setDataType(Class newclass) {\n datatype=newclass;\n }", "public void setClazz(String clazz);", "@Override\n public void set(Object bean, Object value) throws IOException {\n _propertyMutator.longSetter(bean, ((Number) value).longValue());\n }", "public <T> SerializationStream writeValue(T value){\n return writeObject(value);\n }", "public void setOutput(String O)\t\n\t{\t//start of setOuput method\n\t\toutputMsg = O;\n\t}", "public void setValue(Object value);", "public void setOutput(String output) {\n this.output = output;\n }", "@Override\n public void setValue(Object val)\n {\n value = val;\n }", "public void write(KEYOUT key, VALUEOUT value\n ) throws IOException, InterruptedException {\n\t \n\t int disableHashing_flag=0;\n\t \n\t disableHashing_flag = this.getConfiguration().getInt(\"mapred.job.disableHashing\", 0);\n\t \n//\t System.out.println(\"___________inside write() in TaskInputOutputContextImpl.java_______________Thread.currentThread().getStackTrace() = \");\n//\t for (StackTraceElement ste : Thread.currentThread().getStackTrace()) {System.out.println(\"ste = \"+ste);}\n\t \n\t String reducerORmapper = this.local_taskID.split(\"_\")[3];\n\t \n\t //System.out.println(\"\\n\\n\\n\\nENTERED write\\n\\n\\n\\n\\n\");\n\t \n//\t if(key !=null)\n//\t {\n//\t\t System.out.println(\"key = \"+key); \n//\t }\n//\t if(value !=null)\n//\t {\n//\t\t System.out.println(\"value = \"+value); \n//\t }\n\t \n\t \n\t if(reducerORmapper.equals(\"r\") && disableHashing_flag==0) //&& key !=null && value !=null )\n\t {\n\t\t //KV=key.toString()+value.toString();\n\t\t if(key !=null && value!=null)\n\t\t {\n\t\t\t KV=key.toString()+value.toString();\n\t\t }else\n\t\t if(value !=null)\n\t\t {\n\t\t\t KV=value.toString();\n\t\t }\n\t\t //total_hash+=KV.hashCode();//This was the old way of doing the hashes and it worked perfectly\n\t\t //This old hash value was an integer, now it is becoming a String\n\t\t //Reducer.external_total_hash=total_hash;\n\t\t MessageDigest messageDigest;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"SHA-256\");\n\t\t\tbyte[] hash = messageDigest.digest(KV.getBytes(\"UTF-8\"));\n\t\t\t\n\t\t\t//System.out.println(\"firstKey = \"+firstKey);\n\t\t\t\n\t\t\tif(firstKey==0)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"1 ENTERED firstKey==0\");\n\t\t\t\tReducer.external_total_hash_byteArray=new byte[hash.length];\t\t\t\t\n\t\t\t}\n\t\t\t//messageDigest.update(KV.getBytes());\n\t\t\t//String encryptedString = new String(messageDigest.digest());\n\t\t\t//total_hash_string+=encryptedString;\n\t\t\t//Reducer.external_total_hash_string=total_hash_string;\n\t\t for(int i=0; i< hash.length;i++){//(byte b : hash) {\n\t\t \tif(firstKey==0)\n\t\t \t{\t\t \t\t\n\t\t \t\tSystem.out.println(\"2 ENTERED firstKey==0\");\n\t\t \t\tReducer.external_total_hash_byteArray[i]=hash[i];//Integer.toHexString(hash[i] & 0xff);\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\tReducer.external_total_hash_byteArray[i]=(byte)(Reducer.external_total_hash_byteArray[i]+hash[i]);\n\t\t \t}\n\t\t }\n\t\t\t//Reducer.external_total_hash_byteArray+=hash;\n\t\t\t \n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t\tfirstKey++;\n\t\t \n//\t\t System.out.println(\"this.local_taskID = \"+this.local_taskID);\n//\t\t System.out.println(\"++++++ inside write in TaskInputOutputContextImpl key.toString() = \"\n//\t\t +key.toString()+\" value.toString() = \"+value.toString()+\" KV.hashCode() = \"+KV.hashCode()\n//\t\t + \" total_hash = \"+total_hash + \" Reducer.external_total_hash = \"+Reducer.external_total_hash);\n\t }\n\t \n\t //System.out.println(\"Reducer.finalValue = \"+Reducer.finalValue);\n output.write(key, value);\n \n// if(conf.getInt(MRJobConfig.BFT_FLAG, 1)==3)//TODO NEED TO ADD CASE 2\n// {\n//\t\t\n// \t int local_NUM_REPLICAS = conf.getInt(MRJobConfig.NUM_REPLICAS,4); \n// \t String reducerORmapper = this.local_taskID.split(\"_\")[3];\n// \t int reducerNumber = Integer.parseInt(this.local_taskID.split(\"_\")[4]);\n// \t int unreplicatedReducerNumber = (int) Math.floor(reducerNumber/local_NUM_REPLICAS);\n// \t \n// \t \n// \t \n// \n// try {\n// \tString KV=\"\"; int i=0; long totalHash=0; String stringToSend=\"\"; String stringReceived=\"\";\n// \t//System.out.println(\"+++ entered try\");\n// \twhile (context.nextKey()) {\n// reduce(context.getCurrentKey(), context.getValues(), context);\n// \n// if(reducerORmapper.equals(\"r\"))\n// {\n// \t //KV+=context.getCurrentKey().toString()+context.getCurrentValue().toString();// first hashing method\n// \t KV=context.getCurrentKey().toString()+context.getCurrentValue().toString();\n// \t totalHash+=KV.hashCode();\n// \t //System.out.println(\"key = \"+context.getCurrentKey()+\" value = \"+context.getCurrentValue()+\n// \t //\t\t\" KV.hashCode() = \"+KV.hashCode()+\" totalHash = \"+totalHash);\n// \t //KV=\"p\";\n// }\n// \n// // If a back up store is used, reset it\n// Iterator<VALUEIN> iter = context.getValues().iterator();\n// if(iter instanceof ReduceContext.ValueIterator) {((ReduceContext.ValueIterator<VALUEIN>)iter).resetBackupStore();} \n// \n// \n// i++;\n// }\n// \n// \n// \n// if(reducerORmapper.equals(\"r\"))\n// {\n// \t \n// \t System.out.println(\"ENTERED if(reducerORmapper.equals(\\\"r\\\"))\");\n// \t \n// \t totalHash=0;//just for now for testing \t \n// \t stringToSend=reducerNumber+\" \"+this.local_taskID+\" \"+totalHash;\n// \t \n// \t \n// \t try {\n// \t\t\tclientSocket = new Socket(\"mc07.cs.purdue.edu\", 2222);//(\"mc07.cs.purdue.edu\", 2222);\n// \t\t\tinputLine = new BufferedReader(new InputStreamReader(System.in));\n// \t\t\tos = new PrintStream(clientSocket.getOutputStream());\n// \t\t\tis = new DataInputStream(clientSocket.getInputStream());\n// \t\t} catch (UnknownHostException e) {\n// \t\t\tSystem.err.println(\"Don't know about host mc07.cs.purdue.edu\");\n// \t\t} catch (IOException e) {\n// \t\t\tSystem.err.println(\"Couldn't get I/O for the connection to the host mc07.cs.purdue.edu\");\n// \t\t\tSystem.out.println(\"e.getMessage() = \"+e.getMessage());\n// \t\t\tSystem.out.println(\"e.toString() = \"+e.toString());\n// \t\t\tSystem.out.println(\"e.getCause() = \"+e.getCause()); \t\t\t\n// \t\t}\n//\n// \t\t\n// \t\tif (clientSocket != null && os != null && is != null) {\n// \t\t\ttry {\n//\n// \t\t\t\tos.println(stringToSend);\n// \t\t\t\tString responseLine;\n// \t\t\t\tSystem.out.println(\"Before while\");\n// \t\t\t\twhile(true){\n// \t\t\t\t\tSystem.out.println(\"Entered while\");\n// \t\t\t\t\tresponseLine = is.readLine();\n// \t\t\t\t\tSystem.out.println(\"responseLine = \"+responseLine);\n// \t\t\t\t\tif(responseLine!=null && !responseLine.isEmpty())\n// \t\t\t\t\t{\n// \t\t\t\t\t\t//add if stmt for checking the server address, but first open a socket here for each Reducer for accepting server address\n// \t\t\t\t\t\t//clientSocket = serverSocket.accept();(put it above)\n// \t\t\t\t\t\tif (Integer.parseInt(responseLine)==unreplicatedReducerNumber)\n// \t\t\t\t\t\t{\t\n// \t\t\t\t\t\t\tSystem.out.println(\"Entered XXX------\");\n// \t\t\t\t\t\t\tbreak;\n// \t\t\t\t\t\t}\n// \t\t\t\t\t}\n// \t\t\t\t} \t\t\t\t\n// \t\t\t\t/* WORKING PERFECTLY .... need to uncomment class MultiThreadChatClient\n// \t\t\t\t // Create a thread to read from the server\n// \t\t\t\tnew Thread(new MultiThreadChatClient(unreplicatedReducerNumber)).start();//try sending is,closed if this didn't work\n// \t\t\t\tos.println(stringToSend);\n// \t\t\t\t\n// \t\t\t\t while (true) {\n// \t\t\t\t\tsynchronized(lock){//CHECK IF THIS CAUSES AN OVERHEAD\n// \t\t\t\t\tif(closed)\n// \t\t\t\t\t\t{\n// \t\t\t\t\t\t\tSystem.out.println(\"ENTERED if(closed)\");\n// \t\t\t\t\t\t\tbreak;\n// \t\t\t\t\t\t}\n// \t\t\t\t\t}\n// \t\t\t\t}*/\n// \t\t\t\t//os.println(\"ok\");\n// \t\t\t\tSystem.out.println(\"AFTER THE TWO WHILES\");\n// \t\t\t\tos.close();\n// \t\t\t\tis.close();\n// \t\t\t\tclientSocket.close();\n// \t\t\t} \n// \t\t\tcatch (IOException e) {\n// \t\t\t\tSystem.err.println(\"IOException: \" + e);\n// \t\t\t}\n// \t\t}\n// \t\t \n// \t\t \t \n// \t\t KV=\"\";stringToSend=\"\";totalHash=0;\n// }\n// \n// \n// \n// } \n// \n// }\n \n }", "public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setOutputs(java.util.List<java.lang.String> value) {\n validate(fields()[5], value);\n this.outputs = value;\n fieldSetFlags()[5] = true;\n return this; \n }", "public void setOutput(String outputFile) {\n this.output = outputFile;\n }", "public abstract String getOutputFormat();", "public abstract void setValue(T value);", "protected void setOutputFormat() throws Exception {\n\t\tInstances informat;\n\n\t\tif (m_SelectedAttributes == null) {\n\t\t\tsetOutputFormat(null);\n\t\t\treturn;\n\t\t}\n\n\t\tFastVector attributes = new FastVector(m_SelectedAttributes.length);\n\n\t\tint i;\n\t\tif (m_ASEvaluator instanceof AttributeTransformer) {\n\t\t\tinformat = ((AttributeTransformer) m_ASEvaluator).transformedData();\n\t\t} else {\n\t\t\tinformat = getInputFormat();\n\t\t}\n\n\t\tfor (i = 0; i < m_SelectedAttributes.length; i++) {\n\t\t\tattributes.addElement(informat.attribute(m_SelectedAttributes[i])\n\t\t\t\t\t.copy());\n\t\t}\n\n\t\tInstances outputFormat = new Instances(getInputFormat().relationName(),\n\t\t\t\tattributes, 0);\n\n\t\tif (!(m_ASEvaluator instanceof UnsupervisedSubsetEvaluator)\n\t\t\t\t&& !(m_ASEvaluator instanceof UnsupervisedAttributeEvaluator)) {\n\t\t\toutputFormat.setClassIndex(m_SelectedAttributes.length - 1);\n\t\t}\n\n\t\tsetOutputFormat(outputFormat);\n\t}", "public final void setOutput(String sinkName, Object output) throws ConnectException,\n UnsupportedOperationException {\n if (output instanceof ContentHandler) {\n this.result = new SAXResult((ContentHandler) output);\n } else if (output instanceof WritableByteChannel) {\n this.result = new StreamResult(Channels.newOutputStream((WritableByteChannel) output));\n } else if (output instanceof OutputStream) {\n this.result = new StreamResult((OutputStream) output);\n } else if (output instanceof Writer) {\n this.result = new StreamResult((Writer) output);\n } else if (output instanceof File) {\n this.result = new StreamResult((File) output);\n } else if (output instanceof Node) {\n this.result = new DOMResult((Node) output);\n } else {\n throw new ConnectException(i18n.getString(\"unsupportedOutputType\", output.getClass(),\n XMLReaderFilter.class.getName()));\n }\n }", "@Override\n\tprotected void usePIDOutput(double output) {\n\t\tarm.set(output);\n\t}", "public Class getWriteClass(int formatIndex);", "@Override\n\tprotected void write(ObjectOutput out) throws IOException {\n\t\t\n\t}", "public AIOutput(int type) {\n\t\tsetOutput(type);\n\t}", "public ClientLoader outputFormat(final String theOutputFormat) {\r\n this.outputFormat = checkNotNull(theOutputFormat,\r\n \"outputFormat is null\");\r\n return this;\r\n }", "public void writeValue(Object value) throws IOException\n {\n if (value == null) {\n writeNullValue();\n return;\n }\n _writeValue(value, _writerLocator.findSerializationType(value.getClass()));\n }", "public void setClazz(short value) {\n this.clazz = value;\n }", "public void setMainClass(IJavaClassFile value);", "public Coding classValue() {\n return getObject(Coding.class, FhirPropertyNames.PROPERTY_CLASS);\n }", "@Override\n public void emitOutput() {\n }", "public native void set(T value);", "public boolean setOutputNominalValue(int pos, String value){\r\n\t\tAttribute at = (Attribute)Attributes.getOutputAttribute(pos);\r\n\t\tif (at.getType() != Attribute.NOMINAL) return false;\r\n\t\telse{\r\n\t\t\tif (at.convertNominalValue(value) != -1){\r\n\t\t\t\tnominalValues[1][pos] = value;\r\n\t\t\t\tintNominalValues[1][pos] = at.convertNominalValue(value);\r\n\t\t\t\trealValues[1][pos] = intNominalValues[0][pos];\r\n\t\t\t\tmissingValues[1][pos] = false;\r\n\t\t\t\tanyMissingValue[1] = false;\r\n\t\t\t\tfor (int i=0; i<missingValues[1].length; i++) \r\n\t\t\t\t\tanyMissingValue[1] |= missingValues[1][i];\r\n\t\t\t}\r\n\t\t\telse return false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public V setValue(V value);", "public void setOutputFileValue(int index, boolean value) {\n\tString name = getOutputFileName(index);\n\tif (name!=null) {\n\t setOutputFileValue(name,value);\n\t} else {\n\t getLogger().warning(\"OutputFile does not exist at index \"+index);\n\t}\n }", "public void setOutput(String output) {\r\n\t\tthis.output = output;\r\n\t}", "@Override\n public void write(DataOutput output) throws IOException {\n output.writeUTF(getPartitionKey());\n output.writeUTF(getRowKey());\n output.writeLong(getTimestamp().getTime());\n // Write the rest of the properties.\n HashMap<String, EntityProperty> properties = getProperties();\n output.writeInt(properties.size());\n for (Map.Entry<String, EntityProperty> current : properties.entrySet()) {\n output.writeUTF(current.getKey());\n output.writeUTF(current.getValue().getValueAsString());\n }\n }", "private double classValue(){\n return m_ClassValue;\n }", "public void setOutput(LineStroker output) {\n this.output = output;\n }", "public void setOutputFlag(String flag);", "public Coding classValue() {\n return getObject(Coding.class, FhirPropertyNames.PROPERTY_CLASS);\n }", "public Builder setOutput(\n org.hyperledger.fabric.protos.token.Transaction.PlainOutput.Builder builderForValue) {\n if (outputBuilder_ == null) {\n output_ = builderForValue.build();\n onChanged();\n } else {\n outputBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public String getOutValue(){\n return null;\n }", "public void setOutputStream(OutputStream out) {\n this.output = out;\n }", "public void setArmTalon(double outputval) {\n\t\tarmMotor.set(outputval);\n\t}", "public Format getOutputFormat() {\n return outputFormat;\n }", "public void setValue(Object value) {\n setValue(value.toString());\n }", "Class<V> getValueClass();", "private static void setOutputProcessor(File outputDir, Launcher spoon, Environment environment) {\n JavaOutputProcessor outProcessor = spoon.createOutputWriter(); // Spoon 8\r\n environment.setDefaultFileGenerator(outProcessor); // Define output folder (needed for the output type: classes)\r\n\r\n // spoon.setOutputDirectory(IoUtils.getCanonicalPath(outputDir)); // Define output folder AGAIN (needed for the\r\n spoon.setSourceOutputDirectory(SpecsIo.getCanonicalPath(outputDir));// Define output folder AGAIN\r\n spoon.setBinaryOutputDirectory(SpecsIo.getCanonicalPath(outputDir)); // Define output folder AGAIN (needed for\r\n }", "@Accessor(qualifier = \"converterClass\", type = Accessor.Type.SETTER)\n\tpublic void setConverterClass(final ExportConverterEnum value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(CONVERTERCLASS, value);\n\t}", "void setValue(T value);", "void setValue(T value);", "@Override\n\t protected void map(Object key, Text value, \n\t Context context) throws IOException, InterruptedException {\n\t String[] strs = value.toString().split(\"\\\\s\");\n\t String label = strs[1];\n\t int id = Integer.parseInt(strs[0]);\n\t if(\"u\".equals(label)) {\n\t \tcontext.write(new VIntWritable(id), new Text(\"u\\t\"+strs[2]));\n\t } else if(\"d\".equals(label)) {\n\t \tcontext.write(new VIntWritable(id), new Text(\"d\\t\"+strs[2]));\n\t } else if(\"c\".equals(label)) {\n\t \tcontext.write(new VIntWritable(id), new Text(\"c\\t\"+strs[2]));\n\t } else {//±ß±í\n\t \tcontext.write(new VIntWritable(id), new Text(\"e\\t\"+strs[1]));\n\t }\n\t }", "@Override\n\t\tprotected void map(Object key, Text value, Mapper<Object, Text, Text, NullWritable>.Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tString[] infos = value.toString().split(\"\\t\");\n\t\t\tapplication_no = infos[PatentStructure.application_no];\n\t\t\tif(typeSet.contains(application_no.charAt(6))){\n\t\t\t\ttype = String.valueOf(application_no.charAt(6));\n\t\t\t}else {\n\t\t\t\ttype = \"4\";\n\t\t\t}\n\t\t\tinfos[0] = \"null\";\n\t\t\tinfos[PatentStructure.url] = infos[PatentStructure.url] + \"\\t\" + type + \"\\t\" + infos[PatentStructure.url+3];\n\t\t\toutKey.set(StringUtils.join(infos, \"\\t\"));\n\t\t\tcontext.write(outKey, NullWritable.get());\n\t\t}", "void setValue(Object value);", "public void Convert() {\n value = value;\n }", "public void setOutput(File file){\n outputDir = file;\n }", "public void doTag(XMLOutput output) throws JellyTagException\n {\n checkAttributes();\n\n DIBuilderData builderData = DIBuilderData.get(getContext());\n Object value = resolveConstantValue(getClassDescData().resolveClass(\n builderData.getClassLoaderProvider()));\n\n storeValue(value);\n }", "public Builder mergeOutput(org.hyperledger.fabric.protos.token.Transaction.PlainOutput value) {\n if (outputBuilder_ == null) {\n if (output_ != null) {\n output_ =\n org.hyperledger.fabric.protos.token.Transaction.PlainOutput.newBuilder(output_).mergeFrom(value).buildPartial();\n } else {\n output_ = value;\n }\n onChanged();\n } else {\n outputBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "@Override\n\tpublic void write(DataOutput dout) throws IOException {\n\t\tdout.writeLong(this.time);\n\t\tdout.writeInt(this.intVal);\n\t}", "public void writeValue(OutputStream out) throws IOException {\n if (m_strPackage != null) {\n m_strPackage.write(out);\n }\n if ((m_subPackages != null) && (m_subPackages.size() > 0)) {\n Iterator iter = m_subPackages.listIterator(0);\n DsByteString bs = null;\n while (iter.hasNext()) {\n bs = (DsByteString) iter.next();\n if (bs != null) {\n out.write(B_PERIOD);\n bs.write(out);\n }\n }\n }\n if (m_paramTable != null) {\n m_paramTable.write(out);\n }\n }", "public void setClass (\r\n String strClass) throws java.io.IOException, com.linar.jintegra.AutomationException;", "public void setDataClass(Class<?> clazz) {\n\t\t\n\t}", "public Builder valueClassName(String valueClassName) {\n this.valueClassName = valueClassName;\n return this;\n }", "public void setStudentClass() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setter method initialized\r\n System.out.println(\"Class : \" +studentClass); }", "Output1(Res1 r){\n this.r = r;\n }", "public void setValue(final Object value) { _value = value; }" ]
[ "0.6173855", "0.6128962", "0.5871996", "0.5827332", "0.5783353", "0.57159966", "0.5705614", "0.5686519", "0.5475071", "0.54339474", "0.5429485", "0.54173493", "0.53545296", "0.53507507", "0.53496027", "0.5342423", "0.53248423", "0.5279972", "0.5263865", "0.5246467", "0.52362704", "0.5235687", "0.51946676", "0.51765126", "0.5158514", "0.51581043", "0.51389176", "0.51310843", "0.5100783", "0.50966835", "0.5078585", "0.5055792", "0.50550264", "0.50389117", "0.502968", "0.50219417", "0.5014908", "0.5006021", "0.49920735", "0.49917826", "0.49902305", "0.49878198", "0.49769494", "0.4967512", "0.49640667", "0.49616978", "0.49545443", "0.49514136", "0.49432206", "0.49407125", "0.49361214", "0.49296337", "0.4925563", "0.4925378", "0.49144208", "0.49029702", "0.4901173", "0.48996642", "0.4893998", "0.48916167", "0.48914057", "0.48900083", "0.48858812", "0.48776847", "0.48713502", "0.4869969", "0.48660067", "0.48640978", "0.4861145", "0.48544213", "0.48465243", "0.484467", "0.4839907", "0.48382714", "0.48371512", "0.48371083", "0.4835641", "0.4835011", "0.483394", "0.48338312", "0.48308188", "0.4826552", "0.48209208", "0.47890228", "0.47890228", "0.47882956", "0.47826082", "0.47785285", "0.47683698", "0.47677502", "0.47672772", "0.47644752", "0.47610196", "0.4760989", "0.47596347", "0.47595915", "0.4759169", "0.47589764", "0.4755904", "0.47558045" ]
0.7671866
0
Set worker output directory
public static void setWorkOutputDir(TaskAttemptContext context) throws IOException { Configuration conf = context.getConfiguration(); String outputPath = getOutputDir(conf); // we need to do this to get the task path and set it for mapred // implementation since it can't be done automatically because of // mapreduce->mapred abstraction if (outputPath != null) { FileOutputCommitter foc = new FileOutputCommitter(getOutputPath(conf), context); Path path = foc.getWorkPath(); FileSystem fs = path.getFileSystem(conf); fs.mkdirs(path); conf.set("mapred.work.output.dir", path.toString()); LOG.info("Setting mapred.work.output.dir to {}", path.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setWorkDiretory() {\n\t\tthis.workDiretory = System.getProperty(\"user.dir\");\n\t}", "void setOutputPath(String outputPath);", "@Override\n public void setOutputDir(String outputDir) {\n this.outputDir = outputDir;\n }", "public void setOutputDirectory(String dir) {\n\t\tnew LabeledText(\"Output directory:\").setText(dir);\n\t}", "public void setOutput(File file){\n outputDir = file;\n }", "public Path outputDir() {\n return dir;\n }", "public static void setOutputDir(Configuration conf, String path) {\n conf.set(OUTPUT_DIR_KEY, path);\n }", "public String getOutputDirectory() {\n return outputDirectory;\n }", "public static String getOutputDir() {\n outputDir = getProperty(\"outputDir\");\n if (outputDir == null) outputDir = \"./\";\n return outputDir;\n }", "private static void setOutputProcessor(File outputDir, Launcher spoon, Environment environment) {\n JavaOutputProcessor outProcessor = spoon.createOutputWriter(); // Spoon 8\r\n environment.setDefaultFileGenerator(outProcessor); // Define output folder (needed for the output type: classes)\r\n\r\n // spoon.setOutputDirectory(IoUtils.getCanonicalPath(outputDir)); // Define output folder AGAIN (needed for the\r\n spoon.setSourceOutputDirectory(SpecsIo.getCanonicalPath(outputDir));// Define output folder AGAIN\r\n spoon.setBinaryOutputDirectory(SpecsIo.getCanonicalPath(outputDir)); // Define output folder AGAIN (needed for\r\n }", "public void setOutputDirectory(File outputDirectory) {\n\t\tthis.outputDirectory = outputDirectory;\n\t}", "public String outputFileDir() {\n return outputFileDir;\n }", "public File getOutputDirectory() {\n\t\treturn outputDirectory;\n\t}", "public void setOutput(File out) {\r\n this.output = out;\r\n incompatibleWithSpawn = true;\r\n }", "public File getOutput(){\n return outputDir;\n }", "public void setOutputDirectory(final String outputDirectory) {\n this.outputDirectory = outputDirectory;\n }", "public void setOutputDirectory(String outputDirectory) {\n this.outputDirectory = outputDirectory;\n }", "public void createTestDir() {\n\t\tworkDir = new File(System.getProperty(\"test.dir\", \"target\"));\n\t}", "private void setupWorkingDir(Execute exe) {\r\n if (dir == null) {\r\n dir = getProject().getBaseDir();\r\n }\r\n else if (!dir.exists() || !dir.isDirectory()) {\r\n throw new BuildException(dir.getAbsolutePath() + \" is not a valid directory\", getLocation());\r\n }\r\n exe.setWorkingDirectory(dir);\r\n }", "public void setZippedWorkDir(byte[] value) {\n this.zippedWorkDir = value;\n }", "public File getExecutableWorkDir(CommonjWork work) {\r\n\t\tlogger.debug(\"IN\");\r\n\t\tFile workDir = new File(rootDir, work.getWorkName());\r\n\t\tlogger.debug(\"OUT\");\r\n\t\treturn workDir;\r\n\t}", "public String getDirectoryPath() { return DirectoryManager.OUTPUT_RESULTAT + \"/\" + directoryName;}", "abstract File getTargetDirectory();", "@OutputDirectory\n public File getDestinationDir() {\n return _destinationDir;\n }", "public void setToDir(File dir) {\n _destDir = dir;\n }", "public String getOutputSubdir() {\n return m_optionalOutputSubDir;\n }", "public String getOutputPath() {\n\t\treturn outputPath;\n\t}", "static Path improvedOutputDirectory(CalcConfig config) {\n Path out = config.output.directory;\n if (out.toString().equals(CalcConfig.DEFAULT_OUT)) {\n return (config.rate.valueFormat == ValueFormat.POISSON_PROBABILITY) ? Paths.get(\"eq-prob\")\n : Paths.get(\"eq-rate\");\n }\n return out;\n }", "public static String getGeneratorOutputFolder() {\n\t\treturn getOutputFolderName() + \"/\" + PropertiesFile.getInstance().getProperty(\"output_qualifier\");\n\t}", "public static String getOutputFolderName() {\n\t\treturn PropertiesFile.getSystemRoot()+PropertiesFile.getInstance().getProperty(\"default_folder\");\n\t}", "File getTargetDirectory();", "public String getOutputFolder() {\n return txtOutputFolder().getText();\n }", "public void setOutput(File output) {\r\n this.output = output;\r\n }", "@OptionMetadata(displayName = \"Output subdirectory\",\n description = \"An optional subdirectory of <output-dir>/eval in which to \"\n + \"store the results \", displayOrder = 1)\n public void setOutputSubdir(String subdir) {\n m_optionalOutputSubDir = subdir;\n }", "public static String getOutputFolder() {\n\n if ((m_sOutputFolder == null) || m_sOutputFolder.trim().equals(\"\")) {\n return System.getProperty(\"user.home\");\n }\n else {\n return m_sOutputFolder;\n }\n\n }", "public JobBuilder outputPath(String outputPath) {\r\n job.setOutputPath(outputPath);\r\n return this;\r\n }", "private boolean shouldMarkOutputDir(JobConf conf) {\r\n return conf.getBoolean(SUCCESSFUL_JOB_OUTPUT_DIR_MARKER, true);\r\n }", "public String getOutputHdfsDir() {\n\t\treturn outputHdfsDir;\n\t}", "public String getPrideOutputFolder() {\n\n \n return prideOutputFolder;\n\n }", "public String getOutputPath()\n {\n return __m_OutputPath;\n }", "File getWorkDir() {\n return workDir;\n }", "public void setOutputFolder(String text) {\n txtOutputFolder().setText(text);\n }", "public void setOutputHdfsDir(String outputHdfsDir) {\n\t\tthis.outputHdfsDir = outputHdfsDir;\n\t}", "public void setOutputPath(String path) {\n\t\tthis.outputPath = path;\n\t}", "public Path getOutputPath() {\n\t\t\n\t\tString name = getSimulationName();\t\t\n\t\tint l = name.length();\n\t\tString sim_name = name.substring(0, l-11); // \"_SIM_FOLDER\" contains 11 character\n\t\t\n\t\tPath path = Paths.get(outpath + \"\\\\\"+ sim_name);\n\t\tif(!Files.exists(path)) {\n\t\t try {\n\t\t Files.createDirectories(path);\n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t}\n\t\treturn path;\n\t}", "public File getExecutableWorkProjectDir(CommonjWork work) {\r\n\t\tlogger.debug(\"IN\");\r\n\t\tFile worksDir = new File(rootDir, work.getWorkName());\r\n\t\tlogger.debug(\"OUT\");\r\n\t\treturn worksDir;\r\n\t}", "public void setWarDir(final File val) {\n warDir = val;\n }", "public static void initializeOutputFolder() {\n\t\tString default_folder = PropertiesFile.getInstance().getProperty(\"default_folder\");\n\t\t\n\t\t// The file has to exist and is a directory (Not just a child file)\n\t\tString fullQualifiedFolderName = getFullyQualifiedFileName(default_folder);\n\t\tFile defaultDir = new File(fullQualifiedFolderName);\n\t\tif (!checkFolder(fullQualifiedFolderName)) {\n\t\t\tboolean dirCreated = defaultDir.mkdir();\n\t\t\tif(dirCreated == false) {\n\t\t\t\tlog.error(\"Could not create generation folder\");\n\t\t\t}\n\t\t} else\n\t\t\tdeleteFolderRecursively(defaultDir);\n\t}", "protected void setWorkingDirectory(File dir) {\n\t\tthis.dir = dir;\n\t}", "private void makeDirectory() {\n String userHome = System.getProperty(\"user.home\");\n wnwData = new File(userHome + \"/.wnwdata\");\n wnwData.mkdirs();\n\n makeCampaignChallengesFile();\n makeCustomChallengesFile();\n makeProgressFile();\n makeSettingsFile();\n }", "public void setOutputPath(String pOutputPath)\n {\n __m_OutputPath = pOutputPath;\n }", "public void writeToDir() {\n\t\ttry{\n\t\t\tString dirPath = Paths.get(\".\").toAbsolutePath().normalize().toString()+\"/\";\n\t\t\tString path = dirPath + filename; //get server dir path\n\t\t\tSystem.out.println(\"output file path is: \" + path);\n\t\t\tFileOutputStream out = new FileOutputStream(path);\n out.write(img);\n out.close();\n PL.fsync();\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Builder outputFileDir(String outputFileDir) {\n this.outputFileDir = outputFileDir;\n return this;\n }", "public void setDestDir( File d )\n {\n this.destDir = d;\n }", "void setWorkingDirectory( String workingDirectory );", "public Builder setWorkingDirectory(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n workingDirectory_ = value;\n onChanged();\n return this;\n }", "public String getSaveOutputDir() {\n return saveOutputDir;\n }", "private void copyHadoopTmpDir() {\n final String tmpDirProperty =\n PluginMiniHBaseClusterSingleton.INSTANCE.getClusterConfiguration().get(\"hadoop.tmp.dir\");\n final File hadoopTmp = new File(tmpDirProperty);\n final File hadoopTmpCopy = new File(new File(_projectBuildDir), \"hadoop-tmp\");\n getLog().info(\"Copying \" + hadoopTmp.toString() + \" to \" + hadoopTmpCopy.toString());\n try {\n FileUtils.copyDirectory(hadoopTmp, hadoopTmpCopy);\n getLog().info(\"Successfully copied hadoop tmp dir.\");\n }\n catch (final IOException e) {\n getLog().warn(\"The Hadoop tmp dir could not be copied to the project's build directory.\", e);\n }\n }", "public void setOutputPath(String outputPath) {\n\t\tthis.outputPath = outputPath;\n\t}", "public static void setImageIOCacheDir() {\n final String tmpDirProperty = System.getProperty(\"java.io.tmpdir\");\n if(tmpDirProperty == null || \"\".equals(tmpDirProperty)) {\n return;\n }\n // ensure that temp-dir exists because ImageIO requires it\n File tmpDir = new File(tmpDirProperty);\n if(!tmpDir.exists() && !tmpDir.mkdirs()) {\n throw new IllegalStateException(\"Could not create temporary directory \" + tmpDirProperty + \", full path \" + tmpDir.getAbsolutePath());\n }\n ImageIO.setCacheDirectory(tmpDir);\n }", "public void chooseOutputDirectory() {\n File file;\n JFileChooser fileChooser = new JFileChooser(\n new java.io.File(defaultDirectory));\n fileChooser.setDialogTitle(NbBundle.getMessage(\n SessionTopComponent.class, \"ChooseOutputDirectory\"));\n fileChooser.setFileSelectionMode(\n JFileChooser.DIRECTORIES_ONLY);\n int returnVal = fileChooser.showOpenDialog(this);\n\n if (returnVal == JFileChooser.APPROVE_OPTION) {\n file = fileChooser.getSelectedFile();\n\n outputDirectoryTextField.setText(file.getAbsolutePath());\n defaultDirectory = file.getPath();\n }\n enableStartButton();\n }", "public static String buildPathToTestOutputDir(String relpath) {\n return String.format(\"%s/src/test/resources/test_output/%s\", System.getProperty(\"user.dir\"), relpath);\n }", "public Path getOutputBase() {\n return outputBase;\n }", "public void setExtractDir(final String dir) {\n this.extractBaseDir = new File(dir);\n extractBaseDir.mkdirs();\n }", "void setWorkingDirectory(String workingDirectory);", "public Runner() {\n this.config = ConfigUtils.getDefaultConfig();\n this.noSuchBaseDir = Files.createTempDir();\n this.noSuchBaseDir.deleteOnExit();\n }", "public File getDefaultOutputDir() {\n File out = _mkdir(XPreferencesFactory.kDefaultReportsOutputDir.getDir(false));\r\n String dn = NamingConventions.createNiceEnglishDate_for_dirs();\r\n return _mkdir(new File(out, dn));\r\n }", "abstract protected void createWorkEnv(File outputDir)\n throws TaskRunException;", "public synchronized void writeResults(WorkDirectory workDir, BackupPolicy backupPolicy)\n throws IOException {\n if (isMutable()) {\n throw new IllegalStateException(\"This TestResult is still mutable - set the status!\");\n }\n\n // could attempt a reload() I suppose\n if (props == null) {\n props = emptyStringArray;\n }\n\n String wrp = getWorkRelativePath(desc).replace('/', File.separatorChar);\n resultsFile = workDir.getFile(wrp);\n\n File resultsDir = resultsFile.getParentFile();\n resultsDir.mkdirs(); // ensure directory created for .jtr file\n\n File tempFile = createTempFile(workDir, backupPolicy);\n try {\n writeResults(tempFile, backupPolicy);\n } finally {\n if (tempFile.exists()) {\n tempFile.delete();\n }\n }\n }", "public void setMappingOutputDir(String mappingOutputDir)\n {\n this.mappingDirName = mappingOutputDir;\n }", "public abstract void setOutputUrl(String outputUrl);", "public Worker(Socket client, int dataPort) {\n super();\n this.controlSocket = client;\n this.dataPort = dataPort;\n this.currDirectory = System.getProperty(\"user.dir\") + \"/test\";\n this.root = System.getProperty(\"user.dir\");\n }", "public String getWorkDiretory() {\n\t\treturn workDiretory;\n\t}", "public void setSaveHadoopTmpDir(final boolean saveTempDir) {\n _saveHadoopTmpDir = saveTempDir;\n }", "private void markOutputDirSuccessful(JobContext context) throws IOException {\r\n JobConf conf = context.getJobConf();\r\n // get the o/p path\r\n Path outputPath = FileOutputFormat.getOutputPath(conf);\r\n if (outputPath != null) {\r\n // get the filesys\r\n FileSystem fileSys = outputPath.getFileSystem(conf);\r\n // create a file in the output folder to mark the job completion\r\n Path filePath = new Path(outputPath, SUCCEEDED_FILE_NAME);\r\n fileSys.create(filePath).close();\r\n }\r\n }", "public static String setupJMeterHome() {\n if (JMeterUtils.getJMeterProperties() == null) {\n String file = \"jmeter.properties\";\n File f = new File(file);\n if (!f.canRead()) {\n System.out.println(\"Can't find \" + file + \" - trying bin/ and ../bin\");\n if (!new File(\"bin/\" + file).canRead()) {\n // When running tests inside IntelliJ\n filePrefix = \"../bin/\"; // JMeterUtils assumes Unix-style separators\n } else {\n filePrefix = \"bin/\"; // JMeterUtils assumes Unix-style separators\n }\n file = filePrefix + file;\n } else {\n filePrefix = \"\";\n }\n // Used to be done in initializeProperties\n String home=new File(System.getProperty(\"user.dir\"),filePrefix).getParent();\n System.out.println(\"Setting JMeterHome: \"+home);\n JMeterUtils.setJMeterHome(home);\n }\n return filePrefix;\n }", "@Test\n\tpublic void testSetGetOutputFileFolder() {\n\t\tString path = \"a\" + File.separator + \"path\";\n\t\toutput.setOutputFileFolder(path);\n\t\tboolean result = output.getOutputFileFolder() != null &&\n\t\t\t\toutput.getOutputFileFolder() == path;\n\t\tassertTrue(result);\n\t}", "public void setShHarvestDir(String val) {\n\n\t\tshHarvestDir = val;\n\n\t\t// add to the commonDirs object\n\n\t\tadd_to_common_dirs(val);\n\n\t}", "void setDirectory(File dir);", "@Override\n\tpublic String getWorkingDir() {\n\t\treturn model.getWorkingDir();\n\t}", "public String getOutputFilePath() {\t\n\t\treturn outputFilePath; \n\t}", "private void cleanOutputFolder(String output) {\n \t\tFile[] files = new File[1];\n \t\tfiles[0] = new File(output);\n \t\tcleanFolder(files);\n \t}", "protected void setHMetisOutFile(final String str) {\n\t\tthis.hMetisOutFile = str;\n\t}", "private void writeToFiles(Context resultContext) throws IOException {\n\t\tMap<String, Map<Object, ArrayList<Object>>> keyValMappingByBaseOutputPath = resultContext.getKeyValMappingsByBaseOutputPath(); \n\t\t//Write key & value to each baseOutputPath's \n\t\tPath targetOutputDir = null;\n\t\tMap<Object, ArrayList<Object>> keyValMapping = null;\n\t\tPath finalOutputBaseDir = this.config.getFinalOutputDir();\n\t\tfor (String baseOutputPath: keyValMappingByBaseOutputPath.keySet()) {\n\t\t\tif (baseOutputPath.equals(\"\")) {\n\t\t\t\t//Regular output goes into the mapper output buffer directory.\n\t\t\t\ttargetOutputDir = this.config.getMapOutputBufferDir();\n\t\t\t}else {\n\t\t\t\t//Multiple output to a particular outputPath which was \n\t\t\t\t//specified by user goes into the final output directory. \n\t\t\t\ttargetOutputDir = Paths.get(finalOutputBaseDir.toString(), baseOutputPath);\n\t\t\t}\n\t\t\tkeyValMapping = keyValMappingByBaseOutputPath.get(baseOutputPath);\n\t\t\tthis.writeEachMapping(targetOutputDir, keyValMapping);\n\t\t};\n\t}", "public void setOutput(String outputFile) {\n this.output = outputFile;\n }", "void exportToDirectory(File targetDirectory) throws IOException;", "public void setShHarvestedDataDir(String val) {\n\n\t\tthis.shHarvestedDataDir = val;\n\n\t}", "public String outputFileName() {\n return outputFileName;\n }", "public void customRootDir() {\n //Be careful with case when res is false which means dir is not valid.\n boolean res = KOOM.getInstance().setRootDir(this.getCacheDir().getAbsolutePath());\n }", "DirectoryProperty getWorkingDirectory();", "public String getResultsDir() {\n return opensimActuatorsAnalysesToolsJNI.Tool_getResultsDir(swigCPtr, this);\n }", "private void createresultDir() throws IOException\n\t{\n\t\tString datepattern = \"yyyy-MM-dd\";\n\t\tSimpleDateFormat sdf =new SimpleDateFormat(datepattern);\n\t\t RESULTDIR = Parameters.RESULT_LOCAL_DIR+'/'+sdf.format(new Date());\n\t\t boolean exists = (new File(Parameters.RESULT_LOCAL_DIR)).exists();\n\t\t if (!exists)\n\t\t\t (new File(Parameters.RESULT_LOCAL_DIR)).mkdirs();\n\t\t exists = (new File(RESULTDIR)).exists();\n\t\t if (!exists)\n\t\t\t (new File(RESULTDIR)).mkdirs();\n\t\t boolean append = true;\n\t FileHandler fh = new FileHandler(RESULTDIR+\"/report.log\", append);\n\t fh.setFormatter(new LogFormatter());\n\t logfile.addHandler(fh);\n\t}", "public InvolvedFilesReporter(String outputDir) {\n super(outputDir + File.separator,\n SIMPLE_FILE_NAME, ReportingConstants.REPORT_FILE_EXTENSION);\n this.outputDirectory = outputDir;\n }", "public void setPrideOutputFolder(String prideOutputFolder) {\n \n this.prideOutputFolder = prideOutputFolder;\n\n }", "@Override\n public String getApplicationDirectory() {\n return Comm.getAppHost().getAppLogDirPath();\n }", "public String getWorkDirectory(){\n String wd = \"\";\n try {\n wd = new File(\"test.txt\").getCanonicalPath().replace(\"/test.txt\",\"\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n return wd;\n }", "public String getOutputFilename() {\n\t\treturn outputFilename;\n\t}", "public ImmutableMap<String, String> getWorkdir() {\n return workdir;\n }", "public static String getInstanceWorkerIdRootNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, WORKER_ID);\n }", "public File getTargetDir() {\n return targetDir;\n }" ]
[ "0.64528", "0.642545", "0.6400112", "0.6306558", "0.6228784", "0.6171669", "0.6065229", "0.6017159", "0.5998207", "0.58742654", "0.58392024", "0.57629085", "0.5703365", "0.5700396", "0.56957734", "0.56307536", "0.5618775", "0.5584396", "0.5583972", "0.5573108", "0.5539496", "0.5537001", "0.5520521", "0.5516474", "0.54659", "0.5423237", "0.54133636", "0.54024327", "0.5397674", "0.539482", "0.53719974", "0.53500617", "0.53168464", "0.5299489", "0.5271568", "0.5264234", "0.52451277", "0.52365625", "0.5234809", "0.52060795", "0.5199214", "0.5195253", "0.5188652", "0.51724577", "0.51689345", "0.516348", "0.5157175", "0.5140481", "0.5119029", "0.5095558", "0.5085933", "0.5062736", "0.50593317", "0.50558734", "0.5029181", "0.5007988", "0.50064874", "0.50030226", "0.49841517", "0.49753553", "0.4972511", "0.49700162", "0.49530256", "0.49465477", "0.49286568", "0.49227253", "0.49215955", "0.490427", "0.49013397", "0.4897228", "0.48897094", "0.48835793", "0.48792925", "0.487341", "0.48711637", "0.4850043", "0.4846558", "0.4846496", "0.48447305", "0.48444194", "0.4831518", "0.48260647", "0.4819281", "0.48161936", "0.4802187", "0.4797564", "0.478645", "0.47768685", "0.47754252", "0.4772906", "0.47702178", "0.47661135", "0.47589248", "0.47543252", "0.47504458", "0.47481054", "0.47414148", "0.47286868", "0.47284395", "0.472408" ]
0.7174436
0
Set MapReduce input directory
public static void setInputDir(Configuration conf, String path) { conf.set("mapred.input.dir", path); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void initialize() {\n int numReduceTasks = conf.getNumReduceTasks();\n String jobID = taskAttemptID.getJobID();\n File mapOutputFolder = new File(\"mapoutput\");\n if (!mapOutputFolder.exists()) {\n mapOutputFolder.mkdir();\n }\n for (int reduceID = 0; reduceID < numReduceTasks; reduceID++) {\n outputFiles.add(\"mapoutput/\" + jobID + \"_r-\" + reduceID + \"_\" + this.partition);\n }\n }", "Path getBaseInputDir();", "public static void setWorkOutputDir(TaskAttemptContext context)\n throws IOException\n {\n Configuration conf = context.getConfiguration();\n String outputPath = getOutputDir(conf);\n // we need to do this to get the task path and set it for mapred\n // implementation since it can't be done automatically because of\n // mapreduce->mapred abstraction\n if (outputPath != null) {\n FileOutputCommitter foc =\n new FileOutputCommitter(getOutputPath(conf), context);\n Path path = foc.getWorkPath();\n FileSystem fs = path.getFileSystem(conf);\n fs.mkdirs(path);\n conf.set(\"mapred.work.output.dir\", path.toString());\n LOG.info(\"Setting mapred.work.output.dir to {}\", path.toString());\n }\n }", "public Builder inputFileDir(String inputFileDir) {\n this.inputFileDir = inputFileDir;\n return this;\n }", "public String inputFileDir() {\n return inputFileDir;\n }", "void setOutputPath(String outputPath);", "public void setRootDir(String rootDir);", "public void setInputPath(String inputPath) {\n\t\tthis.inputPath = inputPath;\n\t}", "public void SetNewInputLocation(String inputFiles) \n\t{\n\t\tthis.inputFiles = inputFiles.substring(0, inputFiles.lastIndexOf((\"/\")));\n\t}", "public void setOutput(File file){\n outputDir = file;\n }", "@Override\n public void setOutputDir(String outputDir) {\n this.outputDir = outputDir;\n }", "void setDirectory(File dir);", "public void setMappingOutputDir(String mappingOutputDir)\n {\n this.mappingDirName = mappingOutputDir;\n }", "@SuppressWarnings(\"unused\") // Used by incremental task action.\n @InputDirectory\n public File getInputFolder() {\n return inputFolder;\n }", "public String getInputDirectory() {\n\t\treturn (String) p.getValue(\"inputDir\");\n\t}", "public void setInputFilePath(String path) {\n inputFilePath = path;\n }", "public void setDir(File dir) {\n _sourceDir = dir;\n }", "public static String getRISEInputFolder() {\n\t\treturn getGeneratorOutputFolder() + \"/\" + PropertiesFile.getInstance().getProperty(\"input_qualifier\");\n\t}", "void setAppRootDirectory(String rootDir);", "public static void setupJob(Job job, Path inputPath, Path outputPath) \n\t\t\tthrows IOException {\n\t\tjob.setJarByClass(MRBuildVertices.class);\n\t\tjob.setMapperClass(MRBuildVertices.Mapper.class);\n\t\tjob.setCombinerClass(MRBuildVertices.Reducer.class);\n\t\tjob.setReducerClass(MRBuildVertices.Reducer.class);\n\t\t\n\t\tjob.setMapOutputKeyClass(IntWritable.class);\n job.setMapOutputValueClass(BytesWritable.class);\n\t\tjob.setOutputKeyClass(IntWritable.class);\n\t\tjob.setOutputValueClass(BytesWritable.class);\n\t\t\n job.setOutputFormatClass(SequenceFileOutputFormat.class); \n\n\t\tFileInputFormat.addInputPath(job, inputPath);\n\t\tFileOutputFormat.setOutputPath(job, outputPath);\n\t}", "public static void setRootDir() {\n for(int i = 0; i < rootDir.length; i++){\n Character temp = (char) (65 + i);\n Search.rootDir[i] = temp.toString() + \":\\\\\\\\\";\n }\n }", "private native void setDefaultRealmFileDirectory(String fileDir, AssetManager assets);", "public static void main(String[] args) throws Exception {\n if (args.length != 4)\n throw new IOException(\"step one: supply 4 arguments\");\n System.out.println(\"DPmin is set to: \" + Integer.parseInt(args[2]));\n Configuration conf = new Configuration();\n conf.set(\"LOCAL_OR_EMR\", String.valueOf(args[3].equals(\"local\")));\n if (conf.get(\"LOCAL_OR_EMR\").equals(\"true\")) {\n deleteDirectory(new File(\"/home/maor/Desktop/dsp3/output_step1\"));\n }\n\n conf.set(\"DPMIN\", args[2]);\n Job job = Job.getInstance(conf, \"StepOne\");\n job.setJarByClass(StepOne.class);\n job.setMapperClass(myMapper.class);\n job.setReducerClass(myReducer.class);\n job.setMapOutputKeyClass(Text.class);\n job.setMapOutputValueClass(Text.class);\n job.setOutputKeyClass(Text.class);\n job.setOutputValueClass(Text.class);\n job.setNumReduceTasks(1);\n\n //for using littleinput\n// SequenceFileInputFormat.addInputPath(job, new Path(args[0]));\n //TODO\n FileInputFormat.addInputPath(job, new Path(args[0]));\n\n/*\n MultipleInputs.addInputPath(job, new Path(args[0]), TextInputFormat.class, myMapper.class);\n MultipleInputs.addInputPath(job, new Path(args[1]), TextInputFormat.class, myMapper.class);\n*/\n\n FileOutputFormat.setOutputPath(job, new Path(args[1]));\n System.out.println(\"Step 1 - input path: \" + args[0] + \", output path: \" + args[1]);\n if (job.waitForCompletion(true))\n System.out.println(\"Step 1: job completed successfully\");\n else\n System.out.println(\"Step 1: job completed unsuccessfully\");\n Counter counter = job.getCounters().findCounter(\"org.apache.hadoop.mapreduce.TaskCounter\", \"REDUCE_INPUT_RECORDS\");\n System.out.println(\"Number of key-value pairs sent to reducers in step 1: \" + counter.getValue());\n }", "private void setWorkDiretory() {\n\t\tthis.workDiretory = System.getProperty(\"user.dir\");\n\t}", "@Override\n\tprotected void setup(Reducer<LongWritable, Text, Text, Text>.Context context)\n\t\t\tthrows IOException, InterruptedException {\n\t\tsuper.setup(context);\n\t\tminPnts=Long.parseLong(context.getConfiguration().get(\"minPnts\"));\n\t\tepsilon=Double.parseDouble(context.getConfiguration().get(\"epsilon\"));\n\t\toutput = new MultipleOutputs<Text,Text>(context);\n\t\tPath[] cacheFilesLocal = DistributedCache.getLocalCacheFiles(context.getConfiguration());\n\t\tfor (Path eachPath : cacheFilesLocal) {\n\t\t\t\n\t\t\tloadPartition(eachPath, context);\n\t\t\t\n\t\t}\n\t}", "public void setBasedir( File basedir )\n {\n this.basedir = basedir;\n }", "private void copyHadoopTmpDir() {\n final String tmpDirProperty =\n PluginMiniHBaseClusterSingleton.INSTANCE.getClusterConfiguration().get(\"hadoop.tmp.dir\");\n final File hadoopTmp = new File(tmpDirProperty);\n final File hadoopTmpCopy = new File(new File(_projectBuildDir), \"hadoop-tmp\");\n getLog().info(\"Copying \" + hadoopTmp.toString() + \" to \" + hadoopTmpCopy.toString());\n try {\n FileUtils.copyDirectory(hadoopTmp, hadoopTmpCopy);\n getLog().info(\"Successfully copied hadoop tmp dir.\");\n }\n catch (final IOException e) {\n getLog().warn(\"The Hadoop tmp dir could not be copied to the project's build directory.\", e);\n }\n }", "@Override\n public void setup(Context context) throws IOException {\n java.nio.file.Path path = Paths.get(\"resource\");\n if (!Files.exists(path))\n Files.createDirectory(path);\n pathsFile = new File(\"resource/paths.txt\");\n bufferedWriter = new BufferedWriter(new FileWriter(pathsFile));\n numOfFeatures = 0;\n local = context.getConfiguration().get(\"LOCAL_OR_EMR\").equals(\"true\");\n DPmin = Integer.parseInt(context.getConfiguration().get(\"DPMIN\"));\n System.out.println(\"Reducer: DPmin is set to \" + DPmin);\n }", "public void customRootDir() {\n //Be careful with case when res is false which means dir is not valid.\n boolean res = KOOM.getInstance().setRootDir(this.getCacheDir().getAbsolutePath());\n }", "public void setOutputDirectory(String dir) {\n\t\tnew LabeledText(\"Output directory:\").setText(dir);\n\t}", "@Override\n\tprotected void setup(org.apache.hadoop.mapreduce.Mapper.Context context)\n\t\t\tthrows IOException, InterruptedException {\n\t\tConfiguration conf=context.getConfiguration() ;\n\n\t\tPath p=new Path(conf.get(\"HDFS\"));\n\n\t//\tPath p=new Path(Constants.HADOOP_PATH);\n\t\t FileSystem fs = p.getFileSystem ( conf) ;\n\t//\tSequenceFile.Reader reader=new SequenceFile.Reader(fs, new Path(\"hdfs://localhost:9000/home/novas/clusterpointoutput/part-r-00000\"), context.getConfiguration());\n\t\t SequenceFile.Reader reader=new SequenceFile.Reader(fs, new Path(conf.get(\"cluster\")),conf);\n\t//\tSystem.out.println(\"in setup\");\n\t\t//FileSystem fs=FileSystem.get(context.getConfiguration());\n\t\t// Path p=new Path(\"hdfs://localhost:9000\");\n\t\t// FileSystem fs = p.getFileSystem ( context.getConfiguration() ) ;\n\t//\tSequenceFile.Reader reader=new SequenceFile.Reader(fs, new Path(\"hdfs://localhost:9000/home/novas/clusterpointoutput/part-r-00000\"), context.getConfiguration());\n\t while(reader.next(seqkey, seqvalue))\n\t {\n\t//\t System.out.println(seqvalue.toString());\n\t\t clist.add(seqvalue.toString());\n\t }\n\t}", "@attribute(value = \"\", required = true)\t\r\n\tpublic void setDir(String dir) {\r\n\t\tthis.dir = new File(dir);\r\n\t}", "abstract public void setDataResourcesDir(String path);", "public void createTestDir() {\n\t\tworkDir = new File(System.getProperty(\"test.dir\", \"target\"));\n\t}", "private static void setOutputProcessor(File outputDir, Launcher spoon, Environment environment) {\n JavaOutputProcessor outProcessor = spoon.createOutputWriter(); // Spoon 8\r\n environment.setDefaultFileGenerator(outProcessor); // Define output folder (needed for the output type: classes)\r\n\r\n // spoon.setOutputDirectory(IoUtils.getCanonicalPath(outputDir)); // Define output folder AGAIN (needed for the\r\n spoon.setSourceOutputDirectory(SpecsIo.getCanonicalPath(outputDir));// Define output folder AGAIN\r\n spoon.setBinaryOutputDirectory(SpecsIo.getCanonicalPath(outputDir)); // Define output folder AGAIN (needed for\r\n }", "public static void initializeOutputFolder() {\n\t\tString default_folder = PropertiesFile.getInstance().getProperty(\"default_folder\");\n\t\t\n\t\t// The file has to exist and is a directory (Not just a child file)\n\t\tString fullQualifiedFolderName = getFullyQualifiedFileName(default_folder);\n\t\tFile defaultDir = new File(fullQualifiedFolderName);\n\t\tif (!checkFolder(fullQualifiedFolderName)) {\n\t\t\tboolean dirCreated = defaultDir.mkdir();\n\t\t\tif(dirCreated == false) {\n\t\t\t\tlog.error(\"Could not create generation folder\");\n\t\t\t}\n\t\t} else\n\t\t\tdeleteFolderRecursively(defaultDir);\n\t}", "public static void main(String[] args) throws IllegalArgumentException, IOException, ClassNotFoundException, InterruptedException {\n Configuration conf=new Configuration();\n FileSystem hdfs=FileSystem.get(conf);\n System.out.println(conf.get(\"fs.defaultFS\"));\n //conf.set(\"fs.defaultFS\",\"http//:localhost:9000\");\n Job job=new Job(conf,\"word cout\");\n job.setJarByClass(MyWordCount.class);\n job.setMapperClass(MyMapper.class);\n job.setReducerClass(MyReduce.class);\n job.setCombinerClass(MyReduce.class);\n job.setOutputKeyClass(Text.class);\n job.setOutputValueClass(IntWritable.class);\n// job.setInputFormatClass(TextInputFormat.class);\n// job.setOutputFormatClass(TextOutputFormat.class);\n FileInputFormat.addInputPath(job, new Path(\"file:///usr/local/hadoop-2.6.1/input\"));\n FileOutputFormat.setOutputPath(job, new Path(\"hdfs:///user/output\"));\n System.exit(job.waitForCompletion(true) ? 0 : 1);\n }", "public void setInput(File input) {\r\n if (inputString != null) {\r\n throw new BuildException(\"The \\\"input\\\" and \\\"inputstring\\\" \" + \"attributes cannot both be specified\");\r\n }\r\n this.input = input;\r\n incompatibleWithSpawn = true;\r\n }", "public static void setOutputDir(Configuration conf, String path) {\n conf.set(OUTPUT_DIR_KEY, path);\n }", "public void setDir(File dir) {\n this.dir = dir;\n }", "public GlobFileSet setStartDir(String startDir)\n\t\t{\n\t\tm_startDir = startDir;\n\t\t\n\t\treturn (this);\n\t\t}", "@Override\r\n\t\tpublic void setDir(String dir)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "private void setConfiguration() throws IOException{\n\t\tString confPath = \"mapreduce.conf\";\n\t\tFileInputStream fis = new FileInputStream(confPath);\n\t\tthis.load(fis);\n\t\tfis.close();\n\t}", "public DocumentLifecycleWorkflowRequest setInputPath(String inputPath) {\n\t\tthis.inputPath = inputPath;\n\t\treturn this;\n\t}", "private void init() {\n\n File folder = new File(MAP_PATH);\n File[] listOfFiles = folder.listFiles();\n\n for (int i = 0; i < Objects.requireNonNull(listOfFiles).length; i++) {\n this.mapFiles.add(new File(MAP_PATH + listOfFiles[i].getName()));\n }\n }", "@Override\n public void map(LongWritable key, Text value, Mapper.Context context)\n throws IOException, InterruptedException {\n // package (zip) file to be processed\n Project project = Project.getCurrentProject();\n project.resetCurrentMapCount();\n String[] inputs = value.toString().split(\";\");\n String zipFile = inputs[0];\n // no empty or incorrect lines!\n if (zipFile.trim().isEmpty()) {\n return;\n }\n logger.info(\"Processing: {}\", zipFile);\n if (inputs.length >= 3) {\n project.setMapItemStart(Integer.parseInt(inputs[1]));\n project.setMapItemEnd(Integer.parseInt(inputs[2]));\n logger.info(\"From {} to {}\", project.getMapItemStart(), project.getMapItemEnd());\n }\n int filesInZip = new TrueZipUtil().countFiles(zipFile);\n Stats.getInstance().setCurrentItemTotal(filesInZip);\n Stats.getInstance().setZipFileName(zipFile);\n \n project.setupCurrentCustodianFromFilename(zipFile);\n logger.info(\"Will use current custodian: {}\", project.getCurrentCustodian());\n // if we are in Hadoop, copy to local tmp \n if (project.isEnvHadoop()) {\n String extension = org.freeeed.services.Util.getExtension(zipFile);\n String tmpDir = ParameterProcessing.TMP_DIR_HADOOP;\n File tempZip = File.createTempFile(\"freeeed\", (\".\" + extension), new File(tmpDir));\n tempZip.delete();\n if (project.isFsHdfs() || project.isFsLocal()) {\n String cmd = \"hadoop fs -copyToLocal \" + zipFile + \" \" + tempZip.getPath();\n OsUtil.runCommand(cmd);\n } else if (project.isFsS3()) {\n S3Agent s3agent = new S3Agent();\n s3agent.getStagedFileFromS3(zipFile, tempZip.getPath());\n }\n \n zipFile = tempZip.getPath();\n }\n \n if (PstProcessor.isPST(zipFile)) {\n try {\n new PstProcessor(zipFile, context, luceneIndex).process();\n } catch (Exception e) {\n logger.error(\"Problem with PST processing...\", e);\n }\n } else {\n logger.info(\"Will create Zip File processor for: {}\", zipFile);\n // process archive file\n ZipFileProcessor processor = new ZipFileProcessor(zipFile, context, luceneIndex);\n processor.process(false, null);\n }\n }", "@Override\n\t\tprotected void setup(Context context) throws IOException, InterruptedException {\n\n\t\t\tSystem.out.println(\"[Mapper Step1] INFO: Starting mapper setup.\");\n\t\t\tURI [] cacheFilesURI = Job.getInstance(context.getConfiguration()).getCacheFiles();\n\t\t\tSystem.out.println(\"[Mapper Step1] INFO: entring setup\");\n\n\t\t\tif((cacheFilesURI != null) && (cacheFilesURI.length >0)) {\n\t\t\t\tSystem.out.println(\"[Mapper Step1] INFO: In Setup adding CacheFiles URI to N1Map\");\n\t\t\t\tfor (URI cacheFileURI : cacheFilesURI) {\n\t\t\t\t\tif(cacheFileURI.getPath() != null) {\n\t\t\t\t\t\tSystem.out.println(\"[Mapper Step1] INFO: In Setup path to file is not null\");\n\n\t\t\t\t\t\tPath cacheFilePath = new Path(cacheFileURI.getPath());\n\t\t\t\t\t\ttry{\n\n\t\t\t\t\t\t\tString fileName = cacheFilePath.getName().toString();\n\t\t\t\t\t\t\tFileReader fr = new FileReader(fileName);\n\t\t\t\t\t\t\treadFile(fr , fileName);\n\t\t\t\t\t\t\tfr.close();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IOException e) {\n\t\t\t\t\t\t\tSystem.err.println(\"[Mapper Step4] ERROR: in opening cache file path.\");\n\t\t\t\t\t\t\te.printStackTrace();\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\telse {\n\t\t\t\tSystem.err.println(\"[Mapper step4] ERROR: cacheFile is Empty!!! \");\n\t\t\t}\n\t\t\tSystem.out.println(\"[Mapper Step4] INFO: Finished loading N1 File.\");\n\n\n\t\t}", "public static void run(String[] args) throws Exception {\n File dir = new File(args[2]);\n if(dir.exists())\n deleteDir(dir);\n Configuration conf=new Configuration();\n String filename = args[1].substring(args[1].lastIndexOf(\"/\") + 1, args[1].length());\n conf.set(\"name_list\", filename);\n if(args.length >= 5) {\n filename = args[3].substring(args[3].lastIndexOf(\"/\") + 1, args[3].length());\n conf.set(\"alias\", filename);\n }\n Job job=new Job(conf,\"PreProcess\");\n //add cache file\n job.addCacheFile(new Path(args[1]).toUri());\n if(args.length >= 5)\n job.addCacheFile(new Path(args[4]).toUri());\n\n job.setJarByClass(PreProcess.class);\n job.setNumReduceTasks(Integer.parseInt(args[3]));\n\n job.setMapperClass(MyMapper.class);\n job.setReducerClass(MyReducer.class);\n\n job.setMapOutputKeyClass(Text.class);\n job.setMapOutputValueClass(Text.class);\n\n\n job.setOutputKeyClass(Text.class);\n job.setOutputValueClass(Text.class);\n\n\n Path outputPath = new Path(args[2]);\n\n System.out.println(System.getProperty(\"user.dir\"));\n FileInputFormat.addInputPath(job, new Path(args[0]));\n FileOutputFormat.setOutputPath(job, new Path(args[2]));\n\n outputPath.getFileSystem(conf).delete(outputPath,true);\n\n boolean res = job.waitForCompletion(true);\n if(!res){\n System.out.printf(\"task preprocess return false\\n\");\n System.exit(-1);\n\n }\n }", "public void setDir(File dir)\n {\n this.dir = dir;\n }", "public static void setImageIOCacheDir() {\n final String tmpDirProperty = System.getProperty(\"java.io.tmpdir\");\n if(tmpDirProperty == null || \"\".equals(tmpDirProperty)) {\n return;\n }\n // ensure that temp-dir exists because ImageIO requires it\n File tmpDir = new File(tmpDirProperty);\n if(!tmpDir.exists() && !tmpDir.mkdirs()) {\n throw new IllegalStateException(\"Could not create temporary directory \" + tmpDirProperty + \", full path \" + tmpDir.getAbsolutePath());\n }\n ImageIO.setCacheDirectory(tmpDir);\n }", "abstract File getTargetDirectory();", "@InputFiles\n @Incremental\n @PathSensitive(PathSensitivity.RELATIVE)\n public abstract ConfigurableFileCollection getFeatureDexFolder();", "public void setHadoopJob( Job currJob ) ;", "public void setApplicationDir( String path ) {\r\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);\r\n Editor editor = preferences.edit();\r\n editor.putString(LibraryConstants.PREFS_KEY_BASEFOLDER, path);\r\n editor.commit();\r\n resetManager();\r\n }", "abstract public void setRingResourcesDir(String path);", "public String getMappingDirectory() {\n\t\treturn props.getProperty(ARGUMENT_MAPPING_DIRECTORY);\n\t}", "public void setRootDir(File rootDir) {\r\n\t\tthis.rootDir = rootDir;\r\n\t}", "private void writeToFiles(Context resultContext) throws IOException {\n\t\tMap<String, Map<Object, ArrayList<Object>>> keyValMappingByBaseOutputPath = resultContext.getKeyValMappingsByBaseOutputPath(); \n\t\t//Write key & value to each baseOutputPath's \n\t\tPath targetOutputDir = null;\n\t\tMap<Object, ArrayList<Object>> keyValMapping = null;\n\t\tPath finalOutputBaseDir = this.config.getFinalOutputDir();\n\t\tfor (String baseOutputPath: keyValMappingByBaseOutputPath.keySet()) {\n\t\t\tif (baseOutputPath.equals(\"\")) {\n\t\t\t\t//Regular output goes into the mapper output buffer directory.\n\t\t\t\ttargetOutputDir = this.config.getMapOutputBufferDir();\n\t\t\t}else {\n\t\t\t\t//Multiple output to a particular outputPath which was \n\t\t\t\t//specified by user goes into the final output directory. \n\t\t\t\ttargetOutputDir = Paths.get(finalOutputBaseDir.toString(), baseOutputPath);\n\t\t\t}\n\t\t\tkeyValMapping = keyValMappingByBaseOutputPath.get(baseOutputPath);\n\t\t\tthis.writeEachMapping(targetOutputDir, keyValMapping);\n\t\t};\n\t}", "@Before\n public void setUp() {\n context = new ClassPathXmlApplicationContext(new String[]{\"configuration/job-configuration.xml\"});\n // Get the bean to use to invoke the application\n jobLauncherTestUtils = (JobLauncherTestUtils) context.getBean(\"jobLauncherTestUtils\");\n try {\n inDir = new File(inputDirectory);\n FileUtils.copyFile(new File(PATH_FILE_CSV),\n new File(inputDirectory + CSV_FILE_NAME));\n FileUtils.forceMkdir(inDir);\n\n outDir = new File(outputDirectory);\n FileUtils.forceMkdir(outDir);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws IOException {\n JobConf conf = new JobConf(CrimeComputer.class);\n\t conf.setJobName(\"CrimeComputer\");\n\t\n\t conf.setOutputKeyClass(Text.class);\n\t conf.setOutputValueClass(IntWritable.class);\n \n System.out.println(\"\\n Please select a region defintion:\\n 1.Highest one digit of Northing & Easting \\n 2.Highest two digits of Northing & Easting \\n 3.Highest three digits of Northing & Easting \\n Enter: 1,2 or 3 \\n \");\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t String option=br.readLine();\n if(option.equals(\"1\"))\n {\n conf.setMapperClass(Map1.class); \n }\n else if(option.equals(\"2\"))\n conf.setMapperClass(Map2.class);\n else if(option.equals(\"3\"))\n {\n conf.setMapperClass(Map3.class); \n }\n else\n {\n System.out.println(\"Invalid Input!\");\n System.exit(0);\n }\n\n\t \n System.out.println(\"\\n Please select the number of Mappers: 1, 2 or 5? \\n\");\n option=br.readLine();\n if(option.equals(\"1\"))\n conf.setNumMapTasks(1);\n if(option.equals(\"2\"))\n conf.setNumMapTasks(2);\n if(option.equals(\"5\"))\n conf.setNumMapTasks(5); \n \n System.out.println(\"\\n Please select the number of Reducers: 1, 2 or 5? \\n\");\n option=br.readLine();\n if(option.equals(\"1\"))\n conf.setNumReduceTasks(1);\n if(option.equals(\"2\"))\n conf.setNumReduceTasks(2);\n if(option.equals(\"5\"))\n conf.setNumReduceTasks(5); \n \n conf.setCombinerClass(Reduce.class);\n\t conf.setReducerClass(Reduce.class);\n\t\n \n\t conf.setInputFormat(TextInputFormat.class);\n\t conf.setOutputFormat(TextOutputFormat.class);\n\t\n\t FileInputFormat.setInputPaths(conf, new Path(args[0]));\n\t FileOutputFormat.setOutputPath(conf, new Path(args[1]));\n JobClient.runJob(conf);\n \n }", "public static void main(String[] args) throws IOException{\n\n\t\tString inputUri = args[0];\n\t\tString basePath = args[1];\n\t\tString outPutFile = args[2];\n\t\t\n\n\t\t// Helper classes for writing files\n\t\tWriteHashMap sparkHadoopHashMapWriter = new WriteHashMap();\n\t\t// The path of the hadoop file\n\t\t// This is the default 2 line structure for Spark applications\n\t\tSparkConf conf = new SparkConf().setMaster(\"local[*]\")\n\t\t\t\t.setAppName(ProcessHadoopFile.class.getSimpleName());\n\t\tconf.set(\"spark.driver.maxResultSize\", \"14g\");\n\t\t// Set the config\n\t\tJavaSparkContext sc = new JavaSparkContext(conf);\n\t\t// Read in with spark\n\t\tJavaPairRDD<String, byte[]> totalDataset = sc\n\t\t\t\t.sequenceFile(inputUri, Text.class, BytesWritable.class, 24 * 3)\n\t\t\t\t.mapToPair(new ByteWriteToByteArr());\n\t\t// GET THE TOTAL MAP\n\t\tJavaPairRDD<String, byte[]> mainMap = totalDataset.filter(t -> t._1.endsWith(\"_total\"))\n\t\t\t\t.mapToPair(new RemoveSuffixAndGzip());\n\n\t\t// NOW GET THE HEADER MAP\n\t\tJavaPairRDD<String, byte[]> headerMap = totalDataset.filter(new Function<Tuple2<String,byte[]>, Boolean>() {\n\n\t\t\t/**\n\t\t\t * \n\t\t\t */\n\t\t\tprivate static final long serialVersionUID = 7574230201179927345L;\n\n\t\t\t@Override\n\t\t\tpublic Boolean call(Tuple2<String, byte[]> v1) throws Exception {\n\t\t\t\tif(v1._1.endsWith(\"_header\")==true){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}).mapToPair(new RemoveSuffixAndGzip());\n\n\t\t/// NOW GET THE CALPHA MAP\n\t\tJavaPairRDD<String, byte[]> calphaMap = totalDataset.filter(new Function<Tuple2<String,byte[]>, Boolean>() {\n\n\t\t\t/**\n\t\t\t * \n\t\t\t */\n\t\t\tprivate static final long serialVersionUID = -8312184119385524L;\n\n\t\t\t@Override\n\t\t\tpublic Boolean call(Tuple2<String, byte[]> v1) throws Exception {\n\t\t\t\tif(v1._1.endsWith(\"_calpha\")==true){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}).mapToPair(new RemoveSuffixAndGzip());\n\n\t\t// Now write the hadoop sequence file as the whole pdb\n\t\t// Now collect these as maps\n\n\t\tsparkHadoopHashMapWriter.writeHashMapToFile(headerMap.collectAsMap(), basePath+\"headerMap.map\");\n\t\tsparkHadoopHashMapWriter.writeHashMapToFile(calphaMap.collectAsMap(), basePath+\"calphaMap.map\");\n\t\t// Now do the main map\n\t\t//\t\t Now write this out as a hash map\n\t\tsparkHadoopHashMapWriter.writeHashMapToFile(mainMap.collectAsMap(), basePath+\"mainMap.map\");\n\n\t\t// Don't write the structures out as fat files\n//\t\tList<Partition> parted = mainMap.partitions();\n//\t\tfor(int i=0; i<parted.size();i++){\n//\t\t\tint[] thisArr = new int[1];\n//\t\t\tthisArr[0] = i;\n//\t\t\tList<Tuple2<String, byte[]>> ans = mainMap.collectPartitions(thisArr)[0];\n//\t\t\t// Now write the files to the file system\n//\t\t\twriteToFile(ans, basePath);\n//\t\t}\n\n\t\t// Now get the total dataset - without gzip and write to a hadoop sequence file\n\t\tJavaPairRDD<String, byte[]> mainMapNoGzip = totalDataset.filter(new Function<Tuple2<String,byte[]>, Boolean>() {\n\n\t\t\t/**\n\t\t\t * \n\t\t\t */\n\t\t\tprivate static final long serialVersionUID = -7172364344277495432L;\n\n\t\t\t@Override\n\t\t\tpublic Boolean call(Tuple2<String, byte[]> v1) throws Exception {\n\t\t\t\tif(v1._1.endsWith(\"_total\")==true){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}).mapToPair(new RemoveSuffix());\n\n\t\tJavaPairRDD<Text, BytesWritable> mainDataset = mainMapNoGzip.mapToPair(new StringByteToTextByteWriter());\n\t\tString outURI = basePath+\"hadoopFullData\";\t\t\n\t\tmainDataset.saveAsHadoopFile(outURI, Text.class, BytesWritable.class, SequenceFileOutputFormat.class, org.apache.hadoop.io.compress.BZip2Codec.class);\n\t\tsc.close();\n\t\tFile f = new File(outPutFile);\n\t\tf.getParentFile().mkdirs(); \n\t\tf.createNewFile();\n\t\t\n\t}", "public void setBasedir( String basedir )\n {\n setBasedir( new File( basedir.replace( '/', File.separatorChar ).replace( '\\\\', File.separatorChar ) ) );\n }", "private void initializeStoreDirectories() {\n LOG.info(\"Initializing side input store directories.\");\n\n stores.keySet().forEach(storeName -> {\n File storeLocation = getStoreLocation(storeName);\n String storePath = storeLocation.toPath().toString();\n if (!isValidSideInputStore(storeName, storeLocation)) {\n LOG.info(\"Cleaning up the store directory at {} for {}\", storePath, storeName);\n new FileUtil().rm(storeLocation);\n }\n\n if (isPersistedStore(storeName) && !storeLocation.exists()) {\n LOG.info(\"Creating {} as the store directory for the side input store {}\", storePath, storeName);\n storeLocation.mkdirs();\n }\n });\n }", "public ReduceLauncher(String[] keys, File inputFile) {\n\t\t\n\t\tthis.keys = keys;\n\t\tthis.inputFile = inputFile;\n\t\tthis.keysCounts = new HashMap<String, Integer>();\n\t}", "public void setDir(File d) {\r\n this.dir = d;\r\n }", "public Mapper() {\n\t\t\n\t\tmirMap = scanMapFile(\"mirMap.txt\");\n\t\tgeneMap = scanMapFile(\"geneMap.txt\");\n\t\t\n\t}", "public Job setupFirstJob(Path input, Path output) throws IOException {\n final Job job = Job.getInstance(this.getConf(), \"Airport Count\");\n job.setOutputKeyClass(Text.class);\n job.setOutputValueClass(IntWritable.class);\n\n job.setMapOutputKeyClass(IntWritable.class);\n job.setMapOutputValueClass(IntWritable.class);\n\n job.setMapperClass(GatherFlightsMap.class);\n job.setReducerClass(GatherFlightsReduce.class);\n job.setCombinerClass(GatherFlightsReduce.class);\n\n FileInputFormat.setInputPaths(job, input);\n FileOutputFormat.setOutputPath(job, output);\n\n job.setJarByClass(PopularAirportsDriver.class);\n\n return job;\n }", "public void setToDir(File dir) {\n _destDir = dir;\n }", "@Override\n public void prepareRun(BatchSourceContext context) throws IOException {\n Map<String, String> arguments = new HashMap<>();\n FileSetArguments.setInputPaths(arguments, config.files);\n context.setInput(Input.ofDataset(config.fileSetName, arguments));\n }", "FsPath baseDir();", "private static File getHadoopConfFolder() throws IOException {\n if (System.getenv().containsKey(\"HADOOP_CONF_DIR\")) {\n return new File(System.getenv(\"HADOOP_CONF_DIR\"));\n } else if (System.getenv().containsKey(\"HADOOP_HOME\")) {\n return new File(System.getenv(\"HADOOP_HOME\") + \"/etc/hadoop/\");\n } else {\n throw new IOException(\"Unable to find hadoop configuration folder.\");\n }\n }", "public IStatus prepareRuntimeDirectory(IPath baseDir);", "private Path initFolder(String folder) throws IOException {\n return Files.createDirectory(Paths.get(uploadFolder + \"/\" + folder));\n }", "@Override\n\t\tprotected void setup(org.apache.hadoop.mapreduce.Mapper.Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tConfiguration conf=context.getConfiguration() ;\n\t\t\tPath p=new Path(conf.get(\"HDFS\"));\n\t\t\tFileSystem fs = p.getFileSystem ( conf) ;\n\t\t//\tSequenceFile.Reader reader=new SequenceFile.Reader(fs, new Path(\"hdfs://localhost:9000/home/novas/clusterpointoutput/part-r-00000\"), context.getConfiguration());\n\t\t\t SequenceFile.Reader reader=new SequenceFile.Reader(fs, new Path(conf.get(\"cluster\")),conf);\n\t\t\t while(reader.next(seqkey, seqvalue))\n\t\t {\n\t\t\t // System.out.println(seqvalue.toString());\n\t\t\t clist.add(seqvalue.toString());\n\t\t }\n\t\t}", "@Before\n\tpublic void setup(){\n\t\tMapperTask1 mapper = new MapperTask1();\n\t\tString file = getClass().getClassLoader().getResource(\"hdp-task1/datasets/sfo_weather.csv\").getFile();\n\t\tmapDriver = MapDriver.newMapDriver((Mapper<LongWritable, Text, Task1Key, Task1Value>) mapper).withCacheFile(file);\n\t}", "@InputFiles\n @Incremental\n @PathSensitive(PathSensitivity.RELATIVE)\n public abstract ConfigurableFileCollection getDexFolders();", "public void setExtractDir(final String dir) {\n this.extractBaseDir = new File(dir);\n extractBaseDir.mkdirs();\n }", "public void setSource(String sourceDir)\n {\n this.sourceDir = new File(sourceDir);\n }", "public int run(String[] args) throws Exception\n\t{\n\t\t// create a configuration\n\t\tlogger.info(\"Configuring Hadoop settings\");\n\t\tConfiguration conf = new Configuration();\n\t\tconf.set(\"mapreduce.framework.name\", \"yarn\");\n\t\tconf.set(\"fs.defaultFS\", \"hdfs://localhost:8020\");\n\t\tconf.set(\"fs.hdfs.impl\", org.apache.hadoop.hdfs.DistributedFileSystem.class.getName());\n\t\tconf.set(\"fs.file.impl\", org.apache.hadoop.fs.LocalFileSystem.class.getName());\n\t\tconf.set(\"mapreduce.output.textoutputformat.separator\", \" \");\n\t\t\n\t\tFileSystem fs = FileSystem.get(conf);\n\t\tPath in = new Path(\"TwitterInput\");\n\t\tfs.delete(in, true);\n\t\tfs.copyFromLocalFile(new Path(inputFiles), in);\n\t\t\n\t\tJob job = new Job(conf);\n\n\t\tjob.setJarByClass(TwitterDataDriver.class);\n\t\t\n\t\tjob.setJobName(hadoopJobName);\n\n\t\t//import all files under inputFiles directory using regex\n\t\tFileInputFormat.addInputPath(job, new Path(in + \"/*\"));\n\n\t\t// this deletes possible output paths to prevent job failures\n\t\tPath out = new Path(\"TwitterOutput\");\n\t\tfs.delete(out, true);\n\t\t\n\t\tFileOutputFormat.setOutputPath(job, out);\n\n\t\tjob.setMapperClass(TwitterDataMapper.class);\n\n\t\tjob.setReducerClass(TwitterDataReducer.class);\n\n\t\tjob.setOutputKeyClass(Text.class);\n\n\t\tjob.setOutputValueClass(IntWritable.class);\n\t\t\n\t\tlogger.info(\"Executing Hadoop job on files: \" + inputFiles + \"*\");\n\t\tlogger.info(\"Hadoop input: \" + in + \"/*\");\n\t\tlogger.info(\"Hadoop output: \" + out + \"/part-r-00000\");\n\t\tlogger.info(\"Hadoop copy output to: \" + new Path(hadoopOutputLoc + \"/part-r-00000\"));\n\t\t\n\t\tboolean returnCode = job.waitForCompletion(true);\n\t\t\n\t\tif(returnCode) \n\t\t{\n\t\t\tlogger.info(\"Hadoop job complete, copying data to local system\");\n\t\t\tfs.copyToLocalFile(true, new Path(\"TwitterOutput/part-r-00000\"), new Path(hadoopOutputLoc + \"/part-r-00000\"));\n\t\t}\n\t\treturn returnCode ? 0 : 1;\n\n\t}", "void setFileName(String inputFileName)\n {\n this.inputFileName = inputFileName;\n }", "public void beforeClass() throws Exception\n {\n new File(\"test-logs\").mkdirs(); \n System.setProperty(\"hadoop.log.dir\", \"test-logs\");\n \n _fileSystem = FileSystem.get(new JobConf());\n }", "private static void assignInputFiles(FileSystem fs, Map<String, Object> settings, Job job) throws ParseException, IOException, Grep.NoInputFilesFound {\n List<Date> dates = new ArrayList<Date>();\n Calendar cal = Calendar.getInstance();\n Boolean excludeTmpFiles = (settings.get(\"excludeTmpFiles\") != null);\n\n\n cal.setTime((Date)settings.get(\"fromDate\"));\n while (!cal.getTime().after((Date)settings.get(\"toDate\"))) {\n dates.add(cal.getTime());\n cal.add(Calendar.DATE, 1);\n }\n\n for(int i=0; i < dates.size(); i++) {\n for(String type: (ArrayList<String>)settings.get(\"types\")) {\n Path p = new Path(\"/user/rucio01/logs/\"+type+\"/*\"+date_format.format(dates.get(i))+\"*\");\n for (FileStatus file : fs.globStatus(p)) {\n\t if((excludeTmpFiles) && (file.getPath().toString().endsWith(\"tmp\"))) {\n ((List<String>)settings.get(\"excludeTmpFiles\")).add(file.getPath().getName().toString()); \n continue;\n }\n FileInputFormat.addInputPath(job, file.getPath());\n }\n }\n }\n if (FileInputFormat.getInputPaths(job).length == 0) {\n throw new Grep.NoInputFilesFound(\"For type \" + settings.get(\"types\") \n + \" from \" + date_format.format(dates.get(0)) \n + \" to \" + date_format.format(dates.get(dates.size()-1))\n + \" no log files coiuld be found on HDFS.\");\n }\n }", "private void setDirInternal(File dir) {\n if (dir == null) {\n baseDir = null;\n return;\n }\n\n ReplicaDirInfo dirInfo = parseBaseDir(dir, getBlockId());\n this.hasSubdirs = dirInfo.hasSubidrs;\n\n synchronized (internedBaseDirs) {\n if (!internedBaseDirs.containsKey(dirInfo.baseDirPath)) {\n // Create a new String path of this file and make a brand new File object\n // to guarantee we drop the reference to the underlying char[] storage.\n File baseDir = new File(dirInfo.baseDirPath);\n internedBaseDirs.put(dirInfo.baseDirPath, baseDir);\n }\n this.baseDir = internedBaseDirs.get(dirInfo.baseDirPath);\n }\n }", "File getTargetDirectory();", "@Override\n public void chain(@Nonnull final IMapReduce source) {\n performSourceMapReduce(((SparkMapReduce) source).output);\n }", "public void replacePrefixesAndSplitByPredicate() throws ConfigurationNotInitializedException, PrefixReplacerPredicateSplitterException {\n\t\ttry {\n\t\t\tedu.utdallas.hadooprdf.conf.Configuration config =\n\t\t\t\tedu.utdallas.hadooprdf.conf.Configuration.getInstance();\n\t\t\torg.apache.hadoop.conf.Configuration hadoopConfiguration =\n\t\t\t\tnew org.apache.hadoop.conf.Configuration(config.getHadoopConfiguration()); // Should create a clone so\n\t\t\t// that the original one does not get cluttered with job specific key-value pairs\n\t\t\tFileSystem fs = FileSystem.get(hadoopConfiguration);\n\t\t\t// Delete output directory\n\t\t\tfs.delete(m_OutputDirectoryPath, true);\n\t\t\t// Must set all the job parameters before creating the job\n\t\t\tString sPathToPrefixFile = m_DataSet.getPathToPrefixFile().toString();\n\t\t\thadoopConfiguration.set(Tags.PATH_TO_PREFIX_FILE, sPathToPrefixFile);\n\t\t\t// Create the job\n\t\t\tString sJobName = \"Prefix Replacer for \" + m_InputDirectoryPath.getParent() + '/' + m_InputDirectoryPath.getName();\n\t\t\tJob job = new Job(hadoopConfiguration, sJobName);\n\t\t\t// Specify input parameters\n\t\t\tjob.setInputFormatClass(TextInputFormat.class);\n\t\t\tboolean bInputPathEmpty = true;\n\t\t\t// Get input file names\n\t\t\tFileStatus [] fstatus = fs.listStatus(m_InputDirectoryPath, new PathFilterOnFilenameExtension(m_sInputFilesExtension));\n\t\t\tfor (int i = 0; i < fstatus.length; i++) {\n\t\t\t\tif (!fstatus[i].isDir()) {\n\t\t\t\t\tFileInputFormat.addInputPath(job, fstatus[i].getPath());\n\t\t\t\t\tbInputPathEmpty = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (bInputPathEmpty)\n\t\t\t\tthrow new PrefixReplacerPredicateSplitterException(\"No file to replace prefix for!\");\n\t\t\t// Specify output parameters\n\t\t\tjob.setOutputFormatClass(FilenameByKeyMultipleTextOutputFormat.class);\n\t\t\tjob.setOutputKeyClass(Text.class);\n\t\t\tjob.setOutputValueClass(Text.class);\n\t\t\tjob.setMapOutputKeyClass(Text.class);\n\t\t\tjob.setMapOutputValueClass(Text.class);\n\t\t\tFileOutputFormat.setOutputPath(job, m_OutputDirectoryPath);\n\t\t\t// Set the mapper and reducer classes\n\t\t\tjob.setMapperClass(edu.utdallas.hadooprdf.data.preprocessing.namespacingpredicatesplit.mapred.PrefixReplacerPredicateSplitterMapper.class);\n\t\t\tjob.setReducerClass(edu.utdallas.hadooprdf.data.preprocessing.namespacingpredicatesplit.mapred.PrefixReplacerPredicateSplitterReducer.class);\n\t\t\t// Set the number of reducers\n\t\t\tif (-1 != getNumberOfReducers())\t// Use the number set by the client, if any\n\t\t\t\tjob.setNumReduceTasks(getNumberOfReducers());\n\t\t\telse if (-1 != config.getNumberOfTaskTrackersInCluster())\t// Use one reducer per TastTracker, if the number of TaskTrackers is available\n\t\t\t\tjob.setNumReduceTasks(config.getNumberOfTaskTrackersInCluster());\n\t\t\t// Set the jar file\n\t\t\tjob.setJarByClass(this.getClass());\n\t\t\t// Run the job\n\t\t\tif (job.waitForCompletion(true)) {\n\t\t\t\tfs.delete(m_InputDirectoryPath, true);\n\t\t\t\tfs.delete(m_DataSet.getPathToPSData(), true);\n\t\t\t\tfs.mkdirs(m_DataSet.getPathToPSData());\n\t\t\t\tfstatus = fs.listStatus(m_OutputDirectoryPath, new PathFilterOnFilenameExtension(Constants.PS_EXTENSION));\n\t\t\t\tfor (int i = 0; i < fstatus.length; i++)\n\t\t\t\t\tfs.rename(fstatus[i].getPath(), new Path(m_DataSet.getPathToPSData(), fstatus[i].getPath().getName()));\n\t\t\t\tfs.delete(m_OutputDirectoryPath, true);\n\t\t\t}\n\t\t\telse\n\t\t\t\tthrow new PrefixReplacerPredicateSplitterException(\"Prefix replacer job failed!\");\n\t\t} catch (IOException e) {\n\t\t\tthrow new PrefixReplacerPredicateSplitterException(\"IOException occurred:\\n\" + e.getMessage());\n\t\t} catch (InterruptedException e) {\n\t\t\tthrow new PrefixReplacerPredicateSplitterException(\"InterruptedException occurred:\\n\" + e.getMessage());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tthrow new PrefixReplacerPredicateSplitterException(\"ClassNotFoundException occurred:\\n\" + e.getMessage());\n\t\t}\n\t}", "public void configure(JobConf conf) {\n filePath = conf.get(INPUT_FILE_PARAMETER);\n }", "void setSystabIOFolderName(String name){\n this.folderName = name + \"\\\\\"; // Append the \\\\ to get inside the folder\n }", "public Path outputDir() {\n return dir;\n }", "public void setDataDirectory(String dataDirectory) {\n this.dataDirectory = dataDirectory;\n }", "abstract public void setTopResourcesDir(String path);", "public A4_MUX (String inputLocation) throws IOException{\r\n fileLocation = inputLocation.concat(\"server.info\");\r\n filePath = Paths.get(fileLocation); \r\n }", "void setKarafInstallDir(String installDir);", "public void setMapReduceEnabled(final boolean enabled) {\n _isMapReduceEnabled = enabled;\n }", "abstract public void setImageResourcesDir(String path);", "public static void main(String args[])throws Exception{ \n //首先定义两个临时文件夹,这里可以使用随机函数+文件名,这样重名的几率就很小。 \n String dstFile = \"temp_src\"; \n String srcFile = \"temp_dst\"; \n \n Configuration conf = new Configuration(); \n \n System.out.println(\"fs:\" + conf.get(\"fs.default.name\"));\n // must!!! config the fs.default.name be the same to the value in core-site.xml \n \n// conf.set(\"fs.default.name\",\"hdfs://hadoop1-node1:9000\"); \n// \n// conf.set(\"mapred.job.tracker\",\"hadoop1-node1:9001\"); \n \n conf.set(\"mapred.jar\", \"E:/work_space_trade/howbuy-hadoop_20150209/target/test-classes/wordcount.jar\");\n \n// conf.set(\"hadoop.native.lib\", \"false\");\n \n /* //这里生成文件操作对象。 \n HDFS_File file = new HDFS_File(); \n \n \n //从本地上传文件到HDFS,可以是文件也可以是目录 \n file.PutFile(conf, args[0], dstFile); \n \n System.out.println(\"up ok\"); */\n \n \n \n Job job = new Job(conf, \"mywordcount1\"); \n job.setJarByClass(Mywordcount.class); \n \n job.setInputFormatClass(TextInputFormat.class); \n \n job.setOutputKeyClass(Text.class); \n job.setOutputValueClass(IntWritable.class); \n \n job.setMapperClass(WordcountMapper.class); \n job.setReducerClass(WordcountReducer.class); \n job.setCombinerClass(WordcountReducer.class); \n //注意这里的输入输出都应该是在HDFS下的文件或目录 \n FileInputFormat.setInputPaths(job, new Path(\"/wordcount\")); \n FileOutputFormat.setOutputPath(job, new Path(\"/wordoutput\"));\n //开始运行 \n job.waitForCompletion(true); \n \n /*//从HDFS取回文件保存至本地 \n file.GetFile(conf, srcFile, args[1]); \n System.out.println(\"down the result ok!\"); \n //删除临时文件或目录 \n file.DelFile(conf, dstFile, true); \n file.DelFile(conf, srcFile, true); */\n \n System.out.println(\"delete file on hdfs ok!\"); \n }", "public void setCurrentDirectory(File dir) {\r\n\tif (dir == null) dir = new File(System.getProperty(\"user.home\"));\r\n\r\n\tdir = makeAbsolute(dir);\r\n\r\n\t/**\r\n\t * Note that we compare literal paths, not canonical\r\n\t * paths. If they want the chooser to represent the\r\n\t * files at the end of a different route to the same\r\n\t * place, that's perfectly legitimate. See NextStep\r\n\t * for e.g.\r\n\t */\r\n\tif (curDir == null || !curDir.equals(dir)) {\r\n\t invalidateCache();\r\n\t File oldDir = curDir;\r\n\t curDir = dir;\r\n\t firePropertyChange(\"currentDirectory\", oldDir, dir);\r\n\t fireContentsChanged();\r\n\t}\r\n }", "public RoundRobin(String input_path) {\n super(input_path);\n }", "@Override\n\tpublic void setup(Context context){\n\t\tfileName = ((FileSplit) context.getInputSplit()).getPath().getName();\n\t}", "void initializeBath( File destinationFolderFile );" ]
[ "0.6133395", "0.6108337", "0.6010726", "0.59729755", "0.57130814", "0.54378873", "0.54274535", "0.54262996", "0.53389525", "0.5321698", "0.53116465", "0.52422404", "0.51933825", "0.51890504", "0.5181201", "0.5147201", "0.51438665", "0.50400615", "0.5038582", "0.5030666", "0.501219", "0.49613678", "0.4951669", "0.495071", "0.49281794", "0.49067122", "0.48870844", "0.48772228", "0.48549986", "0.48032767", "0.48014224", "0.47982833", "0.47921944", "0.4788031", "0.47831142", "0.47593594", "0.47568733", "0.47539985", "0.47506583", "0.47344843", "0.47329277", "0.47213012", "0.47121394", "0.4708959", "0.47081128", "0.47068167", "0.47058895", "0.46921197", "0.46869624", "0.468524", "0.46850115", "0.46754295", "0.46752104", "0.4674713", "0.46725792", "0.46582362", "0.46506715", "0.46376002", "0.4636635", "0.4632224", "0.46264714", "0.46149245", "0.46123144", "0.4607738", "0.46036342", "0.46010575", "0.45983472", "0.45980445", "0.45929825", "0.45913583", "0.45906004", "0.45869628", "0.45813575", "0.4578835", "0.45759404", "0.45705292", "0.45573673", "0.45497248", "0.45317772", "0.4522604", "0.45184714", "0.45182073", "0.45144606", "0.45078754", "0.45058554", "0.45045453", "0.4503676", "0.450255", "0.4493505", "0.4490489", "0.44853866", "0.44829062", "0.4471199", "0.44586027", "0.4457131", "0.4445816", "0.44392", "0.44323504", "0.44314617", "0.44230005" ]
0.73445654
0
creating a new paramterized constructor with integer value to display weight
Cycle(int weight) { //this keyword is used to differentiate between global and local variables //"this.name" refers to the global instance variable // "= name" refers to the local variable defined inside the constructor this.weight = weight; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SpaceWeights(int weight)\n {\n earthWeight = weight;\n }", "public Factorial(String name, int weight) {\n\t\tsuper(name, weight);\n\t}", "public WeightingModel(){}", "public ColorWeight()\n {\n weight = 0;\n }", "public ConditionTargetWeight(int weight)\n\t{\n\t\t_weight = weight;\n\t}", "Widget(Colour colour,int weight){\n\t\tthis.colour=colour;\n\t\tthis.weight=weight;\n\t}", "public Cucumber(float weight) {\n\t\tthis(DEFAULT_CALORIES, weight);\n\t}", "public void setWeight(Integer weight) {\n this.weight = weight;\n }", "public Vertex(int value) {\n this(value, null);\n }", "private Human(int age,String name,double weight) {\n\t\tthis.age=age;\n\t\tthis.name=name;\n\t\tthis.weight=weight;\n\t\thumanCounter++;\n\t}", "private void setWeight(float weight){\n this.weight = weight;\n }", "public Vertex(int val)\r\n\t{\r\n\t\tthis.value=val;\r\n\t}", "public Item(int sn, double w)\r\n\t/*\r\n\t * \t\tsn - serial number\r\n\t * \t\tw - weight\r\n\t */\r\n\t{\r\n\t\tserialNum = sn;\r\n\t\tweight = w;\r\n\t}", "ByCicle(int weight, String name) {\r\n //super keyword can be used to access the instance variables of superclass\r\n //\"super\" can also be used to invoke parent class constructor and method\r\n super(weight);//Accessign Superclass constructor and its variable\r\n //Global Variable=Local variable\r\n this.name = name;\r\n }", "public Int(int value) { \n this.value = value; \n }", "public LearningBoardEvaluator(int numWeights) {\n super(numWeights);\n }", "public WeightedItem(E value, Double w) {\n this.value = value;\n this.w = w;\n }", "public void setWeight(int w){\n\t\tweight = w;\n\t}", "public void setWeight(int weight){\n\t\tthis.weight = weight;\n\t}", "Item(Weight weight){\r\n\t\tthis(0, weight, new DukatAmount(0));\r\n\t}", "public Pikachu(String name, int number)\n\t{\n\t\tsuper(name, number);\n\t}", "public void setWeight(double w){\n weight = w;\n }", "public Item(String des, double w){\n description = des;\n weight = w;\n }", "public Gitlet(int a) {\n\n\t}", "public Number(int n) \n {\n nn = n; // initailize with the inputed value\n }", "public BMI(String name, double weight, double height)\n {\n this.name = name;\n this.weight = weight;\n this.height = height;\n }", "public Student(Integer age) {\n\n this.age = age;\n }", "public int weight ();", "public void setWeight(float value) {\n this.weight = value;\n }", "public void setWeight(final int weight) {\n this.weight = weight;\n }", "TypesOfConstructor(int value){\n num = value;\n }", "public int getWeight();", "public void setWeight(double weight) {\r\n this.weight = weight;\r\n }", "@Override\n public void setWeight(double w) {\n this.weight = w;\n\n }", "@Override\r\n\tpublic void setWeight(double weight) {\n\t\t\r\n\t}", "@JsonSetter(\"weight\")\n public void setWeight (int value) {\n this.weight = value;\n }", "public int getWeight(){\n \treturn weight;\n }", "public void setWeight(int w) {\n\t\tweight = w;\n\t}", "private\tNum(int num) { value = num; }", "public void setWeight(double weight) {\n this.weight = weight;\n }", "public Value(int i) {\n integer = i;\n itemClass = Integer.class;\n type = DataType.INT;\n }", "public IntPar(int val) { value = val; }", "public void setWeight(float w) {\n weight = w;\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn String.format(\"%d-%d,%.2f\", v,w,weight);\r\n\t}", "private Point(int param, double value) {\r\n this(param, value, false);\r\n }", "public void setWeight(final double pWeight){this.aWeight = pWeight;}", "public void setWeight(String weight) {\n this.weight = weight;\n }", "public Generation(int i)\r\n {\r\n k = i;\r\n }", "DefaultConstructor(int a){}", "int getWeight();", "int getWeight();", "ConstuctorOverloading(int num){\n\t\tSystem.out.println(\"I am contructor with 1 parameter\");\n\t}", "private EstimatingTechnique(int value, String name, String literal) {\r\n\t\tthis.value = value;\r\n\t\tthis.name = name;\r\n\t\tthis.literal = literal;\r\n\t}", "int getWeight() {\n return weight;\n }", "int getWeight() {\n return weight;\n }", "private ExpectedApproximation(int param) {\r\n this(Double.MIN_VALUE, param, Double.MAX_VALUE);\r\n }", "public Edge(int weight){\n\t\tthis.EDGE_ID = IDToGive;\n\t\tthis.edgeWeight = weight;\n\t\tIDToGive++;\n\t}", "public Train(String name, Integer number) {\n\t\tsuper();\n\t\tthis.name = name;\n\t\tthis.number = number;\n\t}", "@Override\n public String toString() {\n return String.valueOf(this.weight);\n }", "public Sqrt(String type, int weight) {\n\t\tsuper(type, weight);\n\t}", "public IdealWeightCalculator() {\n initComponents();\n }", "public void setWeight(double weight){\n\t\tthis.weight = weight;\n\t}", "public Constant (int value){\r\n this.value = value;\r\n\r\n }", "public double getWeight(){return this.aWeight;}", "public int getWeight(){\n\t\treturn weight;\n\t}", "public WeightedGraph() {\n super();\n }", "public ByWeight(String name, double cost, double units)\n\t{\n\t\tsuper(name);\n\t\tprice = cost;\n\t\tweight = units;\n\t}", "public void setWeight(int newWeight) {\n weight = newWeight;\n }", "public Counter(int init){\n \tvalue = init;\n }", "public NestedInteger(int value) { }", "public Knight(String name, int weight) {\n this.name = name;\n this.weight = weight;\n }", "public FlowLayout(int paramInt) {\n/* 216 */ this(paramInt, 5, 5);\n/* */ }", "public Item()\r\n\t{\r\n\t\tserialNum = 00000;\r\n\t\tweight = 0.0;\r\n\t}", "private Parameter(int key, String name, String value){\n this.key = key;\n this.name = name;\n this.value = value;\n }", "public int getWeight()\n {\n return weight;\n }", "public int getWeight() {\n return weight;\n }", "public void setWeight(Double weight) {\n this.weight = weight;\n }", "public static String generateConstructor(String className, String parameterValue) {\n\t\tif (className.equals(\"Integer\")) {\n\t\t\tif (parameterValue == null)\n\t\t\t\treturn \"Integer(0)\";\n\t\t\treturn \"Integer(\"+parameterValue+\")\";\n\t\t}\n\t\tif (className.equals(\"Double\")) {\n\t\t\tif (parameterValue == null)\n\t\t\t\treturn \"Double(0)\";\n\t\t\treturn \"Double(\"+parameterValue+\")\";\n\t\t}\n\t\tif (className.equals(\"Float\")) {\n\t\t\tif (parameterValue == null)\n\t\t\t\treturn \"Float(0)\";\n\t\t\treturn \"Float(\"+parameterValue+\")\";\n\t\t}\n\t\tif (className.equals(\"Short\")) {\n\t\t\tif (parameterValue == null)\n\t\t\t\treturn \"Short((short) 0)\";\n\t\t\treturn \"Short(\"+parameterValue+\")\";\n\t\t}\n\t\tif (parameterValue == null)\n\t\t\treturn className+\"()\";\n\t\treturn className+\"(\"+parameterValue+\")\";\n\t}", "@Override\n\tpublic void setWeight(final double weight) {\n\n\t}", "public C05_BMI() {\n\t\t\n\t}", "U2(){\r\n setCurrentWeight(0);\r\n setMaxWeight(29*1000);\r\n setCost(120*1000000);\r\n }", "public void setWeight(String newValue);", "int Weight();", "Node(Vertex x,int w)\n\t{\n\t\tv=x;\n\t\tweight=w;\n\t}", "public int weight() {\n \treturn weight;\n }", "public JobPriority(int value) {\n super (value, 1, 100);\n }", "public Weight( int[] init )\n {\n // Construct the array the same length\n // as that referenced by init.\n data = new int[init.length];\n\n // Copy values from the\n // input data to data.\n for ( int j = 0; j < init.length; j++ )\n {\n data[j] = init[j];\n }\n }", "public Instance(int instanceId, double weight){\n\t\tif(instanceId==0)\n\t\t\tthrow new RuntimeException(\"The instance id is \"+instanceId);\n\t\tthis._instanceId = instanceId;\n\t\tthis._weight = weight;\n\t}", "public PotionEffect(int paramInt1, int paramInt2, int paramInt3)\r\n/* 21: */ {\r\n/* 22: 32 */ this(paramInt1, paramInt2, paramInt3, false, true);\r\n/* 23: */ }", "public void setpWeight(int pWeight) {\n this.pWeight = pWeight;\n }", "@Override\n\tpublic double weight() {\n\t\treturn 1.0;\n\t}", "public IntegerField() {\r this(3, 0, 0, 0);\r }", "public Term(String query, double weight)\n\t{\n\t\ttry\n\t\t{\n\t\t\tif(query == null)\n\t\t\t{\n\t\t\t\tjava.lang.NullPointerException nullString = new \n\t\t\t\t\tjava.lang.NullPointerException(\"String argument \"\n + \"(query) cannot be null.\"); \n\t\t\t\tthrow nullString;\n\t\t\t}\n if(weight < 0)\n {\n java.lang.IllegalArgumentException negativeWeight =\n new java.lang.IllegalArgumentException(\"Numeric\"\n + \" argument (weight) cannot be negative.\");\n throw negativeWeight;\n\n }\n\t\t} \n\n\t\tcatch(NullPointerException nullString)\n\t\t{\n\t\t\tSystem.out.println(nullString.getMessage());\n\t\t\treturn;\n\t\t}\n\t\tcatch(IllegalArgumentException negativeWeight)\n\t\t{\n\t\t\tSystem.out.println(negativeWeight.getMessage());\n\t\t\treturn;\n\t\t}\n\n\t\tthis.query = query;\n\t\tthis.weight = weight;\n\t}", "public Data(int n) {\n this(n, 0.5);\n }", "public Label(int num){\n\t\tresidentVertex = null;\n\t\tpredecessorEdge = null;\n\t\tpredecessorLabel = null;\n\t\tresourceConsumption = new AccumulatedResources();\n\t\tlabelID = num;\n\t}", "public Ball(int number){\r\n this.num = number;\r\n }", "public TPageWeightVwRecord() {\n\t\tsuper(TPageWeightVw.T_PAGE_WEIGHT_VW);\n\t}", "public MyInteger( )\n {\n this( 0 );\n }", "public void setWeight(double weight) {\n\t\tthis.weight = weight;\n\t}", "public Student(int num) {\n//\t\tstuNum = num;\n//\t\tgpa = 0.0;\n\t\tthis(num, 0.0);\n\t}" ]
[ "0.6726181", "0.6725299", "0.6534354", "0.64647436", "0.6409911", "0.6406189", "0.62484723", "0.617798", "0.61551464", "0.61310387", "0.6106736", "0.6094976", "0.60800666", "0.6066708", "0.6056225", "0.60305077", "0.6021654", "0.6020619", "0.601919", "0.6006455", "0.5977092", "0.59651244", "0.59604025", "0.59492815", "0.59480596", "0.5946213", "0.594129", "0.5912547", "0.5911093", "0.59043175", "0.5898732", "0.5893054", "0.58865434", "0.58850884", "0.58632183", "0.5858342", "0.585703", "0.5843859", "0.58228046", "0.5820797", "0.58025694", "0.5801486", "0.5797558", "0.57962126", "0.57958555", "0.5795246", "0.57911706", "0.57886386", "0.57812905", "0.577954", "0.577954", "0.5769281", "0.5762016", "0.575863", "0.575863", "0.57561636", "0.5755275", "0.57523984", "0.57487124", "0.5731056", "0.5728405", "0.5727102", "0.57170415", "0.571268", "0.5711446", "0.5703826", "0.57009596", "0.56873703", "0.56860733", "0.56808174", "0.5679249", "0.56736684", "0.5667223", "0.56604564", "0.56547046", "0.5650581", "0.5635197", "0.5633608", "0.5631556", "0.5628804", "0.56261545", "0.5621015", "0.56162226", "0.5609228", "0.560091", "0.55949986", "0.559313", "0.55794734", "0.55769914", "0.5573079", "0.5570561", "0.556534", "0.5563723", "0.5562062", "0.5557635", "0.5548241", "0.5546499", "0.55463177", "0.55440813", "0.5543534" ]
0.59016395
30
creating a new paramterized constructor with String value and integer value from Superclass since it extends SuperClass.
ByCicle(int weight, String name) { //super keyword can be used to access the instance variables of superclass //"super" can also be used to invoke parent class constructor and method super(weight);//Accessign Superclass constructor and its variable //Global Variable=Local variable this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Parameter(int key, String name, String value){\n this.key = key;\n this.name = name;\n this.value = value;\n }", "MyArg(int value){\n this.value = value;\n }", "TypesOfConstructor(int value){\n num = value;\n }", "ConstuctorOverloading(int num){\n\t\tSystem.out.println(\"I am contructor with 1 parameter\");\n\t}", "public SuperClass(int x)\r\n {\r\n _x = x;\r\n }", "public Int(int value) { \n this.value = value; \n }", "DefaultConstructor(int a){}", "public LightParameter(PropertyEnum propertyEnum, String value)\r\n\t{\r\n\t\tsuper(propertyEnum, value);\r\n\t}", "public BaseParameters(){\r\n\t}", "public IntPar(int val) { value = val; }", "public mapper3c(Integer theKey, String theValue) { super(theKey, theValue); }", "MyException(String str)\n {\n //parametrize constructor\n super(str);\n }", "public CacheFIFO(int paramInt)\r\n/* 11: */ {\r\n/* 12: 84 */ super(paramInt);\r\n/* 13: */ }", "public MyInteger(int value)\n\t{\n\t\tthis.value = value;\n\t}", "public tn(String paramString, ho paramho)\r\n/* 12: */ {\r\n/* 13:11 */ super(paramString, paramho);\r\n/* 14: */ }", "public static String generateConstructor(String className, String parameterValue) {\n\t\tif (className.equals(\"Integer\")) {\n\t\t\tif (parameterValue == null)\n\t\t\t\treturn \"Integer(0)\";\n\t\t\treturn \"Integer(\"+parameterValue+\")\";\n\t\t}\n\t\tif (className.equals(\"Double\")) {\n\t\t\tif (parameterValue == null)\n\t\t\t\treturn \"Double(0)\";\n\t\t\treturn \"Double(\"+parameterValue+\")\";\n\t\t}\n\t\tif (className.equals(\"Float\")) {\n\t\t\tif (parameterValue == null)\n\t\t\t\treturn \"Float(0)\";\n\t\t\treturn \"Float(\"+parameterValue+\")\";\n\t\t}\n\t\tif (className.equals(\"Short\")) {\n\t\t\tif (parameterValue == null)\n\t\t\t\treturn \"Short((short) 0)\";\n\t\t\treturn \"Short(\"+parameterValue+\")\";\n\t\t}\n\t\tif (parameterValue == null)\n\t\t\treturn className+\"()\";\n\t\treturn className+\"(\"+parameterValue+\")\";\n\t}", "Employee(int index, int jindex)\n \t{\n \t\t// calling base class constructor\n \t\tsuper(index,jindex);\n \t\t\n \t\tSystem.out.println(\"[EMP] : inside parameterised constructor (super method)\");\n \t\t\n \t\ti_Val = index;\n \t\tj_Val = jindex;\n \t}", "public Student(Integer age) {\n\n this.age = age;\n }", "Int(int v){\n val = v;\n }", "public Kitten(String s, int a)\n {\n // initialise instance variables\n super(s, a);\n }", "private ConfigurationObject createParam(int num, String type, String value) throws Exception {\r\n ConfigurationObject param = new DefaultConfigurationObject(\"param\" + num);\r\n param.setPropertyValue(PROPERTY_TYPE, type);\r\n param.setPropertyValue(PROPERTY_VALUE, value);\r\n\r\n return param;\r\n }", "public ClassWithHasArgsConstructor(int i) {\n this.i = i;\n }", "protected SDB_ServiceClass( String s, int i )\n {\n name = s;\n nameHash.put( s, this );\n intValue = i;\n intHash.put( new Integer( intValue ), this );\n }", "public OCBase(OCInteger lenType)\r\n {\r\n this.lenType = lenType;\r\n }", "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}", "protected SheetCollate(int paramInt) {\n/* 182 */ super(paramInt);\n/* */ }", "public IntegerIdentifier(String name, int type, int value) {\n super(name, type); //String and integer declaration\n this.value = value;//set this.value to value\n }", "public JobPriority(int value) {\n super (value, 1, 100);\n }", "public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }", "public Value(int i) {\n integer = i;\n itemClass = Integer.class;\n type = DataType.INT;\n }", "public AI(String n) {//constructor for super class\n super(n);\n }", "public MessageFactory(int type, int id, int value) {\n super(type, id);\n this.value = value;\n }", "public a(IntegerLiteralTypeConstructor integerLiteralTypeConstructor) {\n super(0);\n this.a = integerLiteralTypeConstructor;\n }", "public StringValue(int value, TokenValue<?> otherValue) {\n super(otherValue.getRule(), new String(Character.toChars(value)), otherValue);\n }", "public MyInteger( int x )\n {\n value = x;\n }", "public Human(int theShipType){\n super(theShipType);\n }", "private Point(int param, double value) {\r\n this(param, value, false);\r\n }", "private JdbcTypeType(int value, String name, String literal) {\r\n\t\tsuper(value, name, literal);\r\n\t}", "public UserParameter() {\n }", "private void addConstructors() {\n\t\tthis.rootBindingClass.getConstructor().body.line(\"super({}.class);\\n\", this.name.getTypeWithoutGenerics());\n\t\tGMethod constructor = this.rootBindingClass.getConstructor(this.name.get() + \" value\");\n\t\tconstructor.body.line(\"super({}.class);\", this.name.getTypeWithoutGenerics());\n\t\tconstructor.body.line(\"this.set(value);\");\n\t}", "public NestedInteger(int value) { }", "public Parameter(String name, String value, String access) {\n this.name = name;\n this.value = value;\n this.access = access;\n }", "private BigB( char aConstructionCharacter )\r\n{\tsuper( aConstructionCharacter );\t\r\n}", "Parameter createParameter();", "public A(int x)\n {\n xValue = x;\n }", "public T(int val) {\n this.val = val;\n }", "private\tNum(int num) { value = num; }", "public Pikachu(String name, int number)\n\t{\n\t\tsuper(name, number);\n\t}", "Constructor(int i,String n ,int x){ //taking three parameters which shows that it is constructor overloaded\r\n\t\t id = i; \r\n\t\t name = n; \r\n\t\t marks =x; \r\n\t\t }", "public ahr(aqu paramaqu)\r\n/* 20: */ {\r\n/* 21: 34 */ super(paramaqu);\r\n/* 22: 35 */ a(0.25F, 0.25F);\r\n/* 23: */ }", "public LightParameter()\r\n\t{\r\n\t}", "public BaseBlParameter (java.lang.Integer id) {\n\t\tthis.setId(id);\n\t\tinitialize();\n\t}", "public void Constructor(String name, Integer age) {\r\n this.name = name;\r\n this.age = age;\r\n }", "protected Value(Value v) {\n flags = v.flags;\n num = v.num;\n str = v.str;\n object_labels = v.object_labels;\n getters = v.getters;\n setters = v.setters;\n excluded_strings = v.excluded_strings;\n included_strings = v.included_strings;\n functionPartitions = v.functionPartitions;\n functionTypeSignatures = v.functionTypeSignatures;\n var = v.var;\n hashcode = v.hashcode;\n }", "public Parameter(Parameter template){\n\t\tthis(template.getName(),template.isRequired(),\n\t\t\t template.getType(),(T) template.getDefaultValue());\n\t}", "private CasePreinstConditionValue(int value, String name, String literal) {\n\t\tsuper(value, name, literal);\n\t}", "public Comida(String nombre){\n super(nombre);\n this.calorias = 10;\n }", "protected ScriptStyle(int val, String s)\r\n/* 10: */ {\r\n/* 11: 54 */ this.value = val;\r\n/* 12: 55 */ this.string = s;\r\n/* 13: */ \r\n/* 14: 57 */ ScriptStyle[] oldstyles = styles;\r\n/* 15: 58 */ styles = new ScriptStyle[oldstyles.length + 1];\r\n/* 16: 59 */ System.arraycopy(oldstyles, 0, styles, 0, oldstyles.length);\r\n/* 17: 60 */ styles[oldstyles.length] = this;\r\n/* 18: */ }", "public DataPrimitive(int value) {\n\t\tsuper();\n\t\tthis.value = Integer.toString(value);\n\t}", "public ParameterizedInstantiateFactory() {\r\n super();\r\n }", "public JParameterRecord(Long itemId, String key, String value) {\n super(JParameter.PARAMETER);\n\n set(0, itemId);\n set(1, key);\n set(2, value);\n }", "private PortType(int value, String name, String literal)\n {\n this.value = value;\n this.name = name;\n this.literal = literal;\n }", "public TestObject(final String value) {\n\n\t\t\tsuper();\n\t\t\tthis.value = value;\n\t\t}", "protected Demon(int str, int hp)\n {\n super(str, hp);\n }", "PBBignum(BigInteger value)\n {\n\tsuper(value.toString());\n\tbigIntValue = value;\n }", "public BabbleValue() {}", "protected Int() {}", "public bsm(PlayerStat paramtq)\r\n/* 7: */ {\r\n/* 8: 9 */ super(paramtq.e);\r\n/* 9:10 */ this.j = paramtq;\r\n/* 10: */ }", "Param createParam();", "Param createParam();", "Param createParam();", "public Value(){}", "public Number(int v)\n {\n val = v;\n }", "Type(int lnum) {\n\t\tsuper(lnum);\n\t}", "public ClassAImpl(int i) {\n super();\n this.i = i;\n }", "private SubscribePolicy(int value, String stringValue)\n/* 48: */ {\n/* 49:59 */ this.mValue = value;\n/* 50:60 */ values.addElement(this);\n/* 51:61 */ this.mStringValue = stringValue;\n/* 52: */ }", "ComponentParameterInstance createComponentParameterInstance();", "public Valor(Integer id_valor, String valor){\n\n //A variavel da classe Construtora vai receber a variavel que está vindo por parametro (This faz referencia a classe)\n this.id_valor = id_valor ;\n this.valor = valor ;\n }", "public LightParameter(Integer id, String labelKey)\r\n\t{\r\n\t\tsuper(id, labelKey);\r\n\t}", "public FactoryValue( ) \r\n {\r\n }", "EightSix(String n){\r\n // in order for us to use custom constructors we will need to use super.\r\n super(n);\r\n // Assigns the argument value to the string variable name.\r\n name = n;\r\n }", "public PotionEffect(int paramInt1, int paramInt2)\r\n/* 16: */ {\r\n/* 17: 28 */ this(paramInt1, paramInt2, 0);\r\n/* 18: */ }", "public Gitlet(int a) {\n\n\t}", "private TypeOfContext(int value, String name, String literal) {\r\n\t\tthis.value = value;\r\n\t\tthis.name = name;\r\n\t\tthis.literal = literal;\r\n\t}", "public CreateUser(int age, String name){ // constructor\n userAge = age;\n userName = name;\n }", "public bwq(String paramString1, String paramString2)\r\n/* 10: */ {\r\n/* 11: 9 */ this.a = paramString1;\r\n/* 12:10 */ this.f = paramString2;\r\n/* 13: */ }", "public DynamicValue(int baseValue) {\n\t\tthis.baseValue = baseValue;\n\t\tthis.currentValue = baseValue;\n\t}", "private DatabaseType(Integer value, String displayValue, String className) {\n this.value = value;\n this.displayValue = displayValue;\n this.className = className;\n }", "public Card(int value)\n {\n //initialize the value instance variable\n this.value = value;\n }", "private EndpointType(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "public Constant (int value){\r\n this.value = value;\r\n\r\n }", "public Child() {\n\t\tsuper(20);\n\t}", "public Value() {\n }", "public Vertex(int value) {\n this(value, null);\n }", "public Number(int n) \n {\n nn = n; // initailize with the inputed value\n }", "public Parameters() {\n\t}", "public ArmasHija2(int objetoHija2){\r\n super(objetoHija2);\r\n this.objetoHija2=objetoHija2;\r\n }", "public ModelRunParameterValueRecord(Integer id, Integer modelRun, Integer modelRunParameter, String value) {\n super(ModelRunParameterValue.MODEL_RUN_PARAMETER_VALUE);\n\n set(0, id);\n set(1, modelRun);\n set(2, modelRunParameter);\n set(3, value);\n }", "public aed(World paramaqu)\r\n/* 9: */ {\r\n/* 10: 24 */ super(paramaqu);\r\n/* 11: */ }", "protected SDB_ServiceClass( String s )\n {\n name = s;\n nameHash.put( s, this );\n intValue = index;\n intHash.put( new Integer( intValue ), this );\n }" ]
[ "0.6717856", "0.6542155", "0.6473164", "0.6460598", "0.6440913", "0.62657136", "0.62426555", "0.6234829", "0.60747665", "0.6026149", "0.5981924", "0.5924654", "0.5870351", "0.5847577", "0.58327544", "0.58105415", "0.58053", "0.57825667", "0.5775769", "0.5766973", "0.57428473", "0.5742121", "0.5735504", "0.5724559", "0.571573", "0.56992394", "0.5693699", "0.5691162", "0.5687409", "0.5685484", "0.56748575", "0.5652184", "0.56486607", "0.5647646", "0.5634592", "0.56254756", "0.56238574", "0.5622571", "0.5617956", "0.56104887", "0.56060356", "0.560447", "0.5579579", "0.5575299", "0.55719674", "0.5565823", "0.5561139", "0.5556393", "0.5550331", "0.5541094", "0.5534693", "0.5531652", "0.5527734", "0.5527014", "0.5525883", "0.5516873", "0.55051285", "0.55044264", "0.55042255", "0.5498887", "0.54977757", "0.54949886", "0.5482275", "0.5443194", "0.5436748", "0.54351497", "0.54349595", "0.5433571", "0.5433349", "0.5433349", "0.5433349", "0.5432797", "0.5430483", "0.54234433", "0.5416896", "0.54114616", "0.54090136", "0.5407754", "0.54071563", "0.54039663", "0.5397942", "0.53911567", "0.53886026", "0.5383595", "0.5382494", "0.5377993", "0.5372058", "0.53665215", "0.5356721", "0.53558344", "0.53541785", "0.53538877", "0.5353355", "0.5350631", "0.534811", "0.5345027", "0.53382444", "0.53371066", "0.53355515", "0.5335399" ]
0.5860213
13
Creating a new Method "show" to display Values of the Weight and Name
void show() { System.out.println("Weight of the Cycle is = " + weight); System.out.println("Name of the Cycle is = " + name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String toString() {\n\t\treturn name() + \" \" + \"w:\" + weight + \" \" + \"d:\" + diameter;\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn String.format(\"%d-%d,%.2f\", v,w,weight);\r\n\t}", "@Override\n public String toString() {\n return String.valueOf(this.weight);\n }", "@Override\n\t\tpublic String toString() {\n\t\t\treturn u + \" and \" + v + \" with weight \" + weight;\n\t\t}", "@Override\n public String toString() {\n String strValue = \n (value instanceof Double) ? \n String.format(\"%.4f\", value) : \n value.toString();\n String strWeight = String.format(\"%.4f\", w);\n return \"{value: \" + strValue + \", weight: \" + strWeight + \"}\";\n }", "public void printInformation() {\n\n System.out.println(\"Name: \" + name);\n System.out.println(\"Weight: \" + weight);\n System.out.println(\"Shape: \" + shape);\n System.out.println(\"Color: \" + color);\n }", "@Override\n\tpublic String toString() {\n\t\treturn name+\" : \"+ weight +\" KG \"+(isMale?\", ─đ\":\", ┼«\")+ \", \"+education;\n\t}", "public String toString() {\n return super.toString() + \"\\n\" + \"Lowest measurable weight: \" + getMinWeight() + \"g\\n\" + \"Highest measurable weight: \" + getMaxWeight() + \"g\\n\";\n }", "public String toString()\n\t{\n\t\treturn (super.toString() + \" Weight: \" + weight + \" oz. Price: \" + cost());\n\t}", "public String toString() {\n\t\tString str = \"\";\n\t\tstr = String.format(\"%.2f lbs. @ %.2f /lbs.\\n%s\\t%.2f \", this.getWeight(), getPrice(), this.getName(), this.getCost());\n\t\treturn str;\n\t}", "public void displayValues()\n {\n \tSystem.out.println(\"The name of a bicycle is \"+name);\n \tSystem.out.println(\"The cost of a bicycle is \"+cost);\n \tSystem.out.println(\"The total numer of gears \"+gears);\n \t\n \t\n }", "public String toString(boolean showWeight) {\n\t\tString result = \"(\" + _source + \", \" + _sink;\n\n\t\tif (showWeight && hasWeight()) {\n\t\t\tresult += (\", \" + _weight);\n\t\t}\n\n\t\tresult += \")\";\n\t\treturn result;\n\t}", "public String showItemInfo()\n {\n return \"The room has 1 \" + currentItem.getDescription() \n + \" weighted \" + currentItem.getWeight() + \" pounds\"; \n }", "public String toString() {\r\n\t\treturn pDesc + \" \" + pWeight + \" lbs\";\r\n\t\t\t\t\r\n\t\t}", "public void printWeight(){\n\t\tSystem.out.printf(\"Cell [%d][%d] weight = %d\\n\",position[0],\n\t\t\t\tposition[1],weight);\n\t}", "public Weight getWeight();", "@Override\n public String toString(){\n return \"w=\" + value;\n }", "public void getInfo() {\n System.out.println(\"Content : \" + content);\n System.out.println(\"Name : \" + name);\n System.out.println(\"Location : (\" + locX + \",\" + locY + \")\");\n System.out.println(\"Weight : \" + String.format(\"%.5f\", weight) + \" kg/day\");\n System.out.println(\"Habitat : \" + habitat);\n System.out.println(\"Type : \" + type);\n System.out.println(\"Diet : \" + diet);\n System.out.println(\"Fodder : \" + String.format(\"%.5f\", getFodder()) + \" kg\");\n System.out.println(tamed ? \"Tame : Yes \" : \"Tame : No \");\n System.out.println(\"Number of Legs : \" + legs);\n }", "public java.lang.String toString() {\n\t\tString s=\"\";\n\t\ts+=String.format(\"%.2f\", weight);\n\t\t//s+=Double.toString(weight);\n\t\ts+=\" lbs. @ \";\n\t\ts+=DessertShoppe.cents2dollarsAndCents(price_per_pound);\n\t\ts+=\" /lb.\\t \\n\";\n\t\ts+=String.format(\"%-25s%6s\\n\",name, DessertShoppe.cents2dollarsAndCents(this.getCost()));\n\t\treturn s;\n\t}", "public void show()\n {\n System.out.println( getFullName() + \", \" +\n String.format(Locale.ENGLISH, \"%.1f\", getAcademicPerformance()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getSocialActivity()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getCommunicability()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getInitiative()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getOrganizationalAbilities())\n );\n }", "public String toString(){\n \treturn (weight + \"\t\" + query);\n }", "public String toString(){\n return ( \"\\nName: \" + name \n + \"\\nPhone Number: \" + phoneNumber\n + \"\\nAge: \" + age \n + \"\\nWeight: \" + weight );\n }", "public String display(){\r\n\t\tif(this.AWD==true){\r\n\t\t\treturn super.display()+\" \"+model+\" \"+this.price+\"$ SF: \"+this.safetyRating+\" RNG: \" +this.maxRange+\" AWD\";\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn super.display()+\" \"+model+\" \"+this.price+\"$ SF: \"+this.safetyRating+\" RNG: \" +this.maxRange+\" 2WD\";\r\n\t\t}\r\n \r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn weight + \"\\t\" + query;\n\t}", "public String getWeight() {\n return weight;\n }", "public void displayModelDetails() {\n System.out.println(\"Name: \" + getFirstName() + \" \" + getLastName());\n System.out.println(\"Height: \" + getHeightInFeetAndInches());\n System.out.println(\"Weight: \" + getWeight() + \" pounds\");\n String travelMessage = canTravel ? \"yep\" : \"nope\";\n System.out.println(\"Travels: \" + travelMessage);\n String smokeMessage = smokes ? \"yep\" : \"nope\";\n System.out.println(\"Smokes\" + smokeMessage);\n System.out.println(\"Hourly rate: $\" + calculatePayDollarsPerHour());\n }", "public String toString() {\r\n return name + \" \" + height + \" \" + width + \" \" + depth + \" \" + weight;\r\n }", "public String getWeight()\r\n\t{\r\n\t\treturn weight;\r\n\t}", "@Override\r\n\t\tpublic String toString() {\n\t\t\treturn \" \" + wt + \"- \" + val;\r\n\t\t}", "@Override\n public String toString() {\n return super.toString() + \"| Weight: \" + weight + \"\" + \"| Time of PIN: \" + timePin + \"| Size of Screem: \" + sizeScreem;\n }", "public void showAttributes() {\r\n\t\tSystem.out.println(\"Name : \"+getName());\r\n\t\tSystem.out.println(\"ID : \"+getId());\r\n\t\tSystem.out.println(\"Percentage : \"+getPercentage());\r\n\t\tSystem.out.println(\"Skills : \");\r\n\t\tfor(String skill:getSkills()) {\r\n\t\t\tSystem.out.print(skill+\" \");\r\n\t\t}\r\n\t\t\r\n\t}", "public String toString() {\n return label + \"(\" + MathUtil.doubleString(value, 1) + \")\\tweight: \" + MathUtil.doubleString(weight, 2) + \"\\tFeatureVector: \" + featureVector.toString();\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"age is \"+age+\" name is \"+name+\" weight is \"+weight+\" height is \"+height+\" \"\n\t\t\t\t+ \"date of birth is \"+dob;\n\t}", "public void modelShow() {\n\t\tSystem.out.println(\"秀衣服\");\n\t}", "@Override\n public String toString()\n {\n \treturn getName() + \" (\" + numItem + \")\";\n }", "public String getItemInformation()\n {\n return this.aDescription + \" qui a un poids de \" + this.aWeight;\n\n }", "public String toString() {\n return weight + \"\\t\" + query;\n }", "public String toString() {\n\t\tString resultString = \"I am a weighted Instances object.\\r\\n\" + \"I have \" + numInstances()\n\t\t\t\t+ \" instances and \" + (numAttributes() - 1) + \" conditional attributes.\\r\\n\"\n\t\t\t\t+ \"My weights are: \" + Arrays.toString(weights) + \"\\r\\n\" + \"My data are: \\r\\n\"\n\t\t\t\t+ super.toString();\n\n\t\treturn resultString;\n\t}", "public String toString() {\n if (this.weight == null) {\n return \"<\" + this.from + \",\" + this.to + \">\";\n } else {\n return \"<\" + this.from + \",\" + this.to + \",\" + this.weight + \">\";\n } // if/else\n }", "@Override\n public String toString() {\n return (getId() + \" \" + getName() + \" \" + getPrice() + \" \" + getStock() \n + \" \" + getMin() + \" \" + getMax());\n }", "@Override\n public String toString() {\n return (getName() + \" (\" + getCost() + \")\");\n }", "@Override\n public String toString(){\n return \"<wand: \" + getName() + \" (\" + getType() + \")>\";\n }", "public void displayAllInfo(){\nSystem.out.println(\"Dimensions of the room - length in feet : \" + room.getLengthInFeet() + \" width in feet :\" + room.getWidthInFeet());\nSystem.out.println(\"Price per square foot :\" + pricePerSquareFoot);\nSystem.out.println(\"Total Cost :\" + calculateTotalCost());\n}", "public double getWeight(){return this.aWeight;}", "public float getWeight();", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder(\"WeightedGraph: \");\n for (int i = 0; i < getSize(); i++) {\n sb.append(getVertex(i) + \"[\" + i + \"]:{\");\n for (Edge e : neighbors.get(i)) {\n sb.append(\"{\" + e.getVert1() + \",\" + e.getVert2() + \",\" + ((WeightedEdge) e).getWeight() + \"}\");\n }\n sb.append(\"\\n\");\n }\n return sb.toString();\n }", "public String getString(){\n\t\treturn \t_name + String.format(\"\\nWeight: %s\", _weight) + String.format( \"\\nNumber of wheels: %s\", _numberOfWheels ) + \n\t\t\t\tString.format( \"\\nMax of speed: %s\", _maxOfSpeed ) + String.format( \"\\nMax acceleration: %s\", _maxAcceleration ) + \n\t\t\t\tString.format( \"\\nHeight: %s\", _height ) + String.format( \"\\nLength: %s\", _length ) + String.format( \"\\nWidth: %s\", _width );\n\t}", "double info() {\n System.out.println(\"Name: \" + name);\n System.out.println(\"Quantity: \" + Integer.toString(quantity));\n System.out.println(\"Price: \" + Double.toString(price));\n System.out.println(\"Total cost: \" + Double.toString(totalCost) + \"\\n\");\n return totalCost;\n }", "@Override\r\n public String toString() {\r\n return getName() + \"(\" + getNumber() + \")\";\r\n }", "public ByWeight(String name, double cost, double units)\n\t{\n\t\tsuper(name);\n\t\tprice = cost;\n\t\tweight = units;\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n\n sb.append(String.format(\"#Name: %s\", this.name))\n .append(\"\\n\");\n sb.append(String.format(\"##Health: %.2f// Energy: %d// Intelligence: %.2f\", this.health, this.energy, this.intelligence))\n .append(\"\\n\");\n\n return sb.toString();\n }", "@Override\n\tpublic String toString()\n\t{\n\t\treturn String.format(\"%-25s: %d\", this.getSequence(), this.getWeight());\n\t}", "public double getWeight(){\n return weight;\n }", "public String getItem()\n {\n // put your code here\n return \"This item weighs: \" + weight + \"\\n\" + description + \"\\n\";\n }", "public void showInfomation()\n {\n\t System.out.println(\"\\nSide\"+\"\\n\\tnumber: \"+ super.getNumber() +\"\\n\\tdishName: \" + super.getDishName() + \"\\n\\tmaker: \"+maker+\"\\n\\tprice : \" + super.getPrice()+\"$\");\n }", "public String toString() {\n\t\tif(scale=='K'||scale=='k'){\r\n\t\t\treturn String.format(\"%.2f %s\"+\"ilograms\", wValue, scale);\r\n\t\t} else {\r\n\t\t\tscale=Character.toUpperCase(scale);\r\n\t\t\treturn String.format(\"%.2f %s\"+\"ounds\", wValue, scale);\r\n\t\t}\r\n\t}", "public void display() {\r\n\t\tArrayList<String> vnames = new ArrayList<>(vces.keySet());\r\n\t\tfor (String vname : vnames) {\r\n\t\t\tString str = vname + \" => \";\r\n\t\t\tVertex vtx = vces.get(vname);\r\n\r\n\t\t\tArrayList<String> nbrnames = new ArrayList<>(vtx.nbrs.keySet());\r\n\t\t\tfor (String nbrname : nbrnames) {\r\n\t\t\t\tstr += nbrname + \"[\" + vtx.nbrs.get(nbrname) + \"], \";\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(str + \".\");\r\n\t\t}\r\n\t}", "public String toString()\n {\n return \"Name: \" + name + \"\\tTest1: \" + test1 + \"\\tTest2: \" +\n test2 + \"\\tAverage: \" + getAverage();\n }", "@Override\n public String toString() {\n return String.format(\"Name: %s, Venom ratings: %.2f\", name, venomRating);\n }", "public void display()\n\t{\n\t\tSystem.out.println(\"Bike No.\\t\"+\n\t\t\t\t\"Phone no.\\t\"+\n\t\t\t\t\"Name\\t\"+\n\t\t\t\t\"No. of days\\t\"+\n\t\t\t\t\"Charge\");\n\t\tSystem.out.println(bno+\n\t\t\t\t\"\\t\"+phno+\n\t\t\t\t\"\\t\"+name+\n\t\t\t\t\"\\t\"+days+\n\t\t\t\t\"\\t\"+charge);\n\t}", "public String toString(int age, int weight) {\n\t\treturn String.format(\"%5.3f mi\", getDistance()) + \"\\t\" +\n\t\t String.format(\"%02d:%02d:%02d\", (int)(getTime() / 3600), (int)(getTime() / 60) % 60,\n\t\t\t\t (int)(getTime()) % 60) + \"\\t\" +\n\t\t String.format(\"%5.3f mph\", (double)getSpeed() / 10.0) + \"\\t\" + \n\t\t getIncline() + \" %\\t\" +\n\t\t (int)getCalories(age, weight) + \" Cal\";\n\t}", "@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(itemName + \" \" + price + \"kr \" + tax + \"% \");\n return builder.toString();\n }", "public void displayBmi () {\n\t\t\tSystem.out.println (\"Underweight =< 18.5\\nNormal weight = 18.5-24.9\\nOverweight = 25 - 29.9\\nObese = 30 or higher\");\n\t\t}", "void display()\r\n\t{\r\n\t\tSystem.out.println(\"bikeid=\"+bikeid+\" bike name==\"+bikename);\r\n\t}", "public void show() {\n super.show(color, value.toString());\n }", "@Override\n\tpublic String toString() {\n\t\treturn this.i + \" \" + this.w;\n\t}", "public int getWeight();", "public void display() {\r\n String kind;\r\n if (profit == true) {\r\n kind = \"profit\";\r\n }\r\n\r\n else kind = \"non-profit\";\r\n System.out.println(name + \" is a \" + kind + \" organization that has\" + \" \" + revenue + \" dollars in revenue\" );\r\n }", "@Override\n\tpublic Object Display() {\n\t\treturn \"Avg/Max/Min temperature = \" + RoundFloatToString(temperatureSum / numReadings) + \"F/\" + maxTemp + \"F/\" + minTemp + \"F\";\n\t}", "public void display() {\n String box = \"\\n+--------------------------------------------+\\n\";\n String header = \"| \" + name;\n String lvlStat = \"Lv\" + level;\n for (int i=0; i<42-name.length()-lvlStat.length(); i++) {\n header += \" \";\n }\n header += lvlStat + \" |\\n\";\n System.out.println(box + header + \"| \" + getHealthBar() + \" |\" + box);\n }", "@Basic\r\n\tpublic Weight getWeight(){\r\n\t\treturn weight;\r\n\t}", "public String showName()\r\n {\r\n return name;\r\n }", "public String toString() {\n\t\treturn \"\\t\" + this.getName() + \" \" + this.getAmount();\n\t}", "@Override\r\n public String toString() {\r\n return this.objectName + \"{Name: \" + this.getName() + \", index: \" + this.getIndexList() + \", Measured m/z: \" + this.getMeasureValues() + \", Intensities: \" + this.getItensityValues() + \"}\";\r\n }", "public void showInfomation()\n\t{\n\t\tSystem.out.println(\"\\nMeal\"+\"\\n\\tnumber: \"+ number +\"\\n\\tdishName: \" + dishName +\"\\n\\tprice : \" + price+\"$\");\n\t}", "@Override\n public String getRecordDetail() {\n return \"[\" + type + \"] \"\n + \"[\" + people + \" pax] \"\n + \"[\" + \"Total: $\" + amount + \"] \"\n + \"[\" + amountToMoney() + \" per person] \"\n + nameList;\n }", "public double getWeight()\r\n {\r\n return this.aWeight ;\r\n }", "public String toString(){\n return \"Name: \" +name+\", School Name: \"+school;\n }", "public void printSpeciesData(){\n\n System.out.println(\"A \" + this.name + \" has \" + this.legs + \" legs, \" + this.numberOfWings +\n \" wings, it is \" + this.wingColor + \", and likes a plant called \" + this.favFlower);\n\n }", "public String toString()\n {\n int spaceLength = this.lengthToSecondCol - this.name.length();\n String space = \" \";\n String n = \" \";\n String s;\n if(showName)\n {\n n = this.name;\n while(spaceLength > 1)\n {\n spaceLength--;\n space += \" \";\n }\n }\n\n switch (this.type)\n {\n case Pwr.eType_Float32:\n case Pwr.eType_Float64:\n s = n + space + this.valueFloat;\n break;\n case Pwr.eType_UInt32:\n case Pwr.eType_UInt64:\n case Pwr.eType_Int32:\n case Pwr.eType_Int64:\n case Pwr.eType_Enum:\n case Pwr.eType_Mask:\n\n //s = n + space + this.valueInt;\n\ts = n + space + (new Integer( (this.valueInt & 65535) )).intValue();\n break;\n\n case Pwr.eType_UInt16:\n s = n + space + (new Integer( (this.valueInt & 65535) )).intValue();\n break;\n case Pwr.eType_Int8:\n case Pwr.eType_UInt8:\n s = n + space + (new Integer(this.valueInt)).byteValue();\n break;\n case Pwr.eType_Int16:\n s = n + space + (new Integer(this.valueInt)).shortValue();\n break;\n case Pwr.eType_Boolean:\n if(this.valueBoolean)\n {\n s = n + space + \"1\";\n }\n else\n {\n s = n + space + \"0\";\n }\n break;\n default:\n s = n + space + this.valueString;\n break;\n }\n return s;\n }", "@Override\r\n public String toString() {\n return this.name + \":\" + this.score + \":\" + this.freq;\r\n }", "public float getWeight() {\n return weight;\n }", "public float getWeight() {\n return weight;\n }", "@Override\n public String toString() {\n return name + \"\\t\\t\\t\" + number;\n }", "@Override\n public double getWeight() {\n return this.weight;\n }", "public String getInfo(){\n return \" name: \" + this.name;\n }", "public void print() {\n super.print();\r\n System.out.println(\"Hourly Wage: \" + hourlyWage);\r\n System.out.println(\"Hours Per Week: \" + hoursPerWeek);\r\n System.out.println(\"Weeks Per Year: \" + weeksPerYear);\r\n }", "@Override public String toString(){\r\n \tint counter =1;\r\n StringBuilder output = new StringBuilder();\r\n for (Iterator<Meters> i = MetersList.iterator(); i.hasNext();){\r\n \toutput.append(\"Meter #:\"+counter+\" \");\r\n output.append(i.next().toString());\r\n output.append(\"\\n\");\r\n counter ++;\r\n }\r\n return output.toString();\r\n }", "public double getWeight() {\n\t\n\t\treturn this.weight;\t \n\t}", "@Override\n public String toString() {\n \treturn \"내 이름은\" + name + \", \" + \"내 학번은\" + number + \", \" + \"나는 \" + gender + \"자야\";\n }", "public double getWeight(){\n\t\treturn weight;\n\t}", "public double getWeight(){\n\t\treturn this._weight;\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 }", "public void showInfo()\n\t{\n\t\tSystem.out.println(\"Account Number : \"+getAccountNumber());\n\t\tSystem.out.println(\"Balance : \"+getBalance());\n\t\tSystem.out.println(\"Tenure Year : \"+tenureYear);\n\t}", "@Override\n\tpublic void display() {\n\t\tSystem.out.println(name);\n\t}", "@Override\n public void display(){\n System.out.println(\"Student id: \"+getStudentId()+\"\\nName is: \"+getName()+\"\\nAge :\"+getAge()+\"\\nAcademic year: \"+getSchoolYear()\n +\"\\nNationality :\"+getNationality());\n }", "public void display() {\n \t\tSystem.out.printf(\"|%6s \", String.valueOf(idNumber));\n\t\tSystem.out.printf(\"|%13s |\", name);\n\t\tSystem.out.printf(\"%10s |\", quantity);\n\t\tSystem.out.printf(\"%8.2f |\", price);\n\t\tSystem.out.printf(\"%16s |\", \" \");\n\t\tSystem.out.printf(\"%16s |\", \" \");\n\t\tSystem.out.println();\n }", "public String toString() {\n return getName() + \", \" + getAuthor() + \", \" + getPrice();\n }", "public String toString(){\r\n\t\tString str = \"<\";\r\n\t\tString nameOne;\r\n\t\tif (isSuperGiant() == true){\r\n\t\t\tnameOne = \"SuperGiant\";\r\n\t\t}\r\n\t\telse{\r\n\t\t\tnameOne = \"Red Giant\";\r\n\t\t}\r\n\t\tString nameTwo = getName();\r\n\t\tdouble massOne = getMass();\r\n\t\tdouble sizeOne = getSize();\r\n\t\tString strMass = roundOffTo2DecPlaces((float) massOne);\r\n\t\tString strSize = roundOffTo2DecPlaces((float) sizeOne);\r\n\t\tstr = str+nameTwo+\"> Is a \"+nameOne+\" Star with mass = <\"+strMass+\">KG and size = <\"+strSize+\"> miles.\";\r\n\t\treturn str;\r\n\t}", "public float getWeight() {\n return weight;\n }" ]
[ "0.71014297", "0.7066662", "0.6904939", "0.6703238", "0.66765183", "0.6618225", "0.658102", "0.6525541", "0.6457602", "0.6442496", "0.6383548", "0.6331921", "0.63286525", "0.63057566", "0.6273204", "0.6264117", "0.62512296", "0.62334794", "0.6224167", "0.62204254", "0.618312", "0.61816275", "0.61770695", "0.6169924", "0.6140775", "0.61379683", "0.61050075", "0.61012685", "0.6087664", "0.6068668", "0.60561585", "0.6041254", "0.60243076", "0.60230285", "0.60084534", "0.60015434", "0.59961337", "0.5975183", "0.59621745", "0.5955147", "0.5951392", "0.59468955", "0.5921981", "0.5921164", "0.5914463", "0.59138495", "0.5894923", "0.5884391", "0.58840543", "0.5867009", "0.586673", "0.5851309", "0.58498013", "0.5849584", "0.5846004", "0.58393735", "0.58379644", "0.5837447", "0.58304423", "0.58213854", "0.58192855", "0.58186066", "0.58142275", "0.58124", "0.5805178", "0.5793735", "0.57866806", "0.57820296", "0.57735187", "0.57726604", "0.5768773", "0.57332975", "0.5731461", "0.5728403", "0.57198215", "0.57176024", "0.5714794", "0.571257", "0.57055545", "0.5704384", "0.5699936", "0.5691231", "0.5691231", "0.5681995", "0.56682974", "0.5666986", "0.5665932", "0.56648296", "0.56646794", "0.56627667", "0.5652392", "0.5648738", "0.5646022", "0.56427777", "0.5642485", "0.564163", "0.5635992", "0.5628395", "0.56224114", "0.5621618" ]
0.7128353
0
Get value of name.
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }", "String getValueName();", "@Override\n\tpublic String getValue() {\n\t\treturn name;\n\t}", "public Object getValue(final String name) {\r\n return this.params.get(name);\r\n }", "public String getValue(String name){\n if(!kchain.containsKey(name))return akargs.get(name);\n else return kchain.get(name).toString();\n }", "public Value lookup (String name){\n Closure exist = find_var(name);\n return exist.getValues().get(name);\n }", "public Object getValue(String name) {\n Object value = localScope.get(name);\n if ( value!=null ) {\n return value;\n }\n // if not found\n BFlatGUI.debugPrint(0, \"undefined variable \"+name);\n return null;\n }", "public static String getQueryValue(String name) {\n String result = null;\n Map<String, ArrayList<String>> query = getQuery();\n\n if (query != null) {\n result = query.get(name).get(0);\n }\n\n return result;\n }", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "public String get(final String name) {\r\n return (String) properties.get(name);\r\n }", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "public String getName() { return (String)get(\"Name\"); }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public String getFieldValue(LVValue name) throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\ttry\n\t\t{\n\t\t\tclearStatus();\n\t\t\tLDBRecord record=myData.record;\n\t\t\tif (record!=null) return record.getStringValue(name.getStringValue());\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t\treturn \"\";\n\t}", "public YangString getNameValue() throws JNCException {\n return (YangString)getValue(\"name\");\n }", "public YangString getNameValue() throws JNCException {\n return (YangString)getValue(\"name\");\n }", "public String getParamValue(String name) {\n\t\treturn params.get(name);\n\t}", "@Override\n public V get( final K name )\n {\n final ICacheElement<K, V> element = this.getCacheControl().get( name );\n\n return ( element != null ) ? element.getVal() : null;\n }", "public String name() {\n return myStrVal;\n }", "int value(String name);", "public T get(String name) {\n\t\treturn get(name, 0);\n\t}", "String getVal();", "public String getParameterValue(String name) {\n\treturn (String) _parameters.get(name);\n }", "public String getParameterValue(String name) {\n\t\treturn _parameters.getParameterValue(name);\n\t}", "public AXValue getName() {\n return name;\n }", "public String readValue(final String name) {\r\n\r\n\t\tfinal StringTokenizer tok = new StringTokenizer(name, \".\");\r\n\t\twhile (tok.hasMoreTokens()) {\r\n\t\t\tfinal String subName = tok.nextToken();\r\n\t\t\tif (!readNextTag(subName)) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn readNextText(this.in.getTag().getName());\r\n\t}", "String getMetadataValue( String name )\n throws MetadataNameNotFoundException;", "public String getParameter( String name )\n {\n return getParameter(VAL, name, null, false);\n }", "Optional<String> getNameForValue(V value);", "public String getProperty(String name);", "public double get (String name) {\n return this.lookup(name);\n }", "public String getName(){\n\n //returns the value of the name field\n return this.name;\n }", "public int getValue(String name) {\r\n // Looks things up in the symbol table\r\n return symbolTable.getValue(name);\r\n }", "public String getProperty(String name) {\n return this.getProperty(name, null);\n }", "public String getName() {\n return (String) getValue(NAME);\n }", "public String getValue();", "public String getValue();", "public String getValue();", "public String getValue();", "public String getValue();", "public String getValue();", "public String getValue();", "public String getValue();", "public String getValue();", "public ValueDecl lookupValue(Identifier name) {\n Pair<Integer, ValueDecl> entry = valueScope.get(name);\n if (entry == null) return null;\n return entry.getRight();\n }", "public String getName() { return name.get(); }", "public Object getValue(String name)\n\t\t{\n\t\t\tString[] names = name.split(ResourcesMetadata.DOT);\n\t\t\tObject rv = m_structuredArtifact;\n\t\t\tif(rv != null && (rv instanceof Map) && ((Map) rv).isEmpty())\n\t\t\t{\n\t\t\t\trv = null;\n\t\t\t}\n\t\t\tfor(int i = 1; rv != null && i < names.length; i++)\n\t\t\t{\n\t\t\t\tif(rv instanceof Map)\n\t\t\t\t{\n\t\t\t\t\trv = ((Map) rv).get(names[i]);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\trv = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn rv;\n\n\t\t}", "public Object getParameter(String name) {\n\t\tIterator itr = this.parameters.getInParameters().iterator();\n\t\twhile(itr.hasNext()){\n\t\t\tParameterExtendedImpl param = ((ParameterExtendedImpl)itr.next());\n\t\t\t\n\t\t\tif(param.getName() != null && param.getName().equalsIgnoreCase(name)){\t\t\t\t\n\t\t\t\treturn param.value;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate static<T, K> T getValue(Entry<K> entry, String name){\n\t\tObject var = entry.getEntryContainer().resolveAttribute(name, entry);\n\t\treturn (T) var;\n\t\t\n\t}", "Optional<V> get(String name);", "public String parseNamedItemValue(String name, Node node) {\n\t\tString value = null;\n\t\tNamedNodeMap namedNodeMap = node.getAttributes();\n\t\tNode namedItem = namedNodeMap.getNamedItem(name);\n\n\t\tif (namedItem != null && namedItem.getNodeType() == 2) {\n\t\t\tvalue = namedItem.getNodeValue();\n\t\t}\n\t\treturn value;\n\t}", "public Object get(String name) {\n if (name == null) {\n return this.def;\n }\n return super.get(name);\n }", "public String getValue() throws IOException\r\n {\r\n return getDictionary().getNameAsString( \"V\" );\r\n }", "public String getValue(String xmlName)\n {\n int index = getIndex(xmlName);\n \n if (index < 0)\n {\n return null;\n }\n return getValue(index);\n }", "public Variable getVariable(String name);", "String getProperty(String name);", "public String getParameter(String name) {\n String[] values = getParameterValues(name);\n return (values != null) ? values[0] : null;\n }", "public String key(String name) {\r\n String value;\r\n value = this.children.stream().filter(child -> child.equals(name)).findFirst().get().children.get(0).data;\r\n return value;\r\n }", "public String getAttributeValue(final String name) {\n return getAttributeValue(name, \"\");\n }", "String getVarName(String name);", "public String getParameter(String name) {\r\n return _parameters.get(name);\r\n }", "public String getConfigurationValue(String name);", "protected ProbeValue getAttribute(String name) {\n if (values != null) {\n return values.get(name);\n } else {\n return null;\n }\n }", "public T get(String name, int start) {\n\t\tint sz = size();\n\t\tfor (int i = start; i < sz; i++) {\n\t\t\tString n = getName(i);\n\t\t\tif (name == null) {\n\t\t\t\tif (n == null)\n\t\t\t\t\treturn getVal(i);\n\t\t\t} else if (name.equals(n)) {\n\t\t\t\treturn getVal(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String getProperty( String name )\n {\n return getProperty( name, false );\n }", "public String getAttribute(String name) {\n return _getAttribute(name);\n }", "public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}", "public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}", "public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}", "private int entityValue(String name)\n\t{\n\t\treturn map.value(name);\n\t}", "public String getter() {\n\t\treturn name;\n\t}", "public static String getProperty(String name) {\n return propertyMap.getProperty(name);\n }", "public String getString(String name)\r\n {\r\n try {\r\n return lookup.get(name);\r\n } catch(Exception e) {}\r\n \r\n return null;\r\n }", "public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }", "public String getParameter(String name) {\r\n\t\treturn parameters.get(name);\r\n\t}", "public String getParam(String name) {\n // For now, we ignore multiple instances of the same parameter (which is otherwise valid).\n // Also, this is O(n). If it ever becomes important, switch to HashMap<LinkedList>, though\n // order will be lost.\n\n for (NameValuePair pair : queryValues) {\n if (pair.name.equals(name)) {\n return pair.value;\n }\n }\n\n return null;\n }", "public String getParameter(String name)\n {\n return parameters.get(name);\n }", "public String getParameter(String name) {\n\t\treturn parameters.get(name);\n\t}", "public Object getPropertyValue(String name, int index)\n\t\t{\n\t\t\tString[] names = name.split(ResourcesMetadata.DOT);\n\t\t\tObject rv = null;\n\t\t\tif(m_properties == null)\n\t\t\t{\n\t\t\t\tm_properties = new Vector();\n\t\t\t}\n\t\t\tIterator it = m_properties.iterator();\n\t\t\twhile(rv == null && it.hasNext())\n\t\t\t{\n\t\t\t\tResourcesMetadata prop = (ResourcesMetadata) it.next();\n\t\t\t\tif(name.equals(prop.getDottedname()))\n\t\t\t\t{\n\t\t\t\t\trv = prop.getValue(index);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn rv;\n\n\t\t}", "public String getProperty(String name){\r\n\t\treturn properties.getProperty(name);\r\n\t}", "public String getSubsvalueFromDataStore(String aName) {\n\t\tSubsValue subsval = DataStore.getInstance().getSubsValue(aName);\n\t\tif (subsval != null) {\n\t\t\treturn subsval.getValue();\n\t\t} else {\n\t\t\tlogger.error(\"No SubsValue found for : \" + aName);\n\t\t\treturn \"?\" + aName + \"?\";\n\t\t}\n\t}", "public String getValue() throws SdpParseException {\n\t\tNameValue nameValue = getAttribute();\n\t\tif (nameValue == null)\n\t\t\treturn null;\n\t\telse {\n\t\t\tObject value = nameValue.getValue();\n\t\t\tif (value == null)\n\t\t\t\treturn null;\n\t\t\telse if (value instanceof String)\n\t\t\t\treturn (String) value;\n\t\t\telse\n\t\t\t\treturn value.toString();\n\t\t}\n\t}", "String getName( String name );", "public GenericName getName() {\n return Names.parseGenericName(codeSpace, null, value);\n }", "public String getVariable(String _name) {\r\n\t\treturn getVariable(_name, \",\");\r\n\t}", "Object getProperty(String name);", "String value();" ]
[ "0.7750309", "0.76001453", "0.7525621", "0.7366065", "0.7199267", "0.71103513", "0.703028", "0.69870234", "0.6908417", "0.6908417", "0.6908417", "0.6908417", "0.6908417", "0.6908417", "0.6878752", "0.686022", "0.686022", "0.686022", "0.686022", "0.686022", "0.686022", "0.686022", "0.686022", "0.686022", "0.686022", "0.68377525", "0.6835175", "0.6831589", "0.68033147", "0.68033147", "0.6757852", "0.67574286", "0.6726483", "0.6724576", "0.6717603", "0.67051107", "0.6699974", "0.6629811", "0.6620371", "0.6582372", "0.6545265", "0.65343505", "0.65220946", "0.65097946", "0.6507466", "0.65017545", "0.6499807", "0.6479386", "0.6440901", "0.6430017", "0.6430017", "0.6430017", "0.6430017", "0.6430017", "0.6430017", "0.6430017", "0.6430017", "0.6430017", "0.6409239", "0.6397614", "0.63923275", "0.6390773", "0.63763875", "0.63691926", "0.6367429", "0.63527155", "0.635093", "0.6343362", "0.6336591", "0.6334175", "0.6329455", "0.6317917", "0.6316728", "0.63072973", "0.629616", "0.6287053", "0.62814385", "0.62813824", "0.6269517", "0.62628573", "0.6261064", "0.6261064", "0.6261064", "0.6260428", "0.62459415", "0.6245164", "0.62257916", "0.62184095", "0.62139946", "0.62078834", "0.6196666", "0.6177001", "0.61746407", "0.6170574", "0.61696553", "0.6166189", "0.6160366", "0.615378", "0.61519414", "0.6151706", "0.6150215" ]
0.0
-1
Set the value for name.
public void setName(String name) { this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName(String value) {\n\t\tname = value;\n\t}", "public void setName(String value) {\n this.name = value;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(java.lang.String value) {\n this.name = value;\n }", "public void setName(java.lang.String value);", "public void setName(java.lang.String value);", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "public void setNameValue(String nameValue) throws JNCException {\n setNameValue(new YangString(nameValue));\n }", "public void setNameValue(String nameValue) throws JNCException {\n setNameValue(new YangString(nameValue));\n }", "public void setName(String val) {\n name = val;\n }", "public void setName(String val) {\n this.name = val;\n }", "public void setName(java.lang.CharSequence value) {\n this.name = value;\n }", "public final void setName(String name) {_name = name;}", "public void setName(String name) {\n fName= name;\n }", "public void setName (String n){\n\t\tname = n;\n\t}", "public void setName(AXValue name) {\n this.name = name;\n }", "@JsonSetter(\"name\")\r\n public void setName (String value) { \r\n this.name = value;\r\n }", "public void setName(String Name){\r\n name = Name;\r\n }", "private void setName(java.lang.String name) {\n System.out.println(\"setting name \"+name);\n this.name = name;\n }", "public void setName(String n){ name=n; }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String inName)\n {\n\tname = inName;\n }", "public static void setName(String n){\n\t\tname = n;\n\t}", "public void setName(String inName)\n {\n name = inName;\n }", "public void setName(String name){\n \t\tthis.name = name;\n \t}", "public void setName(String name) {\n \tthis.name = name;\n }", "public void setName(String name) {\n \tthis.name = name;\n }", "@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\t_name = name;\r\n\t}", "public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$26);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$26);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }", "public void setName(String name) {\n\t this.name = name;\n\t }", "public final void setName(final GenericName name) {\n this.value = name.toString();\n final NameSpace scope = name.scope();\n if (scope != null && !scope.isGlobal()) {\n codeSpace = scope.name().toString();\n }\n }", "public void setName(String name){\n\t\tthis.name = name;\n\t}", "public void setName(String name){\n\t\tthis.name = name;\n\t}", "public void setName(String name){\n\t\tthis.name = name;\n\t}", "@Override\n public void setName(String name)\n {\n checkState();\n this.name = name;\n }", "public final void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String n) {\r\n name = n;\r\n }", "public void setName(@Nullable String value) {\n getElement().setName(value);\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/name\",v);\n\t\t_Name=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}", "public void setName(String name) {\n\t\tName = name;\n\t}", "public void setName(String s) {\n\t\t\n\t\tname = s;\n\t}", "@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}", "void setName(String name_);", "public void setName(String nameIn) {\n name = nameIn;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\r\n \t\tthis.name = name;\r\n \t}", "@JsonSetter(\"name\")\n public void setName (String value) { \n this.name = value;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(final String name);", "public void setName(String name) {\t\t\r\n\t\tthis.name = name;\t\t\r\n\t}", "protected void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName (String n) {\n name = n;\n }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "public void setName(String name) {\r\n this.name = name;\r\n }", "@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\n\t}", "public void setName(String s) {\n this.name = s;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }" ]
[ "0.84264684", "0.83316606", "0.8191679", "0.8191679", "0.8191679", "0.8124033", "0.8124033", "0.8124033", "0.8115681", "0.8072459", "0.8072459", "0.80060965", "0.79916394", "0.79916394", "0.79916394", "0.7978473", "0.7978473", "0.7957", "0.79275316", "0.780971", "0.7719728", "0.7700184", "0.7655212", "0.7653059", "0.7650904", "0.7641591", "0.7630116", "0.7598132", "0.7581096", "0.7581096", "0.7581096", "0.7577888", "0.7577888", "0.7577888", "0.75704944", "0.7563234", "0.7560057", "0.75586617", "0.755569", "0.755569", "0.75529253", "0.75464624", "0.75453615", "0.754424", "0.75408673", "0.7536037", "0.7536037", "0.7536037", "0.75355184", "0.7535317", "0.7534925", "0.7530857", "0.7530364", "0.7527561", "0.7521654", "0.74985605", "0.7495388", "0.7488737", "0.7487859", "0.7484437", "0.7477377", "0.7474771", "0.7473964", "0.7473964", "0.7473964", "0.7473964", "0.7473964", "0.7473964", "0.7473964", "0.74734634", "0.7472346", "0.7463822", "0.74593693", "0.74593693", "0.74593693", "0.74586755", "0.74570006", "0.74570006", "0.74570006", "0.74570006", "0.7455558", "0.7455558", "0.7455558", "0.74547464", "0.7454082", "0.7453876", "0.744697", "0.744697", "0.7442374", "0.7442374", "0.7442374", "0.7442374", "0.7442374", "0.7442374", "0.7442374", "0.7442374", "0.7442374", "0.7442374", "0.7442374", "0.7442374", "0.7442374" ]
0.0
-1
[Give the description for method].
public void addMethod(MethodInfo methodInfo) { lstMethodInfo.add(methodInfo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "public void method(){}", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "public abstract void description();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void method_201() {}", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "void method();", "void method();", "public void method_202() {}", "public void method_4270() {}", "public E16_OverloadJavaDoc() {\n System.out.println(\"Planting a seedling\");\n }", "public void method1()\r\n\t{\r\n\t}", "public abstract String description();", "public abstract String description();", "public void amethod() {\n\t}", "public void method_199() {}", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\n\tpublic void myMethod() {\n\t\t\n\t}", "@Override\n public void setDescription(String arg0)\n {\n \n }", "public void method_115() {}", "@Override\n\tpublic void anular() {\n\n\t}", "public void method_193() {}", "public void woke(){\n\n //TODO\n\n }", "protected abstract MethodDescription accessorMethod();", "@Override\n public String getDescription() {\n return DESCRIPTION;\n }", "public void method_192() {}", "public void foo() {\r\n\t}", "public void doSomething() {\n \n }", "void applyDescription(Operation operation, Method method);", "public void myPublicMethod() {\n\t\t\n\t}", "public void method_203() {}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "void method25()\n {\n }", "public void sampleOperation() {\n\t}", "public abstract String commandDocumentation();", "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tvoid methodabstract() {\n\t\t\n\t}", "@Override\n protected String getDescription() {\n return DESCRIPTION;\n }", "public void method_200() {}", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "public void method1() {\n }", "@Override\n public String getDescription() {\n return description;\n }", "public Method(String name, String desc) {\n/* 82 */ this.name = name;\n/* 83 */ this.desc = desc;\n/* */ }", "public void setDescription(String description){this.description=description;}", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "@Override\r\n public String description() {\r\n return \"<html>Create a new method in class A that delegates the call to object B. <br/>\" +\r\n \"Now the client doesn’t know about, or depend on, class B. </html>\";\r\n }", "public abstract void setDescription(String description);", "public abstract void setDescription(String description);", "public void mo21793R() {\n }", "abstract void method();", "public void mo21795T() {\n }", "public void doSomething() {\n\t}", "public void my_method();", "void method_115();", "@Override\n public void visit(MethodDeclaration n, Object arg) {\n \tArrayList<String> method = new ArrayList<String>();\n \tif(n.getJavaDoc()!=null){\n\t \tmethod.add(n.getName());\n\t \tString comment = n.getJavaDoc().getContent();\n\t \tcomment = comment.replaceAll(\"\\\\* @param (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* @return (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* @throws (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* \",\"\");\n\t \tmethod.add(comment.trim()); \n\t \tmethods.add(method);\n \t}\n \t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public String getDescription()\n/* */ {\n/* 74 */ return this.description;\n/* */ }", "public void cocinar(){\n\n }", "public void mo21791P() {\n }", "@Override\n\tpublic int method1() {\n\t\treturn 20;\n\t}", "public abstract String getDescription ( );", "@Override\r\n\tpublic void method1() {\n\t}", "public void mo21792Q() {\n }", "public void mo21779D() {\n }", "public void mo21877s() {\n }", "public void setDescription(String description)\n/* */ {\n/* 67 */ this.description = description;\n/* */ }", "public void mo21789N() {\n }", "@Override\n\tpublic void some() {\n\t\t\n\t}", "private void Nice(){\n }", "public void action() {\n }", "public void method_191() {}", "public void mo55254a() {\n }", "public void mo21825b() {\n }", "public void mo21780E() {\n }", "@Override\n\tpublic void VisitMethodCallNode(MethodCallNode Node) {\n\n\t}", "String getDescribe();", "String getDescribe();", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void describeTo(Description arg0) {\n \n }", "public void mo97908d() {\n }", "public String description();", "public void andThisIsAMethodName(){}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();" ]
[ "0.75586814", "0.7306428", "0.72301036", "0.6961131", "0.6838251", "0.6838251", "0.67844236", "0.6723815", "0.66850483", "0.66850483", "0.66582906", "0.6653695", "0.6606951", "0.6601848", "0.65945834", "0.65945834", "0.6590085", "0.6581249", "0.65783703", "0.6560285", "0.65553534", "0.65240085", "0.6523739", "0.6507995", "0.6506684", "0.6466433", "0.64657825", "0.64649695", "0.6449265", "0.6434264", "0.6428256", "0.64188486", "0.64041185", "0.6384095", "0.63677335", "0.63625246", "0.63557374", "0.63438976", "0.6327732", "0.63120717", "0.6306236", "0.6305845", "0.6304542", "0.629501", "0.6288068", "0.6287602", "0.6287417", "0.62856895", "0.62831676", "0.6280575", "0.6280575", "0.6280575", "0.6280575", "0.6280575", "0.6280575", "0.6279698", "0.6276034", "0.6276034", "0.6250593", "0.62443537", "0.623819", "0.62378633", "0.6230632", "0.6228435", "0.6225053", "0.62246364", "0.6222096", "0.6221289", "0.62169325", "0.62156814", "0.62105393", "0.6206404", "0.62031895", "0.6201325", "0.61938995", "0.619089", "0.6175654", "0.6175363", "0.61711687", "0.6164174", "0.6164097", "0.61557597", "0.6152093", "0.6150735", "0.61430186", "0.61420304", "0.61420304", "0.6138814", "0.61365753", "0.6134097", "0.6133228", "0.6121923", "0.6117985", "0.61130106", "0.61130106", "0.61130106", "0.61130106", "0.61130106", "0.61130106", "0.61130106", "0.61130106" ]
0.0
-1
Get all methods by method name.
public List<MethodInfo> getMethod(String methodName) { List<MethodInfo> matchedMethodInfo = new ArrayList<MethodInfo>(); for (MethodInfo method : this.lstMethodInfo) { if (methodName.equals(method.getName())) { matchedMethodInfo.add(method); } } return matchedMethodInfo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Method> getAllMethods();", "public List<IMethod> getMethods();", "public List<IMethod> getMethods();", "ISourceMethod[] getMethods();", "@XRMethod(value = \"system.listMethods\", help = \"List all method names available\")\r\n\tList<String> listMethods();", "public Enumeration getMethods()\n {\n ensureLoaded();\n return m_tblMethod.elements();\n }", "public abstract String[] getMethodNames();", "MethodName getMethod();", "public DynamicMethod retrieveMethod(String name) {\n return getMethods().get(name);\n }", "public String[] getMethods() {\n\t\treturn methods;\n\t}", "@GetMapping(\"/methods\")\n @Timed\n public List<MethodsDTO> getAllMethods() {\n log.debug(\"REST request to get all Methods\");\n return methodsService.findAll();\n }", "public Method getMethod();", "public HashMap<String, LabTest> getMethods() {\n HashMap<String, LabTest> methods = new HashMap<>();\n if (isApiAvailable(\"getMethods\")) {\n makeConnection(\"getMethods\");\n BufferedReader in = null;\n try {\n in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n String inputLine = null;\n StringBuilder content = new StringBuilder();\n while (true) {\n try {\n assert in != null;\n if ((inputLine = in.readLine()) == null) break;\n } catch (IOException e) {\n e.printStackTrace();\n }\n content.append(inputLine);\n }\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n String jsonstring = content.toString();\n jsonArray = new JSONArray(jsonstring);\n for (int i = 0; i < jsonArray.length(); i++) {\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n JsonObject jsonObject = gson.fromJson(String.valueOf(jsonArray.get(i)), JsonObject.class);\n LabTest method = makeMethod(jsonObject);\n methods.put(method.getNameOfMethod(), method);\n }\n con.disconnect();\n }\n return methods;\n }", "@Override\r\n\tpublic String[] getMethodNames() {\n\t\treturn this.methodNames;\r\n\t\t//未实现\r\n\t}", "static Method[] getAllDeclaredMethods(String testsClassName) {\n\n Class<?> testsClazz = getClassObject(testsClassName);\n\n //Get all methods from file\n Method[] methods = testsClazz.getDeclaredMethods();\n\n\n if (methods.length != 0) {\n return methods;\n } else {\n log.error(\"В классе {} нет ни одного метода !\", testsClazz);\n return new Method[0];\n }\n\n\n }", "String getMethod();", "String getMethod();", "public static MethodClass getMethods (){\n\t\treturn methods;\n\t}", "public List<MethodInfo> getMethods() { \n return lstMethodInfo;\n }", "Method getMethod();", "Method getMethod();", "@Override\n public ServiceResponse listMethods(final ServiceRequest request) throws SOAPException {\n return this.soapClient.listMethods(request, this.getTargetUrl());\n }", "public String[] getMethods(String url) throws RemoteException{\n\t\ttry{\n\t\t//reading wsdl here...\n String wsdlFile = url+\"?wsdl\";\n \n WSDLParser parser = new WSDLParser(wsdlFile);\n\t\treturn parser.getAllMethodNames();\n\t\t}catch(Exception e){\n\t\t\tSystem.err.println(e.getMessage());\t\n\t\t}\n\n\t\treturn null;\n\t}", "public DynamicMethod searchMethod(String name) {\n return searchWithCache(name).method;\n }", "public Method get_MethodByName(String methodname) {\n\t\tfor (Method m : arrayMethods) {\n\t\t\tif (m.getName_method().equals(methodname))\n\t\t\t\treturn m;\n\t\t}\n\n\t\treturn null;\n\t}", "public TreeMap<String,CheckOutMethod>\n getMethods()\n {\n TreeMap<String,CheckOutMethod> methods = new TreeMap<String,CheckOutMethod>();\n for(String name : pVersionFields.keySet()) {\n JCollectionField field = pMethodFields.get(name);\n methods.put(name, CheckOutMethod.values()[field.getSelectedIndex()]);\n }\n return methods;\n }", "public List<ServiceMethod> getMethodList()\n {\n return Collections.unmodifiableList(methods);\n }", "public MethodDeclaration[] getMethods() {\n return m_classBuilder.getMethods();\n }", "private static Method[] retrieveAllMethods(final Object object) {\r\n\t\tMethod[] methodsArray = null;\r\n\r\n\t\t// - Retrieve methods array from cache if exists.\r\n\t\tif (KerAnnotation.methodsCache.containsKey(object.getClass())) {\r\n\t\t\tmethodsArray = KerAnnotation.methodsCache.get(object.getClass());\r\n\t\t}\r\n\t\t// - Else get methods and cache them.\r\n\t\telse {\r\n\t\t\t// - Aggregate all annotated methods (declared, inherited, etc.).\r\n\t\t\tfinal Set<Method> methods = new HashSet<Method>();\r\n\r\n\t\t\tfor (final Method method : object.getClass().getMethods()) {\r\n\t\t\t\tif (method.getAnnotations().length > 0) {\r\n\t\t\t\t\tmethods.add(method);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (final Method method : object.getClass().getDeclaredMethods()) {\r\n\t\t\t\tif (method.getAnnotations().length > 0) {\r\n\t\t\t\t\tmethods.add(method);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// - Convert set to array.\r\n\t\t\tmethodsArray = methods.toArray(new Method[0]);\r\n\r\n\t\t\t// - Cache array.\r\n\t\t\tKerAnnotation.methodsCache.put(object.getClass(), methodsArray);\r\n\t\t}\r\n\r\n\t\treturn methodsArray;\r\n\t}", "public List<String> getMethodList() throws CallError, InterruptedException {\n return (List<String>)service.call(\"getMethodList\").get();\n }", "String getMethodName();", "String getMethodName();", "public abstract Set<MethodUsage> getDeclaredMethods();", "public List<ResolvedMethodDeclaration> getAllMethods() {\n List<ResolvedMethodDeclaration> allMethods = new LinkedList<>(this.getTypeDeclaration().getDeclaredMethods());\n getDirectAncestors().forEach(a -> allMethods.addAll(a.getAllMethods()));\n return allMethods;\n }", "@Override\n public List<Method> getAllUssdMethodes(String className) {\n\n Class klass = null;\n\n try {\n klass = Class.forName(className);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n List<Method> resultMethods = new ArrayList<Method>();\n if (klass == null)\n return resultMethods;\n Method[] methods = klass.getDeclaredMethods();\n\n\n for (Method method : methods) {\n method.setAccessible(true);\n if (method.isAnnotationPresent(UssdMethod.class)) {\n resultMethods.add(method);\n }\n }\n\n return resultMethods;\n }", "public static List<Map<String, Object>> getMethods(Map<String, Object> model) {\n @SuppressWarnings(\"unchecked\")\n List<Map<String, Object>> methods = (List<Map<String, Object>>) getRoot(model).get(ModelConstant.METHODS);\n return methods;\n }", "public Enumeration getMethodNames()\n {\n final EnumerationUnion eu = new EnumerationUnion();\n if( methods != null )\n {\n eu.add( methods.keys() );\n }\n if( ancestors != null )\n {\n final int size = ancestors.size();\n for( int i = 0; i < size; i++ )\n {\n final ScriptingClass clazz = (ScriptingClass)\n ancestors.elementAt( i );\n eu.add( clazz.getMethodNames() );\n }\n }\n try\n {\n final ScriptingClass object = getClassLoader().load( \"object\" );\n eu.add( object.getMethodNames() );\n }\n catch( ScriptingClassNotFoundException e )\n {\n }\n return eu;\n }", "public ArrayList<Method> getMethods() {\n\t\treturn arrayMethods;\n\t}", "@Override\n\tpublic String[] getMethods() {\n\t\treturn null;\n\t}", "Methodsig getMethod();", "public Set<Method> getMethods() {\r\n \t\t// We will only consider private methods in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredMethods(), source.getMethods());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getMethods());\r\n \t}", "@Override\n public String getMethod() {\n return METHOD_NAME;\n }", "public void setGetMethodName(String name) {\n m_getMethodName = name;\n }", "public Collection<ResourceMethod> getMethodsForPath(\n RemainingPath remainingPath) {\n // NICE results may be chached, if any method is returned.\n // The 404 case will be called rarely and produce a lot of cached data.\n final List<ResourceMethod> resourceMethods = new ArrayList<ResourceMethod>();\n for (final ResourceMethod method : this.resourceMethods) {\n final PathRegExp methodPath = method.getPathRegExp();\n if (remainingPath.isEmptyOrSlash()) {\n if (methodPath.isEmptyOrSlash()) {\n resourceMethods.add(method);\n }\n } else {\n if (methodPath.matchesWithEmpty(remainingPath)) {\n resourceMethods.add(method);\n }\n }\n }\n return resourceMethods;\n }", "public List<Method> getMethod_list() {\n\t\treturn arrayMethods;\n\t}", "public final List<BuilderMethod> methods() throws RecognitionException {\n List<BuilderMethod> methods = null;\n\n\n BuilderMethod method17 = null;\n\n methods = Lists.newArrayList();\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:246:3: ( ^( I_METHODS ( method )* ) )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:246:5: ^( I_METHODS ( method )* )\n {\n match(input, I_METHODS, FOLLOW_I_METHODS_in_methods349);\n if (input.LA(1) == Token.DOWN) {\n match(input, Token.DOWN, null);\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:247:7: ( method )*\n loop6:\n while (true) {\n int alt6 = 2;\n int LA6_0 = input.LA(1);\n if ((LA6_0 == I_METHOD)) {\n alt6 = 1;\n }\n\n switch (alt6) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:247:8: method\n {\n pushFollow(FOLLOW_method_in_methods358);\n method17 = method();\n state._fsp--;\n\n\n methods.add(method17);\n\n }\n break;\n\n default:\n break loop6;\n }\n }\n\n match(input, Token.UP, null);\n }\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return methods;\n }", "public static Method[] getAllMethods(Class forClass) {\r\n\t\tfinal List<Method> methods = new ArrayList<Method>();\r\n\t\tClass aktClass = forClass;\r\n\t\twhile (!aktClass.equals(Object.class)) {\r\n\t\t\tMethod[] tmp = aktClass.getDeclaredMethods();\r\n\t\t\tfor (Method akt : tmp) {\r\n\t\t\t\tmethods.add(akt);\r\n\t\t\t}\r\n\t\t\taktClass = aktClass.getSuperclass();\r\n\t\t}\r\n\t\treturn methods.toArray(new Method[methods.size()]);\r\n\t}", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "public Set<AbstractProgramData<?>> getMethods()\n {\n return this.methods;\n }", "@Override\n public MethodDescriptor[] getMethodDescriptors() {\n return getMdescriptor();\n }", "protected Method getMethod(String mangledName)\n {\n return (Method) _methodMap.get(mangledName);\n }", "public Method getMethod(String sName, String sSig)\n {\n return getMethod(sName + sSig.replace('.', '/'));\n }", "private void method(String name) {\n app.method(name);\n }", "public Future<List<String>> getMethodList() throws DynamicCallException, ExecutionException {\n return call(\"getMethodList\");\n }", "public MethodDescriptor[] getMethodDescriptors() {\n return getMdescriptor();\n }", "public HashSet<SootMethod> getMethodsToExplore(int invocationLevel){\n\t\tHashSet<SootMethod> methodsToExplore = new HashSet<SootMethod>();\r\n\t\t\r\n\t\tfor (SootMethod method : tadaMethods) {\r\n\t\t\tHashSet<SootMethod> invokingMethods = getMethodsInvokingAtLevel(method, invocationLevel);\r\n\t\t\tmethodsToExplore.addAll(invokingMethods);\r\n\t\t}\r\n\t\treturn methodsToExplore;\r\n\t}", "private Map<String, MethodNode> getMethods(ClassNode cls) {\n Map<String, MethodNode> methods = new HashMap<String, MethodNode>();\n\n Map<String, Node> allAttrs = cls.getMembers();\n Iterator allAttrs_it = allAttrs.entrySet().iterator();\n while(allAttrs_it.hasNext()) {\n Map.Entry attr_entry = (Map.Entry)allAttrs_it.next();\n if(attr_entry.getValue() instanceof MethodNode) {\n String methodName = (String)attr_entry.getKey();\n MethodNode method = (MethodNode)attr_entry.getValue();\n methods.put(methodName, method);\n }\n }\n return methods;\n }", "abstract protected Set<Method> createMethods();", "org.mojolang.mojo.lang.FuncDecl getMethods(int index);", "public static List<Method> getMethods( Class<?> klass )\r\n {\r\n return Arrays.asList( org.springframework.util.ReflectionUtils.getUniqueDeclaredMethods( klass ) );\r\n }", "@Override\r\n\tpublic List<Method> getMethods(File f) {\n\t\tEolModule module = new EolModule();\r\n\t\treturn this.getMethods(f, module);\r\n\t}", "public List<PaymentEntity> getPaymentMethods() {\n return entityManager.createNamedQuery(\"getAllPaymentMethods\", PaymentEntity.class).getResultList();\n\n }", "List<MethodNode> getMethods() {\n return this.classNode.methods;\n }", "java.util.List<org.mojolang.mojo.lang.FuncDecl> \n getMethodsList();", "public UITMethodIF getMethod (String methodName) throws ServiceException {\n UITMethodIF method = null;\n try {\n method = (UITMethodIF)_methods.get(methodName);\n } catch (NullPointerException n) {\n throw new ServiceException(\"No method \" + methodName);\n }\n return method;\n }", "public java.util.List getColumnNamesMethods() {\n\t\treturn Arrays.asList(columnNamesMethodsTable);\n\t}", "public List<MethodCall> searchMethods( final MethodsFilter aFilter ) {\n\t\t// Get the methods\n\t\tfinal MonitoringLogService monitoringLogService = getService( MonitoringLogService.class );\n\t\tfinal List<MethodCall> methods = monitoringLogService.getMethods( );\n\n\t\t// Filter the methods\n\t\tfinal FilterService filterService = getService( FilterService.class );\n\t\treturn methods\n\t\t\t\t.parallelStream( )\n\t\t\t\t.filter( filterService.getStringPredicate( MethodCall::getHost, aFilter.getHost( ), aFilter.isUseRegExpr( ) ) )\n\t\t\t\t.filter( filterService.getStringPredicate( MethodCall::getClazz, aFilter.getClazz( ), aFilter.isUseRegExpr( ) ) )\n\t\t\t\t.filter( filterService.getStringPredicate( MethodCall::getMethod, aFilter.getMethod( ), aFilter.isUseRegExpr( ) ) )\n\t\t\t\t.filter( filterService.getStringPredicate( MethodCall::getException, aFilter.getException( ), aFilter.isUseRegExpr( ) ) )\n\t\t\t\t.filter( filterService.getLongPredicate( MethodCall::getTraceId, aFilter.getTraceId( ) ) )\n\t\t\t\t.filter( getSearchTypePredicate( aFilter.getSearchType( ) ) )\n\t\t\t\t.filter( filterService.getAfterTimePredicate( MethodCall::getTimestamp, aFilter.getLowerDate( ), aFilter.getLowerTime( ) ) )\n\t\t\t\t.filter( filterService.getBeforeTimePredicate( MethodCall::getTimestamp, aFilter.getUpperDate( ), aFilter.getUpperTime( ) ) )\n\t\t\t\t.collect( Collectors.toList( ) );\n\t}", "public String enumerateMethods(){\n Class c = EvaluatingStudent.class; // replace this with your choice, e.g. CreatingStudent.class\n Method[] methods = c.getMethods();\n String result = \"\";\n for(int i = 0; i < methods.length; i++) {\n result += methods[i].toString() + '\\n';\n }\n return result;\n }", "public static Multimap<String, Method> getMethodsMultimap( Class<?> klass )\r\n {\r\n Multimap<String, Method> methods = ArrayListMultimap.create();\r\n getMethods( klass ).forEach( method -> methods.put( method.getName(), method ) );\r\n return methods;\r\n }", "Collection<String> getMethodsForValidRules(Request message);", "public List<Method> getStaticMethods(String cmpid,\n Long asOfTime)\n throws\n BackendInvalidCredsException,\n BackendMethodFailedException,\n BackendInvalidResourceException;", "public Method getMethodByName(String nameRegex) {\r\n \t\t\r\n \t\tPattern match = Pattern.compile(nameRegex);\r\n \t\t\r\n \t\tfor (Method method : getMethods()) {\r\n \t\t\tif (match.matcher(method.getName()).matches()) {\r\n \t\t\t\t// Right - this is probably it. \r\n \t\t\t\treturn method;\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\tthrow new RuntimeException(\"Unable to find a method with the pattern \" + \r\n \t\t\t\t\t\t\t\t\tnameRegex + \" in \" + source.getName());\r\n \t}", "private void addMethods(StringBuilder xml) {\n\t\t\n\t\tfor(MethodRequest method : methods) {\n\t\t\tstartElementWithAttributes(xml, \"Method\");\n\t\t\taddStringAttribute(xml, \"name\", method.getName());\n\t\t\taddStringAttribute(xml, \"contextObject\", method.getContextObject());\n\t\t\tcloseSimpleElementWithAttributes(xml);\n\t\t}\n\t\t\n\t}", "public static SendMethod findByName(String name) {\n\t\tfor (SendMethod sendMethod : SendMethod.values()) {\n\t\t\tif (sendMethod.getName().equals(name)) {\n\t\t\t\treturn sendMethod;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public static Method[] getPublicMethods(Class<?> paramClass) {\n/* 107 */ if (System.getSecurityManager() == null) {\n/* 108 */ return paramClass.getMethods();\n/* */ }\n/* 110 */ HashMap<Object, Object> hashMap = new HashMap<>();\n/* 111 */ while (paramClass != null) {\n/* 112 */ boolean bool = getInternalPublicMethods(paramClass, (Map)hashMap);\n/* 113 */ if (bool) {\n/* */ break;\n/* */ }\n/* 116 */ getInterfaceMethods(paramClass, (Map)hashMap);\n/* 117 */ paramClass = paramClass.getSuperclass();\n/* */ } \n/* 119 */ return (Method[])hashMap.values().toArray((Object[])new Method[hashMap.size()]);\n/* */ }", "public List<String> getSupportedMethods(Set<String> restParams) {\n //we try to avoid hardcoded mappings but the index api is the exception\n if (\"index\".equals(name) || \"create\".equals(name)) {\n List<String> indexMethods = Lists.newArrayList();\n for (String method : methods) {\n if (restParams.contains(\"id\")) {\n //PUT when the id is provided\n if (HttpPut.METHOD_NAME.equals(method)) {\n indexMethods.add(method);\n }\n } else {\n //POST without id\n if (HttpPost.METHOD_NAME.equals(method)) {\n indexMethods.add(method);\n }\n }\n }\n return indexMethods;\n }\n\n return methods;\n }", "public List<String> getMethodList() throws DynamicCallException, ExecutionException {\n return (List<String>)call(\"getMethodList\").get();\n }", "private void findMethods() {\n List<Method> methods = new ArrayList<Method>(Arrays.asList(getObject().getClass().getMethods()));\r\n List<Method> objectMethods = new ArrayList<Method>(Arrays.asList(Object.class.getMethods()));\r\n methods.removeAll(objectMethods);\r\n \r\n for(Method method:methods) {\r\n //does method have @ManagedAttribute annotation?\r\n if(method.isAnnotationPresent(ManagedAttribute.class) || method.isAnnotationPresent(Property.class)) {\r\n exposeManagedAttribute(method);\r\n }\r\n //or @ManagedOperation\r\n else if (method.isAnnotationPresent(ManagedOperation.class) || isMBeanAnnotationPresentWithExposeAll()){\r\n exposeManagedOperation(method); \r\n } \r\n }\r\n }", "Collection<HttpMethod> getMinimalSupportedHttpMethods();", "public List<Method> getSetterMethods(String property) {\n String methodName = getSetterMethodName(property);\n List<Method> result = new ArrayList<Method>(2);\n\n for (Method method : this.type.getMethods()) {\n if (method.getName().equals(methodName) && method.getParameterTypes().length == 1) {\n result.add(method);\n }\n }\n\n return result;\n }", "public List<CoinbasePaymentMethod> getCoinbasePaymentMethods() throws IOException {\n\n String path = \"/v2/payment-methods\";\n String apiKey = exchange.getExchangeSpecification().getApiKey();\n BigDecimal timestamp = coinbase.getTime(Coinbase.CB_VERSION_VALUE).getData().getEpoch();\n String signature = getSignature(timestamp, path);\n showCurl(apiKey, timestamp, signature, path);\n\n return coinbase.getPaymentMethods(Coinbase.CB_VERSION_VALUE, apiKey, signature, timestamp).getData();\n }", "public Method getMethod(String sSig)\n {\n ensureLoaded();\n return (Method) m_tblMethod.get(sSig);\n }", "public HashMap<String, HashMap<String, Object>> getResultsForMethods() {\n return resultsForMethods;\n }", "public static String demangleMethod(String name) {\n return demangleName(name, false);\n }", "public java.lang.reflect.Method getMethod()\n {\n return __m_Method;\n }", "public Method getMethodByParameters(String name, Class<?>... args) {\r\n \t\t\r\n \t\t// Find the correct method to call\r\n \t\tfor (Method method : getMethods()) {\r\n \t\t\tif (Arrays.equals(method.getParameterTypes(), args)) {\r\n \t\t\t\treturn method;\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\t// That sucks\r\n \t\tthrow new RuntimeException(\"Unable to find \" + name + \" in \" + source.getName());\r\n \t}", "@Test\n\tpublic void testGetActionMethods() throws ClassNotFoundException,\n\t\t\tNoSuchMethodException, SecurityException {\n\t\tConcreteActionsFactory concreteActionsFactory = new ConcreteActionsFactory();\n\n\t\tClass clazz = Class.forName(\"org.dsol.service.ConcreteActions1\");\n\t\tList<Method> methods = concreteActionsFactory.getActionMethods(clazz);\n\n\t\tAssert.assertEquals(2, methods.size());\n\n\t\tAssert.assertTrue(methods.contains(clazz.getMethod(\"hi\", String.class,\n\t\t\t\tString.class)));\n\t\tAssert.assertTrue(methods.contains(clazz.getMethod(\"getStarted\")));\n\n\t}", "public Collection<Method> getRemoveMethods() {\n Set<Method> removeMethods = new HashSet<Method>();\n\n if( ejbDesc.getType().equals(EjbSessionDescriptor.TYPE) ) {\n EjbSessionDescriptor sessionDesc = (EjbSessionDescriptor) ejbDesc;\n if( sessionDesc.isStateful() && sessionDesc.hasRemoveMethods() ) {\n\n for(EjbRemovalInfo next : sessionDesc.getAllRemovalInfo()) {\n\n MethodDescriptor mDesc = next.getRemoveMethod();\n Method m = mDesc.getMethod(ejbDesc);\n if( m == null ) {\n throw new IllegalStateException(\"Can't resolve remove method \" +\n mDesc + \" For EJB \" + sessionDesc.getName());\n }\n removeMethods.add(m);\n\n }\n\n }\n }\n\n return removeMethods;\n\n }", "public Map getKeyMethodMap() {\r\n\t\tMap map = new HashMap();\r\n\r\n\t\tString pkg = this.getClass().getPackage().getName();\r\n\t\tResourceBundle methods = ResourceBundle.getBundle(pkg\r\n\t\t\t\t+ \".LookupMethods\");\r\n\r\n\t\tEnumeration keys = methods.getKeys();\r\n\r\n\t\twhile (keys.hasMoreElements()) {\r\n\t\t\tString key = (String) keys.nextElement();\r\n\t\t\tmap.put(key, methods.getString(key));\r\n\t\t}\r\n\r\n\t\treturn map;\r\n\t}", "public String getMethod(String className, String methodName, String methodDescriptor) {\n if (!classFilter.contains(className)) return null;\n\n // Don't remap <init>, <clinit>, values, valueOf, access$* TODO: don't remap any synthetic/bridge methods\n if (methodName.equals(\"<init>\") ||\n methodName.equals(\"<clinit>\") ||\n methodName.equals(\"values\") ||\n methodName.equals(\"valueOf\") ||\n methodName.startsWith(\"access$\")) return null;\n\n // Don't remap inherited methods, their name is inherited from the parent's mapping\n for (String superclass : inheritanceProvider.getAllSuperclasses(className)) {\n for (MemberRef ref : inheritanceProvider.getInheritableMethods(superclass)) {\n if (methodName.equals(ref.name) && TypeUtil.methodDescriptorOverrides(inheritanceProvider, methodDescriptor, ref.descriptor)) {\n return null;\n }\n }\n }\n\n String result = super.getMethod(className, methodName, methodDescriptor);\n if (result == null) {\n result = \"method\" + methodIndex++;\n addMethod(className, methodName, methodDescriptor, result);\n }\n return result;\n }", "public boolean hasMethod( final String name )\n {\n return getMethod( name ) != null;\n }", "MethodType getMethodType();", "public static Collection<Method> findAnnotatedMethods(\n Class<?> type,\n Class<? extends Annotation> annotation\n ) {\n\n List<Method> result = new ArrayList<>();\n\n // gather all publicly available methods\n // this returns everything, even if it's declared in a parent\n for (Method method : type.getMethods()) {\n // skip methods that are used internally by the vm for implementing covariance, etc\n if (method.isSynthetic() || method.isBridge() || isStatic(method.getModifiers())) {\n continue;\n }\n\n // look for annotations recursively in super-classes or interfaces\n Method managedMethod = findAnnotatedMethod(\n type,\n annotation,\n method.getName(),\n method.getParameterTypes()\n );\n if (managedMethod != null) {\n result.add(managedMethod);\n }\n }\n\n return result;\n }", "protected ResourceMethod getMethod( int theMethodIndex ) {\r\n\t\tConditions.checkParameter( theMethodIndex >= 0 && theMethodIndex < methods.length, \"theMethodIndex\", \"The specific method index is not within range.\" );\r\n\t\t\r\n\t\treturn methods[ theMethodIndex ];\r\n\t}", "public Method methodFor(Message message) throws NoSuchMethodException {\n\t\tif (!handlers.containsKey(message.getClass())) {\n\t\t\tthrow new NoSuchMethodException();\n\t\t}\n\t\treturn handlers.get(message.getClass());\n\t}", "public boolean isMethodSupported(String methodName) throws IOException;", "public static void isMethod() throws IOException {\n isNameExpr.isMethod();\n }" ]
[ "0.7859938", "0.7272056", "0.7272056", "0.6955643", "0.685927", "0.6718194", "0.6612175", "0.6521728", "0.64432555", "0.6320639", "0.63206106", "0.63074875", "0.6260406", "0.62539434", "0.62208796", "0.6212909", "0.6212909", "0.6199662", "0.61953026", "0.6162311", "0.6162311", "0.6159553", "0.6157904", "0.61460036", "0.6119355", "0.608847", "0.6087136", "0.6066768", "0.5996981", "0.5988939", "0.5986419", "0.5986419", "0.59586096", "0.59402037", "0.592033", "0.59145594", "0.5877827", "0.5875574", "0.5856914", "0.5819509", "0.58048433", "0.5776485", "0.5770299", "0.57564497", "0.57345164", "0.5720079", "0.5716184", "0.5704824", "0.5704824", "0.5704824", "0.5704824", "0.56979525", "0.56950545", "0.56668293", "0.56494975", "0.5624359", "0.5613362", "0.5553563", "0.55485594", "0.5546085", "0.55407256", "0.5539321", "0.55373526", "0.55171096", "0.55038005", "0.55037004", "0.5502723", "0.54778713", "0.54703367", "0.5452353", "0.54484326", "0.5424399", "0.5416583", "0.5415817", "0.5408725", "0.54040116", "0.53988314", "0.53919446", "0.53680426", "0.5363196", "0.53602886", "0.5340619", "0.53225946", "0.53202915", "0.53199327", "0.5295653", "0.5282564", "0.5279725", "0.52637696", "0.5251383", "0.525023", "0.5241235", "0.52347726", "0.52254534", "0.52227736", "0.52041864", "0.5203349", "0.51930743", "0.518532", "0.518124" ]
0.6761878
5
[Give the description for method].
public List<MethodInfo> getMethods() { return lstMethodInfo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "public void method(){}", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "public abstract void description();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void method_201() {}", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "void method();", "void method();", "public void method_202() {}", "public void method_4270() {}", "public E16_OverloadJavaDoc() {\n System.out.println(\"Planting a seedling\");\n }", "public void method1()\r\n\t{\r\n\t}", "public abstract String description();", "public abstract String description();", "public void amethod() {\n\t}", "public void method_199() {}", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\n\tpublic void myMethod() {\n\t\t\n\t}", "@Override\n public void setDescription(String arg0)\n {\n \n }", "public void method_115() {}", "@Override\n\tpublic void anular() {\n\n\t}", "public void method_193() {}", "public void woke(){\n\n //TODO\n\n }", "protected abstract MethodDescription accessorMethod();", "@Override\n public String getDescription() {\n return DESCRIPTION;\n }", "public void method_192() {}", "public void foo() {\r\n\t}", "public void doSomething() {\n \n }", "void applyDescription(Operation operation, Method method);", "public void myPublicMethod() {\n\t\t\n\t}", "public void method_203() {}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "void method25()\n {\n }", "public void sampleOperation() {\n\t}", "public abstract String commandDocumentation();", "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tvoid methodabstract() {\n\t\t\n\t}", "@Override\n protected String getDescription() {\n return DESCRIPTION;\n }", "public void method_200() {}", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "public void method1() {\n }", "@Override\n public String getDescription() {\n return description;\n }", "public Method(String name, String desc) {\n/* 82 */ this.name = name;\n/* 83 */ this.desc = desc;\n/* */ }", "public void setDescription(String description){this.description=description;}", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "@Override\r\n public String description() {\r\n return \"<html>Create a new method in class A that delegates the call to object B. <br/>\" +\r\n \"Now the client doesn’t know about, or depend on, class B. </html>\";\r\n }", "public abstract void setDescription(String description);", "public abstract void setDescription(String description);", "public void mo21793R() {\n }", "abstract void method();", "public void mo21795T() {\n }", "public void doSomething() {\n\t}", "public void my_method();", "void method_115();", "@Override\n public void visit(MethodDeclaration n, Object arg) {\n \tArrayList<String> method = new ArrayList<String>();\n \tif(n.getJavaDoc()!=null){\n\t \tmethod.add(n.getName());\n\t \tString comment = n.getJavaDoc().getContent();\n\t \tcomment = comment.replaceAll(\"\\\\* @param (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* @return (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* @throws (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* \",\"\");\n\t \tmethod.add(comment.trim()); \n\t \tmethods.add(method);\n \t}\n \t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public String getDescription()\n/* */ {\n/* 74 */ return this.description;\n/* */ }", "public void cocinar(){\n\n }", "public void mo21791P() {\n }", "@Override\n\tpublic int method1() {\n\t\treturn 20;\n\t}", "public abstract String getDescription ( );", "@Override\r\n\tpublic void method1() {\n\t}", "public void mo21792Q() {\n }", "public void mo21779D() {\n }", "public void mo21877s() {\n }", "public void setDescription(String description)\n/* */ {\n/* 67 */ this.description = description;\n/* */ }", "public void mo21789N() {\n }", "@Override\n\tpublic void some() {\n\t\t\n\t}", "private void Nice(){\n }", "public void action() {\n }", "public void method_191() {}", "public void mo55254a() {\n }", "public void mo21825b() {\n }", "public void mo21780E() {\n }", "@Override\n\tpublic void VisitMethodCallNode(MethodCallNode Node) {\n\n\t}", "String getDescribe();", "String getDescribe();", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void describeTo(Description arg0) {\n \n }", "public void mo97908d() {\n }", "public String description();", "public void andThisIsAMethodName(){}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();" ]
[ "0.75586814", "0.7306428", "0.72301036", "0.6961131", "0.6838251", "0.6838251", "0.67844236", "0.6723815", "0.66850483", "0.66850483", "0.66582906", "0.6653695", "0.6606951", "0.6601848", "0.65945834", "0.65945834", "0.6590085", "0.6581249", "0.65783703", "0.6560285", "0.65553534", "0.65240085", "0.6523739", "0.6507995", "0.6506684", "0.6466433", "0.64657825", "0.64649695", "0.6449265", "0.6434264", "0.6428256", "0.64188486", "0.64041185", "0.6384095", "0.63677335", "0.63625246", "0.63557374", "0.63438976", "0.6327732", "0.63120717", "0.6306236", "0.6305845", "0.6304542", "0.629501", "0.6288068", "0.6287602", "0.6287417", "0.62856895", "0.62831676", "0.6280575", "0.6280575", "0.6280575", "0.6280575", "0.6280575", "0.6280575", "0.6279698", "0.6276034", "0.6276034", "0.6250593", "0.62443537", "0.623819", "0.62378633", "0.6230632", "0.6228435", "0.6225053", "0.62246364", "0.6222096", "0.6221289", "0.62169325", "0.62156814", "0.62105393", "0.6206404", "0.62031895", "0.6201325", "0.61938995", "0.619089", "0.6175654", "0.6175363", "0.61711687", "0.6164174", "0.6164097", "0.61557597", "0.6152093", "0.6150735", "0.61430186", "0.61420304", "0.61420304", "0.6138814", "0.61365753", "0.6134097", "0.6133228", "0.6121923", "0.6117985", "0.61130106", "0.61130106", "0.61130106", "0.61130106", "0.61130106", "0.61130106", "0.61130106", "0.61130106" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.all_audit_fragment, container, false); textView = (TextView) view.findViewById(R.id.textView9); recyclerView = (RecyclerView) view.findViewById(R.id.recyclerview); LinearLayoutManager layoutManagaer = new LinearLayoutManager(getActivity(), LinearLayoutManager.VERTICAL, false); recyclerView.setLayoutManager(layoutManagaer); sessionManager = new SessionManager(getActivity()); database = new UtzDatabase(getActivity()); final HashMap<String,String> userDetails = sessionManager.getUserDetails(); accessToken = userDetails.get(SessionManager.KEY_ACCESS_TOKEN); auditorId = userDetails.get(SessionManager.KEY_USERID); commonAuditDetails = (ArrayList<Items>)database.getCommonAuditTableDetails(); if(commonAuditDetails.size() == 0) { recyclerView.setVisibility(View.GONE); textView.setVisibility(View.VISIBLE); textView.setText("No Audits Obtained.."); } else { recyclerView.setVisibility(View.VISIBLE); textView.setVisibility(View.GONE); } AllAuditAdapter allAuditAdapter = new AllAuditAdapter(getActivity(),commonAuditDetails); recyclerView.setAdapter(allAuditAdapter); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
A classifier is an element that describes behavioral and structural features; it comes in several specific forms, including class, data type, interface, component, artifact, and others that are defined in other meta model packages. In the meta model, a Classifier declares a collection of Features, such as Attributes, Methods, and Operations. It has a name, which is unique in the Namespace enclosing the Classifier. Classifier is an abstract meta class. Classifier is a child of GeneralizableElement and Namespace. As a GeneralizableElement, it may inherit Features and participation in Associations (in addition to things inherited as a ModelElement). It also inherits ownership of StateMachines, Collaborations, etc. As a Namespace, a Classifier may declare other Classifiers nested in its scope. Nested Classifiers may be accessed by other Classifiers only if the nested Classifiers have adequate visibility. There are no data value or state consequences of nested Classifiers (i.e., it is not an aggregation or composition). A Classifier has the following properties: features: An ordered list of Features, like Attribute, Operation, Method owned by the Classifier. typedFeatures: An unordered collection of StructuralFeatures owned by the Classifier. typedParameters: An unordered collection of Parameters owned by the Classifier. associations: Denotes the AssociationEnd of an Association in which the Classifier participates at the given end. This is the inverse of the participant association from AssociationEnd. A link of the association contains a reference to an instance of the class in the given position. specifiedEnds: Indicates an AssociationEnd for which the given Classifier specifies operations that may be applied to instances obtained by traversing the association from the other end. (This relationship does not define the structure of the association, merely operations that may be applied on traversing it.) powertypeRanges: Designates zero or more Generalizations for which the Classifier is a powertype. If the cardinality is zero, then the Classifier is not a powertype; if the cardinality is greater than zero, then the Classifier is a powertype over the set of Generalizations designated by the association, and the child elements of the Generalizations are the instances of the Classifier as a powertype. objectFlowStates: An unordered collection of ObjectFlowStates owned by the Classifier. instances: An unordered collection of Instances owned by the Classifier. Thread Safety: Implementations of this interface are not required to be threadsafe, since thread safety should be handled by the application itself.
public interface Classifier extends GeneralizableElement, Namespace { /** * <p> * Adds a feature at the end of the ordered collection of the current object. * </p> * * @param feature * the feature to be added. * @throws IllegalArgumentException * if <code>feature</code> is null. */ void addFeature(Feature feature); /** * <p> * Adds a feature at specified index of the ordered collection of the current object. * </p> * * @param index * index at which the specified element is to be added. * @param feature * the feature to be added. * @throws IllegalArgumentException * if <code>feature</code> is null. * @throws IndexOutOfBoundsException * if <code>index</code> is &lt; 0 or &gt; features.size. */ void addFeature(int index, Feature feature); /** * <p> * Sets the feature at specified index of the ordered collection of the current object. * </p> * * @param index * index of feature to replace. * @param feature * the feature to be added. * @throws IllegalArgumentException * if <code>feature</code> is null. * @throws IndexOutOfBoundsException * if <code>index</code> is &lt; 0 or &gt;= features.size. */ void setFeature(int index, Feature feature); /** * <p> * Removes (and fetches) the feature at specified index from the ordered collection of the current object. * </p> * * @param index * the index of the feature to be removed. * @throws IndexOutOfBoundsException * if <code>index</code> is &lt; 0 or &gt;= features.size. * @return the removed object of type <code>Feature</code>. */ Feature removeFeature(int index); /** * <p> * Removes a feature from the ordered collection of the current object. * </p> * * @param feature * the feature to be removed. * @throws IllegalArgumentException * if <code>feature</code> is null. * @return <code>true</code> if the current object state changed because of the removal. */ boolean removeFeature(Feature feature); /** * <p> * Removes all the objects of type "feature" from the ordered collection of the current object. * </p> */ void clearFeatures(); /** * <p> * Gets all the objects of type "feature" previously added to the ordered collection of the current object. * </p> * <p> * Additions and removals of elements to and from the returned list do not change the state of current object (i.e. * the returned list is a copy of the internal one of the current object). However, if an element contained in it is * modified, the state of the current object is modified accordingly (i.e. the internal and the returned lists share * references to the same objects). * </p> * * @return a <code>java.util.List</code> instance, containing all the objects of type <code>Feature</code> added * to the collection of current object. */ List<Feature> getFeatures(); /** * <p> * Checks if a feature is contained in the ordered collection of the current object. * </p> * * @param feature * the feature to be tested. * @throws IllegalArgumentException * if <code>feature</code> is null. * @return <code>true</code> if <code>feature</code> is contained in the collection of the current object. */ boolean containsFeature(Feature feature); /** * <p> * Gets the index of the specified feature in the ordered collection of the current object, or -1 if such a * collection doesn't contain it. * </p> * * @param feature * the desired feature. * @throws IllegalArgumentException * if <code>feature</code> is null. * @return the index of the specified <code>Feature</code> in the ordered collection of the current object, or -1 * if such a collection doesn't contain it. */ int indexOfFeature(Feature feature); /** * <p> * Returns the number of objects of type "feature" previously added to the ordered collection of the current object. * </p> * * @return the quantity of objects of type <code>Feature</code> inserted in the ordered collection of the current * object. */ int countFeatures(); /** * <p> * Adds a typed feature to the collection of the current object. * </p> * * @param typedFeature * the typed feature to be added. * @throws IllegalArgumentException * if <code>typedFeature</code> is null. */ void addTypedFeature(StructuralFeature typedFeature); /** * <p> * Removes a typed feature from the collection of the current object. * </p> * * @param typedFeature * the typed feature to be removed. * @throws IllegalArgumentException * if <code>typedFeature</code> is null. * @return <code>true</code> if the current object state changed because of the removal. */ boolean removeTypedFeature(StructuralFeature typedFeature); /** * <p> * Removes all the objects of type "typed feature" from the collection of the current object. * </p> */ void clearTypedFeatures(); /** * <p> * Gets all the objects of type "typed feature" previously added to the collection of the current object. * </p> * <p> * Additions and removals of elements to and from the returned collection do not change the state of current object * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the * returned collections share references to the same objects). * </p> * * @return a <code>java.util.Collection</code> instance, containing all the objects of type * <code>StructuralFeature</code> added to the collection of current object. */ Collection<StructuralFeature> getTypedFeatures(); /** * <p> * Checks if a typed feature is contained in the collection of the current object. * </p> * * @param typedFeature * the element to be tested. * @throws IllegalArgumentException * if <code>typedFeature</code> is null. * @return <code>true</code> if <code>typedFeature</code> is contained in the collection of the current object. */ boolean containsTypedFeature(StructuralFeature typedFeature); /** * <p> * Returns the number of objects of type "typed feature" previously added to the collection of the current object. * </p> * * @return the quantity of objects of type <code>StructuralFeature</code> inserted in the collection of the * current object. */ int countTypedFeatures(); /** * <p> * Adds a typed parameter to the collection of the current object. * </p> * * @param typedParameter * the typed parameter to be added. * @throws IllegalArgumentException * if <code>typedParameter</code> is null. */ void addTypedParameter(Parameter typedParameter); /** * <p> * Removes a typed parameter from the collection of the current object. * </p> * * @param typedParameter * the typed parameter to be removed. * @throws IllegalArgumentException * if <code>typedParameter</code> is null. * @return <code>true</code> if the current object state changed because of the removal, i.e. its collection * contained the specified typed parameter. */ boolean removeTypedParameter(Parameter typedParameter); /** * <p> * Removes all the objects of type "typed parameter" from the collection of the current object. * </p> */ void clearTypedParameters(); /** * <p> * Gets all the objects of type "typed parameter" previously added to the collection of the current object. * </p> * <p> * Additions and removals of elements to and from the returned collection do not change the state of current object * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the * returned collections share references to the same objects). * </p> * * @return a <code>java.util.Collection</code> instance, containing all the objects of type <code>Parameter</code> * added to the collection of current object. */ Collection<Parameter> getTypedParameters(); /** * <p> * Checks if a typed parameter is contained in the collection of the current object. * </p> * * @param typedParameter * the element to be tested. * @throws IllegalArgumentException * if <code>typedParameter</code> is null. * @return <code>true</code> if <code>typedParameter</code> is contained in the collection of the current * object. */ boolean containsTypedParameter(Parameter typedParameter); /** * <p> * Returns the number of objects of type "typed parameter" previously added to the collection of the current object. * </p> * * @return the quantity of objects of type <code>Parameter</code> inserted in the collection of the current * object. */ int countTypedParameters(); /** * <p> * Adds a association to the collection of the current object. * </p> * * @param association * the association to be added. * @throws IllegalArgumentException * if <code>association</code> is null. */ void addAssociation(AssociationEnd association); /** * <p> * Removes a association from the collection of the current object. * </p> * * @param association * the association to be removed. * @throws IllegalArgumentException * if <code>association</code> is null. * @return <code>true</code> if the current object state changed because of the removal. */ boolean removeAssociation(AssociationEnd association); /** * <p> * Removes all the objects of type "association" from the collection of the current object. * </p> */ void clearAssociations(); /** * <p> * Gets all the objects of type "association" previously added to the collection of the current object. * </p> * <p> * Additions and removals of elements to and from the returned collection do not change the state of current object * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the * returned collections share references to the same objects). * </p> * * @return a <code>java.util.Collection</code> instance, containing all the objects of type * <code>AssociationEnd</code> added to the collection of current object. */ Collection<AssociationEnd> getAssociations(); /** * <p> * Checks if a association is contained in the collection of the current object. * </p> * * @param association * the element to be tested. * @throws IllegalArgumentException * if <code>association</code> is null. * @return <code>true</code> if <code>association</code> is contained in the collection of the current object. */ boolean containsAssociation(AssociationEnd association); /** * <p> * Returns the number of objects of type "association" previously added to the collection of the current object. * </p> * * @return the quantity of objects of type <code>AssociationEnd</code> inserted in the collection of the current * object. */ int countAssociations(); /** * <p> * Adds a specified end to the collection of the current object. * </p> * * @param specifiedEnd * the specified end to be added. * @throws IllegalArgumentException * if <code>specifiedEnd</code> is null. */ void addSpecifiedEnd(AssociationEnd specifiedEnd); /** * <p> * Removes a specified end from the collection of the current object. * </p> * * @param specifiedEnd * the specified end to be removed. * @throws IllegalArgumentException * if <code>specifiedEnd</code> is null. * @return <code>true</code> if the current object state changed because of the removal. */ boolean removeSpecifiedEnd(AssociationEnd specifiedEnd); /** * <p> * Removes all the objects of type "specified end" from the collection of the current object. * </p> */ void clearSpecifiedEnds(); /** * <p> * Gets all the objects of type "specified end" previously added to the collection of the current object. * </p> * <p> * Additions and removals of elements to and from the returned collection do not change the state of current object * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the * returned collections share references to the same objects). * </p> * * @return a <code>java.util.Collection</code> instance, containing all the objects of type * <code>AssociationEnd</code> added to the collection of current object. */ Collection<AssociationEnd> getSpecifiedEnds(); /** * <p> * Checks if a specified end is contained in the collection of the current object. * </p> * * @param specifiedEnd * the element to be tested. * @throws IllegalArgumentException * if <code>specifiedEnd</code> is null. * @return <code>true</code> if <code>specifiedEnd</code> is contained in the collection of the current object. */ boolean containsSpecifiedEnd(AssociationEnd specifiedEnd); /** * <p> * Returns the number of objects of type "specified end" previously added to the collection of the current object. * </p> * * @return the quantity of objects of type <code>AssociationEnd</code> inserted in the collection of the current * object. */ int countSpecifiedEnds(); /** * <p> * Adds a powertype range to the collection of the current object. * </p> * * @param powertypeRange * the powertype range to be added. * @throws IllegalArgumentException * if <code>powertypeRange</code> is null. */ void addPowertypeRange(Generalization powertypeRange); /** * <p> * Removes a powertype range from the collection of the current object. * </p> * * @param powertypeRange * the powertype range to be removed. * @throws IllegalArgumentException * if <code>powertypeRange</code> is null. * @return <code>true</code> if the current object state changed because of the removal. */ boolean removePowertypeRange(Generalization powertypeRange); /** * <p> * Removes all the objects of type "powertype range" from the collection of the current object. * </p> */ void clearPowertypeRanges(); /** * <p> * Gets all the objects of type "powertype range" previously added to the collection of the current object. * </p> * <p> * Additions and removals of elements to and from the returned collection do not change the state of current object * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the * returned collections share references to the same objects). * </p> * * @return a <code>java.util.Collection</code> instance, containing all the objects of type * <code>Generalization</code> added to the collection of current object. */ Collection<Generalization> getPowertypeRanges(); /** * <p> * Checks if a powertype range is contained in the collection of the current object. * </p> * * @param powertypeRange * the element to be tested. * @throws IllegalArgumentException * if <code>powertypeRange</code> is null. * @return <code>true</code> if <code>powertypeRange</code> is contained in the collection of the current * object. */ boolean containsPowertypeRange(Generalization powertypeRange); /** * <p> * Returns the number of objects of type "powertype range" previously added to the collection of the current object. * </p> * * @return the quantity of objects of type <code>Generalization</code> inserted in the collection of the current * object. */ int countPowertypeRanges(); /** * <p> * Adds a object flow state to the collection of the current object. * </p> * * @param objectFlowState * the object flow state to be added. * @throws IllegalArgumentException * if <code>objectFlowState</code> is null. */ void addObjectFlowState(ObjectFlowState objectFlowState); /** * <p> * Removes a object flow state from the collection of the current object. * </p> * * @param objectFlowState * the object flow state to be removed. * @throws IllegalArgumentException * if <code>objectFlowState</code> is null. * @return <code>true</code> if the current object state changed because of the removal. */ boolean removeObjectFlowState(ObjectFlowState objectFlowState); /** * <p> * Removes all the objects of type "object flow state" from the collection of the current object. * </p> */ void clearObjectFlowStates(); /** * <p> * Gets all the objects of type "object flow state" previously added to the collection of the current object. * </p> * <p> * Additions and removals of elements to and from the returned collection do not change the state of current object * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the * returned collections share references to the same objects). * </p> * * @return a <code>java.util.Collection</code> instance, containing all the objects of type * <code>ObjectFlowState</code> added to the collection of current object. */ Collection<ObjectFlowState> getObjectFlowStates(); /** * <p> * Checks if a object flow state is contained in the collection of the current object. * </p> * * @param objectFlowState * the element to be tested. * @throws IllegalArgumentException * if <code>objectFlowState</code> is null. * @return <code>true</code> if <code>objectFlowState</code> is contained in the collection of the current * object. */ boolean containsObjectFlowState(ObjectFlowState objectFlowState); /** * <p> * Returns the number of objects of type "object flow state" previously added to the collection of the current * object. * </p> * * @return the quantity of objects of type <code>ObjectFlowState</code> inserted in the collection of the current * object. */ int countObjectFlowStates(); /** * <p> * Adds a instance to the collection of the current object. * </p> * * @param instance * the instance to be added. * @throws IllegalArgumentException * if <code>instance</code> is null. */ void addInstance(Instance instance); /** * <p> * Removes a instance from the collection of the current object. * </p> * * @param instance * the instance to be removed. * @throws IllegalArgumentException * if <code>instance</code> is null. * @return <code>true</code> if the current object state changed because of the removal, i.e. its collection * contained the specified instance. */ boolean removeInstance(Instance instance); /** * <p> * Removes all the objects of type "instance" from the collection of the current object. * </p> */ void clearInstances(); /** * <p> * Gets all the objects of type "instance" previously added to the collection of the current object. * </p> * <p> * Additions and removals of elements to and from the returned collection do not change the state of current object * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the * returned collections share references to the same objects). * </p> * * @return a <code>java.util.Collection</code> instance, containing all the objects of type <code>Instance</code> * added to the collection of current object. */ Collection<Instance> getInstances(); /** * <p> * Checks if a instance is contained in the collection of the current object. * </p> * * @param instance * the element to be tested. * @throws IllegalArgumentException * if <code>instance</code> is null. * @return <code>true</code> if <code>instance</code> is contained in the collection of the current object. */ boolean containsInstance(Instance instance); /** * <p> * Returns the number of objects of type "instance" previously added to the collection of the current object. * </p> * * @return the quantity of objects of type <code>Instance</code> inserted in the collection of the current object. */ int countInstances(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Classifier getClassifier();", "@Override\r\n\tpublic void buildClassifier(Instances data) throws Exception {\n\r\n\t}", "Classifier getBase_Classifier();", "@Override\n public Classifier getClassifier() {\n return this.classifier;\n }", "public Classifier getClassifier() {\n return classifier;\n }", "public Classifier getClassifier() {\n return m_Classifier;\n }", "public interface RelationalClassifier extends Classifier {\r\n}", "public String getClassifier() {\n return _classifier;\n }", "Classifier getType();", "public MLlibClassifier getClassifier() {\n return m_classifier;\n }", "public void setClassifier(Classifier classifier) {\n this.classifier = classifier;\n //setClassifier(classifier, false);\n }", "public abstract void printClassifier();", "@Override\n\tpublic void buildClassifier(Instances data) throws Exception {\n decision_tree = new MyID3();\n\t\tdecision_tree.buildClassifier(data);\n\n//\t\tSystem.out.println(decision_tree.toString());\n\n train_data = data;\n\n set_of_rule = convertTreeIntoRules(decision_tree);\n\n\n // DONT DELETE THISSSS\n set_of_rule.setTrainData(data);\n\n List<Rule> listrule = set_of_rule.getList_rule();\n System.out.println(\"\\n\\n\\nBEFORE PRUNEDDD\");\n for (int i = 0; i < listrule.size(); i++ ){\n System.out.println(\"Rule \"+i+\" :\");\n Rule rule = listrule.get(i);\n List<Edge> edges = rule.getPreconditions();\n for (int j=0; j< edges.size(); j++) {\n System.out.println(\"\\t-\"+edges.get(j).getAttribute_name() + \" = \" + edges.get(j).getAttribute_value());\n }\n System.out.println(\"\\tClass = \"+rule.getClass_value());\n }\n\n// selectBestSetofRule();\n\n\t}", "public void classify() {\n\t\ttry {\n\t\t\tdouble pred = classifier.classifyInstance(instances.instance(0));\n\t\t\tSystem.out.println(\"===== Classified instance =====\");\n\t\t\tSystem.out.println(\"Class predicted: \" + instances.classAttribute().value((int) pred));\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Problem found when classifying the text\");\n\t\t}\t\t\n\t}", "public void buildClassifier(Instances data) throws Exception {\n\n // can classifier handle the data?\n getCapabilities().testWithFail(data);\n\n // remove instances with missing class\n data = new Instances(data);\n data.deleteWithMissingClass();\n \n /* initialize the classifier */\n\n m_Train = new Instances(data, 0);\n m_Exemplars = null;\n m_ExemplarsByClass = new Exemplar[m_Train.numClasses()];\n for(int i = 0; i < m_Train.numClasses(); i++){\n m_ExemplarsByClass[i] = null;\n }\n m_MaxArray = new double[m_Train.numAttributes()];\n m_MinArray = new double[m_Train.numAttributes()];\n for(int i = 0; i < m_Train.numAttributes(); i++){\n m_MinArray[i] = Double.POSITIVE_INFINITY;\n m_MaxArray[i] = Double.NEGATIVE_INFINITY;\n }\n\n m_MI_MinArray = new double [data.numAttributes()];\n m_MI_MaxArray = new double [data.numAttributes()];\n m_MI_NumAttrClassInter = new int[data.numAttributes()][][];\n m_MI_NumAttrInter = new int[data.numAttributes()][];\n m_MI_NumAttrClassValue = new int[data.numAttributes()][][];\n m_MI_NumAttrValue = new int[data.numAttributes()][];\n m_MI_NumClass = new int[data.numClasses()];\n m_MI = new double[data.numAttributes()];\n m_MI_NumInst = 0;\n for(int cclass = 0; cclass < data.numClasses(); cclass++)\n m_MI_NumClass[cclass] = 0;\n for (int attrIndex = 0; attrIndex < data.numAttributes(); attrIndex++) {\n\t \n if(attrIndex == data.classIndex())\n\tcontinue;\n\t \n m_MI_MaxArray[attrIndex] = m_MI_MinArray[attrIndex] = Double.NaN;\n m_MI[attrIndex] = Double.NaN;\n\t \n if(data.attribute(attrIndex).isNumeric()){\n\tm_MI_NumAttrInter[attrIndex] = new int[m_NumFoldersMI];\n\tfor(int inter = 0; inter < m_NumFoldersMI; inter++){\n\t m_MI_NumAttrInter[attrIndex][inter] = 0;\n\t}\n } else {\n\tm_MI_NumAttrValue[attrIndex] = new int[data.attribute(attrIndex).numValues() + 1];\n\tfor(int attrValue = 0; attrValue < data.attribute(attrIndex).numValues() + 1; attrValue++){\n\t m_MI_NumAttrValue[attrIndex][attrValue] = 0;\n\t}\n }\n\t \n m_MI_NumAttrClassInter[attrIndex] = new int[data.numClasses()][];\n m_MI_NumAttrClassValue[attrIndex] = new int[data.numClasses()][];\n\n for(int cclass = 0; cclass < data.numClasses(); cclass++){\n\tif(data.attribute(attrIndex).isNumeric()){\n\t m_MI_NumAttrClassInter[attrIndex][cclass] = new int[m_NumFoldersMI];\n\t for(int inter = 0; inter < m_NumFoldersMI; inter++){\n\t m_MI_NumAttrClassInter[attrIndex][cclass][inter] = 0;\n\t }\n\t} else if(data.attribute(attrIndex).isNominal()){\n\t m_MI_NumAttrClassValue[attrIndex][cclass] = new int[data.attribute(attrIndex).numValues() + 1];\t\t\n\t for(int attrValue = 0; attrValue < data.attribute(attrIndex).numValues() + 1; attrValue++){\n\t m_MI_NumAttrClassValue[attrIndex][cclass][attrValue] = 0;\n\t }\n\t}\n }\n }\n m_MissingVector = new double[data.numAttributes()];\n for(int i = 0; i < data.numAttributes(); i++){\n if(i == data.classIndex()){\n\tm_MissingVector[i] = Double.NaN;\n } else {\n\tm_MissingVector[i] = data.attribute(i).numValues();\n }\n }\n\n /* update the classifier with data */\n Enumeration enu = data.enumerateInstances();\n while(enu.hasMoreElements()){\n update((Instance) enu.nextElement());\n }\t\n }", "public String getClassification() {\n return classification;\n }", "public String getClassification() {\n return classification;\n }", "public interface MultiLabelClassifier extends Serializable{\n int getNumClasses();\n MultiLabel predict(Vector vector);\n default MultiLabel[] predict(MultiLabelClfDataSet dataSet){\n\n List<MultiLabel> results = IntStream.range(0,dataSet.getNumDataPoints()).parallel()\n .mapToObj(i -> predict(dataSet.getRow(i)))\n .collect(Collectors.toList());\n return results.toArray(new MultiLabel[results.size()]);\n }\n\n default void serialize(File file) throws Exception{\n File parent = file.getParentFile();\n if (!parent.exists()){\n parent.mkdirs();\n }\n try (\n FileOutputStream fileOutputStream = new FileOutputStream(file);\n BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(fileOutputStream);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(bufferedOutputStream);\n ){\n objectOutputStream.writeObject(this);\n }\n }\n\n default void serialize(String file) throws Exception{\n serialize(new File(file));\n }\n\n\n FeatureList getFeatureList();\n\n LabelTranslator getLabelTranslator();\n\n interface ClassScoreEstimator extends MultiLabelClassifier{\n double predictClassScore(Vector vector, int k);\n default double[] predictClassScores(Vector vector){\n return IntStream.range(0,getNumClasses()).mapToDouble(k -> predictClassScore(vector,k))\n .toArray();\n\n }\n }\n\n\n\n interface ClassProbEstimator extends MultiLabelClassifier{\n double[] predictClassProbs(Vector vector);\n\n /**\n * in some cases, this can be implemented more efficiently\n * @param vector\n * @param classIndex\n * @return\n */\n default double predictClassProb(Vector vector, int classIndex){\n return predictClassProbs(vector)[classIndex];\n }\n }\n\n interface AssignmentProbEstimator extends MultiLabelClassifier{\n double predictLogAssignmentProb(Vector vector, MultiLabel assignment);\n default double predictAssignmentProb(Vector vector, MultiLabel assignment){\n return Math.exp(predictLogAssignmentProb(vector, assignment));\n }\n\n /**\n * batch version\n * can be implemented more efficiently in individual classifiers\n * @param vector\n * @param assignments\n * @return\n */\n default double[] predictAssignmentProbs(Vector vector, List<MultiLabel> assignments){\n return Arrays.stream(predictLogAssignmentProbs(vector, assignments)).map(Math::exp).toArray();\n }\n\n\n default double[] predictLogAssignmentProbs(Vector vector, List<MultiLabel> assignments){\n double[] logProbs = new double[assignments.size()];\n for (int c=0;c<assignments.size();c++){\n logProbs[c] = predictLogAssignmentProb(vector, assignments.get(c));\n }\n return logProbs;\n }\n }\n\n}", "public String getClassification() {\n return classification;\n }", "@Internal(\"Represented as part of archiveName\")\n public String getClassifier() {\n return classifier;\n }", "@Override\r\n public void buildClassifier(Instances instances) throws Exception {\n getCapabilities().testWithFail(instances);\r\n\r\n // remove instances with missing class\r\n instances = new Instances(instances);\r\n instances.deleteWithMissingClass();\r\n\r\n // ensure we have a data set with discrete variables only and with no\r\n // missing values\r\n instances = normalizeDataSet(instances);\r\n\r\n // copy instances to local field\r\n// m_Instances = new Instances(instances);\r\n m_Instances = instances;\r\n\r\n // initialize arrays\r\n int numClasses = m_Instances.classAttribute().numValues();\r\n m_Structures = new BayesNet[numClasses];\r\n m_cInstances = new Instances[numClasses];\r\n // m_cEstimator = new DiscreteEstimatorBayes(numClasses, m_fAlpha);\r\n\r\n for (int iClass = 0; iClass < numClasses; iClass++) {\r\n splitInstances(iClass);\r\n }\r\n\r\n // update probabilty of class label, using Bayesian network associated\r\n // with the class attribute only\r\n Remove rFilter = new Remove();\r\n rFilter.setAttributeIndices(\"\" + (m_Instances.classIndex() + 1));\r\n rFilter.setInvertSelection(true);\r\n rFilter.setInputFormat(m_Instances);\r\n Instances classInstances = new Instances(m_Instances);\r\n classInstances = Filter.useFilter(classInstances, rFilter);\r\n\r\n m_cEstimator = new BayesNet();\r\n SimpleEstimator classEstimator = new SimpleEstimator();\r\n classEstimator.setAlpha(m_fAlpha);\r\n m_cEstimator.setEstimator(classEstimator);\r\n m_cEstimator.buildClassifier(classInstances);\r\n\r\n /*combiner = new LibSVM(); \r\n FastVector classFv = new FastVector(2);\r\n classFv.addElement(CNTL);\r\n classFv.addElement(CASE);\r\n Attribute classAt = new Attribute(m_Instances.classAttribute().name(), \r\n classFv);\r\n attributesFv = new FastVector(m_Structures.length);\r\n attributesFv.addElement(classAt);\r\n for (int i = 0; i < m_Instances.classAttribute().numValues(); i++){\r\n if (!m_Instances.classAttribute().value(i).equals(CNTL))\r\n attributesFv.addElement(new Attribute(m_Instances.classAttribute\r\n ().value(i)));\r\n }\r\n combinerTrain = new Instances(\"combinertrain\", attributesFv, \r\n m_Instances.numInstances());\r\n combinerTrain.setClassIndex(0);\r\n for (int i = 0; i < m_Instances.numInstances(); i++){\r\n double[] probs = super.distributionForInstance(m_Instances.instance(i));\r\n Instance result = new Instance(attributesFv.size()); \r\n if (!m_Instances.classAttribute().value(m_Instances.instance(i).\r\n classIndex()).equals(CNTL))\r\n result.setValue(classAt, CASE);\r\n else\r\n result.setValue(classAt, CNTL);\r\n for (int j = 0; j < attributesFv.size(); j++){\r\n if (!attributesFv.elementAt(j).equals(classAt)){\r\n Attribute current = (Attribute) attributesFv.elementAt(j);\r\n result.setValue(current, \r\n probs[m_Instances.classAttribute().indexOfValue\r\n (current.name())]);\r\n }\r\n }\r\n combinerTrain.add(result);\r\n }\r\n combinerTrain = discretize(combinerTrain);\r\n combiner.buildClassifier(combinerTrain);*/\r\n }", "public EClassifier getEClassifier (String classifier) { \r\n\t\tEClassifier cl = null;\r\n\t\tfor (int i=0; i<this.packages.size() && cl==null; i++) \r\n\t\t\tcl = this.packages.get(i).getEClassifier(classifier);\r\n\t\treturn cl;\r\n\t}", "public interface Classifier extends NamedDisplayElement {\n}", "@Test\n\tpublic void testClassifier() {\n\t\t// Ensure there are no intermediate files left in tmp directory\n\t\tFile exampleFile = FileUtils.getTmpFile(FusionClassifier.EXAMPLE_FILE_NAME);\n\t\tFile predictionsFile = FileUtils.getTmpFile(FusionClassifier.PREDICTIONS_FILE_NAME);\n\t\texampleFile.delete();\n\t\tpredictionsFile.delete();\n\t\t\n\t\tList<List<Double>> columnFeatures = new ArrayList<>();\n\t\tSet<String> inputRecognizers = new HashSet();\n\t\tList<Map<String, Double>> supportingCandidates = new ArrayList();\n\t\tList<Map<String, Double>> competingCandidates = new ArrayList();\n\t\t\n\t\t// Supporting candidates\n\t\tMap<String, Double> supportingCandidatesTipo = new HashMap();\n\t\tsupportingCandidatesTipo.put(INPUT_RECOGNIZER_ID, TIPO_SIMILARITY_SCORE);\n\t\tsupportingCandidates.add(supportingCandidatesTipo);\n\n\t\tMap<String, Double> supportingCandidatesInsegna = new HashMap();\n\t\tsupportingCandidatesInsegna.put(INPUT_RECOGNIZER_ID, INSEGNA_SIMILARITY_SCORE);\n\t\tsupportingCandidates.add(supportingCandidatesInsegna);\n\t\t\n\t\t// Competing candidates\n\t\tMap<String, Double> competingCandidatesTipo = new HashMap();\n\t\tcompetingCandidatesTipo.put(INPUT_RECOGNIZER_ID, 0.);\n\t\tcompetingCandidates.add(competingCandidatesTipo);\n\t\tMap<String, Double> competingCandidatesInsegna = new HashMap();\n\t\tcompetingCandidatesInsegna.put(INPUT_RECOGNIZER_ID, 0.);\n\t\tcompetingCandidates.add(competingCandidatesInsegna);\n\n\t\t// Two columns: insegna and tipo from osterie_tipiche\n\t\t// A single column feature: uniqueness\n\t\tList<Double> featuresTipo = new ArrayList();\n\t\tfeaturesTipo.add(0.145833);\n\t\tcolumnFeatures.add(featuresTipo);\n\t\t\n\t\tList<Double> featuresInsegna = new ArrayList();\n\t\tfeaturesInsegna.add(1.0);\n\t\tcolumnFeatures.add(featuresInsegna);\n\t\t\n\t\t// A single input recognizer\n\t\tinputRecognizers.add(INPUT_RECOGNIZER_ID);\n\n\t\t// Create the classifier\n\t\tFusionClassifier classifier \n\t\t\t= new FusionClassifier(FileUtils.getSVMModelFile(MINIMAL_FUSION_CR_NAME), \n\t\t\t\t\tcolumnFeatures, \n\t\t\t\t\tRESTAURANT_CONCEPT_ID, \n\t\t\t\t\tinputRecognizers);\n\t\tList<Double> predictions \n\t\t\t= classifier.classifyColumns(supportingCandidates, competingCandidates);\n\t\t\n\t\tboolean tipoIsNegativeExample = predictions.get(0) < -0.5;\n\t\t\n//\t\tTODO This currently doesn't work -- need to investigate\n//\t\tboolean insegnaIsPositiveExample = predictions.get(1) > 0.5;\n\t\t\n\t\tassertTrue(tipoIsNegativeExample);\n//\t\tassertTrue(insegnaIsPositiveExample);\n\t\t\n\ttry {\n\t\tSystem.out.println(new File(\".\").getCanonicalPath());\n\t\tSystem.out.println(getClass().getProtectionDomain().getCodeSource().getLocation());\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\t\n\t}", "public abstract double classify(Instance e);", "public String getClassification() {\r\n\t\treturn this.classification;\r\n\t}", "public void start() throws Exception {\n String datasetPath = \"dataset\\\\arcene_train.arff\";\n\n Instances dataset = new Instances(fileSystemUtil.readDataSet(datasetPath));\n dataset.setClassIndex(dataset.numAttributes() - 1);\n\n // Creating instances of feature selection models\n List<FeatureSelectionModel> featureSelectionModels = new ArrayList<>();\n featureSelectionModels.add(new CorellationFeatureSelectionModel());\n featureSelectionModels.add(new InfoGainFeatureSelectionModel());\n featureSelectionModels.add(new WrapperAttributeFeatureSelectionModel());\n\n List<List<Integer>> listOfRankedLists = calculateRankedLists(dataset, featureSelectionModels);\n\n // Creating instances of classifiers\n List<AbstractClassifier> classifiers = createClassifiers();\n Instances datasetBackup = new Instances(dataset);\n\n int modelCounter = 0;\n for (FeatureSelectionModel model : featureSelectionModels) {\n System.out.println(\"============================================================================\");\n System.out.println(String.format(\"Classification, step #%d. %s.\", ++modelCounter, model));\n System.out.println(\"============================================================================\");\n\n // Ranking attributes\n List<Integer> attrRankList = listOfRankedLists.get(modelCounter - 1);\n\n for (int attrIndex = (int)(attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION - 1) + 1, removedCounter = 0;\n attrIndex >= attrRankList.size() * BEST_ATTRIBUTES_NUMBER_PROPORTION;\n attrIndex--, removedCounter++) {\n if (datasetBackup.numAttributes() == attrRankList.size()\n && attrIndex == 0) {\n continue;\n }\n// for (int attrIndex = attrRankList.size() * BEST_ATTRIBUTES_NUMBER_PROPORTION, removedCounter = 0;\n// attrIndex <= (attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION - 1);\n// attrIndex++, removedCounter++) {\n// if (datasetBackup.numAttributes() == attrRankList.size()\n// && attrIndex == attrRankList.size() - 1) {\n// continue;\n// }\n dataset = new Instances(datasetBackup);\n // Do not remove for first iteration\n if (removedCounter > 0) {\n // Selecting features (removing attributes one-by-one starting from worst)\n List<Integer> attrToRemoveList = attrRankList.subList(attrIndex,\n (int)(attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION));\n Collections.sort(attrToRemoveList);\n for (int i = attrToRemoveList.size() - 1; i >= 0; i--) {\n dataset.deleteAttributeAt(attrToRemoveList.get(i));\n }\n// for (Integer attr : attrToRemoveList) {\n// dataset.deleteAttributeAt(attr);\n// }\n System.out.println(\"\\n\\n-------------- \" + (removedCounter) + \" attribute(s) removed (of \" +\n (datasetBackup.numAttributes() - 1) + \") --------------\\n\");\n } else {\n System.out.println(\"\\n\\n-------------- First iteration - without feature selection --------------\\n\");\n }\n\n classify(classifiers, dataset);\n }\n }\n }", "public abstract void build(ClassifierData<U> inputData);", "@Override\n\tpublic Class<?> getRecommendedClassifier() {\n\t\treturn null;\n\t}", "public Class getModelClass() {\n return m_Classifier.getClass();\n }", "public List<EClassifier> getEClassifiers () { \r\n\t\treturn this.classifiers; \r\n\t}", "@Override\n public Classification<F, C> classify(Collection<F> features) {\n SortedSet<Classification<F, C>> probabilites = this.categoryProbabilities(features);\n\n if (probabilites.size() > 0) {\n return probabilites.last();\n }\n return null;\n }", "org.landxml.schema.landXML11.ClassificationDocument.Classification addNewClassification();", "public RandomForestClassificationModel getClassificationModel() {\n\t\treturn classificationModel;\n\t}", "private static void CreateClassifierVec(Dataset set, int dim_num,\n\t\t\tArrayList<KDNode> class_buff, int vec_offset) {\n\t\t\t\n\t\tAttribute atts[] = new Attribute[set.size()];\n\t\t// Declare the class attribute along with its values\n\t\t FastVector fvClassVal = new FastVector(4);\n\t\t fvClassVal.addElement(\"n2\");\n\t\t fvClassVal.addElement(\"n1\");\n\t\t fvClassVal.addElement(\"p1\");\n\t\t fvClassVal.addElement(\"p2\");\n\t\t Attribute ClassAttribute = new Attribute(\"theClass\", fvClassVal);\n\t \n\t\tFastVector fvWekaAttributes = new FastVector(set.size() + 1);\n\t for(int i=0; i<set.size(); i++) {\n\t \tatts[i] = new Attribute(\"att\"+i);\n\t \tfvWekaAttributes.addElement(atts[i]);\n\t }\n\t \n\t fvWekaAttributes.addElement(ClassAttribute);\n\t \n\t Instances isTrainingSet = new Instances(\"Rel\", fvWekaAttributes, class_buff.size()); \n\t isTrainingSet.setClassIndex(set.size());\n\t\t\n\t for(int k=0; k<class_buff.size(); k++) {\n\t \t\n\t \tArrayList<Integer> data_set = new ArrayList<Integer>();\n\t\t\tfor(int j=0; j<set.size(); j++) {\n\t\t\t\t\n\t\t\t\t\tint offset = 0;\n\t\t\t\t\tSet<Entry<Integer, Double>> s = set.instance(j).entrySet();\n\t\t\t\t\tdouble sample[] = new double[dim_num];\n\t\t\t\t\tfor(Entry<Integer, Double> val : s) {\n\t\t\t\t\t\tsample[offset++] = val.getValue();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tint output = class_buff.get(k).classifier.Output(sample);\n\t\t\t\t\tdata_set.add(output);\n\t\t\t}\n\t\t\t\n\t\t\tif(data_set.size() != set.size()) {\n\t\t\t\tSystem.out.println(\"dim mis\");System.exit(0);\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tInstance iExample = new Instance(set.size() + 1);\n\t\t\tfor(int j=0; j<set.size(); j++) {\n\t\t\t\tiExample.setValue(j, data_set.get(j));\n\t\t\t}\n\t\t\t\n\t\t\tif(Math.random() < 0.5) {\n\t\t\t\tiExample.setValue((Attribute)fvWekaAttributes.elementAt(set.size()), \"n1\"); \n\t\t\t} else {\n\t\t\t\tiExample.setValue((Attribute)fvWekaAttributes.elementAt(set.size()), \"p1\"); \n\t\t\t}\n\t\t\t \n\t\t\t// add the instance\n\t\t\tisTrainingSet.add(iExample);\n\t }\n\t\t\n\t System.out.println(dim_num+\" *************\");\n\t int select_num = 16;\n\t\tPrincipalComponents pca = new PrincipalComponents();\n\t\t//pca.setVarianceCovered(0.1);\n Ranker ranker = new Ranker();\n ranker.setNumToSelect(select_num);\n AttributeSelection selection = new AttributeSelection();\n selection.setEvaluator(pca);\n \n Normalize normalizer = new Normalize();\n try {\n normalizer.setInputFormat(isTrainingSet);\n isTrainingSet = Filter.useFilter(isTrainingSet, normalizer);\n \n selection.setSearch(ranker);\n selection.SelectAttributes(isTrainingSet);\n isTrainingSet = selection.reduceDimensionality(isTrainingSet);\n\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(0);\n }\n \n for(int i=0; i<class_buff.size(); i++) {\n \tInstance inst = isTrainingSet.instance(i);\n \tdouble val[] = inst.toDoubleArray();\n \tint offset = vec_offset;\n \t\n \tfloat length = 0;\n \tfor(int j=0; j<select_num; j++) {\n \t\tlength += val[j] * val[j];\n \t}\n \t\n \tlength = (float) Math.sqrt(length);\n \tfor(int j=0; j<select_num; j++) {\n \t\tclass_buff.get(i).class_vect[offset++] = val[j] / length;\n \t}\n }\n\t}", "public void setClassifier(String classifier) {\n JodaBeanUtils.notNull(classifier, \"classifier\");\n this._classifier = classifier;\n }", "public interface IClassifierService extends IGenericService<Classifier, Long>{\n\n /**\n * Verify code error message.\n *\n * @param code the code\n * @param year the year\n * @param exception the exception\n * @return the error message\n */\n public ErrorMessage verifyCode(String code, Integer year, Long exception);\n\n /**\n * Gets by path.\n *\n * @param path the path\n * @return the by path\n */\n public Classifier getByPath(String path);\n\n /**\n * Gets parent.\n *\n * @param path the path\n * @return the parent\n */\n public Classifier getParent(String path);\n\n /**\n * Gets generic.\n *\n * @param path the path\n * @return the generic\n */\n public Classifier getGeneric(String path);\n\n /**\n * Get parent info object [ ].\n *\n * @param path the path\n * @return the object [ ]\n */\n public Object[] getParentInfo(String path);\n\n /**\n * Gets generic classifiers.\n *\n * @return the generic classifiers\n */\n public List<Classifier> getGenericClassifiers();\n}", "public interface Aggregator {\n /**\n * Determines the final class recognized\n * @param confidence Confidence values produced by a recognizer\n * (one confidence value per class)\n * @return The final prediction given by a classifier\n */\n public Prediction apply( double[] confidence );\n\n}", "public String getClassificationName()\n {\n return classificationName;\n }", "public T caseClassifier(Classifier object) {\n\t\treturn null;\n\t}", "public EnsembleLibraryModel(Classifier classifier) {\n \n m_Classifier = classifier;\n \n //this may seem redundant and stupid, but it really is a good idea \n //to cache the stringRepresentation to minimize the amount of work \n //that needs to be done when these Models are rendered\n m_StringRepresentation = toString();\n \n updateDescriptionText();\n }", "public Collection<Classification<F, C>> classifyDetailed(Collection<F> features) {\n return this.categoryProbabilities(features);\n }", "public interface ClassifierClass extends javax.jmi.reflect.RefClass {\n}", "org.landxml.schema.landXML11.ClassificationDocument.Classification[] getClassificationArray();", "public AutoClassification(ClassificationModel classificationModel) {\r\n this.classificationModel = classificationModel;\r\n }", "public Integer getClassify() {\n return classify;\n }", "@Override\n public void buildClassifier(Instances trainingData) throws Exception {\n // can classifier handle the data?\n getCapabilities().testWithFail(trainingData);\n\n tree = new MultiInstanceDecisionTree(trainingData);\n }", "@Override\n\tprotected void postprocess(Classifier classifier, PipelineData data) throws Exception {\n\t}", "abstract String classify(Instance inst);", "public static ClassifiedFeature createClassifiedFeature(Feature feature, Classifier classifier) {\n ClassifiedFeature classifiedFeature = ClassificationFactory.eINSTANCE.createClassifiedFeature();\n classifiedFeature.setFeature(feature);\n classifiedFeature.setClassified(classifier);\n return classifiedFeature;\n }", "java.util.List<org.landxml.schema.landXML11.ClassificationDocument.Classification> getClassificationList();", "public List<String> classifiers()\n\t{\n\t\t//If the classifier list has not yet been constructed then go ahead and do it\n\t\tif (c.isEmpty())\n\t\t{\n\t\t\tfor(DataSetMember<t> member : _data)\n\t\t\t{\n\t\t\t\tif (!c.contains(member.getCategory()))\n\t\t\t\t\t\tc.add(member.getCategory().toString());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn c;\n\t}", "org.landxml.schema.landXML11.ClassificationDocument.Classification getClassificationArray(int i);", "public interface CwmDimensionedObjectClass extends javax.jmi.reflect.RefClass {\n /**\n * The default factory operation used to create an instance object.\n * \n * @return The created instance object.\n */\n public CwmDimensionedObject createCwmDimensionedObject();\n\n /**\n * Creates an instance object having attributes initialized by the passed values.\n * \n * @param name\n * An identifier for the ModelElement within its containing Namespace.\n * @param visibility\n * Specifies extent of the visibility of the ModelElement within its owning Namespace.\n * @param ownerScope\n * Specifies whether the Feature appears in every instance of the Classifier or whether it appears only once\n * for the entire Classifier.\n * @param changeability\n * Specifies whether the value may be modified after the object is created.\n * @param multiplicity\n * The possible number of data values for the feature that may be held by an instance. The cardinality of the\n * set of values is an implicit part of the feature. In the common case in which the multiplicity is 1..1,\n * then the feature is a scalar (i.e., it holds exactly one value).\n * @param ordering\n * Specifies whether the set of instances is ordered. The ordering must be determined and maintained by\n * Operations that add values to the feature. This property is only relevant if the multiplicity is greater\n * than one.\n * @param targetScope\n * Specifies whether the targets are ordinary Instances or are Classifiers.\n * @param initialValue\n * An Expression specifying the value of the attribute upon initialization. It is meant to be evaluated at\n * the time the object is initialized. (Note that an explicit constructor may supersede an initial value.)\n * @return The created instance object.\n */\n public CwmDimensionedObject createCwmDimensionedObject( java.lang.String name,\n org.pentaho.pms.cwm.pentaho.meta.core.VisibilityKind visibility,\n org.pentaho.pms.cwm.pentaho.meta.core.ScopeKind ownerScope,\n org.pentaho.pms.cwm.pentaho.meta.core.ChangeableKind changeability,\n org.pentaho.pms.cwm.pentaho.meta.core.CwmMultiplicity multiplicity,\n org.pentaho.pms.cwm.pentaho.meta.core.OrderingKind ordering,\n org.pentaho.pms.cwm.pentaho.meta.core.ScopeKind targetScope,\n org.pentaho.pms.cwm.pentaho.meta.core.CwmExpression initialValue );\n}", "public void buildClassifier(Instances instances) throws Exception {\r\n\t\tif (instances.checkForStringAttributes()) {\r\n\t\t\tthrow new UnsupportedAttributeTypeException(\"Cannot handle string attributes!\");\r\n\t\t} \r\n\t\tif (instances.numInstances() == 0) {\r\n\t\t\t//throw new IllegalArgumentException(\"No training instances.\");\r\n\t\t}\r\n\t\tif (instances.numAttributes() == 1) {\r\n\t\t\tSystem.err.println(\"No training instances found - only classes.\");\r\n\t\t\tthrow new IllegalArgumentException(\"No training instances found - only classes.\");\r\n\t\t}\r\n\t\t\r\n\t\tinstances = initClassifier(instances);\r\n\r\n\t\tcreateInputLayer(instances);\r\n\t\tcreateOutputLayer(instances);\r\n\t\tcreateHiddenLayer();\r\n\r\n\t\t// connections done.\r\n\t\t// learnClassifier(instances);\r\n\t}", "public List<String> useTreeOnData() {\n\t\tList<String> classifierWithData = new ArrayList<String>();\n\t\tString header = \"LEARND\\tACTUAL\";\n\t\tfor (String s : attributeNames) {\n\t\t\tchar[] truncated = Arrays.copyOf(s.toCharArray(),5);\n\t\t\tString tr = \"\";\n\t\t\tfor (int i = 0; i < 5 && Character.isAlphabetic(truncated[i]); i++) {\n\t\t\t\ttr += truncated[i];\n\t\t\t}\n\t\t\theader += \"\\t\"+ tr +\".\";\n\t\t}\n\t\tclassifierWithData.add(header);\n\t\tif (root == null || data == null || attributeNames.size() == 0) {\n\t\t\tthrow new IllegalStateException();\n\t\t}\n\t\tfor (Instance inst : data) {\n\t\t\tString s = root.classify(inst) +\"\\t\"+ inst.toString();\n\t\t\tclassifierWithData.add(s);\n\t\t}\n\t\treturn classifierWithData;\n\t}", "@Override\n public boolean predicate2(Object dm, Designer dsgr) {\n if (!(Model.getFacade().isAClassifier(dm))) {\n return NO_PROBLEM;\n }\n if (!(Model.getFacade().isPrimaryObject(dm))) {\n return NO_PROBLEM;\n }\n\n // If the classifier does not have a name,\n // then no problem - the model is not finished anyhow.\n if ((Model.getFacade().getName(dm) == null)\n\t || (\"\".equals(Model.getFacade().getName(dm)))) {\n return NO_PROBLEM;\n\t}\n\n // Abstract elements do not necessarily require associations\n if (Model.getFacade().isAGeneralizableElement(dm)\n\t && Model.getFacade().isAbstract(dm)) {\n return NO_PROBLEM;\n }\n\n // Types can probably have associations, but we should not nag at them\n // not having any.\n // utility is a namespace collection - also not strictly required\n // to have associations.\n if (Model.getFacade().isType(dm)) {\n return NO_PROBLEM;\n }\n if (Model.getFacade().isUtility(dm)) {\n return NO_PROBLEM;\n }\n\n // See issue 1129: If the classifier has dependencies,\n // then mostly there is no problem. \n if (Model.getFacade().getClientDependencies(dm).size() > 0) {\n return NO_PROBLEM;\n }\n if (Model.getFacade().getSupplierDependencies(dm).size() > 0) {\n return NO_PROBLEM;\n }\n \n // special cases for use cases\n // Extending use cases and use case that are being included are\n // not required to have associations.\n if (Model.getFacade().isAUseCase(dm)) {\n Object usecase = dm;\n Collection includes = Model.getFacade().getIncludes(usecase);\n if (includes != null && includes.size() >= 1) {\n return NO_PROBLEM;\n }\n Collection extend = Model.getFacade().getExtends(usecase);\n if (extend != null && extend.size() >= 1) {\n return NO_PROBLEM;\n }\n }\n \n \n\n //TODO: different critic or special message for classes\n //that inherit all ops but define none of their own.\n\n if (findAssociation(dm, 0)) {\n return NO_PROBLEM;\n }\n return PROBLEM_FOUND;\n }", "public void classify() throws Exception;", "@Override\r\n\tpublic List<Classified> getAllClassified() {\n\t\treturn null;\r\n\t}", "public int getNumEClassifiers () { \r\n\t\treturn this.classifiers.size(); \r\n\t}", "public void buildClassifier(Instances data) throws Exception {\n\n // can classifier tree handle the trainData?\n getCapabilities().testWithFail(data);\n\n // remove instances with missing class\n data = new Instances(data);\n data.deleteWithMissingClass();\n\n buildTree(data, m_subtreeRaising || !m_cleanup);\n if (m_pruneTheTree) {\n prune(data);\n }\n if (m_cleanup) {\n cleanup(new Instances(data, 0));\n }\n }", "@Override\r\n\tpublic double classifyInstance(Instance instance) throws Exception {\n\t\tdouble[] hist = bop.bagToArray(bop.buildBag(instance));\r\n\r\n\t\t// stuff into Instance\r\n\t\tInstances newInsts = new Instances(matrix, 1); // copy attribute data\r\n\t\tnewInsts.add(new SparseInstance(1.0, hist));\r\n\r\n\t\treturn knn.classifyInstance(newInsts.firstInstance());\r\n\t}", "public void doneClassifying() {\n\t\tbinaryTrainClassifier = trainFactory.trainClassifier(binaryTrainingData);\n\t\tmultiTrainClassifier = testFactory.trainClassifier(multiTrainingData);\n\t\tLinearClassifier.writeClassifier(binaryTrainClassifier, BINARY_CLASSIFIER_FILENAME);\n\t\tLinearClassifier.writeClassifier(multiTrainClassifier, MULTI_CLASSIFIER_FILENAME);\n\t}", "@SuppressWarnings(\"unchecked\")\r\n public static void main(String[] args)\r\n {\r\n //final String INPUT_FILE=\"contact-lenses.arff\";\r\n final String INPUT_FILE=\"adult.merged.arff\";\r\n Instances data;\r\n try {\r\n Reader reader = new FileReader(INPUT_FILE);\r\n data = new Instances(reader);\r\n } catch (Exception e) {\r\n System.out.println(\"Failed to read input file \" + INPUT_FILE + \", exiting\");\r\n return;\r\n }\r\n data.setClassIndex(data.numAttributes()-1);\r\n\r\n System.out.println(\"Acquired data from file \" + INPUT_FILE);\r\n System.out.println(\"Got \" + data.numInstances() + \" instances with \" + data.numAttributes() + \" attributes, class attribute is \" + data.classAttribute().name());\r\n AttributeScoreAlgorithm scorer = new MaxScorer ();\r\n Enumeration<Attribute> atts=(Enumeration<Attribute>)data.enumerateAttributes();\r\n while (atts.hasMoreElements())\r\n {\r\n C45Attribute att=new C45Attribute(atts.nextElement());\r\n System.out.println(\"Score for attribute \" + att.WekaAttribute().name() + \" is \" + scorer.Score(data,att));\r\n }\r\n\r\n List<C45Attribute> candidateAttributes = new LinkedList<C45Attribute>();\r\n Enumeration attEnum = data.enumerateAttributes();\r\n while (attEnum.hasMoreElements())\r\n candidateAttributes.add(new C45Attribute((Attribute)attEnum.nextElement()));\r\n BigDecimal epsilon=new BigDecimal(0.1, DiffPrivacyClassifier.MATH_CONTEXT);\r\n PrivacyAgent agent = new PrivacyAgentBudget(epsilon);\r\n\r\n PrivateInstances privData = new PrivateInstances(agent,data);\r\n privData.setDebugMode(true);\r\n\r\n try {\r\n C45Attribute res=privData.privateChooseAttribute(new MaxScorer(), candidateAttributes,epsilon);\r\n System.out.println(\"Picked attribute \" + res.WekaAttribute().name());\r\n } catch(Exception e) { System.out.println(e.getMessage());}\r\n }", "public static interface Enhancer{\r\n\t\t\r\n\t\tpublic Classification getClassification(ClassifierGenerator generator, Processor processor, TreeNode tree, Tuple tuple, long dueTime);\r\n\t}", "@ApiModelProperty(example = \"null\", value = \"Use this name for referring to the classifier in a configuration provided with the media for processing\")\n public String getClassifierName() {\n return classifierName;\n }", "public WekaLearner(Classifier classifier) {\n super(Type.MODEL, Type.TRIV);\n this.classifier = classifier;\n }", "@Override\n public DescribeDocumentClassifierResult describeDocumentClassifier(DescribeDocumentClassifierRequest request) {\n request = beforeClientExecution(request);\n return executeDescribeDocumentClassifier(request);\n }", "ClassificationHandler getClassificationHandler() {\n return classificationHandler;\n }", "@Override\n\tpublic abstract Classifier run ();", "public abstract double test(ClassifierData<U> testData);", "public interface MDataType extends MClassifier\r\n{\r\n}", "public interface ClassLearner<I>\n{\n //-------------------------------------------------------------------------\n public Classifier<I> learn(\n List<Classified<I>> trainingPoints);\n}", "public MediaAiAnalysisClassificationItem [] getClassificationSet() {\n return this.ClassificationSet;\n }", "@Unstable\npublic interface FeatureClusterView extends Feature\n{\n /**\n * Returns the reference features, if any.\n * \n * @return a potentially empty, unmodifiable collection of the features from the reference patient\n */\n Collection<Feature> getReference();\n\n /**\n * Returns the features matched by this feature, if any.\n * \n * @return a potentially empty, unmodifiable collection of the features from the reference patient, with\n * {@code null} values corresponding to undisclosed features\n */\n Collection<Feature> getMatch();\n\n /**\n * Returns the root/ancestor of the cluster.\n * \n * @return the root feature for the reference and match features\n */\n OntologyTerm getRoot();\n\n /**\n * How similar are the match and reference features.\n * \n * @return a similarity score, between {@code -1} for opposite features and {@code 1} for an exact match, with\n * {@code 0} for features with no similarities, and {@code NaN} if one of the collections of features is\n * empty\n */\n double getScore();\n\n /**\n * Retrieve all information about the cluster of features. For example:\n * \n * <pre>\n * {\n * \"id\": \"HP:0100247\",\n * \"name\": \"Recurrent singultus\",\n * \"type\": \"ancestor\",\n * \"reference\": [\n * \"HP:0001201\",\n * \"HP:0000100\"\n * ],\n * \"match\": [\n * \"HP:0001201\"\n * ]\n * }\n * </pre>\n * \n * @return the feature data, using the json-lib classes\n */\n JSONObject toJSON();\n}", "public abstract Annotations getClassAnnotations();", "protected ClassifierImpl(StorableObject storable) {\n super(storable);\n }", "public abstract int classifyInstance(Instance instance) throws Exception;", "public String trainmodelandclassify(Attribute at) throws Exception {\n\t\tif(at.getAge()>=15 && at.getAge()<=25)\n\t\t\tat.setAgegroup(\"15-25\");\n\t\tif(at.getAge()>=26 && at.getAge()<=45)\n\t\t\tat.setAgegroup(\"25-45\");\n\t\tif(at.getAge()>=46 && at.getAge()<=65)\n\t\t\tat.setAgegroup(\"45-65\");\n\t\t\n\t\t\n\t\t\n\t\t//loading the training dataset\n\t\n\tDataSource source=new DataSource(\"enter the location of your .arff file for training data\");\n\tSystem.out.println(source);\n\tInstances traindataset=source.getDataSet();\n\t//setting the class index (which would be one less than the number of attributes)\n\ttraindataset.setClassIndex(traindataset.numAttributes()-1);\n\tint numclasses=traindataset.numClasses();\n for (int i = 0; i < numclasses; i++) {\n \tString classvalue=traindataset.classAttribute().value(i);\n \tSystem.out.println(classvalue);\n\t\t\n\t}\n //building the classifier\n NaiveBayes nb= new NaiveBayes();\n nb.buildClassifier(traindataset);\n System.out.println(\"model trained successfully\");\n \n //test the model\n\tDataSource testsource=new DataSource(\"enter the location of your .arff file for test data\");\n\tInstances testdataset=testsource.getDataSet();\n\t\n\tFileWriter fwriter = new FileWriter(\"enter the location of your .arff file for test data\",true); //true will append the new instance\n\tfwriter.write(System.lineSeparator());\n\tfwriter.write(at.getAgegroup()+\",\"+at.getGender()+\",\"+at.getProfession()+\",\"+\"?\");//appends the string to the file\n\tfwriter.close();\n\ttestdataset.setClassIndex(testdataset.numAttributes()-1);\n\t//looping through the test dataset and making predictions\n\tfor (int i = 0; i < testdataset.numInstances(); i++) {\n\t\tdouble classvalue=testdataset.instance(i).classValue();\n\t\tString actualclass=testdataset.classAttribute().value((int)classvalue);\n\t\tInstance instance=testdataset.instance(i);\n\t\tdouble pclassvalue=nb.classifyInstance(instance);\n\t\tString pclass=testdataset.classAttribute().value((int)pclassvalue);\n\t\tSystem.out.println(actualclass+\" \"+ pclass);\n\t\n}\n\tdouble classval=testdataset.instance(testdataset.numInstances()-1).classValue();\n\tInstance ins=testdataset.lastInstance();\n\tdouble pclassval=nb.classifyInstance(ins);\n\tString pclass=testdataset.classAttribute().value((int)pclassval);\n\tSystem.out.println(pclass);\n\t\n\treturn pclass;\n}", "public DecisionDescriptor() {\n super();\n xmlName = \"decision\";\n \n //-- set grouping compositor\n setCompositorAsSequence();\n org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;\n org.exolab.castor.xml.XMLFieldHandler handler = null;\n org.exolab.castor.xml.FieldValidator fieldValidator = null;\n //-- initialize attribute descriptors\n \n //-- _decisionClass\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, \"_decisionClass\", \"decisionClass\", org.exolab.castor.xml.NodeType.Attribute);\n desc.setImmutable(true);\n handler = (new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Decision target = (Decision) object;\n return target.getDecisionClass();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Decision target = (Decision) object;\n target.setDecisionClass( (java.lang.String) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n } );\n desc.setHandler(handler);\n addFieldDescriptor(desc);\n \n //-- validation code for: _decisionClass\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n { //-- local scope\n StringValidator typeValidator = new StringValidator();\n typeValidator.setWhiteSpace(\"preserve\");\n fieldValidator.setValidator(typeValidator);\n }\n desc.setValidator(fieldValidator);\n //-- _methodName\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, \"_methodName\", \"methodName\", org.exolab.castor.xml.NodeType.Attribute);\n desc.setImmutable(true);\n handler = (new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Decision target = (Decision) object;\n return target.getMethodName();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Decision target = (Decision) object;\n target.setMethodName( (java.lang.String) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n } );\n desc.setHandler(handler);\n addFieldDescriptor(desc);\n \n //-- validation code for: _methodName\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n { //-- local scope\n StringValidator typeValidator = new StringValidator();\n typeValidator.setWhiteSpace(\"preserve\");\n fieldValidator.setValidator(typeValidator);\n }\n desc.setValidator(fieldValidator);\n //-- _signature\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, \"_signature\", \"signature\", org.exolab.castor.xml.NodeType.Attribute);\n desc.setImmutable(true);\n handler = (new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Decision target = (Decision) object;\n return target.getSignature();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Decision target = (Decision) object;\n target.setSignature( (java.lang.String) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n } );\n desc.setHandler(handler);\n addFieldDescriptor(desc);\n \n //-- validation code for: _signature\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n { //-- local scope\n StringValidator typeValidator = new StringValidator();\n typeValidator.setWhiteSpace(\"preserve\");\n fieldValidator.setValidator(typeValidator);\n }\n desc.setValidator(fieldValidator);\n //-- _type\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(de.tif.jacob.ruleengine.castor.types.DecisionType.class, \"_type\", \"type\", org.exolab.castor.xml.NodeType.Attribute);\n handler = (new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Decision target = (Decision) object;\n return target.getType();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Decision target = (Decision) object;\n target.setType( (de.tif.jacob.ruleengine.castor.types.DecisionType) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n } );\n desc.setHandler( new org.exolab.castor.xml.handlers.EnumFieldHandler(de.tif.jacob.ruleengine.castor.types.DecisionType.class, handler));\n desc.setImmutable(true);\n addFieldDescriptor(desc);\n \n //-- validation code for: _type\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n { //-- local scope\n }\n desc.setValidator(fieldValidator);\n //-- initialize element descriptors\n \n //-- _conditionalExitList\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(de.tif.jacob.ruleengine.castor.ConditionalExit.class, \"_conditionalExitList\", \"conditionalExit\", org.exolab.castor.xml.NodeType.Element);\n handler = (new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Decision target = (Decision) object;\n return target.getConditionalExit();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Decision target = (Decision) object;\n target.addConditionalExit( (de.tif.jacob.ruleengine.castor.ConditionalExit) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return new de.tif.jacob.ruleengine.castor.ConditionalExit();\n }\n } );\n desc.setHandler(handler);\n desc.setMultivalued(true);\n addFieldDescriptor(desc);\n \n //-- validation code for: _conditionalExitList\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n fieldValidator.setMinOccurs(0);\n { //-- local scope\n }\n desc.setValidator(fieldValidator);\n //-- _parameterList\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, \"_parameterList\", \"parameter\", org.exolab.castor.xml.NodeType.Element);\n desc.setImmutable(true);\n handler = (new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Decision target = (Decision) object;\n return target.getParameter();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Decision target = (Decision) object;\n target.addParameter( (java.lang.String) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n } );\n desc.setHandler(handler);\n desc.setMultivalued(true);\n addFieldDescriptor(desc);\n \n //-- validation code for: _parameterList\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n fieldValidator.setMinOccurs(0);\n { //-- local scope\n StringValidator typeValidator = new StringValidator();\n typeValidator.setWhiteSpace(\"preserve\");\n fieldValidator.setValidator(typeValidator);\n }\n desc.setValidator(fieldValidator);\n }", "public final DocumentClassifierFactory getDocumentClassificationFactory() {\n return this.docClassFactory;\n }", "public interface DecisionTreeExample<T extends Comparable<T>, K> extends ClassifierExample<T, K> {\r\n\r\n\t/**\r\n\t * \r\n\t * @param feat\r\n\t * - particular feature to be examined\r\n\t * @param value\r\n\t * - Implementation of the comparable interface to ensure that\r\n\t * this example's feature can be compared with value\r\n\t * \r\n\t * @return boolean to indicate whether this example has value specified for\r\n\t * the feature\r\n\t */\r\n\tboolean hasValueForFeature(DecisionTreeFeature<T> feat, Comparable<T> lowValue, Comparable<T> highValue,\r\n\t\t\tK positiveLabel);\r\n\r\n}", "public boolean isSetClassification() {\n return this.classification != null;\n }", "public void setClassification(String classification) {\n this.classification = classification;\n }", "public void initialize(String name, Element element) throws Exception {\r\n\t\tsuper.initialize(name, element);\r\n\t\t\r\n\t\tif (log.isDebugEnabled()) {\r\n\t\t\tlog.debug(\"Initialising SVM classifier\");\r\n\t\t}\r\n\t\t\r\n\t\tNodeList elements = element.getElementsByTagName(\"vocabulary\");\r\n\t\tif (elements.getLength() != 1) {\r\n\t\t\tthrow new Exception(\"Found invalid vocabulary elements for concept: \" + name);\r\n\t\t}\r\n\t\tvocabulary = ((Element) elements.item(0)).getTextContent();\r\n\t\t\r\n\t\tif (log.isDebugEnabled()) {\r\n\t\t\tlog.debug(\"Found vocabulary: \" + vocabulary);\r\n\t\t}\r\n\t\t\r\n\t\telements = element.getElementsByTagName(\"include\");\r\n\t\tint docId = 0;\r\n\t\tfor(int i = 0; i < elements.getLength(); i++) {\r\n\t\t\tElement e = (Element) elements.item(i);\r\n\t\t\tConcept c = getConcept(e.getTextContent(), \"class\");\r\n\t\t\tc.setId(String.valueOf(docId++));\r\n\t\t\tuniverse.add(c);\r\n\t\t}\r\n\t\telements = element.getElementsByTagName(\"exclude\");\r\n\t\tfor(int i = 0; i < elements.getLength(); i++) {\r\n\t\t\tElement e = (Element) elements.item(i);\r\n\t\t\tConcept c = getConcept(e.getTextContent(), \"other\");\r\n\t\t\tc.setId(String.valueOf(docId++));\r\n\t\t\tuniverse.add(c);\r\n\t\t}\r\n\t\t\r\n\t\tString label = \"class\";\r\n\t\t/* Use null as value for the VectorSpace parameter forcing a new\r\n\t\t * VectorSpace instance to be created. Subsequently new Vectors are\r\n\t\t * added to the space. Note that each Modeller can be associated with\r\n\t\t * a single Concept. If more than one concept needs to be identified,\r\n\t\t * use a Modeller instance for each concept (label) and share\r\n\t\t * the space between them. */\r\n\t\tsvm = new Modeller(new GaussianKernel(5), label, new VectorSpace());\r\n\t\t// create a vector for each document in the universe\r\n\t\tfor(Iterator<String> i = universe.getCategorySet().iterator(); i.hasNext(); ) {\r\n\t\t\tString documentId = i.next();\r\n\t\t\tint n = 0;\r\n\t\t\tdouble[] x = new double[universe.getTermCount()];\r\n\t\t\tfor(String j : universe.getTerms())\r\n\t\t\t\tx[n++] = universe.getConceptTermFrequency(j, documentId);\r\n\t\t\t// normalise support vectors\r\n\t\t\tXY sv = new XY(x, universe.getConcept(documentId).getLabel(), true);\r\n\t\t\tsvm.addVector(sv);\r\n\t\t}\r\n\t\tif (log.isDebugEnabled()) {\r\n\t\t\tlog.debug(\"Starting training...\");\r\n\t\t}\r\n\t\tsvm.train();\r\n\t\tif (log.isDebugEnabled()) {\r\n\t\t\tlog.debug(\"Done training...\");\r\n\t\t}\r\n\t}", "@Override\n public double classifyInstance(Instance testdata) {\n // get a copy of testdata Instance with only the matched attributes\n Instance ntest = this.mm.getMatchedTestInstance(testdata);\n\n double ret = 0.0;\n try {\n ret = this.classifier.classifyInstance(ntest);\n }\n catch (Exception e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n\n return ret;\n }", "public abstract Class getDescriptedClass();", "public List<BotClassification> getClassifications() {\n return classifications;\n }", "public SortedSet<ClassificationPair> getClassifications() {\n\t\treturn this.classifications;\n\t}", "public void dmall() {\n \r\n BufferedReader datafile = readDataFile(\"Work//weka-malware.arff\");\r\n \r\n Instances data = null;\r\n\t\ttry {\r\n\t\t\tdata = new Instances(datafile);\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n data.setClassIndex(data.numAttributes() - 1);\r\n \r\n // Choose a type of validation split\r\n Instances[][] split = crossValidationSplit(data, 10);\r\n \r\n // Separate split into training and testing arrays\r\n Instances[] trainingSplits = split[0];\r\n Instances[] testingSplits = split[1];\r\n \r\n // Choose a set of classifiers\r\n Classifier[] models = { new J48(),\r\n new DecisionTable(),\r\n new DecisionStump(),\r\n new BayesianLogisticRegression() };\r\n \r\n // Run for each classifier model\r\n//for(int j = 0; j < models.length; j++) {\r\n int j = 0;\r\n \tswitch (comboClassifiers.getSelectedItem().toString()) {\r\n\t\t\tcase \"J48\":\r\n\t\t\t\tj = 0;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"DecisionTable\":\r\n\t\t\t\tj = 1;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"DecisionStump\":\r\n\t\t\t\tj = 2;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"BayesianLogisticRegression\":\r\n\t\t\t\tj = 3;\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\r\n\r\n // Collect every group of predictions for current model in a FastVector\r\n FastVector predictions = new FastVector();\r\n \r\n // For each training-testing split pair, train and test the classifier\r\n for(int i = 0; i < trainingSplits.length; i++) {\r\n Evaluation validation = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tvalidation = simpleClassify(models[j], trainingSplits[i], testingSplits[i]);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n predictions.appendElements(validation.predictions());\r\n \r\n // Uncomment to see the summary for each training-testing pair.\r\n// textArea.append(models[j].toString() + \"\\n\");\r\n textArea.setText(models[j].toString() + \"\\n\");\r\n// System.out.println(models[j].toString());\r\n }\r\n \r\n // Calculate overall accuracy of current classifier on all splits\r\n double accuracy = calculateAccuracy(predictions);\r\n \r\n // Print current classifier's name and accuracy in a complicated, but nice-looking way.\r\n textArea.append(models[j].getClass().getSimpleName() + \": \" + String.format(\"%.2f%%\", accuracy) + \"\\n=====================\\n\");\r\n System.out.println(models[j].getClass().getSimpleName() + \": \" + String.format(\"%.2f%%\", accuracy) + \"\\n=====================\");\r\n//}\r\n \r\n\t}", "public void setClassification(String classification) {\n this.classification = classification;\n }", "@Override\r\n\t\tpublic Classification getClassification(ClassifierGenerator generator, Processor processor, TreeNode tree, Tuple tuple, long dueTime) {\n\t\t\ttry {\r\n\t\t\t\tthrow new NotImplementedException();\r\n\t\t\t} catch (NotImplementedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}", "@Override\r\n\t\tpublic Classification getClassification(ClassifierGenerator generator, Processor processor, TreeNode tree, Tuple tuple, long dueTime) {\n\t\t\ttry {\r\n\t\t\t\tthrow new NotImplementedException();\r\n\t\t\t} catch (NotImplementedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}", "@Override\r\n\t\tpublic Classification getClassification(ClassifierGenerator generator, Processor processor, TreeNode tree, Tuple tuple, long dueTime) {\n\t\t\ttry {\r\n\t\t\t\tthrow new NotImplementedException();\r\n\t\t\t} catch (NotImplementedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}", "@Override\r\n\t\tpublic Classification getClassification(ClassifierGenerator generator, Processor processor, TreeNode tree, Tuple tuple, long dueTime) {\n\t\t\ttry {\r\n\t\t\t\tthrow new NotImplementedException();\r\n\t\t\t} catch (NotImplementedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n FilteredClassifier filteredClassifier0 = new FilteredClassifier();\n try { \n Evaluation.evaluateModel((Classifier) filteredClassifier0, testInstances0.DEFAULT_WORDS);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // \n // Weka exception: No training file and no object input file given.\n // \n // General options:\n // \n // -h or -help\n // \\tOutput help information.\n // -synopsis or -info\n // \\tOutput synopsis for classifier (use in conjunction with -h)\n // -t <name of training file>\n // \\tSets training file.\n // -T <name of test file>\n // \\tSets test file. If missing, a cross-validation will be performed\n // \\ton the training data.\n // -c <class index>\n // \\tSets index of class attribute (default: last).\n // -x <number of folds>\n // \\tSets number of folds for cross-validation (default: 10).\n // -no-cv\n // \\tDo not perform any cross validation.\n // -split-percentage <percentage>\n // \\tSets the percentage for the train/test set split, e.g., 66.\n // -preserve-order\n // \\tPreserves the order in the percentage split.\n // -s <random number seed>\n // \\tSets random number seed for cross-validation or percentage split\n // \\t(default: 1).\n // -m <name of file with cost matrix>\n // \\tSets file with cost matrix.\n // -l <name of input file>\n // \\tSets model input file. In case the filename ends with '.xml',\n // \\ta PMML file is loaded or, if that fails, options are loaded\n // \\tfrom the XML file.\n // -d <name of output file>\n // \\tSets model output file. In case the filename ends with '.xml',\n // \\tonly the options are saved to the XML file, not the model.\n // -v\n // \\tOutputs no statistics for training data.\n // -o\n // \\tOutputs statistics only, not the classifier.\n // -i\n // \\tOutputs detailed information-retrieval statistics for each class.\n // -k\n // \\tOutputs information-theoretic statistics.\n // -classifications \\\"weka.classifiers.evaluation.output.prediction.AbstractOutput + options\\\"\n // \\tUses the specified class for generating the classification output.\n // \\tE.g.: weka.classifiers.evaluation.output.prediction.PlainText\n // -p range\n // \\tOutputs predictions for test instances (or the train instances if\n // \\tno test instances provided and -no-cv is used), along with the \n // \\tattributes in the specified range (and nothing else). \n // \\tUse '-p 0' if no attributes are desired.\n // \\tDeprecated: use \\\"-classifications ...\\\" instead.\n // -distribution\n // \\tOutputs the distribution instead of only the prediction\n // \\tin conjunction with the '-p' option (only nominal classes).\n // \\tDeprecated: use \\\"-classifications ...\\\" instead.\n // -r\n // \\tOnly outputs cumulative margin distribution.\n // -g\n // \\tOnly outputs the graph representation of the classifier.\n // -xml filename | xml-string\n // \\tRetrieves the options from the XML-data instead of the command line.\n // -threshold-file <file>\n // \\tThe file to save the threshold data to.\n // \\tThe format is determined by the extensions, e.g., '.arff' for ARFF \n // \\tformat or '.csv' for CSV.\n // -threshold-label <label>\n // \\tThe class label to determine the threshold data for\n // \\t(default is the first label)\n // \n // Options specific to weka.classifiers.meta.FilteredClassifier:\n // \n // -F <filter specification>\n // \\tFull class name of filter to use, followed\n // \\tby filter options.\n // \\teg: \\\"weka.filters.unsupervised.attribute.Remove -V -R 1,2\\\"\n // -D\n // \\tIf set, classifier is run in debug mode and\n // \\tmay output additional info to the console\n // -W\n // \\tFull name of base classifier.\n // \\t(default: weka.classifiers.trees.J48)\n // \n // Options specific to classifier weka.classifiers.trees.J48:\n // \n // -U\n // \\tUse unpruned tree.\n // -O\n // \\tDo not collapse tree.\n // -C <pruning confidence>\n // \\tSet confidence threshold for pruning.\n // \\t(default 0.25)\n // -M <minimum number of instances>\n // \\tSet minimum number of instances per leaf.\n // \\t(default 2)\n // -R\n // \\tUse reduced error pruning.\n // -N <number of folds>\n // \\tSet number of folds for reduced error\n // \\tpruning. One fold is used as pruning set.\n // \\t(default 3)\n // -B\n // \\tUse binary splits only.\n // -S\n // \\tDon't perform subtree raising.\n // -L\n // \\tDo not clean up after the tree has been built.\n // -A\n // \\tLaplace smoothing for predicted probabilities.\n // -J\n // \\tDo not use MDL correction for info gain on numeric attributes.\n // -Q <seed>\n // \\tSeed for random data shuffling (default 1).\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "@Override\n public ASTNode visitCoolClass(CoolParser.CoolClassContext ctx) {\n List<FeatureNode> featureNodes = new LinkedList<>();\n for (var feature : ctx.feature()) {\n featureNodes.add((FeatureNode) feature.accept(this));\n }\n\n return new CoolClassNode(\n ctx.CLASS().getSymbol(),\n new IdNode(ctx.id),\n ctx.parentClass == null ? null : new TypeNode(ctx.parentClass),\n featureNodes);\n }", "public Map<String, AClassDecl> basicClasses() {\n\t\tLinkedList<PFeature> featList;\n\t\tLinkedList<PFormal> formalList;\n\t\tPFeature pf;\n\t\t\n\t\tfeatList = new LinkedList<PFeature>();\n\t\t\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"abort\"),\n\t\t\t\tnew LinkedList<PFormal>(),\n\t\t\t\tnew TTypeId(\"Object\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\t\t\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"type_name\"),\n\t\t\t\tnew LinkedList<PFormal>(),\n\t\t\t\tnew TTypeId(\"String\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\n\t\tfeatList.add(pf);\n\t\t\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"copy\"),\n\t\t\t\tnew LinkedList<PFormal>(),\n\t\t\t\tnew TTypeId(\"SELF_TYPE\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\n\t\tfeatList.add(pf);\n\t\t\n\t\tAClassDecl ObjectClass = new AClassDecl(\n\t\t\t\tnew TTypeId(\"Object\"),\n\t\t\t\tnew TTypeId(\"_no_class\"),\n\t\t\t\tfeatList\n\t\t\t\t);\n\t\t\n\t\t// The IO class inherits from Object. Its methods are\n\t\t// out_string(Str) : SELF_TYPE writes a string to the output\n\t\t// out_int(Int) : SELF_TYPE \" an int \" \" \"\n\t\t// in_string() : Str reads a string from the input\n\t\t// in_int() : Int \" an int \" \" \"\n\t\tfeatList = new LinkedList<PFeature>();\n\t\t\n\t\tformalList = new LinkedList<PFormal>();\t\t\n\t\tformalList.add(new AFormal(new TObjectId(\"arg\"), new TTypeId(\"String\")));\t\t\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"out_string\"),\n\t\t\t\tformalList,\n\t\t\t\tnew TTypeId(\"SELF_TYPE\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\n\t\tformalList = new LinkedList<PFormal>();\t\t\n\t\tformalList.add(new AFormal(new TObjectId(\"arg\"), new TTypeId(\"Int\")));\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"out_int\"),\n\t\t\t\tformalList,\n\t\t\t\tnew TTypeId(\"SELF_TYPE\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\n\t\tformalList = new LinkedList<PFormal>();\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"in_string\"),\n\t\t\t\tformalList,\n\t\t\t\tnew TTypeId(\"String\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"in_int\"),\n\t\t\t\tformalList,\n\t\t\t\tnew TTypeId(\"Int\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\n\t\tAClassDecl IOClass = new AClassDecl(\n\t\t\t\tnew TTypeId(\"IO\"),\n\t\t\t\tnew TTypeId(\"Object\"),\n\t\t\t\tfeatList\n\t\t\t\t);\n\n\n\t\t// The Int class has no methods and only a single attribute, the\n\t\t// \"val\" for the integer.\n\t\tfeatList = new LinkedList<PFeature>();\n\t\tpf = new AAttributeFeature(\n\t\t\t\tnew TObjectId(\"_val\"),\n\t\t\t\tnew TTypeId(\"_prim_slot\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\t\t\n\t\tAClassDecl IntClass = new AClassDecl(\n\t\t\t\tnew TTypeId(\"Int\"),\n\t\t\t\tnew TTypeId(\"Object\"),\n\t\t\t\tfeatList\n\t\t\t\t);\n\n\t\t// Bool also has only the \"val\" slot.\n\t\tfeatList = new LinkedList<PFeature>();\n\t\tpf = new AAttributeFeature(\n\t\t\t\tnew TObjectId(\"_val\"),\n\t\t\t\tnew TTypeId(\"_prim_slot\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\t\t\n\t\tAClassDecl BoolClass = new AClassDecl(\n\t\t\t\tnew TTypeId(\"Bool\"),\n\t\t\t\tnew TTypeId(\"Object\"),\n\t\t\t\tfeatList\n\t\t\t\t);\n\n\t\t// The class Str has a number of slots and operations:\n\t\t// val the length of the string\n\t\t// str_field the string itself\n\t\t// length() : Int returns length of the string\n\t\t// concat(arg: Str) : Str performs string concatenation\n\t\t// substr(arg: Int, arg2: Int): Str substring selection\n\t\tfeatList = new LinkedList<PFeature>();\n\t\tpf = new AAttributeFeature(\n\t\t\t\tnew TObjectId(\"_val\"),\n\t\t\t\tnew TTypeId(\"_prim_slot\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\n\t\tpf = new AAttributeFeature(\n\t\t\t\tnew TObjectId(\"_str_field\"),\n\t\t\t\tnew TTypeId(\"_prim_slot\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\t\t\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"length\"),\n\t\t\t\tnew LinkedList<PFormal>(),\n\t\t\t\tnew TTypeId(\"Int\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\n\t\tfeatList.add(pf);\t\t\n\n\t\tformalList = new LinkedList<PFormal>();\n\t\tformalList.add(new AFormal(new TObjectId(\"arg\"), new TTypeId(\"String\")));\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"concat\"),\n\t\t\t\tformalList,\n\t\t\t\tnew TTypeId(\"String\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\n\t\tformalList = new LinkedList<PFormal>();\n\t\tformalList.add(new AFormal(new TObjectId(\"arg\"), new TTypeId(\"Int\")));\n\t\tformalList.add(new AFormal(new TObjectId(\"arg2\"), new TTypeId(\"Int\")));\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"substr\"),\n\t\t\t\tformalList,\n\t\t\t\tnew TTypeId(\"String\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\t\t\n\t\t\n\t\tAClassDecl StringClass = new AClassDecl(\n\t\t\t\tnew TTypeId(\"String\"),\n\t\t\t\tnew TTypeId(\"Object\"),\n\t\t\t\tfeatList\n\t\t\t\t);\n\t\t\n\n\t\t/*\n\t\t * Do something with Object_class, IO_class, Int_class, Bool_class, and\n\t\t * Str_class here \n\t\t * \n\t\t */\n\n\t\tMap<String, AClassDecl> map = new TreeMap<String, AClassDecl>();\n\t\t\t\tOBJECT = new Klass();\n\t\t\t\tOBJECT.name = \"Object\";\n\t\t\t\tOBJECT.parent = null;\n\t\t\t\tOBJECT.methods = null;\n\t\t \t\tOBJECT.vars = null;\n\t\t \t\t\n\t\t \t\tIO = new Klass();\n\t\t \t\tIO.name = \"IO\";\n\t\t \t\tIO.parent = OBJECT;\n\n\t\t \t\t\n\t\t \t\tINT = new Klass();\n\t\t \t\tINT.name = \"Int\";\n\t\t \t\tINT.parent = OBJECT;\n\n\t\t \t\t\n\t\t \t\tBOOL = new Klass();\n\t\t \t\tBOOL.name = \"Bool\";\n\t\t \t\tBOOL.parent = OBJECT;\n\n\t\t\t\t\n\t\t \t\tSTR = new Klass();\n\t\t\t\tSTR.name =\"String\";\n\t\t\t\tSTR.parent = OBJECT;\n\n\t\t\t\t\n\t\t\t\tERROR = new Klass();\n\t\t\t\tERROR.name = \"ERROR\";\n\t\t\t\tERROR.parent = OBJECT;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tVOID = new Klass();\n\t\t\t\tVOID.name = \"VOID\";\n\t\t\t\tVOID.parent = OBJECT;\n\n\t\t\t\tklasses.put(\"Object\", OBJECT);\n\t\t\t\tklasses.put(\"IO\", IO);\n\t\t\t\tklasses.put(\"Int\", INT);\n\t\t\t\tklasses.put(\"Bool\", BOOL);\n\t\t\t klasses.put(\"String\", STR);\n\t\t\t\t\n\t\tmap.put(\"Object\", ObjectClass);\n\t\tmap.put(\"IO\", IOClass);\n\t\tmap.put(\"Int\", IntClass);\n\t\tmap.put(\"Bool\", BoolClass);\n\t\tmap.put(\"String\", StringClass);\n\t\t\n\t\treturn map;\n\t\t\n\t}", "public static Set<Classification> getClassifications() throws Exception {\r\n String xmlRequest = \"<request><request-header><protocol-version>2</protocol-version></request-header></request>\";\r\n try {\r\n String responseXML = FSHelperLibrary.sendRequest(null, RequestType.RT_GET_CLASSIFICATIONS, xmlRequest);\r\n LoggerUtil.logDebug(\"Get Classificatios Response XML: \" + responseXML);\r\n\r\n Node rootNode = XMLUtil.getRootNode(responseXML);\r\n Node requestStatusNode = XMLUtil.parseNode(\"request-status\", rootNode);\r\n String returnValue = XMLUtil.parseString(\"return-value\", requestStatusNode);\r\n\r\n if (!\"1\".equals(returnValue)) {\r\n LoggerUtil.logError(\"Get Classificatios Response XML: \" + responseXML);\r\n String errorMsg = XMLUtil.parseString(\"error-message\", requestStatusNode);\r\n String dispMsg = XMLUtil.parseString(\"display-message\", requestStatusNode);\r\n if (dispMsg == null || dispMsg.trim().isEmpty()) {\r\n dispMsg = errorMsg;\r\n }\r\n throw new Exception(dispMsg);\r\n }\r\n\r\n NodeList lNodeList = XMLUtil.parseNodeList(\"classifications/classification\", rootNode);\r\n if (lNodeList != null && lNodeList.getLength() > 0) {\r\n Set<Classification> lClassifications = new LinkedHashSet<Classification>();\r\n for (int i = 0; i < lNodeList.getLength(); i++) {\r\n Node lNode = lNodeList.item(i);\r\n String lstrClassId = XMLUtil.parseString(\"id\", lNode);\r\n String lstrClassName = XMLUtil.parseString(\"name\", lNode);\r\n String lstrClassDesc = XMLUtil.parseString(\"description\", lNode);\r\n String lstrStatus = XMLUtil.parseString(\"status\", lNode);\r\n // Take only active classification\r\n if (\"1\".equals(lstrStatus)) {\r\n Classification lClassification = new Classification();\r\n lClassification.setId(lstrClassId);\r\n lClassification.setName(lstrClassName);\r\n lClassification.setDescription(lstrClassDesc);\r\n lClassifications.add(lClassification);\r\n }\r\n }\r\n XMLDBService.updateClassifications(lClassifications);\r\n return lClassifications;\r\n }\r\n } catch (FSHelperException e) {\r\n throw e;\r\n }\r\n return null;\r\n }", "public void classify() throws IOException\n {\n TrainingParameters tp = new TrainingParameters();\n tp.put(TrainingParameters.ITERATIONS_PARAM, 100);\n tp.put(TrainingParameters.CUTOFF_PARAM, 0);\n\n DoccatFactory doccatFactory = new DoccatFactory();\n DoccatModel model = DocumentCategorizerME.train(\"en\", new IntentsObjectStream(), tp, doccatFactory);\n\n DocumentCategorizerME categorizerME = new DocumentCategorizerME(model);\n\n try (Scanner scanner = new Scanner(System.in))\n {\n while (true)\n {\n String input = scanner.nextLine();\n if (input.equals(\"exit\"))\n {\n break;\n }\n\n double[] classDistribution = categorizerME.categorize(new String[]{input});\n String predictedCategory =\n Arrays.stream(classDistribution).filter(cd -> cd > 0.5D).count() > 0? categorizerME.getBestCategory(classDistribution): \"I don't understand\";\n System.out.println(String.format(\"Model prediction for '%s' is: '%s'\", input, predictedCategory));\n }\n }\n }" ]
[ "0.71950006", "0.6966525", "0.69079816", "0.67978793", "0.6792859", "0.6667161", "0.6642142", "0.6596436", "0.6568917", "0.65417683", "0.639294", "0.63221484", "0.6288216", "0.62778294", "0.6255014", "0.62416065", "0.62416065", "0.62225306", "0.6209873", "0.61532307", "0.6107065", "0.60819894", "0.60805726", "0.6060041", "0.6036155", "0.5983259", "0.59231144", "0.5890597", "0.58859056", "0.58839095", "0.58740187", "0.58650315", "0.58502", "0.5842378", "0.5837449", "0.5818851", "0.5814121", "0.5812171", "0.580629", "0.57988054", "0.57703173", "0.5740411", "0.5724366", "0.57238567", "0.5723037", "0.5704243", "0.5693975", "0.5689148", "0.56708217", "0.56666714", "0.5664364", "0.5654603", "0.5646725", "0.5639707", "0.56384444", "0.5627796", "0.56257", "0.5612512", "0.5610541", "0.56067526", "0.559342", "0.55817366", "0.55508864", "0.55469394", "0.5532186", "0.5529984", "0.5484831", "0.5479048", "0.54672074", "0.54581267", "0.5449757", "0.5447671", "0.5441497", "0.54358053", "0.54244626", "0.54171515", "0.5381839", "0.5368507", "0.5360725", "0.5357141", "0.53447175", "0.53440285", "0.53283757", "0.5324061", "0.5312028", "0.530333", "0.5296277", "0.52827066", "0.5275363", "0.5255071", "0.5242252", "0.52342206", "0.52342206", "0.52342206", "0.52342206", "0.5222143", "0.52122986", "0.5204044", "0.5185716", "0.5184091" ]
0.7239496
0
Adds a feature at the end of the ordered collection of the current object.
void addFeature(Feature feature);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add(Feature f){\n if (debug) logger.info(\"feature added\");\n int z = fc.size();\n fc.add(f);\n fcLastEdits.clear();//clear possible feature edits\n fcLastEdits.add(f);\n lastEditType = EDIT_ADD;\n fireTableRowsInserted(z+1, z+1);\n }", "public void addFeatures(IFeature feature);", "void addFeature(int index, Feature feature);", "void addFeatures(Features features);", "private void addFeature()\r\n {\r\n MapGeometrySupport mgs = myCurrentGeometryHandler.getGeometry();\r\n MetaDataProvider mdp = myMetaDataHandler.getMetaDataProvider();\r\n TimeSpan span = buildTimeSpan(mdp);\r\n mgs.setTimeSpan(span);\r\n MapDataElement element = new DefaultMapDataElement(myFeatureId, span, myType, mdp, mgs);\r\n Color typeColor = myType.getBasicVisualizationInfo().getTypeColor().equals(DEFAULT_FEATURE_COLOR) ? myFeatureColor\r\n : myType.getBasicVisualizationInfo().getTypeColor();\r\n element.getVisualizationState().setColor(typeColor);\r\n myConsumer.addFeature(element);\r\n myFeatureCount++;\r\n }", "public void addFeature(@Nonnull Feature f) {\r\n features.add(f);\r\n }", "public void addFeature(Feature feature) {\n rows.addElement(feature);\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$6);\r\n return target;\r\n }\r\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$6);\r\n return target;\r\n }\r\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$14);\r\n return target;\r\n }\r\n }", "public void addFeatures(@Nonnull Collection<Feature> f) {\r\n features.addAll(f);\r\n }", "public void addFeature() throws UMUserManagementException {\n UMFeature uMFeature = convertFeatureDataBeanToFeatureModel(featureDataBean);\n featureService.createFeature(uMFeature);\n clearFeatureData();\n }", "public void addFeatures(Feature... f) {\r\n addFeatures(Arrays.asList(f));\r\n }", "protected void addPoint( SimpleFeature feature, PointMergeOperations mergeOps )\n \t{\n \t\tmergePoint( feature, 0 );\n \t}", "org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);", "org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);", "public void addLast(Object o) {\r\n addBefore(o, header);\r\n }", "public void addElement(final FeatureElement newElement)\n\t{\n\t\tfeatureElements.add(newElement);\n\t}", "public void increaseFeatureCount() {\n this.featureCount++;\n }", "public void addVariant(Feature feature){\r\n\t\tthis.alternativeFeatureGroup.get(0).addFeature(feature);\r\n\t}", "public boolean add (Object o) {return addLast(o);}", "public void add(Object obj) { \n\t\tcollection.addElement(obj);\n\t}", "@Override\r\n\tpublic void addLast(E e) {\n\t\t\r\n\t}", "@Override\n public void addAfter(T target, T element){\n int index = getIndex(target)+1;\n add(index,element);\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().insert_element_user(FEATURE$6, i);\r\n return target;\r\n }\r\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().insert_element_user(FEATURE$6, i);\r\n return target;\r\n }\r\n }", "protected void addFeature( SimpleFeature feature, PointMergeOperations mergeOps )\n \t{\n if( isPoint( feature ) )\n {\n \taddPoint( feature, mergeOps );\n }\n else if( isPolyline( feature ) )\n {\n \taddPolyline( feature, mergeOps );\n }\n else\n {\n \t// We do not handle polygons.\n \tSystem.err.printf( \"Unknown feature type (%s)%n\", feature.getType().getGeometryDescriptor().getType().getBinding() );\n }\n \t}", "public void add() {\n\t\t\n\t}", "public org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().insert_element_user(FEATURE$14, i);\r\n return target;\r\n }\r\n }", "@Override\n\tpublic void add() {\n\t\t\n\t}", "org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();", "org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();", "@Override\n public List<FeatureId> addFeatures(\n FeatureCollection<SimpleFeatureType, SimpleFeature> collection) throws IOException {\n TransformFeatureCollectionWrapper transformed = new TransformFeatureCollectionWrapper(collection, invertedTransformer);\n return store.addFeatures(transformed);\n\n // TODO: re-shape feature ids...\n }", "public void put( gtf_feature f )\n {\n int stored = to_report.size() + reported.size();\n if ( stored > max_in_window ) max_in_window = stored;\n overlap_loop( f.get_start() );\n to_report.add( f );\n }", "public void afterAdd(T obj);", "public void add() {\n }", "public abstract void addFeatureClasses(FeatureClassContainer container);", "public void add(FavoriteEntity obj)\n {\n super.add(obj);\n }", "public void addGraphicObject(GraphicObject obj)\n {\n graphicObjects.addLast(obj);\n }", "Feature update(Feature feature);", "private void add() {\n\n\t}", "protected void addFeaturesPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_Reference_features_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_Reference_features_feature\", \"_UI_Reference_type\"),\n NoSQLSchemaPackage.Literals.REFERENCE__FEATURES,\n true,\n false,\n true,\n null,\n null,\n null));\n }", "@Override\n public void add(Object o) {\n gameCollection.addElement(o);\n }", "public void addAfterOperation(Operation op){\n if (op == null){\n throw new IllegalArgumentException(\"op is null\");\n }\n if (after == null){\n after = new ArrayList<>();\n }\n\n this.after.add(op);\n }", "org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature insertNewPlanFeature(int i);", "public void addLast(Item x);", "public void addLast(E item);", "@Override\n\tpublic void add(Object o) {\n\t}", "protected void sequence_Features(ISerializationContext context, Features semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public void add(Scenario object) {\n original.add(object);\n filtered.add(object);\n notifyDataSetChanged();\n }", "public void addAfterLastOperation(Operation op){\n if (op == null){\n throw new IllegalArgumentException(\"op is null\");\n }\n if (afterLast == null){\n afterLast = new ArrayList<>();\n }\n\n this.afterLast.add(op);\n }", "public void addLast(Object item) {\r\n\t\tdata.add(item);\r\n\r\n\t}", "public void addLast(E item){\r\n }", "@Override\n\tpublic boolean addAll(Collection<? extends SimpleFeature> collection) {\n\t\tboolean ret = super.addAll(collection);\n\t\tfor (SimpleFeature f : collection) {\n\t\t\taddToIndex(f);\n\t\t}\n\t\treturn ret;\n\t}", "public Double increment(Feature feat, double value)\r\n {\r\n Double cur = this.get(feat);\r\n\r\n return this.put(feat, ((cur == null) ? value : cur + value));\r\n }", "public DasFeature getNextFeature() {\n String feature = iXml.substring(iXml.indexOf(\"<FEATURE\", lastFeatureEndPosition + 9), iXml.indexOf(\"</FEATURE>\", lastFeatureEndPosition + 9) + 10);\n lastFeatureEndPosition = iXml.indexOf(\"</FEATURE>\", lastFeatureEndPosition + 9);\n DasFeature f = new DasFeature(feature);\n return f;\n }", "public void addLast(Object item){\n //Using the getNode() method to retrieve the reference and then call addAfter()\n MovieNode target = getNode(size);\t//yo retreive the last MovieNode\n addAfter(target, item);\t\t\t//call the addAfter method \n }", "public void addTileAtTheEnd(Tile tile);", "void addTypedFeature(StructuralFeature typedFeature);", "public void addLast(T element);", "org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature addNewPlanFeature();", "@Override\r\n\tpublic int add() {\n\t\treturn 0;\r\n\t}", "protected void addAfterColumnPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_ColumnType4_afterColumn_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ColumnType4_afterColumn_feature\", \"_UI_ColumnType4_type\"),\n\t\t\t\t DbchangelogPackage.eINSTANCE.getColumnType4_AfterColumn(),\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public void add() {\n\n }", "public void add(Object o) {\n\t\tTrain train = (Train)o;\n\t\ttrainlist.add(train);\n\t\tSystem.out.println(\"Train \"+train.toString()+\" has been added.\");\n\t\tSystem.out.println(\"Index in list is \"+trainlist.indexOf(train));\n\t}", "private void addToIndex(SimpleFeature feature) {\n\t\t// ID Index\n\t\tif (idIndex==null) idIndex = new HashMap<String, SimpleFeature>();\n\t\tidIndex.put(feature.getID(), feature);\n\t\t\n\t\t// Type name index\n\t\tif (typeNameIndex==null) typeNameIndex = new HashMap<Name, Set<SimpleFeature>>();\n\t\tName type = feature.getType().getName();\n\t\tSet<SimpleFeature> prev = typeNameIndex.get(type);\n\t\tif (prev==null) prev = new HashSet<SimpleFeature>();\n\t\tprev.add(feature);\n\t\ttypeNameIndex.put(type, prev);\n\t\t\n\t\t// Tile Index\n\t\t// Image features are separated by - and last parts are xref-yref-zoom\n\t\tif (feature.getID().matches(\".*-[0-9]+-[0-9]+-[0-9]+\")) {\n\t\t\tOSMTile tile = new OSMTile(feature.getID());\n\t\t\tprev = tileIndex.get( tile );\n\t\t\tif (prev==null) prev = new HashSet<SimpleFeature>();\n\t\t\tprev.add(feature);\n\t\t\ttileIndex.put(tile, prev);\n\t\t\t\n\t\t} else {\n\t\t\t/* TODO Something for features..?\n\t\t\t * get geometry bounds, calculate tile and insert into relevant index positions?\n\t\t\t * This would then also work for removal...\t */\n\t\t}\n\t\t\n\t}", "public void add(Object o){\n list.add(o);\n }", "public void add(GeometricalObject object);", "@Override\r\n\tpublic void add(Object object) {\n\t\t\r\n\t}", "public void addFeatures(Feature[] features) {\n for(int i=0;i<features.length;i++){\n if(!rows.contains(features[i])){\n rows.addElement(features);\n }\n }\n }", "@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic IVector add(IVector vector) throws OperationNotSupportedException{\n\t\tif(this.getDimension() != vector.getDimension()){\n\t\t\tthrow new OperationNotSupportedException();\n\t\t}\n\t\tfor(int i=this.getDimension()-1; i>=0; i--){\n\t\t\tthis.set(i, get(i)+vector.get(i));\n\t\t}\n\t\treturn this;\n\t}", "public void addAll(FeatureCollection featColl){\n if (debug) logger.info(\"collection added\");\n fc.addAll(featColl);\n fcLastEdits.clear();\n fcLastEdits.addAll(featColl);\n lastEditType = EDIT_ADD;\n fireTableDataChanged();\n }", "public void add()\n {\n set(++ current);\n }", "void add(GeometricalObject object);", "void addFullHadith(Object newFullHadith);", "public void add(E obj) {\r\n throw new UnsupportedOperationException();\r\n }", "public void add();", "public boolean add(Object o) {\r\n addBefore(o, header);\r\n return true;\r\n }", "public static void addClassifiedFeature(Classification classification, ClassifiedFeature classifiedFeature) {\n Feature feature = classifiedFeature.getFeature();\n boolean containedInView = ClassificationCache.getInstance().isFeatureContainedInView(classification, feature);\n if (containedInView) {\n classification.getClassifiedFeatures().add(classifiedFeature);\n } else {\n classification.getAutoCompleteFeatures().add(classifiedFeature);\n }\n }", "public void addToEnd(T obj) {\r\n \t\t// Check obj is not null\r\n \t\tif(obj == null) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t// Check if items is full\r\n \t\tif(numItems == items.length) {\r\n \t\t\tdoubleArrayLength();\r\n \t\t}\r\n \t\titems[numItems++] = obj;\r\n \t}", "public void add(Object o);", "public void addLast(TypeHere x) {\n if (size == items.length) {\n resize(size + 1);\n }\n items[size] = x;\n size += 1;\n }", "void addAfter(T target, T element);", "public abstract void addFeatures(Collection<Integer> indices,Predicate pred,Word arg,Integer offset,boolean allWords);", "@Override\n public void addNewForce(Force f) {\n\n }", "public @Override boolean add(E element) {\n \tappend(element);\n \treturn true;\n }", "void addEndingHadithNo(Object newEndingHadithNo);", "@Override\r\n\tpublic boolean add(GIS_layer e) {\n\r\n\t\treturn set.add(e);\r\n\t}", "public void add() {\n\t\tSystem.out.println(\"I am from Add method\");\n\t}", "public void addExample(Example e){\n\t\tclassIndex(e.getLabel().bestClassName()).add(e);\n\t\tfor(Iterator<Feature> j=e.featureIterator();j.hasNext();){\n\t\t\tFeature f=j.next();\n\t\t\tfeatureIndex(f).add(e);\n\t\t\tsumFeatureValues++;\n\t\t}\n\t\texampleCount++;\n\t}", "@Override\n public int getEnd() {\n return feature.getEnd();\n }", "public void completeAddition_Op(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {\n\t\t// subclasses may override\n\t}", "private void insert(String component, String feature) {\n\tthis.entities.putIfAbsent(component, new HashSet<String>());\n\tSet<String> componentFeatures = this.entities.get(component);\n\tcomponentFeatures.add(feature);\n\tthis.entities.put(component, componentFeatures);\n\t// From features to components which possess them\n\tthis.features.putIfAbsent(feature, new HashSet<String>());\n\tSet<String> components = this.features.get(feature);\n\tcomponents.add(component);\n\t//LogInfo.logs(\" adding: %s :: %s\", feature, component);\n\tthis.features.put(feature, components);\n }", "@Override\n\tpublic boolean add(Order bean) {\n\t\treturn false;\n\t}", "public void add( Object obj ) throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"add(Object obj) Not implemented.\" );\n\t\t}", "protected void addPolyline( SimpleFeature feature, PointMergeOperations mergeOps )\n \t{\n \t\tPoint point1 = mergePoint( feature, 0 );\n \t\tPoint point2 = mergePoint( feature, -1 );\n \t\tString id1 = point1.getId().toString();\n \t\tString id2 = point2.getId().toString();\n \t\tString fid = feature.getID();\n \t\n \t\tNode node1 = graph.getNode( id1 );\n \t\tNode node2 = graph.getNode( id2 );\n \t\tEdge edge = null;\n \t\t\n \t\tif( mergeDuplicateEdge && node1 != null && node2 != null )\n \t\t{\n \t\t\tedge = node1.getEdgeToward( node2.getId() );\n \t\t\t\n \t\t\tif( edge == null )\n \t\t\t\tedge = node1.getEdgeFrom( node2.getId() );\n \t\t}\n \n \t\tif( node1 == null )\n \t\t{\n \t\t\tnode1 = graph.addNode( id1 );\n \t\t\taddNodeAttributes( node1, fid, point1 );\n \t\t}\n \n \t\tif( node2 == null )\n \t\t{\n \t\t\tnode2 = graph.addNode( id2 );\n \t\t\taddNodeAttributes( node2, fid, point2 );\n \t\t}\n \t\n \t\tif( edge == null )\n \t\t{\n \t\t\tAttributeSet attr = new AttributeSet( feature );\n \t\t\tEdgeDirecter.Direction dir = edgeDirecter.edgeDirection( point1, point2, attr );\n \t\t\tboolean isDir = true;\n \n \t\t\tif( dir == EdgeDirecter.Direction.TO_FROM )\n \t\t\t{\n \t\t\t\tString id = id2;\n \t\t\t\tid2 = id1;\n \t\t\t\tid1 = id;\n \t\t\t}\n \t\t\telse if( dir == EdgeDirecter.Direction.UNDIRECTED )\n \t\t\t{\n \t\t\t\tisDir = false;\n \t\t\t}\n \t\t\t\n \t\t\tedge = graph.addEdge( fid, id1, id2, isDir );\n \t\t\t\n \t\t\tif( addEdgeLengths ) {\n \t\t\t\tedge.addAttribute( \"length\",\n \t\t\t\t\t\t((Geometry)feature.getDefaultGeometry()).getLength() );\n \t\t\t}\n \t\t\t\n \t\t\tif( addEdgeShapeAttribute ) {\n \t\t\t\taddEdgeShape(edge, ((Geometry)feature.getDefaultGeometry()).getCoordinates());\n \t\t\t}\n \t\t\n \t\t\tmergeAttributes( edge, attr, edgeAttributeFilter, feature );\n \t\t}\n \t}", "@Override\n public boolean add(T e) {\n if (elements.add(e)) {\n ordered.add(e);\n return true;\n } else {\n return false;\n }\n }" ]
[ "0.67579335", "0.6692476", "0.6648994", "0.6459343", "0.64459616", "0.6421532", "0.64143497", "0.6262038", "0.6262038", "0.62365466", "0.6186284", "0.5925763", "0.587614", "0.5861104", "0.57920676", "0.57920676", "0.57425123", "0.568852", "0.567498", "0.56708336", "0.5629012", "0.5584877", "0.5543125", "0.55186373", "0.5517589", "0.5517589", "0.5504466", "0.55007845", "0.54985225", "0.54649496", "0.54636365", "0.54636365", "0.54569083", "0.54396796", "0.541807", "0.54177725", "0.5416332", "0.54023445", "0.5398692", "0.5380396", "0.5374688", "0.5367346", "0.5364224", "0.5355088", "0.53480387", "0.5334363", "0.532629", "0.5322343", "0.5313575", "0.5307712", "0.530388", "0.52853245", "0.52613294", "0.52434105", "0.52343273", "0.5233187", "0.5233109", "0.5230192", "0.5227024", "0.52224314", "0.5222405", "0.52172285", "0.5210295", "0.5202385", "0.5197069", "0.51939243", "0.51901937", "0.5189689", "0.5181212", "0.51694745", "0.5142405", "0.5142405", "0.5142405", "0.51421297", "0.51317835", "0.51105", "0.5102856", "0.5099234", "0.50960326", "0.5093746", "0.508731", "0.50747395", "0.50680864", "0.5062261", "0.50433016", "0.50360376", "0.5025012", "0.5009083", "0.5008962", "0.5000591", "0.4996078", "0.49923328", "0.4982916", "0.4975387", "0.49647248", "0.4963818", "0.49589923", "0.4934316", "0.4929136", "0.4921428" ]
0.6523541
3
Adds a feature at specified index of the ordered collection of the current object.
void addFeature(int index, Feature feature);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addFeatures(IFeature feature);", "void setFeature(int index, Feature feature);", "org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);", "org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);", "void addFeature(Feature feature);", "void addFeatures(Features features);", "private void addToIndex(SimpleFeature feature) {\n\t\t// ID Index\n\t\tif (idIndex==null) idIndex = new HashMap<String, SimpleFeature>();\n\t\tidIndex.put(feature.getID(), feature);\n\t\t\n\t\t// Type name index\n\t\tif (typeNameIndex==null) typeNameIndex = new HashMap<Name, Set<SimpleFeature>>();\n\t\tName type = feature.getType().getName();\n\t\tSet<SimpleFeature> prev = typeNameIndex.get(type);\n\t\tif (prev==null) prev = new HashSet<SimpleFeature>();\n\t\tprev.add(feature);\n\t\ttypeNameIndex.put(type, prev);\n\t\t\n\t\t// Tile Index\n\t\t// Image features are separated by - and last parts are xref-yref-zoom\n\t\tif (feature.getID().matches(\".*-[0-9]+-[0-9]+-[0-9]+\")) {\n\t\t\tOSMTile tile = new OSMTile(feature.getID());\n\t\t\tprev = tileIndex.get( tile );\n\t\t\tif (prev==null) prev = new HashSet<SimpleFeature>();\n\t\t\tprev.add(feature);\n\t\t\ttileIndex.put(tile, prev);\n\t\t\t\n\t\t} else {\n\t\t\t/* TODO Something for features..?\n\t\t\t * get geometry bounds, calculate tile and insert into relevant index positions?\n\t\t\t * This would then also work for removal...\t */\n\t\t}\n\t\t\n\t}", "public void add(int index, E obj)\r\n {\r\n listIterator(index).add(obj);\r\n }", "public void add(Feature f){\n if (debug) logger.info(\"feature added\");\n int z = fc.size();\n fc.add(f);\n fcLastEdits.clear();//clear possible feature edits\n fcLastEdits.add(f);\n lastEditType = EDIT_ADD;\n fireTableRowsInserted(z+1, z+1);\n }", "void add(int index, Object element);", "org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature insertNewPlanFeature(int i);", "public void add(int index, PointF point)\n {\n flushCache();\n points.add(index, Geometry.clone(point));\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().insert_element_user(FEATURE$6, i);\r\n return target;\r\n }\r\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().insert_element_user(FEATURE$6, i);\r\n return target;\r\n }\r\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().insert_element_user(FEATURE$14, i);\r\n return target;\r\n }\r\n }", "public void setFeatureIndex(int i) {\n featureIndex = i;\n }", "public void addFeature(@Nonnull Feature f) {\r\n features.add(f);\r\n }", "private void addFeature()\r\n {\r\n MapGeometrySupport mgs = myCurrentGeometryHandler.getGeometry();\r\n MetaDataProvider mdp = myMetaDataHandler.getMetaDataProvider();\r\n TimeSpan span = buildTimeSpan(mdp);\r\n mgs.setTimeSpan(span);\r\n MapDataElement element = new DefaultMapDataElement(myFeatureId, span, myType, mdp, mgs);\r\n Color typeColor = myType.getBasicVisualizationInfo().getTypeColor().equals(DEFAULT_FEATURE_COLOR) ? myFeatureColor\r\n : myType.getBasicVisualizationInfo().getTypeColor();\r\n element.getVisualizationState().setColor(typeColor);\r\n myConsumer.addFeature(element);\r\n myFeatureCount++;\r\n }", "public void addFeature(Feature feature) {\n rows.addElement(feature);\n }", "public void insertElementAt(Object obj, int index);", "@Override\n\t\tpublic void add(int index, Community element) {\n\t\t\t\n\t\t}", "public void add(int index, E element);", "public void setFeatureArray(int i, org.landxml.schema.landXML11.FeatureDocument.Feature feature)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().find_element_user(FEATURE$6, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n target.set(feature);\r\n }\r\n }", "public void setFeatureArray(int i, org.landxml.schema.landXML11.FeatureDocument.Feature feature)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().find_element_user(FEATURE$6, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n target.set(feature);\r\n }\r\n }", "public void setFeatureArray(int i, org.landxml.schema.landXML11.FeatureDocument.Feature feature)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().find_element_user(FEATURE$14, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n target.set(feature);\r\n }\r\n }", "void add(int index, T element);", "void add(int index, T element);", "void setFeatureArray(int i, org.landxml.schema.landXML11.FeatureDocument.Feature feature);", "void setFeatureArray(int i, org.landxml.schema.landXML11.FeatureDocument.Feature feature);", "public void insertElementAt(Object obj, int index)\n {\n try {element.insertElementAt(obj, index);}\n catch (Exception e) {\n throw new IllegalArgumentException\n (\"VectorLinearList.insertElementAt: \" +\n \"index must be between 0 and size\");\n }\n }", "public void addFeatures(Feature... f) {\r\n addFeatures(Arrays.asList(f));\r\n }", "public void addFeatures(@Nonnull Collection<Feature> f) {\r\n features.addAll(f);\r\n }", "public <T> void insertValue(EObject container, EStructuralFeature structuralFeature, T value, Integer index) {\n\t\tDEModelLocker.activateWriter(this);\n\t\t\n\t\ttry {\n\t\t\tEList<T> currentListValue = getManyValueOrFail(container, structuralFeature, value);\n\t\n\t\t\t//EObjects may be contained in a containment EReference, which they are removed from\n\t\t\t//upon adding them to a new containment reference.\n\t\t\tif (value instanceof EObject) {\n\t\t\t\tEObject valueObject = (EObject) value;\n\t\t\t\tscheduleRemoveFromContainment(valueObject);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//If the target structural feature is single and a previous value exists, it will be removed.\n\t\t\t//TODO: Untested\n\t\t\tif (!FeatureMapUtil.isMany(container, structuralFeature)) {\n\t\t\t\tObject previousValue = container.eGet(structuralFeature);\n\t\t\t\t\n\t\t\t\tscheduleRemove(container, container, structuralFeature, previousValue);\n\t\t\t}\n\t\t\t\n\t\t\tif (index == null) {\n\t\t\t\t//Append to list of nothing else specified.\n\t\t\t\tindex = currentListValue.size();\n\t\t\t}\n\t\t\t\n\t\t\tDEModelLocker.scheduleAddValueWriteAccess(container, structuralFeature, value, index);\n\t\t\tcurrentListValue.add(value);\n\t\t} finally {\n\t\t\tDEModelLocker.deactivateWriter(this);\n\t\t}\n\t}", "public void add(int index, Object element) {\r\n addBefore(element, (index == size ? header : entry(index)));\r\n }", "public abstract void add(T element, int index);", "public void insertElementAt(Replicated obj, int index)\r\n\t{\n\t\tinsert(obj, index);\r\n\t}", "@Override\r\n\tpublic void insertElementAt(VOI o, int index) {\r\n\r\n // check that object is a VOI\r\n if (!(o instanceof VOI)) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n VOI voi = o;\r\n\r\n // check the voi name, fix if necessary\r\n if (contains(voi)) {\r\n voi.setName(buildName(voi.getName()));\r\n }\r\n\r\n super.insertElementAt(voi, index); // add the voi to the vector\r\n fireVOIadded(voi); // notify listeners of a change\r\n\r\n Preferences.debug(\"Add voi: name = \" + voi.getName() + \"\\n\");\r\n }", "public abstract void addFeatures(Collection<Integer> indices,Predicate pred,Word arg,Integer offset,boolean allWords);", "public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$6);\r\n return target;\r\n }\r\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$6);\r\n return target;\r\n }\r\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$14);\r\n return target;\r\n }\r\n }", "public void add(int index, GPoint point) {\n\t\tpoints.add(index, new GPoint(point));\n\t}", "public void addElement(int index, TLProperty element);", "public void add(int index, float x, float y) {\n\t\tpoints.add(index, new GPoint(x, y));\n\t}", "@Override\n public List<FeatureId> addFeatures(\n FeatureCollection<SimpleFeatureType, SimpleFeature> collection) throws IOException {\n TransformFeatureCollectionWrapper transformed = new TransformFeatureCollectionWrapper(collection, invertedTransformer);\n return store.addFeatures(transformed);\n\n // TODO: re-shape feature ids...\n }", "@Override\n\tpublic boolean addAll(Collection<? extends SimpleFeature> collection) {\n\t\tboolean ret = super.addAll(collection);\n\t\tfor (SimpleFeature f : collection) {\n\t\t\taddToIndex(f);\n\t\t}\n\t\treturn ret;\n\t}", "@Override\n\tpublic void add(int index, Object e) throws IndexOutOfBoundsException\n\t{\n\t\t//just to check if the index is valid\n\t\tif ( index < 0 || index > size )\n \t\tthrow new IndexOutOfBoundsException();\n\t\t//check arraylist size\n\t\tif (size == myArray.length)\n\t\t\tresizeUp();\n\t\t//move all the proceeding elements to make room for the desired element\n\t\tfor ( int i = size; i > index; i-- )\n \t\tmyArray[i] = myArray[i-1];\n \t//plug the element\n\t\tmyArray[index] = e;\n \t++this.size;\n\n\t\t\n\t}", "public void increaseFeatureCount() {\n this.featureCount++;\n }", "public synchronized void insertElementAt(WModelObject object, int index)\n\t{\n\t\tm_elements.insertElementAt(object, index);\n\t}", "org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();", "org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();", "protected void addPoint( SimpleFeature feature, PointMergeOperations mergeOps )\n \t{\n \t\tmergePoint( feature, 0 );\n \t}", "public synchronized void add(int index, T obj) {\n\t\tfor(int i = mIds.size(); i > index; i--) {\n\t\t\tmObjects.put(i, mObjects.get(i - 1));\n\t\t}\n\t\t// Add object to actual end of list\n\t\tmObjects.put(index, obj);\n\t\t// Add null for that object to id list\n\t\tmIds.add(index, null);\n\t\tif(mAutoCommit) AndSync.save(obj);\n\t}", "public void add(int index, Object item)\n {\n items[index] = item;\n numItems++;\n }", "iet.distributed.telemetry.Feature getFeature(int index);", "public ComponentFeature getFeature(int index) {\r\n\t\tif (index >= features.length)\r\n\t\t\treturn null;\r\n\r\n\t\treturn features[index];\r\n\t}", "public void addVariant(Feature feature){\r\n\t\tthis.alternativeFeatureGroup.get(0).addFeature(feature);\r\n\t}", "public void add(int index, Fit f, int hierarchyIndex) {\n\t\tif (m_indexAdded == -1 || index == 0)\n\t\t\tm_indexAdded = hierarchyIndex;\n\t\tadd(index, f);\n\t}", "public void addFeature() throws UMUserManagementException {\n UMFeature uMFeature = convertFeatureDataBeanToFeatureModel(featureDataBean);\n featureService.createFeature(uMFeature);\n clearFeatureData();\n }", "public void add(int index, E obj) {\n\t\tif (obj == null) {\n\t\t\tthrow new NullPointerException(\"Object to add cannot be null\");\n\t\t}\n\t\tif (index < 0 || index > this.size()) {\n\t\t\tthrow new IndexOutOfBoundsException(\"Index is out of bounds\");\n\t\t}\n\t\t// Check for dupes\n\t\tfor (int i = 0; i < size(); i++) {\n\t\t\tif (obj.equals(get(i))) {\n\t\t\t\tthrow new IllegalArgumentException(\"Object to add cannot be a duplicate\");\n\t\t\t}\n\t\t}\n\t\t// Check if capacity needs to be increased\n\t\tif (this.size() == size) {\n\t\t\tthis.growArray();\n\t\t}\n\t\t// Add element to end\n\t\tif (index == size()) {\n\t\t\tlist[index] = obj;\n\t\t}\n\t\t// Add element to front or middle\n\t\telse if (index < size()) {\n\t\t\t// Shift elements after index to the right\n\t\t\tfor (int i = size(); i > index; i--) {\n\t\t\t\tlist[i] = list[i - 1];\n\t\t\t}\n\t\t\tset(index, obj);\n\t\t}\n\t}", "public void add(int index, E x) {\n\t\tif (index < 0 || index > mSize) // == mSize allowed\n\t\t\tthrow new IndexOutOfBoundsException();\n\n\t\tif (size() == 0)\n\t\t\taddFirst(x);\n\t\telse {\n\t\t\taddBefore(getNode(index, 0, size()), x);\n\t\t\tmSize++;\n\t\t\tmodCount++;\n\t\t}\n\t}", "org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature addNewPlanFeature();", "public void add(Object x, int index) {\n\tint counter = 0;\n\twhile (counter < _size) {\n\t if (get(counter) == x) {\n\t\thelpAdd( x, index);\n\t }\n\t counter +=1;\n\t}\n\tadd(x);\n\t\n }", "public void add(int index, Object element) {\r\n refs.add(index, new WeakReference(element));\r\n }", "@Override\r\n\tpublic boolean add(T obj, int index) {\n\t\tif (index < 0 || index > size) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (size >= array.length)\r\n\t\t\tallocate();\r\n\t\tSystem.arraycopy(array, index, array, index + 1, size - index);\r\n\t\tarray[index] = obj;\r\n\t\tsize++;\r\n\t\treturn true;\r\n\t}", "public void add(int index, CoreResourceHandle e) {\n if (index < 0 || index > doSize()) {\n throw new IndexOutOfBoundsException();\n } else if (e != null) {\n doAdd(index, e);\n } else {\n throw new NullPointerException();\n }\n }", "public void addElement(final FeatureElement newElement)\n\t{\n\t\tfeatureElements.add(newElement);\n\t}", "public abstract void add(int index, E e);", "public void add(int index, Type t);", "@Override\n public void add(int index, T element) {\n Object[] newArray = new Object[size + 1];\n for (int i = 0; i < index; i++) {\n newArray[i] = data[i];\n }\n newArray[index] = element;\n for (int i = index + 1; i < newArray.length; i++) {\n newArray[i] = data[i - 1];\n }\n data = newArray;\n size++;\n }", "private void insert(String component, String feature) {\n\tthis.entities.putIfAbsent(component, new HashSet<String>());\n\tSet<String> componentFeatures = this.entities.get(component);\n\tcomponentFeatures.add(feature);\n\tthis.entities.put(component, componentFeatures);\n\t// From features to components which possess them\n\tthis.features.putIfAbsent(feature, new HashSet<String>());\n\tSet<String> components = this.features.get(feature);\n\tcomponents.add(component);\n\t//LogInfo.logs(\" adding: %s :: %s\", feature, component);\n\tthis.features.put(feature, components);\n }", "void add(int idx, float incr);", "protected void addFeaturesPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_Reference_features_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_Reference_features_feature\", \"_UI_Reference_type\"),\n NoSQLSchemaPackage.Literals.REFERENCE__FEATURES,\n true,\n false,\n true,\n null,\n null,\n null));\n }", "public void add(int index){\n int i = 0;\n boolean isFound = false;\n for (Product product:inventory.getProducts().keySet())\n {\n i++;\n if (i == index && inventory.getProducts().get(product) > 0)\n {\n if (myBasket.containsKey(product))\n {\n System.out.println(\"One more of this product added.\");\n myBasket.replace(product , myBasket.get(product) + 1);\n }\n else {\n System.out.println(\"Product added to your basket.\");\n myBasket.put(product , 1);\n }\n totalCost = totalCost + product.getPrice();\n isFound = true;\n inventory.updateStock(product , '-');\n }\n }\n if (!isFound)\n System.out.println(\"Sorry. Invalid index or not enough product in stock!\");\n }", "public ISlideData getFeature(int index);", "@Override\n public void addLayer(int index, BoardLayerView layer) {\n this.layers.add(index, layer);\n }", "@Test\r\n\tpublic void testAddByIndex() {\r\n\t\tlist.add(3, new Munitions(3, 4, \"ferrum\"));\r\n\t\tlist.add(5, new Munitions(34, 4, \"iron\"));\r\n\t\tAssert.assertEquals(17, list.size());\r\n\t\tAssert.assertTrue(list.get(3).equals(new Munitions(3, 4, \"ferrum\")));\r\n\t}", "public void add(int index, float x, float y, String label) {\n\t\tpoints.add(index, new GPoint(x, y, label));\n\t}", "protected void addFeature( SimpleFeature feature, PointMergeOperations mergeOps )\n \t{\n if( isPoint( feature ) )\n {\n \taddPoint( feature, mergeOps );\n }\n else if( isPolyline( feature ) )\n {\n \taddPolyline( feature, mergeOps );\n }\n else\n {\n \t// We do not handle polygons.\n \tSystem.err.printf( \"Unknown feature type (%s)%n\", feature.getType().getGeometryDescriptor().getType().getBinding() );\n }\n \t}", "public org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().find_element_user(FEATURE$6, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n return target;\r\n }\r\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().find_element_user(FEATURE$6, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n return target;\r\n }\r\n }", "public @Override void add(int index, E element) {\n \tNode n = index == size ? sentinel : getNode(index);\n \tnew Node(n.pred, element);\n }", "protected void onAdd( E entity, int index )\r\n\t{\r\n\t\t\r\n\t}", "public abstract void addFeatures(Collection<Double> indices,Predicate pred, Word arg,boolean allWords);", "public org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().find_element_user(FEATURE$14, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n return target;\r\n }\r\n }", "java.lang.String getFeatures(int index);", "public void add(T element, int pos);", "void setPlanFeatureArray(int i, org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature planFeature);", "public void add(Object obj) { \n\t\tcollection.addElement(obj);\n\t}", "Feature update(Feature feature);", "@Override\n public void add(int index, T t) {\n checkIfArrayFull();\n\n if(index >= arrayList.length) {\n System.out.println(\"The index is out of bounds for this list\");\n System.exit(-1);\n }\n\n Object ob = arrayList[index];\n arrayList[index] = t;\n\n Object ob2;\n\n /*The loop cycles through the array starting at index. ob2 is given the value of arrayList at i+1 position.\n The arrayList at i+1 position is assigned the value of ob. Then the ob variable is assigned the value of ob2. */\n for(int i = index; i < arrayList.length - 1; i++) {\n ob2 = arrayList[i+1];\n arrayList[i+1] = ob;\n ob = ob2;\n }\n\n elementsInArray++;\n }", "public void add(int index, E e) {\n resize();\n for(int i = size-1; i >= index; i--) {\n list[i+1] = list[i];\n }\n list[index] = e;\n size++;\n }", "public void add(Object o) {\n\t\tTrain train = (Train)o;\n\t\ttrainlist.add(train);\n\t\tSystem.out.println(\"Train \"+train.toString()+\" has been added.\");\n\t\tSystem.out.println(\"Index in list is \"+trainlist.indexOf(train));\n\t}", "private void addAtIndex(int index, FoodItem item) {\n // store the \"pushed\" forward item\n FoodItem toMoveNext = this._stock[index];\n // and set the new item in index\n this._stock[index] = new FoodItem(item);\n\n // \"push\" forward in the array each item, until no more items to push.\n for (int i = index+1; i < _noOfItems+1; i++) {\n FoodItem tempToMoveNext = _stock[i];\n _stock[i] = toMoveNext;\n toMoveNext = tempToMoveNext;\n }\n\n // we added a new item for _stock, so now increase the noOfItem:\n this._noOfItems++;\n }", "public static int addFeature(VectorialLayerEdited vle, IFeature newFeature,\r\n\t\t\tString transactionDesc) {\r\n\t\tint index = 0;\r\n\t\tVectorialEditableAdapter vea = vle.getVEA();\r\n\t\ttry {\r\n\r\n\t\t\tindex = vea.addRow(newFeature, transactionDesc,\r\n\t\t\t\t\tEditionEvent.GRAPHIC);\r\n\t\t\tSpatialCache spatialCache = ((FLyrVect) vle.getLayer())\r\n\t\t\t\t\t.getSpatialCache();\r\n\t\t\tIGeometry geometry = newFeature.getGeometry();\r\n\t\t\tRectangle2D r = geometry.getBounds2D();\r\n\t\t\tif (geometry.getGeometryType() == FShape.POINT) {\r\n\t\t\t\tr = new Rectangle2D.Double(r.getX(), r.getY(), 1, 1);\r\n\t\t\t}\r\n\t\t\tspatialCache.insert(r, geometry);\r\n\t\t} catch (ValidateRowException e) {\r\n\t\t\tNotificationManager.addError(e);\r\n\t\t} catch (ReadDriverException e) {\r\n\t\t\tNotificationManager.addError(e);\r\n\t\t}\r\n\t\treturn vea.getInversedIndex(index);\r\n\t}", "public int insertElements(Collection<T> col, int index) {\r\n\t\tobjectCollection.addAll(index, col);\r\n\t\treturn selectElement(index);\r\n\t}", "@Override\n public boolean add(int index, T object) {\n T[] newArray;\n if (array[array.length - 1] != null) {\n newArray = (T[]) new Object[array.length * 2];\n } else {\n newArray = (T[]) new Object[array.length];\n }\n for (int i = 0; i < index; i++) {\n newArray[i] = array[i];\n\n }\n newArray[index] = object;\n for (int i = index + 1; i < array.length; i++) {\n newArray[i] = array[i - 1];\n }\n this.size++;\n this.array = newArray;\n return true;\n }", "public void add(E obj) {\r\n throw new UnsupportedOperationException();\r\n }", "public void add(int index, double value) {\n\t\t\n\t}", "public void add(int index, Object element) {\n\n\t\tif (element == null) {\n\t\t\tthrow new IllegalArgumentException(\"ArrayList cannot contain null.\");\n\t\t}\n\t\tif (index < 0 || index > this.size) {\n\t\t\tthrow new IndexOutOfBoundsException(\"the index [\" + index\n\t\t\t\t\t+ \"] is not valid for this list with the size [\"\n\t\t\t\t\t+ this.size + \"].\");\n\t\t}\n\t\tif (this.size >= this.storedObjects.length) {\n\t\t\tincreaseCapacity();\n\t\t}\n\t\t// shift all following elements one position to the back:\n\t\tfor (int i = this.size; i > index; i--) {\n\t\t\tthis.storedObjects[i] = this.storedObjects[i - 1];\n\t\t}\n\t\t// insert the given element:\n\t\tthis.storedObjects[index] = element;\n\t\tthis.size++;\n\t}" ]
[ "0.69465834", "0.6905429", "0.68254274", "0.68254274", "0.6710429", "0.6663455", "0.66269237", "0.6613903", "0.6556195", "0.6530706", "0.6487658", "0.6383218", "0.6330492", "0.6330492", "0.6300557", "0.6291605", "0.6291588", "0.62859464", "0.62748635", "0.6198587", "0.615276", "0.61163676", "0.61098766", "0.61098766", "0.6102002", "0.6098539", "0.6098539", "0.60926205", "0.60926205", "0.60844517", "0.60618675", "0.6051406", "0.6040414", "0.6017066", "0.6003269", "0.59992623", "0.5981928", "0.5968474", "0.59469366", "0.59469366", "0.5916978", "0.59083396", "0.58982956", "0.589259", "0.5887681", "0.58439344", "0.58414465", "0.58320135", "0.58047605", "0.57973504", "0.57973504", "0.5796455", "0.5792268", "0.5752681", "0.5745278", "0.5735743", "0.57119566", "0.56993467", "0.5683101", "0.5678972", "0.5675912", "0.5675001", "0.5672715", "0.56637245", "0.5657925", "0.5627178", "0.56259453", "0.56173426", "0.5608877", "0.5608109", "0.5605422", "0.5595131", "0.5536809", "0.5536409", "0.5525867", "0.55181956", "0.5516269", "0.55148256", "0.55037224", "0.55027455", "0.55027455", "0.5499149", "0.5496132", "0.54890573", "0.54862666", "0.54788125", "0.5477639", "0.5464427", "0.54597884", "0.54532886", "0.54437006", "0.54402286", "0.54292727", "0.542075", "0.54200274", "0.5404671", "0.53948843", "0.5394691", "0.5391225", "0.53903455" ]
0.83751076
0
Sets the feature at specified index of the ordered collection of the current object.
void setFeature(int index, Feature feature);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFeatureArray(int i, org.landxml.schema.landXML11.FeatureDocument.Feature feature)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().find_element_user(FEATURE$6, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n target.set(feature);\r\n }\r\n }", "public void setFeatureArray(int i, org.landxml.schema.landXML11.FeatureDocument.Feature feature)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().find_element_user(FEATURE$6, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n target.set(feature);\r\n }\r\n }", "public void setFeatureArray(int i, org.landxml.schema.landXML11.FeatureDocument.Feature feature)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().find_element_user(FEATURE$14, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n target.set(feature);\r\n }\r\n }", "public void setFeatureIndex(int i) {\n featureIndex = i;\n }", "void setFeatureArray(int i, org.landxml.schema.landXML11.FeatureDocument.Feature feature);", "void setFeatureArray(int i, org.landxml.schema.landXML11.FeatureDocument.Feature feature);", "public void setElementAt(Object obj, int index);", "void addFeature(int index, Feature feature);", "public void setInstance(int index, double[] feature) {\n\t\tinstances.set(index,feature);\n\t}", "private void setSelected(int index) {\n Feature feature = featureCollection.features().get(index);\n setFeatureSelectState(feature, true);\n refreshSource();\n }", "void set(int index, Object element);", "void setPlanFeatureArray(int i, org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature planFeature);", "public synchronized void setElementAt(WModelObject object, int index)\n\t{\n\t\tm_elements.setElementAt(object, index);\n\t}", "public E set(int index, E obj)\r\n {\r\n checkValidIndex(index);\r\n ListIterator<E> itr = listIterator(index);\r\n E result = itr.next();\r\n itr.set(obj);\r\n return result;\r\n }", "void setFeatures(Features f) throws Exception;", "@Override\n public void onBindViewHolder(@NonNull SpecificationFeatureAdaptor.FeatureViewHolder holder, int position) {\n holder.setFeature( position );\n }", "public TempList<T> set(int index, T elem) {\n chk();\n list.set(index, elem);\n return this;\n }", "public void setFeature(Integer feature) {\n this.feature = feature;\n }", "public void setIndex(int index) { this.index = index; }", "public void set(int index, T element) {\n genericArrayList[index] = element;\n }", "void setArrayElement(int index, Object value);", "void setArrayElement(int index, Object value);", "public boolean set(O o, int index)\r\n {\r\n if (index >= count || index < 0) return false;\r\n \r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<=index-1;i++)\r\n {\r\n vi = vi.getNext();\r\n }\r\n \r\n vi.setObject(o);\r\n return true;\r\n \r\n }", "public void set(final int index, final Object object) {\n super.set(index, object);\n }", "public void set(int index,Object data)\r\n\t{\r\n\t\tremove(index);\r\n\t\tadd(index, data);\r\n\t}", "public E set(int index, E element);", "public void set(int index, float value) {\r\n RangeCheck(index);\r\n elementData[index] = value;\r\n }", "public void set(int index, Object wert) {\r\n\t\t// Das Element an der Stelle index \r\n\t\t//soll auf den Wert wert gesetzt werden\r\n\t\tgeheim[index] = wert;\r\n\t}", "void setIdx(int i);", "@Override\n\t\tpublic Community set(int index, Community element) {\n\t\t\treturn null;\n\t\t}", "@Override\n public E set(int index, E elem) {\n\t E first = _store[index];\n\t _store[index] =elem;\n\t return first;\n }", "public void setIndex(int index){\r\n \tthis.index = index;\r\n }", "public void setIndex(int index)\n/* */ {\n/* 39 */ this.index = index;\n/* */ }", "public CoreResourceHandle set(int index, CoreResourceHandle e) {\n if (index >= 0 && index < doSize()) {\n return doSet(index, e);\n }\n throw new IndexOutOfBoundsException();\n }", "public Vector<T> set(int aIndex, T aValue);", "public void set(int index, int o) {\n\t\tif(index == 0) return;\n\t\tr[index] = o;\n\t}", "public void set(int index, GPoint point) {\n\t\tif (index == points.size()) {\n\t\t\tpoints.add(new GPoint(point));\n\t\t} else {\n\t\t\tpoints.get(index).set(point);\n\t\t}\n\t}", "public void set(int index, float value) {\n storage[index] = value;\n }", "void set(int index, T data);", "@Override\n public boolean set(int index, T element) {\n array[index] = element;\n return true;\n }", "public abstract <T> void set(int index, T value);", "public void setIndex(int i) {\n\t\t\n\t}", "public Object set(int index, Object element) {\n\t\tif (index < 0 || index >= this.size) {\n\t\t\tthrow new IndexOutOfBoundsException(\"the index [\" + index\n\t\t\t\t\t+ \"] is not valid for this list with the size [\"\n\t\t\t\t\t+ this.size + \"].\");\n\t\t}\n\t\tObject replaced = this.storedObjects[index];\n\t\tthis.storedObjects[index] = element;\n\n\t\treturn replaced;\n\t}", "public abstract void setIndex(int i, boolean b);", "public PointF set(int index, PointF point)\n {\n flushCache();\n int realIndex = wrap(index, size());\n return points.set(realIndex, Geometry.clone(point));\n }", "private void setIndex(int index){\n\t\tthis.index = index;\n\t}", "public void setIndex(int index) {\n _index = index;\n }", "public void set(long index);", "public void set(int index, Object value) {\n\tif(arr.length < index){\n\t\tObject arr2[] = new Object[index+1];\n\t\tSystem.arraycopy(arr, 0, arr2, 0, arr.length);\n\t\tarr2[index] = value;\n\t\tarr = arr2;\n\t\t\n\t}\n\telse arr[index] = value;\n}", "public E set(int index, E element) {\n if(index < 0 || index >= size())\n throw new IndexOutOfBoundsException();\n E currentElement = get(index);\n list[index] = element;\n return currentElement;\n }", "public void setInterFlag(int index, boolean value){\r\n\t\tif (index < 0 || index >= this.interVec.length)\r\n\t\t\t;\r\n\t\telse\r\n\t\t\tthis.interVec[index] = value;\r\n\t}", "public void setIndex(int index) {\r\n this.index = index;\r\n }", "@Override\n public T set(final int index, final T element) {\n this.checkIndex(index);\n final T prevElment = get(index);\n this.data[index] = element;\n return prevElment;\n }", "public void setIndex(int index){\n\t\tthis.index = index;\n\t}", "public void setX(int index, float x) {\n\t\tpoints.get(index).setX(x);\n\t}", "public abstract E set(int index, E e);", "org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);", "org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);", "T set(int index, T element);", "protected void ReplaceIndividual(int index) {\r\n \r\n Individual newInd, oldInd;\r\n \r\n oldInd = this.P.get(index);\r\n\r\n double[] features = new double[this.D];\r\n for(int j = 0; j < this.D; j++){\r\n features[j] = this.rndGenerator.nextDouble(this.f.min(this.D), this.f.max(this.D));\r\n } \r\n newInd = new Individual(oldInd.id, features, this.f.fitness(features));\r\n this.isBest(newInd);\r\n this.isActualBest(newInd);\r\n this.P.remove(index);\r\n this.P.add(index, newInd);\r\n this.FES++;\r\n this.writeHistory();\r\n \r\n }", "@Override\n\tpublic void setValueIndex(int index) {\n\t\t\n\t}", "public void setIndex(int i){\n\t\tthis.index = i;\r\n\t}", "public void setObject(int i, T obj);", "public E set(int index, E obj) {\n\t\tif (obj == null) {\n\t\t\tthrow new NullPointerException(\"Object to set cannot be null\");\n\t\t}\n\t\tif (index < 0 || index >= this.size()) {\n\t\t\tthrow new IndexOutOfBoundsException(\"Index is out of bounds\");\n\t\t}\n\t\t// Check for dupes\n\t\tfor (int i = 0; i < size(); i++) {\n\t\t\tif (obj.equals(get(i))) {\n\t\t\t\tthrow new IllegalArgumentException(\"Object to set cannot be a duplicate\");\n\t\t\t}\n\t\t}\n\t\tE temp = get(index);\n\t\tlist[index] = obj;\n\t\treturn temp;\n\t}", "public Object set(int index, Object element) {\r\n return deref(refs.set(index, new WeakReference(element)));\r\n }", "private void addToIndex(SimpleFeature feature) {\n\t\t// ID Index\n\t\tif (idIndex==null) idIndex = new HashMap<String, SimpleFeature>();\n\t\tidIndex.put(feature.getID(), feature);\n\t\t\n\t\t// Type name index\n\t\tif (typeNameIndex==null) typeNameIndex = new HashMap<Name, Set<SimpleFeature>>();\n\t\tName type = feature.getType().getName();\n\t\tSet<SimpleFeature> prev = typeNameIndex.get(type);\n\t\tif (prev==null) prev = new HashSet<SimpleFeature>();\n\t\tprev.add(feature);\n\t\ttypeNameIndex.put(type, prev);\n\t\t\n\t\t// Tile Index\n\t\t// Image features are separated by - and last parts are xref-yref-zoom\n\t\tif (feature.getID().matches(\".*-[0-9]+-[0-9]+-[0-9]+\")) {\n\t\t\tOSMTile tile = new OSMTile(feature.getID());\n\t\t\tprev = tileIndex.get( tile );\n\t\t\tif (prev==null) prev = new HashSet<SimpleFeature>();\n\t\t\tprev.add(feature);\n\t\t\ttileIndex.put(tile, prev);\n\t\t\t\n\t\t} else {\n\t\t\t/* TODO Something for features..?\n\t\t\t * get geometry bounds, calculate tile and insert into relevant index positions?\n\t\t\t * This would then also work for removal...\t */\n\t\t}\n\t\t\n\t}", "public void set(int index, int value) {\n\t\t\tcheckIndex(index);\n\t\t\telementData[index] = value;\n\t\t}", "void setObject(int index, Object value) throws SQLException;", "public ComponentFeature getFeature(int index) {\r\n\t\tif (index >= features.length)\r\n\t\t\treturn null;\r\n\r\n\t\treturn features[index];\r\n\t}", "public static native void SetAt(long lpjFbxArrayVector2, int pIndex, long pElement);", "@Override\n public void setLayer(int index, BoardLayerView layer) {\n this.layers.set(index, layer);\n }", "void setFeatureArray(org.landxml.schema.landXML11.FeatureDocument.Feature[] featureArray);", "void setFeatureArray(org.landxml.schema.landXML11.FeatureDocument.Feature[] featureArray);", "public void addFeatures(IFeature feature);", "public Object set(int index, Object element) {\r\n Entry e = entry(index);\r\n Object oldVal = e.element;\r\n e.element = element;\r\n return oldVal;\r\n }", "Feature removeFeature(int index);", "public Builder setClientFeatures(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureClientFeaturesIsMutable();\n clientFeatures_.set(index, value);\n onChanged();\n return this;\n }", "void setIndexed(boolean indexed);", "@Override\n public E set(int index, E value) {\n // todo: Students must code\n checkRange(index);\n int pos = calculate(index);\n E oldVal = data[pos];\n data[pos] = value;\n return oldVal;\n }", "public void set(int idx, E value) {\n assert idx >= 0;\n \n checkgrow(idx);\n \n\tarray[idx] = value;\n\t\n }", "public void setElementAt(int n, Object ob) {\r\n\t\telements.set(n, ob);\r\n\t}", "public int set(int index, int element);", "public void insertElementAt(Replicated obj, int index)\r\n\t{\n\t\tinsert(obj, index);\r\n\t}", "public void setTargetValue(int idx, Object value);", "public void setFeature(vis.smart.webservice.ProteinFeaturesFeature[] feature) {\n this.feature = feature;\n }", "public void setIndex(Integer index) {\n this.index = index;\n }", "public void setIndex(Integer index) {\n this.index = index;\n }", "public void set(final int index, final BigDecimal element) {\n ensureCapacity(index + 1); // capacity is one more than index\n cache[index] = element;\n }", "Feature update(Feature feature);", "void addFeature(Feature feature);", "public void insertElementAt(Object obj, int index)\n {\n try {element.insertElementAt(obj, index);}\n catch (Exception e) {\n throw new IllegalArgumentException\n (\"VectorLinearList.insertElementAt: \" +\n \"index must be between 0 and size\");\n }\n }", "protected void setIndex(int index) {\n\t\tthis.index = index;\n\t}", "public void setAt(int iterator, T element) {\n data[iterator] = element;\n }", "@Override\n\tpublic E set(int idx, E element) {\n\t\tif (element == null) throw new NullPointerException();\n\t\tif (idx < 0 || idx >= size()) throw new IndexOutOfBoundsException();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tif (element.equals(list[i]))\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tE output = null;\n\t\toutput = list[idx];\n\t\tlist[idx] = element;\n\t\treturn output;\n\t}", "public <T> void insertValue(EObject container, EStructuralFeature structuralFeature, T value, Integer index) {\n\t\tDEModelLocker.activateWriter(this);\n\t\t\n\t\ttry {\n\t\t\tEList<T> currentListValue = getManyValueOrFail(container, structuralFeature, value);\n\t\n\t\t\t//EObjects may be contained in a containment EReference, which they are removed from\n\t\t\t//upon adding them to a new containment reference.\n\t\t\tif (value instanceof EObject) {\n\t\t\t\tEObject valueObject = (EObject) value;\n\t\t\t\tscheduleRemoveFromContainment(valueObject);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//If the target structural feature is single and a previous value exists, it will be removed.\n\t\t\t//TODO: Untested\n\t\t\tif (!FeatureMapUtil.isMany(container, structuralFeature)) {\n\t\t\t\tObject previousValue = container.eGet(structuralFeature);\n\t\t\t\t\n\t\t\t\tscheduleRemove(container, container, structuralFeature, previousValue);\n\t\t\t}\n\t\t\t\n\t\t\tif (index == null) {\n\t\t\t\t//Append to list of nothing else specified.\n\t\t\t\tindex = currentListValue.size();\n\t\t\t}\n\t\t\t\n\t\t\tDEModelLocker.scheduleAddValueWriteAccess(container, structuralFeature, value, index);\n\t\t\tcurrentListValue.add(value);\n\t\t} finally {\n\t\t\tDEModelLocker.deactivateWriter(this);\n\t\t}\n\t}", "protected void sequence_Features(ISerializationContext context, Features semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public void set(int index, float x, float y, String label) {\n\t\tif (index == points.size()) {\n\t\t\tpoints.add(new GPoint(x, y, label));\n\t\t} else {\n\t\t\tpoints.get(index).set(x, y, label);\n\t\t}\n\t}", "public void setActiveUnit( int index )\n {\n setGeometry( geometries.get( index ) );\n \n setAppearance( appearances.get( index ) );\n \n activeUnit = index;\n }", "@Override\n\tpublic void set(int index, T insertItem) {\n\t\t\n\t}", "private void setElement(int index, E element) {\n// if (getElement(index) != null) {\n// setContents.remove(getElement(index));\n// }\n while (index >= contents.size()) {\n contents.add(null);\n }\n contents.set(index, element);\n// contents.put(index, element);\n backwards.put(element, index);\n\n// if (element != null) {\n// setContents.add(getElement(index));\n// }\n }" ]
[ "0.72679555", "0.72679555", "0.72545725", "0.72234946", "0.7034315", "0.7034315", "0.68914837", "0.6891289", "0.6652147", "0.6506111", "0.6317412", "0.6308371", "0.6300016", "0.61651886", "0.61533195", "0.6056068", "0.6029256", "0.602711", "0.5990883", "0.5965293", "0.59285104", "0.59285104", "0.5906012", "0.58949834", "0.58610004", "0.58377737", "0.57921296", "0.5775971", "0.57297635", "0.5725833", "0.57181156", "0.5715083", "0.56749374", "0.5665683", "0.56642705", "0.56547356", "0.56469756", "0.564558", "0.5645364", "0.56440276", "0.5633867", "0.56298", "0.5627592", "0.56270736", "0.56176466", "0.56175023", "0.5613672", "0.56067216", "0.55951434", "0.5575486", "0.5566649", "0.5539192", "0.5537628", "0.5535871", "0.5487108", "0.5481434", "0.5479391", "0.5479391", "0.547802", "0.5455828", "0.5450018", "0.54488534", "0.54406494", "0.5435863", "0.5434683", "0.5412808", "0.5397856", "0.53720516", "0.5370523", "0.5358796", "0.5349992", "0.534285", "0.534285", "0.5339321", "0.5333728", "0.53314495", "0.5330062", "0.5321285", "0.53199124", "0.5315786", "0.52966416", "0.52941126", "0.5287196", "0.5282576", "0.5279925", "0.5278978", "0.5278978", "0.52781993", "0.5276443", "0.5274578", "0.525282", "0.5242919", "0.5238436", "0.5233592", "0.52276665", "0.52263844", "0.5217053", "0.5215526", "0.52106833", "0.52093464" ]
0.8277993
0
Removes (and fetches) the feature at specified index from the ordered collection of the current object.
Feature removeFeature(int index);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeFeature(int i);", "void removeFeature(int i);", "public PointF remove(int index)\n {\n flushCache();\n return points.remove(index);\n }", "protected void removeFromIndex(SimpleFeature feature) {\n\t\tif (feature==null) return;\n\t\t\n\t\t// ID Index\n\t\tidIndex.remove( feature.getID() );\n\t\t\n\t\t// Type name index\n\t\tName type = feature.getType().getName();\n\t\tSet<SimpleFeature> prev = typeNameIndex.get(type);\n\t\tif ( prev.remove( feature ) ) {\n\t\t\tif (prev.size()>0) {\n\t\t\t\ttypeNameIndex.put(type,prev);\n\t\t\t} else {\n\t\t\t\ttypeNameIndex.remove(type);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Tile Index\n\t\tif (feature.getID().matches(\".*-[0-9]+-[0-9]+-[0-9]+\")) {\n\t\t\tOSMTile tile = new OSMTile(feature.getID());\n\t\t\tprev = tileIndex.get( tile );\n\t\t\tif ( prev.remove( feature ) ) {\n\t\t\t\tif (prev.size()>0) {\n\t\t\t\t\ttileIndex.put(tile, prev);\n\t\t\t\t} else {\n\t\t\t\t\ttileIndex.remove(type);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t// Whatever for features\n\t\t}\n\t}", "@ZenCodeType.Method\n default void remove(int index) {\n \n doesNot(\"support removal by index\");\n }", "public Object remove(int index) {\r\n return deref(refs.remove(index));\r\n }", "@Override\r\n\tpublic T remove(int index) {\n\t\treturn this._list.remove(index);\r\n\t}", "public void remove(int index);", "public void removeFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FEATURE$6, i);\r\n }\r\n }", "public void removeFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FEATURE$6, i);\r\n }\r\n }", "public void removeFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FEATURE$14, i);\r\n }\r\n }", "public T remove(int index) {\n chk();\n return list.remove(index);\n }", "public void remove(int index) {\n\n\t}", "void removePlanFeature(int i);", "void remove( int index );", "@Override\n\t\tpublic Community remove(int index) {\n\t\t\treturn null;\n\t\t}", "private synchronized void remove(int index) {\r\n\t\tif (index >= 0 && index <= docModel.size())\r\n\t\t\ttry {\r\n\t\t\t\tdocModel.remove(index - 1);\r\n\t\t\t} catch (ArrayIndexOutOfBoundsException e) {\r\n\t\t\t\tif (commandsQueue.size() == 0)\r\n\t\t\t\t\tupdateActiveUsers();\r\n\t\t\t}\r\n\t}", "void remove(int index);", "void remove(int index);", "void remove(int index);", "void remove(int index);", "@Override\n public T remove(final int index) {\n this.checkIndex(index);\n T object = this.data[index];\n this.remove(object);\n return object;\n }", "public void remove(int index) {\n\t\tpoints.remove(index);\n\t}", "public Type remove(int index);", "void remove(int idx);", "@Override\r\n \t\tprotected Object removeListItem(EObject object, EStructuralFeature feature, int index) {\n \t\t\tEList<EObject> list = (EList<EObject>)object.eGet(feature);\r\n \t\t\tEObject item = list.get(index);\r\n \t\t\tOutputSet outputSet = catchEvent.getOutputSet();\r\n \t\t\tif (outputSet.getDataOutputRefs().contains(item))\r\n \t\t\t\toutputSet.getDataOutputRefs().remove(item);\r\n \t\t\t\r\n \t\t\t// remove Input or Output DataAssociations\r\n \t\t\tList<DataOutputAssociation> dataOutputAssociations = catchEvent.getDataOutputAssociation();\r\n \t\t\tList<DataOutputAssociation> removed = new ArrayList<DataOutputAssociation>();\r\n \t\t\tfor (DataOutputAssociation doa : dataOutputAssociations) {\r\n \t\t\t\tif (doa.getTargetRef().equals(item))\r\n \t\t\t\t\tremoved.add(doa);\r\n \t\t\t}\r\n \t\t\tdataOutputAssociations.removeAll(removed);\r\n \r\n \t\t\treturn super.removeListItem(object, feature, index);\r\n \t\t}", "@Override\r\n \t\tprotected Object removeListItem(EObject object, EStructuralFeature feature, int index) {\n \t\t\tEList<EObject> list = (EList<EObject>)object.eGet(feature);\r\n \t\t\tEObject item = list.get(index);\r\n \t\t\tInputSet inputSet = throwEvent.getInputSet();\r\n \t\t\tif (inputSet.getDataInputRefs().contains(item))\r\n \t\t\t\tinputSet.getDataInputRefs().remove(item);\r\n \t\t\t\r\n \t\t\t// remove Input or Output DataAssociations\r\n \t\t\tList<DataInputAssociation> dataInputAssociations = throwEvent.getDataInputAssociation();\r\n \t\t\tList<DataInputAssociation> removed = new ArrayList<DataInputAssociation>();\r\n \t\t\tfor (DataInputAssociation dia : dataInputAssociations) {\r\n \t\t\t\tif (dia.getTargetRef().equals(item))\r\n \t\t\t\t\tremoved.add(dia);\r\n \t\t\t}\r\n \t\t\tdataInputAssociations.removeAll(removed);\r\n \r\n \t\t\treturn super.removeListItem(object, feature, index);\r\n \t\t}", "abstract void remove(int index);", "public E remove(int index);", "public T remove(int index) {\n return null;\n }", "public Object remove(int index) {\r\n Entry e = entry(index);\r\n remove(e);\r\n return e.element;\r\n }", "@Override\r\n\tpublic void removeToIndex(int index) {\n\t}", "@Override\n\tpublic E remove(int index) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic VOI remove(int index) {\r\n\r\n try {\r\n VOI voi = super.remove(index);\r\n fireVOIremoved(voi);\r\n\r\n return voi;\r\n } catch (ArrayIndexOutOfBoundsException badIndex) {\r\n throw badIndex;\r\n }\r\n }", "public void remove(int index) {\n items.remove(index);\n }", "public abstract T remove(int index);", "T remove(int index);", "T remove(int index);", "Object remove(int index) {\n return index >= 0 && index < this.length() ? this.myArrayList.remove(index) : null;\n }", "public void remove(Feature f){\n if (debug) logger.info(\"feature removed\");\n int row = fc.indexOf(f);\n fc.remove(f);\n fcLastEdits.clear();\n fcLastEdits.add(f);\n lastEditType = EDIT_REMOVE;\n fireTableRowsDeleted(row,row);\n }", "public void removeActor(int index) { ActorSet.removeElementAt(index); }", "public ContentObject remove(\n )\n {\n ContentObject removedObject = objects.remove(index);\n refresh();\n\n return removedObject;\n }", "public Object remove(int index) {\n\n\t\tif (index < 0 || index >= this.size) {\n\t\t\tthrow new IndexOutOfBoundsException(\"the index [\" + index\n\t\t\t\t\t+ \"] is not valid for this list with the size [\"\n\t\t\t\t\t+ this.size + \"].\");\n\t\t}\n\t\tObject removed = this.storedObjects[index];\n\t\tfor (int i = index + 1; i < this.size; i++) {\n\t\t\tthis.storedObjects[i - 1] = this.storedObjects[i];\n\t\t}\n\t\tthis.size--;\n\t\tthis.storedObjects[this.size] = null;\n\n\t\treturn removed;\n\t}", "public Object remove(int index){\r\n return dequeue(); //calls the dequeue method\r\n }", "public void removeElementAt(int index);", "private final void fastRemove(final int index) {\r\n\t\tfinal int numMoved = this.size - index - 1;\r\n\t\tif (numMoved > 0) {\r\n\t\t\tSystem.arraycopy( this.elementData, index + 1, this.elementData, index, numMoved );\r\n\t\t}\r\n\t\tthis.elementData[--this.size] = null; // Let gc do its work\r\n\t}", "@Override\n public E remove(int index) {\n\t E first = _store[index];\n\t _store[index] = null;\n\t for( int i = index; i< _size-1;i++) {\n\t\t _store[i]=_store[i+1];\n\t }\n\t_store[_size-1]=null;\n\t _size -=1;\n\t \n\t\t \n\treturn first;\n }", "public void remove(int index)\n {\n numItems--;\n items[index] = null;\n }", "public AnyType remove( int index ) throws IndexOutOfBoundsException {\n \n return removeNode( index ).getData();\n \n }", "public ComponentFeature getFeature(int index) {\r\n\t\tif (index >= features.length)\r\n\t\t\treturn null;\r\n\r\n\t\treturn features[index];\r\n\t}", "public CoreResourceHandle remove(int index) {\n if (index >= 0 && index < doSize()) {\n return doRemove(index);\n }\n throw new IndexOutOfBoundsException();\n }", "public E remove(int index)\r\n {\r\n checkValidIndex(index);\r\n ListIterator<E> itr = listIterator(index);\r\n E result = itr.next();\r\n itr.remove();\r\n return result;\r\n }", "@Override\n\tpublic T remove(int index) {\n\t\t// TODO check if index is withing the correct range\n\t\t// If not, return null\n\t\t// otherwise , do the same as above\n\t\tif (index >= 0 && index < size) {\n\t\t\tT item = data[index];\n\t \t\tfor(int i=index;i<size-1;i++)\n\t \t\t\tdata[i] = data[i+1];\n\t \t\tsize--;\n\t \t\treturn item;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\n\t}", "private void removeEntity(int index)\n\t{\n\t\tthis.entities.get(index).onDespawn();\n\t\tthis.spatialHashGrid.remove(this.entities.get(index).getSpatialHashGridHandle());\n\t\t\n\t\tthis.entities.set(index, this.entities.get(this.entities.size() - 1));\n\t\tthis.entities.remove(this.entities.size() - 1);\n\t}", "Feature delete(Long featureId);", "public void removeFeature(Feature feature) {\n rows.removeElement(feature);\n }", "public abstract E remove(int index);", "private void removeAtIndex(int index) {\n // save the last item\n FoodItem toMoveBack = this._stock[this._noOfItems-1];\n // make it null\n this._stock[this._noOfItems-1] = null;\n // for each item until the index to remove from:\n for (int i = this._noOfItems-2; i > index-1; i--) {\n // save the last moved back temporarily\n FoodItem tempToMoveBack = toMoveBack;\n // assign to the next iteration item to move back\n toMoveBack = this._stock[i];\n // move back the item for current iteration\n this._stock[i] = tempToMoveBack;\n }\n // we removed an item - so let's decrease the item counter.\n this._noOfItems--;\n }", "public void removeObject(int i);", "public void remove(int index){\n tasks.remove(index);\n }", "public void remove(int index) {\n for (int i = index; i < this.list.length-1; i++) {\n this.list[i]=this.list[i+1];\n }\n this.size--;\n }", "@Override\n\tpublic void removeAt(final int index) {\n\t\tremoveFromInsertionOrder(index);\n\t\tsuper.removeAt(index); // clear key, state, value; adjust size\n\t}", "public Object remove(int index){\n\t\tif(index < listSize){\n\t\t\tObject o = myArrayList[index];\n\t\t\tmyArrayList[index] = null;\n\t\t\tint temp = index;\n\t\t\twhile(temp < listSize){\n\t\t\t\tmyArrayList[temp] = myArrayList[temp+1];\n\t\t\t\tmyArrayList[temp+1] = 0;\n\t\t\t\ttemp++;\n\t\t\t}\n\t\t\tlistSize --;\n\t\t\treturn o;\n\t\t}else{\n\t\t\tthrow new ArrayIndexOutOfBoundsException();\n\t\t}\n\t}", "@Override\n public BoardLayerView removeLayer(int index) {\n return this.layers.remove(index);\n }", "@Override\r\n\tpublic void removeElementAt(int index) {\r\n\r\n try {\r\n VOI voi = VOIAt(index);\r\n super.removeElementAt(index);\r\n fireVOIremoved(voi);\r\n } catch (ArrayIndexOutOfBoundsException badIndex) {\r\n throw badIndex;\r\n }\r\n }", "private void removeStats(int index) {\n ensureStatsIsMutable();\n stats_.remove(index);\n }", "void deleteFeature(Integer id);", "public void remove(int index) {\n\t\t\tcheckIndex(index);\n\t\t\tfor(int i = index; i < size - 1; i++) {\n\t\t\t\telementData[i] = elementData[i + 1];\n\t\t\t}\n\t\t}", "@Override\n\tpublic E remove(int index) {\n\t\trangeCheck(index);\n\t\t\n\t\treturn remove(node(index));\n\t}", "E remove(int i ) throws IndexOutOfBoundsException;", "int remove(int idx);", "void setFeature(int index, Feature feature);", "public void remove( int index ) {\n\tif (index > _lastPos)\n\t System.out.println(\"No meaningful value at index\");\n\telse {for (int i= index; i < _lastPos; i++){\n\t\t_data[i]= _data[i+1];\n\t }\n\t _size--;\n\t _lastPos--;\n\t}\n }", "E remove(int i) throws IndexOutOfBoundsException;", "@Override\n\t\tpublic void deleteItem(int index) {\n\t\t\tmGuanzhuList.remove(index);\n\t\t}", "public ReturnObject remove(int index) {\n ReturnObjectImpl rtn = (ReturnObjectImpl) get(index);\n if (size() == 0) {\n rtn.setError(ErrorMessage.EMPTY_STRUCTURE);\n } else if (index < 0 || index >= size()) {\n rtn.setError(ErrorMessage.INDEX_OUT_OF_BOUNDS);\n } else {\n\n Object[] temp = new Object[size() - 1];\n for (int i=0; i < index; i++) {\n temp[i] = AL[i];\n }\n for (int j = index+1; j < size(); j++) {\n temp[j-1] = AL[j];\n }\n AL = temp;\n }\n return rtn;\n\n }", "synchronized protected void removePoint(final int index) {\n \t\t// check preconditions:\n \t\tif (index < 0) {\n \t\t\treturn;\n \t\t} else if (n_points - 1 == index) {\n \t\t\t//last point out\n \t\t\tn_points--;\n \t\t} else {\n \t\t\t//one point out (but not the last)\n \t\t\t--n_points;\n \n \t\t\t// shift all points after 'index' one position to the left:\n \t\t\tfor (int i=index; i<n_points; i++) {\n \t\t\t\tp[0][i] = p[0][i+1];\t\t//the +1 doesn't fail ever because the n_points has been adjusted above, but the arrays are still the same size. The case of deleting the last point is taken care above.\n \t\t\t\tp[1][i] = p[1][i+1];\n \t\t\t\tp_layer[i] = p_layer[i+1];\n \t\t\t}\n \t\t}\n \n \t\t// Reset or fix autotracing records\n \t\tif (index < last_autotrace_start && n_points > 0) {\n \t\t\tlast_autotrace_start--;\n \t\t} else last_autotrace_start = -1;\n \n \t\t//update in database\n \t\tupdateInDatabase(\"points\");\n \t}", "public Object remove(int index) {\n\t\tif (nextItem.getIndex() == index) {\n\t\t\tObject removedObject = nextItem.getObject();\n\t\t\tif (nextItem.getNext() != null) {\n\t\t\t\tnextItem = nextItem.getNext();\n\t\t\t\tnextItem.decrementIndex();\n\t\t\t} else {\n\t\t\t\tnextItem = null;\n\t\t\t}\n\t\t\treturn removedObject;\n\t\t} else {\n\t\t\treturn nextItem.remove(index);\n\t\t}\n\t}", "public void removeLayer(int index){\n history.removeIndex(index);\n historyValues.removeIndex(index);\n }", "public void removeFeature(Feature f)\n throws ChangeVetoException, BioException;", "@Override\n public synchronized E remove(int index) {\n E result = this.get(index);\n if (index < this.size() - 1) {\n System.arraycopy(this.container, index + 1, this.container, index, this.size() - (index + 1));\n }\n this.container[--this.pointer] = null;\n return result;\n }", "public void remove(int idx) {\r\n\t\tcards.remove(idx);\r\n\t}", "public void remove(int index) {\r\n\t\t//Das Element am Index soll weg:\r\n\t\t//1. Alle Elemente davor sollen erhalten bleiben\r\n\t\t//2. Alle Elemente dahinter sollen erhalten bleiben\r\n\t\t//und der Index 1 kleiner werden\r\n\t\tfor(int i=index+1;i < geheim.length; i++) {\r\n\t\t\tgeheim[i-1] = geheim[i];\r\n\t\t}\r\n\t\t//3. Das Array soll um eins kleiner sein\r\n\t\tresize(-1);\r\n\t}", "private void removeRefundTo(int index) {\n ensureRefundToIsMutable();\n refundTo_.remove(index);\n }", "public E remove(int index) {\n\t\tif (index < 0 || index >= this.size()) {\n\t\t\tthrow new IndexOutOfBoundsException(\"Index is out of bounds\");\n\t\t}\n\t\tE removed = get(index);\n\t\t// Loop to shift elements left\n\t\tfor (int i = index; i < size(); i++) {\n\t\t\tlist[i] = list[i + 1];\n\t\t}\n\t\treturn removed;\n\t}", "public Book removeBookAt(int index) {\n \treturn (Book)set.remove(index);\n }", "public Task remove(int index) {\r\n return tasks.remove(index);\r\n }", "public T removeAt(int index) {\n if (index >= size || index < 0) throw new IndexOutOfBoundsException();\n T tempData = genericArrayList[index];\n T[] tempArrayList = (T[]) new Object[size - 1];\n for (int i = 0, j = 0; i < size; i++, j++) {\n if (i == index) j--; // skip over removeAtIndex by fixing j temporarily\n else tempArrayList[j] = genericArrayList[i];\n }\n genericArrayList = tempArrayList;\n capacity = --size;\n return tempData;\n }", "public void removeRecord(int index) {\r\n\t\tsuper.removeRecord(index);\r\n\t\ttrackPointOverlay.removeWayPoint(index);\r\n\t}", "public Object remove (int i)\r\n {\r\n }", "public void removeIt() { \n\t\t\tcollection.remove(currIndex);\n\t\t\tcurrIndex--;\n\t\t}", "@Override\n public E remove(int index) {\n this.rangeCheck(index);\n this.modCount++;\n E oldValue = (E) this.values[index];\n int numMoved = this.index - index - 1;\n if (numMoved > 0) {\n System.arraycopy(this.values, index + 1, this.values, index, numMoved);\n }\n this.values[--this.index] = null;\n return oldValue;\n }", "public void remove(int index)\r\n {\r\n if(index<0 || measurementItems==null || measurementItems.size()<index) return;\r\n measurementItems.remove(index);\r\n \r\n itemsQuantity=(this.getMeasurementItems()!=null)?this.getMeasurementItems().size():0;\r\n }", "@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}", "public void remove(int indx) {\n\t\tgameObjects.remove(indx);\n\t}", "@Override\n public T remove(int index) {\n if (index < 0 || index > size) {\n throw new IndexOutOfBoundsException(\"Index out of bounds exception.\");\n }\n\n T oldValue = (T) data[index];\n int move = index - size - 1;\n if (move > 0) {\n System.arraycopy(data, index + 1, data, index, move);\n }\n\n data[--size] = null;\n return oldValue;\n }", "public void remove(int index) {\n \tmData.remove(index);\n notifyDataSetChanged();\n }", "void removeRelated(int i);", "private void removeFriendList(int index) {\n ensureFriendListIsMutable();\n friendList_.remove(index);\n }", "public native String removeItem(Number index);" ]
[ "0.72008985", "0.72008985", "0.67114043", "0.6663283", "0.66329885", "0.6588231", "0.6549243", "0.6528689", "0.647344", "0.647344", "0.6411255", "0.64040804", "0.6401197", "0.63865787", "0.6379798", "0.63580513", "0.6348123", "0.6325296", "0.6325296", "0.6325296", "0.6325296", "0.6306227", "0.63029474", "0.62735194", "0.6261333", "0.62509686", "0.6242827", "0.6223483", "0.62157124", "0.6197302", "0.6195936", "0.6185909", "0.6172742", "0.6144507", "0.6117954", "0.611043", "0.6108505", "0.6108505", "0.60774404", "0.6075345", "0.60725826", "0.6054211", "0.6039246", "0.60387665", "0.6021689", "0.5992487", "0.5992011", "0.59868544", "0.5982538", "0.5982402", "0.5963419", "0.5962459", "0.5950408", "0.5940357", "0.59363323", "0.59205437", "0.5917446", "0.59166104", "0.5893811", "0.58857024", "0.5881723", "0.5833262", "0.5813886", "0.57937604", "0.5782609", "0.5781175", "0.5779733", "0.57688993", "0.57605076", "0.5759944", "0.5730561", "0.57221186", "0.57163525", "0.57137734", "0.57065845", "0.5700991", "0.56874424", "0.5678557", "0.56735605", "0.5666542", "0.566347", "0.56610197", "0.5657662", "0.56570876", "0.56482863", "0.56435585", "0.56394297", "0.5618492", "0.56172943", "0.56155217", "0.5607986", "0.5598214", "0.55971557", "0.5567942", "0.55677974", "0.55660766", "0.55653095", "0.55636185", "0.55547297", "0.55429536" ]
0.7708642
0
Removes a feature from the ordered collection of the current object.
boolean removeFeature(Feature feature);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeFeature(Feature feature) {\n rows.removeElement(feature);\n }", "Feature removeFeature(int index);", "public void removeFromfeatures (org.unitime.timetable.model.RoomFeature roomFeature) {\n \t\tif (null == getFeatures()) \n \t\t\tsetFeatures(new java.util.HashSet());\n \t\tgetFeatures().remove(roomFeature);\n \t}", "public void removeFeature(Feature f)\n throws ChangeVetoException, BioException;", "public void removeFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FEATURE$6, i);\r\n }\r\n }", "public void removeFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FEATURE$6, i);\r\n }\r\n }", "void removeFeature(int i);", "void removeFeature(int i);", "public void remove(Feature f){\n if (debug) logger.info(\"feature removed\");\n int row = fc.indexOf(f);\n fc.remove(f);\n fcLastEdits.clear();\n fcLastEdits.add(f);\n lastEditType = EDIT_REMOVE;\n fireTableRowsDeleted(row,row);\n }", "public void removeFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FEATURE$14, i);\r\n }\r\n }", "public void removeFeatures(Feature[] features) {\n //TODO: remove the features\n }", "@Action( ACTION_REMOVE_FEATURE )\r\n public String doRemoveFeature( HttpServletRequest request )\r\n {\r\n int nId = Integer.parseInt( request.getParameter( PARAMETER_ID_FEATURE ) );\r\n FeatureHome.remove( nId );\r\n addInfo( INFO_FEATURE_REMOVED, getLocale( ) );\r\n\r\n return redirectView( request, VIEW_MANAGE_FEATURES );\r\n }", "protected void removeFromIndex(SimpleFeature feature) {\n\t\tif (feature==null) return;\n\t\t\n\t\t// ID Index\n\t\tidIndex.remove( feature.getID() );\n\t\t\n\t\t// Type name index\n\t\tName type = feature.getType().getName();\n\t\tSet<SimpleFeature> prev = typeNameIndex.get(type);\n\t\tif ( prev.remove( feature ) ) {\n\t\t\tif (prev.size()>0) {\n\t\t\t\ttypeNameIndex.put(type,prev);\n\t\t\t} else {\n\t\t\t\ttypeNameIndex.remove(type);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Tile Index\n\t\tif (feature.getID().matches(\".*-[0-9]+-[0-9]+-[0-9]+\")) {\n\t\t\tOSMTile tile = new OSMTile(feature.getID());\n\t\t\tprev = tileIndex.get( tile );\n\t\t\tif ( prev.remove( feature ) ) {\n\t\t\t\tif (prev.size()>0) {\n\t\t\t\t\ttileIndex.put(tile, prev);\n\t\t\t\t} else {\n\t\t\t\t\ttileIndex.remove(type);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t// Whatever for features\n\t\t}\n\t}", "void removePlanFeature(int i);", "void deleteFeature(Integer id);", "@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}", "Feature delete(Long featureId);", "private void deleteFeature(final SimpleFeature feature ) {\n\n\n try {\n //Deletes only if the target is equal to the layer to clip\n if(this.layerToClip.equals(this.targetLayer)){\n FidFilter filter = FILTER_FACTORY.createFidFilter(feature.getID());\n FeatureStore<SimpleFeatureType, SimpleFeature> store = getTargetStore();\n store.removeFeatures(filter);\n }\n\n } catch (IOException e) {\n final String msg = Messages.ClipProcess_failed_deleting;\n LOGGER.severe(msg);\n throw (RuntimeException) new RuntimeException(msg).initCause( e );\n }\n\n }", "@Override\r\n \t\tprotected Object removeListItem(EObject object, EStructuralFeature feature, int index) {\n \t\t\tEList<EObject> list = (EList<EObject>)object.eGet(feature);\r\n \t\t\tEObject item = list.get(index);\r\n \t\t\tOutputSet outputSet = catchEvent.getOutputSet();\r\n \t\t\tif (outputSet.getDataOutputRefs().contains(item))\r\n \t\t\t\toutputSet.getDataOutputRefs().remove(item);\r\n \t\t\t\r\n \t\t\t// remove Input or Output DataAssociations\r\n \t\t\tList<DataOutputAssociation> dataOutputAssociations = catchEvent.getDataOutputAssociation();\r\n \t\t\tList<DataOutputAssociation> removed = new ArrayList<DataOutputAssociation>();\r\n \t\t\tfor (DataOutputAssociation doa : dataOutputAssociations) {\r\n \t\t\t\tif (doa.getTargetRef().equals(item))\r\n \t\t\t\t\tremoved.add(doa);\r\n \t\t\t}\r\n \t\t\tdataOutputAssociations.removeAll(removed);\r\n \r\n \t\t\treturn super.removeListItem(object, feature, index);\r\n \t\t}", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public Object remove();", "void removeFeature(FriendPresence friendPresence);", "@Override\r\n \t\tprotected Object removeListItem(EObject object, EStructuralFeature feature, int index) {\n \t\t\tEList<EObject> list = (EList<EObject>)object.eGet(feature);\r\n \t\t\tEObject item = list.get(index);\r\n \t\t\tInputSet inputSet = throwEvent.getInputSet();\r\n \t\t\tif (inputSet.getDataInputRefs().contains(item))\r\n \t\t\t\tinputSet.getDataInputRefs().remove(item);\r\n \t\t\t\r\n \t\t\t// remove Input or Output DataAssociations\r\n \t\t\tList<DataInputAssociation> dataInputAssociations = throwEvent.getDataInputAssociation();\r\n \t\t\tList<DataInputAssociation> removed = new ArrayList<DataInputAssociation>();\r\n \t\t\tfor (DataInputAssociation dia : dataInputAssociations) {\r\n \t\t\t\tif (dia.getTargetRef().equals(item))\r\n \t\t\t\t\tremoved.add(dia);\r\n \t\t\t}\r\n \t\t\tdataInputAssociations.removeAll(removed);\r\n \r\n \t\t\treturn super.removeListItem(object, feature, index);\r\n \t\t}", "Object remove();", "boolean removeTypedFeature(StructuralFeature typedFeature);", "public void remove () {}", "public void removeFeatures(Extent ex) {\n //TODO: remove the features\n }", "public void remove(GeometricalObject object);", "void remove(GeometricalObject object);", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void remove() {\n\t }", "void clearFeatures();", "@RequestLine(\"DELETE /v1/courses/{courseId}/features/flags/{feature}\")\n @Headers({\n \"Content-Type: application/json\",\n \"Accept: application/json\",\n })\n FeatureFlag removeFeatureFlagCourses(@Param(\"courseId\") String courseId, @Param(\"feature\") String feature);", "public void removeByObject()\r\n\t{\n\t}", "public void remove() {\r\n //\r\n }", "public void remove(){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "@Override\n public boolean remove(Object o) {\n return gameCollection.remove(o);\n }", "void remove();", "void remove();", "void remove();", "void remove();", "void remove();", "public void remove() {\n\n }", "public void removeValue(EObject container, EStructuralFeature structuralFeature, Object value) {\n\t\tDEModelLocker.activateWriter(this);\n\t\t\n\t\ttry {\n\t\t\tEList<?> currentListValue = getManyValueOrFail(container, structuralFeature);\n\t\t\t\n\t\t\t//Schedule remove\n\t\t\tscheduleRemove(container, container, structuralFeature, value);\n\t\t\t\n\t\t\t//Perform remove\n\t\t\tcurrentListValue.remove(value);\n\t\t\t//Remove on opposite reference is performed automatically.\n\t\t} finally {\n\t\t\tDEModelLocker.deactivateWriter(this);\n\t\t}\n\t}", "public void clearFeatures() {\n localFeatureVector.clear();\n }", "@Override\n\tpublic void remove(Object o) {\n\t\t\n\t}", "@Override\r\n\tpublic boolean remove(Object o) {\n\t\treturn set.remove(o);\r\n\t}", "public void removeUsedFeature(final String name) {\n \t final List<Element> elementsToRemove = new LinkedList<Element>();\n for (final Element child : manifestElement.getChildren(ELEMENT_USES_FEATURE)) {\n if (name.equals(child.getAttributeValue(ATTRIBUTE_NAME))) {\n elementsToRemove.add(child);\n }\n }\n\n for (final Element element : elementsToRemove) {\n removeElementAndPrefix(element);\n }\n }", "public final void remove () {\r\n }", "public void removeActor(int index) { ActorSet.removeElementAt(index); }", "void remove(Order o);", "@RequestLine(\"DELETE /v1/accounts/{accountId}/features/flags/{feature}\")\n @Headers({\n \"Content-Type: application/json\",\n \"Accept: application/json\",\n })\n FeatureFlag removeFeatureFlagAccounts(@Param(\"accountId\") String accountId, @Param(\"feature\") String feature);", "public void remove() {\n\t}", "public void remove() {\n\t}", "@Override\n\tpublic void remove() { }", "public void remove() {\r\n super.remove();\r\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove()\r\n { Exceptions.unmodifiable(\"list\"); }", "public void remove() {\r\n return;\r\n }", "public void removeIt() { \n\t\t\tcollection.remove(currIndex);\n\t\t\tcurrIndex--;\n\t\t}", "public void supprimerCollection(){\r\n collection.clear();\r\n }", "public void remove(int index) {\n\t\tpoints.remove(index);\n\t}", "@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n//\t\t\t\tif (i == begin || removed)\n//\t\t\t\t\tthrow new IllegalStateException();\n//\t\t\t\telements.set(i-1, null);\n//\t\t\t\tremoved = true;\n\t\t\t}", "@Override\n public void remove() {\n }", "public void removeActor(Actor act) { ActorSet.removeElement(act); }", "public Collection<V> remove(Object obj) {\n Collection collection = (Collection) this.Pu.remove(obj);\n if (collection == null) {\n return null;\n }\n Collection<V> ry = AbstractMapBasedMultimap.this.ry();\n ry.addAll(collection);\n AbstractMapBasedMultimap.this.Ps = AbstractMapBasedMultimap.this.Ps - collection.size();\n collection.clear();\n return ry;\n }", "@Override\n public boolean remove(Object o) {\n if (elements.remove(o)) {\n ordered.remove(o);\n return true;\n } else {\n return false;\n }\n\n }", "@Override\n\t\tpublic boolean remove(Object o) {\n\t\t\treturn false;\n\t\t}", "@RequestLine(\"DELETE /v1/users/{userId}/features/flags/{feature}\")\n @Headers({\n \"Content-Type: application/json\",\n \"Accept: application/json\",\n })\n FeatureFlag removeFeatureFlagUsers(@Param(\"userId\") String userId, @Param(\"feature\") String feature);", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic boolean remove(Object o)\r\n\t{\n\t\tthrow new UnsupportedOperationException(\"Series collection doesn't support this operation.\");\r\n\t}", "public void removeAll(FeatureCollection featColl){\n if (debug) logger.info(\"collection removed\");\n fc.removeAll(featColl);\n fcLastEdits.clear();\n fcLastEdits.addAll(featColl);\n lastEditType = EDIT_REMOVE;\n fireTableDataChanged();\n }", "public boolean remove(Object o);", "public void untagAsRemoved() {\n\t levelOfRemoval --;\n\t}", "public void remove(){\n }", "public void remove() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}", "@Override\n public void remove() {\n }", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "public void undoAction() {\n classifier.removeFeature(operation);\n }", "public static void delete(int id) {\r\n\t\tString IdColumnName = \"feature_id\";\r\n\t\toperation.removeRow(\"FEATURE\", IdColumnName, id);\r\n\t}", "public T removeBest();", "public E remove();", "public E remove();", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\r\n \r\n throw new UnsupportedOperationException();\r\n }" ]
[ "0.7398", "0.731632", "0.71435475", "0.70953715", "0.7037921", "0.7037921", "0.7023593", "0.7023593", "0.69711584", "0.6967045", "0.68287754", "0.65112495", "0.6455475", "0.6347827", "0.6335915", "0.62892425", "0.6265479", "0.6222652", "0.62225175", "0.6208921", "0.6208921", "0.6208921", "0.6208921", "0.6208921", "0.61833256", "0.61695826", "0.6110667", "0.60930103", "0.60746247", "0.6049777", "0.60340697", "0.60067904", "0.59579915", "0.5941723", "0.5941723", "0.5941723", "0.58771", "0.5863996", "0.58334786", "0.5804695", "0.5793177", "0.5792794", "0.5792098", "0.5792098", "0.5792098", "0.5792098", "0.5792098", "0.57890254", "0.5782228", "0.5779859", "0.5779538", "0.5770666", "0.57654244", "0.5760147", "0.57513815", "0.5751035", "0.5746886", "0.57359976", "0.57359976", "0.5720642", "0.5718643", "0.5715907", "0.5715907", "0.5715907", "0.5715907", "0.5715907", "0.5715907", "0.5715907", "0.57128155", "0.5712247", "0.57098687", "0.570645", "0.5697506", "0.56932294", "0.5691105", "0.56899714", "0.5687865", "0.56873375", "0.5675694", "0.5665278", "0.5660033", "0.5660033", "0.5659964", "0.5656436", "0.5647926", "0.5646081", "0.56452185", "0.5637524", "0.5637306", "0.56228006", "0.56228006", "0.5618901", "0.5614084", "0.5613233", "0.56055856", "0.56055856", "0.5589506", "0.5589506", "0.5582682", "0.5579937" ]
0.6712704
11
Removes all the objects of type "feature" from the ordered collection of the current object.
void clearFeatures();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeFeature(int i);", "void removeFeature(int i);", "public void clearFeatures() {\n localFeatureVector.clear();\n }", "public void removeFeatures(Feature[] features) {\n //TODO: remove the features\n }", "public void removeFromfeatures (org.unitime.timetable.model.RoomFeature roomFeature) {\n \t\tif (null == getFeatures()) \n \t\t\tsetFeatures(new java.util.HashSet());\n \t\tgetFeatures().remove(roomFeature);\n \t}", "void clearTypedFeatures();", "Feature removeFeature(int index);", "public void removeFeature(Feature feature) {\n rows.removeElement(feature);\n }", "public void removeFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FEATURE$6, i);\r\n }\r\n }", "public void removeFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FEATURE$6, i);\r\n }\r\n }", "public void removeFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FEATURE$14, i);\r\n }\r\n }", "protected void removeFromIndex(SimpleFeature feature) {\n\t\tif (feature==null) return;\n\t\t\n\t\t// ID Index\n\t\tidIndex.remove( feature.getID() );\n\t\t\n\t\t// Type name index\n\t\tName type = feature.getType().getName();\n\t\tSet<SimpleFeature> prev = typeNameIndex.get(type);\n\t\tif ( prev.remove( feature ) ) {\n\t\t\tif (prev.size()>0) {\n\t\t\t\ttypeNameIndex.put(type,prev);\n\t\t\t} else {\n\t\t\t\ttypeNameIndex.remove(type);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Tile Index\n\t\tif (feature.getID().matches(\".*-[0-9]+-[0-9]+-[0-9]+\")) {\n\t\t\tOSMTile tile = new OSMTile(feature.getID());\n\t\t\tprev = tileIndex.get( tile );\n\t\t\tif ( prev.remove( feature ) ) {\n\t\t\t\tif (prev.size()>0) {\n\t\t\t\t\ttileIndex.put(tile, prev);\n\t\t\t\t} else {\n\t\t\t\t\ttileIndex.remove(type);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t// Whatever for features\n\t\t}\n\t}", "void deleteFeature(Integer id);", "@Override\r\n \t\tprotected Object removeListItem(EObject object, EStructuralFeature feature, int index) {\n \t\t\tEList<EObject> list = (EList<EObject>)object.eGet(feature);\r\n \t\t\tEObject item = list.get(index);\r\n \t\t\tOutputSet outputSet = catchEvent.getOutputSet();\r\n \t\t\tif (outputSet.getDataOutputRefs().contains(item))\r\n \t\t\t\toutputSet.getDataOutputRefs().remove(item);\r\n \t\t\t\r\n \t\t\t// remove Input or Output DataAssociations\r\n \t\t\tList<DataOutputAssociation> dataOutputAssociations = catchEvent.getDataOutputAssociation();\r\n \t\t\tList<DataOutputAssociation> removed = new ArrayList<DataOutputAssociation>();\r\n \t\t\tfor (DataOutputAssociation doa : dataOutputAssociations) {\r\n \t\t\t\tif (doa.getTargetRef().equals(item))\r\n \t\t\t\t\tremoved.add(doa);\r\n \t\t\t}\r\n \t\t\tdataOutputAssociations.removeAll(removed);\r\n \r\n \t\t\treturn super.removeListItem(object, feature, index);\r\n \t\t}", "boolean removeFeature(Feature feature);", "private void removeAllObjects()\n {\n removeObjects (getObjects(Actor.class));\n }", "@Override\n\tpublic void clear() {\n\t\tsuper.clear();\n\t\tidIndex = new HashMap<String, SimpleFeature>();\n\t\ttypeNameIndex = new HashMap<Name, Set<SimpleFeature>>();\n\t\ttileIndex = new HashMap<OSMTile, Set<SimpleFeature>>();\n\t}", "void removePlanFeature(int i);", "public void removeAll(FeatureCollection featColl){\n if (debug) logger.info(\"collection removed\");\n fc.removeAll(featColl);\n fcLastEdits.clear();\n fcLastEdits.addAll(featColl);\n lastEditType = EDIT_REMOVE;\n fireTableDataChanged();\n }", "boolean removeTypedFeature(StructuralFeature typedFeature);", "public void removeRedundancies()\n\t{\n\t\tfinal List<FeatureElement> newFeatureElements = new ArrayList<FeatureElement>(featureElements.size());\n\t\t\n\t\tfor (final FeatureElement element : featureElements)\n\t\t{\n\t\t\tboolean shouldAdd = true;\n\t\t\t\n\t\t\tif (element instanceof AbsoluteFeatureElement)\n\t\t\t{\n\t\t\t\tfinal AbsoluteFeatureElement abs = (AbsoluteFeatureElement) element;\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < newFeatureElements.size(); ++i)\n\t\t\t\t{\n\t\t\t\t\tfinal FeatureElement alreadyAdded = newFeatureElements.get(i);\n\t\t\t\t\t\n\t\t\t\t\tif (alreadyAdded instanceof AbsoluteFeatureElement)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal AbsoluteFeatureElement other = (AbsoluteFeatureElement) alreadyAdded;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (abs.position() == other.position())\t// same positions\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (abs.equals(other))\t// already have this one, no need to add\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tshouldAdd = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (abs.generalises(other))\t// have something more specific, so no need to add\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tshouldAdd = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (other.generalises(abs))\t// have something more general, so we should replace that\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tnewFeatureElements.set(i, abs);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// just already added by replacement, so no need to add again\n\t\t\t\t\t\t\t\tshouldAdd = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfinal RelativeFeatureElement rel = (RelativeFeatureElement) element;\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < newFeatureElements.size(); ++i)\n\t\t\t\t{\n\t\t\t\t\tfinal FeatureElement alreadyAdded = newFeatureElements.get(i);\n\t\t\t\t\t\n\t\t\t\t\tif (alreadyAdded instanceof RelativeFeatureElement)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal RelativeFeatureElement other = (RelativeFeatureElement) alreadyAdded;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (rel.walk().equals(other.walk()))\t// equal walks\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (rel.equals(other))\t// already have this one, no need to add\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tshouldAdd = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (rel.generalises(other))\t// have something more specific, so no need to add\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tshouldAdd = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (other.generalises(rel))\t// have something more general, so we should replace that\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tnewFeatureElements.set(i, rel);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// just already added by replacement, so no need to add again\n\t\t\t\t\t\t\t\tshouldAdd = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (shouldAdd)\n\t\t\t{\n\t\t\t\tnewFeatureElements.add(element);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfeatureElements = newFeatureElements;\n\t}", "@Override\n public synchronized Set<FeatureType> getFeatures() {\n return features = nonNullSet(features, FeatureType.class);\n }", "public void remove(Feature f){\n if (debug) logger.info(\"feature removed\");\n int row = fc.indexOf(f);\n fc.remove(f);\n fcLastEdits.clear();\n fcLastEdits.add(f);\n lastEditType = EDIT_REMOVE;\n fireTableRowsDeleted(row,row);\n }", "public void removeFeature(Feature f)\n throws ChangeVetoException, BioException;", "@Override\r\n \t\tprotected Object removeListItem(EObject object, EStructuralFeature feature, int index) {\n \t\t\tEList<EObject> list = (EList<EObject>)object.eGet(feature);\r\n \t\t\tEObject item = list.get(index);\r\n \t\t\tInputSet inputSet = throwEvent.getInputSet();\r\n \t\t\tif (inputSet.getDataInputRefs().contains(item))\r\n \t\t\t\tinputSet.getDataInputRefs().remove(item);\r\n \t\t\t\r\n \t\t\t// remove Input or Output DataAssociations\r\n \t\t\tList<DataInputAssociation> dataInputAssociations = throwEvent.getDataInputAssociation();\r\n \t\t\tList<DataInputAssociation> removed = new ArrayList<DataInputAssociation>();\r\n \t\t\tfor (DataInputAssociation dia : dataInputAssociations) {\r\n \t\t\t\tif (dia.getTargetRef().equals(item))\r\n \t\t\t\t\tremoved.add(dia);\r\n \t\t\t}\r\n \t\t\tdataInputAssociations.removeAll(removed);\r\n \r\n \t\t\treturn super.removeListItem(object, feature, index);\r\n \t\t}", "public void removeFeatures(Extent ex) {\n //TODO: remove the features\n }", "@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}", "Feature delete(Long featureId);", "public void removeUsedFeature(final String name) {\n \t final List<Element> elementsToRemove = new LinkedList<Element>();\n for (final Element child : manifestElement.getChildren(ELEMENT_USES_FEATURE)) {\n if (name.equals(child.getAttributeValue(ATTRIBUTE_NAME))) {\n elementsToRemove.add(child);\n }\n }\n\n for (final Element element : elementsToRemove) {\n removeElementAndPrefix(element);\n }\n }", "public static void deleteFeature(Feature feature, String allFeaturesFilePath, Project project) throws IOException {\n\t\tFileReader r = new FileReader(allFeaturesFilePath);\n\t\tCSVParser parser = new CSVParser(r);\n\t\tList<CSVRecord> records = parser.getRecords();\n\t\tr.close();\n\n\t\tList<Feature> features = new ArrayList<Feature>();\n\t\tint size = records.size();\n\t\tfor(int i = 1; i < size; i++){\n\t\t\tCSVRecord rec = records.get(i);\n\t\t\tString featureName = rec.get(0).trim();\n\t\t\tif (!featureName.equals(feature.getName())) {\n\t\t\t\tString functionName = rec.get(1).trim();\n\t\t\t\tString attr1Name = rec.get(2).trim();\n\t\t\t\tString attr1Type = rec.get(3).trim();\n\t\t\t\tString attr2Name = rec.get(4).trim();\n\t\t\t\tString attr2Type = rec.get(5).trim();\n\t\t\t\t\n\t\t\t\tString projectName = project.getName();\n\t\t\t\tFunction function = project.findFunctionByName(functionName);\n\t\t\t\tAttribute attribute1 = new Attribute(attr1Name, Attribute.Type.valueOf(attr1Type));\n\t\t\t\tAttribute attribute2 = new Attribute(attr2Name, Attribute.Type.valueOf(attr2Type));\n\t\t\t\tFeature f = new Feature(featureName, function, projectName, attribute1, attribute2);\n\t\t\t\tfeatures.add(f);\n\t\t\t}\n\t\t}\n\t\t// save all the features\n\t\tsaveAllFeatures(features, allFeaturesFilePath);\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic void onDeleteFeatures(ControllerEvent event) {\n\n\t\tList<String> ids = (List<String>) event.getParams().get(\"featureIds\");\n\t\tif (ids.size() > 0) {\n\t\t\t((AnderProbleem) object.getProbleem()).setGeom(null);\n\t\t}\n\t}", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "List<Feature> getFeatures();", "@Override\n public synchronized Set<FeatureType> getFeatureInstances() {\n return featureInstances = nonNullSet(featureInstances, FeatureType.class);\n }", "public void removeByObject()\r\n\t{\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic void onUnselectFeatures(ControllerEvent event) {\n\n\t\tMapViewer viewer = getViewer();\n\t\tMapContext context = viewer.getConfiguration().getContext();\n\n\t\tselectedFeatureId = null;\n\n\t\tfor (FeatureMapLayer layer : context.getFeatureLayers()) {\n\t\t\tlayer.setSelection(new ArrayList<String>(1));\n\t\t}\n\n\t\tList<String> ids = (List<String>) event.getParams().get(\"featureIds\");\n\t\tif (ids.size() > 0) {\n\t\t\tif (object.getProbleem() instanceof BordProbleem) {\n\t\t\t\t((BordProbleem) object.getProbleem()).setBord(null);\n\t\t\t}\n\n\t\t\tif (object.getProbleem() instanceof NetwerkAnderProbleem) {\n\t\t\t\tobject.setTraject(null);\n\t\t\t}\n\t\t}\n\t}", "public void supprimerCollection(){\r\n collection.clear();\r\n }", "public FeatureSet getFeatures() {\n\treturn features;\n }", "void remove(GeometricalObject object);", "public void remove(GeometricalObject object);", "public void removeAllInterpretedBy() {\r\n\t\tBase.removeAll(this.model, this.getResource(), INTERPRETEDBY);\r\n\t}", "@Override\n public void removeAll(){\n gameCollection.removeAllElements();\n }", "public void removeAllFightsystems()\r\n {\n\r\n }", "public void removeAll(Object o) {\r\n\t\t//so lange das Objekt entfernen bis es nicht mehr drin ist\r\n\t\twhile(contains(o)) {\r\n\t\t\tremove(o);\r\n\t\t}\r\n\t}", "public Collection<V> remove(Object obj) {\n Collection collection = (Collection) this.Pu.remove(obj);\n if (collection == null) {\n return null;\n }\n Collection<V> ry = AbstractMapBasedMultimap.this.ry();\n ry.addAll(collection);\n AbstractMapBasedMultimap.this.Ps = AbstractMapBasedMultimap.this.Ps - collection.size();\n collection.clear();\n return ry;\n }", "void removeAll();", "void removeAll();", "public void removeAllPartOfSet() {\r\n\t\tBase.removeAll(this.model, this.getResource(), PARTOFSET);\r\n\t}", "public static Instances removeFeatures(Instances input_data, double[] features, int nbrFea) {\n\n\t\tInstances new_data = new Instances(input_data);\n\n\t\tint num_del_fea = 0;\n\t\t//Remove features from new_data\n\t\tfor(int i=0; i< features.length; i++){\n\t\t\tif(features[i] == 0) {\n\t\t\t\tnew_data.deleteAttributeAt(i - num_del_fea);\n\t\t\t\tnum_del_fea++;\n\t\t\t}\n\t\t}\n\t\treturn new_data;\n\t}", "private void deleteFeature(final SimpleFeature feature ) {\n\n\n try {\n //Deletes only if the target is equal to the layer to clip\n if(this.layerToClip.equals(this.targetLayer)){\n FidFilter filter = FILTER_FACTORY.createFidFilter(feature.getID());\n FeatureStore<SimpleFeatureType, SimpleFeature> store = getTargetStore();\n store.removeFeatures(filter);\n }\n\n } catch (IOException e) {\n final String msg = Messages.ClipProcess_failed_deleting;\n LOGGER.severe(msg);\n throw (RuntimeException) new RuntimeException(msg).initCause( e );\n }\n\n }", "Collection<StructuralFeature> getTypedFeatures();", "@Nonnull\r\n public Set<Feature> getFeatures() {\r\n return features;\r\n }", "public static void reset()\n\t\t{\n\t\t\tfeatureSet = new THashMap();\n\t\t\tfeatureIds = new TObjectIntHashMap();\n\t\t\tnextID = 1;\t\t\t\n\t\t}", "@Action( ACTION_REMOVE_FEATURE )\r\n public String doRemoveFeature( HttpServletRequest request )\r\n {\r\n int nId = Integer.parseInt( request.getParameter( PARAMETER_ID_FEATURE ) );\r\n FeatureHome.remove( nId );\r\n addInfo( INFO_FEATURE_REMOVED, getLocale( ) );\r\n\r\n return redirectView( request, VIEW_MANAGE_FEATURES );\r\n }", "@Override\n\tpublic void removeAll() {\n\t\tfor (TestUnit testUnit : findAll()) {\n\t\t\tremove(testUnit);\n\t\t}\n\t}", "Object remove();", "public void removePlaces(){\n List<Place> copies = new ArrayList<>(places);\n for(Place p : copies){\n p.reset();\n }\n }", "public static void unionByAttributeValue(FeatureCollection featureCollection, String attributeName) throws Exception {\n FeatureSchema schema = featureCollection.getFeatureSchema();\n if (featureCollection.getFeatures().size() > 1 && featureCollection.getFeatures().get(0).getGeometry() != null) {\n featureCollection.getFeatures().get(0).getGeometry().getFactory();\n } else {\n Logger.error(I18N.get(\"ui.plugin.analysis.DissolvePlugIn.needs-two-features-or-more\"));\n // return null;\n }\n FeatureSchema newSchema;\n newSchema = schema;\n Map<Object, FeatureCollection> map = new HashMap<Object, FeatureCollection>();\n for (Feature feature : featureCollection.getFeatures()) {\n Object key = feature.getAttribute(attributeName);\n if (!map.containsKey(key)) {\n FeatureCollection fd = new FeatureDataset(featureCollection.getFeatureSchema());\n fd.add(feature);\n map.put(key, fd);\n } else {\n map.get(key).add(feature);\n }\n }\n featureCollection.removeAll(featureCollection.getFeatures());\n for (Iterator<Object> i = map.keySet().iterator(); i.hasNext();) {\n Object key = i.next();\n FeatureCollection fca = map.get(key);\n if (fca.size() > 0) {\n Feature feature = union(fca);\n feature.setAttribute(attributeName, key);\n Feature newFeature = new BasicFeature(newSchema);\n // Copy feature attributes in newFeature\n for (int j = 0, max = newSchema.getAttributeCount(); j < max; j++) {\n newFeature.setAttribute(j, feature.getAttribute(newSchema.getAttributeName(j)));\n }\n featureCollection.add(newFeature);\n }\n }\n // return featureCollection;\n }", "public void removeAllItem() {\n orderList.clear();\n }", "public void removeFromTable(Attribute object) {\n\t\tselectionModel.getSelectedSet().remove(object);\n\t\tIterator<Attribute> it = list.iterator();\n\t\twhile(it.hasNext()) {\n\t\t\tAttribute a = it.next();\n\t\t\tif (a.getId() == object.getId()){\n\t\t\t\tit.remove();\n\t\t\t}\n\t\t}\n\t\tdataProvider.flush();\n\t\tdataProvider.refresh();\n\t}", "abstract public void removeAll();", "void removeAll() throws ModelRuntimeException;", "public void removeAllGeneralEncapsulatedObject() {\r\n\t\tBase.removeAll(this.model, this.getResource(), GENERALENCAPSULATEDOBJECT);\r\n\t}", "public void removeAll(Object element);", "public void deselectAll() {\n\t\tselected.clear();\n\t}", "public void undoAction() {\n classifier.removeFeature(operation);\n }", "public Object remove();", "public void resetFeatureState()\r\n {\r\n myMetaDataHandler.reset();\r\n myTimeHandler.reset();\r\n myFeatureId = 0;\r\n myFeatureColor = Color.WHITE;\r\n }", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "void clearAssociations();", "public void clear() {\n this.layers.clear();\n list.clear();\n }", "void removeAutopadding() {\n unset();\n for (int counter = springs.size() - 1; counter >= 0; counter--) {\n Spring spring = springs.get(counter);\n if (spring instanceof AutoPreferredGapSpring) {\n if (((AutoPreferredGapSpring)spring).getUserCreated()) {\n ((AutoPreferredGapSpring)spring).reset();\n } else {\n springs.remove(counter);\n }\n } else if (spring instanceof Group) {\n ((Group)spring).removeAutopadding();\n }\n }\n }", "public FeatureCollection() {\n//\t\tif (featureTypes!=null) {\n//\t\t\tavailableFeatureTypes = featureTypes;\n//\t\t}\n\t}", "public void resetWorld() {\n \t\tmyForces.clear();\n \t\t\n \t\tfor (CollidableObject obj : myObjects) {\n \t\t\tobj.detach();\n \t\t}\n \t\tmyObjects.clear();\n \t\t\n \t\taddHalfspaces();\n \t}", "public void removeAllElements() {\n for (int i = 0; i < OLast; i++) O[i] = null;\n ON = OLast = 0;\n Gap = -1;\n }", "public void clear() {collection.clear();}", "@Override\r\n\tpublic void undo() {\n\t\tfor(IShape shape : tempList)\r\n\t\t\tshapeList.remove(shape);\r\n\t}", "Object removeFirst();", "void remove(Order o);", "@Override\n public boolean remove(Object o) {\n if (elements.remove(o)) {\n ordered.remove(o);\n return true;\n } else {\n return false;\n }\n\n }", "public T removeBest();", "public void clearGame() {\n\t\tselectedObjects.clear();\n\t}", "@DeleteMapping(\"ElementWebService/removeAll\")\n\tpublic void removeAll() {\n\t\telementService.removeAll();\n\t}", "public void remove () {}", "private List<MutateOperation> removeAll() {\n return removeDescendantsAndFilter(rootResourceName);\n }" ]
[ "0.6649653", "0.6649653", "0.6599913", "0.65696895", "0.64098644", "0.63631344", "0.6348624", "0.62737465", "0.62360394", "0.62360394", "0.6155977", "0.61159986", "0.5978275", "0.5976301", "0.59442294", "0.59068984", "0.5886547", "0.5875171", "0.5855503", "0.5800368", "0.58001727", "0.5772098", "0.57284087", "0.5715771", "0.5691795", "0.5666475", "0.5634219", "0.5614202", "0.55926603", "0.5591298", "0.5578905", "0.5578054", "0.5578054", "0.5578054", "0.5578054", "0.5578054", "0.5578054", "0.5578054", "0.5578054", "0.5578054", "0.5578054", "0.5578054", "0.5578054", "0.55659795", "0.5560033", "0.55542827", "0.5544681", "0.55435765", "0.55257815", "0.5525091", "0.55190504", "0.54898965", "0.548551", "0.5468721", "0.5465984", "0.54597616", "0.5456045", "0.5456045", "0.5444934", "0.5402895", "0.5390471", "0.5380459", "0.5379085", "0.5354589", "0.53273183", "0.5311383", "0.5301899", "0.52900803", "0.52687776", "0.5263629", "0.5261431", "0.52542704", "0.5246645", "0.52456397", "0.52370566", "0.5234243", "0.52312744", "0.5223264", "0.52214754", "0.520476", "0.520476", "0.520476", "0.520476", "0.520476", "0.52012503", "0.5195255", "0.51853573", "0.51852876", "0.51851255", "0.51781976", "0.51702404", "0.5151681", "0.515017", "0.51365393", "0.5133363", "0.5130944", "0.512759", "0.51249695", "0.5124284", "0.5119106" ]
0.67615634
0
Gets all the objects of type "feature" previously added to the ordered collection of the current object. Additions and removals of elements to and from the returned list do not change the state of current object (i.e. the returned list is a copy of the internal one of the current object). However, if an element contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the returned lists share references to the same objects).
List<Feature> getFeatures();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List getFeature() \n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{ \t\n \t\tList list = instance.getFeature(this.refMofId());\n \t\tlist.addAll(super_getFeature());\n \t\t\n \t\treturn list; \t\t\n \t}\n \n \treturn super_getFeature();\n }", "public java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList()\r\n {\r\n final class FeatureList extends java.util.AbstractList<org.landxml.schema.landXML11.FeatureDocument.Feature>\r\n {\r\n public org.landxml.schema.landXML11.FeatureDocument.Feature get(int i)\r\n { return SurfaceImpl.this.getFeatureArray(i); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature set(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = SurfaceImpl.this.getFeatureArray(i);\r\n SurfaceImpl.this.setFeatureArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n { SurfaceImpl.this.insertNewFeature(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature remove(int i)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = SurfaceImpl.this.getFeatureArray(i);\r\n SurfaceImpl.this.removeFeature(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return SurfaceImpl.this.sizeOfFeatureArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new FeatureList();\r\n }\r\n }", "public java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList()\r\n {\r\n final class FeatureList extends java.util.AbstractList<org.landxml.schema.landXML11.FeatureDocument.Feature>\r\n {\r\n public org.landxml.schema.landXML11.FeatureDocument.Feature get(int i)\r\n { return IntersectionImpl.this.getFeatureArray(i); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature set(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = IntersectionImpl.this.getFeatureArray(i);\r\n IntersectionImpl.this.setFeatureArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n { IntersectionImpl.this.insertNewFeature(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature remove(int i)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = IntersectionImpl.this.getFeatureArray(i);\r\n IntersectionImpl.this.removeFeature(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return IntersectionImpl.this.sizeOfFeatureArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new FeatureList();\r\n }\r\n }", "@Override\n public synchronized Set<FeatureType> getFeatures() {\n return features = nonNullSet(features, FeatureType.class);\n }", "public java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList()\r\n {\r\n final class FeatureList extends java.util.AbstractList<org.landxml.schema.landXML11.FeatureDocument.Feature>\r\n {\r\n public org.landxml.schema.landXML11.FeatureDocument.Feature get(int i)\r\n { return GPSSetupImpl.this.getFeatureArray(i); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature set(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = GPSSetupImpl.this.getFeatureArray(i);\r\n GPSSetupImpl.this.setFeatureArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n { GPSSetupImpl.this.insertNewFeature(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature remove(int i)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = GPSSetupImpl.this.getFeatureArray(i);\r\n GPSSetupImpl.this.removeFeature(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return GPSSetupImpl.this.sizeOfFeatureArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new FeatureList();\r\n }\r\n }", "public FeatureSet getFeatures() {\n\treturn features;\n }", "java.util.List<iet.distributed.telemetry.Feature> \n getFeatureList();", "java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList();", "java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList();", "public Iterator<SimpleFeature> getFeatures() {\n \treturn this.iterator();\n }", "@Override\n public synchronized Set<FeatureType> getFeatureInstances() {\n return featureInstances = nonNullSet(featureInstances, FeatureType.class);\n }", "List<IFeature> getFeatureList();", "@Nonnull\r\n public Set<Feature> getFeatures() {\r\n return features;\r\n }", "public final native GEFeatureContainer getFeatures() /*-{\r\n\t\treturn this.getFeatures();\r\n\t}-*/;", "public org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(FEATURE$6, targetList);\r\n org.landxml.schema.landXML11.FeatureDocument.Feature[] result = new org.landxml.schema.landXML11.FeatureDocument.Feature[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(FEATURE$6, targetList);\r\n org.landxml.schema.landXML11.FeatureDocument.Feature[] result = new org.landxml.schema.landXML11.FeatureDocument.Feature[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(FEATURE$14, targetList);\r\n org.landxml.schema.landXML11.FeatureDocument.Feature[] result = new org.landxml.schema.landXML11.FeatureDocument.Feature[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "Collection<Feature> getReference();", "public List<FeatureDataBean> getAllFeatures() throws GenericDatabaseException {\n List<String> ids = new ArrayList<>();\n ids.add(UMFeatureDao.PARENT);\n \n Map<String,Object> equals=new HashMap<>();\n equals.put(UMFeatureDao.IS_ACTIVE, Boolean.TRUE);\n \n Map<QueryOperators, Object> criteria = new HashMap<>();\n criteria.put(QueryOperators.IS_NULL, ids);\n criteria.put(QueryOperators.EQUAL, equals);\n \n return (convertFeatureDataBeanToFeatureModel(featureService.retrieveFeatures(null, criteria, null)));\n }", "protected Vector getFeatureSet()\n {\n // get the superclass' vector\n Vector v = super.getFeatureSet();\n\n // add the features\n\n // return the vector\n return v;\n }", "public Object getUnderlyingObject() {\n return feature;\n }", "public FeatureElements getFeatureAccess() {\n\t\treturn pFeature;\n\t}", "Collection<StructuralFeature> getTypedFeatures();", "public List<String> getFeatures() {\n return features;\n }", "public Feature[] getFeatures() {\n Feature[] features = new Feature[rows.size()];\n for(int i=0;i<features.length;i++){\n features[i] = (Feature)rows.elementAt(i);\n }\n return features;\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$6);\r\n return target;\r\n }\r\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$6);\r\n return target;\r\n }\r\n }", "java.util.List<java.lang.String> getFeaturesList();", "public FeatureCollection getLastEditedFeatures(){\n return fcLastEdits;\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$14);\r\n return target;\r\n }\r\n }", "public Set<String> getFeatures();", "public Iterator<Feature> featureIterator(){\n\t\treturn indexByFeature.keySet().iterator();\n\t}", "public Set<ObjRef> getAddedRefs() {\n return Sets.newHashSet(addedObjRefToLineageRefs.keySet());\n }", "java.util.List<? extends iet.distributed.telemetry.FeatureOrBuilder> \n getFeatureOrBuilderList();", "public void addFeatures(@Nonnull Collection<Feature> f) {\r\n features.addAll(f);\r\n }", "public abstract List<QualifiedName> getAffectedFeatureTypes();", "public void addFeatures(IFeature feature);", "List<String> getFeatures();", "java.util.List<org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature> getPlanFeatureList();", "public vis.smart.webservice.ProteinFeaturesFeature[] getFeature() {\n return feature;\n }", "public List<OnlineObject> getNewObjects() {\n\t\tsynchronized (this.onlineObjects) {\n\t\t\treturn new ArrayList<OnlineObject>(this.recentlyAddedObjects);\n\t\t}\n\t}", "public WebServiceFeature[] getFeatures() {\n\t\treturn null;\n\t}", "public FeatureCollection<SimpleFeatureType,SimpleFeature> getCollection() {\n return (SimpleFeatureCollection) collection;\n }", "public List<? extends IFlexoOntologyFeatureAssociation<TA>> getStructuralFeatureAssociations();", "public List getTheObjects() {\r\n if (theObjects == null) {\r\n setTheObjects(new Vector());\r\n }\r\n return theObjects;\r\n }", "@Override\n public FeatureContainer getFeatureContainer() {\n return featureContainer;\n }", "public AbstractMFeature2 getFeature() {\n return feature;\n }", "public void removeRedundancies()\n\t{\n\t\tfinal List<FeatureElement> newFeatureElements = new ArrayList<FeatureElement>(featureElements.size());\n\t\t\n\t\tfor (final FeatureElement element : featureElements)\n\t\t{\n\t\t\tboolean shouldAdd = true;\n\t\t\t\n\t\t\tif (element instanceof AbsoluteFeatureElement)\n\t\t\t{\n\t\t\t\tfinal AbsoluteFeatureElement abs = (AbsoluteFeatureElement) element;\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < newFeatureElements.size(); ++i)\n\t\t\t\t{\n\t\t\t\t\tfinal FeatureElement alreadyAdded = newFeatureElements.get(i);\n\t\t\t\t\t\n\t\t\t\t\tif (alreadyAdded instanceof AbsoluteFeatureElement)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal AbsoluteFeatureElement other = (AbsoluteFeatureElement) alreadyAdded;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (abs.position() == other.position())\t// same positions\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (abs.equals(other))\t// already have this one, no need to add\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tshouldAdd = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (abs.generalises(other))\t// have something more specific, so no need to add\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tshouldAdd = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (other.generalises(abs))\t// have something more general, so we should replace that\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tnewFeatureElements.set(i, abs);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// just already added by replacement, so no need to add again\n\t\t\t\t\t\t\t\tshouldAdd = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfinal RelativeFeatureElement rel = (RelativeFeatureElement) element;\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < newFeatureElements.size(); ++i)\n\t\t\t\t{\n\t\t\t\t\tfinal FeatureElement alreadyAdded = newFeatureElements.get(i);\n\t\t\t\t\t\n\t\t\t\t\tif (alreadyAdded instanceof RelativeFeatureElement)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal RelativeFeatureElement other = (RelativeFeatureElement) alreadyAdded;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (rel.walk().equals(other.walk()))\t// equal walks\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (rel.equals(other))\t// already have this one, no need to add\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tshouldAdd = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (rel.generalises(other))\t// have something more specific, so no need to add\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tshouldAdd = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (other.generalises(rel))\t// have something more general, so we should replace that\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tnewFeatureElements.set(i, rel);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// just already added by replacement, so no need to add again\n\t\t\t\t\t\t\t\tshouldAdd = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (shouldAdd)\n\t\t\t{\n\t\t\t\tnewFeatureElements.add(element);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfeatureElements = newFeatureElements;\n\t}", "public FeatureCursor queryFeatures() {\n return featureDao.queryIn(queryIdsSQL());\n }", "private ArrayList<Object> getOrderedTestCollection() {\n\n if (cachedLabTest != null) {\n return cachedLabTest;\n }\n //loads cachedLabTest\n loadCachedLabTestCollection();\n\n String mapFlag = propertyUtil.getSRTFilterProperty(NEDSSConstants.LABTEST_PROGAREA_MAPPING);\n if(mapFlag != null && mapFlag.equalsIgnoreCase(NEDSSConstants.YES))\n {\n\n cachedProgAreaFacilityList = new HashMap<Object,Object>();\n cachedConditionCdFacilityList = new HashMap<Object,Object>();\n\n SRTOrderedTestDAOImpl dao = new SRTOrderedTestDAOImpl();\n\n String labId = null;\n String programArea = null;\n String conditionCd = null;\n Collection<Object> ltMap = (ArrayList<Object> ) dao.getLabTestProgAreaMapping();\n\n if (ltMap != null) {\n Iterator<Object> it = ltMap.iterator();\n int size = ltMap.size();\n SRTLabTestDT labDt = null;\n while (it.hasNext()) {\n\n TestResultTestFilterDT testResults = (TestResultTestFilterDT) it.next();\n labDt = convertToSRTLabTestDT(testResults);\n labId = testResults.getLaboratoryId();\n programArea = testResults.getProgAreaCd();\n conditionCd = testResults.getConditionCd();\n\n if (programArea != null && labId != null) {\n addToCachedProgAreaList(programArea, labId, labDt);\n }\n if (conditionCd != null && labId != null) {\n addToCachedConditionCdList(conditionCd, labId, labDt);\n }\n }\n }\n }\n\n return cachedLabTest;\n }", "public MyRectangle[] getFeature() {\n return rectangles;\n }", "public DasFeature[] getAllFeatures() {\n Vector feats = new Vector();\n while (iXml.indexOf(\"<FEATURE\", lastFeatureEndPosition + 9) != -1) {\n String feature = iXml.substring(iXml.indexOf(\"<FEATURE\", lastFeatureEndPosition + 9), iXml.indexOf(\"</FEATURE>\", lastFeatureEndPosition + 9) + 10);\n lastFeatureEndPosition = iXml.indexOf(\"</FEATURE>\", lastFeatureEndPosition + 9);\n if (feature.indexOf(\"<NOTE>No features found for the segment</NOTE>\") < 0) {\n DasFeature f = new DasFeature(feature);\n feats.add(f);\n }\n }\n DasFeature[] features = new DasFeature[feats.size()];\n feats.toArray(features);\n return features;\n }", "void addFeatures(Features features);", "public interface FeatureHolder extends Changeable {\n /**\n * Signals that features have been added or removed directly within this\n * FeatureHolder.\n */\n public static final ChangeType FEATURES = new ChangeType(\n \"Features have been added or removed\",\n \"org.biojava.bio.seq.FeatureHolder\",\n \"FEATURES\"\n );\n \n /**\n * Signals that the schema of this FeatureHolder has changed.\n *\n * @since 1.3\n */\n public static final ChangeType SCHEMA = new ChangeType(\n \"The schema has changed\",\n \"org.biojava.bio.seq.FeatureHolder\",\n \"SCHEMA\"\n );\n \n /**\n * Count how many features are contained.\n *\n * @return a positive integer or zero, equal to the number of features\n * contained\n */\n int countFeatures();\n \n /**\n * Iterate over the features in no well defined order.\n *\n * @return an Iterator\n */\n Iterator features();\n \n /**\n * Return a new FeatureHolder that contains all of the children of this one\n * that passed the filter fc.\n *\n * This method is scheduled for deprecation. Use the 1-arg filter\n * instead.\n *\n * @param fc the FeatureFilter to apply\n * @param recurse true if all features-of-features should be scanned, and a\n * single flat collection of features returned, or false if\n * just immediate children should be filtered.\n */\n FeatureHolder filter(FeatureFilter fc, boolean recurse);\n \n /**\n * Query this set of features using a supplied <code>FeatureFilter</code>.\n *\n * @param filter the <code>FeatureFilter</code> to apply.\n * @return all features in this container which match <code>filter</code>.\n */\n \n FeatureHolder filter(FeatureFilter filter);\n \n /**\n * Create a new Feature, and add it to this FeatureHolder. This\n * method will generally only work on Sequences, and on some\n * Features which have been attached to Sequences.\n *\n * @throws BioException if something went wrong during creating the feature\n * @throws ChangeVetoException if this FeatureHolder does not support\n * creation of new features, or if the change was vetoed \n */\n public Feature createFeature(Feature.Template ft)\n throws BioException, ChangeVetoException;\n \n /**\n * Remove a feature from this FeatureHolder.\n *\n * @throws ChangeVetoException if this FeatureHolder does not support\n * feature removal or if the change was vetoed\n * @throws BioException if there was an error removing the feature\n */\n public void removeFeature(Feature f)\n throws ChangeVetoException, BioException;\n \n /**\n * Check if the feature is present in this holder.\n *\n * @since 1.2\n * @param f the Feature to check\n * @return true if f is in this set\n */\n public boolean containsFeature(Feature f);\n \n /**\n * Return a schema-filter for this <code>FeatureHolder</code>. This is a filter\n * which all <code>Feature</code>s <em>immediately</em> contained by this <code>FeatureHolder</code>\n * will match. It need not directly match their child features, but it can (and should!) provide\n * information about them using <code>FeatureFilter.OnlyChildren</code> filters. In cases where there\n * is no feature hierarchy, this can be indicated by including <code>FeatureFilter.leaf</code> in\n * the schema filter.\n *\n * <p>\n * For the truly non-informative case, it is possible to return <code>FeatureFilter.all</code>. However,\n * it is almost always possible to provide slightly more information that this. For example, <code>Sequence</code>\n * objects should, at a minimum, return <code>FeatureFilter.top_level</code>. <code>Feature</code> objects\n * should, as a minimum, return <code>FeatureFilter.ByParent(new FeatureFilter.ByFeature(this))</code>.\n * </p>\n *\n * @since 1.3\n * @return the schema filter\n */\n \n public FeatureFilter getSchema();\n \n public static final FeatureHolder EMPTY_FEATURE_HOLDER =\n new EmptyFeatureHolder();\n \n final class EmptyFeatureHolder\n extends Unchangeable\n implements FeatureHolder \n {\n public int countFeatures() {\n return 0;\n }\n \n public Iterator features() {\n return Collections.EMPTY_SET.iterator();\n }\n \n public FeatureHolder filter(FeatureFilter fc, boolean recurse) {\n return this;\n }\n \n public FeatureHolder filter(FeatureFilter fc) {\n return this;\n }\n \n public Feature createFeature(Feature.Template f) {\n throw new UnsupportedOperationException();\n }\n \n public void removeFeature(Feature f) {\n throw new UnsupportedOperationException();\n }\n \n public boolean containsFeature(Feature f) {\n return false;\n }\n \n public FeatureFilter getSchema() {\n return FeatureFilter.none;\n }\n }\n }", "public ArrayList<EplusObject> getObjects() {\n\t\treturn objects;\n\t}", "@SuppressWarnings(\"rawtypes\")\n\tfinal public List<Class<? extends Feature>> getFeatureClasses(String name) {\n\t\treturn this.featureClasses.get(name);\n\t}", "public Collection<GObject> getObjects();", "void addFeature(Feature feature);", "org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray();", "org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray();", "public ArrayList<Feature> getAlternativeFeatures(){\r\n\t\tArrayList<Feature> res = new ArrayList<Feature>();\r\n\t\t//The first feature group contains variant fatures\r\n\t\tFeatureGroup featureGroup = null;\r\n\t\tfor(int i = 1; i < this.getAlternativeFeatureGroup().size(); i++ ){\r\n\t\t\tfeatureGroup = this.getAlternativeFeatureGroup().get(i);\r\n\t\t\tfor(int j = 0; j < featureGroup.getFeatures().size(); j++){\r\n\t\t\t\tres.add(featureGroup.getFeatures().get(j));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn res;\r\n\t\t\r\n\t}", "public Feature copy() {\n\t\tFeature ret = new AbbeelFeature();\n\t\treturn ret;\n\t}", "private Object getFeature (EObject o, String feature) {\n\n if(o == null){\n System.out.println(\"Null object given\");\n }\n\n return o.eGet(o.eClass().getEStructuralFeature(feature));\n }", "public FeatureDependencyElements getFeatureDependencyAccess() {\r\n\t\treturn pFeatureDependency;\r\n\t}", "final List<Feature<T, ?>> getFeatures(FunctionDescriptor descriptor, @SuppressWarnings(\"rawtypes\") Class<? extends Feature> featureClass, FunctionDescriptor topLevelDescriptor) {\n\t\tif (featureClass==null)\n\t\t\tthrow new FeatureSyntaxException(\"No class provided for\", descriptor, topLevelDescriptor);\n\t\t\n\t\tList<Feature<T,?>> features = new ArrayList<Feature<T,?>>();\n\t\tint i = 0;\n\t\tList<List<Object>> argumentLists = new ArrayList<List<Object>>();\n\t\tList<Object> initialArguments = new ArrayList<Object>();\n\t\targumentLists.add(initialArguments);\n\t\t\n\t\tfor (FunctionDescriptor argumentDescriptor : descriptor.getArguments()) {\n\t\t\tList<List<Object>> newArgumentLists = new ArrayList<List<Object>>();\n\t\t\tfor (List<Object> arguments : argumentLists) {\n\t\t\t\tif (!argumentDescriptor.isFunction()) {\n\t\t\t\t\tObject literal = argumentDescriptor.getObject();\n\t\t\t\t\tObject convertedObject = literal;\n\t\t\t\t\tif (literal instanceof String) {\n\t\t\t\t\t\tStringLiteralFeature<T> stringLiteralFeature = new StringLiteralFeature<T>((String) literal);\n\t\t\t\t\t\tconvertedObject = stringLiteralFeature;\n\t\t\t\t\t} else if (literal instanceof Boolean) {\n\t\t\t\t\t\tBooleanLiteralFeature<T> booleanLiteralFeature = new BooleanLiteralFeature<T>((Boolean) literal);\n\t\t\t\t\t\tconvertedObject = booleanLiteralFeature;\n\t\t\t\t\t} else if (literal instanceof Double) {\n\t\t\t\t\t\tDoubleLiteralFeature<T> doubleLiteralFeature = new DoubleLiteralFeature<T>((Double) literal);\n\t\t\t\t\t\tconvertedObject = doubleLiteralFeature;\n\t\t\t\t\t} else if (literal instanceof Integer) {\n\t\t\t\t\t\tIntegerLiteralFeature<T> integerLiteralFeature = new IntegerLiteralFeature<T>((Integer) literal);\n\t\t\t\t\t\tconvertedObject = integerLiteralFeature;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// do nothing - this was some sort of other object added by getModifiedDescriptors that should\n\t\t\t\t\t\t// be handled as is.\n\t\t\t\t\t}\n\t\t\t\t\targuments.add(convertedObject);\n\t\t\t\t\tnewArgumentLists.add(arguments);\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tList<Feature<T,?>> featureArguments = this.parseInternal(argumentDescriptor, topLevelDescriptor);\n\t\t\t\t\t// a single argument descriptor could produce multiple arguments\n\t\t\t\t\t// e.g. when a function with an array argument is mapped onto multiple function calls\n\t\t\t\t\tfor (Feature<T,?> featureArgument : featureArguments) {\n\t\t\t\t\t\tList<Object> newArguments = new ArrayList<Object>(arguments);\n\t\t\t\t\t\tnewArguments.add(featureArgument);\n\t\t\t\t\t\tnewArgumentLists.add(newArguments);\n\t\t\t\t\t}\n\t\t\t\t} // function or object?\n\n\t\t\t} // next argument list (under construction from original arguments)\n\t\t\targumentLists = newArgumentLists;\n\t\t} // next argument\n\t\t\n\t\tfor (List<Object> originalArgumentList : argumentLists) {\n\t\t\t// add the argument types (i.e. classes)\n\t\t\t// and convert arrays to multiple constructor calls\n\t\t\tList<Object[]> argumentsList = new ArrayList<Object[]>();\n\t\t\targumentsList.add(new Object[originalArgumentList.size()]);\n\t\t\t\n\t\t\tClass<?>[] argumentTypes = new Class<?>[originalArgumentList.size()];\n\t\t\tList<Object[]> newArgumentsList = new ArrayList<Object[]>();\n\t\t\tfor (i=0;i<originalArgumentList.size();i++) {\n\t\t\t\tObject arg = originalArgumentList.get(i);\n\t\t\t\t\n\t\t\t\tif (arg.getClass().isArray()) {\n\t\t\t\t\t// arrays represent multiple constructor calls\n\t\t\t\t\tObject[] argArray = (Object[]) arg;\n\t\t\t\t\tfor (Object oneArg : argArray) {\n\t\t\t\t\t\tfor (Object[] arguments : argumentsList) {\n\t\t\t\t\t\t\tObject[] newArguments = arguments.clone();\n\t\t\t\t\t\t\tnewArguments[i] = oneArg;\n\t\t\t\t\t\t\tnewArgumentsList.add(newArguments);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\targumentTypes[i] = arg.getClass().getComponentType();\n\t\t\t\t} else {\n\t\t\t\t\tfor (Object[] myArguments : argumentsList) {\n\t\t\t\t\t\tnewArgumentsList.add(myArguments);\n\t\t\t\t\t\tmyArguments[i] = arg;\n\t\t\t\t\t}\n\t\t\t\t\targumentTypes[i] = arg.getClass();\n\t\t\t\t}\n\t\t\t\targumentsList = newArgumentsList;\n\t\t\t\tnewArgumentsList = new ArrayList<Object[]>();\n\t\t\t} // next argument\n\t\t\t\n\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\tConstructor<? extends Feature> constructor = null;\n\t\t\tMONITOR.startTask(\"findContructor\");\n\t\t\ttry {\n\t\t\t\tconstructor = ConstructorUtils.getMatchingAccessibleConstructor(featureClass, argumentTypes);\n\t\t\t\t\t\t\t\t\n\t\t\t\tif (constructor==null) {\n\t\t\t\t\tConstructor<?>[] constructors = featureClass.getConstructors();\n\t\t\t\t\t\n\t\t\t\t\t// check if there's a variable argument constructor\n\t\t\t\t\tfor (Constructor<?> oneConstructor : constructors) {\n\t\t\t\t\t\tClass<?>[] parameterTypes = oneConstructor.getParameterTypes();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (parameterTypes.length>=1 && argumentsList.size()==1 && argumentsList.get(0).length>=parameterTypes.length) {\n\t\t\t\t\t\t\tObject[] arguments = argumentsList.get(0);\n\t\t\t\t\t\t\tClass<?> parameterType = parameterTypes[parameterTypes.length-1];\n\t\t\t\t\t\t\tif (parameterType.isArray()) {\n\t\t\t\t\t\t\t\t// assume it's a variable-argument constructor\n\t\t\t\t\t\t\t\t// build the argument for this constructor\n\t\t\t\t\t\t\t\t// find a common type for all of the arguments.\n\t\t\t\t\t\t\t\tObject argument = arguments[parameterTypes.length-1];\n\t\t\t\t\t\t\t\tClass<?> clazz = null;\n\t\t\t\t\t\t\t\tif (argument instanceof StringFeature)\n\t\t\t\t\t\t\t\t\tclazz = StringFeature.class;\n\t\t\t\t\t\t\t\telse if (argument instanceof BooleanFeature)\n\t\t\t\t\t\t\t\t\tclazz = BooleanFeature.class;\n\t\t\t\t\t\t\t\telse if (argument instanceof DoubleFeature)\n\t\t\t\t\t\t\t\t\tclazz = DoubleFeature.class;\n\t\t\t\t\t\t\t\telse if (argument instanceof IntegerFeature)\n\t\t\t\t\t\t\t\t\tclazz = IntegerFeature.class;\n\t\t\t\t\t\t\t\telse if (argument instanceof StringCollectionFeature)\n\t\t\t\t\t\t\t\t\tclazz = StringFeature.class;\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t// no good, can't make arrays of this type\n\t\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\t\t\n\t\t\t\t\t\t\t\tObject[] argumentArray = (Object[]) Array.newInstance(clazz, (arguments.length-parameterTypes.length)+1);\n\t\t\t\t\t\t\t\tint j = 0;\n\t\t\t\t\t\t\t\tfor (int k=parameterTypes.length-1; k<arguments.length; k++) {\n\t\t\t\t\t\t\t\t\tObject oneArgument = arguments[k];\n\t\t\t\t\t\t\t\t\tif (oneArgument instanceof StringCollectionFeature) {\n\t\t\t\t\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\t\t\t\t\tStringCollectionFeature<T> stringCollectionFeature = (StringCollectionFeature<T>) oneArgument;\n\t\t\t\t\t\t\t\t\t\tStringCollectionFeatureProxy<T> proxy = new StringCollectionFeatureProxy<T>(stringCollectionFeature);\n\t\t\t\t\t\t\t\t\t\toneArgument = proxy;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (!clazz.isAssignableFrom(oneArgument.getClass())) {\n\t\t\t\t\t\t\t\t\t\tthrow new FeatureSyntaxException(\"Mismatched array types: \" + clazz.getSimpleName() + \", \" + oneArgument.getClass().getSimpleName(), descriptor, topLevelDescriptor);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\targumentArray[j++] = oneArgument;\n\t\t\t\t\t\t\t\t} // next argument\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tClass<?>[] argumentTypesWithArray = new Class<?>[parameterTypes.length];\n\t\t\t\t\t\t\t\tfor (int k=0;k<parameterTypes.length-1;k++) {\n\t\t\t\t\t\t\t\t\tObject oneArgument = arguments[k];\n\t\t\t\t\t\t\t\t\targumentTypesWithArray[k] = oneArgument.getClass();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\targumentTypesWithArray[argumentTypesWithArray.length-1] = argumentArray.getClass();\n\t\t\t\t\t\t\t\tconstructor = ConstructorUtils.getMatchingAccessibleConstructor(featureClass, argumentTypesWithArray);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (constructor!=null) {\n\t\t\t\t\t\t\t\t\targumentsList = new ArrayList<Object[]>();\n\t\t\t\t\t\t\t\t\tObject[] argumentsWithArray = new Object[parameterTypes.length];\n \t\t\t\t\t\t\t\t\tfor (int k=0;k<parameterTypes.length-1;k++) {\n\t\t\t\t\t\t\t\t\t\tObject oneArgument = arguments[k];\n\t\t\t\t\t\t\t\t\t\targumentsWithArray[k] = oneArgument;\n\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\targumentsWithArray[parameterTypes.length-1] = argumentArray;\n\t\t\t\t\t\t\t\t\targumentsList.add(argumentsWithArray);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} // constructor takes an array\n\t\t\t\t\t\t} // exactly one parameter for constructor\n\t\t\t\t\t} // next constructor\n\t\t\t\t\t\n\t\t\t\t\tif (constructor==null) {\n\t\t\t\t\t\t// See if various conversions allow us to find a constructor\n\t\t\t\t\t\t// Integer to Double\n\t\t\t\t\t\t// StringCollectionFeature to StringFeature\n\t\t\t\t\t\tfor (Constructor<?> oneConstructor : constructors) {\n\t\t\t\t\t\t\tClass<?>[] parameterTypes = oneConstructor.getParameterTypes();\n\t\t\t\t\t\t\tboolean isMatchingConstructor = false;\n\t\t\t\t\t\t\tList<Integer> intParametersToConvert = new ArrayList<Integer>();\n\t\t\t\t\t\t\tList<Integer> stringCollectionParametersToConvert = new ArrayList<Integer>();\n\t\t\t\t\t\t\tList<Integer> customParametersToConvert = new ArrayList<Integer>();\n\t\t\t\t\t\t\tif (parameterTypes.length==argumentTypes.length) {\n\t\t\t\t\t\t\t\tint j=0;\n\t\t\t\t\t\t\t\tisMatchingConstructor = true;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor (Class<?> parameterType : parameterTypes) {\n\t\t\t\t\t\t\t\t\tif (parameterType.isAssignableFrom(argumentTypes[j])&& !StringCollectionFeature.class.isAssignableFrom(argumentTypes[j])) {\n\t\t\t\t\t\t\t\t\t\t// nothing to do here\n\t\t\t\t\t\t\t\t\t} else if (parameterType.equals(DoubleFeature.class) && IntegerFeature.class.isAssignableFrom(argumentTypes[j])) {\n\t\t\t\t\t\t\t\t\t\tintParametersToConvert.add(j);\n\t\t\t\t\t\t\t\t\t} else if ((parameterType.equals(StringFeature.class)||parameterType.equals(Feature.class)) && StringCollectionFeature.class.isAssignableFrom(argumentTypes[j])) {\n\t\t\t\t\t\t\t\t\t\tstringCollectionParametersToConvert.add(j);\n\t\t\t\t\t\t\t\t\t} else if (this.canConvert(parameterType, argumentTypes[j])) {\n\t\t\t\t\t\t\t\t\t\tcustomParametersToConvert.add(j);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tisMatchingConstructor = false;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tj++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (isMatchingConstructor) {\n\t\t\t\t\t\t\t\t@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\t\t\t\t\t\t\t\tConstructor<? extends Feature> matchingConstructor = (Constructor<? extends Feature>) oneConstructor;\n\t\t\t\t\t\t\t\tconstructor = matchingConstructor;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor (Object[] myArguments : argumentsList) {\n\t\t\t\t\t\t\t\t\tfor (int indexToConvert : intParametersToConvert) {\n\t\t\t\t\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\t\t\t\t\tIntegerFeature<T> integerFeature = (IntegerFeature<T>) myArguments[indexToConvert];\n\t\t\t\t\t\t\t\t\t\tIntegerToDoubleFeature<T> intToDoubleFeature = new IntegerToDoubleFeature<T>(integerFeature);\n\t\t\t\t\t\t\t\t\t\tmyArguments[indexToConvert] = intToDoubleFeature;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tfor (int indexToConvert : stringCollectionParametersToConvert) {\n\t\t\t\t\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\t\t\t\t\tStringCollectionFeature<T> stringCollectionFeature = (StringCollectionFeature<T>) myArguments[indexToConvert];\n\t\t\t\t\t\t\t\t\t\tStringCollectionFeatureProxy<T> proxy = new StringCollectionFeatureProxy<T>(stringCollectionFeature);\n\t\t\t\t\t\t\t\t\t\tmyArguments[indexToConvert] = proxy;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tfor (int indexToConvert : customParametersToConvert) {\n\t\t\t\t\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\t\t\t\t\tFeature<T,?> argumentToConvert = (Feature<T, ?>) myArguments[indexToConvert];\n\t\t\t\t\t\t\t\t\t\tFeature<T,?> customArgument = this.convertArgument(parameterTypes[indexToConvert], argumentToConvert);\n\t\t\t\t\t\t\t\t\t\tmyArguments[indexToConvert] = customArgument;\n\t\t\t\t\t\t\t\t\t\tcustomArgument.addArgument(argumentToConvert);\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\tbreak;\n\t\t\t\t\t\t\t} // found a matching constructor\n\t\t\t\t\t\t} // next possible constructor\n\t\t\t\t\t} // still haven't found a constructor, what next?\n\t\t\t\t} // didn't find a constructor yet\n\t\t\t} finally {\n\t\t\t\tMONITOR.endTask(\"findContructor\");\n\t\t\t}\n\t\t\t\n\t\t\tif (constructor==null)\n\t\t\t\tthrow new NoConstructorFoundException(\"No constructor found for \" + descriptor.getFunctionName() + \" (\" + featureClass.getName() + \") matching the arguments provided\", descriptor, topLevelDescriptor);\t\t\t\n\t\t\t\n\t\t\tfor (Object[] myArguments : argumentsList) {\n\t\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\t\tFeature feature;\n\t\t\t\ttry {\n\t\t\t\t\tfeature = constructor.newInstance(myArguments);\n\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t} catch (InstantiationException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t} catch (InvocationTargetException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\tFeature<T,?> genericFeature = (Feature<T,?>) feature;\n\t\t\t\tthis.injectDependencies(feature);\n\t\t\t\tif (genericFeature instanceof ExternalResourceFeature) {\n\t\t\t\t\tif (this.getExternalResourceFinder()==null) {\n\t\t\t\t\t\tthrow new JolicielException(\"No external resource finder set.\");\n\t\t\t\t\t}\n\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\tExternalResourceFeature<T> externalResourceFeature = (ExternalResourceFeature<T>) genericFeature;\n\t\t\t\t\texternalResourceFeature.setExternalResourceFinder(this.getExternalResourceFinder());\n\t\t\t\t} else if (genericFeature instanceof ExternalResourceDoubleFeature) {\n\t\t\t\t\tif (this.getExternalResourceFinder()==null) {\n\t\t\t\t\t\tthrow new JolicielException(\"No external resource finder set.\");\n\t\t\t\t\t}\n\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\tExternalResourceDoubleFeature<T> externalResourceFeature = (ExternalResourceDoubleFeature<T>) genericFeature;\n\t\t\t\t\texternalResourceFeature.setExternalResourceFinder(this.getExternalResourceFinder());\n\t\t\t\t} else if (genericFeature instanceof MultivaluedExternalResourceFeature) {\n\t\t\t\t\tif (this.getExternalResourceFinder()==null) {\n\t\t\t\t\t\tthrow new JolicielException(\"No external resource finder set.\");\n\t\t\t\t\t}\n\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\tMultivaluedExternalResourceFeature<T> externalResourceFeature = (MultivaluedExternalResourceFeature<T>) genericFeature;\n\t\t\t\t\texternalResourceFeature.setExternalResourceFinder(this.getExternalResourceFinder());\n\t\t\t\t} \n\n\t\t\t\t// add this feature's arguments\n\t\t\t\tfor (Object argument : myArguments) {\n\t\t\t\t\tif (argument instanceof Feature[]) {\n\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\tFeature<T,?>[] featureArray = (Feature<T,?>[]) argument;\n\t\t\t\t\t\tfor (Feature<T,?> oneFeature : featureArray) {\n\t\t\t\t\t\t\tgenericFeature.addArgument(oneFeature);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\tFeature<T,?> featureArgument = (Feature<T,?>) argument;\n\t\t\t\t\t\tgenericFeature.addArgument(featureArgument);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tFeature<T,?> convertedFeature = this.convertFeature(genericFeature);\n\t\t\t\tfeatures.add(convertedFeature);\n\t\t\t} // next internal argument list\n\t\t} // next argument list\n\t\treturn features;\n\t}", "List<FeatureDistribution> asFeatureDistributions();", "private static List<IFeature> parseFeatures(WMElement features) {\n List<IFeature> trainingFeatures = new ArrayList<>();\n for (int i = 0; i < features.ConvertToIdentifier().GetNumberChildren(); i++) {\n IFeature res;\n WMElement curFeatureType = features.ConvertToIdentifier().GetChild(i);\n WMElement curFeature = curFeatureType.ConvertToIdentifier().GetChild(0);\n String featureName = curFeature.GetAttribute();\n String featureVal = curFeature.GetValueAsString();\n double featureValNumerical = -1.0;\n try {\n featureValNumerical = Double.parseDouble(featureVal);\n } catch (Exception e) {\n if (featureVal.equalsIgnoreCase(\"true\")) {\n featureValNumerical = 1.0;\n } else if (featureVal.equalsIgnoreCase(\"false\")) {\n featureValNumerical = 0.0;\n }\n }\n\n switch (curFeatureType.GetAttribute()) {\n case \"boolean\":\n res = new BooleanFeature(featureName, featureValNumerical);\n break;\n case \"numerical\":\n res = new NumericalFeature(featureName, featureValNumerical);\n break;\n case \"categorical\":\n res = new CategoricalFeature(featureName, featureVal);\n break;\n default:\n throw new IllegalArgumentException(\"Given feature type is not supported.\");\n }\n\n trainingFeatures.add(res);\n }\n return trainingFeatures;\n }", "private void collectSelectedFeatures(\n\t\t\tLanguageFeature rootFeature,\n\t\t\tArrayList<LanguageFeature> selectedFeatures) {\n\t\t// Base case: the root feature is selected, in such a case it is added to the collection\n\t\tif(rootFeature.isSelected() && rootFeature.getImplementationModule() != null)\n\t\t\tselectedFeatures.add(rootFeature);\n\t\t// Recursive case: scan the child features.\n\t\tfor (LanguageFeature languageFeature : rootFeature.getChildren()) {\n\t\t\tthis.collectSelectedFeatures(languageFeature, selectedFeatures);\n\t\t}\n\t}", "Feature update(Feature feature);", "private List<E> snapshot() {\n\t\tList<E> list = Lists.newArrayListWithExpectedSize(size());\n\t\tfor (Multiset.Entry<E> entry : entrySet()) {\n\t\t\tE element = entry.getElement();\n\t\t\tfor (int i = entry.getCount(); i > 0; i--) {\n\t\t\t\tlist.add(element);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "public org.pentaho.pms.cwm.pentaho.meta.core.CwmStructuralFeature getFeature();", "public Feature[] getFeatures() throws JsonMappingException, IOException {\n \tfinal String uri = \"http://localhost:12300/featureflags\";\n RestTemplate restTemplate = new RestTemplate();\n HttpHeaders headers = new HttpHeaders();\n headers.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));\n HttpEntity<String> entity = new HttpEntity<String>(\"parameters\", headers);\n ResponseEntity<String> result = restTemplate.exchange(uri, HttpMethod.GET, entity, String.class);\n String body = result.getBody();\n ObjectMapper mapper = new ObjectMapper();\n Feature[] features = mapper.readValue(body, Feature[].class);\n return features;\n }", "public Features getFeatures (SootMethod method) {\n if (propagatedFeaturesMap.containsKey(method)) {\n return propagatedFeaturesMap.get(method);\n } else if (featuresMap.containsKey(method)) {\n return featuresMap.get(method);\n } else if (featuresLibMap.containsKey(method)) {\n return featuresLibMap.get(method);\n } else {\n Features features = new Features(method);\n featuresLibMap.put(method, features);\n return features;\n }\n }", "public List<I> get() {\n synchronized (refs) {\n List<I> res = new ArrayList<>();\n for (Iterator<WeakReference<I>> iterator = refs.iterator(); iterator.hasNext(); ) {\n WeakReference<I> ref = iterator.next();\n I instance = ref.get();\n if (instance == null) {\n iterator.remove();\n } else {\n res.add(instance);\n }\n }\n return res;\n }\n }", "public Feature getTestedFeature() {\n return testedFeature;\n }", "public interface ProjectedFeature<T extends Feature> extends ProjectedObject<T> {\n\n /**\n * Get the id of the feature.\n *\n * @return FeatureId\n */\n FeatureId getFeatureId();\n\n /**\n * Get the original FeatureMapLayer from where the feature is from.\n *\n * @return FeatureMapLayer\n */\n @Override\n FeatureMapLayer getLayer();\n\n /**\n * Get the feature itself.\n *\n * @return Feature\n */\n @Override\n T getCandidate();\n\n}", "org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i);", "org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i);", "public List<IDataSet> extractAll(String featureType);", "public org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().find_element_user(FEATURE$6, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n return target;\r\n }\r\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().find_element_user(FEATURE$6, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n return target;\r\n }\r\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().find_element_user(FEATURE$14, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n return target;\r\n }\r\n }", "public Integer getFeature() {\n return feature;\n }", "public FeatureCollection undoLastEdit(){\n if (lastEditType==EDIT_NONE){\n //don't undo anything, fcLast is empty\n } else if (lastEditType==EDIT_ADD){\n //remove the added features\n removeAll(fcLastEdits);\n } else if (lastEditType==EDIT_REMOVE){\n //add the removed features\n addAll(fcLastEdits);\n }\n return fcLastEdits;\n }", "public ArrayList getObjsList() {\n return objList;\n }", "public List hardList() {\r\n List result = new ArrayList();\r\n\r\n for (int i=0; i < size(); i++) {\r\n Object tmp = get(i);\r\n\r\n if (tmp != null)\r\n result.add(tmp);\r\n }\r\n\r\n return result;\r\n }", "private static List forestIntoList() {\n List temp = new ArrayList<Integer>();\n for (int i = 0; i < SIZE; i++) {\n for (int j = 0; j < SIZE; j++) {\n temp.add(forest[i][j]);\n }\n }\n return temp;\n }", "ArrayList<Feature> getFeatures(String userid, String project)throws Exception;", "public List<ExplanationFeature> getTopNFeatures() {\n\t\tList<ExplanationFeature> ret = Lists.newArrayList(this.entries);\n\t\tCollections.sort(ret);\n\t\treturn ret;\n\t}", "public Collection getRegisteredObjects() {\n return usedByObjects;\n }", "List<FeatureController<MODEL>> getFeatureControllers() {\n return featureItems.getFeatureControllers();\n }", "public void addFeature(Feature feature) {\n rows.addElement(feature);\n }", "public ArrayList<Thing> getThings()\r\n {\r\n \tArrayList<Thing> inventory = new ArrayList<Thing>();\r\n \tfor (int i=0; i<items.size(); i++)\r\n \t\tinventory.add(items.get(i));\r\n \treturn inventory;\r\n }", "void addFeature(int index, Feature feature);", "Iterator features();", "Collect getColl();", "private void addFeatureFieldGetSet(FeatureImpl fi) {\n this.fi = fi;\n featureFieldName = getFeatureFieldName(fi);\n rangeJavaDescriptor = fi.getRangeAsJavaDescriptor();\n \n addFeatureField(); // add declares for fields\n addFeatureGetSet();\n TypeImpl range = (TypeImpl) fi.getRange();\n if (range.isArray()) {\n rangeArrayElementJavaDescriptor = fi.getRangeArrayElementAsJavaDescriptor();\n addArrayFeatureGetSet();\n }\n }", "public List<FeatureDataBean> convertFeatureDataBeanToFeatureModel(List<UMFeature> uMFeature) {\n List<FeatureDataBean> result = new ArrayList<>();\n\n for (UMFeature uMFeature1 : uMFeature) {\n FeatureDataBean featureDataBean1 = new FeatureDataBean();\n\n featureDataBean1.setId(uMFeature1.getId());\n featureDataBean1.setName(uMFeature1.getName());\n featureDataBean1.setDescription(uMFeature1.getDescription());\n featureDataBean1.setFeatureURL(uMFeature1.getFeatureUrl());\n featureDataBean1.setWebserviceURL(uMFeature1.getWebserviceUrl());\n featureDataBean1.setActive(uMFeature1.getIsActive());\n featureDataBean1.setCrud(uMFeature1.getIsCrud());\n featureDataBean1.setMenuLable(uMFeature1.getMenuLabel());\n featureDataBean1.setMenuType(uMFeature1.getMenuType());\n\n result.add(featureDataBean1);\n }\n return result;\n }", "@Override\n public Class<? extends Feature> getFeatureClass() {\n\treturn VersionFeatures.class;\n }", "long getFeaturesUsed();" ]
[ "0.6574733", "0.64374185", "0.6405332", "0.6322685", "0.63213456", "0.6253944", "0.6243477", "0.62365717", "0.62365717", "0.61964095", "0.6094", "0.60686845", "0.6020334", "0.60147744", "0.588086", "0.588086", "0.5864955", "0.5862286", "0.5776038", "0.57536197", "0.57517105", "0.56235564", "0.56137973", "0.5533425", "0.5498086", "0.54537636", "0.54537636", "0.5436272", "0.543589", "0.5424528", "0.5415549", "0.54077715", "0.5381081", "0.5368851", "0.5353872", "0.53456765", "0.5343835", "0.533633", "0.53111404", "0.5308965", "0.5306042", "0.52957314", "0.52773464", "0.52701247", "0.52476203", "0.52413464", "0.52390474", "0.52388614", "0.519288", "0.51574355", "0.5150222", "0.511496", "0.5099755", "0.50738335", "0.50586474", "0.50567555", "0.5042306", "0.5040073", "0.50273365", "0.50273365", "0.50207007", "0.50184804", "0.50087225", "0.5006424", "0.50022495", "0.49955517", "0.49941796", "0.49920774", "0.4965765", "0.49609488", "0.49398234", "0.49378717", "0.49268228", "0.4921086", "0.49151164", "0.48899862", "0.4888092", "0.4888092", "0.48802397", "0.48739243", "0.48739243", "0.4872312", "0.48722324", "0.48676068", "0.48651084", "0.48546964", "0.4849011", "0.4846279", "0.48451328", "0.48377877", "0.48314208", "0.482726", "0.4825874", "0.4819713", "0.481731", "0.48155218", "0.48087412", "0.48039111", "0.48038873", "0.47912857" ]
0.66901094
0
Checks if a feature is contained in the ordered collection of the current object.
boolean containsFeature(Feature feature);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean containsFeature(Feature f);", "boolean contains(SimpleFeature feature);", "boolean hasFeaturesUsed();", "public boolean getFeature(@Nonnull Feature f) {\r\n return features.contains(f);\r\n }", "@Override\n public final boolean contains(final Object o) {\n return Collections.exists(getComponents(),\n new Assertion<PriorityList<? extends _PriorityElement_>>() {\n public boolean isTrueFor(PriorityList<? extends _PriorityElement_> s) {\n return s.contains(o);\n }\n });\n }", "public boolean hasFeature(T feature) {\n\t\tif (duplicates) {\n\t\t\treturn featuresList.contains(feature);\n\t\t}\n\t\treturn features.contains(feature);\n\t}", "private boolean evaluateForFeatureDependency(BaseFeature feature) {\n\t\tif (!feature.getClass().getSuperclass().equals(BaseFeature.class)) {\n\t\t\treturn true;\n\t\t}\n\n\t\tfor (BaseFeature featureBase : features) {\n\t\t\tif (CollectionUtils.isNotEmpty(featureBase.getRequiredFeatures())) {\n\t\t\t\tfor (BaseFeature requiredFeature : featureBase.getRequiredFeatures()) {\n\t\t\t\t\tif (feature == requiredFeature) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "public boolean hasFeature(SimpleFeature feature) {\n\t\treturn idIndex.containsKey(feature.getID());\n\t}", "boolean hasContains();", "public boolean is_set_feature() {\n return this.feature != null;\n }", "boolean hasCustomFeatures();", "boolean containsTypedFeature(StructuralFeature typedFeature);", "boolean isOrderCertain();", "public boolean isInList();", "@Override\n\t\tpublic boolean contains(Object o) {\n\t\t\treturn false;\n\t\t}", "@Test\r\n\tpublic void testContains() {\r\n\t\tAssert.assertTrue(list.contains(new Munitions(2, 3, \"iron\")));\r\n\t\tAssert.assertFalse(list.contains(new Munitions(2, 5, \"ferrum\")));\r\n\t}", "@Override\r\n\tpublic boolean contains(Object o) {\n\t\treturn set.contains(o);\r\n\t}", "@Override\n\tpublic boolean contains(Object o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean contains(Object o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean contains(Object o) {\n\t\treturn false;\n\t}", "@Override\n public boolean contains(Object o) {\n return indexOf(o) >= 0;\n }", "@Override\n public boolean contains(Object o) {\n return indexOf(o) >= 0;\n }", "private boolean checkSetOfFeatures() {\n\t\t\n\t\tif ((sentimentRelatedFeatures.isSelected() && numberOfSentimentRelatedFeatures==0) ||\n\t\t\t(punctuationFeatures.isSelected() && numberOfPunctuationFeatures==0) ||\n\t\t\t(stylisticFeatures.isSelected() && numberOfStylisticFeatures==0) ||\n\t\t\t(semanticFeatures.isSelected() && numberOfSemanticFeatures==0) ||\n\t\t\t(unigramFeatures.isSelected() && numberOfUnigramFeatures==0) ||\n\t\t\t(topWordsFeatures.isSelected() && numberOfTopWordsFeatures==0) ||\n\t\t\t(patternFeatures.isSelected() && numberOfPatternFeatures==0))\n\t\t\t\n\t\t\t{\n\t\t\tboolean test = ConfirmBox.display(\"Attention\", \"You have chosen to use one or more set(s) of features, however you have not set the corresponding parameters yet. Are you sure you want to continue?\");\n\t\t\tif (test==false) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ((!sentimentRelatedFeatures.isSelected() && numberOfSentimentRelatedFeatures!=0) ||\n\t\t\t(!punctuationFeatures.isSelected() && numberOfPunctuationFeatures!=0) ||\n\t\t\t(!stylisticFeatures.isSelected() && numberOfStylisticFeatures!=0) ||\n\t\t\t(!semanticFeatures.isSelected() && numberOfSemanticFeatures!=0) ||\n\t\t\t(!unigramFeatures.isSelected() && numberOfUnigramFeatures!=0) ||\n\t\t\t(!topWordsFeatures.isSelected() && numberOfTopWordsFeatures!=0) ||\n\t\t\t(!patternFeatures.isSelected() && numberOfPatternFeatures!=0))\n\t\t\t\t\n\t\t\t\t{\n\t\t\t\tboolean test = ConfirmBox.display(\"Attention\", \"You have customized one or more set(s) of features, however you have not selected this (these) set(s) to be extracted. Are you sure you want to continue?\");\n\t\t\t\tif (test==false) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\treturn true;\n\t\t\n\t}", "public boolean hasFeature(String featureID) {\n\t\treturn idIndex.containsKey(featureID);\n\t}", "public static boolean containsFeature(SeqFeatureI container,SeqFeatureI query) {\n if (container == query)\n return true;\n boolean found = false;\n int setSize = container.getNumberOfChildren();\n for (int i = 0; i < setSize && !found; i++) {\n SeqFeatureI check = container.getFeatureAt(i);\n found = containsFeature(check,query);\n if (found)\n return true;\n //found = (sf == check);\n //if (!found && (check.canHaveChildren())) {\n //found = (check).findFeature(sf);\n //}\n }\n return found;\n\n }", "public boolean contains(T obj) {\r\n\t\tlogger.trace(\"Enter contains\");\r\n\t\tlogger.trace(\"Exit contains\");\r\n\t\treturn data.contains(obj);\r\n\t}", "@Override\r\n\tpublic boolean isAllHit() {\r\n\t\treturn priorityElements.isEmpty();\r\n\t}", "boolean isSetUnordered();", "public boolean contains(WModelObject object)\n\t{\n\t\treturn m_elements.contains(object);\n\t}", "public boolean contains(Object o) {\n\n Object value = elements.get(o);\n return value != null;\n }", "boolean contains( Geometry gmo );", "Collection<? extends WrappedIndividual> getIsPartOf();", "boolean isSetListOfServiceElements();", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Feature)) {\n return false;\n }\n Feature other = (Feature) object;\n return !((this.id == null && other.id != null)\n || (this.id != null && !this.id.equals(other.id)));\n }", "public boolean contains ( Object o ){\n\n \tboolean doesContain = false;\n\n \tfor(int i = 0; i < list.size(); i++){\n\n if(list.get(i).equals(o)){\n doesContain = true;\n }\n\n }\n\n \treturn doesContain;\n\n }", "public boolean hasNext() {\n\t\t\n\t\treturn order.hasNext() || !candidates.isEmpty()\n\t\t\t\t|| !firstOrderCandidates.isEmpty();\n\t}", "public boolean contains( Geometry gmo ) {\n throw new NoSuchMethodError( \"the contains operation for points \" + \n \"isn't supported at the moment.\" );\n }", "public boolean contains(Object o) {\n for(int i = 0; i < size; i++) {\n if(list[i].equals(o)) return true;\n }\n return false;\n }", "public boolean contains(Object elem);", "boolean isFeatureSupported(String feature);", "@Override\n public boolean contains(Object o) {\n if (indexOf(o) == -1) {\n return false;\n } else {\n return true;\n }\n }", "boolean contains();", "boolean hasList();", "boolean isOrderable();", "public boolean evaluate(T obj) {\n\t\treturn set.contains(obj);\n\t}", "protected boolean isValid() {\n return COLLECTION.getList().contains(this);\n }", "public boolean contains(Object o);", "public boolean contains(Object o);", "public boolean isInterestedInAllItems();", "public boolean containsObject(AdvObject obj) {\n\t\treturn objects.contains(obj); // Replace with your code\n\t}", "boolean hasHas();", "public boolean contains(E elem) {\n Iterator<E> inorder = getInorderIterator();\n\n while (inorder.hasNext()) {\n if (inorder.next().equals(elem)) {\n return true;\n }\n }\n return false;\n }", "boolean hasCollectionName();", "@Test\n public void testContains_Contain() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n instance.add(2);\n instance.add(3);\n\n boolean expResult = true;\n boolean result = instance.contains(1);\n assertEquals(expResult, result);\n }", "public boolean equals(Object o) {\n\n int i, j;\n\n if (o == this) return true;\n if (!(o instanceof Feature)) return false;\n Feature f = (Feature) o;\n if (!((((Feature.IS_NOMINAL(f.type)) && (Feature.IS_NOMINAL(type)))\n || ((Feature.IS_INTEGER(f.type)) && (Feature.IS_INTEGER(type)))\n || ((Feature.IS_CONTINUOUS(f.type)) && (Feature.IS_CONTINUOUS(type)))))) return false;\n\n if ((f.dmin_from_data != dmin_from_data)\n || (f.dmax_from_data != dmax_from_data)\n || (f.dmin != dmin)\n || (f.dmax != dmax)\n || (f.imin_from_data != imin_from_data)\n || (f.imax_from_data != imax_from_data)\n || (f.imin != imin)\n || (f.imax != imax)) return false;\n\n if (Feature.IS_NOMINAL(f.type)) {\n Vector<String> vf_test, v_test;\n if (f.modalities.size() != modalities.size()) return false;\n for (i = 0; i < f.modalities.size(); i++)\n if (!((String) f.modalities.elementAt(i)).equals(modalities.elementAt(i))) return false;\n\n if (f.tests.size() != tests.size()) return false;\n for (i = 0; i < f.tests.size(); i++) {\n vf_test = (Vector<String>) f.tests.elementAt(i);\n v_test = (Vector<String>) tests.elementAt(i);\n if (vf_test.size() != v_test.size()) return false;\n for (j = 0; j < vf_test.size(); j++)\n if (!((String) vf_test.elementAt(j)).equals(v_test.elementAt(j))) return false;\n }\n } else if (Feature.IS_INTEGER(f.type)) {\n if (f.tests.size() != tests.size()) return false;\n for (i = 0; i < f.tests.size(); i++)\n if (((Integer) f.tests.elementAt(i)).intValue()\n != ((Integer) tests.elementAt(i)).intValue()) return false;\n } else if (Feature.IS_CONTINUOUS(f.type)) {\n if (f.tests.size() != tests.size()) return false;\n for (i = 0; i < f.tests.size(); i++)\n if (((Double) f.tests.elementAt(i)).doubleValue()\n != ((Double) tests.elementAt(i)).doubleValue()) return false;\n }\n\n return true;\n }", "boolean hasPriority();", "boolean hasPriority();", "boolean hasPriority();", "@Test\n public void testContainsAll_Contains() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n\n Collection c = Arrays.asList(1, 2, 3);\n\n boolean expResult = true;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "boolean hasOrderSize();", "@Test\r\n public void testContains() {\r\n System.out.println(\"contains\");\r\n ModeloListaOrganizadores instance = new ModeloListaOrganizadores(e.getListaOrganizadores());\r\n Organizador o =new Organizador(new Utilizador(\"teste\", \"[email protected]\", \"teste\", \"teste\", true, 5));\r\n instance.addElement(o);\r\n boolean expResult = true;\r\n boolean result = instance.contains(o);\r\n assertEquals(expResult, result);\r\n \r\n }", "@Ignore\r\n @Test\r\n public void testContainsCollection() {\r\n System.out.println(\"containsCollection\");\r\n NumberCollection nc = null;\r\n NumberCollection instance = new NumberCollection();\r\n boolean expResult = false;\r\n boolean result = instance.containsCollection(nc);\r\n assertEquals(expResult, result);\r\n \r\n }", "public boolean isCollection() {\n return this == LOAD || this == PICKUP;\n }", "@Override\n\tpublic boolean contains(E e) {\n\t\treturn false;\n\t}", "boolean isOrdered();", "boolean isOrdered();", "boolean isSetObjectives();", "boolean getContainEntities();", "@Override\r\n\tpublic boolean contains(Object o)\r\n\t{\n\t\tthrow new UnsupportedOperationException(\"Series collection doesn't support this operation.\");\r\n\t}", "public boolean contains(T target) throws EmptyCollectionException{\n if(isEmpty()){\n throw new EmptyCollectionException(\"list\");\n }\n LinearNode<T> trav = front;\n while (trav != null){\n if (trav.getElement().equals(target)){\n return true;\n }\n trav = trav.getNext();\n }\n return false;\n }", "public static boolean IS_SUBFEATURE(Feature a, Feature b) {\n return IS_SUBFEATURE(a, -1, b, -1);\n }", "Collection<? extends WrappedIndividual> getHasPart();", "@Test\r\n\tvoid testContains() {\r\n\t\tSortedList list = new SortedList(\"List\");\r\n\t\tlist.insert(toDoItem1);\r\n\t\tlist.insert(toDoItem2);\r\n\t\tlist.insert(toDoItem3);\r\n\t\tlist.insert(toDoItem4);\r\n\r\n\t\tif (list.contains(\"Item 1\") != true) {\r\n\t\t\tfail(\"Failed to find \\\"Item 1\\\"\");\r\n\t\t}\r\n\t\tif (list.contains(\"Item 2\") != true) {\r\n\t\t\tfail(\"Failed to find \\\"Item 2\\\"\");\r\n\t\t}\r\n\t\tif (list.contains(\"Item 3\") != true) {\r\n\t\t\tfail(\"Failed to find \\\"Item 3\\\"\");\r\n\t\t}\r\n\t\tif (list.contains(\"Item 4\") != true) {\r\n\t\t\tfail(\"Failed to find \\\"Item 4\\\"\");\r\n\t\t}\r\n\t}", "boolean hasConceptGroup();", "public boolean appears(T target) {\r\n int index = getIndex(target);\r\n return index != -1;\r\n }", "@Override\n public boolean contains(Object o) {\n return contains(root, o);\n }", "public boolean contains(E obj){\r\n //simple binary search to see if object is there\r\n //best case: O(1), ave case: O(logn), worst case: O(n)\r\n int lo = 0;\r\n int hi = currentSize - 1;\r\n\r\n while(lo <= hi) {\r\n int mid = (lo + hi) / 2;\r\n if(((Comparable<E>)queue[mid]).compareTo(obj) < 0)\r\n hi = mid - 1;\r\n else if(((Comparable<E>)queue[mid]).compareTo(obj) > 0)\r\n lo = mid + 1;\r\n else\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean contains(T e) {\n DLLNode<T> current = _front;\n for (int i = 0; i < _size; i++) {//Go through the queue until you do or dont find e\n if (current.getCargo().equals(e))\n return true;\n current = current.getNext();\n }\n return false;\n }", "public boolean isOp(){\n return opSet.contains(symbol());\n }", "public boolean contains(E obj){\n\t\tif (obj == null)\n\t\t\tthrow new IllegalArgumentException(\"The given item is null.\");\n\t\tfor(E val : this) {\n\t\t\tif(val.equals(obj))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "boolean contains(Object o);", "boolean contains(Object o);", "boolean contains(Object o);", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "public boolean isContained() {\n return contained;\n }", "public boolean contains(T obj) {\r\n return lastIndexOf(obj) != -1;\r\n }", "boolean hasUses();", "public boolean contains(Object o) {\r\n return indexOf(o) != -1;\r\n }", "public boolean containsAll(Collection coll) {\n\n return elements.keySet().containsAll(coll);\n }", "boolean hasIsPartOf();", "boolean hasActive();", "public abstract boolean contains(Object item);", "public boolean isMember(T o)\n {\n return (objectSet.search(o) != null);\n }", "boolean\tcontains(Object o);" ]
[ "0.663808", "0.66072875", "0.6550056", "0.6481115", "0.64621747", "0.63290536", "0.62602675", "0.6212604", "0.61598456", "0.6146214", "0.59863204", "0.59310246", "0.58988655", "0.58949", "0.58839816", "0.5874778", "0.5865139", "0.57673067", "0.57673067", "0.57673067", "0.57441473", "0.57441473", "0.5714789", "0.5710995", "0.56950235", "0.56638354", "0.5662572", "0.5660934", "0.56421316", "0.5620079", "0.55967796", "0.5595695", "0.55934936", "0.5588696", "0.55854297", "0.55763686", "0.5562279", "0.555598", "0.55473465", "0.55435574", "0.55400294", "0.5537197", "0.55325246", "0.5529472", "0.5524264", "0.5513165", "0.5504965", "0.5504965", "0.5498488", "0.549696", "0.54815865", "0.5479679", "0.54794306", "0.5467558", "0.5465982", "0.5464958", "0.5464958", "0.5464958", "0.5449188", "0.5423582", "0.54201776", "0.5419991", "0.5410215", "0.54065686", "0.53939795", "0.53939795", "0.5392408", "0.5388108", "0.5385252", "0.53822637", "0.5374548", "0.5362373", "0.53576046", "0.5356224", "0.53485113", "0.53470945", "0.5346983", "0.53456277", "0.5341009", "0.5330779", "0.5329516", "0.5329516", "0.5329516", "0.53282154", "0.53282154", "0.53282154", "0.53282154", "0.53282154", "0.53282154", "0.53282154", "0.5318796", "0.5317215", "0.53171086", "0.53079426", "0.5301987", "0.53014493", "0.52999943", "0.529893", "0.52896935", "0.5289551" ]
0.69853985
0
Gets the index of the specified feature in the ordered collection of the current object, or 1 if such a collection doesn't contain it.
int indexOfFeature(Feature feature);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int indexOf(T feature) {\n\t\tif (duplicates) {\n\t\t\treturn featuresList.indexOf(feature);\n\t\t}\n\t\t// ELSE: binary search\n\t\tint min = 0;\n\t\tint max = featuresList.size()-1;\n\t\tint middle;\n\t\t\n\t\twhile (min<=max) {\n\t\t\tmiddle = (min+max)/2;\n\t\t\tint compare = featuresList.get(middle).compareTo(feature) ;\n\t\t\tif (compare == 0) // found\n\t\t\t\treturn middle;\n\t\t\telse if (compare > 0) // then after middle\n\t\t\t\tmax = middle - 1;\n\t\t\telse min = middle + 1; // then before middle\n\t\t}\n\t\treturn -1 - min; // not found: return negative index where feature could be placed +1 (because of 0)\n\t}", "public int getRowIndex(Feature f){\n return fc.indexOf(f);\n }", "public int indexOf(O o)\r\n {\r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<=count-1;i++)\r\n {\r\n if (vi.getObject().equals(o)) return i;\r\n vi = vi.getNext();\r\n }\r\n return -1;\r\n }", "private int indexOf(Couple assoc) {\n for (int i = 0; i < nbAssoc; i++)\n if (associations[i].equals(assoc))\n return i;\n return -1;\n }", "public Integer getFeature() {\n return feature;\n }", "public int indexOf(Object o) {\n\t\treturn getFirstOccurrence(o).index;\n\t}", "public int indexOf(Object o) {\r\n\t\tfor(int i=0; i < size();i++) {\r\n\t\t\tif(get(i).equals(o)) {\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t\t/*\r\n\t\t * Der Rückgabewert -1 bedeutet, dass das Object o nicht\r\n\t\t * im FancyArray enthalten ist :(\r\n\t\t */\r\n\t}", "public int getIndex();", "public int getIndex();", "public int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "public abstract int indexFor(Object obj);", "public int getClassifierIndex(String classifier)\n\t{\n\t\treturn classifiers().indexOf(classifier);\n\t}", "public int indexOf(Object elem);", "public int size(Feature f){\n\t\treturn featureIndex(f).size();\n\t}", "@JsOverlay\n\tpublic final int getIndex() {\n\t\t// checks if there is the property\n\t\tif (ObjectType.UNDEFINED.equals(JsHelper.get().typeOf(this, \"index\"))) {\n\t\t\treturn Undefined.INTEGER;\n\t\t}\n\t\treturn getNativeIndex();\n\t}", "public boolean hasFeature(SimpleFeature feature) {\n\t\treturn idIndex.containsKey(feature.getID());\n\t}", "public int indexOf(Object o) {\n\t\tfor(int i = 0; i < size; i++) {\r\n\t\t\tif(getNode(i).getData().equals(o))\r\n\t\t\t\treturn i;\r\n\t\t} return -1;\r\n\t}", "public int numberOfFeatures(){\n\t\treturn indexByFeature.keySet().size();\n\t}", "public int indexOf(Object elem, int index);", "public int indexOf(GeometricalObject object);", "public int getIndex()\n {\n return m_index;\n }", "FeatureId getFeatureId();", "private void addToIndex(SimpleFeature feature) {\n\t\t// ID Index\n\t\tif (idIndex==null) idIndex = new HashMap<String, SimpleFeature>();\n\t\tidIndex.put(feature.getID(), feature);\n\t\t\n\t\t// Type name index\n\t\tif (typeNameIndex==null) typeNameIndex = new HashMap<Name, Set<SimpleFeature>>();\n\t\tName type = feature.getType().getName();\n\t\tSet<SimpleFeature> prev = typeNameIndex.get(type);\n\t\tif (prev==null) prev = new HashSet<SimpleFeature>();\n\t\tprev.add(feature);\n\t\ttypeNameIndex.put(type, prev);\n\t\t\n\t\t// Tile Index\n\t\t// Image features are separated by - and last parts are xref-yref-zoom\n\t\tif (feature.getID().matches(\".*-[0-9]+-[0-9]+-[0-9]+\")) {\n\t\t\tOSMTile tile = new OSMTile(feature.getID());\n\t\t\tprev = tileIndex.get( tile );\n\t\t\tif (prev==null) prev = new HashSet<SimpleFeature>();\n\t\t\tprev.add(feature);\n\t\t\ttileIndex.put(tile, prev);\n\t\t\t\n\t\t} else {\n\t\t\t/* TODO Something for features..?\n\t\t\t * get geometry bounds, calculate tile and insert into relevant index positions?\n\t\t\t * This would then also work for removal...\t */\n\t\t}\n\t\t\n\t}", "public ComponentFeature getFeature(int index) {\r\n\t\tif (index >= features.length)\r\n\t\t\treturn null;\r\n\r\n\t\treturn features[index];\r\n\t}", "public int indexOf(Object o) {\n int index = -1;\n for(int i = 0; i < size; i++) {\n if(list[i].equals(o)) {\n index = i; break;\n }\n }\n return index;\n }", "public int indexOf(Object o);", "public int indexOf(Object obj)\r\n {\r\n int index = 0;\r\n for (E element : this)\r\n {\r\n if (Utilities.nullSafeEquals(element, obj))\r\n {\r\n return index;\r\n }\r\n ++index;\r\n }\r\n return BAD_POSITION;\r\n }", "int indexOf(GeometricalObject object);", "public int index();", "int getFeatureOffset(int feat) {\n throw new UIMARuntimeException(UIMARuntimeException.NOT_SUPPORTED_NO_HEAP_IN_UIMA_V3);\n }", "public int getIndex()\n {\n return index;\n }", "public int indexOf(Object o) {\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\t// if o is null we check against null else use equals\n\t\t\tif (o == null ? array[i] == null : o.equals(array[i])) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "@Override\n public int indexOf(Object o) {\n for (int i = 0; i < size; i++) {\n if (o.equals(data[i])) {\n return i;\n }\n }\n return -1;\n }", "@Override\n public int indexOf(Object o) {\n Node n = this.head;\n int i = 0;\n while (n != null) {\n if (o.equals(n.getData())) {\n return i;\n }\n i++;\n n = n.next;\n }\n return -1;\n }", "public int indexOfObject(Object obj);", "public int getIndex() {\n return index;\n }", "public int indexOf(E value) {\n\t\tif (isEmpty()) {\n\t\t\treturn -1;\n\t\t}\n\t\tfor (int i = 0; i < size(); i++) {\n\t\t\tif (((Person) get(i)).equalsPerson((Person) value)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public int getIndex()\n {\n return index;\n }", "public int index_bin(Example e) {\n\n int i;\n int index = -1; // -1 = EXAMPLES HAS UNKNOWN FEATURE VALUE\n int number_satisfied = 0;\n if (!Example.FEATURE_IS_UNKNOWN(e, feature_index)) { // written for checks, can be sped up\n for (i = 0; i < histogram_proportions.size(); i++) {\n if (Feature.EXAMPLE_MATCHES_FEATURE(\n e,\n histogram_features.elementAt(i),\n feature_index,\n histogram_features.elementAt(i).type)) {\n if ((index == -1) || (Algorithm.R.nextDouble() < 0.5)) {\n index = i;\n number_satisfied++;\n }\n }\n }\n if (index == -1) {\n System.out.println(e + \" :: \");\n for (i = 0; i < histogram_proportions.size(); i++)\n System.out.println(histogram_features.elementAt(i));\n\n Dataset.perror(\"Histogram.class :: example \" + e + \" has no bin in histogram \");\n }\n }\n return index;\n }", "public int getIndex() {\r\n\t\treturn index;\r\n\t}", "int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public Integer getIndex() {\n return index;\n }", "private int getClusterIndex(int element)\n\t{\n\t\tfor(int i=0; i<clusters.size(); i++)\n\t\t{\n\t\t\tVector v = (Vector)clusters.elementAt(i);\n\t\t\t\n\t\t\tif (v.contains(new Integer(element)))\n\t\t\t\treturn i;\n\t\t}\n\t\t\n\t\treturn -1;\n\t}", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\r\n return index;\r\n }", "public final int getIndex(){\n return index_;\n }", "public int getIndexOfElement(Object... value);", "public int getIndex() {\n\t\treturn this.index;\n\t}", "public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}", "public int getIndex() {\r\n return _index;\r\n }", "public int getIndex() {\r\n return _index;\r\n }", "public int getIndex() {\n \t\treturn index;\n \t}", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n\t\treturn this.mIndex;\n\t}", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "private int getIndex(T element) {\n int index = -1;\n for (int i = 0; i < this.container.length; i++) {\n if (this.container[i] != null && this.container[i].equals(element)) {\n index = i;\n break;\n }\n }\n return index;\n }", "private int findIndexOfGivenObject(Object o) {\n\n for(int i = 0; i < size(); i++) {\n if(content[i].equals(o)) {\n return i;\n }\n }\n\n return -1;\n }", "public int indexOf(WModelObject object)\n\t{\n\t\treturn m_elements.indexOf(object);\n\t}", "public synchronized final int getIndex() {\r\n return f_index;\r\n }", "public int index() {\n\t\treturn this.index;\n\t}", "public int getIndex() {\n return this.index;\n }", "public int getIndex() {\n return this.index;\n }", "private int getIndex() {\n\t\treturn this.index;\r\n\t}", "public int indexOf(Object object) {\n for (int i = 0; i < size; i++) {\n if (object == null) {\n if (genericArrayList[i] == null) return i;\n }else {\n if (object.equals(genericArrayList[i])) return i;\n }\n }\n return -1;\n }", "@Override\n public int indexOf(T object) {\n for (int i = 0; i < this.size; i++) {\n if (array[i].equals(object)) {\n return i;\n }\n }\n return -1;\n }", "@Override\r\n public int locate(Copiable value) {\r\n for (int i = 0; i < count; i++) {\r\n if (list[i].equals(value)) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }", "@Override\n public int compare(Instance other, int feature) {\n return 0;\n }", "int index();", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }" ]
[ "0.7259718", "0.6336533", "0.60017097", "0.5877733", "0.585926", "0.58388007", "0.57842433", "0.5736991", "0.5736991", "0.5736991", "0.57361555", "0.57361555", "0.57361555", "0.57361555", "0.57361555", "0.57361555", "0.57361555", "0.57361555", "0.57361555", "0.57361555", "0.57361555", "0.57361555", "0.57361555", "0.57261854", "0.5652715", "0.56397736", "0.56129014", "0.5608433", "0.55904055", "0.5584841", "0.55762184", "0.55741495", "0.5572933", "0.55275667", "0.55256283", "0.55150336", "0.5506691", "0.5506055", "0.54979396", "0.5480058", "0.5478713", "0.5478709", "0.54776365", "0.5475379", "0.5469271", "0.5466478", "0.5441941", "0.5437709", "0.5437426", "0.5435145", "0.5434459", "0.5431574", "0.5425693", "0.54226905", "0.5418596", "0.5418596", "0.5418596", "0.5418503", "0.5418503", "0.5418503", "0.541697", "0.54122055", "0.5401607", "0.5401607", "0.5401607", "0.5401607", "0.5401607", "0.53995603", "0.5398301", "0.53925836", "0.5389942", "0.53818613", "0.53790754", "0.53790754", "0.53780085", "0.5375748", "0.5372921", "0.537162", "0.537162", "0.537162", "0.537162", "0.537162", "0.537162", "0.5359795", "0.5356603", "0.5355452", "0.5353821", "0.5351796", "0.5347129", "0.5347129", "0.53398025", "0.53391516", "0.5338563", "0.5337546", "0.53354675", "0.5334615", "0.53271204", "0.53271204", "0.53271204", "0.53271204" ]
0.7119576
1
Returns the number of objects of type "feature" previously added to the ordered collection of the current object.
int countFeatures();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getFeaturesCount();", "public int getFeaturesCount();", "public int getFeatureCount() {\n\r\n\t\treturn _features.length;\r\n\t}", "public int numberOfFeatures(){\n\t\treturn indexByFeature.keySet().size();\n\t}", "public int sizeOfFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FEATURE$6);\r\n }\r\n }", "public int sizeOfFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FEATURE$6);\r\n }\r\n }", "int getFeatureCount();", "public int sizeOfFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FEATURE$14);\r\n }\r\n }", "long getFeaturesUsed();", "public int size(Feature f){\n\t\treturn featureIndex(f).size();\n\t}", "public int getNumberOfFeatures() {\n return features.size() - 1; // because slot 0 is skipped\n }", "public int getNumberOfFeatures() {\n\t\treturn numberOfFeatures;\n\t}", "public int getProcessedCount()\r\n {\r\n return myFeatureCount;\r\n }", "public void increaseFeatureCount() {\n this.featureCount++;\n }", "public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}", "int countTypedFeatures();", "public int numFeatures() {\n return FTypes.values().length;\n }", "public int size() {\n return mFeatureStructures.size();\n }", "public com.flexnet.opsembedded.webservices.NumberQueryType getFeatureCount() {\n return featureCount;\n }", "public int getNumObjects(){\n return numObjects;\n }", "@Override\n public int getCount() {\n return featureBean.size();\n }", "int sizeOfFeatureArray();", "int sizeOfFeatureArray();", "public int getFeaturesSize();", "public int getNumbObjects()\n\t{\n\t\treturn this.numObjects;\n\t}", "public int getObjectCount() {\n\t\treturn nestedConcept.getExtent().size();\n\t}", "public int getCount() {\n return objects.size();\n }", "public int getAddCount() {\n return addCount;\n }", "public Integer getFeature() {\n return feature;\n }", "protected long getObjectCount() {\r\n return objectCount;\r\n }", "public int get_feature_dimension() {\n\t\treturn nFeatures;\n\t}", "public int size(){\r\n\t\treturn numAdded;\r\n\t}", "public int getObjectCounter() {\n return objectCounter;\n }", "public int getNrOfAssociations() {\n int size = 0;\n for (PriorityCollection associations : memory.values()) {\n size += associations.size();\n }\n return size;\n }", "public int getClientFeaturesCount() {\n return clientFeatures_.size();\n }", "public static int numberObjects()\r\n\t{\r\n\t\treturn(no_of_obj);\r\n\t}", "public int getClientFeaturesCount() {\n return clientFeatures_.size();\n }", "int getObjectAnnotationsCount();", "int getObjectAnnotationsCount();", "@Override\r\n\tpublic int numCurrentsToAdd() {\n\t\treturn 2;\r\n\t}", "private int getReferences() {\n int quantity = 0;\n for (Option o : criteriaList.get(currentCriteria).getOptionList()) {\n boolean wasFound = false;\n for (String s : speciesLeft)\n if (o.getEntities().contains(s))\n wasFound = true;\n if (wasFound)\n ++quantity;\n }\n return quantity;\n }", "public static int fullSize(Object... features) {\n if (features == null) {\n return 0;\n }\n int size = 0;\n for (Object feature: features) {\n if (feature instanceof Object[]) {\n size += ((Object[]) feature).length;\n } else if (feature instanceof Collection) {\n size += ((Collection<?>) feature).size();\n } else {\n size++;\n }\n }\n return size;\n }", "public Integer getInterestedInItemsCount();", "int getFigureListCount();", "public int countFeatures(GeometryEnvelope envelope) {\n return featureDao.countIn(queryIdsSQL(envelope));\n }", "public int countFeatures(BoundingBox boundingBox) {\n return countFeatures(false, null, boundingBox);\n }", "public int getSize() {\n\t\t\treturn objects.size();\n\t\t}", "int getRefsCount();", "public int size() {\n\t\treturn collection.size();\n\t}", "public int size() {\n maintain();\n return collection.size();\n }", "public int size() {\n return collection.size();\n }", "public int getCount(){\n\t\treturn mDataObjects.size();\n\t}", "public int totalNum(){\n return wp.size();\n }", "public int getSize() {\n\t\treturn collection.size();\n\t\t\n\t}", "public int size() {return collection.size();}", "public int getNbFacto() {\r\n return this.factories.size();\r\n }", "@Override\n public int getTotalLayers() {\n return this.layers.size();\n }", "public Long getElementCount();", "@Override\n\tpublic int size()\n\t{\n\t\tint count = 0;\n\t\tfor (Variable var : FactorGraphIterables.variables(rootGraph()))\n\t\t{\n\t\t\tif (var.getPrior() != null)\n\t\t\t{\n\t\t\t\t++count;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "public int getCount() {\n\t\t\treturn foods.size();\n\t\t}", "int getPointsCount();", "public int size() {\n return this.collection.size();\n }", "public boolean haveCount () ;", "int sizeOfPlanFeatureArray();", "@Override\r\n\tpublic int getCollectionTotalCount() {\n\t\treturn data != null ? data.recordCount : 0;\r\n\t}", "@Override\n public int compare(Instance other, int feature) {\n return 0;\n }", "public int size() {\n\t\treturn pointList.size();\n\t}", "int getInCount();", "public int countFeatures(BoundingBox boundingBox, String where) {\n return countFeatures(false, null, boundingBox, where);\n }", "public int getCount() {\n return gdModels.size();\n }", "int getPartsCount();", "int getPartsCount();", "int getTagCount();", "public int getNumberOfIncludedServices(){\n \n return listOfIncludedServices.size();\n }", "public int featureDimension() {\n assert featureDimension > 0;\n return featureDimension;\n }", "public int getNumEClassifiers () { \r\n\t\treturn this.classifiers.size(); \r\n\t}", "int countAnnotations() {\n \tSet<Annotation> set = new LinkedHashSet<Annotation>();\n \tfor (Layer layer : layers.values())\n \t\tset.addAll(layer);\n \treturn set.size();\n }", "public int beanBagsInStock() {\n int counter = 0;\r\n // Loop through every object in the \"stockList\" object array list.\r\n for (int i = 0; i < stockList.size(); i++) {\r\n // If the current beanBag in the \"stockList\" sold state boolean is true.\r\n if (!((BeanBag) stockList.get(i)).isSold()) {\r\n // Increment the \"counter\" integer by 1.\r\n counter++;\r\n }\r\n }\r\n // Return the value of the \"counter\" integer.\r\n return counter;\r\n }", "public int size() {\n return pointsSet.size();\n }", "public int numTags() {\n return mTags.size();\n }", "public int getOccurrences() {\n\t\treturn this.occurrenceFactors.size();\n\t}", "int getPickupsCount();", "public Integer count() {\n\t\tif(cache.nTriples != null)\n\t\t\treturn cache.nTriples;\n\t\treturn TripleCount.count(this);\n\t}", "public int getNbOperation(){\n return this.listOperation.size();\n }", "public FeatureSet getFeatures() {\n\treturn features;\n }", "int getItemsCount();", "int getItemsCount();", "public double getFeatureSize() {\n\t\t\treturn featureDensity.length;\n\t\t}", "public int getTagCount() {\n return tag_.size();\n }", "public int size() {\n return pointSet.size();\n }", "@Override\r\n\tpublic int getCollectionCount() {\n\t\treturn data != null && data.list != null ? data.list.size() : 0;\r\n\t}", "private int computeCount() {\n \n int count;\n try{\n count = this.clippingFeatures.size() * this.featuresToClip.size();\n }catch(ArithmeticException e ){\n \n count = Integer.MAX_VALUE;\n }\n return count;\n }", "int getInterestsCount();", "public int getNumEntities()\n\t{\n\t\treturn this.entities.size();\n\t}", "public int getCount() {\r\n return bop.getCount();\r\n }", "private int countTrees()//has issues!! Should the counting happen in the \n //plant class? Or in the field? Or new grid class?\n {\n int trees = 0;\n Field field = getField();\n Location currant = getLocation();\n List<Object> plantList = field.getObjectAt(currant);\n \n while(it.hasNext()) {\n plantList.add(field.getObjectAt(currant));\n if(plant instanceof Tree) {\n trees++;\n }\n }\n return trees;\n }", "public int getNumberOfItemObjects() {\r\n\t\treturn itemFileVersions.size();\r\n\t}", "public int getFigureListCount() {\n return figureList_.size();\n }", "int getMetricDescriptorsCount();" ]
[ "0.7467023", "0.74632764", "0.73665136", "0.73065114", "0.7221217", "0.7221217", "0.71819663", "0.7099453", "0.7018394", "0.6886238", "0.6880029", "0.68381125", "0.68055403", "0.67745626", "0.6596037", "0.6572104", "0.64900875", "0.6476762", "0.6462533", "0.6456947", "0.6454106", "0.6320293", "0.6320293", "0.6314224", "0.61232877", "0.6089632", "0.6022222", "0.6019842", "0.6004254", "0.59997636", "0.59768116", "0.5974424", "0.5972712", "0.5961556", "0.5958789", "0.5942342", "0.59317404", "0.5920191", "0.5920191", "0.58968985", "0.5885691", "0.58601284", "0.58556396", "0.5851413", "0.5829179", "0.5827867", "0.57990277", "0.57840824", "0.5771087", "0.5746826", "0.5735241", "0.571294", "0.57104343", "0.57040304", "0.5691787", "0.56850743", "0.56781656", "0.5674354", "0.5670334", "0.566273", "0.5658287", "0.5636226", "0.56346834", "0.56325674", "0.5628705", "0.5622467", "0.56188506", "0.5617565", "0.56159604", "0.56119627", "0.56098497", "0.56098497", "0.5595113", "0.557958", "0.5577991", "0.557324", "0.55672437", "0.5564276", "0.55609316", "0.55598336", "0.55585426", "0.5549136", "0.5545851", "0.55398357", "0.553379", "0.55336833", "0.55336833", "0.5526688", "0.5519514", "0.55194914", "0.55169743", "0.5516134", "0.5503673", "0.55029327", "0.5496144", "0.5493653", "0.54914224", "0.5491336", "0.5489493" ]
0.6801701
14
Adds a typed feature to the collection of the current object.
void addTypedFeature(StructuralFeature typedFeature);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addFeatures(IFeature feature);", "void addFeature(Feature feature);", "void addFeatures(Features features);", "public void addFeature(@Nonnull Feature f) {\r\n features.add(f);\r\n }", "private void addFeature()\r\n {\r\n MapGeometrySupport mgs = myCurrentGeometryHandler.getGeometry();\r\n MetaDataProvider mdp = myMetaDataHandler.getMetaDataProvider();\r\n TimeSpan span = buildTimeSpan(mdp);\r\n mgs.setTimeSpan(span);\r\n MapDataElement element = new DefaultMapDataElement(myFeatureId, span, myType, mdp, mgs);\r\n Color typeColor = myType.getBasicVisualizationInfo().getTypeColor().equals(DEFAULT_FEATURE_COLOR) ? myFeatureColor\r\n : myType.getBasicVisualizationInfo().getTypeColor();\r\n element.getVisualizationState().setColor(typeColor);\r\n myConsumer.addFeature(element);\r\n myFeatureCount++;\r\n }", "void addFeature(int index, Feature feature);", "public void add(Feature f){\n if (debug) logger.info(\"feature added\");\n int z = fc.size();\n fc.add(f);\n fcLastEdits.clear();//clear possible feature edits\n fcLastEdits.add(f);\n lastEditType = EDIT_ADD;\n fireTableRowsInserted(z+1, z+1);\n }", "protected void addFeature( SimpleFeature feature, PointMergeOperations mergeOps )\n \t{\n if( isPoint( feature ) )\n {\n \taddPoint( feature, mergeOps );\n }\n else if( isPolyline( feature ) )\n {\n \taddPolyline( feature, mergeOps );\n }\n else\n {\n \t// We do not handle polygons.\n \tSystem.err.printf( \"Unknown feature type (%s)%n\", feature.getType().getGeometryDescriptor().getType().getBinding() );\n }\n \t}", "public void addFeatures(@Nonnull Collection<Feature> f) {\r\n features.addAll(f);\r\n }", "Collection<StructuralFeature> getTypedFeatures();", "boolean containsTypedFeature(StructuralFeature typedFeature);", "public void addFeatures(Feature... f) {\r\n addFeatures(Arrays.asList(f));\r\n }", "public void addFeature(Feature feature) {\n rows.addElement(feature);\n }", "org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();", "org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();", "public void add(Type t);", "public abstract void addFeatureClasses(FeatureClassContainer container);", "public void addFeature() throws UMUserManagementException {\n UMFeature uMFeature = convertFeatureDataBeanToFeatureModel(featureDataBean);\n featureService.createFeature(uMFeature);\n clearFeatureData();\n }", "public void addVariant(Feature feature){\r\n\t\tthis.alternativeFeatureGroup.get(0).addFeature(feature);\r\n\t}", "public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$6);\r\n return target;\r\n }\r\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$6);\r\n return target;\r\n }\r\n }", "protected void addFeaturesPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_Reference_features_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_Reference_features_feature\", \"_UI_Reference_type\"),\n NoSQLSchemaPackage.Literals.REFERENCE__FEATURES,\n true,\n false,\n true,\n null,\n null,\n null));\n }", "@Override\n <T> void add(T object);", "public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$14);\r\n return target;\r\n }\r\n }", "@UML(identifier=\"featureType\", obligation=OPTIONAL, specification=ISO_19139)\n Collection<? extends LocalName> getFeatureTypes();", "@Override\n public List<FeatureId> addFeatures(\n FeatureCollection<SimpleFeatureType, SimpleFeature> collection) throws IOException {\n TransformFeatureCollectionWrapper transformed = new TransformFeatureCollectionWrapper(collection, invertedTransformer);\n return store.addFeatures(transformed);\n\n // TODO: re-shape feature ids...\n }", "public void add (T obj);", "public void addType(TypeData type) { types.add(type); }", "public void add(Object obj) { \n\t\tcollection.addElement(obj);\n\t}", "public void add (Object t)\r\n {\r\n }", "public MappedFeatureTypeReference( QualifiedName featureTypeName ) {\n this.featureTypeName = featureTypeName;\n }", "@Override\r\n\tpublic void add(Object object) {\n\t\t\r\n\t}", "org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);", "org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);", "public void add(GeometricalObject object);", "@Override\n\tpublic void add() {\n\t\t\n\t}", "@Override\n\tpublic boolean addAll(Collection<? extends SimpleFeature> collection) {\n\t\tboolean ret = super.addAll(collection);\n\t\tfor (SimpleFeature f : collection) {\n\t\t\taddToIndex(f);\n\t\t}\n\t\treturn ret;\n\t}", "public abstract void addFeatures(Collection<Double> indices,Predicate pred, Word arg,boolean allWords);", "public void addAll(FeatureCollection featColl){\n if (debug) logger.info(\"collection added\");\n fc.addAll(featColl);\n fcLastEdits.clear();\n fcLastEdits.addAll(featColl);\n lastEditType = EDIT_ADD;\n fireTableDataChanged();\n }", "void add(GeometricalObject object);", "@Override\n\tpublic String addFoodType(String ftname) {\n\t\treturn ftb.addFoodType(ftname);\n\t}", "Feature createFeature();", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type addNewType();", "public static void addClassifiedFeature(Classification classification, ClassifiedFeature classifiedFeature) {\n Feature feature = classifiedFeature.getFeature();\n boolean containedInView = ClassificationCache.getInstance().isFeatureContainedInView(classification, feature);\n if (containedInView) {\n classification.getClassifiedFeatures().add(classifiedFeature);\n } else {\n classification.getAutoCompleteFeatures().add(classifiedFeature);\n }\n }", "@Override\n\tpublic void add(Object o) {\n\t}", "protected void addTypePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Bean_type_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Bean_type_feature\", \"_UI_Bean_type\"),\n\t\t\t\t BeansPackage.Literals.BEAN__TYPE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "@Nonnull\n @Override\n public FeatureType getCollectionFeatureType() {\n return collectionFeatureType;\n }", "@Override\n public void add(Object o) {\n gameCollection.addElement(o);\n }", "protected void addPoint( SimpleFeature feature, PointMergeOperations mergeOps )\n \t{\n \t\tmergePoint( feature, 0 );\n \t}", "public void add(T word);", "public interface IFeature\n{\n\tGeppettoFeature getType();\n}", "org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature addNewPlanFeature();", "FeatureConcept createFeatureConcept();", "protected void addTypePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_SecuritySchema_type_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_SecuritySchema_type_feature\", \"_UI_SecuritySchema_type\"),\n\t\t\t\t CorePackage.Literals.SECURITY_SCHEMA__TYPE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public boolean add(Type item);", "public void add() {\n }", "public void addFact(Fact param) {\r\n if (localFact == null) {\r\n localFact = new Fact[]{};\r\n }\r\n\r\n\r\n //update the setting tracker\r\n localFactTracker = true;\r\n\r\n\r\n java.util.List list =\r\n org.apache.axis2.databinding.utils.ConverterUtil.toList(localFact);\r\n list.add(param);\r\n this.localFact =\r\n (Fact[]) list.toArray(\r\n new Fact[list.size()]);\r\n\r\n }", "public void add(FavoriteEntity obj)\n {\n super.add(obj);\n }", "public boolean addType(Accessibility pPAccess, String pTName, TypeSpec TS, Location pLocation);", "protected void addTypePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add(new EdgeTypePropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),\n\t\t\t\tgetResourceLocator(), getString(\"_UI_Edge_type_feature\"), getString(\n\t\t\t\t\t\t\"_UI_PropertyDescriptor_description\", \"_UI_Edge_type_feature\",\n\t\t\t\t\t\t\"_UI_Edge_type\"), HenshinPackage.Literals.EDGE__TYPE));\n\t}", "@Override\n\tpublic void add(T e) {\n\t\t\n\t}", "protected void addTypePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Requirement_type_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Requirement_type_feature\", \"_UI_Requirement_type\"),\n\t\t\t\t Y3853992Package.Literals.REQUIREMENT__TYPE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public abstract void addFeatures(Collection<Integer> indices,Predicate pred,Word arg,Integer offset,boolean allWords);", "public void add(int index, Type t);", "boolean removeTypedFeature(StructuralFeature typedFeature);", "Builder addAccessibilityFeature(String value);", "private void setupPrimitiveTypes()\n {\n primitiveTypes.add(INTEGER_TYPE);\n primitiveTypes.add(FLOAT_TYPE);\n primitiveTypes.add(DOUBLE_TYPE);\n primitiveTypes.add(STRING_TYPE);\n primitiveTypes.add(BOOL_TYPE);\n primitiveTypes.add(TIMESTAMP_TYPE);\n }", "public static interface AdditionalFeature {\n\n\t\tString getAdditionalFeature();\n\t}", "public void addFeatureProcessor(String name, FeatureProcessor fp) {\n\tfeatureProcessors.put(name, fp);\n }", "public void addElement(final FeatureElement newElement)\n\t{\n\t\tfeatureElements.add(newElement);\n\t}", "public void add() {\n\t\t\n\t}", "public FeatureCollection() {\n//\t\tif (featureTypes!=null) {\n//\t\t\tavailableFeatureTypes = featureTypes;\n//\t\t}\n\t}", "public void test_addTypedValue_accuracy() {\n instance.addTypedValue(typedValue);\n assertTrue(\"The TypedValue is not added properly.\", instance.containsTypedValue(typedValue));\n }", "public void add(Object o);", "public FeatType getFeatType()\n {\n return m_featType;\n }", "public void add(T toy) {\n // Complete add method with proper argument and method body\n v.add(toy);\n }", "public void add(Object obj) {\n\t\tif (obj instanceof Entity) {\n\t\t\tentities.add((Entity) obj);\n\t\t}\n\t\t\n\t\tif (obj instanceof ICollidable) {\n\t\t\tcollidables.add((ICollidable) obj);\n\t\t}\n\t\t\n\t\tif (obj instanceof IDrawable) {\n\t\t\tdrawables.addFirst((IDrawable) obj);\n\t\t}\n\t}", "public void add();", "public Type addType() {\n\t\tType newType = new Type();\n\t\tgetType().add(newType);\n\t\treturn newType; \n\t}", "public void add(Object value) {\n\n\t}", "public void addToPrimitive(int add) {\n primitiveCounter += add;\n }", "public void add(E obj) {\r\n throw new UnsupportedOperationException();\r\n }", "private void add() {\n\n\t}", "void add(T context);", "public void add() {\n\n }", "IColumnBinding addColumn(EStructuralFeature feature, int width);", "@Override\r\n protected void setPositionType(Collection<? extends Geometry> adds)\r\n {\n }", "public void add(AddOperationContext opContext)\n throws OperationNotSupportedException {\n throw new OperationNotSupportedException(\n MODIFICATION_NOT_ALLOWED_MSG);\n }", "public void add(T element);", "public void add(T element);", "protected void addPersistentTypePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_EntityAttribute_persistentType_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_EntityAttribute_persistentType_feature\", \"_UI_EntityAttribute_type\"),\n\t\t\t\t PersistencePackage.Literals.ENTITY_ATTRIBUTE__PERSISTENT_TYPE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t getString(\"_UI_DatabasePropertyCategory\"),\n\t\t\t\t null));\n\t}", "public abstract void add(T input);", "public void add (T element);", "void addTypedParameter(Parameter typedParameter);", "public void addAttribute(FactAttribute param) {\r\n if (localAttribute == null) {\r\n localAttribute = new FactAttribute[]{};\r\n }\r\n\r\n\r\n //update the setting tracker\r\n localAttributeTracker = true;\r\n\r\n\r\n java.util.List list =\r\n org.apache.axis2.databinding.utils.ConverterUtil.toList(localAttribute);\r\n list.add(param);\r\n this.localAttribute =\r\n (FactAttribute[]) list.toArray(\r\n new FactAttribute[list.size()]);\r\n\r\n }", "public void add( Object obj ) throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"add(Object obj) Not implemented.\" );\n\t\t}", "public void add_(JType value) {\n TH.THTensor_(add)(this, this, value);\n }", "private void addToIndex(SimpleFeature feature) {\n\t\t// ID Index\n\t\tif (idIndex==null) idIndex = new HashMap<String, SimpleFeature>();\n\t\tidIndex.put(feature.getID(), feature);\n\t\t\n\t\t// Type name index\n\t\tif (typeNameIndex==null) typeNameIndex = new HashMap<Name, Set<SimpleFeature>>();\n\t\tName type = feature.getType().getName();\n\t\tSet<SimpleFeature> prev = typeNameIndex.get(type);\n\t\tif (prev==null) prev = new HashSet<SimpleFeature>();\n\t\tprev.add(feature);\n\t\ttypeNameIndex.put(type, prev);\n\t\t\n\t\t// Tile Index\n\t\t// Image features are separated by - and last parts are xref-yref-zoom\n\t\tif (feature.getID().matches(\".*-[0-9]+-[0-9]+-[0-9]+\")) {\n\t\t\tOSMTile tile = new OSMTile(feature.getID());\n\t\t\tprev = tileIndex.get( tile );\n\t\t\tif (prev==null) prev = new HashSet<SimpleFeature>();\n\t\t\tprev.add(feature);\n\t\t\ttileIndex.put(tile, prev);\n\t\t\t\n\t\t} else {\n\t\t\t/* TODO Something for features..?\n\t\t\t * get geometry bounds, calculate tile and insert into relevant index positions?\n\t\t\t * This would then also work for removal...\t */\n\t\t}\n\t\t\n\t}", "Builder addAccessibilityFeature(Text value);", "public abstract Feature<T, ?> convertFeatureCustomType(Feature<T,?> feature);" ]
[ "0.71796066", "0.70305187", "0.68178123", "0.67916924", "0.67225474", "0.6648845", "0.6549793", "0.6400203", "0.63817966", "0.637358", "0.61941576", "0.6169952", "0.6052215", "0.6019844", "0.6019844", "0.601915", "0.60141945", "0.59906626", "0.5945719", "0.5943363", "0.5943363", "0.5918891", "0.59167063", "0.591431", "0.57793134", "0.5755932", "0.57224494", "0.57217664", "0.5674868", "0.5669564", "0.5604877", "0.55842245", "0.5564284", "0.5564284", "0.55538493", "0.5553064", "0.5524592", "0.5500468", "0.54894036", "0.5484566", "0.5461088", "0.5460246", "0.54533863", "0.5451261", "0.54490066", "0.5448572", "0.5433394", "0.5430187", "0.54285216", "0.54254234", "0.54113483", "0.53987944", "0.5394226", "0.53913957", "0.5388691", "0.5363717", "0.5355845", "0.5349785", "0.5342763", "0.53389865", "0.53365904", "0.5333943", "0.53289795", "0.5323941", "0.5313731", "0.5303052", "0.53003335", "0.5290957", "0.5287544", "0.52838016", "0.52767444", "0.5271964", "0.5264652", "0.52545404", "0.5250015", "0.5232674", "0.52298236", "0.52287674", "0.5227467", "0.522678", "0.52248496", "0.52227", "0.5199215", "0.51982296", "0.5194445", "0.51924086", "0.518687", "0.5182492", "0.51781595", "0.51781595", "0.51753604", "0.517527", "0.51681876", "0.5166554", "0.51656246", "0.51654094", "0.5129734", "0.5126391", "0.5123986", "0.5120748" ]
0.830272
0
Removes a typed feature from the collection of the current object.
boolean removeTypedFeature(StructuralFeature typedFeature);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void clearTypedFeatures();", "Feature removeFeature(int index);", "public void removeFeature(Feature f)\n throws ChangeVetoException, BioException;", "public void removeFeature(Feature feature) {\n rows.removeElement(feature);\n }", "void removeFeature(int i);", "void removeFeature(int i);", "boolean removeFeature(Feature feature);", "protected void removeFromIndex(SimpleFeature feature) {\n\t\tif (feature==null) return;\n\t\t\n\t\t// ID Index\n\t\tidIndex.remove( feature.getID() );\n\t\t\n\t\t// Type name index\n\t\tName type = feature.getType().getName();\n\t\tSet<SimpleFeature> prev = typeNameIndex.get(type);\n\t\tif ( prev.remove( feature ) ) {\n\t\t\tif (prev.size()>0) {\n\t\t\t\ttypeNameIndex.put(type,prev);\n\t\t\t} else {\n\t\t\t\ttypeNameIndex.remove(type);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Tile Index\n\t\tif (feature.getID().matches(\".*-[0-9]+-[0-9]+-[0-9]+\")) {\n\t\t\tOSMTile tile = new OSMTile(feature.getID());\n\t\t\tprev = tileIndex.get( tile );\n\t\t\tif ( prev.remove( feature ) ) {\n\t\t\t\tif (prev.size()>0) {\n\t\t\t\t\ttileIndex.put(tile, prev);\n\t\t\t\t} else {\n\t\t\t\t\ttileIndex.remove(type);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t// Whatever for features\n\t\t}\n\t}", "public void removeFromfeatures (org.unitime.timetable.model.RoomFeature roomFeature) {\n \t\tif (null == getFeatures()) \n \t\t\tsetFeatures(new java.util.HashSet());\n \t\tgetFeatures().remove(roomFeature);\n \t}", "public void removeFeatures(Feature[] features) {\n //TODO: remove the features\n }", "@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}", "public void removeFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FEATURE$6, i);\r\n }\r\n }", "public void removeFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FEATURE$6, i);\r\n }\r\n }", "public void remove(Feature f){\n if (debug) logger.info(\"feature removed\");\n int row = fc.indexOf(f);\n fc.remove(f);\n fcLastEdits.clear();\n fcLastEdits.add(f);\n lastEditType = EDIT_REMOVE;\n fireTableRowsDeleted(row,row);\n }", "void removeFeature(FriendPresence friendPresence);", "public void removeFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FEATURE$14, i);\r\n }\r\n }", "public boolean remove(Type t);", "public Object remove();", "void clearFeatures();", "public void removeInputType(IInputType type);", "void deleteFeature(Integer id);", "public void removeByType(long typeId);", "public void clearFeatures() {\n localFeatureVector.clear();\n }", "@Override\r\n \t\tprotected Object removeListItem(EObject object, EStructuralFeature feature, int index) {\n \t\t\tEList<EObject> list = (EList<EObject>)object.eGet(feature);\r\n \t\t\tEObject item = list.get(index);\r\n \t\t\tInputSet inputSet = throwEvent.getInputSet();\r\n \t\t\tif (inputSet.getDataInputRefs().contains(item))\r\n \t\t\t\tinputSet.getDataInputRefs().remove(item);\r\n \t\t\t\r\n \t\t\t// remove Input or Output DataAssociations\r\n \t\t\tList<DataInputAssociation> dataInputAssociations = throwEvent.getDataInputAssociation();\r\n \t\t\tList<DataInputAssociation> removed = new ArrayList<DataInputAssociation>();\r\n \t\t\tfor (DataInputAssociation dia : dataInputAssociations) {\r\n \t\t\t\tif (dia.getTargetRef().equals(item))\r\n \t\t\t\t\tremoved.add(dia);\r\n \t\t\t}\r\n \t\t\tdataInputAssociations.removeAll(removed);\r\n \r\n \t\t\treturn super.removeListItem(object, feature, index);\r\n \t\t}", "public boolean remove(objectType obj);", "Object remove();", "private void deleteFeature(final SimpleFeature feature ) {\n\n\n try {\n //Deletes only if the target is equal to the layer to clip\n if(this.layerToClip.equals(this.targetLayer)){\n FidFilter filter = FILTER_FACTORY.createFidFilter(feature.getID());\n FeatureStore<SimpleFeatureType, SimpleFeature> store = getTargetStore();\n store.removeFeatures(filter);\n }\n\n } catch (IOException e) {\n final String msg = Messages.ClipProcess_failed_deleting;\n LOGGER.severe(msg);\n throw (RuntimeException) new RuntimeException(msg).initCause( e );\n }\n\n }", "public void removeFeatures(Extent ex) {\n //TODO: remove the features\n }", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void removeAll(FeatureCollection featColl){\n if (debug) logger.info(\"collection removed\");\n fc.removeAll(featColl);\n fcLastEdits.clear();\n fcLastEdits.addAll(featColl);\n lastEditType = EDIT_REMOVE;\n fireTableDataChanged();\n }", "public maestro.payloads.FlyerFeaturedItem.Builder clearType() {\n type = null;\n fieldSetFlags()[0] = false;\n return this;\n }", "public void remove(GeometricalObject object);", "@Action( ACTION_REMOVE_FEATURE )\r\n public String doRemoveFeature( HttpServletRequest request )\r\n {\r\n int nId = Integer.parseInt( request.getParameter( PARAMETER_ID_FEATURE ) );\r\n FeatureHome.remove( nId );\r\n addInfo( INFO_FEATURE_REMOVED, getLocale( ) );\r\n\r\n return redirectView( request, VIEW_MANAGE_FEATURES );\r\n }", "@Override\r\n \t\tprotected Object removeListItem(EObject object, EStructuralFeature feature, int index) {\n \t\t\tEList<EObject> list = (EList<EObject>)object.eGet(feature);\r\n \t\t\tEObject item = list.get(index);\r\n \t\t\tOutputSet outputSet = catchEvent.getOutputSet();\r\n \t\t\tif (outputSet.getDataOutputRefs().contains(item))\r\n \t\t\t\toutputSet.getDataOutputRefs().remove(item);\r\n \t\t\t\r\n \t\t\t// remove Input or Output DataAssociations\r\n \t\t\tList<DataOutputAssociation> dataOutputAssociations = catchEvent.getDataOutputAssociation();\r\n \t\t\tList<DataOutputAssociation> removed = new ArrayList<DataOutputAssociation>();\r\n \t\t\tfor (DataOutputAssociation doa : dataOutputAssociations) {\r\n \t\t\t\tif (doa.getTargetRef().equals(item))\r\n \t\t\t\t\tremoved.add(doa);\r\n \t\t\t}\r\n \t\t\tdataOutputAssociations.removeAll(removed);\r\n \r\n \t\t\treturn super.removeListItem(object, feature, index);\r\n \t\t}", "void removePlanFeature(int i);", "@Override\n\tpublic void remove() { }", "public void remove () {}", "@Override\n public void remove() {\n }", "public Type remove(int index);", "public final void removeType(CompositeType type, int index)\n {\n\tif(!type.getIsInferred()) {\n\t listModel.removeElementAt(index);\n\t //System.out.println(\"in TypeManager.removeType, index = \" + index);\n\t}\n\t\n\tindex = -1;\n\tfor (int i = 0; i < allTypes.size(); i++) {\n\t CompositeType otherType = (CompositeType)allTypes.get(i);\n\t if ((otherType.getName()).equals(type.getName())) {\n\t\tindex = i;\n\t }\n\t}\n\t//System.out.println(\"in TypeManager.removeType, vector index = \" + index);\n\t\n\tif (index != -1) {\n\t allTypes.removeElementAt(index);\n\t}\n }", "void remove(GeometricalObject object);", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n public void remove() {\n }", "@Override\n\tpublic void remove(Object o) {\n\t\t\n\t}", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void clear_type(String type) {\n\t\t/* Iterate through draw list */\n\t\tIterator<ArrayList<Drawable>> iter = this.drawlist.iterator();\n\t\twhile(iter.hasNext()) {\n\t\t\tArrayList<Drawable> layer = iter.next();\n\t\t\t/* Iterate through the layer. */\n\t\t\tIterator<Drawable> jter = layer.iterator();\n\t\t\twhile(jter.hasNext()) {\n\t\t\t\tif(jter.next().getType().equals(type)) {\n\t\t\t\t\tjter.remove();\n\t\t\t\t}//fi\n\t\t\t}//elihw\n\t\t}//elihw\n\t}", "void addTypedFeature(StructuralFeature typedFeature);", "public void removeFact(FactNode fn) throws ChangeNotAllowedException {\r\n\r\n FactType ft = getFactType(fn.getTypeName());\r\n if (ft == null) {\r\n return;\r\n }\r\n\r\n ft.getPopulation().removeAssociationsWithSource(fn.getExpressionTreeModel().getSource(), this);\r\n if (ft.getPopulation().size() == 0) {\r\n ft.remove();\r\n publisher.inform(this, \"removedType\", null, ft);\r\n fireListChanged();\r\n }\r\n }", "public void remove(T word);", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "@Override\n public boolean remove(Object o) {\n return gameCollection.remove(o);\n }", "public void removeObject(java.lang.Object object) {}", "@Override\n\t\t\t\tpublic void remove() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "Feature delete(Long featureId);", "public void unsetFacilityType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(FACILITYTYPE$4, 0);\n }\n }", "public void supprimerCollection(){\r\n collection.clear();\r\n }", "public void remove(AnyType x) {\n\t\troot = remove(x, root);\n\t}", "Collection<StructuralFeature> getTypedFeatures();", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\r\n super.remove();\r\n }", "public void removeShape(Shapes obj) {\n \tthis.listShapes.remove(obj);\n \t W.repaint();\n }", "public void remove() {\n\n }", "public void remove( AnyType x )\r\n\t{\r\n\t\troot = remove( x, root );\r\n\t}", "public final void remove () {\r\n }", "public void removeByObject()\r\n\t{\n\t}", "public void remove() {\r\n //\r\n }", "public void removeFactListener(GenericFactListener<Fact> listener);", "public void remove(){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "void unsetType();", "@Override\n\t\tpublic boolean remove(Object o) {\n\t\t\treturn false;\n\t\t}", "public void remove() {\n getMainApplication().showConfirmationDialog(\n new ConfirmDialog.Listener() {\n public void onClose(ConfirmDialog dialog) {\n if (dialog.isConfirmed()) {\n Collection<T> selectedValues = getSelectedValues();\n removeConfirmed(CollectionsUtil.toArray(getType(), selectedValues));\n }\n }\n });\n }", "public void remove(Object obj) {\n\t\tif (obj instanceof Entity) {\n\t\t\tentities.remove(obj);\n\t\t}\n\t\t\n\t\tif (obj instanceof ICollidable) {\n\t\t\tcollidables.remove(obj);\n\t\t}\n\n\t\tif (obj instanceof IDrawable) {\n\t\t\tdrawables.remove(obj);\n\t\t}\n\t}", "public void remove() {\n\t}", "public void remove() {\n\t}", "public void remove() {\n\t\tstopFloating();\t\n\t\tPacketHandler.toggleRedTint(player, false);\n\t\tplayer.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 30, 1));\n\t\tplayer.stopSound(Sound.MUSIC_DISC_CHIRP);\n\t\tcleanTasks();\n\t\tactiveScenarios.remove(player.getUniqueId());\n\t}", "public void removeValue(EObject container, EStructuralFeature structuralFeature, Object value) {\n\t\tDEModelLocker.activateWriter(this);\n\t\t\n\t\ttry {\n\t\t\tEList<?> currentListValue = getManyValueOrFail(container, structuralFeature);\n\t\t\t\n\t\t\t//Schedule remove\n\t\t\tscheduleRemove(container, container, structuralFeature, value);\n\t\t\t\n\t\t\t//Perform remove\n\t\t\tcurrentListValue.remove(value);\n\t\t\t//Remove on opposite reference is performed automatically.\n\t\t} finally {\n\t\t\tDEModelLocker.deactivateWriter(this);\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic void onUnselectFeatures(ControllerEvent event) {\n\n\t\tMapViewer viewer = getViewer();\n\t\tMapContext context = viewer.getConfiguration().getContext();\n\n\t\tselectedFeatureId = null;\n\n\t\tfor (FeatureMapLayer layer : context.getFeatureLayers()) {\n\t\t\tlayer.setSelection(new ArrayList<String>(1));\n\t\t}\n\n\t\tList<String> ids = (List<String>) event.getParams().get(\"featureIds\");\n\t\tif (ids.size() > 0) {\n\t\t\tif (object.getProbleem() instanceof BordProbleem) {\n\t\t\t\t((BordProbleem) object.getProbleem()).setBord(null);\n\t\t\t}\n\n\t\t\tif (object.getProbleem() instanceof NetwerkAnderProbleem) {\n\t\t\t\tobject.setTraject(null);\n\t\t\t}\n\t\t}\n\t}", "public void remove() {\r\n return;\r\n }" ]
[ "0.72323555", "0.6769573", "0.6503713", "0.64561546", "0.6393695", "0.6393695", "0.6360152", "0.63424313", "0.63397735", "0.62950647", "0.62711036", "0.624224", "0.624224", "0.62354106", "0.6192102", "0.6185546", "0.61823267", "0.6143004", "0.6131072", "0.6117891", "0.6111218", "0.604275", "0.6007837", "0.59708714", "0.59525657", "0.592863", "0.5910436", "0.5876934", "0.58724314", "0.58724314", "0.58724314", "0.58724314", "0.58724314", "0.5844844", "0.58388674", "0.58037996", "0.57952124", "0.57791424", "0.57588124", "0.575277", "0.575039", "0.5748906", "0.5747237", "0.5721554", "0.5707999", "0.5705068", "0.5705068", "0.5696871", "0.56851065", "0.5669709", "0.5669709", "0.5669709", "0.5666908", "0.56617504", "0.56530744", "0.56504774", "0.56425595", "0.56425595", "0.56365347", "0.56332433", "0.56238496", "0.5622943", "0.5622943", "0.5622943", "0.5622943", "0.5622943", "0.5622943", "0.5622943", "0.5622943", "0.5621126", "0.5618366", "0.56117207", "0.5609878", "0.5606397", "0.56005216", "0.56005216", "0.56005216", "0.56005216", "0.56005216", "0.56005216", "0.56005216", "0.55986345", "0.55985343", "0.5593828", "0.5593539", "0.5576111", "0.557188", "0.5533384", "0.5531482", "0.55290747", "0.55191314", "0.5505391", "0.5497799", "0.54904723", "0.5481223", "0.5481223", "0.5475982", "0.54662454", "0.5465443", "0.54638463" ]
0.793136
0
Removes all the objects of type "typed feature" from the collection of the current object.
void clearTypedFeatures();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean removeTypedFeature(StructuralFeature typedFeature);", "void clearFeatures();", "Collection<StructuralFeature> getTypedFeatures();", "public void clearFeatures() {\n localFeatureVector.clear();\n }", "public final void removeAllCompositeTypes()\n {\n listModel.removeAllElements();\n\tallTypes.removeAllElements();\n }", "private void removeAllObjects()\n {\n removeObjects (getObjects(Actor.class));\n }", "@Override\n\tpublic void clear() {\n\t\tsuper.clear();\n\t\tidIndex = new HashMap<String, SimpleFeature>();\n\t\ttypeNameIndex = new HashMap<Name, Set<SimpleFeature>>();\n\t\ttileIndex = new HashMap<OSMTile, Set<SimpleFeature>>();\n\t}", "public void removeAllAnnotationTypes() {\n \t\tfConfiguredAnnotationTypes.clear();\n \t\tfAllowedAnnotationTypes.clear();\n \t\tfConfiguredHighlightAnnotationTypes.clear();\n \t\tfAllowedHighlightAnnotationTypes.clear();\n \t\tif (fTextInputListener != null) {\n \t\t\tfSourceViewer.removeTextInputListener(fTextInputListener);\n \t\t\tfTextInputListener= null;\n \t\t}\n \t}", "public void removeFeatures(Feature[] features) {\n //TODO: remove the features\n }", "public static void clearAllTileTypes(){\n\t\tTileType.allTileTypes.clear();\n\t}", "public void clear() {\n\t\tthis.boundObjects.clear();\n\t}", "public void clear()\r\n {\r\n this.boundObjects.clear();\r\n }", "private void finalizeOutOfTypeSystemFeatures() {\n // remap ref features\n for (List<Pair<String, Object>> attrs : outOfTypeSystemData.extraFeatureValues.values()) {\n for (Pair<String, Object> p : attrs) {\n String sv = (p.u instanceof String) ? (String) p.u : \"\";\n if (p.t.startsWith(\"_ref_\")) {\n int val = Integer.parseInt(sv);\n if (val >= 0) // negative numbers represent null and are left unchanged\n {\n // attempt to locate target in type system\n FSInfo fsValInfo = fsTree.get(val);\n if (fsValInfo != null) {\n p.u = fsValInfo.fs;\n } else\n // out of type system - remap by prepending letter\n {\n p.u = \"a\" + val;\n }\n }\n }\n }\n }\n }", "public void clear_type(String type) {\n\t\t/* Iterate through draw list */\n\t\tIterator<ArrayList<Drawable>> iter = this.drawlist.iterator();\n\t\twhile(iter.hasNext()) {\n\t\t\tArrayList<Drawable> layer = iter.next();\n\t\t\t/* Iterate through the layer. */\n\t\t\tIterator<Drawable> jter = layer.iterator();\n\t\t\twhile(jter.hasNext()) {\n\t\t\t\tif(jter.next().getType().equals(type)) {\n\t\t\t\t\tjter.remove();\n\t\t\t\t}//fi\n\t\t\t}//elihw\n\t\t}//elihw\n\t}", "public void removeAll(FeatureCollection featColl){\n if (debug) logger.info(\"collection removed\");\n fc.removeAll(featColl);\n fcLastEdits.clear();\n fcLastEdits.addAll(featColl);\n lastEditType = EDIT_REMOVE;\n fireTableDataChanged();\n }", "public static void clearTypes() {\n OBJECT = null;\n METHOD = null;\n METHOD_TABLE = null;\n CAST_EXCEPTION = null;\n INDEX_OUT_OF_BOUNDS_EXCEPTION = null;\n UNEXPECTED_NULL_EXCEPTION = null;\n INTERFACE_CREATE_EXCEPTION = null;\n ASSERT_EXCEPTION = null;\n CLASS = null;\n ARRAY = null;\n ARRAY_NULLABLE = null;\n ENUM = null;\n ATTRIBUTE = null;\n EXCEPTION = null;\n GENERIC_CLASS = null;\n BOOLEAN = null;\n BYTE = null;\n CODE = null;\n DOUBLE = null;\n FLOAT = null;\n INT = null;\n LONG = null;\n SHORT = null;\n UBYTE = null;\n UINT = null;\n ULONG = null;\n USHORT = null;\n STRING = null;\n ADDRESS_MAP = null;\n CAN_COMPARE = null;\n CAN_EQUAL = null;\n CAN_INDEX = null;\n CAN_INDEX_NULLABLE = null;\n CAN_INDEX_STORE = null;\n CAN_INDEX_STORE_NULLABLE = null;\n CAN_ITERATE = null;\n CAN_ITERATE_NULLABLE = null;\n ITERATOR = null;\n ITERATOR_NULLABLE = null;\n NUMBER = null;\n INTEGER = null;\n CAN_ADD = null;\n CAN_SUBTRACT = null;\n CAN_MULTIPLY = null;\n CAN_DIVIDE = null;\n CAN_MODULUS = null;\n CAN_NEGATE = null;\n\n POINTER = null;\n CAN_RUN = null;\n THREAD = null;\n\n THREAD_CURRENT = null;\n\n exceptionType = null;\n\n AttributeType.clearTypes();\n }", "public void removeAllContentType() {\r\n\t\tBase.removeAll(this.model, this.getResource(), CONTENTTYPE);\r\n\t}", "public void removeAllFileType() {\r\n\t\tBase.removeAll(this.model, this.getResource(), FILETYPE);\r\n\t}", "public void removeAllGeneralEncapsulatedObject() {\r\n\t\tBase.removeAll(this.model, this.getResource(), GENERALENCAPSULATEDOBJECT);\r\n\t}", "void addTypedFeature(StructuralFeature typedFeature);", "public maestro.payloads.FlyerFeaturedItem.Builder clearType() {\n type = null;\n fieldSetFlags()[0] = false;\n return this;\n }", "@Override\n public synchronized Set<FeatureType> getFeatures() {\n return features = nonNullSet(features, FeatureType.class);\n }", "void removeFeature(int i);", "void removeFeature(int i);", "public void clearPolymorphismType() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "protected void clearResolvedObjects() {\n\t\ttype = null;\n\t\tmanagedType = null;\n\t\ttypeDeclaration = null;\n\t}", "@Override\n public void clear() {\n loadedClasses.clear();\n }", "public void clearSpecies() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "void unsetType();", "public void unsetMemberTypes()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(MEMBERTYPES$2);\n }\n }", "@Override\n public synchronized Set<FeatureType> getFeatureInstances() {\n return featureInstances = nonNullSet(featureInstances, FeatureType.class);\n }", "protected void clearData() {\n any.type(any.type());\n }", "@Override\n public void removeAll(){\n gameCollection.removeAllElements();\n }", "@UML(identifier=\"featureType\", obligation=OPTIONAL, specification=ISO_19139)\n Collection<? extends LocalName> getFeatureTypes();", "public void removeAllFightsystems()\r\n {\n\r\n }", "protected void removeFromIndex(SimpleFeature feature) {\n\t\tif (feature==null) return;\n\t\t\n\t\t// ID Index\n\t\tidIndex.remove( feature.getID() );\n\t\t\n\t\t// Type name index\n\t\tName type = feature.getType().getName();\n\t\tSet<SimpleFeature> prev = typeNameIndex.get(type);\n\t\tif ( prev.remove( feature ) ) {\n\t\t\tif (prev.size()>0) {\n\t\t\t\ttypeNameIndex.put(type,prev);\n\t\t\t} else {\n\t\t\t\ttypeNameIndex.remove(type);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Tile Index\n\t\tif (feature.getID().matches(\".*-[0-9]+-[0-9]+-[0-9]+\")) {\n\t\t\tOSMTile tile = new OSMTile(feature.getID());\n\t\t\tprev = tileIndex.get( tile );\n\t\t\tif ( prev.remove( feature ) ) {\n\t\t\t\tif (prev.size()>0) {\n\t\t\t\t\ttileIndex.put(tile, prev);\n\t\t\t\t} else {\n\t\t\t\t\ttileIndex.remove(type);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t// Whatever for features\n\t\t}\n\t}", "public void supprimerCollection(){\r\n collection.clear();\r\n }", "void clearTypedParameters();", "public void clear() {\n\t\tnegatedConcepts.clear();\n\t\tnegex.clear();\n\t\tconcepts.clear();\n\t}", "public boolean remove(objectType obj);", "public void clearShapes() {\n\t\tcollectionOfNodes.clear();\n\t}", "@Override\n\tpublic void clear() throws ObjectStoreException {\n\t\t\n\t}", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder clearIntrospectionType() {\n introspectionType = null;\n fieldSetFlags()[17] = false;\n return this;\n }", "Feature removeFeature(int index);", "public void clear() {\n \tthis.listShapes.clear();\n }", "public void clear() {collection.clear();}", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (ItemTypeCategory itemTypeCategory : findAll()) {\n\t\t\tremove(itemTypeCategory);\n\t\t}\n\t}", "public void removeByType(long typeId);", "public void clear() {\n\t\twordList.removeAll(wordList);\n\t\t// TODO Add your code here\n\t}", "public void removeAllcast() {\n\t\tif(this.cast != null)\n\t\t\tthis.cast.clear();\n\t}", "public void test_clearTypedValues_accuracy() {\n instance.addTypedValue(typedValue);\n assertTrue(\"The TypedValue is not added properly.\", instance.containsTypedValue(typedValue));\n\n instance.clearTypedValues();\n assertFalse(\"The TypedValue is not removed properly.\", instance.containsTypedValue(typedValue));\n }", "public void deselectObjects() {\n if (contextMenu != null) {\n contextMenu.hide();\n contextMenu = null;\n }\n\n // Deselect all objects\n objectsProperty.stream().forEach(ov -> ov.setSelected(false));\n hintsProperty.stream().forEach(hv -> hv.setSelected(false));\n }", "public void clearCollected(){\n\t\tcollected.clear();\n\t}", "public void removeByObject()\r\n\t{\n\t}", "public abstract List<QualifiedName> getAffectedFeatureTypes();", "boolean containsTypedFeature(StructuralFeature typedFeature);", "public void removeFromfeatures (org.unitime.timetable.model.RoomFeature roomFeature) {\n \t\tif (null == getFeatures()) \n \t\t\tsetFeatures(new java.util.HashSet());\n \t\tgetFeatures().remove(roomFeature);\n \t}", "public void removeAll(Object o) {\r\n\t\t//so lange das Objekt entfernen bis es nicht mehr drin ist\r\n\t\twhile(contains(o)) {\r\n\t\t\tremove(o);\r\n\t\t}\r\n\t}", "public void removeInputType(IInputType type);", "public void clear() {\n\t\tcollection.clear();\n\t}", "public void clearAuxClasss();", "public void clear() {\n\t\t//Kill all entities\n\t\tentities.parallelStream().forEach(e -> e.kill());\n\n\t\t//Clear the lists\n\t\tentities.clear();\n\t\tdrawables.clear();\n\t\tcollidables.clear();\n\t}", "public static void clearCache() {\r\n types = null;\r\n typesById = null;\r\n updatedBuiltinTypes = false;\r\n ChangeLogTypeBuiltin.internal_clearCache();\r\n }", "public void removeFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FEATURE$6, i);\r\n }\r\n }", "public void removeFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FEATURE$6, i);\r\n }\r\n }", "private void clearCollection() {\n \n collection_ = getDefaultInstance().getCollection();\n }", "@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}", "public void removeAllMediaType() {\r\n\t\tBase.removeAll(this.model, this.getResource(), MEDIATYPE);\r\n\t}", "@Override\r\n \t\tprotected Object removeListItem(EObject object, EStructuralFeature feature, int index) {\n \t\t\tEList<EObject> list = (EList<EObject>)object.eGet(feature);\r\n \t\t\tEObject item = list.get(index);\r\n \t\t\tInputSet inputSet = throwEvent.getInputSet();\r\n \t\t\tif (inputSet.getDataInputRefs().contains(item))\r\n \t\t\t\tinputSet.getDataInputRefs().remove(item);\r\n \t\t\t\r\n \t\t\t// remove Input or Output DataAssociations\r\n \t\t\tList<DataInputAssociation> dataInputAssociations = throwEvent.getDataInputAssociation();\r\n \t\t\tList<DataInputAssociation> removed = new ArrayList<DataInputAssociation>();\r\n \t\t\tfor (DataInputAssociation dia : dataInputAssociations) {\r\n \t\t\t\tif (dia.getTargetRef().equals(item))\r\n \t\t\t\t\tremoved.add(dia);\r\n \t\t\t}\r\n \t\t\tdataInputAssociations.removeAll(removed);\r\n \r\n \t\t\treturn super.removeListItem(object, feature, index);\r\n \t\t}", "public void removeAllInterpretedBy() {\r\n\t\tBase.removeAll(this.model, this.getResource(), INTERPRETEDBY);\r\n\t}", "public void clear() {\n this.layers.clear();\n list.clear();\n }", "public void removeAll(Object element);", "public void removeFeatures(Extent ex) {\n //TODO: remove the features\n }", "@Override\n public void clear() {\n for (E e : this) {\n remove(e);\n }\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic void onUnselectFeatures(ControllerEvent event) {\n\n\t\tMapViewer viewer = getViewer();\n\t\tMapContext context = viewer.getConfiguration().getContext();\n\n\t\tselectedFeatureId = null;\n\n\t\tfor (FeatureMapLayer layer : context.getFeatureLayers()) {\n\t\t\tlayer.setSelection(new ArrayList<String>(1));\n\t\t}\n\n\t\tList<String> ids = (List<String>) event.getParams().get(\"featureIds\");\n\t\tif (ids.size() > 0) {\n\t\t\tif (object.getProbleem() instanceof BordProbleem) {\n\t\t\t\t((BordProbleem) object.getProbleem()).setBord(null);\n\t\t\t}\n\n\t\t\tif (object.getProbleem() instanceof NetwerkAnderProbleem) {\n\t\t\t\tobject.setTraject(null);\n\t\t\t}\n\t\t}\n\t}", "public void remove(GeometricalObject object);", "public synchronized void unRegisterAll()\r\n {\r\n clearNameObjectMaps();\r\n }", "public void remove(Object obj) {\n\t\tif (obj instanceof Entity) {\n\t\t\tentities.remove(obj);\n\t\t}\n\t\t\n\t\tif (obj instanceof ICollidable) {\n\t\t\tcollidables.remove(obj);\n\t\t}\n\n\t\tif (obj instanceof IDrawable) {\n\t\t\tdrawables.remove(obj);\n\t\t}\n\t}", "@Override\n\tpublic void clearAll() {\n\t\t\n\t}", "public void removeFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FEATURE$14, i);\r\n }\r\n }", "public void clearGame() {\n\t\tselectedObjects.clear();\n\t}", "@Override\r\n \t\tprotected Object removeListItem(EObject object, EStructuralFeature feature, int index) {\n \t\t\tEList<EObject> list = (EList<EObject>)object.eGet(feature);\r\n \t\t\tEObject item = list.get(index);\r\n \t\t\tOutputSet outputSet = catchEvent.getOutputSet();\r\n \t\t\tif (outputSet.getDataOutputRefs().contains(item))\r\n \t\t\t\toutputSet.getDataOutputRefs().remove(item);\r\n \t\t\t\r\n \t\t\t// remove Input or Output DataAssociations\r\n \t\t\tList<DataOutputAssociation> dataOutputAssociations = catchEvent.getDataOutputAssociation();\r\n \t\t\tList<DataOutputAssociation> removed = new ArrayList<DataOutputAssociation>();\r\n \t\t\tfor (DataOutputAssociation doa : dataOutputAssociations) {\r\n \t\t\t\tif (doa.getTargetRef().equals(item))\r\n \t\t\t\t\tremoved.add(doa);\r\n \t\t\t}\r\n \t\t\tdataOutputAssociations.removeAll(removed);\r\n \r\n \t\t\treturn super.removeListItem(object, feature, index);\r\n \t\t}", "private void tryRemoveAllFactoryObjects(final FactoryInternal factory)\n {\n for (FactoryObjectInternal object: getRegistry().getObjectsByProductType(factory.getProductType()))\n {\n try\n {\n getRegistry().removeObject(object.getUuid());\n factory.dispose(object.getProxy()); \n }\n catch (final Exception e)\n {\n m_Logging.error(e, \"Unable to remove all factory objects of product type [%s]\", \n factory.getProductType());\n }\n }\n }", "public Object remove();", "public FeatureCollection() {\n//\t\tif (featureTypes!=null) {\n//\t\t\tavailableFeatureTypes = featureTypes;\n//\t\t}\n\t}", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "public void removeType(TradeItem someItem) {\n Iterator<TradeItem> itemIterator = items.iterator();\n while (itemIterator.hasNext()) {\n if (itemIterator.next().getClass() == someItem.getClass()) {\n itemIterator.remove();\n }\n }\n }" ]
[ "0.7353476", "0.6666429", "0.6652265", "0.6564511", "0.64311266", "0.61388063", "0.61257553", "0.601239", "0.5995912", "0.59800035", "0.5914625", "0.5903474", "0.5833299", "0.58216804", "0.57834625", "0.5719622", "0.56995386", "0.5698796", "0.56941813", "0.5688209", "0.5676407", "0.567345", "0.56619453", "0.56619453", "0.5647961", "0.562432", "0.5617372", "0.5615648", "0.5601446", "0.5597018", "0.55951166", "0.55325043", "0.55188674", "0.5515288", "0.5488378", "0.5487634", "0.54715425", "0.54601675", "0.5438896", "0.5435303", "0.5434697", "0.5428637", "0.5426348", "0.5421419", "0.54133576", "0.54063505", "0.5393183", "0.5393183", "0.5393183", "0.5393183", "0.5393183", "0.5393183", "0.5393183", "0.5393183", "0.5393183", "0.5393183", "0.5393183", "0.5393183", "0.5392303", "0.5392069", "0.5386827", "0.5381141", "0.53722245", "0.5370911", "0.5352966", "0.5349074", "0.53486305", "0.5341345", "0.53266156", "0.5323646", "0.5313155", "0.52930677", "0.5290131", "0.5280195", "0.52747524", "0.52738285", "0.52738285", "0.5272322", "0.526896", "0.52667236", "0.5265772", "0.52514786", "0.524268", "0.5240012", "0.52381593", "0.5235129", "0.5229038", "0.5220954", "0.52067524", "0.52052295", "0.52049154", "0.51999456", "0.51986456", "0.51927006", "0.5190889", "0.51883996", "0.5186503", "0.5185254", "0.5185254", "0.51847893" ]
0.81337386
0
Gets all the objects of type "typed feature" previously added to the collection of the current object. Additions and removals of elements to and from the returned collection do not change the state of current object (i.e. the returned collection is a copy of the internal one of the current object). However, if an element contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the returned collections share references to the same objects).
Collection<StructuralFeature> getTypedFeatures();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public synchronized Set<FeatureType> getFeatures() {\n return features = nonNullSet(features, FeatureType.class);\n }", "@Override\n public synchronized Set<FeatureType> getFeatureInstances() {\n return featureInstances = nonNullSet(featureInstances, FeatureType.class);\n }", "public abstract List<QualifiedName> getAffectedFeatureTypes();", "@UML(identifier=\"featureType\", obligation=OPTIONAL, specification=ISO_19139)\n Collection<? extends LocalName> getFeatureTypes();", "void addTypedFeature(StructuralFeature typedFeature);", "public Iterator<SimpleFeature> getFeatures() {\n \treturn this.iterator();\n }", "List<Feature> getFeatures();", "void clearTypedFeatures();", "public List<SimpleFeatureType> getCurrentTypes() {\n \tList<SimpleFeatureType> ret = new ArrayList<SimpleFeatureType>();\n \tfor (Set<SimpleFeature> s : typeNameIndex.values()) {\n \t\tif (s.size()>0) {\n \t\t\tret.add( s.iterator().next().getFeatureType() );\n \t\t}\n \t}\n \treturn ret;\n }", "public FeatureCollection<SimpleFeatureType,SimpleFeature> getCollection() {\n return (SimpleFeatureCollection) collection;\n }", "public FeatureSet getFeatures() {\n\treturn features;\n }", "@Nonnull\n @Override\n public FeatureType getCollectionFeatureType() {\n return collectionFeatureType;\n }", "@Nonnull\r\n public Set<Feature> getFeatures() {\r\n return features;\r\n }", "public java.util.List getFeature() \n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{ \t\n \t\tList list = instance.getFeature(this.refMofId());\n \t\tlist.addAll(super_getFeature());\n \t\t\n \t\treturn list; \t\t\n \t}\n \n \treturn super_getFeature();\n }", "java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList();", "java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList();", "public List<IDataSet> extractAll(String featureType);", "Collect getColl();", "public final native GEFeatureContainer getFeatures() /*-{\r\n\t\treturn this.getFeatures();\r\n\t}-*/;", "protected Vector getFeatureSet()\n {\n // get the superclass' vector\n Vector v = super.getFeatureSet();\n\n // add the features\n\n // return the vector\n return v;\n }", "java.util.List<iet.distributed.telemetry.Feature> \n getFeatureList();", "public Collection<GObject> getObjects();", "public java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList()\r\n {\r\n final class FeatureList extends java.util.AbstractList<org.landxml.schema.landXML11.FeatureDocument.Feature>\r\n {\r\n public org.landxml.schema.landXML11.FeatureDocument.Feature get(int i)\r\n { return SurfaceImpl.this.getFeatureArray(i); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature set(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = SurfaceImpl.this.getFeatureArray(i);\r\n SurfaceImpl.this.setFeatureArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n { SurfaceImpl.this.insertNewFeature(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature remove(int i)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = SurfaceImpl.this.getFeatureArray(i);\r\n SurfaceImpl.this.removeFeature(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return SurfaceImpl.this.sizeOfFeatureArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new FeatureList();\r\n }\r\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(FEATURE$6, targetList);\r\n org.landxml.schema.landXML11.FeatureDocument.Feature[] result = new org.landxml.schema.landXML11.FeatureDocument.Feature[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(FEATURE$6, targetList);\r\n org.landxml.schema.landXML11.FeatureDocument.Feature[] result = new org.landxml.schema.landXML11.FeatureDocument.Feature[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(FEATURE$14, targetList);\r\n org.landxml.schema.landXML11.FeatureDocument.Feature[] result = new org.landxml.schema.landXML11.FeatureDocument.Feature[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "public Set<Type> getSubTypes() {\r\n\t\tfinal Set<Type> subTypes = this.createSubTypes();\r\n\r\n\t\tfinal Set<Type> merged = new HashSet<Type>();\r\n\t\tmerged.addAll(subTypes);\r\n\t\tmerged.addAll(this.getNewSubTypes());\r\n\r\n\t\treturn Collections.unmodifiableSet(merged);\r\n\t}", "protected Set<NewType> getNewSubTypes() {\r\n\t\tfinal Set<NewType> subTypes = new HashSet<NewType>();\r\n\r\n\t\tfinal GeneratorContext context = this.getGeneratorContext();\r\n\t\tfinal Iterator<NewType> newTypesIterator = context.getNewTypes().iterator();\r\n\r\n\t\twhile (newTypesIterator.hasNext()) {\r\n\t\t\tfinal NewType newType = newTypesIterator.next();\r\n\t\t\tif (newType.getSuperType() == this) {\r\n\t\t\t\tsubTypes.add(newType);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn subTypes;\r\n\t}", "public Set<TypeDescriptor> getAllRelatedTypes() {\n final var types = getTypeParameters().stream()\n .flatMap(type -> type.getAllRelatedTypes().stream())\n .collect(Collectors.toCollection(HashSet::new));\n\n types.add(this);\n return types;\n }", "Collection<Feature> getReference();", "public Set<String> getFeatures();", "public java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList()\r\n {\r\n final class FeatureList extends java.util.AbstractList<org.landxml.schema.landXML11.FeatureDocument.Feature>\r\n {\r\n public org.landxml.schema.landXML11.FeatureDocument.Feature get(int i)\r\n { return IntersectionImpl.this.getFeatureArray(i); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature set(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = IntersectionImpl.this.getFeatureArray(i);\r\n IntersectionImpl.this.setFeatureArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n { IntersectionImpl.this.insertNewFeature(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature remove(int i)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = IntersectionImpl.this.getFeatureArray(i);\r\n IntersectionImpl.this.removeFeature(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return IntersectionImpl.this.sizeOfFeatureArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new FeatureList();\r\n }\r\n }", "List<IFeature> getFeatureList();", "public Collection getAllAuxClasss();", "@Pure\n\tprotected TypeReferences getTypeReferences() {\n\t\treturn this.typeReferences;\n\t}", "public Collection getRegisteredObjects() {\n return usedByObjects;\n }", "@SuppressWarnings(\"rawtypes\")\n\tfinal public List<Class<? extends Feature>> getFeatureClasses(String name) {\n\t\treturn this.featureClasses.get(name);\n\t}", "public Collection<T> mo29734a() {\n return new ArrayList();\n }", "public java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList()\r\n {\r\n final class FeatureList extends java.util.AbstractList<org.landxml.schema.landXML11.FeatureDocument.Feature>\r\n {\r\n public org.landxml.schema.landXML11.FeatureDocument.Feature get(int i)\r\n { return GPSSetupImpl.this.getFeatureArray(i); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature set(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = GPSSetupImpl.this.getFeatureArray(i);\r\n GPSSetupImpl.this.setFeatureArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n { GPSSetupImpl.this.insertNewFeature(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature remove(int i)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = GPSSetupImpl.this.getFeatureArray(i);\r\n GPSSetupImpl.this.removeFeature(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return GPSSetupImpl.this.sizeOfFeatureArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new FeatureList();\r\n }\r\n }", "public FeatureCollection() {\n//\t\tif (featureTypes!=null) {\n//\t\t\tavailableFeatureTypes = featureTypes;\n//\t\t}\n\t}", "public List<? extends IFlexoOntologyFeatureAssociation<TA>> getStructuralFeatureAssociations();", "java.util.List<? extends iet.distributed.telemetry.FeatureOrBuilder> \n getFeatureOrBuilderList();", "@Override\n\tpublic Set<T> retrieveAllItems() {\n\t\treturn cache;\n\t}", "boolean containsTypedFeature(StructuralFeature typedFeature);", "private Collection<TypeDeclaration> getAllTypes() {\n if (allTypes != null) {\n return allTypes;\n }\n allTypes = new ArrayList<TypeDeclaration>();\n for (Symbol s : getMembers(false)) {\n allTypes.add(env.declMaker.getTypeDeclaration((ClassSymbol) s));\n }\n return allTypes;\n }", "public MyRectangle[] getFeature() {\n return rectangles;\n }", "Collection<? extends Object> getFullHadith();", "public Object getUnderlyingObject() {\n return feature;\n }", "public Set<SimpleFeature> getFeatures(Name name) throws Exception {\n\t\tif (typeNameIndex.get(name)==null) throw new Exception(\"Type not found\");\n\t\treturn typeNameIndex.get(name);\n\t}", "@DerivedProperty\n\t\nSet<CtTypeReference<?>> getReferencedTypes();", "@Pure\n\tprotected Primitives getPrimitiveTypes() {\n\t\treturn this.primitives;\n\t}", "public List getTheObjects() {\r\n if (theObjects == null) {\r\n setTheObjects(new Vector());\r\n }\r\n return theObjects;\r\n }", "ISet<Class<?>> collectAllTypeWiredServices();", "public FeatureCollection getLastEditedFeatures(){\n return fcLastEdits;\n }", "public List<Type> getAll();", "public Collection<T> readAll();", "@Override\n\tpublic boolean addAll(Collection<? extends SimpleFeature> collection) {\n\t\tboolean ret = super.addAll(collection);\n\t\tfor (SimpleFeature f : collection) {\n\t\t\taddToIndex(f);\n\t\t}\n\t\treturn ret;\n\t}", "@Override\n public Vector<Type> getDirectlySubsumedTypes(Type type) {\n return new Vector<>(getDirectSubtypes(type));\n }", "@Override\n\tpublic List<FoodType> FindAllType() {\n\t\treturn ftb.FindAllType();\n\t}", "public Set<ObjRef> getAddedRefs() {\n return Sets.newHashSet(addedObjRefToLineageRefs.keySet());\n }", "public List<TypeObjet> getTypesObjets() {\n\t\treturn null;\n\t}", "public void addFeatures(@Nonnull Collection<Feature> f) {\r\n features.addAll(f);\r\n }", "public Feature[] getFeatures() {\n Feature[] features = new Feature[rows.size()];\n for(int i=0;i<features.length;i++){\n features[i] = (Feature)rows.elementAt(i);\n }\n return features;\n }", "public List<CoreLayerType> findAllCoreLayerTypes() {\r\n\t\t// sparql\r\n\t\tString sparql = \"SELECT ?coreLayerType WHERE {?coreLayerType rdfs:subClassOf onto:CoreLayerType.}\";\r\n\t\t// test\r\n\t\tString jsonString = findJsonResult(sparql);\r\n\t\tSystem.out.println(\"findAllCoreLayerTypes:\" + jsonString);\r\n\t\t// result\r\n\t\tJSONObject json;\r\n\t\ttry {\r\n\t\t\tjson = new JSONObject(jsonString);\r\n\t\t\tJSONArray jsonArray = json.getJSONObject(\"results\").getJSONArray(\"bindings\");\r\n\t\t\tList<CoreLayerType> list = new ArrayList<CoreLayerType>();\r\n\t\t\tfor (int i = 0; i < jsonArray.length(); i++) {\r\n\t\t\t\tJSONObject jsonObject = (JSONObject) jsonArray.get(i);\r\n\t\t\t\tCoreLayerType coreLayerType = new CoreLayerType();\r\n\t\t\t\tif (jsonObject.has(\"coreLayerType\")) {\r\n\t\t\t\t\tcoreLayerType.setCoreLayerTypeName(\r\n\t\t\t\t\t\t\tjsonObject.getJSONObject(\"coreLayerType\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tlist.add(coreLayerType);\r\n\t\t\t}\r\n\t\t\treturn list;\r\n\t\t} catch (JSONException 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}", "@Override\n public List<FeatureId> addFeatures(\n FeatureCollection<SimpleFeatureType, SimpleFeature> collection) throws IOException {\n TransformFeatureCollectionWrapper transformed = new TransformFeatureCollectionWrapper(collection, invertedTransformer);\n return store.addFeatures(transformed);\n\n // TODO: re-shape feature ids...\n }", "<T> void lookupAll(Class<T> type, Collection<T> out);", "Collection<T> getSimpleModelObjects();", "UsedTypes getTypes();", "List<? extends HasListBox> getAllDataTypes();", "T[] getObjects() {\n\t\treturn this.array;\n\t}", "public Iterator<IEventType<T>> getDeepSuperTypes();", "Collection<? extends WrappedIndividual> getHas();", "@Override\n public AbstractObjectIterator<LocalAbstractObject> provideObjects() {\n return getAllObjects();\n }", "public List<I> get() {\n synchronized (refs) {\n List<I> res = new ArrayList<>();\n for (Iterator<WeakReference<I>> iterator = refs.iterator(); iterator.hasNext(); ) {\n WeakReference<I> ref = iterator.next();\n I instance = ref.get();\n if (instance == null) {\n iterator.remove();\n } else {\n res.add(instance);\n }\n }\n return res;\n }\n }", "@SuppressWarnings(\"unchecked\")\n public Collection<T> getWithinQuad(long quad) {\n ArrayList<Object> result = new ArrayList<Object>();\n root.addDescendantsWithinQuad(this, quad, result);\n return (ArrayList<T>) result;\n }", "public ArrayList<EplusObject> getObjects() {\n\t\treturn objects;\n\t}", "java.util.List<java.lang.String> getFeaturesList();", "public List<FunctionalLayerType> findAllFunctionalLayerTypes() {\r\n\t\t// sparql\r\n\t\tString sparql = \"SELECT ?functionalLayerType WHERE {?functionalLayerType rdfs:subClassOf onto:FunctionalLayer.}\";\r\n\t\t// test\r\n\t\tString jsonString = findJsonResult(sparql);\r\n\t\tSystem.out.println(\"findAllFunctionalLayerTypes:\" + jsonString);\r\n\t\t// result\r\n\t\tJSONObject json;\r\n\t\ttry {\r\n\t\t\tjson = new JSONObject(jsonString);\r\n\t\t\tJSONArray jsonArray = json.getJSONObject(\"results\").getJSONArray(\"bindings\");\r\n\t\t\tList<FunctionalLayerType> list = new ArrayList<FunctionalLayerType>();\r\n\t\t\tfor (int i = 0; i < jsonArray.length(); i++) {\r\n\t\t\t\tJSONObject jsonObject = (JSONObject) jsonArray.get(i);\r\n\t\t\t\tFunctionalLayerType functinalLayerType = new FunctionalLayerType();\r\n\t\t\t\tif (jsonObject.has(\"functionalLayerType\")) {\r\n\t\t\t\t\tfunctinalLayerType.setFunctionalLayerTypeName(\r\n\t\t\t\t\t\t\tjsonObject.getJSONObject(\"functionalLayerType\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tlist.add(functinalLayerType);\r\n\t\t\t}\r\n\t\t\treturn list;\r\n\t\t} catch (JSONException 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}", "public List<String> getFeatures() {\n return features;\n }", "boolean removeTypedFeature(StructuralFeature typedFeature);", "public Map<String, AClassDecl> basicClasses() {\n\t\tLinkedList<PFeature> featList;\n\t\tLinkedList<PFormal> formalList;\n\t\tPFeature pf;\n\t\t\n\t\tfeatList = new LinkedList<PFeature>();\n\t\t\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"abort\"),\n\t\t\t\tnew LinkedList<PFormal>(),\n\t\t\t\tnew TTypeId(\"Object\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\t\t\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"type_name\"),\n\t\t\t\tnew LinkedList<PFormal>(),\n\t\t\t\tnew TTypeId(\"String\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\n\t\tfeatList.add(pf);\n\t\t\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"copy\"),\n\t\t\t\tnew LinkedList<PFormal>(),\n\t\t\t\tnew TTypeId(\"SELF_TYPE\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\n\t\tfeatList.add(pf);\n\t\t\n\t\tAClassDecl ObjectClass = new AClassDecl(\n\t\t\t\tnew TTypeId(\"Object\"),\n\t\t\t\tnew TTypeId(\"_no_class\"),\n\t\t\t\tfeatList\n\t\t\t\t);\n\t\t\n\t\t// The IO class inherits from Object. Its methods are\n\t\t// out_string(Str) : SELF_TYPE writes a string to the output\n\t\t// out_int(Int) : SELF_TYPE \" an int \" \" \"\n\t\t// in_string() : Str reads a string from the input\n\t\t// in_int() : Int \" an int \" \" \"\n\t\tfeatList = new LinkedList<PFeature>();\n\t\t\n\t\tformalList = new LinkedList<PFormal>();\t\t\n\t\tformalList.add(new AFormal(new TObjectId(\"arg\"), new TTypeId(\"String\")));\t\t\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"out_string\"),\n\t\t\t\tformalList,\n\t\t\t\tnew TTypeId(\"SELF_TYPE\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\n\t\tformalList = new LinkedList<PFormal>();\t\t\n\t\tformalList.add(new AFormal(new TObjectId(\"arg\"), new TTypeId(\"Int\")));\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"out_int\"),\n\t\t\t\tformalList,\n\t\t\t\tnew TTypeId(\"SELF_TYPE\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\n\t\tformalList = new LinkedList<PFormal>();\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"in_string\"),\n\t\t\t\tformalList,\n\t\t\t\tnew TTypeId(\"String\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"in_int\"),\n\t\t\t\tformalList,\n\t\t\t\tnew TTypeId(\"Int\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\n\t\tAClassDecl IOClass = new AClassDecl(\n\t\t\t\tnew TTypeId(\"IO\"),\n\t\t\t\tnew TTypeId(\"Object\"),\n\t\t\t\tfeatList\n\t\t\t\t);\n\n\n\t\t// The Int class has no methods and only a single attribute, the\n\t\t// \"val\" for the integer.\n\t\tfeatList = new LinkedList<PFeature>();\n\t\tpf = new AAttributeFeature(\n\t\t\t\tnew TObjectId(\"_val\"),\n\t\t\t\tnew TTypeId(\"_prim_slot\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\t\t\n\t\tAClassDecl IntClass = new AClassDecl(\n\t\t\t\tnew TTypeId(\"Int\"),\n\t\t\t\tnew TTypeId(\"Object\"),\n\t\t\t\tfeatList\n\t\t\t\t);\n\n\t\t// Bool also has only the \"val\" slot.\n\t\tfeatList = new LinkedList<PFeature>();\n\t\tpf = new AAttributeFeature(\n\t\t\t\tnew TObjectId(\"_val\"),\n\t\t\t\tnew TTypeId(\"_prim_slot\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\t\t\n\t\tAClassDecl BoolClass = new AClassDecl(\n\t\t\t\tnew TTypeId(\"Bool\"),\n\t\t\t\tnew TTypeId(\"Object\"),\n\t\t\t\tfeatList\n\t\t\t\t);\n\n\t\t// The class Str has a number of slots and operations:\n\t\t// val the length of the string\n\t\t// str_field the string itself\n\t\t// length() : Int returns length of the string\n\t\t// concat(arg: Str) : Str performs string concatenation\n\t\t// substr(arg: Int, arg2: Int): Str substring selection\n\t\tfeatList = new LinkedList<PFeature>();\n\t\tpf = new AAttributeFeature(\n\t\t\t\tnew TObjectId(\"_val\"),\n\t\t\t\tnew TTypeId(\"_prim_slot\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\n\t\tpf = new AAttributeFeature(\n\t\t\t\tnew TObjectId(\"_str_field\"),\n\t\t\t\tnew TTypeId(\"_prim_slot\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\t\t\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"length\"),\n\t\t\t\tnew LinkedList<PFormal>(),\n\t\t\t\tnew TTypeId(\"Int\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\n\t\tfeatList.add(pf);\t\t\n\n\t\tformalList = new LinkedList<PFormal>();\n\t\tformalList.add(new AFormal(new TObjectId(\"arg\"), new TTypeId(\"String\")));\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"concat\"),\n\t\t\t\tformalList,\n\t\t\t\tnew TTypeId(\"String\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\n\t\tformalList = new LinkedList<PFormal>();\n\t\tformalList.add(new AFormal(new TObjectId(\"arg\"), new TTypeId(\"Int\")));\n\t\tformalList.add(new AFormal(new TObjectId(\"arg2\"), new TTypeId(\"Int\")));\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"substr\"),\n\t\t\t\tformalList,\n\t\t\t\tnew TTypeId(\"String\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\t\t\n\t\t\n\t\tAClassDecl StringClass = new AClassDecl(\n\t\t\t\tnew TTypeId(\"String\"),\n\t\t\t\tnew TTypeId(\"Object\"),\n\t\t\t\tfeatList\n\t\t\t\t);\n\t\t\n\n\t\t/*\n\t\t * Do something with Object_class, IO_class, Int_class, Bool_class, and\n\t\t * Str_class here \n\t\t * \n\t\t */\n\n\t\tMap<String, AClassDecl> map = new TreeMap<String, AClassDecl>();\n\t\t\t\tOBJECT = new Klass();\n\t\t\t\tOBJECT.name = \"Object\";\n\t\t\t\tOBJECT.parent = null;\n\t\t\t\tOBJECT.methods = null;\n\t\t \t\tOBJECT.vars = null;\n\t\t \t\t\n\t\t \t\tIO = new Klass();\n\t\t \t\tIO.name = \"IO\";\n\t\t \t\tIO.parent = OBJECT;\n\n\t\t \t\t\n\t\t \t\tINT = new Klass();\n\t\t \t\tINT.name = \"Int\";\n\t\t \t\tINT.parent = OBJECT;\n\n\t\t \t\t\n\t\t \t\tBOOL = new Klass();\n\t\t \t\tBOOL.name = \"Bool\";\n\t\t \t\tBOOL.parent = OBJECT;\n\n\t\t\t\t\n\t\t \t\tSTR = new Klass();\n\t\t\t\tSTR.name =\"String\";\n\t\t\t\tSTR.parent = OBJECT;\n\n\t\t\t\t\n\t\t\t\tERROR = new Klass();\n\t\t\t\tERROR.name = \"ERROR\";\n\t\t\t\tERROR.parent = OBJECT;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tVOID = new Klass();\n\t\t\t\tVOID.name = \"VOID\";\n\t\t\t\tVOID.parent = OBJECT;\n\n\t\t\t\tklasses.put(\"Object\", OBJECT);\n\t\t\t\tklasses.put(\"IO\", IO);\n\t\t\t\tklasses.put(\"Int\", INT);\n\t\t\t\tklasses.put(\"Bool\", BOOL);\n\t\t\t klasses.put(\"String\", STR);\n\t\t\t\t\n\t\tmap.put(\"Object\", ObjectClass);\n\t\tmap.put(\"IO\", IOClass);\n\t\tmap.put(\"Int\", IntClass);\n\t\tmap.put(\"Bool\", BoolClass);\n\t\tmap.put(\"String\", StringClass);\n\t\t\n\t\treturn map;\n\t\t\n\t}", "public List<__Type> getTypes() {\n return (List<__Type>) get(\"types\");\n }", "public List<CWLType> getTypes() {\n return types;\n }", "public synchronized static void internal_updateKnownTypes() {\r\n Set<ChangeLogType> changeLogTypes = GrouperDAOFactory.getFactory().getChangeLogType().findAll();\r\n GrouperCache<MultiKey, ChangeLogType> newTypes = new GrouperCache<MultiKey, ChangeLogType>(\r\n ChangeLogTypeFinder.class.getName() + \".typeCache\", 10000, false, 60*10, 60*10, false);\r\n \r\n Map<String, ChangeLogType> newTypesById = new HashMap<String, ChangeLogType>();\r\n \r\n for (ChangeLogType changeLogType : GrouperUtil.nonNull(changeLogTypes)) {\r\n newTypes.put(new MultiKey(changeLogType.getChangeLogCategory(), changeLogType.getActionName()), changeLogType);\r\n newTypesById.put(changeLogType.getId(), changeLogType);\r\n }\r\n \r\n //add builtins if necessary\r\n internal_updateBuiltinTypesOnce(newTypes, newTypesById);\r\n \r\n types = newTypes;\r\n typesById = newTypesById;\r\n }", "@Override\n\tpublic Set<OWLEntity> getAllConcepts() {\n\t\tSet<OWLEntity> result = new HashSet<OWLEntity>();\n\t\tresult.addAll(ontology.getClassesInSignature());\n\t\tresult.addAll(ontology.getIndividualsInSignature());\n\t\treturn result;\n\t}", "int countTypedFeatures();", "public synchronized static Set<String> getAvailableTypes() {\n populateCache();\n return Collections.unmodifiableSet(cache.keySet());\n }", "public List<? extends IType> getSubtypes()\n {\n if( _subtypes == null )\n {\n _subtypes = new ArrayList<IGosuClassInternal>();\n Set<? extends CharSequence> typeNames = getTypeLoader().getAllTypeNames();\n for( CharSequence typeName : typeNames )\n {\n IType type = TypeSystem.getByFullNameIfValid(typeName.toString());\n if (type instanceof IGosuClassInternal) {\n IGosuClassInternal gosuClass = (IGosuClassInternal) type;\n if( getOrCreateTypeReference() != gosuClass && isAssignableFrom( gosuClass ) )\n {\n _subtypes.add( gosuClass );\n }\n }\n }\n }\n\n return _subtypes;\n }", "public Collection<Collection<T>> getExtensions();", "@Override\n public Iterator<Type> getTypeIterator() {\n // trick to convert List<TypeImpl> to List<Type> with some safety\n Iterator<Type> it = Collections.<Type> unmodifiableList(types).iterator();\n it.next();\n return it;\n }", "@Override\r\n\tpublic Vector<Integer> getTypes() {\n\t\treturn this.types;\r\n\t}", "public void addAll(FeatureCollection featColl){\n if (debug) logger.info(\"collection added\");\n fc.addAll(featColl);\n fcLastEdits.clear();\n fcLastEdits.addAll(featColl);\n lastEditType = EDIT_ADD;\n fireTableDataChanged();\n }", "private void addFeatureFieldGetSet(FeatureImpl fi) {\n this.fi = fi;\n featureFieldName = getFeatureFieldName(fi);\n rangeJavaDescriptor = fi.getRangeAsJavaDescriptor();\n \n addFeatureField(); // add declares for fields\n addFeatureGetSet();\n TypeImpl range = (TypeImpl) fi.getRange();\n if (range.isArray()) {\n rangeArrayElementJavaDescriptor = fi.getRangeArrayElementAsJavaDescriptor();\n addArrayFeatureGetSet();\n }\n }", "public Collection getIndividualTypes(OWLIndividual individual, ReasonerTaskListener taskListener) throws DIGReasonerException;", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<T> getList() {\r\n\t\tgetEntityManager().flush();\r\n\t\treturn getEntityManager().createQuery(\r\n\t\t\t\t\"select OBJECT(o) from \" + getClassType().getSimpleName() + \" o order by o.id\")\r\n\t\t\t\t.getResultList();\r\n\t}", "public Iterator<Feature> featureIterator(){\n\t\treturn indexByFeature.keySet().iterator();\n\t}", "public WebServiceFeature[] getFeatures() {\n\t\treturn null;\n\t}", "public abstract void addFeatureClasses(FeatureClassContainer container);", "public TypeStorage getRemainingExtOccTypes(OSLSchema schema, TopicIF topic) {\n return this.getRemainingOccTypes(schema, topic,\n this.getExtOccConstraints(schema, topic));\n }", "List<T> collect();" ]
[ "0.662041", "0.6527424", "0.5985653", "0.59207225", "0.5828279", "0.57989764", "0.55937797", "0.5567822", "0.5562131", "0.5535677", "0.55299157", "0.5450754", "0.540696", "0.53847015", "0.53832245", "0.53832245", "0.53741235", "0.53220755", "0.5304479", "0.52906233", "0.52893674", "0.52833056", "0.5275182", "0.5257187", "0.5257187", "0.52449006", "0.5242322", "0.523083", "0.52210814", "0.5177886", "0.5166649", "0.51622516", "0.5139818", "0.51388216", "0.51367843", "0.5073069", "0.50704616", "0.50687224", "0.5067246", "0.5058833", "0.5039278", "0.50023854", "0.4976805", "0.49705556", "0.4960908", "0.49543962", "0.4953029", "0.49362677", "0.4934769", "0.4931646", "0.49210793", "0.49195632", "0.49108148", "0.48959738", "0.48850158", "0.48845404", "0.48841733", "0.48761725", "0.48728326", "0.4871024", "0.48565453", "0.4848867", "0.48237887", "0.4822619", "0.48214743", "0.48211378", "0.4818091", "0.48021477", "0.4800592", "0.47989324", "0.47949594", "0.47913402", "0.4780603", "0.47800434", "0.47796184", "0.47753727", "0.47721243", "0.4760527", "0.47593415", "0.47572032", "0.47530538", "0.47435227", "0.4740929", "0.47349706", "0.47330293", "0.47187835", "0.4714527", "0.4710173", "0.47088018", "0.47065768", "0.47024012", "0.46995595", "0.4698606", "0.46942925", "0.46919906", "0.46909153", "0.46869153", "0.46833077", "0.4677376", "0.4675123" ]
0.7256959
0
Checks if a typed feature is contained in the collection of the current object.
boolean containsTypedFeature(StructuralFeature typedFeature);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean containsFeature(Feature feature);", "public boolean containsFeature(Feature f);", "boolean contains(SimpleFeature feature);", "boolean hasFeaturesUsed();", "boolean hasCustomFeatures();", "@Override\n\tpublic boolean contains(Type t) {\n\t\treturn true;\n\t}", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "public boolean getFeature(@Nonnull Feature f) {\r\n return features.contains(f);\r\n }", "public boolean isTrueCollectionType()\n/* */ {\n/* 236 */ return Collection.class.isAssignableFrom(this._class);\n/* */ }", "public boolean contains(T obj) {\r\n\t\tlogger.trace(\"Enter contains\");\r\n\t\tlogger.trace(\"Exit contains\");\r\n\t\treturn data.contains(obj);\r\n\t}", "public boolean hasFeature(T feature) {\n\t\tif (duplicates) {\n\t\t\treturn featuresList.contains(feature);\n\t\t}\n\t\treturn features.contains(feature);\n\t}", "public boolean is_set_feature() {\n return this.feature != null;\n }", "Collection<StructuralFeature> getTypedFeatures();", "public boolean contains( AnyType x )\r\n\t{\r\n\t\treturn contains( x, root );\r\n\t}", "public boolean contains(AnyType x) {\r\n\t\treturn contains(x, root);\r\n\t}", "private static boolean m87480a(Object obj) {\n if (!(obj instanceof List)) {\n obj = null;\n }\n List list = (List) obj;\n if (list != null && !C6307b.m19566a((Collection<T>) list) && (list.get(0) instanceof Word)) {\n return true;\n }\n return false;\n }", "boolean hasStoredType();", "public boolean hasIntrospectionType() {\n return fieldSetFlags()[17];\n }", "boolean hasPropType();", "@Override\n\t\tpublic boolean contains(Object o) {\n\t\t\treturn false;\n\t\t}", "public boolean isSetTypes() {\n return this.types != null;\n }", "public boolean containsObject(T obj);", "public boolean containsObject(T obj);", "Collection<? extends EnergyCF> getHasEnergyCF();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "@Override\n\tpublic boolean contains(Object o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean contains(Object o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean contains(Object o) {\n\t\treturn false;\n\t}", "boolean hasTrainingDataType();", "public boolean hasFeature(SimpleFeature feature) {\n\t\treturn idIndex.containsKey(feature.getID());\n\t}", "boolean hasContains();", "public boolean contains(AnyType target) {\n\t\treturn search(root, target);\n\t}", "public boolean contains(Object elem);", "private static boolean isCollection(String typeName) {\r\n logger.debug(\"isCollection: \" + typeName);\r\n return collectionTypes.contains(typeName);\r\n }", "abstract public boolean isTyped();", "public boolean contains(WModelObject object)\n\t{\n\t\treturn m_elements.contains(object);\n\t}", "public boolean containsObject(AdvObject obj) {\n\t\treturn objects.contains(obj); // Replace with your code\n\t}", "boolean hasDocumentType();", "boolean isFeatureSupported(String feature);", "@Override\n\tpublic boolean contains(Vec2f pnt) {\n\t\tboolean isIn = false;\n\t\tif (_shape != null) {\n\t\t\tisIn = _shape.contains(pnt);\n\t\t}\n\t\treturn isIn;\n\t}", "public abstract boolean isNodeTypeCollection();", "public boolean contains (T target);", "public boolean contains (T target);", "Collection<? extends WrappedIndividual> getIsPartOf();", "public boolean isTyped() {\n return underlyingTree.isTyped();\n }", "public boolean contains(Type item);", "public boolean hasType() {\n return fieldSetFlags()[0];\n }", "public boolean isMember(T o)\n {\n return (objectSet.search(o) != null);\n }", "public abstract boolean isCollection(T type);", "@Override\r\n\tpublic boolean contains(T element) {\n\t\treturn false;\r\n\t}", "public boolean evaluate(T obj) {\n\t\treturn set.contains(obj);\n\t}", "public boolean hasFeature(String featureID) {\n\t\treturn idIndex.containsKey(featureID);\n\t}", "boolean hasResourceType();" ]
[ "0.69521624", "0.67632705", "0.66968185", "0.63863444", "0.63270336", "0.62589455", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6212097", "0.6177108", "0.6106835", "0.60854584", "0.60373926", "0.599299", "0.5944961", "0.5920655", "0.58923715", "0.58699375", "0.586628", "0.58627933", "0.5836818", "0.5833015", "0.5828091", "0.5807247", "0.5807247", "0.5799408", "0.5790301", "0.5790301", "0.5790301", "0.5790301", "0.5790301", "0.5790301", "0.5790301", "0.5788856", "0.5788856", "0.5788856", "0.57724416", "0.5764788", "0.5764314", "0.5736176", "0.57102793", "0.5703673", "0.5703607", "0.56748074", "0.5670844", "0.5642157", "0.5639963", "0.5629745", "0.56284326", "0.5625285", "0.5625285", "0.5615003", "0.5608959", "0.56074345", "0.5607243", "0.56037563", "0.55975926", "0.55964404", "0.5590967", "0.55894136", "0.55831957" ]
0.77804464
0
Returns the number of objects of type "typed feature" previously added to the collection of the current object.
int countTypedFeatures();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getFeaturesCount();", "public int sizeOfFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FEATURE$6);\r\n }\r\n }", "public int sizeOfFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FEATURE$6);\r\n }\r\n }", "public int getFeaturesCount();", "public int numFeatures() {\n return FTypes.values().length;\n }", "public int getFeatureCount() {\n\r\n\t\treturn _features.length;\r\n\t}", "public int sizeOfFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FEATURE$14);\r\n }\r\n }", "public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}", "int getFeatureCount();", "public int numberOfFeatures(){\n\t\treturn indexByFeature.keySet().size();\n\t}", "public int getTypeWithElementsCount() {\n\t\t\treturn this.TypeWithElements.size();\n\t\t}", "public int size(){\n\t\treturn types.size();\n\t}", "public int size() {\n return mFeatureStructures.size();\n }", "int countFeatures();", "int countFeatures();", "long getFeaturesUsed();", "public int size(Feature f){\n\t\treturn featureIndex(f).size();\n\t}", "int getObjectAnnotationsCount();", "int getObjectAnnotationsCount();", "int sizeOfFeatureArray();", "int sizeOfFeatureArray();", "public static int numTypes(){\n byte[] types = genAllTypes();\n return types.length;\n }", "public int getObjectCount() {\n\t\treturn nestedConcept.getExtent().size();\n\t}", "public int getNumObjects(){\n return numObjects;\n }", "public int getTypeElementCount() {\n\t\t\treturn this.TypeElements.size();\n\t\t}", "public int getProcessedCount()\r\n {\r\n return myFeatureCount;\r\n }", "public int getTypeDataCount() {\n\t\t\treturn this.TypeRegistrationDatas.size();\n\t\t}", "@Override\n public int getUserTypesCount() {\n return userTypes_.size();\n }", "public int getSize() {\n\t\t\treturn objects.size();\n\t\t}", "public static int numberObjects()\r\n\t{\r\n\t\treturn(no_of_obj);\r\n\t}", "public int getFeaturesSize();", "protected long doGetNumberOfSubtypes() {\r\n\t\treturn getParentIndex().getSubtypes().size();\r\n\t}", "public int getCount() {\n return typeOffsetList.size();\n }", "int getUserTypesCount();", "public int getCount() {\n return objects.size();\n }", "public int getNumbObjects()\n\t{\n\t\treturn this.numObjects;\n\t}", "public int size(){\r\n\t\treturn numAdded;\r\n\t}", "public int getNumberOfFeatures() {\n\t\treturn numberOfFeatures;\n\t}", "public int getNumberOfFeatures() {\n return features.size() - 1; // because slot 0 is skipped\n }", "protected long getObjectCount() {\r\n return objectCount;\r\n }", "public int size() {\n if (hasKeys) {\n return keys.size();\n } else {\n return objects.size();\n }\n }", "public static int fullSize(Object... features) {\n if (features == null) {\n return 0;\n }\n int size = 0;\n for (Object feature: features) {\n if (feature instanceof Object[]) {\n size += ((Object[]) feature).length;\n } else if (feature instanceof Collection) {\n size += ((Collection<?>) feature).size();\n } else {\n size++;\n }\n }\n return size;\n }", "public com.flexnet.opsembedded.webservices.NumberQueryType getFeatureCount() {\n return featureCount;\n }", "public Long getElementCount();", "public int getUserTypesCount() {\n if (userTypesBuilder_ == null) {\n return userTypes_.size();\n } else {\n return userTypesBuilder_.getCount();\n }\n }", "int sizeOfObjectDefinitionArray();", "Collection<StructuralFeature> getTypedFeatures();", "public int getSupportedTripTypesCount() {\n return supportedTripTypes_.size();\n }", "public int getSize() {\n\t\treturn collection.size();\n\t\t\n\t}", "public Integer getCountTyped(Class<?> type) {\n int count = 0;\n for (Map.Entry<Class<?>, List<EventRecording>> recordingEntry : events.entrySet()) {\n if (type.isAssignableFrom(recordingEntry.getKey())) {\n count += recordingEntry.getValue().size();\n }\n }\n return count;\n }", "@java.lang.Override\n public int getSupportedTripTypesCount() {\n return supportedTripTypes_.size();\n }", "public int size() {\n\t\treturn collection.size();\n\t}", "int getSuperClassesCount();", "public int size() {\n\t\t\treturn gameObjects.size();\n\t\t}", "public int typeSize() {\n if (isUnknown() || isPolymorphic())\n return 0;\n int c = 0;\n if (!isNotBool())\n c++;\n if (!isNotStr())\n c++;\n if (!isNotNum())\n c++;\n if (object_labels != null) {\n boolean is_function = false;\n boolean is_array = false;\n boolean is_native = false;\n boolean is_dom = false;\n boolean is_other = false;\n for (ObjectLabel objlabel : object_labels) {\n if (objlabel.getKind() == Kind.FUNCTION)\n is_function = true;\n else if (objlabel.getKind() == Kind.ARRAY)\n is_array = true;\n else if (objlabel.isHostObject()) {\n switch (objlabel.getHostObject().getAPI().getShortName()) {\n case \"native\":\n is_native = true;\n break;\n case \"dom\":\n is_dom = true;\n break;\n default:\n is_other = true;\n }\n } else\n is_other = true;\n }\n if (is_function)\n c++;\n if (is_array)\n c++;\n if (is_native)\n c++;\n if (is_dom)\n c++;\n if (is_other)\n c++;\n }\n if (getters != null)\n c++;\n if (setters != null)\n c++;\n if (c == 0 && (isMaybeNull() || isMaybeUndef())) {\n c = 1;\n }\n return c;\n }", "public int getCount(){\n\t\treturn mDataObjects.size();\n\t}", "int sizeOfRelatedArray();", "public int size() {return collection.size();}", "public int size() {\n return collection.size();\n }", "public void increaseFeatureCount() {\n this.featureCount++;\n }", "public int getNumTypeBound() {\n return getTypeBoundList().getNumChild();\n }", "public long getNumberOfDetectedConcepts() {\n return numberOfDetectedConcepts;\n }", "int getMetricDescriptorsCount();", "public int getNumOfClasses();", "int getShotAnnotationsCount();", "int getShotAnnotationsCount();", "@Override\r\n\tpublic int getCollectionTotalCount() {\n\t\treturn data != null ? data.recordCount : 0;\r\n\t}", "public int size() {\n\t\tint result = 0;\n\t\tfor (E val: this)\n\t\t\tresult++;\n\t\treturn result;\n\t}", "public int getAttributeCount() {\r\n return type.getAttributeCount();\r\n }", "public int size() {\n return this.collection.size();\n }", "@Override\n public int getCount() {\n return featureBean.size();\n }", "int getTagCount();", "public int size() {\n maintain();\n return collection.size();\n }", "public int getLength() {\n return collection.size();\n }", "int getRefsCount();", "public static synchronized int size() {\n\t\treturn ClassRegistry.dictionary.size();\n\t}", "int countTypedParameters();", "public int getTagCount() {\n return tag_.size();\n }", "public void test_countTypedValues_accuracy() {\n instance.addTypedValue(typedValue);\n assertEquals(\"The TypedValue is not added properly.\", 1, instance.countTypedValues());\n }", "@Override\r\n\tpublic int size() {\n\t\treturn count;\r\n\t}", "@java.lang.Override\n public int getCustomTagsCount() {\n return customTags_.size();\n }", "public int totalNum(){\n return wp.size();\n }", "public int getNumFields()\n {\n return getFieldTypMap().size();\n }", "int getFieldCount();", "public int numTags() {\n return mTags.size();\n }", "public int size()\n\t{\n\t\treturn creatures.size();\n\t}", "public int countFeatures(BoundingBox boundingBox) {\n return countFeatures(false, null, boundingBox);\n }", "int getMetaInformationCount();", "int getMetaInformationCount();", "int getMetaInformationCount();", "int getMetaInformationCount();", "int getMetaInformationCount();", "@Override\r\n\tpublic int size() {\r\n\t\treturn count;\r\n\t}", "@Override\n\tpublic int size()\n\t{\n\t\tint count = 0;\n\t\tfor (Variable var : FactorGraphIterables.variables(rootGraph()))\n\t\t{\n\t\t\tif (var.getPrior() != null)\n\t\t\t{\n\t\t\t\t++count;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "int countAnnotations() {\n \tSet<Annotation> set = new LinkedHashSet<Annotation>();\n \tfor (Layer layer : layers.values())\n \t\tset.addAll(layer);\n \treturn set.size();\n }", "int getPropertiesCount();", "@Override\n public int size() {\n return count;\n }", "@Override\n public int size() {\n return count;\n }", "public Integer getInterestedInItemsCount();", "private int countTrees()//has issues!! Should the counting happen in the \n //plant class? Or in the field? Or new grid class?\n {\n int trees = 0;\n Field field = getField();\n Location currant = getLocation();\n List<Object> plantList = field.getObjectAt(currant);\n \n while(it.hasNext()) {\n plantList.add(field.getObjectAt(currant));\n if(plant instanceof Tree) {\n trees++;\n }\n }\n return trees;\n }" ]
[ "0.70900273", "0.7046578", "0.7046578", "0.7043702", "0.7039939", "0.69207114", "0.6911661", "0.6813404", "0.6772771", "0.67321676", "0.66875696", "0.66238946", "0.66237265", "0.6575417", "0.6575417", "0.65460724", "0.6530178", "0.64802355", "0.64802355", "0.6458579", "0.6458579", "0.6457397", "0.64480877", "0.6416221", "0.6364296", "0.6295014", "0.62712914", "0.6268472", "0.62682694", "0.6256676", "0.6249467", "0.6241159", "0.6217098", "0.6193826", "0.6187348", "0.6176213", "0.61760867", "0.6170947", "0.61357164", "0.61280286", "0.61170924", "0.61132056", "0.6098747", "0.60576415", "0.6056541", "0.60558975", "0.60477096", "0.60283786", "0.5994552", "0.59926754", "0.5987333", "0.5983052", "0.59554917", "0.5952156", "0.5942518", "0.5935575", "0.59186125", "0.59060955", "0.5902694", "0.59021", "0.5901034", "0.58871704", "0.58813393", "0.58638173", "0.5857648", "0.5857648", "0.58368975", "0.58300227", "0.5826064", "0.5823891", "0.58227015", "0.58223796", "0.5817179", "0.58076346", "0.5806365", "0.5802251", "0.5801918", "0.5800034", "0.57995605", "0.5794853", "0.57944334", "0.5793673", "0.5791548", "0.5787557", "0.5781986", "0.5781397", "0.57804173", "0.5776494", "0.5776494", "0.5776494", "0.5776494", "0.5776494", "0.57633483", "0.5759376", "0.57557356", "0.575337", "0.5745699", "0.5745699", "0.57433", "0.5741314" ]
0.7846618
0
Adds a typed parameter to the collection of the current object.
void addTypedParameter(Parameter typedParameter);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addParameter(VariableType _type, String _name) {\n\t\tparameterType.add(_type);\n\t\tVariableItem _variableItem=new VariableItem(_type,_name);\t\t\n\t\tvariableItem.add(_variableItem);\n\t}", "@Override\n public void addParam(String param, Object value) {\n request.addProperty(param, value);\n }", "public void addParam(String type) {\n String[] origParams = getParamNames();\n String[] params = new String[origParams.length + 1];\n for (int i = 0; i < origParams.length; i++)\n params[i] = origParams[i];\n params[origParams.length] = type;\n setParams(params);\n }", "public void addParameter(ConstraintParameter param) {\n\t\tif (m_parameters == null) {\n\t\t\tm_parameters = new ArrayList<ConstraintParameter>();\n\t\t\tm_parameterString = \"\";\n\t\t}\n\t\t\n\t\t// add this parameter info to the end of the list\n\t\tm_parameters.add(param);\n\t\tm_parameterString += \" :\" + param.toString();\n\t}", "public void add(Type t);", "public void addParam(Object obj) {\n\t\tparams.add(obj);\n\t}", "public void addParam(Class type) {\n addParam(type.getName());\n }", "public abstract void addParameter(String key, Object value);", "public void addParameter(ParameterExtendedImpl param) {\n \tParameterExtendedImpl paramExt = parameters.getParameter(param.getIndex());\n \tif(paramExt != null)\n \t\tparamExt = new ParameterExtendedImpl(param);\n \t\n \tparamExt = parameters.getParameter(param.getIndex(), param.getDirection());\n \tif(paramExt != null){\n \t\tparamExt = new ParameterExtendedImpl(param);\n \t\treturn;\n \t}\n \t\n \taddToParameters(param);\n }", "@Override\n <T> void add(T object);", "public void addParameter(ParmInfoEntry p){\n\t}", "private void addParameter(int param) {\r\n command_parameters.addInt(param);\r\n }", "public void addParam(Property p) {\r\n params.addElement(p);\r\n }", "Report addParameter(String parameter, Object value);", "public void addParameter(String name, Object value) {\r\n\t\tparameters.put(name, value);\r\n\t}", "public JVar addParameter(JType type, String name) {\n if(intf!=null)\n intfMethod.param(type,name);\n return implMethod.param(type,name);\n }", "public void addSourceParameterType(Class<?> type) {\n parameterTypes.add(type);\n }", "protected final void addParameter(final ParameterDef parameter) {\n parameters.add(parameter);\n }", "public void addParam(JParameter x) {\n params = Lists.add(params, x);\n }", "public void addParam(String key, Object value) {\n getParams().put(key, value);\n }", "public void addParam(int pos, Class type) {\n addParam(pos, type.getName());\n }", "public void addParameter(String name, Object value) {\n t.setParameter(name, value);\n }", "public void addParam(BCClass type) {\n addParam(type.getName());\n }", "public void addParam(String name, String value) {\r\n if (params == null) {\r\n params = new ArrayList();\r\n }\r\n Param param = new Param(name, value);\r\n params.add(param);\r\n }", "public void addFact(Fact param) {\r\n if (localFact == null) {\r\n localFact = new Fact[]{};\r\n }\r\n\r\n\r\n //update the setting tracker\r\n localFactTracker = true;\r\n\r\n\r\n java.util.List list =\r\n org.apache.axis2.databinding.utils.ConverterUtil.toList(localFact);\r\n list.add(param);\r\n this.localFact =\r\n (Fact[]) list.toArray(\r\n new Fact[list.size()]);\r\n\r\n }", "public void addParam(int pos, BCClass type) {\n addParam(pos, type.getName());\n }", "private synchronized final void addParam(Object oParam, final int piModuleType) {\n switch (piModuleType) {\n case PREPROCESSING:\n this.oPreprocessingParams.add(oParam);\n break;\n\n case FEATURE_EXTRACTION:\n this.oFeatureExtractionParams.add(oParam);\n break;\n\n case CLASSIFICATION:\n this.oClassificationParams.add(oParam);\n break;\n\n default:\n throw new IllegalArgumentException(\"Unknown module type: \" + piModuleType + \".\");\n }\n }", "public void addParam(int pos, String type) {\n String[] origParams = getParamNames();\n if ((pos < 0) || (pos >= origParams.length))\n throw new IndexOutOfBoundsException(\"pos = \" + pos);\n\n String[] params = new String[origParams.length + 1];\n for (int i = 0, index = 0; i < params.length; i++) {\n if (i == pos)\n params[i] = type;\n else\n params[i] = origParams[index++];\n }\n setParams(params);\n }", "public LnwRestrictionFunction addParam( Object param ) {\n\t\tvalues.add( LnwSqlParameter.adaptData(param) );\n\t\treturn this;\n\t}", "public void addAttribute(FactAttribute param) {\r\n if (localAttribute == null) {\r\n localAttribute = new FactAttribute[]{};\r\n }\r\n\r\n\r\n //update the setting tracker\r\n localAttributeTracker = true;\r\n\r\n\r\n java.util.List list =\r\n org.apache.axis2.databinding.utils.ConverterUtil.toList(localAttribute);\r\n list.add(param);\r\n this.localAttribute =\r\n (FactAttribute[]) list.toArray(\r\n new FactAttribute[list.size()]);\r\n\r\n }", "public void addTargetParameterType(Class<?> type) {\n this.targetParameterTypes.add(type);\n }", "public void add (T obj);", "CollectionParameter createCollectionParameter();", "public void add(Object value) {\n\n\t}", "public void add (Object t)\r\n {\r\n }", "void addTypedFeature(StructuralFeature typedFeature);", "public void addParameter(String key, Object value) {\n params.put(key, value.toString());\n }", "public void addType(TypeData type) { types.add(type); }", "private final void addParam(Object oParam, final int piModule)\n\t{\n\t\tswitch(piModule)\n\t\t{\n\t\t\tcase PREPROCESSING:\n\t\t\t\tthis.oPreprocessingParams.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tcase FEATURE_EXTRACTION:\n\t\t\t\tthis.oFeatureExtraction.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tcase CLASSIFICATION:\n\t\t\t\tthis.oClassification.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tMARF.debug(\"ModuleParams.addParam() - Unknown module type: \" + piModule);\n\t\t}\n\t}", "public void addItem(Item param) {\r\n if (localItem == null) {\r\n localItem = new Item[] { };\r\n }\r\n\r\n //update the setting tracker\r\n localItemTracker = true;\r\n\r\n java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localItem);\r\n list.add(param);\r\n this.localItem = (Item[]) list.toArray(new Item[list.size()]);\r\n }", "public void add(T toy) {\n // Complete add method with proper argument and method body\n v.add(toy);\n }", "public abstract void add(T var1);", "public abstract void add(T input);", "public void addPoint(T p) {\n points.add(p);\n }", "public void addInputParameter(Parameter parameter) {\n\t\tif (!validParameter(parameter.getName(), parameter.getValue())) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid input parameter!\");\n\t\t}\n\t\tparameters.add(parameter);\n\n\t\tupdateStructureHash();\n\t}", "public void addParameter( ParameterClass parameter )\n\t{\n\t\tnotLocked();\n\t\t\n\t\t// make sure we don't already have one by this name\n\t\tif( parameters.containsKey(parameter.getName()) )\n\t\t{\n\t\t\tthrow new DiscoException( \"Add Parameter Failed: Class [%s] already has parameter with name [%s]\",\n\t\t\t name, parameter.getName() );\n\t\t}\n\t\t\n\t\t// store the parameter\n\t\tparameter.setParent( this );\n\t\tparameters.put( parameter.getName(), parameter );\n\t}", "public boolean add(Type item);", "public void add(Object o);", "protected void addParam(ParamRanking pr){\r\n\t\tranking.add(pr);\r\n\t\tCollections.sort(ranking);\r\n\t}", "public void addIndependentParameter(ParameterAPI parameter)\n throws ParameterException;", "@Override\n\tpublic void add(Object o) {\n\t}", "public void addParameter(String key, String value) {\n parameters.add(new ParameterEntry<String, String>(key, value));\n }", "public int addNewParameter()\r\n {\r\n Parameter c = new Parameter();\r\n m_alParameters.add(c);\r\n\r\n fireTableRowsInserted(m_alParameters.size() - 1, m_alParameters.size() - 1);\r\n\r\n return m_alParameters.size() - 1;\r\n }", "public void addType(String value) {\n/* 380 */ addStringToBag(\"type\", value);\n/* */ }", "public void addParameter(String key, Object value) {\n try {\n jsonParam.put(key, value);\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n }", "public void addParam(String name, String value) {\n\t\tparams.put(name, value);\n\t}", "public void add(String nome, Object obj);", "@Override\r\n\tpublic void add(Object object) {\n\t\t\r\n\t}", "void add(T item);", "public void addParam(String name, String value) {\n if (name == null) {\n throw new NullPointerException(\"name\");\n }\n if (value == null) {\n throw new NullPointerException(\"value\");\n }\n params.add(new Param(name, value));\n }", "public void addParameterAnnotationItem(int parameterIndex, AnnotationItem annotationItem) {\n\t\tannotatedParameterSetRefList.addAnnotationItem(parameterIndex, annotationItem);\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic void createParameterTypesAsCollection(AST ast,\r\n\t\t\tAbstractTypeDeclaration td, MethodDeclaration md,\r\n\t\t\tString umlTypeName, String umlQualifiedTypeName,\r\n\t\t\tString umlPropertyName, String sourceDirectoryPackageName,\r\n\t\t\tString collectionTypeConstant) {\r\n\t\tType chosenType = getChosenType(ast, umlTypeName, umlQualifiedTypeName,\r\n\t\t\t\tsourceDirectoryPackageName);\r\n\t\t// Create Collection\r\n\t\tSimpleType collectionType = ast.newSimpleType(ast\r\n\t\t\t\t.newName(collectionTypeConstant));\r\n\t\tParameterizedType pt = ast.newParameterizedType(collectionType);\r\n\t\tpt.typeArguments().add(chosenType);\r\n\t\tSingleVariableDeclaration variableDeclaration = ast\r\n\t\t\t\t.newSingleVariableDeclaration();\r\n\t\tvariableDeclaration.setType(pt);\r\n\t\tvariableDeclaration.setName(ast.newSimpleName(umlPropertyName));\r\n\t\tmd.parameters().add(variableDeclaration);\r\n\t}", "public void add(T element);", "public void add(T element);", "@Override\n public void addParamList(ParamList paramList) {\n this.paramList = paramList;\n }", "public Href addParameter(String name, Object value)\r\n {\r\n this.parameters.put(name, ObjectUtils.toString(value, null));\r\n return this;\r\n }", "Builder addAdditionalType(String value);", "public void addParamValue(String name, String value)\n\t{\n\t\tif(name == null)\n\t\t\tthrow new RequiredException(\"name\");\n\t\t\n\t\tCollection<String> values = this.parameters.get(name);\n\t\t\n\t\tif(values == null)\n\t\t\tvalues = newValues();\n\t\t\n\t\tvalues.add(value);\n\t\t\n\t\tthis.parameters.put(name.toUpperCase(), values);\n\t\t\n\t}", "public void addParameter(ParameterDefinition parameterDefinition) {\r\n if (parameterDefinition == null) {\r\n return;\r\n }\r\n parameterDefinitions.add(parameterDefinition);\r\n shortNamesMap.put(parameterDefinition.getShortName(), parameterDefinition);\r\n longNamesMap.put(parameterDefinition.getLongName(), parameterDefinition);\r\n }", "public void add(int index, Type t);", "Collection<Parameter> getTypedParameters();", "public void bindParameter(Object o, int index){\n parameters.add(new Parameter(o, index));\n }", "@Override\n\tpublic void add(T e) {\n\t\t\n\t}", "public void addType(ValueType type) {\n\t\ttypes.add(type);\n\t}", "public void setTypeParameters(TypeParameterListNode typeParameters);", "public synchronized final void addClassificationParam(Object poParam) {\n addParam(poParam, CLASSIFICATION);\n }", "public boolean addType(Accessibility pPAccess, String pTName, TypeSpec TS, Location pLocation);", "public void add (T element);", "@Override\n protected void collectParameters(Consumer<Parameter<?>> parameterCollector) {\n }", "public void test_addTypedValue_accuracy() {\n instance.addTypedValue(typedValue);\n assertTrue(\"The TypedValue is not added properly.\", instance.containsTypedValue(typedValue));\n }", "public CFun add(CParam... param) throws CDuplicateException;", "@Override\n\tpublic void add() {\n\t\t\n\t}", "public void add(Object obj) { \n\t\tcollection.addElement(obj);\n\t}", "public DoubleParameter addParameter(DoubleParameter p)\n {\n params.add(p);\n return p;\n }", "void addParameter(String name, String value) throws CheckerException;", "public com.guidewire.datamodel.ParamDocument.Param addNewParam()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.guidewire.datamodel.ParamDocument.Param target = null;\r\n target = (com.guidewire.datamodel.ParamDocument.Param)get_store().add_element_user(PARAM$14);\r\n return target;\r\n }\r\n }", "void addParam(OpCode opcode, String param) {\n\t\t// We need to add 'param' to pool of constants and add a reference to it\n\t\tint idx = parseParam(opcode, param);\n\t\tcode.add(idx);\n\t}", "public void addPerson(Person p);", "private void addParameter( String classname ){\n if(DEBUG) System.out.print(classname+\" \");\n\n // get the class\n Class klass=null;\n try{\n klass=Class.forName(classname);\n }catch(NoClassDefFoundError e){\n if(DEBUG) System.out.println(\"(NoClassDefError) NO\");\n return;\n }catch(ClassNotFoundException e){\n if(DEBUG) System.out.println(\"(ClassNotFoundException) NO\");\n return;\n }catch(ClassFormatError e){\n if(DEBUG) System.out.println(\"(ClassFormatError) NO\");\n return;\n }\n\n // confirm this isn't null\n if(klass==null){\n if(DEBUG) System.out.println(\"(Null Class) NO\");\n return;\n }\n\n // check that this is not an interface or abstract\n int modifier=klass.getModifiers();\n if(Modifier.isInterface(modifier)){\n if(DEBUG) System.out.println(\"(Interface) NO\");\n return;\n }\n if(Modifier.isAbstract(modifier)){\n if(DEBUG) System.out.println(\"(Abstract) NO\");\n return;\n }\n\n // check that this is a parameter\n if(! (IParameter.class.isAssignableFrom(klass)) ){\n if(DEBUG) System.out.println(\"(Not a IParameter) NO\");\n return;\n }\n\n // get the instance\n IParameter param= null;\n try{\n param = getInstance(klass,DEBUG);\n }catch( Exception ss){\n \n }\n\n if( param == null ){\n return;\n }\n\n // get the type which will be the key in the hashtable\n String type=param.getType();\n\n if(type == null) {\n System.err.println(\"Type not defined for \" + param.getClass());\n return;\n }\n if(type.equals(\"UNKNOWN\")){\n if(DEBUG) System.out.println(\"(Type Unknown) NO\");\n return;\n }else{\n if(DEBUG) System.out.print(\"[type=\"+type+\"] \");\n }\n\n // add it to the hashtable\n paramList.put(type,klass);\n \n // final debug print\n if(DEBUG) System.out.println(\"OK\");\n }", "int add(T objectToCreate);", "public void addPetModel(PetModel param) {\n if (localPetModel == null) {\n localPetModel = new PetModel[] { };\n }\n\n //update the setting tracker\n localPetModelTracker = true;\n\n java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localPetModel);\n list.add(param);\n this.localPetModel = (PetModel[]) list.toArray(new PetModel[list.size()]);\n }", "public void setTypeParameter(String typeParameter) {\n\t\tthis.typeParameter = typeParameter;\n\t}", "public abstract void addValue(String str, Type type);", "public void addInputParameter(String name, Object value) {\n\t\taddInputParameter(new Parameter(name, value));\n\t}", "void add(VisualPropertyType calcType, Object value);", "@Override\r\n\tpublic void addParamInfo(ParamInfo info) {\n\t\tpm.insert(info);\r\n\t\t\r\n\t}", "@Override\n\tpublic void add(T t) {\n\t\tc.add(t);\n\t}", "void add(KeyType key, ValueType value);", "private static void add(List<Point> points, int param, double value, boolean measured) {\r\n points.add(new Point(param, value, measured));\r\n }", "public void addParameter(Document doc, Namespace ns, String parameterName,\n String parameterDataType) {\n\n // get parameter element\n Element parameterElement = (Element) doc.getRootElement()\n .getChild(\"parameter\", ns).clone();\n\n // set parameter attributes \"name\" and \"class\"\n parameterElement.setAttribute(\"name\", parameterName);\n parameterElement.setAttribute(\"class\", parameterDataType);\n\n // add element to document\n @SuppressWarnings(\"unchecked\")\n List<Element> children = doc.getRootElement().getChildren();\n\n int index = 0;\n\n for (Element element : children) {\n String thisChildName = element.getName();\n\n // get element over \"title\"-element\n if (thisChildName == \"title\") {\n index = doc.getRootElement().indexOf(element) - 1;\n\n }\n\n }\n\n doc.getRootElement().addContent(index, parameterElement);\n\n parameterCounter++;\n\n }" ]
[ "0.6595863", "0.6466496", "0.64336234", "0.63888496", "0.63707316", "0.63644975", "0.63331324", "0.6319675", "0.62434286", "0.6186785", "0.61561614", "0.61339897", "0.61268836", "0.6114357", "0.61079526", "0.6100644", "0.60992664", "0.60602516", "0.6055081", "0.60462266", "0.60229856", "0.6016132", "0.6010063", "0.59954625", "0.59810245", "0.5885489", "0.5884366", "0.5839387", "0.58334154", "0.5808188", "0.580648", "0.5797248", "0.5796564", "0.57952505", "0.57712495", "0.57642394", "0.57195204", "0.57193935", "0.57060254", "0.568988", "0.56446624", "0.56393135", "0.5626751", "0.56266886", "0.5608448", "0.5599034", "0.55789447", "0.5577823", "0.5575036", "0.5569984", "0.5558865", "0.5552852", "0.5550182", "0.554754", "0.55359334", "0.5534493", "0.5523047", "0.5522167", "0.5521204", "0.5514379", "0.5493078", "0.5463339", "0.5454141", "0.5454141", "0.54464185", "0.5417392", "0.54154855", "0.5414531", "0.54093426", "0.540525", "0.54033774", "0.5397696", "0.53932446", "0.5388667", "0.53798795", "0.5364345", "0.5361603", "0.5355786", "0.53467387", "0.53400517", "0.53316975", "0.5328502", "0.53206235", "0.53186935", "0.53130734", "0.53082293", "0.53038365", "0.530041", "0.5296311", "0.5292416", "0.5291054", "0.5275338", "0.5268406", "0.5261916", "0.52556664", "0.52512294", "0.52345693", "0.5223641", "0.52203137", "0.5217147" ]
0.8133171
0
Removes a typed parameter from the collection of the current object.
boolean removeTypedParameter(Parameter typedParameter);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void clearTypedParameters();", "public void removeParam(Object obj) {\n\t\tparams.remove(obj);\n\t}", "public void removeParameter(){\r\n \tMap<String,String> params = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();\r\n\t\tlong paramId = Long.parseLong(params.get(\"parameterId\"));\r\n\t\tthis.getLog().info(\"parameterId:\" + paramId);\r\n\t\t\r\n\t\tif(paramId != 0){\r\n\t\t\ttry {\r\n\t\t\t\tConnectionFactory.createConnection().deleteParameter(paramId);\r\n\t\t\t\tthis.getSelectedAlgorithm().setParameters(ConnectionFactory.createConnection().getAlgorithmParameterArray(getSelectedAlgorithm().getId()));\r\n\t\t\t} catch (DataStorageException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void removeParameter(final String name) {\n\t\tqueryParameters.remove(name);\n\t}", "public void removeIndependentParameter(String name)\n throws ParameterException;", "public void removeParam(int index) {\n params = Lists.remove(params, index);\n }", "public Object removeValue(final String name) {\r\n return this.params.remove(name);\r\n }", "private void remove(String paramString) {\n }", "public AnnotatedTypeBuilder<X> removeFromParameter(AnnotatedParameter<? super X> parameter,\n\t\t\tClass<? extends Annotation> annotationType) {\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Method) {\n\t\t\tMethod method = (Method) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn removeFromMethodParameter(method, parameter.getPosition(), annotationType);\n\t\t}\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Constructor<?>) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tConstructor<X> constructor = (Constructor<X>) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn removeFromConstructorParameter(constructor, parameter.getPosition(), annotationType);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Cannot remove from parameter \" + parameter\n\t\t\t\t\t+ \" - cannot operate on member \" + parameter.getDeclaringCallable().getJavaMember());\n\t\t}\n\t}", "public void removeInputType(IInputType type);", "public Object remove();", "public abstract void remove(Class<?> entity, Object paramObject);", "public boolean remove(Type t);", "public void removeByType(long typeId);", "public void removePersistentParameter(String name) {\r\n\t\tpersistentParameters.remove(name);\r\n\t}", "Property removeValue(PropertyValue<?, ?> value);", "Object remove();", "public void removePersistentParameter(String name) {\n\t\tpersistentParameters.remove(name);\n\t}", "public boolean removeParameter(String name) {\n/* 247 */ throw new UnsupportedOperationException(\"Removing parameters in a stack is not supported.\");\n/* */ }", "public void removeTemporaryParameter(String name) {\n\t\ttemporaryParameters.remove(name);\n\t}", "public void removePerson(Person p);", "public void removeParameter(int key){\n\n int i = 0;\n boolean found = false;\n while (i < parameters.size() && !found){\n if (parameters.get(i).getKey() == key) {\n parameters.remove(i);\n found = true;\n }\n }\n\n }", "public void removeParam(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(PARAM$14, i);\r\n }\r\n }", "public void removeParam(int pos) {\n String[] origParams = getParamNames();\n if ((pos < 0) || (pos >= origParams.length))\n throw new IndexOutOfBoundsException(\"pos = \" + pos);\n\n String[] params = new String[origParams.length - 1];\n\n for (int i = 0, index = 0; i < origParams.length; i++)\n if (i != pos)\n params[index++] = origParams[i];\n setParams(params);\n }", "void removeQueryParam(String name) {\n if (name == null) {\n throw new IllegalArgumentException(\"Name cannot be null\");\n }\n Iterator<Param> iter = queryParams.iterator();\n while (iter.hasNext()) {\n Param p = iter.next();\n if (p.key.equals(name)) {\n iter.remove();\n }\n }\n }", "public void removeParameter(String name)\r\n {\r\n // warning, param names are escaped\r\n this.parameters.remove(StringEscapeUtils.escapeHtml(name));\r\n }", "public boolean remove(objectType obj);", "public void removeParameter(String sName)\r\n {\r\n for (int iCount = 0; iCount < m_alParameters.size(); iCount++)\r\n {\r\n Parameter c = m_alParameters.get(iCount);\r\n\r\n if (c.getName().equals(sName))\r\n {\r\n m_alParameters.remove(iCount);\r\n fireTableRowsDeleted(iCount, iCount);\r\n }\r\n }\r\n }", "private void supprimerParametre() {\n if (getSelectedParamatre() == null) return;\n parametreListView.getItems().remove(parametreListView.getSelectionModel().getSelectedItem());\n }", "public void remove(String fieldName) {\n Object key = null;\n for (Object[] param : paramList) {\n if (param[0].toString().equals(fieldName)) {\n key = param;\n break;\n }\n }\n paramList.remove(key);\n }", "void remove(KeyType key);", "public Type remove(int index);", "@Override\n\tpublic void removeValue(String arg0) {\n\t}", "public T remove(T value){\n\t return value;\n\t}", "@Override\n\tpublic void remove() { }", "public void remove(T element);", "public void removeObject(java.lang.Object object) {}", "void deleteParameter(long id);", "public static void remove(String n) {\r\n\t\tif (runtimePars.remove(n) == null)\r\n\t\t\tnew ParameterNameError(\"Parameter \" + n + \" does not exist.\");\r\n\t\t// System.out.println(\"Parameter \" + n +\r\n\t\t// \" removed from the runtime table. \");\r\n\t}", "@Override\n\tpublic void remove(Object o) {\n\t\t\n\t}", "public void removeProperty(String name) {\n HttpSession session = (HttpSession) _currentSession.get();\n if (session != null) {\n session.removeAttribute(name);\n \n // Also remove it from the input parameter list.\n Map inputParameters = (Map) session.getAttribute(\"_inputs\");\n if (inputParameters != null) {\n inputParameters.remove(name);\n }\n }\n }", "public final void removeType(CompositeType type, int index)\n {\n\tif(!type.getIsInferred()) {\n\t listModel.removeElementAt(index);\n\t //System.out.println(\"in TypeManager.removeType, index = \" + index);\n\t}\n\t\n\tindex = -1;\n\tfor (int i = 0; i < allTypes.size(); i++) {\n\t CompositeType otherType = (CompositeType)allTypes.get(i);\n\t if ((otherType.getName()).equals(type.getName())) {\n\t\tindex = i;\n\t }\n\t}\n\t//System.out.println(\"in TypeManager.removeType, vector index = \" + index);\n\t\n\tif (index != -1) {\n\t allTypes.removeElementAt(index);\n\t}\n }", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void removeByObject()\r\n\t{\n\t}", "@Override\n public void remove() {\n }", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "public void removeParameter(String name) throws IllegalArgumentException {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"removeParameter() \");\n Via via=(Via)sipHeader;\n \n if( name==null )\n throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: parameter is null\");\n else via.removeParameter(name); \n }", "@Override\n public void remove() {\n }", "public void remove () {}", "public void removeByDataTypeId(long dataTypeId);", "public void remove( AnyType x )\r\n\t{\r\n\t\troot = remove( x, root );\r\n\t}", "public void remove(AnyType x) {\n\t\troot = remove(x, root);\n\t}", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "public T remove (T element);", "void remove(KeyType key, ValueType value);", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "public void removeFromParameterNameValuePairs(entity.LoadParameter element);", "public void remove(String propertyName) {\n this.propertyBag.remove(propertyName);\n }", "public void removeProperty(TLProperty element);", "public void remove() {\r\n //\r\n }", "public QueryMethodType<T> removeMethodParams()\n {\n childNode.remove(\"method-params\");\n return this;\n }", "void unsetType();", "public void remove(T word);", "@Override\r\n\t\tpublic void remove() {\n\r\n\t\t}", "@Override\n\t\t\t\tpublic void remove() {\n\t\t\t\t\t\n\t\t\t\t}", "public boolean remove(New object);", "public Object removeItem (String key);", "void remove(T instance);", "@Override\n public void remove(Specification specification) {\n }", "boolean removeTypedFeature(StructuralFeature typedFeature);", "public E remove();", "public E remove();", "public AnnotatedTypeBuilder<X> removeFromMethodParameter(Method method, int position,\n\t\t\tClass<? extends Annotation> annotationType) {\n\t\tif (methods.get(method) == null) {\n\t\t\tthrow new IllegalArgumentException(\"Method \" + method + \" not present on class \" + getJavaClass());\n\t\t} else {\n\t\t\tif (methodParameters.get(method).get(position) == null) {\n\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\tString.format(\"parameter %s not present on method %s declared on class %s\", method, position,\n\t\t\t\t\t\t\t\tgetJavaClass()));\n\t\t\t} else {\n\t\t\t\tmethodParameters.get(method).get(position).remove(annotationType);\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}", "public T remove(T target);", "public CardCollection destroyCardType(String type) ;", "void removeAllParameterViews();", "public void removeParameters() {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"removeParameters() \");\n Via via=(Via)sipHeader;\n \n via.removeParameters();\n }", "public AnnotatedTypeBuilder<X> overrideParameterType(AnnotatedParameter<? super X> parameter, Type type) {\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Method) {\n\t\t\tMethod method = (Method) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn overrideMethodParameterType(method, parameter.getPosition(), type);\n\t\t}\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Constructor<?>) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tConstructor<X> constructor = (Constructor<X>) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn overrideConstructorParameterType(constructor, parameter.getPosition(), type);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Cannot remove from parameter \" + parameter\n\t\t\t\t\t+ \" - cannot operate on member \" + parameter.getDeclaringCallable().getJavaMember());\n\t\t}\n\t}", "public void remove(){\n }", "void remove( ModelObject object );", "T remove(T target);", "public void removeChild( ChildType child );", "public void remove(GeometricalObject object);", "public StructuredDocument<?> removeServiceParam(ID key) {\n Element<?> param = serviceParams.remove(key);\n\n if (param == null) {\n return null;\n }\n\n incModCount();\n\n // It sound silly to clone it, but remember that we could be sharing\n // this element with a clone of ours, so we have the duty to still\n // protect it.\n\n return StructuredDocumentUtils.copyAsDocument(param);\n }", "void remove(GeometricalObject object);", "<T extends Component> Optional<T> removeComponent(Class<T> type);", "@Override\n\tpublic void remove(E x) {\n\t\t\n\t}" ]
[ "0.67264587", "0.671589", "0.6585977", "0.6365818", "0.63235825", "0.63073254", "0.6288837", "0.6243512", "0.624146", "0.6220105", "0.61889356", "0.61346465", "0.6118295", "0.6114642", "0.60553145", "0.60491467", "0.60068387", "0.60039485", "0.5971944", "0.596872", "0.5964237", "0.59586", "0.59476036", "0.59148276", "0.59022397", "0.5857634", "0.5846333", "0.58160603", "0.58054644", "0.58021", "0.5789895", "0.578368", "0.5770997", "0.57642347", "0.5749739", "0.5736605", "0.5723189", "0.57065386", "0.5704699", "0.5687413", "0.5681855", "0.56785613", "0.56770116", "0.56770116", "0.56770116", "0.56770116", "0.56770116", "0.56339496", "0.5621441", "0.561504", "0.561504", "0.5602924", "0.5593943", "0.55878913", "0.55694425", "0.5569125", "0.55572295", "0.5551704", "0.5551704", "0.5546253", "0.55411154", "0.5534766", "0.5534766", "0.5534766", "0.5534766", "0.5534766", "0.5534766", "0.5534766", "0.5534766", "0.55281126", "0.55167776", "0.5516546", "0.5508042", "0.5505898", "0.5505603", "0.54963017", "0.54899365", "0.54887474", "0.5488263", "0.54829705", "0.54809695", "0.5479761", "0.5474281", "0.54732406", "0.54732406", "0.5471076", "0.5467161", "0.5465385", "0.54592586", "0.5459072", "0.5456762", "0.54291606", "0.54271233", "0.5412009", "0.5411146", "0.5400889", "0.5388109", "0.538617", "0.53823507", "0.538066" ]
0.794751
0
Removes all the objects of type "typed parameter" from the collection of the current object.
void clearTypedParameters();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean removeTypedParameter(Parameter typedParameter);", "void clearTypedFeatures();", "public final void removeAllCompositeTypes()\n {\n listModel.removeAllElements();\n\tallTypes.removeAllElements();\n }", "public void removeParam(Object obj) {\n\t\tparams.remove(obj);\n\t}", "Collection<Parameter> getTypedParameters();", "public void clearParameters() {\n\t\tqueryParameters.clear();\n\t}", "void removeAllParameterViews();", "public void clearParams() {\n setParams((String[]) null);\n }", "@Override\n\t\tpublic Object getTypedParams(Object params) {\n\t\t\treturn null;\n\t\t}", "@Override\n\t\tpublic Object getTypedParams(Object params) {\n\t\t\treturn null;\n\t\t}", "public void removeAll(Object element);", "public void removeInputType(IInputType type);", "void unsetType();", "public void removeParameter(){\r\n \tMap<String,String> params = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();\r\n\t\tlong paramId = Long.parseLong(params.get(\"parameterId\"));\r\n\t\tthis.getLog().info(\"parameterId:\" + paramId);\r\n\t\t\r\n\t\tif(paramId != 0){\r\n\t\t\ttry {\r\n\t\t\t\tConnectionFactory.createConnection().deleteParameter(paramId);\r\n\t\t\t\tthis.getSelectedAlgorithm().setParameters(ConnectionFactory.createConnection().getAlgorithmParameterArray(getSelectedAlgorithm().getId()));\r\n\t\t\t} catch (DataStorageException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void clear() {\n\t\tthis.boundObjects.clear();\n\t}", "public void clear()\r\n {\r\n this.boundObjects.clear();\r\n }", "public void clear_type(String type) {\n\t\t/* Iterate through draw list */\n\t\tIterator<ArrayList<Drawable>> iter = this.drawlist.iterator();\n\t\twhile(iter.hasNext()) {\n\t\t\tArrayList<Drawable> layer = iter.next();\n\t\t\t/* Iterate through the layer. */\n\t\t\tIterator<Drawable> jter = layer.iterator();\n\t\t\twhile(jter.hasNext()) {\n\t\t\t\tif(jter.next().getType().equals(type)) {\n\t\t\t\t\tjter.remove();\n\t\t\t\t}//fi\n\t\t\t}//elihw\n\t\t}//elihw\n\t}", "public void removeByType(long typeId);", "public boolean remove(objectType obj);", "public void removeByObject()\r\n\t{\n\t}", "private void removeAllObjects()\n {\n removeObjects (getObjects(Actor.class));\n }", "public void removeAllInterpretedBy() {\r\n\t\tBase.removeAll(this.model, this.getResource(), INTERPRETEDBY);\r\n\t}", "public Builder clearParameters() {\n parameters_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000800);\n\n return this;\n }", "public Object remove();", "protected void clearResolvedObjects() {\n\t\ttype = null;\n\t\tmanagedType = null;\n\t\ttypeDeclaration = null;\n\t}", "public QueryMethodType<T> removeMethodParams()\n {\n childNode.remove(\"method-params\");\n return this;\n }", "public abstract void remove(Class<?> entity, Object paramObject);", "public void removeIndependentParameter(String name)\n throws ParameterException;", "Statement clearParameters();", "public void removeParam(int index) {\n params = Lists.remove(params, index);\n }", "protected void clearData() {\n any.type(any.type());\n }", "public AnnotatedTypeBuilder<X> removeFromParameter(AnnotatedParameter<? super X> parameter,\n\t\t\tClass<? extends Annotation> annotationType) {\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Method) {\n\t\t\tMethod method = (Method) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn removeFromMethodParameter(method, parameter.getPosition(), annotationType);\n\t\t}\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Constructor<?>) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tConstructor<X> constructor = (Constructor<X>) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn removeFromConstructorParameter(constructor, parameter.getPosition(), annotationType);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Cannot remove from parameter \" + parameter\n\t\t\t\t\t+ \" - cannot operate on member \" + parameter.getDeclaringCallable().getJavaMember());\n\t\t}\n\t}", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public static void clearTypes() {\n OBJECT = null;\n METHOD = null;\n METHOD_TABLE = null;\n CAST_EXCEPTION = null;\n INDEX_OUT_OF_BOUNDS_EXCEPTION = null;\n UNEXPECTED_NULL_EXCEPTION = null;\n INTERFACE_CREATE_EXCEPTION = null;\n ASSERT_EXCEPTION = null;\n CLASS = null;\n ARRAY = null;\n ARRAY_NULLABLE = null;\n ENUM = null;\n ATTRIBUTE = null;\n EXCEPTION = null;\n GENERIC_CLASS = null;\n BOOLEAN = null;\n BYTE = null;\n CODE = null;\n DOUBLE = null;\n FLOAT = null;\n INT = null;\n LONG = null;\n SHORT = null;\n UBYTE = null;\n UINT = null;\n ULONG = null;\n USHORT = null;\n STRING = null;\n ADDRESS_MAP = null;\n CAN_COMPARE = null;\n CAN_EQUAL = null;\n CAN_INDEX = null;\n CAN_INDEX_NULLABLE = null;\n CAN_INDEX_STORE = null;\n CAN_INDEX_STORE_NULLABLE = null;\n CAN_ITERATE = null;\n CAN_ITERATE_NULLABLE = null;\n ITERATOR = null;\n ITERATOR_NULLABLE = null;\n NUMBER = null;\n INTEGER = null;\n CAN_ADD = null;\n CAN_SUBTRACT = null;\n CAN_MULTIPLY = null;\n CAN_DIVIDE = null;\n CAN_MODULUS = null;\n CAN_NEGATE = null;\n\n POINTER = null;\n CAN_RUN = null;\n THREAD = null;\n\n THREAD_CURRENT = null;\n\n exceptionType = null;\n\n AttributeType.clearTypes();\n }", "public void removeObject(java.lang.Object object) {}", "public void removeTemporaryParameter(String name) {\n\t\ttemporaryParameters.remove(name);\n\t}", "Object remove();", "public void clearPolymorphismType() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "public void removeFromParameterNameValuePairs(entity.LoadParameter element);", "public void remove(AnyType x) {\n\t\troot = remove(x, root);\n\t}", "public void removeParameters() {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"removeParameters() \");\n Via via=(Via)sipHeader;\n \n via.removeParameters();\n }", "public void removeAllAnnotationTypes() {\n \t\tfConfiguredAnnotationTypes.clear();\n \t\tfAllowedAnnotationTypes.clear();\n \t\tfConfiguredHighlightAnnotationTypes.clear();\n \t\tfAllowedHighlightAnnotationTypes.clear();\n \t\tif (fTextInputListener != null) {\n \t\t\tfSourceViewer.removeTextInputListener(fTextInputListener);\n \t\t\tfTextInputListener= null;\n \t\t}\n \t}", "public void reset()\n {\n Iterator i;\n\n i = params.iterator(); \n while (i.hasNext()) {\n ((Parameter)i.next()).reset();\n }\n\n i = options.iterator(); \n while (i.hasNext()) {\n ((Parameter)i.next()).reset();\n }\n }", "void remover(Object o);", "public void removeParam(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(PARAM$14, i);\r\n }\r\n }", "abstract public void removeAll();", "public void removeType(TradeItem someItem) {\n Iterator<TradeItem> itemIterator = items.iterator();\n while (itemIterator.hasNext()) {\n if (itemIterator.next().getClass() == someItem.getClass()) {\n itemIterator.remove();\n }\n }\n }", "public boolean remove(Type t);", "private void remove(String paramString) {\n }", "public void removeParameter(final String name) {\n\t\tqueryParameters.remove(name);\n\t}", "public void removeParameter(int key){\n\n int i = 0;\n boolean found = false;\n while (i < parameters.size() && !found){\n if (parameters.get(i).getKey() == key) {\n parameters.remove(i);\n found = true;\n }\n }\n\n }", "public void remove( AnyType x )\r\n\t{\r\n\t\troot = remove( x, root );\r\n\t}", "void removeQueryParam(String name) {\n if (name == null) {\n throw new IllegalArgumentException(\"Name cannot be null\");\n }\n Iterator<Param> iter = queryParams.iterator();\n while (iter.hasNext()) {\n Param p = iter.next();\n if (p.key.equals(name)) {\n iter.remove();\n }\n }\n }", "public Object removeValue(final String name) {\r\n return this.params.remove(name);\r\n }", "boolean removeTypedFeature(StructuralFeature typedFeature);", "public Builder clearParameters() {\n if (parametersBuilder_ == null) {\n parameters_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n parametersBuilder_.clear();\n }\n return this;\n }", "public void clear()\n\t{\n\t\tobjectToId.clear();\n\t\tidToObject.clear();\n\t}", "public void\t\tremoveAll();", "@Override\n\tpublic Collection<Parameter<?>> getParameters() {\n\t\treturn null;\n\t}", "public Builder clearParameters() {\n if (parametersBuilder_ == null) {\n parameters_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n parametersBuilder_.clear();\n }\n return this;\n }", "public AnnotatedTypeBuilder<X> removeFromAll(Class<? extends Annotation> annotationType) {\n\t\tif (annotationType == null) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"%s parameter must not be null\", \"annotationType\"));\n\t\t}\n\t\tremoveFromClass(annotationType);\n\t\tfor (Map.Entry<Field, AnnotationBuilder> field : fields.entrySet()) {\n\t\t\tfield.getValue().remove(annotationType);\n\t\t}\n\t\tfor (Map.Entry<Method, AnnotationBuilder> method : methods.entrySet()) {\n\t\t\tmethod.getValue().remove(annotationType);\n\t\t\tif (methodParameters.get(method.getKey()) != null) {\n\t\t\t\tfor (Map.Entry<Integer, AnnotationBuilder> parameter : methodParameters.get(method.getKey())\n\t\t\t\t\t\t.entrySet()) {\n\t\t\t\t\tparameter.getValue().remove(annotationType);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (Map.Entry<Constructor<?>, AnnotationBuilder> constructor : constructors.entrySet()) {\n\t\t\tconstructor.getValue().remove(annotationType);\n\t\t\tif (constructorParameters.get(constructor.getKey()) != null) {\n\t\t\t\tfor (Map.Entry<Integer, AnnotationBuilder> parameter : constructorParameters.get(constructor.getKey())\n\t\t\t\t\t\t.entrySet()) {\n\t\t\t\t\tparameter.getValue().remove(annotationType);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}", "public void removeAllContentType() {\r\n\t\tBase.removeAll(this.model, this.getResource(), CONTENTTYPE);\r\n\t}", "public void removeAllMediaType() {\r\n\t\tBase.removeAll(this.model, this.getResource(), MEDIATYPE);\r\n\t}", "public Collection<V> remove(Object obj) {\n Collection collection = (Collection) this.Pu.remove(obj);\n if (collection == null) {\n return null;\n }\n Collection<V> ry = AbstractMapBasedMultimap.this.ry();\n ry.addAll(collection);\n AbstractMapBasedMultimap.this.Ps = AbstractMapBasedMultimap.this.Ps - collection.size();\n collection.clear();\n return ry;\n }", "public void removeAllGeneralEncapsulatedObject() {\r\n\t\tBase.removeAll(this.model, this.getResource(), GENERALENCAPSULATEDOBJECT);\r\n\t}", "public void removeParameters(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(PARAMETERS$16, i);\n }\n }", "public CardCollection destroyCardType(String type) ;", "void onClearAllParametersButtonClick();", "public void removeAuxClasss(Collection auxClasss);", "public void test_clearTypedValues_accuracy() {\n instance.addTypedValue(typedValue);\n assertTrue(\"The TypedValue is not added properly.\", instance.containsTypedValue(typedValue));\n\n instance.clearTypedValues();\n assertFalse(\"The TypedValue is not removed properly.\", instance.containsTypedValue(typedValue));\n }", "public void clear()\r\n {\r\n m_alParameters.clear();\r\n fireTableDataChanged();\r\n }", "void removeAll();", "void removeAll();", "public void removeParameter(String sName)\r\n {\r\n for (int iCount = 0; iCount < m_alParameters.size(); iCount++)\r\n {\r\n Parameter c = m_alParameters.get(iCount);\r\n\r\n if (c.getName().equals(sName))\r\n {\r\n m_alParameters.remove(iCount);\r\n fireTableRowsDeleted(iCount, iCount);\r\n }\r\n }\r\n }", "public void removeAllItems ();", "public void removeAllcast() {\n\t\tif(this.cast != null)\n\t\t\tthis.cast.clear();\n\t}", "public void removeAllFileType() {\r\n\t\tBase.removeAll(this.model, this.getResource(), FILETYPE);\r\n\t}", "@Override\n public void clear() {\n for (E e : this) {\n remove(e);\n }\n }", "public abstract Object getTypedParams(Object params);", "public void remove(T word);", "void removeObjectFactory(Injectable injectable);", "public void supprimerCollection(){\r\n collection.clear();\r\n }", "public synchronized void elementsCleared(Object source) {\n\n\t}", "public void removePersistentParameter(String name) {\r\n\t\tpersistentParameters.remove(name);\r\n\t}", "public void removeAllPartOfSet() {\r\n\t\tBase.removeAll(this.model, this.getResource(), PARTOFSET);\r\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t}", "@Override\n\tpublic void remove(Object o) {\n\t\t\n\t}", "@Override\n public void removeAll(){\n gameCollection.removeAllElements();\n }" ]
[ "0.71914405", "0.61518794", "0.60448825", "0.60425836", "0.5951933", "0.58719873", "0.58057165", "0.57185787", "0.56803375", "0.56803375", "0.567856", "0.5658367", "0.5639655", "0.56013393", "0.55933225", "0.559182", "0.5564101", "0.55593324", "0.5529018", "0.54840827", "0.54791766", "0.5439202", "0.5436835", "0.5427165", "0.5425294", "0.54225385", "0.54182667", "0.53871965", "0.53732705", "0.5368418", "0.53650314", "0.5360021", "0.5353992", "0.5353992", "0.5353992", "0.5353992", "0.5353992", "0.5353992", "0.5353992", "0.5353992", "0.5353992", "0.5353992", "0.5353992", "0.5353992", "0.5349197", "0.53428864", "0.5336085", "0.5319286", "0.53130585", "0.5302214", "0.5296969", "0.5292903", "0.5284571", "0.52781904", "0.5276832", "0.5259779", "0.5255334", "0.5251507", "0.5249948", "0.52456903", "0.52388257", "0.52313215", "0.5227494", "0.5216001", "0.52048546", "0.5201233", "0.5200977", "0.51972103", "0.5195887", "0.51944965", "0.51873064", "0.51789284", "0.51735944", "0.5168437", "0.51654917", "0.51585877", "0.51557314", "0.51526296", "0.51378626", "0.51365995", "0.5135393", "0.5134872", "0.512988", "0.512988", "0.5119964", "0.5112545", "0.5110607", "0.5110569", "0.5109582", "0.50985104", "0.5097509", "0.5081063", "0.50802225", "0.50672567", "0.50622946", "0.50567526", "0.5054945", "0.5054945", "0.5049977", "0.5035042" ]
0.78236943
0
Gets all the objects of type "typed parameter" previously added to the collection of the current object. Additions and removals of elements to and from the returned collection do not change the state of current object (i.e. the returned collection is a copy of the internal one of the current object). However, if an element contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the returned collections share references to the same objects).
Collection<Parameter> getTypedParameters();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<TypeDescriptor> getAllRelatedTypes() {\n final var types = getTypeParameters().stream()\n .flatMap(type -> type.getAllRelatedTypes().stream())\n .collect(Collectors.toCollection(HashSet::new));\n\n types.add(this);\n return types;\n }", "<T> IList<T> getObjects(Class<T> type);", "void addTypedParameter(Parameter typedParameter);", "public Collection<ParameterClass> getAllParameters()\n\t{\n\t\tif( this.parent == null )\n\t\t{\n\t\t\treturn this.getDeclaredParameters();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tCollection<ParameterClass> inherited = new HashSet<>( this.parameters.values() );\n\t\t\t\n\t\t\t// loop through each parent and get their parameters - creates many fewer collections\n\t\t\t// doing it this way compared to recursing up\n\t\t\tInteractionClass currentParent = this.parent;\n\t\t\twhile( currentParent != null )\n\t\t\t{\n\t\t\t\tinherited.addAll( currentParent.parameters.values() );\n\t\t\t\tcurrentParent = currentParent.parent;\n\t\t\t}\n\t\t\t\n\t\t\t// return the complete set\n\t\t\treturn inherited;\n\t\t}\n\t}", "public abstract Object getTypedParams(Object params);", "public List hardList() {\r\n List result = new ArrayList();\r\n\r\n for (int i=0; i < size(); i++) {\r\n Object tmp = get(i);\r\n\r\n if (tmp != null)\r\n result.add(tmp);\r\n }\r\n\r\n return result;\r\n }", "public interface ParameterCollection<T extends Parameter> extends Collection<T> {\r\n\t\r\n\t/**\r\n\t * Determines if a Parameter with the given ParameterReference is in the collection.\r\n\t * Always returns false for ParameterReference.UNREFERENCABLE.\r\n\t * \r\n\t * @param ref The ParameterReference to check.\r\n\t * @return Returns true iff a Parameter with the given ParameterReference is in the\r\n\t * collection and the reference is not equal to ParameterReference.UNREFERENCABLE.\r\n\t */\r\n\tpublic boolean containsByReference(ParameterReference ref);\r\n\t\r\n\t/**\r\n\t * @param reference The ParameterReference to find a Parameter for.\r\n\t * @return Returns the Parameter that's being referenced. Returns null if no\r\n\t * Parameter is in the collection with the given reference (i.e., reference is not in \r\n\t * the set returned by getParameterReferences()). If reference is equal to \r\n\t * ParameterReference.UNREFERENCABLE, the ParameterCollection must return\r\n\t * null, and not any unreferencable Parameter it may contain.\r\n\t */\r\n\tpublic T get(ParameterReference reference);\r\n\r\n\t/**\r\n\t * @return Returns a Set containing all possible ParameterReferences for which a\r\n\t * non-null Parameter will be returned when called as an argument to getParameter(). \r\n\t * ParameterReference.UNREFERENCABLE must not be in the returned set as a Parameter\r\n\t * can never be returned for it with getParameter().\r\n\t */\r\n\tpublic Set<ParameterReference> getParameterReferences();\r\n}", "<T> Collection<T> get(Class<T> type, Iterable<Node> nodes);", "public Iterator<ODocument> getAllAsList(@Generic(\"T\") final Class<?> type) {\n return getAll(type);\n }", "@Override\n\tpublic Set<T> retrieveAllItems() {\n\t\treturn cache;\n\t}", "Collection<V> getAllElements();", "<T extends Component> Collection<T> getAllComponents(Class<T> type);", "Collect getColl();", "public List<ResolvedType> typeParametersValues() {\n return this.typeParametersMap.isEmpty() ? Collections.emptyList() : typeDeclaration.getTypeParameters().stream().map(tp -> typeParametersMap.getValue(tp)).collect(Collectors.toList());\n }", "public List<Type> getAll();", "Get<K, C> addAll();", "void clearTypedParameters();", "List<T> obtenerAll();", "abstract List<T> getReuslt();", "public Vector transformTypes(Vector old_concepts, Vector parameters)\n {\n Vector old_types = (Vector)((Concept)old_concepts.elementAt(0)).types.clone();\n return old_types;\n }", "CollectionParameter createCollectionParameter();", "public static void TestGenericMethod_addToCollection()\r\n\t{\n\t\tCollection<Object> objc = new ArrayList<Object>();\r\n\t\tCollection<Integer> intc = new ArrayList<Integer>();\r\n\t\tObject[] objs = new Object[2];\r\n\t\taddToCollection(objs, objc);\r\n\t\tString[] strings = new String[2];\r\n\t\tfor (int i = 0; i < strings.length; ++i)\r\n\t\t\tstrings[i] = Integer.toString(i);\r\n\t\t// Object argument inferred.\r\n\t\taddToCollection(strings, objc);\r\n\t\t// now you can print the array of objects ONLY.\r\n\t\tCollection<String> stringc = new ArrayList<String>();\r\n\t\taddToCollection(strings, stringc);\r\n\t\tint[] ints = new int[2];\r\n\t\tfor (int i = 0; i < ints.length; ++i)\r\n\t\t\tints[i] = i;\r\n\t\t// FAILS: is it an int or string?\r\n\t\t//addToCollection(ints, stringc);\r\n\t\t// FAILS: No autoboxing.\r\n\t\t//addToCollection<Integer>(ints,intc);\r\n\t}", "protected Collection getObjectsOfType(Collection allTypes, Collection curTypes) {\n Collection objectsOfType = new ArrayList();\n Iterator itA = allTypes.iterator();\n while (itA.hasNext()) {\n Object objAT = itA.next();\n if (objAT == null)\n continue;\n Iterator itB = curTypes.iterator();\n while (itB.hasNext()) {\n Object objCT = itB.next();\n if (objAT.equals(objCT))\n objectsOfType.add(objCT);\n } // while itB\n } // while itA\n return objectsOfType; \n }", "List<T> collect();", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<T> getList() {\r\n\t\tgetEntityManager().flush();\r\n\t\treturn getEntityManager().createQuery(\r\n\t\t\t\t\"select OBJECT(o) from \" + getClassType().getSimpleName() + \" o order by o.id\")\r\n\t\t\t\t.getResultList();\r\n\t}", "@Override\n\t\tpublic Object getTypedParams(Object params) {\n\t\t\treturn null;\n\t\t}", "@Override\n\t\tpublic Object getTypedParams(Object params) {\n\t\t\treturn null;\n\t\t}", "public Collection<GObject> getObjects();", "public Object[] getElements() {\r\n\t\treturn elements.clone();\r\n\t}", "List<Type> getAllTypeList();", "Object getTolist();", "public List<ItemTypeDTO> getAll();", "public Collection<T> getResults();", "@Override\n public Vector<Type> getDirectlySubsumedTypes(Type type) {\n return new Vector<>(getDirectSubtypes(type));\n }", "<T> void lookupAll(Class<T> type, Collection<T> out);", "public List<T> getAll() {\n return Arrays.asList(buffer);\n }", "protected Set<NewType> getNewSubTypes() {\r\n\t\tfinal Set<NewType> subTypes = new HashSet<NewType>();\r\n\r\n\t\tfinal GeneratorContext context = this.getGeneratorContext();\r\n\t\tfinal Iterator<NewType> newTypesIterator = context.getNewTypes().iterator();\r\n\r\n\t\twhile (newTypesIterator.hasNext()) {\r\n\t\t\tfinal NewType newType = newTypesIterator.next();\r\n\t\t\tif (newType.getSuperType() == this) {\r\n\t\t\t\tsubTypes.add(newType);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn subTypes;\r\n\t}", "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\n public <T> Iterator<Entry<T>> typedIterator(Class<T> clazz) {\n List<Entry<T>> entries = new ArrayList();\n for (Iterator<Entry> it = this.iterator(); it.hasNext(); ) {\n final Entry e = it.next();\n if (e.getKey().valueType.equals(clazz)) {\n entries.add(e);\n }\n }\n return entries.iterator();\n }", "public List getTheObjects() {\r\n if (theObjects == null) {\r\n setTheObjects(new Vector());\r\n }\r\n return theObjects;\r\n }", "IList<T> add(T t);", "public Set getNodesThatCall(PassedParameter pp) {\n if (USE_PARAMETER_MAP) {\n Set s = (Set)passedParamToNodes.get(pp);\n if (s == null) return Collections.EMPTY_SET;\n return s;\n }\n Set s = NodeSet.FACTORY.makeSet();\n getNodesThatCall(pp, s);\n return s;\n }", "public Collection getRegisteredObjects() {\n return usedByObjects;\n }", "@Deprecated public List<TypeParamDef> getParameters(){\n return build(parameters);\n }", "@SuppressWarnings(\"unchecked\")\n public Collection<T> getWithinQuad(long quad) {\n ArrayList<Object> result = new ArrayList<Object>();\n root.addDescendantsWithinQuad(this, quad, result);\n return (ArrayList<T>) result;\n }", "public <T> Collection<T> getChildrenCollection(Class<T> clz);", "public Collection<SPParameter> getParameters(){\n return mapOfParameters.values();\n }", "public final native KmlObjectList getElementsByType(String type) /*-{\r\n\t\treturn this.getElementsByType(type);\r\n\t}-*/;", "public abstract List<Object> getAll();", "public Collection getAllAuxClasss();", "public List<TypeDefinition> getParameters() {\n\t\treturn parameters;\n\t}", "public Collection<V> getAllElements() {\n\t\treturn cacheMap.values();\n\t}", "public List<Ref<? extends Type>> typeVariables();", "public Collection<T> values(){\n\t\treturn null;\r\n\t\t//TODO\r\n\t}", "ArrayList<E> getAll();", "@DerivedProperty\n\t\nSet<CtTypeReference<?>> getReferencedTypes();", "<T> List<T> getAll(Class<T> clazz);", "@Override\n\tpublic Set<T> valeurs() {\n\t\treturn Set.of(val);\n\t}", "@Override\n public Iterator<Type> getTypeIterator() {\n // trick to convert List<TypeImpl> to List<Type> with some safety\n Iterator<Type> it = Collections.<Type> unmodifiableList(types).iterator();\n it.next();\n return it;\n }", "Collection<? extends Object> getSameAs();", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "@Override\n\tpublic Collection<T> getAll(CommandSender sender)\n\t{\n\t\t// No Can See Override?\n\t\tif ( ! this.isCanSeeOverridden()) return this.getAll();\n\t\t\n\t\t// Create\n\t\tSet<T> ret = new MassiveSet<>();\n\t\t\n\t\t// Fill\n\t\tfor (T value : this.getAll())\n\t\t{\n\t\t\tif ( ! this.canSee(value, sender)) continue;\n\t\t\tret.add(value);\n\t\t}\n\t\t\n\t\t// Return\n\t\treturn ret;\n\t}", "public List<New> list();", "public ArrayList<Predicate> generateGroundings(final Collection<Litereal> param){\n\t\tArrayList<Litereal> objects = new ArrayList<>();\n\t\tobjects.addAll(PddlProblem.consObjects);\n\t\tfor (Litereal litereal : param) {\n\t\t\tif(!PddlProblem.consObjects.contains(litereal)){\n\t\t\t\tobjects.add(litereal);\n\t\t\t}\n\t\t}\n\n\n\t\tArrayList<Predicate> result = new ArrayList<>();\n\n\t\tLitereal litereals[]= new Litereal[this.objects.size()];\n\t\tgenerate(result, objects, litereals, 0);\n\n\t\treturn result;\n\t}", "public interface Set<Type> {\r\n\r\n\t/**\r\n\t * Ensures that this set contains the specified item.\r\n\t * \r\n\t * @param item\r\n\t * - the item whose presence is ensured in this set\r\n\t * @return true if this set changed as a result of this method call (that\r\n\t * is, if the input item was actually inserted); otherwise, returns\r\n\t * false\r\n\t */\r\n\tpublic boolean add(Type item);\r\n\r\n\t/**\r\n\t * Ensures that this set contains all items in the specified collection.\r\n\t * \r\n\t * @param items\r\n\t * - the collection of items whose presence is ensured in this\r\n\t * set\r\n\t * @return true if this set changed as a result of this method call (that\r\n\t * is, if any item in the input collection was actually inserted);\r\n\t * otherwise, returns false\r\n\t */\r\n\tpublic boolean addAll(Collection<? extends Type> items);\r\n\r\n\t/**\r\n\t * Removes all items from this set. The set will be empty after this method\r\n\t * call.\r\n\t */\r\n\tpublic void clear();\r\n\r\n\t/**\r\n\t * Determines if there is an item in this set that is equal to the specified\r\n\t * item.\r\n\t * \r\n\t * @param item\r\n\t * - the item sought in this set\r\n\t * @return true if there is an item in this set that is equal to the input\r\n\t * item; otherwise, returns false\r\n\t */\r\n\tpublic boolean contains(Type item);\r\n\r\n\t/**\r\n\t * Determines if for each item in the specified collection, there is an item\r\n\t * in this set that is equal to it.\r\n\t * \r\n\t * @param items\r\n\t * - the collection of items sought in this set\r\n\t * @return true if for each item in the specified collection, there is an\r\n\t * item in this set that is equal to it; otherwise, returns false\r\n\t */\r\n\tpublic boolean containsAll(Collection<? extends Type> items);\r\n\r\n\t/**\r\n\t * Returns true if this set contains no items.\r\n\t */\r\n\tpublic boolean isEmpty();\r\n\r\n\t/**\r\n\t * Returns the number of items in this set.\r\n\t */\r\n\tpublic int size();\r\n}", "@Override\n public Set<T> getItems() {\n return items;\n }", "Collection<T> getSimpleModelObjects();", "public List<ValueObject> getValueObjects()\r\n {\r\n List<ValueObject> vos = new ArrayList<ValueObject>();\r\n vos.add(getValueObject());\r\n return vos;\r\n }", "<T> Set<T> lookupAll(Class<T> type);", "public abstract List<T> all();", "public Set<Type> getSubTypes() {\r\n\t\tfinal Set<Type> subTypes = this.createSubTypes();\r\n\r\n\t\tfinal Set<Type> merged = new HashSet<Type>();\r\n\t\tmerged.addAll(subTypes);\r\n\t\tmerged.addAll(this.getNewSubTypes());\r\n\r\n\t\treturn Collections.unmodifiableSet(merged);\r\n\t}", "public List<T> values() {\n return values(System.currentTimeMillis());\n }", "public Vector getItemsByType(Class itemType)\n {\n Vector results = new Vector();\n\n Enumeration e = items.elements();\n\n while (e.hasMoreElements())\n {\n Object ob = e.nextElement();\n\n if (itemType.isAssignableFrom(ob.getClass()))\n {\n results.addElement(ob);\n }\n }\n\n return results;\n }", "@Override\n\t@Transactional\n\tpublic List<T> getAll() {\n\t\tList<?> result = hibernateTemplate.getSessionFactory().getCurrentSession()\n\t\t\t\t.createCriteria(getGenericClass())\n\t\t\t\t.list();\n\t\treturn result.stream()\n\t\t\t\t.map(e -> initialize(checkType(e)))\n\t\t\t\t.filter(e -> e != null)\n\t\t\t\t.collect(Collectors.toList());\n\t}", "ISet<Class<?>> collectAllTypeWiredServices();", "public <V> List<V> get(Collection<V> initialValues) {\n List obj = pool.poll();\n if (obj != null) {\n @SuppressWarnings(\"unchecked\")\n List<V> value = (List<V>)obj;\n value.addAll(initialValues);\n return value;\n } else {\n return newObject(initialValues);\n }\n }", "private List<Object> serializeActualCollectionMembers(AbstractPersistentCollection collection)\r\n\t{\r\n\t\tList<Object> result = new ArrayList<Object>();\r\n\t\tif (!collection.wasInitialized())\r\n\t\t{\r\n\t\t\tcollection.forceInitialization();\r\n\t\t}\r\n\t\tIterator<Object> itr = collection.entries(null);\r\n\t\twhile (itr.hasNext())\r\n\t\t{\r\n\t\t\tObject next = itr.next();\r\n\t\t\tObject newObj = serialize(next);\r\n\t\t\tresult.add(newObj);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@Override\n\tpublic List<Object> modifyByPage(JSONObject params) {\n\t\tList<Object> resultData = new ArrayList<Object>();\n\t\tString type = StringUtil.ToString(params.getString(\"type\"));\n\t\tSystem.out.println(type);\n\t\tString tip = StringUtil.ToString(params.getString(\"tip\"));\n\t\tString area = StringUtil.ToString(params.getString(\"area\"));\n\t\tString releaseDate = StringUtil.ToString(params.getString(\"releaseDate\"));\n\t\tint size = Integer.parseInt(params.getString(\"size\"));\n\t\tint currentPage = Integer.parseInt(params.getString(\"currentPage\"));\n \n\t\tMap<String, Object> data = new HashMap<String, Object>();\n\t\tdata.put(\"type\", type);\n\t\tif(!tip.equals(\"\")){\n\t\t\tdata.put(\"tip\", tip);\n\t\t} else if(!area.equals(\"\")){\n\t\t\tdata.put(\"area\", area);\n\t\t} else if(!releaseDate.equals(\"\")){\n\t\t\tdata.put(\"releaseDate\", releaseDate);\n\t\t}\n\t\tPageResultBean prb = new PageResultBean();\n\t\tprb.setPageSize(size);\n\t\tprb.setCurrentPage(currentPage);\n\t\tprb.setToPage(currentPage);\n\t\tPageResultBean resultPrb = new PageResultBean();\n\t\tString orderBy = \"asc\";\n\t\tresultPrb = this.queryForPage(prb, \"Movie.selectByType\", \"Movie.selectPage\", data, orderBy);\n\t\tresultData.add(resultPrb);\n\n\t\treturn resultData;\n\t}", "public abstract AbstractObjectIterator<LocalAbstractObject> getAllObjects();", "@Override\n\tpublic Collection<Parameter<?>> getParameters() {\n\t\treturn null;\n\t}", "Collection<StructuralFeature> getTypedFeatures();", "T[] getObjects() {\n\t\treturn this.array;\n\t}", "public abstract <T> List<T> loadAll(Class<T> paramClass);", "@Override\n public List<CacheObject<K, V>> getAll(){\n return new ArrayList<>(this.cache.values());\n }", "public boolean addAll(Collection<? extends Type> items);", "public java.util.List<Type> getType() { \n\t\tif (myType == null) {\n\t\t\tmyType = new java.util.ArrayList<Type>();\n\t\t}\n\t\treturn myType;\n\t}", "public Collection<T> getItems() {\r\n return Collections.unmodifiableCollection(items);\r\n }", "@Nonnull\n @jakarta.annotation.Nonnull\n CloseableIterator<Obj> scanAllObjects(\n @Nonnull @jakarta.annotation.Nonnull Set<ObjType> returnedObjTypes);", "interface MyCollection{\n\n boolean\tadd(Object o); // Ensures that this collection contains the specified element (optional operation).\n void\tclear(); // Removes all of the elements from this collection (optional operation).\n boolean\tcontains(Object o); // Returns true if this collection contains the specified element.\n boolean\tequals(Object o); // Compares the specified object with this collection for equality.\n boolean\tremove(Object o); // Removes a single instance of the specified element from this collection, if it is present (optional operation).\n boolean\tisEmpty(); // Returns true if this collection contains no elements.\n int\tsize(); // Returns the number of elements in this collection.\n //Object[] toArray(); // Returns an array containing all of the elements in this collection.\n\n/*\n boolean\tcontainsAll(Collection<?> c); Returns true if this collection contains all of the elements in the specified collection.\n int\thashCode(); Returns the hash code value for this collection.\n Iterator<E>\titerator(); Returns an iterator over the elements in this collection.\n boolean\tremoveAll(Collection<?> c); Removes all of this collection's elements that are also contained in the specified collection (optional operation).\n boolean\tretainAll(Collection<?> c); Retains only the elements in this collection that are contained in the specified collection (optional operation).\n <T> T[]\ttoArray(T[] a); Returns an array containing all of the elements in this collection; the runtime type of the returned array is that of the specified array.\n*/\n\n\n\n\n}", "private Collection<TypeDeclaration> getAllTypes() {\n if (allTypes != null) {\n return allTypes;\n }\n allTypes = new ArrayList<TypeDeclaration>();\n for (Symbol s : getMembers(false)) {\n allTypes.add(env.declMaker.getTypeDeclaration((ClassSymbol) s));\n }\n return allTypes;\n }", "public java.util.List<com.isat.catalist.oms.order.OOSOrderLineItemParamType> getParametersList()\n {\n final class ParametersList extends java.util.AbstractList<com.isat.catalist.oms.order.OOSOrderLineItemParamType>\n {\n public com.isat.catalist.oms.order.OOSOrderLineItemParamType get(int i)\n { return OOSOrderLineItemTypeImpl.this.getParametersArray(i); }\n \n public com.isat.catalist.oms.order.OOSOrderLineItemParamType set(int i, com.isat.catalist.oms.order.OOSOrderLineItemParamType o)\n {\n com.isat.catalist.oms.order.OOSOrderLineItemParamType old = OOSOrderLineItemTypeImpl.this.getParametersArray(i);\n OOSOrderLineItemTypeImpl.this.setParametersArray(i, o);\n return old;\n }\n \n public void add(int i, com.isat.catalist.oms.order.OOSOrderLineItemParamType o)\n { OOSOrderLineItemTypeImpl.this.insertNewParameters(i).set(o); }\n \n public com.isat.catalist.oms.order.OOSOrderLineItemParamType remove(int i)\n {\n com.isat.catalist.oms.order.OOSOrderLineItemParamType old = OOSOrderLineItemTypeImpl.this.getParametersArray(i);\n OOSOrderLineItemTypeImpl.this.removeParameters(i);\n return old;\n }\n \n public int size()\n { return OOSOrderLineItemTypeImpl.this.sizeOfParametersArray(); }\n \n }\n \n synchronized (monitor())\n {\n check_orphaned();\n return new ParametersList();\n }\n }", "protected <V> List<V> newObject(Collection<V> initialValues) {\n return new ArrayList<>(initialValues);\n }", "protected Collection<V> newCollection() {\r\n \treturn new ArrayList<V>();\r\n }", "public ImmutableList<T> allExtant() {\n return ImmutableList.<T>builder().addAll(unchanged).addAll(changed).build();\n }", "public Collection<T> mo29734a() {\n return new ArrayList();\n }", "public Vector allParameters(Vector old_concepts, Theory theory)\n {\n Concept old_concept = (Concept)old_concepts.elementAt(0);\n if (old_concept.arity > arity_limit)\n return new Vector();\n Vector params = super.allColumnTuples(old_concept.arity+1);\n Vector output = new Vector();\n for (int i=0; i<params.size(); i++)\n {\n Vector p = (Vector)params.elementAt(i);\n if (p.size()>1)\n {\n boolean no_good = false;\n Vector param = new Vector();\n String old_type = \"\";\n for (int j=0; j<p.size() && !no_good; j++)\n {\n String colstring = (String)p.elementAt(j);\n int colpos = (new Integer(colstring)).intValue() - 1;\n String type = (String)old_concept.types.elementAt(colpos);\n if (old_type.equals(\"\"))\n old_type = type;\n else\n if (!old_type.equals(type))\n no_good = true;\n param.addElement((new Integer(colpos)).toString());\n }\n if (!no_good)\n output.addElement(param);\n }\n }\n return output;\n }" ]
[ "0.53698814", "0.5260069", "0.50860876", "0.5031089", "0.5027402", "0.49682677", "0.49452806", "0.49346787", "0.49156466", "0.49108878", "0.48979893", "0.48823652", "0.48783883", "0.48517907", "0.48343673", "0.48321143", "0.48229682", "0.48207462", "0.48138127", "0.47935015", "0.47623777", "0.47356176", "0.47342327", "0.47339952", "0.4731878", "0.4708082", "0.4708082", "0.4675673", "0.46541804", "0.46189106", "0.4615052", "0.46140662", "0.4610828", "0.4599421", "0.4593243", "0.45894548", "0.45835075", "0.45824656", "0.45811045", "0.45792675", "0.45683524", "0.45677766", "0.45653653", "0.4558111", "0.45491835", "0.45417097", "0.4531416", "0.4511085", "0.45089087", "0.45082477", "0.45028952", "0.4501675", "0.45015723", "0.45007005", "0.4490072", "0.44875932", "0.44830698", "0.44804853", "0.44790688", "0.44755656", "0.44747496", "0.44747496", "0.44747496", "0.44747496", "0.44747496", "0.4468827", "0.44643512", "0.44600266", "0.4457567", "0.4454544", "0.44522837", "0.44515514", "0.44478238", "0.44344124", "0.44313854", "0.44303137", "0.4427491", "0.44225416", "0.4418406", "0.44179678", "0.44178423", "0.44155183", "0.44138646", "0.44118053", "0.44116277", "0.4406581", "0.44059625", "0.44046828", "0.4401464", "0.43999764", "0.43975374", "0.43817723", "0.43766233", "0.43731692", "0.43695614", "0.4365734", "0.43653604", "0.43617305", "0.43615183", "0.43562353" ]
0.6311244
0
Checks if a typed parameter is contained in the collection of the current object.
boolean containsTypedParameter(Parameter typedParameter);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean contains(CParamImpl param);", "public boolean involvesTypeParameter(TypeReference tref) throws LookupException {\n\t\treturn ! involvedTypeParameters(tref).isEmpty();\n\t}", "public boolean hasParameter(){\n\t\tif (parameterType==null)\n\t\t\treturn false;\n\t\telse{\n\t\t\treturn true;\n\t\t}\n\t}", "@Override\n\tpublic boolean isHaveParam() {\n\t\treturn param !=null;\n\t}", "private boolean hasParam(SearchCriteria sc, final String param) {\n final Object obj = sc.getParam(param);\n return obj != null && !obj.toString().isEmpty();\n }", "public boolean isParameterized() {\n\t\treturn this.typeSignatures != null && this.typeArguments != null;\n\t}", "public boolean hasParam(String paramName);", "public boolean containsByReference(ParameterReference ref);", "public boolean isParameterizedType()\n {\n\n return _typeParams != null && _typeParams.length > 0;\n }", "public boolean containsIndependentParameter(String name);", "public boolean isParameterProvided();", "protected boolean onlyUsesTheseParameters(Set<TypeParameter> parameters) {\n if (isParameterized()) {\n if (isFullyInstantiated()) return true;\n\n for (ModifiedType modifiedType : getTypeParameters()) {\n Type parameter = modifiedType.getType();\n if (parameter instanceof TypeParameter typeParameter) {\n if (!parameters.contains(typeParameter)) return false;\n } else if (!parameter.onlyUsesTheseParameters(parameters)) return false;\n }\n }\n\n return true;\n }", "@Override\n\tpublic boolean contains(Type t) {\n\t\treturn true;\n\t}", "private boolean hasParameterCheckAnnotations(Annotation annotation) {\n\t\tfor (Annotation anno : annotation.annotationType().getAnnotations()) {\n\t\t\tClass<? extends Annotation> annotationType = anno.annotationType();\n\t\t\tif (annotationType.isAnnotationPresent(ParameterCheck.class)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "boolean hasParameters();", "public boolean hasParam(String name)\r\n {\r\n try {\r\n return lookup.get(name) != null;\r\n } catch(Exception e) {}\r\n \r\n return false;\r\n }", "protected boolean onlyUsesTypeParametersFrom(Type type) {\n if (type.isParameterized() && isParameterized() && !isFullyInstantiated()) {\n Set<TypeParameter> parameters = new HashSet<>();\n\n for (ModifiedType modifiedType : type.getTypeParameters()) {\n Type parameter = modifiedType.getType();\n if (parameter instanceof TypeParameter) parameters.add((TypeParameter) parameter);\n }\n\n return onlyUsesTheseParameters(parameters);\n }\n\n return false;\n }", "private boolean hasBindValue(Command command) {\n if (!CollectorVisitor.collectObjects(Parameter.class, command).isEmpty()) {\n return true;\n }\n for (Literal l : CollectorVisitor.collectObjects(Literal.class, command)) {\n if (isBindEligible(l)) {\n return true;\n }\n }\n return false;\n }", "boolean hasParameterValue();", "@Override\n\tpublic boolean hasParameter(String id) {\n\t\treturn false;\n\t}", "public boolean contains(Type item);", "private boolean paramCanBeInjected(Parameter parameter, Injector injector) {\n\t\treturn parameter.isBound(injector);\n\t}", "public boolean hasParameterName()\n {\n return this.paramName != null;\n }", "boolean hasParameterName();", "@JsonIgnore\n public boolean isGeneric() {\n return this.getGenericParameterDefs() != null && this.getGenericParameterDefs().size() > 0;\n }", "public boolean containsObject(T obj);", "public boolean containsObject(T obj);", "public boolean isSetParam() {\n return this.param != null;\n }", "public boolean containsAll(Collection<?> arg0) {\n\t\treturn false;\n\t}", "@Override\n public boolean equals(Object other)\n {\n if (!(other instanceof ParameterDefn))\n return false;\n return ( ((ParameterDefn)other).paramName.equalsIgnoreCase(paramName) && ((ParameterDefn)other).len == len &&\n ((ParameterDefn)other).lowerBound == lowerBound && ((ParameterDefn)other).upperBound == upperBound );\n }", "public boolean isParameter() {\n\t\treturn isWholeOperationParameter;\n\t}", "public boolean isTypeParameter() {\n return isTypeParameter;\n }", "public abstract boolean contains(Object item);", "static boolean anyObjectTypes(List<?> ptypes) {\n for (Object ptype : ptypes) {\n if (isObjectType(ptype)) {\n return true;\n }\n }\n return false;\n }", "public boolean contains(Object elem);", "private static boolean matchParameter(IType type, @NotNull PsiType candidate, @NotNull Map<String, IType> typeVarMap, @Nullable PsiSubstitutor substitutor, boolean isStatic) {\n boolean result = false;\n\n if (type instanceof IMetaType) {\n type = ((IMetaType) type).getType();\n }\n\n IType basicPattern = type.isParameterizedType() ? type.getGenericType() : type;\n String patternName = basicPattern.getName();\n IType candidateType;\n\n if( candidate instanceof PsiEllipsisType ) {\n candidate = ((PsiEllipsisType)candidate).toArrayType();\n }\n\n if( candidate instanceof PsiArrayType && type.isArray() ) {\n return matchParameter( type.getComponentType(), ((PsiArrayType)candidate).getComponentType(), typeVarMap, substitutor, isStatic );\n }\n\n if (candidate instanceof PsiClassType) {\n PsiClassType candidateAsPsiClass = (PsiClassType) candidate;\n PsiClass resolvedCandidate = candidateAsPsiClass.resolve();\n String candidateName;\n if (resolvedCandidate != null) {\n if (resolvedCandidate instanceof PsiTypeParameter && substitutor != null) {\n resolvedCandidate = maybeSubstituteType(resolvedCandidate, substitutor);\n if (isStatic) {\n resolvedCandidate = stripToBoundingType((PsiTypeParameter) resolvedCandidate);\n }\n }\n if (resolvedCandidate instanceof PsiTypeParameter) {\n candidateName = resolvedCandidate.getName();\n } else {\n candidateName = resolvedCandidate.getQualifiedName();\n }\n } else {\n candidateName = candidate.getCanonicalText();\n }\n candidateType = typeVarMap.get(candidateName);\n if (candidateType != null) {\n result = type.equals(candidateType);\n }\n if( !result ) {\n result = candidateName.equals(patternName);\n if (result) {\n if( type instanceof ITypeVariableType && resolvedCandidate instanceof PsiTypeParameter ) {\n PsiClassType boundingType = JavaPsiFacadeUtil.getElementFactory( resolvedCandidate.getProject() ).createType( stripToBoundingType( (PsiTypeParameter)resolvedCandidate ) );\n result = matchParameter( TypeLord.getPureGenericType( ((ITypeVariableType)type).getBoundingType() ), boundingType, typeVarMap, substitutor, isStatic ) ||\n matchParameter( ((ITypeVariableType)type).getBoundingType(), boundingType, typeVarMap, substitutor, isStatic );\n }\n else {\n PsiType[] candidateTypeParams = candidateAsPsiClass.getParameters();\n IType[] patternTypeParams = type.getTypeParameters();\n int candidateTypeParamLength = candidateTypeParams != null ? candidateTypeParams.length : 0;\n int patternTypeParamLength = patternTypeParams != null ? patternTypeParams.length : 0;\n if (patternTypeParamLength == candidateTypeParamLength) {\n for (int i = 0; i < patternTypeParamLength; i++) {\n if (!matchParameter(patternTypeParams[i], candidateTypeParams[i], typeVarMap, substitutor, isStatic)) {\n result = false;\n break;\n }\n }\n } else {\n result = false;\n }\n }\n }\n }\n } else {\n PsiType unboundedCandidate = removeBounds(candidate);\n candidateType = typeVarMap.get(unboundedCandidate.getCanonicalText());\n if (candidateType != null) {\n result = type.equals(candidateType);\n } else {\n result = unboundedCandidate.equalsToText(patternName);\n }\n }\n if (!result && type instanceof IShadowingType) {\n return matchShadowedTypes((IShadowingType) type, candidate, typeVarMap, substitutor, isStatic);\n }\n return result;\n }", "@Override\n\tpublic boolean hasParameterGuard() {\n\t\treturn true;\n\t}", "boolean hasValue(PropertyValue<?, ?> value);", "public boolean isMember(T o)\n {\n return (objectSet.search(o) != null);\n }", "public boolean contains(Object o);", "public boolean contains(Object o);", "abstract public boolean isTyped();", "@Override\n\tpublic boolean isParam() {\n\t\treturn false;\n\t}", "private boolean isMsgRequestVarRequired(CodeGenContext codeGenCtx)\n\t{\n\t\t JTypeTable table = codeGenCtx.getJTypeTable();\n\t\t List<Method> allMethods = table.getMethods();\n\t\t\tfor(Method curentMethod : allMethods)\n\t\t\t{\n\t\t\t\tif(curentMethod.getParameterTypes().length > 0)\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t}", "public boolean contains(AnyType x) {\r\n\t\treturn contains(x, root);\r\n\t}", "@Override\n\tpublic boolean containsValue(Object arg0) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean contains(Object o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean contains(Object o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean contains(Object o) {\n\t\treturn false;\n\t}", "@Override\n public boolean isLowerBound(Type argType, Substitution<ReferenceType> subst) {\n ReferenceType boundType = this.boundType.apply(subst);\n if (boundType.equals(JavaTypes.NULL_TYPE)) {\n return true;\n }\n if (argType.isParameterized()) {\n if (!(boundType instanceof ClassOrInterfaceType)) {\n return false;\n }\n InstantiatedType argClassType = (InstantiatedType) argType.applyCaptureConversion();\n InstantiatedType boundSuperType =\n ((ClassOrInterfaceType) boundType)\n .getMatchingSupertype(argClassType.getGenericClassType());\n if (boundSuperType == null) {\n return false;\n }\n boundSuperType = boundSuperType.applyCaptureConversion();\n return boundSuperType.isInstantiationOf(argClassType);\n }\n return boundType.isSubtypeOf(argType);\n }", "public boolean contains(Object arg0) {\n\t\treturn false;\n\t}", "public interface Parameter {\n\n boolean isAssignableTo(Type<?> type);\n\n}", "boolean removeTypedParameter(Parameter typedParameter);", "public abstract boolean isCollection(T type);", "public boolean contains( AnyType x )\r\n\t{\r\n\t\treturn contains( x, root );\r\n\t}", "public boolean contains(T val);", "@Override\n\t\tpublic boolean contains(Object o) {\n\t\t\treturn false;\n\t\t}", "protected boolean isValid() {\n return COLLECTION.getList().contains(this);\n }", "boolean hasPlaceholderType();", "@Override\n @SuppressWarnings(\"unchecked\")\n public boolean contains(Object o) {\n return search((E) o) != null;\n }", "boolean containsValue(Object value);", "@Override\r\n\tpublic boolean supportsParameter(MethodParameter parameter) {\n\t\tAuthUser authUser = parameter.getParameterAnnotation(AuthUser.class);\r\n\t\t\r\n\t\t//@AuthUser 안붙어있음\r\n\t\tif(authUser==null){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t//파라미터 타입이 UserVo아님\r\n\t\tif(parameter.getParameterType().equals(UserVo.class)==false){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean contains(T obj) {\r\n\t\tlogger.trace(\"Enter contains\");\r\n\t\tlogger.trace(\"Exit contains\");\r\n\t\treturn data.contains(obj);\r\n\t}", "final boolean is(ScalarAttributeType scalarAttributeType, Vector vector) {\n return param(0) != null && param(0).is(scalarAttributeType) && is(vector);\n }", "public boolean isParameterOffset(int offset);", "public boolean hasParameter(String name) throws IllegalArgumentException {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"hasParameter() \");\n Via via=(Via)sipHeader;\n \n if(name == null) throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: null parameter\");\n return via.hasParameter(name);\n }", "private boolean contains(Object annotationType, Set allowed, Set configured) {\n \t\tif (allowed.contains(annotationType))\n \t\t\treturn true;\n \n \t\tboolean covered= isCovered(annotationType, configured);\n \t\tif (covered)\n \t\t\tallowed.add(annotationType);\n \n \t\treturn covered;\n \t}", "public boolean containsAll(Collection<? extends Type> items);", "boolean containsTypedFeature(StructuralFeature typedFeature);", "static boolean anyObjectTypes(Object[] ptypes) {\n for (Object ptype : ptypes) {\n if (isObjectType(ptype)) {\n return true;\n }\n }\n return false;\n }", "boolean contains(Object o);", "boolean contains(Object o);", "boolean contains(Object o);", "public boolean validateParameter(Parameter oParameter) {\r\n boolean bRet = true;\r\n for (Parameter cat : this.lstParameters) {\r\n if (cat.getDescriptionP().equalsIgnoreCase(oParameter.getDescriptionP())) {\r\n bRet = false;\r\n }\r\n }\r\n return bRet;\r\n }", "public boolean isTrueCollectionType()\n/* */ {\n/* 236 */ return Collection.class.isAssignableFrom(this._class);\n/* */ }", "public abstract boolean isArrayParams();", "boolean hasAdParameter();", "public boolean containsObject(AdvObject obj) {\n\t\treturn objects.contains(obj); // Replace with your code\n\t}", "public interface ParameterCollection<T extends Parameter> extends Collection<T> {\r\n\t\r\n\t/**\r\n\t * Determines if a Parameter with the given ParameterReference is in the collection.\r\n\t * Always returns false for ParameterReference.UNREFERENCABLE.\r\n\t * \r\n\t * @param ref The ParameterReference to check.\r\n\t * @return Returns true iff a Parameter with the given ParameterReference is in the\r\n\t * collection and the reference is not equal to ParameterReference.UNREFERENCABLE.\r\n\t */\r\n\tpublic boolean containsByReference(ParameterReference ref);\r\n\t\r\n\t/**\r\n\t * @param reference The ParameterReference to find a Parameter for.\r\n\t * @return Returns the Parameter that's being referenced. Returns null if no\r\n\t * Parameter is in the collection with the given reference (i.e., reference is not in \r\n\t * the set returned by getParameterReferences()). If reference is equal to \r\n\t * ParameterReference.UNREFERENCABLE, the ParameterCollection must return\r\n\t * null, and not any unreferencable Parameter it may contain.\r\n\t */\r\n\tpublic T get(ParameterReference reference);\r\n\r\n\t/**\r\n\t * @return Returns a Set containing all possible ParameterReferences for which a\r\n\t * non-null Parameter will be returned when called as an argument to getParameter(). \r\n\t * ParameterReference.UNREFERENCABLE must not be in the returned set as a Parameter\r\n\t * can never be returned for it with getParameter().\r\n\t */\r\n\tpublic Set<ParameterReference> getParameterReferences();\r\n}", "public boolean hasQueryParameter(String name) {\n\t\tcheckArgument(name != null && !name.isEmpty(), \"Invalid parameter name\");\n\t\treturn query.containsKey(name);\n\t}", "private boolean isServletParam(String name)\n {\n if (name == null)\n return false;\n if (name.startsWith(PARAM_PREFIX))\n return true;\n return false;\n }", "public boolean isFullyInstantiated() {\n if (!isParameterized()) return false;\n\n if (parameterized)\n for (ModifiedType parameter : typeParameters) {\n Type parameterType = parameter.getType();\n if (parameterType instanceof TypeParameter) return false;\n\n if (parameterType.isParameterized() && !parameterType.isFullyInstantiated()) return false;\n }\n\n return true;\n }", "public boolean needsPhi(TypeReference type) {\n if (type == null) {\n throw new IllegalArgumentException(\"The argument type may not be null\");\n }\n\n boolean seenLive = false;\n\n if (seenTypes.containsKey(type)) {\n \n for (ManagedParameter param : seenTypes.get(type)) { // TODO: Check all these\n if ((param.status == ValueStatus.FREE)) { // TODO: What about scopes\n return true;\n }\n\n if (param.status == ValueStatus.ALLOCATED) {\n if (seenLive) {\n return true;\n } else {\n seenLive = true;\n }\n }\n }\n } else {\n throw new IllegalArgumentException(\"Type \" + type + \" has never been seen before!\");\n }\n\n throw new IllegalStateException(\"No suitable candidate has been found\"); // TODO WRONG text\n }", "protected boolean isBindingCandidate(Object value) {\n\t\treturn (value != null && !value.getClass().isArray() && !(value instanceof Collection) &&\n\t\t\t\t!(value instanceof Map) && !BeanUtils.isSimpleValueType(value.getClass()));\n\t}", "public boolean hasParameterValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasParameterValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();" ]
[ "0.6723989", "0.66123426", "0.64033675", "0.63274384", "0.6242869", "0.61622036", "0.60585785", "0.60561496", "0.60534626", "0.6051864", "0.6016169", "0.59602123", "0.59196633", "0.58764", "0.58665425", "0.5849547", "0.5835925", "0.58318913", "0.57862115", "0.57071304", "0.56864625", "0.5673764", "0.5673206", "0.5672382", "0.5671694", "0.5647867", "0.5647867", "0.56354624", "0.5627072", "0.5625529", "0.55990565", "0.559851", "0.5575485", "0.5560329", "0.5559021", "0.55527675", "0.5547603", "0.5542683", "0.55390996", "0.5535756", "0.5535756", "0.5529368", "0.55233914", "0.54993063", "0.5498038", "0.5496746", "0.5490704", "0.5490704", "0.5490704", "0.5483891", "0.5481462", "0.54763186", "0.54749477", "0.54742444", "0.54679316", "0.5464489", "0.54606587", "0.5458339", "0.54489326", "0.54407495", "0.5439711", "0.54379773", "0.54288936", "0.5428259", "0.5425367", "0.5422021", "0.5414228", "0.541344", "0.5400735", "0.53971666", "0.53944516", "0.53944516", "0.53944516", "0.538676", "0.537852", "0.537785", "0.53775847", "0.5371458", "0.5366274", "0.5365639", "0.5360441", "0.5354258", "0.53532803", "0.5346421", "0.5336665", "0.5334799", "0.53336763", "0.53336763", "0.53336763", "0.53336763", "0.53336763", "0.53336763", "0.53336763", "0.53336763", "0.53336763", "0.53336763", "0.53336763", "0.53336763", "0.53336763", "0.53336763" ]
0.76700157
0
Returns the number of objects of type "typed parameter" previously added to the collection of the current object.
int countTypedParameters();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void countParams() {\n if( paramCount >= 0 ) {\n return;\n }\n Iterator<AnyType> parser = name.getSignature( types );\n paramCount = needThisParameter ? 1 : 0;\n while( parser.next() != null ) {\n paramCount++;\n }\n valueType = parser.next();\n while( parser.hasNext() ) {\n valueType = parser.next();\n paramCount--;\n }\n }", "public int size(){\n\t\treturn types.size();\n\t}", "public int sizeOfParamArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(PARAM$14);\r\n }\r\n }", "public int getParametersCount() {\n return parameters_.size();\n }", "public int getParametersCount() {\n return parameters_.size();\n }", "int getParametersCount();", "int getParametersCount();", "@java.lang.Override\n public int getParametersCount() {\n return parameters_.size();\n }", "@java.lang.Override\n public int getParametersCount() {\n return parameters_.size();\n }", "public int getParametersCount() {\n if (parametersBuilder_ == null) {\n return parameters_.size();\n } else {\n return parametersBuilder_.getCount();\n }\n }", "public int getParametersCount() {\n if (parametersBuilder_ == null) {\n return parameters_.size();\n } else {\n return parametersBuilder_.getCount();\n }\n }", "protected int paramCount() {\r\n return m_params==null ? 0 : m_params.size();\r\n }", "int getParamsCount();", "public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}", "public int nbParameters() {\n\treturn getParameters().size();\n }", "public Integer getCountTyped(Class<?> type) {\n int count = 0;\n for (Map.Entry<Class<?>, List<EventRecording>> recordingEntry : events.entrySet()) {\n if (type.isAssignableFrom(recordingEntry.getKey())) {\n count += recordingEntry.getValue().size();\n }\n }\n return count;\n }", "public int sizeOfParametersArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(PARAMETERS$16);\n }\n }", "int countTypedFeatures();", "public int getNbParameters() {\n\t\treturn prototype.getNbParameters();\n\t}", "public int getParameterCount()\n {\n return m_parameters != null ? m_parameters.size() : 0;\n }", "protected int getParamCount() {\n return paramCount;\n }", "public int size(){\r\n\t\treturn numAdded;\r\n\t}", "public int getNumberOfParameters() {\n\treturn parameters.length;\n }", "public static int numTypes(){\n byte[] types = genAllTypes();\n return types.length;\n }", "public int getParameterCount() {\n return parameterCount;\n }", "public int size() {\n\t\tint result = 0;\n\t\tfor (E val: this)\n\t\t\tresult++;\n\t\treturn result;\n\t}", "public int getNumObjects(){\n return numObjects;\n }", "public int getCount() {\n return objects.size();\n }", "public int size() {\n resolveAll();\n return resolvedPojos.size();\n }", "public int getParameterCount();", "public int getCount() {\n return typeOffsetList.size();\n }", "public int countParameters() {\n return executable.getParameters().size();\n }", "public int getTypeWithElementsCount() {\n\t\t\treturn this.TypeWithElements.size();\n\t\t}", "public int getSize() {\n\t\t\treturn objects.size();\n\t\t}", "public int size() {\n if (hasKeys) {\n return keys.size();\n } else {\n return objects.size();\n }\n }", "int getItemsCount();", "int getItemsCount();", "int getVarsCount();", "public int getNumberParameters() { return parameters.length; }", "public int getParamsCount() {\n return params_.size();\n }", "public int getParamsCount() {\n if (paramsBuilder_ == null) {\n return params_.size();\n } else {\n return paramsBuilder_.getCount();\n }\n }", "public int getNbParameterAnnotations() {\n\t\treturn annotatedParameterSetRefList.getNbAnnotationSetItemsUsed();\n\t}", "public static int numberObjects()\r\n\t{\r\n\t\treturn(no_of_obj);\r\n\t}", "public int sizeOfRParametersArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(RPARAMETERS$20);\n }\n }", "int getParameterCount();", "public int size() { return count; }", "int sizeOfObjectDefinitionArray();", "@Override\r\n\tpublic int size() {\n\t\treturn count;\r\n\t}", "public int size(){\n\t\treturn howMany; \n\t}", "public int size() {\n\t\treturn collection.size();\n\t}", "public int size()\r\n\t{\r\n\t\treturn count;\r\n\t}", "@Override\r\n\tpublic int size() {\r\n\t\treturn count;\r\n\t}", "public static int size() {\n\t\treturn (anonymousSize() + registeredSize());\n\t}", "public synchronized int size() {\n return\n this.oPreprocessingParams.size() +\n this.oFeatureExtractionParams.size() +\n this.oClassificationParams.size();\n }", "int getNumItems();", "protected long doGetNumberOfSubtypes() {\r\n\t\treturn getParentIndex().getSubtypes().size();\r\n\t}", "@Override\n public int size() {\n return count;\n }", "@Override\n public int size() {\n return count;\n }", "public int getSize() {\n\t\treturn collection.size();\n\t\t\n\t}", "public int size(){\n return numItems;\n }", "public Long getElementCount();", "public int get_var_count()\r\n {\r\n\r\n int retVal = get_var_count_0(nativeObj);\r\n\r\n return retVal;\r\n }", "public int size()\r\n {\r\n return count;\r\n }", "int getObjectAnnotationsCount();", "int getObjectAnnotationsCount();", "@Override\n\tpublic int size()\n\t{\n\t\tint count = 0;\n\t\tfor (Variable var : FactorGraphIterables.variables(rootGraph()))\n\t\t{\n\t\t\tif (var.getPrior() != null)\n\t\t\t{\n\t\t\t\t++count;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "public long numberOf (String field, String type) {\n return this.numberOf(new KrillCollection(this), field, type);\n }", "public int size() {\n return collection.size();\n }", "public int size() {return collection.size();}", "public int size()\r\n\t{\r\n\t\treturn numItems;\r\n\r\n\t}", "public int size()\r\n {\r\n return nItems;\r\n }", "public int size() {\n\t\treturn count;\n\t}", "public int size() {\n\t\treturn count;\n\t}", "public int size() {\n\t\treturn count;\n\t}", "public int getNumArgs() {\n return argTypes.size();\n }", "public int size()\n {\n return count;\n }", "public static int size() \r\n\t{\r\n\t\treturn m_count;\r\n }", "public int getNumberOfMemberVariables() {\n return members.size();\n }", "public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n\t}", "@Override\r\n\tpublic int size() {\r\n\t\treturn numItems;\r\n\t}", "public int size(){\n return count;\n }", "@Override\n\tpublic int size() {\n\t\treturn N;\n\t}", "public int size() {\n return count;\n }", "public int getTypeElementCount() {\n\t\t\treturn this.TypeElements.size();\n\t\t}", "@Override\n\tpublic int parametersCount() {\n\t\treturn 0;\n\t}", "public int size() {\n maintain();\n return collection.size();\n }", "public int size() {\n return numItems;\n }", "public int getLength() {\n return collection.size();\n }", "public int getCount(){\n\t\treturn mDataObjects.size();\n\t}", "public int size() {\n \treturn numItems;\n }", "int getUserTypesCount();", "public List<String> totestParametizedTypes()\n {\n return null;\n }", "public int size() {\n return nItems;\n }", "int getFieldsCount();", "int getFieldsCount();", "@Override\n\tpublic int size() {\n\n\t\treturn this.numOfItems;\n\t}", "@Override\n public int size(){\n return sizeHelper(this.first);\n }", "public int getCount() {\n\t\treturn lstPara.size();\n\t}", "public int sizeOf();", "long getObjectSize(Object instance);" ]
[ "0.67333746", "0.6728821", "0.6577136", "0.6523483", "0.6507109", "0.64717054", "0.64717054", "0.6452821", "0.6452821", "0.64412415", "0.64412415", "0.6398902", "0.63685316", "0.6358109", "0.6352633", "0.6312334", "0.6292199", "0.6277666", "0.6269605", "0.62319684", "0.6226624", "0.6223153", "0.6213678", "0.61960834", "0.61746836", "0.61565703", "0.6148781", "0.613189", "0.6116714", "0.6101", "0.61002856", "0.6098409", "0.6095622", "0.60883874", "0.60789835", "0.6061604", "0.6061604", "0.60526276", "0.60437876", "0.604376", "0.60428035", "0.6018767", "0.6012223", "0.6002308", "0.5997679", "0.59957576", "0.59950495", "0.59879977", "0.5967661", "0.5960582", "0.5953956", "0.594121", "0.5933995", "0.5932433", "0.59299004", "0.5928904", "0.5927276", "0.5927276", "0.59197104", "0.591391", "0.59045714", "0.5903555", "0.5895101", "0.5890574", "0.5890574", "0.58902574", "0.58889055", "0.5888232", "0.58848256", "0.58847076", "0.58802634", "0.58722913", "0.58722913", "0.58722913", "0.5869812", "0.5869587", "0.5869563", "0.5869154", "0.5866758", "0.5860183", "0.58529526", "0.58523655", "0.5843512", "0.58426297", "0.583004", "0.58246976", "0.5823581", "0.58174324", "0.5811204", "0.5806334", "0.5804764", "0.58025", "0.5797186", "0.579087", "0.579087", "0.5776109", "0.5772739", "0.5772413", "0.57654643", "0.5763644" ]
0.76512194
0
Adds a association to the collection of the current object.
void addAssociation(AssociationEnd association);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addAssociation(Association association);", "public void addAssociation(String mPackage, Class type, RefObject a, RefObject b) throws CreationException {\n\t\t\n\t\ttrace.addTrace(TraceType.CREATION, \"Create Association of type \" + type.getSimpleName() + \" in target model.\");\n\t\t\n\t\tRefPackage pkg = loadBasePackage(mPackage);\n\t\tCollection<RefAssociation> assos = pkg.refAllAssociations();\n\t\tfor(RefAssociation ass:assos) {\n\t\t\t/* \n\t\t\t * The return type of java.lang.Class.getInterfaces()\n\t\t\t * has changed in Java 1.6.\n\t\t\t * To compile this file using Java 1.6 or later, change the\n\t\t\t * generic of the List 'interfaces' from List<Class> to\n\t\t\t * List<Class<?>>. \n\t\t\t */\n\t\t\tList<Class> interfaces = Arrays.asList(ass.getClass().getInterfaces());\n\t\t\tif(interfaces.contains(type)) {\n\t\t\t\tMethod add = null;\n\t\t\t\tMethod[] methods = ass.getClass().getMethods();\n\t\t\t\tfor(Method m : methods) {\n\t\t\t\t\tif (m.getName().equals(\"add\")) {\n\t\t\t\t\t\tadd = m;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (add == null) {\n\t\t\t\t\tthrow new CreationException(ADD_METHOD_NOT_FOUND + type.getSimpleName());\n\t\t\t\t}\n\t\t\t\n\t\t\t\tObject[] parameters = {a,b};\n\t\t\t\ttry {\n\t\t\t\t\tadd.invoke(ass, parameters);\n\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\tthrow new CreationException(ERROR_ADD_ASS + type.getSimpleName());\n\t\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t\tthrow new CreationException(ERROR_ADD_ASS + type.getSimpleName());\n\t\t\t\t} catch (InvocationTargetException e) {\n\t\t\t\t\tthrow new CreationException(ERROR_ADD_ASS + type.getSimpleName());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\t\n\t\n\t\t\n\t\t}", "public void add(Object obj) { \n\t\tcollection.addElement(obj);\n\t}", "void addAssociation(String path, String type, String associationPaths,\n String operation) throws RegistryException;", "@Override\n\tpublic void add() {\n\t\tperson.addRelationship(\"Friend\", friend);\n\t}", "public void ajouter(Couple assoc) {\n if (!contientClef(assoc.premier()))\n add(assoc);\n else\n associations[indexOfClef(assoc.premier())] = assoc;\n }", "public void addCollidable(Collidable c) {\r\n this.collidObj.add(c);\r\n }", "public void addAssociatedPart(Part part) {\n associatedParts.add(part);\n }", "public void addAssociatedPart(Part part) {\n associatedParts.add(part);\n }", "@Override\r\n\tpublic void addAssociations(Criteria criteria) {\r\n\r\n\t\tif (immunization.getPatient() != null) {\r\n\t\t\tcriteria = criteria.add(Restrictions.eq(\"patient.id\", immunization\r\n\t\t\t\t\t.getPatient().getId()));\r\n\t\t}\r\n\r\n\t\tif (immunization.getVaccine() != null) {\r\n\t\t\tcriteria = criteria.add(Restrictions.eq(\"vaccine.id\", immunization\r\n\t\t\t\t\t.getVaccine().getId()));\r\n\t\t}\r\n\r\n\t}", "public void addReference() {\r\n mReferenced = true;\r\n }", "@Override\n \tpublic void addAuthor(Author author) {\n \t\tList<Author> authorList = getAuthorList();\n \t\t// check for existing relationship\n \t\tif (author == null || authorList.contains(author))\n \t\t\treturn;\n \t\t// add both sides of relationship\n \t\tauthor.getAuthorReferences().add(this);\n \t\tauthorList.add(author);\n \t}", "public void simpleAddToCollectionChangeRecord(Object referenceKey, Object changeSetToAdd, ObjectChangeSet changeSet, AbstractSession session) {\n AggregateCollectionChangeRecord collectionChangeRecord = (AggregateCollectionChangeRecord)changeSet.getChangesForAttributeNamed(this.getAttributeName());\n if (collectionChangeRecord == null) {\n //if there is no change for this attribute then create a changeSet for it. no need to modify the resulting\n // change record as it should be built from the clone which has the changes allready\n Object cloneObject = ((UnitOfWorkChangeSet)changeSet.getUOWChangeSet()).getUOWCloneForObjectChangeSet(changeSet);\n Object cloneCollection = this.getRealAttributeValueFromObject(cloneObject, session);\n collectionChangeRecord = (AggregateCollectionChangeRecord)convertToChangeRecord(cloneCollection, changeSet, session);\n changeSet.addChange(collectionChangeRecord);\n } else {\n collectionChangeRecord.getChangedValues().add(changeSetToAdd);\n }\n }", "@Override\n public void add(Object o) {\n gameCollection.addElement(o);\n }", "@Override\n \tpublic void addIsCitedBy(Reference reference) {\n \t\tList<Reference> isCitedBy = getIsCitedBy();\n \t\t// check for existing relationship\n \t\tif (reference == null || isCitedBy.contains(reference))\n \t\t\treturn;\n \t\t// add both sides of relationship\n \t\treference.getCitationList().add(this);\n \t\tisCitedBy.add(reference);\n \t}", "void readAssociations() {\n // proxy the collections for lazy loading\n Class c = getClass();\n for (Field f : c.getDeclaredFields()) {\n for (Annotation a : f.getAnnotations()) {\n if (a.annotationType().equals(HasMany.class)) {\n HasManyProxy proxyHandler = new HasManyProxy(this, f, (HasMany) a);\n associationProxies.add(proxyHandler);\n Classes.setFieldValue(this, f.getName(), Proxy.newProxyInstance(List.class.getClassLoader(),\n new Class[]{List.class}, proxyHandler));\n } else if (a.annotationType().equals(HasAndBelongsToMany.class)) {\n // TODO implement\n } else if (a.annotationType().equals(HasOne.class)) {\n // TODO implement\n } else if (a.annotationType().equals(BelongsTo.class)) {\n BelongsTo belongsTo = (BelongsTo) a;\n if (!(f.getGenericType() instanceof Class))\n throw new IllegalAnnotationException(\"@BelongsTo can only be applied to non-generic fields\");\n ActiveRecord ar = (ActiveRecord) Classes.newInstance(f.getGenericType());\n String fk = ActiveRecords.foriegnKey(f.getGenericType());\n if (!belongsTo.foreignKey().equals(\"\")) fk = belongsTo.foreignKey();\n System.out.println(\"foriegn key = \" + fk);\n Object fkValue = Classes.getFieldValue(this, fk);\n if (fkValue != null) {\n ar.read(fkValue);\n Classes.setFieldValue(this, f.getName(), ar);\n }\n }\n }\n }\n }", "private void addDefaultAssociations() {\n\t\tinstance = getInstance();\n\n\t}", "public void add(GeometricalObject object);", "@Override\n\tpublic void add(Object o) {\n\t}", "void addRelation(IViewRelation relation);", "public Association associate(Node targetNode, QName associationTypeQName, ObjectNode object);", "public void addCollection(Collection<E> coll) {\n collectionList.add(coll);\n }", "org.hl7.fhir.ObservationRelated addNewRelated();", "public void addCollidable(Collidable c) {\r\n this.collidables.add(c);\r\n }", "public Resource addToCollection(Resource collection, Resource entity) {\n Property hadMember = model.createProperty(\n ProvOntology.getHadMemberExpandedPropertyFullURI());\n model.createStatement(collection, hadMember, entity);\n return collection;\n }", "public void add(Object o);", "@Override\n\tpublic void add(Savable savable) {\n\t\tif (savable instanceof Contact) {\n\t\t\tContact contact = (Contact)savable;\n\t\t\tthis.contacts.put(contact.getId(), contact);\n\t\t}\n\t}", "private void addFromAssociation(final String elementName, final String collectionRole)\n \t\t\tthrows QueryException {\n \t\t//q.addCollection(collectionName, collectionRole);\n \t\tQueryableCollection persister = getCollectionPersister( collectionRole );\n \t\tType collectionElementType = persister.getElementType();\n \t\tif ( !collectionElementType.isEntityType() ) {\n \t\t\tthrow new QueryException( \"collection of values in filter: \" + elementName );\n \t\t}\n \n \t\tString[] keyColumnNames = persister.getKeyColumnNames();\n \t\t//if (keyColumnNames.length!=1) throw new QueryException(\"composite-key collection in filter: \" + collectionRole);\n \n \t\tString collectionName;\n \t\tJoinSequence join = new JoinSequence( getFactory() );\n \t\tcollectionName = persister.isOneToMany() ?\n \t\t\t\telementName :\n \t\t\t\tcreateNameForCollection( collectionRole );\n \t\tjoin.setRoot( persister, collectionName );\n \t\tif ( !persister.isOneToMany() ) {\n \t\t\t//many-to-many\n \t\t\taddCollection( collectionName, collectionRole );\n \t\t\ttry {\n \t\t\t\tjoin.addJoin( ( AssociationType ) persister.getElementType(),\n \t\t\t\t\t\telementName,\n \t\t\t\t\t\tJoinType.INNER_JOIN,\n \t\t\t\t\t\tpersister.getElementColumnNames(collectionName) );\n \t\t\t}\n \t\t\tcatch ( MappingException me ) {\n \t\t\t\tthrow new QueryException( me );\n \t\t\t}\n \t\t}\n \t\tjoin.addCondition( collectionName, keyColumnNames, \" = ?\" );\n \t\t//if ( persister.hasWhere() ) join.addCondition( persister.getSQLWhereString(collectionName) );\n \t\tEntityType elemType = ( EntityType ) collectionElementType;\n \t\taddFrom( elementName, elemType.getAssociatedEntityName(), join );\n \n \t}", "public Association associate(Node otherNode, QName associationTypeQName, Directionality directionality, ObjectNode object);", "public static void add(Collection collection) {\n\t\t\n\t}", "@Override\r\n\tpublic void add(Object object) {\n\t\t\r\n\t}", "public Association association(ComplexEObject ceo)\n {\n if (_inverseFieldName == null)\n {\n return new Association(this, ceo);\n }\n else\n {\n return new Association(this, ceo, inverseField());\n }\n }", "public void add(E e) {\n\t\tentities.add(e);\n\t}", "public void addCollidable(Collidable c) {\r\n this.environment.addCollidable(c);\r\n }", "public void addCollidable(Collidable c) {\n collidables.add(c);\n }", "public void addObjectRef(ObjectRef ref){\n \t\tthis.objectRefs[objectPointer++] = ref;\n \t}", "void add(GeometricalObject object);", "public void addObject(AdvObject obj) {\n\t\tobjects.add(obj);\n\t}", "public void loadAssociations() {\n\n\t\tinitListSettingNames();\n\n\t\taddDefaultAssociations();\n\t}", "void setAssociatedObject(IEntityObject relatedObj);", "public void add(Avion avion)\n\t{\n\t}", "public synchronized void addObject(E obj) {\n\t\twrappedSet.add((E) obj);\n\t}", "public void newApointment(Appointment ap){\n\n this.appointments.add(ap);\n }", "public void addAlbum(Album album)\r\n {\r\n\talbumCollection.add(album);\r\n }", "com.microsoft.schemas.crm._2011.contracts.ArrayOfObjectiveRelation addNewObjectives();", "public void addReference(Reference ref) {\n references.addElement(ref);\n }", "public void addCollidable(Collidable c) {\n environment.addCollidable(c);\n }", "public RelationshipView add(@Nonnull Relationship relationship) {\n return addRelationship(relationship);\n }", "public void addObject(DcObject dco);", "@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tmCurriculumVitaeInterface.onAddAssociations();\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tmCurriculumVitaeInterface.onAddAssociations();\n\t\t\t\t\t}", "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "public void addAIObject(String id, AIObject aiObject) {\n if (aiObjects.containsKey(id)) {\n throw new IllegalStateException(\"AIObject already created: \" + id);\n }\n if (aiObject == null) {\n throw new NullPointerException(\"aiObject == null\");\n }\n aiObjects.put(id, aiObject);\n }", "public final void addAppointment(Appointment appointment) {\n appointments.add(appointment);\n }", "public void add(FavoriteEntity obj)\n {\n super.add(obj);\n }", "Cascade createCascade();", "@Autowired(required=false)\n public void addRuleAssociations(Set<DecideRuledSheetAssociation> associations) {\n // always keep sorted by order\n this.ruleAssociations.clear();\n this.ruleAssociations.addAll(associations);\n }", "private void addPayeeToCollection() {\n\t\tif (getForm().getType() != TRANSFER) {\n\t\t\tPayee payee = new Payee(getForm().getPayFrom());\n\n\t\t\tif (payee.getIdentifier().length() != 0) {\n\t\t\t\tgetPayees().add(payee);\n\t\t\t\tgetForm().getPayFromChooser().displayElements();\n\t\t\t}\n\t\t}\n\t}", "static protected void collectAssociations(NamedElement element,\n\t\t\tList<Association> list) {\n\t\tif (element instanceof Package) {\n\t\t\tfor (Iterator i = ((Package) element).getMembers().iterator(); i\n\t\t\t\t\t.hasNext();) {\n\t\t\t\tNamedElement ne = (NamedElement) i.next();\n\t\t\t\tcollectAssociations(ne, list);\n\t\t\t}\n\t\t}\n\t\tif (element instanceof Association) {\n\t\t\tlist.add((Association) element);\n\t\t}\n\t}", "public void adicionadoConversa (IConversa conversa) {\n this.conversas.add(conversa);\n }", "@Override\n\tpublic boolean add(Building object) {\n\t\tif (contains(object)) {\n\t\t\tsuper.remove(object);\n\t\t}\n\t\tsuper.add(object);\n\t\treturn true;\n\t}", "public void add(Object o){\n list.add(o);\n }", "public void addPaper(ConferencePaper pape){\r\n\t\tpapers.add(pape);\r\n\t}", "public void addRelatesTo(MappingType mapping, RelatesToType relatesTo) {\n\t\tmapping.getRelatesTo().add(relatesTo);\n\t}", "Collection<AssociationEnd> getAssociations();", "public void add(Object obj) {\n\t\tif (obj instanceof Entity) {\n\t\t\tentities.add((Entity) obj);\n\t\t}\n\t\t\n\t\tif (obj instanceof ICollidable) {\n\t\t\tcollidables.add((ICollidable) obj);\n\t\t}\n\t\t\n\t\tif (obj instanceof IDrawable) {\n\t\t\tdrawables.addFirst((IDrawable) obj);\n\t\t}\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.FurtherRelations addNewFurtherRelations();", "public static boolean addToCollection(final FormDataObjIFace dataObject, String fieldName, FormDataObjIFace ref)\n {\n try\n {\n DataObjectGettable getter = DataObjectGettableFactory.get(dataObject.getClass().getName(), FormHelper.DATA_OBJ_GETTER);\n Object dataMember = getter.getFieldValue(dataObject, fieldName);\n \n if (dataMember != null)\n {\n try\n {\n Method method = dataMember.getClass().getMethod(\"add\", Object.class);\n if (method != null)\n {\n method.invoke(dataMember, ref);\n return true;\n \n }\n log.error(\"Missing method add(Object) for this type of set [\"+dataMember.getClass()+\"]\");\n \n } catch (Exception ex)\n {\n edu.ku.brc.af.core.UsageTracker.incrHandledUsageCount();\n edu.ku.brc.exceptions.ExceptionTracker.getInstance().capture(DataModelObjBase.class, ex);\n ex.printStackTrace();\n }\n } else\n {\n log.error(\"DataMember [\"+fieldName+\"] was null in object of class[\"+dataObject.getDataClass().getSimpleName()+\"]\");\n }\n } catch (Exception ex)\n {\n edu.ku.brc.af.core.UsageTracker.incrHandledUsageCount();\n edu.ku.brc.exceptions.ExceptionTracker.getInstance().capture(DataModelObjBase.class, ex);\n ex.printStackTrace();\n }\n return false;\n }", "public void addPerson(Person object)\n\t{\n\t\tthis.peopleList.add(object);\n\t}", "public tudresden.ocl20.core.jmi.uml15.core.Association getAssociation()\n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{ \t\t\n \t\treturn instance.getAssociation(this.refMofId());\n \t} \n \t\n\t\treturn super_getAssociation();\t\n }", "@Override\n\tpublic void add() {\n\t\t\n\t}", "public Association associate(Node targetNode, QName associationTypeQName);", "public void addRelation(final IWiktionaryRelation relation) {\n\t\tif (relations == null)\n\t\t\trelations = new ArrayList<>();\n\t\trelations.add(relation);\n\t}", "public boolean add(final Object obj) {\n maintain();\n\n SoftObject soft = SoftObject.create(obj, queue);\n \n return collection.add(soft);\n }", "public void addReferenceToOther(final Publication p) {\n if (referenceToOther.containsKey(p))\n throw Utilities.invalidRelation(this.getClass(), p.getClass());\n referenceToOther.put(p, p);\n }", "public void add(User user) {\r\n this.UserList.add(user);\r\n }", "User addMember(final User user, GroupAssociation groupAssociation);", "public void add() {\n\t\t\n\t}", "public void addRelations(T model);", "public void addKeyedCollection(KeyedCollection kColl) throws InvalidArgumentException, DuplicatedDataNameException\r\n\t{\n\t\taddDataElement(kColl);\r\n\r\n\t}", "public void addReferenceToThis(final Publication p) {\n if (referenceToThis.containsKey(p))\n throw Utilities.invalidRelation(this.getClass(), p.getClass());\n referenceToThis.put(p, p);\n }", "public void addItemToCalendar(AgendaItem item) {\n if(!addAgendaEventViaProvider(item)) addAgendaEventViaIntention(item);\n }", "public void addEdge(Edge e) {\n incident.add(e);\n }", "@SuppressWarnings( \"unchecked\" )\n public static <T> AssociationFunction<T> association( Association<T> association )\n {\n return ( (AssociationReferenceHandler<T>) Proxy.getInvocationHandler( association ) ).association();\n }", "public String getAssociationId() {\n return this.associationId;\n }", "@Override\n\tpublic void add(Object object) {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction ts = session.beginTransaction();\n\t\tsession.save(object);\n\t\tts.commit();\n\t\tsession.close();\n\t}", "Criteria add(Criteria add);", "Criteria add(Criteria add);", "Criteria add(Criteria add);", "Criteria add(Criteria add);", "Criteria add(Criteria add);", "Criteria add(Criteria add);", "Criteria add(Criteria add);", "public Association associate(Node otherNode, QName associationTypeQName, Directionality directionality);", "public void addObject(GameObject gameObject) {\n\t\tobjects.add(gameObject);\n\t\t\n\t}", "InvoiceItem addInvoiceItem(InvoiceItem invoiceItem);", "public void push(Object value) {\n this.collection.add(value);\n }", "public void addDocumentoSpesaFiglio(DocumentoSpesa documentoSpesa) {\n\t\tthis.listaDocumentiSpesaFiglio.add(documentoSpesa);\n\t}", "void addCollisionObject(CollisionObjectWrapper co) {\n\tpendingObjects.put(co.getId(), co);\n }", "public void addAssociatedPart(ActionEvent actionEvent) {\n Part selectedAssociatedPart;\n selectedAssociatedPart = (Part) partsTableView.getSelectionModel().getSelectedItem();\n associatedPartTableViewHolder.add(selectedAssociatedPart);\n\n associatedPartsTableView.setItems(associatedPartTableViewHolder);\n }" ]
[ "0.76872206", "0.601823", "0.59869885", "0.58899075", "0.5834001", "0.57420975", "0.5697582", "0.56738555", "0.56738555", "0.55824506", "0.5465931", "0.5461362", "0.54329586", "0.543198", "0.5421476", "0.5379933", "0.5346765", "0.53382283", "0.5329858", "0.52947503", "0.5286728", "0.5280227", "0.52772695", "0.5277069", "0.5248009", "0.52408063", "0.52370936", "0.5227786", "0.5222666", "0.521125", "0.5205906", "0.5193016", "0.5188328", "0.51854867", "0.5179817", "0.517405", "0.51601666", "0.5152271", "0.5147017", "0.51339424", "0.50979936", "0.5082862", "0.50536215", "0.50458205", "0.50418717", "0.5038106", "0.5034408", "0.5009634", "0.50052387", "0.5000344", "0.5000344", "0.4998842", "0.4991061", "0.49834985", "0.497677", "0.497567", "0.49671873", "0.49634522", "0.49621066", "0.495743", "0.4944072", "0.49160212", "0.489209", "0.48806548", "0.48761588", "0.48743403", "0.4860029", "0.48593068", "0.48496968", "0.48496366", "0.4839971", "0.4834157", "0.48327842", "0.4830324", "0.48293102", "0.48239553", "0.48197752", "0.48192608", "0.48178193", "0.48142305", "0.480857", "0.48071182", "0.47951642", "0.47951457", "0.4789582", "0.4786643", "0.4783846", "0.4783846", "0.4783846", "0.4783846", "0.4783846", "0.4783846", "0.4783846", "0.47743687", "0.47723657", "0.4769647", "0.47646284", "0.47629064", "0.4762246", "0.4759429" ]
0.68676746
1
Removes a association from the collection of the current object.
boolean removeAssociation(AssociationEnd association);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void clearAssociations();", "public void removeLastAssociation()\n\t{\n\t\tfinal Association a = associations.elementAt(associations.size()-1);\n\t\ta.B.assCount--;\n\t\ta.A.assCount--;\n\t\tassociations.remove(associations.size()-1);\n\t\tuser_responses--;\n\t}", "public void supprimerCollection(){\r\n collection.clear();\r\n }", "public void removeCollidable(Collidable c) {\r\n this.collidObj.remove(c);\r\n }", "public void removeAssociation(String handle) {\n\n Connection connection = IdentityDatabaseUtil.getDBConnection();\n PreparedStatement prepStmt = null;\n\n try {\n\n if (isAssociationExist(connection, handle)) {\n prepStmt = connection.prepareStatement(OpenIDSQLQueries.REMOVE_ASSOCIATION);\n prepStmt.setString(1, handle);\n prepStmt.execute();\n connection.commit();\n if(log.isDebugEnabled()) {\n log.debug(\"Association \" + handle + \" successfully removed from the database\");\n }\n } else {\n if(log.isDebugEnabled()) {\n log.debug(\"Association \" + handle + \" does not exist in the database\");\n }\n }\n\n } catch (SQLException e) {\n log.error(\"Failed to remove the association \" + handle, e);\n } finally {\n IdentityDatabaseUtil.closeStatement(prepStmt);\n IdentityDatabaseUtil.closeConnection(connection);\n }\n }", "public void removeResourceCollection()\r\n {\r\n getSemanticObject().removeProperty(swb_resourceCollectionInv);\r\n }", "void removeRelationship(DbRelationship rel) {\n objectList.remove(rel);\n fireTableDataChanged();\n }", "public Collection<V> remove(Object obj) {\n Collection collection = (Collection) this.Pu.remove(obj);\n if (collection == null) {\n return null;\n }\n Collection<V> ry = AbstractMapBasedMultimap.this.ry();\n ry.addAll(collection);\n AbstractMapBasedMultimap.this.Ps = AbstractMapBasedMultimap.this.Ps - collection.size();\n collection.clear();\n return ry;\n }", "void removeRelation(IViewRelation relation);", "public void removeAlbum(Album album)\r\n {\r\n\talbumCollection.remove(album);\r\n }", "public void remove(K key)\n {\n AssociationList<K, V> bucket = this.get(this.find(key));\n if (bucket != null)\n {\n bucket.remove(key);\n } // if (bucket != null)\n }", "public void removeCollidable(Collidable c) {\r\n this.collidables.remove(c);\r\n }", "public void remove() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.delete(this);\n\t\tsession.getTransaction().commit();\n\t}", "public void removeRelation(Relation relation) {\n \tif (relation.getSection() == this)\n \t\trelations.remove(relation.getName());\n }", "public void removeAppointment(Appointment a)\n {\n this.agenda.remove(a);\n }", "@Override\n \tpublic void removeIsCitedBy(Reference reference) {\n \t\tList<Reference> isCitedBy = getIsCitedBy();\n \t\t// check for no existing relationship\n \t\tif (reference == null || !isCitedBy.contains(reference))\n \t\t\treturn;\n \t\t// remove both sides of relationship\n \t\treference.getCitationList().remove(this);\n \t\tisCitedBy.remove(reference);\n \n \t}", "public void removeCollidable(Collidable c) {\r\n environment.removeCollidable(c);\r\n }", "public void removeCollidable(Collidable c) {\n this.environment.removeCollidable(c);\n }", "public void remove(E e) {\n\t\tentities.remove(e);\n\t}", "public void deleteAssociatedPart(Part part) {\n associatedParts.remove(part);\n }", "void unsetFurtherRelations();", "public void remove() {\n removed = true;\n if (room == null)\n return;\n room.removeEntity(this);\n }", "@Override\n \tpublic void removeAuthor(Author author) {\n \t\tList<Author> authorList = getAuthorList();\n \t\t// check for existing relationship\n \t\tif (author == null || !authorList.contains(author))\n \t\t\treturn;\n \t\t// add both sides of relationship\n \t\tauthor.getAuthorReferences().remove(this);\n \t\tauthorList.remove(author);\n \t}", "@Override\n public boolean remove(Object o) {\n return gameCollection.remove(o);\n }", "@Override\r\n\tpublic boolean remove(Object o) {\n\t\treturn set.remove(o);\r\n\t}", "public final void delete() {\n\t\tOllie.delete(this);\n\t\tOllie.removeEntity(this);\n\t\tnotifyChange();\n\t\tid = null;\n\t}", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "void removeConstraintRelation(IViewRelation relation);", "public void removeIt() { \n\t\t\tcollection.remove(currIndex);\n\t\t\tcurrIndex--;\n\t\t}", "private void removeAlbumFromCollection() {\n //\n }", "public void removeByObject()\r\n\t{\n\t}", "public void remove() {\r\n super.remove();\r\n }", "protected void removeAppointment(Appointment a) {\n appointments.remove(a);\n }", "@Override\n public void remove() {\n deleteFromModel();\n deleteEdgeEndpoints();\n\n setDeleted(true);\n if (!isCached()) {\n HBaseEdge cachedEdge = (HBaseEdge) graph.findEdge(id, false);\n if (cachedEdge != null) cachedEdge.setDeleted(true);\n }\n }", "@Override\n\tpublic void remove(Object o) {\n\t\t\n\t}", "public void disableRemoveAssociation() {\n teams_removeAssociation.setDisable(false);\n teams_addAssociation.setDisable(true);\n }", "public void removeCollidable(CollidableObject collidable){\n\t\tList<CollidableObject> collidableList = collidables.get(collidable.getCollisionType());\n \n\t\t// if the entry exists remove the object from the list (if possible)\n\t\tif(collidableList != null){\n\t\t\tcollidableList.remove(collidable);\n\t\t}\n\t}", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void remove() {\n\t }", "public Object remove();", "public void removeActor(Actor act) { ActorSet.removeElement(act); }", "void removeRelated(int i);", "public void removeItem(){\n\t\tthis.item = null;\n\t}", "public void remove(Object obj) {\n\t\tif (obj instanceof Entity) {\n\t\t\tentities.remove(obj);\n\t\t}\n\t\t\n\t\tif (obj instanceof ICollidable) {\n\t\t\tcollidables.remove(obj);\n\t\t}\n\n\t\tif (obj instanceof IDrawable) {\n\t\t\tdrawables.remove(obj);\n\t\t}\n\t}", "public void remove() {\n\t\tif(this._prev != null)\n\t\t\tthis._prev._next = this._next;\n\t\tif(this._next != null)\n\t\t\tthis._next._prev = this._prev;\n\n\t\tthis._next = null;\n\t\tthis._prev = null;\n\t}", "public final void remove () {\r\n }", "@Override\n\tpublic void remove(Savable savable) {\n\t\tif (savable instanceof Contact) {\n\t\t\tContact contact = (Contact)savable;\n\t\t\tthis.contacts.remove(contact.getId());\n\t\t}\n\t}", "public void removeVehicle() {\n\t\tmVehicles.removeFirst();\n\t}", "public void simpleRemoveFromCollectionChangeRecord(Object referenceKey, Object changeSetToRemove, ObjectChangeSet changeSet, AbstractSession session) {\n AggregateCollectionChangeRecord collectionChangeRecord = (AggregateCollectionChangeRecord)changeSet.getChangesForAttributeNamed(this.getAttributeName());\n\n if (collectionChangeRecord == null) {\n //if there is no change for this attribute then create a changeSet for it. no need to modify the resulting\n // change record as it should be built from the clone which has the changes allready\n Object cloneObject = ((UnitOfWorkChangeSet)changeSet.getUOWChangeSet()).getUOWCloneForObjectChangeSet(changeSet);\n Object cloneCollection = this.getRealAttributeValueFromObject(cloneObject, session);\n collectionChangeRecord = (AggregateCollectionChangeRecord)convertToChangeRecord(cloneCollection, changeSet, session);\n changeSet.addChange(collectionChangeRecord);\n } else {\n collectionChangeRecord.getChangedValues().remove(changeSetToRemove);\n }\n }", "public void removeAIObject(String id) {\n aiObjects.remove(id);\n }", "public void removeResource(TIdentifiable resource) {\r\n\t int column = m_resources.getIndex(resource);\r\n\t if (column >= 0) {\r\n\t m_resources.removeID(resource);\r\n\t m_current_resources_count--;\r\n\t // shift the right columns left:\r\n\t for (int a=column; a < m_current_resources_count; a++)\r\n\t for (int b=0; b < m_current_users_count; b++) \r\n\t m_associations[a][b] = m_associations[a + 1][b];\r\n // clean up that last column:\t \r\n for (int b=0; b < m_current_users_count; b++)\r\n m_associations[m_current_resources_count][b] = null;\r\n\t }\t \r\n }", "@Override\n public void remove() {\n }", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "private void removeCrossReference ()\n\t{\n\t\tif (crossReference != null)\n\t\t{\n\t\t\tcrossReferences.remove (crossReference);\n\t\t}\n\t}", "public void unsetMedication()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(MEDICATION$10, 0);\n }\n }", "public void removeForeignkey(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FOREIGNKEY$4, i);\r\n }\r\n }", "public void remove ( ) {\n\t\texecute ( handle -> handle.remove ( ) );\n\t}", "@Override\n public void remove() {\n }", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "void remove( ModelObject object );", "public void remove() {\n\n }", "public void remove()\n {\n this.prev.next = this.next;\n this.next.prev = this.prev;\n this.next = null;\n this.prev = null;\n }", "public void removePerson(Person object)\n\t{\n\t\tthis.peopleList.remove(object);\n\t}", "@Override\n public void delete(Context context, Item item) throws SQLException, IOException, AuthorizeException {\n //TODO: HIBERNATE CHECK COLLECTION REMOVE ?\n // Check authorisation here. If we don't, it may happen that we remove the\n // collections leaving the database in an inconsistent state\n authorizeService.authorizeAction(context, item, Constants.REMOVE);\n item.getCollections().clear();\n rawDelete(context, item);\n }", "@Override\n\tpublic void remove() { }", "public void clear() {collection.clear();}", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "public void removeFromCollections() {\n \n if (assignmentResponse != null) {\n Set parentCollection = assignmentResponse.getAnswers();\n if (parentCollection != null) parentCollection.remove(this);\n }\n if (question != null) {\n Set parentCollection = question.getAnswers();\n if (parentCollection != null) parentCollection.remove(this);\n }\n Vital3Utils.removeMultipleFromCollections(comments);\n }", "@Override\n public void removeFromDb() {\n }", "public void remove() {\r\n return;\r\n }", "public void removeID(String id)\n { \n idReferences.remove(id); \n }", "public void removeObject(AdvObject obj) {\n\t\tobjects.remove(obj); // Replace with your code\n\t}", "public void remove () {}", "public /* synthetic */ void remove() {\n this.a.remove();\n }", "E remove(Id id);", "public void manyToManyDeleteOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n \n // remove the relationship\n a1.getBs().remove(b1);\n b1.getAs().remove(a1);\n\n // remove the non-owning side\n em.remove(a1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should not have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() != 0);\n\n em.close();\n }", "public void removeObject(java.lang.Object object) {}", "public void remove() {\n\t\tif (prev != null && next != null) {\n\t\t\tprev.next = next;\n\t\t\tnext.prev = prev;\n\t\t\tnext = prev = null;\t\n\t\t}\n\t}", "public void unassociate(Node targetNode, QName associationTypeQName);", "@Override\r\n\tpublic void removeElement(K key) {\n\t\tque.remove(key);\r\n\t\thashMap.remove(key);\r\n\t}", "@Override\n public void remove() {\n if(elementToRemove != null){\n if(elementToRemove == lastInternalIteratorGivenElement){\n iterator.remove();\n }\n else{\n list.remove(elementToRemove);\n }\n }\n }", "@Override\n\t\t\t\tpublic void remove() {\n\t\t\t\t\t\n\t\t\t\t}", "public void remove()\n {\n domain.removeParticipant(participant);\n }", "public void remove(GeometricalObject object);", "public void removePaper(ConferencePaper pape){\r\n\t\tpapers.remove(pape);\r\n\t}", "public void removeThing(){\n thing = null;\n }", "public void remove(String propertyName) {\n this.propertyBag.remove(propertyName);\n }" ]
[ "0.617963", "0.614033", "0.5987413", "0.57847804", "0.5677768", "0.5665939", "0.56629294", "0.5658797", "0.56302863", "0.56080675", "0.5601676", "0.5573612", "0.5523343", "0.5467068", "0.5462004", "0.54401386", "0.5433549", "0.5432489", "0.5387183", "0.53711945", "0.53273076", "0.53216726", "0.5319872", "0.5308663", "0.5304696", "0.52940196", "0.5264104", "0.5264104", "0.5264104", "0.5264104", "0.5264104", "0.5264104", "0.5264104", "0.5260705", "0.52583414", "0.52495193", "0.5248614", "0.5239991", "0.5235976", "0.5226888", "0.52052754", "0.51932585", "0.51774913", "0.51724005", "0.51724005", "0.51724005", "0.51683927", "0.5166988", "0.51585466", "0.5155545", "0.5145976", "0.5145345", "0.5132941", "0.5128504", "0.5124793", "0.51246953", "0.511341", "0.5113038", "0.51122266", "0.5104998", "0.5104998", "0.5104998", "0.5104998", "0.5104998", "0.50927645", "0.50909096", "0.50821215", "0.50354886", "0.503443", "0.5034339", "0.5034339", "0.50267565", "0.5023401", "0.5010274", "0.5005038", "0.5003398", "0.50007486", "0.49966168", "0.49921513", "0.49921513", "0.49912262", "0.4987834", "0.49822897", "0.49808833", "0.4963381", "0.4961216", "0.49547514", "0.49546888", "0.49543718", "0.49537742", "0.49439815", "0.49391", "0.49375758", "0.49343008", "0.4927555", "0.49217218", "0.4919039", "0.49176025", "0.49136475", "0.49116024" ]
0.67106754
0
Removes all the objects of type "association" from the collection of the current object.
void clearAssociations();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unsetFurtherRelations();", "public void supprimerCollection(){\r\n collection.clear();\r\n }", "private void clearCollection() {\n \n collection_ = getDefaultInstance().getCollection();\n }", "public void removeLastAssociation()\n\t{\n\t\tfinal Association a = associations.elementAt(associations.size()-1);\n\t\ta.B.assCount--;\n\t\ta.A.assCount--;\n\t\tassociations.remove(associations.size()-1);\n\t\tuser_responses--;\n\t}", "public void clear() {collection.clear();}", "@Override\n\tpublic void removeAll() {\n\t\tfor (Approvatore approvatore : findAll()) {\n\t\t\tremove(approvatore);\n\t\t}\n\t}", "boolean removeAssociation(AssociationEnd association);", "public void purgeRelations() {\n this.purged = true;\n for (AS tCust : this.customers) {\n tCust.providers.remove(this);\n tCust.purgedNeighbors.add(this.asn);\n }\n for (AS tProv : this.providers) {\n tProv.customers.remove(this);\n tProv.purgedNeighbors.add(this.asn);\n }\n for (AS tPeer : this.peers) {\n tPeer.peers.remove(this);\n tPeer.purgedNeighbors.add(this.asn);\n }\n }", "private void removeAllObjects()\n {\n removeObjects (getObjects(Actor.class));\n }", "@Override\n\tpublic void removeAll() {\n\t\tfor (Category category : findAll()) {\n\t\t\tremove(category);\n\t\t}\n\t}", "public void removeFromCollections() {\n \n if (assignmentResponse != null) {\n Set parentCollection = assignmentResponse.getAnswers();\n if (parentCollection != null) parentCollection.remove(this);\n }\n if (question != null) {\n Set parentCollection = question.getAnswers();\n if (parentCollection != null) parentCollection.remove(this);\n }\n Vital3Utils.removeMultipleFromCollections(comments);\n }", "public void clear() {\n\t\tcollection.clear();\n\t}", "public void clear() {\n\t\tthis.boundObjects.clear();\n\t}", "public void clear()\r\n {\r\n this.boundObjects.clear();\r\n }", "public void delIncomingRelations();", "public void clear() {\n this.collection.clear();\n }", "public void removeAttachedObjects() {\n\tif (aoc == null) {\n\t aoc = new AttachedObjectClearer(handle);\n\t}\n\ttry {\n\t aoc.clearAllObjects();\n\t} catch (RosException e) {\n\t handle.logError(\"Could not remove attached objects: \" + e.getMessage());\n\t}\n }", "public void deleteAll() {\n\t\t mongoTemplate.remove(new Query(), COLLECTION);\n\t}", "public void removeAllInvolvedPerson() {\r\n\t\tBase.removeAll(this.model, this.getResource(), INVOLVEDPERSON);\r\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (Campus campus : findAll()) {\n\t\t\tremove(campus);\n\t\t}\n\t}", "public void delRelations();", "public void clearConcertList(){\n concertList.clear();\n }", "@Override\n\tpublic void removeAll() {\n\t\tfor (Answer answer : findAll()) {\n\t\t\tremove(answer);\n\t\t}\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (LinkGroup linkGroup : findAll()) {\n\t\t\tremove(linkGroup);\n\t\t}\n\t}", "public void clear() {\n \tIterator<E> iterateSet = this.iterator();\n \t\n \twhile(iterateSet.hasNext()) {\n \t\t// iterate through and remove all elements\n \t\titerateSet.next();\n \t\titerateSet.remove();\n \t}\n }", "@Override\n public void clear() {\n for (E e : this) {\n remove(e);\n }\n }", "public synchronized void resetCollections() {\n collections = null;\n }", "public void clearAll() {\n\n realm.beginTransaction();\n realm.clear(PhotoGalleryModel.class);\n realm.commitTransaction();\n }", "public void removeAllConductor() {\r\n\t\tBase.removeAll(this.model, this.getResource(), CONDUCTOR);\r\n\t}", "Collection<AssociationEnd> getAssociations();", "public Collection<V> remove(Object obj) {\n Collection collection = (Collection) this.Pu.remove(obj);\n if (collection == null) {\n return null;\n }\n Collection<V> ry = AbstractMapBasedMultimap.this.ry();\n ry.addAll(collection);\n AbstractMapBasedMultimap.this.Ps = AbstractMapBasedMultimap.this.Ps - collection.size();\n collection.clear();\n return ry;\n }", "public void clear()\n\t{\n\t\tobjectToId.clear();\n\t\tidToObject.clear();\n\t}", "public void disableRemoveAssociation() {\n teams_removeAssociation.setDisable(false);\n teams_addAssociation.setDisable(true);\n }", "public void clearPeople() {\n personNames.clear();\n personIds.clear();\n personPhotos.clear();\n personSelections.clear();\n addDefaultPerson();\n }", "void readAssociations() {\n // proxy the collections for lazy loading\n Class c = getClass();\n for (Field f : c.getDeclaredFields()) {\n for (Annotation a : f.getAnnotations()) {\n if (a.annotationType().equals(HasMany.class)) {\n HasManyProxy proxyHandler = new HasManyProxy(this, f, (HasMany) a);\n associationProxies.add(proxyHandler);\n Classes.setFieldValue(this, f.getName(), Proxy.newProxyInstance(List.class.getClassLoader(),\n new Class[]{List.class}, proxyHandler));\n } else if (a.annotationType().equals(HasAndBelongsToMany.class)) {\n // TODO implement\n } else if (a.annotationType().equals(HasOne.class)) {\n // TODO implement\n } else if (a.annotationType().equals(BelongsTo.class)) {\n BelongsTo belongsTo = (BelongsTo) a;\n if (!(f.getGenericType() instanceof Class))\n throw new IllegalAnnotationException(\"@BelongsTo can only be applied to non-generic fields\");\n ActiveRecord ar = (ActiveRecord) Classes.newInstance(f.getGenericType());\n String fk = ActiveRecords.foriegnKey(f.getGenericType());\n if (!belongsTo.foreignKey().equals(\"\")) fk = belongsTo.foreignKey();\n System.out.println(\"foriegn key = \" + fk);\n Object fkValue = Classes.getFieldValue(this, fk);\n if (fkValue != null) {\n ar.read(fkValue);\n Classes.setFieldValue(this, f.getName(), ar);\n }\n }\n }\n }\n }", "@Override\n\tpublic void removeAll() {\n\t\tfor (Paper paper : findAll()) {\n\t\t\tremove(paper);\n\t\t}\n\t}", "public void clear() {\r\n oredCriteria.clear();\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }" ]
[ "0.6509274", "0.6375863", "0.62936777", "0.6174743", "0.6038163", "0.60346675", "0.5975661", "0.58960885", "0.5887343", "0.58616465", "0.585111", "0.58312094", "0.57785773", "0.5740115", "0.5725502", "0.57192", "0.57051736", "0.5701766", "0.56788766", "0.5669559", "0.5659425", "0.5634399", "0.56299454", "0.5623888", "0.5575039", "0.55697846", "0.5563662", "0.5560172", "0.55585945", "0.5555331", "0.5551599", "0.55470955", "0.55421644", "0.55377614", "0.5523831", "0.5515055", "0.55105466", "0.55105466", "0.55105466", "0.55105466", "0.55105466", "0.55105466", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791", "0.5502791" ]
0.78931314
0
Gets all the objects of type "association" previously added to the collection of the current object. Additions and removals of elements to and from the returned collection do not change the state of current object (i.e. the returned collection is a copy of the internal one of the current object). However, if an element contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the returned collections share references to the same objects).
Collection<AssociationEnd> getAssociations();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ResultMap<Association> associations();", "public ResultMap<Association> associations(QName associationTypeQName, Pagination pagination);", "public ResultMap<Association> associations(Pagination pagination);", "void readAssociations() {\n // proxy the collections for lazy loading\n Class c = getClass();\n for (Field f : c.getDeclaredFields()) {\n for (Annotation a : f.getAnnotations()) {\n if (a.annotationType().equals(HasMany.class)) {\n HasManyProxy proxyHandler = new HasManyProxy(this, f, (HasMany) a);\n associationProxies.add(proxyHandler);\n Classes.setFieldValue(this, f.getName(), Proxy.newProxyInstance(List.class.getClassLoader(),\n new Class[]{List.class}, proxyHandler));\n } else if (a.annotationType().equals(HasAndBelongsToMany.class)) {\n // TODO implement\n } else if (a.annotationType().equals(HasOne.class)) {\n // TODO implement\n } else if (a.annotationType().equals(BelongsTo.class)) {\n BelongsTo belongsTo = (BelongsTo) a;\n if (!(f.getGenericType() instanceof Class))\n throw new IllegalAnnotationException(\"@BelongsTo can only be applied to non-generic fields\");\n ActiveRecord ar = (ActiveRecord) Classes.newInstance(f.getGenericType());\n String fk = ActiveRecords.foriegnKey(f.getGenericType());\n if (!belongsTo.foreignKey().equals(\"\")) fk = belongsTo.foreignKey();\n System.out.println(\"foriegn key = \" + fk);\n Object fkValue = Classes.getFieldValue(this, fk);\n if (fkValue != null) {\n ar.read(fkValue);\n Classes.setFieldValue(this, f.getName(), ar);\n }\n }\n }\n }\n }", "public ResultMap<Association> associations(QName associationTypeQName);", "static protected void collectAssociations(NamedElement element,\n\t\t\tList<Association> list) {\n\t\tif (element instanceof Package) {\n\t\t\tfor (Iterator i = ((Package) element).getMembers().iterator(); i\n\t\t\t\t\t.hasNext();) {\n\t\t\t\tNamedElement ne = (NamedElement) i.next();\n\t\t\t\tcollectAssociations(ne, list);\n\t\t\t}\n\t\t}\n\t\tif (element instanceof Association) {\n\t\t\tlist.add((Association) element);\n\t\t}\n\t}", "Collect getColl();", "public InHouseAppIdPolicyIdMapping[] getAssociations() {\r\n\t\treturn associations;\r\n\t}", "public ResultMap<Association> associations(QName associationTypeQName, Direction direction, Pagination pagination);", "public List<? extends IFlexoOntologyFeatureAssociation<TA>> getStructuralFeatureAssociations();", "public tudresden.ocl20.core.jmi.uml15.core.Association getAssociation()\n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{ \t\t\n \t\treturn instance.getAssociation(this.refMofId());\n \t} \n \t\n\t\treturn super_getAssociation();\t\n }", "public ResultMap<Association> associations(QName associationTypeQName, Direction direction);", "public ResultMap<Association> associations(Direction direction, Pagination pagination);", "public ObservableList<Part> getAllAssociatedParts() {\n return associatedParts;\n }", "public ObservableList<Part> getAllAssociatedParts() {\n return associatedParts;\n }", "void clearAssociations();", "List<CompositionSpaceToDraftAssociation> getAll() throws OXException;", "public Set<Relation> getRelations();", "public ResultMap<Association> associations(Direction direction);", "public SortedSet<DecideRuledSheetAssociation> getRuleAssociations() {\n return this.ruleAssociations;\n }", "public List<HasFormAssociation> listFormAssociations();", "public Collection<Relation> getAllRelations() {\n return Collections.unmodifiableCollection(relations.values());\n }", "public List<? extends IFlexoOntologyFeatureAssociation<TA>> getBehaviouralFeatureAssociations();", "public ReadOnlyIterator<Relation> getAllRelations();", "@XmlTransient\n Collection<Autore> getAutoreCollection();", "public Collection getCollection() {\n return mCollection;\n }", "public List<Album> getAlbums()\r\n {\r\n\treturn albumCollection; // TODO breaks encapsulation\r\n }", "public ReadOnlyIterator<Relation> getRelations();", "public Iterable<Relationship> getRelationships();", "public java.util.ArrayList getAutoEventCollection()\n {\n return _autoEventList;\n }", "public Collection<GObject> getObjects();", "void addAssociation(Association association);", "public Collection<Reference> getReferences();", "public ArrayList<Fonds> getCollection(){\r\n return collection;\r\n }", "@Override\r\n\tpublic void addAssociations(Criteria criteria) {\r\n\r\n\t\tif (immunization.getPatient() != null) {\r\n\t\t\tcriteria = criteria.add(Restrictions.eq(\"patient.id\", immunization\r\n\t\t\t\t\t.getPatient().getId()));\r\n\t\t}\r\n\r\n\t\tif (immunization.getVaccine() != null) {\r\n\t\t\tcriteria = criteria.add(Restrictions.eq(\"vaccine.id\", immunization\r\n\t\t\t\t\t.getVaccine().getId()));\r\n\t\t}\r\n\r\n\t}", "public Map<String, HasFormAssociation> fetchFormAssociations();", "public Iterator<Appointment> appointments()\n {\n return this.agenda.iterator();\n }", "void addAssociation(AssociationEnd association);", "public Set<ObjRef> getAddedRefs() {\n return Sets.newHashSet(addedObjRefToLineageRefs.keySet());\n }", "@Override\n\tpublic synchronized Collection<Arc> getArcs() {\n\t\treturn this.arcs;\n\t}", "public /*@ non_null @*/ JMLObjectBag<E> toBag() {\n JMLObjectBag<E> ret = new JMLObjectBag<E>();\n JMLIterator<E> elems = iterator();\n while (elems.hasNext()) {\n //@ assume elems.moreElements;\n E o = elems.next();\n E e = (o == null ? null : o);\n ret = ret.insert(e);\n }\n return ret;\n }", "protected Object undoCollection(Object potentialCollection, Object otherObject) {\n if ((otherObject != null) && (potentialCollection instanceof Collection) &&\n !(otherObject instanceof Collection)) {\n if ((((Collection<?>) potentialCollection).size() == 1) && ((Collection) potentialCollection).iterator()\n .next().getClass().equals(otherObject.getClass())) {\n potentialCollection = ((Collection) potentialCollection).iterator().next();\n }\n }\n return potentialCollection;\n }", "void setAutoreCollection(Collection<Autore> autoreCollection);", "public Collection<RelationshipType> getAssociativeRelationshipTypes() throws OEClientException {\r\n\t\treturn getRelationshipTypes(\"skos:related\");\r\n\t}", "java.lang.String getCollection();", "public Collection<Element> getOperations() {\n Stream<Element> combinedStream = Stream.of(aCollection, cCollection)\n .flatMap(Collection::stream);\n return combinedStream.collect(Collectors.toList());\n }", "public Vector<HibernateRelationship> getRelationships() {\n\t\treturn relationships;\n\t}", "Collection<? extends WrappedIndividual> getHas();", "public List getAncestors() {\n\t\treturn new ArrayList();\n\t}", "private void clearCollection() {\n \n collection_ = getDefaultInstance().getCollection();\n }", "@Override\n\tpublic List<Object> getCollection() {\n\t\treturn null;\n\t}", "Collection<? extends Object> getSameAs();", "public static void main(String[] args) {\n\t\tCollection c=new ArrayList();\n\t\t\n\t\tc.add(23);\n\t\tc.add(34);\n\t\t\n\t\tCollection c1=new ArrayList();\n\t\t\n\tc1.add(45);\n\tc1.add(67);\n\t\n\tc.addAll(c1);\n\tSystem.out.println(c);\n\t\n\t\n\tCollection c2=new ArrayList();\n\tc2.add(12);\n\tc2.add(23);\n\tc2.add(25);\n\t\n\tCollection c3=new ArrayList();\n\tc3.add(34);\n\tc3.add(45);\n\tc3.add(25);\n\tc3.add(25);\n\t\n\tc2.addAll(c3);\n\t\n\tSystem.out.println(c2);\n\tSystem.out.println(\"-------------------\");\n\t\n\t\n\tc2.removeAll(c3);\n\tSystem.out.println(c2);\n\t\n\tSystem.out.println(\"-------------------\");\n\tCollection c4=new ArrayList();\n\tc4.add(25);\n\tc4.add(23);\n\tc4.add(86);\n\tc4.add(98);\n\t\n\t\n\t\n\tCollection c5=new ArrayList();\n\tc5.add(25);\n\tc5.add(23);\n\tc5.add(12);\n\tc5.add(13);\n\t\n\tc4.retainAll(c5);\n\tSystem.out.println(c4);\n\t\n\tSystem.out.println(\"-------------------\");\n\t\n\tCollection c6=new ArrayList();\n\tc6.add(12);\n\tc6.add(23);\n\t\n\tObject a[]= c6.toArray();\n\tfor(int i=0;i < a.length ; i++)\n\t{\n\t\tSystem.out.println(a[i]);\n\t}\n\t\n\t\n\t\n\t\n\t\n\t\n\n\t\n\t\n\tc4.clear();\n\tSystem.out.println(c4);\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t}", "Collection<? extends Object> getFullHadith();", "public TreeSet<HerbierPic> getPicsCascade() {\n\t\tTreeSet<HerbierPic> result = new TreeSet<>();\n\t\tresult.addAll(pics);\n\t\tfor (Taxon child : children) {\n\t\t\tresult.addAll(child.getPicsCascade());\n\t\t}\n\t\treturn result;\n\t}", "private Collection<SubscriberAuxiliaryService> getAssociationsToBeProvisioned(final Context ctx,\r\n final Date runningDate)\r\n {\r\n Collection<SubscriberAuxiliaryService> result = null;\r\n try\r\n {\r\n final And predicate = new And();\r\n predicate.add(new LTE(SubscriberAuxiliaryServiceXInfo.START_DATE, CalendarSupportHelper.get(ctx).getEndOfDay(runningDate)));\r\n predicate.add(new GT(SubscriberAuxiliaryServiceXInfo.END_DATE, CalendarSupportHelper.get(ctx).getEndOfDay(runningDate)));\r\n predicate.add(new EQ(SubscriberAuxiliaryServiceXInfo.PROVISIONED, Boolean.FALSE));\r\n \r\n result = HomeSupportHelper.get(ctx).getBeans(ctx, SubscriberAuxiliaryService.class, predicate);\r\n }\r\n catch (final Throwable t)\r\n {\r\n new MajorLogMsg(this, \"Failed to look-up AuxiliaryService associations for startDate= \" + runningDate, t)\r\n .log(ctx);\r\n }\r\n return result;\r\n }", "private List<Object> serializeActualCollectionMembers(AbstractPersistentCollection collection)\r\n\t{\r\n\t\tList<Object> result = new ArrayList<Object>();\r\n\t\tif (!collection.wasInitialized())\r\n\t\t{\r\n\t\t\tcollection.forceInitialization();\r\n\t\t}\r\n\t\tIterator<Object> itr = collection.entries(null);\r\n\t\twhile (itr.hasNext())\r\n\t\t{\r\n\t\t\tObject next = itr.next();\r\n\t\t\tObject newObj = serialize(next);\r\n\t\t\tresult.add(newObj);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public List<Objetivo> getObjetivosAssociados() {\n return associacao.getObjetivosAssociados();\n }", "@Override\n public Iterator<E> reverseIterator() {\n return collection.iterator();\n }", "@Override\n public Set<String> getRelations() {\n if (cachedRelations != null) {\n return cachedRelations;\n }\n cachedRelations = new LinkedHashSet<String>();\n for (EventNode node : nodes) {\n cachedRelations.addAll(node.getNodeRelations());\n }\n return cachedRelations;\n }", "public Set<Relationship> getRelations() {\n return this.relations;\n }", "public void loadAssociations() {\n\n\t\tinitListSettingNames();\n\n\t\taddDefaultAssociations();\n\t}", "@Override\n\tprotected List<Entry> doRetrieveCollections()\n\t{\n\t\tif ( mScholar == null ) {\n\t\t\treturn null;\n\t\t}\n\t\treturn mScholar.getCollectionsBySection( mSection );\n\t}", "@Override\n public Collection<? extends DBSEntityAssociation> getReferences(@NotNull DBRProgressMonitor monitor) throws DBException {\n return Collections.emptyList();\n }", "@Override\n public Collection<? extends DBSEntityAssociation> getReferences(@NotNull DBRProgressMonitor monitor) throws DBException {\n return Collections.emptyList();\n }", "public XIterable<ArticleX> relateds() {\n\t\tfinal IteratorList<ReadNode> relateds = node().refChildren(\"related\").iterator() ;\n\t\treturn XIterable.create(domain(), relateds.toList(), MapUtil.<String, String>newMap(), ArticleX.class) ;\n\t}", "private List<ConnectionSetup> createDetachedSnapshotOfCollection() {\n return Collections.unmodifiableList(new ArrayList<ConnectionSetup>(setups));\n }", "public String getAssociationId() {\n return this.associationId;\n }", "public Iterator iterator() {\n maintain();\n return new MyIterator(collection.iterator());\n }", "@Override\r\n\tpublic Object[] toArray() {\n\t\treturn set.toArray();\r\n\t}", "public ConcurrentSkipListSet<Olders> getCollectionsOlders(){\n\t\t\treturn this.collectionsOlders;\n\t\t}", "public List<Collection> getCollections() {\n if (collections == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n CollectionDao targetDao = daoSession.getCollectionDao();\n List<Collection> collectionsNew = targetDao._queryUser_Collections(userId);\n synchronized (this) {\n if(collections == null) {\n collections = collectionsNew;\n }\n }\n }\n return collections;\n }", "public synchronized void addAll(WCollection otherCollection)\n\t{\n\t\tif(otherCollection != null)\n\t\t{\n\t\t\tEnumeration otherCollectionEnum = otherCollection.elements();\n\t\t while(otherCollectionEnum.hasMoreElements())\n\t\t {\n\t\t \tWModelObject object = (WModelObject) otherCollectionEnum.nextElement();\n\t\t \tm_elements.addElement(object);\n\t\t }\n\t\t}\n\t\t\n\t}", "public List<Assignment> getAllRelatedAssignment(Assignment inAssignment) throws Exception {\n\t\tList<Assignment> academics = new ArrayList<Assignment>();\n\n\t\tString where = MySQLiteHelper.ASSIGNMENT_ACADEMIC + \" = \" \n\t\t\t\t+ inAssignment.getAcademic_id() + \" and \"\n\t\t\t\t+ MySQLiteHelper.ASSIGNMENT_DUEDATE + \" = '\"\n\t\t\t\t+ inAssignment.getDueDate()+\"'\";\n\n\n\t\ttry{\n\t\t\tCursor cursor = database.query(MySQLiteHelper.TABLE_ASSIGNMENT,\n\t\t\t\t\tallColumns, where,\n\t\t\t\t\tnull, null, null, null);\n\n\t\t\tcursor.moveToFirst();\n\t\t\twhile (!cursor.isAfterLast()) {\n\t\t\t\tAssignment data_assignment = cursorToAssignment(cursor);\n\t\t\t\tacademics.add(data_assignment);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t\t// Make sure to close the cursor\n\t\t\tcursor.close();\n\t\t\treturn academics;\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tthrow e;\n\t\t}\n\t}", "protected CompositeTypeImpl getCompositeCollection() {\n // Complex object retrieve\n CompositeTypeImpl toReturn = new CompositeTypeImpl(\"compositeNameSpace\", COMPOSITE_TYPE_NAME, null, true);\n CompositeTypeImpl phoneNumberCompositeCollection = getPhoneNumberComposite(true);\n\n CompositeTypeImpl detailsComposite = new CompositeTypeImpl(null, \"tDetails\", \"tDetails\");\n detailsComposite.addField(\"gender\", new SimpleTypeImpl(null, SIMPLE_TYPE_NAME, null));\n detailsComposite.addField(\"weight\", new SimpleTypeImpl(null, SIMPLE_TYPE_NAME, null));\n\n SimpleTypeImpl nameSimple = new SimpleTypeImpl(null, SIMPLE_TYPE_NAME, null);\n\n SimpleTypeImpl friendsSimpleCollection = new SimpleTypeImpl(null, SIMPLE_TYPE_NAME, null, true, null, null, null);\n\n toReturn.addField(\"friends\", friendsSimpleCollection);\n toReturn.addField(EXPANDABLE_PROPERTY_PHONENUMBERS, phoneNumberCompositeCollection);\n toReturn.addField(EXPANDABLE_PROPERTY_DETAILS, detailsComposite);\n toReturn.addField(\"name\", nameSimple);\n\n return toReturn;\n }", "@SuppressWarnings( \"unchecked\" )\n public static <T> AssociationFunction<T> association( Association<T> association )\n {\n return ( (AssociationReferenceHandler<T>) Proxy.getInvocationHandler( association ) ).association();\n }", "GameCollection getGameCollection(){\r\n\t\treturn gc;\r\n\t}", "public java.lang.Object[] getRelationsAsReference() {\n return relationsAsReference;\n }", "public static Collection<IAlgoInstance> completeSelectionWithChildren(Collection<IAlgoInstance> selected) {\n\t\tSet<IAlgoInstance> res = new HashSet<IAlgoInstance>();\n\t\t\n\t\tSet<IAlgoInstance> toProcess = new HashSet<IAlgoInstance>();\n\t\ttoProcess.addAll(selected);\n\t\t\n\t\twhile (!toProcess.isEmpty()) {\n\t\t\t\n\t\t\t// pick up one\n\t\t\tIterator<IAlgoInstance> it = toProcess.iterator();\n\t\t\tIAlgoInstance ai = it.next();;\n\t\t\tit.remove();\n\t\t\t\n\t\t\t// add it\n\t\t\tres.add(ai);\n\t\t\t\n\t\t\t// process it\n\t\t\tif (ai instanceof IAlgoContainerInstance) {\n\t\t\t\tIAlgoContainerInstance aic = (IAlgoContainerInstance)ai;\n\t\t\t\ttoProcess.addAll(aic.getChildren());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn res;\n\t}", "public ArrayList<EplusObject> getObjects() {\n\t\treturn objects;\n\t}", "@SuppressWarnings(\"serial\")\n\t@Test\n\tpublic void updateCollection() {\n\t\tdb.close();\n\t\tEmbeddedConfiguration config = Db4oEmbedded.newConfiguration();\n\t\tconfig.common().objectClass(Car.class).cascadeOnUpdate(true);\n\t\tdb = Db4oEmbedded.openFile(config, DB4OFILENAME);\n\t\tObjectSet<Car> results = db.query(new Predicate<Car>() {\n\t\t\tpublic boolean match(Car candidate) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\n\t\tAssert.assertTrue(results.hasNext());\n\n\t\tCar car = results.next();\n\n\t\tcar.getHistory().remove(0);\n\t\tdb.store(car.getHistory());\n\t\tresults = db.query(new Predicate<Car>() {\n\t\t\tpublic boolean match(Car candidate) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\n\t\twhile (results.hasNext()) {\n\t\t\tcar = results.next();\n\t\t\tfor (int idx = 0; idx < car.getHistory().size(); idx++) {\n\t\t\t\tSystem.out.println(car.getHistory().get(idx));\n\t\t\t}\n\t\t}\n\n\t}", "public Set<IAspect> getAspects();", "public Association association(ComplexEObject ceo)\n {\n if (_inverseFieldName == null)\n {\n return new Association(this, ceo);\n }\n else\n {\n return new Association(this, ceo, inverseField());\n }\n }", "public Collection<T> mo29734a() {\n return new ArrayList();\n }", "public Collection findAll() {\n\t\treturn null;\r\n\t}", "Page<HousingAssociation> findAll(Pageable pageable);", "@MemberOrder(sequence = \"6\")\n\[email protected](column = \"evento_id\", mappedBy = \"evento\", dependentElement = \"false\")\n\t@CollectionLayout(render = RenderType.EAGERLY)\n\tpublic SortedSet<Asistencia> getAsistencias() {\n\t\treturn this.asistencias;\n\t}", "static void AddCollections()\n\t{\n\t\tSet<String> oSet1 = null;\n\t\tSet<String> oSet2 = null;\n\t\ttry {\n\t\t\toSet1 = new TreeSet<String>();\n\t\t\toSet1.add(\"Apple\");\n\t\t\toSet1.add(\"Boy\");\n\t\t\toSet1.add(\"Cat\");\n\t\t\tSystem.out.println(oSet1);\n\t\t\t\n\t\t\toSet2 = new TreeSet<String>();\n\t\t\toSet2.add(\"Dog\");\n\t\t\toSet2.add(\"Arrow\");\n\t\t\toSet2.add(\"Frog\");\n\t\t\tSystem.out.println(oSet2);\n\t\t\t\n\t\t\toSet1.addAll(oSet2);\n\t\t\tSystem.out.println(oSet1);\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\toSet1 = null;\n\t\t\toSet2 = null;\n\t\t}\n\t}", "public Iterator<Appointment> appointments() {\n return appointments.iterator();\n }", "public Collection<Analisis> getAnalisis(){\r\n\t\treturn analisis;\r\n\t}", "public Collection<T> getOthers() {\n return others;\n }", "public static List<AddCollection> findAllProduct() {\n\t\treturn null;\n\t}", "public Set<Profile> getRelatives() {\n\t\tSet<Profile> parents = new HashSet<>();\n\t\tparents.add(_parent1);\n\t\tparents.add(_parent2);\n\t\treturn parents;\n\t}", "private NotesCollection getCollection() {\n\t\t\n\t\tif (collection == null || collection.isRecycled() ) {\n\t\t\tNotesDatabase db = new NotesDatabase(ExtLibUtil.getCurrentSession(), \"\", fakenamesPath);\n\t\t\tcollection = db.openCollectionByName(\"contacts\");\n\t\t}\n\n\t\treturn collection;\n\t}", "public ReadOnlyIterator<Relation> getAllIncomingRelations();", "List<Object> getCollectionProxies(PersistentCollection collection)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tEventSource session = (EventSource) sessionFactory.getCurrentSession();\r\n\r\n\t\t\tCollectionPersister persister = session.getFactory().getCollectionPersister(collection.getRole());\r\n\t\t\tif (persister instanceof AbstractCollectionPersister)\r\n\t\t\t{\r\n\t\t\t\tAbstractCollectionPersister collectionPersister = (AbstractCollectionPersister) persister;\r\n\t\t\t\tString className = collectionPersister.getElementType().getName();\r\n\t\t\t\tEntityPersister entityPersister = session.getFactory().getEntityPersister(className);\r\n\t\t\t\tCollectionProxyResolver collectionProxyResolver = getCollectionProxyResolver(collectionPersister, entityPersister);\r\n\t\t\t\tif (session instanceof Session)\r\n\t\t\t\t{\r\n\t\t\t\t\tList<IHibernateProxyDescriptor> proxyDescriptors = collectionProxyResolver.getCollectionProxies(session, collection);\r\n\r\n\t\t\t\t\t// create a new HibernateProxy for each id.\r\n\t\t\t\t\tList<Object> proxies = new ArrayList<Object>();\r\n\t\t\t\t\tfor (IHibernateProxyDescriptor proxyDescriptor : proxyDescriptors)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tASObject as = getASObject(proxyDescriptor);\r\n\t\t\t\t\t\tproxies.add(as);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn proxies;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Throwable ex)\r\n\t\t{\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Collection<Contact> getContacts();", "public static Collection<GenericClass> getIndividualColl(OWLIndividual owlIndi, String property, OWLOntology onto, OWLDataFactory factory, OWLOntologyManager manager){\n\t\tOWLObjectProperty p = factory.getOWLObjectProperty(IRI.create(Settings.uri+property));\n\t\tIterator<OWLIndividual> coll = owlIndi.getObjectPropertyValues(p, onto).iterator();\n\t\tCollection<GenericClass> indiColl = new java.util.LinkedList<GenericClass>();\n\t\twhile(coll.hasNext()){\n\t\t\tindiColl.add(new GenericClass(coll.next(),onto,factory, manager));\n\t\t}\n\t\treturn indiColl;\n\t}", "public Collection getGeneralization()\n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{\n \t\tCollection col = new ArrayList();\n \t\tcol = instance.getGeneralization(this.refMofId());\n \t\t\n \t\treturn col; \t\t\n \t}\n \n \treturn super_getGeneralization();\n }", "public javax.accessibility.AccessibleRelationSet getAccessibleRelationSet() {\n try {\n XAccessibleRelationSet unoAccessibleRelationSet = unoAccessibleContext.getAccessibleRelationSet();\n if (unoAccessibleRelationSet == null) {\n return null;\n }\n \n javax.accessibility.AccessibleRelationSet relationSet = new javax.accessibility.AccessibleRelationSet();\n int count = unoAccessibleRelationSet.getRelationCount();\n for (int i = 0; i < count; i++) {\n AccessibleRelation unoAccessibleRelation = unoAccessibleRelationSet.getRelation(i);\n switch (unoAccessibleRelation.RelationType) {\n case AccessibleRelationType.CONTROLLED_BY:\n relationSet.add(new javax.accessibility.AccessibleRelation(\n javax.accessibility.AccessibleRelation.CONTROLLED_BY,\n create(unoAccessibleRelation.TargetSet)));\n break;\n case AccessibleRelationType.CONTROLLER_FOR:\n relationSet.add(new javax.accessibility.AccessibleRelation(\n javax.accessibility.AccessibleRelation.CONTROLLER_FOR,\n create(unoAccessibleRelation.TargetSet)));\n break;\n case AccessibleRelationType.LABELED_BY:\n relationSet.add(new javax.accessibility.AccessibleRelation(\n javax.accessibility.AccessibleRelation.LABELED_BY,\n create(unoAccessibleRelation.TargetSet)));\n break;\n case AccessibleRelationType.LABEL_FOR:\n relationSet.add(new javax.accessibility.AccessibleRelation(\n javax.accessibility.AccessibleRelation.LABEL_FOR,\n create(unoAccessibleRelation.TargetSet)));\n break;\n case AccessibleRelationType.MEMBER_OF:\n relationSet.add(new javax.accessibility.AccessibleRelation(\n javax.accessibility.AccessibleRelation.MEMBER_OF,\n create(unoAccessibleRelation.TargetSet)));\n break;\n default:\n break;\n }\n }\n return relationSet;\n } catch (com.sun.star.lang.IndexOutOfBoundsException e) {\n return null;\n } catch (com.sun.star.uno.RuntimeException e) {\n return null;\n }\n }" ]
[ "0.6437654", "0.595353", "0.584405", "0.5810434", "0.5791149", "0.5716975", "0.5654666", "0.5647936", "0.55488706", "0.5517832", "0.5426111", "0.5385935", "0.53809243", "0.53456616", "0.53456616", "0.5232724", "0.5207877", "0.5161166", "0.5146965", "0.5125104", "0.507442", "0.50727975", "0.5052247", "0.5049571", "0.50302595", "0.5016166", "0.50033337", "0.49898145", "0.49839798", "0.49670398", "0.49420953", "0.49360526", "0.49114025", "0.49071047", "0.48983762", "0.48828724", "0.4879648", "0.48619542", "0.4857813", "0.48483014", "0.483978", "0.48395008", "0.48378623", "0.4821019", "0.48168805", "0.4812487", "0.48117647", "0.48034284", "0.48007315", "0.47956574", "0.4788909", "0.47754577", "0.4771919", "0.47713536", "0.4771316", "0.47683677", "0.47615117", "0.47507086", "0.47460505", "0.4741591", "0.47365642", "0.47329116", "0.47261894", "0.47244084", "0.47244084", "0.4719742", "0.4706784", "0.4701363", "0.4690408", "0.46877083", "0.46784857", "0.46708977", "0.46702132", "0.46657324", "0.46630841", "0.46525943", "0.46496353", "0.46454546", "0.46366513", "0.4635281", "0.46324486", "0.46302697", "0.46292338", "0.46287856", "0.46233422", "0.4618446", "0.46004674", "0.4597894", "0.45846996", "0.4581988", "0.45818934", "0.4580187", "0.45736593", "0.45729068", "0.45706907", "0.4568717", "0.45669127", "0.4565783", "0.4564718", "0.45621312" ]
0.7160725
0
Checks if a association is contained in the collection of the current object.
boolean containsAssociation(AssociationEnd association);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetBelongs_to_collection() {\n return this.belongs_to_collection != null;\n }", "public boolean containsRelations();", "private boolean isAssociated(final KeyValuePair<K, V> association) {\n return indexMap.containsKey(association);\n }", "@Override\n public boolean isOwningCollection(Item item, Collection c)\n {\n Collection collection = item.getOwningCollection();\n\n if (collection != null && c.getID() == collection.getID())\n {\n return true;\n }\n\n // not the owner\n return false;\n }", "boolean isOneToMany();", "protected boolean isValid() {\n return COLLECTION.getList().contains(this);\n }", "public boolean containsIncomingRelations();", "@Override\r\n\tpublic boolean contains(Object o) {\n\t\treturn set.contains(o);\r\n\t}", "public boolean hasCollectionProperty( Property propertyId ) {\n Object value = getProperty(propertyId);\n return (value instanceof Collection<?> && !((Collection<?>)value).isEmpty());\n }", "protected boolean isReferenced() {\r\n return mReferenced || mUsers.size() > 0;\r\n }", "protected boolean isColliding() {\n\t\treturn phxService.isColliding(this);\n\t}", "public boolean isContained() {\n return contained;\n }", "public boolean contient(Couple assoc) {\n for (int i = 0; i < nbAssoc; i++)\n if (associations[i].equals(assoc))\n return true;\n return false;\n }", "@Override\n\t\tpublic boolean contains(Object o) {\n\t\t\treturn false;\n\t\t}", "public boolean isCollection() {\n return this == LOAD || this == PICKUP;\n }", "@Override\n\tpublic boolean contains(Object o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean contains(Object o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean contains(Object o) {\n\t\treturn false;\n\t}", "@Override\n public final boolean contains(final Object o) {\n return Collections.exists(getComponents(),\n new Assertion<PriorityList<? extends _PriorityElement_>>() {\n public boolean isTrueFor(PriorityList<? extends _PriorityElement_> s) {\n return s.contains(o);\n }\n });\n }", "public boolean containsAll(Collection coll) {\n\n return elements.keySet().containsAll(coll);\n }", "public boolean hasAccount(){\r\n\t\treturn (associatedAccount != null);\r\n\t}", "boolean hasCollectionName();", "private boolean isAssociationExist(Connection connection, String handle) {\n\n PreparedStatement prepStmt = null;\n ResultSet results = null;\n boolean result = false;\n\n try {\n prepStmt = connection.prepareStatement(OpenIDSQLQueries.CHECK_ASSOCIATION_ENTRY_EXIST);\n prepStmt.setString(1, handle);\n results = prepStmt.executeQuery();\n\n if (results.next()) {\n result = true;\n log.debug(\"Association \" + handle + \" found\");\n }\n\n } catch (SQLException e) {\n log.error(\"Failed to load the association \" + handle + \". Error while accessing the database. \", e);\n } finally {\n IdentityDatabaseUtil.closeResultSet(results);\n IdentityDatabaseUtil.closeStatement(prepStmt);\n }\n log.debug(\"Association \" + handle + \" not found\");\n return result;\n }", "boolean isMany();", "public boolean containsObject(AdvObject obj) {\n\t\treturn objects.contains(obj); // Replace with your code\n\t}", "public boolean isCollection(Class<?> aClass) {\n\t\treturn (this.getCollectionTypes().contains(aClass.getName()));\n\t}", "Collection<? extends WrappedIndividual> getIsPartOf();", "public boolean contains(Object o);", "public boolean contains(Object o);", "private boolean estPlein() {\n return (nbAssoc == associations.length);\n }", "public boolean isAssocProperty();", "public boolean isCollection() {\n return m_collection;\n }", "boolean isSetFurtherRelations();", "public boolean isTrueCollectionType()\n/* */ {\n/* 236 */ return Collection.class.isAssignableFrom(this._class);\n/* */ }", "public abstract boolean ContainsContactObjects();", "public boolean isOneToMany() {\n\t\treturn singluarAttribute == null;\n\t}", "public boolean areIntersecting() {\n return intersection != null;\n }", "public boolean contains(Object o) {\n\n Object value = elements.get(o);\n return value != null;\n }", "public boolean hasObject() {\n return objectBuilder_ != null || object_ != null;\n }", "protected boolean isCollection(Class clazz) {\n\n return Collection.class.isAssignableFrom(clazz);\n }", "public boolean contains(WModelObject object)\n\t{\n\t\treturn m_elements.contains(object);\n\t}", "@Override public boolean equals(Object o) {\n if (this == o) { return true; }\n if ( !(o instanceof Set) ) { return false; }\n Set that = (Set) o;\n return that.size() == inner.size() &&\n containsAll(that);\n }", "public boolean contains(E obj){\n\t\tif (obj == null)\n\t\t\tthrow new IllegalArgumentException(\"The given item is null.\");\n\t\tfor(E val : this) {\n\t\t\tif(val.equals(obj))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean containsAll(Collection<?> c) {\n\t\treturn set.containsAll(c);\r\n\t}", "public boolean containsKey(K key)\n {\n AssociationList<K, V> bucket = this.get(this.find(key));\n return (bucket != null) && (bucket.containsKey(key));\n }", "boolean isAssociative();", "public static boolean isCollection(final Object collection) {\n\n return collection instanceof Collection;\n }", "public boolean isSetIntersectingRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(INTERSECTINGROADWAYREF$20) != null;\r\n }\r\n }", "public boolean contains(Course c) {\n return courseList.contains(c); \n }", "boolean hasRelation();", "@Override\n public boolean containsAll(final Collection<?> collection) {\n this.checkCollectionNotNull(collection);\n final Iterator<?> iterator = collection.iterator();\n\n while (iterator.hasNext()) {\n if (!this.contains(iterator.next())) {\n return false;\n }\n }\n\n return true;\n }", "private void checkForAssociationConstraint()\n {\n try\n {\n String methodName = String.format(\"%sOptions\", name());\n _associationConstraint = _parent.getJavaClass().getMethod(methodName);\n }\n catch (NoSuchMethodException e)\n {\n // ignore\n }\n }", "@Override\n public boolean contains(Object o) {\n return contains(root, o);\n }", "Collection<? extends WrappedIndividual> getHasPart();", "@Override\n public boolean hasSubscriber(Subscriber subscriber) {\n return (subscriber.getId() == this.subscriber.getId());\n }", "public boolean contains(IMember member) {\n\t\tString key = getParentKey(member);\n\t\tIMemberSet children = _map.get(key);\n\t\tif (children == null) {\n\t\t\treturn false;\n\t\t}\n\t\treturn children.getInfo(member) != null; \n\t}", "boolean hasHas();", "protected Boolean exists() {\n return nonNull(getModified()) && nonNull(getInteractionModel());\n }", "public boolean isContained(T aData){\r\n return this.findNodeWith(aData) != null;\r\n }", "@Override\n\tpublic boolean contains(E e) {\n\t\treturn false;\n\t}", "boolean contains(Object o);", "boolean contains(Object o);", "boolean contains(Object o);", "Collection<? extends WrappedIndividual> getHas();", "@Override\r\n public boolean isDirectEmbeddableCollection() {\r\n return getEmbeddableAccessor() != null;\r\n }", "public final boolean hasActorsSelected() {\n return (selectedActors.size() > 0);\n }", "public boolean isMember(T o)\n {\n return (objectSet.search(o) != null);\n }", "@Override\n @SuppressWarnings(\"unchecked\")\n public boolean contains(Object o) {\n return search((E) o) != null;\n }", "public static <T> ManyAssociationContainsSpecification<T> contains( ManyAssociation<T> manyAssoc, T value )\n {\n return new ManyAssociationContainsSpecification<>( manyAssociation( manyAssoc ), value );\n }", "boolean hasCampaignSharedSet();", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof AppearedInPK)) {\n return false;\n }\n AppearedInPK other = (AppearedInPK) object;\n if (this.actorId != other.actorId) {\n return false;\n }\n if ((this.movieId == null && other.movieId != null) || (this.movieId != null && !this.movieId.equals(other.movieId))) {\n return false;\n }\n return true;\n }", "public boolean isSetRelatedId() {\n return EncodingUtils.testBit(__isset_bitfield, __RELATEDID_ISSET_ID);\n }", "boolean hasContains();", "public boolean containsAnActor() {\n\t\treturn map.isAnActorAt(this);\n\t}", "public boolean hasNext() {\n\t\t\n\t\treturn order.hasNext() || !candidates.isEmpty()\n\t\t\t\t|| !firstOrderCandidates.isEmpty();\n\t}", "boolean containsSpecifiedEnd(AssociationEnd specifiedEnd);", "public boolean containsAll(Collection c) {\r\n Enumeration e = c.elements();\r\n while (e.hasMoreElements())\r\n if(!contains(e.nextElement()))\r\n return false;\r\n\r\n return true;\r\n }", "public boolean contains(OpenERPRecord o) {\r\n\t\treturn this.records.contains(o);\r\n\t}", "@Override\n public boolean contains(Object o) {\n return indexOf(o) >= 0;\n }", "@Override\n public boolean contains(Object o) {\n return indexOf(o) >= 0;\n }", "public boolean hasRelation(String name) {\n \treturn relations.containsKey(name);\n }", "public boolean isBigCollection() {\n return (getPersistable().getManagedResources().size()) > BIG_COLLECTION_CHILDREN_COUNT;\n }", "@java.lang.Override\n public boolean hasObject() {\n return object_ != null;\n }", "public boolean hasObject(){\n return _object != null;\n }", "boolean containsAll(Collection<?> c);", "@Override\n public boolean contains(Object o) {\n if (indexOf(o) == -1) {\n return false;\n } else {\n return true;\n }\n }", "public boolean contains(T obj) {\r\n\t\tlogger.trace(\"Enter contains\");\r\n\t\tlogger.trace(\"Exit contains\");\r\n\t\treturn data.contains(obj);\r\n\t}", "public boolean isComplexCollection() {\n return m_complexCollection;\n }", "private boolean isCovered(Object annotationType, Set configured) {\n \t\tif (fAnnotationAccess instanceof IAnnotationAccessExtension) {\n \t\t\tIAnnotationAccessExtension extension= (IAnnotationAccessExtension) fAnnotationAccess;\n \t\t\tIterator e= configured.iterator();\n \t\t\twhile (e.hasNext()) {\n \t\t\t\tif (extension.isSubtype(annotationType,e.next()))\n \t\t\t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}\n \t\treturn configured.contains(annotationType);\n \t}", "public boolean hasCollidedWith(InteractiveObject obj){\n\t\tif (obj == null) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn (leftCollision(obj) || rightCollision(obj));\n\t\t}\n\t}", "public static final boolean collectionContainsAny(\n Collection collection,\n Object[] array)\n {\n for (int i = 0, max = array.length; i < max; i++)\n {\n if (collection.contains(array[i]))\n return true;\n }\n return false;\n }", "public boolean has(String propertyName) {\n return this.propertyBag.has(propertyName);\n }", "public boolean contains(Account that) {\n return this.first.equals(that) || this.rest.contains(that);\n }", "public boolean isAssocId();", "public boolean contains(E element) {\r\n return items.contains(element);\r\n }", "public static boolean isCollectionType(String typeName, boolean includeInterfaces) {\r\n\t\t\r\n\t\tif (collectionClassesByNames.contains(typeName)) return true;\r\n\r\n\t\treturn includeInterfaces && collectionInterfacesByNames.contains(typeName);\r\n\t}", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();" ]
[ "0.7065049", "0.65703744", "0.6459333", "0.641129", "0.6320732", "0.61781746", "0.6162685", "0.61268216", "0.6101379", "0.6017788", "0.6005408", "0.598457", "0.59776545", "0.59559804", "0.59554046", "0.5852159", "0.5852159", "0.5852159", "0.5830098", "0.57871324", "0.577885", "0.57494456", "0.5726281", "0.5716213", "0.57145566", "0.5713341", "0.5705711", "0.5661395", "0.5661395", "0.5654191", "0.56478775", "0.5641789", "0.5641567", "0.5634166", "0.5629939", "0.5625477", "0.56186765", "0.5599888", "0.55992144", "0.55973685", "0.55950546", "0.55760133", "0.5549707", "0.55490315", "0.5540977", "0.55013305", "0.5498659", "0.54966986", "0.5490377", "0.54901695", "0.54899484", "0.5484958", "0.54832894", "0.5451748", "0.5443503", "0.5435312", "0.5427507", "0.5411639", "0.5409916", "0.5409424", "0.54089534", "0.54089534", "0.54089534", "0.54055876", "0.54031754", "0.5402476", "0.54013276", "0.5399905", "0.5398663", "0.539096", "0.5387984", "0.5385812", "0.538323", "0.5383128", "0.53827447", "0.53819686", "0.53791016", "0.5372658", "0.535696", "0.535696", "0.53542256", "0.5352307", "0.53441966", "0.5338255", "0.5332807", "0.53268474", "0.53051233", "0.53037214", "0.53001374", "0.5297288", "0.5295219", "0.52942294", "0.5293728", "0.52911806", "0.52903247", "0.52719504", "0.52709645", "0.52709645", "0.52709645", "0.52709645" ]
0.7234905
0
Returns the number of objects of type "association" previously added to the collection of the current object.
int countAssociations();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNrOfAssociations() {\n int size = 0;\n for (PriorityCollection associations : memory.values()) {\n size += associations.size();\n }\n return size;\n }", "public int size() {\n\t\treturn collection.size();\n\t}", "public int size() {return collection.size();}", "public int size() {\n maintain();\n return collection.size();\n }", "public int getAssocCount ()\n {\n return assocCount;\n }", "public int size() {\n return collection.size();\n }", "public int size() {\n return this.collection.size();\n }", "@Override\r\n\tpublic int getCollectionTotalCount() {\n\t\treturn data != null ? data.recordCount : 0;\r\n\t}", "public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}", "int sizeOfRelatedArray();", "public int size() {\n\t\treturn this.articleIdToReferenceIdMap.size();\r\n\t}", "public int nbElements() {\n return nbAssoc;\n }", "public int getSize() {\n\t\treturn collection.size();\n\t\t\n\t}", "public int getRelationsCount() {\n return relationsCount;\n }", "@Override\r\n\tpublic int getCollectionCount() {\n\t\treturn data != null && data.list != null ? data.list.size() : 0;\r\n\t}", "public int getLength() {\n return collection.size();\n }", "public int getKeyCount() {\n return associationCountMap.size();\n }", "@Override\n public int size() {\n int totalSize = 0;\n // iterating over collectionList\n for (Collection<E> coll : collectionList)\n totalSize += coll.size();\n return totalSize;\n }", "public int size()\r\n\t{\r\n\t\treturn collCarte.size();\r\n\t}", "public long getRelationCount();", "public int sizeOfForeignkeyArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FOREIGNKEY$4);\r\n }\r\n }", "public int getCount(final K key) {\n throwIfNullKey(key);\n final Integer count = associationCountMap.get(key);\n if (count == null) {\n return 0;\n }\n return count;\n }", "public int size() {\n if (hasKeys) {\n return keys.size();\n } else {\n return objects.size();\n }\n }", "public int getCount() {\n return objects.size();\n }", "public int size() {\n int counter = 1;\n Lista iter = new Lista(this);\n while (iter.next != null) {\n iter = iter.next;\n counter += 1;\n }\n return counter;\n }", "public Integer getInterestedInItemsCount();", "public int getNumObjects(){\n return numObjects;\n }", "public int getNumArtistsInCollection() {\n\t\treturn numArtistsInCollection;\n\t}", "public int sizeOf() {\n BookList target = this;\n int count = 0;\n if (isEmpty()){\n count= 0;\n }\n else if (!isEmpty()){\n count = 1;\n while (target.next != null){\n target = target.next;\n if(target.next == null){\n }\n \n ++count;\n }\n \n }\n\t\treturn count;\n\t}", "public int getAoisCount() {\n if (aoisBuilder_ == null) {\n return aois_.size();\n } else {\n return aoisBuilder_.getCount();\n }\n }", "int getObjectAnnotationsCount();", "int getObjectAnnotationsCount();", "public int size() {\n resolveAll();\n return resolvedPojos.size();\n }", "public int getAdvisorCount();", "int getItemsCount();", "int getItemsCount();", "public int size(){\r\n\t\treturn numAdded;\r\n\t}", "private int getReferences() {\n int quantity = 0;\n for (Option o : criteriaList.get(currentCriteria).getOptionList()) {\n boolean wasFound = false;\n for (String s : speciesLeft)\n if (o.getEntities().contains(s))\n wasFound = true;\n if (wasFound)\n ++quantity;\n }\n return quantity;\n }", "int getOtherIdsCount();", "public static int numberObjects()\r\n\t{\r\n\t\treturn(no_of_obj);\r\n\t}", "@java.lang.Override\n public int getAssociatedInsightsCount() {\n return associatedInsights_.size();\n }", "public int getObjectCount() {\n\t\treturn nestedConcept.getExtent().size();\n\t}", "@Override\r\n\tpublic int size() {\n\t\treturn count;\r\n\t}", "@Override\n\tpublic long size() {\n\t\treturn contacts.size();\n\t}", "public int size() {\n return count;\n }", "public int size() {\n return bag.size();\n }", "@Override\n\tpublic int size() {\n\t\treturn util.iterator.IteratorUtilities.size(iterator());\n\t}", "@Override\r\n\tpublic int size() {\r\n\t\treturn count;\r\n\t}", "public long getAllRelationCount();", "@Override\n public int size() {\n return count;\n }", "@Override\n public int size() {\n return count;\n }", "public int size()\r\n {\r\n return count;\r\n }", "public int size(){\n\t\treturn howMany; \n\t}", "public int size() \r\n\t{\r\n\t\treturn getCounter();\r\n\t}", "int getIdsCount();", "public int size() { return count; }", "public int size()\n {\n return count;\n }", "public int size()\r\n\t{\r\n\t\treturn count;\r\n\t}", "public int numberReferencesToThis() {\n return referenceToThis.size();\n }", "public int size() {\n\t\treturn count;\n\t}", "public int size() {\n\t\treturn count;\n\t}", "public int size() {\n\t\treturn count;\n\t}", "public int getNumPersons() {\r\n\t\treturn this.persons.size();\r\n\t}", "int getRefsCount();", "public int getAutoEventCount()\n {\n return _autoEventList.size();\n }", "public int getSize() {\n\t\t\treturn objects.size();\n\t\t}", "public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n\t}", "protected long getObjectCount() {\r\n return objectCount;\r\n }", "public int size() {\n\t\t\treturn gameObjects.size();\n\t\t}", "public int size() {\r\n return refs.size();\r\n }", "public int size() {\n \tint currentSize = 0;\n \t\n \tIterator<E> iterateSet = this.iterator();\n \t\n \t// calculates number of elements in this set\n \twhile(iterateSet.hasNext()) {\n \t\titerateSet.next();\n \t\tcurrentSize++;\t\t\n \t}\n \t\n \treturn currentSize;\n \t\n }", "int getAoisCount();", "public int countBookings() {\n\t\t\treturn Bookings.size();\r\n\t\t}", "public int size() {\n\t\tint result = 0;\n\t\tfor (E val: this)\n\t\t\tresult++;\n\t\treturn result;\n\t}", "public int getOtherIdsCount() {\n return otherIds_.size();\n }", "public int getOtherIdsCount() {\n return otherIds_.size();\n }", "public int size(){\n return count;\n }", "public int count() {\n return Query.count(iterable);\n }", "public static int size() {\n\t\treturn anisLookup.size();\n\t}", "@Override\n public int countAll() {\n\n Query qry = this.em.createQuery(\n \"select count(assoc) \" +\n \"from WorkToSubjectEntity assoc\");\n\n return ((Long) qry.getSingleResult()).intValue();\n }", "@Override\n\tpublic int size() {\n\n\t\treturn this.numOfItems;\n\t}", "public final int size()\n {\n return m_count;\n }", "public int size() \n { \n return count; \n }", "public int getAoisCount() {\n return aois_.size();\n }", "public int size() {\n return numItems;\n }", "int getPropertiesCount();", "public int getNumbObjects()\n\t{\n\t\treturn this.numObjects;\n\t}", "@Override\r\n\tpublic int size() {\r\n\t\treturn numItems;\r\n\t}", "public static int size() \r\n\t{\r\n\t\treturn m_count;\r\n }", "public Long getElementCount();", "int sizeOfObjectDefinitionArray();", "public int getAssociatedInsightsCount() {\n if (associatedInsightsBuilder_ == null) {\n return associatedInsights_.size();\n } else {\n return associatedInsightsBuilder_.getCount();\n }\n }", "public int size() {\n return super.size();\n }", "public int getCount(){\n\t\treturn mDataObjects.size();\n\t}", "public int size()\r\n\t{\r\n\t\treturn numItems;\r\n\r\n\t}", "public int count() {\n\t\treturn count;\n\t}", "@Override\n\t\tpublic long size() {\n\t\t\t\n\t\t\treturn super.size();\n\t\t}", "public int getCount() {\n \t\tint total = 0;\n \t\tfor(Adapter adapter : this.sections.values())\n \t\t\ttotal += adapter.getCount() + 1;\n \t\treturn total;\n \t}", "public int getCount()\r\n {\r\n int answer=0;\r\n answer+=recCount(root);\r\n return answer;\r\n }", "public int size() {\r\n return listeners.size() + weak.size();\r\n }" ]
[ "0.7566293", "0.69306624", "0.69270515", "0.68979806", "0.68797797", "0.68760777", "0.66979784", "0.66547406", "0.6645567", "0.6638671", "0.65843654", "0.65636265", "0.6549729", "0.6523932", "0.6523363", "0.64917797", "0.6456729", "0.6369204", "0.634648", "0.63089937", "0.6280519", "0.6266039", "0.62658346", "0.62473756", "0.62391025", "0.62165904", "0.62157387", "0.6202444", "0.616929", "0.6163459", "0.6116822", "0.6116822", "0.6113689", "0.61047447", "0.6102746", "0.6102746", "0.6089156", "0.60829985", "0.6073372", "0.6064165", "0.60610104", "0.6058415", "0.6056615", "0.60325825", "0.6021242", "0.60154945", "0.60145015", "0.601202", "0.6011797", "0.6010858", "0.6010858", "0.6006785", "0.6006026", "0.60042596", "0.5996979", "0.59953624", "0.59936917", "0.5991326", "0.59869003", "0.5982383", "0.5982383", "0.5982383", "0.59774524", "0.5975083", "0.5960774", "0.5958959", "0.5958764", "0.59335524", "0.5927731", "0.59195083", "0.59043807", "0.58912617", "0.5889533", "0.5888885", "0.5888215", "0.58850354", "0.5884464", "0.5881817", "0.58780605", "0.5872959", "0.58717036", "0.58647376", "0.5864144", "0.58612674", "0.58560467", "0.5847256", "0.5845134", "0.58373994", "0.5836863", "0.58362067", "0.58357555", "0.58296865", "0.58243495", "0.5819837", "0.58187276", "0.58122677", "0.58022773", "0.58013433", "0.57992196", "0.5796663" ]
0.75216657
1
Adds a specified end to the collection of the current object.
void addSpecifiedEnd(AssociationEnd specifiedEnd);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToEnd(T obj) {\r\n \t\t// Check obj is not null\r\n \t\tif(obj == null) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t// Check if items is full\r\n \t\tif(numItems == items.length) {\r\n \t\t\tdoubleArrayLength();\r\n \t\t}\r\n \t\titems[numItems++] = obj;\r\n \t}", "public M csmiAddTimeEnd(Object end){this.put(\"csmiAddTimeEnd\", end);return this;}", "public M csolAddTimeEnd(Object end){this.put(\"csolAddTimeEnd\", end);return this;}", "void addToEnd(Object[] by);", "@Override\r\n\tpublic void addLast(E e) {\n\t\t\r\n\t}", "public void setEnd(int end) {\r\n this.end = end;\r\n }", "public M csseAddTimeEnd(Object end){this.put(\"csseAddTimeEnd\", end);return this;}", "void addAssociation(AssociationEnd association);", "public boolean add (Object o) {return addLast(o);}", "public void setEnd(int end) {\n\t\tthis.end = end;\n\t}", "public void setEnd(int end)\n {\n this.end = end;\n this.endSpecified = true;\n }", "public void addLast(E item){\r\n }", "@Override\n\tpublic Position<E> addLast(E e) {\n\t\treturn addBetween(tail.prev, tail, e);\n\t}", "public void addLast(E item);", "public void IntersectEnd() {\n\t\tif (getIntersectingObjects(End.class).get(0).isEnd()) {\n\t\t\tthis.end--;\n\t\t\taddPoints(-100);\n\t\t}\n\t\tpoints+=100;\n\t\tgetIntersectingObjects(End.class).get(0).setEnd();\n\t\tfrogReposition();\n\t\tthis.end++;\n\t}", "public void addEnd(Type value){\n if( !this.isEmpty() ){\n this.end = new MyDoubleNode(value, this.end, null);\n this.end.prev.next = this.end;\n }else{\n this.start = this.end = new MyDoubleNode(value);\n }\n this.size++;\n }", "public void addLast(Item x);", "void addEel(int t_start, int t_end) {\n\t\t\tEelsRepository.put(t_start, t_end);\n\t\t}", "public void setEnd( GeoPoint end ){\n this.end = end;\n\n }", "@Test\n\tpublic void addNodeAtEnd() {\n\t\tSystem.out.println(\"Adding a node at the End of the list\");\n\t\tdll.append(1);\n\t\tdll.append(2);\n\t\tdll.append(3);\n\t\tdll.print();\n\t}", "private String addEnd() {\n\t\t// NO PARAMETERS\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|End\");\n\t\treturn tag.toString();\n\t}", "public Node<E> addToEnd(Node<E> node){\n Node<E> previous = tail.getPrevious();\n\n previous.setNext(node);\n node.setPrevious(previous);\n tail.setPrevious(node);\n node.setNext(tail);\n size++;\n\n return node;\n }", "public void addLast(T e) {\n if (_size == 0) {\n _end = new DLLNode<T>(e, null, null);// Same thing as in addFront()\n _front = _end;\n }\n else {\n _end.setNext(new DLLNode<T>(e, _end, null));// add something after the last thing and make that the new end\n _end = _end.getNext();\n }\n _size++;\n }", "public boolean add( int mediaID, long start, long end ) {\r\n\t\treturn add(mediaID, new Range(start, end));\r\n\t}", "net.opengis.gml.x32.TimePositionType addNewEndPosition();", "public void addEdge(int start, int end);", "public void addToEnd(String value) {\n ListElement current = new ListElement(value);\n if (count == 0) {\n head = current;\n } else {\n tail.connectNext(current);\n }\n tail = current;\n count++;\n }", "public void addTileAtTheEnd(Tile tile);", "public void addEnd(AbstractInsnNode exitpoint) {\n this.ends.add(exitpoint);\n }", "public void insertEnd(T data){\n Node<T> node = new Node<T>(data);\n if(this.isEmpty()) {\n this.insertFirst(data);\n }\n else{\n this.end.next = node;\n node.previous = this.end;\n this.end = node;\n }\n size++;\n }", "public void add(T e) {\n\t\tif(!this.isEmpty()) {\n\t\t\tsuper.put(e, new Duet<T>(last, null));\n\t\t\tthis.get(last).setLast(e);\n\t\t\tlast = e;\n\t\t} else {\n\t\t\tsuper.put(e, new Duet<T>(null, null));\n\t\t\tfirst = e;\n\t\t\tlast = e;\n\t\t}\n\t}", "public void addDataRange(long beginning, long ending, Line line){\n }", "public int end() { return _end; }", "public void setEndLoc( Vector2 end ) { endLoc = end; }", "void add(String startDelimiter, String endDelimiter) {\r\n\t\tDelimiter delimiter = (new Delimiter()).start(startDelimiter).end(endDelimiter);\r\n\t\tadd(delimiter);\r\n\t}", "void addLine(int index, Coordinate start, Coordinate end);", "public void add()\n {\n set(++ current);\n }", "public void insertAtEnd(Employee e) {\n\t}", "Position<T> addLast(T data);", "public void add_Range(Range range_to_add){\n this.range_vector.add(range_to_add);\n }", "@Override\n public void addToEnd(T data){\n Node<T> dataNode = new Node<>();\n\n dataNode.setData(data);\n dataNode.setNext(null);\n\n Node<T> tempHead = this.head;\n while(tempHead.getNext() != null) {\n tempHead = tempHead.getNext();\n }\n\n tempHead.setNext(dataNode);\n }", "net.opengis.gml.x32.TimeInstantPropertyType addNewEnd();", "public void add(Renderable e) {\n array[upperBound] = e;\n\n upperBound = (upperBound + 1) % array.length;\n }", "public void addANodeToEnd(E addData)\n\n\t{\n\t\tNode position = head;\n\t\t// when the link is null, stop the loop and add a node \n\t\twhile (position.link != null) {\n\t\t\t// get next node\n\t\t\tposition = position.link;\n\t\t}\n\t\t// add a new node to the end\n\t\tposition.link = new Node(addData, null);\n\n\t}", "public void add(Object obj) { \n\t\tcollection.addElement(obj);\n\t}", "public void moveEnd(\n )\n {moveLast(); moveNext();}", "public boolean addEdge(T beg, T end);", "public void addLast(E e) {\n addBetween(e, trailer.getPrev(), trailer);\n }", "public void add(@NonNull final E e) {\n if (mItems.add(e)) {\n final int position = mItems.size() - 1;\n mDatasourceObservable.notifyItemRangeInserted(position, 1);\n }\n }", "public void addToEnd2(CDominoes newDomino){\n dominoes.add(newDomino);\n \n \n }", "public void addLast(T element);", "public void setEnd(int end)\n {\n if(end >= 0)\n {\n this.end = end;\n }\n else\n {\n System.out.println(\"Cannot be negative.\");\n }\n }", "public Resource addToCollection(Resource collection, Resource entity) {\n Property hadMember = model.createProperty(\n ProvOntology.getHadMemberExpandedPropertyFullURI());\n model.createStatement(collection, hadMember, entity);\n return collection;\n }", "public void addItem(Object item) {\n\t\tListItem newEnd = new ListItem(item); // Create a new ListItem\n\t\tif (start == null) { // Is the list empty?\n\t\t\tstart = end = newEnd; // Yes, so new element is start and end\n\t\t\tstart.prev = start; \t\t// Prev start refers to itself\n\t\t} else { // No, so append new element\n\t\t\tend.next = newEnd; // Set next variable for old end\n\t\t\tcurrent = end;\t\t\t\t// To reference previous end object \n\n\t\t\t//Point end to the new ListItem object\n\t\t\tend = newEnd; // Store new item as end\n\t\t\tend.prev = current;\t\t// Set prev item in new end\n\t\t}\n\t}", "public void add(T e) {\n Entry<T> newNode = new Entry<T>(e, null, null);\n newNode.next = cursor.next;\n newNode.prev = ((Entry<T>) cursor);\n if(cursor != tail) {\n ((Entry<T>) cursor.next).prev = newNode;\n }\n else {\n tail = newNode;\n }\n cursor.next = newNode;\n prev = cursor;\n cursor = cursor.next;\n size++;\n ready = false;\n }", "public void addElement(Replicated obj)\r\n\t{\n\t\tinsert(obj, seq.size());\r\n\t}", "void setEndInclusive( boolean endInclusive );", "@Override\n\tpublic void add() {\n\t\t\n\t}", "@Override\n public void insertAtEnd(T value) {\n Node<T> new_node = new Node<T>(value);\n if (start == null) {\n start = new_node;\n }\n if (end == null) {\n end = new_node;\n } else {\n end.next = new_node;\n end = new_node;\n }\n\n }", "void addEndingHadithNo(Object newEndingHadithNo);", "public void add() {\n\t\t\n\t}", "public void addLast(E e) { // adds element e to the end of the list\n // TODO\n addFirst(e);\n tail = tail.getNext();\n }", "@Override\n public void addLast(E e) throws IllegalStateException {\n checkSize();\n data[size] = e;\n size++;\n }", "public void insertAtEnd(int val)\n {\n List nptr = new List(val, null, null); \n if(start == null)\n {\n start = nptr;\n end = start;\n }\n else\n {\n nptr.setListPrev(end);\n end.setListNext(nptr);\n end = nptr;\n }\n size++;\n }", "public void addLast(Object item) {\r\n\t\tdata.add(item);\r\n\r\n\t}", "void addLink(byte start, byte end);", "@Override\n\tpublic void add(Object o) {\n\t}", "public void add(E e) {\n if (n == list.length) { grow(); }\n list[n++] = e;\n }", "@Test\n public void testAdd_After_Next() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n instance.add(9);\n int expResult = 2;\n\n assertEquals(expResult, baseList.indexOf(9));\n }", "public synchronized void addObject(E obj) {\n\t\twrappedSet.add((E) obj);\n\t}", "public void add() {\n }", "public void addLast(T item){\n\tif ( _size == 0 ) {\n\t _front = _end = new DLLNode<T>(item, null, null);\n\n\t}\n\telse{\n\t DLLNode<T> temp = new DLLNode<T>(item, null, _end);\n\t _end.setPrev(temp);\n\t _end = temp;\n\t}\n\t_size++;\n }", "public void add(T e){\n ensureCapacity(size + 1);\n data[size++] = e;\n }", "@JsMethod\n public native void setEndPoints(Cartographic start, Cartographic end);", "public void addLast(Object o) {\r\n addBefore(o, header);\r\n }", "public void addEnd(int data) {\n\t\tNode newNode = new Node(data);\n\n\t\tif(head == null) {\n\t\t\thead = newNode;\n\t\t} else {\n\t\t\tNode temp = head;\n\n\t\t\twhile(temp.next != null) {\n\t\t\t\ttemp = temp.next;\n\t\t\t}\n\t\t\ttemp.next = newNode;\n\t\t}\n\t}", "public void add(Object object) {\n\t\tif (nextItem == null) {\n\t\t\tnextItem = new Item(object, index + 1);\n\t\t} else {\n\t\t\tnextItem.add(object);\n\t\t}\n\t}", "org.hl7.fhir.ObservationReferenceRange addNewReferenceRange();", "public void insertAtEnd(Computer Computer) {\n // Computer Computer = new Computer(null, null);\n if (start == null) {\n Computer.setLinkNext(Computer);\n Computer.setLinkPrev(Computer);\n start = Computer;\n end = start;\n } else {\n Computer.setLinkPrev(end);\n end.setLinkNext(Computer);\n start.setLinkPrev(Computer);\n Computer.setLinkNext(start);\n end = Computer; // The computer is placed at the end\n }\n taille++;\n }", "public Balance add(final BigDecimal augend) {\r\n return new Balance(this.value.add(augend));\r\n }", "@Override\n <T> void add(T object);", "public M csseStartEnd(Object end){this.put(\"csseStartEnd\", end);return this;}", "@Override\n public boolean addChild(N endNode)\n throws GraphLogicException {\n E edge = buildDirectEdge(getThis(), endNode);\n return addDirectEdge(edge);\n }", "public @Override boolean add(E element) {\n \tappend(element);\n \treturn true;\n }", "@Test\n public void add() {\n\n collection.add(\"test\");\n assertEquals(collection.getLast(),\"test\");\n }", "@Override\r\n\tpublic int add() {\n\t\treturn 0;\r\n\t}", "public void addMinedLineSegment(final int start, final int end) {\n // fill me in!\n }", "private void add() {\n\n\t}", "public org.python.Object __add__(org.python.Object other);", "public void add(E e) {\n\t\tentities.add(e);\n\t}", "public int end() {\n return end;\n }", "public void setEndDate(Date end)\r\n {\r\n this.endDate = end;\r\n }", "protected void insertEnd(T value) {\r\n\t\tSNode<T> iterator = head;\r\n\t\twhile (iterator.getPrev() != this.tail) {\r\n\t\t\titerator = iterator.getPrev();\r\n\t\t}\r\n\t\titerator.setPrev(new SNode<T>(value, this.tail));\r\n\t\tsize++;\r\n\t}", "@NonNull\n public Builder setEnd(@NonNull DpProp end) {\n if (end.getDynamicValue() != null) {\n throw new IllegalArgumentException(\"setEnd doesn't support dynamic values.\");\n }\n mImpl.setEnd(end.toProto());\n mFingerprint.recordPropertyUpdate(\n 1, checkNotNull(end.getFingerprint()).aggregateValueAsInt());\n return this;\n }", "public void append(Object item);", "@Test\n public void testAdd_After_Add() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n instance.add(3);\n instance.add(9);\n int expResult = 3;\n\n assertEquals(expResult, baseList.indexOf(9));\n }", "public synchronized void add(Object object) {\n\n if (_queue.size() == 0) {\n // no elements then simply add it here\n _queue.addElement(object);\n } else {\n int start = 0;\n int end = _queue.size() - 1;\n\n if (_comparator.compare(object,\n _queue.firstElement()) < 0) {\n // it need to go before the first element\n _queue.insertElementAt(object, 0);\n } else if (_comparator.compare(object,\n _queue.lastElement()) > 0) {\n // add to the end of the queue\n _queue.addElement(object);\n } else {\n // somewhere in the middle\n while (true) {\n int midpoint = start + (end - start) / 2;\n if (((end - start) % 2) != 0) {\n midpoint++;\n }\n\n int result = _comparator.compare(\n object, _queue.elementAt(midpoint));\n\n if (result == 0) {\n _queue.insertElementAt(object, midpoint);\n break;\n } else if ((start + 1) == end) {\n // if the start and end are next to each other then\n // insert after at the end\n _queue.insertElementAt(object, end);\n break;\n } else {\n if (result > 0) {\n // musty be in the upper half\n start = midpoint;\n } else {\n // must be in the lower half\n end = midpoint;\n }\n }\n }\n }\n }\n }", "public int getEnd() {\n return this.end;\n }", "@Override\n public void add(Object e) {\n if (currentSize == this.container.length - 1) {\n Object[] newArray = new Object[capacity * 2];\n capacity *= 2;\n System.arraycopy(this.container, 0, newArray, 0, currentSize);\n this.container = newArray;\n }\n container[currentSize++] = e;\n }", "void setEndRange( String endRange );" ]
[ "0.63600767", "0.6350231", "0.6341763", "0.6318266", "0.626774", "0.625208", "0.6211147", "0.6169737", "0.61419785", "0.61203593", "0.61010563", "0.60775894", "0.6074612", "0.60244864", "0.5923654", "0.59233236", "0.5899647", "0.5887299", "0.58871025", "0.5871148", "0.5795596", "0.57857406", "0.5766348", "0.5765442", "0.5751804", "0.573986", "0.56931", "0.5681379", "0.5667218", "0.5657269", "0.56442606", "0.5617346", "0.5617055", "0.5608263", "0.56026036", "0.55943286", "0.55649626", "0.5556704", "0.55470586", "0.55274576", "0.55226463", "0.5522456", "0.55201644", "0.5519583", "0.5509468", "0.5492195", "0.5467071", "0.54649854", "0.54646724", "0.546425", "0.54642284", "0.54632956", "0.5439475", "0.54311067", "0.5416217", "0.54030704", "0.5398376", "0.5389875", "0.53887975", "0.5380731", "0.5368674", "0.53566104", "0.5352229", "0.5351422", "0.53352696", "0.5323548", "0.5321518", "0.5320865", "0.5308179", "0.52902055", "0.5279208", "0.5274578", "0.52724093", "0.5270879", "0.52702814", "0.52670795", "0.52615213", "0.52591777", "0.525661", "0.5246957", "0.524474", "0.5244611", "0.5241982", "0.523841", "0.52337885", "0.522121", "0.5216588", "0.52165526", "0.52148926", "0.5213932", "0.52131164", "0.5211209", "0.5211054", "0.5209429", "0.52087784", "0.520789", "0.5207237", "0.52033734", "0.52006376", "0.5199693" ]
0.6998014
0
Removes a specified end from the collection of the current object.
boolean removeSpecifiedEnd(AssociationEnd specifiedEnd);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Type removeEnd(){\n Type value = null;\n if( !this.isEmpty() ){\n value = this.end.value;\n if(this.start == this.end){\n this.start = this.end = null;\n }else{\n this.end = this.end.prev;\n this.end.next = null;\n }\n }\n this.size--;\n return value;\n }", "public void removeEnd() {\n\t\t\tif (length != 0)\n\t\t\t\t{ \n\t\t\t ElementDPtr save = tail.getPrev();\n\t\t\t tail.setPrev(save.getPrev());\n\t\t\t save.getPrev().setNext(tail);\n\t\t\t length -= 1;\n\t\t\t System.out.println(tail.getPrev().getValue() + \" removeE \" + length);\n\t\t\t\t}\n\t\t\t\n\t\t}", "public T removeLast()throws EmptyCollectionException;", "public E removeLast();", "public Item removeLast();", "public void remove()\n {\n list.remove(cursor);\n cursor--;\n }", "abstract public void removeLast();", "public T removeLast() {\n if (_size == 0)\n throw new NoSuchElementException();//If nothing to remove, you cant remove\n T ret = _end.getCargo();\n _end = _end.getBefore();//set end to the thing before end\n _size--;\n return ret;\n }", "public T removeLast(){\n\tT ret = _end.getCargo();\n\t_end = _end.getNext();\n\t_end.setPrev(null);\n\t_size--;\n\treturn ret;\n }", "public T removeLast();", "public void removeIt() { \n\t\t\tcollection.remove(currIndex);\n\t\t\tcurrIndex--;\n\t\t}", "@Override\n public void removeFromEnd(){\n Node<T> current = this.head;\n\n Node<T> previous = null;\n while(current.getNext() != null){\n previous = current;\n current = current.getNext();\n }\n\n //remove current and make previous as last node\n current.setData(null);\n current.setNext(null);\n\n previous.setNext(null);\n }", "void unsetEnd();", "protected T removeEnd() {\r\n\t\tif (!this.isEmpty()) {\r\n\t\t\tSNode<T> iterator = this.getHead();\r\n\t\t\twhile (iterator.getPrev().getPrev() != tail) {\r\n\t\t\t\titerator = iterator.getPrev();\r\n\t\t\t}\r\n\t\t\tSNode<T> endNode = iterator.getPrev();\r\n\t\t\titerator.setPrev(tail);\r\n\t\t\tsize--;\r\n\t\t\treturn endNode.getValue();\r\n\t\t}\r\n\t\t// The list is empty\r\n\t\treturn null;\r\n\t}", "public Element removeEndEndModifier() {\n\t\tsetEndEndModifierDefined(false);\n\t\treturn (this);\n\t}", "void unsetEndPosition();", "@Override\n\tpublic void removeFromBeginning() {\n\t}", "public void remove()\n {\n if( current > 0 )\n {\n set(-- current);\n }\n }", "@Override\r\n\tpublic void removeRange(int first, int last) {\r\n\r\n try {\r\n super.removeRange(first, last);\r\n fireVOIremoved(null);\r\n } catch (ArrayIndexOutOfBoundsException badIndex) {\r\n throw badIndex;\r\n }\r\n }", "public Item removeEnd() {\n if (size == 0) throw new NoSuchElementException(); // if there's no elements in circle\n else if (size == 1) return removeBreaker(); // if it's the last element\n else { // if there are two or more nodes in the circle\n Node temp = head.before; // saves the current end\n temp.before.next = head;\n head.before = temp.before; // updates referances\n size--;\n return temp.item;\n }\n }", "@Override\r\n\tpublic void removeLast() {\n\t\tthrow new UnsupportedOperationException(\"Not implemented yet!\");\r\n\t}", "@Override\r\n\tpublic E removeLast() {\n\t\treturn null;\r\n\t}", "@Override\n public Item removeLast() {\n nextLast = moveBack(nextLast, 1);\n Item output = items[nextLast];\n items[nextLast] = null;\n size -= 1;\n return output;\n }", "boolean removeAssociation(AssociationEnd association);", "private void removeFromEnd(){\n ListNode tailItem = tail.prev;\n removeFromList(tailItem);\n \n //remove the entry from hashtable\n hashtable.remove(tailItem.key);\n --totalCacheItems;\n }", "@Override\n public void removeCurrent() {\n if (!isCurrent()) { throw new IllegalStateException(\"There is no current element\"); }\n\n if (prev == null) { // The current element is referenced by the head\n head = head.getNext();\n cursor = head;\n } else if (cursor.getNext() == null) { // The current element is the final element\n prev = null;\n cursor = null;\n tail = null;\n } else {\n cursor = cursor.getNext();\n }\n\n size--;\n }", "@Override\r\n\tpublic E removeLast() {\n\t\treturn pollLast();\r\n\t}", "public void removeLast( ) {\r\n\t\tremove(size);\r\n\t}", "@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n//\t\t\t\tif (i == begin || removed)\n//\t\t\t\t\tthrow new IllegalStateException();\n//\t\t\t\telements.set(i-1, null);\n//\t\t\t\tremoved = true;\n\t\t\t}", "public void removeAtCursor() {\n lines.remove(cursor);\n if(cursor !=0 && cursor==lines.size())\n cursor--;\n }", "@Override\n public void remove() {\n Entry<T> prev = ((Entry<T>) cursor).prev;\n super.remove();\n if(cursor!=tail){\n ((Entry<T>) cursor.next).prev = prev;\n }\n }", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public Item deleteAtEnd() {\n \tItem returnItem = tail.item; \t\n \ttail = tail.previous;\n \thead.previous = tail;\n \tsize--;\n \treturn returnItem;\n }", "public E removeLast(){\r\n return null;\r\n }", "T removeFromTail() {\n return this.prev.remove();\n }", "public synchronized ListNode removeFromEnd() {\n\t\tif (head == null)\n\t\t\treturn null;\n\t\tListNode p = head, q = null, next = head.getNext();\n\t\tif (next == null) {\n\t\t\thead = null;\n\t\t\t// reduce the length of the list\n\t\t\tlength -= 1;\n\t\t\treturn p;\n\t\t}\n\t\twhile ((next = p.getNext()) != null) {\n\t\t\tq = p;\n\t\t\tp = next;\n\t\t}\n\t\tq.setNext(null);\n\t\t// reduce the length of the list\n\t\tlength -= 1;\n\t\treturn p;\n\t}", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void DeleteEnd(){\n\t\tsuper.cut();\n\t}", "public void remove() {\r\n super.remove();\r\n }", "@Override\n public void remove() {\n if(elementToRemove != null){\n if(elementToRemove == lastInternalIteratorGivenElement){\n iterator.remove();\n }\n else{\n list.remove(elementToRemove);\n }\n }\n }", "public Element removeBeginEndModifier() {\n\t\tsetBeginEndModifierDefined(false);\n\t\treturn (this);\n\t}", "@Override\n\tpublic void remove() { }", "public E removeLast() {\n if(isEmpty()){\n return null;\n }else{\n return remove(trailer.getPrev());\n }\n }", "public Builder clearEndPosition() {\n bitField0_ = (bitField0_ & ~0x00000010);\n endPosition_ = 0;\n onChanged();\n return this;\n }", "public Item removeLast() {\r\n if (isEmpty()) {\r\n throw new NoSuchElementException();\r\n }\r\n Item result = items[--lastCursor];\r\n items[lastCursor] = null;\r\n return result;\r\n }", "public void remove(int startPos, int endPos) {\n int length = endPos - startPos;\n\n start.remove(startPos, length);\n end.remove(startPos, length);\n type.remove(startPos, length);\n }", "public Element removeEndStartModifier() {\n\t\tsetEndStartModifierDefined(false);\n\t\treturn (this);\n\t}", "public Type removeStart(){\n Type value = null;\n if( !this.isEmpty() ){\n value = this.start.value;\n if(this.start == this.end){\n this.start = this.end = null;\n }else{\n this.start = this.start.next;\n this.start.prev = null;\n }\n }\n this.size--;\n return value;\n }", "public void setEnd(int end) {\r\n this.end = end;\r\n }", "public void clearEnd() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "public Object remove();", "public boolean remove(int mediaID, long start, long end ) {\r\n\t\treturn remove(mediaID, new Range(start, end));\r\n\t}", "Object remove();", "public static void removeByEndLocation(long endLocation)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\tgetPersistence().removeByEndLocation(endLocation);\n\t}", "public Builder clearEnd() {\n \n end_ = false;\n onChanged();\n return this;\n }", "public void moveToEnd() {\r\n\t\tcurr = tail;\r\n\t}", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void remove() {\r\n return;\r\n }", "public void removeNodeAfter() { cursor = cursor.getNext().getNext(); }", "public E removeLast() {\n\t\t// Bitte fertig ausprogrammieren:\n\t\treturn null;\n\t}", "public void remove() {\r\n //\r\n }", "@Override\n public void remove() {\n }", "public void removelast()\r\n {\r\n Item item = post.item;\r\n post = post.prev;\r\n n--;\r\n }", "public void remove () {}", "@Override\n public void remove() {\n }", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "public void remove() {\n\t itr.remove();\n\t size--;\n\t nextCount--;\n\t }", "public void remove() {\n\t itr.remove();\n\t size--;\n\t nextCount--;\n\t }", "public void remove() {\n\n }", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Test(expected = IllegalStateException.class)\n public void testRemove_After_Set() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.set(2);\n\n instance.remove();\n\n }", "void deleteBack()\n\t{\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call deleteBack() on empty List\");\n\t\t}\n\t\tif (cursor == back) \n\t\t{\n\t\t\tcursor = null;\n\t\t\tindex = -1;\n\t\t}\n \n\t\tback = back.prev; //the back element becomes the previous element in the list\n\t\tlength--;\n\n\t}", "public void remove() {\n if (!canRemove)\n throw new IllegalStateException();\n\n set.remove(set.data[nextIndex - 1]);\n canRemove = false;\n }", "void removeEndingHadithNo(Object oldEndingHadithNo);", "public void setEnd(int end) {\n\t\tthis.end = end;\n\t}", "public E remove();", "public E remove();", "public void removeCurrent( )\n {\n // Implemented by student.\n }", "public void remove() {\n\t}", "public void remove() {\n\t}", "public TypeHere removeLast() {\n TypeHere x = getLast();\n items[size - 1] = null;\n size -= 1; \n return x;\n }", "public Country removeEnd() {\n\t\tCountry temp = null;\n\t\ttry {\n\t\t\tif (isEmpty()) {\n\t\t\t\tSystem.out.println(\"The queue is empty.\");\n\t\t\t} else if (front != end) {\n\t\t\t\tend = end.previous;\n\t\t\t\tend.next = null;\n\t\t\t\ttemp = end.data;\n\t\t\t} else {\n\t\t\t\tend = front = null;\n\t\t\t\ttemp = end.data;\n\t\t\t}\n\t\t} catch (NullPointerException e) {\n\t\t\t;\n\t\t}\n\t\treturn temp;\n\t}", "public U removeLast(){\r\n\t \tif (getArraySize()==0)\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//calls remove on last\r\n\t \treturn remove(numElems-1);\r\n\t }", "public final void remove () {\r\n }", "@Override\n\t\t\t\tpublic void remove() {\n\t\t\t\t\t\n\t\t\t\t}", "public void remove(){\n }" ]
[ "0.6659011", "0.6615798", "0.6579865", "0.65578884", "0.65253496", "0.64793813", "0.64714366", "0.6436308", "0.6383587", "0.63518", "0.6143652", "0.6136543", "0.61165017", "0.6113527", "0.6083918", "0.6067986", "0.6049493", "0.60319406", "0.59877783", "0.5974377", "0.5958854", "0.5924402", "0.5902416", "0.58952874", "0.58452713", "0.58328813", "0.58141786", "0.5809385", "0.57912385", "0.57837605", "0.57821584", "0.5765993", "0.5765993", "0.5765993", "0.5765993", "0.5765993", "0.57639885", "0.5763788", "0.57526785", "0.5720678", "0.56934553", "0.56934553", "0.56934553", "0.56934553", "0.56934553", "0.56934553", "0.56934553", "0.5693362", "0.5688533", "0.56844544", "0.5675059", "0.56728673", "0.5669402", "0.56692106", "0.5668337", "0.56638473", "0.5660636", "0.5655759", "0.56467", "0.5639509", "0.5637927", "0.56340283", "0.5630153", "0.56215936", "0.561864", "0.56179035", "0.56101125", "0.56101125", "0.56101125", "0.5591511", "0.5587402", "0.5586904", "0.55835795", "0.5582678", "0.5581445", "0.55791414", "0.5566446", "0.55605286", "0.55605286", "0.55577564", "0.55577564", "0.5556838", "0.555631", "0.555631", "0.5555198", "0.5552372", "0.5543329", "0.5534782", "0.5529358", "0.55228573", "0.55228573", "0.55181646", "0.5505114", "0.5505114", "0.54981834", "0.5496446", "0.5496048", "0.5492139", "0.54892534", "0.5488712" ]
0.7014873
0
Removes all the objects of type "specified end" from the collection of the current object.
void clearSpecifiedEnds();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unsetEnd();", "public Type removeEnd(){\n Type value = null;\n if( !this.isEmpty() ){\n value = this.end.value;\n if(this.start == this.end){\n this.start = this.end = null;\n }else{\n this.end = this.end.prev;\n this.end.next = null;\n }\n }\n this.size--;\n return value;\n }", "boolean removeSpecifiedEnd(AssociationEnd specifiedEnd);", "abstract public void removeLast();", "void unsetEndPosition();", "public void removeEnd() {\n\t\t\tif (length != 0)\n\t\t\t\t{ \n\t\t\t ElementDPtr save = tail.getPrev();\n\t\t\t tail.setPrev(save.getPrev());\n\t\t\t save.getPrev().setNext(tail);\n\t\t\t length -= 1;\n\t\t\t System.out.println(tail.getPrev().getValue() + \" removeE \" + length);\n\t\t\t\t}\n\t\t\t\n\t\t}", "public E removeLast();", "public T removeLast();", "public Item removeLast();", "public void removeAll() {\n start = null;\n _size = 0;\n }", "public void DeleteEnd(){\n\t\tsuper.cut();\n\t}", "@Override\n public void removeFromEnd(){\n Node<T> current = this.head;\n\n Node<T> previous = null;\n while(current.getNext() != null){\n previous = current;\n current = current.getNext();\n }\n\n //remove current and make previous as last node\n current.setData(null);\n current.setNext(null);\n\n previous.setNext(null);\n }", "@Override\r\n\tpublic void removeRange(int first, int last) {\r\n\r\n try {\r\n super.removeRange(first, last);\r\n fireVOIremoved(null);\r\n } catch (ArrayIndexOutOfBoundsException badIndex) {\r\n throw badIndex;\r\n }\r\n }", "public T removeLast()throws EmptyCollectionException;", "@Override\n\tpublic void removeFromBeginning() {\n\t}", "public void clearEnd() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "public T removeLast(){\n\tT ret = _end.getCargo();\n\t_end = _end.getNext();\n\t_end.setPrev(null);\n\t_size--;\n\treturn ret;\n }", "@Override\n\tpublic void clear() {\n\t\t\n\t\tsuperset.removeRange(lower, upper, fromInclusive, toInclusive);\n\t\t\n\t\t//Alternative direct implementation:\n\t\t//while (pollFirst() != null) {\n\t\t//}\n\t\t\n\t}", "public void remove(int startPos, int endPos) {\n int length = endPos - startPos;\n\n start.remove(startPos, length);\n end.remove(startPos, length);\n type.remove(startPos, length);\n }", "@Override\n public void deleteAtEnd() {\n Node<T> last = start;\n Node<T> lastButOne = null;\n while(last !=null){\n lastButOne = last;\n last = last.next;}\n lastButOne.next = null;\n }", "public Element removeEndEndModifier() {\n\t\tsetEndEndModifierDefined(false);\n\t\treturn (this);\n\t}", "public T removeLast() {\n if (_size == 0)\n throw new NoSuchElementException();//If nothing to remove, you cant remove\n T ret = _end.getCargo();\n _end = _end.getBefore();//set end to the thing before end\n _size--;\n return ret;\n }", "void toEnd();", "public Type removeStart(){\n Type value = null;\n if( !this.isEmpty() ){\n value = this.start.value;\n if(this.start == this.end){\n this.start = this.end = null;\n }else{\n this.start = this.start.next;\n this.start.prev = null;\n }\n }\n this.size--;\n return value;\n }", "public void removeArc(T start, T end) {\n\t\tSet<T> adjacents=arcs.get(start);\n\t\tadjacents.remove(end);\n\t}", "abstract public void removeAll();", "@Override\r\n\tpublic void removeLast() {\n\t\tthrow new UnsupportedOperationException(\"Not implemented yet!\");\r\n\t}", "public void endCollection() {\n if (recordHandler != null)\n recordHandler.endCollection();\n }", "@Override\r\n\tpublic E removeLast() {\n\t\treturn null;\r\n\t}", "public void removeSubArray(int start , int end ){\n\n if( !this.checkIndex(start) ) { this.raiseException(start); }\n if( !this.checkIndex(end) ) { this.raiseException(end); }\n\n int intervalLength = end - start;\n for(int i = start ; i < this.array.length - intervalLength - 1 ; i++){\n this.array[i] = this.array[i+1+intervalLength];\n }\n Object newArray[] = new Object[ this.array.length - intervalLength - 1 ];\n for(int i = 0 ; i < this.array.length - intervalLength - 1; i++){\n newArray[i] = this.array[i];\n }\n this.array = newArray;\n }", "Object remove();", "private void removeFromEnd(){\n ListNode tailItem = tail.prev;\n removeFromList(tailItem);\n \n //remove the entry from hashtable\n hashtable.remove(tailItem.key);\n --totalCacheItems;\n }", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public int removeHistory(String type, Date startDate, Date endDate);", "public void moveEnd(\n )\n {moveLast(); moveNext();}", "public Object remove();", "public E removeLast(){\r\n return null;\r\n }", "public void IntersectEnd() {\n\t\tif (getIntersectingObjects(End.class).get(0).isEnd()) {\n\t\t\tthis.end--;\n\t\t\taddPoints(-100);\n\t\t}\n\t\tpoints+=100;\n\t\tgetIntersectingObjects(End.class).get(0).setEnd();\n\t\tfrogReposition();\n\t\tthis.end++;\n\t}", "public Builder clearEnd() {\n \n end_ = false;\n onChanged();\n return this;\n }", "public void clear()\r\n {\r\n this.boundObjects.clear();\r\n }", "public void setEnd(int end) {\r\n this.end = end;\r\n }", "private void removeAllObjects()\n {\n removeObjects (getObjects(Actor.class));\n }", "public Collection<V> remove(Object obj) {\n Collection collection = (Collection) this.Pu.remove(obj);\n if (collection == null) {\n return null;\n }\n Collection<V> ry = AbstractMapBasedMultimap.this.ry();\n ry.addAll(collection);\n AbstractMapBasedMultimap.this.Ps = AbstractMapBasedMultimap.this.Ps - collection.size();\n collection.clear();\n return ry;\n }", "public Element removeEndStartModifier() {\n\t\tsetEndStartModifierDefined(false);\n\t\treturn (this);\n\t}", "public void clear() {\n\t\tthis.boundObjects.clear();\n\t}", "public void remove()\n {\n list.remove(cursor);\n cursor--;\n }", "public void removeAllPartOfSet() {\r\n\t\tBase.removeAll(this.model, this.getResource(), PARTOFSET);\r\n\t}", "public TypeHere removeLast() {\n TypeHere x = getLast();\n items[size - 1] = null;\n size -= 1; \n return x;\n }", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "private void removeEndQuery(){\n setMainQuery(getMainQuery().substring(0,getMainQuery().length()-1));\n setCountQuery(getCountQuery().substring(0,getCountQuery().length()-1));\n }", "void removeAll();", "void removeAll();", "protected Object remObject(int position){\n \n }", "@Override\n\tpublic void remove() { }", "@Override\n public void remove() {\n Entry<T> prev = ((Entry<T>) cursor).prev;\n super.remove();\n if(cursor!=tail){\n ((Entry<T>) cursor.next).prev = prev;\n }\n }", "public boolean remove(objectType obj);", "public void setEnd(int end)\n {\n this.end = end;\n this.endSpecified = true;\n }", "public void setEnd(int end) {\n\t\tthis.end = end;\n\t}", "public Builder clearEndPosition() {\n bitField0_ = (bitField0_ & ~0x00000010);\n endPosition_ = 0;\n onChanged();\n return this;\n }", "Object removeFirst();", "public void removeByObject()\r\n\t{\n\t}", "public Item removeEnd() {\n if (size == 0) throw new NoSuchElementException(); // if there's no elements in circle\n else if (size == 1) return removeBreaker(); // if it's the last element\n else { // if there are two or more nodes in the circle\n Node temp = head.before; // saves the current end\n temp.before.next = head;\n head.before = temp.before; // updates referances\n size--;\n return temp.item;\n }\n }", "public void removelast()\r\n {\r\n Item item = post.item;\r\n post = post.prev;\r\n n--;\r\n }", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic boolean removeLastOccurrence(Object o) {\n\t\treturn false;\r\n\t}", "protected T removeEnd() {\r\n\t\tif (!this.isEmpty()) {\r\n\t\t\tSNode<T> iterator = this.getHead();\r\n\t\t\twhile (iterator.getPrev().getPrev() != tail) {\r\n\t\t\t\titerator = iterator.getPrev();\r\n\t\t\t}\r\n\t\t\tSNode<T> endNode = iterator.getPrev();\r\n\t\t\titerator.setPrev(tail);\r\n\t\t\tsize--;\r\n\t\t\treturn endNode.getValue();\r\n\t\t}\r\n\t\t// The list is empty\r\n\t\treturn null;\r\n\t}", "@Override\n public void remove() {\n }", "@Override\n\t\t\t\tpublic void remove() {\n\t\t\t\t\t\n\t\t\t\t}", "boolean removeAssociation(AssociationEnd association);", "public void removeLast( ) {\r\n\t\tremove(size);\r\n\t}", "@Override\n public void clear() {\n size = 0;\n first = null;\n last = null;\n }", "public abstract void endObject();", "@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n//\t\t\t\tif (i == begin || removed)\n//\t\t\t\t\tthrow new IllegalStateException();\n//\t\t\t\telements.set(i-1, null);\n//\t\t\t\tremoved = true;\n\t\t\t}", "void deletFromEnd()\n {\n if (isEmpty())\n {\n System.out.println(\" Underflow\");\n return ;\n }\n\n // Deque has only one element \n if (front == end)\n {\n front = end = -1;\n } else if (end == 0) {\n end = size-1;\n } else {\n end = end-1;\n }\n }", "public void remove() {\r\n super.remove();\r\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "@Override\n public void remove() {\n }", "public abstract void remove(Class<?> entity, Object paramObject);" ]
[ "0.63055044", "0.6284035", "0.6192807", "0.59675896", "0.59408134", "0.58885616", "0.58822185", "0.5849597", "0.5792212", "0.57820666", "0.5745264", "0.56875956", "0.5663918", "0.56204504", "0.55896646", "0.55886227", "0.558225", "0.556123", "0.5479059", "0.54773104", "0.547364", "0.5460102", "0.5459963", "0.5452576", "0.5405787", "0.53811026", "0.53802216", "0.53690165", "0.5343787", "0.5334426", "0.53291893", "0.53263247", "0.53235346", "0.53235346", "0.53235346", "0.53235346", "0.53235346", "0.53235346", "0.53235346", "0.53235346", "0.53235346", "0.53235346", "0.53235346", "0.53235346", "0.5273635", "0.5269444", "0.5264141", "0.5260202", "0.5257458", "0.5248116", "0.5228531", "0.52153975", "0.52039105", "0.51978135", "0.51897544", "0.517788", "0.51708114", "0.5169455", "0.51683944", "0.5159794", "0.5159794", "0.5159794", "0.5159794", "0.5159794", "0.51382107", "0.5136588", "0.5136588", "0.5133328", "0.5133008", "0.5131565", "0.5130916", "0.5117483", "0.511631", "0.51128656", "0.5110944", "0.5105313", "0.5103769", "0.51025206", "0.5086025", "0.5086025", "0.5084159", "0.50816476", "0.5078694", "0.50777864", "0.5072268", "0.5069267", "0.5061737", "0.50609255", "0.5059567", "0.5059094", "0.5058148", "0.5057981", "0.5057981", "0.5057981", "0.5057981", "0.5057981", "0.5057981", "0.5057981", "0.5053256", "0.5052528" ]
0.58768606
7
Gets all the objects of type "specified end" previously added to the collection of the current object. Additions and removals of elements to and from the returned collection do not change the state of current object (i.e. the returned collection is a copy of the internal one of the current object). However, if an element contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the returned collections share references to the same objects).
Collection<AssociationEnd> getSpecifiedEnds();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<AssociationEnd> getAssociations();", "private List<E> snapshot() {\n\t\tList<E> list = Lists.newArrayListWithExpectedSize(size());\n\t\tfor (Multiset.Entry<E> entry : entrySet()) {\n\t\t\tE element = entry.getElement();\n\t\t\tfor (int i = entry.getCount(); i > 0; i--) {\n\t\t\t\tlist.add(element);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "public static List<FoundObject> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}", "void addToEnd(Object[] by);", "public Type removeEnd(){\n Type value = null;\n if( !this.isEmpty() ){\n value = this.end.value;\n if(this.start == this.end){\n this.start = this.end = null;\n }else{\n this.end = this.end.prev;\n this.end.next = null;\n }\n }\n this.size--;\n return value;\n }", "public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}", "@Override\n public Iterator<E> reverseIterator() {\n return collection.iterator();\n }", "public Collection<GObject> getObjects();", "private List<Multiset.Entry<E>> snapshot() {\n\t\t\tList<Multiset.Entry<E>> list = Lists\n\t\t\t\t\t.newArrayListWithExpectedSize(size());\n\t\t\tfor (Multiset.Entry<E> entry : this) {\n\t\t\t\tlist.add(entry);\n\t\t\t}\n\t\t\treturn list;\n\t\t}", "public native RecordList getRangeAsRecordList(int start, int end) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n var recordsJS = self.getRange(start, end);\r\n return (recordsJS == null || recordsJS === undefined) ? null :\r\n @com.smartgwt.client.data.RecordList::new(Lcom/google/gwt/core/client/JavaScriptObject;)(recordsJS);\r\n }-*/;", "public M csmiAddTimeEnd(Object end){this.put(\"csmiAddTimeEnd\", end);return this;}", "public Iterator iterator() {\n maintain();\n return new MyIterator(collection.iterator());\n }", "@SuppressWarnings(\"unchecked\")\n public Collection<T> getWithinQuad(long quad) {\n ArrayList<Object> result = new ArrayList<Object>();\n root.addDescendantsWithinQuad(this, quad, result);\n return (ArrayList<T>) result;\n }", "public M csolAddTimeEnd(Object end){this.put(\"csolAddTimeEnd\", end);return this;}", "Collect getColl();", "Collection<? extends Object> getEndingHadithNo();", "public MyVector rest() {\n\t\tassert size() > 0;\n\t\tMyVector result = new MyVector();\n\t\tfor (int i = 1; i < size(); ++i) {\n\t\t\tresult.push(get(i));\n\t\t}\n\t\treturn result;\n\t}", "public ArrayList<EplusObject> getObjects() {\n\t\treturn objects;\n\t}", "protected Collection getNewBucket()\n {\n return new ArrayList();\n }", "public M csseAddTimeEnd(Object end){this.put(\"csseAddTimeEnd\", end);return this;}", "public List<Object> toList() {\n int i = this.capacityHint;\n int i2 = this.size;\n ArrayList arrayList = new ArrayList(i2 + 1);\n Object[] head2 = head();\n int i3 = 0;\n while (true) {\n int i4 = 0;\n while (i3 < i2) {\n arrayList.add(head2[i4]);\n i3++;\n i4++;\n if (i4 == i) {\n head2 = head2[i];\n }\n }\n return arrayList;\n }\n }", "public ImmutableList<T> allExtant() {\n return ImmutableList.<T>builder().addAll(unchanged).addAll(changed).build();\n }", "public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}", "public ListUtilities goToEnd(){\n\t\tListUtilities temp = new ListUtilities();\n\t\tif(this.nextNum != null){\n\t\t\ttemp = this.nextNum.goToEnd();\n\t\t\treturn temp;\n\t\t}else{\n\t\t\t//System.out.println(\"Returned to... \" + this.num);\n\t\t\treturn this;\n\t\t}\n\t}", "public List<OnlineObject> getNewObjects() {\n\t\tsynchronized (this.onlineObjects) {\n\t\t\treturn new ArrayList<OnlineObject>(this.recentlyAddedObjects);\n\t\t}\n\t}", "public ODataChangeset addChangeset() {\n closeCurrentItem();\n\n // stream dash boundary\n streamDashBoundary();\n\n final ODataChangesetResponseItem expectedResItem = new ODataChangesetResponseItem();\n expectedResItems.add(expectedResItem);\n\n currentItem = new ODataChangeset(req, expectedResItem);\n\n return (ODataChangeset) currentItem;\n }", "public java.util.List<DataEntry> findAll(int start, int end);", "public abstract AbstractObjectIterator<LocalAbstractObject> getAllObjects();", "@Override\n public AbstractObjectIterator<LocalAbstractObject> provideObjects() {\n return getAllObjects();\n }", "CollectionRange createCollectionRange();", "public Collection getExtent(Class cls)\n{\n\tVector extent = new Vector();\n\t\n\tIterator i = objects.iterator();\n\t\n\twhile ( i.hasNext() )\n\t{\n\t\tObject o = i.next();\n\t\t\n\t\tif ( o.getClass().equals(cls) )\n\t\t\textent.add(o);\n\t}\n\t\n\treturn extent;\n}", "public T last() throws EmptyCollectionException;", "public void IntersectEnd() {\n\t\tif (getIntersectingObjects(End.class).get(0).isEnd()) {\n\t\t\tthis.end--;\n\t\t\taddPoints(-100);\n\t\t}\n\t\tpoints+=100;\n\t\tgetIntersectingObjects(End.class).get(0).setEnd();\n\t\tfrogReposition();\n\t\tthis.end++;\n\t}", "public Iterator iterator() {\n\t return new EntryIterator(set.iterator());\n\t}", "public <T> List<T> zrevrange(String key, long start, long end, Class<T> clazz) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n Set<byte[]> tempSet = jedis.zrevrange(key.getBytes(), start, end);\n if (tempSet != null && tempSet.size() > 0) {\n List<T> result = new ArrayList<T>();\n for (byte[] value : tempSet) {\n // result.add((T) HessianSerializer.deserialize(value));\n result.add(fromJsonByteArray(value, clazz));\n }\n return result;\n }\n return null;\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public T removeLast() {\n if (_size == 0)\n throw new NoSuchElementException();//If nothing to remove, you cant remove\n T ret = _end.getCargo();\n _end = _end.getBefore();//set end to the thing before end\n _size--;\n return ret;\n }", "Collection<? extends Object> getFullHadith();", "@Override\r\n\tpublic Vector<Log> get(Timestamp begin, Timestamp end) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tVector<Log> ret = new Vector<Log>();\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GetAll);\r\n\t\t\tps.setTimestamp(1, begin);\r\n\t\t\tps.setTimestamp(2, end);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tret.add(generate(rs));\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "public Gr[] fetchObservations (int start, int stop){\n\t\tArrayList<Gr> subAL = new ArrayList<Gr>();\n\t\tint[] pos = grGraph.getBasePositions();\n\t\tfloat[] val = grGraph.getValues();\n\t\tfor (int i=0; i< pos.length; i++){\n\t\t\tif (pos[i]>= start && pos[i]<= stop) subAL.add(new Gr(pos[i], val[i]));\n\t\t}\n\t\tGr[] slice = new Gr[subAL.size()];\n\t\tsubAL.toArray(slice);\n\t\treturn slice;\n\t}", "public List<I> get() {\n synchronized (refs) {\n List<I> res = new ArrayList<>();\n for (Iterator<WeakReference<I>> iterator = refs.iterator(); iterator.hasNext(); ) {\n WeakReference<I> ref = iterator.next();\n I instance = ref.get();\n if (instance == null) {\n iterator.remove();\n } else {\n res.add(instance);\n }\n }\n return res;\n }\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList<E> getEntities() {\n\t\treturn (ArrayList<E>) entities.clone();\n\t}", "public java.util.List<Todo> findAll(int start, int end);", "ArrayList<Unit> extend(){\n return list;\n }", "public Collection<T> getItems() {\r\n return Collections.unmodifiableCollection(items);\r\n }", "@Override\r\n public NumericObjectArrayList makeDeepCopy() {\r\n NumericObjectArrayList list = new NumericObjectArrayList();\r\n for (int i = 0; i < this.getCount(); i++) {\r\n try {\r\n list.insert(i, this.getValueAt(i));\r\n } catch (IndexRangeException ex) {\r\n //Shouldn't happen\r\n }\r\n }\r\n return list;\r\n }", "public ArrayList<ConsumptionInstance> generateConsumptionInstances(long start_time, long end_time) {\n GregorianCalendar c = (GregorianCalendar) this.start_date.clone();\n ArrayList<ConsumptionInstance> result = new ArrayList<>();\n Collections.sort(this.timings);\n\n while(c.getTimeInMillis() < end_time + Utility.MILLIS_IN_DAY) {\n for (TimeOfDay t : timings) {\n c.set(Calendar.HOUR_OF_DAY, Integer.valueOf(t.getHour()));\n c.set(Calendar.MINUTE, Integer.valueOf(t.getMinute()));\n long millis = c.getTimeInMillis();\n\n if (start_time <= millis && millis < end_time) {\n ConsumptionInstance ci = new ConsumptionInstance(this.id, (GregorianCalendar) c.clone(),\n this.drug);\n if (deleted.contains(millis)) {\n ci.setDeleted(true);\n }\n result.add(ci);\n }\n }\n c.add(Calendar.DAY_OF_MONTH, this.interval);\n }\n\n return result;\n }", "public Collection<T> mo29734a() {\n return new ArrayList();\n }", "public Iterator iterator()\n {\n // optimization\n if (OldOldCache.this.isEmpty())\n {\n return NullImplementation.getIterator();\n }\n\n // complete entry set iterator\n Iterator iter = instantiateIterator();\n\n // filter to get rid of expired objects\n Filter filter = new Filter()\n {\n public boolean evaluate(Object o)\n {\n Entry entry = (Entry) o;\n boolean fExpired = entry.isExpired();\n if (fExpired)\n {\n OldOldCache.this.removeExpired(entry, true);\n }\n return !fExpired;\n }\n };\n\n return new FilterEnumerator(iter, filter);\n }", "void toEnd();", "public Set<ObjRef> getAddedRefs() {\n return Sets.newHashSet(addedObjRefToLineageRefs.keySet());\n }", "public int end() { return _end; }", "public T removeLast()throws EmptyCollectionException;", "public List<Word> getWordsEndingAt(int end);", "public List getTheObjects() {\r\n if (theObjects == null) {\r\n setTheObjects(new Vector());\r\n }\r\n return theObjects;\r\n }", "public SeleniumQueryObject end() {\n\t\treturn this.previous;\n\t}", "public ImmutableSortedSet<C> tailSetImpl(C fromElement, boolean inclusive) {\n return subSet(Range.downTo(fromElement, BoundType.forBoolean(inclusive)));\n }", "public synchronized Iterator<E> iterator()\n {\n return iteratorUpAll();\n }", "LocalDate getCollectionEndDate();", "public boolean add (Object o) {return addLast(o);}", "public E removeLast();", "public ArrayList<String> endsWithE() {\n return list;\n }", "public IList<T> getNext() {\n return this.rest;\n }", "@Override\n public List<E> asList() {\n ArrayList<E> result = null;\n\n while (top.next != null) {\n top = top.next;\n result.add(top.data);\n }\n return result;\n }", "ObservableList<EndTime> getEndTimeList();", "public Vertex getEnd()\n\t{\n\t\treturn end.copy();\n\t}", "@Override\n\tpublic List<Category> findAll(int start, int end) {\n\t\treturn findAll(start, end, null);\n\t}", "public void moveEnd(\n )\n {moveLast(); moveNext();}", "public void addToEnd(T obj) {\r\n \t\t// Check obj is not null\r\n \t\tif(obj == null) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t// Check if items is full\r\n \t\tif(numItems == items.length) {\r\n \t\t\tdoubleArrayLength();\r\n \t\t}\r\n \t\titems[numItems++] = obj;\r\n \t}", "public Iterator<E> iterator() {\n\t\tfinal int begin = (int)(front.get() % elements.length()), end = (int)(rear.get() % elements.length());\n\t\treturn new Iterator<E>() {\n\t\t\tprivate int i = begin;\n\t\t\tprivate boolean removed = false;\n\t\t\t@Override\n\t\t\tpublic boolean hasNext() {\n\t\t\t\treturn i < end;\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic E next() {\n\t\t\t\tif (!hasNext())\n\t\t\t\t\tthrow new NoSuchElementException();\n\t\t\t\tremoved = false;\n\t\t\t\treturn elements.get(i++);\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void remove() {\n\t\t\t\t//TODO: this could work if we only remove items from the front.\n\t\t\t\tthrow new UnsupportedOperationException();\n//\t\t\t\tif (i == begin || removed)\n//\t\t\t\t\tthrow new IllegalStateException();\n//\t\t\t\telements.set(i-1, null);\n//\t\t\t\tremoved = true;\n\t\t\t}\n\t\t};\n\t}", "public Collection<T> getResults();", "MinmaxEntity getEnd();", "public Iterator<LineItem> getItems()\r\n {\r\n return new\r\n Iterator<LineItem>()\r\n {\r\n public boolean hasNext()\r\n {\r\n return current < items.size();\r\n }\r\n\r\n public LineItem next()\r\n {\r\n return items.get(current++);\r\n }\r\n\r\n public void remove()\r\n {\r\n throw new UnsupportedOperationException();\r\n }\r\n\r\n private int current = 0;\r\n };\r\n }", "abstract List<T> getReuslt();", "public List hardList() {\r\n List result = new ArrayList();\r\n\r\n for (int i=0; i < size(); i++) {\r\n Object tmp = get(i);\r\n\r\n if (tmp != null)\r\n result.add(tmp);\r\n }\r\n\r\n return result;\r\n }", "public ArrayList<Location> getRoute(Location start, Location end) throws LocationNotFound{\n ArrayList<Location> route = new ArrayList<>();\n Location currentLoc = end;\n route.add(end);\n while (!currentLoc.equals(start)) {\n Location parentLoc = currentLoc.getParentLoc();\n route.add(parentLoc);\n currentLoc = parentLoc;\n }\n Collections.reverse(route);\n return route;\n }", "@Override\r\n\tpublic void addLast(E e) {\n\t\t\r\n\t}", "public abstract Collection<IRelation> getEndingRelations(String elementUri);", "public T removeLast(){\n\tT ret = _end.getCargo();\n\t_end = _end.getNext();\n\t_end.setPrev(null);\n\t_size--;\n\treturn ret;\n }", "Collection<V> getAllEntries();", "public List<Object> getList() {\n List<Object> returnList = new ArrayList<Object>();\n ListNode<String, Object> n = front;\n while(n != null) {\n returnList.add(n.value);\n n = n.next;\n }\n Collections.reverse(returnList);\n return returnList;\n }", "public ArrayList<Question> filterByEnd(ArrayList<Question> input, LocalDate end) {\n\n /* The final filtered arrayList */\n ArrayList<Question> filtered = new ArrayList<>();\n\n /* Go through the entire input arraylist checking each question. */\n for (int i = 0 ; i < input.size(); i++) {\n\n /* If the question date is before the end date, then add it to the new ArrayList. */\n if (input.get(i).getDate().compareTo(end) <= 0) {\n filtered.add(input.get(i));\n }\n }\n\n return filtered;\n }", "public <T> List<T> zrange(String key, long start, long end, Class<T> clazz) {\n List<T> result = new ArrayList<T>();\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n Set<byte[]> tempSet = jedis.zrange(key.getBytes(), start, end);\n if (tempSet != null && tempSet.size() > 0) {\n for (byte[] value : tempSet) {\n // result.add((T) HessianSerializer.deserialize(value));\n result.add(fromJsonByteArray(value, clazz));\n }\n return result;\n }\n return null;\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "public Collection getRegisteredObjects() {\n return usedByObjects;\n }", "@Override\n public Iterator<Entity> iterator() {\n return entities.iterator();\n }", "public synchronized Iterator<E> iteratorUpAll()\n {\n if (isEmpty())\n return new CNullIterator<E>();\n\n return new NodeIteratorUp<E>(this, this.m_FirstNode, this.m_LastNode.m_Element);\n }", "public /*@ non_null @*/ JMLObjectBag<E> toBag() {\n JMLObjectBag<E> ret = new JMLObjectBag<E>();\n JMLIterator<E> elems = iterator();\n while (elems.hasNext()) {\n //@ assume elems.moreElements;\n E o = elems.next();\n E e = (o == null ? null : o);\n ret = ret.insert(e);\n }\n return ret;\n }", "int getEnd();", "public Set list() {\n Set result = new HashSet();\n for( Iterator it = this.rcIterator(); it.hasNext() ; ){\n ReplicaCatalog catalog = (ReplicaCatalog) it.next();\n result.addAll( catalog.list() );\n }\n return result;\n\n }", "private Iterable<Entry<K, V>> snapShot(int startIndex, K stop) {\n\t\tDoublyLinkedList<Entry<K, V>> buffer = new DoublyLinkedList<>();\n\t\tint j = startIndex;\n\t\twhile ( j < map.size() && (stop == null || stop.compareTo(map.get(j).getKey()) > 0 )) {\n\t\t\tbuffer.addLast(map.get(j++));\n\t\t}\n\t\treturn buffer;\n\t}", "public T withEndRecurrence(Temporal endRecurrence) { setEndRecurrence(endRecurrence); return (T) this; }", "@Override\r\n\tpublic Iterator<E> iterator()\r\n\t{\n\t\treturn ( iterator.hasNext() ? new EntityListIterator() : iterator.reset() );\r\n\t}", "public interface ReadOnlyEndTimes {\n\n /**\n * Returns an unmodifiable view of the endTimes list.\n * This list will not contain any duplicate endTimes.\n */\n ObservableList<EndTime> getEndTimeList();\n\n}", "@Override\n\tpublic Set<T> retrieveAllItems() {\n\t\treturn cache;\n\t}", "public T end() {\n return end;\n }", "public Item getLast();", "@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic List<Artwork> getArtworks(int start, int end);", "ImmutableList<SchemaOrgType> getRecordedAtList();", "public Iterator<E> iteratorRev();", "public ArrayList<Vertex> initEnd() {\r\n\t\tArrayList<Vertex> endPoints = new ArrayList<>();\r\n\t\tendPoints.add(new Vertex(11, 20));\r\n\t\tendPoints.add(new Vertex(8, 22));\r\n\t\tendPoints.add(new Vertex(8, 20));\r\n\t\tendPoints.add(new Vertex(15, 2));\r\n\t\tendPoints.add(new Vertex(19, 13));\r\n\t\tendPoints.add(new Vertex(15, 21));\r\n\t\tendPoints.add(new Vertex(12, 21));\r\n\t\tendPoints.add(new Vertex(11, 21));\r\n\t\tendPoints.add(new Vertex(20, 2));\r\n\t\tendPoints.add(new Vertex(17, 2));\r\n\t\tendPoints.add(new Vertex(16, 14));\r\n\t\tendPoints.add(new Vertex(15, 14));\r\n\t\treturn endPoints;\r\n\t}", "public Set<Ticket> getTickets() { return Set.copyOf(tickets); }" ]
[ "0.5693901", "0.5367192", "0.5350089", "0.5270967", "0.5216992", "0.51606256", "0.51400125", "0.5105492", "0.50495195", "0.5030331", "0.50171524", "0.49895796", "0.49189207", "0.49188918", "0.49108118", "0.4906739", "0.49016756", "0.4896182", "0.48386008", "0.48273236", "0.48196444", "0.47631907", "0.4754991", "0.47399074", "0.47334892", "0.4721523", "0.4717379", "0.47067985", "0.4697116", "0.4691664", "0.4685926", "0.46851847", "0.4684035", "0.46817908", "0.4665307", "0.4662395", "0.46609217", "0.4658863", "0.46583655", "0.4653979", "0.46534538", "0.46526864", "0.4647563", "0.4643724", "0.46422672", "0.46414754", "0.46343055", "0.46317783", "0.46226403", "0.46224266", "0.46206948", "0.46206343", "0.46178252", "0.4617654", "0.46137437", "0.4603529", "0.4601712", "0.4574699", "0.45690763", "0.45645997", "0.45634574", "0.4561545", "0.4561331", "0.45612162", "0.4559166", "0.45586523", "0.45543543", "0.4550651", "0.45502684", "0.45473737", "0.45472452", "0.45452875", "0.4540308", "0.4537821", "0.4536606", "0.4530428", "0.452905", "0.45214668", "0.45110467", "0.4509382", "0.4508596", "0.45082387", "0.45048642", "0.44970694", "0.44890472", "0.4486818", "0.44806388", "0.44780794", "0.44718513", "0.44679275", "0.44604", "0.44595578", "0.4456754", "0.44531712", "0.44520202", "0.44465888", "0.44445565", "0.44390503", "0.44366634", "0.44320324" ]
0.49790934
12
Checks if a specified end is contained in the collection of the current object.
boolean containsSpecifiedEnd(AssociationEnd specifiedEnd);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean containsAssociation(AssociationEnd association);", "boolean hasIsPartOf();", "@NoProxy\n @NoWrap\n public boolean inDateTimeRange(final String start, final String end) {\n if ((getEntityType() == IcalDefs.entityTypeTodo) &&\n getNoStart()) {\n // XXX Wrong? - true if start - end covers today?\n return true;\n }\n\n String evStart = getDtstart().getDate();\n String evEnd = getDtend().getDate();\n\n int evstSt;\n\n if (end == null) {\n evstSt = -1; // < infinity\n } else {\n evstSt = evStart.compareTo(end);\n }\n\n if (evstSt >= 0) {\n return false;\n }\n\n int evendSt;\n\n if (start == null) {\n evendSt = 1; // > infinity\n } else {\n evendSt = evEnd.compareTo(start);\n }\n\n return (evendSt > 0) ||\n (evStart.equals(evEnd) && (evendSt >= 0));\n }", "boolean isEndInclusive();", "boolean hasEndPosition();", "boolean hasEndPosition();", "@Override\n public boolean hasNext() {\n return this.index < this.endIndex;\n }", "public boolean containsEdge(String start, String end) {\n\t\tif (!isLocked(end))\n\t\t\treturn false;\n\t\tif (containsVertex(start) && containsVertex(end) && adj_list.get(start) != null) {\n\t\t\tList<String> list = adj_list.get(start);\n\t\t\tif (list.contains(end))\n\t\t\t\treturn true;\n\t\t} else {\n\n\t\t}\n\t\treturn false;\n\t}", "public boolean hasNextInSet() {\n return (hasNext() &&\n (indexOfCurrentElement + 1 < firstIndexOfCurrentSet + quantity) &&\n (indexOfCurrentElement + 1 >= firstIndexOfCurrentSet)); \n }", "boolean isSetEnd();", "public boolean reachable(Vertex start, Vertex end){\n\t\tSet<Vertex> reach = this.post(start); \n\t\treturn reach.contains(end);\n\t}", "public boolean contains(N startNode, N endNode, E label)\r\n/* 62: */ {\r\n/* 63:121 */ assert (checkRep());\r\n/* 64:122 */ if ((this.map.containsKey(startNode)) && (this.map.containsKey(endNode))) {\r\n/* 65:123 */ return ((Map)this.map.get(startNode)).get(endNode).equals(label);\r\n/* 66: */ }\r\n/* 67:125 */ return false;\r\n/* 68: */ }", "public boolean contains(T obj) {\r\n return lastIndexOf(obj) != -1;\r\n }", "public boolean has(int mediaID, long start, long end ) {\r\n\t\treturn has(mediaID, new Range(start, end));\r\n\t}", "private boolean isEndFound(String line) {\n\t\tif (end != null) {\n\t\t\tif (nothingAfterEnd) {\n\t\t\t\treturn line.endsWith(end);\n\t\t\t} else {\n\t\t\t\treturn line.contains(end);\n\t\t\t}\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "Collection<? extends WrappedIndividual> getIsPartOf();", "@Test\n public void testContains_Contain_Overflow_Boundary() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n boolean expResult = true;\n boolean result = instance.contains(6);\n assertEquals(expResult, result);\n }", "@Override\n public boolean contains(final Object element) {\n return this.lastIndexOf(element) != -1;\n }", "public boolean containsAtMostOneItem() {\n boolean contains;\n if (start==null | start.next==null) {\n contains = true;\n }\n return contains;\n }", "private boolean isValid(AStarNode start, AStarNode end) {\n boolean check = true;\n for (Obstacle obs : getObstacles()) {\n if (isOnTheWay(start, end, obs))\n check = false;\n }\n return check;\n }", "public boolean isInList();", "public boolean contains(long time) {\n\t\treturn ((start <= time) && (time <= end));\n\t}", "boolean checkIfValidToCreate(int start, int end) {\n return myMarkerTree.processOverlappingWith(start, end, region->{\n int rStart = region.getStartOffset();\n int rEnd = region.getEndOffset();\n if (rStart < start) {\n if (region.isValid() && start < rEnd && rEnd < end) {\n return false;\n }\n }\n else if (rStart == start) {\n if (rEnd == end) {\n return false;\n }\n }\n else {\n if (rStart > end) {\n return true;\n }\n if (region.isValid() && rStart < end && end < rEnd) {\n return false;\n }\n }\n return true;\n });\n }", "private boolean isValid() {\n // If start is greater or equal to end then it's invalid\n return !(start.compareTo(end) >= 0);\n }", "boolean endTimeAfter(String start, String end) {\n SimpleDateFormat HHmm = new SimpleDateFormat(\"HH:mm\", Locale.UK);\n Calendar c = Calendar.getInstance();\n try {\n Date startTime = HHmm.parse(start);\n Date endTime = HHmm.parse(end);\n c.setTime(startTime);\n return startTime.compareTo(endTime) <= 0;\n } catch (ParseException e) {\n System.out.println(\"Error occurred parsing Time\");\n }\n return true;\n }", "private static boolean hasVisibleRegion(int begin,int end,int first,int last) {\n return (end > first && begin < last);\n }", "protected boolean hasConnection(int start, int end) {\n\t\tfor (Gene g : genes.values()) {\n\t\t\tif (g.start == start && g.end == end)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean hasNext() { \n\t\t\t\n\t\t\tif ( collection.size() <= 0 ) \n\t\t\t{\t\n\t\t\t\treturn false; \n\t\t\t}\n\t\t\tif ( currIndex == (collection.size() - 1)) \n\t\t\t{\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "public boolean contains(Index position) { // TODO rename: adjoinsOrContains\n return position != null && position.getX() + 1 >= start.getX() && position.getY() + 1 >= start.getY() && position.getX() <= end.getX() && position.getY() <= end.getY();\n }", "public static Predicate<BiomeSelectionContext> foundInTheEnd() {\n\t\treturn context -> context.canGenerateIn(DimensionOptions.END);\n\t}", "public boolean book(int start, int end) {\n for (Integer[] slot : slots)\n {\n if((start < slot[0] && end < slot[0]) || start > slot[1] && end > slot[1]){\n continue;\n }\n else{\n return false;\n }\n }\n slots.add(new Integer[]{start,end});\n return true;\n }", "protected boolean isValid() {\n return COLLECTION.getList().contains(this);\n }", "public boolean allInRange(int start, int end) {\n \t\tfor (int i=0; i<data.length; i++) {\n \t\t\tint a=data[i];\n \t\t\tif ((a<start)||(a>=end)) return false;\n \t\t}\n \t\treturn true;\n \t}", "boolean isSetEndPosition();", "public boolean hasEdge(T begin, T end);", "@Test\n public void testContains_Contain_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(3, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n boolean expResult = true;\n boolean result = instance.contains(4);\n assertEquals(expResult, result);\n }", "private boolean endSquareContainsPiece(Chessboard chessboard, Piece piece, int end) {\n\t\tif (!(0 <= end && end < 64)) {\n\t\t\treturn false;\n\t\t}\n\t\tPiece endContents = chessboard.getSquareContents(end);\n\t\tif (endContents == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (endContents.getSign() != piece.getSign()) {\n\t\t\treturn false;\n\t\t}\n\t\treturn white ? endContents.amIWhite() : !endContents.amIWhite();\n\t}", "@Override\n\tpublic boolean contains(E e) {\n\t\treturn false;\n\t}", "public boolean contains(T target) throws EmptyCollectionException{\n if(isEmpty()){\n throw new EmptyCollectionException(\"list\");\n }\n LinearNode<T> trav = front;\n while (trav != null){\n if (trav.getElement().equals(target)){\n return true;\n }\n trav = trav.getNext();\n }\n return false;\n }", "public boolean containsDomainRange(long from, long to) { return true; }", "public boolean hasEdge(T beg, T end);", "@Test\n public void testHasNext_End() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2));\n\n ListIterator<Integer> instance = baseList.listIterator();\n boolean expResult = false;\n instance.next();\n instance.next();\n\n boolean result = instance.hasNext();\n\n assertEquals(expResult, result);\n }", "public boolean isFull() {\n\t\treturn end != null;\n\t}", "@Override\n\t\tpublic boolean hasNext() {\t\t\t\n\t\t\treturn current != null;\n\t\t}", "public boolean contains(T e) {\n DLLNode<T> current = _front;\n for (int i = 0; i < _size; i++) {//Go through the queue until you do or dont find e\n if (current.getCargo().equals(e))\n return true;\n current = current.getNext();\n }\n return false;\n }", "public boolean reachedEnd() {\n return reachedEnd;\n }", "public boolean isValid(){\n\t\tif (bigstart != null && bigend != null){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean hasNextSet() {\n return (firstIndexOfCurrentSet + increment <= lastIndex);\n }", "boolean removeSpecifiedEnd(AssociationEnd specifiedEnd);", "boolean endDateAfter(String start, String end) {\n SimpleDateFormat ddMMyyyy = new SimpleDateFormat(\"dd/MM/yyyy\", Locale.UK);\n Calendar c = Calendar.getInstance();\n try {\n Date startDate = ddMMyyyy.parse(start);\n Date endDate = ddMMyyyy.parse(end);\n c.setTime(startDate);\n return startDate.compareTo(endDate) <= 0;\n } catch (ParseException e) {\n System.out.println(\"Error occurred parsing Date\");\n }\n return true;\n }", "public abstract boolean ContainsContactObjects();", "@Override\n public boolean contains(E obj) {\n Node<E> currentNode = head;\n if (isEmpty())\n return false;\n else if (obj.compareTo(peekFirst()) == 0)\n return true;\n else if (obj.compareTo(peekLast()) == 0)\n return true;\n else {\n while (true) {\n if (obj.compareTo(currentNode.data) == 0) {\n return true;\n } else if (currentNode.next == null)\n return false;\n else\n currentNode = currentNode.next;\n }\n }\n }", "public isWithin() {\n\t\tsuper();\n\t}", "public abstract boolean contains(E e);", "public boolean getEnd() {\n return end_;\n }", "public boolean contains(T obj) {\r\n\t\tlogger.trace(\"Enter contains\");\r\n\t\tlogger.trace(\"Exit contains\");\r\n\t\treturn data.contains(obj);\r\n\t}", "private boolean detectOverlapping(Exemplar ex){\n Exemplar cur = m_Exemplars;\n while(cur != null){\n if(ex.overlaps(cur)){\n\treturn true;\n }\n cur = cur.next;\n }\n return false;\n }", "private boolean isNearToEndPosition() {\n switch (direction) {\n case UP:\n return posY <= endPosition;\n case DOWN:\n return posY >= endPosition;\n case LEFT:\n return posX <= endPosition;\n case RIGHT:\n return posX >= endPosition;\n }\n throw new RuntimeException(\"Unknown position\");\n }", "@Override\n\tpublic boolean contains(Object entity) {\n\t\treturn false;\n\t}", "public boolean getEnd() {\n return end_;\n }", "@Override\r\n\t\tpublic boolean hasNext() {\n\t\t\treturn current!=null;\r\n\t\t}", "private boolean reachedEnd() {\n return current >= source.length();\n }", "public boolean contains(E obj){\n\t\tif (obj == null)\n\t\t\tthrow new IllegalArgumentException(\"The given item is null.\");\n\t\tfor(E val : this) {\n\t\t\tif(val.equals(obj))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean contains (T data){\r\n\t\tif (data == null)\r\n\t\t\tthrow new IllegalArgumentException(\"data cannot be null\"); \r\n\t\t//can't be in empty node\r\n\t\tif (isEmpty())\r\n\t\t\treturn false;\r\n\t\tArrayNode<T> temp = beginMarker.next;\r\n\t\t//loop through nodes\r\n\t\twhile (temp != endMarker){\r\n\t\t\t//past this node\r\n\t\t\tif (temp.getLast().compareTo(data) < 0){\r\n\t\t\t\ttemp = temp.next;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t//loop through possible node\r\n\t\t\t\tfor (int i=0; i< temp.getArraySize();i++){\r\n\t\t\t\t\t//found\r\n\t\t\t\t\tif (temp.get(i).equals(data))\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\t//iterate\r\n\t\t\t\ttemp = temp.next;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private static boolean canEasyAdd( List<ProductPrice> currentList, ProductPrice iter) {\n\t\treturn currentList.get(0).start.after(iter.end) || currentList.get(currentList.size()-1).end.before(iter.start) ; \r\n\t}", "public boolean contains(E e) {\n for (int i = startPos; i < queue.length; i++) {\n E value = (E) queue[i];\n if (value.equals(e)) return true;\n }\n\n return false;\n }", "public boolean containsRange(Range range) {\n/* 317 */ if (range == null) {\n/* 318 */ return false;\n/* */ }\n/* 320 */ return (containsLong(range.getMinimumLong()) && containsLong(range.getMaximumLong()));\n/* */ }", "@Test\n public void testContainsAll_Contains_Overflow() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n instance.add(5);\n instance.add(4);\n instance.add(7);\n\n Collection c = Arrays.asList(3, 4, 5, 7);\n\n boolean expResult = true;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "@Test\r\n\tpublic void testContains() {\r\n\t\tAssert.assertTrue(list.contains(new Munitions(2, 3, \"iron\")));\r\n\t\tAssert.assertFalse(list.contains(new Munitions(2, 5, \"ferrum\")));\r\n\t}", "@Override\r\n\t public boolean equals(Object obj) {\n\t Interval inteval = (Interval)obj;\r\n\t return this.getStart().equals(inteval.getStart()) && this.getEnd().equals(inteval.getEnd()) ;\r\n\t }", "@Override\r\n public boolean contains(E target) {\r\n if(find(target) != null) return true;\r\n return false;\r\n }", "public void IntersectEnd() {\n\t\tif (getIntersectingObjects(End.class).get(0).isEnd()) {\n\t\t\tthis.end--;\n\t\t\taddPoints(-100);\n\t\t}\n\t\tpoints+=100;\n\t\tgetIntersectingObjects(End.class).get(0).setEnd();\n\t\tfrogReposition();\n\t\tthis.end++;\n\t}", "public boolean collision( Point cur, ArrayList<Point> bounds ) {\n\t\t\n\t\tfor ( int i = 0; i < bounds.size(); i++ )\n\t\t\tif ( cur.equals( bounds.get(i) ) )\n\t\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}", "public boolean getEndInclusive() {\n return endInclusive;\n }", "public boolean hasNext()\n/* */ {\n/* 73 */ return this.m_offset < this.m_limit;\n/* */ }", "public boolean hasNext(){\r\n\t\t\tif (expectedModCount != modCount){\r\n\t\t\t\tthrow new ConcurrentModificationException();\r\n\t\t\t}\r\n\t\t\t//Check this condition, may need to check for empty future nodes\r\n\t\t\tif ((current == null)){//&&(currentNode.getLast()==current)){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t\t//current is not endmarker, \r\n\t\t\t\r\n\t\t\t/*if ((currentNode.getLast()!=current))\r\n\t\t\t\treturn true;\r\n\t\t\tif (currentNode.next.getArraySize()!= 0)\r\n\t\t\t\treturn true;\r\n\t\t\treturn false;*/\r\n\t\t}", "@Override\n\tpublic boolean hasNext() {\n\t return current != null;\n\t}", "public boolean contains(Account that) {\n return this.first.equals(that) || this.rest.contains(that);\n }", "@Override\n\tpublic boolean equals(Object o) {\n\t\treturn o instanceof IntervalEndEventNode\n\t\t\t\t&& ((IntervalEndEventNode) o).id == this.id\n\t\t\t\t&& ((IntervalEndEventNode) o).occurrencemark == this.occurrencemark;\n\t}", "public boolean pathExists(int start, int end) {\n boolean[] visited = new boolean[nodeCount];\n // find a path with a greedy search\n PairHeap q = new PairHeap();\n visited[start] = true;\n int next = start;\n try {\n while (next != end) {\n // check every neighbour of next - add if necessary\n for (int j = 0; j < nodeCount; j++) {\n if (roads[next][j] > 0 && !visited[j]) { // connected\n visited[j] = true;\n int x = xs[j] - xs[end];\n int y = ys[j] - ys[end];\n int d = (int) Math.sqrt(x * x + y * y);\n q.insert(j, d);\n }\n }\n next = q.deleteMin();\n }\n return true;\n } catch (NullPointerException e) {\n return false;\n }\n }", "public static boolean matches(EndElement endElement, String tag) {\n String elementTag = getElementName(endElement);\n return tag.equals(elementTag);\n }", "@Override\n public boolean hasNext() {\n setCurrent();\n return current != null;\n }", "public boolean contains(int want) {\n if (want < first())\n return false;\n if (want > last())\n return false;\n if (stride == 1)\n return true;\n return (want - first) % stride == 0;\n }", "public boolean checkDoubleBooking(LocalDateTime start, LocalDateTime end, ArrayList<String> eventIds){\n for (String id: eventIds){\n if (checkOverlappingTimes(getEvent(id).getStartTime(), getEvent(id).getEndTime(),\n start, end)){\n return false;\n }}\n return true;\n }", "public boolean contains(E obj){\r\n //simple binary search to see if object is there\r\n //best case: O(1), ave case: O(logn), worst case: O(n)\r\n int lo = 0;\r\n int hi = currentSize - 1;\r\n\r\n while(lo <= hi) {\r\n int mid = (lo + hi) / 2;\r\n if(((Comparable<E>)queue[mid]).compareTo(obj) < 0)\r\n hi = mid - 1;\r\n else if(((Comparable<E>)queue[mid]).compareTo(obj) > 0)\r\n lo = mid + 1;\r\n else\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean isSubset(/*@ non_null @*/ JMLObjectSet<E> s2) {\n if (size > s2.int_size()) {\n return false;\n } else {\n for (JMLListObjectNode<E> walker = the_list;\n walker != null;\n walker = walker.next) {\n if (!s2.has(walker.val)) {\n return false;\n }\n } \n //@ assert (\\forall Object e; ; this.has(e) ==> s2.has(e));\n return true;\n } \n }", "@Override\n public boolean hasNext() {\n return currentPosition < list.size();\n }", "protected boolean isFullyContained(Widget widget) {\r\n // Calling getPreferredBounds forces the bounds to be calculated if it\r\n // has not already been calculated. For example when the Widget was\r\n // just created and therefore has not had a chance to be displayed.\r\n Rectangle area = widget.getClientArea();\r\n\r\n boolean retVal = false;\r\n if (area != null) {\r\n Rectangle sceneArea = widget.convertLocalToScene(area);\r\n\r\n Rectangle localArea = scene.convertSceneToLocal(sceneArea);\r\n Rectangle myArea = scene.getClientArea();\r\n retVal = myArea.contains(localArea);\r\n }\r\n\r\n return retVal;\r\n }", "public boolean hasNext() { return (current != null && current.item != null); }", "void addSpecifiedEnd(AssociationEnd specifiedEnd);", "public boolean contains(E obj)\n {\n Node m = head;\n while( m.getNext() != null)\n {\n m = m.getNext();\n if(m.getValue().equals(obj))\n {\n return true; \n }\n }\n return false;\n }", "@Override\n public boolean hasNext() {\n return null != current;\n }", "public boolean inside(final Point p)\n\t\t{\n\t\t\tif(obj.contains(p))\n\t\t\t\treturn true;\n\t\t\treturn false;\n\t\t}", "private boolean checkInBounds(int startX, int startY, int finalX, int finalY) {\r\n\t\treturn startX < 0 || startX >= this.SIZE || startY < 0 || startY >= this.SIZE\r\n\t\t\t\t|| finalX < 0 || finalX >= this.SIZE || finalY < 0 || finalY >= this.SIZE;\r\n\t}", "public boolean isEmpty( IPlayer iPlayer, Coordinates startCoord, Coordinates endCoord) {\n\t\tboolean empty = true;\r\n\t\t\r\n\t\t//We first chose the smallest coordinates to increment\r\n\t\tint nb1 = startCoord.getNumber();\r\n\t\tchar letter1 = startCoord.getLetter();\r\n\t\tint nb2 = endCoord.getNumber();\r\n\t\tchar letter2 = endCoord.getLetter();\r\n\t\t\r\n\t\tfor (int i = nb1; i<= nb2; i++)\r\n\t\t{\r\n\t\t\tfor (char j = letter1; j <= letter2; j++){\r\n\t\t\t\t\r\n\t\t\t\tif ( iPlayer.occupyCoordinates(new Coordinates(j,i))) {\r\n\t\t\t\t\tempty = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn empty;\t\r\n\t}", "@Override\n\t\tpublic boolean contains(Object o) {\n\t\t\treturn false;\n\t\t}", "boolean contains();", "boolean hasEndDate();", "@Override\r\n\tpublic boolean contains(Object o) {\n\t\treturn set.contains(o);\r\n\t}", "public boolean checkValidSelection(Point start, Point end){\n \t\tboolean flag = false;\n \t\tif (start.x == end.x) {\n \t\t\tflag = true;\n \t\t}\n \t\telse if (start.y == end.y) {\n \t\t\tflag = true;\n \t\t}\n \t\telse if ((start.x - start.y) == (end.x - end.y)) {\n \t\t\tflag = true;\n \t\t}\n \t\telse if ((start.x + start.y) == (end.x + end.y)) {\n \t\t\tflag = true;\n \t\t}\n \t\treturn flag;\n \t}" ]
[ "0.69622964", "0.6243561", "0.61794543", "0.61483747", "0.61112946", "0.61112946", "0.59719765", "0.5905631", "0.5900351", "0.58663964", "0.5853157", "0.5850234", "0.5825913", "0.5814727", "0.5790878", "0.5789031", "0.5786252", "0.57859844", "0.57748824", "0.5763071", "0.5760297", "0.5757092", "0.5745586", "0.57445353", "0.5737473", "0.5726447", "0.56914186", "0.56873876", "0.5669699", "0.5666734", "0.56477594", "0.56434196", "0.5640164", "0.56383264", "0.562823", "0.5621706", "0.5618846", "0.5613581", "0.55973595", "0.5575085", "0.5568657", "0.55608743", "0.554811", "0.5545465", "0.5545114", "0.5534431", "0.55272347", "0.5524655", "0.5519658", "0.55109006", "0.5507893", "0.5506881", "0.5489718", "0.54869944", "0.5482261", "0.5475556", "0.5464132", "0.5453946", "0.5453865", "0.5435092", "0.54299533", "0.5429204", "0.54289615", "0.5426949", "0.54254234", "0.5422952", "0.5418405", "0.5412841", "0.54018134", "0.53968906", "0.53951347", "0.53936166", "0.538295", "0.538283", "0.5377637", "0.53768146", "0.53763163", "0.5375047", "0.5374516", "0.53707963", "0.53671294", "0.536188", "0.535967", "0.53549194", "0.5339667", "0.5335706", "0.53298056", "0.5328755", "0.53266436", "0.53240854", "0.5318444", "0.5312959", "0.5312542", "0.53106123", "0.5310165", "0.53066003", "0.5304609", "0.5304044", "0.53029734", "0.53027534" ]
0.76227653
0
Returns the number of objects of type "specified end" previously added to the collection of the current object.
int countSpecifiedEnds();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int size() {\n\t\treturn end;\n\t}", "public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}", "public long size() {\n\treturn end - start + 1;\n }", "public int getCount() {\n return objects.size();\n }", "public int size(){\n\t\tListUtilities start = this.returnToStart();\n\t\tint count = 1;\n\t\twhile(start.nextNum != null){\n\t\t\tcount++;\n\t\t\tstart = start.nextNum;\n\t\t}\n\t\treturn count;\n\t}", "public int size() {\n maintain();\n return collection.size();\n }", "public int getCount() {\n return typeOffsetList.size();\n }", "int getItemsCount();", "int getItemsCount();", "public int size(){\r\n\t\treturn numAdded;\r\n\t}", "public int size() {\r\n return lastCursor - firstCursor - 1;\r\n }", "public int size() {return collection.size();}", "@Override\r\n\tpublic int size() {\n\t\treturn count;\r\n\t}", "public int getNumObjects(){\n return numObjects;\n }", "@Override\n public int size() {\n return count;\n }", "@Override\n public int size() {\n return count;\n }", "public int size ()\n {\n return lastIndex + 1;\n }", "public int getLength() {\n return collection.size();\n }", "public int size() {\n return collection.size();\n }", "public int size() { return count; }", "public int size() {\n\t\treturn collection.size();\n\t}", "@Override\r\n\tpublic int size() {\r\n\t\treturn count;\r\n\t}", "public int getCount(){\n\t\treturn mDataObjects.size();\n\t}", "@Override\n\tpublic int size() {\n\t\treturn util.iterator.IteratorUtilities.size(iterator());\n\t}", "int getEntryCount();", "public int getSize() {\n\t\t\treturn objects.size();\n\t\t}", "public int size()\r\n {\r\n return nItems;\r\n }", "public int size() {\n return this.collection.size();\n }", "@Override\r\n\tpublic int getCollectionTotalCount() {\n\t\treturn data != null ? data.recordCount : 0;\r\n\t}", "public int size()\r\n {\r\n return count;\r\n }", "public int size()\n {\n return count;\n }", "@Override\r\n\tpublic int size() {\r\n\t\treturn numItems;\r\n\t}", "public int size() {\n return nItems;\n }", "public final int size()\n {\n return m_count;\n }", "public int size() {\n return count;\n }", "public int getSize() {\n\t\treturn collection.size();\n\t\t\n\t}", "public int size(){\n return count;\n }", "int getInCount();", "public int size()\r\n\t{\r\n\t\treturn count;\r\n\t}", "Collection<? extends Object> getEndingHadithNo();", "public int size(){\n return numItems;\n }", "public int size() {\n\t\treturn count;\n\t}", "public int size() {\n\t\treturn count;\n\t}", "public int size() {\n\t\treturn count;\n\t}", "public int size() {\n return numItems;\n }", "public int getEnd() {\r\n\t\treturn this.offset + this.numResults;\r\n\t}", "@Override\n public int size() {\n int size = 0;\n if (this.cursor == 1) {\n size = 1;\n } else {\n size = this.cursor - 1;\n }\n return size;\n }", "public int size() \n { \n return count; \n }", "@Override\n\tpublic int size() {\n\n\t\treturn this.numOfItems;\n\t}", "public int getEnd() {\n return this.end;\n }", "public int getEnd()\n {\n return end;\n }", "protected long getObjectCount() {\r\n return objectCount;\r\n }", "public int getEnd() {\r\n return end;\r\n }", "public int getEnd() {\r\n\t\treturn end;\r\n\t}", "public int getEnd() {\n\t\treturn end;\n\t}", "List<Object> getCountExtent();", "public int getEnd() {\n return end;\n }", "@Override\n\tpublic int size() {\n\t\treturn (top + 1);\n\t}", "public int size() {\n \treturn numItems;\n }", "public static int size() \r\n\t{\r\n\t\treturn m_count;\r\n }", "@Override\n int size();", "@Override\n\tpublic int size() {\n\t\treturn top + 1;\n\t}", "public int size()\r\n\t{\r\n\t\treturn numItems;\r\n\r\n\t}", "@Override\n public int size() {\n int totalSize = 0;\n // iterating over collectionList\n for (Collection<E> coll : collectionList)\n totalSize += coll.size();\n return totalSize;\n }", "public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n\t}", "@Override\n public int size(){\n return sizeHelper(this.first);\n }", "public int getCount()\r\n {\r\n return counts.peekFirst();\r\n }", "public int size() {\n\t\tint result = 0;\n\t\tfor (E val: this)\n\t\t\tresult++;\n\t\treturn result;\n\t}", "@Override\n\tpublic int size() {\n\t\t\n\t\treturn list.size();\n\t}", "int getPartsCount();", "int getPartsCount();", "public int numItemInList() {\n return nextindex - startIndex;\n }", "@Override\n\tpublic int size() {\n\t\treturn N;\n\t}", "public int getLimitEnd() {\n return limitEnd;\n }", "public int getLimitEnd() {\n return limitEnd;\n }", "public int size() {\n return super.size();\n }", "public int size() {\n if (hasKeys) {\n return keys.size();\n } else {\n return objects.size();\n }\n }", "@Override\n\tpublic int size() {\n\t\treturn numItems;// numItems represents size\n\t}", "public int getObjectCount() {\n\t\treturn nestedConcept.getExtent().size();\n\t}", "protected long doGetNumberOfSubtypes() {\r\n\t\treturn getParentIndex().getSubtypes().size();\r\n\t}", "public int size() {\n int counter = 1;\n Lista iter = new Lista(this);\n while (iter.next != null) {\n iter = iter.next;\n counter += 1;\n }\n return counter;\n }", "public int size(){ return itemCount;}", "public int getCount() {\n\t\t\treturn list.size();\r\n\t\t}", "public int getNumberOfEntries();", "public int getNumberOfEntries() ;", "public int end() { return _end; }", "@Override\n public int size() {\n return (totalSize - offset);\n }", "@Override\n public int size() {\n return theSet.size();\n }", "public int size(){\n\t\treturn types.size();\n\t}", "public int getCount() {\n return definition.getInteger(COUNT, 1);\n }", "public int getResultLength() { return i_end; }", "@Override\n\t\tpublic long size() {\n\t\t\t\n\t\t\treturn super.size();\n\t\t}", "public static int numberObjects()\r\n\t{\r\n\t\treturn(no_of_obj);\r\n\t}", "public Long getElementCount();", "public int getNumbObjects()\n\t{\n\t\treturn this.numObjects;\n\t}", "public int totalNum(){\n return wp.size();\n }", "public int getSize(){\n\t\t\n\t\tint counter = 0;\t\t\t\t\t\t\t\t\t\t\t/* ====> Size counter */\n\t\t\n\t\tUser marker = new User();\t\t\t\t\t\t\t\t\t/* ====> Create a marker */\n\t\tmarker = this.getHead();\t\t\t\t\t\t\t\t\t/* ====> Set the marker at the beginning of the list */\n\t\t\n\t\twhile(marker.getNext()!= null){\t\t\t\t\t\t\t\t/* ====> Move marker to next element until it reaches the end. */ \n\t\t\tmarker = marker.getNext();\n\t\t\tcounter++;\t\t\t\t\t\t\t\t\t\t\t\t/* ====> Increment counter everytime the loop goes through */\n\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\treturn counter;\t\t\t\t\t\t\t\t\t\t\t\t/* ====> Return number of Users in UserList */\n\t\t\n\t}", "@Override\n public int size() {\n return list.size();\n }", "public Integer getLimitEnd() {\r\n return limitEnd;\r\n }", "public int length() { return _end - _start; }", "@Override\n\tpublic int size() {\n\t\tint nr = 0;\n\t\tfor (int i = 0; i < nrb; i++) {\n\t\t\t// pentru fiecare bucket numar in lista asociata acestuia numarul de\n\t\t\t// elemente pe care le detine si le insumez\n\t\t\tfor (int j = 0; j < b.get(i).getEntries().size(); j++) {\n\t\t\t\tnr++;\n\t\t\t}\n\t\t}\n\t\treturn nr;// numaru total de elemente\n\t}" ]
[ "0.65919787", "0.6411524", "0.64068663", "0.63613206", "0.6334546", "0.6189147", "0.6103228", "0.6101447", "0.6101447", "0.6094317", "0.60933363", "0.6072798", "0.60687375", "0.6067686", "0.6066362", "0.6066362", "0.60617113", "0.60605526", "0.60585326", "0.6029945", "0.6029169", "0.60280126", "0.5988317", "0.59757704", "0.59688437", "0.59594375", "0.5922525", "0.592044", "0.59194255", "0.59064966", "0.59017247", "0.58992815", "0.58958244", "0.5890785", "0.58849263", "0.58758134", "0.58537215", "0.58504516", "0.58465356", "0.5846314", "0.584123", "0.5840666", "0.5840666", "0.5840666", "0.5840588", "0.5838957", "0.5837239", "0.5826955", "0.58257353", "0.5822489", "0.58099526", "0.5806374", "0.58059824", "0.58041257", "0.5794801", "0.57914543", "0.5789972", "0.5785009", "0.5771085", "0.57692003", "0.57674474", "0.5766936", "0.57627237", "0.57624793", "0.57623357", "0.5760841", "0.57591575", "0.5749483", "0.5746769", "0.5743934", "0.5743934", "0.57422066", "0.5738611", "0.5738393", "0.5738393", "0.57359356", "0.5734468", "0.573325", "0.57254803", "0.5721773", "0.5716254", "0.57098335", "0.5709425", "0.57055044", "0.5700585", "0.56771153", "0.5674951", "0.5672646", "0.5662549", "0.565273", "0.56487715", "0.5647131", "0.56397444", "0.5637682", "0.5637502", "0.5634793", "0.5632874", "0.56320995", "0.5626874", "0.5626422", "0.5625348" ]
0.0
-1
Adds a powertype range to the collection of the current object.
void addPowertypeRange(Generalization powertypeRange);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add_Range(Range range_to_add){\n this.range_vector.add(range_to_add);\n }", "@Override\r\n public void addRangeClass(AgeClass rgCls)\r\n {\n \r\n range.add(rgCls);\r\n }", "public void addRange(int range) {\n this.range += range;\n if(this.range <= 0)\n this.range = 1;\n }", "boolean containsPowertypeRange(Generalization powertypeRange);", "org.hl7.fhir.ObservationReferenceRange addNewReferenceRange();", "Collection<Generalization> getPowertypeRanges();", "public AllowedValues(final RangeType range){\n \n valueOrRange = new ArrayList<>();\n valueOrRange.add(range);\n }", "public void addRangeValue(final T newValue) {\n\t\tvalues.add(newValue);\n\t}", "CollectionRange createCollectionRange();", "private void add_range(Question q)\n\t{\n\t\tlog.debug(\"Question \" + q.getQid() + \" is getting checked for ranges\");\n\t\tString min = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='min_num_value_n']/value\").getText();\n\t\tString max = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='max_num_value_n']/value\").getText();\n\n\t\tif (min != \"\") {\n\t\t\tq.setFloat_range_min(min);\n\t\t}\n\t\tif (max != \"\") {\n\t\t\tq.setFloat_range_max(max);\n\t\t}\n\t\tlog.debug(\"range check finished\");\n\t}", "boolean removePowertypeRange(Generalization powertypeRange);", "@Override\n\tpublic void visit(OWLObjectPropertyRangeAxiom axiom) {\n\t\taddFact(RewritingVocabulary.RANGE, //\n\t\t\t\taxiom.getProperty().asOWLObjectProperty().getIRI(),//\n\t\t\t\taxiom.getRange().asOWLClass().getIRI());\n\n\t}", "@Override\n public void add(T lowerBound, T upperBound, long frequency) {\n addBound(upperBound, frequency);\n }", "@JSProperty(\"range\")\n void setRange(double value);", "public void add(WorldObject obj) {\n\troomList.add(obj);\n}", "public AdornmentTypeRange(final float min, final float max) {\n\t\tthis.maxFloat = max;\n\t\tthis.minFloat = min;\n\t}", "Range createRange();", "private void addRangeIntegers() {\r\n ent_2_i.put(\"< 0\", -1); ent_2_i.put(\"== 0\", 0); ent_2_i.put(\"== 1\", 1); ent_2_i.put(\"< 10\", 10);\r\n ent_2_i.put(\"< 100\", 100); ent_2_i.put(\"< 1K\", 1000); ent_2_i.put(\"< 10K\", 10000); ent_2_i.put(\"< 100K\", 100000);\r\n ent_2_i.put(\"> 100K\", 1000000);\r\n }", "@Override\n public LevelType type(final float level, final float priceAsOfDate,\n final float rangePct) {\n \treturn SUPPORT;\n }", "public AdornmentTypeRange(final int min, final int max) {\n\t\tthis.maxInteger = max;\n\t\tthis.minInteger = min;\n\t}", "abstract public Range createRange();", "public void setRange(Range range) { setRange(range, true, true); }", "Builder addTypicalAgeRange(String value);", "StockRangeLineType createStockRangeLineType();", "<C> CollectionRange<C> createCollectionRange();", "protected void addWithRangesPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors\r\n\t\t\t\t.add(createItemPropertyDescriptor(\r\n\t\t\t\t\t\t((ComposeableAdapterFactory) adapterFactory)\r\n\t\t\t\t\t\t\t\t.getRootAdapterFactory(),\r\n\t\t\t\t\t\tgetResourceLocator(),\r\n\t\t\t\t\t\tgetString(\"_UI_HorizontalMappingStrategyDef_withRanges_feature\"),\r\n\t\t\t\t\t\tgetString(\r\n\t\t\t\t\t\t\t\t\"_UI_PropertyDescriptor_description\",\r\n\t\t\t\t\t\t\t\t\"_UI_HorizontalMappingStrategyDef_withRanges_feature\",\r\n\t\t\t\t\t\t\t\t\"_UI_HorizontalMappingStrategyDef_type\"),\r\n\t\t\t\t\t\tCDOServerDbDefsPackage.Literals.HORIZONTAL_MAPPING_STRATEGY_DEF__WITH_RANGES,\r\n\t\t\t\t\t\ttrue, false, false,\r\n\t\t\t\t\t\tItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null));\r\n\t}", "public void addTxRangeList(cwterm.service.rigctl.xsd.FreqRange param) {\n if (localTxRangeList == null) {\n localTxRangeList = new cwterm.service.rigctl.xsd.FreqRange[] {};\n }\n localTxRangeListTracker = true;\n java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTxRangeList);\n list.add(param);\n this.localTxRangeList = (cwterm.service.rigctl.xsd.FreqRange[]) list.toArray(new cwterm.service.rigctl.xsd.FreqRange[list.size()]);\n }", "public abstract Type createRangeType(ReferenceType bottom);", "Builder addTypicalAgeRange(Text value);", "public void add(int type) {\n\t\tint n = check(type);\n\t\tif (n >= 64) {\n\t\t\tn1 |= mask(n - 64);\n\t\t} else {\n\t\t\tn0 |= mask(n);\n\t\t}\n\t}", "RangeValue createRangeValue();", "public ProductionPower add(ProductionPower other){\n return new ProductionPower(this.pointsFaithOut + other.pointsFaithOut, this.outputRes.add(other.outputRes), this.inputRes.add(other.inputRes), this.ofYourChoiceInput + other.ofYourChoiceInput, this.ofYourChoiceOutput + other.ofYourChoiceOutput);\n }", "void addUses(Equipment newUses);", "private void addCollectionType(Class type, Class superType)\r\n\t{\r\n\t\tVector v;\r\n\t\tif(!collectionTypes.containsKey(type))\r\n\t\t{\r\n\t\t\tv = new Vector();\r\n\t\t\tv.add(superType);\r\n\t\t\tcollectionTypes.put(type, v);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tv = (Vector) collectionTypes.get(type);\r\n\t\t\tif(! v.contains(superType))\r\n\t\t\t\tv.add(superType);\r\n\t\t}\r\n\t}", "public int addOptype(Optype optype) throws Exception {\n\t\treturn mapper.addOptype(optype);\n\t}", "public void addSpawnpointWeapon(Weapon w) {\n this.weaponSpawnpoint.addWeapon(w);\n }", "IEquipableItem create(int power, int min, int max);", "public double getRange(){\n\t\treturn range;\n\t}", "Range controlLimits();", "private Range() {}", "public void addDataRange(long beginning, long ending, Line line){\n }", "public void addScripture(Scripture toAdd) {\n scriptures.add(toAdd);\n }", "void calculateRange() {\n //TODO: See Rules\n }", "protected Type adjustType(Type currentType, Type addedType, Range addedRange) {\n\t\treturn type;\n\t}", "private static void addPerson(int startFloorIn, int endFloorIn) throws InvalidParameterException {\r\n\r\n\t\t// get person name\r\n\t\tpersonCounter++;\r\n\t\tString name = \"P\" + personCounter;\r\n\r\n\t\t// create a person\r\n\t\tPerson p = new Person(name, startFloorIn, endFloorIn);\r\n\t\tSystem.out.printf(\"%s Person %s created on Floor %d, wants to go %s to Floor %d\\n\",\r\n\t\t\t\tgetTimeStamp(), name, startFloorIn, ElevatorController.getDirection(startFloorIn, endFloorIn), endFloorIn);\r\n\r\n\t\t// add to list for statistics\r\n\t\tpeople.add(p);\r\n\r\n\t\t// send to the building\r\n\t\ttry {\r\n\t\t\tmyBuilding.addPerson(p);\r\n\t\t} catch (EmptyReferenceException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}", "void add(VisualPropertyType calcType, Object value);", "public void add(Type t);", "int countPowertypeRanges();", "public void addFrom(Polygon source, int start, int end)\n {\n for (int i = start; i < end; i++)\n {\n add(source.get(i));\n }\n }", "public org.openxmlformats.schemas.presentationml.x2006.main.CTIndexRange addNewSldRg()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTIndexRange target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTIndexRange)get_store().add_element_user(SLDRG$8);\n return target;\n }\n }", "void addEscalator(int t_start, int t_end) {\n\t\t\tEscalatorsRepository.put(t_start, t_end);\n\t\t}", "@Test\n\tpublic void testAddInRange() {\n\t\tInteger result = SimpleCalc.add(3, 5);\n\t\tassertEquals(new Integer(8), result);\n\t}", "public void addTypeBound(Access node) {\n List<Access> list = (parent == null || state == null) ? getTypeBoundListNoTransform() : getTypeBoundList();\n list.addChild(node);\n }", "private void doSetRangeProps(\n double v,\n double e,\n double minimum,\n double maximum,\n int p)\n {\n double dblValue;\n\n if (minimum > maximum)\n {\n maximum = minimum;\n }\n if (maximum < minimum)\n {\n minimum = maximum;\n }\n if ((v + e) > maximum)\n {\n v = maximum - e;\n }\n if (v < minimum)\n {\n v = minimum;\n }\n\n precision = p;\n multiplier = Double.valueOf(Math.pow(10, p)).intValue();\n\n dblMinimum = minimum;\n setMinimum((int) (dblMinimum * multiplier));\n dblMaximum = maximum;\n setMaximum((int) (dblMaximum * multiplier));\n dblValue = v;\n setValue((int) (dblValue * multiplier));\n dblExtent = e;\n setExtent((int) (dblExtent * multiplier));\n }", "public void AddRange(char first, char last)\n\t{\n\t\t_rangelist.add(new SingleRange(first, last));\n\t\tif (_canonical && _rangelist.size() > 0 && first <= _rangelist.get(_rangelist.size() - 1)._last)\n\t\t{\n\t\t\t_canonical = false;\n\t\t}\n\t}", "public void addSuperType(TypeReference superType) {\n\t\tif (superList == null) superList = new ArrayList<TypeReference>();\n\t\tsuperList.add(superType);\n\t}", "void addHasRestraintType(Integer newHasRestraintType);", "void clearPowertypeRanges();", "public ScoreList append(ScoreContribution contribution)\n\t{\n\t\t// Won't stop all modifications to EMPTY, but helps.\n\t\t\n\t\tif (this == EMPTY)\n\t\t\tthrow new UnsupportedOperationException();\n\t\t\n\t\tsuper.add(contribution);\n\t\t\n\t\treturn this;\n\t}", "@Override\n public boolean isRange() {\n return false;\n }", "public Range(Double val) {\n\t\tminSum = maxSum = val;\n\t\tupdated = false;\n\t}", "void addIsPersonType(Integer newIsPersonType);", "@Override\r\n public String toString() {\r\n return \"Range [\" + \"min=\" + min + \", max=\" + max + \"]\";\r\n }", "private void addTypesToCollision(int type1, int type2){\n\t\tList<Integer> typeCollisions = collisionsTypes.get(type1);\n \n\t\t// if there is no entry create one\n\t\tif(typeCollisions == null){\n\t\t\ttypeCollisions = new ArrayList<Integer>();\n\t\t\tcollisionsTypes.put(type1, typeCollisions);\n\t\t}\n\t\t// add collision to list\n\t\ttypeCollisions.add(type2);\n\t}", "private void addItemToAllRegisteredTypes(List<String> legTypes, StatType statType, double item) {\n\t\tfor ( String legType : legTypes ) {\n\n\t\t\t// ... finally add the \"item\" to the correct bin in the container:\n\t\t\tint idx = this.statsContainer.get(statType).getIndex(item) ;\n\t\t\tthis.statsContainer.get(statType).inc( legType, idx ) ;\n\n\t\t\t// also add it to the sums container:\n\t\t\tthis.sumsContainer.get(statType).addValue( legType, item ) ;\n\n\t\t}\n\t}", "RangeOfValuesType createRangeOfValuesType();", "void addEel(int t_start, int t_end) {\n\t\t\tEelsRepository.put(t_start, t_end);\n\t\t}", "@JSProperty(\"range\")\n double getRange();", "public SetOfRanges() {\n RangeSet = new Vector();\n }", "public void add(GeometricalObject object);", "public void setBounds(DeclaredTypeListNode bounds);", "void assignRange() {\n rangeIndex = (int) Math.floor(value / step);\n }", "public void addType(ValueType type) {\n\t\ttypes.add(type);\n\t}", "public void addRangeOpt(String str, String str2, int i, int i2, int i3) {\n this.mOptionIds.add(str);\n this.mRangeOptions.add(new RangeOpt(str, str2, i, i2, i3));\n }", "public void addEstablishment(Establishment establishment) {\n boolean alreadyOwns = false;\n for (int i = 0; i < Establishments.size(); i++ ) {\n if (establishment.getName().equals(Establishments.get(i).getName())) {\n Establishments.get(i).addAvailable();\n alreadyOwns = true;\n }\n }\n if (alreadyOwns == false) {\n int a = 0;\n int activation;\n if (Character.isDigit(establishment.getActivationRange().charAt(2))) {\n activation = Character.getNumericValue(establishment.getActivationRange().charAt(1)) * 10 + Character.getNumericValue(establishment.getActivationRange().charAt(2));\n } else {\n activation = Character.getNumericValue(establishment.getActivationRange().charAt(1));\n }\n for (int i = 0; i < Establishments.size(); i++) {\n int activation1;\n if (Character.isDigit(Establishments.get(i).getActivationRange().charAt(2))) {\n activation1 = Character.getNumericValue(Establishments.get(i).getActivationRange().charAt(1)) * 10 + Character.getNumericValue(Establishments.get(i).getActivationRange().charAt(2));\n } else {\n activation1 = Character.getNumericValue(Establishments.get(i).getActivationRange().charAt(1));\n }\n if (activation > activation1) {\n a++;\n } else if (establishment.getActivationRange().length() > Establishments.get(i).getActivationRange().length()) {\n a++;\n }\n }\n Establishments.add(a, establishment);\n }\n }", "public void addFuelTankType(FuelCapacity Ftype) {\n\t\t\r\n\t}", "public Book(final String name, final int power, final int minRange, final int maxRange) {\n super(name, power, minRange, maxRange);\n }", "void addPowerup(int xPos, int yPos) {\n int powerupIndex = new Random().nextInt(this.numPups);\n Posn loc = new Posn(xPos, yPos);\n this.pUps.add(new Powerup(this.hungerDeltaPcrntArray.get(powerupIndex),\n this.speedDeltaPcrntArray.get(powerupIndex),\n this.pointsDeltaArray.get(powerupIndex), loc,\n new FromFileImage(loc, this.imageLocationArray\n .get(powerupIndex))));\n }", "public void add(double val) {\n sum += val;\n sumQ += val * val;\n count++;\n if (val < min) min = val;\n if (val > max) max = val;\n }", "public void addType(TypeData type) { types.add(type); }", "protected final void add(ZulrahLocation loc, ZulrahType type, StandLocation standLoc, Prayer prayer) {\n add(loc, type, standLoc, false, prayer);\n }", "@Override\r\n protected void setPositionType(Collection<? extends Geometry> adds)\r\n {\n }", "net.opengis.gml.x32.TimeIntervalLengthType addNewTimeInterval();", "Range alarmLimits();", "@Override\n public final boolean add(Integer e) {\n if(definedOn.contains(e)){\n return super.add(e);\n } else {\n return false;\n }\n }", "public void setRange(String new_range) {\n\t\t_range = new_range;\n\t}", "@Override\r\n public void addQueryRegion(QueryRegion region)\r\n {\n removeQueryRegion(region.getGeometries());\r\n\r\n synchronized (myQueryRegions)\r\n {\r\n myQueryRegions.add(region);\r\n }\r\n\r\n Collection<PolygonGeometry> geometries = New.collection(region.getGeometries().size());\r\n for (PolygonGeometry polygon : region.getGeometries())\r\n {\r\n if (polygon.getRenderProperties().isDrawable() || polygon.getRenderProperties().isPickable())\r\n {\r\n geometries.add(polygon);\r\n }\r\n }\r\n myToolbox.getGeometryRegistry().addGeometriesForSource(this, geometries);\r\n\r\n myChangeSupport.notifyListeners(listener -> listener.queryRegionAdded(region), myDispatchExecutor);\r\n }", "public void setRanges(List<Range> ranges) {\n this.ranges = ranges;\n }", "public T caseRangeType(RangeType object) {\n\t\treturn null;\n\t}", "void add(GeometricalObject object);", "@Override\n public void add(Object o) {\n gameCollection.addElement(o);\n }", "private void addPoint(){\n\n userList.addUserCorrect();\n userList.addUserAttempt();\n\n\n //This if levels up the user if they have reached the number of points needed\n if (userList.findCurrent().getNumPointsNeeded()\n <= userList.findCurrent().getNumQuestionsCorrect()) {\n\n userList.addUserPointsNeeded();//increment points needed to level up\n userList.levelUpUser();\n }\n }", "public void setRange(boolean range) {\r\n this.range = range;\r\n }", "public AbstractItem(final String name, final int power, final int minRange, final int maxRange) {\n this.name = name;\n this.power = power;\n this.minRange = Math.max(minRange, 1);\n this.maxRange = Math.max(maxRange, this.minRange);\n }", "@Override\n\tpublic int getRange() {\n\t\treturn range;\n\t}", "void addHasAlcoholSpecimanType(Integer newHasAlcoholSpecimanType);", "Range() {}", "void addToBotCount( String className, int valueToAdd ) {\n Integer newBotCount;\n Integer oldBotCount;\n\n oldBotCount = m_botTypes.get( className );\n\n if( oldBotCount != null ) {\n if( oldBotCount.intValue() + valueToAdd >= 0 ) {\n newBotCount = new Integer( oldBotCount.intValue() + valueToAdd );\n m_botTypes.put( className, newBotCount );\n }\n }\n }", "public void addRxRangeList(cwterm.service.rigctl.xsd.FreqRange param) {\n if (localRxRangeList == null) {\n localRxRangeList = new cwterm.service.rigctl.xsd.FreqRange[] {};\n }\n localRxRangeListTracker = true;\n java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localRxRangeList);\n list.add(param);\n this.localRxRangeList = (cwterm.service.rigctl.xsd.FreqRange[]) list.toArray(new cwterm.service.rigctl.xsd.FreqRange[list.size()]);\n }", "private QARange cloneThis(){\n QARange retval = new QARange();\n retval.setName(this.getName());\n retval.setCardTypes(this.getCardTypes());\n retval.setCustom(this.getCustom());\n if (retval.getRangeValues()==null){\n retval.setRangeValues(new RealmList<QARangeValue>());\n }\n\n for (QARangeValue val: getRangeValues()) {\n retval.getRangeValues().add(val);\n }\n for (String cardType : getSupportedCardList()){\n retval.getSupportedCardList().add(cardType);\n }\n return retval;\n }" ]
[ "0.6648584", "0.6562582", "0.6341937", "0.59264237", "0.5844878", "0.5765667", "0.57614034", "0.56062037", "0.5591481", "0.5552105", "0.5386697", "0.53598344", "0.52307045", "0.5183351", "0.5106448", "0.51018614", "0.5096419", "0.5071647", "0.50664514", "0.5061463", "0.5048961", "0.5045532", "0.50321615", "0.5024423", "0.50077146", "0.49995643", "0.49710628", "0.49707535", "0.4945621", "0.49347708", "0.48712334", "0.48609057", "0.48184785", "0.4815007", "0.4809636", "0.48045364", "0.48019248", "0.47978294", "0.47799242", "0.47779694", "0.47511888", "0.47484022", "0.47483477", "0.47441468", "0.4697949", "0.46955582", "0.46925718", "0.4685915", "0.4683337", "0.46810755", "0.46704242", "0.46696666", "0.46653828", "0.4656094", "0.465545", "0.46360606", "0.4634011", "0.4632209", "0.46289873", "0.4624534", "0.4620923", "0.46103376", "0.46049502", "0.46017393", "0.459061", "0.45900598", "0.45864445", "0.45822623", "0.45755643", "0.4575118", "0.4573511", "0.45704037", "0.4568415", "0.45536953", "0.45527837", "0.45457116", "0.45384672", "0.45357355", "0.4534279", "0.45324898", "0.4528951", "0.45281422", "0.45270428", "0.45099673", "0.45071656", "0.44999665", "0.44947135", "0.4492609", "0.4490957", "0.44887266", "0.4488618", "0.44872144", "0.44867814", "0.44844174", "0.44830748", "0.44827425", "0.44808933", "0.44791028", "0.44754735", "0.44686303" ]
0.81579405
0
Removes a powertype range from the collection of the current object.
boolean removePowertypeRange(Generalization powertypeRange);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void clearPowertypeRanges();", "public void removeRange(Range range) {\n ranges.remove(range);\n }", "@Override\n\tpublic void clear() {\n\t\t\n\t\tsuperset.removeRange(lower, upper, fromInclusive, toInclusive);\n\t\t\n\t\t//Alternative direct implementation:\n\t\t//while (pollFirst() != null) {\n\t\t//}\n\t\t\n\t}", "void removeReferenceRange(int i);", "public void remove(int type) {\n\t\tint n = check(type);\n\t\tif (n >= 64) {\n\t\t\tn1 &= ~mask(n - 64);\n\t\t} else {\n\t\t\tn0 &= ~mask(n);\n\t\t}\n\t}", "@Fix(IssueCodes.SEVERITY_RANGES_FOR_FINAL_CHECK)\n public void removeSeverityRange(final Issue issue, final IssueResolutionAcceptor acceptor) {\n acceptor.accept(issue, Messages.CheckQuickfixProvider_REMOVE_SEVERITY_RANGE_LABEL, Messages.CheckQuickfixProvider_REMOVE_SEVERITY_RANGE_DESCN, NO_IMAGE, new ISemanticModification() {\n public void apply(final EObject element, final IModificationContext context) {\n final Check check = EcoreUtil2.getContainerOfType(element, Check.class);\n if (check != null) {\n check.setSeverityRange(null);\n }\n }\n });\n }", "@Override\r\n\tpublic void removeRange(int first, int last) {\r\n\r\n try {\r\n super.removeRange(first, last);\r\n fireVOIremoved(null);\r\n } catch (ArrayIndexOutOfBoundsException badIndex) {\r\n throw badIndex;\r\n }\r\n }", "public void removeRange(int fromIndex, int toIndex) {\n\t\tpoints.subList(fromIndex, toIndex).clear();\n\t}", "@Override\n\tpublic void remove()\n\t{\n\t\tsuper.remove();\n\t\tgetMyPlayer().getGoldMines().remove(this);\n\t}", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "@Override\r\n\tpublic LogicalValue removeRange(int min, int max)\r\n\t\t\tthrows NonRemovableRangeException {\r\n\t\tthrow new NonRemovableRangeException(\r\n\t\t\t\t\"No portion of a pointer may be eliminated\");\r\n\t}", "public void doRemove() throws VisADException, RemoteException {\n rangeRings = null;\n super.doRemove();\n }", "public void remove() {\r\n super.remove();\r\n }", "public int deleteByRange(TypeData type, long minimumId, long maximumId);", "public void removePowerUp(PowerUp p) {\n for (Location loc : p.getLocations()) {\n Location replacement = new Location(loc.getX(), loc.getY());\n gridCache.add(replacement);\n }\n\n powerUps.remove(p);\n render();\n}", "private void removeArea() {\n \t\tthis.set.remove( this.area );\n \t\tthis.finish();\n \t}", "public void remove()\n {\n this.morphs.remove(this.index);\n this.clamp();\n }", "protected void clearRangeTest() {\n\tneedRangeTest = false;\n }", "public Object remove();", "@Override\n\tpublic void remove(NumberInterface num) {\n\t\tnumbers.remove(num);\n\t}", "public void remove(int startPos, int endPos) {\n int length = endPos - startPos;\n\n start.remove(startPos, length);\n end.remove(startPos, length);\n type.remove(startPos, length);\n }", "public T removeMin ();", "Object remove();", "void endRangeSelection() {\n mRanger = null;\n }", "public void remove() {\n getMainApplication().showConfirmationDialog(\n new ConfirmDialog.Listener() {\n public void onClose(ConfirmDialog dialog) {\n if (dialog.isConfirmed()) {\n Collection<T> selectedValues = getSelectedValues();\n removeConfirmed(CollectionsUtil.toArray(getType(), selectedValues));\n }\n }\n });\n }", "public void removeAttributeMapEntry(Integer rangeAttribute) {\n\tif (rangeAttribute != null) {\n\t rangeToDomainName.remove(rangeAttribute);\n\t rangeToValueMapper.remove(rangeAttribute);\n\t}\n }", "public Collection<V> remove(Object obj) {\n Collection collection = (Collection) this.Pu.remove(obj);\n if (collection == null) {\n return null;\n }\n Collection<V> ry = AbstractMapBasedMultimap.this.ry();\n ry.addAll(collection);\n AbstractMapBasedMultimap.this.Ps = AbstractMapBasedMultimap.this.Ps - collection.size();\n collection.clear();\n return ry;\n }", "public Type remove(int index);", "void unsetValueQuantity();", "void removeIsPersonType(Integer oldIsPersonType);", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void supprimerCollection(){\r\n collection.clear();\r\n }", "void removeHasRestraintType(Integer oldHasRestraintType);", "public final void removeRange(int i, int i2) {\n a();\n if (i2 >= i) {\n long[] jArr = this.zzbod;\n System.arraycopy(jArr, i2, jArr, i, this.size - i2);\n this.size -= i2 - i;\n this.modCount++;\n return;\n }\n throw new IndexOutOfBoundsException(\"toIndex < fromIndex\");\n }", "protected void removeSelection() {\n\t\tBEAN oldBean = getInternalValue();\n\t\tsetInternalValue(null);\n\t\ttextField.setValue(null);\n\t\tif (searchListener != null) {\n\t\t\tsearchListener.remove(oldBean);\n\t\t}\n\t}", "void removeUses(Equipment oldUses);", "public boolean remove(Type t);", "public int remove(ArcanaType type, Integer amount)\n {\n int typeAmount = this.arcanaMixMap.getOrDefault(type,0);\n int removeAmount = max(amount,typeAmount);\n\n this.arcanaMixMap.put(type,typeAmount-removeAmount);\n\n this.totalArcana-=removeAmount;\n return removeAmount;\n }", "public void removeRange(int lowKey, int highKey) {\n\t\tint pos = entries.getIntervalPosition(lowKey);\n\t\tIntBTreeNode next = entries.nodes[pos];\n\n\t\tif (next != null) {\n\t\t\t// calculate key interval for next node\n\t\t\tnext.removeRange(lowKey, highKey);\n\t\t}\n\t}", "public void remove()\n {\n list.remove(cursor);\n cursor--;\n }", "public static void removePartOfSet( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(model, instanceResource, PARTOFSET, value);\r\n\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "void remove(int level) {\n if (containsKey(level)) {\n set(level, null);\n }\n }", "@Override\n public void remove() {\n }", "@Override\n public void remove() {\n }", "public void remove() {\n super.remove();\n if (this.caughtEntity != null) {\n this.caughtEntity.noClip = false;\n }\n if (this.angler != null) {\n this.angler.fishingBobber = null;\n this.angler.noClip = false;\n }\n if(this.rod.getItem() == Items.ITEM_GRAB_HOOK){\n this.rod.getOrCreateTag().putBoolean(\"cast\", false);\n }\n }", "private void removeQueryBoundsFromGeometryRegistry(QueryRegion region)\r\n {\r\n myToolbox.getGeometryRegistry().removeGeometriesForSource(this, new HashSet<Geometry>(region.getGeometries()));\r\n }", "void removeRegion(Region region);", "public void removeLevel()\n {\n clearLevelAndDecreaseCount();\n }", "public Builder clearCohortsRange() {\n bitField0_ = (bitField0_ & ~0x00000002);\n cohortsRange_ = null;\n if (cohortsRangeBuilder_ != null) {\n cohortsRangeBuilder_.dispose();\n cohortsRangeBuilder_ = null;\n }\n onChanged();\n return this;\n }", "private void clearBounds() {\n this.bounds_ = null;\n this.bitField0_ &= -9;\n }", "@Override\n\tpublic void remove() { }", "public void unsetFacilityType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(FACILITYTYPE$4, 0);\n }\n }", "public Element removeEndStartModifier() {\n\t\tsetEndStartModifierDefined(false);\n\t\treturn (this);\n\t}", "void unsetType();", "public void remove(MongoDBCritera critera);", "public void remove() {\r\n return;\r\n }", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void remove() {\n\t }", "private void removeAllQueryBoundsFromGeometryRegistry()\r\n {\r\n myToolbox.getGeometryRegistry().removeGeometriesForSource(this);\r\n }", "public void removeUnavailableRooms(){\n\t}", "ISlot remove(IStrongSlot target);", "public void remove() {\n\n }", "public void clearAll() {\n rangeMap.clear();\n }", "public void removeResourceCollection()\r\n {\r\n getSemanticObject().removeProperty(swb_resourceCollectionInv);\r\n }", "public final void remove () {\r\n }", "public void remove () {}", "public void removeInputType(IInputType type);", "public void cullPopulation(){\n\t\t// sort the population by the fitness function from low to high\n\t\tCollections.sort(population);\n\t\t\n\t\t// remove 10% of the weakest part of the population\n\t\tfor(int i = 0; i < (int)(POPULATION_SIZE*POPULATION_ACTION_PERCENT); i++){\n\t\t\tpopulation.remove(0);\n\t\t}\n\n\t}", "@Override\n\t\t\t\tpublic void remove() {\n\t\t\t\t\t\n\t\t\t\t}", "public T removeBest();", "@Override\n protected void removeMember() {\n }", "public void remove(int index)\n {\n MorphRemove toRemove = this.toRemove.get(index);\n\n if (toRemove != null)\n {\n MorphType type = this.morphs.get(toRemove.typeIndex);\n Iterator<MorphCell> it = type.morphs.iterator();\n\n while (it.hasNext())\n {\n if (it.next().index == index)\n {\n it.remove();\n break;\n }\n }\n\n if (type.morphs.isEmpty())\n {\n this.morphs.remove(toRemove.typeIndex);\n }\n else\n {\n type.clamp();\n }\n\n this.toRemove.remove(index);\n this.setupMorphs(Morphing.get(this.mc.thePlayer));\n this.index = MathHelper.clamp_int(this.index, -1, this.getMorphCount() - 1);\n }\n }", "public void clear()\r\n {\r\n this.boundObjects.clear();\r\n }", "public void removeIt() { \n\t\t\tcollection.remove(currIndex);\n\t\t\tcurrIndex--;\n\t\t}", "void removeHasAlcoholSpecimanType(Integer oldHasAlcoholSpecimanType);", "@Override\n public void remove(int option) {\n if (this.isValidOption(option)) {\n this.bench.remove(option);\n }\n }", "public void removeActor(int index) { ActorSet.removeElementAt(index); }", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "private void destroyBounds() {\n size -= 4;\n this.setBounds(bounds.left, bounds.top);\n if (size <= 0) models.remove(this);\n }", "void unsetValuePeriod();", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\t// YOU DO NOT NEED TO WRITE THIS\r\n\t\t}", "public void removeByType(long typeId);", "void unset() {\n size = min = pref = max = UNSET;\n }", "public void clear() {\n\t\tthis.boundObjects.clear();\n\t}", "public void unassignEnergyToShip(AbstractObject source) {\n\t\tenergyToShip.remove(source.getId());\n\t}", "void addPowertypeRange(Generalization powertypeRange);" ]
[ "0.7065562", "0.6577767", "0.62087524", "0.5978104", "0.5874881", "0.5839212", "0.5836653", "0.58020294", "0.5775733", "0.5607812", "0.5607812", "0.5607812", "0.5607812", "0.5607812", "0.5607812", "0.5607812", "0.5599081", "0.5591022", "0.558057", "0.5548076", "0.545204", "0.5448661", "0.5404612", "0.536728", "0.5330625", "0.5309352", "0.53027564", "0.52839524", "0.5268819", "0.5263051", "0.5256819", "0.52404827", "0.52369803", "0.5223872", "0.5213561", "0.52069956", "0.52052486", "0.52052486", "0.52052486", "0.52052486", "0.52052486", "0.5204854", "0.52015066", "0.51904035", "0.5185338", "0.5167254", "0.51549476", "0.5143169", "0.5143118", "0.5138709", "0.5130402", "0.5118609", "0.5118609", "0.511691", "0.5114652", "0.5100747", "0.508896", "0.5088244", "0.508776", "0.5086742", "0.5084159", "0.5083189", "0.5078408", "0.5075672", "0.5074725", "0.5071761", "0.50673956", "0.5064395", "0.5060585", "0.5060585", "0.5060585", "0.50575787", "0.50527054", "0.50506747", "0.50473875", "0.50380355", "0.5029645", "0.5028656", "0.50283307", "0.502609", "0.5016059", "0.501095", "0.5008904", "0.4995964", "0.4989534", "0.49846634", "0.49840143", "0.49839383", "0.49801892", "0.4979535", "0.49780232", "0.49780232", "0.49763364", "0.49689338", "0.4962241", "0.49591425", "0.49590585", "0.49585792", "0.4954783", "0.49538594" ]
0.7586326
0
Removes all the objects of type "powertype range" from the collection of the current object.
void clearPowertypeRanges();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean removePowertypeRange(Generalization powertypeRange);", "@Override\n\tpublic void clear() {\n\t\t\n\t\tsuperset.removeRange(lower, upper, fromInclusive, toInclusive);\n\t\t\n\t\t//Alternative direct implementation:\n\t\t//while (pollFirst() != null) {\n\t\t//}\n\t\t\n\t}", "public void clearAll() {\n rangeMap.clear();\n }", "Collection<Generalization> getPowertypeRanges();", "public void clear() {\n\t\tthis.boundObjects.clear();\n\t}", "public void clear()\r\n {\r\n this.boundObjects.clear();\r\n }", "public void removeAll()\r\n {\r\n if (level ==2)\r\n {\r\n removeObjects(getObjects(Platforms.class));\r\n removeObjects(getObjects(Ladder.class));\r\n removeObjects(getObjects(SmallPlatform.class));\r\n removeObjects(getObjects(Door.class)); \r\n removeObjects(getObjects(Tomato.class)); \r\n removeObjects(getObjects(Bullet.class));\r\n removeObjects(getObjects(DeadTomato.class));\r\n player.setLocation();\r\n }\r\n if (level == 3)\r\n {\r\n removeObjects(getObjects(Tomato.class));\r\n removeObject(door2);\r\n removeObjects(getObjects(Canon.class));\r\n removeObjects(getObjects(CanonBullet.class));\r\n removeObjects(getObjects(Bullet.class));\r\n removeObjects(getObjects(Pedestal.class));\r\n removeObjects(getObjects(Platforms.class));\r\n removeObjects(getObjects(DeadTomato.class));\r\n }\r\n if (level == 4)\r\n {\r\n removeObjects(getObjects(Platforms.class));\r\n removeObjects(getObjects(Text.class));\r\n removeObjects(getObjects(Bullet.class));\r\n removeObjects(getObjects(Ladder.class));\r\n removeObjects(getObjects(Door.class)); \r\n removeObjects(getObjects(Boss.class)); \r\n removeObjects(getObjects(Thorns.class));\r\n player.setLocation();\r\n }\r\n }", "void removeReferenceRange(int i);", "public void removeRange(Range range) {\n ranges.remove(range);\n }", "private void removeAllQueryBoundsFromGeometryRegistry()\r\n {\r\n myToolbox.getGeometryRegistry().removeGeometriesForSource(this);\r\n }", "private void removeAllObjects()\n {\n removeObjects (getObjects(Actor.class));\n }", "protected void clearRangeTest() {\n\tneedRangeTest = false;\n }", "public SetOfRanges() {\n RangeSet = new Vector();\n }", "@Override\n public void clear() {\n for (E e : this) {\n remove(e);\n }\n }", "@Override\r\n\tpublic void removeRange(int first, int last) {\r\n\r\n try {\r\n super.removeRange(first, last);\r\n fireVOIremoved(null);\r\n } catch (ArrayIndexOutOfBoundsException badIndex) {\r\n throw badIndex;\r\n }\r\n }", "public void removeAllPartOfSet() {\r\n\t\tBase.removeAll(this.model, this.getResource(), PARTOFSET);\r\n\t}", "private void clearBounds() {\n this.bounds_ = null;\n this.bitField0_ &= -9;\n }", "public static void clearWorld() {\n\t\t// Complete this method.\n\t\tfor(Critter i: population){\n\t\t\tpopulation.remove(i);\n\t\t}\n\t\tfor(Critter j: babies){\n\t\t\tbabies.remove(j);\n\t\t}\n\t\tpopulation.clear();\n\t\tbabies.clear();\n\n\n\t}", "@Override\n public void removeAll(){\n gameCollection.removeAllElements();\n }", "public void removeUnavailableRooms(){\n\t}", "public void removeAll() {\n\t\tsynchronized (mNpcs) {\n\t\t\tmNpcs = Collections.synchronizedList(new ArrayList<Npc>());\n\t\t\tmDemonCount = 0;\n\t\t\tmHumanCount = 0;\n\t\t}\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t}", "public void clear() {\r\n\t\toredCriteria.clear();\r\n\t}", "public void clear() {\r\n\t\toredCriteria.clear();\r\n\t}", "public void clear() {\r\n\t\toredCriteria.clear();\r\n\t}", "public void clear() {\r\n\t\toredCriteria.clear();\r\n\t}", "@Override\n\tpublic List<IRange> getRangeList() {\n\t\treturn null;\n\t}", "public void doRemove() throws VisADException, RemoteException {\n rangeRings = null;\n super.doRemove();\n }", "void removeAllSpawn();", "public void removeRange(int fromIndex, int toIndex) {\n\t\tpoints.subList(fromIndex, toIndex).clear();\n\t}", "@Fix(IssueCodes.SEVERITY_RANGES_FOR_FINAL_CHECK)\n public void removeSeverityRange(final Issue issue, final IssueResolutionAcceptor acceptor) {\n acceptor.accept(issue, Messages.CheckQuickfixProvider_REMOVE_SEVERITY_RANGE_LABEL, Messages.CheckQuickfixProvider_REMOVE_SEVERITY_RANGE_DESCN, NO_IMAGE, new ISemanticModification() {\n public void apply(final EObject element, final IModificationContext context) {\n final Check check = EcoreUtil2.getContainerOfType(element, Check.class);\n if (check != null) {\n check.setSeverityRange(null);\n }\n }\n });\n }", "public void cullPopulation(){\n\t\t// sort the population by the fitness function from low to high\n\t\tCollections.sort(population);\n\t\t\n\t\t// remove 10% of the weakest part of the population\n\t\tfor(int i = 0; i < (int)(POPULATION_SIZE*POPULATION_ACTION_PERCENT); i++){\n\t\t\tpopulation.remove(0);\n\t\t}\n\n\t}", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public int deleteByRange(TypeData type, long minimumId, long maximumId);", "public Builder clearCohortsRange() {\n bitField0_ = (bitField0_ & ~0x00000002);\n cohortsRange_ = null;\n if (cohortsRangeBuilder_ != null) {\n cohortsRangeBuilder_.dispose();\n cohortsRangeBuilder_ = null;\n }\n onChanged();\n return this;\n }", "@Override\n\tpublic void removeAll() {\n\t\tfor (LocalRichInfo localRichInfo : findAll()) {\n\t\t\tremove(localRichInfo);\n\t\t}\n\t}", "void addPowertypeRange(Generalization powertypeRange);", "@Override\n\tpublic void remove()\n\t{\n\t\tsuper.remove();\n\t\tgetMyPlayer().getGoldMines().remove(this);\n\t}", "public void clear() {\r\n oredCriteria.clear();\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n }", "public void unsetMemberTypes()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(MEMBERTYPES$2);\n }\n }", "public Collection<V> remove(Object obj) {\n Collection collection = (Collection) this.Pu.remove(obj);\n if (collection == null) {\n return null;\n }\n Collection<V> ry = AbstractMapBasedMultimap.this.ry();\n ry.addAll(collection);\n AbstractMapBasedMultimap.this.Ps = AbstractMapBasedMultimap.this.Ps - collection.size();\n collection.clear();\n return ry;\n }", "public void clear() {\n oredCriteria.clear();\n }", "public void clear() {\n oredCriteria.clear();\n }", "public void clear() {\n oredCriteria.clear();\n }", "public void clear() {\n oredCriteria.clear();\n }", "public void clear() {\n oredCriteria.clear();\n }", "public void clear() {\n oredCriteria.clear();\n }", "public void remove(int type) {\n\t\tint n = check(type);\n\t\tif (n >= 64) {\n\t\t\tn1 &= ~mask(n - 64);\n\t\t} else {\n\t\t\tn0 &= ~mask(n);\n\t\t}\n\t}", "public void resetDamagedRange() {\r\n fDamagedRange[0] = Integer.MAX_VALUE;\r\n fDamagedRange[1] = Integer.MIN_VALUE;\r\n }", "public void removeListeners() {\n for (LetterTile tile : rack)\n tile.removeTileListener();\n }", "public void clear() {\n oredCriteria.clear();\n }", "public void removePowerUp(PowerUp p) {\n for (Location loc : p.getLocations()) {\n Location replacement = new Location(loc.getX(), loc.getY());\n gridCache.add(replacement);\n }\n\n powerUps.remove(p);\n render();\n}", "@Override\r\n\tpublic void clear() {\n\t\tset.clear();\r\n\t}", "public void clear() {\r\n oredCriteria.clear();\r\n }", "void endRangeSelection() {\n mRanger = null;\n }", "public void supprimerCollection(){\r\n collection.clear();\r\n }", "@Override\n\tpublic void removeAll() {\n\t\tfor (Paper paper : findAll()) {\n\t\t\tremove(paper);\n\t\t}\n\t}", "public void removeAll() {\n start = null;\n _size = 0;\n }", "@Override\n\tpublic void removeAll() {\n\t\tfor (PhatVay phatVay : findAll()) {\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "private void removeQueryBoundsFromGeometryRegistry(QueryRegion region)\r\n {\r\n myToolbox.getGeometryRegistry().removeGeometriesForSource(this, new HashSet<Geometry>(region.getGeometries()));\r\n }", "public synchronized void removeAllTeamMembers() {\n teamSelection = new HashSet<>();\n }", "private void clearCollection() {\n \n collection_ = getDefaultInstance().getCollection();\n }", "void unsetType();", "void removeControlPersons(int i);", "private void removeMappings() {\n\t\tfor (final VisualMappingFunction<?, ?> vm : validMappings)\n\t\t\tstyle.removeVisualMappingFunction(vm.getVisualProperty());\n\t}", "void hardRemoveAllBotsOfType( String className, String initiator ) {\n String rawClassName = className.toLowerCase();\n Integer numBots = m_botTypes.get( rawClassName );\n LinkedList<String> names = new LinkedList<String>();\n\n for( ChildBot c : m_botStable.values() )\n if( c != null ) {\n if(c.getClassName().equals( rawClassName ))\n names.add( c.getBot().getBotName() );\n }\n\n for( String name : names ) {\n removeBot( name, \"!removetype by \" + initiator );\n m_botAction.sendChatMessage( 1, name + \" logged off. (!removetype initiated.)\" );\n }\n\n if( numBots != null && numBots.intValue() != 0 )\n m_botTypes.put( rawClassName, new Integer(0) );\n }", "public void removeAllFightsystems()\r\n {\n\r\n }", "public static OntClass getUsefulRange(OntProperty p)\n\t{\n\t\tif (p.getRange() == null)\n\t\t\treturn getDefaultRange(p);\n\t\t\n\t\tSet<OntClass> ancestors = new HashSet<OntClass>();\n\t\tList<OntClass> range = new ArrayList<OntClass>();\n\t\tfor (Iterator<? extends OntResource> i = p.listRange(); i.hasNext(); ) {\n\t\t\tOntResource r = (OntResource)i.next();\n\t\t\tif (r.isClass()) {\n\t\t\t\tOntClass c = r.asClass();\n\t\t\t\trange.add(c);\n\t\t\t\t\n\t\t\t\t/* TODO does listSuperClasses() return all ancestors in all reasoners,\n\t\t\t\t * or just in Jena? also, do any reasoners return the class itself?\n\t\t\t\t * Either of those will be a problem...\n\t\t\t\t */\n\t\t\t\tfor (Iterator<? extends OntClass> j = c.listSuperClasses(); j.hasNext(); ) {\n\t\t\t\t\tancestors.add(j.next());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tlog.debug(\"range before pruning is \" + range);\n\t\tlog.debug(\"ancestors to prune are \" + ancestors);\n\t\tfor (Iterator<OntClass> i = range.iterator(); i.hasNext(); ) {\n\t\t\tOntClass c = i.next();\n\t\t\tif (ancestors.contains(c))\n\t\t\t\ti.remove();\n\t\t}\n\t\t\n\t\tif (range.size() > 1) {\n\t\t\tString unionUri = p.getURI().concat(\"-range\");\n\t\t\tlog.debug(String.format(\"creating union class %s from %s\", unionUri, range));\n\t\t\tOntModel model = p.getOntModel();\n\t\t\tRDFList unionList = model.createList();\n\t\t\tfor (OntClass c: range) {\n\t\t\t\tunionList = unionList.with(c);\n\t\t\t}\n\t\t\treturn model.createUnionClass(unionUri, unionList);\n\t\t} else if (range.size() == 1) {\n\t\t\tlog.debug(\"pruned range to single class \" + range);\n\t\t\treturn range.get(0);\n\t\t} else {\n\t\t\treturn getDefaultRange(p);\n\t\t}\n\t}", "public void removeDead() {\n for (BaseObject object : new ArrayList<BaseObject>(bombs)) {\n if (!object.isAlive())\n bombs.remove(object);\n }\n\n for (BaseObject object : new ArrayList<BaseObject>(rockets)) {\n if (!object.isAlive())\n rockets.remove(object);\n }\n\n for (BaseObject object : new ArrayList<BaseObject>(ufos)) {\n if (!object.isAlive())\n ufos.remove(object);\n }\n }", "private void destroyBounds() {\n size -= 4;\n this.setBounds(bounds.left, bounds.top);\n if (size <= 0) models.remove(this);\n }", "void unsetBranchOfficeList();", "private static void fixPopulation() {\r\n \t//get a copy of the population hash map\r\n \tHashMap<String, ArrayList<Critter>> copy = new HashMap<String, ArrayList<Critter>>(population);\r\n \tIterator<String> populationIterator = copy.keySet().iterator();\r\n \twhile (populationIterator.hasNext()) { \r\n String pos = populationIterator.next();\r\n ArrayList<Critter> critterList = copy.get(pos);\r\n //clear the key if there is no more critters in that space\r\n if(critterList.size() == 0 || critterList == null) {\r\n \tpopulation.remove(pos);\r\n }\r\n \t}\r\n }", "protected void removeFromAllSubsets()\r\n {\n if (!m_subsets.isEmpty()) {\r\n List<SubsetImpl> tmp = new ArrayList<SubsetImpl>(m_subsets);\r\n m_subsets.clear();\r\n tmp.forEach(r -> {if (r != null) r.remove(this);});\r\n }\r\n }", "static void wipeLocations(){\n\t \tfor (int i= 0; i < places.length; i++){\n\t\t\t\tfor (int j = 0; j < places[i].items.size(); j++)\n\t\t\t\t\tplaces[i].items.clear();\n\t\t\t\tfor (int k = 0; k < places[i].receptacle.size(); k++)\n\t\t\t\t\tplaces[i].receptacle.clear();\n\t \t}\n\t \tContainer.emptyContainer();\n\t }", "public PickBounds() {\n\tbounds = null;\n }", "private void removeArea() {\n \t\tthis.set.remove( this.area );\n \t\tthis.finish();\n \t}", "void unsetLegs();", "public Set<T> getRanges();", "public void removePlaces(){\n List<Place> copies = new ArrayList<>(places);\n for(Place p : copies){\n p.reset();\n }\n }", "@Override\r\n\tpublic LogicalValue removeRange(int min, int max)\r\n\t\t\tthrows NonRemovableRangeException {\r\n\t\tthrow new NonRemovableRangeException(\r\n\t\t\t\t\"No portion of a pointer may be eliminated\");\r\n\t}", "public abstract void clearAllSelections();", "public void removeIntentionTypeReferences(long typeId)\n\t{\n\t\tfor (CIntentionCell cell : cells.values())\n\t\t{\n\t\t\tif (cell.getIntentionTypeId() == typeId)\n\t\t\t{\n\t\t\t\tcell.clearIntentionType();\n\t\t\t}\n\t\t}\n\t}", "@attribute(value = \"\", required = false, defaultValue=\"false\")\r\n\tpublic void removeAll() {\r\n\t\tcombo.removeAll();\r\n\t}" ]
[ "0.7360077", "0.61801875", "0.5847832", "0.5661473", "0.5621461", "0.55581295", "0.5554355", "0.5488041", "0.5460188", "0.5420117", "0.54081494", "0.5383551", "0.5225463", "0.5220431", "0.51911056", "0.51768285", "0.5176044", "0.51737386", "0.51707894", "0.5165224", "0.51416844", "0.5129496", "0.5129496", "0.51193714", "0.51193714", "0.51193714", "0.51193714", "0.51094455", "0.50996405", "0.5097784", "0.50914544", "0.5079189", "0.5072726", "0.50719", "0.50719", "0.50719", "0.50719", "0.50719", "0.50719", "0.50719", "0.50719", "0.50719", "0.50719", "0.50719", "0.50719", "0.5061717", "0.5059346", "0.5055044", "0.5044605", "0.50335974", "0.5024227", "0.5024227", "0.5024227", "0.5024227", "0.5024227", "0.5024227", "0.50214666", "0.50173473", "0.5012163", "0.5012163", "0.5012163", "0.5012163", "0.5012163", "0.5012163", "0.5011332", "0.5007963", "0.5003613", "0.5001789", "0.49953708", "0.49888518", "0.4981359", "0.49775222", "0.49664092", "0.49605882", "0.49569836", "0.49561402", "0.49499482", "0.4943136", "0.4941367", "0.49263394", "0.4924961", "0.4923268", "0.49226695", "0.49108946", "0.48892555", "0.48883", "0.48747623", "0.48746568", "0.48710325", "0.48703858", "0.48692614", "0.48658827", "0.486232", "0.48577884", "0.48564607", "0.48494712", "0.4844746", "0.48444003", "0.4841251", "0.48399326" ]
0.7560998
0
Gets all the objects of type "powertype range" previously added to the collection of the current object. Additions and removals of elements to and from the returned collection do not change the state of current object (i.e. the returned collection is a copy of the internal one of the current object). However, if an element contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the returned collections share references to the same objects).
Collection<Generalization> getPowertypeRanges();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CollectionRange createCollectionRange();", "public Set<T> getRanges();", "public List<Range> getRanges() {\n // Lazy initialization with double-check.\n List<Range> r = this.ranges;\n if (r == null) {\n synchronized (this) {\n r = this.ranges;\n if (r == null) {\n this.ranges = r = new CopyOnWriteArrayList<Range>();\n }\n }\n }\n return r;\n }", "void addPowertypeRange(Generalization powertypeRange);", "<C> CollectionRange<C> createCollectionRange();", "@Override\n\tpublic List<IRange> getRangeList() {\n\t\treturn null;\n\t}", "void clearPowertypeRanges();", "@Override\n public List<Bound> getBounds() {\n return Collections.unmodifiableList(bounds);\n }", "ImmutableList<SchemaOrgType> getTypicalAgeRangeList();", "public static OntClass getUsefulRange(OntProperty p)\n\t{\n\t\tif (p.getRange() == null)\n\t\t\treturn getDefaultRange(p);\n\t\t\n\t\tSet<OntClass> ancestors = new HashSet<OntClass>();\n\t\tList<OntClass> range = new ArrayList<OntClass>();\n\t\tfor (Iterator<? extends OntResource> i = p.listRange(); i.hasNext(); ) {\n\t\t\tOntResource r = (OntResource)i.next();\n\t\t\tif (r.isClass()) {\n\t\t\t\tOntClass c = r.asClass();\n\t\t\t\trange.add(c);\n\t\t\t\t\n\t\t\t\t/* TODO does listSuperClasses() return all ancestors in all reasoners,\n\t\t\t\t * or just in Jena? also, do any reasoners return the class itself?\n\t\t\t\t * Either of those will be a problem...\n\t\t\t\t */\n\t\t\t\tfor (Iterator<? extends OntClass> j = c.listSuperClasses(); j.hasNext(); ) {\n\t\t\t\t\tancestors.add(j.next());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tlog.debug(\"range before pruning is \" + range);\n\t\tlog.debug(\"ancestors to prune are \" + ancestors);\n\t\tfor (Iterator<OntClass> i = range.iterator(); i.hasNext(); ) {\n\t\t\tOntClass c = i.next();\n\t\t\tif (ancestors.contains(c))\n\t\t\t\ti.remove();\n\t\t}\n\t\t\n\t\tif (range.size() > 1) {\n\t\t\tString unionUri = p.getURI().concat(\"-range\");\n\t\t\tlog.debug(String.format(\"creating union class %s from %s\", unionUri, range));\n\t\t\tOntModel model = p.getOntModel();\n\t\t\tRDFList unionList = model.createList();\n\t\t\tfor (OntClass c: range) {\n\t\t\t\tunionList = unionList.with(c);\n\t\t\t}\n\t\t\treturn model.createUnionClass(unionUri, unionList);\n\t\t} else if (range.size() == 1) {\n\t\t\tlog.debug(\"pruned range to single class \" + range);\n\t\t\treturn range.get(0);\n\t\t} else {\n\t\t\treturn getDefaultRange(p);\n\t\t}\n\t}", "private QARange cloneThis(){\n QARange retval = new QARange();\n retval.setName(this.getName());\n retval.setCardTypes(this.getCardTypes());\n retval.setCustom(this.getCustom());\n if (retval.getRangeValues()==null){\n retval.setRangeValues(new RealmList<QARangeValue>());\n }\n\n for (QARangeValue val: getRangeValues()) {\n retval.getRangeValues().add(val);\n }\n for (String cardType : getSupportedCardList()){\n retval.getSupportedCardList().add(cardType);\n }\n return retval;\n }", "public List<MaintenanceWindowTimeRange> timeRanges() {\n return this.timeRanges;\n }", "boolean removePowertypeRange(Generalization powertypeRange);", "public SetOfRanges() {\n RangeSet = new Vector();\n }", "private List<E> snapshot() {\n\t\tList<E> list = Lists.newArrayListWithExpectedSize(size());\n\t\tfor (Multiset.Entry<E> entry : entrySet()) {\n\t\t\tE element = entry.getElement();\n\t\t\tfor (int i = entry.getCount(); i > 0; i--) {\n\t\t\t\tlist.add(element);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "public ArrayList<Range> getCompRange()\r\n\t{\r\n\t\tArrayList<Panel> known = new ArrayList<Panel>();\r\n\t\tfor(int i = 0; i<newGame.getCompHandLength(); i++)\r\n\t\t{\r\n\t\t\tif(newGame.getCompHand().getPanel(i).isFlipped())\r\n\t\t\t{\r\n\t\t\t\tknown.add(newGame.getCompHand().getPanel(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0; i<newGame.getUserHandLength(); i++)\r\n\t\t{\r\n\t\t\tif(newGame.getUserHand().getPanel(i).isFlipped())\r\n\t\t\t{\r\n\t\t\t\tknown.add(newGame.getUserHand().getPanel(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn(ranges(newGame.getCompHand(),known,false));\r\n\t}", "List<Videogioco> doRetriveVideogiocoAllRange(int min, int max);", "public List<Object> getValueOrRange() {\n if (valueOrRange == null) {\n valueOrRange = new ArrayList<>();\n }\n return this.valueOrRange;\n }", "@Override\r\n public void addRangeClass(AgeClass rgCls)\r\n {\n \r\n range.add(rgCls);\r\n }", "public Range[] getRanges() {\n return (Range[]) ranges.toArray(new Range[ranges.size()]);\n }", "public double[] getRange() \n{\n\treturn range;\n}", "protected static List<Critter> getPopulation() {\r\n ArrayList<Critter> critterList = new ArrayList<Critter>();\r\n //iterator through the keys in the population hash map\r\n Iterator<String> populationIterator = population.keySet().iterator();\r\n while(populationIterator.hasNext()) {\r\n \tString coord = populationIterator.next();\r\n \t//iterator through the critters in a key in a hash map\r\n \tIterator<Critter> positionIterator = population.get(coord).iterator();\r\n \twhile(positionIterator.hasNext()) {\r\n \t\tCritter critt = positionIterator.next();\r\n \t\t//add the critters to the critter population\r\n \t\tcritterList.add(critt);\r\n \t}\r\n }\r\n \r\n return critterList;\r\n }", "public double[] getRange();", "@Override\n public final SortedSet<Node<N>> getWells() {\n return new Wells(this);\n }", "public Object readResolve() {\n if (this.ranges.isEmpty()) {\n return ImmutableRangeSet.of();\n }\n if (this.ranges.equals(ImmutableList.of(Range.all()))) {\n return ImmutableRangeSet.all();\n }\n return new ImmutableRangeSet(this.ranges);\n }", "public List<Room> getRooms(){\n ArrayList<Room> returnedList = (ArrayList<Room>) rooms;\n return (ArrayList<Room>) returnedList.clone();\n }", "Range createRange();", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new IllegalArgumentException();\n if (root == null) return new ArrayList<>();\n\n return rangeSubMethod(rect, root);\n }", "public Collection getGradeRanges() {\n\t\treturn gradeRangeMap.keySet();\n\t}", "NavigableSet<V> rW() {\n return (NavigableSet) super.rW();\n }", "public List<Tile> getOwnedTiles() {\n return new ArrayList<Tile>(ownedTiles);\n }", "@Override\r\n\tpublic ArrayList<Cell> behaviorClone() {\r\n\t\tenergy = (energy-20)/2;\r\n\t\tmass = mass/2;\r\n\t\tArrayList<Cell> newCell = new ArrayList<Cell>();\r\n\t\tnewCell.add(new Grazer(petri, rng, x, y, xVelocity, yVelocity, mass, energy));\r\n\t\treturn newCell;\r\n\t}", "public abstract ucar.array.RangeIterator getRangeIterator();", "public Iterable<Point2D> range(RectHV rect) {\n SET<Point2D> result = new SET<Point2D>();\n if (root == null) {\n return result;\n }\n\n range(root, rect, result);\n return result;\n }", "public double[] getRange(){\n\treturn RANGE;\n }", "abstract public Range createRange();", "public JsonArray getRangeInfo() {\r\n\t\t\r\n\t\tif (restClient == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\t\r\n\t\tJsonArray arrayIPv4 = null;\r\n\t\tJsonArray arrayIPv6 = null;\r\n\t\t\r\n\t\t// IPv4 Range\r\n\t\t{\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\r\n\t\t\tsb.append(\"/wapi/v1.0/range\");\r\n\t\t\tsb.append(\"?_return_type=json\");\r\n\t\t\tsb.append(\"&_return_fields=network,network_view,start_addr,end_addr,comment,disable\");\r\n\t\t\t\r\n\t\t\tString value = restClient.Get(sb.toString(), null);\r\n\t\t\t\r\n\t\t\tif (value == null)\r\n\t\t\t\treturn null;\r\n\t\t\t\r\n\t\t\t// Change unescape-unicode\r\n\t\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\t\r\n\t\t\tif (value != null) {\r\n\t\t\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\t\tarrayIPv4 = JsonUtils.parseJsonArray(value);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// IPv6 Range\r\n\t\t{\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\r\n\t\t\tsb.append(\"/wapi/v1.0/ipv6range\");\r\n\t\t\tsb.append(\"?_return_type=json\");\r\n\t\t\tsb.append(\"&_return_fields=network,network_view,start_addr,end_addr,comment,disable\");\r\n\t\t\t\r\n\t\t\tString value = restClient.Get(sb.toString(), null);\r\n\t\t\t\r\n\t\t\tif (value == null)\r\n\t\t\t\treturn null;\r\n\t\t\t\r\n\t\t\t// Change unescape-unicode\r\n\t\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\t\r\n\t\t\tif (value != null) {\r\n\t\t\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\t\tarrayIPv6 = JsonUtils.parseJsonArray(value);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Merge\r\n\t\tJsonArray array = new JsonArray();\r\n\t\t\r\n\t\tif (arrayIPv4 != null)\r\n\t\t\tarray.addAll(arrayIPv4);\r\n\t\t\r\n\t\tif (arrayIPv6 != null)\r\n\t\t\tarray.addAll(arrayIPv6);\r\n\t\t\r\n\t\treturn array;\r\n\t}", "private List<Multiset.Entry<E>> snapshot() {\n\t\t\tList<Multiset.Entry<E>> list = Lists\n\t\t\t\t\t.newArrayListWithExpectedSize(size());\n\t\t\tfor (Multiset.Entry<E> entry : this) {\n\t\t\t\tlist.add(entry);\n\t\t\t}\n\t\t\treturn list;\n\t\t}", "public DateRange getDateRange();", "public double getRange(){\n\t\treturn range;\n\t}", "public Set<Ticket> getTickets() { return Set.copyOf(tickets); }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) {\n throw new IllegalArgumentException();\n }\n List<Point2D> list = new LinkedList<>();\n range(rect, new RectHV(0.0, 0.0, 1.0, 1.0), list, this.root);\n return list;\n }", "@Override\n\tpublic List<StockinExamVO> getInbounds() throws RemoteException {\n\t\tList<StockinExamVO> l=new ArrayList<StockinExamVO>();\n\t\tl.add(new StockinExamVO(\"1\",1,new CommodityLocation(1,1,1,1),City.Beijing));\n\t\treturn l;\n\t}", "@Override\r\n public NumericObjectArrayList makeDeepCopy() {\r\n NumericObjectArrayList list = new NumericObjectArrayList();\r\n for (int i = 0; i < this.getCount(); i++) {\r\n try {\r\n list.insert(i, this.getValueAt(i));\r\n } catch (IndexRangeException ex) {\r\n //Shouldn't happen\r\n }\r\n }\r\n return list;\r\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new NullPointerException();\n TreeSet<Point2D> inRangeSet = new TreeSet<>();\n for (Point2D point : pointSet) {\n if (rect.contains(point)) {\n inRangeSet.add(point);\n }\n }\n return inRangeSet;\n }", "public static ArrayList<Cell> getReacheableCellsInRange(Cell cell_origin, int range) {\n ArrayList<Cell> cells = new ArrayList<>();\n LinkedList<Cell> active_queue = new LinkedList<>();\n LinkedList<Cell> inactive_queue = new LinkedList<>();\n int depth = 0;\n cells.add(cell_origin);\n active_queue.add(cell_origin);\n // Invariant : Distance to all cells in the active queue is depth\n while (depth < range) {\n while (!active_queue.isEmpty()) {\n Cell c = active_queue.poll();\n for (Cell other : c.getAdjacentCells()) {\n if(other!=null){\n if (!cells.contains(other) && other.isWalkable()) {\n inactive_queue.add(other);\n cells.add(other);\n }\n }\n }\n }\n depth++;\n\n active_queue = inactive_queue;\n inactive_queue = new LinkedList<>();\n }\n return cells;\n }", "public Iterable<Point2D> range(RectHV rect) {\n SET<Point2D> point_list = new SET<Point2D>();\n rangesearch(root, rect, point_list);\n return point_list;\n }", "public ArrayList <PowerUp> getPowerUps (int low, int high, int h, int w) {\n createPowerUps (low, high, h , w);\n return powerUps;\n }", "public DeclaredTypeListNode getBounds()throws ClassCastException;", "public List<B> getBins() {\n return ImmutableList.copyOf(bins);\n }", "public AllowedValues(final RangeType range){\n \n valueOrRange = new ArrayList<>();\n valueOrRange.add(range);\n }", "@Override @Basic\r\n\tpublic List<SquareDungeon> getLevelsAndShafts() {\r\n\t\tArrayList<SquareDungeon> res = new ArrayList<SquareDungeon>(1);\r\n\t\tres.add(this);\r\n\t\treturn res;\r\n\t}", "public List<TCSObjectReference<Point>> getHops() {\n return new LinkedList<>(hops);\n }", "public Iterable<Point2D> range(RectHV rect) {\n\n\t\tif (rect == null)\n\t\t\tthrow new NullPointerException(\"Rectangle can not be null\");\n\n\t\tQueue<Point2D> rangeQueue = new Queue<Point2D>();\n\t\trange(rect, rangeQueue, root);\n\t\treturn rangeQueue;\n\n\t}", "public List<Cell> getCells() \n {\n return Collections.unmodifiableList(cells);\n }", "public Iterable<Point2D> range(RectHV rect) {\n TreeSet<Point2D> ret = new TreeSet<Point2D>();\n for (Point2D p: mPoints) {\n if (rect.contains(p)) {\n ret.add(p);\n }\n }\n return ret;\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new IllegalArgumentException(\"range: RectHV is null\");\n Queue<Point2D> q = new Queue<>();\n rangeSearch(root, rect, q);\n return q;\n }", "public Range onsetRange() {\n return getObject(Range.class, FhirPropertyNames.PROPERTY_ONSET_RANGE);\n }", "public Collection<GObject> getObjects();", "public java.util.List<referential.store.v2.TimeRange> getSaturdayTimeRanges() {\n return saturdayTimeRanges;\n }", "public List<BaseCriteria> getOredBaseCriteria() {\n List<com.onboard.domain.mapper.model.common.BaseCriteria> list = new ArrayList<com.onboard.domain.mapper.model.common.BaseCriteria>();\n list.addAll(oredCriteria);\n return list;\n }", "static List<Range<Long>> getRanges(Collection<Long> fullPulses) {\n checkNotNull(fullPulses, \"fullPulses was null\");\n\n List<Long> sortedPulses = fullPulses.stream().sorted().collect(toList());\n\n Optional<Long> first = sortedPulses.stream().findFirst();\n if (!first.isPresent()) {\n return emptyList();\n }\n\n Long bottomOfRange = first.get();\n if (sortedPulses.size() == 1) {\n return singletonList(singleton(bottomOfRange));\n }\n\n List<Range<Long>> foundRanges = new ArrayList<>();\n\n Long lastPulse = bottomOfRange;\n\n for (Long pulse : sortedPulses) {\n if (isaSignificantGapBetweenPulses(lastPulse, pulse)) {\n // We have a range\n foundRanges.add(getRange(bottomOfRange, lastPulse));\n\n bottomOfRange = pulse;\n }\n lastPulse = pulse;\n }\n\n if (bottomOfRange.equals(lastPulse)) {\n foundRanges.add(singleton(bottomOfRange));\n } else {\n foundRanges.add(getRange(bottomOfRange, lastPulse));\n }\n\n return ImmutableList.copyOf(foundRanges);\n }", "int countPowertypeRanges();", "public ArrayList<PowerupClient> getPowerups() {\n return powerups;\n }", "public Iterable<Point2D> range(RectHV rect) {\n ArrayList<Point2D> returnArray = new ArrayList<Point2D>();\n if (rect == null) {\n throw new IllegalArgumentException(\"rect input is null\");\n }\n for (Point2D i : pointsSet) {\n if (rect.contains(i))\n returnArray.add(i);\n }\n return returnArray;\n }", "public Iterable<Point2D> range(RectHV rect)\n {\n Stack<Point2D> pointsInRect = new Stack<Point2D>();\n range(root, rect, pointsInRect);\n return pointsInRect;\n }", "protected Set<NewType> getNewSubTypes() {\r\n\t\tfinal Set<NewType> subTypes = new HashSet<NewType>();\r\n\r\n\t\tfinal GeneratorContext context = this.getGeneratorContext();\r\n\t\tfinal Iterator<NewType> newTypesIterator = context.getNewTypes().iterator();\r\n\r\n\t\twhile (newTypesIterator.hasNext()) {\r\n\t\t\tfinal NewType newType = newTypesIterator.next();\r\n\t\t\tif (newType.getSuperType() == this) {\r\n\t\t\t\tsubTypes.add(newType);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn subTypes;\r\n\t}", "@Override // com.google.common.collect.ImmutableSortedSet, com.google.common.collect.ImmutableSet, com.google.common.collect.ImmutableCollection\n public Object writeReplace() {\n return new AsSetSerializedForm(ImmutableRangeSet.this.ranges, this.domain);\n }", "@Override\n\tpublic int getRange() {\n\t\treturn range;\n\t}", "Collection<? extends Equipment> getUses();", "protected static List<Critter> getPopulation() {\n return population;\n }", "public ResultSet getItemRangeResultSet() {\n\t\treturn this.itemRangeResultSet;\n\t}", "@Override\n\tpublic void visit(OWLObjectPropertyRangeAxiom axiom) {\n\t\taddFact(RewritingVocabulary.RANGE, //\n\t\t\t\taxiom.getProperty().asOWLObjectProperty().getIRI(),//\n\t\t\t\taxiom.getRange().asOWLClass().getIRI());\n\n\t}", "private List<Room> addRooms() {\n List<Room> rooms = new ArrayList<>();\n int numRooms = RandomUtils.uniform(random, MINROOMNUM, MAXROOMNUM);\n int playerRoomNum = RandomUtils.uniform(random, 0, numRooms);\n for (int i = 0; i < numRooms; i++) {\n rooms.add(addRandomRoom(random));\n if (i == playerRoomNum) {\n setPlayerInitialPosition(rooms, playerRoomNum);\n }\n }\n return rooms;\n }", "boolean containsPowertypeRange(Generalization powertypeRange);", "public Iterable<Point2D> range(RectHV rect) {\n checkNull(rect);\n LinkedList<Point2D> pointList = new LinkedList<Point2D>();\n\n range(rect, root, pointList);\n\n return pointList;\n }", "public Iterable<Point2D> range(RectHV rect) {\n Queue<Point2D> pointsInRect = new Queue<Point2D>();\n range(root, rect, pointsInRect);\n return pointsInRect;\n }", "@Override\r\n public void getRange(ArrayList<Piece> pieces){\r\n this.range.clear();\r\n int pieceX = this.getX(); int pieceY = this.getY(); // X and Y coordinates for the king piece\r\n\r\n // getPiece: 0 = empty; 1 = same color; 2 = opposite color\r\n //Up\r\n if (this.getPiece(pieceX, pieceY+1, pieces) == 0 || this.getPiece(pieceX, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Up-right\r\n if (this.getPiece(pieceX+1, pieceY+1, pieces) == 0 || this.getPiece(pieceX+1, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Right\r\n if (this.getPiece(pieceX+1, pieceY, pieces) == 0 || this.getPiece(pieceX+1, pieceY, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY}); // Return int[] of tested coordinates\r\n\r\n //Down-right\r\n if (this.getPiece(pieceX+1, pieceY-1, pieces) == 0 || this.getPiece(pieceX+1, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Down\r\n if (this.getPiece(pieceX, pieceY-1, pieces) == 0 || this.getPiece(pieceX, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Down-left\r\n if (this.getPiece(pieceX-1, pieceY-1, pieces) == 0 || this.getPiece(pieceX-1, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Left\r\n if (this.getPiece(pieceX-1, pieceY, pieces) == 0 || this.getPiece(pieceX-1, pieceY, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY}); // Return int[] of tested coordinates\r\n\r\n //Up-left\r\n if (this.getPiece(pieceX-1, pieceY+1, pieces) == 0 || this.getPiece(pieceX-1, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Castling\r\n for (Piece piece : pieces) {\r\n if (piece instanceof Rook) {\r\n if (piece.getColor() == this.getColor()) {\r\n if (validCastling(pieces, (Rook)piece)) {\r\n int targetX = (piece.getX() < getX()) ? (this.getX() - 2) : (this.getX() + 2);\r\n this.range.add(new int[] {targetX, this.getY()});\r\n }\r\n }\r\n }\r\n }\r\n }", "public java.util.List<referential.store.v2.TimeRange> getSaturdayTimeRanges() {\n return saturdayTimeRanges;\n }", "int getRange();", "Collection<? extends Object> getFullHadith();", "public InventoryRange getGrid() {\n \t\treturn this.grid;\n \t}", "public Range ageRange() {\n return getObject(Range.class, FhirPropertyNames.PROPERTY_AGE_RANGE);\n }", "protected double[] getExtremes()\n {\n if (this.extremes != null)\n return this.extremes;\n\n if (this.tiles == null || tiles.size() == 0)\n return this.extremes = new double[] {this.elevationModel.getMinElevation(),\n this.elevationModel.getMaxElevation()};\n\n this.extremes = WWUtil.defaultMinMix();\n\n for (ElevationTile tile : this.tiles)\n {\n BufferWrapper elevations = tile.getElevations();\n\n int len = elevations.length();\n if (len == 0)\n return null;\n\n for (int i = 0; i < len; i++)\n {\n this.elevationModel.determineExtremes(elevations.getDouble(i), this.extremes);\n }\n }\n\n return new double[] {this.extremes[0], this.extremes[1]}; // return a defensive copy\n }", "public HashSet<ElitePower> getPowers() {\n return powers;\n }", "public ArrayList<Guppy> spawn() {\n if (!this.isFemale) { return null; }\n if (this.ageInWeeks < MINIMUM_SPAWNING_AGE) { return null; }\n if (Double.compare(this.randomNumberGenerator.nextDouble(), SPAWN_CHANCE) > 0) { return null; }\n\n ArrayList<Guppy> babyGuppies = new ArrayList<>();\n int babiesAmount = this.randomNumberGenerator.nextInt(MAX_BABIES_SPAWN_AMOUNT + 1);\n for (int i = 0; i < babiesAmount; i++) {\n babyGuppies.add(new Guppy(this.genus,\n this.species,\n 0,\n this.randomNumberGenerator.nextBoolean(),\n this.generationNumber + 1,\n (this.healthCoefficient + 1) / 2));\n }\n return babyGuppies;\n }", "org.hl7.fhir.ObservationReferenceRange addNewReferenceRange();", "@Override\r\n\tpublic float[] getRanges() {\r\n\t\tsp.fetchSample(sample, 0);\r\n\r\n\t\treturn sample;\r\n\t}", "public ImmutableSortedSet<C> subSet(Range<C> range) {\n return ImmutableRangeSet.this.subRangeSet((Range) range).asSet((DiscreteDomain<C>) this.domain);\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) {\n throw new IllegalArgumentException();\n }\n SET<Point2D> result = new SET<Point2D>();\n for (Point2D point : points) {\n if (rect.contains(point))\n result.add(point);\n }\n return result;\n }", "public List<Access> getTypeBounds() {\n return getTypeBoundList();\n }", "protected static List<Critter> getPopulation() {\n\t\t\treturn population;\n\t\t}", "protected static List<Critter> getPopulation() {\n\t\t\treturn population;\n\t\t}", "public Iterable<Point2D> range(RectHV rect) \n\t {\n\t\t if(rect==null)\n\t\t\t throw new java.lang.NullPointerException();\n\t\t LinkedQueue<Point2D> insidePoints = new LinkedQueue<Point2D>();\n\t\t range(root,rect.xmin(),rect.ymin(),rect.xmax(),rect.ymax(),insidePoints,true);\n\t\t return insidePoints;\n\t }", "public int getRange() {\n return mRange;\n }", "public RealRange getReferenceRange(RealRange referenceRange);", "public abstract Type createRangeType(ReferenceType bottom);", "Collect getColl();", "public PawnIterator getPawns(){\n\t\treturn new PawnIterator(pawns);\n\t}", "public Iterator<WellSetPOJOBigDecimal> iterator() {\n return this.wellsets.iterator();\n }" ]
[ "0.60166353", "0.5924132", "0.5816025", "0.5678444", "0.5574977", "0.5541368", "0.5517575", "0.54525703", "0.5444686", "0.5348181", "0.5315629", "0.52900875", "0.52761817", "0.52551883", "0.52411586", "0.516199", "0.51531994", "0.5115094", "0.51140827", "0.510389", "0.5100382", "0.5053629", "0.5051554", "0.50317466", "0.5023818", "0.50115097", "0.4999687", "0.49913037", "0.49886066", "0.49821168", "0.4936531", "0.4927196", "0.49038514", "0.489581", "0.4879862", "0.4851604", "0.48356614", "0.4830969", "0.48282045", "0.48224616", "0.4820116", "0.4819673", "0.4816268", "0.48047608", "0.48021755", "0.47897512", "0.477983", "0.47704554", "0.47703913", "0.47482413", "0.47403455", "0.4738802", "0.4736777", "0.47294846", "0.47266895", "0.47154725", "0.4714951", "0.47009513", "0.46978286", "0.46926424", "0.46863857", "0.4686112", "0.46771064", "0.4676753", "0.4674133", "0.4667237", "0.46626318", "0.46623817", "0.46620548", "0.46480033", "0.46476436", "0.4642257", "0.46279952", "0.4627849", "0.4620699", "0.46178663", "0.46165696", "0.4615544", "0.46100348", "0.46081087", "0.4608074", "0.4605241", "0.460434", "0.45988607", "0.45985368", "0.4595478", "0.4590083", "0.45887762", "0.45855835", "0.45828992", "0.45828483", "0.4582569", "0.4582569", "0.457421", "0.45682457", "0.45606345", "0.4557699", "0.45566514", "0.4555006", "0.45546278" ]
0.6680433
0
Checks if a powertype range is contained in the collection of the current object.
boolean containsPowertypeRange(Generalization powertypeRange);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean containsRange(Range range) {\n/* 317 */ if (range == null) {\n/* 318 */ return false;\n/* */ }\n/* 320 */ return (containsLong(range.getMinimumLong()) && containsLong(range.getMaximumLong()));\n/* */ }", "@Override\r\n public boolean checkElements(SequenceConstructionExpression owner) {\r\n SequenceRange self = this.getSelf();\r\n Expression rangeLower = self.getRangeLower();\r\n Expression rangeUpper = self.getRangeUpper();\r\n ElementReference rangeLowerType = rangeLower == null? null: rangeLower.getType();\r\n ElementReference rangeUpperType = rangeUpper == null? null: rangeUpper.getType();\r\n return (rangeLowerType == null || rangeLowerType.getImpl().isInteger()) && \r\n (rangeUpperType == null || rangeUpperType.getImpl().isInteger());\r\n }", "public isWithin() {\n\t\tsuper();\n\t}", "public boolean overlapsRange(Range range) {\n/* 334 */ if (range == null) {\n/* 335 */ return false;\n/* */ }\n/* 337 */ return (range.containsLong(this.min) || range.containsLong(this.max) || containsLong(range.getMinimumLong()));\n/* */ }", "Collection<? extends WrappedIndividual> getIsPartOf();", "boolean HasRange() {\r\n\t\treturn hasRange;\r\n\t}", "boolean removePowertypeRange(Generalization powertypeRange);", "public boolean isBounded() {\n\t\treturn true;\n\t}", "boolean isIncludeBounds();", "boolean hasIncomeRange();", "public boolean isWhitelisted(Range<Integer> range) {\n return this.meta.encloses(range);\n }", "public boolean equals(Object obj) {\n/* 354 */ if (obj == this) {\n/* 355 */ return true;\n/* */ }\n/* 357 */ if (!(obj instanceof LongRange)) {\n/* 358 */ return false;\n/* */ }\n/* 360 */ LongRange range = (LongRange)obj;\n/* 361 */ return (this.min == range.min && this.max == range.max);\n/* */ }", "private boolean isRangeValid() {\n\n\t\tboolean valid = true;\n\n\t\tif (getRange() == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttry {\n\t\t\tLong.parseLong(getRange());\n\t\t} catch (NumberFormatException nfe) {\n\t\t\tvalid = false;\n\t\t}\n\n\t\tvalid = valid || getRange().compareToIgnoreCase(CCLConstants.INDIRECT_RANGE_ALL) == 0;\n\n\t\treturn valid;\n\t}", "public default boolean activeFromObject(SpellData dataIn, World worldIn){ return getRangeType() != RangeType.PERSONAL; }", "private boolean hasValidBounds() {\n\n\n\n return false;\n }", "public boolean isRange() {\r\n return range;\r\n }", "public int isInBounds(T a);", "private static boolean isInBounds(Location location, Vector3i min, Vector3i max) {\n return location.getX() >= min.x && location.getX() < max.x && location.getY() >= min.y\n && location.getY() < max.y && location.getZ() >= min.z && location.getZ() < max.z;\n }", "boolean isBound();", "boolean hasIsPartOf();", "public boolean subset(ZYSet<ElementType> potentialSubset){\n for(ElementType e:potentialSubset){\n if(!this.contains(e)){\n return false;\n }\n }\n return true;\n }", "public boolean outOfBounds()\n {\n if((lastpowerUp.equals(\"BLUE\") || lastpowerUp.equals(\"RAINBOW\")) && powerupTimer > 0)\n {\n return false;\n }\n \n if(head.getA() < 150 || head.getA() >= 1260)\n return true;\n else if(head.getB() <150 || head.getB() >=630)\n return true;\n else \n return false;\n \n \n }", "public boolean inBounds(Actor a)\n {\n boolean inX = Math.abs(a.getXPos()) < levelWidth/2;\n boolean inY = Math.abs(a.getYPos()) < levelHeight/2;\n return inX && inY;\n }", "@Override\r\n\t public boolean equals(Object obj) {\n\t Interval inteval = (Interval)obj;\r\n\t return this.getStart().equals(inteval.getStart()) && this.getEnd().equals(inteval.getEnd()) ;\r\n\t }", "public boolean isInBoundaries() {\n\t return Referee.playfield.isInBoundaries(this);\n }", "public boolean canAdd(UnitType unitType) {\n return workPlaces > 0\n && unitType.hasSkill()\n && unitType.getSkill() >= minSkill\n && unitType.getSkill() <= maxSkill;\n }", "Collection<? extends WrappedIndividual> getHasPart();", "private boolean isInSpawnRange(int spawnChance) {\n\t\t\treturn (spawnChance < spawnRangeMax && spawnChance >= spawnRangeMin);\n\t\t}", "@Override\n\tpublic void CheckBounds() {\n\t\t\n\t}", "void addPowertypeRange(Generalization powertypeRange);", "private boolean isInsideValidRange (int value)\r\n\t{\r\n\t\treturn (value > m_lowerBounds && value <= m_upperBounds);\r\n\t}", "boolean hasIncomeRangeView();", "protected boolean isValid() {\n return COLLECTION.getList().contains(this);\n }", "Collection<Generalization> getPowertypeRanges();", "boolean hasDestRange();", "public boolean containsDomainRange(long from, long to) { return true; }", "public boolean whitelist(Range<Integer> range) {\n meta.add(range);\n return isWhitelisted(range);\n }", "public static boolean inRange (Position defPos, Position atkPos, int range) {\n\t\tint defX = defPos.getX();\n\t\tint defY = defPos.getY();\n\t\t\n\t\tint atkX = atkPos.getX();\n\t\tint atkY = atkPos.getY();\n\t\t\n\t\tif (defX -range <= atkX &&\n\t\t\t\tdefX + range >= atkX)\n\t\t{\n\t\t\tif (defY -range <= atkY &&\n\t\t\t\t\tdefY+range >= atkY)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean contains(Type t) {\n\t\treturn true;\n\t}", "@Override\n public boolean inBounds(int x, int y) {\n return x >= 0 && y >= 0 && x < this.bounds.width\n && y < this.bounds.height;\n }", "public boolean inBounds(Rectangle bounds)\n\t{\n\t\treturn bounds.contains(mX, mY);\n\t}", "public boolean inRange(){\n //System.out.println(\"inRange\");\n return Math.abs(GameView.instance.player.position.x - creationPoint.x) < GameView.instance.cameraSize * attackRange;\n }", "public boolean allInRange(int start, int end) {\n \t\tfor (int i=0; i<data.length; i++) {\n \t\t\tint a=data[i];\n \t\t\tif ((a<start)||(a>=end)) return false;\n \t\t}\n \t\treturn true;\n \t}", "private boolean withinRange(Enemy e) {\n \t\tRect r = e.r; //Get the collision box from the \n \t\tPoint rectCenter = new Point((int) r.exactCenterX(), (int) r.exactCenterY());\n \t\tif (Math.abs(center.x - rectCenter.x) <= (e.getSize()/2 + range)) {\n \t\t\tif (Math.abs(center.y - rectCenter.y) <= (e.getSize()/2 + range)) {\n \t\t\t\treturn true;\n \t\t\t}\n \t\t}\n \t\treturn false;\t\n \t}", "@Override\n public boolean isRange() {\n return false;\n }", "private boolean intersects(Circle range) {\n\t\treturn range.intersects(boundary);\n\t}", "private boolean isNumberinRange(double needle, double haystack, double range) {\n return (((haystack - range) < needle) // greater than low bounds\n && (needle < (haystack + range))); // less than upper bounds\n }", "public boolean boundsContains(double[] pt){\n return bounds.contains(pt);\n }", "@Override\n public boolean isInBounds(int row, int col) {\n return row >= 0 && row < grid.length && col >= 0 && col < grid[0].length;\n }", "@Override\n final boolean intersect(Bounds bounds, Point4d pickPos) {\n\treturn bounds.intersect(this.bounds, pickPos);\n }", "boolean findSpecialtyContainers(){\n\t\t\tif (this.receptacle != null)//checks and sees if there's any containers in the location.\n\t\t\t\tfor (int i = 0; i < this.receptacle.size(); i++)\n\t\t\t\t\tif ((this.receptacle.get(i) instanceof SpecialtyContainer))\n\t\t\t\t\t\treturn true;\n\t\t\treturn false;\n\t\t}", "default boolean overlaps(Interval o) {\n return getEnd() > o.getStart() && o.getEnd() > getStart();\n }", "int countPowertypeRanges();", "boolean hasAgeRange();", "private static boolean checkOccurrenceRange(int min1, int max1, int min2, int max2) {\n/* 1159 */ if (min1 >= min2 && (max2 == -1 || (max1 != -1 && max1 <= max2)))\n/* */ {\n/* */ \n/* 1162 */ return true;\n/* */ }\n/* 1164 */ return false;\n/* */ }", "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 }", "@Override\n public boolean equals(Object o) {\n if (this == o)\n return true;\n if (o == null || getClass() != o.getClass())\n return false;\n Range integers = (Range) o;\n return length == integers.length && first == integers.first && last == integers.last && stride == integers.stride;\n }", "@java.lang.Override\n public boolean hasCohortsRange() {\n return cohortsRange_ != null;\n }", "public boolean isCompliedWith(MModelElement modelElement) {\n\n\t\t//The now possible range is All that's no restriction, so I don't need to check this.\n\n\t\t// check base class\n\t\tif (!BaseClasses.objectMatchsType(modelElement, this.getBaseClass())) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn super.isCompliedWith(modelElement);\n\t}", "public static boolean WithinRange(GameObject obj, int compX, int compY)\n\t{\n\t\t//Checks heigh/width and x/y to determine if the value is\n\t\t//over the object.\n\t\tif (compX >= obj.x && //is it too far to the right?\n\t\t\tcompX <= obj.texture.image.getWidth() + obj.x && //is it too far to the left?\n\t\t\tcompY >= obj.y && //is it too low?\n\t\t\tcompY <= obj.texture.image.getHeight() + obj.y ) //is it too high?\n\t\t\t\treturn true; //if none of those, return true.\n\t\treturn false; //else return false.\n\t\t\n\t}", "public DeclaredTypeListNode getBounds()throws ClassCastException;", "private boolean inBounds(int row, int col)\n {\n return ((row >= 0) && (row < NUM_ROWS) &&\n (col >= 0) && (col < NUM_COLS)); \n }", "public boolean hasAncestorOfType( Type type ) {\n return hasAncestorOfType(EnumSet.of(type));\n }", "public boolean canProvidePower(PowerTypes type);", "private boolean isWithinBounds(Point3D point) {\n // Check if point is above min bounds\n if (point.getX() < minBounds.getX() || point.getY() < minBounds.getY() || point.getZ() < minBounds.getZ()) {\n return false;\n }\n // Check if point is below max bounds\n if (point.getX() > maxBounds.getX() || point.getY() > maxBounds.getY() || point.getZ() > maxBounds.getZ()) {\n return false;\n }\n return true;\n }", "public boolean isEveryDayRange() {\n int totalLength = MAX - MIN + 1;\n return isFullRange(totalLength);\n }", "private boolean cell_in_bounds(int row, int col) {\n return row >= 0\n && row < rowsCount\n && col >= 0\n && col < colsCount;\n }", "public static boolean inRange(double lon, double lat) {\n // Coordinates of office and current location in radians\n double lon1 = Math.toRadians(lon);\n double lat1 = Math.toRadians(lat);\n double lon2 = Constants.OFFICE_LONG;\n double lat2 = Constants.OFFICE_LAT;\n\n // Uses the haversine formula to calculate distance\n double deltaLon = Math.abs(lon1 - lon2);\n double deltaLat = Math.abs(lat1 - lat2);\n double num1 = Math.sin(deltaLat/Constants.SQUARE);\n num1 = Math.pow(num1, Constants.SQUARE);\n double num2 = Math.sin(deltaLon/Constants.SQUARE);\n num2 = Math.pow(num2, Constants.SQUARE);\n num2 = num2 * Math.cos(lat1) * Math.cos(lat2);\n double num = num1 + num2;\n num = Math.sqrt(num);\n num = Math.asin(num);\n num *= Constants.SQUARE;\n double dist = num * Constants.RADIUS; \n return (dist <= Constants.MAX); // Compares it to max distance\n }", "private boolean isValid(){\n\n Set<ResourceSingle> checkSet = new HashSet<>();\n return shelves.stream()\n .map(Shelf::getCurrentType)\n .filter(Objects::nonNull)\n .allMatch(checkSet::add);\n }", "public boolean inRange(Number n) {\n return n.compareTo(min) >= 0 && n.compareTo(max) <= 0;\n }", "public boolean showAllOccupationTypes() {\n return occupationTypes.contains(OccupationType.TOIMINNANOHJAAJA);\n }", "private boolean inBounds(int row, int col){\n if (row > -1 && row < 120 && col > -1 && col < 160)\n return true;\n return false;\n }", "private boolean inRange(double num, double low, double high) {\n if (num >= low && num <= high)\n return true;\n\n return false;\n }", "public synchronized boolean isValid() {\n\n\t\treturn isBaseClassValid() && isRangeValid() && super.isValid();\n\t}", "boolean isEquals(Range other);", "Collection<? extends WrappedIndividual> getContains();", "private boolean isBetweenBounds(int x, int y, int[] bounds) {\n return x >= bounds[0] && x <= bounds[2] && y >= bounds[1] && y <= bounds[3];\n }", "private boolean weekendTypeUsed(WeekendType type, ShiftSchedulingProblem problem) {\r\n\t\tfor (Contract contract: problem.contracts()) {\r\n\t\t\tif (contract.getWeekendType() == type) {\r\n\t\t\t\tfor (Employee employee: problem.employees()) {\r\n\t\t\t\t\tif (employee.getContract() == contract)\r\n\t\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}", "public boolean inside(final Point p)\n\t\t{\n\t\t\tif(obj.contains(p))\n\t\t\t\treturn true;\n\t\t\treturn false;\n\t\t}", "@Override // com.google.common.collect.RangeSet, com.google.common.collect.AbstractRangeSet\n public /* bridge */ /* synthetic */ boolean contains(Comparable comparable) {\n return super.contains(comparable);\n }", "private boolean contains(int from1, int to1, int from2, int to2) {\n\t\treturn from2 >= from1 && to2 <= to1;\n\t}", "Collection<? extends Integer> getIsPersonType();", "public static boolean inUseDuringInterval(Facility f, Week w, Time start, Time end)\n {\n Interval comp = new Interval(w, start, end);\n for(Interval i : Database.db.get(f).getFacilityUse().getSchedule().getSchedule().values())\n {\n if(i.timeOverlaps(comp))\n {\n return true;\n }\n }\n return false;\n }", "private boolean isInBounds(float x, float y) {\n\n if (x <= 0 || x >= this.getWidth() || y <= 0 || y >= this.getHeight()) {\n\n return false;\n }\n return new RectF(0, 0, this.getWidth(), this.getHeight())\n .contains(x, y);\n }", "@Override\n\t\tpublic boolean contains(Object o) {\n\t\t\treturn false;\n\t\t}", "public boolean isLongRange() {\n\t\treturn this.ordinal() >= 2 && this.ordinal() <= 4;\n\t}", "public boolean validateFullBounds() {\n\t\tcomparisonBounds = getUnionOfChildrenBounds(comparisonBounds);\n\t\n\t\tif (!cachedChildBounds.equals(comparisonBounds)) {\n\t\t\tsetPaintInvalid(true);\n\t\t}\n\t\treturn super.validateFullBounds();\t\n\t}", "public boolean validateFullBounds() {\n\t\tcomparisonBounds = getUnionOfChildrenBounds(comparisonBounds);\n\t\n\t\tif (!cachedChildBounds.equals(comparisonBounds)) {\n\t\t\tsetPaintInvalid(true);\n\t\t}\n\t\treturn super.validateFullBounds();\t\n\t}", "@Override\n public boolean isValid() {\n return (27 - Inventory.getAll().length <= Inventory.find(\"Soft clay\").length)\n || (Inventory.find(\"Soft clay\").length < 1 || Inventory\n .find(\"Astral rune\").length < 1)\n && !Banking.isBankScreenOpen()\n && GlassBlower.antiban.canInteractObject();\n }", "@VisibleForTesting\n public boolean appliesToUidRange(@Nullable UidRange requiredRange) {\n if (null == mUids) return true;\n for (UidRange uidRange : mUids) {\n if (uidRange.containsRange(requiredRange)) {\n return true;\n }\n }\n return false;\n }", "public boolean isRange(int low, int high, int threshold)\n\t{\n\t\tint num = 0;\n\n\t\tfor (int i = low; i < high + 1; i++)\n\t\t{\n\t\t\tif (isOnset(i))\n\t\t\t{\n\t\t\t\tnum++;\n\t\t\t}\n\t\t}\n\n\t\treturn num >= threshold;\n\t}", "public boolean contains(int type) {\n\t\tint n = check(type);\n\t\treturn n >= 64 ? (n1 & mask(n - 64)) != 0L : (n0 & mask(n)) != 0L;\n\t}", "public boolean inRange(Vector v) {\r\n\t\tdouble w = v.get(0);\r\n\t\tdouble x = v.get(1);\r\n\t\tdouble y = v.get(2);\r\n\t\tdouble z = v.get(3);\r\n\t\tboolean a = (x+w>1)&&(x+1>w)&&(w+1>x);\r\n\t\tboolean b = (y+z>1)&&(y+1>z)&&(z+1>y);\r\n\t\treturn a&&b;\r\n\t}", "public void checkBounds(Scope scope) {\n}", "@Override\n\tpublic boolean contains(Object o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean contains(Object o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean contains(Object o) {\n\t\treturn false;\n\t}", "@Override\n public final boolean contains(final Object o) {\n return Collections.exists(getComponents(),\n new Assertion<PriorityList<? extends _PriorityElement_>>() {\n public boolean isTrueFor(PriorityList<? extends _PriorityElement_> s) {\n return s.contains(o);\n }\n });\n }", "@Override\n\tpublic boolean contains(Rectangle2D arg0) {\n\t\treturn false;\n\t}", "protected boolean checkPoiInside( CFWPoint poiBegI, CFWPoint poiEndI)\t{\r\n\t\t//[begin point in area 1] unintersect: 1,2,3,7,8\r\n\t\t//[begin point in area 2] unintersect: 1,2,3\r\n\t\t//[begin point in area 3] unintersect: 1,2,3,4,5\r\n\t\t//[begin point in area 4] unintersect: 3,4,5\r\n\t\t//[begin point in area 5] unintersect: 3,4,5,6,7\r\n\t\t//[begin point in area 6] unintersect: 5,6,7\r\n\t\t//[begin point in area 7] unintersect: 5,6,7,8,1\r\n\t\t//[begin point in area 8] unintersect: 7,8,1\r\n\t\t//[begin point in area 9] unintersect: 9\r\n\t\tif(isInsideArea( 1, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 2, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 8, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 2, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 2, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 3, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 2, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 4, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 4, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 4, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 5, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 4, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 6, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 6, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 6, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 7, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 6, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 8, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 8, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 8, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\treturn true;\r\n\t}" ]
[ "0.6551617", "0.64103955", "0.6097873", "0.6091002", "0.60847527", "0.58959043", "0.5888857", "0.58707815", "0.58644336", "0.5769254", "0.56957555", "0.5691003", "0.5682855", "0.5671659", "0.56675726", "0.5641715", "0.5622509", "0.56205046", "0.56194746", "0.55996805", "0.5540175", "0.55137724", "0.5493094", "0.54784954", "0.5472891", "0.5467437", "0.54624635", "0.54493976", "0.54111934", "0.54110324", "0.5410762", "0.5402976", "0.54024523", "0.53983164", "0.53940225", "0.53877", "0.53804547", "0.5362603", "0.53583944", "0.5356501", "0.5353576", "0.5348545", "0.53438604", "0.5340546", "0.5340536", "0.5320777", "0.53158796", "0.53137505", "0.53089887", "0.5296936", "0.52871174", "0.52865636", "0.5269001", "0.52581304", "0.52438873", "0.52425337", "0.52278495", "0.5225809", "0.52216256", "0.5211604", "0.5208461", "0.5203625", "0.5203281", "0.51974607", "0.5191494", "0.5191317", "0.5188924", "0.5185614", "0.5185072", "0.5180493", "0.5176199", "0.5167917", "0.5166579", "0.51631147", "0.51604956", "0.5159766", "0.5154505", "0.51520735", "0.51490414", "0.51418984", "0.51350695", "0.5131693", "0.51288646", "0.51221776", "0.5119189", "0.5114511", "0.51111585", "0.51111585", "0.51109844", "0.5105638", "0.50972664", "0.5092052", "0.50905114", "0.5088175", "0.508758", "0.508758", "0.508758", "0.5077211", "0.50756496", "0.50665396" ]
0.7862961
0
Returns the number of objects of type "powertype range" previously added to the collection of the current object.
int countPowertypeRanges();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int RangeCount()\n\t{\n\t\treturn _rangelist.size();\n\t}", "int getPickupsCount();", "public int getNumTypeBound() {\n return getTypeBoundList().getNumChild();\n }", "private int getReferences() {\n int quantity = 0;\n for (Option o : criteriaList.get(currentCriteria).getOptionList()) {\n boolean wasFound = false;\n for (String s : speciesLeft)\n if (o.getEntities().contains(s))\n wasFound = true;\n if (wasFound)\n ++quantity;\n }\n return quantity;\n }", "public int getNumObjects(){\n return numObjects;\n }", "public int getCount() {\n return typeOffsetList.size();\n }", "public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}", "int getSuperClassesCount();", "public int size(){\n\t\tListUtilities start = this.returnToStart();\n\t\tint count = 1;\n\t\twhile(start.nextNum != null){\n\t\t\tcount++;\n\t\t\tstart = start.nextNum;\n\t\t}\n\t\treturn count;\n\t}", "default int getMemberCount() {\r\n return Range.UNINITALIZED;\r\n }", "public int totalNum(){\n return wp.size();\n }", "int getReservePokemonCount();", "public int getObjectCount() {\n\t\treturn nestedConcept.getExtent().size();\n\t}", "void addPowertypeRange(Generalization powertypeRange);", "protected long doGetNumberOfSupertypes() {\r\n\t\treturn getParentIndex().getSupertypes().size();\r\n\t}", "int getExperiencesCount();", "int getPointsCount();", "private int countGrasses()//issues...see comment below in countTrees()\n {\n int grasses = 0;\n Field field = getField();\n Iterator<Location> it;\n List<Object> plantList = new List<>();\n while(it.hasNext()) {\n plantList.add(field.getObjectAt(currant));\n if(plant instanceof Grass) {\n grasses++;\n }\n }\n return grasses;\n }", "int getReaultCount();", "int getAreaCount();", "int getAreaCount();", "int getAreaCount();", "int getNewlyAvailableQuestsCount();", "@Override\n public int getNbObjets() {\n return _listeEquipement.getNbMaxEq();\n }", "private int sizeForType(int type) {\n return sizeForTypeHistorical(type);\n\n }", "public int size(){\n\t\treturn howMany; \n\t}", "final int getNumberOfBoundedBoundSymbols() {\n if (this.boundedBoundSymbols == null) return 0;\n\n int num = 0;\n for (int i = 0; i < this.boundedBoundSymbols.length; i++) {\n if (this.tupleOrs[i]) {\n num++;\n }\n else {\n num += this.boundedBoundSymbols[i].length;\n }\n }\n return num;\n }", "List<Object> getCountExtent();", "public int size() {\n\t\tint result = 0;\n\t\tfor (E val: this)\n\t\t\tresult++;\n\t\treturn result;\n\t}", "public int size()\n\t{\n\t\tint size = 0;\n\t\tfor(List<Registry.Entry> li : this.reg.values())\n\t\t\tsize += li.size();\n\t\treturn size;\n\t}", "protected long doGetNumberOfSubtypes() {\r\n\t\treturn getParentIndex().getSubtypes().size();\r\n\t}", "public int size() {\n return super.size();\n }", "public static int numberObjects()\r\n\t{\r\n\t\treturn(no_of_obj);\r\n\t}", "int getFaintedPokemonCount();", "public abstract double getRangeSize();", "public int size() {\n return pointsSet.size();\n }", "@java.lang.Override\n public int getReservePokemonCount() {\n return reservePokemon_.size();\n }", "int getQuestCount();", "private int countTrees()//has issues!! Should the counting happen in the \n //plant class? Or in the field? Or new grid class?\n {\n int trees = 0;\n Field field = getField();\n Location currant = getLocation();\n List<Object> plantList = field.getObjectAt(currant);\n \n while(it.hasNext()) {\n plantList.add(field.getObjectAt(currant));\n if(plant instanceof Tree) {\n trees++;\n }\n }\n return trees;\n }", "public int size() {\n\t\t\treturn gameObjects.size();\n\t\t}", "Collection<Generalization> getPowertypeRanges();", "public int size(){\n\t\treturn types.size();\n\t}", "public int getPickupsCount() {\n if (pickupsBuilder_ == null) {\n return pickups_.size();\n } else {\n return pickupsBuilder_.getCount();\n }\n }", "public int getPickupsCount() {\n return pickups_.size();\n }", "public int numElementsAdded(int lowerBound]) {\n\t\tint rackSize = 1; // sets initial rack size to be just one ball\n\t\tint numElementsAdded = 2; // initial number of elements to be added\n\t\twhile((numElementsAdded + rackSize) < lowerBound) {\n\t\t\tnumElementsAdded++;\n\t\t\trackSize += numElementsAdded;\n\t\t}\n\t\treturn numElementsAdded;\n\t}", "public int getCount() {\n return objects.size();\n }", "int sizeOfReferenceRangeArray();", "public int getEquipmentCount() {\r\n\t\tint ret = 0;\r\n\t\tPerson p = model.getData();\r\n\t\tif ( p!=null ) {\r\n\t\t\tret = p.getEquipmentCount();\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "long getOwnedEntryCount();", "int getInCount();", "public int getNumbObjects()\n\t{\n\t\treturn this.numObjects;\n\t}", "public int size(){\n\t\treturn super.size();\n\t}", "@Override\n\tpublic int size() {\n\t\tint nr = 0;\n\t\tfor (int i = 0; i < nrb; i++) {\n\t\t\t// pentru fiecare bucket numar in lista asociata acestuia numarul de\n\t\t\t// elemente pe care le detine si le insumez\n\t\t\tfor (int j = 0; j < b.get(i).getEntries().size(); j++) {\n\t\t\t\tnr++;\n\t\t\t}\n\t\t}\n\t\treturn nr;// numaru total de elemente\n\t}", "public int getReservePokemonCount() {\n if (reservePokemonBuilder_ == null) {\n return reservePokemon_.size();\n } else {\n return reservePokemonBuilder_.getCount();\n }\n }", "public int weaponCount(){\n\t\treturn weaponList.size();\n\t}", "public int size() {\n return pointSet.size();\n }", "int getAoisCount();", "public int size()\n\t{\n\t\treturn creatures.size();\n\t}", "int getLocationsCount();", "int getSlotsCount();", "private Long countRange(RequestData requestData) {\n javax.persistence.criteria.CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery();\n javax.persistence.criteria.Root<T> rt = cq.from(getEntityClass());\n cq.select(getEntityManager().getCriteriaBuilder().count(rt));\n javax.persistence.Query q = getEntityManager().createQuery(cq);\n return (Long) q.getSingleResult();\n }", "public int getLength() {\n return collection.size();\n }", "public int rangeSize() {\n return Math.abs(max - min);\n }", "int getFigureListCount();", "int getPurchasableOffersCount();", "public int size () {\n\t\treturn points.size();\n\t}", "int getPartsCount();", "int getPartsCount();", "public int getNumPersons() {\r\n\t\treturn this.persons.size();\r\n\t}", "int getOverriddenCount();", "public int size() {\n return intervals.size();\n }", "int getLevelTableListCount();", "public int size() {\n\t\treturn collection.size();\n\t}", "public int size() {\n return collection.size();\n }", "public int getNumOfRooms() {\n return internalList.size();\n }", "static public int numberOfPersons() {\n return personMap.size();\n }", "public int size() {\n return basePileup.size();\n }", "public int size() {\n\t\treturn minimums.size();\n\t}", "public int size() {\n return this.points.size();\n }", "public int getNumOfExcessOccupiedRooms() {\n return (int) IntStream.rangeClosed(numOfRooms, internalList.size() - 1)\n .mapToObj(x -> internalList.get(x)).filter(Room::isOccupied).count();\n }", "public int size() {\n\t\treturn points.size();\n\t}", "public long size() {\n\treturn end - start + 1;\n }", "public int qureyNumOfInspectors() {\r\n\t\tif (DBConnection.conn == null) {\r\n\t\t\tDBConnection.openConn();\r\n\t\t}\r\n\t\tint sum = 0;\r\n\t\ttry {\r\n\t\t\tString sql = \"select count(*) from InspectionPersonnel\";\r\n\t\t\tps = DBConnection.conn.prepareStatement(sql);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tsum = rs.getInt(1);\r\n\t\t\t}\r\n\t\t\tDBConnection.closeResultSet(rs);\r\n\t\t\tDBConnection.closeStatement(ps);\r\n\t\t\tDBConnection.closeConn();\r\n\t\t\treturn sum;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public int getInstancesPerType()\n {\n return instancesPerType;\n }", "public int size() {\n return this.wellsets.size();\n }", "public int getActiveRunwaysCount();", "public int size()\n {\n return points.size();\n }", "@Override\n public int size() {\n return theSet.size();\n }", "public int getPopulation() {\n int population = 0;\n Iterator<Guppy> it = guppiesInPool.iterator();\n\n while (it.hasNext()) {\n Guppy currentGuppy = it.next();\n if (currentGuppy.getIsAlive()) {\n population++;\n }\n }\n return population;\n }", "long getObjectSize(Object instance);", "int getAchievementsCount();", "public int getReaultCount() {\n if (reaultBuilder_ == null) {\n return reault_.size();\n } else {\n return reaultBuilder_.getCount();\n }\n }", "public static int findNumberOfCreatedComputers() {\n return objCounter;\n }", "public int size(){\r\n\t\treturn numAdded;\r\n\t}", "public int getNumberOfEntries() ;", "public int countPoolMaps(){\n\n\t\treturn poolMaps.size();\n\t}", "int getNumItems();", "public int getReaultCount() {\n return reault_.size();\n }", "int getPropertiesCount();", "int getBlockLocationsCount();" ]
[ "0.67744595", "0.6098297", "0.59130293", "0.5875942", "0.58412707", "0.58239025", "0.577762", "0.5753073", "0.57318664", "0.57317126", "0.5716915", "0.5708738", "0.56556", "0.5640984", "0.564013", "0.56372", "0.5636356", "0.56292474", "0.56181043", "0.5603309", "0.5603309", "0.5603309", "0.5596313", "0.55873847", "0.5575064", "0.55648446", "0.556256", "0.5549178", "0.5545437", "0.55378246", "0.55377907", "0.5537105", "0.55240625", "0.5522558", "0.5522165", "0.5518937", "0.5516011", "0.55087817", "0.5508763", "0.5507707", "0.55060506", "0.5503256", "0.5495104", "0.54873985", "0.5483236", "0.54826754", "0.5475211", "0.5472241", "0.54711246", "0.546462", "0.5462737", "0.54570615", "0.5453142", "0.54515535", "0.5447734", "0.54468364", "0.544629", "0.5439554", "0.5437732", "0.5436265", "0.54309696", "0.54307884", "0.5430202", "0.5421552", "0.5418501", "0.54070276", "0.5406296", "0.5406296", "0.54053557", "0.54048413", "0.5394165", "0.5392542", "0.5389517", "0.5378835", "0.5376889", "0.5361635", "0.5360881", "0.5359798", "0.53580105", "0.5357171", "0.5357117", "0.53522366", "0.534759", "0.53435445", "0.5341728", "0.53402126", "0.53377956", "0.533053", "0.5328087", "0.532556", "0.53214705", "0.5320281", "0.5316621", "0.53165615", "0.5316323", "0.53123087", "0.5311453", "0.5309851", "0.5308679", "0.5308157" ]
0.6952355
0
Adds a object flow state to the collection of the current object.
void addObjectFlowState(ObjectFlowState objectFlowState);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addState(E state) {\n if (!frozen && state != null && state.getClass() != null) {\n if (present != null) {\n past.addLast(present);\n }\n present = state;\n forgetFuture();\n }\n }", "public void addState(State state){\n\t\tstates.add(state);\n\t}", "@Override\r\n\tpublic void add(Object object) {\n\t\t\r\n\t}", "public void add(Object obj) { \n\t\tcollection.addElement(obj);\n\t}", "@Override\n public void addToOpenList(AState state) throws Exception {\n if (state == null)\n throw new IllegalArgumentException(\"State cannot be null\");\n openList.add(state);\n }", "Collection<ObjectFlowState> getObjectFlowStates();", "protected void addObject(AbstractGameObject object) {\n\t\t// add object to rendering list\n\t\tobjects.add(object);\n\t\tif (object instanceof UIi18nReload) {\n\t\t\tuis.add((UIi18nReload) object);\n\t\t}\n\t\tobjects.sort(new Comparator<GameObject>() {\n\t\t\tpublic int compare(GameObject o1, GameObject o2) {\n\t\t\t\tAbstractGameObject ago1 = (AbstractGameObject) o1;\n\t\t\t\tAbstractGameObject ago2 = (AbstractGameObject) o2;\n\t\t\t\treturn (ago1.layer > ago2.layer ? -1 : (ago1.priority > ago2.priority ? -1 : 1));\n\t\t\t};\n\t\t});\n\t\t// add object to a specific Layer.\n\t\taddObjectToLayer(object);\n\n\t\tstatistics.put(\"objectCount\", objects.size());\n\t\tlogger.debug(\"Add {} to the objects list\", object.name);\n\t}", "private void setFlow(Flow flow) throws IllegalArgumentException {\r\n\t\tAssert.hasText(getId(), \"The id of the state should be set before adding the state to a flow\");\r\n\t\tAssert.notNull(flow, \"The owning flow is required\");\r\n\t\tthis.flow = flow;\r\n\t\tflow.add(this);\r\n\t}", "public void add(Scenario object) {\n original.add(object);\n filtered.add(object);\n notifyDataSetChanged();\n }", "public void addItem(Object obj) {\n items.add(obj);\n }", "public void addState(AState s) {\n this.states.add(s);\n }", "@Override\n\t\t\tpublic boolean addFact(Object fact) {\n\t\t\t\tthrow new IllegalStateException(\"Not implemented yet\");\n\t\t\t}", "public void add(Object object) {\n\t\tif (nextItem == null) {\n\t\t\tnextItem = new Item(object, index + 1);\n\t\t} else {\n\t\t\tnextItem.add(object);\n\t\t}\n\t}", "public void add(final E obj)\n {\n final Queue<E> level = getTailLevel();\n level.add(obj);\n size++;\n }", "private void addState(NFAState s) {\n\t\tstates.add(s);\n\t}", "void addCollisionObject(CollisionObjectWrapper co) {\n\tpendingObjects.put(co.getId(), co);\n }", "protected final void addState(final State state) {\n\t\tstates.add(state);\n\t\ttransitionFromStateMap.put(state, new LinkedList<Transition>());\n\t\ttransitionToStateMap.put(state, new LinkedList<Transition>());\n\t\tcachedStates = null;\n\t\tdistributeStateEvent(new AutomataStateEvent(this, state, true, false, false));\n\t}", "public void addObject(Objects object)\n {\n items.put(object.getItemName(), object);\n }", "public void notifyAdded(@NotNull final Object object) {\n getAppStates().forEach(object, SceneAppState::notifyAdded);\n }", "boolean containsObjectFlowState(ObjectFlowState objectFlowState);", "public void addObj(Object obj) {\n\t\t\tobjects.add(obj);\n\t\t}", "public synchronized void addObject(E obj) {\n\t\twrappedSet.add((E) obj);\n\t}", "@Override\r\n public void add(IMObject object) {\r\n cache.add(object);\r\n }", "public void addState(IState state) {\n\t\tint id = state.getId();\n\t\tif (this.states.size() < id) {\n\t\t\t// There are empty positions before id, fill with null values\n\t\t\tfor (int i = this.states.size(); i < id; i++) {\n\t\t\t\tthis.states.add(i, null);\n\t\t\t}\n\t\t\tthis.states.add(id, state);\n\n\t\t}\n\t\telse if (this.states.size() > id) {\n\t\t\t// overwrite existing position\n\t\t\tthis.states.set(id, state);\n\n\t\t}\n\t\telse {\n\t\t\t// list size == id\n\t\t\tthis.states.add(id, state);\n\t\t}\n\t}", "@Override\n public void add(Object o) {\n gameCollection.addElement(o);\n }", "public void add(AState state){ this.path_solution.add(0,state);}", "public void push(E obj) {\n super.add(obj);\n }", "public void add(Object o){\n list.add(o);\n }", "public void push(Object object) {\n fStack.push(object);\n if (object instanceof IJavaObject) {\n disableCollection((IJavaObject) object);\n }\n }", "public void addObject(AdvObject obj) {\n\t\tobjects.add(obj);\n\t}", "public void addNewStage() {\n\t\tif (stage != 0 && getCurrentActions().isEmpty()) { // This should be validated by the command\n\t\t\tthrow new IllegalStateException(\"Cannot progress stage without actions\");\n\t\t}\n\n\t\tstage = amountOfStages\n\t\t\t\t+ 1; // The stage that is being edited may not be the latest so make sure not to duplicate\n\t\tamountOfStages++;\n\t\tstagesOfActions.putIfAbsent(stage, new LinkedHashMap<>());\n\t\tstageJsons.putIfAbsent(stage, new JsonObject());\n\t}", "boolean add(Object object) ;", "public boolean add(final Object obj) {\n maintain();\n\n SoftObject soft = SoftObject.create(obj, queue);\n \n return collection.add(soft);\n }", "void add(ObjectType object)\n throws GuacamoleException;", "@Override\n\tpublic void add(Object object) {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction ts = session.beginTransaction();\n\t\tsession.save(object);\n\t\tts.commit();\n\t\tsession.close();\n\t}", "public void addObject(final PhysicalObject obj) {\n \t\tmyScene.addChild(obj.getGroup());\n \t\tmyObjects.add(obj);\n \t}", "@Override\n\tpublic boolean add(Building object) {\n\t\tif (contains(object)) {\n\t\t\tsuper.remove(object);\n\t\t}\n\t\tsuper.add(object);\n\t\treturn true;\n\t}", "@Traced\r\n\tpublic boolean addSimpleObject(SimpleObject obj){\n\t\tobjects.add(obj);\r\n\t\treturn true; // in future to handle some errors\r\n\t}", "@Override\n public StateList addState(State state) {\n System.out.println(\"Adding state \" + this.name);\n ChaincodeStub stub = this.ctx.getStub();\n System.out.println(\"Stub=\" + stub);\n String[] splitKey = state.getSplitKey();\n System.out.println(\"Split key \" + Arrays.asList(splitKey));\n\n CompositeKey ledgerKey = stub.createCompositeKey(this.name, splitKey);\n System.out.println(\"ledgerkey is \");\n System.out.println(ledgerKey);\n\n byte[] data = State.serialize(state);\n System.out.println(\"ctx\" + this.ctx);\n System.out.println(\"stub\" + this.ctx.getStub());\n this.ctx.getStub().putState(ledgerKey.toString(), data);\n\n return this;\n }", "public boolean add (T obj) {\r\n\t\tboolean result = _list.add (obj);\r\n\t\tHeapSet.siftUp (this, _list.size () - 1);\r\n\t\treturn result;\r\n\t}", "public void push(State s0) {\n\t\tsList.add(s0);\r\n\t}", "void add(GeometricalObject object);", "public void addState(State state) {\n states.add(state);\n state.setCountry(this);\n }", "public void add(AudioFile object) {\n if (mOriginalValues != null) {\n synchronized (mLock) {\n mOriginalValues.add(object);\n if (mNotifyOnChange) notifyDataSetChanged();\n }\n } else {\n mObjects.add(object);\n if (mNotifyOnChange) notifyDataSetChanged();\n }\n }", "@Override\n\tpublic boolean add(Object obj) {\n\t\treturn util.add(obj);\n\t}", "@Override\n public void addGameState(GameState gameState) {\n }", "public void add(GeometricalObject object);", "public void addObjectRef(ObjectRef ref){\n \t\tthis.objectRefs[objectPointer++] = ref;\n \t}", "public void add(FavoriteEntity obj)\n {\n super.add(obj);\n }", "public void add(Object obj) {\n\t\tif (obj instanceof Entity) {\n\t\t\tentities.add((Entity) obj);\n\t\t}\n\t\t\n\t\tif (obj instanceof ICollidable) {\n\t\t\tcollidables.add((ICollidable) obj);\n\t\t}\n\t\t\n\t\tif (obj instanceof IDrawable) {\n\t\t\tdrawables.addFirst((IDrawable) obj);\n\t\t}\n\t}", "@Override\n public void addObject() throws Exception {\n Object obj = _factory.makeObject();\n synchronized(this) {\n _numActive++; // A little slimy - must do this because returnObject decrements it.\n this.returnObject(obj);\n }\n }", "public void add(GameObject newObject) {\n\t\tgameObjects.addElement(newObject);\n\t}", "@Override\n public void add(T obj) {\n generateObjIdIfRequired(obj);\n \n //Try to copy when adding so we can prevent unwanted changes\n obj = getCopyOfT(obj);\n \n if (objects.contains(obj)) throw new DBEntityAlreadyExistsException(obj.toString());\n\n objects.add(obj);\n }", "protected void addObject(Obstacle obj) {\n\t\tassert inBounds(obj) : \"Object is not in bounds\";\n\t\tobjects.add(obj);\n\t\tobj.activatePhysics(world);\n\t}", "public void add( T obj )\n {\n // Any distinct object causes creation of a new tree-set.\n // We count any such sets as we go.\n if (!contains( obj ))\n {\n nodes.put(obj, new Node(obj));\n numSets++;\n }\n }", "void addDependencies(Object object) {\n objects.add(object);\n }", "public synchronized void add(int index, T obj) {\n\t\tfor(int i = mIds.size(); i > index; i--) {\n\t\t\tmObjects.put(i, mObjects.get(i - 1));\n\t\t}\n\t\t// Add object to actual end of list\n\t\tmObjects.put(index, obj);\n\t\t// Add null for that object to id list\n\t\tmIds.add(index, null);\n\t\tif(mAutoCommit) AndSync.save(obj);\n\t}", "@Override\n\tpublic void add(Object o) {\n\t}", "@Override\n <T> void add(T object);", "public void addPerson(Person object)\n\t{\n\t\tthis.peopleList.add(object);\n\t}", "public void addShape(Shapes obj) {\n \tthis.listShapes.add(obj);\n W.repaint();\n }", "public synchronized void add (E object) {\n Node<E> node = new Node<>(object);\n if (first == null) {\n first = node;\n } else if (last == null) {\n last = node;\n last.prev = first;\n first.next = last;\n } else {\n Node<E> temp = last;\n temp.prev.next = temp;\n temp.next = node;\n last = node;\n node.prev = temp;\n }\n }", "boolean removeObjectFlowState(ObjectFlowState objectFlowState);", "public void add(Object object) {\n if(object != null) {\n results.add(object);\n }\n }", "public synchronized void add(T object) throws InterruptedException {\n\t\twhile (store.size() == capacity) {\n\t\t\tLOG.info(\"No more space\");\n\t\t\twait();\n\t\t}\n\t\tstore.add(object);\n\t\tLOG.info(\"Added product\" + store.size());\n\t\tnotify();\n\t}", "public void addListener(AlgorithmInterface obj) {\r\n objectList.addElement(obj);\r\n }", "private void addState(String state, int num) {\r\n this.visitedList.add(state);\r\n if (this.visitedList.size() >= num) {\r\n this.visitedList.remove(0);\r\n }\r\n }", "protected void addFlowPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_SecuritySchema_flow_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_SecuritySchema_flow_feature\", \"_UI_SecuritySchema_type\"),\n\t\t\t\t CorePackage.Literals.SECURITY_SCHEMA__FLOW,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public void addAIObject(String id, AIObject aiObject) {\n if (aiObjects.containsKey(id)) {\n throw new IllegalStateException(\"AIObject already created: \" + id);\n }\n if (aiObject == null) {\n throw new NullPointerException(\"aiObject == null\");\n }\n aiObjects.put(id, aiObject);\n }", "void Add(Object obj );", "public final void addValidationState(ValidationState vs) {\n fVSs.add(vs);\n }", "public void addObject(ObjectNode on) throws MismatchException, ChangeNotAllowedException {\r\n FactType ft = getFactType(on.getTypeName());\r\n if (ft == null) {\r\n throw new RuntimeException(\"objecttype \" + on.getTypeName() + \" is unknown at objectmodel\");\r\n }\r\n if (!ft.isObjectType()) {\r\n throw new RuntimeException(\"adding object at facttype \"\r\n + ft.getName() + \" which isn't an objecttype\");\r\n }\r\n ft.addFact(on);\r\n\r\n }", "public void add(Object obj) {\r\n\t\tSession session = null;\r\n\t\tTransaction tx = null;\r\n\r\n\t\ttry {\r\n\t\t\tsession = factory.openSession();\r\n\t\t\ttx = session.beginTransaction();\r\n\r\n\t\t\tsession.save(obj);\r\n\t\t\ttx.commit();\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tif (tx != null)\r\n\t\t\t\ttx.rollback();\r\n\t\t\tSystem.out.println(ex.getMessage());\r\n\t\t} finally {\r\n\t\t\tif (session != null)\r\n\t\t\t\tsession.close();\r\n\t\t}\r\n\t}", "public void setActiveFlow(Flow activeFlow) {\n this.m_activeFlows.add(activeFlow);\n }", "public void addNewborn(Object anObj) { _newBorns.add(anObj); }", "@Override\n\tpublic String addstate() {\n\t\treturn \"Open folder so Open state applied \";\n\t}", "public void addElement(Replicated obj)\r\n\t{\n\t\tinsert(obj, seq.size());\r\n\t}", "public void add(WorldObject obj) {\n\troomList.add(obj);\n}", "public void storeInObject() {\r\n lockValueStored = IN_OBJECT;\r\n }", "public void addObject(DcObject dco);", "@Override\n public void add(Fish object) {\n list.add(object);//adds the Fish to the list\n Log.d(\"Adapter\",\"added\");\n }", "@Override\r\n\tpublic void addStateWorkArea(StateWorkArea stateWorkArea) {\r\n\t\tstateWorkAreaDAO.addStateWorkArea(stateWorkArea);\r\n\t\t\r\n\t}", "protected void addSpecial(Object object) {\n super.add(object);\n }", "public void push(GameState state){\n states.push(state);\n }", "@Override\n\tpublic void addState(String name) {\n\t\tNFAState s = checkIfExists(name);\n\t\tif( s == null){\n\t\t\ts = new NFAState(name);\n\t\t\taddState(s);\n\t\t} else {\n\t\t\tSystem.out.println(\"WARNING: A state with name \" + name + \" already exists in the NFA\");\n\t\t}\n\t\t\n\t}", "void addHasState(String newHasState);", "public void addState(GameState gameState) {\n gameStates.push(gameState);\n }", "public void addState(int stateHash, AIHandler handler) {\n _states.put(stateHash, handler);\n }", "public boolean add(E obj)\r\n {\r\n int originalSize = this.size();\r\n listIterator(originalSize).add(obj);\r\n return originalSize != this.size();\r\n }", "public void add(int index, Object object) {\n\t\tif (nextItem.getIndex() == index) {\n\t\t\tItem newItem = new Item(object, index);\n\t\t\tnewItem.setNext(nextItem);\n\t\t\tnextItem = newItem;\n\t\t\tnextItem.getNext().incrementIndex();\n\t\t} else {\n\t\t\tnextItem.add(index, object);\n\t\t}\n\t}", "public void add(Object o);", "public void pushState( TurtleState state ) {\n\t\tstates.push( state );\n\t}", "ControllerState getNewObjectState();", "public void addGraphicObject(GraphicObject obj)\n {\n graphicObjects.addLast(obj);\n }", "public void addObject(GameObject gameObject) {\n\t\tobjects.add(gameObject);\n\t\t\n\t}", "public boolean add(@NonNull T object) {\n final boolean added = data.add(object);\n notifyItemInserted(data.size() + 1);\n return added;\n }", "private void addState(Collection<ReplayState<C>> states, ReplayState<C> state, Marking marking,\r\n\t\t\tTransition transition, C cost, List<? extends Object> trace) {\r\n\t\tif ((cost.compareTo(bestState.cost) < 0) && cost.isAcceptable()) {\r\n\t\t\tstates.add(new ReplayState<C>(state, marking, transition, cost, trace));\r\n\t\t}\r\n\t}", "public StateVertex addState(StateVertex stateVertix) {\n\t\treturn addState(stateVertix, true);\n\t}", "public void addMessage(Object object)\r\n\t{\r\n\t\tmessageList.add(object);\r\n\t}", "public void push(E o) {\n list.add(o);\n }" ]
[ "0.6323232", "0.62600064", "0.6187759", "0.61546415", "0.6102062", "0.6087565", "0.603927", "0.5998153", "0.5946331", "0.5907466", "0.5889987", "0.58360255", "0.5834452", "0.5827735", "0.58039725", "0.5782576", "0.57519084", "0.57474643", "0.5738983", "0.5728965", "0.57271373", "0.56990486", "0.56869507", "0.56820333", "0.5673631", "0.5651941", "0.5650548", "0.56496966", "0.56191885", "0.56102425", "0.56037104", "0.5576362", "0.55691344", "0.55244726", "0.55242074", "0.5510464", "0.5507251", "0.54986674", "0.5486447", "0.5469608", "0.54560804", "0.5452605", "0.54514694", "0.54478014", "0.54401106", "0.5438216", "0.5432786", "0.5432193", "0.5427737", "0.54013085", "0.53982526", "0.5393017", "0.5389741", "0.53849834", "0.53784615", "0.53707874", "0.53689045", "0.5367716", "0.5356444", "0.53519267", "0.5334117", "0.533395", "0.5314216", "0.53051233", "0.5287772", "0.5279219", "0.5278014", "0.52778673", "0.5277391", "0.5272104", "0.5263919", "0.5260973", "0.52551144", "0.52410567", "0.52226055", "0.5202678", "0.51906765", "0.5190108", "0.51875025", "0.5186834", "0.51829153", "0.518153", "0.51812714", "0.5171823", "0.5170415", "0.5164668", "0.5157061", "0.5155819", "0.5148057", "0.5135197", "0.51327366", "0.51318866", "0.51251155", "0.51186925", "0.51174724", "0.5108661", "0.5087281", "0.5080981", "0.5078842", "0.50621414" ]
0.8420536
0
Removes a object flow state from the collection of the current object.
boolean removeObjectFlowState(ObjectFlowState objectFlowState);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void clearObjectFlowStates();", "public void unsetState()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(STATE$8, 0);\r\n }\r\n }", "private void removeObject() {\n\t\tif(this.curr_obj != null) {\n this.canvas.uRemove(this.curr_obj);\n\t\t\tthis.canvas.remove(this.transformPoints);\n this.transformPoints.clear();\n\n this.curr_obj = null;\n }\n\t}", "public void clear() {\n\t\tstate = null;\n\t}", "@Override\n public void purgeFlows() {\n setOfFlowsToAdd.clear();\n setOfFlowsToDelete.clear();\n }", "public void clearState() {\r\n int size = states.size();\r\n states.clear();\r\n states.add(inception);\r\n for (int i = states.size(); i < size; i++) {\r\n nextState();\r\n }\r\n alteredStates.clear();\r\n }", "public void unsetState()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(STATE$14);\r\n }\r\n }", "void unsetState();", "public void removeStep1(Object obj) {\n\t\tdao.deleteStep1(obj);\n\t}", "public void popState() {\n\t\tstates.pop();\n\t}", "public void clear() {\r\n if (ObjectiveFunctionWrapper.this.m_use)\r\n this.m_state.clear();\r\n }", "public void popState();", "public final void popState() {\n engine.getGameStateManager().popState();\n }", "public void removeObject(java.lang.Object object) {}", "public void removeState(State state) {\n states.remove(state);\n state.setCountry(null);\n }", "public boolean remove(objectType obj);", "public void removeByObject()\r\n\t{\n\t}", "@Override\n\tpublic void removeInUse() {\n\t\theldObj.removeInUse();\n\t}", "public void removeGameObj(GameObject obj){\n display.getChildren().remove(obj.getDisplay());\n }", "public void removeObject(AdvObject obj) {\n\t\tobjects.remove(obj); // Replace with your code\n\t}", "public void evt_DeleteCurrentObject()\r\n {\r\n rh2EventPos.hoOiList.oilNumOfSelected -= 1;\t\t\t\t\t// Un de moins dans l'OiList\r\n if (rh2EventPrev != null)\r\n {\r\n rh2EventPrev.hoNextSelected = rh2EventPos.hoNextSelected;\r\n rh2EventPos = rh2EventPrev; // Car le courant est vire!\r\n }\r\n else\r\n {\r\n// rhPtr.rhOiList[rh2EventPosOiList].oilListSelected=rh2EventPos.hoNextSelected;\r\n rh2EventPrevOiList.oilListSelected = rh2EventPos.hoNextSelected;\r\n rh2EventPos = null;\r\n }\r\n }", "public void notifyRemoved(@NotNull final Object object) {\n getAppStates().forEach(object, SceneAppState::notifyRemoved);\n }", "public void removeFinalState(final State state) {\n\t\tcachedFinalStates = null;\n\t\tfinalStates.remove(state);\n\t\tdistributeStateEvent(new AutomataStateEvent(this, state, false, false, true));\n\t}", "public void remove(GameObject object) {\n\t\tgameObjects.remove(object);\t\n\t}", "public void deleteState(IUserState userState)\n\t{\n\t\tmediator.removeState();\n\t\tstateList.remove(userState);\n\t}", "private void removeAllObjects()\n {\n removeObjects (getObjects(Actor.class));\n }", "public void removeState(final State state) {\n\t\tgetTransitionsFromState(state).forEach(x -> removeTransition(x));\n\t\tgetTransitionsToState(state).forEach(x -> removeTransition(x));\n\t\t\n\t\tdistributeStateEvent(new AutomataStateEvent(this, state, false, false, false));\n\t\tstates.remove(state);\n\t\tfinalStates.remove(state);\n\t\tif (state == initialState) {\n\t\t\tinitialState = null;\n\t\t}\n\n\t\ttransitionFromStateMap.remove(state);\n\t\ttransitionToStateMap.remove(state);\n\n\t\ttransitionArrayFromStateMap.remove(state);\n\t\ttransitionArrayToStateMap.remove(state);\n\n\t\tcachedStates = null;\n\t}", "public void reset() {\n this.state = null;\n }", "Collection<ObjectFlowState> getObjectFlowStates();", "void remove( int nIdState );", "void removeHasState(String oldHasState);", "public void removed()\n {\n if (prev == null) {\n IBSPColChecker.setNodeForShape(shape, next);\n }\n else {\n prev.next = next;\n }\n\n if (next != null) {\n next.prev = prev;\n }\n }", "public void removeCurrent( )\n {\n // Implemented by student.\n }", "public void clearState() {\n synchronized (mutex) {\n statisticsAccumulator.clearState();\n }\n }", "public void removeShape(Shapes obj) {\n \tthis.listShapes.remove(obj);\n \t W.repaint();\n }", "public void remove() {\r\n return;\r\n }", "public void removePerson(Person object)\n\t{\n\t\tthis.peopleList.remove(object);\n\t}", "@Override\n public void remove() {\n if (lastItem == null)\n throw new IllegalStateException();\n bag.remove(lastItem);\n lastItem = null;\n }", "public void clearStateSpecificEntries(Entry.State state);", "public void remove(GeometricalObject object);", "public synchronized void remove(E object) {\n Node<E> temp = first;\n while (temp.next != null) {\n if (first.object.equals(object)) {\n first = first.next;\n } else if (temp.object.equals(object)) {\n Node<E> forChangeLinks = temp;\n temp.next.prev = temp.prev;\n temp.prev.next = temp.next;\n }\n temp = temp.next;\n }\n }", "@Override\n public void remove() throws IllegalStateException{\n it.remove();\n }", "void remove(GeometricalObject object);", "public void\n\t invalidateState()\n\t //\n\t ////////////////////////////////////////////////////////////////////////\n\t {\n\t if (state != null) {\n\t\t\t\tstate.destructor();\n\t\t\t\tstate = null;\n\t }\n\t }", "public Object remove();", "public final void remove () {\r\n }", "Object remove();", "public void removeItem(){\n\t\tthis.item = null;\n\t}", "@Override\n public void remove() {\n }", "@Override\r\n public void remove(IMObject object) {\r\n cache.remove(object);\r\n }", "public void removeListener(AlgorithmInterface obj) {\r\n objectList.removeElement(obj);\r\n }", "public void remove() {\r\n super.remove();\r\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void remove(AudioFile object) {\n if (mOriginalValues != null) {\n synchronized (mLock) {\n mOriginalValues.remove(object);\n }\n } else {\n mObjects.remove(object);\n }\n if (mNotifyOnChange) notifyDataSetChanged();\n }", "public void clear()\r\n {\r\n this.boundObjects.clear();\r\n }", "public void removeFromGame(){\n this.isInGame = false;\n }", "public com.trg.fms.api.Trip.Builder clearState() {\n state = null;\n fieldSetFlags()[3] = false;\n return this;\n }", "public void remove() {\n btRemove().push();\n }", "public void remove() {\n btRemove().push();\n }", "public void remove(Object obj) {\n\t\tif (obj instanceof Entity) {\n\t\t\tentities.remove(obj);\n\t\t}\n\t\t\n\t\tif (obj instanceof ICollidable) {\n\t\t\tcollidables.remove(obj);\n\t\t}\n\n\t\tif (obj instanceof IDrawable) {\n\t\t\tdrawables.remove(obj);\n\t\t}\n\t}", "public void remove () {}", "@Override\n\tpublic void remove(Object o) {\n\t\t\n\t}", "@Override\n\tpublic void remove() { }", "@Override\n public boolean remove(Object o) {\n return gameCollection.remove(o);\n }", "public void deleteState(String type, String state) {\r\n\t\tTaskType tt = getType(type);\r\n\t\tTaskState ts = getState(type, state);\r\n\t\tif (tt != null && ts != null)\r\n\t\t\ttt.states.remove(ts);\r\n\t}", "void remover(Object o);", "public void clearState(){\r\n\t\tinsideSemiringWeightsTable.clear();\r\n\t}", "public void remove ( ) {\n\t\texecute ( handle -> handle.remove ( ) );\n\t}", "private void clearStateInfo(){\r\n cmbState.removeAllItems();\r\n }", "public void removeActor(Actor act) { ActorSet.removeElement(act); }", "@Override\n\t\t\t\tpublic void remove() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void remove() {\n }", "public void remove () { this.setAsDown(); n.remove(); }", "public void unassignEnergyToShip(AbstractObject source) {\n\t\tenergyToShip.remove(source.getId());\n\t}", "public void removeDefense(){\n\t\tcurrentConstruct = null;\n\t\thasDefenseObject = false;\n\t}", "public boolean remove(Object obj);", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "public Collection<V> remove(Object obj) {\n Collection collection = (Collection) this.Pu.remove(obj);\n if (collection == null) {\n return null;\n }\n Collection<V> ry = AbstractMapBasedMultimap.this.ry();\n ry.addAll(collection);\n AbstractMapBasedMultimap.this.Ps = AbstractMapBasedMultimap.this.Ps - collection.size();\n collection.clear();\n return ry;\n }", "protected void clear() {\n\n\t\tfinal HashSet<Transition> t = new HashSet<>(transitions);\n\t\tfor (final Transition o : t) {\n\t\t\tremoveTransition(o);\n\t\t}\n\t\ttransitions = new HashSet<>();\n\n\t\tfinal HashSet<State> s = new HashSet<>(states);\n\t\tfor (final State o : s) {\n\t\t\tremoveState(o);\n\t\t}\n\t\tstates = new HashSet<>();\n\n\t\tfinalStates = new HashSet<>();\n\n\t\tinitialState = null;\n\n\t\tcachedStates = null;\n\n\t\tcachedTransitions = null;\n\n\t\tcachedFinalStates = null;\n\n\t\ttransitionFromStateMap = new HashMap<>();\n\t\ttransitionToStateMap = new HashMap<>();\n\n\t\ttransitionArrayFromStateMap = new HashMap<>();\n\n\t\ttransitionArrayToStateMap = new HashMap<>();\n\n\t\twhile (myNotes.size() != 0) {\n\t\t\tfinal AutomatonPane ap = myNotes.get(0).getView();\n\t\t\tap.remove(myNotes.get(0));\n\t\t\tap.repaint();\n\t\t\tdeleteNote(myNotes.get(0));\n\t\t}\n\t}", "public void clear() {\n\t\tthis.boundObjects.clear();\n\t}", "public void pop(){\n states.pop().dispose();\n }", "public Builder remove(FlowTable flowtable) {\n currentStage.add(new FlowTableOperation(flowtable, REMOVE));\n return this;\n }", "public void removed() {\n }", "public void clear(){\n this.collected.clear();\n }", "public void remTargetObjectClass(){\n rem(DmpDMSAG.__targetObjectClass);\n }", "public void remove(E object) {\n\t\tsynchronized (mLock) {\n\t\t\tif (data != null) {\n\t\t\t\tdata.remove(object);\n\t\t\t}\n\t\t}\n\t\tnotifyDataSetChanged();\n\t}", "public void dropWaitingStates() {\n waitlist.clear();\n }", "public void remove();" ]
[ "0.77571887", "0.6326566", "0.62968534", "0.6269225", "0.6230302", "0.62181944", "0.60116506", "0.59444785", "0.5922789", "0.58974236", "0.5860446", "0.5848773", "0.58340144", "0.5816835", "0.5807373", "0.57076794", "0.56995165", "0.5677052", "0.56723505", "0.56510466", "0.5649744", "0.5641315", "0.56292385", "0.56221896", "0.5620277", "0.5616198", "0.55906886", "0.5579893", "0.55771977", "0.55749685", "0.5566951", "0.55558574", "0.5545104", "0.55413646", "0.5515751", "0.550313", "0.54845524", "0.547811", "0.5474795", "0.54719317", "0.5470038", "0.5438462", "0.5433538", "0.5431837", "0.5431011", "0.54307544", "0.54242307", "0.5420307", "0.5416641", "0.5408913", "0.53972036", "0.53916955", "0.53821665", "0.53821665", "0.53821665", "0.53821665", "0.53821665", "0.53821665", "0.53821665", "0.5371252", "0.5371252", "0.53596276", "0.53596276", "0.53596276", "0.53586596", "0.5357129", "0.5344971", "0.5343684", "0.53374165", "0.53374165", "0.53363985", "0.5334452", "0.5334029", "0.5331698", "0.53301674", "0.5329741", "0.53286785", "0.53277427", "0.5324731", "0.5322272", "0.53192306", "0.5311228", "0.5306902", "0.53018194", "0.5300923", "0.529219", "0.5287182", "0.52867734", "0.52867734", "0.5283492", "0.52807534", "0.52742004", "0.5269621", "0.5264745", "0.52634996", "0.526348", "0.52607334", "0.52602154", "0.52600515", "0.5255117" ]
0.8347465
0
Removes all the objects of type "object flow state" from the collection of the current object.
void clearObjectFlowStates();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean removeObjectFlowState(ObjectFlowState objectFlowState);", "private void removeAllObjects()\n {\n removeObjects (getObjects(Actor.class));\n }", "@Override\n public void purgeFlows() {\n setOfFlowsToAdd.clear();\n setOfFlowsToDelete.clear();\n }", "Collection<ObjectFlowState> getObjectFlowStates();", "public void clearState() {\r\n int size = states.size();\r\n states.clear();\r\n states.add(inception);\r\n for (int i = states.size(); i < size; i++) {\r\n nextState();\r\n }\r\n alteredStates.clear();\r\n }", "public void clear() {\n\t\tstate = null;\n\t}", "protected void clearResolvedObjects() {\n\t\ttype = null;\n\t\tmanagedType = null;\n\t\ttypeDeclaration = null;\n\t}", "public void clear() {\n\t\tthis.boundObjects.clear();\n\t}", "public void clear()\r\n {\r\n this.boundObjects.clear();\r\n }", "public void clear() {\n\t\t//Kill all entities\n\t\tentities.parallelStream().forEach(e -> e.kill());\n\n\t\t//Clear the lists\n\t\tentities.clear();\n\t\tdrawables.clear();\n\t\tcollidables.clear();\n\t}", "private void removeObject() {\n\t\tif(this.curr_obj != null) {\n this.canvas.uRemove(this.curr_obj);\n\t\t\tthis.canvas.remove(this.transformPoints);\n this.transformPoints.clear();\n\n this.curr_obj = null;\n }\n\t}", "public static void removeAll() {\r\n\t\tfor (final Block block : new HashSet<>(instances_.keySet())) {\r\n\t\t\trevertBlock(block, Material.AIR);\r\n\t\t}\r\n\t\tfor (final TempBlock tempblock : REVERT_QUEUE) {\r\n\t\t\ttempblock.state.update(true, applyPhysics(tempblock.state.getType()));\r\n\t\t\tif (tempblock.revertTask != null) {\r\n\t\t\t\ttempblock.revertTask.run();\r\n\t\t\t}\r\n\t\t}\r\n\t\tREVERT_QUEUE.clear();\r\n\t}", "public void clear() {\n this.layers.clear();\n list.clear();\n }", "public void clearStateSpecificEntries(Entry.State state);", "public void reset() {\n\t\tVector2 gravity = new Vector2(world.getGravity() );\n\t\t\n\t\tfor(Obstacle obj : objects) {\n\t\t\tobj.deactivatePhysics(world);\n\t\t}\n\t\tobjects.clear();\n\t\taddQueue.clear();\n\t\tworld.dispose();\n\t\t\n\t\tworld = new World(gravity,false);\n\t\tsetComplete(false);\n\t\tsetFailure(false);\n\t\tpopulateLevel();\n\t}", "protected void clear() {\n\n\t\tfinal HashSet<Transition> t = new HashSet<>(transitions);\n\t\tfor (final Transition o : t) {\n\t\t\tremoveTransition(o);\n\t\t}\n\t\ttransitions = new HashSet<>();\n\n\t\tfinal HashSet<State> s = new HashSet<>(states);\n\t\tfor (final State o : s) {\n\t\t\tremoveState(o);\n\t\t}\n\t\tstates = new HashSet<>();\n\n\t\tfinalStates = new HashSet<>();\n\n\t\tinitialState = null;\n\n\t\tcachedStates = null;\n\n\t\tcachedTransitions = null;\n\n\t\tcachedFinalStates = null;\n\n\t\ttransitionFromStateMap = new HashMap<>();\n\t\ttransitionToStateMap = new HashMap<>();\n\n\t\ttransitionArrayFromStateMap = new HashMap<>();\n\n\t\ttransitionArrayToStateMap = new HashMap<>();\n\n\t\twhile (myNotes.size() != 0) {\n\t\t\tfinal AutomatonPane ap = myNotes.get(0).getView();\n\t\t\tap.remove(myNotes.get(0));\n\t\t\tap.repaint();\n\t\t\tdeleteNote(myNotes.get(0));\n\t\t}\n\t}", "public void removeAllObjectChangeListeners()\n\t{\n\t\tlistenerList = null;\n\t}", "public void removeAllObjectChangeListeners()\n\t{\n\t\tlistenerList = null;\n\t}", "public void clear() {\r\n if (ObjectiveFunctionWrapper.this.m_use)\r\n this.m_state.clear();\r\n }", "public void notifyRemoved(@NotNull final Object object) {\n getAppStates().forEach(object, SceneAppState::notifyRemoved);\n }", "public void removeAll(Object o) {\r\n\t\t//so lange das Objekt entfernen bis es nicht mehr drin ist\r\n\t\twhile(contains(o)) {\r\n\t\t\tremove(o);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void resetObject() {\n\t\t\r\n\t}", "public void clear()\n\t{\n\t\tobjectToId.clear();\n\t\tidToObject.clear();\n\t}", "@Override\n\tpublic void clear() throws ObjectStoreException {\n\t\t\n\t}", "@Test\n public void removeAllObjects() {\n store.close();\n store.deleteAllFiles();\n store = createBoxStoreBuilderWithTwoEntities(false).build();\n putTestEntities(5);\n Box<TestEntityMinimal> minimalBox = store.boxFor(TestEntityMinimal.class);\n minimalBox.put(new TestEntityMinimal(0, \"Sally\"));\n assertEquals(5, getTestEntityBox().count());\n assertEquals(1, minimalBox.count());\n\n store.removeAllObjects();\n assertEquals(0, getTestEntityBox().count());\n assertEquals(0, minimalBox.count());\n\n // Assert inserting is still possible.\n putTestEntities(1);\n assertEquals(1, getTestEntityBox().count());\n }", "public void clearGame() {\n\t\tselectedObjects.clear();\n\t}", "public void clearChangeSet()\r\n\t{\n\t\toriginal = new Hashtable(10);\r\n\t\t//System.out.println(\"111111 in clearChangeSet()\");\r\n\t\tins_mov = new Hashtable(10);\r\n\t\tdel_mod = new Hashtable(10);\r\n\r\n\t\tfor (int i = 0; i < seq.size(); i++) {\r\n\t\t\tReplicated elt = (Replicated) seq.elementAt(i);\r\n\t\t\toriginal.put(elt.getObjectID(), elt);\r\n\t\t}\r\n\t}", "public void clear() {\n\t\tcollectors[MaterialState.TRANSLUCENT_INDEX].clear();\n\n\t\tfor (int i = 0; i < solidCount; i++) {\n\t\t\tsolidCollectors.get(i).clear();\n\t\t}\n\n\t\tsolidCount = 0;\n\n\t\tArrays.fill(collectors, 1, collectors.length, null);\n\t}", "public void dropWaitingStates() {\n waitlist.clear();\n }", "public void removeAll() {\n start = null;\n _size = 0;\n }", "public void clear(){\n this.collected.clear();\n }", "public void reset() {\n\t\tsetVisible(false);\n\t\tfor (GameObject gameObject : objects) {\n\t\t\tgameObject.reset();\n\t\t}\n\t}", "@Override\n public void clear() {\n for (E e : this) {\n remove(e);\n }\n }", "public void resetWorld() {\n \t\tmyForces.clear();\n \t\t\n \t\tfor (CollidableObject obj : myObjects) {\n \t\t\tobj.detach();\n \t\t}\n \t\tmyObjects.clear();\n \t\t\n \t\taddHalfspaces();\n \t}", "public void clearCollections() {\n sevenStates = new int[7][16];\n moveGeneratedFrom.clear();\n movesWithFreeTurn.clear();\n movesWhichPreventSteals.clear();\n opponentChoicesToSteal.clear();\n opponentBoardsBeforeSteal.clear();\n }", "public void removeByObject()\r\n\t{\n\t}", "private void clearLists() {\n\t\tobjects = new ArrayList<Entity>();\n\t\tenemies.clear();\n\t\titemList.clear();\n\t}", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void clearCollected(){\n\t\tcollected.clear();\n\t}", "public void removeAllGeneralEncapsulatedObject() {\r\n\t\tBase.removeAll(this.model, this.getResource(), GENERALENCAPSULATEDOBJECT);\r\n\t}", "public final void removeAllCompositeTypes()\n {\n listModel.removeAllElements();\n\tallTypes.removeAllElements();\n }", "private void clear_to_state () {\n\n\t\t// Structures not valid if we don't have a forecast\n\n\t\tif (modstate < MODSTATE_FORECAST) {\n\t\t\tgenericForecast = null;\n\t\t\tseqSpecForecast = null;\n\t\t\tbayesianForecast = null;\n\t\t}\n\n\t\t// Structures not valid if we don't have parameers\n\n\t\tif (modstate < MODSTATE_PARAMETERS) {\n\t\t\tcur_model = null;\n\t\t\tbayesianModel = null;\n\t\t}\n\n\t\t// Structures not valid if we don't have a catalog\n\n\t\tif (modstate < MODSTATE_CATALOG) {\n\t\t\tfcmain = null;\n\t\t\taafs_fcparams = null;\n\t\t\tfetch_fcparams = null;\n\t\t\tcustom_search_region = null;\n\t\t\tanalyst_inj_text = null;\n\t\t\thas_fetched_catalog = false;\n\n\t\t\tcur_mainshock = null;\n\t\t\tcur_aftershocks = null;\n\t\t\tgenericModel = null;\n\t\t\taftershockMND = null;\n\t\t\tmnd_mmaxc = 0.0;\n\t\t}\n\n\t\treturn;\n\t}", "public void removeObject(java.lang.Object object) {}", "@Override\r\n public void processRemoveAll()\r\n {\r\n final ICacheEvent<String> cacheEvent =\r\n createICacheEvent(getCacheName(), \"all\", ICacheEventLogger.REMOVEALL_EVENT);\r\n try\r\n {\r\n reset();\r\n }\r\n finally\r\n {\r\n logICacheEvent(cacheEvent);\r\n }\r\n }", "public void removeAll() {\n/* 105 */ this.connectionToTimes.clear();\n/* */ }", "public void deleteNonSerializableObjects() {\n \n ArrayList<VisualObject> delList = new ArrayList<VisualObject>();\n \n for (CanvasWindow w : this) {\n \n if (w instanceof VisualObject) {\n VisualObject o = (VisualObject) w;\n \n VisualCanvas mainCanvas = (VisualCanvas) getMainCanvas();\n \n int inspectorID = o.getObjectRepresentation().getObjectID();\n \n Object result = mainCanvas.getInspector().getObject(inspectorID);\n \n if (!(result instanceof Serializable)) {\n delList.add(o);\n } else {\n String value = Base64.encodeObject((Serializable) result);\n if (value == null) {\n delList.add(o);\n }\n }\n }\n }\n \n for (VisualObject vObj : delList) {\n \n if (vObj == null) {\n getMainCanvas().getMessageBox().addMessage(\n \"Error: object does not exist\",\n \"Error: null obj in visual-object-list\",\n MessageType.ERROR);\n continue;\n }\n \n VisualCanvas canvas = (VisualCanvas) getMainCanvas();\n \n Object o = canvas.getInspector().\n getObject(vObj.getObjectRepresentation().getObjectID());\n \n removeObjectWithoutEffect(vObj.getID());\n \n if (o == null) {\n getMainCanvas().getMessageBox().addMessage(\n \"Error: object does not exist\",\n \"Error: object with id \"\n + vObj.getObjectRepresentation().getObjectID()\n + \" is null!\",\n MessageType.ERROR);\n \n System.err.println(\"Error: object with id \"\n + vObj.getObjectRepresentation().getObjectID()\n + \" is null!\");\n \n continue;\n }\n \n if (!(o instanceof IgnoreNotSerializableWarnings)\n && !ComponentUtil.isSerializationEnabled(o.getClass())) {\n \n getMainCanvas().getMessageBox().addMessage(\n \"Warning: Can't save some objects\",\n \"Some objects are not serializable and had to be\"\n + \" removed.<br><br> <p>Please ensure that all \"\n + \"objects implement the <b><i>Serializable</i></b> \"\n + \"interface and that properties don't prevent\"\n + \" serialization. \"\n + \"Use <b><i>transient</i></b> in this case.<p>\"\n + \"Classes added from shell cannot be deserialized\"\n + \" because source code definition is not available.\"\n + \"This can be fixed by adding a new \"\n + \"<b><i>AbstractCode</i></b> to the canvas before\"\n + \"saving the session.\",\n MessageType.WARNING);\n }\n }\n }", "public void removeAll() {\n\t\tsynchronized (mNpcs) {\n\t\t\tmNpcs = Collections.synchronizedList(new ArrayList<Npc>());\n\t\t\tmDemonCount = 0;\n\t\t\tmHumanCount = 0;\n\t\t}\n\t}", "public void removeAll() {\n _hash = new Hashtable();\n _first = null;\n _last = null;\n }", "private void clearAllState() {\n // Clear all layout records and views\n mLayoutRecords.clear();\n removeAllViews();\n\n // Reset to the top of the grid\n resetStateForGridTop();\n\n // Clear recycler because there could be different view types now\n mRecycler.clear();\n }", "public void deselectObjects() {\n if (contextMenu != null) {\n contextMenu.hide();\n contextMenu = null;\n }\n\n // Deselect all objects\n objectsProperty.stream().forEach(ov -> ov.setSelected(false));\n hintsProperty.stream().forEach(hv -> hv.setSelected(false));\n }", "public void removeAllInterpretedBy() {\r\n\t\tBase.removeAll(this.model, this.getResource(), INTERPRETEDBY);\r\n\t}", "public void removeObject(AdvObject obj) {\n\t\tobjects.remove(obj); // Replace with your code\n\t}", "public boolean remove(objectType obj);", "private void maintain() {\n SoftObject obj;\n int count = 0;\n\n while ((obj = (SoftObject)queue.poll()) != null) {\n count++;\n collection.remove(obj);\n }\n\n if (count != 0) {\n // some temporary debugging fluff\n System.err.println(\"vm reclaimed \" + count + \" objects\");\n }\n }", "public void unsetState()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(STATE$8, 0);\r\n }\r\n }", "public void removeAll()\n {\n this.front = null;\n this.rear = null;\n }", "public void clear() {collection.clear();}", "public void clear() {\n \tthis.listShapes.clear();\n }", "private void clean() {\n nodesToRemove.clear();\n edgesToRemove.clear();\n }", "private void clearStateInfo(){\r\n cmbState.removeAllItems();\r\n }", "public void clearState(){\r\n\t\tinsideSemiringWeightsTable.clear();\r\n\t}", "void removeAll();", "void removeAll();", "public void removeAllFightsystems()\r\n {\n\r\n }", "protected void deallocate() {\r\n\t\t// create a list of objects ordered by the time of last access\r\n\t\tList<ObjectStatus> timeOrderedObjects = getListOfObjectClassTimeSorted();\r\n\t\twhile (!sizeNormal() && timeOrderedObjects.size() > 0) {\r\n\t\t\t// take the least recently used object and remove it from the list\r\n\t\t\tString currentObjectID = timeOrderedObjects.remove(0).getID();\r\n\t\t\t// kill that object in the ever seen so\r\n\t\t\t// it would be treated as a dead object from now on\r\n\t\t\tkillObject(currentObjectID);\r\n\t\t\tdeallocate(currentObjectID);\r\n\r\n\t\t}\r\n\r\n\t}", "public void clear() {\n\t\t// If settingActive is true, clear will be called for all children anyway. No need to loop.\n\t\tif (children != null) {\n\t\t\tfor (BusinessObject child : children.values()) {\n\t\t\t\tchild.clear();\n\t\t\t}\n\t\t}\n\t}", "public void removeDead() {\n for (BaseObject object : new ArrayList<BaseObject>(bombs)) {\n if (!object.isAlive())\n bombs.remove(object);\n }\n\n for (BaseObject object : new ArrayList<BaseObject>(rockets)) {\n if (!object.isAlive())\n rockets.remove(object);\n }\n\n for (BaseObject object : new ArrayList<BaseObject>(ufos)) {\n if (!object.isAlive())\n ufos.remove(object);\n }\n }", "public void clearEntities()\n\t{\n\t\twhile(!this.entities.isEmpty())\n\t\t{\n\t\t\t//Can use 0 index because we use swap with last anyway\n\t\t\tthis.removeEntity(0); //Important because onDespawn and to remove from hash grid\n\t\t}\n\t}", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "public void removeAll()\r\n {\r\n if (level ==2)\r\n {\r\n removeObjects(getObjects(Platforms.class));\r\n removeObjects(getObjects(Ladder.class));\r\n removeObjects(getObjects(SmallPlatform.class));\r\n removeObjects(getObjects(Door.class)); \r\n removeObjects(getObjects(Tomato.class)); \r\n removeObjects(getObjects(Bullet.class));\r\n removeObjects(getObjects(DeadTomato.class));\r\n player.setLocation();\r\n }\r\n if (level == 3)\r\n {\r\n removeObjects(getObjects(Tomato.class));\r\n removeObject(door2);\r\n removeObjects(getObjects(Canon.class));\r\n removeObjects(getObjects(CanonBullet.class));\r\n removeObjects(getObjects(Bullet.class));\r\n removeObjects(getObjects(Pedestal.class));\r\n removeObjects(getObjects(Platforms.class));\r\n removeObjects(getObjects(DeadTomato.class));\r\n }\r\n if (level == 4)\r\n {\r\n removeObjects(getObjects(Platforms.class));\r\n removeObjects(getObjects(Text.class));\r\n removeObjects(getObjects(Bullet.class));\r\n removeObjects(getObjects(Ladder.class));\r\n removeObjects(getObjects(Door.class)); \r\n removeObjects(getObjects(Boss.class)); \r\n removeObjects(getObjects(Thorns.class));\r\n player.setLocation();\r\n }\r\n }", "@Override\n public void removeAll(){\n gameCollection.removeAllElements();\n }", "public void removeStep1(Object obj) {\n\t\tdao.deleteStep1(obj);\n\t}", "public void removeAllInvolvedPerson() {\r\n\t\tBase.removeAll(this.model, this.getResource(), INVOLVEDPERSON);\r\n\t}", "public void clear() {\n\t\tcollection.clear();\n\t}", "@Override\r\n\tpublic void undo() {\n\t\tfor(IShape shape : tempList)\r\n\t\t\tshapeList.remove(shape);\r\n\t}", "void removeAll() throws ModelRuntimeException;", "@Override\n\tpublic void clearAll() {\n\t\t\n\t}", "public void reset() {\n this.list.clear();\n }", "void unsetObjectives();", "public synchronized void elementsCleared(Object source) {\n\n\t}", "public void clear() {\n\t\tthis._cooccurenceMatrix = null;\n\t\tthis._modules.clear();\n\t\tthis._vertices.clear();\n\t}", "public void reset() {\n this.state = null;\n }", "public void remTargetObjectClass(){\n rem(DmpDMSAG.__targetObjectClass);\n }", "void remover(Object o);", "public void remove(Object obj) {\n\t\tif (obj instanceof Entity) {\n\t\t\tentities.remove(obj);\n\t\t}\n\t\t\n\t\tif (obj instanceof ICollidable) {\n\t\t\tcollidables.remove(obj);\n\t\t}\n\n\t\tif (obj instanceof IDrawable) {\n\t\t\tdrawables.remove(obj);\n\t\t}\n\t}", "void unsetState();", "public void clear()\n {\n // Clear headlines retrieved\n for( String running : this.running)\n {\n // Clear all retrieved headlines\n this.retrieved.put(running, new HashMap<>());\n this.ui.finishedTasks(running + \" is running\");\n }\n // Clear list of running tasks\n this.running.clear();\n\n // Reset cancelled flag\n synchronized(this.cancelledMonitor)\n {\n this.cancelled = false;\n }\n\n theLogger.info(\"Clearing filter due to user cancel\");\n }", "private void tryRemoveAllFactoryObjects(final FactoryInternal factory)\n {\n for (FactoryObjectInternal object: getRegistry().getObjectsByProductType(factory.getProductType()))\n {\n try\n {\n getRegistry().removeObject(object.getUuid());\n factory.dispose(object.getProxy()); \n }\n catch (final Exception e)\n {\n m_Logging.error(e, \"Unable to remove all factory objects of product type [%s]\", \n factory.getProductType());\n }\n }\n }" ]
[ "0.74583036", "0.70816433", "0.6602452", "0.6532646", "0.6218169", "0.6193238", "0.6107686", "0.610715", "0.6104301", "0.5985617", "0.5973944", "0.5893671", "0.5879077", "0.58766425", "0.5848064", "0.5847046", "0.5839818", "0.5839818", "0.58191484", "0.5818129", "0.5786839", "0.5753559", "0.5750126", "0.5747861", "0.57350874", "0.5725178", "0.5704228", "0.570181", "0.5698233", "0.56921864", "0.5690886", "0.56785214", "0.56767154", "0.5664767", "0.56617284", "0.56526643", "0.56462884", "0.56459427", "0.56459427", "0.56459427", "0.56459427", "0.56459427", "0.56459427", "0.56459427", "0.56459427", "0.56459427", "0.56459427", "0.56459427", "0.56459427", "0.56429666", "0.5640196", "0.56200933", "0.56191653", "0.5606573", "0.55821186", "0.5579485", "0.5573844", "0.5573222", "0.55690217", "0.5565138", "0.55641747", "0.5564165", "0.55542135", "0.55369645", "0.5530713", "0.5530279", "0.55241674", "0.55080354", "0.5506574", "0.54867786", "0.54846776", "0.5482088", "0.5481893", "0.5481893", "0.5477864", "0.54736906", "0.54707736", "0.54703206", "0.5469246", "0.5466896", "0.5466896", "0.54658073", "0.54604524", "0.54528105", "0.5443296", "0.5440631", "0.5438676", "0.54386383", "0.5433007", "0.5432965", "0.54249257", "0.5407053", "0.54040223", "0.53993165", "0.53957856", "0.53931457", "0.53842676", "0.53829736", "0.53744435", "0.5369849" ]
0.8245581
0
Gets all the objects of type "object flow state" previously added to the collection of the current object. Additions and removals of elements to and from the returned collection do not change the state of current object (i.e. the returned collection is a copy of the internal one of the current object). However, if an element contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the returned collections share references to the same objects).
Collection<ObjectFlowState> getObjectFlowStates();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\t\n\tpublic InventoryObjectState getObjectsCurrentState();", "public StateVariable getRelevantObjects () {\n return relevantObjects;\n }", "public List getTheObjects() {\r\n if (theObjects == null) {\r\n setTheObjects(new Vector());\r\n }\r\n return theObjects;\r\n }", "public List<OnlineObject> getNewObjects() {\n\t\tsynchronized (this.onlineObjects) {\n\t\t\treturn new ArrayList<OnlineObject>(this.recentlyAddedObjects);\n\t\t}\n\t}", "public abstract AbstractObjectIterator<LocalAbstractObject> getAllObjects();", "public ArrayList<EplusObject> getObjects() {\n\t\treturn objects;\n\t}", "public Set<ObjRef> getAddedRefs() {\n return Sets.newHashSet(addedObjRefToLineageRefs.keySet());\n }", "@Override\n public Set<AbstractState> asCollection() {\n return unmodifiableReached;\n }", "public Collection getRegisteredObjects() {\n return usedByObjects;\n }", "private List<E> snapshot() {\n\t\tList<E> list = Lists.newArrayListWithExpectedSize(size());\n\t\tfor (Multiset.Entry<E> entry : entrySet()) {\n\t\t\tE element = entry.getElement();\n\t\t\tfor (int i = entry.getCount(); i > 0; i--) {\n\t\t\t\tlist.add(element);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "public List<T> getSavedObjects() {\n // Lazily generate the object, in case it's not needed.\n if (objects == null) {\n if (dbObjects.length > 0) {\n if (dbObjects[0] instanceof JacksonDBObject) {\n throw new UnsupportedOperationException(\n \"Saved object retrieval not supported when using stream serialization\");\n }\n }\n objects = jacksonDBCollection.convertFromDbObjects(dbObjects);\n }\n return objects;\n }", "void clearObjectFlowStates();", "public List<Object> getTraversalStack()\n {\n return Collections.unmodifiableList(traversalStack);\n }", "public Collection<GObject> getObjects();", "public List<State> getFinalStates() {\n\t\tif (cachedFinalStates == null) {\n\t\t\tcachedFinalStates = new LinkedList<>(finalStates);\n\t\t}\n\t\treturn cachedFinalStates;\n\t}", "public List<I> get() {\n synchronized (refs) {\n List<I> res = new ArrayList<>();\n for (Iterator<WeakReference<I>> iterator = refs.iterator(); iterator.hasNext(); ) {\n WeakReference<I> ref = iterator.next();\n I instance = ref.get();\n if (instance == null) {\n iterator.remove();\n } else {\n res.add(instance);\n }\n }\n return res;\n }\n }", "public List<Pair> getStatesSeenSoFar() {\n\t\treturn list;\n\t}", "private static List<State<StepStateful>> getStates() {\n List<State<StepStateful>> states = new LinkedList<>();\n states.add(s0);\n states.add(s1);\n states.add(s2);\n states.add(s3);\n states.add(s4);\n states.add(s5);\n states.add(s6);\n return states;\n }", "List<SoftObjectReference> getObjects();", "public List<Element> getState() {\r\n return savedState_;\r\n }", "public Collection<BaseDocument> getUnsavedDocuments() {\n\t\tVector<BaseDocument> ret = new Vector<BaseDocument>();\n\t\tif (theStructures.hasChanged())\n\t\t\tret.add(theStructures);\n\t\treturn ret;\n\t}", "public List<GameObject> getObjects () {\n\t\treturn objects;\n\t}", "@Override\r\n\tpublic ArrayList<StateVO> getStateList() {\n\t\treturn stateSQLMapper.selectAll();\r\n\t}", "public Vector<ESItem> getUnsavedChanges() {\n Vector<ESItem> vars = new Vector<ESItem>();\n Enumeration en = root.depthFirstEnumeration();\n while (en.hasMoreElements()) {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) en.nextElement();\n Object obj = node.getUserObject();\n if (obj instanceof ESItem) {\n ESItem var = (ESItem) obj;\n if (var.isChanged()) {\n vars.add(var);\n }\n }\n }\n return vars;\n }", "@Override\n public AbstractObjectIterator<LocalAbstractObject> provideObjects() {\n return getAllObjects();\n }", "public List<OnlineObject> getOnlineObjects() {\n\t\tsynchronized (this.onlineObjects) {\n\t\t\treturn getOnlineObjects(this.onlineObjects.size());\n\t\t}\n\t}", "default Collection<I_GameState> getRepeatStates() {\n return getRepeatStates(FULL_EQUAL);\n }", "Collect getColl();", "public TaskList getTasks() {\n\t\t//Creates a copy of the state.\n\t\t//This is needed in order to make it impossible to change state from the outside by manipulating the returned object\n\t\tTaskList temp = new TaskList();\n\t\tsynchronized(taskListState) {\n\t\t\tfor(Task t : taskListState.getList())\n\t\t\t\ttemp.getList().add(t);\n\t\t}\n\t\treturn temp;\n\t}", "private List<Multiset.Entry<E>> snapshot() {\n\t\t\tList<Multiset.Entry<E>> list = Lists\n\t\t\t\t\t.newArrayListWithExpectedSize(size());\n\t\t\tfor (Multiset.Entry<E> entry : this) {\n\t\t\t\tlist.add(entry);\n\t\t\t}\n\t\t\treturn list;\n\t\t}", "public List<OnlineObject> getOfflineObjects() {\n\t\tsynchronized (this.onlineObjects) {\n\t\t\treturn new ArrayList<OnlineObject>(this.recentlyRemovedObjects);\n\t\t}\n\t}", "@Override\n\tpublic Set<T> retrieveAllItems() {\n\t\treturn cache;\n\t}", "public Set<StateVertex> getAllStates() {\n\t\treturn sfg.vertexSet();\n\t}", "@Override\n public synchronized Enumeration elements() {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n return super.elements();\n }", "public List<FreeColGameObject> disposeList() {\n List<FreeColGameObject> objects = new ArrayList<FreeColGameObject>();\n if (owner != null\n && getTile() != null\n && getTile().getSettlement() != null) {\n // Defensive tests to handle transition from calling dispose()\n // on both sides to when it is only called on server-side.\n \n // Get off the map\n Tile settlementTile = getTile();\n List<Tile> lostTiles = getOwnedTiles();\n for (Tile tile : lostTiles) {\n tile.changeOwnership(null, null);\n }\n settlementTile.setSettlement(null);\n \n // The owner forgets about the settlement.\n Player oldOwner = owner;\n oldOwner.removeSettlement(this);\n oldOwner.invalidateCanSeeTiles();\n // It is not safe to setOwner(null). When a settlement is\n // destroyed there is a race between this code and some\n // display routines that still need to know who owned the\n // dead settlement.\n }\n \n objects.addAll(super.disposeList());\n return objects;\n }", "@Override\n public List<CacheObject<K, V>> getAll(){\n return new ArrayList<>(this.cache.values());\n }", "public List<EventSource> getEventList() {\n List<EventSource> result = new ArrayList<>();\n for (EventSource event : this.eventList) {\n // Create a deep-copy of each EventSource.\n result.add(new EventSource(event));\n }\n // Return an unmodifiable list.\n return Collections.unmodifiableList(result);\n }", "public ArrayList<DrawableGraphState> getStates() {\r\n\t\treturn new ArrayList<DrawableGraphState>(states);\r\n\t}", "private void removeAllObjects()\n {\n removeObjects (getObjects(Actor.class));\n }", "public List hardList() {\r\n List result = new ArrayList();\r\n\r\n for (int i=0; i < size(); i++) {\r\n Object tmp = get(i);\r\n\r\n if (tmp != null)\r\n result.add(tmp);\r\n }\r\n\r\n return result;\r\n }", "public ObjectChangeSet getChangeSet() {\n return changeSet;\n }", "public static com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Orders> getPendingObjects()\n {\n return (com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Orders>)(Object)DELEGATE.getPendingObjects();\n }", "public ObjectStack() {\n\t\tcollection = new ArrayBackedIndexedCollection();\n\t}", "protected Object undoCollection(Object potentialCollection, Object otherObject) {\n if ((otherObject != null) && (potentialCollection instanceof Collection) &&\n !(otherObject instanceof Collection)) {\n if ((((Collection<?>) potentialCollection).size() == 1) && ((Collection) potentialCollection).iterator()\n .next().getClass().equals(otherObject.getClass())) {\n potentialCollection = ((Collection) potentialCollection).iterator().next();\n }\n }\n return potentialCollection;\n }", "private List<ConnectionSetup> createDetachedSnapshotOfCollection() {\n return Collections.unmodifiableList(new ArrayList<ConnectionSetup>(setups));\n }", "public List<TCSObjectReference<Point>> getHops() {\n return new LinkedList<>(hops);\n }", "public ArrayList<Disposable> getDisposableObjects()\n {\n return this.disposableObjects;\n }", "public Set<TransportOrder> findNewDispatchableOrders() {\n Set<TransportOrder> result = new HashSet<>();\n kernel.getTCSObjects(TransportOrder.class).stream()\n .filter(order -> order.hasState(TransportOrder.State.ACTIVE))\n .filter(order -> !hasUnfinishedDependencies(order))\n .forEach(order -> {\n updateTransportOrderState(order.getReference(), TransportOrder.State.DISPATCHABLE);\n result.add(order);\n });\n return result;\n }", "@Override\n public final ObjectGraph getObjectGraph() {\n return mObjectGraph;\n }", "public Collection<V> getAllElements() {\n\t\treturn cacheMap.values();\n\t}", "public List<BaseObject> getAllItems() {\n ArrayList<BaseObject> list = new ArrayList<BaseObject>(ufos);\n list.add(ship);\n list.addAll(bombs);\n list.addAll(rockets);\n return list;\n }", "@Override\r\n public NumericObjectArrayList makeDeepCopy() {\r\n NumericObjectArrayList list = new NumericObjectArrayList();\r\n for (int i = 0; i < this.getCount(); i++) {\r\n try {\r\n list.insert(i, this.getValueAt(i));\r\n } catch (IndexRangeException ex) {\r\n //Shouldn't happen\r\n }\r\n }\r\n return list;\r\n }", "public ArrayList<State<T>> getStatesList() { \r\n\t\treturn statesList;\r\n\t}", "public List<Object> traverse() {\n return traverse(new PreorderTraversal());\n }", "public Set<GameDTO> getGamesWhichCanBeMovedToHistory() {\n return appealService.findAllByAppealStage(AppealStage.CONSIDERED)\n .stream()\n .map(Appeal::getGame)\n .map(gameDTOService::toGameDTO)\n .collect(Collectors.toSet());\n }", "void addObjectFlowState(ObjectFlowState objectFlowState);", "public Map<String, Object> getObjects() {\n return objects;\n }", "@Override\n public Set<ModuleReference> findAll() {\n while (hasNextEntry()) {\n scanNextEntry();\n }\n return cachedModules.values().stream().collect(Collectors.toSet());\n }", "public Collection<UniqueID> getReferenceList() {\n return ObjectGraph.getReferenceList(this.id);\n }", "@Override\n public List<E> allItems() {\n return new ArrayList(graphNodes.keySet());\n }", "public List<FieldObject> getFieldObjects() {\n return _fieldObjects;\n }", "public Collection<T> getItems() {\r\n return Collections.unmodifiableCollection(items);\r\n }", "public Collection getCallerContext() {\n Collection coll = new ArrayList();\n\n for (int i = 0; i < ctxObjs.length; ++i) {\n coll.add(ctxObjs[i]);\n }\n return coll;\n }", "ArrayList<Move> getMoveHistory() {\n return _moveHistory;\n }", "public List<ValueObject> getValueObjects()\r\n {\r\n List<ValueObject> vos = new ArrayList<ValueObject>();\r\n vos.add(getValueObject());\r\n return vos;\r\n }", "public ArrayList getObjsList() {\n return objList;\n }", "static public List orderedsetFlatten(Object source) {\n\t\tList result = new ArrayList();\n\t\tif ( source instanceof Collection ) {\n\t\t\tIterator it = ((Collection)source).iterator();\n\t\t\twhile ( it.hasNext() ) {\n\t\t\t\tObject elem = it.next();\n\t\t\t\tif ( elem instanceof Collection ) {\n\t\t\t\t\tresult.addAll( orderedsetFlatten(elem));\n\t\t\t\t} else {\n\t\t\t\t\tresult.add(elem);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@SuppressWarnings(\"unchecked\")\n public <O> List<O> activeVersions() {\n return (List<O>) journal.journal\n .retrieve(BarbelQueries.allActive(journal.id), BarbelQueryOptions.sortAscendingByEffectiveFrom())\n .stream().map(d -> journal.processingState.expose(journal.context, (Bitemporal) d))\n .collect(Collectors.toList());\n }", "public Iterator iterator()\n {\n // optimization\n if (OldOldCache.this.isEmpty())\n {\n return NullImplementation.getIterator();\n }\n\n // complete entry set iterator\n Iterator iter = instantiateIterator();\n\n // filter to get rid of expired objects\n Filter filter = new Filter()\n {\n public boolean evaluate(Object o)\n {\n Entry entry = (Entry) o;\n boolean fExpired = entry.isExpired();\n if (fExpired)\n {\n OldOldCache.this.removeExpired(entry, true);\n }\n return !fExpired;\n }\n };\n\n return new FilterEnumerator(iter, filter);\n }", "@Override\n public void getMemento() {\n List<ArrayList<Die>> old = new ArrayList<>();\n for(ArrayList<Die> ar : roundTrackMemento.peek()) {\n old.add(new ArrayList<>(ar));\n }\n this.dice = old;\n }", "public ArrayList<State> getStates(){\n\t\treturn this.states;\n\t}", "public List<Set<SDGNode>> firstPass() {\n Object[] edges = icfg.edgeSet().toArray();\n\n // first, temporarily remove all edges but CF and CALL\n for (int i = 0; i < edges.length; i++) {\n SDGEdge e = (SDGEdge) edges[i];\n if (e.getKind() != SDGEdge.Kind.CONTROL_FLOW\n && e.getKind() != SDGEdge.Kind.CALL) {\n\n buffer.addFirst(e);\n icfg.removeEdge(e);\n }\n }\n\n // then compute SCCs\n StrongConnectivityInspector<SDGNode, SDGEdge> sci = new StrongConnectivityInspector<SDGNode, SDGEdge>(icfg);\n List<Set<SDGNode>> erg = sci.stronglyConnectedSets();\n\n // put return edges back\n for (SDGEdge e : buffer) {\n icfg.addEdge(e);\n }\n buffer.clear();\n\n return erg;\n }", "Object visitArrayOfObjects(ArrayOfObjectsNode node, Object state);", "@Override\n\tpublic synchronized Collection<Transition> getTransitions() {\n\t\treturn this.transitions;\n\t}", "public List<Transition> getTransitionsToState(final State to) {\n\t\tList<Transition> toReturn = transitionArrayToStateMap.get(to);\n\t\tif (toReturn == null) {\n\t\t\tfinal List<Transition> list = transitionToStateMap.get(to);\n\t\t\ttoReturn = list;\n\t\t\ttransitionArrayToStateMap.put(to, toReturn);\n\t\t}\n\t\treturn toReturn;\n\t}", "public List<Object> getObjectsForTest() {\n return objects;\n }", "private Collection<ReplayState<C>> skipHead(ReplayState<C> state) {\r\n\t\tCollection<ReplayState<C>> states = new ArrayList<ReplayState<C>>();\r\n\t\tif (!state.trace.isEmpty()) {\r\n\t\t\t/*\r\n\t\t\t * Determine new cost.\r\n\t\t\t */\r\n\t\t\tC newCost = addOperator.add(state.cost, ReplayAction.REMOVE_HEAD, null, state.trace.get(0));\r\n\t\t\t/*\r\n\t\t\t * Determine new trace.\r\n\t\t\t */\r\n\t\t\tList<? extends Object> newTrace = getTail(state.trace);\r\n\t\t\t/*\r\n\t\t\t * Add new state.\r\n\t\t\t */\r\n\t\t\taddState(states, state, state.marking, null, newCost, newTrace);\r\n\t\t}\r\n\t\treturn states;\r\n\t}", "public EventStack<T> deepCopy() {\n final Stack<EventStackEntry<T>> copiedStack = new Stack<>();\n for (final EventStackEntry<T> iterEntry : eventStack) {\n copiedStack.push(iterEntry.deepCopy());\n }\n final EventStack<T> copiedOutput = new EventStack<>(firstEventTime);\n copiedOutput.setStack(copiedStack);\n return copiedOutput;\n }", "public Object dolly() throws OculusException\n {\n StdCollectionTrashColl StandardsCollectionList = null;\n StandardsCollectionList = new StdCollectionTrashColl();\n StandardsCollectionList.setIID(_iid);\n StandardsCollectionList._items.addAll(this._items);\n StandardsCollectionList.reset();\n return StandardsCollectionList;\n }", "Collection<T> getAll() {\n _readLock.lock();\n try {\n return ImmutableList.copyOf(_toMap.values());\n } finally {\n _readLock.unlock();\n }\n }", "public List<GlobalStateDataControl> getGlobalStates( ) {\r\n\r\n return globalStatesDataControlList;\r\n }", "@Override\n\tpublic void undo() {\n\t\tfor (IShape shape : temp) {\n\t\t\tlist.add(shape);\n\t\t}\n\t}", "UncommittedEvents events() {\n var events = get().stream()\n .flatMap(segment -> segment.getEventList()\n .stream())\n .collect(toList());\n return UncommittedEvents.ofNone()\n .append(events);\n }", "public CardSet takeSnapshot() {\n resetCardStates();\n\n CardSet snapshot = cardSet.getSnapshot();\n snapshots.push(snapshot);\n return snapshot;\n }", "List<WorkflowProcessingState> getStates();", "public Iterator iterator() {\n maintain();\n return new MyIterator(collection.iterator());\n }", "public List<ImageStatisticsElementGroupElementImageState> getElements() {\n return unmodifiableList(elements);\n }", "protected Collection getNewBucket()\n {\n return new ArrayList();\n }", "public List<NavArc> listIncoming() {\r\n List<NavArc> result = new ArrayList<>(incoming);\r\n return result;\r\n }", "public synchronized Iterator<E> iterator()\n {\n return iteratorUpAll();\n }", "public Collection<ModuleStateData> getStateData()\r\n {\r\n return myStateData;\r\n }", "public final Set<MindObject> getComponents(){\n Set<MindObject> components = new HashSet<>();\n\n components.add(this);\n\n for (MindObject subComponent: getDirectSubComponents()){\n components.add(subComponent);\n components.addAll(subComponent.getDirectSubComponents());\n }\n\n return components;\n }", "public List<E> toList() {\r\n ArrayList<E> result = new ArrayList<E>(this.size());\r\n for (E e : this) {\r\n result.add(e);\r\n }\r\n return result;\r\n }", "public Sq<LifeState> lifeStates() {\r\n return lifeStates;\r\n }", "public void advanceObjectsCollection() {\r\n\t\twhile (this.in.readToTag()) {\r\n\t\t\tfinal Type type = this.in.getTag().getType();\r\n\t\t\tif ((type == Type.BEGIN)\r\n\t\t\t\t\t&& this.in.getTag().getName().equals(\r\n\t\t\t\t\t\t\tPersistReader.TAG_OBJECTS)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfinal String str = \"Can't find objects collection, invalid file.\";\r\n\t\tif (this.logger.isErrorEnabled()) {\r\n\t\t\tthis.logger.error(str);\r\n\t\t}\r\n\t\tthrow new PersistError(str);\r\n\r\n\t}", "public void reset() {\n aCollection = this.asciiMathLibraryBlock.getOwnedElement().stream().filter(e -> e instanceof NamedElement).collect(Collectors.toList());\n cCollection = this.customFuncBlock.getOwnedElement().stream().filter(e -> e instanceof NamedElement).collect(Collectors.toList());\n }", "public List<Event> flush() {\n List<Event> flush;\n synchronized (this) {\n flush = this.queue.flush();\n }\n return flush;\n }", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<T> getList() {\r\n\t\tgetEntityManager().flush();\r\n\t\treturn getEntityManager().createQuery(\r\n\t\t\t\t\"select OBJECT(o) from \" + getClassType().getSimpleName() + \" o order by o.id\")\r\n\t\t\t\t.getResultList();\r\n\t}", "public Set<Ticket> getTickets() { return Set.copyOf(tickets); }", "public ImmutableList<T> allExtant() {\n return ImmutableList.<T>builder().addAll(unchanged).addAll(changed).build();\n }" ]
[ "0.5950077", "0.58132446", "0.57407564", "0.5683233", "0.56130546", "0.56119496", "0.55308956", "0.54405224", "0.54272777", "0.5420912", "0.5391524", "0.538743", "0.5240091", "0.518584", "0.5166551", "0.514778", "0.51377445", "0.5135655", "0.51232445", "0.51166326", "0.5100237", "0.50711596", "0.50647455", "0.50644326", "0.5050754", "0.50315887", "0.49940425", "0.49929652", "0.4971565", "0.49683437", "0.49574572", "0.4939218", "0.49309698", "0.4922071", "0.49174288", "0.4905477", "0.48974794", "0.48912454", "0.48887092", "0.48777094", "0.48686773", "0.48635116", "0.4859238", "0.48529494", "0.48491514", "0.4843723", "0.48434973", "0.48405656", "0.4830397", "0.48052895", "0.47979558", "0.47887257", "0.47709662", "0.4769718", "0.4767287", "0.474956", "0.47475094", "0.47382596", "0.4729037", "0.4720776", "0.47054353", "0.4704478", "0.47018573", "0.4683834", "0.46833855", "0.4682132", "0.4673106", "0.4672125", "0.4672047", "0.46643168", "0.46635032", "0.46597466", "0.46544924", "0.46500966", "0.46467644", "0.4645527", "0.46428895", "0.46366158", "0.46322855", "0.46249494", "0.46244374", "0.46161994", "0.46144974", "0.4613367", "0.46063352", "0.460441", "0.4603803", "0.46033147", "0.46014625", "0.46005186", "0.45986614", "0.45979214", "0.45912892", "0.45858434", "0.45794097", "0.4576207", "0.45761448", "0.45760617", "0.4575737", "0.45680767" ]
0.7081549
0
Checks if a object flow state is contained in the collection of the current object.
boolean containsObjectFlowState(ObjectFlowState objectFlowState);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkWfState(String view_name, String objid)\n {\n ASPManager mgr = getASPManager();\n ASPContext ctx = mgr.getASPContext();\n String objid_ = (String)ctx.findGlobalObject(prefix_wf_ob_dr + view_name);\n if (\"ALL\".equals(objid_))\n return true;\n \n if (!mgr.isEmpty(objid) && objid.equals(objid_))\n return true;\n \n return false;\n }", "public boolean hasObject(){\n return _object != null;\n }", "public boolean checkIn(){\n return state.checkIn();\n }", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "Collection<ObjectFlowState> getObjectFlowStates();", "public boolean containsObject(AdvObject obj) {\n\t\treturn objects.contains(obj); // Replace with your code\n\t}", "public boolean isSetObject() {\n return this.object != null;\n }", "protected boolean isValid() {\n return COLLECTION.getList().contains(this);\n }", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "@java.lang.Override\n public boolean hasObject() {\n return object_ != null;\n }", "public boolean hasObject() {\n return objectBuilder_ != null || object_ != null;\n }", "private boolean isCollStatusPending(final Specimen objSpecimen)\r\n\t{\r\n\t\treturn objSpecimen.getCollectionStatus() == null || !Constants.COLLECTION_STATUS_COLLECTED.equals(objSpecimen.getCollectionStatus());\r\n\t}", "boolean hasHasState();", "public boolean isStoredInObject() {\r\n return lockValueStored == IN_OBJECT;\r\n }", "private boolean containState(String state) {\r\n for (int i = 0; i < this.visitedList.size(); i++) {\r\n if (state.equals(this.visitedList.get(i))) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public boolean contains(T obj) {\r\n\t\tlogger.trace(\"Enter contains\");\r\n\t\tlogger.trace(\"Exit contains\");\r\n\t\treturn data.contains(obj);\r\n\t}", "@SuppressWarnings(\"SameReturnValue\")\n public boolean checkInvariant() {\n if (layerList.isEmpty()) {\n throw new IllegalStateException(\"no layer in \" + getName());\n }\n if (activeLayer == null) {\n throw new IllegalStateException(\"no active layer in \" + getName());\n }\n if (!layerList.contains(activeLayer)) {\n throw new IllegalStateException(\"active layer (\" + activeLayer.getName() + \") not in list (\" + layerList.toString() + \")\");\n }\n return true;\n }", "@Override\n public boolean equals(Object obj){\n \tState s=(State) obj;\n if (this.state==s.getState())\n \treturn true;\n else\n \treturn false;\n \t\t\n }", "public boolean evaluate(T obj) {\n\t\treturn set.contains(obj);\n\t}", "public boolean isInEnv()\n {\n return environment().objectAt(location()) == this;\n }", "public boolean contains (Object obj) {\n\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n\t\t\tif (obj.equals (p.myItem)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean contains (Object obj) {\n\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n\t\t\tif (obj.equals (p.myItem)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean contains (Object obj) {\n\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n\t\t\tif (obj.equals (p.myItem)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean contains (Object obj) {\n\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n\t\t\tif (obj.equals (p.myItem)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "Collection<? extends String> getHasState();", "public boolean isSetState()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(STATE$8) != 0;\r\n }\r\n }", "private boolean hasUniqueState()\n {\n return (getExternalArcState() == getMiddleArcState() && getExternalArcState() == getInternalArcState() && getExternalArcState() == getCircleState());\n }", "public boolean isMember(T o)\n {\n return (objectSet.search(o) != null);\n }", "public boolean isCollection() {\n return this == LOAD || this == PICKUP;\n }", "public boolean isInList();", "public boolean hasCollidedWith(InteractiveObject obj){\n\t\tif (obj == null) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn (leftCollision(obj) || rightCollision(obj));\n\t\t}\n\t}", "@Override\n public boolean isValid() {\n return isAdded() && !isDetached();\n }", "@Override\n public boolean validCheckForObject(final AtlasObject object)\n {\n return object instanceof Edge\n // Make sure that the object has an iso_country_code\n && object.getTag(ISOCountryTag.KEY).isPresent()\n // Make sure that the edges are instances of roundabout\n && JunctionTag.isRoundabout(object)\n // And that the Edge has not already been marked as flagged\n && !this.isFlagged(object.getIdentifier())\n // Make sure that we are only looking at master edges\n && ((Edge) object).isMasterEdge()\n // Check for excluded highway types\n && !this.isExcludedHighway(object);\n }", "public boolean contains(E obj){\n\t\tif (obj == null)\n\t\t\tthrow new IllegalArgumentException(\"The given item is null.\");\n\t\tfor(E val : this) {\n\t\t\tif(val.equals(obj))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isSet() {\n return !this.stack.isEmpty();\n }", "@Override\n public boolean contains(E obj) {\n Node<E> currentNode = head;\n if (isEmpty())\n return false;\n else if (obj.compareTo(peekFirst()) == 0)\n return true;\n else if (obj.compareTo(peekLast()) == 0)\n return true;\n else {\n while (true) {\n if (obj.compareTo(currentNode.data) == 0) {\n return true;\n } else if (currentNode.next == null)\n return false;\n else\n currentNode = currentNode.next;\n }\n }\n }", "@Override\r\n\tpublic boolean contains(Object o) {\n\t\treturn set.contains(o);\r\n\t}", "public boolean isState(final State state) {\n\t\treturn states.contains(state);\n\t}", "public final boolean checkIfInZone(L2Object obj) { return (getSiege(obj) != null); }", "public boolean containsState(final State state) {\r\n final State relativeState = (mTargetAgent != null ? state.getStateWithRespectToAgent(mTargetAgent) : state);\r\n return mStateMap.containsKey(relativeState);\r\n }", "boolean isSetObjectives();", "protected boolean isColliding() {\n\t\treturn phxService.isColliding(this);\n\t}", "public boolean hasState() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasState() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasState() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean contains(WModelObject object)\n\t{\n\t\treturn m_elements.contains(object);\n\t}", "public boolean hasState() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "protected void verifyState() throws BOException {\n\t\t// No need to validate inactive objects\n\t\tif (isActive()) {\n\t\t\tif (children != null) {\n\t\t\t\tfor (BusinessObject child : children.values()) {\n\t\t\t\t\tif (child.independentProperty().getValue()) {\n\t\t\t\t\t\tchild.verifyState();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tString err = doVerifyState();\n\t\t\tif (!StringUtil.isNullOrBlank(err)) {\n//\t\t\t\tthrow new BOException(\"Failed to verfy child with message '\" + err + \"'\", this);\n\t\t\t\tthrow new BOException(err, this);\n\t\t\t}\n\t\t\tif (children != null) {\n\t\t\t\tfor(BusinessObject child : children.values()) {\n\t\t\t\t\tif (!child.independentProperty().getValue()) {\n\t\t\t\t\t\tchild.verifyState();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n public boolean equals(Object object) {\n DFAState otherState = (DFAState) object;\n return this.hashCode == otherState.hashCode();\n }", "boolean hasActive();", "private boolean isValid() throws InvalidStateException{\n if (this.homeTeam == null || this.visitingTeam == null){\n return false;\n }else{\n return true;\n }\n }", "protected boolean isObjectHeld() { return objHeld; }", "public boolean hasState() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "public boolean isEmpty() {\r\n\t\treturn objectCollection.isEmpty();\r\n\t}", "public boolean hasState() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "public boolean hasItem() {\n return (this.curItem != null);\n }", "@Override\n\t\tpublic boolean contains(Object o) {\n\t\t\treturn false;\n\t\t}", "public boolean contains(E obj)\n {\n Node m = head;\n while( m.getNext() != null)\n {\n m = m.getNext();\n if(m.getValue().equals(obj))\n {\n return true; \n }\n }\n return false;\n }", "public boolean checkIn()\r\n\t{\r\n\t\tif(this.status == 'B')\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "public boolean containsIncomingRelations();", "public boolean hasState() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "public boolean hasState() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "Boolean isCurrentListDoneList();", "public boolean isSetBusinessObjectType() {\r\n return businessObjectType != null;\r\n }", "public boolean contains(T obj) {\r\n return lastIndexOf(obj) != -1;\r\n }", "@Override\n public boolean isOwningCollection(Item item, Collection c)\n {\n Collection collection = item.getOwningCollection();\n\n if (collection != null && c.getID() == collection.getID())\n {\n return true;\n }\n\n // not the owner\n return false;\n }", "public boolean isCollectable() {\n if (!getMode().isCollection() || isCarried()) return false;\n return Map.isSameLocation(plan.twait, transportable.getLocation())\n && Map.isSameLocation(plan.cwait, carrier.getLocation());\n }", "public boolean isInCheck() {\n\t\treturn false;\n\t}", "@Override\r\n public boolean equals(Object obj) {\r\n // check for null\r\n if (obj == null) {\r\n System.out.println(\"State.equals() null fail\");\r\n return false;\r\n }\r\n // check that these objects are both States\r\n if (getClass() != obj.getClass()) {\r\n System.out.println(\"State.equals() class fail\");\r\n return false;\r\n }\r\n // cast to State\r\n State other = (State) obj;\r\n // check if these have the same root stored\r\n if (!this.root.equals(other.root)) {\r\n System.out.println(\"State.equals() root fail\");\r\n return false;\r\n }\r\n // check if these have the same exit state\r\n if (this.getExit() != (other.getExit())) {\r\n System.out.println(\"State.equals() exit fail\");\r\n return false;\r\n }\r\n // check if these have the same directory stack\r\n if (!this.directoryStack.equals(other.directoryStack)) {\r\n System.out.println(\"State.equals() dirStack fail\");\r\n return false;\r\n }\r\n // check if these have the same working directory\r\n return this.getWorkingDirectory().equals(other.getWorkingDirectory());\r\n }", "public boolean equals(Object o) {\r\n\t\tif (!(o instanceof State)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tState other = (State) o;\r\n\t\treturn id.equals(other.id) && flow.equals(other.flow);\r\n\t}", "public boolean hasState() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean isSetContextItems() {\r\n return this.contextItems != null;\r\n }", "@Override\n\tpublic boolean contains(Object o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean contains(Object o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean contains(Object o) {\n\t\treturn false;\n\t}", "public boolean isInterestedInAllItems();", "public boolean hasState() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "boolean hasFeedItemSet();", "private boolean isDiscarded(Object obj) {\n if (obj instanceof Item) {\n return isDiscardedStatus(((Item) obj).getStatus());\n } else if (obj instanceof Container) {\n return isDiscardedStatus(((Container) obj).getStatus());\n } else if (obj instanceof Space) {\n return isDiscardedStatus(((Space) obj).getStatus());\n } else if (obj instanceof MetadataProfile) {\n return isDiscardedStatus(((MetadataProfile) obj).getStatus());\n } else if (obj instanceof Person) {\n return false;\n } else if (obj instanceof Organization) {\n return false;\n }\n return false;\n }", "public boolean hasState() {\n return fieldSetFlags()[3];\n }", "public boolean hasState() {\n return fieldSetFlags()[3];\n }", "private boolean contain(Estado state, List<Estado> states) {\n\t\tfor (Estado valid : states) {\n\t\t\tif (valid.getValue() == state.getValue()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isClassObject() {\n\t\treturn heldObj.isClassObject();\n\t}", "public boolean isSetInternal()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(INTERNAL$4) != 0;\n }\n }", "int countObjectFlowStates();", "public boolean hasState() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasState() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }" ]
[ "0.63371307", "0.619343", "0.6166202", "0.6028145", "0.6028145", "0.6028145", "0.6028145", "0.6028145", "0.6028145", "0.6028145", "0.600498", "0.5996472", "0.59874785", "0.59803414", "0.5968284", "0.5968284", "0.5968284", "0.5968284", "0.5968284", "0.5968284", "0.5968284", "0.5968284", "0.59660476", "0.59649026", "0.5934643", "0.5918394", "0.5860296", "0.5852736", "0.58514225", "0.58285326", "0.5813691", "0.5765825", "0.5713863", "0.56904364", "0.56904364", "0.56904364", "0.56900555", "0.5685938", "0.56742346", "0.5665078", "0.5651098", "0.5633566", "0.5629758", "0.5629055", "0.56284934", "0.56281084", "0.5627988", "0.5616749", "0.5611368", "0.56024426", "0.55967957", "0.55679566", "0.55675536", "0.5566431", "0.5562477", "0.5561797", "0.5561797", "0.5561681", "0.5549875", "0.5543097", "0.55405927", "0.55313367", "0.5526613", "0.5518628", "0.5498781", "0.5486017", "0.54854983", "0.54839563", "0.5473342", "0.5472521", "0.5472039", "0.5459884", "0.54580903", "0.54552376", "0.5454333", "0.5453401", "0.54448885", "0.5441243", "0.5440326", "0.5438188", "0.5437371", "0.54322", "0.5428727", "0.54147923", "0.5411909", "0.53861344", "0.53861344", "0.53861344", "0.5384009", "0.5382357", "0.53822494", "0.53804594", "0.5380337", "0.5380337", "0.5374489", "0.5373644", "0.5372285", "0.53692776", "0.536855", "0.536855" ]
0.817357
0
Returns the number of objects of type "object flow state" previously added to the collection of the current object.
int countObjectFlowStates();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}", "public int getNumObjects(){\n return numObjects;\n }", "public static int numberObjects()\r\n\t{\r\n\t\treturn(no_of_obj);\r\n\t}", "public int getNumbObjects()\n\t{\n\t\treturn this.numObjects;\n\t}", "protected long getObjectCount() {\r\n return objectCount;\r\n }", "public int getSize() {\n\t\t\treturn objects.size();\n\t\t}", "public int getCount() {\n return objects.size();\n }", "public int getObjectCounter() {\n return objectCounter;\n }", "public int getNumberOfItemObjects() {\r\n\t\treturn itemFileVersions.size();\r\n\t}", "public int size() {\n\t\t\treturn gameObjects.size();\n\t\t}", "public int size() {\n if (hasKeys) {\n return keys.size();\n } else {\n return objects.size();\n }\n }", "public int getCount(){\n\t\treturn mDataObjects.size();\n\t}", "public int size() {\n maintain();\n return collection.size();\n }", "public int getObjectCount() {\n\t\treturn nestedConcept.getExtent().size();\n\t}", "public int size() { return _byHashCode.size(); }", "public static int findNumberOfCreatedComputers() {\n return objCounter;\n }", "public int size() {\n\t\treturn count;\n\t}", "public int size() {\n\t\treturn count;\n\t}", "public int size() {\n\t\treturn count;\n\t}", "public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n\t}", "public static int count(final IdentifiedObject object) {\n int c = 0;\n final NameIterator it = new NameIterator(object);\n while (it.hasNext()) {\n it.next();\n c++;\n }\n return c;\n }", "public int size()\r\n\t{\r\n\t\treturn count;\r\n\t}", "public int size() {\n return count;\n }", "public static int size() \r\n\t{\r\n\t\treturn m_count;\r\n }", "public void count() {\n\t\talgae = -1;\n\t\tcrab = -1;\n\t\tbigFish = -1;\n\t\tfor(GameObjects o: objects) {\n\t\t\tswitch(o.toString()) {\n\t\t\tcase \"algae\":\n\t\t\t\talgae +=1;\n\t\t\t\tbreak;\n\t\t\tcase \"crab\":\n\t\t\t\tcrab +=1;\n\t\t\t\tbreak;\n\t\t\tcase \"big fish\":\n\t\t\t\tbigFish +=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public int size()\r\n {\r\n return count;\r\n }", "public int size() { return count; }", "@Override\r\n\tpublic int size() {\n\t\treturn count;\r\n\t}", "public int size() {\n resolveAll();\n return resolvedPojos.size();\n }", "public int size()\n {\n return count;\n }", "public int size() {\n\t\treturn collection.size();\n\t}", "@Override\r\n\tpublic int size() {\r\n\t\treturn count;\r\n\t}", "public synchronized int size() {\n return count;\n }", "public final int size()\n {\n return m_count;\n }", "public int size() {\n int counter = 1;\n Lista iter = new Lista(this);\n while (iter.next != null) {\n iter = iter.next;\n counter += 1;\n }\n return counter;\n }", "public int size() {\r\n return refs.size();\r\n }", "public static int size() {\n\t\treturn (anonymousSize() + registeredSize());\n\t}", "@Override\n public int size() {\n return count;\n }", "@Override\n public int size() {\n return count;\n }", "public int size() {\n return collection.size();\n }", "public int size() {\n int size = 0;\n\n Collection<CacheableObject> values = new HashSet<CacheableObject>();\n synchronized(theLock) {\n values.addAll(valueMap.values());\n }\n\n for (CacheableObject cObj : values) {\n if (! this.isExpired(cObj)) {\n size++;\n }\n }\n\n return size;\n }", "public int size() {\n return this.collection.size();\n }", "Collection<ObjectFlowState> getObjectFlowStates();", "int getUncommittedEventCount();", "public int size() {\n return used;\n }", "public int size() {\n processQueue();\n return weakCache.size();\n }", "public int beanBagsInStock() {\n int counter = 0;\r\n // Loop through every object in the \"stockList\" object array list.\r\n for (int i = 0; i < stockList.size(); i++) {\r\n // If the current beanBag in the \"stockList\" sold state boolean is true.\r\n if (!((BeanBag) stockList.get(i)).isSold()) {\r\n // Increment the \"counter\" integer by 1.\r\n counter++;\r\n }\r\n }\r\n // Return the value of the \"counter\" integer.\r\n return counter;\r\n }", "public int count() {\n\t\treturn count;\n\t}", "public int getSize() {\n\t\treturn collection.size();\n\t\t\n\t}", "public int size() {\r\n return listeners.size() + weak.size();\r\n }", "public int numOccurences(Object object){\n\t\t\n\t\tint occur = 0;\n\t\tQueue queue = new Queue();\n\t\tqueue.enqueue(this);\n\t\t\n\t\twhile(!queue.isEmpty()){\n\t\t\tBinaryTree tree = (BinaryTree) queue.dequeue();\n\t\t\t\n\t\t\tif((object).equals(tree.getElement())){\n\t\t\t\toccur++;\n\t\t\t}\n\t\t\t\n\t\t\tif(!tree.leftTree().isEmpty())\n\t\t\t\tqueue.enqueue(tree.left);\n\t\t\tif(!tree.rightTree().isEmpty())\n\t\t\t\tqueue.enqueue(tree.rightTree());\n\t\t}\n\t\t\n\t\treturn occur;\n\t}", "int getNumEvents() {\n int cnt = eventCount;\n for (Entry entry : queue) {\n cnt += entry.eventCount;\n }\n return cnt;\n }", "public int getCount() {\n\t\treturn events.size();\n\t}", "@Override\n public int size() {\n int totalSize = 0;\n // iterating over collectionList\n for (Collection<E> coll : collectionList)\n totalSize += coll.size();\n return totalSize;\n }", "default int countItems() {\n return countItems(StandardStackFilters.ALL);\n }", "public int getCount()\r\n {\r\n return counts.peekFirst();\r\n }", "int getItemsCount();", "int getItemsCount();", "public int size() \r\n\t{\r\n\t\treturn getCounter();\r\n\t}", "public int size(){\n return count;\n }", "public int count() {\n\t\treturn sizeC;\n\t}", "public int numberReferencesToThis() {\n return referenceToThis.size();\n }", "long getObjectSize(Object instance);", "public int size(){\r\n\t\treturn numAdded;\r\n\t}", "int getRefsCount();", "public int size(){\n\t\tListUtilities start = this.returnToStart();\n\t\tint count = 1;\n\t\twhile(start.nextNum != null){\n\t\t\tcount++;\n\t\t\tstart = start.nextNum;\n\t\t}\n\t\treturn count;\n\t}", "public int size() {return collection.size();}", "public int size() {\n\t\treturn wc.size();\n\t}", "@Override\n\tpublic int size() {\n\n\t\treturn this.numOfItems;\n\t}", "public int getObjectPendingFinalizationCount();", "public int size()\r\n {\r\n return nItems;\r\n }", "public int size() \n { \n return count; \n }", "public int size()\r\n\t{\r\n\t\treturn numItems;\r\n\r\n\t}", "public int size() {\n return numItems;\n }", "@Override\r\n\tpublic int getCollectionTotalCount() {\n\t\treturn data != null ? data.recordCount : 0;\r\n\t}", "public int size() {\n return nItems;\n }", "@Override\r\n\t\tpublic int count() {\n\t\t\treturn 0;\r\n\t\t}", "@Override\n\tpublic int size() {\n\t\treturn util.iterator.IteratorUtilities.size(iterator());\n\t}", "public int sizeOf() {\n BookList target = this;\n int count = 0;\n if (isEmpty()){\n count= 0;\n }\n else if (!isEmpty()){\n count = 1;\n while (target.next != null){\n target = target.next;\n if(target.next == null){\n }\n \n ++count;\n }\n \n }\n\t\treturn count;\n\t}", "public int count() {\r\n return count;\r\n }", "public int size() {\n return items.size();\n }", "@Override\n\tpublic int count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int count() {\n\t\treturn 0;\n\t}", "public int size() {\r\n return items.size();\r\n }", "public int size() {\r\n return items.size();\r\n }", "@Override\r\n\tpublic int size() {\r\n\t\treturn numItems;\r\n\t}", "int sizeOfObjectDefinitionArray();", "public int size() {\n\t\tint result = 0;\n\t\tfor (E val: this)\n\t\t\tresult++;\n\t\treturn result;\n\t}", "public Integer getCount() {\n\t\treturn count;\n\t}", "public Integer getCount() {\n\t\treturn count;\n\t}", "int getStateValuesCount();", "int count(State state);", "public int getCount() {\r\n return bop.getCount();\r\n }", "public int countActive() {\n int result = 0;\n \n synchronized (m_reservableListMutex) {\n final Iterator iterator = m_reservables.iterator();\n \n while (iterator.hasNext()) {\n final Reservable reservable = (Reservable)iterator.next();\n \n if (!reservable.isClosed() && !reservable.isSentinel()) {\n ++result;\n }\n }\n }\n \n return result;\n }", "@Override\n\tpublic int size() {\n\t\treturn (top + 1);\n\t}", "public int count() {\n return this.count;\n }", "public long count() {\n\t\treturn 0;\n\t}", "public long count() {\n\t\treturn 0;\n\t}" ]
[ "0.77619344", "0.7200647", "0.7184607", "0.704058", "0.7031246", "0.69242656", "0.69065285", "0.68055654", "0.66135174", "0.6560494", "0.6528209", "0.644238", "0.64005977", "0.63598007", "0.6338092", "0.63192487", "0.6317344", "0.6317344", "0.6317344", "0.6313145", "0.63048565", "0.62959874", "0.62870544", "0.6286154", "0.627417", "0.6273146", "0.62624407", "0.6260501", "0.62459403", "0.62418425", "0.6231961", "0.6220711", "0.62140447", "0.6207924", "0.61999154", "0.61997074", "0.6191146", "0.61843795", "0.61843795", "0.6183791", "0.6161071", "0.6132019", "0.61261266", "0.6118749", "0.6116206", "0.61002064", "0.60954124", "0.6089179", "0.60877204", "0.60875887", "0.6085047", "0.6084468", "0.6078738", "0.60763204", "0.6059329", "0.6057825", "0.60530925", "0.60530925", "0.60481894", "0.60409516", "0.6035821", "0.6025604", "0.6025177", "0.6021258", "0.6017301", "0.6015901", "0.6003591", "0.5999484", "0.5995447", "0.598923", "0.5987698", "0.59864485", "0.5975165", "0.5969114", "0.5960838", "0.59604704", "0.59559834", "0.5953539", "0.5948484", "0.5936132", "0.59347755", "0.59328645", "0.59328645", "0.59328645", "0.59328645", "0.5929243", "0.5929243", "0.5927703", "0.5927603", "0.591806", "0.5912451", "0.5912451", "0.5910951", "0.5909327", "0.5900957", "0.5896129", "0.5895165", "0.58938974", "0.5887842", "0.5887842" ]
0.78306615
0
Adds a instance to the collection of the current object.
void addInstance(Instance instance);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add(Object obj) { \n\t\tcollection.addElement(obj);\n\t}", "void add(T instance);", "@Override\r\n\tpublic void add(Object object) {\n\t\t\r\n\t}", "@Override\n public void add(Object o) {\n gameCollection.addElement(o);\n }", "@Override\n <T> void add(T object);", "@Override\n\tpublic void add() {\n\t\t\n\t}", "public void instanceAdded(Contextual<?> bean, CreationalContext<?> context, Object instance);", "public boolean add(final Object obj) {\n maintain();\n\n SoftObject soft = SoftObject.create(obj, queue);\n \n return collection.add(soft);\n }", "public void add() {\n }", "public void add() {\n\t\t\n\t}", "public void add();", "@Override\n\tpublic void add(Object o) {\n\t}", "public SeriesInstance addInstance() {\n\t\tSeriesInstance newType = new SeriesInstance();\n\t\tgetInstance().add(newType);\n\t\treturn newType; \n\t}", "public void addObject(AdvObject obj) {\n\t\tobjects.add(obj);\n\t}", "public void add() {\n\n }", "public void addElement(Replicated obj)\r\n\t{\n\t\tinsert(obj, seq.size());\r\n\t}", "private void add() {\n\n\t}", "public void add(WorldObject obj) {\n\troomList.add(obj);\n}", "public void add(Object o);", "public void addItem(Object obj) {\n items.add(obj);\n }", "public void add(Map<Variable, Object> instance) {\n\t\tthis.listInstance.add(instance);\n\t}", "public void add(Object o){\n list.add(o);\n }", "@Override\n\tpublic boolean add(Object obj) {\n\t\treturn util.add(obj);\n\t}", "public final void addInstance(CharacterInstance instance) {\n instances.add(instance);\n }", "@Override\n public void add(T obj) {\n generateObjIdIfRequired(obj);\n \n //Try to copy when adding so we can prevent unwanted changes\n obj = getCopyOfT(obj);\n \n if (objects.contains(obj)) throw new DBEntityAlreadyExistsException(obj.toString());\n\n objects.add(obj);\n }", "public void push(Object value) {\n this.collection.add(value);\n }", "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "public void add(GeometricalObject object);", "void add(GeometricalObject object);", "public void add(Object value) {\n verifyModifiable();\n\n elements.add(value);\n }", "public void add(FavoriteEntity obj)\n {\n super.add(obj);\n }", "public void add(SolvingInstance solvingInstance) {\n si.add(solvingInstance);\n }", "public synchronized void addObject(E obj) {\n\t\twrappedSet.add((E) obj);\n\t}", "public void add (T obj);", "ReferenceData add(ReferenceData instance) throws DataException;", "public boolean add (T obj) {\r\n\t\tboolean result = _list.add (obj);\r\n\t\tHeapSet.siftUp (this, _list.size () - 1);\r\n\t\treturn result;\r\n\t}", "public void addObj(Object obj) {\n\t\t\tobjects.add(obj);\n\t\t}", "boolean add(Object object) ;", "public void add(E entity);", "void add(Object element);", "public void push(E obj) {\n super.add(obj);\n }", "@Override\r\n public void add(IMObject object) {\r\n cache.add(object);\r\n }", "void Add(Object obj );", "public org.python.Object __add__(org.python.Object other);", "public void add(Object object) {\n if(object != null) {\n results.add(object);\n }\n }", "public void add(E obj) {\r\n throw new UnsupportedOperationException();\r\n }", "@Override\n public void add(Fish object) {\n list.add(object);//adds the Fish to the list\n Log.d(\"Adapter\",\"added\");\n }", "void add( ModelObject modelObject, Long id );", "@Override\r\n\tpublic void add(T element) {\n\t\tthis._list.add(element);\r\n\t}", "boolean add(Object obj);", "boolean add(Object obj);", "@Override\r\n\tpublic void addMe() {\n\t\t\r\n\t}", "public void addElement(Object obj);", "public boolean add(Object element);", "public void add(E e) {\n\t\tentities.add(e);\n\t}", "RecipeObject addRecipe(RecipeObject recipe);", "@Override\n\tpublic void add(T t) {\n\t\tc.add(t);\n\t}", "public void add(GObject object);", "public void add(Avion avion)\n\t{\n\t}", "public void add(Object value) {\n\n\t}", "public void add(Object obj) {\n\t\tif (obj instanceof Entity) {\n\t\t\tentities.add((Entity) obj);\n\t\t}\n\t\t\n\t\tif (obj instanceof ICollidable) {\n\t\t\tcollidables.add((ICollidable) obj);\n\t\t}\n\t\t\n\t\tif (obj instanceof IDrawable) {\n\t\t\tdrawables.addFirst((IDrawable) obj);\n\t\t}\n\t}", "@Override\n\tpublic boolean add(Building object) {\n\t\tif (contains(object)) {\n\t\t\tsuper.remove(object);\n\t\t}\n\t\tsuper.add(object);\n\t\treturn true;\n\t}", "@Override\n\tpublic void add(Object object) {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction ts = session.beginTransaction();\n\t\tsession.save(object);\n\t\tts.commit();\n\t\tsession.close();\n\t}", "public void add(IFrame instance, CIdentity identity) {\n\n\t\tcoreMatcher.add(instance, identity);\n\t}", "public void addPerson(Person object)\n\t{\n\t\tthis.peopleList.add(object);\n\t}", "public void add(User user) {\r\n this.UserList.add(user);\r\n }", "public void addObject(GameObject gameObject) {\n\t\tobjects.add(gameObject);\n\t\t\n\t}", "public synchronized void add(T object) throws InterruptedException {\n\t\twhile (store.size() == capacity) {\n\t\t\tLOG.info(\"No more space\");\n\t\t\twait();\n\t\t}\n\t\tstore.add(object);\n\t\tLOG.info(\"Added product\" + store.size());\n\t\tnotify();\n\t}", "public void add(E item);", "public void add (Object t)\r\n {\r\n }", "void add(Item item);", "protected void addObject(Obstacle obj) {\n\t\tassert inBounds(obj) : \"Object is not in bounds\";\n\t\tobjects.add(obj);\n\t\tobj.activatePhysics(world);\n\t}", "public void addActor(){\n actorProfileList.add(new ActorProfile());\n }", "abstract void add();", "public void addObject(Visible v) {\n\t\tviewObjects.add(v);\r\n\t}", "public void addActor(Actor actor) { ActorSet.addElement(actor); }", "public void add() {\n\t\tSystem.out.println(\"I am from Add method\");\n\t}", "void add(Actor actor);", "public void addObject(final PhysicalObject obj) {\n \t\tmyScene.addChild(obj.getGroup());\n \t\tmyObjects.add(obj);\n \t}", "public void add(Scenario object) {\n original.add(object);\n filtered.add(object);\n notifyDataSetChanged();\n }", "int add(T objectToCreate);", "public void addReservable(Reservable item){\n // Adds an item to the manager\n listI.add(item);\n }", "protected void addObject(AbstractGameObject object) {\n\t\t// add object to rendering list\n\t\tobjects.add(object);\n\t\tif (object instanceof UIi18nReload) {\n\t\t\tuis.add((UIi18nReload) object);\n\t\t}\n\t\tobjects.sort(new Comparator<GameObject>() {\n\t\t\tpublic int compare(GameObject o1, GameObject o2) {\n\t\t\t\tAbstractGameObject ago1 = (AbstractGameObject) o1;\n\t\t\t\tAbstractGameObject ago2 = (AbstractGameObject) o2;\n\t\t\t\treturn (ago1.layer > ago2.layer ? -1 : (ago1.priority > ago2.priority ? -1 : 1));\n\t\t\t};\n\t\t});\n\t\t// add object to a specific Layer.\n\t\taddObjectToLayer(object);\n\n\t\tstatistics.put(\"objectCount\", objects.size());\n\t\tlogger.debug(\"Add {} to the objects list\", object.name);\n\t}", "public void add(GameObject newObject) {\n\t\tgameObjects.addElement(newObject);\n\t}", "void addCollisionObject(CollisionObjectWrapper co) {\n\tpendingObjects.put(co.getId(), co);\n }", "public void newApointment(Appointment ap){\n\n this.appointments.add(ap);\n }", "public void addCollidable(Collidable c) {\r\n this.collidObj.add(c);\r\n }", "@Traced\r\n\tpublic boolean addSimpleObject(SimpleObject obj){\n\t\tobjects.add(obj);\r\n\t\treturn true; // in future to handle some errors\r\n\t}", "private void addPayeeToCollection() {\n\t\tif (getForm().getType() != TRANSFER) {\n\t\t\tPayee payee = new Payee(getForm().getPayFrom());\n\n\t\t\tif (payee.getIdentifier().length() != 0) {\n\t\t\t\tgetPayees().add(payee);\n\t\t\t\tgetForm().getPayFromChooser().displayElements();\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void add(Botany botany) {\n\t\tdao.add(botany);\r\n\t}", "@Override\n public void add(T car) {\n carsInGarage.add(car);\n }", "@Override\n public void addObject() throws Exception {\n Object obj = _factory.makeObject();\n synchronized(this) {\n _numActive++; // A little slimy - must do this because returnObject decrements it.\n this.returnObject(obj);\n }\n }", "public void addObjectRef(ObjectRef ref){\n \t\tthis.objectRefs[objectPointer++] = ref;\n \t}", "void add(ObjectType object)\n throws GuacamoleException;", "public boolean add(E obj)\r\n {\r\n int originalSize = this.size();\r\n listIterator(originalSize).add(obj);\r\n return originalSize != this.size();\r\n }", "@Override\r\n\tpublic boolean add(VOI o) {\r\n VOI voi = null;\r\n\r\n // check that object is a VOI\r\n if (!(o instanceof VOI)) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n voi = o;\r\n\r\n // check the voi name, fix if necessary\r\n if (contains(voi)) {\r\n voi.setName(buildName(voi.getName()));\r\n }\r\n\r\n if (super.add(voi)) { // add the voi to the vector\r\n fireVOIadded(voi); // notify listeners of a change\r\n Preferences.debug(\"Add voi: name = \" + voi.getName() + \"\\n\");\r\n\r\n return true;\r\n }\r\n\r\n return false;\r\n }", "public void addObject(DcObject dco);", "public void addNewInstance(String className, String instanceName) {\n\t\tOntClass ontClass = model.getOntClass(getDefaultNS()+className);\n\t\tif(ontClass==null) throw new IllegalArgumentException(\"Class: '\"+className+\"' not found\");\n\t\tmodel.createIndividual(getDefaultNS()+instanceName, ontClass);\n\t}", "public void add(String nome, Object obj);", "@Override\n public boolean add(E e) {\n return offer(e);\n }" ]
[ "0.7142063", "0.7072026", "0.65351963", "0.6515934", "0.6496596", "0.63853323", "0.63764083", "0.63591266", "0.63497853", "0.62846166", "0.6238758", "0.62286794", "0.62104326", "0.61866933", "0.6166792", "0.61505944", "0.6133672", "0.61116314", "0.61030036", "0.6099634", "0.6088526", "0.6085552", "0.60626864", "0.60429144", "0.60359794", "0.60150933", "0.6005114", "0.59812677", "0.59548855", "0.59396994", "0.59284365", "0.59233993", "0.5918267", "0.5915077", "0.5905756", "0.58967125", "0.5896522", "0.5886306", "0.5861337", "0.58092594", "0.5808425", "0.5802116", "0.5779967", "0.576724", "0.5762783", "0.57595086", "0.5748178", "0.5741932", "0.57160854", "0.5709445", "0.5709445", "0.5701987", "0.5661416", "0.5661062", "0.5660949", "0.56608856", "0.5639999", "0.56369513", "0.5632732", "0.5629087", "0.5619659", "0.5615434", "0.5610604", "0.56101644", "0.55942094", "0.5587445", "0.55863297", "0.55714446", "0.5567411", "0.55643266", "0.5561687", "0.55595976", "0.5553528", "0.5551263", "0.5546805", "0.55444705", "0.55292624", "0.5523792", "0.5522754", "0.55142456", "0.55106324", "0.55030125", "0.54979336", "0.5479186", "0.547355", "0.54717326", "0.5471591", "0.5470799", "0.5451933", "0.54513556", "0.544816", "0.5447054", "0.54437923", "0.54394454", "0.54329795", "0.5426086", "0.54258686", "0.5424741", "0.5423039", "0.5420613" ]
0.7347758
0
Removes a instance from the collection of the current object.
boolean removeInstance(Instance instance);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void remove(T instance);", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\r\n super.remove();\r\n }", "public Object remove();", "public void remove() {\r\n return;\r\n }", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public ContentObject remove(\n )\n {\n ContentObject removedObject = objects.remove(index);\n refresh();\n\n return removedObject;\n }", "public void remove () {}", "public void remove() {\n\n }", "@Override\n public void remove() {\n }", "public final void remove () {\r\n }", "public void remove() {\n removed = true;\n if (room == null)\n return;\n room.removeEntity(this);\n }", "@Override\n public void remove() {\n }", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void removeByObject()\r\n\t{\n\t}", "Object remove();", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "public void removeIt() { \n\t\t\tcollection.remove(currIndex);\n\t\t\tcurrIndex--;\n\t\t}", "@Override\n\tpublic void remove() { }", "public void supprimerCollection(){\r\n collection.clear();\r\n }", "public void remove() {\r\n //\r\n }", "@Override\n\t\t\t\tpublic void remove() {\n\t\t\t\t\t\n\t\t\t\t}", "public void remove(){\n }", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "public void instanceRemoved(Contextual<?> bean, CreationalContext<?> context, Object instance);", "@Override\r\n\tpublic E remove() {\n\t\treturn null;\r\n\t}", "public E remove();", "public E remove();", "public void remove() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.delete(this);\n\t\tsession.getTransaction().commit();\n\t}", "@Override\n public boolean remove(Object o) {\n return gameCollection.remove(o);\n }", "public void remove() {\n btRemove().push();\n }", "public void remove() {\n btRemove().push();\n }", "public void removeItem(){\n\t\tthis.item = null;\n\t}", "@Override\n\tpublic E remove() {\n\t\treturn null;\n\t}", "public void remove() {\n\t}", "public void remove() {\n\t}", "public void remove ( ) {\n\t\texecute ( handle -> handle.remove ( ) );\n\t}", "public final void removeInstance(CharacterInstance instance) {\n instances.remove(instance);\n }", "void remove(ReferenceData instance) throws DataException;", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\t// YOU DO NOT NEED TO WRITE THIS\r\n\t\t}", "public Collection<V> remove(Object obj) {\n Collection collection = (Collection) this.Pu.remove(obj);\n if (collection == null) {\n return null;\n }\n Collection<V> ry = AbstractMapBasedMultimap.this.ry();\n ry.addAll(collection);\n AbstractMapBasedMultimap.this.Ps = AbstractMapBasedMultimap.this.Ps - collection.size();\n collection.clear();\n return ry;\n }", "void remove(InstanceProperties props) {\n props.remove();\n removeListeners.fireChange();\n }", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "private void removeObject() {\n\t\tif(this.curr_obj != null) {\n this.canvas.uRemove(this.curr_obj);\n\t\t\tthis.canvas.remove(this.transformPoints);\n this.transformPoints.clear();\n\n this.curr_obj = null;\n }\n\t}", "public void saveAndClear(E instance);", "public void remove()\r\n { Exceptions.unmodifiable(\"list\"); }", "@Override\n public void remove() {\n if (lastItem == null)\n throw new IllegalStateException();\n bag.remove(lastItem);\n lastItem = null;\n }", "public void remove()\n {\n list.remove(cursor);\n cursor--;\n }", "void remove( ModelObject object );", "@Override\r\n\tpublic boolean remove(Object o) {\n\t\treturn set.remove(o);\r\n\t}", "@Override\r\n\t\tpublic void remove() {\n\r\n\t\t}", "public void removeObject(AdvObject obj) {\n\t\tobjects.remove(obj); // Replace with your code\n\t}", "public void removeObject(java.lang.Object object) {}", "@Override\n public void removeFromDb() {\n }", "public void removeInstance(int index) {\n\t\tif(index >= 0) {\n\t\t\tinstances.remove(index);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"index must be >= 0\");\n\t\t}\n\t}", "public final void delete() {\n\t\tOllie.delete(this);\n\t\tOllie.removeEntity(this);\n\t\tnotifyChange();\n\t\tid = null;\n\t}", "public void removeVehicle() {\n\t\tmVehicles.removeFirst();\n\t}", "private void removeInstance(OpenHABInstance instance) {\n\t\tif (instance.getId() == prefs.getDefaultOpenHABInstanceId()) {\n\t\t\tprefs.setDefaultOpenHABInstanceId(-1);\n\t\t}\n\t\tprefs.removeOpenHABInstance(instance);\n\t\tlistAdapter.remove(instance);\n\t}", "void remove();", "void remove();", "void remove();", "void remove();", "void remove();", "public boolean remove(Object obj);", "@Override\n\tpublic void remove(Object o) {\n\t\t\n\t}", "public abstract void remove(Class<?> entity, Object paramObject);", "public void removeActor(Actor act) { ActorSet.removeElement(act); }", "@Override\n\tpublic void remove(Object entity) {\n\t\t\n\t}", "public void removeGameObj(GameObject obj){\n display.getChildren().remove(obj.getDisplay());\n }", "@Override\r\n\tpublic void delete(T instance) {\r\n\t\tif (isManaged(instance)) {\r\n\t\t\tinstance = loadInstance(instance.getId());\r\n\t\t\tgetEntityManager().remove(getEntityManager().merge(instance));\r\n\t\t}\r\n\t}", "public E remove() {\n\t\t// your code here\n\t\treturn null;\n\t}", "E remove(Id id);", "public boolean remove (Object obj) {\r\n\t\tboolean result = _list.remove (obj);\r\n\t\tHeapSet.heapify (this);\r\n\t\treturn result;\r\n\t}", "void removeFutureInstance();", "public boolean remove(objectType obj);", "@Override\r\n\tpublic E removeFirst() {\n\t\treturn null;\r\n\t}", "@Override\n protected void removeMember() {\n }", "@Override\n\tpublic void pop() {\n\t\tlist.removeFirst();\n\t}", "public static void clear(){\r\n instance = null;\r\n }" ]
[ "0.7124559", "0.66097033", "0.66097033", "0.66097033", "0.66097033", "0.66097033", "0.66097033", "0.66097033", "0.6591258", "0.6460836", "0.64255834", "0.6411209", "0.6411209", "0.6411209", "0.6411209", "0.6411209", "0.63983655", "0.63767844", "0.63608557", "0.6339932", "0.6304004", "0.6302781", "0.6299969", "0.62908447", "0.62908447", "0.62908447", "0.6276107", "0.62707275", "0.6246716", "0.6246716", "0.6211138", "0.61898386", "0.6181363", "0.61733454", "0.61703736", "0.6170287", "0.6170059", "0.6170059", "0.61660266", "0.61490476", "0.6141963", "0.6141963", "0.61309075", "0.60951877", "0.60918784", "0.60918784", "0.60830414", "0.6080957", "0.60758114", "0.60758114", "0.6027038", "0.599633", "0.598542", "0.5984749", "0.59803784", "0.5961083", "0.59544945", "0.59544945", "0.59544945", "0.59544945", "0.59544945", "0.59544945", "0.59544945", "0.59544945", "0.5953495", "0.59346116", "0.5913101", "0.5901044", "0.5895486", "0.5888363", "0.58883446", "0.5872494", "0.58716965", "0.58634067", "0.5861545", "0.5850326", "0.5837607", "0.5834415", "0.58331", "0.5820529", "0.5820529", "0.5820529", "0.5820529", "0.5820529", "0.5813297", "0.57881373", "0.5775435", "0.5770776", "0.57633597", "0.57587504", "0.575591", "0.57370114", "0.5735834", "0.5726257", "0.5720128", "0.5718452", "0.5715039", "0.5712197", "0.571219", "0.56972533" ]
0.6849223
1
Removes all the objects of type "instance" from the collection of the current object.
void clearInstances();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void clearInstances() {\n\t\t\tinterceptor.printer = null;\n\t\t\tinterceptor.converter = null;\n\t\t}", "public void removeDups(Instance instance) {\n ArrayList<Instance> toRemove = backRelation.get(instance);\n if(toRemove == null)\n return;\n for (Instance remove : toRemove) {\n relatedInstances.get(remove).remove(instance);\n toLink.remove(remove.getId());\n }\n backRelation.remove(instance);\n\n }", "private void removeAllObjects()\n {\n removeObjects (getObjects(Actor.class));\n }", "boolean removeInstance(Instance instance);", "public static void clear(){\r\n instance = null;\r\n }", "void remove(T instance);", "private void clearPreviousInstances() {\n DiscardedCards.clearInstance();\n Fireworks.clearInstance();\n History.clearInstance();\n SelectedSymbol.clearInstance();\n Tokens.clearInstance();\n HanabiCards.initDeck();\n }", "public void deleteInstanceChangedObservers();", "void reset() {\n synchronized (instances) {\n instances.clear();\n }\n }", "public final void removeInstance(CharacterInstance instance) {\n instances.remove(instance);\n }", "private void removeInstance(OpenHABInstance instance) {\n\t\tif (instance.getId() == prefs.getDefaultOpenHABInstanceId()) {\n\t\t\tprefs.setDefaultOpenHABInstanceId(-1);\n\t\t}\n\t\tprefs.removeOpenHABInstance(instance);\n\t\tlistAdapter.remove(instance);\n\t}", "public void saveAndClear(E instance);", "public static void removeAll() {\r\n\t\tfor (final Block block : new HashSet<>(instances_.keySet())) {\r\n\t\t\trevertBlock(block, Material.AIR);\r\n\t\t}\r\n\t\tfor (final TempBlock tempblock : REVERT_QUEUE) {\r\n\t\t\ttempblock.state.update(true, applyPhysics(tempblock.state.getType()));\r\n\t\t\tif (tempblock.revertTask != null) {\r\n\t\t\t\ttempblock.revertTask.run();\r\n\t\t\t}\r\n\t\t}\r\n\t\tREVERT_QUEUE.clear();\r\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void resetInstance() {\n\t\tinstance = null;\n\t}", "Collection<Instance> getInstances();", "@Override\n public void removeAll(){\n gameCollection.removeAllElements();\n }", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "private void removeDestroyedObjects ()\n {\n Collection<Asteroid> newAsteroids = new ArrayList<>(this.game.getAsteroids().size() * 2); // Avoid reallocation and assume every asteroid spawns successors.\n this.game.getAsteroids().forEach(asteroid -> {\n if (asteroid.isDestroyed()) {\n this.increaseScore();\n newAsteroids.addAll(asteroid.getSuccessors());\n }\n });\n this.game.getAsteroids().addAll(newAsteroids);\n // Remove all asteroids that are destroyed.\n this.game.getAsteroids().removeIf(GameObject::isDestroyed);\n // Remove any bullets that are destroyed.\n this.game.getBullets().removeIf(GameObject::isDestroyed);\n }", "public void clear() {\n\t\tthis.boundObjects.clear();\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (PhatVay phatVay : findAll()) {\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "@Override\r\n\tpublic void delete(T instance) {\r\n\t\tif (isManaged(instance)) {\r\n\t\t\tinstance = loadInstance(instance.getId());\r\n\t\t\tgetEntityManager().remove(getEntityManager().merge(instance));\r\n\t\t}\r\n\t}", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (TvShow tvShow : findAll()) {\n\t\t\tremove(tvShow);\n\t\t}\n\t}", "public void clear()\r\n {\r\n this.boundObjects.clear();\r\n }", "public void removeAll() {\n\t\tsynchronized (mNpcs) {\n\t\t\tmNpcs = Collections.synchronizedList(new ArrayList<Npc>());\n\t\t\tmDemonCount = 0;\n\t\t\tmHumanCount = 0;\n\t\t}\n\t}", "public void removeInstance(int index) {\n\t\tif(index >= 0) {\n\t\t\tinstances.remove(index);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"index must be >= 0\");\n\t\t}\n\t}", "public void destroyForAll() {\n super.destroyForAll();\n }", "public void supprimerCollection(){\r\n collection.clear();\r\n }", "private void destroyGameInstance() {\n // Destroy Game\n this.model.setPuzzle(null);\n this.model.setHintsUsed(0);\n this.model.getTimer().stop();\n this.model.setTimer(null);\n view.getGamePanel().getHintBtn().setEnabled(true);\n for (Cell cell : this.view.getGamePanel().getViewCellList()) {\n this.view.getGamePanel().getGrid().remove(cell);\n }\n }", "public void removeFileInstance()\n {\n this.source = null;\n this.data = null;\n }", "public void freeAll()\n\t\t{\n\t\t\ts_cGameInstance = null; \n\t\t}", "public void instanceRemoved(Contextual<?> bean, CreationalContext<?> context, Object instance);", "void remove(ReferenceData instance) throws DataException;", "public static void delInstance() {\n \tINSTANCE = null;\n \tcloseConnection();\n }", "public void freeInstance()\n {\n }", "public void freeInstance()\n {\n }", "public void clear() {\n\t\t//Kill all entities\n\t\tentities.parallelStream().forEach(e -> e.kill());\n\n\t\t//Clear the lists\n\t\tentities.clear();\n\t\tdrawables.clear();\n\t\tcollidables.clear();\n\t}", "public void removeAll()\r\n {\r\n if (level ==2)\r\n {\r\n removeObjects(getObjects(Platforms.class));\r\n removeObjects(getObjects(Ladder.class));\r\n removeObjects(getObjects(SmallPlatform.class));\r\n removeObjects(getObjects(Door.class)); \r\n removeObjects(getObjects(Tomato.class)); \r\n removeObjects(getObjects(Bullet.class));\r\n removeObjects(getObjects(DeadTomato.class));\r\n player.setLocation();\r\n }\r\n if (level == 3)\r\n {\r\n removeObjects(getObjects(Tomato.class));\r\n removeObject(door2);\r\n removeObjects(getObjects(Canon.class));\r\n removeObjects(getObjects(CanonBullet.class));\r\n removeObjects(getObjects(Bullet.class));\r\n removeObjects(getObjects(Pedestal.class));\r\n removeObjects(getObjects(Platforms.class));\r\n removeObjects(getObjects(DeadTomato.class));\r\n }\r\n if (level == 4)\r\n {\r\n removeObjects(getObjects(Platforms.class));\r\n removeObjects(getObjects(Text.class));\r\n removeObjects(getObjects(Bullet.class));\r\n removeObjects(getObjects(Ladder.class));\r\n removeObjects(getObjects(Door.class)); \r\n removeObjects(getObjects(Boss.class)); \r\n removeObjects(getObjects(Thorns.class));\r\n player.setLocation();\r\n }\r\n }", "void removeAllSpawn();", "public NodeSet deleteDataInstances() throws JNCException {\n this.dataInstances = null;\n String path = \"data-instances\";\n return delete(path);\n }", "public void removeByObject()\r\n\t{\n\t}", "@Override\n\tpublic Instances getInstances() {\n\t\treturn null;\n\t}", "public void removeAll() {\n this.arrayList = null;\n this.arrayList = new ArrayList<>();\n }", "public void removeAllInterpretedBy() {\r\n\t\tBase.removeAll(this.model, this.getResource(), INTERPRETEDBY);\r\n\t}", "public synchronized void unRegisterAll()\r\n {\r\n clearNameObjectMaps();\r\n }", "public CardCollection destroyAllCards() ;", "public void removeAllMissiles(){\n\t\tfor (Missile missile : this.missiles){\n\t\t\tif(!missile.isDestroyed() && missile != null){\n\t\t\t\tmissile.setDestroyed(true);\n\t\t\t\tmissile = null;\n\t\t\t}\n\t\t}\n\t\tfor (Missile fMissile : this.friendlyMissiles){\n\t\t\tif(!fMissile.isDestroyed() && fMissile != null){\n\t\t\t\tfMissile.setDestroyed(true);\n\t\t\t\tfMissile = null;\n\t\t\t}\n\t\t}\n\t}", "public void terminateAllRemainingInstances() {\n for (Iterator<MemberContext> iterator = activeMembers.iterator(); iterator.hasNext(); ) {\n MemberContext member = iterator.next();\n iterator.remove();\n terminateForcefully(member.getMemberId());\n }\n\n // Forcefully deleting remaining pending members\n for (Iterator<MemberContext> iterator = pendingMembers.iterator(); iterator.hasNext(); ) {\n MemberContext member = iterator.next();\n iterator.remove();\n terminateForcefully(member.getMemberId());\n }\n\n /// Forcefully deleting remaining termination pending members\n for (Iterator<MemberContext> iterator = terminationPendingMembers.iterator(); iterator.hasNext(); ) {\n MemberContext member = iterator.next();\n // Remove the current element from the iterator and the list.\n iterator.remove();\n terminateForcefully(member.getMemberId());\n }\n\n\n // Forcefully deleting remaining obsolete members\n for (Map.Entry<String, MemberContext> entry : obsoletedMembers.entrySet()) {\n MemberContext ObsoleteMemberContext = entry.getValue();\n obsoletedMembers.remove(entry.getKey());\n terminateForcefully(ObsoleteMemberContext.getMemberId());\n }\n }", "void removeAll();", "void removeAll();", "void remove(InstanceProperties props) {\n props.remove();\n removeListeners.fireChange();\n }", "@Test\n public void removeAllObjects() {\n store.close();\n store.deleteAllFiles();\n store = createBoxStoreBuilderWithTwoEntities(false).build();\n putTestEntities(5);\n Box<TestEntityMinimal> minimalBox = store.boxFor(TestEntityMinimal.class);\n minimalBox.put(new TestEntityMinimal(0, \"Sally\"));\n assertEquals(5, getTestEntityBox().count());\n assertEquals(1, minimalBox.count());\n\n store.removeAllObjects();\n assertEquals(0, getTestEntityBox().count());\n assertEquals(0, minimalBox.count());\n\n // Assert inserting is still possible.\n putTestEntities(1);\n assertEquals(1, getTestEntityBox().count());\n }", "@Override\r\n\tpublic void removeAll() {\r\n\t\tfor (Share share : findAll()) {\r\n\t\t\tremove(share);\r\n\t\t}\r\n\t}", "public void destruction()\n\t{\n\t\tremove();\n\t}", "public void removeAllTime() {\r\n\t\tBase.removeAll(this.model, this.getResource(), TIME);\r\n\t}", "public NodeSet deleteLbInstances() throws JNCException {\n this.lbInstances = null;\n String path = \"lb-instances\";\n return delete(path);\n }", "private void clearAll(){\r\n List<FantasyMatch> allMatches = fmatchBean.findAll();\r\n for(FantasyMatch fm : allMatches){\r\n fmatchBean.remove(fm);\r\n }\r\n \r\n List<RosterPlayer> allRps= rpBean.findAll();\r\n for(RosterPlayer rp : allRps){\r\n rpBean.remove(rp);\r\n }\r\n \r\n List<FantasyTeam> allTeams = ftBean.findAll();\r\n for(FantasyTeam ft : allTeams){\r\n ftBean.remove(ft);\r\n }\r\n \r\n List<FantasyLeague> allLeagues = flBean.findAll();\r\n for(FantasyLeague fl : allLeagues){\r\n flBean.remove(fl);\r\n }\r\n \r\n List<FantasyUser> allUsers = fUserBean.findAll();\r\n for(FantasyUser fu : allUsers){\r\n fUserBean.remove(fu);\r\n }\r\n }", "public void deleteInstance(){\n //cancels the runnable\n shouldCancelRunnable = true;\n //remove the chest from the map to avoid confusion\n this.location.getBlock().setType(Material.AIR);\n //unregister from all events, we're done!\n HandlerList.unregisterAll(this);\n }", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (Candidate candidate : findAll()) {\n\t\t\tremove(candidate);\n\t\t}\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (Paper paper : findAll()) {\n\t\t\tremove(paper);\n\t\t}\n\t}", "void removeAll() throws ModelRuntimeException;", "public static void deleteInstance(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\tBase.deleteInstance(model, RDFS_CLASS, instanceResource);\r\n\t}", "public void removeAllGeneralEncapsulatedObject() {\r\n\t\tBase.removeAll(this.model, this.getResource(), GENERALENCAPSULATEDOBJECT);\r\n\t}", "public void\t\tremoveAll()\n\t{\n\t\ttab.clear();\n\t}", "public void clearGame() {\n\t\tselectedObjects.clear();\n\t}", "public synchronized void deleteBaseObservers() {\n obs.removeAllElements();\n }", "abstract public void removeAll();", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (ESFInstructsShootingDirector esfInstructsShootingDirector : findAll()) {\n\t\t\tremove(esfInstructsShootingDirector);\n\t\t}\n\t}", "public void removeDead() {\n for (BaseObject object : new ArrayList<BaseObject>(bombs)) {\n if (!object.isAlive())\n bombs.remove(object);\n }\n\n for (BaseObject object : new ArrayList<BaseObject>(rockets)) {\n if (!object.isAlive())\n rockets.remove(object);\n }\n\n for (BaseObject object : new ArrayList<BaseObject>(ufos)) {\n if (!object.isAlive())\n ufos.remove(object);\n }\n }", "public void clearEnemies() {\n\t\tIterator<Entity> it = entities.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tEntity e = it.next();\n\t\t\t//Skip playerfish\n\t\t\tif (e instanceof PlayerFish) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t//Kill and remove the entity\n\t\t\te.kill();\n\t\t\tit.remove();\n\t\t}\n\t\t\n\t\t//Remove all non playerfish from collidables\n\t\tcollidables.removeIf(c -> !(c instanceof PlayerFish));\n\t\tdrawables.removeIf(c -> !(c instanceof PlayerFish));\n\t}", "private void clearCollection() {\n \n collection_ = getDefaultInstance().getCollection();\n }", "public static void deleteInstance()\r\n\t{\r\n\t\tlightManager = null;\r\n\t}", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void removeAll() {\n start = null;\n _size = 0;\n }" ]
[ "0.70525384", "0.68529564", "0.675028", "0.66539866", "0.65272534", "0.6506404", "0.64618725", "0.62933445", "0.62392217", "0.6237274", "0.6082785", "0.60231453", "0.59807175", "0.59706634", "0.59706634", "0.59706634", "0.59706634", "0.59706634", "0.59706634", "0.59706634", "0.59706634", "0.59706634", "0.59706634", "0.59060484", "0.5795454", "0.5785688", "0.57319695", "0.57319695", "0.57319695", "0.57319695", "0.57319695", "0.57319695", "0.57319695", "0.57319695", "0.57319695", "0.57319695", "0.57319695", "0.57319695", "0.5723994", "0.5720687", "0.57074517", "0.5698052", "0.5695861", "0.5691106", "0.56891567", "0.5674343", "0.5673936", "0.5664956", "0.5653832", "0.5651676", "0.56472176", "0.56277394", "0.5591302", "0.5579609", "0.5570767", "0.5570767", "0.5564186", "0.55627626", "0.5539692", "0.55382663", "0.55283904", "0.55180514", "0.55163336", "0.55159634", "0.55101985", "0.5508919", "0.55083597", "0.5507725", "0.55034477", "0.55034477", "0.54927874", "0.54892856", "0.5484229", "0.5460908", "0.5458102", "0.5442075", "0.5438611", "0.5432004", "0.54307705", "0.5430554", "0.54190207", "0.5399471", "0.5398481", "0.5392715", "0.53730243", "0.5365768", "0.5365147", "0.5356708", "0.5351594", "0.535051", "0.5346703", "0.53464085", "0.5344703", "0.5344703", "0.5344703", "0.5344703", "0.5344703", "0.5344703", "0.5344703", "0.5343522" ]
0.73434913
0
Gets all the objects of type "instance" previously added to the collection of the current object. Additions and removals of elements to and from the returned collection do not change the state of current object (i.e. the returned collection is a copy of the internal one of the current object). However, if an element contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the returned collections share references to the same objects).
Collection<Instance> getInstances();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<I> get() {\n synchronized (refs) {\n List<I> res = new ArrayList<>();\n for (Iterator<WeakReference<I>> iterator = refs.iterator(); iterator.hasNext(); ) {\n WeakReference<I> ref = iterator.next();\n I instance = ref.get();\n if (instance == null) {\n iterator.remove();\n } else {\n res.add(instance);\n }\n }\n return res;\n }\n }", "private Collection getInstances() {\n \t\tCollection instances=null;\r\n\r\n //instances = cls.getInstances();\r\n \t\tRDFProperty ready = owlModel.getRDFProperty(oTab.namespacePrefix + \":\" + oTab.pReady);\r\n\r\n \t\tif ( ready != null )\r\n \t\t{\r\n \t\t\tinstances = owlModel.getRDFResourcesWithPropertyValue(ready, true);\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tSystem.out.println(\"*** Could not lookup property defintion for \" + oTab.namespacePrefix + \":\" + oTab.pReady + \" Ontology not imported\");\r\n \t\t}\r\n\r\n return instances;\r\n }", "private List<Multiset.Entry<E>> snapshot() {\n\t\t\tList<Multiset.Entry<E>> list = Lists\n\t\t\t\t\t.newArrayListWithExpectedSize(size());\n\t\t\tfor (Multiset.Entry<E> entry : this) {\n\t\t\t\tlist.add(entry);\n\t\t\t}\n\t\t\treturn list;\n\t\t}", "private List<E> snapshot() {\n\t\tList<E> list = Lists.newArrayListWithExpectedSize(size());\n\t\tfor (Multiset.Entry<E> entry : entrySet()) {\n\t\t\tE element = entry.getElement();\n\t\t\tfor (int i = entry.getCount(); i > 0; i--) {\n\t\t\t\tlist.add(element);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "public ArrayList<Instance> getTestInstances() {\n ArrayList<Instance> testing = new ArrayList<>();\n testing.addAll(instances.subList(targetsize, instances.size()));\n return testing;\n }", "public java.util.List<SeriesInstance> getInstanceElement() { \n\t\tif (myInstance == null) {\n\t\t\tmyInstance = new java.util.ArrayList<SeriesInstance>();\n\t\t}\n\t\treturn myInstance;\n\t}", "public List<OnlineObject> getNewObjects() {\n\t\tsynchronized (this.onlineObjects) {\n\t\t\treturn new ArrayList<OnlineObject>(this.recentlyAddedObjects);\n\t\t}\n\t}", "public java.util.List<SeriesInstance> getInstance() { \n\t\tif (myInstance == null) {\n\t\t\tmyInstance = new java.util.ArrayList<SeriesInstance>();\n\t\t}\n\t\treturn myInstance;\n\t}", "public final List<CharacterInstance> getInstances() {\n return instances;\n }", "public List getTheObjects() {\r\n if (theObjects == null) {\r\n setTheObjects(new Vector());\r\n }\r\n return theObjects;\r\n }", "@Override\n\tpublic Set<Tuple<String, String>> getInstancesLinked() {\n\t\treturn instancesLinkedSet;\n\t}", "public Collection getRegisteredObjects() {\n return usedByObjects;\n }", "@Override\n public synchronized Set<FeatureType> getFeatureInstances() {\n return featureInstances = nonNullSet(featureInstances, FeatureType.class);\n }", "@Override\n\tpublic Instances getInstances() {\n\t\treturn null;\n\t}", "public List<ServiceInstance> getAllInstances();", "public InstanceDescription[] getContainedInstances() {\n return m_containedInstances;\n }", "public ArrayList<Instance> getTrainInstances() {\n ArrayList<Instance> training = new ArrayList<>();\n training.addAll(instances.subList(0, targetsize));\n return training;\n }", "public ArrayList<EplusObject> getObjects() {\n\t\treturn objects;\n\t}", "public static ArrayList<InstanceEntity> getInstances() {\n ILifeCycleServiceRest resourceserviceproxy =\n ConsumerFactory.createConsumer(MsbUtil.getNsocLifecycleBaseUrl(),\n ILifeCycleServiceRest.class);\n String result = \"\";\n try {\n result = resourceserviceproxy.getVnfInstances();\n } catch (Exception e1) {\n LOG.error(\"query vim info faild.\", e1);\n return null;\n }\n if (ToolUtil.isEmptyString(result)) {\n return null;\n }\n\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<InstanceEntity>>() {}.getType();\n return gson.fromJson(result, listType);\n }", "public Collection<GObject> getObjects();", "public List<T> getSavedObjects() {\n // Lazily generate the object, in case it's not needed.\n if (objects == null) {\n if (dbObjects.length > 0) {\n if (dbObjects[0] instanceof JacksonDBObject) {\n throw new UnsupportedOperationException(\n \"Saved object retrieval not supported when using stream serialization\");\n }\n }\n objects = jacksonDBCollection.convertFromDbObjects(dbObjects);\n }\n return objects;\n }", "@Override\n\tpublic Collection<Instance> getByQuery(Query query) {\n\t\treturn null;\n\t}", "public java.util.ArrayList getClones();", "public static SortBuilder[] allInstances() {\n \t\treturn (SortBuilder[]) allInstances.toArray(new SortBuilder[allInstances.size()]);\n \t}", "private List<itemInfo> getNewEntries() {\n\n final List<itemInfo> entries = new ArrayList<itemInfo>();\n return entries;\n }", "public SortedSet<WVnfInstance> getAllVnfInstances ()\n\t{\n\t\treturn n.getResources().stream().filter(r->!r.getType().contains(WNetConstants.LISTSEPARATORANDINVALIDNAMECHARACTER)).map(r->new WVnfInstance(r)).collect(Collectors.toCollection(TreeSet::new));\n\t}", "@CheckReturnValue\n Stream<? extends Thing.Remote<SomeRemoteThing, SomeRemoteType>> instances();", "protected Collection getNewBucket()\n {\n return new ArrayList();\n }", "@Override\r\n public NumericObjectArrayList makeDeepCopy() {\r\n NumericObjectArrayList list = new NumericObjectArrayList();\r\n for (int i = 0; i < this.getCount(); i++) {\r\n try {\r\n list.insert(i, this.getValueAt(i));\r\n } catch (IndexRangeException ex) {\r\n //Shouldn't happen\r\n }\r\n }\r\n return list;\r\n }", "private static <T> Collection<Class<?>> getClassHierarchy(T instance) {\n Collection<Class<?>> hierarchy = new LinkedList<>();\n Class<?> clazz = (Class<?>) instance;\n while (clazz != null) {\n hierarchy.add(clazz);\n clazz = clazz.getSuperclass();\n }\n return hierarchy;\n }", "public Iterator iterator() {\n maintain();\n return new MyIterator(collection.iterator());\n }", "public List<Entry<T>> getEntries() {\n return Collections.unmodifiableList(entries);\n }", "public Collection<T> getItems() {\r\n return Collections.unmodifiableCollection(items);\r\n }", "public Collection<T> mo29734a() {\n return new ArrayList();\n }", "public SeriesInstance addInstance() {\n\t\tSeriesInstance newType = new SeriesInstance();\n\t\tgetInstance().add(newType);\n\t\treturn newType; \n\t}", "public static GameObjectList getInstance() {\n if (_instance == null) {\n _instance = new GameObjectList();\n }\n return _instance;\n }", "public Stream<Tuple<Instance,Document>> instanceStream() {\n\t\treturn docs.stream()\n\t\t\t\t.map((doc)->{\n\t\t\t\t\tInstance instance = asInstance(doc);\n\t\t\t\t\treturn new Tuple<>(instance,doc);\n\t\t\t\t});\n\t}", "public static Set<Class<?>> getAllInterfacesAsSet(Object instance) {\n Assert.notNull(instance, \"Instance must not be null\");\n\n return getAllInterfacesForClassAsSet(instance.getClass());\n }", "@Override\n\tpublic Set<T> retrieveAllItems() {\n\t\treturn cache;\n\t}", "public GameObjectCollection() {\n\t\tgameObjects = new Vector<GameObject>();\n\t}", "@Override\n public synchronized Set<AttributeType> getAttributeInstances() {\n return attributeInstances = nonNullSet(attributeInstances, AttributeType.class);\n }", "public Collection<V> getAllElements() {\n\t\treturn cacheMap.values();\n\t}", "public Object clone()\n {\n IObserverList list = new IObserverList();\n \n for ( int i = 0; i < observers.size(); i++ )\n list.observers.addElement( observers.elementAt(i) );\n\n return list; \n }", "public Results copy()\n {\n Results copy = new Results();\n for(Object object : results) {\n copy.add( object );\n }\n return copy;\n }", "Collect getColl();", "private List<ConnectionSetup> createDetachedSnapshotOfCollection() {\n return Collections.unmodifiableList(new ArrayList<ConnectionSetup>(setups));\n }", "public List hardList() {\r\n List result = new ArrayList();\r\n\r\n for (int i=0; i < size(); i++) {\r\n Object tmp = get(i);\r\n\r\n if (tmp != null)\r\n result.add(tmp);\r\n }\r\n\r\n return result;\r\n }", "public Set<HasInstance> getHasInstanceRelationships() {\n\t\treturn this.instanceOf;\n\t}", "public ArrayList<GUIObject> getChildObjects() {\n return new ArrayList<>();\n }", "public ArrayList getObjsList() {\n return objList;\n }", "public static com.tangosol.coherence.Component get_Instance()\n {\n return new com.tangosol.coherence.component.util.collections.WrapperMap.EntrySet.Iterator();\n }", "public static List<Employee> getSingletonInstance() {\n\t\tif (singletonList == null) {\n\t\t\t// Thread Safe. Might be costly operation in some case\n\t\t\tsynchronized (SingletonImpl.class) {\n\t\t\t\tif (singletonList == null) {\n\t\t\t\t\tsingletonList = Collections.singletonList(new Employee());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn singletonList;\n\n\t}", "public AllInstanceExpressionElements getAllInstanceExpressionAccess() {\r\n\t\treturn pAllInstanceExpression;\r\n\t}", "public ArrayList<Thing> getThings()\r\n {\r\n \tArrayList<Thing> inventory = new ArrayList<Thing>();\r\n \tfor (int i=0; i<items.size(); i++)\r\n \t\tinventory.add(items.get(i));\r\n \treturn inventory;\r\n }", "protected Collection<V> newCollection() {\r\n \treturn new ArrayList<V>();\r\n }", "Collection<V> getAllEntries();", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<T> getList() {\r\n\t\tgetEntityManager().flush();\r\n\t\treturn getEntityManager().createQuery(\r\n\t\t\t\t\"select OBJECT(o) from \" + getClassType().getSimpleName() + \" o order by o.id\")\r\n\t\t\t\t.getResultList();\r\n\t}", "public List<GameObject> getObjects () {\n\t\treturn objects;\n\t}", "Collection<? extends Object> getSameAs();", "private void clearPreviousInstances() {\n DiscardedCards.clearInstance();\n Fireworks.clearInstance();\n History.clearInstance();\n SelectedSymbol.clearInstance();\n Tokens.clearInstance();\n HanabiCards.initDeck();\n }", "@Override\n public Set<Object> getSingletons() {\n Feature tracingFeature = ZipkinFeature.create(\"server\");\n\n return new LinkedHashSet<>(Arrays.asList(tracingFeature));\n }", "public Set<Ticket> getTickets() { return Set.copyOf(tickets); }", "public Set<ObjRef> getAddedRefs() {\n return Sets.newHashSet(addedObjRefToLineageRefs.keySet());\n }", "public List<T> values() {\n return values(System.currentTimeMillis());\n }", "void clearInstances();", "public List<Instance> getSamples(){\n\t\treturn arrIns;\n\t}", "public ArrayList<Entry> getEntries() {\n return entries;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList<E> getEntities() {\n\t\treturn (ArrayList<E>) entities.clone();\n\t}", "public Set<AlertClassSubscription> getCopySubscriptions() {\n\t\tHashSet<AlertClassSubscription> currentSub = subs;\n\t\tHashSet<AlertClassSubscription> copy = new HashSet<>();\n\t\tcopy.addAll(currentSub);\n\t\treturn copy;\n\t}", "public abstract Instance duplicate();", "private Instances joinInstances(Instances i1, Instances i2) {\n Instances toReturn = new Instances(i1);\n Enumeration i2Enum = i2.enumerateInstances();\n while (i2Enum.hasMoreElements()) {\n Instance currentI2Instance = (Instance)i2Enum.nextElement();\n toReturn.add(currentI2Instance);\n }\n return toReturn;\n }", "public synchronized List<Item> getItems()\n\t{\n\t\t/**\n\t\t * TODO Q: Deep copy override clone in Item?\n\t\t * pre-condition: List not null;\n\t\t * Invariant:size list of active items cannot more than server capacity\n\t\t * post-condition:return the copy of items in the list.\n\t\t * Exception: list size more than server capacity.\n\t\t */\n\t\t// TODO: IMPLEMENT CODE HERE\n\t\t// Some reminders:\n\t\t// Don't forget that whatever you return is now outside of your control.\n\t\treturn new ArrayList<>(itemsUpForBidding);\n\t}", "public Iterator iterator() {\n\t return new EntryIterator(set.iterator());\n\t}", "@Override\n\t@TimeComplexity(\"O(n)\")\n\tpublic Iterable<Entry<K, V>> entrySet() {\n\t/* TCJ\n\t * Iterates through potentially entire collection: O(n)\n\t */\n\t\treturn snapShot(0, null);\n\t}", "public ImmutableList<T> allExtant() {\n return ImmutableList.<T>builder().addAll(unchanged).addAll(changed).build();\n }", "public Collection<T> dump() {\n\t\treturn internalElements();\n\t}", "void clearInstances() {\n\t\t\tinterceptor.printer = null;\n\t\t\tinterceptor.converter = null;\n\t\t}", "public Iterator<I> getReservables(){\n IterI iter = new IterI();\n return iter;\n }", "public Collection getExtent(Class cls)\n{\n\tVector extent = new Vector();\n\t\n\tIterator i = objects.iterator();\n\t\n\twhile ( i.hasNext() )\n\t{\n\t\tObject o = i.next();\n\t\t\n\t\tif ( o.getClass().equals(cls) )\n\t\t\textent.add(o);\n\t}\n\t\n\treturn extent;\n}", "public Object clone()\n {\n ElementInsertionList clone = new ElementInsertionList();\n\n for (int i = 0; i < list.size(); i++)\n {\n clone.addElementInsertionMap((ElementInsertionMap)list.elementAt(i));\n }\n\n return clone;\n }", "public List<ValueObject> getValueObjects()\r\n {\r\n List<ValueObject> vos = new ArrayList<ValueObject>();\r\n vos.add(getValueObject());\r\n return vos;\r\n }", "public List<FreeColGameObject> disposeList() {\n List<FreeColGameObject> objects = new ArrayList<FreeColGameObject>();\n if (owner != null\n && getTile() != null\n && getTile().getSettlement() != null) {\n // Defensive tests to handle transition from calling dispose()\n // on both sides to when it is only called on server-side.\n \n // Get off the map\n Tile settlementTile = getTile();\n List<Tile> lostTiles = getOwnedTiles();\n for (Tile tile : lostTiles) {\n tile.changeOwnership(null, null);\n }\n settlementTile.setSettlement(null);\n \n // The owner forgets about the settlement.\n Player oldOwner = owner;\n oldOwner.removeSettlement(this);\n oldOwner.invalidateCanSeeTiles();\n // It is not safe to setOwner(null). When a settlement is\n // destroyed there is a race between this code and some\n // display routines that still need to know who owned the\n // dead settlement.\n }\n \n objects.addAll(super.disposeList());\n return objects;\n }", "public static com.tangosol.coherence.Component get_Instance()\n {\n return new com.tangosol.coherence.component.util.collections.WrapperMap.EntrySet();\n }", "public DataInstances addDataInstances() throws JNCException {\n DataInstances dataInstances = new DataInstances();\n this.dataInstances = dataInstances;\n insertChild(dataInstances, childrenNames());\n return dataInstances;\n }", "public Collection<BundleEntry> getDuplicates() {\n return duplicates;\n }", "@Override\n public AbstractObjectIterator<LocalAbstractObject> provideObjects() {\n return getAllObjects();\n }", "public abstract AbstractObjectIterator<LocalAbstractObject> getAllObjects();", "ArrayList<E> getAll();", "public Object[] getElements() {\r\n\t\treturn elements.clone();\r\n\t}", "public Collection<UniqueID> getReferenceList() {\n return ObjectGraph.getReferenceList(this.id);\n }", "public List<BaseObject> getAllItems() {\n ArrayList<BaseObject> list = new ArrayList<BaseObject>(ufos);\n list.add(ship);\n list.addAll(bombs);\n list.addAll(rockets);\n return list;\n }", "public Set list() {\n Set result = new HashSet();\n for( Iterator it = this.rcIterator(); it.hasNext() ; ){\n ReplicaCatalog catalog = (ReplicaCatalog) it.next();\n result.addAll( catalog.list() );\n }\n return result;\n\n }", "public ArrayList<T> getList() {\n synchronized(this) {\n return new ArrayList<T>(_treeSet);\n }\n }", "public final Instances uncoveredInstances(final Instances data) {\n final Instances uncovd = new Instances(data, data.numInstances());\n final Enumeration<Instance> e = data.enumerateInstances();\n\n while (e.hasMoreElements()) {\n final Instance i = e.nextElement();\n if (!covers(i))\n uncovd.addDirectly(i);\n }\n\n uncovd.compactify();\n return uncovd;\n }", "@Override\n\tpublic List<T> getAllEntry() {\n\t\treturn this.hibernateTemplate.find(\"from \"+this.classt.getName());\n\t}", "public List<E> clone();", "@SuppressWarnings(\"unchecked\")\n public <T> IndexedCollection<T> collection() {\n return (IndexedCollection<T>) journal\n .retrieve(BarbelQueries.all(id), queryOptions(orderBy(ascending(BarbelQueries.EFFECTIVE_FROM))))\n .stream().map(d -> processingState.expose(context, (Bitemporal) d)).collect(Collectors.toList());\n }", "@Override\n public List<Entry> toArrayList() {\n return members;\n }", "public ArrayList<Entry> getMembers(){\n return members;\n }", "public List<JFrogPlatformInstance> getJfrogInstances() {\n List<JFrogPlatformInstance> jfrogInstances = new ArrayList<>(RepositoriesUtils.getJFrogPlatformInstances());\n ArtifactoryServer propertyServer = getArtifactoryServerFromPipeline();\n if (propertyServer != null) {\n jfrogInstances.add(new JFrogPlatformInstance(propertyServer));\n }\n return jfrogInstances;\n }" ]
[ "0.6727117", "0.6472645", "0.62525797", "0.6159192", "0.60146403", "0.59769416", "0.59522814", "0.5952162", "0.5941661", "0.58498126", "0.58334374", "0.58260065", "0.58196944", "0.581206", "0.57830167", "0.5683325", "0.56828165", "0.56149346", "0.5611938", "0.55986243", "0.55962145", "0.5588401", "0.5558435", "0.5547428", "0.5536351", "0.55133426", "0.550464", "0.5500608", "0.5499738", "0.5477641", "0.54707503", "0.5467919", "0.5459815", "0.5435345", "0.54285246", "0.5423711", "0.53813255", "0.53621525", "0.5345709", "0.5330547", "0.5319116", "0.53189385", "0.5310833", "0.5310374", "0.5296259", "0.52924556", "0.5279982", "0.5266487", "0.52533436", "0.52414817", "0.52246636", "0.5223273", "0.5212877", "0.5198777", "0.5196043", "0.51960236", "0.51943547", "0.5186277", "0.51651186", "0.51440793", "0.51408684", "0.5133653", "0.512539", "0.5098918", "0.50987494", "0.5094017", "0.5092594", "0.5090972", "0.5088961", "0.5088586", "0.50805324", "0.50770116", "0.50748086", "0.5074617", "0.5067065", "0.50630134", "0.5053271", "0.5053245", "0.5053128", "0.50508684", "0.5050454", "0.5047976", "0.5044024", "0.5021317", "0.5019532", "0.5017375", "0.5016315", "0.5012272", "0.5006148", "0.5004375", "0.5002387", "0.5001076", "0.49938297", "0.49876624", "0.49819082", "0.49802968", "0.4978365", "0.49717793", "0.49636826", "0.49622083" ]
0.727682
0
Checks if a instance is contained in the collection of the current object.
boolean containsInstance(Instance instance);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean isValid() {\n return COLLECTION.getList().contains(this);\n }", "public boolean contains(T instance);", "boolean containsInstance(EObject modelElement);", "public boolean containsObject(AdvObject obj) {\n\t\treturn objects.contains(obj); // Replace with your code\n\t}", "boolean hasInstance();", "@Override\r\n\tpublic boolean contains(Object o) {\n\t\treturn set.contains(o);\r\n\t}", "public boolean isMember(T o)\n {\n return (objectSet.search(o) != null);\n }", "protected boolean isColliding() {\n\t\treturn phxService.isColliding(this);\n\t}", "@Override\n\t\tpublic boolean contains(Object o) {\n\t\t\treturn false;\n\t\t}", "@Override\n\tpublic boolean contains(Object o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean contains(Object o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean contains(Object o) {\n\t\treturn false;\n\t}", "public boolean contains(E obj){\n\t\tif (obj == null)\n\t\t\tthrow new IllegalArgumentException(\"The given item is null.\");\n\t\tfor(E val : this) {\n\t\t\tif(val.equals(obj))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean contains(T obj) {\r\n\t\tlogger.trace(\"Enter contains\");\r\n\t\tlogger.trace(\"Exit contains\");\r\n\t\treturn data.contains(obj);\r\n\t}", "public boolean isContained() {\n return contained;\n }", "public static boolean hasInstance() {\n return instance != null;\n }", "@Override\n\tpublic boolean contains(Object entity) {\n\t\treturn false;\n\t}", "public boolean contains(Object o);", "public boolean contains(Object o);", "public boolean evaluate(T obj) {\n\t\treturn set.contains(obj);\n\t}", "public abstract boolean contains(Object item);", "public boolean isValid() {\n return instance != null;\n }", "public abstract boolean ContainsContactObjects();", "public boolean contains(WModelObject object)\n\t{\n\t\treturn m_elements.contains(object);\n\t}", "@Override\r\n public boolean contains(E target) {\r\n if(find(target) != null) return true;\r\n return false;\r\n }", "public boolean isCollection() {\n return this == LOAD || this == PICKUP;\n }", "public boolean containsObject(T obj);", "public boolean containsObject(T obj);", "@Override\n public boolean contains(Object o) {\n return indexOf(o) >= 0;\n }", "@Override\n public boolean contains(Object o) {\n return indexOf(o) >= 0;\n }", "public synchronized boolean contains(\n Object oObject)\n {\n if (oObject == null || !this.m_GenericClass.isInstance(oObject))\n {\n return false;\n }\n\n // Assert: object != null && object instanceOf E\n E element = this.m_GenericClass.cast(oObject);\n\n return findNode(element).m_NodePointer != null;\n }", "@Override\n public boolean contains(Object o) {\n if (indexOf(o) == -1) {\n return false;\n } else {\n return true;\n }\n }", "public boolean hasObject(){\n return _object != null;\n }", "@java.lang.Override\n public boolean hasObject() {\n return object_ != null;\n }", "@Test\r\n public void testContains() {\r\n Grocery entry1 = new Grocery(\"Mayo\", \"Dressing / Mayo\", 1, 2.99f, 1);\r\n\r\n // Test element does not exist case\r\n assertFalse(instance.contains(entry1));\r\n\r\n instance.add(entry1);\r\n\r\n // Test element exists case\r\n assertTrue(instance.contains(entry1));\r\n }", "@Override\n public boolean contains(Object o) {\n for (int i = 0; i < currentSize; i++) {\n if (container[i] == o) {\n return true;\n }\n }\n return false;\n }", "Collection<? extends WrappedIndividual> getIsPartOf();", "@Override\n @SuppressWarnings(\"unchecked\")\n public boolean contains(Object o) {\n return search((E) o) != null;\n }", "boolean contains(Object o);", "boolean contains(Object o);", "boolean contains(Object o);", "@Override\n public boolean isOwningCollection(Item item, Collection c)\n {\n Collection collection = item.getOwningCollection();\n\n if (collection != null && c.getID() == collection.getID())\n {\n return true;\n }\n\n // not the owner\n return false;\n }", "boolean hasEnclosingInstance(ClassType encl);", "public boolean contains(T obj) {\r\n return lastIndexOf(obj) != -1;\r\n }", "public boolean contains(Object elem);", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "@Override\n public final boolean contains(final Object o) {\n return Collections.exists(getComponents(),\n new Assertion<PriorityList<? extends _PriorityElement_>>() {\n public boolean isTrueFor(PriorityList<? extends _PriorityElement_> s) {\n return s.contains(o);\n }\n });\n }", "@Override\n public boolean equals(final Object obj) {\n return getClass().isInstance(obj);\n }", "public boolean contains(Course c) {\n return courseList.contains(c); \n }", "public boolean contains(Object value) {\n\t\treturn false;\n\t}", "public boolean inside(final Point p)\n\t\t{\n\t\t\tif(obj.contains(p))\n\t\t\t\treturn true;\n\t\t\treturn false;\n\t\t}", "public isWithin() {\n\t\tsuper();\n\t}", "@Override\n\tpublic boolean contains(E e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean contains(T obj) {\n\t\tif (cache.contains(obj))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public static boolean hasInstance()\n\t{\n \tif(wdba == null)\n \t\treturn false;\n \telse\n \t\treturn true;\n\t}", "public boolean contains (Object obj) {\n\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n\t\t\tif (obj.equals (p.myItem)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean contains (Object obj) {\n\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n\t\t\tif (obj.equals (p.myItem)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean contains (Object obj) {\n\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n\t\t\tif (obj.equals (p.myItem)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean contains (Object obj) {\n\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n\t\t\tif (obj.equals (p.myItem)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean hasObject() {\n return objectBuilder_ != null || object_ != null;\n }", "public boolean containsChild() {\n return !(getChildList().isEmpty());\n }", "@Override\n\tpublic synchronized boolean found(MotifInstance<V,E> instance) {\n\t\tObject identifier = groupBy.getGroupIdentifier(instance);\n\t\tif (instanceIdentifiers.add(identifier)) {\n\t\t\t//System.out.println(\"added,\" + identifier+','+Thread.currentThread().getId());\n\t\t\treturn delegate.found(instance);\n\t\t}\n\t\telse {\n\t\t\t//System.out.println(\"rejected,\" + identifier+','+Thread.currentThread().getId());\n\t\t}\n\t\treturn true;\n\t}", "public boolean containsAnActor() {\n\t\treturn map.isAnActorAt(this);\n\t}", "public boolean contains(Object o) {\n\n Object value = elements.get(o);\n return value != null;\n }", "public boolean contains(E item){\n\t\treturn (find(item) != null) ? true : false;\n\t}", "@Override\n public boolean contains(Object o) {\n return contains(root, o);\n }", "public boolean contains( T obj )\n {\n if(nodes.containsKey(obj)){\n \treturn true;\n }\n return false;\n }", "public boolean contains(E item) {\r\n\t\treturn (find(item) != null);\r\n\t}", "public boolean contains ( Object o ){\n\n \tboolean doesContain = false;\n\n \tfor(int i = 0; i < list.size(); i++){\n\n if(list.get(i).equals(o)){\n doesContain = true;\n }\n\n }\n\n \treturn doesContain;\n\n }", "public boolean isInList();", "@Override\r\n\t\tpublic boolean contains(E value) {\n\t\t\treturn value == null;\r\n\t\t}", "@Override\n public boolean isValid() {\n return isAdded() && !isDetached();\n }", "boolean hasEnclosingInstanceImpl(ClassType encl);", "boolean contains();", "@Override\n public boolean contains(Shelf shelf) {\n return shelves.contains(shelf);\n }", "public boolean contains(T item) {\n synchronized(this) {\n return _treeSet.contains(item);\n }\n }", "public boolean contains(T elem) {\n return list.contains(elem);\n }", "public boolean contains() {\n return (Bukkit.getServer().getPluginManager().getPlugin(this.name) != null);\n }", "public boolean contains(IMember member) {\n\t\tString key = getParentKey(member);\n\t\tIMemberSet children = _map.get(key);\n\t\tif (children == null) {\n\t\t\treturn false;\n\t\t}\n\t\treturn children.getInfo(member) != null; \n\t}", "public abstract boolean contains(E e);", "@Test\n public void testContains_Contain() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n instance.add(2);\n instance.add(3);\n\n boolean expResult = true;\n boolean result = instance.contains(1);\n assertEquals(expResult, result);\n }", "public boolean isColliding(){\n for(int i = 0; i < eng.getIDManager().getObjectsWithID(\"GameObject\").size(); i++){\n GameObject temp = eng.getIDManager().getObjectsWithID(\"GameObject\").get(i);\n \n if(temp.getHitBox().getBounds().intersects(rect.getBounds()) &&\n temp.getHitBox() != this){\n currentCollidingObject = temp;\n return true;\n }\n }\n \n return false;\n }", "public boolean contains(T target) throws EmptyCollectionException{\n if(isEmpty()){\n throw new EmptyCollectionException(\"list\");\n }\n LinearNode<T> trav = front;\n while (trav != null){\n if (trav.getElement().equals(target)){\n return true;\n }\n trav = trav.getNext();\n }\n return false;\n }", "public boolean contains(Object o) {\r\n return indexOf(o) != -1;\r\n }", "public boolean isContained(T aData){\r\n return this.findNodeWith(aData) != null;\r\n }", "@Override\n\tpublic boolean contains(Type t) {\n\t\treturn true;\n\t}", "@Ignore\r\n @Test\r\n public void testContainsCollection() {\r\n System.out.println(\"containsCollection\");\r\n NumberCollection nc = null;\r\n NumberCollection instance = new NumberCollection();\r\n boolean expResult = false;\r\n boolean result = instance.containsCollection(nc);\r\n assertEquals(expResult, result);\r\n \r\n }", "public boolean contains(Object o) {\n for(int i = 0; i < size; i++) {\n if(list[i].equals(o)) return true;\n }\n return false;\n }", "public final boolean checkIfInZone(L2Object obj) { return (getSiege(obj) != null); }", "public boolean contains(E obj)\n {\n Node m = head;\n while( m.getNext() != null)\n {\n m = m.getNext();\n if(m.getValue().equals(obj))\n {\n return true; \n }\n }\n return false;\n }", "protected boolean checkSelfInclusion(Vector mbrs) {\n Object mbr;\n if(mbrs == null)\n return false;\n for(int i=0; i < mbrs.size(); i++) {\n mbr=mbrs.elementAt(i);\n if(mbr != null && local_addr.equals(mbr))\n return true;\n }\n return false;\n }", "public boolean contains (T target);", "public boolean contains (T target);", "public boolean contains(Account that) {\n return this.first.equals(that) || this.rest.contains(that);\n }" ]
[ "0.69402385", "0.68996054", "0.67950225", "0.6598483", "0.6554116", "0.64988744", "0.6488632", "0.6478562", "0.64674085", "0.6434564", "0.6434564", "0.6434564", "0.6416309", "0.6396047", "0.6278358", "0.62762433", "0.62502855", "0.6209207", "0.6209207", "0.6193312", "0.6174009", "0.6173994", "0.6159793", "0.6156111", "0.6135371", "0.60990524", "0.60895395", "0.60895395", "0.6064618", "0.6064618", "0.6063011", "0.6044439", "0.60437477", "0.6005778", "0.6004833", "0.6001993", "0.59949964", "0.5988879", "0.5982743", "0.5982743", "0.5982743", "0.5976096", "0.5973385", "0.5958009", "0.59532", "0.5949162", "0.5949162", "0.5949162", "0.5949162", "0.5949162", "0.5949162", "0.5949162", "0.59448844", "0.5933689", "0.59259725", "0.59242433", "0.5913537", "0.5908928", "0.589172", "0.5875181", "0.58733284", "0.58732116", "0.58732116", "0.58732116", "0.58728504", "0.586401", "0.5858245", "0.5854414", "0.5853467", "0.58524126", "0.5835745", "0.5816057", "0.57869154", "0.57830334", "0.5763058", "0.57493305", "0.57242996", "0.5720682", "0.57179093", "0.57051015", "0.56970507", "0.5694889", "0.5692104", "0.5687775", "0.5676111", "0.5673744", "0.56723106", "0.5670262", "0.56672525", "0.5666009", "0.5655349", "0.5654816", "0.56481314", "0.56435394", "0.56375563", "0.56374174", "0.563216", "0.5628979", "0.5628979", "0.5619799" ]
0.75567865
0
Returns the number of objects of type "instance" previously added to the collection of the current object.
int countInstances();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getInstanceCount() {\n return instanceCount;\n }", "public int getInstanceCount() {\n return instanceCount;\n }", "@Required\n @Updatable\n public Integer getInstanceCount() {\n return instanceCount;\n }", "public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}", "public int getSpineInstanceCount() {\n if (spineInstanceList == null) {\n return 0;\n }\n return spineInstanceList.size();\n }", "public int getInstancesPerType()\n {\n return instancesPerType;\n }", "long getObjectSize(Object instance);", "public int getNumObjects(){\n return numObjects;\n }", "public IntegerDt getNumberOfInstances() { \n\t\tif (myNumberOfInstances == null) {\n\t\t\tmyNumberOfInstances = new IntegerDt();\n\t\t}\n\t\treturn myNumberOfInstances;\n\t}", "public IntegerDt getNumberOfInstances() { \n\t\tif (myNumberOfInstances == null) {\n\t\t\tmyNumberOfInstances = new IntegerDt();\n\t\t}\n\t\treturn myNumberOfInstances;\n\t}", "int getInstanceCount();", "public int getCount() {\n return objects.size();\n }", "public int getNumberOfInstances() {\n\t\treturn numberOfInstances;\n\t}", "protected long getObjectCount() {\r\n return objectCount;\r\n }", "public long getInstancesSeen() {\n\t\treturn this.getLearningNode().getInstancesSeen();\n\t}", "public IntegerDt getNumberOfInstancesElement() { \n\t\tif (myNumberOfInstances == null) {\n\t\t\tmyNumberOfInstances = new IntegerDt();\n\t\t}\n\t\treturn myNumberOfInstances;\n\t}", "public IntegerDt getNumberOfInstancesElement() { \n\t\tif (myNumberOfInstances == null) {\n\t\t\tmyNumberOfInstances = new IntegerDt();\n\t\t}\n\t\treturn myNumberOfInstances;\n\t}", "public static int numberObjects()\r\n\t{\r\n\t\treturn(no_of_obj);\r\n\t}", "public int getSize() {\n\t\t\treturn objects.size();\n\t\t}", "public Map<Long, Long> getInstanceCount() {\n if (instanceCountMap == null) {\n FxSharedUtils.getMappedFunction(new FxSharedUtils.ParameterMapper<Long, Long>() {\n @Override\n public Long get(Object key) {\n return EJBLookup.getTypeEngine().getInstanceCount(Long.valueOf(key.toString()));\n }\n }, true);\n }\n return instanceCountMap;\n }", "int getEntryCount();", "public int getNumbObjects()\n\t{\n\t\treturn this.numObjects;\n\t}", "public String getNumberOfInstances() {\n return numberOfInstances;\n }", "@Override\n\tpublic Long getNbInstance() {\n\t\treturn dao.getNb();\n\t}", "public int getObjectCounter() {\n return objectCounter;\n }", "public static int size() \r\n\t{\r\n\t\treturn m_count;\r\n }", "public int size() {\n\t\t\treturn gameObjects.size();\n\t\t}", "public int size() {\n maintain();\n return collection.size();\n }", "public int getEntryCount() {\n return entry_.size();\n }", "public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n\t}", "private void _updateCount(int classType) {\n int subClass, superClass;\n\n instances_[classType].count++;\n subClass = classType;\n while ( (superClass = CLASS_INFO[subClass][INDEX_SUPER]) != CS_C_NULL) {\n instances_[superClass].count++;\n subClass = superClass;\n }\n }", "public static void main(String[] args) {\n int objectCount;\n //Now let create 4 instances of the countable class\n\n Countable obj1 = new Countable();\n Countable obj2 = new Countable();\n Countable obj3 = new Countable();\n Countable obj4 = new Countable();\n\n //Get the number of instances from\n //the class's static field\n\n objectCount = obj1.getInstanceCount(); //Here is the note it does not matter which obj1 or obj2 or obj3 or\n //obj4 assign objectCount. Result will be same\n System.out.println(objectCount + \" instances of the class were created.\");\n\n\n }", "public int size(){\r\n\t\treturn numAdded;\r\n\t}", "public int size() {\n return count;\n }", "public int size()\n {\n return count;\n }", "public int size() {\n\t\treturn collection.size();\n\t}", "public int count() {\n\t\treturn count;\n\t}", "public int size() {\n return collection.size();\n }", "long getOwnedEntryCount();", "public static int findNumberOfCreatedComputers() {\n return objCounter;\n }", "public int size() { return count; }", "public int size()\r\n {\r\n return count;\r\n }", "public int getNumberOfItemObjects() {\r\n\t\treturn itemFileVersions.size();\r\n\t}", "public int size() {\n\t\treturn count;\n\t}", "public int size() {\n\t\treturn count;\n\t}", "public int size() {\n\t\treturn count;\n\t}", "public Integer getTotalStackInstancesCount() {\n return this.totalStackInstancesCount;\n }", "public int count() {\n return this.count;\n }", "int getItemsCount();", "int getItemsCount();", "public int count () {\n return member_id_list.length;\r\n }", "public int getCount() {\r\n\t\t\treturn ((HerdinatorApplication) getApplication()).imageIDs.length;\r\n\t\t}", "public int size() {\n if (hasKeys) {\n return keys.size();\n } else {\n return objects.size();\n }\n }", "public int size()\r\n\t{\r\n\t\treturn count;\r\n\t}", "public static int getCount() {\r\n\t\treturn count;\r\n\t}", "public static int getCount() {\r\n\t\treturn count;\r\n\t}", "public static int getCount() {\r\n\t\treturn count;\r\n\t}", "public int getCount(){\n\t\treturn mDataObjects.size();\n\t}", "public int count() {\r\n return count;\r\n }", "public int numberReferencesToThis() {\n return referenceToThis.size();\n }", "public int size() {\n int counter = 1;\n Lista iter = new Lista(this);\n while (iter.next != null) {\n iter = iter.next;\n counter += 1;\n }\n return counter;\n }", "public int count() {\n return count;\n }", "public int getCount() {\n return definition.getInteger(COUNT, 1);\n }", "@Override\r\n\tpublic int size() {\n\t\treturn count;\r\n\t}", "public Integer getCount() {\n\t\treturn count;\n\t}", "public Integer getCount() {\n\t\treturn count;\n\t}", "public int size() {\n return this.collection.size();\n }", "public static int size() {\n\t\treturn (anonymousSize() + registeredSize());\n\t}", "public int getSeenInfoCount() {\n return instance.getSeenInfoCount();\n }", "@Override\n public int size() {\n return count;\n }", "@Override\n public int size() {\n return count;\n }", "public int size() {return collection.size();}", "public int size(){\n return count;\n }", "@Override\r\n\tpublic int size() {\r\n\t\treturn count;\r\n\t}", "public final int size()\n {\n return m_count;\n }", "public int getCount() {\n\t\t\treturn list.size();\r\n\t\t}", "public int getNumberOfEntries();", "public int getSize() {\n\t\treturn collection.size();\n\t\t\n\t}", "public int getEntryCount() {\n if (entryBuilder_ == null) {\n return entry_.size();\n } else {\n return entryBuilder_.getCount();\n }\n }", "public Integer getCount() {\n return count;\n }", "public int size()\n\t{\n\t\treturn creatures.size();\n\t}", "public Integer getCount() {\n return count;\n }", "public Integer getCount() {\n return count;\n }", "public Integer getCount() {\n return count;\n }", "public Integer getCount() {\n return count;\n }", "public Integer getCount() {\n return count;\n }", "public Integer getCount() {\n return count;\n }", "public static int getCount() {\n\t\treturn count;\n\t}", "public int size() {\n int size = 0;\n\n Collection<CacheableObject> values = new HashSet<CacheableObject>();\n synchronized(theLock) {\n values.addAll(valueMap.values());\n }\n\n for (CacheableObject cObj : values) {\n if (! this.isExpired(cObj)) {\n size++;\n }\n }\n\n return size;\n }", "public static int getNumberCreated() {\n return numberOfPools;\n }", "public int size() \n { \n return count; \n }", "public int getCount()\r\n {\r\n return counts.peekFirst();\r\n }", "public synchronized int size() {\n return count;\n }", "int getPickupsCount();", "int getInCount();", "public int size() {\n return numItems;\n }", "public int getLength() {\n return collection.size();\n }", "int entryCount() {\n return settings.size();\n }", "int entryCount() {\n return settings.size();\n }", "@Override\r\n\tprotected int count() {\n\t\treturn service.count();\r\n\t}" ]
[ "0.75739044", "0.75739044", "0.7318624", "0.7126196", "0.7096691", "0.6974616", "0.69629884", "0.686074", "0.68591416", "0.68591416", "0.6852383", "0.6720563", "0.66465425", "0.66184676", "0.6541082", "0.6530393", "0.6530393", "0.6509573", "0.64902455", "0.64702475", "0.64216286", "0.63735086", "0.6371238", "0.6356011", "0.6344211", "0.63338083", "0.6329111", "0.63180923", "0.63034856", "0.6296017", "0.624796", "0.62303084", "0.6218951", "0.621072", "0.61945456", "0.6194482", "0.6193811", "0.6189607", "0.6188115", "0.618023", "0.61757934", "0.6172602", "0.6169982", "0.61662024", "0.61662024", "0.61662024", "0.6159125", "0.6133896", "0.61320996", "0.61320996", "0.61277664", "0.61262816", "0.611812", "0.6114422", "0.6111022", "0.6111022", "0.6111022", "0.61079186", "0.6103021", "0.6100541", "0.6096794", "0.60960877", "0.6080302", "0.60741043", "0.606598", "0.606598", "0.60617554", "0.60591125", "0.6058072", "0.6055895", "0.6055895", "0.60355383", "0.60338205", "0.6027338", "0.602342", "0.6015909", "0.60034823", "0.6002322", "0.59942234", "0.5970235", "0.59700286", "0.59605277", "0.59605277", "0.59605277", "0.59605277", "0.59605277", "0.59605277", "0.5954104", "0.59499335", "0.59493953", "0.59458673", "0.59443533", "0.5939695", "0.5938963", "0.5936346", "0.5934165", "0.59281796", "0.59277284", "0.59277284", "0.59260875" ]
0.6905995
7
Returns the Red component of the RGB color.
public int getR();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getRedColor() {\n\t\treturn this.redColor;\n\t}", "static public int getRed(int color) {\n return (color >> 16) & 0xff;\n }", "public RGBColor getColor(){\r\n return this._color;\r\n }", "public static int getRed(int color) {\n return (color & 0x00FF0000) >> 16;\n }", "public int getRgbColor()\n {\n return _rgbColor;\n }", "public final int getR() {\n\t\treturn red;\n\t}", "public Color getColor() {\n\t\treturn Color.RED;\n\t}", "public Color getRedBlack() {\r\n\t\tif (isRed())\r\n\t\t\treturn Color.RED;\r\n\t\telse\r\n\t\t\treturn Color.BLACK;\r\n\r\n\t}", "public int getRed() {\n\t\treturn 100;\n\t}", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "java.awt.Color getColor();", "public Color getRed() {\n return fRed;\n }", "public int getColorValue() {\r\n\t\treturn color;\r\n\t}", "public Color getRrColor() {\n return rrColor;\n }", "public int getColorInt () {\r\n return this.colorReturned;\r\n }", "public Integer getColor() {\n\t\treturn color;\n\t}", "public int getRed() {\n return this.red;\n }", "RGB getRealRGB(Color color) {\n\tImage colorImage = new Image(display, 10, 10);\n\tGC imageGc = new GC(colorImage);\n\tImageData imageData;\n\tPaletteData palette;\n\tint pixel;\n\t\n\timageGc.setBackground(color);\n\timageGc.setForeground(color);\n\timageGc.fillRectangle(0, 0, 10, 10);\n\timageData = colorImage.getImageData();\n\tpalette = imageData.palette;\n\timageGc.dispose();\n\tcolorImage.dispose();\n\tpixel = imageData.getPixel(0, 0);\n\treturn palette.getRGB(pixel);\n}", "RGB getOldColor();", "public Color getColor() {\r\n\t\tColor retVal = theColor;\r\n\t\treturn retVal;\r\n\t}", "default Color getColor() {\r\n\t\treturn Color.RED;\r\n\t}", "public abstract RGBIColor toRGBColor();", "public int getColor() {\n\t\treturn getMappedColor(color);\n\t}", "public int getColor() {\n \t\treturn color;\n \t}", "public int getColor(){\r\n\t\treturn color;\r\n\t}", "public IsColor getColor() {\n\t\treturn ColorBuilder.parse(getColorAsString());\n\t}", "public static int toRGB(Color color) {\n\t\treturn toInt(color.getRed()) | (toInt(color.getGreen()) << 8) | (toInt(color.getBlue()) << 16);\n\t}", "public Color getColor();", "public Color getColor();", "public Color getColor();", "public Color getColor() \n\t{\n\t\treturn color;\n\t}", "public final Color getColor() {\n\t\treturn color;\n\t}", "public int getColor(){\n\t\treturn color;\n\t}", "public int getColor(){\n\t\treturn color;\n\t}", "public Color getColor() {\n \t\treturn color;\n \t}", "public final Color getColor() {\n return color;\n }", "public int getColor() {\n return color;\n }", "public RMColor getColor()\n {\n return getStyle().getColor();\n }", "public float getRed() {\n return red;\n }", "public int getRed(int pixel) {\n if (numComponents > 1) {\n throw new\n IllegalArgumentException(\"More than one component per pixel\");\n }\n // Since there is only 1 component, there is no alpha\n\n // Normalize the pixel in order to convert it\n float[] norm = { (float) pixel / ((1<<nBits[0]) - 1) };\n float[] rgb = colorSpace.toRGB(norm);\n\n return (int) (rgb[0]*255);\n }", "@ColorInt\n public int getColor() {\n return Color.HSVToColor(mColorHSV);\n }", "public int getColor() {\n return this.color;\n }", "public int getRed(Object inData) {\n if (is_sRGB) {\n boolean needAlpha = (supportsAlpha && isAlphaPremultiplied);\n int alp = 0;\n int red = 0;\n switch (transferType) {\n case DataBuffer.TYPE_BYTE:\n byte bdata[] = (byte[])inData;\n red = bdata[0] & 0xff;\n if (needAlpha) {\n alp = bdata[numColorComponents] & 0xff;\n }\n break;\n case DataBuffer.TYPE_USHORT:\n short sdata[] = (short[])inData;\n red = sdata[0]&0xffff;\n if (needAlpha) {\n alp = sdata[numColorComponents] & 0xffff;\n }\n break;\n case DataBuffer.TYPE_INT:\n int idata[] = (int[])inData;\n red = idata[0];\n if (needAlpha) {\n alp = idata[numColorComponents];\n }\n break;\n default:\n throw new\n UnsupportedOperationException(\"This method has not \"+\n \"been implemented for transferType \" + transferType);\n }\n if (nBits[0] != 8) {\n int shift = nBits[0] - 8;\n red = ((shift > 0) \n ? (red>>shift)\n : (red<<(-shift)));\n }\n if (needAlpha) {\n return (alp != 0)\n ? (int) (red*((1<<nBits[numColorComponents])-1.f)/alp)\n : 0;\n }\n else {\n return red;\n }\n }\n // REMIND: possible grayscale optimization here\n // else if (colorSpaceType == ColorSpace.TYPE_GRAY) {\n // return getGray(inData);\n // }\n\n // Not TYPE_GRAY or TYPE_RGB ColorSpace\n int pixel[];\n if (inData instanceof int[]) {\n pixel = (int[])inData;\n } else {\n pixel = DataBuffer.toIntArray(inData);\n if (pixel == null) {\n throw new UnsupportedOperationException(\"This method has not been \"+\n \"implemented for transferType \" + transferType);\n }\n }\n\n // Normalize the pixel in order to convert it\n float[] norm = getNormalizedComponents(pixel, 0, null, 0);\n // Note that getNormalizedComponents returns non-premultiplied values\n float[] rgb = colorSpace.toRGB(norm);\n return (int) (rgb[0] * 255.0f);\n }", "public final Color getColor() {\r\n return color;\r\n }", "public Color getColor() {\r\n\t\treturn new Color(Color.HSBtoRGB(hsb[0], hsb[1], hsb[2]));\r\n\t}", "public GameColor getColor();", "public int getColor()\r\n {\r\n return m_iColor;\r\n }", "public Color getColor() {\r\n\t\treturn color;\r\n\t}", "public Color getColor() {\r\n\t\treturn color;\r\n\t}", "public String getColor() {\r\n\t\treturn color;\r\n\t}", "public String obtenColor() {\r\n return color;\r\n }", "public java.awt.Color getColor() {\r\n return color;\r\n }", "public static int toRGB(Color color) {\n int result = (int) (color.getRed() * 0xFF);\n result = (result << 8) + (int) (color.getGreen() * 0xFF);\n result = (result << 8) + (int) (color.getBlue() * 0xFF);\n return result;\n }", "public Color getColor() {\n\t\treturn this.color;\n\t}", "public Color getColor() {\n\t\treturn color;\n\t}", "public Color getColor() {\n\t\treturn color;\n\t}", "public Color getColor() {\n\t\treturn color;\n\t}", "public Color getColor() {\n\t\treturn color;\n\t}", "public String getColor() {\n\t\treturn color;\n\t}", "public String getColor() {\n\t\treturn color;\n\t}", "public Color getColor(){\r\n return color_rey;\r\n }", "public Color getColor() {\n return color;\r\n }", "public int color() {\n\t\treturn color;\n\t}", "public String getColor() {\r\n return color;\r\n }", "public Color getColor()\n {\n return color;\n }", "public String getColor()\n {\n return color;\n }", "public String getColor()\n {\n return color;\n }", "public String getColor(){\n\t\treturn color;\n\t}", "public java.awt.Color getColor() {\r\n return this.color;\r\n }", "public Color getColor() {\n\t\treturn _color;\n\t}", "public String getColor()\n {\n return this.color;\n }", "public Color getColor() {\r\n return color;\r\n }", "public Color getColor() {\r\n return color;\r\n }", "public Color getColor() {\r\n return color;\r\n }", "public Color getColor()\n {\n return color;\n }", "public Color getColor()\n {\n return color;\n }", "public Color getColor()\n {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "int getRed(int x, int y);", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n\treturn color;\n }", "public java.awt.Color getColor() {\n return this.color;\n }", "public java.awt.Color getColor() {\n return this.color;\n }", "public int getColor();", "public int getColor();", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }" ]
[ "0.80406475", "0.7890086", "0.77948695", "0.76885056", "0.7501028", "0.7403645", "0.7306322", "0.7208705", "0.7185102", "0.71848917", "0.71848917", "0.71848917", "0.71848917", "0.71848917", "0.71498626", "0.708854", "0.7084342", "0.7066277", "0.70333785", "0.6968953", "0.6953037", "0.6949053", "0.6927845", "0.6922066", "0.691066", "0.6881943", "0.6866602", "0.68516594", "0.68027467", "0.67983395", "0.67942196", "0.67918205", "0.67918205", "0.67918205", "0.67850274", "0.67809355", "0.67797136", "0.67797136", "0.6752946", "0.6751258", "0.6739764", "0.6728495", "0.67282546", "0.6723103", "0.6719342", "0.6714009", "0.67119956", "0.66945726", "0.6687108", "0.6682434", "0.6675375", "0.6673698", "0.6673698", "0.66646063", "0.66618663", "0.66617566", "0.66504675", "0.66469526", "0.6646235", "0.6646235", "0.6646235", "0.6646235", "0.66403526", "0.66403526", "0.6622722", "0.6618889", "0.66121423", "0.6591062", "0.65878445", "0.6584008", "0.6584008", "0.65757847", "0.65724623", "0.65712047", "0.6568758", "0.65664655", "0.65664655", "0.65664655", "0.6561023", "0.6561023", "0.6561023", "0.65598696", "0.65598696", "0.65598696", "0.65598696", "0.65598696", "0.65598696", "0.65598696", "0.65598696", "0.65572464", "0.6555269", "0.65550953", "0.6553019", "0.6553019", "0.6540642", "0.6540642", "0.65391964", "0.65391964", "0.65391964", "0.65391964", "0.65391964" ]
0.0
-1
Returns the Green component of the RGB color.
public int getG();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public int getGreen(int color) {\n return (color >> 8) & 0xff;\n }", "public static int getGreen(int color) {\n return color & 0x000000FF;\n }", "public final int getG() {\n\t\treturn green;\n\t}", "public int getGreen()\n\t{\n\t\treturn green;\n\t}", "public float getGreen() {\n return green;\n }", "java.awt.Color getColor();", "public int getGreen(int pixel) {\n if (numComponents > 1) {\n throw new\n IllegalArgumentException(\"More than one component per pixel\");\n }\n // Since there is only 1 component, there is no alpha\n\n // Normalize the pixel in order to convert it\n float[] norm = { (float) pixel / ((1<<nBits[0]) - 1) };\n float[] rgb = colorSpace.toRGB(norm);\n \n return (int) (rgb[1]*255);\n }", "public int getRgbColor()\n {\n return _rgbColor;\n }", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "public RGBColor getColor(){\r\n return this._color;\r\n }", "int getGreen(int x, int y);", "public GrayColor getColor(){\n return this.color;\n }", "public int getColorValue() {\r\n\t\treturn color;\r\n\t}", "private static int get(int colour) {\r\n\t\t// If the color is incorrect (less than 0) the color is set invisible\r\n\t\tif (colour < 0) {\r\n\t\t\treturn 255;\r\n\t\t}\r\n\r\n\t\t// taking each number of the argument\r\n\t\tint r = colour / 100 % 10;\r\n\t\tint g = colour / 10 % 10;\r\n\t\tint b = colour % 10;\r\n\r\n\t\t// returning the 6*6*6 color\r\n\t\treturn r * 6 * 6 + g * 6 + b;\r\n\t}", "int getGreen(){\n return getPercentageValue(\"green\");\n }", "public boolean isGreen(Color c, int GB, int RG){\n\n\t\treturn ( GB > ts.getGreen_GB() && RG > ts.getGreen_RG() && c.getGreen() > ts.getGreen_g());\n\n\n\t}", "public Color getColor() {\r\n\t\treturn new Color(Color.HSBtoRGB(hsb[0], hsb[1], hsb[2]));\r\n\t}", "RGB getNewColor();", "RGB getOldColor();", "public GameColor getColor();", "public Color getColor()\r\n\t{\r\n\t\treturn _g2.getColor();\r\n\t}", "static public int getRed(int color) {\n return (color >> 16) & 0xff;\n }", "int getGreen(){\n\n return this.green;\n }", "public abstract RGBIColor toRGBColor();", "String getColour();", "public int getGreen(Object inData) {\n if (is_sRGB) {\n boolean needAlpha = (supportsAlpha && isAlphaPremultiplied);\n int alp = 0;\n int green = 0;\n switch (transferType) {\n case DataBuffer.TYPE_BYTE:\n byte bdata[] = (byte[])inData;\n green = bdata[1] & 0xff;\n if (needAlpha) {\n alp = bdata[numColorComponents] & 0xff;\n }\n break;\n case DataBuffer.TYPE_USHORT:\n short sdata[] = (short[])inData;\n green = sdata[1] & 0xffff;\n if (needAlpha) {\n alp = sdata[numColorComponents] & 0xffff;\n }\n break;\n case DataBuffer.TYPE_INT:\n int idata[] = (int[])inData;\n green = idata[1];\n if (needAlpha) {\n alp = idata[numColorComponents];\n }\n break;\n default:\n throw new\n UnsupportedOperationException(\"This method has not \"+\n \"been implemented for transferType \" + transferType);\n }\n if (nBits[1] != 8) {\n int shift = nBits[1] - 8;\n green = ((shift > 0) \n ? (green>>shift)\n : (green<<(-shift)));\n\n }\n if (needAlpha) {\n return (alp != 0)\n ? (int) (green*((1<<nBits[numColorComponents])-1.f)/alp)\n : 0;\n }\n else {\n return green;\n }\n }\n // REMIND: possible grayscale optimization here\n // else if (colorSpaceType == ColorSpace.TYPE_GRAY) {\n // return getGray(inData);\n // }\n\n int pixel[];\n if (inData instanceof int[]) {\n pixel = (int[])inData;\n } else {\n pixel = DataBuffer.toIntArray(inData);\n if (pixel == null) {\n throw new UnsupportedOperationException(\"This method has not been \"+\n \"implemented for transferType \" + transferType);\n }\n }\n\n // Normalize the pixel in order to convert it\n float[] norm = getNormalizedComponents(pixel, 0, null, 0);\n // Note that getNormalizedComponents returns non-premultiplied values\n float[] rgb = colorSpace.toRGB(norm);\n return (int) (rgb[1] * 255.0f);\n }", "public int checkRGBValue(int redGreenOrBlue) {\n if (redGreenOrBlue > 255) redGreenOrBlue = 255;\n if (redGreenOrBlue < 0) redGreenOrBlue = 0;\n return redGreenOrBlue;\n }", "public static int getColorB(int color) {\r\n return color & 0xff;\r\n }", "@ColorInt\n public int getColor() {\n return Color.HSVToColor(mColorHSV);\n }", "public Integer getColor() {\n\t\treturn color;\n\t}", "int getColour();", "public int getColorInt () {\r\n return this.colorReturned;\r\n }", "public Color getColor();", "public Color getColor();", "public Color getColor();", "public String obtenColor() {\r\n return color;\r\n }", "static public int getBlue(int color) {\n return color & 0xff;\n }", "public static int toRGB(byte red, byte green, byte blue) {\n int result = byteToUnsignedShort(red);\n result = (result << 8) + byteToUnsignedShort(green);\n result = (result << 8) + byteToUnsignedShort(blue);\n return result;\n }", "String getColor();", "public static int getRed(int color) {\n return (color & 0x00FF0000) >> 16;\n }", "public Color getColor() {\r\n return Color.GRAY;\r\n }", "public short getColor() {\n\t\treturn this.color;\n\t}", "public static int setGreen(int color, int green) {\n return (color & 0xFFFF00FF) | (green << 8);\n }", "public int getColor() {\n \t\treturn color;\n \t}", "int getHighLightColor();", "public int getColor(){\r\n\t\treturn color;\r\n\t}", "public Color getColor() {\n\t\treturn Color.GRAY;\n\t}", "public String getColor() {\r\n\t\treturn color;\r\n\t}", "public IsColor getColor() {\n\t\treturn ColorBuilder.parse(getColorAsString());\n\t}", "public int getColour()\r\n\t{\r\n\t\treturn colour;\r\n\t}", "public int getColor();", "public int getColor();", "public String getColour()\n\t{\n\t\treturn colour;\n\t}", "public String getColour(int row, int column)\n\t{\n\t\t\n\t\treturn board.GetColor(row, column); \n\t\t\n\t}", "public static int getColor(int r, int g, int b) {\r\n return 0xff000000 | (r << 16) | (g << 8) | b;\r\n }", "public String getColor()\n {\n return color;\n }", "public String getColor()\n {\n return color;\n }", "public Color getColor() {\r\n\t\tColor retVal = theColor;\r\n\t\treturn retVal;\r\n\t}", "public String getColor() {\r\n return color;\r\n }", "public int getRed() {\n\t\treturn 100;\n\t}", "public int getColor(){\n\t\treturn color;\n\t}", "public int getColor(){\n\t\treturn color;\n\t}", "public static int getBlue(int color) {\n return (color & 0x0000FF00) >> 8;\n }", "public int getColor() {\n\t\treturn getMappedColor(color);\n\t}", "private String colourToRgb(Color c)\n {\n return \"rgb(\" + (int)(c.getRed()*255) + \",\" + (int)(c.getGreen()*255) + \",\" + (int)(c.getBlue()*255) + \")\";\n }", "public abstract BossColor getColor();", "public int getColor() {\n return color;\n }", "public String getColor() {\n\t\treturn color;\n\t}", "public String getColor() {\n\t\treturn color;\n\t}", "public Color getColor() {\n return Color.YELLOW;\n }", "public PxlColor getPxlColor() {\r\n\t\t// System.out.println(\"Getting \" + n);\r\n\t\treturn (value.getPxlColor());\r\n\t}", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getHtmlColor() {\n\t\tString sRed = Integer.toHexString(color.getRed());\n\t\tString sGreen = Integer.toHexString(color.getGreen());\n\t\tString sBlue = Integer.toHexString(color.getBlue());\n\t\t\n\t\treturn \"#\" + (sRed.length() == 1 ? \"0\" + sRed : sRed) +\n\t\t\t\t(sGreen.length() == 1 ? \"0\" + sGreen : sGreen) +\n\t\t\t\t(sBlue.length() == 1 ? \"0\" + sBlue : sBlue);\n\t}", "public Color getColor() { return color.get(); }", "public String getColor()\n {\n return this.color;\n }", "public Color getColor() \n\t{\n\t\treturn color;\n\t}", "public float hue() {\n int r = (color >> 16) & 0xFF;\n int g = (color >> 8) & 0xFF;\n int b = color & 0xFF;\n\n int V = Math.max(b, Math.max(r, g));\n int temp = Math.min(b, Math.min(r, g));\n\n float H;\n\n if (V == temp) {\n H = 0;\n } else {\n final float vtemp = (float) (V - temp);\n final float cr = (V - r) / vtemp;\n final float cg = (V - g) / vtemp;\n final float cb = (V - b) / vtemp;\n\n if (r == V) {\n H = cb - cg;\n } else if (g == V) {\n H = 2 + cr - cb;\n } else {\n H = 4 + cg - cr;\n }\n\n H /= 6.f;\n if (H < 0) {\n H++;\n }\n }\n\n return H;\n }", "public String getColor(){\n\t\treturn color;\n\t}", "public double getRedColor() {\n\t\treturn this.redColor;\n\t}", "public final Color getColor() {\n return color;\n }", "public String getColour() {\r\n return colour;\r\n }", "public static int getGreyscale(int argb){\n\t\tint red = argb & 0xff;\n\t\tint green = (argb >> 8) & 0xff;\n\t\tint blue = (argb >> 16) & 0xff;\n\t\tint avg = ((red + green + blue) / 3) & 0xff;\n\t\tint grey = (0xff << 24) + (avg << 16) + (avg << 8) + avg;\n\t\treturn grey;\n\t}", "public static int toRGB(Color color) {\n\t\treturn toInt(color.getRed()) | (toInt(color.getGreen()) << 8) | (toInt(color.getBlue()) << 16);\n\t}", "private int getStockChangeColor (String stockChange){\n float change = Float.parseFloat(stockChange);\n if (change >= 0){return Color.GREEN;}\n\n return Color.RED;\n }", "public Color getRedBlack() {\r\n\t\tif (isRed())\r\n\t\t\treturn Color.RED;\r\n\t\telse\r\n\t\t\treturn Color.BLACK;\r\n\r\n\t}", "public Color getColor() {\n \t\treturn color;\n \t}", "public int getColor() {\n return this.color;\n }", "public Color calculateColor(Color bGColor)\n\t{\n\t\tint hRed = clamp((int) ((PreferenceStore.getColor(PreferenceStore.Preference.LINENUMBERFG).getRed() + bGColor.getRed()*1)/2), 0, 255);\n\t\tint hGreen = clamp((int) ((PreferenceStore.getColor(PreferenceStore.Preference.LINENUMBERFG).getGreen() + bGColor.getGreen()*1)/2), 0, 255);\n\t\tint hBlue = clamp((int) ((PreferenceStore.getColor(PreferenceStore.Preference.LINENUMBERFG).getBlue() + bGColor.getBlue()*1)/2),0 ,255);\n\t\t\n\t\tfloat[] hsbValues = new float[3];\n\t\tColor.RGBtoHSB(hRed, hGreen, hBlue, hsbValues);\n\t\tif(hsbValues[0] == 0 && hsbValues[1] == 0){\n\t\t\thsbValues[1] += 100;\n\t\t}\n\t\tint range = MAXKEY - MINKEY + 1;\n\t\tint index = (key-STARTKEY);\n\t\tif(index < 0){\n\t\t\tindex += range;\n\t\t}\n\t\tfloat increment = 1.0f/((float)range);\n\t\t\n\t\tfor(int i = 0; i < index; i ++){\n\t\t\thsbValues[0] = (hsbValues[0]+increment)%1;\n\t\t}\n\t\t\n\t\tColor highlight = new Color(Color.HSBtoRGB(hsbValues[0], hsbValues[1], hsbValues[2]));\n\t\t\n\t\treturn highlight;\n\t}", "public static int getHoloBlue() {\n\t\treturn Color.rgb(51, 181, 229);\n\t}", "public int getColor()\r\n {\r\n return m_iColor;\r\n }" ]
[ "0.8023079", "0.7843616", "0.73001975", "0.70285726", "0.670956", "0.66155106", "0.6601355", "0.65526026", "0.65384245", "0.65384245", "0.65384245", "0.65384245", "0.65384245", "0.6504419", "0.6445049", "0.6331763", "0.63156956", "0.6310881", "0.6258683", "0.6250818", "0.62169385", "0.6214869", "0.6209143", "0.62087125", "0.6202976", "0.6173407", "0.609564", "0.6085096", "0.6080015", "0.6076598", "0.60721385", "0.60657924", "0.6064625", "0.6057027", "0.6056944", "0.60437804", "0.60386175", "0.60386175", "0.60386175", "0.6018642", "0.598148", "0.5969016", "0.59606534", "0.595158", "0.594916", "0.5947529", "0.59459144", "0.5920371", "0.5913913", "0.59137344", "0.5911323", "0.5909664", "0.5908557", "0.5907228", "0.5906481", "0.5906481", "0.5902864", "0.5902535", "0.58874905", "0.58856714", "0.58856714", "0.58740985", "0.5872257", "0.58680326", "0.58672214", "0.58672214", "0.5866556", "0.58658016", "0.58518034", "0.58510125", "0.5847567", "0.5845375", "0.5845375", "0.58385354", "0.5838341", "0.5829884", "0.5829884", "0.5829884", "0.5829884", "0.5829884", "0.5829884", "0.5829884", "0.5829884", "0.58284116", "0.58215564", "0.5787946", "0.5785864", "0.57823575", "0.5781554", "0.57793206", "0.577813", "0.57773226", "0.5776863", "0.5770007", "0.57652175", "0.57603866", "0.57547647", "0.5754689", "0.57526106", "0.57402575", "0.57369375" ]
0.0
-1
Returns the Blue component of the RGB color.
public int getB();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public int getBlue(int color) {\n return color & 0xff;\n }", "public static int getBlue(int color) {\n return (color & 0x0000FF00) >> 8;\n }", "public final int getB() {\n\t\treturn blue;\n\t}", "public static int getColorB(int color) {\r\n return color & 0xff;\r\n }", "public Color getBlue() {\n return fBlue;\n }", "public int getBlue(int pixel) {\n if (numComponents > 1) {\n throw new\n IllegalArgumentException(\"More than one component per pixel\");\n }\n // Since there is only 1 component, there is no alpha\n\n // Normalize the pixel in order to convert it\n float[] norm = { (float) pixel / ((1<<nBits[0]) - 1) };\n float[] rgb = colorSpace.toRGB(norm);\n \n return (int) (rgb[2]*255);\n }", "public static int getHoloBlue() {\n\t\treturn Color.rgb(51, 181, 229);\n\t}", "public float getBlue() {\n return blue;\n }", "int getBlue(int x, int y);", "java.awt.Color getColor();", "public RGBColor getColor(){\r\n return this._color;\r\n }", "public int getBlue(Object inData) {\n if (is_sRGB) {\n boolean needAlpha = (supportsAlpha && isAlphaPremultiplied);\n int alp = 0;\n int blue = 0;\n switch (transferType) {\n case DataBuffer.TYPE_BYTE:\n byte bdata[] = (byte[])inData;\n blue = bdata[2] & 0xff;\n if (needAlpha) {\n alp = bdata[numColorComponents] & 0xff;\n }\n break;\n case DataBuffer.TYPE_USHORT:\n short sdata[] = (short[])inData;\n blue = sdata[2] & 0xffff;\n if (needAlpha) {\n alp = sdata[numColorComponents] & 0xffff;\n }\n break;\n case DataBuffer.TYPE_INT:\n int idata[] = (int[])inData;\n blue = idata[2];\n if (needAlpha) {\n alp = idata[numColorComponents];\n }\n break;\n default:\n throw new\n UnsupportedOperationException(\"This method has not \"+\n \"been implemented for transferType \" + transferType);\n }\n if (nBits[2] != 8) {\n int shift = nBits[2] - 8;\n return ((shift > 0) \n ? (blue>>shift)\n : (blue<<(-shift)));\n }\n if (needAlpha) {\n return (alp != 0)\n ? (int) (blue*((1<<nBits[numColorComponents])-1.f)/alp)\n : 0;\n }\n else {\n return blue;\n }\n }\n // REMIND: possible grayscale optimization here\n // else if (colorSpaceType == ColorSpace.TYPE_GRAY) {\n // return getGray(inData);\n // }\n\n int pixel[];\n if (inData instanceof int[]) {\n pixel = (int[])inData;\n } else {\n pixel = DataBuffer.toIntArray(inData);\n if (pixel == null) {\n throw new UnsupportedOperationException(\"This method has not been \"+\n \"implemented for transferType \" + transferType);\n }\n }\n\n // Normalize the pixel in order to convert it\n float[] norm = getNormalizedComponents(pixel, 0, null, 0);\n // Note that getNormalizedComponents returns non-premultiplied values\n float[] rgb = colorSpace.toRGB(norm);\n return (int) (rgb[2] * 255.0f);\n }", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "public Color getColor() {\r\n\t\treturn new Color(Color.HSBtoRGB(hsb[0], hsb[1], hsb[2]));\r\n\t}", "public int getRgbColor()\n {\n return _rgbColor;\n }", "public E3DVector4F getVertexColorB(){\r\n\t\treturn vertices[1].getVertexColor();\r\n\t}", "public int getColorValue() {\r\n\t\treturn color;\r\n\t}", "public Color getRedBlack() {\r\n\t\tif (isRed())\r\n\t\t\treturn Color.RED;\r\n\t\telse\r\n\t\t\treturn Color.BLACK;\r\n\r\n\t}", "public GrayColor getColor(){\n return this.color;\n }", "@Override\n public Color getColor() {\n return Utils.Pion.BLANC.getCouleur();\n }", "public Color getBlack() {\n return fBlack;\n }", "public Color getColor() {\n return BirdColor;\n }", "int getBlue(){\n return getPercentageValue(\"blue\");\n }", "public boolean isBlue() {\r\n return this.blue;\r\n }", "public int getLSB(int colour){\n if(colour % 2 == 0) {\n return 0;\n }else{\n return 1;\n }\n }", "public boolean isBlue(Color c){\n\t\treturn ( (c.getRed() <= ts.getBlue_r()) && (c.getBlue() > ts.getBlue_b()) && (c.getGreen() <= ts.getBlue_g()));\n\t}", "int getBlue(){\n\n return this.blue;\n }", "public Color getColor() {\r\n\t\tColor retVal = theColor;\r\n\t\treturn retVal;\r\n\t}", "public Color getColor()\r\n\t{\r\n\t\treturn _g2.getColor();\r\n\t}", "public Integer getColor() {\n\t\treturn color;\n\t}", "public String obtenColor() {\r\n return color;\r\n }", "public Color getColor() \n\t{\n\t\treturn color;\n\t}", "public GameColor getColor();", "public int getColor(){\r\n\t\treturn color;\r\n\t}", "public Color getDevColor() {\r\n\t\t// System.out.println(\"Getting \" + n);\r\n\t\treturn (value.getDevColor());\r\n\t}", "public int getColor() {\n \t\treturn color;\n \t}", "public int getColor() {\n\t\treturn getMappedColor(color);\n\t}", "public Color getColor() {\n \t\treturn color;\n \t}", "public int getColorBLUE(WebDriver driver, String xpath, String css, Boolean ifPrint) throws NumberFormatException, IOException {\n\t\tif(ifPrint){ fileWriterPrinter(\"BLUE = \" + getColorRGBarray(driver, xpath, css, false)[2]); }\n\t\treturn getColorRGBarray(driver, xpath, css, false)[2];\n\t}", "@Override\n\tpublic String getColor() {\n\t\treturn \"blue\";\n\t}", "public int getColor(){\n\t\treturn color;\n\t}", "public int getColor(){\n\t\treturn color;\n\t}", "public ColourPair getColorPair() {\n return colour;\n }", "public static int setBlue(int color, int blue) {\n return (color & 0xFFFFFF00) | blue;\n }", "private static BufferedImage colorBird(final BufferedImage refImage,\n final Color color) {\n \n final BufferedImage image = new BufferedImage(BIRD_WIDTH,\n BIRD_HEIGHT, BufferedImage.TYPE_INT_ARGB);\n \n final Color bright = color.brighter().brighter();\n final Color dark = color.darker().darker();\n \n for (int y = 0; y < BIRD_HEIGHT; ++y){\n for (int x = 0; x < BIRD_WIDTH; ++x) {\n int argb = refImage.getRGB(x, y);\n if (argb == 0xffe0802c)\n argb = dark.getRGB();\n else if (argb == 0xfffad78c)\n argb = bright.getRGB();\n else if (argb == 0xfff8b733)\n argb = color.getRGB();\n image.setRGB(x, y, argb);\n }\n } \n return image;\n }", "public Color getColor();", "public Color getColor();", "public Color getColor();", "public Color getColor() {\r\n return this.BoardColor;\r\n }", "public int getColor() {\n return color;\n }", "public int getRed() {\n\t\treturn 100;\n\t}", "public Integer getColorCd() {\n\t\treturn colorCd;\n\t}", "public Color getColor() { return color.get(); }", "public Player getBluePlayer() {\n\t\treturn bluePlayer;\n\t}", "public static int toBGR(Color color) {\n int result = (int) (color.getBlue() * 0xFF);\n result = (result << 8) + (int) (color.getGreen() * 0xFF);\n result = (result << 8) + (int) (color.getRed() * 0xFF);\n return result;\n }", "public int getColor() {\n return this.color;\n }", "public Color getColor() {\n return color;\r\n }", "public final Color getColor() {\n return color;\n }", "public Team getTeamBlue() {\r\n return teamBlue;\r\n }", "public String getColor() {\r\n\t\treturn color;\r\n\t}", "public Color getColor() {\n return color;\n }", "private static int get(int colour) {\r\n\t\t// If the color is incorrect (less than 0) the color is set invisible\r\n\t\tif (colour < 0) {\r\n\t\t\treturn 255;\r\n\t\t}\r\n\r\n\t\t// taking each number of the argument\r\n\t\tint r = colour / 100 % 10;\r\n\t\tint g = colour / 10 % 10;\r\n\t\tint b = colour % 10;\r\n\r\n\t\t// returning the 6*6*6 color\r\n\t\treturn r * 6 * 6 + g * 6 + b;\r\n\t}", "public Color getColor() {\r\n\t\treturn color;\r\n\t}", "public Color getColor() {\r\n\t\treturn color;\r\n\t}", "public Color getColor() {\n\t\treturn this.color;\n\t}", "public String getColor()\n {\n return color;\n }", "public String getColor()\n {\n return color;\n }", "public Color getColor()\n {\n return color;\n }", "public Color getColor()\n {\n return color;\n }", "public Color getColor()\n {\n return color;\n }", "public String getColor()\n {\n return this.color;\n }", "public Color getColor(){\n\t\t\n\t\treturn COL;\n\t}", "public static int getColor(int r, int g, int b) {\r\n return 0xff000000 | (r << 16) | (g << 8) | b;\r\n }", "public String getColor() {\r\n return color;\r\n }", "public Color getColor()\n {\n return color;\n }", "public short getColor() {\n\t\treturn this.color;\n\t}", "public int getColor()\r\n {\r\n return m_iColor;\r\n }", "public String getColor() {\n\t\treturn color;\n\t}", "public String getColor() {\n\t\treturn color;\n\t}", "public Color getColor() {\r\n return color;\r\n }", "public Color getColor() {\r\n return color;\r\n }", "public Color getColor() {\r\n return color;\r\n }", "public int getColorInt () {\r\n return this.colorReturned;\r\n }", "public Color getColor() {\r\n return this.color;\r\n }", "@ColorInt\n public int getColor() {\n return Color.HSVToColor(mColorHSV);\n }", "public Color getColor() {\n\t\treturn color;\n\t}", "public Color getColor() {\n\t\treturn color;\n\t}", "public Color getColor() {\n\t\treturn color;\n\t}", "public Color getColor() {\n\t\treturn color;\n\t}", "public String getColor(){\n\t\treturn color;\n\t}", "public Color getColor() {\n return this.color;\n }", "public final Color getColor() {\n\t\treturn color;\n\t}", "RGB getOldColor();", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }" ]
[ "0.80165184", "0.7801159", "0.77324957", "0.7472214", "0.7368037", "0.72309077", "0.72133636", "0.7145701", "0.66494805", "0.66159636", "0.6615595", "0.66099745", "0.6563814", "0.6563814", "0.6563814", "0.6563814", "0.6563814", "0.65596133", "0.6529168", "0.6303116", "0.6284538", "0.6215347", "0.6206857", "0.6184225", "0.6170919", "0.616412", "0.61296546", "0.61169386", "0.61120784", "0.6107629", "0.6100611", "0.60943305", "0.6057731", "0.60573065", "0.6053273", "0.6048168", "0.6047859", "0.6043504", "0.60406923", "0.60383046", "0.6038024", "0.60261005", "0.6024792", "0.6024766", "0.60165507", "0.60165507", "0.6002079", "0.5997831", "0.5996679", "0.5993843", "0.5993843", "0.5993843", "0.59936744", "0.598611", "0.59847915", "0.5979696", "0.5979269", "0.5979161", "0.59695363", "0.5955917", "0.5949077", "0.59490675", "0.59352267", "0.59329253", "0.59251136", "0.5924304", "0.592164", "0.592164", "0.59184057", "0.59176975", "0.59176975", "0.5901084", "0.5901084", "0.5901084", "0.5898941", "0.58988297", "0.58979285", "0.5896819", "0.5895767", "0.589513", "0.58930653", "0.5889314", "0.5889314", "0.5888527", "0.5888527", "0.5888527", "0.58877116", "0.5883347", "0.5882508", "0.58757645", "0.58757645", "0.58757645", "0.58757645", "0.5875695", "0.58734435", "0.5868363", "0.58645463", "0.5863159", "0.5863159", "0.5863159", "0.5863159" ]
0.0
-1
Returns the Alpha component (transparency) of the RGB color, between 0 and 1.
public double getA();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getAlpha(int color) {\n return (color >> 24) & 0xFF;\n }", "public int getAlpha()\n {\n return getColor().alpha();\n }", "public int getPaintAlpha(){\n return Math.round((float)paintAlpha/255*100);\n }", "public static int getColorWithAlpha(float alpha, int baseColor) {\n int a = Math.min(255, Math.max(0, (int) (alpha * 255))) << 24;\n int rgb = 0x00ffffff & baseColor;\n return a + rgb;\n }", "protected int getShadeAlpha() {\n int a = currAlpha - 80;\n if (a < 0)\n a = 0;\n return a;\n }", "public static int alphaRGB(int rgb,int orgb,float alpha){\r\n\t\tif(alpha==1.0){\r\n\t\t\treturn rgb;\r\n\t\t}\r\n\t\tint a = (int)(alpha*0xff);\r\n\t\tint nrgb = 0xff000000;\r\n\t\tint r = a*((rgb&0x00ff0000)>>16); //red\r\n\t\tr+=(0xff-a)*orgb;\r\n\t\tr/=0xff;\r\n\t\tnrgb += r<<16;\r\n\t\tr = a*((rgb&0x0000ff00)>>8); \t //green\r\n\t\tr+=(0xff-a)*orgb;\r\n\t\tr/=0xff;\r\n\t//\tSystem.out.println(r);\r\n\t\tnrgb+=r<<8;\r\n\t\tr = a*(rgb&0x000000ff); \t //blue\r\n\t\tr+=(0xff-a)*orgb;\r\n\t\tr/=0xff;\r\n\t\tnrgb+=r;\r\n\t\r\n\t\treturn nrgb;\r\n\t}", "public float getAlpha() {\n if (this.isConnectedToGame)\n return 1.0f;\n else\n return 0.5f;\n }", "public static int applyAlphaToColor(int color, float alpha) {\n return (int) (0xFF * alpha) << 24 | color & 0xFFFFFF;\n }", "public float getAlpha() {\n \t\treturn alpha;\n\t}", "public float getAlpha();", "public float getAlpha();", "float getAlpha();", "@Override\n public int getOpacity() {\n return DrawableUtils.getOpacityFromColor(DrawableUtils.multiplyColorAlpha(mColor, mAlpha));\n }", "public int getAlpha(int pixel) {\n if (supportsAlpha == false) {\n return 255;\n }\n if (numComponents > 1) {\n throw new\n IllegalArgumentException(\"More than one component per pixel\");\n }\n\n return (pixel/((1<<nBits[0])-1))*255;\n }", "public final double getAlpha() {\n\t\treturn alpha;\n\t}", "public int getAlpha() {\r\n return this.alpha = getInstanceOf(int.class, this.alpha);\r\n }", "public static double getAlpha()\n\t{\n\t\treturn alpha;\n\t}", "private static int colorToRGB(int alpha, int red, int green, int blue) {\n \n int newPixel = 0;\n newPixel += alpha; newPixel = newPixel << 8;\n newPixel += red; newPixel = newPixel << 8;\n newPixel += green; newPixel = newPixel << 8;\n newPixel += blue;\n \n return newPixel;\n }", "private int adjustAlpha( int color, float alphaArg ) {\n \t\tint alpha = Math.round( alphaArg );\n \t\tint red = Color.red( color );\n \t\tint green = Color.green( color );\n \t\tint blue = Color.blue( color );\n \t\treturn Color.argb( alpha, red, green, blue );\n \t}", "public static Color alphaBlend(Color o, int a){\n\t\treturn new Color(o.getRed(), o.getGreen(), o.getBlue(), a);\n\t}", "public static Color getColor(Color color, int alpha) {\r\n alpha *= 255;\r\n alpha /= 100;\r\n\r\n return new Color(color.getRed(), color.getGreen(), color.getBlue(), alpha);\r\n }", "public double getAlpha() {\n return alpha;\n }", "public double getAlpha();", "public double getAlpha();", "public int getAlpha(Object inData) {\n if (supportsAlpha == false) {\n return 255;\n }\n\n int alpha = 0;\n int aIdx = numColorComponents;\n switch (transferType) {\n case DataBuffer.TYPE_BYTE:\n byte bdata[] = (byte[])inData;\n alpha = bdata[aIdx] & 0xff;\n break;\n case DataBuffer.TYPE_USHORT:\n short sdata[] = (short[])inData;\n alpha = sdata[aIdx]&0xffff;\n break;\n case DataBuffer.TYPE_INT:\n int idata[] = (int[])inData;\n alpha = idata[aIdx];\n break;\n default:\n throw new\n UnsupportedOperationException(\"This method has not \"+\n \"been implemented for transferType \" + transferType);\n }\n\n if (nBits[aIdx] == 8) {\n return alpha;\n }\n else {\n int shift = nBits[aIdx] - 8;\n return ((shift > 0) \n ? (alpha>>shift)\n : (alpha<<(-shift)));\n }\n }", "public static int setAlpha(int color, int alpha) {\n return (color & 0x00FFFFFF) | (alpha << 24);\n }", "public CXformWithAlpha getColorTransform() {\n return colorTransform;\n }", "public double getAlpha()\n\t{\n\t\treturn Math.toRadians(alpha);\n\t}", "public int toARGB() {\n return ((a & 255) << 24) |\n ((r & 255) << 16) |\n ((g & 255) << 8) |\n ((b & 255) );\n }", "@Override\n public int getAlpha() {\n return mAlpha;\n }", "protected Color createColor(int red, int green, int blue, int alpha) {\n if ((red <= 1) && (green <= 1) && (blue <= 1) && ((alpha <= 1) || (alpha == 255))) {\n // rgba either 0 or 1\n Color c = new Color((float)red, (float)green, (float)blue, (alpha == 255) ? 1.0f : (float)alpha);\n// System.out.println(c);\n return c;\n }\n return super.createColor(red, green, blue, alpha);\n }", "public static int weakRGB(int rgb,float alpha){\r\n\t\tif(alpha==1.0){\r\n\t\t\treturn rgb;\r\n\t\t}\r\n\t\t\r\n\t\tint a = (int)(alpha*0xff);\r\n\t\tint nrgb = 0xff000000;\r\n\t\tint r = a*((rgb&0x00ff0000)>>16); //red\r\n\t\tr/=0xff;\r\n\t\tnrgb += r<<16;\r\n\t\tr = a*((rgb&0x0000ff00)>>8); \t //green\r\n\t\tr/=0xff;\r\n\t\tnrgb+=r<<8;\r\n\t\tr = a*(rgb&0x000000ff); \t //blue\r\n\t\tr/=0xff;\r\n\t\tnrgb+=r;\r\n\t//\tnrgb+=0xff000000;\r\n\t\t\r\n\t\treturn nrgb;\r\n\t}", "int getAsInt32Color(int a) {\r\n\t\tint r = (int) (x * 255);\r\n\t\tint g = (int) (y * 255);\r\n\t\tint b = (int) (z * 255);\r\n\t\tif (r > 255) {\r\n\t\t\tr = 255;\r\n\t\t}\r\n\t\tif (g > 255) {\r\n\t\t\tg = 255;\r\n\t\t}\r\n\t\tif (b > 255) {\r\n\t\t\tb = 255;\r\n\t\t}\r\n\r\n\t\tif (r < 0) {\r\n\t\t\tr = 0;\r\n\t\t}\r\n\t\tif (g < 0) {\r\n\t\t\tg = 0;\r\n\t\t}\r\n\t\tif (b < 0) {\r\n\t\t\tb = 0;\r\n\t\t}\r\n\r\n\t\treturn (b | g << 8 | r << 16 | a << 24);\r\n\t}", "public double getAlpha()\n {\n return alpha;\n }", "public int getTransparency() {\n return Color.TRANSLUCENT;\n }", "@Field(1) \n\tpublic ValuedEnum<D2D1_ALPHA_MODE> alphaMode() {\n\t\treturn this.io.getEnumField(this, 1);\n\t}", "public void alpha(int alpha);", "@Override\n public int getAlpha() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n return patternDrawable.getAlpha();\n }\n\n return 0xFF;\n }", "@Override\n public double getGlobalAlpha() {\n return graphicsEnvironmentImpl.getGlobalAlpha(canvas);\n }", "java.awt.Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "@Field(1) \n\tpublic D2D1_PIXEL_FORMAT alphaMode(ValuedEnum<D2D1_ALPHA_MODE> alphaMode) {\n\t\tthis.io.setEnumField(this, 1, alphaMode);\n\t\treturn this;\n\t}", "public static Vector4 alpha()\n {\n return new Vector4(0,0,0,1);\n }", "int getOpacity();", "@Override\n\tpublic int getOpacity() {\n\t\treturn PixelFormat.OPAQUE;\n\t}", "private float calculateAlpha() {\n float alpha = 1.2f*(myCamera.getViewportWidth()/(2*Const.WORLD_WIDTH-myCamera.getViewportWidth()))-0.2f;\n if(alpha < 0) alpha = 0;\n if(alpha > 1) alpha = 1;\n return alpha;\n }", "@FloatRange(from = 0.0, to = 1.0)\n public float getInitialAlpha() {\n return mImpl.getInitialAlpha();\n }", "public static int color(int bg) {\n\t\tint alpha =\t((bg>>24)&0xFF);\n\t\tint red = \t((bg>>16)&0xFF);\n\t\tint green = ((bg>>8)&0xFF);\n\t\tint blue = \t((bg)&0xFF);\n\t\tdouble lum = ((0.2126*(red)+0.7152*(green)+0.0722*(blue))*((alpha)/255.0))/255.0;\n\t\tif(lum>0.35)\n\t\t\treturn 0xFF000000;//black\n\t\telse return 0xFFFFFFFF;//white\n\t}", "double getAlpha() {\n return alpha;\n }", "public int getColor();", "public int getColor();", "protected Color getAlphaCopy(Color copy, Color orig) {\r\n if (copy==null)\r\n copy = new Color(orig);\r\n copy.r = orig.r;\r\n copy.g = orig.g;\r\n copy.b = orig.b;\r\n copy.a = alphaFilter!=null ? alphaFilter.a : orig.a;\r\n return copy;\r\n }", "public AlphaTable<S, O> getAlpha() {\n return alpha;\n }", "public int adjustAlpha(int color, float factor) {\n int alpha = Math.round(Color.alpha(color) * factor);\n int red = Color.red(color);\n int green = Color.green(color);\n int blue = Color.blue(color);\n return Color.argb(alpha, red, green, blue);\n }", "public double getAlphaAt(int row) {\n if (scale == 0)\n return defaultAlpha;\n else\n return (alphaColumn.getDoubleAt(row) - amin) * scale;\n }", "public Color getColor();", "public Color getColor();", "public Color getColor();", "public E3DVector4F getVertexColorA(){\r\n\t\treturn vertices[0].getVertexColor();\r\n\t}", "public int getColorValue() {\r\n\t\treturn color;\r\n\t}", "double getTransparency();", "private static int byteToARGB(final int brightness) {\n final int bitsInByte = 8;\n final int opaqueBitmask = 0xFF;\n final int red = 0xFFFF0000;\n// int result = ((opaqueBitmask << (bitsInByte) | brightness) << bitsInByte | brightness) << bitsInByte\n// | brightness;\n int result = (0xFF << 24) | (brightness << 16) | (brightness << 8) | brightness;\n result = result | red;\n return result;\n }", "int getColour();", "public int getRgbColor()\n {\n return _rgbColor;\n }", "public abstract RGBIColor toRGBColor();", "public int getTransparency() {\n/* 148 */ return this.bufImg.getColorModel().getTransparency();\n/* */ }", "public float getOpacity() { Number n = (Number)get(\"Opacity\"); return n!=null? n.floatValue() : 1; }", "public static final Color decodeWithAlpha( final String s ) {\n if ( s.startsWith( \"#\" ) ) {\n // I mean, why can you not decode #ffffffff as int -1? Why do I need a long for this 4 byte value?\n return new Color( Long.decode( s ).intValue(), s.length() > 8 );\n }\n return new Color( Integer.decode( \"#\" + s ), s.length() > 7 );\n }", "public boolean hasAlpha (BufferedImage im)\n\t{\n\t\t// does im have an alpha channel?\n\t\tif (im == null)\n\t\t\treturn false;\n\n\t\tint transparency = im.getColorModel ().getTransparency ();\n\n\t\tif ((transparency == Transparency.BITMASK) || (transparency == Transparency.TRANSLUCENT))\n\t\t\treturn true;\n\t\t\n\t\telse\n\t\t\treturn false;\n\t}", "public Color color() {\n r = 34;\n g = 0;\n b = 231;\n return color(r, g, b);\n }", "private AlphaComposite makeTransparent(float alpha){\n return(AlphaComposite.getInstance(AlphaComposite.SRC_OVER,alpha));\n }", "public float getStartAlpha() {\n return startAlpha;\n }", "private static int get(int colour) {\r\n\t\t// If the color is incorrect (less than 0) the color is set invisible\r\n\t\tif (colour < 0) {\r\n\t\t\treturn 255;\r\n\t\t}\r\n\r\n\t\t// taking each number of the argument\r\n\t\tint r = colour / 100 % 10;\r\n\t\tint g = colour / 10 % 10;\r\n\t\tint b = colour % 10;\r\n\r\n\t\t// returning the 6*6*6 color\r\n\t\treturn r * 6 * 6 + g * 6 + b;\r\n\t}", "public Integer getOpacity() {\n return opacity;\n }", "public Color getActiveColor() {\n\t\treturn this.activeColor;\n\t}", "public Scalar getScalarRGBA() {\n return convertColorScalar(ColorSpace.RGBA);\n }", "public float brightness() {\n int r = (color >> 16) & 0xFF;\n int g = (color >> 8) & 0xFF;\n int b = color & 0xFF;\n\n int V = Math.max(b, Math.max(r, g));\n\n return (V / 255.f);\n }", "static public int getGreen(int color) {\n return (color >> 8) & 0xff;\n }", "public RGBColor getColor(){\r\n return this._color;\r\n }", "@Override\n Color getColor() {\n return new Color(32, 83, 226, 255);\n }", "static public int getRed(int color) {\n return (color >> 16) & 0xff;\n }", "int getHighLightColor();", "public int getRgbColorAtPowerOn()\n {\n return _rgbColorAtPowerOn;\n }", "String getColor();", "public char getColor();", "private Color getColor( float value ) {\n float[] rgba = (float[]) baseRgba_.clone();\n shader_.adjustRgba( rgba, value );\n return new Color( rgba[ 0 ], rgba[ 1 ], rgba[ 2 ], rgba[ 3 ] );\n }", "int getAlpha(){\n return getPercentageValue(\"alpha\"); \n }", "public int getPointerAlpha() {\r\n\t\treturn mPointerAlpha;\r\n\t}", "public short getAlpha(final int aX, final int aY)\r\n\t{\r\n\t\treturn mAlphas[aX][aY];\r\n\t}", "public String getColor1P() {\n\t\treturn color1P;\n\t}", "public Integer getColor() {\n\t\treturn color;\n\t}", "public static int getGreen(int color) {\n return color & 0x000000FF;\n }", "public GameColor getColor();", "private static int getGrayTranslucentRGB(int rgb) {\n\t\tint r = (0xff & rgb);\n\t\tint g = (0xff & (rgb >> 8));\n\t\tint b = (0xff & (rgb >> 16));\n\t\trgb = r + (g << 8) + (b << 16) + (100 << 24);\n\t\t// rgb = r + (g << 8) + (b << 16); // 亮一些\n\t\treturn rgb;\n\t}", "public Color getColor() {\r\n\t\tColor retVal = theColor;\r\n\t\treturn retVal;\r\n\t}", "public int getColorInt () {\r\n return this.colorReturned;\r\n }", "public static int getColorB(int color) {\r\n return color & 0xff;\r\n }" ]
[ "0.79673535", "0.7700109", "0.71110976", "0.70711535", "0.6963351", "0.69183046", "0.68707937", "0.6859858", "0.68359447", "0.6785625", "0.6785625", "0.6774715", "0.6760363", "0.67423314", "0.6658992", "0.66551244", "0.66330934", "0.66235226", "0.66050977", "0.65244156", "0.6511714", "0.6475613", "0.6474924", "0.6474924", "0.64728457", "0.6443732", "0.64047384", "0.63818103", "0.6369087", "0.6362234", "0.6354564", "0.632888", "0.632682", "0.63216066", "0.6315837", "0.6273767", "0.62153786", "0.6186278", "0.61378133", "0.6101048", "0.6066698", "0.6066698", "0.6066698", "0.6066698", "0.6066698", "0.60284495", "0.6020809", "0.6012955", "0.60119104", "0.60040987", "0.6001777", "0.59948087", "0.59942746", "0.5944626", "0.5944626", "0.5940092", "0.5928191", "0.59055495", "0.5895055", "0.5881018", "0.5881018", "0.5881018", "0.5862448", "0.5858038", "0.58579797", "0.58528197", "0.5829653", "0.5795644", "0.5787209", "0.57774687", "0.5775125", "0.57672715", "0.57663286", "0.5756148", "0.57553035", "0.57385784", "0.57260454", "0.5718419", "0.5704979", "0.5703092", "0.5700549", "0.56991863", "0.56977206", "0.5673326", "0.5654347", "0.56489563", "0.5643484", "0.56396383", "0.5637872", "0.56348276", "0.5626455", "0.5625452", "0.5596078", "0.55801034", "0.5579058", "0.5576009", "0.55701905", "0.55697876", "0.554839", "0.55425435", "0.5542417" ]
0.0
-1
Returns a CCS compliant color string that can be set as a color on an HTML5 canvas.
public String getColorString();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getColor();", "public static String cssColor(final char c) {\n\tfinal short[] array = _cssColor0(c);\n\treturn \"rgb(\"+array[0]+\",\"+array[1]+\",\"+array[2]+\")\";\n\t}", "public String getColor() {\r\n\t\treturn \"Color = [\"+ ColorUtil.red(color) + \", \"+ ColorUtil.green(color) + \", \"+ ColorUtil.blue(color) + \"]\";\r\n\t}", "java.awt.Color getColor();", "public String c() {\r\n switch (c) {\r\n case RED:\r\n return \"Red\";\r\n case BLUE:\r\n return \"Blue\";\r\n case YELLOW:\r\n return \"Yellow\";\r\n case GREEN:\r\n return \"Green\";\r\n default:\r\n return \"Colorless\";\r\n }\r\n }", "public String getHtmlColor() {\n\t\tString sRed = Integer.toHexString(color.getRed());\n\t\tString sGreen = Integer.toHexString(color.getGreen());\n\t\tString sBlue = Integer.toHexString(color.getBlue());\n\t\t\n\t\treturn \"#\" + (sRed.length() == 1 ? \"0\" + sRed : sRed) +\n\t\t\t\t(sGreen.length() == 1 ? \"0\" + sGreen : sGreen) +\n\t\t\t\t(sBlue.length() == 1 ? \"0\" + sBlue : sBlue);\n\t}", "private static String formatHexString(Color c) {\n return c != null?String.format(null, \"#%02x%02x%02x\", new Object[]{Long.valueOf(Math.round(c.getRed() * 255.0D)), Long.valueOf(Math.round(c.getGreen() * 255.0D)), Long.valueOf(Math.round(c.getBlue() * 255.0D))}).toUpperCase():null;\n }", "public char getColor();", "public\n static\n String convertColorToString(Color val)\n {\n String ret_String;\n\n int a;\n try {\n a = val.getAlpha();\n }\n catch (NoSuchMethodError excp) {\n System.out.println(\"YutilProperties:convertColorToString:excp=[\" + excp + \"]\");\n a = 0xFF;\n }\n int r = val.getRed(), g = val.getGreen(), b = val.getBlue();\n String as, rs, gs, bs;\n\n rs = Integer.toHexString(r); if (rs.length() == 1) rs = \"0\" + rs;\n gs = Integer.toHexString(g); if (gs.length() == 1) gs = \"0\" + gs;\n bs = Integer.toHexString(b); if (bs.length() == 1) bs = \"0\" + bs;\n\n if (a == 0xFF)\n {\n ret_String = \"#\" + rs + gs + bs;\n }\n else\n {\n as = Integer.toHexString(a); if (as.length() == 1) as = \"0\" + as;\n ret_String = \"#\" + as + rs + gs + bs;\n } \n\n return ret_String;\n }", "public String getColor()\n {\n return color;\n }", "public String getColor()\n {\n return color;\n }", "public String getColor(){\n\t\treturn color;\n\t}", "private static String ColorHexString(final Color c) {\n\t\treturn (\"#\" // +Integer.toHexString(c.getRGB());\n\t\t + Integer.toHexString(256 + c.getRed()).substring(1)\n\t\t + Integer.toHexString(256 + c.getGreen()).substring(1)\n\t\t + Integer.toHexString(256 + c.getBlue()).substring(1));\n\t}", "public String getColor() {\r\n return color;\r\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "public String getColor() {\r\n\t\treturn color;\r\n\t}", "public String getColor() {\n\t\treturn color;\n\t}", "public String getColor() {\n\t\treturn color;\n\t}", "public String getColor(){\r\n return color;\r\n }", "public String getColouredName() {\n\t\tConfigManager crates = new ConfigManager(\"crates.yml\");\n\t\tcrates.get().getString(\"crates.\"+name.toLowerCase()+\".colouredName\");\n\t\treturn new String(ChatColor.translateAlternateColorCodes('&', crates.get().getString(\"crates.\"+name+\".colouredName\")));\n\t}", "@Override\n public String toString() {\n return color.name();\n }", "String getTextStrokeColorAsString();", "@NoProxy\n @NoWrap\n @NoDump\n public String getColor() {\n return color;\n }", "public String obtenColor() {\r\n return color;\r\n }", "public String getColorString() {\n return left.toString() + \", \" + right.toString();\n }", "public String getColor() { \n return color; \n }", "public void setColor(String c);", "public String getColor() {\n\t\treturn null;\n\t}", "abstract String getColor();", "protected static String getColouredString(final String colour, final String line) {\n String res = null;\n if (colour.length() < 3) {\n int num;\n \n try {\n num = Integer.parseInt(colour);\n } catch (NumberFormatException ex) {\n num = -1;\n }\n \n if (num >= 0 && num <= 15) {\n res = String.format(\"%c%02d%s%1$c\", Styliser.CODE_COLOUR, num, line);\n }\n } else if (colour.length() == 6) {\n try {\n Color.decode('#' + colour);\n res = String.format(\"%c%s%s%1$c\", Styliser.CODE_HEXCOLOUR, colour, line);\n } catch (NumberFormatException ex) { /* Do Nothing */ }\n }\n \n if (res == null) {\n res = String.format(\"%c%02d%s%1$c\", Styliser.CODE_COLOUR, 14, line);\n }\n return res;\n }", "public String toCodedString() {\n\t\t//System.out.println(toString());\n\t\treturn String.format(\"%s%s\", getColor().toInt(), getShape().toString());\n\t}", "String getColour();", "public final String getColorCode() {\n\t\treturn colorCode;\n\t}", "public Color getC(){\n\t\treturn c;\n\t}", "public String getColorToAsString() {\n\t\treturn getValue(Property.COLOR_TO, SankeyDataset.DEFAULT_COLOR_TO);\n\t}", "public String getColor(){\n return this._color;\n }", "public String getColorAsString() {\n\t\treturn getValue(CommonProperty.COLOR, AbstractLabels.DEFAULT_COLOR);\n\t}", "public String getColor()\n {\n return this.color;\n }", "public static String toColor(String s) {\n\t\treturn ChatColor.translateAlternateColorCodes('&', s);\n\t}", "public CMYKColors getColor() {\n return this.color;\n }", "abstract public String getColor();", "abstract public String getColor();", "public String getColorFromAsString() {\n\t\treturn getValue(Property.COLOR_FROM, SankeyDataset.DEFAULT_COLOR_FROM);\n\t}", "public String getColor() {\n\t\treturn \"Elcolor del vehiculo es: \"+color; \n\t }", "public String getColor() {\n return this.color;\n }", "public Color getColor();", "public Color getColor();", "public Color getColor();", "public String getCsc() {\r\n\t\treturn csc;\r\n\t}", "public static String getHexString(java.awt.Color color)\n {\n String r;\n String g;\n String b;\n r = Integer.toHexString(color.getRed());\n\n if (r.length() < 2)\n {\n r = \"0\" + r;\n }\n\n g = Integer.toHexString(color.getGreen());\n\n if (g.length() < 2)\n {\n g = \"0\" + g;\n }\n\n b = Integer.toHexString(color.getBlue());\n\n if (b.length() < 2)\n {\n b = \"0\" + b;\n }\n\n return r + g + b;\n }", "@Override\n Color getColor() {\n return new Color(32, 83, 226, 255);\n }", "public static Color getColor(int c)\n {\n int r = (7*c)%64;\n return new Color((r%4)*63+30,((r/4)%4)*63+30,(r/4/4)*63+30);\n }", "public int getColor();", "public int getColor();", "public String getColor() {\n return (String)getAttributeInternal(COLOR);\n }", "java.lang.String getCsStr();", "@Override\n public Color getColor() {\n return Utils.Pion.BLANC.getCouleur();\n }", "public String getBasicColorCd() {\n\t\treturn basicColorCd;\n\t}", "public String toString(){\n\t\treturn (red + \" \" + green + \" \" + blue + \"\\n\");\n\t}", "private static String colorDisplayName(Color c) {\n if(c != null) {\n return formatHexString(c);\n } else {\n return null;\n }\n }", "public static String color(final String string) {\n return ChatColor.translateAlternateColorCodes('&', string);\n }", "public String getColor(){\n return this.color;\n }", "public Color color() {\n r = 34;\n g = 0;\n b = 231;\n return color(r, g, b);\n }", "public String dame_color() {\n\t\treturn color;\n\t}", "public String toString()\n {\n return color.charAt(0) + \"Q\";\n }", "@Override\n public String getColor() {\n return this.color.name();\n }", "public String getColor() {\n return colorID;\n }", "public String toString() {\n return \"#ffff00\";\n }", "public static String getWebColor(Color color) {\r\n return String.format( \"#%02X%02X%02X\",\r\n (int)( color.getRed() * 255 ),\r\n (int)( color.getGreen() * 255 ),\r\n (int)( color.getBlue() * 255 ) );\r\n }", "public static String get(Color color) {\n return cc.colorToString(color);\n }", "@Override\r\n\tpublic String Color() {\n\t\treturn Color;\r\n\t}", "public E3DVector4F getVertexColorC(){\r\n\t\treturn vertices[2].getVertexColor();\r\n\t}", "public java.awt.Color colorFromString(String s) {\n if (s.contains(\"RGB\")) {\n String[] parts = s.split(\"\\\\(|\\\\)\");\n String[] parameter = parts[2].split(\",\");\n int r = Integer.parseInt(parameter[0]);\n int g = Integer.parseInt(parameter[1]);\n int b = Integer.parseInt(parameter[2]);\n return new Color(r, g, b);\n }\n if (s.contains(\"color\")) {\n String[] parts = s.split(\"\\\\(|\\\\)\");\n String color = parts[1];\n return colorMap.get(color);\n }\n return null;\n\n }", "public Integer getColorCd() {\n\t\treturn colorCd;\n\t}", "public String toString()\r\n\t{\r\n\t\tString output = \"Color = \" + this.color + \", \";\r\n\t\toutput += super.toString();\r\n\t\treturn output;\r\n\t}", "public String printColors(){\n String RGB = \"\";\n detectedColor = m_colorSensor.getColor();\n RGB = \"Red: \" + detectedColor.red + \", Green: \" + detectedColor.green + \", Blue: \" + detectedColor.blue;\n return RGB;\n }", "public Color getColor() {\n\t\treturn couleur;\n\t}", "public static String toString(int color) {\n return new StringBuilder()\n .append(\"Color[\")\n .append(getRed(color))\n .append(\",\")\n .append(getGreen(color))\n .append(\",\")\n .append(getBlue(color))\n .append(\"]\")\n .toString();\n }", "public Color choixCouleur(String s) {\n\t\tif(s.equals(\"ROUGE\")) return Color.RED;\n\t\telse if(s.equals(\"VERT\")) return Color.GREEN;\n\t\telse if(s.equals(\"BLEU\")) return Color.BLUE;\n\t\telse if(s.equals(\"ROSE\")) return Color.PINK;\n\t\telse if(s.equals(\"BLANC\")) return Color.WHITE;\n\t\telse if(s.equals(\"VIOLET\")) return Color.PURPLE;\n\t\telse if(s.equals(\"JAUNE\")) return Color.YELLOW;\n\t\telse if(s.equals(\"ORANGE\")) return Color.ORANGE;\n\t\telse if(s.equals(\"MARRON\")) return Color.BROWN;\n\t\telse if(s.equals(\"GRIS\")) return Color.GREY;\n\t\telse if(s.equals(\"ROUGE\")) return Color.RED;\n\t\telse return Color.BLACK;\n\t}", "public String listOfColors() {\r\n\t\t StringBuilder sb = new StringBuilder();\r\n for (Iterator<Color> it = colors.iterator(); it.hasNext();){\r\n\t\t\t Color c = (Color) it.next();\r\n \t sb.append(c.toString() + NL);\r\n }\r\n return sb.toString();\r\n }", "private static String getColorString(int index) {\n switch (index) {\n case 0: return \"None\";\n case 1: case 6: return \"Orange\";\n case 2: case 7: return \"Green\";\n case 3: return \"Blue\";\n case 4: case 14: return \"Yellow\";\n case 8: return \"Black\";\n default: return \"not a color\";\n }\n }", "public static String colorIntToString(int color) {\r\n\t\tswitch (color) {\r\n\t\tcase -8355712:\r\n\t\t\treturn \"GRAY\";\r\n\t\tcase -256:\r\n\t\t\treturn \"YELLOW\";\r\n\t\tcase -16776961:\r\n\t\t\treturn \"BLUE\";\r\n\t\tcase -65536:\r\n\t\t\treturn \"RED\";\r\n\t\tcase -14336:\r\n\t\t\treturn \"ORANGE\";\r\n\t\tcase 16711935:\r\n\t\t\treturn \"MAGENTA\";\r\n\t\tcase -65281:\r\n\t\t\treturn \"MAGENTA\";\r\n\t\tcase 0:\r\n\t\t\treturn \"BLACK\";\r\n\t\tcase -16777216:\r\n\t\t\treturn \"BLACK\";\t\t\t\r\n\t\tcase 16767215:\r\n\t\t\treturn \"WHITE\";\r\n\t\tcase -1:\r\n\t\t\treturn \"WHITE\";\r\n\t\tcase 16762880:\r\n\t\t\treturn \"ORANGE\";\r\n\t\tcase 65535:\r\n\t\t\treturn \"CYAN\";\r\n\t\tcase -16711681:\r\n\t\t\treturn \"CYAN\";\r\n\t\tcase -20561:\r\n\t\t\treturn \"PINK\";\r\n\t\tcase 16756655:\r\n\t\t\treturn \"PINK\";\r\n\t\tdefault:\r\n\t\t\treturn new String(\"Non definito nel parser: \"+Integer.toString(color));\r\n\t\t}\r\n\t}", "public String toString() {\r\n\t\tString str = color.substring(0,1).toUpperCase()\r\n\t\t\t\t + color.substring(1) + \" \" \r\n\t\t\t\t + name.substring(0,1).toUpperCase()\r\n\t\t\t\t + name.substring(1);\r\n\t\treturn str;\r\n\t}", "@Override\n public String getColor() {\n return this.color;\n }", "ClrConst(Color color)\n {\n this(Color.RGBtoHSB(\n color.getRed(), \n color.getGreen(),\n color.getBlue(), null)[0]);\n }", "public String getColorNum() {\n return (String)getAttributeInternal(COLORNUM);\n }", "public void setColor(String c)\n { \n color = c;\n draw();\n }", "public static Color getBasicColor() {\n String colorEntities = PropertyLoader.getInstance().getProperties()\n .getProperty(PropertyLoader.COLOR_ENTITIES);\n Color color;\n\n if (colorEntities == null)\n color = basicColor;\n else\n color = new Color(Integer.parseInt(colorEntities));\n\n return color;\n }" ]
[ "0.6813692", "0.6610416", "0.6456026", "0.6404343", "0.6403552", "0.63977623", "0.6338196", "0.63046616", "0.61481565", "0.61062014", "0.61062014", "0.6051958", "0.6034517", "0.60270554", "0.60194296", "0.60194296", "0.60194296", "0.60194296", "0.60194296", "0.60194296", "0.60194296", "0.60194296", "0.60111773", "0.60111773", "0.60111773", "0.60111773", "0.60111773", "0.60007197", "0.59803635", "0.59803635", "0.59733635", "0.5972333", "0.5963946", "0.59618276", "0.5956516", "0.5947748", "0.5935074", "0.5932551", "0.59303063", "0.590759", "0.58914673", "0.5887251", "0.5880066", "0.5856557", "0.58544225", "0.58345115", "0.5820217", "0.5793613", "0.57888824", "0.578695", "0.5778321", "0.57484937", "0.57405984", "0.57405984", "0.5720204", "0.57134503", "0.5700823", "0.5698286", "0.5698286", "0.5698286", "0.56951195", "0.5694327", "0.5692815", "0.56793255", "0.56733453", "0.56733453", "0.5671488", "0.5664882", "0.56606865", "0.56523985", "0.56506765", "0.5647942", "0.5646583", "0.56460977", "0.5639912", "0.56395787", "0.563932", "0.56207824", "0.5606453", "0.55943084", "0.5594293", "0.55932605", "0.5588908", "0.55888706", "0.5587972", "0.5576673", "0.55314475", "0.552659", "0.5526532", "0.5526309", "0.55117404", "0.55002266", "0.5496068", "0.54957026", "0.54889506", "0.54810256", "0.54803205", "0.5474069", "0.54735917", "0.5467537" ]
0.67948884
1
Every fragment has to inflate a layout in the onCreateView method. We have added this method to avoid duplicate all the inflate code in every fragment. You only have to return the layout to inflate in this method when extends BaseFragment.
protected abstract int getFragmentLayout();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\n\n view = inflater.inflate(LAYOUT, container, false);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_base, container, false);\n FrameLayout fragmentLayoutContainer = view.findViewById(R.id.layout_container);\n inflater.inflate(mLayoutId, fragmentLayoutContainer);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_base, container, false);\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\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 View view=inflater.inflate(R.layout.fragment_main4, container, false);\n return view;\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\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_statics, container, false);\r\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 view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_layout2, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n return inflater.inflate(R.layout.fragment_android, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater\n .inflate(R.layout.static_fragment, container, false);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_level, container, false);\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}", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_menu_06, container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_creation, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_my, container, false);\n initView(view);\n return view;\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 view = inflater.inflate(R.layout.fragment_mainfragment, 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_my, container, false);\n return view;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\treturn inflater.inflate(R.layout.fragment3, container, false);\r\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.main_fragment, container, false);\n\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_fragment_dashboard, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_my, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_my, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_main, container, false);\n\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\r\n\t\tView view = inflater.inflate(R.layout.frag_main_pak, container, false);\r\n\r\n\t\tinit(view);\r\n\t\t\r\n\t\t\r\n\t\treturn view;\r\n\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_fragment3, container, false);\n setupUI(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_content, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_content, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_new_design, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.layoutview3, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_dashboard, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_dashboard, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_dashboard, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_dashboard, container, false);\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 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 View view = inflater.inflate(R.layout.fragment_wo_de, 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_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n Log.d(LOG, \"Inflating...\");\n return inflater.inflate(R.layout.fragment_milk_adder, container, false);\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_vicky, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_today_weather, container, false);\n setUpView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_common_skill, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main, 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\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_start, container, false);\n }", "@Override public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_sales_report, 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 container,\n Bundle savedInstanceState) {\n view = getThisView(inflater,container);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n v = inflater.inflate(R.layout.fragment_self_defense, container, false);\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_map, container, false);\n initView();\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 View view = inflater.inflate(R.layout.fragment_home, container, false);\n\n initView(view);\n return view;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\t\t\t\t\t Bundle savedInstanceState) { TODO Auto-generated method stub\n\t\t//\n\t\tView view = inflater.inflate(R.layout.fragment_diary, container, false);\n\t\tinit(view);\n\t\treturn view;\n\t}", "@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 parent, Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_maps, parent, false);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@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\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\n\n return inflater.inflate(R.layout.fragment_for_view_pager, container, false);\n }", "@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\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_fragment3, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_home, container, false);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.home_fragment,container,false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_duel, container, false);\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container , savedInstanceState);\n View rootView = inflater.inflate(R.layout.fragment_info_, container, false);\n //return inflater.inflate(R.layout.fragment_info_, container, false);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_analytics, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n context = getActivity();\n view = inflater.inflate(R.layout.fragment_home, container, false);\n init();\n return view;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = (RelativeLayout) inflater.inflate(R.layout.chatlist_fragment,\n\t\t\t\tcontainer, false);\n\t\treturn view;\n\t}", "@Nullable\n @Override\n public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState ) {\n if( mMainView == null ) {\n mMainView = inflater.inflate( R.layout.fragment_locationmenu, container );\n }\n return mMainView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mygroup, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_loadmap, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_home, container, false);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_general, container, false);\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.xxh_gamelayout3, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_home, container, false);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().setMaxLifecycle(fragment, Lifecycle.State.RESUMED);\n\n view = inflater.inflate(R.layout.fragment_dynamic, container, false);\n Log.d(TAG, \"onCreateView: \");\n return view;\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 }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View v = inflater.inflate(R.layout.fragment_home, container, false);\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_homework, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n \n return inflater.inflate(R.layout.fragment_menu, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_map, container, false);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_coat_of_arms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_first_load, container, false);\n\n initRootView(rootView);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_right, container, false);\n initView(inflate);\n return inflate;\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 \n return this.view;\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_random_hf, container, false);\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 view = inflater.inflate(R.layout.fragment_home, container, false);\n initView();\n actionViews();\n return view;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_home, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_me, container, false);\n activity = getActivity();\n initView(inflate);\n return inflate;\n }" ]
[ "0.80685645", "0.80027664", "0.7942582", "0.79075134", "0.78061056", "0.77848303", "0.7784188", "0.7779864", "0.77693063", "0.77683294", "0.7765343", "0.7733279", "0.7710199", "0.7705993", "0.76953876", "0.7671548", "0.767099", "0.766542", "0.7651362", "0.76299316", "0.76296616", "0.76215166", "0.76040024", "0.7597917", "0.75899047", "0.7580465", "0.7578935", "0.75755036", "0.75755036", "0.75739086", "0.7572321", "0.75628376", "0.7562203", "0.7562203", "0.75593436", "0.7556067", "0.75551367", "0.75551367", "0.75551367", "0.75551367", "0.75459105", "0.7544542", "0.7540944", "0.7540677", "0.75358504", "0.7534029", "0.7533212", "0.75304896", "0.75290614", "0.75290614", "0.75290614", "0.752482", "0.75229496", "0.75155944", "0.75153", "0.75137126", "0.75081986", "0.75072294", "0.75066954", "0.75064254", "0.7506385", "0.7503846", "0.7498407", "0.74958324", "0.74935466", "0.7488567", "0.74863267", "0.7482794", "0.74772155", "0.7473534", "0.74733496", "0.7466605", "0.7466598", "0.74611497", "0.74599266", "0.7459569", "0.7457225", "0.7455967", "0.74529105", "0.74506456", "0.7450542", "0.7447435", "0.7444416", "0.7443527", "0.7439708", "0.74377674", "0.7437565", "0.74353844", "0.74338853", "0.74302554", "0.7427069", "0.74260944", "0.7424736", "0.74228287", "0.7422083", "0.7417007", "0.74163353", "0.7412495", "0.7409919", "0.7409268", "0.74080986" ]
0.0
-1
Enables or disables explicit health checks.
public void setEnabled(boolean enabled) { synchronized (mLock) { Slog.i(TAG, "Explicit health checks " + (enabled ? "enabled." : "disabled.")); mEnabled = enabled; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHasCustomHealth(boolean bool) {\n this.hasCustomHealth = bool;\n }", "@GetMapping(path = ApiConstant.HEALTH_CHECK_API, produces = APPLICATION_JSON_VALUE)\n public ResponseEntity checkHealth() {\n logger.info(\"Health checking.\");\n HashMap<String, String> map = new HashMap<>();\n map.put(\"status\", \"OK\");\n return new ResponseEntity<>(map, HttpStatus.OK);\n }", "default void checkIn(String name, HealthStatus status) {\n }", "@Override\n public HealthResult healthCheck()\n {\n return HealthResult.RESULT_HEALTHY;\n }", "private void checkAndScheduleHealthThresholdMonitor() {\n int healthThresholdPercent = YarnServiceConf.getInt(\n CONTAINER_HEALTH_THRESHOLD_PERCENT,\n DEFAULT_CONTAINER_HEALTH_THRESHOLD_PERCENT,\n componentSpec.getConfiguration(), scheduler.getConfig());\n // Validations\n if (healthThresholdPercent == CONTAINER_HEALTH_THRESHOLD_PERCENT_DISABLED) {\n LOG.info(\"No health threshold monitor enabled for component {}\",\n componentSpec.getName());\n return;\n }\n // If threshold is set to outside acceptable range then don't enable monitor\n if (healthThresholdPercent <= 0 || healthThresholdPercent > 100) {\n LOG.error(\n \"Invalid health threshold percent {}% for component {}. Monitor not \"\n + \"enabled.\",\n healthThresholdPercent, componentSpec.getName());\n return;\n }\n // Determine the threshold properties\n long window = YarnServiceConf.getLong(CONTAINER_HEALTH_THRESHOLD_WINDOW_SEC,\n DEFAULT_CONTAINER_HEALTH_THRESHOLD_WINDOW_SEC,\n componentSpec.getConfiguration(), scheduler.getConfig());\n long initDelay = YarnServiceConf.getLong(\n CONTAINER_HEALTH_THRESHOLD_INIT_DELAY_SEC,\n DEFAULT_CONTAINER_HEALTH_THRESHOLD_INIT_DELAY_SEC,\n componentSpec.getConfiguration(), scheduler.getConfig());\n long pollFrequency = YarnServiceConf.getLong(\n CONTAINER_HEALTH_THRESHOLD_POLL_FREQUENCY_SEC,\n DEFAULT_CONTAINER_HEALTH_THRESHOLD_POLL_FREQUENCY_SEC,\n componentSpec.getConfiguration(), scheduler.getConfig());\n // Validations\n if (window <= 0) {\n LOG.error(\n \"Invalid health monitor window {} secs for component {}. Monitor not \"\n + \"enabled.\",\n window, componentSpec.getName());\n return;\n }\n if (initDelay < 0) {\n LOG.error(\"Invalid health monitor init delay {} secs for component {}. \"\n + \"Monitor not enabled.\", initDelay, componentSpec.getName());\n return;\n }\n if (pollFrequency <= 0) {\n LOG.error(\n \"Invalid health monitor poll frequency {} secs for component {}. \"\n + \"Monitor not enabled.\",\n pollFrequency, componentSpec.getName());\n return;\n }\n LOG.info(\n \"Scheduling the health threshold monitor for component {} with percent \"\n + \"= {}%, window = {} secs, poll freq = {} secs, init-delay = {} \"\n + \"secs\",\n componentSpec.getName(), healthThresholdPercent, window, pollFrequency,\n initDelay);\n // Add 3 extra seconds to initial delay to account for the time taken to\n // request containers before the monitor starts calculating health.\n this.scheduler.executorService.scheduleAtFixedRate(\n new ComponentHealthThresholdMonitor(this, healthThresholdPercent,\n window),\n initDelay + 3, pollFrequency, TimeUnit.SECONDS);\n setHealthThresholdMonitorEnabled(true);\n }", "void doCheckHealthy();", "private static void setFailed() {\n HealthCheck.failed = true;\n }", "void setHappiness(int happiness);", "private void setOneAllChecks() {\r\n\r\n checkIman.setEnabled(true);\r\n checkBonferroni.setEnabled(true);\r\n checkHolm.setEnabled(true);\r\n checkHochberg.setEnabled(true);\r\n checkHommel.setEnabled(true);\r\n checkHolland.setEnabled(true);\r\n checkRom.setEnabled(true);\r\n checkFinner.setEnabled(true);\r\n checkLi.setEnabled(true);\r\n\r\n }", "private void loadAlwaysChecks() {\n alwaysChecks.addEnabled(new FlyAllCheck(), new WorldPermissionCheck(true), new RegionPermissionCheck(true));\n // CrazyEnchants Check\n if (pluginLoading(\"CrazyEnchantments\") && pm.getPlugin(\"CrazyEnchantments\").getDescription().getVersion().startsWith(\"1.8\")) {\n alwaysChecks.addEnabled(new CrazyEnchantmentsCheck());\n }\n // AdvancedEnchantments Check\n if (pluginLoading(\"AdvancedEnchantments\")) {\n alwaysChecks.addEnabled(new AdvancedEnchantmentsCheck(pl));\n }\n // SaberFactions Check\n if (pluginLoading(\"Factions\") && pm.getPlugin(\"Factions\").getDescription().getAuthors().contains(\"Driftay\")) {\n alwaysChecks.addEnabled(new SaberFactionsCheck());\n }\n // FabledSkyblock Check\n if (pluginLoading(\"FabledSkyBlock\")) {\n alwaysChecks.addEnabled(new FabledSkyblockCheck());\n }\n\n /* DISABLE */\n // World/Region Checks\n alwaysChecks.addDisabled(new WorldPermissionCheck(false), new RegionPermissionCheck(false));\n // Combat Checks\n loadCombatChecks();\n // Nearby Checks\n if (pl.getConfManager().isNearbyCheck()) {\n alwaysChecks.addDisabled(pl.getConfManager().isNearbyCheckEnemies() ? new NearbyEnemyCheck(pl) : new NearbyCheck(pl));\n }\n // Height Limit Check\n if (pl.getConfManager().getHeightLimit() != -1) {\n alwaysChecks.addDisabled(new HeightLimitCheck());\n }\n }", "public void setHealth(int health)\r\n {\r\n this.health = health;\r\n }", "public void setHealth(int health) {\n this.health = health;\n }", "@Test\n public void testHealthy() {\n checker.checkHealth();\n\n assertThat(checker.isHealthy(), is(true));\n }", "@Override\n\tpublic void setHealth(double health) {\n\n\t}", "public void checkHealth() {\n if (health == 0) {\n this.texture = new Texture (\"soggy-\" + tex + \".png\");\n }\n }", "public void startWithoutChecks() {\n service.enableMonitoring();\n for (ServiceNotifier serviceNotifier : serviceNotifiers) {\n serviceNotifier.onStart();\n }\n }", "private void checkEnabled() {\n }", "public interface HealthCheck {\n\n String getName();\n\n Result check();\n\n /**\n * The result of a {@link HealthCheck} being run. It can be healthy (with an optional message)\n * or unhealthy (with either an error message or a thrown exception).\n */\n class Result {\n private final boolean healthy;\n private final String message;\n private final Throwable error;\n\n public Result(boolean healthy) {\n this.healthy = healthy;\n this.message = null;\n this.error = null;\n }\n\n public Result(boolean healthy, String message) {\n this.healthy = healthy;\n this.message = message;\n this.error = null;\n }\n\n public Result(boolean healthy, String message, Throwable error) {\n this.healthy = healthy;\n this.message = message;\n this.error = error;\n }\n\n public boolean isHealthy() {\n return healthy;\n }\n\n public String getMessage() {\n return message;\n }\n\n public Throwable getError() {\n return error;\n }\n }\n}", "public abstract void setHealth(int health);", "private void setMultipleChecks() {\r\n\r\n checkNemenyi.setEnabled(true);\r\n checkShaffer.setEnabled(true);\r\n checkBergman.setEnabled(true);\r\n\r\n checkIman.setEnabled(true);\r\n checkHolm.setEnabled(true);\r\n }", "@ServiceMethod(returns = ReturnType.SINGLE)\n public void getHealthStatus() {\n getHealthStatusAsync().block();\n }", "@Override\n\tpublic void checkMaintenanceStatus() {\n\t}", "default void onEnable() {}", "@GetMapping(\"/health\")\n\t@ApiOperation(value = \"Checks the health of Authentication microservice\")\n\tpublic ResponseEntity<String> healthCheckup() {\n\t\tlog.info(\"Health Check for Authentication Microservice\");\n\t\tlog.info(\"health checkup ----->{}\", \"up\");\n\t\treturn new ResponseEntity<>(\"Up and running...\", HttpStatus.OK);\n\t}", "@ApiOperation(value = \"Check the heart beat.\")\r\n @GetMapping(path = RestfulEndPoints.AUTHENTICATION_HEALTH_CHECK)\r\n public String healthCheck() {\r\n return \"Hello, I am 'Authentication Service' and running quite healthy at port: \"\r\n + env.getProperty(\"local.server.port\");\r\n }", "public static void enableChecking(boolean enable) {\n checking = enable;\n }", "public void SetHealth(int h)\n{\n\thealth=h;\n}", "Future<UpdateHealthCheckerResponse> updateHealthChecker(\n UpdateHealthCheckerRequest request,\n AsyncHandler<UpdateHealthCheckerRequest, UpdateHealthCheckerResponse> handler);", "@Test\n public void testIsEnabled() throws Exception {\n AccessibilityManager manager = createManager(WITH_A11Y_ENABLED);\n assertTrue(\"Must be enabled since the mock service is enabled\", manager.isEnabled());\n\n // Disable accessibility\n manager.getClient().setState(0);\n mHandler.sendAllMessages();\n assertFalse(\"Must be disabled since the mock service is disabled\", manager.isEnabled());\n }", "@Test(enabled = true, groups = {\"servicetest.p1\"})\n public void testGetHealthCheck(){\n\n RestResponse<HealthCheck> healthCheckRestResponse = new ServiceWorkflow().getHealthCheck();\n Assert.assertTrue(healthCheckRestResponse.getStatus() == 200, \"Invalid Status\");\n Assert.assertEquals(healthCheckRestResponse.getBody().getService(),serviceName, \"Incorrect Service Name\");\n Assert.assertEquals(healthCheckRestResponse.getBody().getVersion(),version, \"Incorrect version\");\n }", "public void setEnableAlerts(boolean enable) {\n\t\tthis.enableAlerts = enable;\t\t\n\t\tlogger.create().info().level(2).extractCallInfo()\n\t\t\t.msg(\"Tracking alerts are now \"+(enableAlerts ? \"enabled\" : \"disabled\")).send();\n\t}", "public boolean health(){\n return health;\n }", "public void setHealth(double Health){\r\n health = Health;\r\n }", "public void setHealth(int health) {\n\t\tthis.health = health;\n\t\tif (this.health < 0)\n\t\t\tthis.health = 0;\n\t}", "boolean isMonitoringEnabled();", "public static void setHealth(int healtha)\r\n\t{\r\n\t\thealth = healtha;\r\n\t}", "public void test3_1EnableStatusListener() throws Exception {\n synchronized(mLock) {\n mInitialized = false;\n createListenerLooper(false, true, false);\n waitForLooperInitialization_l();\n\n mReverb2.setEnabled(true);\n mIsEnabled = true;\n getReverb(0);\n mReverb.setEnabled(false);\n int looperWaitCount = MAX_LOOPER_WAIT_COUNT;\n while (mIsEnabled && (looperWaitCount-- > 0)) {\n try {\n mLock.wait();\n } catch(Exception e) {\n }\n }\n terminateListenerLooper();\n releaseReverb();\n }\n assertFalse(\"enable status not updated\", mIsEnabled);\n }", "@Test\n public void mustNotEnableMoreThanOnce() throws RemoteException {\n mHbmController.enable(mOnEnabled);\n\n // Should set the appropriate refresh rate for UDFPS and notify the caller.\n verify(mDisplayCallback).onHbmEnabled(eq(DISPLAY_ID));\n verify(mOnEnabled).run();\n\n // Second request to enable the UDFPS mode, while it's still enabled.\n mHbmController.enable(mOnEnabled);\n\n // Should ignore the second request.\n verifyNoMoreInteractions(mDisplayCallback);\n verifyNoMoreInteractions(mOnEnabled);\n }", "public void enable();", "void setStatisticsEnabled(boolean statsEnabled);", "public void setHealth(int h) {\n setStat(h, health);\n }", "Future<GetHealthCheckerResponse> getHealthChecker(\n GetHealthCheckerRequest request,\n AsyncHandler<GetHealthCheckerRequest, GetHealthCheckerResponse> handler);", "public void setHealth(double health) {\r\n\t\tthis.health = health;\r\n\t}", "public interface CheckSystemHealthUseCase extends UseCase {\n void execute(final Callback callback, boolean showLoader);\n\n interface Callback {\n void onError(AppErrors error);\n\n\n void onSystemHealth(SystemHealth health);\n }\n}", "public boolean getHasCustomHealth() {\n return this.hasCustomHealth;\n }", "public abstract void onEnable();", "public void addCheckHealthListener(ActionListener actionListener) {\r\n jCheckHealth.addActionListener(actionListener);\r\n }", "void scanModulesHealth() {\n\t\t// activate main module action\n\t\tactivateMainModuleAction();\n\n\t\tlog.debug(\"Scanning modules.\");\n\t\tactionsFactory.executeAtomicModuleAction(this, \"metrics-check\", () -> iterateRegisteredModules(ACTIVITY_LABEL), false);\n\n\t\tif (!isWorking() || Objects.isNull(runnerFuture)) {\n\t\t\tlog.debug(\"Scanning is stopped.\");\n\t\t\treturn;\n\t\t}\n\t\tlog.debug(\"Rescheduling service for {} millis\", delay);\n\t\trunnerFuture = activityRunner.schedule(this::scanModulesHealth, delay, TimeUnit.MILLISECONDS);\n\t}", "@Produces\r\n @Readiness\r\n public HealthCheck checkReadiness() {\n return () -> HealthCheckResponse.named(readinessName).up().build();\r\n }", "boolean getHealthy();", "@Test\n public void lowHealthWarningTest() {\n }", "public void setHealth(float health) {\r\n \t\tthis.health = health;\r\n \t}", "@Test\n\tpublic void testSetHealth() {\n\t\tnpc.setLevel(1);\n\t\tnpc.setHealth(10);\n\t\tassertTrue(npc.getBaseHealth() == 10);\n\t\tnpc.setHealth(35);\n\t\tassertFalse(npc.getBaseHealth() == 10);\n\t\tassertTrue(npc.getBaseHealth() == 35);\n\t}", "public void setHealth(double h){\n health = h;\n }", "public abstract void Enabled();", "void setManualCheck (boolean value);", "@EventHandler(priority = EventPriority.MONITOR)\r\n public void onPluginEnable(PluginEnableEvent ev) {\n Plugin pla = ev.getPlugin().getServer().getPluginManager().getPlugin(\"Heroes\");\r\n if (pla == ev.getPlugin()) {\r\n pl.logger.info(\"[HealthBar] Found heroes - implementing health system.\");\r\n // Do nothing but you know, make the message sound like its actually\r\n // doing someting other than:\r\n new HealthBarHeroes(pla);\r\n HealthBar.useHeroes = true;\r\n }\r\n }", "void enable();", "public void onEnable() {\n }", "protected void checkHealth(MonitoredService module) {\n if (!isActive()) {\n return;\n }\n final ModuleOutputDevice moduleLog = ModuleOutputDeviceFarm.getDevice(this, ModuleLoggerMessage.LOG_OUTPUT_TYPE);\n moduleLog.associate(\"Processing heart-beat for '\" + module + \"' module\");\n moduleLog.actionBegin();\n // service is active for the moment, process module's heart-beat\n try {\n moduleLog.out(\"Saving heart-beat of module \", module.toString());\n storage.saveHeartBeat(module);\n moduleLog.out(\"Getting config updates for module \", module.toString());\n final Map<String, ConfiguredVariableItem> updated\n = configurationService.getUpdatedVariables(module, module.getConfiguration());\n if (!updated.isEmpty()) {\n moduleLog.out(\"Updating module configuration.\");\n module.configurationChanged(updated);\n }\n moduleLog.actionEnd();\n } catch (Throwable t) {\n LOG.error(\"Can't process heartbeat for module '{}'\", module, t);\n moduleLog.actionFail();\n }\n }", "private void loadBypassAndTrailChecks() {\n bypassChecks.add(new BypassPermissionCheck());\n // Spectator Check\n SpectatorModeCheck spectatorModeCheck = new SpectatorModeCheck();\n bypassChecks.add(spectatorModeCheck);\n noTrailChecks.add(spectatorModeCheck);\n // Vanish Checks\n HashSet<Check> vanishChecks = new HashSet<>();\n\n if (pluginLoading(\"PremiumVanish\") || pluginLoading(\"SuperVanish\")) {\n vanishChecks.add(new PremiumSuperVanishCheck());\n } else if (pluginLoading(\"Essentials\")) {\n vanishChecks.add(new EssentialsVanishCheck());\n }\n\n if (!vanishChecks.isEmpty() && pl.getConfManager().isVanishBypass()) {\n bypassChecks.addAll(vanishChecks);\n noTrailChecks.addAll(vanishChecks);\n }\n // Invisibility potion Check\n noTrailChecks.add(new InvisibilityPotionCheck());\n /* DISABLE EMPTY */\n }", "private void addStressTestStatusTriggers() {\n addTrigger(STRESS_TEST_STATUS, CONTROL_CHANNEL, SERVER_TO_CLIENT);\n addTrigger(STRESS_TEST_STATUS, CONTROL_CHANNEL, CLIENT_TO_SERVER);\n }", "public void toggleMiniHealthBars() {\n miniHealthBarVisible = !miniHealthBarVisible;\n }", "@Override\r\n\tpublic void getHealth() {\n\t\t\r\n\t}", "private void init() {\n healthCheckTimer.newTimeout(\n new TimerTask() {\n @Override\n public void run(Timeout timeout) throws Exception {\n if (!isStop) {\n List<BrpcChannel> newHealthyInstances = new ArrayList<BrpcChannel>();\n Iterator<BrpcChannel> iter = unhealthyInstances.iterator();\n while (iter.hasNext()) {\n BrpcChannel instance = iter.next();\n boolean isHealthy = isInstanceHealthy(instance.getIp(), instance.getPort());\n if (isHealthy) {\n newHealthyInstances.add(instance);\n }\n }\n\n List<BrpcChannel> newUnhealthyInstances = new ArrayList<BrpcChannel>();\n iter = healthyInstances.iterator();\n while (iter.hasNext()) {\n BrpcChannel instance = iter.next();\n boolean isHealthy = isInstanceHealthy(instance.getIp(), instance.getPort());\n if (!isHealthy) {\n newUnhealthyInstances.add(instance);\n }\n }\n\n healthyInstances.addAll(newHealthyInstances);\n unhealthyInstances.removeAll(newHealthyInstances);\n\n healthyInstances.removeAll(newUnhealthyInstances);\n unhealthyInstances.addAll(newUnhealthyInstances);\n notifyInvalidInstance(newUnhealthyInstances);\n\n healthCheckTimer.newTimeout(this,\n rpcClient.getRpcClientOptions().getHealthyCheckIntervalMillis(),\n TimeUnit.MILLISECONDS);\n }\n\n }\n },\n rpcClient.getRpcClientOptions().getHealthyCheckIntervalMillis(),\n TimeUnit.MILLISECONDS);\n }", "@Override\n protected Result check() throws Exception {\n\n try {\n mongoClient.getDB(\"system\").getStats();\n }catch(MongoClientException ex) {\n return Result.unhealthy(ex.getMessage());\n }\n\n\n return Result.healthy();\n }", "boolean disableMonitoring();", "private void setHealth() {\n eliteMob.setHealth(maxHealth = (maxHealth > 2000) ? 2000 : maxHealth);\n }", "@Test(enabled = false, retryAnalyzer = Retry.class, testName = \"Sanity Tests\", description = \"Settings: Backup Enable/disable without upload in the background\",\n\t\t\tgroups = { \"Regression Droid\" })\n\tpublic void settingsBackupEnableDisable() throws Exception, Throwable {\n\t\t\n\n\t}", "public void checkHealth(){\n if (this.getHealth() < this.initialHealth/2){\n this.setImgSrc(\"/students/footballstudent1.png\");\n this.getTile().setImage(\"/students/footballstudent1.png\");\n }\n }", "boolean isEnabled(Level warn);", "public void onEnable() {\n super.onEnable();\n File config = new File(getDataFolder(), \"config.yml\");\n if (!getDataFolder().exists()) {\n getDataFolder().mkdir();\n }\n if (!config.exists()) {\n saveResource(\"config.yml\", true);\n }\n\n configuration = new ConfigManager(config).build();\n log(\"Loaded DeluxeCounter by FusionCoding\");\n\n countManager = new CountManager();\n countManager.init();\n\n PluginManager pm = Bukkit.getPluginManager();\n pm.registerEvents(new AsyncPlayerPreLoginListener(), this);\n getCommand(\"cowtester\").setExecutor(new CowTesterCommand());\n\n }", "@Test\n public void mustNotDisableMoreThanOnce() throws RemoteException {\n mHbmController.enable(mOnEnabled);\n\n // Should set the appropriate refresh rate for UDFPS and notify the caller.\n verify(mDisplayCallback).onHbmEnabled(eq(DISPLAY_ID));\n verify(mOnEnabled).run();\n\n // First request to disable the UDFPS mode.\n mHbmController.disable(mOnDisabled);\n\n // Should unset the refresh rate and notify the caller.\n verify(mOnDisabled).run();\n verify(mDisplayCallback).onHbmDisabled(eq(DISPLAY_ID));\n\n // Second request to disable the UDFPS mode, when it's already disabled.\n mHbmController.disable(mOnDisabled);\n\n // Should ignore the second request.\n verifyNoMoreInteractions(mOnDisabled);\n verifyNoMoreInteractions(mDisplayCallback);\n }", "protected boolean enableDNSAndTestConfigUpdate() throws Throwable {\n if (enableDNS() &&\n rebootAndWait(\"all\") &&\n verifyHivecfg() //&&\n //upgradeChecker()\n ) {\n okToProceed = true;\n return true;\n }\n return false;\n }", "void addHappiness(int Happiness);", "@Test public void adminEndpoints() throws Exception {\n try {\n // Documented as supported in our zipkin-server/README.md\n assertThat(get(\"/health\").isSuccessful()).isTrue();\n assertThat(get(\"/info\").isSuccessful()).isTrue();\n assertThat(get(\"/metrics\").isSuccessful()).isTrue();\n assertThat(get(\"/prometheus\").isSuccessful()).isTrue();\n\n // Check endpoints we formerly redirected to. Note we never redirected to /actuator/metrics\n assertThat(get(\"/actuator/health\").isSuccessful()).isTrue();\n assertThat(get(\"/actuator/info\").isSuccessful()).isTrue();\n assertThat(get(\"/actuator/prometheus\").isSuccessful()).isTrue();\n } catch (RuntimeException | IOException e) {\n fail(String.format(\"unexpected error!%s%n%s\", e.getMessage(), zipkin.consoleOutput()));\n }\n }", "@Override\n\tpublic void setEnableHeartBeat(boolean arg0) {\n\n\t}", "@RequestMapping(value = \"/health\", method = RequestMethod.GET)\n public ResponseEntity<String> healthCheck() {\n\n return new ResponseEntity<String>(\"Up and Running\", HttpStatus.OK);\n }", "protected abstract void enable();", "public boolean verifyStatus(boolean heartbeat);", "public void setPing(boolean ping)\n {\n _isPing = ping;\n }", "public static void validateConfiguration() throws HealthCheckException {\n for (Map.Entry<String, CheckState> entry : HealthCheck.checks.entrySet()) {\n LOG.info(\"Checking '{}'...\", entry.getKey());\n switch (entry.getValue().check) {\n case STRING:\n processValidation(validateString(entry), entry.getKey(), entry.getValue().check);\n break;\n case INTEGER:\n processValidation(validateInteger(entry), entry.getKey(), entry.getValue().check);\n break;\n case BOOL:\n processValidation(validateBoolean(entry), entry.getKey(), entry.getValue().check);\n break;\n case FILE_EXISTS:\n processValidation(validateFileExists(entry), entry.getKey(), entry.getValue().check);\n break;\n default:\n LOG.error(\"Unknown CHECK type for '{}'\", entry.getKey());\n throw new HealthCheckException(\"Unable to validate config key \" + entry.getKey());\n }\n\n }\n if (HealthCheck.failed) {\n throw new HealthCheckException(\"Healthcheck has detected a misconfiguration for Styx, please fix the preceding issues\");\n } else {\n LOG.info(\"Configuration validation passed\");\n }\n }", "@Override\n public void checkConfiguration() {\n }", "public void onEnabled() {\r\n }", "public interface ChannelHealthChecker {\n public static final ChannelHealthChecker ACTIVE = new ChannelHealthChecker() {\n public Future<Boolean> isHealthy(Channel channel) {\n return channel.eventLoop().newSucceededFuture(channel.isActive() ? Boolean.TRUE : Boolean.FALSE);\n }\n };\n\n Future<Boolean> isHealthy(Channel channel);\n}", "@Test\n public void consistencyCheckerDisabledTest() throws Exception {\n // 1. only one participant, consistency checker should be disabled\n AmbryServer server =\n new AmbryServer(new VerifiableProperties(props), clusterAgentsFactory, notificationSystem, time);\n server.startup();\n assertNull(\"The mismatch metric should not be created\", server.getServerMetrics().stoppedReplicasMismatchCount);\n server.shutdown();\n // 2. there are two participants but period of checker is zero, consistency checker should be disabled.\n props.setProperty(\"server.participants.consistency.checker.period.sec\", Long.toString(0L));\n List<ClusterParticipant> participants = new ArrayList<>();\n for (int i = 0; i < 2; ++i) {\n participants.add(\n new MockClusterParticipant(Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), null,\n null, null));\n }\n clusterAgentsFactory.setClusterParticipants(participants);\n server = new AmbryServer(new VerifiableProperties(props), clusterAgentsFactory, notificationSystem, time);\n server.startup();\n assertNull(\"The mismatch metric should not be created\", server.getServerMetrics().stoppedReplicasMismatchCount);\n server.shutdown();\n }", "@Override\n\tpublic void enabled(AbstractHardware<? extends AbstractHardwareListener> hardware) {\n\t}", "public void gainHealth()\n\t{\n\t\tSystem.out.println(\"1 heart gained\");\n\t}", "@Test\n void getMetricsAndExpectUnauthorized() {\n webTestClient\n .get()\n .uri(\"/actuator/metrics\")\n .accept(MediaType.ALL)\n .exchange()\n .expectStatus().isUnauthorized();\n }", "@Override\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}", "@Test\n\tpublic void testAdminEnable() {\n\t\tAccount acc1 = new Account(00000, \"ADMIN\", true, 1000.00, 0, false);\n\t\tAccount acc2 = new Account(00001, \"temp\", false, 1000.00, 0, false);\n\t\taccounts.add(acc1);\n\t\taccounts.add(acc2);\n\n\t\ttransactions.add(0, new Transaction(10, \"ADMIN\", 00000, 0, \"A\"));\n\t\ttransactions.add(1, new Transaction(9, \"temp\", 00001, 0, \"A\"));\n\t\ttransactions.add(2, new Transaction(00, \"ADMIN\", 00000, 0, \"A\"));\n\n\t\ttransHandler = new TransactionHandler(accounts, transactions);\n\t\toutput = transHandler.HandleTransactions();\n\n\t\tif (outContent.toString().contains(\"Account Enabled\")) {\n\t\t\ttestResult = true;\n\t\t} else {\n\t\t\ttestResult = false;\n\t\t}\n\n\t\tassertTrue(\"unable to enable account as admin\", testResult);\n\t}", "public abstract void setCheck(Boolean check);", "public void setHealth(float health)\n {\n if ( health > getMaxHealth() )\n {\n this.health = getMaxHealth();\n }\n else if (health < 0)\n {\n this.health = 0.0f;\n }\n else\n {\n this.health = health;\n }\n\n }", "void enableNotifications();", "public void checkForAlerts() {\n }", "private void setHealth(double healthPercentage) {\n eliteMob.setHealth(this.maxHealth * healthPercentage);\n }", "private void checkForInstability(boolean overshoot) { \n if (overshoot == true) {\n setUnstable();\n } else {\n setStable();\n }\n }", "public static void reset() {\n HealthCheck.failed = false;\n HealthCheck.checks.clear();\n }", "private void bindService() {\n synchronized (mLock) {\n if (!mEnabled || mConnection != null || mRemoteService != null) {\n if (!mEnabled) {\n Slog.i(TAG, \"Not binding to service, service disabled\");\n } else if (mRemoteService != null) {\n Slog.i(TAG, \"Not binding to service, service already connected\");\n } else {\n Slog.i(TAG, \"Not binding to service, service already connecting\");\n }\n return;\n }\n ComponentName component = getServiceComponentNameLocked();\n if (component == null) {\n Slog.wtf(TAG, \"Explicit health check service not found\");\n return;\n }\n\n Intent intent = new Intent();\n intent.setComponent(component);\n mConnection = new ServiceConnection() {\n @Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n Slog.i(TAG, \"Explicit health check service is connected \" + name);\n initState(service);\n }\n\n @Override\n @MainThread\n public void onServiceDisconnected(ComponentName name) {\n // Service crashed or process was killed, #onServiceConnected will be called.\n // Don't need to re-bind.\n Slog.i(TAG, \"Explicit health check service is disconnected \" + name);\n synchronized (mLock) {\n mRemoteService = null;\n }\n }\n\n @Override\n public void onBindingDied(ComponentName name) {\n // Application hosting service probably got updated\n // Need to re-bind.\n Slog.i(TAG, \"Explicit health check service binding is dead. Rebind: \" + name);\n unbindService();\n bindService();\n }\n\n @Override\n public void onNullBinding(ComponentName name) {\n // Should never happen. Service returned null from #onBind.\n Slog.wtf(TAG, \"Explicit health check service binding is null?? \" + name);\n }\n };\n\n mContext.bindServiceAsUser(intent, mConnection,\n Context.BIND_AUTO_CREATE, UserHandle.of(UserHandle.USER_SYSTEM));\n Slog.i(TAG, \"Explicit health check service is bound\");\n }\n }", "boolean updateEnabling();" ]
[ "0.576193", "0.57423425", "0.5699217", "0.5692261", "0.5674172", "0.56637007", "0.5590391", "0.5572464", "0.5529861", "0.5488916", "0.5480094", "0.5458458", "0.54469216", "0.5389702", "0.5383614", "0.5380123", "0.5379335", "0.53731066", "0.5369288", "0.5338446", "0.5304626", "0.528966", "0.5283955", "0.52532583", "0.5201636", "0.51849926", "0.5175058", "0.5170294", "0.516707", "0.51651347", "0.5162498", "0.5158808", "0.5146256", "0.5135157", "0.5116853", "0.5107511", "0.51033026", "0.5101218", "0.5088351", "0.5069018", "0.5031036", "0.50278056", "0.50104177", "0.5006623", "0.5003984", "0.5001782", "0.49936986", "0.49866274", "0.498091", "0.49775958", "0.497237", "0.497201", "0.4968926", "0.49676028", "0.49599564", "0.49474692", "0.49286148", "0.49274623", "0.49273956", "0.49198863", "0.49045634", "0.48873547", "0.48596358", "0.48559394", "0.48525774", "0.4831838", "0.48295006", "0.48154697", "0.48117694", "0.4810489", "0.48067126", "0.48055655", "0.47991198", "0.47985214", "0.4794457", "0.47917178", "0.47866508", "0.4780317", "0.4777804", "0.47636795", "0.4761574", "0.47495407", "0.4748064", "0.47305182", "0.47181416", "0.4716019", "0.4711844", "0.4709264", "0.47078124", "0.46902612", "0.46899426", "0.46768278", "0.4667733", "0.46476156", "0.46470988", "0.46466962", "0.4641375", "0.46390775", "0.46377113", "0.4635964" ]
0.63863856
0
Sets callbacks to listen to important events from the controller. Should be called once at initialization before any other calls to the controller to ensure a happensbefore relationship of the set parameters and visibility on other threads.
public void setCallbacks(Consumer<String> passedConsumer, Consumer<List<PackageConfig>> supportedConsumer, Runnable notifySyncRunnable) { synchronized (mLock) { if (mPassedConsumer != null || mSupportedConsumer != null || mNotifySyncRunnable != null) { Slog.wtf(TAG, "Resetting health check controller callbacks"); } mPassedConsumer = Preconditions.checkNotNull(passedConsumer); mSupportedConsumer = Preconditions.checkNotNull(supportedConsumer); mNotifySyncRunnable = Preconditions.checkNotNull(notifySyncRunnable); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCallbacks(Queue<EventCallback<T>> callbacks) {\n this.callbacks = callbacks;\n }", "private void setListeners() {\n\n }", "@Override\n\tpublic void setup()\n\t{\n\t\tCoreNotifications.get().addListener(this, ICoreContextOperationListener.class);\n\t\tCoreNotifications.get().addListener(this, ICoreProcedureInputListener.class);\n\t\tCoreNotifications.get().addListener(this, ICoreProcedureRuntimeListener.class);\n\t\tCoreNotifications.get().addListener(this, ICoreProcedureOperationListener.class);\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.com.viettel.ams.core.model.AssetManageReqHandle\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<AssetManageReqHandle>> listenersList = new ArrayList<ModelListener<AssetManageReqHandle>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<AssetManageReqHandle>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public void setupUIListeners() {\n\t\tsetupEditTextListeners();\n\t\tsetupSeekBarsListeners();\n\t}", "@Override\n public void setupEventHandlers(ControllerInterface controller) {\n events = Optional.of(new Events.ForView(controller));\n }", "private void setEventListener() {\n mCameraView.addCameraKitListener(this);\n mCameraButton.setOnClickListener(this);\n mCameraButtonCloud.setOnClickListener(this);\n }", "public void setObservers() {\n feedBackVM.isLoading.addOnPropertyChangedCallback(new Observable.OnPropertyChangedCallback() {\n @Override\n public void onPropertyChanged(Observable observable, int i) {\n if (feedBackVM.isLoading.get()) {\n showWaitingDialog(true);\n } else {\n showWaitingDialog(false);\n }\n }\n });\n\n feedBackVM.toastMsg.addOnPropertyChangedCallback(new Observable.OnPropertyChangedCallback() {\n @Override\n public void onPropertyChanged(Observable observable, int i) {\n toast(feedBackVM.toastMsg.get());\n feedBackVM.toastMsg.set(null);\n }\n });\n }", "private void initListeners() {\n comboBox.comboBoxListener(this::showProgramData);\n view.refreshListener(actionEvent -> scheduledUpdate());\n\n }", "@Override\n\tprotected void setControlListeners() {\n\t\tcheckBox.selectedProperty().addListener(new ChangeListener<Boolean>() {\n\t\t\t@Override\n\t\t\tpublic void changed(\n\t\t\t\t\tObservableValue<? extends Boolean> observable,\n\t\t\t\t\tBoolean oldValue, Boolean newValue) {\n\t\t\t\tif (!settingsPane.isExperimentRunning()) {\n\t\t\t\t\tparameter.set(newValue);\n\t\t\t\t\tsettingsPane.revalidateParameters();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void setListenerClasses(List<IControllerListener> listenerClasses) {\r\n \tgetController().setListenerClasses(listenerClasses);\r\n }", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.hu.webtown.liferay.portlet.model.TvShow\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<TvShow>> listenersList = new ArrayList<ModelListener<TvShow>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<TvShow>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "private void setPlayerCallbacks() {\n universalPlayer.setPlayerStateListener(this);\n universalPlayer.setOnAutonomicTrackChangeCallback(new IOperationFinishCallback() {\n @Override\n public void operationFinished() {\n if (isAdded()) {\n playableMediaItem = UniversalPlayer.getInstance().getPlayingMediaItem();\n initPlayerUI();\n configurePlayer();\n initTrackNumbersSection();\n }\n }\n });\n\n IOperationFinishCallback playerFailedCallback = MediaUtils.getPlayerFailCallback(getActivity(), playableMediaItem);\n\n if (universalPlayer.isInErrorState) {\n playerFailedCallback.operationFinished();\n } else {\n universalPlayer.setOnPlayingFailedCallback(playerFailedCallback);\n }\n }", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.org.kisti.edison.bestsimulation.model.ScienceAppExecute\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<ScienceAppExecute>> listenersList = new ArrayList<ModelListener<ScienceAppExecute>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<ScienceAppExecute>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "protected void setupListeners() {\n\t\t\n\t\tloginBtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent click) {\n\t\t\t\tSession session = theController.validateUser(usernameField.getText(), passwordField.getText());\n\t\t\t\tif(session != null) {\n\t\t\t\t\ttheController.login();\n\t\t\t\t} else {\n\t\t\t\t\tlblInvalid.setVisible(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnRegister.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent click) {\n\t\t\t\ttheController.register();\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnGuide.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent click) {\n\t\t\t\ttheController.viewGuide();\n\t\t\t}\n\t\t});\n\t\t\n\t}", "private void listenersInitiation() {\n ActionSelectors listener = new ActionSelectors();\n submit.addActionListener(listener);\n goBack.addActionListener(listener);\n }", "public void setCallbacks(entity.LoadCallback[] value);", "private void initializeEvents() {\r\n\t}", "private void initializeEventControllers() {\n trNewPersonalEvent = EventControllersFactory.createTrNewPersonalEvent();\n trDeletePersonalEvent = EventControllersFactory.createTrDeletePersonalEvent();\n trNewPeriodicNotification = EventControllersFactory.createTrNewPeriodicNotification();\n trDeletePeriodicNotification = EventControllersFactory.createTrDeletePeriodicNotification();\n }", "@Override\r\n\tprotected void setListeners() {\n\t\t\r\n\t}", "private void init() {\n listeners = new PropertyChangeSupport(this);\n }", "private void setListener() {\n\t\tmSlidingLayer.setOnInteractListener(this);\r\n\t\tmMsgNotifySwitch.setOnCheckedChangeListener(this);\r\n\t\tmMsgSoundSwitch.setOnCheckedChangeListener(this);\r\n\t\tmShowHeadSwitch.setOnCheckedChangeListener(this);\r\n\t\tmAccountSetting.setOnClickListener(this);\r\n\t\tmMyProfile.setOnClickListener(this);\r\n\t\tmFaceJazzEffect.setOnClickListener(this);\r\n\t\tmAcountInfo.setOnClickListener(this);\r\n\t\tmFeedBack.setOnClickListener(this);\r\n\t\tmExitAppBtn.setOnClickListener(this);\r\n\r\n\t}", "public void initEventsAndProperties() {\r\n }", "private void setupListeners() {\n\t\tfor (int i = 0; i < _controlPoints.length; i++) {\n\t\t\taddControlPointListener(_controlPoints[i][0], i);\n\t\t\taddControlPointListener(_controlPoints[i][1], i);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < _selectionButtons.length; i++) {\n\t\t\taddPointSelectionButtonListener(i);\n\t\t}\n\t}", "private void setObservers() {\n evaluateDetailVM.isLoading.addOnPropertyChangedCallback(new Observable.OnPropertyChangedCallback() {\n @Override\n public void onPropertyChanged(Observable observable, int i) {\n if (evaluateDetailVM.isLoading.get()) {\n showWaitingDialog(true);\n } else {\n showWaitingDialog(false);\n }\n }\n });\n\n evaluateDetailVM.toastMsg.addOnPropertyChangedCallback(new Observable.OnPropertyChangedCallback() {\n @Override\n public void onPropertyChanged(Observable observable, int i) {\n toast(evaluateDetailVM.toastMsg.get());\n evaluateDetailVM.toastMsg.set(null);\n }\n });\n }", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.la.netco.solicitudes_sdisc.model.model.Estado\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<Estado>> listenersList = new ArrayList<ModelListener<Estado>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<Estado>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tlistenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void initListeners() {\n\t\t\r\n\t}", "private void setListener() {\n\t}", "private void init()\n {\n // Add listeners to the view\n addEventListeners();\n addSelectionChangeListeners();\n\n // Add listeners to the model\n addBackgroundImageHandler();\n addFrameWidgetHandler();\n addWidgetShapeChangeHandler();\n\n project.addHandler(this,\n Project.DesignChange.class,\n new AlertHandler()\n {\n\n public void handleAlert(EventObject alert)\n {\n Project.DesignChange chg =\n (Project.DesignChange) alert;\n\n if ((! chg.isAdd) &&\n (chg.element == design))\n {\n closeOpenController();\n }\n }\n });\n\n design.addHandler(this,\n Design.FrameChange.class,\n new AlertHandler()\n {\n\n public void handleAlert(EventObject alert)\n {\n Design.FrameChange chg =\n (Design.FrameChange) alert;\n\n if ((! chg.isAdd) &&\n (chg.element == frame))\n {\n closeOpenController();\n }\n }\n });\n\n design.addHandler(this,\n Design.DeviceTypeChange.class,\n new AlertHandler()\n {\n\n public void handleAlert(EventObject alert)\n {\n Set<DeviceType> dts =\n design.getDeviceTypes();\n int deviceTypes =\n DeviceType.buildDeviceSet(dts);\n\n view.resetDeviceTypes(deviceTypes);\n }\n });\n\n // Add listeners to rename events on project and design\n frame.addHandler(this, NameChangeAlert.class, renameHandler);\n design.addHandler(this,\n NameChangeAlert.class,\n renameHandler);\n\n // Some items should always be enabled.\n // Should be the last call in the constructor\n setInitiallyEnabled(true);\n }", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.com.tamarack.creekridge.model.CreditAppBankReference\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<CreditAppBankReference>> listenersList = new ArrayList<ModelListener<CreditAppBankReference>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<CreditAppBankReference>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.it.ethica.esf.model.ESFInstructsShootingDirector\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<ESFInstructsShootingDirector>> listenersList = new ArrayList<ModelListener<ESFInstructsShootingDirector>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<ESFInstructsShootingDirector>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tprotected void initListeners() {\n\t\t\n\t}", "public void afterPropertiesSet() {\n String[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n com.liferay.util.service.ServiceProps.get(\n \"value.object.listener.it.acsoftware.brokerportlet.model.BrokerMessageListener\")));\n\n if (listenerClassNames.length > 0) {\n try {\n List<ModelListener<BrokerMessageListener>> listenersList = new ArrayList<ModelListener<BrokerMessageListener>>();\n\n for (String listenerClassName : listenerClassNames) {\n listenersList.add((ModelListener<BrokerMessageListener>) InstanceFactory.newInstance(\n getClassLoader(), listenerClassName));\n }\n\n listeners = listenersList.toArray(new ModelListener[listenersList.size()]);\n } catch (Exception e) {\n _log.error(e);\n }\n }\n }", "@Override\r\n\tprotected void initEvents() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void listeners() {\n\t\t\r\n\t}", "private void setupEventListeners(){\n\t\t//Check boxes.k\n\t\tchkVisible.addClickHandler(new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\t((QuestionDef)propertiesObj).setVisible(chkVisible.getValue() == true);\n\t\t\t\tformChangeListener.onFormItemChanged(propertiesObj);\n\t\t\t}\n\t\t});\n\n\t\tchkEnabled.addClickHandler(new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\t((QuestionDef)propertiesObj).setEnabled(chkEnabled.getValue() == true);\n\t\t\t\tformChangeListener.onFormItemChanged(propertiesObj);\n\t\t\t}\n\t\t});\n\n\t\tchkLocked.addClickHandler(new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\t((QuestionDef)propertiesObj).setLocked(chkLocked.getValue() == true);\n\t\t\t\tformChangeListener.onFormItemChanged(propertiesObj);\n\t\t\t}\n\t\t});\n\n\t\tchkRequired.addClickHandler(new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\t((QuestionDef)propertiesObj).setRequired(chkRequired.getValue() == true);\n\t\t\t\tformChangeListener.onFormItemChanged(propertiesObj);\n\t\t\t}\n\t\t});\n\n\t\t//Text boxes.\n\t\ttxtDefaultValue.addChangeHandler(new ChangeHandler(){\n\t\t\tpublic void onChange(ChangeEvent event){\n\t\t\t\tif(checkDefaultValueAgainstQuestionType()){\n\t\t\t\t\tupdateDefaultValue();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttxtDefaultValue.addKeyUpHandler(new KeyUpHandler(){\n\t\t\tpublic void onKeyUp(KeyUpEvent event) {\n\t\t\t\tif(checkDefaultValueAgainstQuestionType()){\n\t\t\t\t\tupdateDefaultValue();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tWindow.alert(LocaleText.get(\"invalidDefaultValueForQuestionType\"));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\ttxtHelpText.addChangeHandler(new ChangeHandler(){\n\t\t\tpublic void onChange(ChangeEvent event){\n\t\t\t\tupdateHelpText();\n\t\t\t}\n\t\t});\n\t\ttxtHelpText.addKeyUpHandler(new KeyUpHandler(){\n\t\t\tpublic void onKeyUp(KeyUpEvent event) {\n\t\t\t\tupdateHelpText();\n\t\t\t}\n\t\t});\n\n\t\ttxtHelpText.addKeyDownHandler(new KeyDownHandler(){\n\t\t\tpublic void onKeyDown(KeyDownEvent event) {\n\t\t\t\tint keyCode = event.getNativeKeyCode();\n\t\t\t\tif(keyCode == KeyCodes.KEY_ENTER || keyCode == KeyCodes.KEY_DOWN)\n\t\t\t\t\tcbDataType.setFocus(true);\n\t\t\t\telse if(keyCode == KeyCodes.KEY_UP){\n\t\t\t\t\ttxtText.setFocus(true);\n\t\t\t\t\ttxtText.selectAll();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\ttxtBinding.addChangeHandler(new ChangeHandler(){\n\t\t\tpublic void onChange(ChangeEvent event){\n\t\t\t\tupdateBinding();\n\t\t\t}\n\t\t});\n\t\ttxtBinding.addKeyUpHandler(new KeyUpHandler(){\n\t\t\tpublic void onKeyUp(KeyUpEvent event) {\n\t\t\t\tString s = txtBinding.getText();\n\n\t\t\t\ts = s.replace(\"%\", \"\");\n\t\t\t\ts = s.replace(\"(\", \"\");\n\t\t\t\ts = s.replace(\"!\", \"\");\n\t\t\t\ts = s.replace(\"&\", \"\");\n\t\t\t\t//s = s.replace(\".\", \"\"); //Looks like this is an allowed character in xml node names.\n\t\t\t\ts = s.replace(\"'\", \"\");\n\t\t\t\ts = s.replace(\"\\\"\", \"\");\n\t\t\t\ts = s.replace(\"$\", \"\");\n\t\t\t\ts = s.replace(\"#\", \"\");\n\n\t\t\t\ttxtBinding.setText(s);\n\t\t\t\tupdateBinding();\n\t\t\t}\n\t\t});\n\n\t\ttxtBinding.addKeyDownHandler(new KeyDownHandler(){\n\t\t\tpublic void onKeyDown(KeyDownEvent event) {\n\t\t\t\tif(event.getNativeKeyCode() == KeyCodes.KEY_UP){\n\t\t\t\t\tif(cbDataType.isEnabled())\n\t\t\t\t\t\tcbDataType.setFocus(true);\n\t\t\t\t\telse{\n\t\t\t\t\t\ttxtText.setFocus(true);\n\t\t\t\t\t\ttxtText.selectAll();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\ttxtBinding.addKeyPressHandler(new KeyPressHandler(){\n\t\t\tpublic void onKeyPress(KeyPressEvent event) {\n\t\t\t\tif(propertiesObj instanceof PageDef){\n\t\t\t\t\tif(!Character.isDigit(event.getCharCode())){\n\t\t\t\t\t\t((TextBox) event.getSource()).cancelKey(); \n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(propertiesObj instanceof FormDef || propertiesObj instanceof QuestionDef){\n\t\t\t\t\tif(((TextBox) event.getSource()).getCursorPos() == 0){\n\t\t\t\t\t\tif(!isAllowedXmlNodeNameStartChar(event.getCharCode())){\n\t\t\t\t\t\t\t((TextBox) event.getSource()).cancelKey(); \n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if(!isAllowedXmlNodeNameChar(event.getCharCode())){\n\t\t\t\t\t\t((TextBox) event.getSource()).cancelKey(); \n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t} //else OptionDef varname can be anything\n\t\t\t}\n\t\t});\n\n\t\ttxtText.addChangeHandler(new ChangeHandler(){\n\t\t\tpublic void onChange(ChangeEvent event){\n\t\t\t\tString orgText = getSelObjetOriginalText();\n\t\t\t\tupdateText();\n\t\t\t\tupdateSelObjBinding(orgText);\n\t\t\t}\n\t\t});\n\t\ttxtText.addKeyUpHandler(new KeyUpHandler(){\n\t\t\tpublic void onKeyUp(KeyUpEvent event) {\n\t\t\t\tString orgText = getSelObjetOriginalText();\n\t\t\t\tupdateText();\n\t\t\t\tupdateSelObjBinding(orgText);\n\t\t\t}\n\t\t});\n\n\t\ttxtText.addKeyDownHandler(new KeyDownHandler(){\n\t\t\tpublic void onKeyDown(KeyDownEvent event) {\n\t\t\t\tif(event.getNativeKeyCode() == KeyCodes.KEY_ENTER || event.getNativeKeyCode() == KeyCodes.KEY_DOWN){\n\t\t\t\t\tif(txtHelpText.isEnabled())\n\t\t\t\t\t\ttxtHelpText.setFocus(true);\n\t\t\t\t\telse{\n\t\t\t\t\t\ttxtBinding.setFocus(true);\n\t\t\t\t\t\ttxtBinding.selectAll();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\ttxtDescTemplate.addChangeHandler(new ChangeHandler(){\n\t\t\tpublic void onChange(ChangeEvent event){\n\t\t\t\tupdateDescTemplate();\n\t\t\t}\n\t\t});\n\t\ttxtDescTemplate.addKeyUpHandler(new KeyUpHandler(){\n\t\t\tpublic void onKeyUp(KeyUpEvent event) {\n\t\t\t\tupdateDescTemplate();\n\t\t\t}\n\t\t});\n\n\t\ttxtCalculation.addChangeHandler(new ChangeHandler(){\n\t\t\tpublic void onChange(ChangeEvent event){\n\t\t\t\tupdateCalculation();\n\t\t\t}\n\t\t});\n\t\ttxtCalculation.addKeyUpHandler(new KeyUpHandler(){\n\t\t\tpublic void onKeyUp(KeyUpEvent event) {\n\t\t\t\tupdateCalculation();\n\t\t\t}\n\t\t});\n\n\t\t//Combo boxes\n\t\tcbDataType.addClickHandler(new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tupdateDataType();\n\t\t\t}\n\t\t});\n\t\tcbDataType.addChangeHandler(new ChangeHandler(){\n\t\t\tpublic void onChange(ChangeEvent event){\n\t\t\t\tupdateDataType();\n\t\t\t}\n\t\t});\n\t\tcbDataType.addKeyDownHandler(new KeyDownHandler(){\n\t\t\tpublic void onKeyDown(KeyDownEvent event) {\n\t\t\t\tint keyCode = event.getNativeEvent().getKeyCode();\n\t\t\t\tif(keyCode == KeyCodes.KEY_ENTER || keyCode == KeyCodes.KEY_DOWN){\n\t\t\t\t\ttxtBinding.setFocus(true);\n\t\t\t\t\ttxtBinding.selectAll();\n\t\t\t\t}\n\t\t\t\telse if(keyCode == KeyCodes.KEY_UP){\n\t\t\t\t\ttxtHelpText.setFocus(true);\n\t\t\t\t\ttxtHelpText.selectAll();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\ttxtFormKey.addChangeHandler(new ChangeHandler(){\n\t\t\tpublic void onChange(ChangeEvent event){\n\t\t\t\tupdateFormKey();\n\t\t\t}\n\t\t});\n\t\ttxtFormKey.addKeyUpHandler(new KeyUpHandler(){\n\t\t\tpublic void onKeyUp(KeyUpEvent event) {\n\t\t\t\tupdateFormKey();\n\t\t\t}\n\t\t});\n\t}", "public interface Callbacks {\n void onStateChanged();\n void onProximityNegative();\n }", "public void setEvents(JsonCallbackEvents externalEvents) {\n\t\tevents = externalEvents;\n\t}", "public void setListeners(){\n\t\t\n\t\tthis.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// chosen to add new patient\n\t\t\t\t\n\t\t\t\tArrayList<String> constructorInput = null;\n\t\t\t\tconstructorInput = NewPatientWindow.showInputdialog(true);\n\t\t\t\t\n\t\t\t\t// if cancel or close chosen on new patient window:\n\t\t\t\tif (constructorInput == null)\n\t\t\t\t\treturn; \n\t\t\t\t\n\t\t\t\t//else:\n\t\t\t\tBrainFreezeMain.patients.add(new Patient(\n\t\t\t\t\t\t(constructorInput.toArray( new String[constructorInput.size()]))));\n\t\t\t\tBrainFreezeMain.currentPatientIndex = BrainFreezeMain.patients.size()-1;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tLeftPanel.refreshPatientLabel(); // change to patient list, update label\n\t\t\t\tLeftPanel.refreshPatientData(); // change to patient, update data\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t}", "public void initialize(){\n\t\tDrawingBotV3.logger.entering(\"FX Controller\", \"initialize\");\n\n initToolbar();\n initViewport();\n initPlottingControls();\n initProgressBar();\n initDrawingAreaPane();\n initPreProcessingPane();\n\t\tinitConnectionPortPane();\n initPFMControls();\n initPenSettingsPane();\n\n\n viewportStackPane.setOnMousePressed(DrawingBotV3.INSTANCE::mousePressedJavaFX);\n viewportStackPane.setOnMouseDragged(DrawingBotV3.INSTANCE::mouseDraggedJavaFX);\n\n viewportScrollPane.setHvalue(0.5);\n viewportScrollPane.setVvalue(0.5);\n\n initSeparateStages();\n\n DrawingBotV3.INSTANCE.currentFilters.addListener((ListChangeListener<ObservableImageFilter>) c -> DrawingBotV3.INSTANCE.onImageFiltersChanged());\n DrawingBotV3.logger.exiting(\"FX Controller\", \"initialize\");\n }", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.com.vportal.portlet.vcalendar.model.VCal\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<VCal>> listenersList = new ArrayList<ModelListener<VCal>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<VCal>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tlistenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.com.ifli.rapid.model.AddressChangeReqDetails\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<AddressChangeReqDetails>> listenersList = new ArrayList<ModelListener<AddressChangeReqDetails>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<AddressChangeReqDetails>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.vn.com.ecopharma.hrm.rc.model.InterviewSchedule\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<InterviewSchedule>> listenersList = new ArrayList<ModelListener<InterviewSchedule>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<InterviewSchedule>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public void setCallbacks(AcceptedHandler accepted, DeniedHandler denied) {\n this.callbackOnAccepted = accepted ;\n this.callbackOnDenied = denied ;\n }", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.de.uhh.l2g.plugins.model.Facility_Host\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<Facility_Host>> listenersList = new ArrayList<ModelListener<Facility_Host>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<Facility_Host>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.com.agbar.intranet.quienesquien.model.CompanyAg\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<CompanyAg>> listenersList = new ArrayList<ModelListener<CompanyAg>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<CompanyAg>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tlistenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.com.agbar.intranet.quienesquien.model.ContactCompanyAg\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<ContactCompanyAg>> listenersList = new ArrayList<ModelListener<ContactCompanyAg>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<ContactCompanyAg>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tlistenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void setListener() {\n\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.it.bysoftware.ct.model.RigoDocumento\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<RigoDocumento>> listenersList = new ArrayList<ModelListener<RigoDocumento>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<RigoDocumento>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.com.hrms.model.EmployeeComplaint\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<EmployeeComplaint>> listenersList = new ArrayList<ModelListener<EmployeeComplaint>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<EmployeeComplaint>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.edu.jhu.cvrg.waveform.main.dbpersistence.model.AnnotationInfo\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<AnnotationInfo>> listenersList = new ArrayList<ModelListener<AnnotationInfo>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<AnnotationInfo>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tlistenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "private void setTangoListeners() {\n // Lock configuration and connect to Tango\n // Select coordinate frame pair\n final ArrayList<TangoCoordinateFramePair> framePairs =\n new ArrayList<TangoCoordinateFramePair>();\n framePairs.add(new TangoCoordinateFramePair(\n TangoPoseData.COORDINATE_FRAME_START_OF_SERVICE,\n TangoPoseData.COORDINATE_FRAME_DEVICE));\n\n // Listen for new Tango data\n mTango.connectListener(framePairs, new OnTangoUpdateListener() {\n @Override\n public void onPoseAvailable(final TangoPoseData pose) {\n onPoseUpdate(pose);\n }\n\n @Override\n public void onXyzIjAvailable(TangoXyzIjData xyzIj) {\n // We are not using onXyzIjAvailable for this app.\n }\n\n @Override\n public void onPointCloudAvailable(TangoPointCloudData pointCloud) {\n // We are not using onPointCloudAvailable for this app.\n }\n\n @Override\n public void onTangoEvent(final TangoEvent event) {\n // Ignoring TangoEvents.\n }\n\n @Override\n public void onFrameAvailable(int cameraId) {\n // We are not using onFrameAvailable for this application.\n }\n });\n }", "protected void onInit() {\n onEnable();\n }", "public void initListeners() {\n\t\tlogoGrabListener = new LogoGrabListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onResponse(JSONObject response) {\n\t\t\t\tLog.i(TAG, \"LogoGrab Application responded with: \" + response.toString());\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onError(String error) {\n\t\t\t\tLog.e(TAG, error);\n\t\t\t}\n\t\t};\n\t\t\n\t\t// set LogoGrabListener\n\t\tLogoGrabInterface.setLogoGrabListener(logoGrabListener);\n\t\t\n\t\t\n\t\t// init OnClickListener\n\t\tonClickListener = new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLogoGrabInterface.startLogoGrab(MainActivity.this);\n\t\t\t}\n\t\t};\n\t\t\n\t\t// set OnClickListener\n\t\tlogoGrabButton.setOnClickListener(onClickListener);\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.vn.com.ecopharma.hrm.rc.model.Candidate\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<Candidate>> listenersList = new ArrayList<ModelListener<Candidate>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<Candidate>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tprotected void setListener() {\n\n\t}", "@Override\n\tprotected void setListener() {\n\n\t}", "@Override\n protected void initializeEventList()\n {\n }", "public void afterPropertiesSet() {\n String[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n com.liferay.util.service.ServiceProps.get(\n \"value.object.listener.com.consistent.ucwrt.model.EntityDealer\")));\n\n if (listenerClassNames.length > 0) {\n try {\n List<ModelListener<EntityDealer>> listenersList = new ArrayList<ModelListener<EntityDealer>>();\n\n for (String listenerClassName : listenerClassNames) {\n listenersList.add((ModelListener<EntityDealer>) InstanceFactory.newInstance(\n getClassLoader(), listenerClassName));\n }\n\n listeners = listenersList.toArray(new ModelListener[listenersList.size()]);\n } catch (Exception e) {\n _log.error(e);\n }\n }\n }", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.com.idetronic.eis.model.ItemTypeCategory\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<ItemTypeCategory>> listenersList = new ArrayList<ModelListener<ItemTypeCategory>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<ItemTypeCategory>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.com.idetronic.eis.model.FactNonPrintedMaterial\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<FactNonPrintedMaterial>> listenersList = new ArrayList<ModelListener<FactNonPrintedMaterial>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<FactNonPrintedMaterial>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}", "public void setListeners() {\n coachName.textProperty().addListener( observable -> {\n if(warningText.isVisible()) {\n warningText.setVisible(false);\n }\n });\n coachSurname.textProperty().addListener( observable -> {\n if(warningText.isVisible()) {\n warningText.setVisible(false);\n }\n });\n }", "public void setListeners() {\n backButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n finish();\n }\n });\n\n settingButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showEditDialog();\n }\n });\n\n cameraButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showChoosePictureDialog();\n }\n });\n }", "private void setupListeners()\n\t{\n\t\tfinal String query = \"INSERT INTO\" + \"`\" + table + \"` \" + getFields() + \"VALUES\" + getValues();\n\t\t\n\t\tqueryButton.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent click)\n\t\t\t{\n\t\t\t\tbaseController.getDataController().submitUpdateQuery(query);\n\t\t\t}\n\t\t});\n\t}", "@SuppressWarnings(\"deprecation\")\n\tprivate void setControllerVariables() {\n\t\tcontrollerVars.setAudioManager((AudioManager) act.getSystemService(Context.AUDIO_SERVICE));\n\t\tcontrollerVars.setActVolume((float) controllerVars.getAudioManager().getStreamVolume(AudioManager.STREAM_MUSIC));\n\t\tcontrollerVars.setMaxVolume((float) controllerVars.getAudioManager().getStreamMaxVolume(AudioManager.STREAM_MUSIC));\n\t\tcontrollerVars.setVolume(controllerVars.getActVolume() / controllerVars.getMaxVolume());\n\n\t\t//Hardware buttons setting to adjust the media sound\n\t\tact.setVolumeControlStream(AudioManager.STREAM_MUSIC);\n\n\t\t// the counter will help us recognize the stream id of the sound played now\n\t\tcontrollerVars.setCounter(0);\n\n\t\t// Load the sounds\n\t\tcontrollerVars.setSoundPool(new SoundPool(20, AudioManager.STREAM_MUSIC, 0));\n\t\tcontrollerVars.getSoundPool().setOnLoadCompleteListener(new OnLoadCompleteListener() {\n\t\t @Override\n\t\t public void onLoadComplete(SoundPool soundPool, int sampleId, int status) {\n\t\t \tcontrollerVars.setLoaded(true);\n\t\t }\n\t\t});\t\t\n\t}", "private void setListeners() {\n\t\trefreshButton.addActionListener(new refreshButtonListener());\n\n\t\tthis.list.addMouseListener(new MouseAdapter() {\n\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent event) {\n\t\t\t\tif (event.getClickCount() == 2 && list.getSelectedValue() != null && !list.getSelectedValue().equals(\"\") && tabs.getSelectedIndex() != -1) {\n\t\t\t\t\tlaunchDocument(tabs.getTitleAt(tabs.getSelectedIndex()), list.getSelectedValue());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\ttabs.addChangeListener(new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void stateChanged(ChangeEvent arg0) {\n\t\t\t\tif (!tabs.getTitleAt(tabs.getSelectedIndex()).equals(\"Chat\")) {\n\t\t\t\t\tlistmodel.clear();\n\t\t\t\t\tmakeRequest();\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t}", "public void init() {\n\n // sends a callback when the mouse is moved\n glfwSetCursorPosCallback(window.getWindowHandle(), (window, xpos, ypos) -> {\n currentPos.x = xpos;\n currentPos.y = ypos;\n });\n // sends a callback when the mouse enters the window\n glfwSetCursorEnterCallback(window.getWindowHandle(), (windowHandle, entered) -> {\n inWindow = entered;\n });\n // sends a callback when one action occurs\n glfwSetMouseButtonCallback(window.getWindowHandle(), (windowHandle, button, action, mode) -> {\n // checks is the left mouse button is pressed\n leftButtonPressed = button == GLFW_MOUSE_BUTTON_1 && action == GLFW_PRESS;\n });\n }", "public void setCallback(CarouselCallback callback)\n {\n mController.setCallback(callback);\n }", "@Override\n\t\t\t\t\tpublic void onStart(int what, Object[] params) {\n\n\t\t\t\t\t}", "@FXML\n public void initialize() {\n staticController = this;\n mainPress(null);\n scrollPane.widthProperty().addListener((obs, oldVal, newVal) -> {\n onWindowSizeChange();\n });\n onWindowSizeChange();\n }", "private void initListener() {\n initPieceListener();\n initButtonsListener();\n }", "@FXML private void initialize(){\n\n\t\t//Attach Event Handlers\n\t\tbtnLoadLog.setOnAction(new EventHandler<ActionEvent>(){\n\t\t\tpublic void handle(ActionEvent e){\n\t\t\t\tonLoadLogClicked();\n\t\t\t}\n\t\t});\n\n\t\tbtnClearLog.setOnAction(new EventHandler<ActionEvent>(){\n\t\t\tpublic void handle(ActionEvent e){\n\t\t\t\tonClearClicked();\n\t\t\t}\n\t\t});\n\n\t\tbtnSaveLog.setOnAction(new EventHandler<ActionEvent>(){\n\t\t\tpublic void handle(ActionEvent e){\n\t\t\t\tonSaveClicked();\n\t\t\t}\n\t\t});\n\n\t}", "public void init() {\n cupDataChangeListener = new CupDataChangeListener(dataBroker);\n }", "public abstract void onInit();", "private void initListener() {\n mVideoView.setOnPreparedListener(this);\n mVideoView.setOnCompletionListener(this);\n mVideoView.setOnErrorListener(this);\n }", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.org.lrc.liferay.toolbuilder.model.StepDefsCompositeStepDefDBE\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<StepDefsCompositeStepDefDBE>> listenersList = new ArrayList<ModelListener<StepDefsCompositeStepDefDBE>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<StepDefsCompositeStepDefDBE>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "private void initListener() {\n }", "public void\t\tnotifyUCallbackListeners();", "private void registerCallbacks() {\n nations.forEach(this::registerCallback);\n }", "interface Callbacks {\n void pipelineModeChanged(boolean z) throws ;\n\n void requestSent() throws ;\n\n void serverError(int i) throws ;\n }", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.vn.dtt.duongbien.dao.vrcb.model.DmHistoryGoods\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<DmHistoryGoods>> listenersList = new ArrayList<ModelListener<DmHistoryGoods>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<DmHistoryGoods>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public void afterPropertiesSet() throws Exception {\r\n // let us register this instance with\r\n // event dispatcher\r\n eventDispatcher.registerListener(this);\r\n }", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.com.agbar.intranet.generacionFirmas.model.TrabajadorEmpresa\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<TrabajadorEmpresa>> listenersList = new ArrayList<ModelListener<TrabajadorEmpresa>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<TrabajadorEmpresa>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tlistenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\tmSensors.registerCallback(this);\n\t\tSensorsComponentAndroid.LM_MINDISTANCE = MIN_DISTANCE_CHANGE_FOR_UPDATES;\n\t\t//SensorsComponentAndroid.LM_MINTIME = MIN_TIME_BW_UPDATES;\n\t}", "private void setActionListener() {\r\n\t\tactListener = new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactController.handleMenuAction(e);\r\n\t\t\t}\r\n\t\t};\r\n\t}", "@Override\n public void beforeMethod(BQTestScope scope, ExtensionContext context) {\n this.withinTestMethod = true;\n\n // TODO: prefilter callbacks collection of \"beforeTestIfStarted\" in a separate collection to avoid iteration\n // on every run?\n if (isStarted()) {\n callbacks.forEach((k, v) -> beforeTestIfStarted(cayenneRuntime, k, v));\n }\n }", "@Override\r\n\tprotected void initListener() {\n\t\tsuper.initListener();\r\n\t}", "@Override\r\n public void AddListener(IController controller) {\r\n this.controller = controller;\r\n }", "protected void init(){\n\t\n\t\tsetBounds(getControllerScreenPosition());\n\t\taddComponentListener(new ComponentListener(){\n\n\t\t\tpublic void componentResized(ComponentEvent arg0) {\n\t\t\t\t//AppLogger.debug2(arg0.toString());\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tint w = arg0.getComponent().getWidth();\n\t\t\t\tint h = arg0.getComponent().getHeight();\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t \tProperties props = getAppSettings();\t\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_W, String.valueOf(w));\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_H, String.valueOf(h));\t \t\t\t\t\t\t\n\t\t\t}\n\n\t\t\tpublic void componentMoved(ComponentEvent arg0) {\n\t\t\t\t//AppLogger.debug2(arg0.toString());\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tint x = arg0.getComponent().getX();\n\t\t\t\tint y = arg0.getComponent().getY();\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t \tProperties props = getAppSettings();\t\t\t\t \t\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_X, String.valueOf(x));\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_Y, String.valueOf(y));\t \t\t\n\t\t\t}\n\n\t\t\tpublic void componentShown(ComponentEvent arg0) {}\n\t\t\tpublic void componentHidden(ComponentEvent arg0) {}\n\t\t\t\n\t\t});\n\t\t\n\t\tthis.addWindowListener(new WindowAdapter(){\n\t\t\n\t\t\tpublic void windowClosing(WindowEvent evt){\n\t\t\t\tstoreAppSettings();\n\t\t\t}\n\t\t});\n\t\t\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.test.sb.model.Legacydb\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<Legacydb>> listenersList = new ArrayList<ModelListener<Legacydb>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<Legacydb>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "private void initializeListeners() {\n llBack.setOnClickListener(this);\n btnChange.setOnClickListener(this);\n btnNext.setOnClickListener(this);\n }", "private void setupListeners() {\n\n // \"Save\" button\n Button confirmButton = (Button) findViewById(R.id.button_save_report);\n confirmButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n setResult(RESULT_OK);\n saveForm();\n finish(); // eventually calls onPause() and onStop()\n }\n });\n\n // \"Cancel\" button\n Button cancelButton = (Button) findViewById(R.id.button_cancel_edit_report);\n cancelButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n setResult(RESULT_CANCELED);\n finish(); // eventually calls onPause() and onStop()\n }\n });\n\n TextWatcher onFormChangeListener = new TextWatcher() {\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n mFormChanged = true;\n }\n\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n }\n };\n\n mValueText.addTextChangedListener(onFormChangeListener);\n }", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.vn.com.ecopharma.emp.model.Department\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<Department>> listenersList = new ArrayList<ModelListener<Department>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<Department>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "protected void setErrorCallback (boolean setCallback) {\n TipcCb pError = null;\n String dest = AppConstants.STATUS_SUBJECT;\n try {\n \tif (setCallback) {\n if (!srv.getSubjectSubscribe(dest)) {\n \t ProcessErrorMessage evRef = new ProcessErrorMessage();\n \t pError = srv.addProcessCb(evRef, dest, srv); \n \t if (pError == null) {\n \t Tut.exitFailure(\"WARNING. Couldn't register Svt Error subject callback!\\n\");\n \t }\n \t srv.setSubjectSubscribe(dest, true);\n \t warn(\"INFO. Subscribed to \" + dest, Color.green);\n \n \t addObserver(errorObserver);\n \t }\n \t} \n else {\n \t if (srv.getSubjectSubscribe(dest)) {\n \t srv.setSubjectSubscribe(dest, false);\n \t warn(\"INFO. Unsubscribed from \" + dest, Color.red);\n \n \t deleteObserver(errorObserver);\n \t }\n \t}\n } \n catch (TipcException Tipe) {\n \tTut.warning(Tipe);\n } \n }", "protected void initControls()\n {\n glfwSetKeyCallback(windowID, new KeyboardInput());\n MouseInput.init(windowID);\n }", "public void setListeners() {\n mbt_no_realizar_comentario.setOnClickListener(this);\n mbt_realizar_comentario_propietario.setOnClickListener(this);\n }", "public void setupCallback(MouseBehaviorCallback callback) {\r\n\t\tthis.callback = callback;\r\n\t}" ]
[ "0.6127828", "0.61103004", "0.6085649", "0.5938671", "0.59340686", "0.59323347", "0.5905914", "0.5897417", "0.5893089", "0.58870757", "0.58779943", "0.5870271", "0.5862546", "0.5853684", "0.5831896", "0.58015305", "0.5792693", "0.578942", "0.5775583", "0.57652", "0.57466626", "0.57056147", "0.56999224", "0.56962955", "0.5680916", "0.5632381", "0.56237257", "0.5616386", "0.5613943", "0.5610443", "0.5601486", "0.5582959", "0.5576181", "0.5573076", "0.5565525", "0.55394447", "0.55360657", "0.55225354", "0.5522393", "0.5520769", "0.550934", "0.5502081", "0.549908", "0.5496652", "0.5490668", "0.5490668", "0.5485475", "0.5482689", "0.5481775", "0.54797226", "0.5475062", "0.5474598", "0.54682785", "0.5460894", "0.5451155", "0.54490453", "0.5448744", "0.5447923", "0.5447923", "0.5443313", "0.5438665", "0.5418273", "0.54140675", "0.54011136", "0.53822225", "0.53753304", "0.53640515", "0.53629804", "0.5356501", "0.53495204", "0.5341948", "0.5340917", "0.5329807", "0.53183943", "0.5310138", "0.53048104", "0.5300833", "0.5296707", "0.52854246", "0.5277936", "0.5277733", "0.52764887", "0.52741635", "0.52730536", "0.5265723", "0.52580637", "0.5251688", "0.52381414", "0.52360153", "0.5232465", "0.5231675", "0.52296644", "0.522414", "0.5221191", "0.52145535", "0.5211678", "0.52008307", "0.5197618", "0.51960784", "0.5194889" ]
0.5811234
15
Binds to the explicit health check service if the controller is enabled and not already bound.
private void bindService() { synchronized (mLock) { if (!mEnabled || mConnection != null || mRemoteService != null) { if (!mEnabled) { Slog.i(TAG, "Not binding to service, service disabled"); } else if (mRemoteService != null) { Slog.i(TAG, "Not binding to service, service already connected"); } else { Slog.i(TAG, "Not binding to service, service already connecting"); } return; } ComponentName component = getServiceComponentNameLocked(); if (component == null) { Slog.wtf(TAG, "Explicit health check service not found"); return; } Intent intent = new Intent(); intent.setComponent(component); mConnection = new ServiceConnection() { @Override public void onServiceConnected(ComponentName name, IBinder service) { Slog.i(TAG, "Explicit health check service is connected " + name); initState(service); } @Override @MainThread public void onServiceDisconnected(ComponentName name) { // Service crashed or process was killed, #onServiceConnected will be called. // Don't need to re-bind. Slog.i(TAG, "Explicit health check service is disconnected " + name); synchronized (mLock) { mRemoteService = null; } } @Override public void onBindingDied(ComponentName name) { // Application hosting service probably got updated // Need to re-bind. Slog.i(TAG, "Explicit health check service binding is dead. Rebind: " + name); unbindService(); bindService(); } @Override public void onNullBinding(ComponentName name) { // Should never happen. Service returned null from #onBind. Slog.wtf(TAG, "Explicit health check service binding is null?? " + name); } }; mContext.bindServiceAsUser(intent, mConnection, Context.BIND_AUTO_CREATE, UserHandle.of(UserHandle.USER_SYSTEM)); Slog.i(TAG, "Explicit health check service is bound"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doBind(){\n\t\tboolean isBound = settings.getBoolean(\"isBound\", false);\n\t\tif(!isBound){\n \t\ti = new Intent(context, LocationService.class);\n \t\tcontext.bindService(i, SpeedConnection, Context.BIND_AUTO_CREATE);\n \t\tcontext.startService(i);\n \t\teditor.putBoolean(\"isBound\", true);\n \t\teditor.apply();\n \t}\n\t}", "public void doBindService() {\n\r\n\t\tIntent serviceIntent = new Intent(MainActivity.this, LocalService.class);\r\n\r\n\t\tstartService(serviceIntent);\r\n\t\t// bindService(serviceIntent, mServiceConnection, 0);\r\n\t\tbindService(serviceIntent, mServiceConnection, BIND_AUTO_CREATE);\r\n\r\n\t\tmIsBound = true;\r\n\t}", "private void bind()\n {\n /* Cancel unbind */\n cancelUnbind();\n\n /* Bind to the Engagement service if not already done or being done */\n if (mEngagementService == null && !mBindingService)\n {\n mBindingService = true;\n mContext.bindService(EngagementAgentUtils.getServiceIntent(mContext), mServiceConnection,\n BIND_AUTO_CREATE);\n }\n }", "void doBindService() {\r\n\r\n bindService(new Intent(MainActivity.this, CurrentLocationUtil.class),\r\n connection, // ServiceConnection object\r\n Context.BIND_AUTO_CREATE); // Create service if not\r\n\r\n isBound = true;\r\n\r\n }", "protected void onServiceConnectedExtended(ComponentName className,\n IBinder service) {\n mAllowedToBind = true;\n\n }", "void doAccelBindService() {\n\t\tbindService(accelIntentDelay, accelConnection, Context.BIND_AUTO_CREATE);\n\t\taccelIsBound = true;\n\t}", "void doBindService() {\n\n if (bindService(new Intent(MainActivity.this, PositionService.class),\n mConnection, Context.BIND_AUTO_CREATE)) {\n mBound = true;\n } else {\n Log.e(\"MY_APP_TAG\", \"Error: The requested service doesn't \" +\n \"exist, or this client isn't allowed access to it.\");\n }\n }", "public boolean getIsServiceBound () ;", "@Test\n void conditionalBindToPort()\n {\n objectUnderTest\n .conditionalBind(() -> false, ProxyAdapter.class).to(SimpleApplicationService.class)\n .start();\n\n //Assert that no binding has been performed\n var result = objectUnderTest.getDrivingAdapter(ProxyAdapter.class);\n\n assertTrue(result.getPortList().isEmpty());\n }", "private void bindAudioService() {\n if (audioServiceBinder == null) {\n Intent intent = new Intent(MainActivity.this, AudioService.class);\n\n // Below code will invoke serviceConnection's onServiceConnected method.\n bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE);\n }\n }", "@Override\n public void onBindingDied(ComponentName name) {\n Slog.i(TAG, \"Explicit health check service binding is dead. Rebind: \" + name);\n unbindService();\n bindService();\n }", "void doBindService() {\n\t\tbindService(new Intent(this, eidService.class), mConnection, Context.BIND_AUTO_CREATE);\n//\t\tLog.i(\"Convert\", \"At doBind2.\");\n\n\t\tmIsBound = true;\n\t\n\t\tif (mService != null) {\n//\t\t\tLog.i(\"Convert\", \"At doBind3.\");\n\t\t\ttry {\n\t\t\t\t//Request status update\n\t\t\t\tMessage msg = Message.obtain(null, eidService.MSG_UPDATE_STATUS, 0, 0);\n\t\t\t\tmsg.replyTo = mMessenger;\n\t\t\t\tmService.send(msg);\n\t\t\t\tLog.i(\"Convert\", \"At doBind4.\");\n\t\t\t\t//Request full log from service.\n\t\t\t\tmsg = Message.obtain(null, eidService.MSG_UPDATE_LOG_FULL, 0, 0);\n\t\t\t\tmService.send(msg);\n\t\t\t} catch (RemoteException e) {}\n\t\t}\n//\t\tLog.i(\"Convert\", \"At doBind5.\");\n\t}", "@Override\n public void onNullBinding(ComponentName name) {\n Slog.wtf(TAG, \"Explicit health check service binding is null?? \" + name);\n }", "void doBindService() {\n final Intent serviceIntent = new Intent(Testing.this, UploadService.class);\n bindService(serviceIntent, mConnection, Context.BIND_AUTO_CREATE);\n mIsBound = true;\n }", "private void automaticBinding() {\n if (SensorReaderService.isRunning()){\n doBindService();\n } else{\n startSensingService();\n doBindService();\n }\n if (v != null) {\n v.vibrate(500);\n }\n }", "@Override\n protected void configure() {\n bind(OperationPerformingService.class);\n }", "@Override\n protected void configureService() {\n if (installSolr) {\n // bind solr server, using the checklistbank.search.solr.server property\n install(new SolrModule(SolrConfig.fromProperties(getProperties(), \"solr.\")));\n }\n\n bind(NameUsageSearchService.class).to(NameUsageSearchServiceImpl.class).in(Scopes.SINGLETON);\n\n expose(NameUsageSearchService.class);\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n BinderService.LocalBinder binder = (BinderService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "@GuardedBy(\"mLock\")\n private void bindLocked() {\n // No need to bind if service is binding or has already been bound.\n if (mBinding || mService != null) {\n return;\n }\n\n mBinding = true;\n // mContext.bindServiceAsUser() calls into ActivityManagerService which it may already\n // hold the lock and had called into PowerManagerService, which holds a lock.\n // That would create a deadlock. To solve that, putting it on a handler.\n mAttentionHandler.post(() -> {\n final Intent serviceIntent = new Intent(\n AttentionService.SERVICE_INTERFACE).setComponent(\n mComponentName);\n // Note: no reason to clear the calling identity, we won't have one in a handler.\n mContext.bindServiceAsUser(serviceIntent, mConnection,\n Context.BIND_AUTO_CREATE, UserHandle.CURRENT);\n\n });\n }", "private void bindMediaPlayerService() {\n if (!serviceIsBound) {\n Intent bindInt = new Intent(this, MediaPlayerService.class);\n serviceIsBound = bindService(bindInt, mediaPlayerConnection, Context.BIND_AUTO_CREATE);\n\n Log.v(TAG, \"Service bound\");\n } else {\n Log.v(TAG, \"no Service to bind\");\n }\n }", "@Override\r\n\tpublic String getBind_health_ind() {\n\t\treturn super.getBind_health_ind();\r\n\t}", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n LocalBinder binder = (LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "private void bindNcService() {\n Intent intent = new Intent(\"com.miui.notification.NOTIFICATION_CENTER\");\n intent.setPackage(\"com.miui.notification\");\n this.mHasBind = this.mContext.bindServiceAsUser(intent, this.mNcConn, 1, UserHandle.CURRENT);\n String str = TAG;\n Log.i(str, \"NcService bind: \" + this.mHasBind);\n this.mBindTimes = this.mBindTimes + 1;\n if (!this.mHasBind && this.mBindTimes <= 3) {\n this.mHandler.removeMessages(10002);\n this.mHandler.sendEmptyMessageDelayed(10002, (long) DEFAULT_INTERVAL);\n }\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n LocalService.LocalBinder binder = (LocalService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n LocalService.LocalBinder binder = (LocalService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "public void bind() {\n\n Intent startintent = new Intent(context, MafService.class);\n startintent.setAction(\"com.baidu.maf.service\");\n\n if(ServiceControlUtil.showInSeperateProcess(context)) {\n try {\n context.startService(startintent);\n } catch (Exception e) {\n LogUtil.e(TAG, \"fail to startService\", e);\n }\n }\n\n //Intent intent = new Intent(InAppApplication.getInstance().getContext(), OutAppService.class);\n\n\n boolean result =\n context.bindService(startintent, mConnection, Context.BIND_AUTO_CREATE);\n\n LogUtil.printMainProcess(\"Service bind. reslut = \" + result);\n LogUtil.printMainProcess(\"bind. serverMessenger = \" + serverMessenger);\n mIsBound = result;\n }", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n MyService.LocalBinder binder = (MyService.LocalBinder) service;\n myService = binder.getService();\n isBound = true;\n\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n HomeActivityWatcherService.MyBinder binder = (HomeActivityWatcherService.MyBinder) service;\n mWatcherService = binder.getService();\n mBound = true;\n }", "@Override\n public IBinder onBind(Intent mIntent) {\n Log.i(TAG, \"onBind\");\n String action = mIntent.getAction();\n Log.d(TAG, \"onBind: \" + action);\n\n if (SERVICE_INTERFACE.equals(action)) {\n Log.d(TAG, \"Bound by system\");\n return super.onBind(mIntent);\n } else {\n Log.d(TAG, \"Bound by application\");\n return mBinder;\n }\n }", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n RemoteControlService.LocalBinder binder = (RemoteControlService.LocalBinder) service;\n binder.getService( ).startIfNotStarted( );\n }", "@GetMapping(path = ApiConstant.HEALTH_CHECK_API, produces = APPLICATION_JSON_VALUE)\n public ResponseEntity checkHealth() {\n logger.info(\"Health checking.\");\n HashMap<String, String> map = new HashMap<>();\n map.put(\"status\", \"OK\");\n return new ResponseEntity<>(map, HttpStatus.OK);\n }", "public void bind() {\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n ServerService.LocalBinder binder = (ServerService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "void bind(EventService service);", "@Override\n public IBinder onBind(Intent intent) {\n if(DEBUG)Log.d(TAG, \"onBind\");\n serviceConnected = true;\n Toast.makeText(getApplicationContext(), \"binding\", Toast.LENGTH_SHORT).show();\n return mMessenger.getBinder();\n }", "public interface FloatServiceBinder {\n /**\n * 启动并且绑定服务完成\n * @param componentName ServiceConnection的componentName\n * @param iBinder ServiceConnection的iBinder\n */\n void onBindSucceed(ComponentName componentName, IBinder iBinder);\n\n /**\n * 当服务意外死亡时触发\n * @param componentName ServiceConnection的componentName\n */\n void onServiceDisconnected(ComponentName componentName);\n}", "private boolean checkServiceIsRunning(){\r\n if (CurrentLocationUtil.isRunning()){\r\n doBindService();\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "@Override\n\tprotected void initAsService() {\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"Initiating service...\");\n\t\t}\n\t\trunnerFuture = activityRunner.schedule(this::scanModulesHealth, 500, TimeUnit.MILLISECONDS);\n\t}", "private void unbindService() {\n synchronized (mLock) {\n if (mRemoteService != null) {\n mContext.unbindService(mConnection);\n mRemoteService = null;\n mConnection = null;\n }\n Slog.i(TAG, \"Explicit health check service is unbound\");\n }\n }", "@Produces\r\n @Readiness\r\n public HealthCheck checkReadiness() {\n return () -> HealthCheckResponse.named(readinessName).up().build();\r\n }", "@Override\n protected void configure() {\n bind(EurekaInstanceConfig.class).toProvider(MyDataCenterInstanceConfigProvider.class).in(Scopes.SINGLETON);\n }", "@Override\n public void notifyServiceIsBound() {\n getAllExercises();\n }", "@Override\n\t\tpublic void configure(Binder binder) {\n\t\t\tbinder.bind(IFoodService.class).to(PizzaService.class);\n\t\t\t// bind the pizzaiolo named\n\t\t\tbinder.bind(String.class).annotatedWith(Names.named(\"pizzaiolo\"))\n\t\t\t\t\t.toInstance(\"Alberto\");\n\t\t\t// bind the print stream named to instance since we System.out is a\n\t\t\t// predefined singleton.\n\t\t\tbinder.bind(PrintStream.class)\n\t\t\t\t\t.annotatedWith(Names.named(\"printStream\"))\n\t\t\t\t\t.toInstance(System.out);\n\n\t\t}", "@Override\n\tpublic void bind() {\n\t\t\n\t}", "@Override\n\tpublic IBinder onBind(Intent intent) {\n\t\treturn serviceBinder;\n\t}", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n ConnectionService.ConnectionBinder binder = (ConnectionService.ConnectionBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "@Override\n public void onServiceConnected(ComponentName componentName, IBinder iBinder) {\n selfServiceMethodSolver = (ISelfMethod) iBinder;\n Log.d(\"BindLog\", \"Client - SelfService已Bind成功,并获取了代理\");\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n TranscriptDownService.LocalBinder binder = (TranscriptDownService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "private void registerBindings(){\t\t\n\t}", "private void registerBindings(){\t\t\n\t}", "public boolean bindPermissionDialogService() {\n try {\n Intent intent = new Intent(DCIMPROTECT_SERVICE);\n intent.setPackage(PERMISSION_PACKGE_NAME);\n return this.mContext.bindService(intent, this.mServConnection, 1);\n } catch (Exception e) {\n Log.e(TAG, \"bind service err !\");\n return DEBUG;\n }\n }", "void setHappiness(int happiness);", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n System.out.println(\"绑定成功\");\n }", "@Override\n public void setUpAudioService() {\n\n if (!serviceBound) {\n\n Log.d(LOG_TAG, \"setUpAudioService(): Setting up SSMusicService...\");\n\n // Sets up the service intent and begins the service.\n audioIntent = new Intent(this, SSMusicService.class); // Sets a Intent to the service.\n bindService(audioIntent, musicConnection, Context.BIND_AUTO_CREATE); // Binds the service.\n startService(audioIntent); // Starts the service.\n }\n }", "protected abstract void bind();", "protected abstract void bind();", "protected void checkHealth(MonitoredService module) {\n if (!isActive()) {\n return;\n }\n final ModuleOutputDevice moduleLog = ModuleOutputDeviceFarm.getDevice(this, ModuleLoggerMessage.LOG_OUTPUT_TYPE);\n moduleLog.associate(\"Processing heart-beat for '\" + module + \"' module\");\n moduleLog.actionBegin();\n // service is active for the moment, process module's heart-beat\n try {\n moduleLog.out(\"Saving heart-beat of module \", module.toString());\n storage.saveHeartBeat(module);\n moduleLog.out(\"Getting config updates for module \", module.toString());\n final Map<String, ConfiguredVariableItem> updated\n = configurationService.getUpdatedVariables(module, module.getConfiguration());\n if (!updated.isEmpty()) {\n moduleLog.out(\"Updating module configuration.\");\n module.configurationChanged(updated);\n }\n moduleLog.actionEnd();\n } catch (Throwable t) {\n LOG.error(\"Can't process heartbeat for module '{}'\", module, t);\n moduleLog.actionFail();\n }\n }", "@Override\n public StabilityResult check() {\n boolean serviceStability = false;\n int count = 0;\n int count1 = 0;\n int count2 = 0;\n while (!serviceStability && count < attempts) {\n try {\n // We use the getAllServiceReferences method to ignore classloading issues. Anyway, we are not using\n // the service, just counting them.\n ServiceReference[] refs = context.getAllServiceReferences(null, null);\n count1 = refs.length;\n grace();\n refs = context.getAllServiceReferences(null, null);\n count2 = refs.length;\n serviceStability = count1 == count2;\n } catch (Exception e) {\n LOGGER.warn(\"An exception was thrown while checking the service stability\", e);\n serviceStability = false;\n // Nothing to do, while recheck the condition\n }\n count++;\n }\n\n if (count == attempts) {\n LOGGER.error(\"Service stability has not been reached after {} tries ({} != {})\", attempts, count1, count2);\n return StabilityResult.unstable(\"Cannot reach the service stability\");\n }\n return StabilityResult.stable();\n }", "private void checkAndScheduleHealthThresholdMonitor() {\n int healthThresholdPercent = YarnServiceConf.getInt(\n CONTAINER_HEALTH_THRESHOLD_PERCENT,\n DEFAULT_CONTAINER_HEALTH_THRESHOLD_PERCENT,\n componentSpec.getConfiguration(), scheduler.getConfig());\n // Validations\n if (healthThresholdPercent == CONTAINER_HEALTH_THRESHOLD_PERCENT_DISABLED) {\n LOG.info(\"No health threshold monitor enabled for component {}\",\n componentSpec.getName());\n return;\n }\n // If threshold is set to outside acceptable range then don't enable monitor\n if (healthThresholdPercent <= 0 || healthThresholdPercent > 100) {\n LOG.error(\n \"Invalid health threshold percent {}% for component {}. Monitor not \"\n + \"enabled.\",\n healthThresholdPercent, componentSpec.getName());\n return;\n }\n // Determine the threshold properties\n long window = YarnServiceConf.getLong(CONTAINER_HEALTH_THRESHOLD_WINDOW_SEC,\n DEFAULT_CONTAINER_HEALTH_THRESHOLD_WINDOW_SEC,\n componentSpec.getConfiguration(), scheduler.getConfig());\n long initDelay = YarnServiceConf.getLong(\n CONTAINER_HEALTH_THRESHOLD_INIT_DELAY_SEC,\n DEFAULT_CONTAINER_HEALTH_THRESHOLD_INIT_DELAY_SEC,\n componentSpec.getConfiguration(), scheduler.getConfig());\n long pollFrequency = YarnServiceConf.getLong(\n CONTAINER_HEALTH_THRESHOLD_POLL_FREQUENCY_SEC,\n DEFAULT_CONTAINER_HEALTH_THRESHOLD_POLL_FREQUENCY_SEC,\n componentSpec.getConfiguration(), scheduler.getConfig());\n // Validations\n if (window <= 0) {\n LOG.error(\n \"Invalid health monitor window {} secs for component {}. Monitor not \"\n + \"enabled.\",\n window, componentSpec.getName());\n return;\n }\n if (initDelay < 0) {\n LOG.error(\"Invalid health monitor init delay {} secs for component {}. \"\n + \"Monitor not enabled.\", initDelay, componentSpec.getName());\n return;\n }\n if (pollFrequency <= 0) {\n LOG.error(\n \"Invalid health monitor poll frequency {} secs for component {}. \"\n + \"Monitor not enabled.\",\n pollFrequency, componentSpec.getName());\n return;\n }\n LOG.info(\n \"Scheduling the health threshold monitor for component {} with percent \"\n + \"= {}%, window = {} secs, poll freq = {} secs, init-delay = {} \"\n + \"secs\",\n componentSpec.getName(), healthThresholdPercent, window, pollFrequency,\n initDelay);\n // Add 3 extra seconds to initial delay to account for the time taken to\n // request containers before the monitor starts calculating health.\n this.scheduler.executorService.scheduleAtFixedRate(\n new ComponentHealthThresholdMonitor(this, healthThresholdPercent,\n window),\n initDelay + 3, pollFrequency, TimeUnit.SECONDS);\n setHealthThresholdMonitorEnabled(true);\n }", "protected void onBind()\n\t{\n\t}", "@Reference(service = HttpService.class,\n cardinality = ReferenceCardinality.MULTIPLE,\n policy = ReferencePolicy.DYNAMIC,\n bind = \"bindHttpService\", unbind = \"unbindHttpService\")\n protected void bindHttpService(final ServiceReference reference) {\n String[] endpointUrls = toStringArray(reference.getProperty(REG_PROPERTY_ENDPOINTS));\n if ( endpointUrls == null ) {\n endpointUrls = toStringArray(reference.getProperty(REG_PROPERTY_ENDPOINTS_RFC));\n }\n if ( endpointUrls != null ) {\n synchronized ( lock ) {\n this.endpoints.put((Long)reference.getProperty(Constants.SERVICE_ID), endpointUrls);\n }\n }\n }", "public void bindSendService(){\r\n\t\tif (sendService!=null){\r\n\t\t\tIntent intent = new Intent(context, SendService.class);\r\n\t context.bindService(intent, sendServiceConnection, Context.BIND_AUTO_CREATE);\r\n\t \r\n\t\t}\r\n\t}", "@Host(\"{$host}\")\n @ServiceInterface(name = \"AzureWebPubSubServic\")\n public interface HealthApisService {\n @Head(\"/api/health\")\n @ExpectedResponses({200})\n @UnexpectedResponseExceptionType(HttpResponseException.class)\n Mono<Response<Void>> getHealthStatus(\n @HostParam(\"$host\") String host, @QueryParam(\"api-version\") String apiVersion, Context context);\n }", "public static void bind(ServiceBinder binder)\r\n {\n \tbinder.bind(Authenticator.class, BasicAuthenticator.class);\r\n \tbinder.bind(UserDAO.class,UserDAOImplements.class);\r\n \tbinder.bind(TrainingDAO.class,TrainingDAOImplements.class);\r\n \tbinder.bind(EvidenceExerciseDAO.class, EvidenceExerciseDAOImplements.class);\r\n \tbinder.bind(ExerciseDAO.class, ExerciseDAOImplements.class);\r\n \tbinder.bind(MyTrainingsDAO.class, MyTrainingsDAOImplements.class);\r\n \tbinder.bind(MembershipDAO.class, MembershipDAOImplements.class);\r\n \tbinder.bind(TimetableDAO.class,TimetableDAOImplements.class);\r\n \tbinder.bind(MoreInformationDao.class,MoreInformationDAOImplements.class);\r\n \tbinder.bind(PresenceDao.class,PresenceDAOImplements.class);\r\n }", "@Override\n public boolean isAlive() {\n return health > 0f;\n }", "public static void bind(ServiceBinder binder) {\n\t\t\n\t\tbinder.bind(CoreDAO.class,CoreDAOHibernate.class);\n\t\tbinder.bind(AuthorizingRealm.class, UserRealm.class).withId(UserRealm.class.getSimpleName());\n\t//\tbinder.bind(FederatedAccountService.class, DefaultHibernateFederatedAccountServiceImpl.class);\n\t\t\n//\t\tbinder.bind(FederatedAccountService.class, FederatedAccountServiceExample.class);\n//\t\tbinder.bind(AuthorizingRealm.class, FederatedAccountsAuthorizingRealm.class).withId(\n//\t\t\tFederatedAccountsAuthorizingRealm.class.getSimpleName());\n\t}", "@Bean\n @ConditionalOnBean(DeviceManagementService.class)\n public HttpEndpoint deviceHttpEndpoint(final Vertx vertx, final DeviceManagementService service) {\n return new DelegatingDeviceManagementHttpEndpoint<DeviceManagementService>(vertx, service);\n }", "private void applicationHealthHandler(RoutingContext routingContext) {\n HttpServerResponse httpServerResponse = routingContext.response();\n httpServerResponse.setStatusCode(SUCCESS_CODE);\n httpServerResponse.end(\"myRetailApplication is up and running\");\n }", "public void onInCallServiceBind() {\n HiLog.info(LOG_LABEL, \"onInCallServiceBind.\", new Object[0]);\n this.mIsInCallServiceBinded = true;\n }", "@Override\n\tpublic void declarehealthy(Patient patient) {\n\t\tsf.getCurrentSession().evict(patient);\n\n\t\tpatient.setHealthy(true);\n\n\t\tsf.getCurrentSession().update(patient);\n\n\t}", "public interface ChannelHealthChecker {\n public static final ChannelHealthChecker ACTIVE = new ChannelHealthChecker() {\n public Future<Boolean> isHealthy(Channel channel) {\n return channel.eventLoop().newSucceededFuture(channel.isActive() ? Boolean.TRUE : Boolean.FALSE);\n }\n };\n\n Future<Boolean> isHealthy(Channel channel);\n}", "public ApplicationGatewayBackendHealthServerHealth health() {\n return this.health;\n }", "public void startWithoutChecks() {\n service.enableMonitoring();\n for (ServiceNotifier serviceNotifier : serviceNotifiers) {\n serviceNotifier.onStart();\n }\n }", "private void initService() {\n connection = new AppServiceConnection();\n Intent i = new Intent(this, AppService.class);\n boolean ret = bindService(i, connection, Context.BIND_AUTO_CREATE);\n Log.d(TAG, \"initService() bound with \" + ret);\n }", "void scanModulesHealth() {\n\t\t// activate main module action\n\t\tactivateMainModuleAction();\n\n\t\tlog.debug(\"Scanning modules.\");\n\t\tactionsFactory.executeAtomicModuleAction(this, \"metrics-check\", () -> iterateRegisteredModules(ACTIVITY_LABEL), false);\n\n\t\tif (!isWorking() || Objects.isNull(runnerFuture)) {\n\t\t\tlog.debug(\"Scanning is stopped.\");\n\t\t\treturn;\n\t\t}\n\t\tlog.debug(\"Rescheduling service for {} millis\", delay);\n\t\trunnerFuture = activityRunner.schedule(this::scanModulesHealth, delay, TimeUnit.MILLISECONDS);\n\t}", "@ApiOperation(value = \"Check the heart beat.\")\r\n @GetMapping(path = RestfulEndPoints.AUTHENTICATION_HEALTH_CHECK)\r\n public String healthCheck() {\r\n return \"Hello, I am 'Authentication Service' and running quite healthy at port: \"\r\n + env.getProperty(\"local.server.port\");\r\n }", "private <B, I> void _start() throws Exception\n {\n bootstrap.bindBean(ApplicationDescriptor.class, null, descriptor);\n\n // Bind the application context\n bootstrap.declareBean(ApplicationContext.class, null, InternalApplicationContext.class);\n\n //\n bootstrap.setFilter(new BeanFilter()\n {\n public <T> boolean acceptBean(Class<T> beanType)\n {\n if (beanType.getName().startsWith(\"org.juzu.\") || beanType.getAnnotation(Export.class) != null)\n {\n return false;\n }\n else\n {\n // Do that better with a meta annotation that describe Juzu annotation\n // that veto beans\n for (Method method : beanType.getMethods())\n {\n if (method.getAnnotation(View.class) != null || method.getAnnotation(Action.class) != null || method.getAnnotation(Resource.class) != null)\n {\n return false;\n }\n }\n return true;\n }\n }\n });\n\n // Bind the scopes\n for (Scope scope : Scope.values())\n {\n bootstrap.addScope(scope);\n }\n\n // Bind the controllers\n for (ControllerDescriptor controller : descriptor.getControllers())\n {\n bootstrap.declareBean(controller.getType(), null, (Class)null);\n }\n\n // Bind the templates\n for (TemplateDescriptor template : descriptor.getTemplates())\n {\n bootstrap.declareBean(Template.class, null, template.getType());\n }\n\n //\n Class<?> s = descriptor.getPackageClass();\n\n // Bind the bean bindings\n Bindings bindings = s.getAnnotation(Bindings.class);\n if (bindings != null)\n {\n for (Binding binding : bindings.value())\n {\n Class<?> type = binding.value();\n Class<?> implementation = binding.implementation();\n if (MetaProvider.class.isAssignableFrom(implementation))\n {\n MetaProvider mp = (MetaProvider)implementation.newInstance();\n Provider provider = mp.getProvider(type);\n bootstrap.bindProvider(type, null, provider);\n }\n else if (Provider.class.isAssignableFrom(implementation))\n {\n Method m = implementation.getMethod(\"get\");\n ArrayList<Annotation> qualifiers = null;\n for (Annotation annotation : m.getAnnotations())\n {\n if (annotation.annotationType().getAnnotation(Qualifier.class) != null)\n {\n if (qualifiers == null)\n {\n qualifiers = new ArrayList<Annotation>();\n }\n qualifiers.add(annotation);\n }\n }\n bootstrap.declareProvider(type, qualifiers, (Class)implementation);\n }\n else\n {\n if (implementation == Object.class)\n {\n implementation = null;\n }\n bootstrap.declareBean((Class)type, null, (Class)implementation);\n }\n }\n }\n\n //\n List<Class<? extends Plugin>> plugins = descriptor.getPlugins();\n\n // Declare the plugins\n for (Class<? extends Plugin> pluginType : plugins)\n {\n bootstrap.declareBean(pluginType, null, null);\n }\n\n //\n InjectManager<B, I> manager = bootstrap.create();\n\n //\n B contextBean = manager.resolveBean(ApplicationContext.class);\n I contextInstance = manager.create(contextBean);\n \n // Get plugins\n ArrayList<Plugin> p = new ArrayList<Plugin>();\n for (Class<? extends Plugin> pluginType : plugins)\n {\n B pluginBean = manager.resolveBean(pluginType);\n I pluginInstance = manager.create(pluginBean);\n Object o = manager.get(pluginBean, pluginInstance);\n p.add((Plugin)o);\n }\n\n //\n this.context = (InternalApplicationContext)manager.get(contextBean, contextInstance);\n }", "public void setHealth(int health)\r\n {\r\n this.health = health;\r\n }", "public void setHealth(int health) {\n this.health = health;\n }", "public void checkHealth() {\n if (health == 0) {\n this.texture = new Texture (\"soggy-\" + tex + \".png\");\n }\n }", "@Override\n\tprotected void configure() {\n\t\tbind(Tire.class);\n\t\tbind(Spoke.class);\n\n\t}", "public synchronized void bindService(BehaviourInferenceAlgorithmRegistry registry) {\n \tthis.registry = registry;\n logger.info(\"BehaviourInferenceAlgorithmRegistry service connected.\");\n }", "@Override\r\n\tpublic IBinder onBind(Intent intent) {\n\t\tSystem.out.println(\"Service onBind\");\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic IBinder onBind(Intent intent) {\n\t\tLog.i(TAG, \"service on bind\");\n\t\treturn mBinder;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n if (IManagerRegister.class.getName().equals(arg0.getAction())) {\n \t//Register for manager events\n return mRegisterServiceStub;\n } else if (IAgentRegister.class.getName().equals(arg0.getAction())){\n \t//Register for agent events\n \treturn aRegisterServiceStub;\n } else if (IAgentActionService.class.getName().equals(arg0.getAction())){\n \t//Use agent events\n \treturn aActionServiceStub;\n } else if (IPM_StoreActionService.class.getName().equals(arg0.getAction())) {\n\t\t\t//Use pm_store events\n\t\t\treturn pmActionServiceStub;\n\t\t} else if (IScannerActionService.class.getName().equals(arg0.getAction())) {\n\t\t\t//Use scanners events\n\t\t\treturn scannerServiceStub;\n } else return null;\n\t}", "@Override\n public HealthResult healthCheck()\n {\n return HealthResult.RESULT_HEALTHY;\n }", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n TimerService.TimerBinder binder = (TimerService.TimerBinder)service;\n mService = binder.getService();\n mBound = true;\n // Ensure the service is not in the foreground when bound\n mService.background();\n }", "protected void doBind(SocketAddress localAddress) throws Exception {}", "@ServiceMethod(returns = ReturnType.SINGLE)\n public void getHealthStatus() {\n getHealthStatusAsync().block();\n }", "public void connect() { \t\n \tbindService(IChatService.class, apiConnection);\n }", "@Override\n\tpublic final void bind(final Component hostComponent)\n\t{\n\t\tif (hostComponent == null)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"Argument hostComponent must be not null\");\n\t\t}\n\n\t\tif (this.component != null)\n\t\t{\n\t\t\tthrow new IllegalStateException(\"this kind of handler cannot be attached to \"\n\t\t\t\t\t+ \"multiple components; it is already attached to component \" + this.component\n\t\t\t\t\t+ \", but component \" + hostComponent + \" wants to be attached too\");\n\n\t\t}\n\n\t\tthis.component = hostComponent;\n\n\t\t// call the calback\n\t\tonBind();\n\t}", "public void onServiceConnected(ComponentName className, IBinder binder) {\n\t\tLog.i(this.getClass().getSimpleName(), \"onServiceConnected: \"\n\t\t\t\t+ className.toShortString());\n\n\t\tBtBinder b = (BtBinder) binder;\n\t\tbtService = b.getService();\n\t\tboolean is_set = btService.setListener(getBtListener());\n\n\t\tif (is_set) {\n\t\t\t// Get state if listener wasn't already attached.\n\t\t\tIntent serviceIntent = new Intent(this, BTService.class)\n\t\t\t\t\t.setAction(BTService.ACTION_GET_STATE);\n\t\t\tstartService(serviceIntent);\n\t\t}\n\n\t\tToast.makeText(BaseAct.this, R.string.btservice_connected,\n\t\t\t\tToast.LENGTH_SHORT).show();\n\t}", "public void testServiceAvailable() throws Exception {\r\n\t\tServiceReference serviceReference = \r\n\t\t\tgetContext().getServiceReference(\"org.osgi.service.jndi.JNDIProviderAdmin\");\r\n\t\tassertNotNull(\"JNDIProviderAdmin service was not published as expected\", serviceReference);\r\n\t\t\r\n\t\tJNDIProviderAdmin contextAdmin = \r\n\t\t\t(JNDIProviderAdmin) getContext().getService(serviceReference);\r\n\t\tassertNotNull(\"JNDIProviderAdmin service not available via factory\", contextAdmin);\r\n\t}", "@Override\n public IBinder onBind(Intent intent) {\n throw new UnsupportedOperationException(\"AutoUpdateService自动更新 - Not yet implemented\");\n }", "public void onServiceConnected(ComponentName componentName, IBinder binder) {\n \t\tlocalMonitor = (Monitor) binder;\n \t\tlocalMonitor.setListener(localListener);\n \t}", "public void configure(Binder binder) {\n ResourceBundle bundle = ResourceBundle.getBundle(Lookup.RESOURCE_BUNDLE);\n final String moduleName = bundle.getString(\"guice.module\");\n Module module = null;\n\n try {\n log.debug(\"Loading Guice Module: \" + moduleName);\n module = (Module) Class.forName(moduleName).newInstance();\n }\n catch (Exception ex) {\n throw new RuntimeException(\"Failed to instantiate Guice module for dependency injection\", ex);\n }\n\n binder.install(module);\n }", "@Override\n protected void doBind(SocketAddress localAddress) throws Exception {}", "@RequestMapping(value = \"/health\", method = RequestMethod.GET)\n public ResponseEntity<String> healthCheck() {\n\n return new ResponseEntity<String>(\"Up and Running\", HttpStatus.OK);\n }", "T bindTo(Object instance);", "@GetMapping(\"/health\")\n\t@ApiOperation(value = \"Checks the health of Authentication microservice\")\n\tpublic ResponseEntity<String> healthCheckup() {\n\t\tlog.info(\"Health Check for Authentication Microservice\");\n\t\tlog.info(\"health checkup ----->{}\", \"up\");\n\t\treturn new ResponseEntity<>(\"Up and running...\", HttpStatus.OK);\n\t}" ]
[ "0.582308", "0.5637887", "0.5624047", "0.5584248", "0.5581337", "0.55285335", "0.5505504", "0.5476783", "0.5449085", "0.53567684", "0.53342146", "0.5248189", "0.5222727", "0.52193695", "0.5154028", "0.5152735", "0.51415914", "0.5125568", "0.5123864", "0.5092971", "0.5057036", "0.50364757", "0.5031425", "0.50161016", "0.50161016", "0.50120836", "0.49925175", "0.49883652", "0.49802193", "0.4965527", "0.49497914", "0.49372932", "0.49315503", "0.49294543", "0.48763606", "0.48672548", "0.4865191", "0.48464563", "0.482602", "0.4757059", "0.47507802", "0.4743743", "0.47399154", "0.47351685", "0.47127602", "0.47115213", "0.47056797", "0.47007143", "0.4680167", "0.4680167", "0.46789682", "0.4675354", "0.46720988", "0.46517432", "0.4646987", "0.4646987", "0.46383014", "0.4635405", "0.4634724", "0.46347225", "0.46140507", "0.4608408", "0.46058494", "0.46053696", "0.45902935", "0.4587766", "0.45819792", "0.4571311", "0.45645094", "0.4563242", "0.45396975", "0.45348355", "0.45285672", "0.4525079", "0.45239532", "0.45131224", "0.45078933", "0.4498443", "0.44948703", "0.4494662", "0.44946116", "0.44933912", "0.44754145", "0.44754088", "0.4474772", "0.4469695", "0.4469366", "0.4466677", "0.44637924", "0.4463414", "0.44611424", "0.4456725", "0.4456249", "0.44527453", "0.44493428", "0.44469148", "0.44430926", "0.44337803", "0.442526", "0.44206458" ]
0.7209901
0
Service crashed or process was killed, onServiceConnected will be called. Don't need to rebind.
@Override @MainThread public void onServiceDisconnected(ComponentName name) { Slog.i(TAG, "Explicit health check service is disconnected " + name); synchronized (mLock) { mRemoteService = null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onServiceDisconnected(ComponentName className) {\n _boundService = null; \n Toast.makeText(TestServiceHolder.this, \"Service connected\", \n Toast.LENGTH_SHORT).show(); \n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n\n mBound = false;\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n serviceBound = false; // Indicates that the service is no longer bound.\n }", "public void onServiceDisconnected(ComponentName arg0) {\n\t\t\tmServiceBind = false;\n\t\t}", "@Override\r\n public void onServiceDisconnected(ComponentName className) {\r\n isObdServiceBound = false;\r\n }", "@Override\r\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\r\n\t\t\tRestartAppService.MyBinder mBinder = (RestartAppService.MyBinder) service;\r\n\t\t\tmBinder.startRestartTask(App.this);\r\n\t\t}", "public void onServiceDisconnected();", "@Override\n\t\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\t}", "@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\n\t\t\tYC_SERVICE_BINDER = null;\n\n\t\t\tbindService();\n\n\t\t}", "public void onServiceConnected();", "@Override\n\t\t\t\tpublic void onServiceDisconnected(ComponentName p1)\n\t\t\t\t{\n\t\t\t\t}", "@Override\n public void onServiceDisconnected(ComponentName name) {\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n }", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n System.out.println(\"绑定成功\");\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n }", "@Override\n\tprotected void handleServiceConnected()\n\t{\n\t\t\n\t}", "@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\t\t\t\n\t\t}", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n ConnectionService.ConnectionBinder binder = (ConnectionService.ConnectionBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n \n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n messengerService = null;\n messengerServiceBound = false;\n }", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n TimerService.TimerBinder binder = (TimerService.TimerBinder)service;\n mService = binder.getService();\n mBound = true;\n // Ensure the service is not in the foreground when bound\n mService.background();\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n LocalBinder binder = (LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "@Override\r\n\t\tpublic void onServiceDisconnected(ComponentName arg0) {\n\r\n\t\t}", "@Override\n\tpublic void onServiceDisconnected(ComponentName name) {\n\t\tLog.d(\"qwe\", \"StatsActivity.onServiceDisconnected()\");\n\t\tserviceMessenger = null;\n\t\tisServiceBinded = false;\n\t}", "@Override\r\n\t\t\tpublic void onServiceDisconnected(ComponentName name)\r\n\t\t\t{\n\t\t\t\tSystem.out.println(\"disconnect\");\r\n\t\t\t}", "@Override\n\t\t\tpublic void onServiceDisconnected(ComponentName name) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\t\t}", "@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\t\t}", "@Override\n\t\t\t\tpublic void onServiceConnected(ComponentName p1, IBinder p2)\n\t\t\t\t{\n\t\t\t\t}", "public void onServiceDisconnected(ComponentName className) {\n mBoundService = null;\n Log.i(TAG,\"Service DISconnected\");\n }", "@Override\n public void onServiceConnected(ComponentName name, IBinder service)\n {\n mEngagementService = IEngagementService.Stub.asInterface(service);\n\n /* We are not binding anymore */\n mBindingService = false;\n\n /* Send pending commands */\n for (Runnable cmd : mPendingCmds)\n cmd.run();\n mPendingCmds.clear();\n\n /* Schedule unbind (if not in session) */\n scheduleUnbind();\n }", "public void onServiceConnected(ComponentName className, IBinder service) {\n \tmServiceMessenger = new Messenger(service);\r\n // We want to monitor the service for as long as we are\r\n // connected to it.\r\n try {\r\n Message message = Message.obtain(null, WATCHiTServiceInterface.REGISTER_CLIENT);\r\n message.replyTo = mMessenger;\r\n mServiceMessenger.send(message);\r\n } catch (RemoteException e) {\r\n // In this case the service has crashed before we could even\r\n // do anything with it; we can count on soon being\r\n // disconnected (and then reconnected if it can be restarted)\r\n // so there is no need to do anything here.\r\n }\r\n // Toast.makeText(MainActivity.this, R.string.remote_service_bound, Toast.LENGTH_SHORT).show();\r\n }", "@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\n\t\t}", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n Log.d(\"service\", \"onServiceConnected() \" + name.getClassName());\n mMyServ = ((MyService.LocalBinder) service).getService();\n }", "public void onServiceDisconnected(ComponentName className) {\n\t\t\tmBoundService = null;\r\n\t\t\t// Toast.makeText(MainActivity.this, \"Service disconnected.\", Toast.LENGTH_SHORT).show();\r\n\t\t}", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n BinderService.LocalBinder binder = (BinderService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "private void bindService() {\n synchronized (mLock) {\n if (!mEnabled || mConnection != null || mRemoteService != null) {\n if (!mEnabled) {\n Slog.i(TAG, \"Not binding to service, service disabled\");\n } else if (mRemoteService != null) {\n Slog.i(TAG, \"Not binding to service, service already connected\");\n } else {\n Slog.i(TAG, \"Not binding to service, service already connecting\");\n }\n return;\n }\n ComponentName component = getServiceComponentNameLocked();\n if (component == null) {\n Slog.wtf(TAG, \"Explicit health check service not found\");\n return;\n }\n\n Intent intent = new Intent();\n intent.setComponent(component);\n mConnection = new ServiceConnection() {\n @Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n Slog.i(TAG, \"Explicit health check service is connected \" + name);\n initState(service);\n }\n\n @Override\n @MainThread\n public void onServiceDisconnected(ComponentName name) {\n // Service crashed or process was killed, #onServiceConnected will be called.\n // Don't need to re-bind.\n Slog.i(TAG, \"Explicit health check service is disconnected \" + name);\n synchronized (mLock) {\n mRemoteService = null;\n }\n }\n\n @Override\n public void onBindingDied(ComponentName name) {\n // Application hosting service probably got updated\n // Need to re-bind.\n Slog.i(TAG, \"Explicit health check service binding is dead. Rebind: \" + name);\n unbindService();\n bindService();\n }\n\n @Override\n public void onNullBinding(ComponentName name) {\n // Should never happen. Service returned null from #onBind.\n Slog.wtf(TAG, \"Explicit health check service binding is null?? \" + name);\n }\n };\n\n mContext.bindServiceAsUser(intent, mConnection,\n Context.BIND_AUTO_CREATE, UserHandle.of(UserHandle.USER_SYSTEM));\n Slog.i(TAG, \"Explicit health check service is bound\");\n }\n }", "@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\tib = service;\n\t\t\tSystem.out.println(\"DEBUG>>>ServiceConnection.\");\n\t\t}", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n MyService.LocalBinder binder = (MyService.LocalBinder) service;\n myService = binder.getService();\n isBound = true;\n\n }", "@Override\r\n\t\t\tpublic void onServiceConnected(ComponentName name, IBinder service)\r\n\t\t\t{\n\t\t\t\tSystem.out.println(\"connect\");\r\n\t\t\t\tService_DealCloseReport mService = ((myBinder)service).getService();\r\n\t\t\t}", "@Override\n public void onServiceDisconnected(ComponentName name) {\n mService = null;\n mKillBtn.setEnabled(false);\n mCallbackText.setText(\"Disconnected\");\n Log.i(TAG, \"Disconnected form remote service\");\n }", "@Override\n public void onBindingDied(ComponentName name) {\n Slog.i(TAG, \"Explicit health check service binding is dead. Rebind: \" + name);\n unbindService();\n bindService();\n }", "public void onServiceConnected(ComponentName name, IBinder binder) {\n boolean added = false;\n ManagedServiceInfo info = null;\n synchronized (ManagedServices.this.mMutex) {\n ManagedServices.this.mServicesRebinding.remove(str2);\n if (ManagedServices.this.mServicesBinding.contains(str2)) {\n Slog.d(ManagedServices.this.TAG, \"onServiceConnected, just remove the servicesBindingTag and add service.\");\n ManagedServices.this.mServicesBinding.remove(str2);\n try {\n this.mService = ManagedServices.this.asInterface(binder);\n info = ManagedServices.this.newServiceInfo(this.mService, name, i2, z, this, targetSdkVersion);\n binder.linkToDeath(info, 0);\n added = ManagedServices.this.mServices.add(info);\n } catch (RemoteException e) {\n }\n } else {\n Slog.d(ManagedServices.this.TAG, \"service has been connected, just return.\");\n ManagedServices.this.mContext.unbindService(this);\n }\n }\n }", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n\n messengerService = new Messenger(service);\n messengerServiceBound = true;\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n HomeActivityWatcherService.MyBinder binder = (HomeActivityWatcherService.MyBinder) service;\n mWatcherService = binder.getService();\n mBound = true;\n }", "public void onServiceConnected(ComponentName className,\n\t\t\t\tIBinder service) {\n\t\t\tLocalBinder binder = (LocalBinder) service;\n\t\t\tconnService = binder.getService();\n\t\t\tconnServiceBound = true;\n\t\t}", "public void onServiceDisconnected(ComponentName className) {\n\t\t\tLog.i(LOG_TAG, \"onService connected......method\");\n\t\t\tmBoundService = null;\n\t\t\t// Toast.makeText(ChatActivity.this, \"Disconnected to service\",\n\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t}", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n ServerService.LocalBinder binder = (ServerService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\tLocalBinder binder = (LocalBinder)service;\n\t\t\tmService = binder.getService();\n\t\t\t//Toast.makeText(SyncServiceActivity.this, \"onServiceConnected=>\"+mService, Toast.LENGTH_SHORT).show();\n\t\t\t\n\t\t}", "public void onServiceConnected(ComponentName className, IBinder service) {\n mService = new Messenger(service);\n mBound = true;\n }", "public void onServiceConnected(ComponentName className, IBinder service) {\n mService = new Messenger(service);\n mBound = true;\n }", "public void onServiceDisconnected(ComponentName className) {\n\t\t Log.e(MainActivity.ACTIVITY_TAG, \"Service has unexpectedly disconnected\");\n\t\t mIRemoteService = null;\n\t\t // 注意只有在极端的服务端crash的情况下,该函数才会被调用\n\t \t Log.v(MainActivity.ACTIVITY_TAG,\"kevin ---> client:ServiceDisconnect\"); \n\t }", "void doBindService() {\n\t\tbindService(new Intent(this, eidService.class), mConnection, Context.BIND_AUTO_CREATE);\n//\t\tLog.i(\"Convert\", \"At doBind2.\");\n\n\t\tmIsBound = true;\n\t\n\t\tif (mService != null) {\n//\t\t\tLog.i(\"Convert\", \"At doBind3.\");\n\t\t\ttry {\n\t\t\t\t//Request status update\n\t\t\t\tMessage msg = Message.obtain(null, eidService.MSG_UPDATE_STATUS, 0, 0);\n\t\t\t\tmsg.replyTo = mMessenger;\n\t\t\t\tmService.send(msg);\n\t\t\t\tLog.i(\"Convert\", \"At doBind4.\");\n\t\t\t\t//Request full log from service.\n\t\t\t\tmsg = Message.obtain(null, eidService.MSG_UPDATE_LOG_FULL, 0, 0);\n\t\t\t\tmService.send(msg);\n\t\t\t} catch (RemoteException e) {}\n\t\t}\n//\t\tLog.i(\"Convert\", \"At doBind5.\");\n\t}", "public void onServiceDisconnected(ComponentName className) {\n mService = null;\n mBound = false;\n }", "public void onServiceDisconnected(ComponentName className) {\n mService = null;\n mBound = false;\n }", "@Override\n public IBinder onBind(Intent intent) {\n if(DEBUG)Log.d(TAG, \"onBind\");\n serviceConnected = true;\n Toast.makeText(getApplicationContext(), \"binding\", Toast.LENGTH_SHORT).show();\n return mMessenger.getBinder();\n }", "@Override\n public void onServiceDisconnected(ComponentName name)\n {\n mEngagementService = null;\n\n /*\n * Simulate disconnected intent targeting the current package name since the engagement\n * process has been killed.\n */\n Intent disconnectedIntent = new Intent(\n \"com.microsoft.azure.engagement.intent.action.DISCONNECTED\");\n disconnectedIntent.setPackage(mContext.getPackageName());\n mContext.sendBroadcast(disconnectedIntent);\n\n /* Mark we are auto re-binding to it */\n mBindingService = true;\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n TranscriptDownService.LocalBinder binder = (TranscriptDownService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "@Override\n public void onServiceDisconnected(ComponentName className) {\n Log.d(TAG, className.toString() + \" service is unbound\");\n }", "public void onServiceConnected(ComponentName className, IBinder service) {\n\t mBoundAutopilotService = new Messenger(service);\n\t //mCallbackText.setText(\"Attached.\");\n\n\t // We want to monitor the service for as long as we are\n\t // connected to it.\n\t try {\n\t Message msg = Message.obtain(null, autopilotService.MSG_REGISTER_CLIENT);\n\t msg.replyTo = mMessenger;\n\t mBoundAutopilotService.send(msg);\n\n\t // Give it some value as an example.\n\t //msg = Message.obtain(null, autopilotService.MSG_ECHO, this.hashCode(), 0);\n\t //mBoundAutopilotService.send(msg);\n\t msg = Message.obtain(null, autopilotService.MSG_IS_SERVICE_RUNNING, 0, 0);\n\t mBoundAutopilotService.send(msg);\n\t Log.i(\"anemoi\", \"Here 0\");\n\t } catch (RemoteException e) {\n\t // In this case the service has crashed before we could even\n\t // do anything with it; we can count on soon being\n\t // disconnected (and then reconnected if it can be restarted)\n\t // so there is no need to do anything here.\n\t }\n\t Log.i(\"anemoi\", \"Buuu\");\n\t }", "@Override\n public void onServiceDisconnected(ComponentName componentName) {\n //Log.e(\"SERVICE_DISCONNECTED\", \"Disconnecting service\");\n boundNewsService = null;\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n LocalService.LocalBinder binder = (LocalService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n LocalService.LocalBinder binder = (LocalService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\tmBinder = (Stub) service;\n\t\t\tLog.d(TAG, \"mBinder init\");\n\t\t}", "public void onServiceConnected(ComponentName className, IBinder service) {\n\t\t\tmBoundService = ((LocalService.LocalBinder) service).getService();\r\n\r\n\t\t\t// Wenn während des Setups der Service noch nicht fertig geladen\r\n\t\t\t// ist, wird solange Warte-Overlay angezeigt\r\n\t\t\t// Wenn der Service fertig ist wird das Overlay ausgeblendet\r\n\r\n\t\t\t// if (OverlayActivity.isCreated) {\r\n\t\t\t// OverlayActivity.getInstance().dismiss();\r\n\t\t\t// }\r\n\t\t\tSetupSearchDevicesFragment fragment = (SetupSearchDevicesFragment) getFragmentById(\"SetupSearchDevicesFragment\");\r\n\t\t\tif (fragment.isVisible()) {\r\n\t\t\t\tfragment.initViewBluetooth();\r\n\t\t\t}\r\n\r\n\t\t\t// Tell the user about this for our demo.\r\n\t\t\tLog.i(TAG, \"Service connected with app...\");\r\n\t\t\t// Toast.makeText(MainActivity.this, \"Service connected.\", Toast.LENGTH_SHORT).show();\r\n\r\n\t\t\t// Verbinde mit gespeichertem Device (falls noch keine Verbindung\r\n\t\t\t// besteht)\r\n\t\t\tif (mSharedPrefs.getConnectivityType() == 1) { // BEI BT\r\n\r\n\t\t\t\tfinal ConnectionInterface connection = mBoundService.getConnection();\r\n\t\t\t\tif (connection != null) {\r\n\t\t\t\t\tif (!connection.isConnected()) {\r\n\r\n\t\t\t\t\t\t// OnConnectedListener\r\n\t\t\t\t\t\tconnection.setOnConnectedListener(new OnConnectedListener() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onConnectedListener(String deviceName) {\r\n\r\n\t\t\t\t\t\t\t\tconnection.registerDisconnectHandler();\r\n\r\n\t\t\t\t\t\t\t\tif (mSharedPrefs.getDeviceMode() == 1) { // ELTERN\r\n\t\t\t\t\t\t\t\t\t// HELLO Nachricht senden\r\n\t\t\t\t\t\t\t\t\tString msg = mContext.getString(R.string.BABYFON_MSG_CONNECTION_HELLO) + \";\"\r\n\t\t\t\t\t\t\t\t\t\t\t+ mSharedPrefs.getHostAddress() + \";\" + mSharedPrefs.getPassword();\r\n\t\t\t\t\t\t\t\t\tconnection.sendMessage(msg);\r\n\r\n\t\t\t\t\t\t\t\t\tmSharedPrefs.setRemoteOnlineState(true);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tif (mSharedPrefs.getDeviceMode() == 1) { // ELTERN\r\n\t\t\t\t\t\t\tif (mSharedPrefs.getRemoteAddress() != null) { // Gespeichertes Gerät\r\n\t\t\t\t\t\t\t\t// Verbinde\r\n\t\t\t\t\t\t\t\tmBoundService.connectTo(mSharedPrefs.getRemoteAddress());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if (mSharedPrefs.getDeviceMode() == 0) { // BABY\r\n\t\t\t\t\t\t\t// Warte auf Verbindung\r\n\t\t\t\t\t\t\tmBoundService.startServer();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}", "@Override\n public void onServiceConnected(ComponentName classname, IBinder obj) {\n Log.i(this.getClass().getName(), \"ServiceConnection\");\n mService = IAisinoService.Stub.asInterface(obj);\n }", "void doBindService() {\n\n if (bindService(new Intent(MainActivity.this, PositionService.class),\n mConnection, Context.BIND_AUTO_CREATE)) {\n mBound = true;\n } else {\n Log.e(\"MY_APP_TAG\", \"Error: The requested service doesn't \" +\n \"exist, or this client isn't allowed access to it.\");\n }\n }", "public void onServiceDisconnected(ComponentName className) {\n\t\t\t\tservice = null;\n\t\t\t\tLog.d(\"OpenXC binding\", \"openXC service disconnected\");\n\t\t\t}", "public void onServiceDisconnected(ComponentName param1) {\n }", "public void onServiceConnected(ComponentName arg0, IBinder service) {\n\t\t\tLog.d(\"ShimmerService\", \"Service connected\");\n\t\t\tLocalBinder binder = (ShimmerService.LocalBinder) service;\n\t\t\tmService = binder.getService();\n\t\t\tmServiceBind = true;\n\t\t\tmService.setHandlerMain(mHandler);\n\t\t\t// update the view\n\t\t}", "public void onServiceDisconnected(ComponentName className) {\n serverMessenger = null;\n ToastUtil.toast(\"Remote service disconnected\");\n\n IDGenerator.reset();\n\n //通知上层连接变化\n try {\n mafContext.networkChange(NetChannelStatus.Disconnected);\n } catch (RuntimeException e) {\n LogUtil.e(TAG, e);\n }\n\n GlobalTimerTasks.getInstance().removeAllTask();\n bind();\n }", "public void onServiceDisconnected(ComponentName className) {\n \tmServiceMessenger = null;\r\n setIsBound(false);\r\n }", "public void onServiceConnected(ComponentName param1, IBinder param2) {\n }", "public void onServiceDisconnected(ComponentName name) {\n Log.d(TAG, \"###onServiceDisconnected\" );\n\n JSONObject json = new JSONObject();\n try {\n json.put( \"type\", \"onServiceDisconnected\" );\n } catch (JSONException e) {\n e.printStackTrace();\n }\n sendJsonDataToCallback( json );\n\n mStreamingService = null;\n mStreamingServiceBound = false;\n }", "@Override\n\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\tserviceMessenger = new Messenger(service);\n\t\tsendMessageToService(ConnectionService.GET_MESSENGER);\n\t\tsendMessageToService(ConnectionService.CONNECT, host, port, key,\n\t\t\t\tinterval);\n\t}", "@Override\n public void onServiceConnected(ComponentName className, IBinder service) {\n OpenVPNService.LocalBinder binder = (OpenVPNService.LocalBinder) service;\n mService = binder.getService();\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n if (service != null)\n service.setListener(null);\n service = null;\n }", "void doBindService() {\r\n\r\n bindService(new Intent(MainActivity.this, CurrentLocationUtil.class),\r\n connection, // ServiceConnection object\r\n Context.BIND_AUTO_CREATE); // Create service if not\r\n\r\n isBound = true;\r\n\r\n }", "protected void onServiceConnectedExtended(ComponentName className,\n IBinder service) {\n mAllowedToBind = true;\n\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n Log.d(\"service\", \"onServiceDisconnected()\" + name.getClassName());\n }", "public void onServiceConnected(ComponentName className, IBinder service) {\n\t\t mIRemoteService = IRemoteService.Stub.asInterface(service);\n\t \t Log.v(MainActivity.ACTIVITY_TAG,\"kevin ---> client:ServiceConnect\"); \n\t\t try {\n\t\t\t int id = mIRemoteService.getPid();\n \t\t\t showMessage(Integer.toString(id));\n\t\t } catch (RemoteException e) {\n\t\t\t e.printStackTrace();\n\t\t }\n\t }", "public void doBindService() {\n\r\n\t\tIntent serviceIntent = new Intent(MainActivity.this, LocalService.class);\r\n\r\n\t\tstartService(serviceIntent);\r\n\t\t// bindService(serviceIntent, mServiceConnection, 0);\r\n\t\tbindService(serviceIntent, mServiceConnection, BIND_AUTO_CREATE);\r\n\r\n\t\tmIsBound = true;\r\n\t}", "private void bindAudioService() {\n if (audioServiceBinder == null) {\n Intent intent = new Intent(MainActivity.this, AudioService.class);\n\n // Below code will invoke serviceConnection's onServiceConnected method.\n bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE);\n }\n }", "public void processLiveCallWhenServiceDisconnected(ComponentName componentName) {\n if (hasLiveCalls()) {\n HiLog.info(LOG_LABEL, \"processLiveCallWhenServiceDisconnected, reconnect.\", new Object[0]);\n connect();\n }\n }", "@Override\n\tpublic void onServiceDisconnected(ComponentName name)\n\t{\n\t\tmInterface = null;\n\t}", "void doAccelBindService() {\n\t\tbindService(accelIntentDelay, accelConnection, Context.BIND_AUTO_CREATE);\n\t\taccelIsBound = true;\n\t}", "@Override\n public void onBindingDied(ComponentName name) {\n mService = null;\n hostConnection = null;\n }", "@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\n\t\t\tYC_SERVICE_BINDER = IYCService.Stub.asInterface(service);\n\n\t\t}", "public void onServiceDisconnected(ComponentName className) {\n Log.e(\"Activity\", \"Service has unexpectedly disconnected\");\n wsService = null;\n }", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n mSecondService = ISecondary.Stub.asInterface(service);\n mKillBtn.setEnabled(true);\n }", "private void bindNcService() {\n Intent intent = new Intent(\"com.miui.notification.NOTIFICATION_CENTER\");\n intent.setPackage(\"com.miui.notification\");\n this.mHasBind = this.mContext.bindServiceAsUser(intent, this.mNcConn, 1, UserHandle.CURRENT);\n String str = TAG;\n Log.i(str, \"NcService bind: \" + this.mHasBind);\n this.mBindTimes = this.mBindTimes + 1;\n if (!this.mHasBind && this.mBindTimes <= 3) {\n this.mHandler.removeMessages(10002);\n this.mHandler.sendEmptyMessageDelayed(10002, (long) DEFAULT_INTERVAL);\n }\n }", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n RemoteControlService.LocalBinder binder = (RemoteControlService.LocalBinder) service;\n binder.getService( ).startIfNotStarted( );\n }", "public void onServiceDisconnected(ComponentName className) {\n\t mBoundAutopilotService = null;\n\t //mCallbackText.setText(\"Disconnected.\");\n\t }", "@Override\n\tpublic void onRebind(Intent intent) {\n\t\tLog.i(TAG, \"service on rebind\");\n\t\tsuper.onRebind(intent);\n\t}", "public void onServiceDisconnected(ComponentName className) {\n \t\t\tmService = null;\n \t\t}", "@Override\n public void onServiceConnected() {\n forceUpdate();\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n bleService.disconnect();\n bleService = null;\n }" ]
[ "0.7565787", "0.74734086", "0.74553347", "0.73770124", "0.73732454", "0.73376554", "0.7217009", "0.72051793", "0.7188766", "0.71839035", "0.7162605", "0.7123844", "0.7123844", "0.7116934", "0.71096236", "0.71096236", "0.70866597", "0.7082866", "0.7082866", "0.7078959", "0.7068233", "0.70654833", "0.7060906", "0.7060816", "0.70594585", "0.70575076", "0.7012854", "0.7011056", "0.7010774", "0.6997534", "0.6997534", "0.6978094", "0.6973921", "0.69693786", "0.69282347", "0.6925767", "0.6924642", "0.6919584", "0.691825", "0.68906283", "0.68794864", "0.6870738", "0.686656", "0.6855296", "0.6851809", "0.6848376", "0.6842663", "0.68113047", "0.6800773", "0.67857516", "0.67838675", "0.6740451", "0.67385554", "0.67385554", "0.6717237", "0.6714266", "0.6702839", "0.6702839", "0.6685738", "0.668054", "0.6676486", "0.66664606", "0.66640806", "0.66626215", "0.6659424", "0.6659424", "0.66432375", "0.660381", "0.65882474", "0.65829885", "0.65611273", "0.6559491", "0.65441084", "0.6515887", "0.651171", "0.65072614", "0.6506051", "0.6504873", "0.65026385", "0.6497476", "0.64919883", "0.64881444", "0.64847124", "0.648453", "0.6482725", "0.6482183", "0.6462389", "0.64572686", "0.6455532", "0.6453395", "0.6452592", "0.64444005", "0.64204955", "0.6411621", "0.6409718", "0.63936126", "0.63862574", "0.63795424", "0.6372028", "0.63597673" ]
0.710057
16
Application hosting service probably got updated Need to rebind.
@Override public void onBindingDied(ComponentName name) { Slog.i(TAG, "Explicit health check service binding is dead. Rebind: " + name); unbindService(); bindService(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void reconfigureService() {\n }", "void doBindService() {\n\t\tbindService(new Intent(this, eidService.class), mConnection, Context.BIND_AUTO_CREATE);\n//\t\tLog.i(\"Convert\", \"At doBind2.\");\n\n\t\tmIsBound = true;\n\t\n\t\tif (mService != null) {\n//\t\t\tLog.i(\"Convert\", \"At doBind3.\");\n\t\t\ttry {\n\t\t\t\t//Request status update\n\t\t\t\tMessage msg = Message.obtain(null, eidService.MSG_UPDATE_STATUS, 0, 0);\n\t\t\t\tmsg.replyTo = mMessenger;\n\t\t\t\tmService.send(msg);\n\t\t\t\tLog.i(\"Convert\", \"At doBind4.\");\n\t\t\t\t//Request full log from service.\n\t\t\t\tmsg = Message.obtain(null, eidService.MSG_UPDATE_LOG_FULL, 0, 0);\n\t\t\t\tmService.send(msg);\n\t\t\t} catch (RemoteException e) {}\n\t\t}\n//\t\tLog.i(\"Convert\", \"At doBind5.\");\n\t}", "@Override\n\tpublic void onRebind(Intent intent) {\n\t\tLog.i(TAG, \"service on rebind\");\n\t\tsuper.onRebind(intent);\n\t}", "void doAccelBindService() {\n\t\tbindService(accelIntentDelay, accelConnection, Context.BIND_AUTO_CREATE);\n\t\taccelIsBound = true;\n\t}", "@Override\n public IBinder onBind(Intent intent) {\n throw new UnsupportedOperationException(\"AutoUpdateService自动更新 - Not yet implemented\");\n }", "void doBindService() {\n\n if (bindService(new Intent(MainActivity.this, PositionService.class),\n mConnection, Context.BIND_AUTO_CREATE)) {\n mBound = true;\n } else {\n Log.e(\"MY_APP_TAG\", \"Error: The requested service doesn't \" +\n \"exist, or this client isn't allowed access to it.\");\n }\n }", "void doBindService() {\r\n\r\n bindService(new Intent(MainActivity.this, CurrentLocationUtil.class),\r\n connection, // ServiceConnection object\r\n Context.BIND_AUTO_CREATE); // Create service if not\r\n\r\n isBound = true;\r\n\r\n }", "@Override\n\t\t\t\t\t\t\tpublic void appUpdateFaild() {\n\t\t\t\t\t\t\t\thandler.sendEmptyMessage(1);\n\t\t\t\t\t\t\t}", "private void rebind() {\n\t\tnotaryServers = Client.locateNotaries();\n\t\tconnectToUsers();\n\t\t//lookUpUsers();\n\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void appUpdateBegin(String newAppNetworkUrl) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "@Override\n protected void appStart() {\n }", "private void bindService() {\n synchronized (mLock) {\n if (!mEnabled || mConnection != null || mRemoteService != null) {\n if (!mEnabled) {\n Slog.i(TAG, \"Not binding to service, service disabled\");\n } else if (mRemoteService != null) {\n Slog.i(TAG, \"Not binding to service, service already connected\");\n } else {\n Slog.i(TAG, \"Not binding to service, service already connecting\");\n }\n return;\n }\n ComponentName component = getServiceComponentNameLocked();\n if (component == null) {\n Slog.wtf(TAG, \"Explicit health check service not found\");\n return;\n }\n\n Intent intent = new Intent();\n intent.setComponent(component);\n mConnection = new ServiceConnection() {\n @Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n Slog.i(TAG, \"Explicit health check service is connected \" + name);\n initState(service);\n }\n\n @Override\n @MainThread\n public void onServiceDisconnected(ComponentName name) {\n // Service crashed or process was killed, #onServiceConnected will be called.\n // Don't need to re-bind.\n Slog.i(TAG, \"Explicit health check service is disconnected \" + name);\n synchronized (mLock) {\n mRemoteService = null;\n }\n }\n\n @Override\n public void onBindingDied(ComponentName name) {\n // Application hosting service probably got updated\n // Need to re-bind.\n Slog.i(TAG, \"Explicit health check service binding is dead. Rebind: \" + name);\n unbindService();\n bindService();\n }\n\n @Override\n public void onNullBinding(ComponentName name) {\n // Should never happen. Service returned null from #onBind.\n Slog.wtf(TAG, \"Explicit health check service binding is null?? \" + name);\n }\n };\n\n mContext.bindServiceAsUser(intent, mConnection,\n Context.BIND_AUTO_CREATE, UserHandle.of(UserHandle.USER_SYSTEM));\n Slog.i(TAG, \"Explicit health check service is bound\");\n }\n }", "void doBindService() {\n final Intent serviceIntent = new Intent(Testing.this, UploadService.class);\n bindService(serviceIntent, mConnection, Context.BIND_AUTO_CREATE);\n mIsBound = true;\n }", "public void bind() {\n\n Intent startintent = new Intent(context, MafService.class);\n startintent.setAction(\"com.baidu.maf.service\");\n\n if(ServiceControlUtil.showInSeperateProcess(context)) {\n try {\n context.startService(startintent);\n } catch (Exception e) {\n LogUtil.e(TAG, \"fail to startService\", e);\n }\n }\n\n //Intent intent = new Intent(InAppApplication.getInstance().getContext(), OutAppService.class);\n\n\n boolean result =\n context.bindService(startintent, mConnection, Context.BIND_AUTO_CREATE);\n\n LogUtil.printMainProcess(\"Service bind. reslut = \" + result);\n LogUtil.printMainProcess(\"bind. serverMessenger = \" + serverMessenger);\n mIsBound = result;\n }", "synchronized void m6640c() {\n if (!m6637a()) {\n this.f5128e = null;\n this.f5127d = true;\n try {\n this.f5126c.unbindService(this);\n } catch (IllegalArgumentException e) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Error unbinding service: \");\n stringBuilder.append(e.getMessage());\n Log.w(\"FJD.ExternalReceiver\", stringBuilder.toString());\n }\n }\n return;\n }", "void rebind() {\n // Get the package name for the carrier app\n List<String> carrierPackageNames =\n TelephonyManager.from(mContext).getCarrierPackageNamesForIntentAndPhone(\n new Intent(CarrierService.CARRIER_SERVICE_INTERFACE), phoneId\n );\n\n if (carrierPackageNames == null || carrierPackageNames.size() <= 0) {\n log(\"No carrier app for: \" + phoneId);\n // Unbind after a delay in case this is a temporary blip in carrier privileges.\n unbind(false /* immediate */);\n return;\n }\n\n log(\"Found carrier app: \" + carrierPackageNames);\n String candidateCarrierPackage = carrierPackageNames.get(0);\n // If we are binding to a different package, unbind immediately from the current one.\n if (!TextUtils.equals(carrierPackage, candidateCarrierPackage)) {\n unbind(true /* immediate */);\n }\n\n // Look up the carrier service\n Intent carrierService = new Intent(CarrierService.CARRIER_SERVICE_INTERFACE);\n carrierService.setPackage(candidateCarrierPackage);\n\n ResolveInfo carrierResolveInfo = mContext.getPackageManager().resolveService(\n carrierService, PackageManager.GET_META_DATA);\n Bundle metadata = null;\n String candidateServiceClass = null;\n if (carrierResolveInfo != null) {\n metadata = carrierResolveInfo.serviceInfo.metaData;\n candidateServiceClass =\n carrierResolveInfo.getComponentInfo().getComponentName().getClassName();\n }\n\n // Only bind if the service wants it\n if (metadata == null ||\n !metadata.getBoolean(\"android.service.carrier.LONG_LIVED_BINDING\", false)) {\n log(\"Carrier app does not want a long lived binding\");\n unbind(true /* immediate */);\n return;\n }\n\n if (!TextUtils.equals(carrierServiceClass, candidateServiceClass)) {\n // Unbind immediately if the carrier service component has changed.\n unbind(true /* immediate */);\n } else if (connection != null) {\n // Component is unchanged and connection is up - do nothing, but cancel any\n // scheduled unbinds.\n cancelScheduledUnbind();\n return;\n }\n\n carrierPackage = candidateCarrierPackage;\n carrierServiceClass = candidateServiceClass;\n\n log(\"Binding to \" + carrierPackage + \" for phone \" + phoneId);\n\n // Log debug information\n bindCount++;\n lastBindStartMillis = System.currentTimeMillis();\n\n connection = new CarrierServiceConnection();\n\n String error;\n try {\n if (mContext.bindServiceAsUser(carrierService, connection,\n Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE,\n mHandler, Process.myUserHandle())) {\n return;\n }\n\n error = \"bindService returned false\";\n } catch (SecurityException ex) {\n error = ex.getMessage();\n }\n\n log(\"Unable to bind to \" + carrierPackage + \" for phone \" + phoneId +\n \". Error: \" + error);\n unbind(true /* immediate */);\n }", "private void initService() {\n connection = new AppServiceConnection();\n Intent i = new Intent(this, AppService.class);\n boolean ret = bindService(i, connection, Context.BIND_AUTO_CREATE);\n Log.d(TAG, \"initService() bound with \" + ret);\n }", "private boolean checkServiceIsRunning(){\r\n if (CurrentLocationUtil.isRunning()){\r\n doBindService();\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "protected void onAppsChanged() {\n\t\t\n\t}", "private void bind()\n {\n /* Cancel unbind */\n cancelUnbind();\n\n /* Bind to the Engagement service if not already done or being done */\n if (mEngagementService == null && !mBindingService)\n {\n mBindingService = true;\n mContext.bindService(EngagementAgentUtils.getServiceIntent(mContext), mServiceConnection,\n BIND_AUTO_CREATE);\n }\n }", "public void doBindService() {\n\r\n\t\tIntent serviceIntent = new Intent(MainActivity.this, LocalService.class);\r\n\r\n\t\tstartService(serviceIntent);\r\n\t\t// bindService(serviceIntent, mServiceConnection, 0);\r\n\t\tbindService(serviceIntent, mServiceConnection, BIND_AUTO_CREATE);\r\n\r\n\t\tmIsBound = true;\r\n\t}", "public final void bind(App app)\n\t{\n\t\tthis.app = app;\n\t}", "public static void refreshDomain()\n\t{\n\t API_APP_INFO = \"https://\"+DOMAIN+\"/api/a/iGET/app/oinfo?app_key=\";\n\t API_LOG_DEVICE_INFO = \"https://\"+DOMAIN+\"/api/a/POST/mobile/LogInstall?type=0\";\n\t API_GCM_REGISTER = \"https://\"+DOMAIN+\"/api/a/POST/Push/RegisterDevice\";\n\t API_EXCHANGE_TOKEN = \"https://\"+DOMAIN+\"/api/a/GET/me/exchangetoken?\";\n\t}", "public void run() throws Exception {\n try{\n dataService.getServiceBinding(key);\n logger.log(Level.INFO, \"[META SERVICE] got backend binding\");\n // does not need to be rebuilt\n rebuildDB = false;\n }\n catch(Exception e){\n // binding was not present. rebuild DB, set binding.\n logger.log(Level.INFO, \"[META SERVICE] did not get backend binding: \" + e);\n\n rebuildDB = true;\n }\n logger.log(Level.INFO, \"[META SERVICE] completed backend check\");\n }", "static void invalidateBinderCaches() {\n DevicePolicyManager.invalidateBinderCaches();\n }", "protected void onBind()\n\t{\n\t}", "private void handleStore() throws ApplicationException\n {\n try\n {\n getService().reload();\n }\n catch (Exception e)\n {\n Logger.error(\"unable to restart scripting service\",e);\n throw new ApplicationException(i18n.tr(\"Fehler beim Laden der Scripts: {0}\",e.getMessage()));\n }\n }", "public void bindService() {\n mIntent = new Intent();\n mIntent.setPackage(\"com.eebbk.studyos.themes\");\n mIntent.setAction(THEME_SERVICE_ACTION);\n mContext.bindService(mIntent,mConnection, Context.BIND_AUTO_CREATE);\n }", "@Override\n public void onNullBinding(ComponentName name) {\n Slog.wtf(TAG, \"Explicit health check service binding is null?? \" + name);\n }", "public void serviceUpdated(BNode n) {\n }", "public synchronized void updateHosts() throws Exception {\r\n getHelper().update();\r\n }", "@Override\r\n\tpublic IBinder onBind(Intent intent) {\n\t\tSystem.out.println(\"Service onBind\");\r\n\t\treturn null;\r\n\t}", "@Override\n public void onServiceDisconnected(ComponentName name) {\n serviceBound = false; // Indicates that the service is no longer bound.\n }", "@Override\n public void onApplicationEvent(ApplicationEvent event) {\n if (event instanceof ContextLoadedEvent) {\n //JD: look up GeoServer and register now rather than use constructor injection\n // to avoid circular dependency during service loading startup\n geoServer = GeoServerExtensions.bean(GeoServer.class, \n ((ContextLoadedEvent) event).getApplicationContext());\n listener = new ConfigurationListenerAdapter() {\n @Override\n public void handleServiceChange(ServiceInfo service, List<String> propertyNames, \n List<Object> oldValues, List<Object> newValues) {\n if (service instanceof WPSInfo) {\n resetProcessMappings();\n }\n }\n };\n geoServer.addListener(listener);\n }\n if (event instanceof ContextRefreshedEvent) {\n Processors.addProcessFactory(this);\n } else if (event instanceof ContextClosedEvent) {\n Processors.removeProcessFactory(this);\n }\n }", "@Override\n public void update() { Ping the connection to see if it is still alive. At\n // some point the ProxyClient class should centralize\n // the connection aliveness monitoring and no longer\n // rely on the custom tabs to ping the connections.\n //\n try {\n getMBeanServerConnection().getDefaultDomain();\n } catch (IOException ex) {\n vmPanel.getProxyClient().markAsDead();\n }\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n\n mBound = false;\n }", "@GuardedBy(\"mLock\")\n private void bindLocked() {\n // No need to bind if service is binding or has already been bound.\n if (mBinding || mService != null) {\n return;\n }\n\n mBinding = true;\n // mContext.bindServiceAsUser() calls into ActivityManagerService which it may already\n // hold the lock and had called into PowerManagerService, which holds a lock.\n // That would create a deadlock. To solve that, putting it on a handler.\n mAttentionHandler.post(() -> {\n final Intent serviceIntent = new Intent(\n AttentionService.SERVICE_INTERFACE).setComponent(\n mComponentName);\n // Note: no reason to clear the calling identity, we won't have one in a handler.\n mContext.bindServiceAsUser(serviceIntent, mConnection,\n Context.BIND_AUTO_CREATE, UserHandle.CURRENT);\n\n });\n }", "@Override\r\n\tpublic IBinder onBind(Intent intent) {\n\t\tLog.v(\"shadow\", \"2\");\r\n\t\tinfos = packageInfo.getRunningProcess();\r\n\t\thandler.postDelayed(runnable, 3000);\r\n\t\treturn myBinder;\r\n\r\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\r\n\t\t\t\tif(mSp.getBoolean(\"auto_update\", true)){\r\n\t\t\t\t\tupdateUtils.getCloudVersion();//当获取当前包名后就发出请求\r\n\t\t\t\t}else{\r\n\t\t\t\t\tupdateUtils.enterHome();\r\n\t\t\t\t}\t\r\n\t\t\t}", "@Override\n\tpublic IBinder onBind(Intent intent) {\n\t\tLog.i(TAG, \"service on bind\");\n\t\treturn mBinder;\n\t}", "@Override\n public void onRebind(Intent intent) {\n // TODO: Return the communication channel to the service.\n if(org.mcopenplatform.muoapi.BuildConfig.DEBUG)Log.d(TAG,\"onRebind\");\n if(startIntent != null){\n intent=startIntent;\n }\n engine.newClient(intent,this,true);\n }", "void doAccelUnbindService() {\n\t\tif (accelIsBound) {\n\t\t\tunbindService(accelConnection);\n\t\t\taccelIsBound = false;\n\t\t}\n\t}", "public void doBind(){\n\t\tboolean isBound = settings.getBoolean(\"isBound\", false);\n\t\tif(!isBound){\n \t\ti = new Intent(context, LocationService.class);\n \t\tcontext.bindService(i, SpeedConnection, Context.BIND_AUTO_CREATE);\n \t\tcontext.startService(i);\n \t\teditor.putBoolean(\"isBound\", true);\n \t\teditor.apply();\n \t}\n\t}", "public void notifyServiceChanged() {\r\n\t\t\tgetLoaderManager().restartLoader(0, null, this);\t\r\n\t\t}", "@Override\n\tprotected void handleServiceConnected()\n\t{\n\t\t\n\t}", "@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\n\t\t\tYC_SERVICE_BINDER = null;\n\n\t\t\tbindService();\n\n\t\t}", "public void serverRestarting() {\n notifyServerRestart();\n }", "@Override\n\tpublic IBinder onBind(Intent intent) {\n\t\treturn serviceBinder;\n\t}", "@Override\n public int appNotResponding(String processName, int pid, String processStats) throws RemoteException {\n Log.i(TAG, String.format(\"Application %s (pid %s) is not responding: %s\", processName, pid, processStats));\n return 1;\n }", "private ServerError updateDatabase() {\n return updateDatabase(WebConf.DB_CONN, WebConf.JSON_OBJECTS, WebConf.DEFAULT_VERSION);\r\n }", "protected void restartServer() throws Exception {\n createRuntimeWrapper();\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n ServerService.LocalBinder binder = (ServerService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "private OutOfProcessServer()\n {\n }", "@Override\r\n public void onServiceDisconnected(ComponentName className) {\r\n isObdServiceBound = false;\r\n }", "@Override\n\tpublic Service upstreamServiceInit() {\n\t\treturn null;\n\t}", "@Override\n protected void shutdownService() {\n }", "public void mo23021d() {\n this.f26122b.edit().putLong(\"last.refresh.otherapp\", System.currentTimeMillis()).apply();\n }", "public boolean update(ConProcess conProcess) throws AppException;", "public static String getWebHost() { return mWebHost; }", "ServiceBindingOptions preventReloading();", "public void service() {\n\t}", "private void bindNcService() {\n Intent intent = new Intent(\"com.miui.notification.NOTIFICATION_CENTER\");\n intent.setPackage(\"com.miui.notification\");\n this.mHasBind = this.mContext.bindServiceAsUser(intent, this.mNcConn, 1, UserHandle.CURRENT);\n String str = TAG;\n Log.i(str, \"NcService bind: \" + this.mHasBind);\n this.mBindTimes = this.mBindTimes + 1;\n if (!this.mHasBind && this.mBindTimes <= 3) {\n this.mHandler.removeMessages(10002);\n this.mHandler.sendEmptyMessageDelayed(10002, (long) DEFAULT_INTERVAL);\n }\n }", "public void forceActualServiceDeployment(String serviceName) {\n AxisService service = axisConfig.getServiceForActivation(serviceName);\n if (service == null) {\n // try to find it from the transit ghost map\n try {\n service = GhostDeployerUtils\n .getTransitGhostServicesMap(axisConfig).get(serviceName);\n } catch (AxisFault axisFault) {\n log.error(\"Error while reading Transit Ghosts map\", axisFault);\n }\n }\n if (service != null && GhostDeployerUtils.isGhostService(service)) {\n // if the service is a ghost service, load the actual service\n try {\n GhostDeployerUtils.deployActualService(axisConfig, service);\n } catch (AxisFault axisFault) {\n log.error(\"Error while loading actual service from Ghost\", axisFault);\n }\n }\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n LocalService.LocalBinder binder = (LocalService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n LocalService.LocalBinder binder = (LocalService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "@Override\n\tpublic void earlyStartup() {\n\t}", "public WidgetUpdateService() {\n super(\"WidgetUpdateService\");\n }", "protected void onAfterCreateApplication() {\n\n\t}", "private ServiceManage() {\r\n\t\tInitialThreads();\r\n\t}", "@Override\n protected void appStop() {\n }", "@Override\n public void onMachineBroken()\n {\n \n }", "@Override\n public boolean hasHashedVersionAfterApplication() {\n return hashedVersionAfterApplication != null;\n }", "protected abstract void refresh() throws RemoteException, NotBoundException, FileNotFoundException;", "@Override\n public void onServiceConnected(ComponentName componentName, IBinder iBinder) {\n selfServiceMethodSolver = (ISelfMethod) iBinder;\n Log.d(\"BindLog\", \"Client - SelfService已Bind成功,并获取了代理\");\n }", "private void bindMediaPlayerService() {\n if (!serviceIsBound) {\n Intent bindInt = new Intent(this, MediaPlayerService.class);\n serviceIsBound = bindService(bindInt, mediaPlayerConnection, Context.BIND_AUTO_CREATE);\n\n Log.v(TAG, \"Service bound\");\n } else {\n Log.v(TAG, \"no Service to bind\");\n }\n }", "@Override\r\n public void onRebind(Intent intent) {\r\n\r\n }", "public void backEndProcesses() {\n\n }", "@Override\r\n\tpublic IBinder onBind(Intent arg0) {\r\n\t\treturn new BDBServiceBinder();\r\n\t}", "public void service_INIT(){\n }", "private void initService() {\r\n\t}", "private void setAppVersion() {\n try {\n String appVer = mContext.getPackageManager().getPackageInfo(mContext.getPackageName(), 0).versionName;\n ServerSettingHelper.getInstance().setApplicationVersion(appVer);\n } catch (NameNotFoundException e) {\n if (Config.GD_ERROR_LOGS_ENABLED)\n Log.e(\"NameNotFoundException\", \"Error of getting package information!\");\n }\n }", "private void hockeyAppCheckForUpdates() {\n UpdateManager.register(this);\n }", "@Override\n public void onRestart() {\n super.onRestart();\n app.connectToPacemakerAPI(this);\n }", "public void schemaChanged(String serviceName, String version) {\n ServiceManager.schemaChanged();\n // If naming service has changed, reload the AM Servers\n if (serviceName.equalsIgnoreCase(ServiceManager.PLATFORM_SERVICE)) {\n ServiceManager.accessManagerServers = null;\n }\n }", "public UpdateService() {\n super(\"UpdateService\");\n }", "public void bind() {\n }", "@Override\n\tpublic void bind() {\n\t\t\n\t}", "protected void onFirstUse() {}", "private void unbindService() {\n synchronized (mLock) {\n if (mRemoteService != null) {\n mContext.unbindService(mConnection);\n mRemoteService = null;\n mConnection = null;\n }\n Slog.i(TAG, \"Explicit health check service is unbound\");\n }\n }", "@Override\n public void onServiceConnected() {\n forceUpdate();\n }", "@Override\n protected void onRestart() {\n super.onRestart();\n }", "@Override\n protected void onRestart() {\n super.onRestart();\n }", "public UpdateBakingService(String name) {\n super(\"UpdateBakingService\");\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n BinderService.LocalBinder binder = (BinderService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "public ApplicationHostService(HttpContext httpContext, NewRelicClient client)\n {\n super(httpContext, client);\n }", "final void rescanService(EventBus eventBus) {\n eventBus.send(config.getAnnounceAddress(), new JsonObject().put(\"status\", Status.UNKNOWN));\n }", "@Override\n /* Unknown but necessary function */\n public IBinder onBind(Intent intent)\n {\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "@Override\n protected void onRestart() {\n super.onRestart();\n\n }", "public void serviceChanged(ServiceEvent event)\n {\n Object service = SystrayActivator.bundleContext\n .getService( event.getServiceReference());\n \n if (! (service instanceof ProtocolProviderService))\n return;\n \n ProtocolProviderService provider = (ProtocolProviderService)service;\n \n if (event.getType() == ServiceEvent.REGISTERED)\n addAccount(provider);\n \n if (event.getType() == ServiceEvent.UNREGISTERING)\n removeAccount(provider);\n }", "public void onInCallServiceBind() {\n HiLog.info(LOG_LABEL, \"onInCallServiceBind.\", new Object[0]);\n this.mIsInCallServiceBinded = true;\n }" ]
[ "0.6250976", "0.62401", "0.6020079", "0.6009982", "0.5951896", "0.594914", "0.59475815", "0.584689", "0.57955897", "0.5747468", "0.56513166", "0.56351125", "0.56314236", "0.5575693", "0.5531241", "0.5523123", "0.549931", "0.5495754", "0.5490561", "0.54783297", "0.5473199", "0.5449839", "0.5430715", "0.54261357", "0.5407235", "0.54041904", "0.540332", "0.5373164", "0.53641325", "0.5360217", "0.53543234", "0.5353234", "0.53183514", "0.5318043", "0.53168446", "0.53031695", "0.5301993", "0.52994156", "0.5286266", "0.52860194", "0.5280429", "0.5278883", "0.52758497", "0.52711976", "0.52546674", "0.52519035", "0.5250946", "0.52423966", "0.5239056", "0.52379674", "0.5234458", "0.5232636", "0.52326125", "0.5229952", "0.5229009", "0.5221789", "0.521734", "0.5207789", "0.5181757", "0.51705384", "0.51684695", "0.5144609", "0.5144426", "0.51375157", "0.51375157", "0.5134032", "0.5128134", "0.5124756", "0.5123507", "0.51188433", "0.5113409", "0.51113725", "0.51069635", "0.51052564", "0.5103732", "0.51033986", "0.5102094", "0.5091524", "0.5078888", "0.5074616", "0.5071891", "0.50663406", "0.5058735", "0.5055798", "0.505033", "0.5046865", "0.503993", "0.5037495", "0.5036158", "0.5033186", "0.50310546", "0.50310546", "0.5028054", "0.50248635", "0.50192714", "0.5012603", "0.50113004", "0.500627", "0.5005989", "0.50056726" ]
0.582608
8
Should never happen. Service returned null from onBind.
@Override public void onNullBinding(ComponentName name) { Slog.wtf(TAG, "Explicit health check service binding is null?? " + name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void doBindService() {\n\n if (bindService(new Intent(MainActivity.this, PositionService.class),\n mConnection, Context.BIND_AUTO_CREATE)) {\n mBound = true;\n } else {\n Log.e(\"MY_APP_TAG\", \"Error: The requested service doesn't \" +\n \"exist, or this client isn't allowed access to it.\");\n }\n }", "void doBindService() {\r\n\r\n bindService(new Intent(MainActivity.this, CurrentLocationUtil.class),\r\n connection, // ServiceConnection object\r\n Context.BIND_AUTO_CREATE); // Create service if not\r\n\r\n isBound = true;\r\n\r\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n BinderService.LocalBinder binder = (BinderService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "void doBindService() {\n\t\tbindService(new Intent(this, eidService.class), mConnection, Context.BIND_AUTO_CREATE);\n//\t\tLog.i(\"Convert\", \"At doBind2.\");\n\n\t\tmIsBound = true;\n\t\n\t\tif (mService != null) {\n//\t\t\tLog.i(\"Convert\", \"At doBind3.\");\n\t\t\ttry {\n\t\t\t\t//Request status update\n\t\t\t\tMessage msg = Message.obtain(null, eidService.MSG_UPDATE_STATUS, 0, 0);\n\t\t\t\tmsg.replyTo = mMessenger;\n\t\t\t\tmService.send(msg);\n\t\t\t\tLog.i(\"Convert\", \"At doBind4.\");\n\t\t\t\t//Request full log from service.\n\t\t\t\tmsg = Message.obtain(null, eidService.MSG_UPDATE_LOG_FULL, 0, 0);\n\t\t\t\tmService.send(msg);\n\t\t\t} catch (RemoteException e) {}\n\t\t}\n//\t\tLog.i(\"Convert\", \"At doBind5.\");\n\t}", "void doBindService() {\n final Intent serviceIntent = new Intent(Testing.this, UploadService.class);\n bindService(serviceIntent, mConnection, Context.BIND_AUTO_CREATE);\n mIsBound = true;\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n LocalBinder binder = (LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "@Override\n\tpublic IBinder onBind(Intent intent) {\n\t\treturn serviceBinder;\n\t}", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n LocalService.LocalBinder binder = (LocalService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n LocalService.LocalBinder binder = (LocalService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n MyService.LocalBinder binder = (MyService.LocalBinder) service;\n myService = binder.getService();\n isBound = true;\n\n }", "@Override\n\tpublic IBinder onBind(Intent intent) {\n\t\tLog.i(TAG, \"service on bind\");\n\t\treturn mBinder;\n\t}", "@Override\r\n\tpublic IBinder onBind(Intent intent) {\n\t\tSystem.out.println(\"Service onBind\");\r\n\t\treturn null;\r\n\t}", "@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\tmBinder = (Stub) service;\n\t\t\tLog.d(TAG, \"mBinder init\");\n\t\t}", "@Override\n public IBinder onBind(Intent intent)\n {\n Log.d(\"MyService\", \"return\");\n return new MyBind();\n }", "public void doBindService() {\n\r\n\t\tIntent serviceIntent = new Intent(MainActivity.this, LocalService.class);\r\n\r\n\t\tstartService(serviceIntent);\r\n\t\t// bindService(serviceIntent, mServiceConnection, 0);\r\n\t\tbindService(serviceIntent, mServiceConnection, BIND_AUTO_CREATE);\r\n\r\n\t\tmIsBound = true;\r\n\t}", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n ServerService.LocalBinder binder = (ServerService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "private void bindMediaPlayerService() {\n if (!serviceIsBound) {\n Intent bindInt = new Intent(this, MediaPlayerService.class);\n serviceIsBound = bindService(bindInt, mediaPlayerConnection, Context.BIND_AUTO_CREATE);\n\n Log.v(TAG, \"Service bound\");\n } else {\n Log.v(TAG, \"no Service to bind\");\n }\n }", "@Override\n\tprotected BaseService getService() {\n\t\treturn null;\n\t}", "void doAccelBindService() {\n\t\tbindService(accelIntentDelay, accelConnection, Context.BIND_AUTO_CREATE);\n\t\taccelIsBound = true;\n\t}", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n TranscriptDownService.LocalBinder binder = (TranscriptDownService.LocalBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "private void initService() {\n connection = new AppServiceConnection();\n Intent i = new Intent(this, AppService.class);\n boolean ret = bindService(i, connection, Context.BIND_AUTO_CREATE);\n Log.d(TAG, \"initService() bound with \" + ret);\n }", "private void bindAudioService() {\n if (audioServiceBinder == null) {\n Intent intent = new Intent(MainActivity.this, AudioService.class);\n\n // Below code will invoke serviceConnection's onServiceConnected method.\n bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE);\n }\n }", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n Log.d(\"service\", \"onServiceConnected() \" + name.getClassName());\n mMyServ = ((MyService.LocalBinder) service).getService();\n }", "@Override\n\t\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\t}", "@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\n\t\t\tYC_SERVICE_BINDER = IYCService.Stub.asInterface(service);\n\n\t\t}", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n MediaPlayerService.LocalBinder binder = (MediaPlayerService.LocalBinder) service;\n player = binder.getService();\n serviceBound = true;\n\n\n //Toast.makeText(QuranListenActivity.this, \"Service Bound\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n ConnectionService.ConnectionBinder binder = (ConnectionService.ConnectionBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "protected void onServiceConnectedExtended(ComponentName className,\n IBinder service) {\n mAllowedToBind = true;\n\n }", "@Override\n public void onServiceConnected(ComponentName componentName, IBinder iBinder) {\n selfServiceMethodSolver = (ISelfMethod) iBinder;\n Log.d(\"BindLog\", \"Client - SelfService已Bind成功,并获取了代理\");\n }", "void bind(EventService service);", "public void onInCallServiceBind() {\n HiLog.info(LOG_LABEL, \"onInCallServiceBind.\", new Object[0]);\n this.mIsInCallServiceBinded = true;\n }", "@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\tib = service;\n\t\t\tSystem.out.println(\"DEBUG>>>ServiceConnection.\");\n\t\t}", "private void bindService() {\n synchronized (mLock) {\n if (!mEnabled || mConnection != null || mRemoteService != null) {\n if (!mEnabled) {\n Slog.i(TAG, \"Not binding to service, service disabled\");\n } else if (mRemoteService != null) {\n Slog.i(TAG, \"Not binding to service, service already connected\");\n } else {\n Slog.i(TAG, \"Not binding to service, service already connecting\");\n }\n return;\n }\n ComponentName component = getServiceComponentNameLocked();\n if (component == null) {\n Slog.wtf(TAG, \"Explicit health check service not found\");\n return;\n }\n\n Intent intent = new Intent();\n intent.setComponent(component);\n mConnection = new ServiceConnection() {\n @Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n Slog.i(TAG, \"Explicit health check service is connected \" + name);\n initState(service);\n }\n\n @Override\n @MainThread\n public void onServiceDisconnected(ComponentName name) {\n // Service crashed or process was killed, #onServiceConnected will be called.\n // Don't need to re-bind.\n Slog.i(TAG, \"Explicit health check service is disconnected \" + name);\n synchronized (mLock) {\n mRemoteService = null;\n }\n }\n\n @Override\n public void onBindingDied(ComponentName name) {\n // Application hosting service probably got updated\n // Need to re-bind.\n Slog.i(TAG, \"Explicit health check service binding is dead. Rebind: \" + name);\n unbindService();\n bindService();\n }\n\n @Override\n public void onNullBinding(ComponentName name) {\n // Should never happen. Service returned null from #onBind.\n Slog.wtf(TAG, \"Explicit health check service binding is null?? \" + name);\n }\n };\n\n mContext.bindServiceAsUser(intent, mConnection,\n Context.BIND_AUTO_CREATE, UserHandle.of(UserHandle.USER_SYSTEM));\n Slog.i(TAG, \"Explicit health check service is bound\");\n }\n }", "@Override\n public IBinder onBind(Intent intent) {\n if(DEBUG)Log.d(TAG, \"onBind\");\n serviceConnected = true;\n Toast.makeText(getApplicationContext(), \"binding\", Toast.LENGTH_SHORT).show();\n return mMessenger.getBinder();\n }", "@Override\n public IBinder onBind(Intent mIntent) {\n Log.i(TAG, \"onBind\");\n String action = mIntent.getAction();\n Log.d(TAG, \"onBind: \" + action);\n\n if (SERVICE_INTERFACE.equals(action)) {\n Log.d(TAG, \"Bound by system\");\n return super.onBind(mIntent);\n } else {\n Log.d(TAG, \"Bound by application\");\n return mBinder;\n }\n }", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n MediaPlayerService.LocalBinder binder = (MediaPlayerService.LocalBinder) service;\n player = binder.getService();\n serviceBound = true;\n player.setCallbacks(MainActivity.this);\n\n //Toast.makeText(MainActivity.this, \"Service Bound\", Toast.LENGTH_SHORT).show();\n }", "@Override\n\tpublic IBinder onBind(Intent arg0)\n\t{\n\t\tLog.i(\"JSChatClientService\", \"JSChatClientService bound.\");\n\t\treturn binder;\n\t}", "@Override\r\n\tpublic IBinder onBind(Intent arg0) {\r\n\t\treturn new BDBServiceBinder();\r\n\t}", "private void bind()\n {\n /* Cancel unbind */\n cancelUnbind();\n\n /* Bind to the Engagement service if not already done or being done */\n if (mEngagementService == null && !mBindingService)\n {\n mBindingService = true;\n mContext.bindService(EngagementAgentUtils.getServiceIntent(mContext), mServiceConnection,\n BIND_AUTO_CREATE);\n }\n }", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n System.out.println(\"绑定成功\");\n }", "public void doBind(){\n\t\tboolean isBound = settings.getBoolean(\"isBound\", false);\n\t\tif(!isBound){\n \t\ti = new Intent(context, LocationService.class);\n \t\tcontext.bindService(i, SpeedConnection, Context.BIND_AUTO_CREATE);\n \t\tcontext.startService(i);\n \t\teditor.putBoolean(\"isBound\", true);\n \t\teditor.apply();\n \t}\n\t}", "@Override\n public IBinder onBind(Intent arg0) {\n return null;\n }", "@Override\n public IBinder onBind(Intent arg0) {\n return null;\n }", "@Override\n public IBinder onBind(Intent arg0) {\n return null;\n }", "public void bind() {\n\n Intent startintent = new Intent(context, MafService.class);\n startintent.setAction(\"com.baidu.maf.service\");\n\n if(ServiceControlUtil.showInSeperateProcess(context)) {\n try {\n context.startService(startintent);\n } catch (Exception e) {\n LogUtil.e(TAG, \"fail to startService\", e);\n }\n }\n\n //Intent intent = new Intent(InAppApplication.getInstance().getContext(), OutAppService.class);\n\n\n boolean result =\n context.bindService(startintent, mConnection, Context.BIND_AUTO_CREATE);\n\n LogUtil.printMainProcess(\"Service bind. reslut = \" + result);\n LogUtil.printMainProcess(\"bind. serverMessenger = \" + serverMessenger);\n mIsBound = result;\n }", "@Override\n public IBinder onBind(Intent arg0) {\n return null;\n }", "@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\tLocalBinder binder = (LocalBinder)service;\n\t\t\tmService = binder.getService();\n\t\t\t//Toast.makeText(SyncServiceActivity.this, \"onServiceConnected=>\"+mService, Toast.LENGTH_SHORT).show();\n\t\t\t\n\t\t}", "@Override\r\n\tpublic IBinder onBind(Intent arg0)\r\n\t{\n\t\treturn null;\r\n\t}", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n\n // Sets the binder for the service.\n SSMusicService.SSMusicBinder binder = (SSMusicService.SSMusicBinder) service;\n musicService = binder.getService();\n serviceBound = true; // Indicates that the service is bounded.\n }", "@Override\n public void onServiceConnected(ComponentName className, IBinder service) {\n OpenVPNService.LocalBinder binder = (OpenVPNService.LocalBinder) service;\n mService = binder.getService();\n }", "public void onServiceConnected(ComponentName className, IBinder service) {\n imService = ((FriendLocationService.IMBinder)service).getService(); \r\n \r\n \r\n }", "private Service getService() {\n return service;\n }", "@Override\r\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\r\n\t}", "public interface FloatServiceBinder {\n /**\n * 启动并且绑定服务完成\n * @param componentName ServiceConnection的componentName\n * @param iBinder ServiceConnection的iBinder\n */\n void onBindSucceed(ComponentName componentName, IBinder iBinder);\n\n /**\n * 当服务意外死亡时触发\n * @param componentName ServiceConnection的componentName\n */\n void onServiceDisconnected(ComponentName componentName);\n}", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n TimerService.TimerBinder binder = (TimerService.TimerBinder)service;\n mService = binder.getService();\n mBound = true;\n // Ensure the service is not in the foreground when bound\n mService.background();\n }", "public void onServiceDisconnected(ComponentName className) {\n _boundService = null; \n Toast.makeText(TestServiceHolder.this, \"Service connected\", \n Toast.LENGTH_SHORT).show(); \n }", "public boolean getIsServiceBound () ;", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic IBinder onBind(Intent arg0) {\n\t\treturn null;\n\t}", "public void onServiceConnected(ComponentName className, IBinder service) {\n\t\t\tmBoundService = ((LocalService.LocalBinder) service).getService();\r\n\r\n\t\t\t// Wenn während des Setups der Service noch nicht fertig geladen\r\n\t\t\t// ist, wird solange Warte-Overlay angezeigt\r\n\t\t\t// Wenn der Service fertig ist wird das Overlay ausgeblendet\r\n\r\n\t\t\t// if (OverlayActivity.isCreated) {\r\n\t\t\t// OverlayActivity.getInstance().dismiss();\r\n\t\t\t// }\r\n\t\t\tSetupSearchDevicesFragment fragment = (SetupSearchDevicesFragment) getFragmentById(\"SetupSearchDevicesFragment\");\r\n\t\t\tif (fragment.isVisible()) {\r\n\t\t\t\tfragment.initViewBluetooth();\r\n\t\t\t}\r\n\r\n\t\t\t// Tell the user about this for our demo.\r\n\t\t\tLog.i(TAG, \"Service connected with app...\");\r\n\t\t\t// Toast.makeText(MainActivity.this, \"Service connected.\", Toast.LENGTH_SHORT).show();\r\n\r\n\t\t\t// Verbinde mit gespeichertem Device (falls noch keine Verbindung\r\n\t\t\t// besteht)\r\n\t\t\tif (mSharedPrefs.getConnectivityType() == 1) { // BEI BT\r\n\r\n\t\t\t\tfinal ConnectionInterface connection = mBoundService.getConnection();\r\n\t\t\t\tif (connection != null) {\r\n\t\t\t\t\tif (!connection.isConnected()) {\r\n\r\n\t\t\t\t\t\t// OnConnectedListener\r\n\t\t\t\t\t\tconnection.setOnConnectedListener(new OnConnectedListener() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onConnectedListener(String deviceName) {\r\n\r\n\t\t\t\t\t\t\t\tconnection.registerDisconnectHandler();\r\n\r\n\t\t\t\t\t\t\t\tif (mSharedPrefs.getDeviceMode() == 1) { // ELTERN\r\n\t\t\t\t\t\t\t\t\t// HELLO Nachricht senden\r\n\t\t\t\t\t\t\t\t\tString msg = mContext.getString(R.string.BABYFON_MSG_CONNECTION_HELLO) + \";\"\r\n\t\t\t\t\t\t\t\t\t\t\t+ mSharedPrefs.getHostAddress() + \";\" + mSharedPrefs.getPassword();\r\n\t\t\t\t\t\t\t\t\tconnection.sendMessage(msg);\r\n\r\n\t\t\t\t\t\t\t\t\tmSharedPrefs.setRemoteOnlineState(true);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tif (mSharedPrefs.getDeviceMode() == 1) { // ELTERN\r\n\t\t\t\t\t\t\tif (mSharedPrefs.getRemoteAddress() != null) { // Gespeichertes Gerät\r\n\t\t\t\t\t\t\t\t// Verbinde\r\n\t\t\t\t\t\t\t\tmBoundService.connectTo(mSharedPrefs.getRemoteAddress());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if (mSharedPrefs.getDeviceMode() == 0) { // BABY\r\n\t\t\t\t\t\t\t// Warte auf Verbindung\r\n\t\t\t\t\t\t\tmBoundService.startServer();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}", "@Override\n public void onServiceDisconnected(ComponentName name) {\n\n mBound = false;\n }", "@Override\n\tprotected void handleServiceConnected()\n\t{\n\t\t\n\t}", "protected void onBind()\n\t{\n\t}", "public UnbindService() {\n super(\"UNBIND SERVICE\");\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n final CurrencyRatesService.LocalBinder binder = (CurrencyRatesService.LocalBinder) service;\n currencyRatesService = binder.getService();\n isServiceBound = true;\n }" ]
[ "0.7682608", "0.749427", "0.7413393", "0.7396515", "0.7319886", "0.73171544", "0.73151493", "0.7280991", "0.7280991", "0.7274565", "0.72652537", "0.72468185", "0.7196997", "0.7196226", "0.71625787", "0.71026385", "0.7097509", "0.709684", "0.7067293", "0.70363", "0.69505036", "0.6903912", "0.69035465", "0.6815804", "0.6777055", "0.6756001", "0.67551994", "0.6753834", "0.6748982", "0.67447793", "0.6732835", "0.6682746", "0.66814995", "0.668071", "0.66778135", "0.66671884", "0.66500187", "0.6631027", "0.66301435", "0.6619076", "0.6613504", "0.6606088", "0.6606088", "0.6606088", "0.660443", "0.6592811", "0.65896416", "0.6570386", "0.656398", "0.6552886", "0.6552714", "0.65507513", "0.6541877", "0.6541877", "0.6541877", "0.6541877", "0.6541877", "0.6541877", "0.6541877", "0.6541877", "0.6534284", "0.65308166", "0.65235", "0.6522604", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.65022993", "0.6492371", "0.6486927", "0.6485672", "0.6478531", "0.64769906", "0.6467186" ]
0.0
-1
Unbinds the explicit health check service.
private void unbindService() { synchronized (mLock) { if (mRemoteService != null) { mContext.unbindService(mConnection); mRemoteService = null; mConnection = null; } Slog.i(TAG, "Explicit health check service is unbound"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void unbindService(ServiceConnection connection);", "@Override\n public void onBindingDied(ComponentName name) {\n Slog.i(TAG, \"Explicit health check service binding is dead. Rebind: \" + name);\n unbindService();\n bindService();\n }", "private void unBoundAudioService() {\n if (audioServiceBinder != null) {\n unbindService(serviceConnection);\n }\n }", "public void unbindService() {\n synchronized (this.mLock) {\n if (!this.mBound) {\n Log.e(\"TileServiceManager\", \"Service not bound\");\n return;\n }\n this.mBound = false;\n this.mJustBound = false;\n this.mStateManager.setBindService(false);\n }\n }", "protected void unbindHttpService(final ServiceReference reference) {\n synchronized ( lock ) {\n if ( this.endpoints.remove(reference.getProperty(Constants.SERVICE_ID)) != null ) {\n // do nothing\n }\n }\n }", "public UnbindService() {\n super(\"UNBIND SERVICE\");\n }", "void unbind(EventService service);", "public void doUnbind(){\n\t\tboolean isBound = settings.getBoolean(\"isBound\", false);\n\t\tif(isBound){\n\t\t\tcontext.unbindService(SpeedConnection);\n\t\t\tcontext.stopService(i);\n\t\t\teditor.putBoolean(\"isBound\", false);\n\t\t\teditor.apply();\n\t\t}\n\t}", "void doAccelUnbindService() {\n\t\tif (accelIsBound) {\n\t\t\tunbindService(accelConnection);\n\t\t\taccelIsBound = false;\n\t\t}\n\t}", "public void disconnect() {\n \ttry {\n \t\tctx.unbindService(apiConnection);\n } catch(IllegalArgumentException e) {\n \t// Nothing to do\n }\n }", "void onUnbind();", "@Override\n public boolean onUnbind(Intent intent) {\n Log.v(TAG, \"onunbinding service\");\n bound = false;\n return super.onUnbind(intent);\n }", "public synchronized void unbindService(BehaviourInferenceAlgorithmRegistry registry) {\n \tregistry = null;\n logger.info(\"BehaviourInferenceAlgorithmRegistry service disconnected.\");\n }", "public void unbind(Name name) throws NamingException {\n }", "public void unbind(String name) throws NamingException {\n }", "public void deactivate() {\n serviceTracker.close();\n listenerSR.unregister();\n }", "private void unbind() {\n ThreadUtil.checkOnMainThread();\n Iterator<Map.Entry<ComponentName, InCallServiceConnection>> iterator =\n mServiceConnections.entrySet().iterator();\n while (iterator.hasNext()) {\n Log.i(this, \"Unbinding from InCallService %s\");\n mContext.unbindService(iterator.next().getValue());\n iterator.remove();\n }\n mInCallServices.clear();\n }", "@Override\n @MainThread\n public void onServiceDisconnected(ComponentName name) {\n Slog.i(TAG, \"Explicit health check service is disconnected \" + name);\n synchronized (mLock) {\n mRemoteService = null;\n }\n }", "void turnOff() throws ActorServiceCallException;", "public void unbind(String name) throws RemoteException, NotBoundException;", "public void onInCallServiceUnbind() {\n HiLog.info(LOG_LABEL, \"onInCallServiceUnbind.\", new Object[0]);\n this.mIsInCallServiceBinded = false;\n releaseResource();\n }", "public static void unbind(String name) throws RemoteException, NotBoundException {\n\t\t\n\t\t\n\t\tRegistryInterface stub = null;\n\t\t try {\n\t\t\tstub = (RegistryInterface)Class.forName(\"registry.Registry_stub\").newInstance();\n\t\t} catch (InstantiationException | IllegalAccessException\n\t\t\t\t| ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString retVal = stub.unbind(name);\n\t\tObjectMap.removeFromServerMap(retVal);\n\t\t\n\t\t\n\t\t\n\t}", "private void unbindMediaPlayerService() {\n mediaPlayerService.setCoverArt(coverArt);\n mediaPlayerService.setSelectedMed(selectedMed);\n mediaPlayerService.setBindIsOngoing(true);\n\n unbindService(mediaPlayerConnection);\n serviceIsBound = false;\n setControlsVisible(false);\n\n Log.v(TAG, \"Service unbound\");\n }", "@Override\n public boolean onUnbind(Intent intent) {\n \tToast.makeText(this, \"MyAlarmService.onUnbind()\", Toast.LENGTH_LONG).show();\n \treturn super.onUnbind(intent);\n }", "public void unassignService(String serviceName) throws SMSException {\n // if (coexistMode) {\n // amsdk.unassignService(serviceName);\n // } else {\n removeServiceConfig(serviceName);\n // }\n }", "public static void reset() {\n HealthCheck.failed = false;\n HealthCheck.checks.clear();\n }", "@Override\n\tpublic boolean onUnbind(Intent intent) {\n\t\tLog.i(TAG, \"service on unbind\");\n\t\treturn super.onUnbind(intent);\n\t}", "public void yUnbind(String bind_name);", "public void disableHighAvailability() {\n enableHa = false;\n listMembersService.shutdown();\n }", "@Override\n public void deactivateBinding(QName name, ServiceHandler handler) {\n }", "void unbind() { }", "private void stopSnmpAdaptor() {\n if (!agentConfig.isSnmpEnabled()) {\n return;\n }\n\n // stop the SnmpAdaptor...\n try {\n getMBeanServer().invoke(getSnmpAdaptorName(), \"unbind\", new Object[0], new String[0]);\n } catch (Exception e) {\n logger.warn(e.getMessage(), e);\n }\n\n try {\n MBeanUtils.unregisterMBean(getSnmpAdaptorName());\n } catch (MalformedObjectNameException e) {\n logger.warn(e.getMessage(), e);\n }\n }", "public void onServiceDisconnected(ComponentName className) {\n\t\t\tmBoundService = null;\r\n\t\t\t// Toast.makeText(MainActivity.this, \"Service disconnected.\", Toast.LENGTH_SHORT).show();\r\n\t\t}", "public void onServiceDisconnected(ComponentName className) {\n _boundService = null; \n Toast.makeText(TestServiceHolder.this, \"Service connected\", \n Toast.LENGTH_SHORT).show(); \n }", "protected abstract void doLocalUnbind( Name name )\n throws NamingException;", "void unsetStatus();", "@Override\n public void onBindingDied(ComponentName name) {\n mService = null;\n hostConnection = null;\n }", "synchronized void m6640c() {\n if (!m6637a()) {\n this.f5128e = null;\n this.f5127d = true;\n try {\n this.f5126c.unbindService(this);\n } catch (IllegalArgumentException e) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Error unbinding service: \");\n stringBuilder.append(e.getMessage());\n Log.w(\"FJD.ExternalReceiver\", stringBuilder.toString());\n }\n }\n return;\n }", "@Override\n public boolean onUnbind(Intent intent) {\n \tcloseBluetooth();\n return super.onUnbind(intent);\n }", "public void onServiceDisconnected(ComponentName className) {\n mBoundService = null;\n Log.i(TAG,\"Service DISconnected\");\n }", "public void stopService();", "@Override\n public boolean onUnbind(Intent intent){\n return false;\n }", "protected void onServiceDisconnectedExtended(ComponentName className) {\n mAllowedToBind = false;\n\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n unbindService(connection);\n }", "public void onServiceDisconnected(ComponentName className) {\n\t\t\t\tservice = null;\n\t\t\t\tLog.d(\"OpenXC binding\", \"openXC service disconnected\");\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(MainActivity.this, MyService.class);\n\t\t\t\tunbindService(conn);\n\t\t\t\t// stopService(intent);\n\t\t\t}", "private void stopHttpAdaptor() {\n if (!agentConfig.isHttpEnabled()) {\n return;\n }\n\n // stop the adaptor...\n try {\n httpAdaptor.stop();\n } catch (Exception e) {\n logger.warn(e.getMessage(), e);\n }\n\n try {\n MBeanUtils.unregisterMBean(getHttpAdaptorName());\n MBeanUtils.unregisterMBean(getXsltProcessorName());\n } catch (MalformedObjectNameException e) {\n logger.warn(e.getMessage(), e);\n }\n }", "public void onServiceDisconnected(ComponentName className) {\n mService = null;\n mBound = false;\n }", "public void onServiceDisconnected(ComponentName className) {\n mService = null;\n mBound = false;\n }", "void unbind();", "private void releaseService() {\n unbindService(connection);\n connection = null;\n Log.d(TAG, \"releaseService() unbound.\");\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n serviceBound = false; // Indicates that the service is no longer bound.\n }", "@Override\n public void onServiceDisconnected(ComponentName name)\n {\n mEngagementService = null;\n\n /*\n * Simulate disconnected intent targeting the current package name since the engagement\n * process has been killed.\n */\n Intent disconnectedIntent = new Intent(\n \"com.microsoft.azure.engagement.intent.action.DISCONNECTED\");\n disconnectedIntent.setPackage(mContext.getPackageName());\n mContext.sendBroadcast(disconnectedIntent);\n\n /* Mark we are auto re-binding to it */\n mBindingService = true;\n }", "@Override\n public boolean onUnbind(Intent intent) {\n super.onUnbind(intent);\n Log.i(LOGTAG, \"onUnbind -- releasing interface.\");\n // release all non-group instances\n OdkConnectionFactorySingleton.getOdkConnectionFactoryInterface().removeAllDatabaseServiceConnections();\n // this may be too aggressive, but ensures that WebLogger is released.\n WebLogger.closeAll();\n return false;\n }", "@Override\n\tprotected void onDestroy() {\n\t\tif(AccessibilityServiceUtils.isAccessibilitySettingsOn(this)){\n\t\t\tstopServer();\n\t\t}\n\t\tunregisterReceiver(mServiceReceiver);\n\t\tsuper.onDestroy();\n\t}", "@Override\n public boolean onUnbind(Intent intent) {\n Log.i(TAG, \"Last client unbound from service\");\n // Called when the last client (MainActivity in case of this sample) unbinds from this\n // service. If this method is called due to a configuration change in MainActivity, we\n // do nothing. Otherwise, we make this service a foreground service.\n\n if (!mChangingConfiguration && mPrefs.getBoolean(\"switchTrack\", false)) {\n Log.i(TAG, \"Starting foreground service\");\n startForeground(NOTIFICATION_ID, getNotification());\n }\n return true; // Ensures onRebind() is called when a client re-binds.\n }", "public void stopAutomaticRefresh() {\n try {\n dnsService.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void disable()\n {\n // Verify service is connected\n assertService();\n \n try {\n \tmLedService.disable(mBinder);\n } catch (RemoteException e) {\n Log.e(TAG, \"disable failed\");\n }\n }", "public void off() throws Exception;", "@Override\n\tpublic void unregisterService(String service) {\n\t\tassert((service!=null)&&(!\"\".equals(service))); //$NON-NLS-1$\n\t\tsuper.unregisterService(service);\n\t\t// Informs the other kernels about this registration\n\t\tgetMTS(NetworkMessageTransportService.class).broadcast(new KernelMessage(YellowPages.class,KernelMessage.Type.YELLOW_PAGE_UNREGISTERING,service,null));\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tif (isServiceBinded) {\n\t\t\tunbindService(this);\n\t\t\tisServiceBinded = false;\n\t\t\tserviceMessenger = null;\n\t\t}\n\t\tsuper.onDestroy();\n\t}", "@Override\n\tpublic void unregisterService(String service, AgentIdentifier agent) {\n\t\tassert((service!=null)&&(!\"\".equals(service))); //$NON-NLS-1$\n\t\tassert(agent!=null);\n\t\tsuper.unregisterService(service,agent);\n\t\t// Informs the other kernels about this registration\n\t\tKernel<?,?,?,?> kernel = Kernel.getSingleton();\n\t\tif (!kernel.isOnThisKernel(agent)) {\n\t\t\tgetMTS(NetworkMessageTransportService.class).broadcast(new KernelMessage(YellowPages.class,KernelMessage.Type.YELLOW_PAGE_UNREGISTERING,service,agent));\n\t\t}\t\t\n\t}", "public void alarmOff() throws RemoteHomeConnectionException {\n m.sendCommand(getDeviceId(), \"ald\");\n setAlarmStatus(AlarmStatus.ALARM_DISABLED);\n }", "private void stopDiscovery() {\n if (mDisposable != null) {\n mDisposable.dispose();\n }\n }", "public void stop( BundleContext bc ) throws Exception {\r\n\t\tif(gnutellaServiceRefs != null && gnutellaServiceRefs.length > 0) {\r\n\t\t\tfor(ServiceReference ref : gnutellaServiceRefs) {\r\n\t\t\t\tbc.ungetService(ref);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(httpServiceRef != null) {\r\n\t\t\tbc.ungetService( httpServiceRef );\r\n\t\t\thttpServiceRef = null;\r\n\t\t}\r\n\t}", "@Override\n public boolean onUnbind(Intent intent) {\n close();\n return super.onUnbind(intent);\n }", "@Override\n\tpublic boolean onUnbind(Intent intent) {\n\t\treturn super.onUnbind(intent);\n\t}", "@Override\n\tpublic boolean onUnbind(Intent intent) {\n\t\treturn super.onUnbind(intent);\n\t}", "@Override\n\tpublic boolean onUnbind(Intent intent) {\n\t\treturn super.onUnbind(intent);\n\t}", "@Override\n\tpublic boolean onUnbind(Intent intent) {\n\t\treturn super.onUnbind(intent);\n\t}", "@Override\n public boolean onUnbind(Intent intent) {\n return super.onUnbind(intent);\n }", "public void onServiceDisconnected(ComponentName className) {\n \tmServiceMessenger = null;\r\n setIsBound(false);\r\n }", "public void sendUnbindRequest(Pdu packet);", "public void onServiceDisconnected(ComponentName arg0) {\n\t\t\tmServiceBind = false;\n\t\t}", "@Override\n protected void onDestroy() {\n super.onDestroy();\n\n unbindService(conn);\n unregisterReceiver(mbtBroadcastReceiver);\n }", "public void deregister(SvcInfo svcInfo);", "public void removeCheckHealthListener(ActionListener actionListener) {\r\n jCheckHealth.removeActionListener(actionListener);\r\n }", "@Override\n public void onServiceDisconnected(ComponentName className) {\n Log.d(TAG, className.toString() + \" service is unbound\");\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n\n mBound = false;\n }", "@Override\n\tpublic void onDestroy() {\n\t\tunbindService(serviceConnection);\n\t\tsuper.onDestroy();\n\t}", "void unRegister(NotificationListener<ObservableIntentServiceNotificationType> notificationStrategy);", "public void advertiseOff() {\n if(!isAdvertising) return;\r\n \r\n // flip our flag to indicate we're no longer advertising\r\n isAdvertising = false;\r\n \r\n // tell the system's BluetoothLeAdvertiser to stop advertising\r\n btLeAdv.stopAdvertising(advertiseCallback);\r\n \r\n // clear out the system's BluetoothGattServer's services, and close it\r\n btGattServer.clearServices();\r\n btGattServer.close();\r\n \r\n // clear our local list of advertised services\r\n gattServices.clear();\r\n \r\n theService = null;\r\n \r\n\t}", "void stopLdapService() {\n ldapServer.stop();\n workDir.delete();\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n if (service != null)\n service.setListener(null);\n service = null;\n }", "protected abstract void unbind();", "protected abstract void unbind();", "@Override\r\n public void onServiceDisconnected(ComponentName className) {\r\n isObdServiceBound = false;\r\n }", "public void turnShieldOff(IServerCallback callback) {\n ServerCall sc = new ServerCall(ServiceName.matchMaking, ServiceOperation.SHIELD_OFF, null, callback);\n _client.sendRequest(sc);\n }", "@Override\n protected void onDestroy() {\n unBoundAudioService();\n super.onDestroy();\n }", "public void unregisterApplication(String internalAppId){\n\t\tString webServiceUrl = serviceProfile.getServiceApiUrl()+\"/\"+internalAppId;\n\t\tlogger.info(\"unregistering application \"+ webServiceUrl);\n\t\t\n\t\tResponseEntity<Void> response = restTemplate.exchange(webServiceUrl, HttpMethod.DELETE,\n null, Void.class);\n\t\tVoid body = response.getBody();\n\t}", "public void decommission() {\n\t\tlogger.debug(\"Decommission signal received. Shutting down...\");\n\t\tlogger.logServiceStop(servicePID);\n\t\tkeepRunning = false;\n\t}", "private void disconnect() {\n if (mServiceConnection != null) {\n mContext.unbindService(mServiceConnection);\n }\n mServiceConnection = null;\n }", "void unsetServiceId();", "@Override\n public void removeAudioService() {\n\n if (serviceBound && audioIntent != null) {\n\n // Notifies SSMusicService to signal SSMusicEngine to release all resources used by the\n // internal MediaPlayer object.\n musicService.releaseMedia();\n\n stopService(audioIntent); // Stops the service.\n audioIntent = null;\n musicService = null;\n }\n }", "public void deductHealth(int h) {\n setHealth(getHealth() - h);\n }", "public abstract void removeServiceListener(PhiDiscoverListener listener);", "public void onServiceDisconnected(ComponentName className) {\n\t\t\tLog.i(LOG_TAG, \"onService connected......method\");\n\t\t\tmBoundService = null;\n\t\t\t// Toast.makeText(ChatActivity.this, \"Disconnected to service\",\n\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t}", "public void onServiceDisconnected(ComponentName className) {\n \t\t\tmService = null;\n \t\t}", "@SuppressWarnings(\"unused\")\n @Deactivate\n private void deactivate() {\n\n this.bundleContext.removeServiceListener(this);\n\n final ServiceReference[] serviceReferences;\n synchronized (this.proxies) {\n serviceReferences = this.proxies.keySet().toArray(\n new ServiceReference[this.proxies.size()]);\n }\n\n for (ServiceReference serviceReference : serviceReferences) {\n unregister(serviceReference);\n }\n\n this.bundleContext = null;\n }", "@Override\r\n protected void shutdownInternal() {\r\n service.stop();\r\n }" ]
[ "0.68178976", "0.6796177", "0.67836696", "0.6580098", "0.65049845", "0.65027434", "0.643275", "0.6384387", "0.6339413", "0.6236558", "0.6216665", "0.6152031", "0.6149592", "0.6094972", "0.60899913", "0.60767454", "0.6048486", "0.6030402", "0.60241866", "0.59652215", "0.5946213", "0.5847794", "0.5832908", "0.5821894", "0.58104914", "0.57995754", "0.5796096", "0.5782453", "0.5757233", "0.5755638", "0.5742688", "0.5731154", "0.57148165", "0.5711287", "0.5682402", "0.56739837", "0.5650959", "0.56370366", "0.56354225", "0.56352437", "0.56322247", "0.5627818", "0.5609113", "0.560021", "0.5565825", "0.55436975", "0.5541642", "0.55411756", "0.55411756", "0.5524648", "0.5524487", "0.55244374", "0.55220324", "0.55036485", "0.54811347", "0.54781425", "0.54454315", "0.5444333", "0.5440178", "0.54365176", "0.5436326", "0.5434387", "0.54313993", "0.54164124", "0.5409668", "0.54051596", "0.54013133", "0.54013133", "0.54013133", "0.54013133", "0.53884757", "0.5383585", "0.5378767", "0.5377748", "0.53730595", "0.5372624", "0.5371824", "0.5362301", "0.5361368", "0.53573686", "0.53552854", "0.5345548", "0.5340432", "0.5337486", "0.5329732", "0.5329732", "0.53269285", "0.53241897", "0.5323583", "0.53223187", "0.5317117", "0.5316777", "0.53131515", "0.530701", "0.5304882", "0.5304027", "0.53023076", "0.5302255", "0.5298381", "0.5296213" ]
0.81366354
0
This method gets the value from the index provided.
public int get(int i) { if(integerList != null) return integerList[i]; else return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getValue(int index);", "abstract public Object getValue(int index);", "@Override\n public int get(int index) {\n checkIndex(index);\n return getEntry(index).value;\n }", "public int get(int index);", "public T get(int index) {\n return v.get(index);\n }", "public int get(int index) {\n\t\treturn r[index];\n\t}", "abstract int get(int index);", "Object get(int index);", "Object get(int index);", "int get(int index)\n\t{\n\t\treturn inputArray[index];\n\t}", "@Override\n public E get(int index) {\n // todo: Students must code\n checkRange(index); // throws IndexOOB Exception if out of range\n return data[calculate(index)];\n }", "public T get(int index);", "public T get(int index);", "public T get(int index);", "public Object get(int index);", "public Object get(int index);", "public int get(int index) {\n return array[index];\n }", "public Object get(int index) {\r\n return entry(index).element;\r\n }", "@Override\n public T get(final int index) {\n this.checkIndex(index);\n return this.data[index];\n }", "public Integer get(int index){\n return list.get(index);\n }", "public Object get( int index )\n {\n\treturn _data[index];\n }", "@Override\n public E get(int index) {\n this.rangeCheck(index);\n return (E) this.values[index];\n }", "@SuppressWarnings(\"unchecked\")\n public <T> T get(int index) {\n return (T)this.values[index];\n }", "public int get(int index) {\n\t checkIndex(index);\n\t return elementData[index];\n\t }", "@ZenCodeType.Operator(ZenCodeType.OperatorType.INDEXGET)\n default IData getAt(int index) {\n \n return notSupportedOperator(OperatorType.INDEXGET);\n }", "public T get(int aIndex);", "public int getValueAtIndex(int index) {\n if (index < arraySize)\n return theArray[index];\n\n return 0;\n }", "public T get(int index) {\n\t\tint at = 1;\n\t\tfor (Node<T> current = start; current != null; current = current.next) {\n\t\t\tif (at == index) {\n\t\t\t\treturn current.value;\n\t\t\t}\n\t\t\tat++;\n\t\t}\n\t\t// We couldn't find it, throw an exception!\n\t\tthrow new IndexOutOfBoundsException();\n\t}", "T get(int index);", "T get(int index);", "T get(int index);", "T get(int index);", "T get(int index);", "public T get(int index) {\n return list.get(index);\n }", "@Override\n\tpublic int get(int index) throws IndexOutOfBoundsException {\n\t\tif(checkIndex(index, size)) { //check if index is valid\n\t\t\treturn values[index]; //return the value at index\n\t\t}else {\n\t\t\tthrow new IndexOutOfBoundsException(\"Highest index: \" + size);\n\t\t}\t\n\t}", "public int getValue() {\r\n return index;\r\n }", "public abstract T get(int index);", "public E get(int index) {\r\n\t\tif (indices.get(index) == null) {\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\t} else {\r\n\t\t\treturn indices.get(index).data;\t\t\r\n\t\t}\r\n\t}", "public T get(int index) {\n return this.list[index];\n }", "public E get(int index)\n { \n if(index >= size() || index < 0)\n {\n return null; \n }\n Node<E> n = getNode(index);\n return n.getValue();\n }", "E get( int index );", "public T get(int index) {\r\n return getNodeAtIndex(index).getData();\r\n }", "public E get(int index)\n\t{\n\t\treturn contents[index];\n\t}", "public T get(int index) throws IndexOutOfBoundsException {\n checkException(index);\n return arr[index];\n }", "public T get(int index){\n if(!rangeCheck(index)){\n return null;\n }\n return (T)data[index];\n }", "int get(int idx);", "public Object get(final int index) {\n return super.get(index);\n }", "public long getValue(int index) {\n return value_.getLong(index);\n }", "public int getElementAtIndex(int index){\r\n return mArray[index];\r\n }", "@Override\n public T get(int index) {\n return indexCheck(index) ? (T) data[index] : null;\n }", "@Override\r\n\tpublic T get(int index) {\n\t\treturn this._list.get(index);\r\n\t}", "public Object get(int index) {\n\tif(index > arr.length) return null;\n\treturn arr[index];\n}", "public int get(int index) {\n\t\treturn nodeAt(index).data;\n\t}", "Value get(int index) throws ExecutionException;", "public long getValue(int index) {\n return value_.getLong(index);\n }", "public synchronized E get(int index) {\n return this.array.get(index);\n }", "public E get(int index)\r\n {\r\n checkValidIndex(index);\r\n return listIterator(index).next();\r\n }", "public U get(int index) throws IndexOutOfBoundsException {\n\t\t\tif (index >= mLength || index < 0) {\n\t\t\t\tthrow new IndexOutOfBoundsException(\"Supplied index is invalid.\");\n\t\t\t}\n\n\t\t\treturn getNodeAtIndex(index).getValue();\n\t\t}", "public Object get(int index) {\n isValidIndex(index);\n return getNode(index).data;\n }", "public E get(int index) {\n return this.elements[index];\n }", "public E get(int index) {\r\n return items.get(index);\r\n }", "public Object getValueAt(int index);", "public T getByIndex(int index) {\n\n return this.myList[index];\n }", "public long getElem(int index) {\r\n return a[index];\r\n }", "public Object get(int index) {\r\n return deref(refs.get(index));\r\n }", "public E get(int index);", "public Object get(int index)\n {\n return items[index];\n }", "@Override\n public T get(int index) {\n return list.get(index);\n }", "@Override\n public E get(final int index) {\n return array[index];\n }", "public T get(int index) {\n return items[(nextFirst + 1 + index) % capacity];\n }", "@Override\n public E get(final int index) {\n ensureValidIndex(size, index);\n return super.get(index + lower);\n }", "public Item get(int index) {\n int track = nextFirst; //It does not modify nextFirst\n track = moveForward(track, index + 1);\n return items[track];\n }", "public Object get(int index) {\n\t\tif(index <= arr.length-1) return arr[index];\n\t\treturn null;\n\t}", "public @Override E get(int index) {\n \treturn getNode(index).data;\n }", "public T get( int index ){\n return getNo( index ).getConteudo();\n }", "public E get(int index) {\n\t\tcheckBounds(index);\r\n\t\treturn getNode(index).getData();\r\n\t}", "@Override\n\tpublic T get(int index) {\n\t\tif (index >= 0 && index < size) {\n\t\t\treturn data[index];\n\t\t}\n\t\treturn null;\n\t}", "int get(int index)\n\t{\n\t\t//Get the reference of the head of the Linked list\n\t\tNode ref = head;\n\t\t\n\t\t//Initialize the counter to -1\n\t\tint count = -1;\n\t\t\n\t\t//Traverse the Linked List until the Node with position index is reached\n\t\twhile(count != index)\n\t\t{\n\t\t\tcount++;\n\t\t\tref = ref.next;\n\t\t}\n\t\t\n\t\t//Return the value of the Node having position index\n\t\treturn ref.value;\n\t}", "public Type get(int index);", "String get(int index);", "public Object get(int index) {\n if (index==0) {\n return t;\n } else if (index==1) {\n return u;\n }\n throw new IndexOutOfBoundsException();\n }", "public E get(int index)\n {\n if (index >= 0 && index < size)\n return data[index];\n else\n throw new NoSuchElementException();\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic T getVal(int idx) {\n\t\treturn (T) nvPairs.get((idx << 1) + 1);\n\t}", "public int get(int index) {\n if(index>-1 && index<len) {\n SingleNode iSingleNode = head;\n for(int i=0; i<index; i++) {\n\n iSingleNode = iSingleNode.next;\n }\n return iSingleNode.data;\n }\n return 0;\n }", "public abstract E get(int index);", "float get(int idx);", "public int get(final int index) {\n return mFactorBase[index];\n }", "public double get(int index) {\n\t\treturn 0;\n\t}", "public float get(int index) {\r\n RangeCheck(index);\r\n return elementData[index];\r\n }", "public Object get(int index) {\n\t\tif (this.index == index) {\n\t\t\treturn object;\n\t\t} else {\n\t\t\treturn nextItem.get(index);\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n public E get(int index) {\n checkIndex(index);\n return (E) list[index];\n }", "public E get(int index) {\n\t\tif (index < 0 || index >= mSize)\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\treturn getNode(index).data;\n\t}", "@Override\r\n\tpublic double getValue(int index) {\n\t\tif (data==null) return 0;\r\n\t\t\r\n\t\tdouble d = 0;\r\n\t\tint begin=index+pos;\r\n\t\tif (begin<0) begin=0;\r\n\t\tif (begin>data.size()-1) begin = data.size()-1;\r\n\t\td = data.get(begin).getOpen();\r\n\t\t\r\n\t\treturn d;\r\n\t}", "public int getElement(int index) {\r\n\t\t//Defensive\r\n\t\tif (index < 0) {\r\n\t\t\tthrow new IllegalArgumentException(\"Index less than zero\");\r\n\t\t}\r\n\t\tif (index >= getLength()) {\r\n\t\t\tthrow new IllegalArgumentException(\"Index out of upper bound\");\r\n\t\t}\r\n\t\tif (getLength() <= 0) {\r\n\t\t\tthrow new IllegalArgumentException(\"The array does not yet exist\");\r\n\t\t}\r\n\t\t\r\n\t\treturn getNodeAt(index).value;\r\n\t}", "public E get(int idx) {\n assert idx >= 0;\n \n if(v == array[idx]){\n\t\tv = array[idx];\n\t}\n\t\n\tif(array[idx] == null){\n\t\tv = null;\n\t}\n\treturn v;\n }", "public Integer get(int index) {\r\n return dice.get(index);\r\n }", "public E get(int index) {\n return this.getNodeAt(index).getData();\n }", "public double get(int index) {\n\t\treturn _elements.getOrDefault(index, 0.0);\n\t}", "public E get(int index) { \n return (E)list[index];\n }", "public Object get(int index) \r\n throws ListIndexOutOfBoundsException {\r\n\t\t\t\t\tif (index >= 0 && index <= numItems) { // If statement to catch out of bounds exception\r\n\t\t\t\t\t\t Node curr = head; // states curr is at head posistion\r\n\t\t\t\t\t\t for (int i = 1; i < index; i++) { // for loop to get to the current posistion that is equivelnt to i\r\n\t\t\t\t\t\t\t curr = curr.getNext();\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t return curr.getItem(); // returns item in current node\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t throw new ListIndexOutOfBoundsException (\"List index out of bounds\"); // else throws an index out of bounds exception\r\n\t\t\t\t\t}\r\n }", "@Override\n public final Integer get(final int index) {\n if (!checkRange(index)) {\n throw new IndexOutOfBoundsException();\n } else {\n return arrayList[index];\n }\n }" ]
[ "0.82284284", "0.80888486", "0.80303985", "0.7981444", "0.78812593", "0.78211176", "0.7756181", "0.7618478", "0.7618478", "0.7597424", "0.7596455", "0.7560562", "0.7560562", "0.7560562", "0.75506765", "0.75506765", "0.7546802", "0.751516", "0.7497478", "0.7480492", "0.74663556", "0.7464599", "0.74422914", "0.7418572", "0.74137276", "0.7412494", "0.74075323", "0.7393542", "0.7383179", "0.7383179", "0.7383179", "0.7383179", "0.7383179", "0.73475367", "0.7347312", "0.73414993", "0.73311365", "0.7326895", "0.732664", "0.7310431", "0.7298353", "0.72933656", "0.7289298", "0.72802216", "0.72713786", "0.7256825", "0.7245081", "0.7227475", "0.72182614", "0.7217943", "0.7210311", "0.7196658", "0.7196129", "0.7193174", "0.7182271", "0.71785593", "0.7160047", "0.7150858", "0.71405447", "0.7129391", "0.7128617", "0.71111417", "0.7110822", "0.71030223", "0.70988137", "0.70963067", "0.7092106", "0.70910263", "0.70854616", "0.70811725", "0.70766294", "0.7068442", "0.7063911", "0.70513433", "0.70461226", "0.70436203", "0.70376134", "0.7037544", "0.7032266", "0.7027208", "0.70255816", "0.70112866", "0.7006627", "0.7005932", "0.70011246", "0.6997927", "0.6988989", "0.6987364", "0.6986787", "0.69705474", "0.6966662", "0.69645566", "0.69481295", "0.6941182", "0.69225055", "0.6919966", "0.6910545", "0.68934757", "0.68920094", "0.6891554", "0.6890129" ]
0.0
-1
Returns the getArrayLength of the current array.
public int length() { if(integerList == null) return 0; else return integerList.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getArrayLength();", "int getArrayLength();", "public int getLength(){\r\n\t \treturn arraySize;\r\n\t }", "public int size() {\n //encapsulate\n int size = this.array.length;\n return size;\n }", "public int size() {\n\t\treturn array.length();\n\t}", "public int arrayCount()\n\t{\n\t\treturn _arrayCount;\n\t}", "long arrayLength();", "public int size()\n\t{\n\t\treturn arraySize;\n\t}", "public int arraySize();", "public int getSize() {\r\n return array.length;\r\n }", "int size()\n\t{\n\t\t//If array is null then return -1\n\t\tif(inputArray == null)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\t\n\t\t//If the array is not null then return the length of the array\n\t\treturn inputArray.length;\n\t}", "int size() {\n\t\treturn array.length;\n\t}", "public static int arrayLength(final Object array) {\r\n if (GWT.isProdMode()) {\r\n return jsniLength(array);\r\n } else {\r\n return Array.getLength(array);\r\n }\r\n }", "@Override\n public synchronized int getSize() {\n return mArray.size();\n }", "protected String getArraySize()\n {\n return arraySize;\n }", "@Override\n public int size() {\n return array.length;\n }", "public int sizeOfSubArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SUB$2);\n }\n }", "public int getTrueSize() {\n int len = ArrayFuncs.computeSize(dataArray);\n return len;\n }", "public int queueArrayLength(){\n\t\treturn queueArray.length;\n\t}", "protected int getArraySize(){\r\n\t \treturn numElems;\r\n\t \t//return arraySize;\r\n\t }", "public int sizeOfAxisArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(AXIS$1);\n }\n }", "public int sizeOfDeviceArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DEVICE$12);\n }\n }", "public int sizeOfValueArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(VALUE$0);\n }\n }", "public int getLength() {\n\t\treturn boardArray.size();\n\t}", "public int sizeOfIndexArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(INDEX$12);\r\n }\r\n }", "public int sizeOfBrArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(BR$6);\n }\n }", "protected int getLength() {\n\t\treturn this.length;\n\t}", "public int getLength() {\n\t\treturn this.length;\n\t}", "public int sizeOfVolumeArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(VOLUME$4);\r\n }\r\n }", "public int sizeOfCurbArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(CURB$10);\r\n }\r\n }", "public int getLength() {\n return this.length;\n }", "public int getLength() {\n return this.length;\n }", "public int sizeOfMemberArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(MEMBER$14);\n }\n }", "public int getValuesArrLength() {\n\t\treturn valuesArr.size();\n\t}", "public int getLength() {\n\t\treturn data.length;\n\t\t\n\t}", "public int length(){ return this.isUpgraded ? this.linkArray.length() : this.nativeArray.size(); }", "public int size() {\n return a.length;\n }", "protected int getNumArrayMembers()\n {\n return numArrayMembers;\n }", "public int getLength(){\n\t\treturn data.length;\n\t}", "protected int getLength() {\n int length = super.getLength(); //see if it is defined in the ncml\n if (length < 0) {\n double[] t = getTimes();\n if (t != null) length = t.length;\n else length = 0;\n }\n return length;\n }", "public int sizeOfErrorArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(ERROR$0);\r\n }\r\n }", "public int sizeOfDataChckArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DATACHCK$14);\n }\n }", "public int length() {\n return size();\n }", "public int getLength()\n\t{\n\t\treturn mLength;\n\t}", "public int sizeOfErrorArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(ERROR$0);\r\n }\r\n }", "public int capacity()\n {\n return array.length;\n }", "public int length() {\n\t\treturn size;\r\n\t}", "public int getLength()\n\t{\n\t\treturn (int) length;\n\t}", "public double getLength() {\n return count;\n }", "public long getEdgesArrayLength() {\n\t\treturn edgesLength;\n\t}", "@Override\n public final native int getLength() /*-{\n return this.length;\n }-*/;", "public int sizeOfPointArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(POINT$0);\n }\n }", "public int sizeOfCharacteristicArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(CHARACTERISTIC$12);\n }\n }", "public Integer getLength() {\n return _length;\n }", "public Integer getLength() {\n return _length;\n }", "public int length() {\n return data.length;\n }", "public int capacity( )\n {\n return array.length;\n }", "public int length()\n\t{\n\t\treturn length;\n\t}", "public int sizeOfParamArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(PARAM$14);\r\n }\r\n }", "public int sizeOfTimingArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(TIMING$2);\r\n }\r\n }", "public int sizeOfGuardianArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(GUARDIAN$22);\n }\n }", "public int capacity() {\n return arraySize;\n }", "public int getLength() {\n return mySize.getLength();\n }", "public int length()\n\t{\n\t\tint total_length=0;\n\t\tfor(int iterator=0; iterator<data.length;iterator++)\n\t\t{\n\t\t\tif(data[iterator]!=0)\n\t\t\t{\n\t\t\t\ttotal_length++;\n\t\t\t}\n\t\t}\n\t\treturn total_length;\n\t}", "@Override\n\tpublic Integer getLen() {\n\t\treturn this.len;\n\t}", "public int sizeOfSegmentArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SEGMENT$2);\n }\n }", "public int length() {\n\t\treturn length;\n\t}", "public int length() {\n\t\treturn length;\n\t}", "public int sizeOfEventArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(EVENT$0);\n }\n }", "public int getLength()\n\t{\n\t\treturn length;\n\t}", "public int getLength()\n\t{\n\t\treturn length;\n\t}", "public int length() {\n \t \n \t //return the length\n \t return(len);\n }", "public long size() {\n return CoreJni.sizeInCoreRenderNodeDescArrayView(this.agpCptr, this);\n }", "public int length() {\n\t\treturn value.length;\n\t}", "public long getNodesArrayLength() {\n\t\treturn nodesLength;\n\t}", "public int getLength() {\r\n\t\treturn length;\r\n\t}", "public int int_length() {\n return int_size();\n }", "public int sizeOfDosageArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DOSAGE$14);\n }\n }", "public int getLength()\n {\n return stream.getInt(COSName.LENGTH, 0);\n }", "public int sizeOfCornerArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(CORNER$12);\r\n }\r\n }", "public int size() {\n return AL.length;\n }", "public int length() {\n return data.length;\n }", "public int sizeOfSupArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SUP$4);\n }\n }", "public int sizeOfTypekeyArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(TYPEKEY$16);\r\n }\r\n }", "public int sizeOfFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FEATURE$14);\r\n }\r\n }", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int size()\n \t{\n \t\treturn getLength();\n \t}", "public double Length() {\n return OCCwrapJavaJNI.Units_Dimensions_Length(swigCPtr, this);\n }", "public int sizeOfNameArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(NAME$8);\n }\n }", "protected int length() { return FormatTools.getRasterLength(lengths); }", "public int getLength() {\n return length;\n }", "public int getLength() {\n return length_;\n }", "public int sizeOfParametersArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(PARAMETERS$16);\n }\n }", "public int getMaxSize()\r\n\t{\r\n\t\tSystem.out.print(\"The Max size of the Array is \");\r\n\t\treturn MAXSIZE;\r\n\t}", "public int length() {\n return length;\n }", "public int length() {\n return length;\n }" ]
[ "0.84385896", "0.84385896", "0.80211425", "0.7943986", "0.790487", "0.78864455", "0.78627735", "0.78059685", "0.7766548", "0.76965714", "0.76740724", "0.75483596", "0.7524163", "0.7195932", "0.7174264", "0.71366894", "0.70647544", "0.7052528", "0.70499307", "0.7045208", "0.6887472", "0.6875184", "0.68744487", "0.68690556", "0.68573797", "0.67612803", "0.671423", "0.67076534", "0.6693973", "0.66364354", "0.6633338", "0.6633338", "0.66322297", "0.6623894", "0.6608036", "0.6603483", "0.6591466", "0.65868455", "0.6585079", "0.6576593", "0.656283", "0.6558859", "0.6532624", "0.65174305", "0.6516972", "0.6496438", "0.64898777", "0.6489038", "0.64855653", "0.6479489", "0.64680475", "0.6466948", "0.64606076", "0.644808", "0.644808", "0.6444129", "0.643656", "0.6428274", "0.6424123", "0.6424086", "0.6423163", "0.64210343", "0.64173424", "0.6417015", "0.6415099", "0.6406873", "0.6402324", "0.6402324", "0.6399505", "0.63931715", "0.63931715", "0.6386634", "0.63866085", "0.63797027", "0.6377689", "0.6375772", "0.637475", "0.63646555", "0.6363462", "0.63613", "0.63584614", "0.6348879", "0.63473624", "0.6346612", "0.6346513", "0.63443214", "0.63443214", "0.63443214", "0.63443214", "0.63443214", "0.63443214", "0.634323", "0.63429374", "0.63411045", "0.6336866", "0.6329614", "0.63248193", "0.63246197", "0.63215923", "0.6316691", "0.6316691" ]
0.0
-1
getCompareSum returns the amount we want to compare our sum to.
public Long getCompareSum() { return compareSum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getSum();", "double getSum();", "public java.math.BigDecimal getSum() {\n\treturn sum;\n}", "public double sumMoney(){\n\t\tdouble result = 0;\n\t\tfor(DetailOrder detail : m_DetailOrder){\n\t\t\tresult += detail.calMoney();\n\t\t}\n\t\tif(exportOrder == true){\n\t\t\tresult = result * 1.1;\n\t\t}\n\t\treturn result;\n\t}", "public BigDecimal getSumAmount() {\r\n return sumAmount;\r\n }", "public double getSUM() {\n return sum;\n }", "public int compareTo(Object compared)\n\t{\n\t\tint comparedValue = Integer.MIN_VALUE;\n\t\t\n\t\tif( compared instanceof Wallet)\n\t\t{\n\t\t\tif(this.amountOfMoney() > ((Wallet) compared).getMoney())\n\t\t\t{\n\t\t\t\tcomparedValue = 1;\n\t\t\t}\n\t\t\telse if(this.amountOfMoney() < ((Wallet) compared).getMoney())\n\t\t\t{\n\t\t\t\tcomparedValue = -1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcomparedValue = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn comparedValue;\n\t}", "public Integer getSum() {\n return sum;\n }", "public io.dstore.values.BooleanValue getComputeSum() {\n if (computeSumBuilder_ == null) {\n return computeSum_ == null ? io.dstore.values.BooleanValue.getDefaultInstance() : computeSum_;\n } else {\n return computeSumBuilder_.getMessage();\n }\n }", "@Override\n\tpublic double sumMoney() {\n\t\treturn ob.sumMoney();\n\t}", "public String getSum();", "public String getSum() {\n return sum;\n }", "public String getCalculatedDititsSum() {\n return driver.findElement(digitSumLocator).getAttribute(\"value\");\n }", "public int calcSum() {\n\t\tint sum = 0;\n\t\tfor (int count = 0; count < data.size(); count++)\n\t\t\tsum += (int)data.get(count);\n\t\treturn sum;\n\t}", "public int getMinimumPaymentSum() {\n return model.getMinimumPaymentSum();\n }", "@Step\n public String getBetSum(){\n return actionWithWebElements.getTextFromElementSum(betSum);\n }", "private void getSum() {\n double sum = 0;\n for (int i = 0; i < remindersTable.getRowCount(); i++) {\n sum = sum + parseDouble(remindersTable.getValueAt(i, 3).toString());\n }\n String rounded = String.format(\"%.2f\", sum);\n ledgerTxtField.setText(rounded);\n }", "public io.dstore.values.BooleanValue getComputeSum() {\n return computeSum_ == null ? io.dstore.values.BooleanValue.getDefaultInstance() : computeSum_;\n }", "public io.dstore.values.BooleanValueOrBuilder getComputeSumOrBuilder() {\n if (computeSumBuilder_ != null) {\n return computeSumBuilder_.getMessageOrBuilder();\n } else {\n return computeSum_ == null ?\n io.dstore.values.BooleanValue.getDefaultInstance() : computeSum_;\n }\n }", "public int getSum() {\n\t\t\treturn 0;\r\n\t\t}", "public Integer calculateSum() {\n logger.debug(\"Calculating and returning the sum of expenses.\");\n return listOfTargets.stream().map(T::getAmount).reduce(0, Integer::sum);\n }", "public KualiDecimal getCoinTotal(CashDrawer drawer);", "@Override\n\t\tpublic int compare(ScoreSum lhs, ScoreSum rhs) {\n\t\t\tScoreSum temp1 = lhs;\n\t\t\tScoreSum temp2 = rhs;\n\t\t\tint num = temp1.getScore().compareTo(temp2.getScore());\n\t\t\tif (num == 0)\n\t\t\t\treturn temp1.getAthleteName().compareTo(temp2.getAthleteName());\n\t\t\treturn num;\n\t\t}", "public int getRent(int rollSum){\n if(owner != null) {\n if (groupName == 002) {// railroad\n\n return (int) (Math.pow(2, (numberOfAGroupOwned(002) - 1))) * 25;\n\n } else if (groupName == 005) {// utilities\n\n if (numberOfAGroupOwned(005)==2) {// if they own both utilities\n\n return rollSum * 10;\n\n } else {// if they own 1 utility\n\n return rollSum * 4;\n\n }\n\n } else {//normal properties\n\n if (playerHasMonopoly() && this.numberHouses == 0) {// if they have a monopoly but no houses\n\n return this.rent[numberHouses] * 2;\n\n\n }else if(playerHasMonopoly() && this.numberHouses != 0) {// if they have a monopoly and any amount of houses\n\n return this.rent[numberHouses];\n\n } else{// if they don't have a monopoly\n\n return this.rent[numberHouses];\n\n }\n\n }\n } else{\n\n return 0;\n\n }\n\n }", "public double sumTransactions() {\n\t\treturn checkIfTransactionsExist(true);\n\t}", "public Double getBalance(){\n Double sum = 0.0;\n // Mencari balance dompet dari transaksi dengan cara menghitung total transaksi\n for (Transaction transaction : transactions) {\n sum += transaction.getAmount().doubleValue();\n }\n return sum;\n }", "private Double getGiftCheckAmount(int orNo, int storeCode) {\n\t\tString query = \"SELECT SUM(g.AMOUNT) FROM invoice o, gc_item g WHERE o.OR_NO = g.OR_NO and o.STORE_CODE = g.STORE_CODE AND o.OR_NO = '\"+orNo+\"' AND o.STORE_CODE = '\"+storeCode+\"'\";\r\n\t\t\r\n\t\tlogger.debug(\"GIFTCHECK AMOUNT QUERY=\"+query);\r\n\t\tResultSet rs = Main.getDBManager().executeQuery(query);\r\n//\t\tResultSet rs = Main.getDBManager().executeQuery(\"SELECT sum(p.AMT) from payment_item p WHERE MONTH (p.TRANS_DT) = '\"+month+\"' && YEAR(p.TRANS_DT) = '\"+year+\"' && DAY(p.TRANS_DT) = '\"+day+\"' AND p.STORE_CODE = '\"+storeCode+\"'\");\r\n\t\tDouble giftCheckAmount = 0.0d;\r\n\t\ttry {\r\n\t\t\twhile(rs.next()){\r\n//\t\t\t\tdouble amount = rs.getDouble(1);\r\n//\t\t\t\tdailySale = amount/getVatRate();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tgiftCheckAmount = rs.getDouble(1);\r\n\t\t\t\tlogger.debug(\"Gift Check Amount: \"+giftCheckAmount);\r\n\t\t\t\treturn giftCheckAmount;\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tLoggerUtility.getInstance().logStackTrace(e);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public float getPurchasedListSum()\r\n\t{\r\n\t\tfloat fTempSum = 0;\r\n\t\tfor(int i = 0 ; i < m_purechaseList.size() ; i++)\r\n\t\t{\r\n\t\t\tfTempSum += m_purechaseList.get(i).getPurchasItemCost();\r\n\t\t}\r\n\t\treturn fTempSum;\t\t\r\n\t}", "private int getIndividual(double fitSum) {\n double sum = 0;\n\n // I need a double number between 0 and fitSum\n double goal = rand.nextDouble() * Math.abs(fitSum);\n\n \n\n\n for (int i = 0; i < fitScores.size(); i++) {\n sum += Math.abs(fitScores.get(i));\n\n if (sum >= goal) {\n return i;\n }\n }\n System.out.println(\"The goal fit \" + goal + \" The sum of fit \" + sum);\n\n // not working\n return -1;\n\n }", "public int get_sum_a() {\n return (int)getSIntBEElement(offsetBits_sum_a(), 32);\n }", "public TCheckSumValue getCheckSumValue() {\n\n\t\treturn checkSumValue;\n\t}", "io.dstore.values.BooleanValue getComputeSum();", "private static int[] calculateMinCoinsForSum(int[] coins, int sum) {\n\n\t\tint[] minSum = new int[sum + 1];\n\t\tminSum[0] = 0;\n\t\tint minCoins = 0;\n\n\t\tfor (int i = 1; i < minSum.length; i++) {\n\t\t\tminSum[i] = Integer.MAX_VALUE;\n\t\t\tfor (int j = 0; j < coins.length; j++) {\n\t\n\t\t\t\tif (coins[j] <= i) {\n\n\t\t\t\t\tint diff = i - coins[j];\n\t\t\t\t\tminCoins = minSum[diff] + 1;\n\t\t\t\t\tminSum[i] = Math.min(minCoins, minSum[i]);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn minSum;\n\t}", "int getChestsAmount();", "public int getACsum() {\n return (int)sum;\n }", "Quantity getComparisonValue();", "public Quantity<Q> getSum() {\n return sum;\n }", "@Test\n\tpublic void testSum() {\n\t\tassertEquals(155, g1.sum(), .0001);\n\t\tassertEquals(226, g2.sum(), .0001);\n\t\tassertEquals(298, g3.sum(), .0001);\n\t}", "public int totalGemValue() {\r\n\t\ttotal = 0;\r\n\t\ttotal += gemPile[0];\r\n\t\ttotal += gemPile[1] * 2;\r\n\t\ttotal += gemPile[2] * 3;\r\n\t\ttotal += gemPile[3] * 4;\r\n\t\treturn total;\r\n\t}", "public java.math.BigDecimal getSumm() {\n\treturn summ;\n}", "public static void compareArrays(int[] compare, int find) {\n int[] arr = Arrays.copyOfRange(compare, 0, compare.length);\n int totalScore = 0;\n\n // Outer loop\n for (int i = 0; i < arr.length; i++) {\n\n int currentSum = find; // Reset each pass\n\n for (int j = 0; j < arr.length - i; j++) {\n\n currentSum -= arr[i + j];\n\n if (currentSum < 0) continue;\n\n // Combination found\n if (currentSum == 0) {\n\n // Sets dices used for calculation to 0;\n for (int y = i; y <= i + j; y++) {\n arr[y] = 0;\n }\n totalScore += find;\n currentSum = find; // reset\n i = 0; // Reset outer loop\n j = -1; // Reset inner loop\n }\n }\n }\n score.add(totalScore);\n }", "public BigInteger getWaysToRoll(int sum){\n\n if ( sum < dice.size() || sum > getMaxDiceRoll().intValue() ) {\n return BigInteger.ZERO;\n }\n \n return distribution.get(sum-dice.size());\n }", "public long getSum()\n {\n long sum = 0;\n\n for(int i = 0; i < integerList.length; i++)\n {\n sum = sum + integerList[i];\n }\n\n return sum;\n }", "BigDecimal getSumOfTransactionsRest(TransferQuery query);", "public final EObject ruleSumOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5015:28: ( ( () otherlv_1= 'sum' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5016:1: ( () otherlv_1= 'sum' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5016:1: ( () otherlv_1= 'sum' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5016:2: () otherlv_1= 'sum'\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5016:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5017:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getSumOperatorAccess().getSumOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,71,FOLLOW_71_in_ruleSumOperator11393); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getSumOperatorAccess().getSumKeyword_1());\r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public double calTotalAmount(){\n\t\tdouble result=0;\n\t\tfor (int i = 0; i < this.cd.size(); i++) {\n\t\t\tresult += this.cd.get(i).getPrice();\n\t\t}\n\t\treturn result;\n\t}", "public Integer getSalesSum() {\n return salesSum;\n }", "public double sumMoney(MoneyNode p) {\r\n // Base case: empty list\r\n if (p == null)\r\n return 0;\r\n if (p.data instanceof Bill) // Bill type\r\n return ((Bill) p.data).getValue() + sumMoney(p.next); // add up the\r\n // dollar\r\n // amount\r\n else // Coin type\r\n return ((Coin) p.data).getValue() / 100.0 + sumMoney(p.next); // add\r\n // up\r\n // the\r\n // cents\r\n // amount\r\n }", "public final double getObsWeightedSum() {\n return (myJsum);\n }", "public double getSum()\n {\n return first + second;\n }", "public BigDecimal getSumCnt() {\r\n return sumCnt;\r\n }", "public int get_sum_e() {\n return (int)getSIntBEElement(offsetBits_sum_e(), 32);\n }", "public int sumofPrice(){\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tString selectQuery = \"SELECT SUM(price) FROM \" + TABLE_SHOP;\n\t\tCursor cur = db.rawQuery(selectQuery, null);\n\t\tint total=0;\n\t\tif(cur.moveToFirst())\n\t\t{\n\t\t\ttotal = cur.getInt(0);\n\t\t}\n\t\treturn total;\n\t}", "int getChksum();", "public double getTotalAmountOfInterest(){\n\t\tdouble amount = getAmountOfFixedPayments()*no_years*no_payments_yearly - principal_amount;\n\t\tdouble result = Math.round(amount*100.0) / 100.0;\n\t\treturn result;\n\t}", "public int getTotalAmount();", "@Override\n\tpublic double getSumOfCost() {\n\t String sql=\"SELECT SUM(cost) FROM supplier_product\";\n\t double total=this.getJdbcTemplate().queryForObject(sql, double.class);\n\t\treturn total;\n\t}", "private static int getBoardSum(Game2048Board board) {\n int boardSum = 0;\n for (Game2048Tile tile : board.getItems()) {\n boardSum += Math.pow(tile.getValue().VAL, SCORE_SUM_POWER);\n }\n return boardSum;\n }", "public final EObject ruleSumFunction() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n Token otherlv_3=null;\r\n Token otherlv_5=null;\r\n EObject lv_operator_0_0 = null;\r\n\r\n EObject lv_values_2_0 = null;\r\n\r\n EObject lv_values_4_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3355:28: ( ( ( (lv_operator_0_0= ruleSumOperator ) ) otherlv_1= '(' ( (lv_values_2_0= ruleNumberExpression ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleNumberExpression ) ) )* otherlv_5= ')' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3356:1: ( ( (lv_operator_0_0= ruleSumOperator ) ) otherlv_1= '(' ( (lv_values_2_0= ruleNumberExpression ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleNumberExpression ) ) )* otherlv_5= ')' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3356:1: ( ( (lv_operator_0_0= ruleSumOperator ) ) otherlv_1= '(' ( (lv_values_2_0= ruleNumberExpression ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleNumberExpression ) ) )* otherlv_5= ')' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3356:2: ( (lv_operator_0_0= ruleSumOperator ) ) otherlv_1= '(' ( (lv_values_2_0= ruleNumberExpression ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleNumberExpression ) ) )* otherlv_5= ')'\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3356:2: ( (lv_operator_0_0= ruleSumOperator ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3357:1: (lv_operator_0_0= ruleSumOperator )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3357:1: (lv_operator_0_0= ruleSumOperator )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3358:3: lv_operator_0_0= ruleSumOperator\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getSumFunctionAccess().getOperatorSumOperatorParserRuleCall_0_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleSumOperator_in_ruleSumFunction7173);\r\n lv_operator_0_0=ruleSumOperator();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getSumFunctionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"operator\",\r\n \t\tlv_operator_0_0, \r\n \t\t\"SumOperator\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,43,FOLLOW_43_in_ruleSumFunction7185); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getSumFunctionAccess().getLeftParenthesisKeyword_1());\r\n \r\n }\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3378:1: ( (lv_values_2_0= ruleNumberExpression ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3379:1: (lv_values_2_0= ruleNumberExpression )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3379:1: (lv_values_2_0= ruleNumberExpression )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3380:3: lv_values_2_0= ruleNumberExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getSumFunctionAccess().getValuesNumberExpressionParserRuleCall_2_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleNumberExpression_in_ruleSumFunction7206);\r\n lv_values_2_0=ruleNumberExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getSumFunctionRule());\r\n \t }\r\n \t\tadd(\r\n \t\t\tcurrent, \r\n \t\t\t\"values\",\r\n \t\tlv_values_2_0, \r\n \t\t\"NumberExpression\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3396:2: (otherlv_3= ',' ( (lv_values_4_0= ruleNumberExpression ) ) )*\r\n loop45:\r\n do {\r\n int alt45=2;\r\n int LA45_0 = input.LA(1);\r\n\r\n if ( (LA45_0==20) ) {\r\n alt45=1;\r\n }\r\n\r\n\r\n switch (alt45) {\r\n \tcase 1 :\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3396:4: otherlv_3= ',' ( (lv_values_4_0= ruleNumberExpression ) )\r\n \t {\r\n \t otherlv_3=(Token)match(input,20,FOLLOW_20_in_ruleSumFunction7219); if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \tnewLeafNode(otherlv_3, grammarAccess.getSumFunctionAccess().getCommaKeyword_3_0());\r\n \t \r\n \t }\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3400:1: ( (lv_values_4_0= ruleNumberExpression ) )\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3401:1: (lv_values_4_0= ruleNumberExpression )\r\n \t {\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3401:1: (lv_values_4_0= ruleNumberExpression )\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3402:3: lv_values_4_0= ruleNumberExpression\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getSumFunctionAccess().getValuesNumberExpressionParserRuleCall_3_1_0()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FOLLOW_ruleNumberExpression_in_ruleSumFunction7240);\r\n \t lv_values_4_0=ruleNumberExpression();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getSumFunctionRule());\r\n \t \t }\r\n \t \t\tadd(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"values\",\r\n \t \t\tlv_values_4_0, \r\n \t \t\t\"NumberExpression\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n \t }\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop45;\r\n }\r\n } while (true);\r\n\r\n otherlv_5=(Token)match(input,44,FOLLOW_44_in_ruleSumFunction7254); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_5, grammarAccess.getSumFunctionAccess().getRightParenthesisKeyword_4());\r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "@Test\n public void transactionSum() {\n final Transaction transaction1 = new Transaction(\"774cedda\", State.CANCELED, 1000L, new Date());\n final Account account1 = new Account(\"1001\", 0L, Collections.singletonList(transaction1));\n final Transaction transaction2 = new Transaction(\"337868a7\", State.FINISHED, 8000L, new Date());\n final Transaction transaction3 = new Transaction(\"f8047f86\", State.CANCELED, 10000L, new Date());\n final Account account2 = new Account(\"1002\", 8000L, Arrays.asList(transaction2, transaction3));\n\n final long actual = calcSumOfCancelledTransOnNonEmptyAccounts(Arrays.asList(account1, account2));\n\n Assert.assertEquals(actual, 10_000L);\n }", "public KualiDecimal getCurrencyTotal(CashDrawer drawer);", "private void getSum() {\n\t\tint sum =0;\r\n\t\t\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i] != null)\r\n\t\t\t\tsum += products[i].getPrice();\r\n\t\t}\r\n\t\tSystem.out.println(sum);\r\n\t}", "BigDecimal getGrandTotal();", "org.apache.xmlbeans.XmlDecimal xgetSingleBetMinimum();", "public float getTotal(Sale s) {\n\t\tfloat lowestTotal = Integer.MAX_VALUE;\n\t\t\n\t\tfor(ISalePricingStrategy strat : strategies) {\n\t\t\tfloat total = strat.getTotal(s);\n\t\t\tif (total < lowestTotal) {\n\t\t\t\tlowestTotal = total;\n\t\t\t\tbestStrategy = strat.discountDesc();\n\t\t\t}\t\n\t\t}\n\t\treturn lowestTotal;\n\t}", "public double getCustomerMoney(){\n double total = 0.0;\n for(Coin c : customerMoney){\n total += c.getValue();\n }\n return total;\n }", "public String getAmountCredited() {\n\t\twaitForControl(driver, LiveGuru99.WithdrawallPage.GET_AMOUNT_DEPOSIT, timeWait);\n\t\tString amount = getText(driver, LiveGuru99.WithdrawallPage.GET_AMOUNT_DEPOSIT);\n\t\treturn amount;\n\t}", "public int getSuma() {\n return suma_;\n }", "int getSuma();", "public BigDecimal getSumOfOutstanding(){\n\t\t BigDecimal a = new BigDecimal(0);\r\n//\t\t int outstandingIndex = 0;\r\n//\t\t for (int i=0 ; i<mColumnNames.length ; i++){\r\n//\t\t\t if (mColumnNames[i].equals(DBService.OUTSTANDING)){\r\n//\t\t\t\t outstandingIndex = i;\r\n//\t\t\t\t break;\r\n//\t\t\t }\r\n//\t\t }\r\n\t\t \r\n\t\t for (int i=0 ; i<getRowCount() ; i++){\r\n\t\t\t float value = (Float)getValueAt(i, 11);\r\n\t\t\t \r\n\t\t\t if (value != 0){\r\n\t\t\t\t BigDecimal b = new BigDecimal(value);\r\n\t\t\t\t a = a.add(b);\r\n\t\t\t }\r\n\t\t }\r\n\t\t \r\n\t\t return a;\r\n\t }", "public io.dstore.values.BooleanValueOrBuilder getComputeSumOrBuilder() {\n return getComputeSum();\n }", "public double getBankMoney(){\n double total = 0.0;\n for(Coin c : bank){\n total += c.getValue();\n }\n return total;\n }", "private Double getReturnedItemsAmount(int orNo, int storeCode) {\n\t\tString query = \"SELECT SUM(r.SELL_PRICE*r.QUANTITY) FROM returned_items r, invoice o, payment_item p WHERE r.OR_NO = o.OR_NO AND p.OR_NO = o.OR_NO AND p.STORE_CODE = o.STORE_CODE AND r.STORE_CODE = o.STORE_CODE and o.OR_NO = '\"+orNo+\"' AND r.OR_NO = o.OR_NO AND o.STORE_CODE = '\"+storeCode+\"' and o.RETURN = 1\";\r\n\t\tResultSet rs = Main.getDBManager().executeQuery(query);\r\n//\t\tResultSet rs = main.getDb().executeQuery(\"SELECT sum(p.AMT) from payment_item p WHERE MONTH (p.TRANS_DT) = '\"+month+\"' && YEAR(p.TRANS_DT) = '\"+year+\"' && DAY(p.TRANS_DT) = '\"+day+\"' AND p.STORE_CODE = '\"+storeCode+\"'\");\r\n\t\tDouble returnedItemsAmount= 0.0d;\r\n\t\ttry {\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\treturnedItemsAmount = rs.getDouble(1);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tLoggerUtility.getInstance().logStackTrace(e);\r\n\t\t}\r\n\t\tlogger.debug(\"Returned Items Amount: \"+returnedItemsAmount);\r\n\t\treturn returnedItemsAmount;\r\n\t}", "public Boolean getSum() {\n return sum;\n }", "BigDecimal getSumOfTransactions(StatisticalDTO dto) throws DaoException;", "public double getDistance() {\n\t\tdouble sum = 0;\n\t\tfor(int i = 0; i < ordering.size() - 1; i++) {\n\t\t\tsum += cost[ordering.get(i) - 1][ordering.get(i+1) - 1];\n\t\t}\n\t\treturn sum;\n\t}", "public int getSuma() {\n return suma_;\n }", "public void setSum(String sum) {\n this.sum = sum;\n }", "private static int totalNumberOfWays(int[] coins, int sum) {\n\t\tif(coins.length == 0 || sum <=0) {\n\t\t\treturn 0;\n\t\t}\n\t\t// find the length of total denomination\n\t\tint numberOfCoins = coins.length;\n\t\t//create a matrix\n\t\tint [][]arr = new int[numberOfCoins][sum+1];\n\t\tfor(int i = 0; i < numberOfCoins; i++) {\n\t\t\tarr[i][0] = 1;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < numberOfCoins; i++) {\n\t\t for(int j = 1; j <= sum; j++) {\n\t\t \n\t\t int includingCurrentCoin = 0;\n\t\t int excludingCurrentCoin = 0;\n\t\t \n\t\t if(coins[i] <= j) {\n\t\t includingCurrentCoin = arr[i][j - coins[i]];\n\t\t }\n\t\t \n\t\t if(i > 0) {\n\t\t excludingCurrentCoin = arr[i - 1][j];\n\t\t }\n\t\t \n\t\t arr[i][j] = includingCurrentCoin + excludingCurrentCoin;\n\t\t }\n\t\t } \n\t\treturn arr[numberOfCoins - 1][sum];\n\t}", "private double getCompletedTransactions(int orNo, int storeCode) {\n\t\tString query = \"SELECT SUM(p.AMT) FROM payment_item p, invoice o WHERE o.OR_NO= '\"+orNo+\"' AND p.OR_NO = o.OR_NO AND p.STORE_CODE = o.STORE_CODE AND o.STORE_CODE = '\"+storeCode+\"'\"\r\n\t\t+ \" AND EXISTS (SELECT 1 FROM INVOICE_SET s WHERE s.OR_NO = o.OR_NO) \"\r\n\t\t;\r\n\t\t\r\n\t\tResultSet rs = Main.getDBManager().executeQuery(query);\r\n\r\n\t\tDouble completedTransactions = 0.0d;\r\n\t\ttry {\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tcompletedTransactions = rs.getDouble(1);\r\n\t\t\t\tlogger.debug(\"completedTransactions \"+completedTransactions);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tLoggerUtility.getInstance().logStackTrace(e);\r\n\t\t}\r\n\t\tlogger.debug(\"completedTransactions: \"+completedTransactions);\r\n\t\treturn completedTransactions;\r\n\t}", "private double calculateTotal(){\r\n double total = 0;\r\n for(int i = 0; i < orderList.size(); i++){\r\n total += orderList.getOrder(i).calculatePrice();\r\n }\r\n return total;\r\n }", "public BigDecimal getGrandTotal();", "public BigDecimal getGrandTotal();", "public BigDecimal total() {\n return executor.calculateTotal(basket);\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.BooleanValue, io.dstore.values.BooleanValue.Builder, io.dstore.values.BooleanValueOrBuilder> \n getComputeSumFieldBuilder() {\n if (computeSumBuilder_ == null) {\n computeSumBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.BooleanValue, io.dstore.values.BooleanValue.Builder, io.dstore.values.BooleanValueOrBuilder>(\n getComputeSum(),\n getParentForChildren(),\n isClean());\n computeSum_ = null;\n }\n return computeSumBuilder_;\n }", "public BigDecimal getLineNetAmt();", "private static Pair<Integer, Integer> getMaxSumHelper(Node root) {\n\t\t\n\t\tif(root.left_ == null && root.right_ == null) {\n\t\t\treturn new Pair<Integer, Integer>(root.data_, 0);\n\t\t}\n\t\t\n\t\tPair<Integer, Integer> lp = null;\n\t\tif(root.left_ != null) {\n\t\t\tlp = getMaxSumHelper(root.left_);\n\t\t}\n\t\t\n\t\tPair<Integer, Integer> rp = null;\n\t\tif(root.right_ != null) {\n\t\t\trp = getMaxSumHelper(root.right_);\n\t\t}\n\t\t\n\t\treturn new Pair<Integer, Integer>(\n\t\t\t\tlp.getValue()+rp.getValue()+root.data_, \t// root inclusiveSum + sum of children exclusiveSum\n\t\t\t\tlp.getKey()+rp.getKey());\t\t\t\t\t// root exclusiveSum -> sum of children inclusiveSum\n\t\t\n\t}", "static BigInteger findSum(BigInteger n) {\n if (n.equals(BigInteger.ZERO))\n return BigInteger.ZERO;\n BigInteger TWO = BigInteger.valueOf(2);\n\n BigInteger sum = BigInteger.ZERO;\n sum = sum.add(\n n.multiply(n.add(BigInteger.ONE))\n .divide(TWO)\n );\n\n BigInteger flooredN = findFraction(n);\n sum = sum.add(\n n.multiply(flooredN)\n );\n\n sum = sum.subtract(\n flooredN.multiply(flooredN.add(BigInteger.ONE))\n .divide(TWO)\n );\n\n sum = sum.subtract(findSum(flooredN));\n\n return sum;\n }", "public static int getSuma() {\n\t\treturn suma;\n\t}", "public String getWalletTotal() {\n return \"$\" + wallet.getMoney();\n }", "public double getPaymentAmount() {\n\t\tdouble amount = 0.0;\n\t\tString content = \"\";\n\t\t\n\t\tWebElement temp = (new WebDriverWait(driver, waitTime))\n\t\t\t\t.until(ExpectedConditions.presenceOfElementLocated(By.id(\"totalAmt\")));\t\t\n\t\tcontent = temp.findElement(By.xpath(\"span[2]\")).getAttribute(\"innerHTML\");\n\t\tamount = Double.parseDouble(content);\n\t\treturn amount;\n\t}", "public int getSum()\n {\n return die1.getFacevalue() + die2.getFacevalue();\n }", "public int cumulativeSum() {\n int sum = 0;\n EquationList p_eqn = eqn;\n while (p_eqn != null) {\n sum = sum + p_eqn.result;\n p_eqn = p_eqn.next;\n }\n if (p_eqn == null) {\n sum = sum;\n }\n return sum;\n }", "public int sum()\n {\n return sum(0,0,size);\n }", "public int sum()\n\t{\n\t\tint sum = 0;\n\t\tfor (int index = 0; index < arraySize; index++)\n\t\t{\n\t\t\tsum += array[index];\n\t\t}\n\t\treturn sum;\n\t}", "public float getValue() {\n\t\tfloat value = 0;\n\t\tQueue<Transaction> temp = new LinkedQueue<>(); //Temp queue to keep all dequeued elements.\n\t\twhile (!shares.isEmpty()) {\n\t\t\tTransaction t = shares.dequeue(); //Dequeue the first transaction from the portfolio\n\t\t\tvalue += t.getSharePrice() * t.getShares(); //Calculate the total value of shares.\n\t\t\ttemp.enqueue(t); //Requeue the shares into the temp queue\n\t\t}\n\t\twhile(!temp.isEmpty())\n\t\t{\n\t\t\tshares.enqueue(temp.dequeue()); //Requeue all the shares back into the original queue.\n\t\t}\n\t\treturn value; //Return the total value of all shares you own.\n\t}", "public int sortaSum(int a, int b) {\n if (a + b >= 10 && a + b <= 19) {\n return 20;\n }\n\n return a + b;\n }", "public double calcTotalOreWeight() \n {\n double fTotalOre;\n\n fTotalOre = 0.0;\n for (OrePile pile : m_orePileQueue) {\t// For this to work, Iterator must be implemented in DSAQueue\n fTotalOre += pile.getWeight();\n } \n\n return fTotalOre;\n }", "public int getSum() {\n int result = 0;\n\n for (Map.Entry<Integer, Integer> entry : this.entrySet()) {\n result += entry.getKey() * entry.getValue();\n }\n\n return result;\n }", "private static int findMinimumSumLevelInGivenTree(Node tree){\n Map<Integer, Integer> sumAtEachLevelMap = new HashMap<Integer, Integer>();\n \n //puts all level sums in map\n findLevelSums(tree, sumAtEachLevelMap, 1);\n \n // gets the level with least sum\n return getMinimumSumLevel(sumAtEachLevelMap);\n }" ]
[ "0.552107", "0.552107", "0.5461221", "0.53835124", "0.5377723", "0.53390986", "0.53213394", "0.53127027", "0.5292341", "0.5252008", "0.52197945", "0.5212418", "0.51852757", "0.5183529", "0.51701206", "0.51457083", "0.5107822", "0.5050893", "0.5025182", "0.50152856", "0.4975563", "0.4970858", "0.49377233", "0.49293575", "0.4909847", "0.48946795", "0.48882744", "0.4873137", "0.48597392", "0.4818234", "0.47768152", "0.47744787", "0.47632205", "0.4752603", "0.47427514", "0.469999", "0.46932757", "0.4676976", "0.4675315", "0.46678504", "0.46661255", "0.46588653", "0.46538326", "0.46501166", "0.4648257", "0.46475852", "0.4634095", "0.46303943", "0.46301746", "0.46112368", "0.46031263", "0.4602036", "0.46012014", "0.46009037", "0.45760143", "0.45688075", "0.4551791", "0.4546363", "0.45277148", "0.45255467", "0.45233923", "0.45180824", "0.4494304", "0.44863915", "0.44841614", "0.44779828", "0.44747904", "0.4474201", "0.44736058", "0.4473234", "0.44729328", "0.44665", "0.44660932", "0.44571137", "0.4448735", "0.44477087", "0.44405606", "0.4430185", "0.44267997", "0.44256866", "0.44002965", "0.4398698", "0.4398698", "0.43968087", "0.4394039", "0.43920714", "0.43880534", "0.4387523", "0.4387368", "0.4384628", "0.43818894", "0.4381231", "0.4378202", "0.43741086", "0.4374069", "0.43713486", "0.43678847", "0.43659526", "0.43645", "0.43642068" ]
0.7350887
0
getSum sums up the total from the integerList.
public long getSum() { long sum = 0; for(int i = 0; i < integerList.length; i++) { sum = sum + integerList[i]; } return sum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected int sumList(ArrayList<Integer> list){\r\n\t\tint result =0;\r\n\t\tfor(int i: list){\r\n\t\t\tresult = result + i;\r\n\t\t}\r\n\t\treturn result;\r\n\t\t\r\n\t}", "public static int getSum(List<Object>list){\n\t\tint c=0;\n\t\tfor(int i=0;i<list.size();i++){\n\t\t\tif(list.get(i) instanceof Integer){\n\t\t\t\tc+=(int)list.get(i);\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn c;\n\t}", "public int sumListeFor(ArrayList<Integer> list) {\r\n int resultat = 0;\r\n for (int i = 0; i < list.size(); i++) {\r\n resultat = resultat + list.get(i);\r\n }\r\n return resultat;\r\n }", "public static int sum(ArrayList<Integer> list) {\n int getList = 0;\n for (int i : list) {\n getList += i;\n }\n return getList;\n }", "public int calcSum() {\n\t\tint sum = 0;\n\t\tfor (int count = 0; count < data.size(); count++)\n\t\t\tsum += (int)data.get(count);\n\t\treturn sum;\n\t}", "public int sumListeForEach(ArrayList<Integer> list) {\r\n int resultat = 0;\r\n for (int tal : list) {\r\n resultat = resultat + tal;\r\n }\r\n return resultat;\r\n }", "private static int sumIntegerList(List<Integer> superGrowingList) {\r\n\t\tint sum = 0;\r\n\t\tIterator<Integer> iterator = superGrowingList.iterator();\r\n\t\twhile (iterator.hasNext()) {\r\n\t\t\tInteger integer = (Integer) iterator.next();\r\n\t\t\tsum += (int)integer;\r\n\t\t}\r\n\t\treturn sum;\r\n\t}", "public int getSumofElements(ArrayList<Integer> input)\n\t\t\tthrows RemoteException;", "public Integer sumNumbers(List<Integer> numbers) throws Exception;", "double getSum();", "double getSum();", "public static int sumList(ArrayList<Integer> list)\n {\n int sum = 0;\n for (int value: list)\n {\n \n sum+=value;\n \n //list.add(7);\n }\n \n return sum;\n }", "public int getSum(List<Integer> a){\n\n int sum = 0;\n\n for(int i = 0; i<a.size(); i++){\n if(a.get(i)<0){\n continue;\n } else{\n sum +=a.get(i);\n }\n }\n return sum;\n }", "public Integer getSum() {\n return sum;\n }", "public Integer calculateSum() {\n logger.debug(\"Calculating and returning the sum of expenses.\");\n return listOfTargets.stream().map(T::getAmount).reduce(0, Integer::sum);\n }", "public static int sumIntegerArrayList(\n\t\t\tArrayList<Integer> arrayToSum) {\n\t\tint output = 0;\n\t\tfor (int i = 0; i < arrayToSum.size(); i++) {\n\t\t\toutput += arrayToSum.get(i);\n\t\t}\n\t\treturn output;\n\t}", "private float getSubSum(){\n float sum = 0;\n for(int i = 0; i < subList.size(); i++){\n sum = sum + subList.get(i).getCost();\n }\n return sum;\n }", "int getSuma();", "public String getSum();", "public long sum() {\n\t\tlong result = 0;\n\t\tfor (int i=0; i<numElements; i++) {\n\t\t\tresult += theElements[i];\n\t\t}\n\t\treturn result;\n\t}", "@Override\n\tpublic int sum() {\n\t\treturn this.first + this.second + this.third;\n\t}", "public int getSum() {\n\t\t\treturn 0;\r\n\t\t}", "private static int sum(List<Integer> counts) {\n int total = 0;\n for (int count : counts) {\n total += count;\n }\n return total;\n }", "@Override\n public Integer reduce(Integer value, Integer sum) {\n return value + sum;\n }", "private void getSum() {\n\t\tint sum =0;\r\n\t\t\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i] != null)\r\n\t\t\t\tsum += products[i].getPrice();\r\n\t\t}\r\n\t\tSystem.out.println(sum);\r\n\t}", "public int getSum() {\n int result = 0;\n\n for (Map.Entry<Integer, Integer> entry : this.entrySet()) {\n result += entry.getKey() * entry.getValue();\n }\n\n return result;\n }", "public int sum()\n {\n return sum(0,0,size);\n }", "public int calculSum(DoublyLinkedListHeader list) {\n\t\tif(list.getHeader().getFirst() == null) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tint sum =0;\r\n\t\t\tDNode current = list.getHeader().getFirst();\r\n\t\t\twhile(current!= null) {\r\n\t\t\t\tsum += ((Integer)current.getInfo()).intValue();\r\n\t\t\t\tcurrent = current.getNext();\r\n\t\t\t}\r\n\t\t\treturn sum;\r\n\t\t}\r\n\t}", "public double get(){\n sum = 0;\n if(hasFilled){\n for(int j=0; j<list.length; j++)\n {\n sum += list[j];\n }\n \n return sum/(double)list.length;\n }\n else{\n for(int j = 0; j < index;j++){\n sum += list[j];\n }\n return sum/(double)index;\n }\n }", "public int sum (List<? extends Number> numbers){\n\t\tif (numbers.size() > 0) {\n\t\t\tint sum = 0;\n\n\t\t\tfor ( int i = 0 ; i < numbers.size() ; i++) {\n\t\t\t\tif (numbers.get(i) instanceof Double ) {\n\t\t\t\t\tsum += numbers.get(i).intValue();\n\t\t\t\t} else {\n\t\t\t\t\tsum += (int) numbers.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn sum;\n\t\t}\n\t\treturn 0;\n\t}", "public T sum();", "@Test\r\n public void testGetSumShouldReturnSumOfIntegersInNestedList() {\r\n nestedList=new NestedList();\r\n int sum=nestedList.getsum();\r\n assertEquals(420,sum);\r\n }", "private int syuneri_gumar(ArrayList<Integer> syun) {\n int summa = 0;\n for (int i = 0; i < syun.size(); i++)\n summa += syun.get(i);\n return summa;\n }", "public double sum() {\n double sum = x;\n Lista iter = new Lista(this);\n while (iter.next != null) {\n sum += iter.next.x;\n iter = iter.next;\n }\n return sum;\n }", "private static int sum(List<Integer> L, int i,int j) {\n\t\tSystem.out.println(L+\"\\n\"+\"index i = \"+i+\"\\n\"+\"index j = \"+j);\n\t\tList<Integer> subListToSum = new ArrayList<Integer>();\n\t\t\n\t\tif (i <= j) { //make sure that i is less than j so we have a sublist of at least one\n\t\t\tsubListToSum.addAll(L.subList(i, j));\n\t\t\t\n\t\t}\n\t\t\n\t\telse if (i > j) { //print out a error so the user knows what they did wrong\n\t\t\tSystem.out.println(\"index 'i' is more than index 'j'\");\n\t\t}\n\t\t\n\t\tint sizeList = L.size(); //only reaches here if i <= j\n\t\tSystem.out.println(\"size of list is: \" + sizeList);\n\t\tif (j <= sizeList & i <= sizeList) { //check to account for out of bounds and negatives\n\t\t\tint result = 0;\n\t\t\t\n\t\t\tfor (int allInts : subListToSum) {\n\t\t\t\tresult += allInts;\n\t\t\t};\n\t\t\t\n\t\t\tSystem.out.println(\"Sum(\" + i + \", \" + j + \")\" + \" = \" + result);\n\t\t}\n\t\t\n\t\treturn 0;\n\t}", "int getSumaAdunata();", "public static double sum(ArrayList<Double> list){\r\n\t\tdouble sum = 0;\r\n\t\tfor(int i = 0; i < list.size(); i++){\r\n\t\t\tsum += list.get(i);\r\n\t\t}\r\n\t\t\r\n\t\treturn sum;\r\n\t\t\r\n\t}", "public static int simpleArraySum() { //(List<Integer> ar)\n \n Integer []ar = {1,2,3}; \n\n Integer sum =0;\n for(Integer i : ar){\n sum +=i;\n }\n return sum; \n }", "public double getSUM() {\n return sum;\n }", "public float getPurchasedListSum()\r\n\t{\r\n\t\tfloat fTempSum = 0;\r\n\t\tfor(int i = 0 ; i < m_purechaseList.size() ; i++)\r\n\t\t{\r\n\t\t\tfTempSum += m_purechaseList.get(i).getPurchasItemCost();\r\n\t\t}\r\n\t\treturn fTempSum;\t\t\r\n\t}", "public static int totalSum(int... result) {\n int score = IntStream.of(result).sum();\n return score;\n }", "public static int sumArray(int[] array) {\r\n\t\tint total = 0;\r\n\r\n\t\tfor (int i = 0; i < myList.length; i++) {\r\n\t\t\ttotal += myList[i];\r\n\t\t}\r\n\r\n\t\treturn total;\r\n\t}", "public int totalValue() {\r\n\t\tint total = 0;\r\n\t\tfor(Item item: items) {\r\n\t\t\ttotal = total + item.getValue();\r\n\t\t}\r\n\t\treturn total;\r\n\t}", "public int sum2() {\n\t\tint ans = 0;\n\t\tfor (ListNode<T> p = this; p != null; p = p.next) {\n\t\t\tans = ans + p.value; // fail!\n\t\t}\n\t}", "public static <T extends Number> double computeSum(ArrayList<T> nData, boolean isPositiveNumber) {\r\n if (nData.size() < 0) // check data size is less than 0\r\n throw new IllegalArgumentException(\"x cannot be empty\"); // throw exception if data is empty\r\n\r\n double sum = 0.0; // initialze sum for store sum value in sum variable\r\n for (T TemporaryValue : nData) { // for loop for get all data of list \r\n double value = TemporaryValue.doubleValue(); // convert integer value to double\r\n if (isPositiveNumber || value >= 0) // check isPositiveNumber and value is positive\r\n sum += value; // increase sum value by adding value in sum \r\n }\r\n\r\n return sum; // return double type sum result of list data\r\n }", "private void getSum() {\n double sum = 0;\n for (int i = 0; i < remindersTable.getRowCount(); i++) {\n sum = sum + parseDouble(remindersTable.getValueAt(i, 3).toString());\n }\n String rounded = String.format(\"%.2f\", sum);\n ledgerTxtField.setText(rounded);\n }", "public java.math.BigDecimal getSum() {\n\treturn sum;\n}", "public double getSum()\n {\n return first + second;\n }", "private static int addListOfNumbers(List<Integer> numbers) {\n\t\t/*\n\t\t * Approach 1: Use reduce method and make a call to sum method explicitly\n\t\t */\n\t\t// return numbers.stream().reduce(0, StreamReduce::sum);\n\n\t\t/*\n\t\t * Approach 2 : Replace explicit call with Lambda expression\n\t\t */\n\t\t// return numbers.stream().reduce(0, (x,y)->x+y);\n\n\t\t/*\n\t\t * Approach 3: Replace Lambda expression with Integer sum methods\n\t\t *\n\t\t */\n\n\t\treturn numbers.stream().reduce(0, Integer::sum);\n\t}", "public String getSum() {\n return sum;\n }", "Integer total();", "public int getSum(int x, int y){\n return x+y;\n }", "public int sum() {\n\t\treturn (x + y);\n\t}", "public int sumOfElements(){\n\t\tint sum = 0;\n\t\tNode temp = this.head;\n\t\twhile(temp != null){\n\t\t\tsum += temp.data;\n\t\t\ttemp = temp.next;\n\t\t}\n\t\treturn sum;\n\t}", "public double sum() {\n final int size = size();\n double sum = 0.0;\n\n // Compute the average of all values\n for (int i = 0; i < size; i++) {\n final Number number = get(i);\n if (number == null) continue;\n if (Double.isNaN(number.doubleValue())) continue;\n\n sum += number.doubleValue();\n }\n\n return sum;\n }", "private double calculateTotal(){\r\n double total = 0;\r\n for(int i = 0; i < orderList.size(); i++){\r\n total += orderList.getOrder(i).calculatePrice();\r\n }\r\n return total;\r\n }", "UnsignedInt getTotal();", "public int sumEquipmentPrice(){\n int sum = 0;\n for (Equipment e: equipment){\n sum += e.getPrice();\n }\n return sum;\n }", "@Override\r\n\tpublic List<InformationDTO> findSum() {\n\t\treturn sqlSessionTemplate.selectList(typeNameSpace + \".findSum\");\r\n\t}", "int calculate() {\n return getSum() + b1;\n }", "public static int sumOfTwoLargest(List intList){\n int largest = 0;\n int secondLargest = 0;\n if (intList.size() == 0) {\n return 0;\n }\n\n for (int i = 0; i < intList.size(); i++) {\n if ((int)intList.get(i) > largest) {\n secondLargest = largest;\n largest = (int)intList.get(i);\n }\n else if ((int)intList.get(i) > secondLargest) {\n secondLargest = (int)intList.get(i);\n }\n\n }\n return (largest + secondLargest);\n \n }", "public int vectorSum()\n\t{\n\t\tint sum =0;\n\t\tfor(int i=0;i<vector.size();i++)\n\t\t{\n\t\t\tsum += vector.get(i);\n\t\t}\n\t\treturn sum;\n\t}", "public static void main(String[] args) {\n\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\tlist.add(new Integer(100));\n\t\tlist.add(200); // auto Boxing해서 list에 담는다.\n\t\tlist.add(300);\n\t\t\n\t\tint sum = 0;\n\t\tfor(int i = 0; i < list.size(); i++) {\n\t\t\t// int data = list.get(i).intValue();\n\t\t\tInteger ob = list.get(i);\n\t\t\t\n\t\t\t// sum = sum + ob.intValue();\n\t\t\t// sum = sum + ob;\n\t\t\tsum = sum + list.get(i); // auto Unboxing\n\t\t}\n\t\t\n\t\tSystem.out.println(\"총합 : \" + sum);\n\t}", "public int get_sum_a() {\n return (int)getSIntBEElement(offsetBits_sum_a(), 32);\n }", "public int sum()\n\t{\n\t\tint sum = 0;\n\t\tfor (int index = 0; index < arraySize; index++)\n\t\t{\n\t\t\tsum += array[index];\n\t\t}\n\t\treturn sum;\n\t}", "public List<Integer> sumLists(List<Integer> state,List<Integer> action) {\n\t\tList<Integer> out = new ArrayList<Integer>();\n\t\tfor (int i = 0;i<state.size();i++) {\n\t\t\tout.add(state.get(i)+action.get(i));\n\t\t}\n\t\treturn out;\n\t}", "protected int sumAll() {\n\t\tint total = 0;\n\t\t//iterate all rows\n\t\tfor(int i = 0;i<size();i++){\n\t\t\t//itreate all columns\n\t\t\tfor(int j = 0;j<size();j++){\n\t\t\t\tInteger cell = matrix.get(i).get(j);\n\t\t\t\ttotal+=cell;\n\t\t\t}\n\t\t}\n\t\treturn total;\n\t}", "public static int p_sum(){\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"please put the how many numbers you want to sum:\");\n int v_sum_numbers = keyboard.nextInt();\n int v_total_sum= 0;\n for (int i=1; i<=v_sum_numbers;i=i+1){\n System.out.println(\"please input the \"+i+\" number: \");\n int v_sum_num = keyboard.nextInt();\n v_total_sum= v_total_sum+v_sum_num;\n }\n return v_total_sum;\n }", "public int sumofPrice(){\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tString selectQuery = \"SELECT SUM(price) FROM \" + TABLE_SHOP;\n\t\tCursor cur = db.rawQuery(selectQuery, null);\n\t\tint total=0;\n\t\tif(cur.moveToFirst())\n\t\t{\n\t\t\ttotal = cur.getInt(0);\n\t\t}\n\t\treturn total;\n\t}", "public static int sum (IntVector iv) {\n if (iv.isEmpty())\n return 0;\n else\n return iv.head() + sum(iv.tail());\n }", "public static double sum(List<Double> doubleList) {\n\t\tdouble sum = 0;\n\t\tint size = doubleList.size();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tsum += doubleList.get(i);\n\t\t}\n\t\t\n\t\treturn (double) Math.round(sum * 100) / 100;//保留两位小数\n\t}", "public double sumMoney(){\n\t\tdouble result = 0;\n\t\tfor(DetailOrder detail : m_DetailOrder){\n\t\t\tresult += detail.calMoney();\n\t\t}\n\t\tif(exportOrder == true){\n\t\t\tresult = result * 1.1;\n\t\t}\n\t\treturn result;\n\t}", "@Override\n\t\t\tpublic Integer call(Integer sum, Integer i) throws Exception {\n\t\t\t\treturn sum+i;\n\t\t\t}", "public T sum(T first, T second);", "public static void calculateSum(List<Integer> numbers){\n int sum = 0;\n for(int i = 0; i < numbers.size(); i++){\n if(numbers.get(i) % 2 == 0){\n sum += numbers.get(i) * numbers.get(i);\n }\n }\n System.out.println(sum);\n\n }", "public static int sumLast( IntNode head, int num ) {\r\n\t\t\r\n\t\tint sum = 0;\r\n\t\t// when num is bigger than the number of nodes in the list, it should return the summation of elements in all the nodes\r\n\t\tIntNode cursor = head;\r\n\t\tif( num > listLength(head) )\r\n\t\t\tnum = listLength(head);\r\n\t\tfor( int i = 1; i <= num; i++ ) {\r\n\t\t\tif( cursor != null ) {\r\n\t\t\t\tsum = sum + cursor.data;\r\n\t\t\t\tcursor = cursor.link;\r\n\t\t\t} // end if\r\n\t\t} // end for\r\n\t\treturn sum;\r\n\t\t\r\n\t}", "public int getTotalAmount();", "public int cumulativeSum() {\n int sum = 0;\n EquationList p_eqn = eqn;\n while (p_eqn != null) {\n sum = sum + p_eqn.result;\n p_eqn = p_eqn.next;\n }\n if (p_eqn == null) {\n sum = sum;\n }\n return sum;\n }", "public int getTotal() {\r\n\r\n\t\treturn getAmount() + getPrice();\r\n\r\n\t}", "public static int getSum(int arr[], int n)\n{\n\tint total = 0;\n\tfor (int i = 0; i < n; i++)\n\t\ttotal += arr[i];\n\treturn total;\n}", "public static int sum(int[] theArray) {\n\n\n //Converts the array to a list\n List<Integer> values = Arrays.stream(theArray).boxed().collect(Collectors.toList());\n\n //Streams through all the values and using lambda sums them up.\n //result is current sum and currentElement is the current element that is being added\n //see javadocs for reduce for more info.\n// int sum = values.stream().reduce(0, (result, currentElement) -> result + currentElement);\n int sum = values.stream().reduce(0, Integer::sum);\n // sum = integers.reduce(0, Integer::sum);\n return sum;\n\n\n ////Alternative code does the same job.\n// int sum = 0;\n// for (int num : theArray) {\n// sum += num;\n// }\n// return sum;\n\n }", "public double calTotalAmount(){\n\t\tdouble result=0;\n\t\tfor (int i = 0; i < this.cd.size(); i++) {\n\t\t\tresult += this.cd.get(i).getPrice();\n\t\t}\n\t\treturn result;\n\t}", "@Override\n\tpublic double sumMoney() {\n\t\treturn ob.sumMoney();\n\t}", "public int sum(Integer x, Integer y) {\n\t\treturn x+y;\n\t}", "public BigDecimal getValorTotal(){\r\n\t\r\n\t\t// percorre a lista de ItemVenda - stream especie de interator do java 8\r\n\t\treturn itens.stream()\r\n\t .map(ItemVenda::getValorTotal) // para cada um dos itens, obtem o valor total do item\t\r\n\t .reduce(BigDecimal::add) // soma todos os valores total \r\n\t .orElse(BigDecimal.ZERO); // caso não tenha nenhum item retorna zeo\r\n\t}", "public int total() {\n int summation = 0;\n for ( int value : map.values() ) {\n summation += value;\n }\n return summation;\n }", "public static int calculateTotal(SQLiteDatabase db){\n // Retrieve only items with positive quantity\n Cursor c = db.query(StoreItems.TABLE_NAME, new String[] {StoreItems._ID, StoreItems.COLUMN_NAME_PRICE, StoreItems.COLUMN_NAME_QUANTITY}, StoreItems.COLUMN_NAME_QUANTITY + \">0\", null, null, null, null);\n \n // Add all items to total\n c.moveToFirst();\n int sum = 0;\n while(!c.isAfterLast())\n {\n sum += c.getInt(c.getColumnIndex(StoreItems.COLUMN_NAME_QUANTITY)) * c.getInt(c.getColumnIndex(StoreItems.COLUMN_NAME_PRICE));\n c.moveToNext();\n }\n return sum;\n }", "public synchronized double getTotal(){\n double totalPrice=0;\n \n for(ShoppingCartItem item : getItems()){\n totalPrice += item.getTotal();\n }\n \n return totalPrice;\n }", "public int getSuma() {\n return suma_;\n }", "public int sumar(){\n return this.a+this.b;\n }", "static int sumLinkedList(LinkedListProblems.Node head){\n int sum=0;\n if(head==null){\n return sum;\n }\n sum=sumLinkedList(head.next);// head recursion will to top to recursive stack first before processing\n sum+=head.val; //process Same as one line sum+= head.val+sumLinkedList(head.next);\n return sum;\n }", "public int getACsum() {\n return (int)sum;\n }", "public int getSuma() {\n return suma_;\n }", "private static int getAverage(ArrayList<Integer> inList) \n\t{\n\t\tint add = 0; \n\t\tint mean = 0; \n\t\tfor(int pos = 0; pos < inList.size(); ++pos)\n\t\t{\n\t\t\tadd = add + inList.get(pos);\n\t\t\t\n\t\t}\n\t\t\n\t\tmean = add/inList.size(); \n\t\t\n\t\treturn mean; \n\t\t\n\t}", "public static int getSuma() {\n\t\treturn suma;\n\t}", "public int get_sum_e() {\n return (int)getSIntBEElement(offsetBits_sum_e(), 32);\n }", "double getTotal();", "public int totinc()\n {\n SQLiteDatabase db1 = this.getReadableDatabase();\n String stmt = \"SELECT SUM(AMOUNT) FROM INCOME\";\n Cursor tot = db1.rawQuery(stmt, null);\n if(tot.getCount()==0)\n {\n return 0;\n }\n else {\n tot.moveToFirst();\n int amount = tot.getInt(0);\n tot.close();\n return amount;\n }\n }", "private int numberOfStudents() {\n int sum = 0;\n for (int student : this.studentList) {\n sum += student;\n }\n return sum;\n }", "@Override\r\n protected BigDecimal getSum() {\r\n boolean handleOutOfMemoryError = false;\r\n BigDecimal sum = BigDecimal.ZERO;\r\n Grids_GridDouble g = getGrid();\r\n int nrows = g.getChunkNRows(ChunkID, handleOutOfMemoryError);\r\n int ncols = g.getChunkNCols(ChunkID, handleOutOfMemoryError);\r\n double noDataValue = g.getNoDataValue(false);\r\n double value;\r\n int row;\r\n int col;\r\n for (row = 0; row < nrows; row++) {\r\n for (col = 0; col < ncols; col++) {\r\n value = getCell(row, col);\r\n if (Double.isNaN(value) && Double.isFinite(value)) {\r\n if (value != noDataValue) {\r\n sum = sum.add(new BigDecimal(value));\r\n }\r\n }\r\n }\r\n }\r\n return sum;\r\n }" ]
[ "0.7470309", "0.74188876", "0.7332994", "0.7269665", "0.7219565", "0.7214303", "0.70887595", "0.7086536", "0.70854115", "0.702743", "0.702743", "0.70136327", "0.6836192", "0.6832473", "0.6808758", "0.67221105", "0.66840637", "0.6558639", "0.6555811", "0.6534029", "0.65206134", "0.6503515", "0.646867", "0.6428882", "0.64198685", "0.64179343", "0.6406767", "0.6397729", "0.63932115", "0.6385977", "0.6346336", "0.6345589", "0.6325316", "0.6315129", "0.63145596", "0.6282005", "0.6266896", "0.6259462", "0.625301", "0.62076056", "0.61067194", "0.6105304", "0.6095369", "0.60549253", "0.60480165", "0.6046461", "0.60321057", "0.60292375", "0.60274446", "0.5994048", "0.59740865", "0.59361076", "0.5933634", "0.59276736", "0.5907649", "0.58864534", "0.5883115", "0.5867217", "0.5859928", "0.5851339", "0.5845009", "0.584271", "0.58395964", "0.58272105", "0.58253217", "0.5810922", "0.579509", "0.57915163", "0.5779901", "0.57720184", "0.57665", "0.57542443", "0.57531404", "0.5735417", "0.57314336", "0.57076544", "0.5705905", "0.57013595", "0.5699535", "0.5691506", "0.56913674", "0.56874466", "0.56860423", "0.5681992", "0.5681501", "0.5679972", "0.56772655", "0.56670886", "0.56663674", "0.56589884", "0.5649511", "0.5648986", "0.56478834", "0.5638884", "0.5635211", "0.5628269", "0.56245077", "0.5613052", "0.56013167", "0.5595852" ]
0.79491764
0
/ This method allocates more space for the array. Precisely it double the space every time.
private void resizeArray() { int[] temp = new int[integerList.length * 2];//Create new array with twice the size. for(int i = 0; i < integerList.length; i++)//Populate new array with data from old array { temp[i] = integerList[i]; } integerList = temp;//Set the integerList to point to the new array. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void grow() {\n T[] arr_temp = (T[]) new Object[arr.length*2];\n for (int i=0; i<arr.length; i++){\n arr_temp[i] = arr[i];\n }\n arr = arr_temp;\n }", "private void addSizeArray() {\n int doubleSize = this.container.length * 2;\n Object[] newArray = new Object[doubleSize];\n System.arraycopy(this.container, 0, newArray, 0, this.container.length);\n this.container = new Object[doubleSize];\n System.arraycopy(newArray, 0, this.container, 0, doubleSize);\n }", "private void allocateArray(int arraySize) {\n\t array = new HashEntry[nextPrime(arraySize)];\n\t }", "private void allocateArray( int arraySize )\n {\n array = new HashEntry[ nextPrime( arraySize ) ];\n }", "private void grow() {\n int growSize = size + (size<<1);\n array = Arrays.copyOf(array, growSize);\n }", "private void increaseSize() {\n data = Arrays.copyOf(data, size * 3 / 2);\n }", "synchronized protected void enlargeArrays() {\n \t\tenlargeArrays(5);\n \t}", "private void doubleSize() {\n\t\tint[] arr2 = new int[2 * arr.length];\n\t\tfor (int i = 0; i < arr.length; ++i) {\n\t\t\tarr2[i] = arr[i];\n\t\t}\n\t\tarr = arr2;\n\t}", "private void grow() {\n capacity *= 2;\n Object[] temp = new Object[capacity];\n for (int i = 0; i < values.length; i++) temp[i] = values[i];\n values = temp;\n }", "private void expandCapacity() {\n heap = Arrays.copyOf(heap, heap.length * 2);\n }", "private void grow()\r\n\t{\r\n\t\tint [] temp = new int[count * 2]; // new array to hold the data\r\n\r\n\t\t// copy old data in new array\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t\ttemp[i] = array[i];\r\n\r\n\t\tarray = temp; // update the new array\r\n\t}", "private void ensureCapacity() {\n int newSize = elements.length * 2;\n Object[] newElements = new Object[newSize];\n for (int i = 0; i < elements.length; i++) {\n newElements[i] = elements[i];\n }\n elements = newElements;\n }", "private void ensureCapacity()\n\t{\n\t\tif (elements.length == size)\n\t\t\telements = Arrays.copyOf(elements, 2 * size + 1);\n\t}", "byte[] allocateArray(int initialCapacity)\r\n/* 53: */ {\r\n/* 54: 87 */ return new byte[initialCapacity];\r\n/* 55: */ }", "private void ensureCapacity() {\n if(size() >= (0.75 * data.length)) // size() == curSize\n resize(2 * size());\n }", "private void expandCapacity() {\n T[] tempVertices = (T[])(new Object[vertices.length * 2]);\n int[][] tempEdges = new int[vertices.length * 2][vertices.length * 2];\n \n for (int i = 0; i < n; i++) {\n tempVertices[i] = vertices[i];\n for (int j = 0; j < n; j++) {\n tempEdges[i][j] = edges[i][j];\n }\n }\n \n vertices = tempVertices;\n edges = tempEdges;\n }", "public void reAllocate() {\n\t\tmat_ = new double[n_][hbw_ + 1];\n\t}", "private void grow() { \r\n\t\tint capacity = accounts.length;\r\n\t\tAccount [] tempArray = new Account[capacity += INITIAL_SIZE]; //tempArray with new capacity\r\n\t\tfor ( int i = 0; i < accounts.length; i++ ) { // Transfer all accounts into new Accounts\r\n\t\t\ttempArray[i] = accounts[i];\r\n\t\t}\t\t\r\n\t\taccounts = tempArray;\t\r\n\t\treturn;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate void growArray() {\n\t\tObject[] newList = new Object[size * 2];\n\t\tfor (int i = 0; i < size(); i++) {\n\t\t\tnewList[i] = get(i);\n\t\t}\n\t\tlist = (E[]) newList;\n\t\tsize *= 2;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate void growArray() {\n\t\tint tempSize = size * 2;\n\t\tE[] tempList = (E[]) new Object[tempSize];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\ttempList[i] = list[i];\n\t\t}\n\t\tlist = tempList;\n\t}", "private void grow() {\n int oldCapacity = heap.length;\n // Double size if small; else grow by 50%\n int newCapacity = oldCapacity + ((oldCapacity < 64) ?\n (oldCapacity + 2) :\n (oldCapacity >> 1));\n Object[] newQueue = new Object[newCapacity];\n for (int i = 0; i < heap.length; i++) {\n newQueue[i] = heap[i];\n }\n heap = newQueue;\n }", "private void ensureCapacity() {\n\t\n\t\tif (elements.length == size) {\n\t\t\tT[] oldElements = elements;\n\t\t\t\n\t\t\telements = (T[]) new Object[2 * elements.length + 1];\n\t\t\t\n\t\t\tSystem.arraycopy(oldElements, 0, elements, 0, size);\n\t\t\n\t\t}\n\t\n\t}", "private void grow()\n\t{\n\t\tint temp[] = new int[count * 2];\n\t\tfor(int index = 0; index < count; index = index + 1)\n\t\t\ttemp[index] = array1[index];\n\t\tarray1 = temp;\n\t}", "protected void grow()\r\n\t{\t\r\n\t\tif(debug)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Debug - Starting grow\");\r\n\t\t}\r\n\t\t\r\n\t\tint[] temp = new int[count*2];\r\n\t\t\r\n\t\tfor(int index = 0; index < count; index++)\r\n\t\t{\r\n\t\t\ttemp[index] = numArray[index];\r\n\t\t\t\r\n\t\t\tif(debug)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Debug - temp[index] = \" + temp[index]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tnumArray = temp;\r\n\t\t\r\n\t\tif(debug)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Debug - Ending grow\");\r\n\t\t}\r\n\t}", "private void ensureCapacity() {\n if ( top + 1 < storage.length ) {\n return;\n }\n storage = Arrays.copyOf( storage, storage.length * 2 );\n }", "private void reallocate(){\n capacity = 2 * capacity;\n theData = Arrays.copyOf(theData, capacity);\n }", "private void reallocate() {\n capacity = 2 * capacity;\n ElementType[] newData = (ElementType[]) new Object[DEFAULT_INIT_LENGTH];\n System.arraycopy(elements, 0, newData, 0, size);\n elements = newData;\n }", "private void reallocateIfOverfilled() {\r\n\t\tif ((size * 1.0 / table.length) > MAX_FULLNESS_PERCENTAGE) {\r\n\t\t\treallocateArray();\r\n\t\t}\r\n\t}", "public void reSize() {\n int newSize = arr.length * 2;\n arr = Arrays.copyOf(arr, newSize);\n }", "private void enlargeCapacity() {\n Object[] tmp = this.container;\n this.container = new Object[this.container.length + this.capacity];\n System.arraycopy(tmp, 0, this.container, 0, tmp.length);\n }", "private void grow() { \n\n\t\tAccount[] temp = accounts;\n\t\taccounts = new Account[accounts.length+5];\n\t\t\n\t\tfor (int i = 0; i < temp.length; i++) {\n\t\t\taccounts[i] = temp[i];\n\t\t}\n\t\t\n\t}", "private void ensureCapacity() {\n\t\tif (numberOfElements == capacity) {\n\t\t\tT[] newArray = (T[])new Object[(numberOfElements+1) * CAPACITY_MULTIPLIER];\n\t\t\tSystem.arraycopy(elements,0,newArray,0,numberOfElements);\n\t\t\telements = newArray;\n\t\t}\n\t}", "private void grow() {\n int oldCapacity = this.values.length;\n int newCapacity = oldCapacity + (oldCapacity >> 1);\n Object[] newValues = new Object[newCapacity];\n System.arraycopy(this.values, 0, newValues, 0, oldCapacity);\n this.values = newValues;\n }", "@SuppressWarnings(\"unchecked\")\n private void upSize()\n {\n T[] newArray = (T[]) new Object [theArray.length * 2];\n for (int i =0; i < theArray.length; i++){\n newArray[i] = theArray[i];\n }\n theArray = newArray;\n }", "private void reallocateDoubleCapacity() {\n\t\tObject oldElements[] = elements;\n\t\tcapacity *= reallocateFactor;\n\t\tsize = 0;\n\t\telements = new Object[capacity];\n\n\t\tfor (Object object : oldElements) {\n\t\t\tthis.add(object);\n\t\t}\n\t}", "private void increaseSize() {\r\n\t\tE[] biggerE = (E[]) new Object[this.capacity * 2];\r\n\t\tdouble[] biggerC = new double[this.capacity * 2];\r\n\t\tfor (int i = 0; i < this.size; i++) {\r\n\t\t\tbiggerE[i] = this.objectHeap[i];\r\n\t\t\tbiggerC[i] = this.costHeap[i];\r\n\t\t}\r\n\t\tthis.costHeap = biggerC;\r\n\t\tthis.objectHeap = biggerE;\r\n\t\tthis.capacity = this.capacity * 2;\r\n\t}", "private void expandCapacity() {\n\t\tT[] larger = (T[]) (new Object[stack.length*2]);\t\t//double size of previous stack\n\t\t\n\t\tfor(int i = 0; i < stack.length; i++)\n\t\t\tlarger[i] = stack[i];\n\t\t\n\t\tstack = larger;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprotected void grow(){\n\t\t// makes new arraylist\n\t\tT[] temp = (T[]) new Object[data.length *2];\n\t\tfor(int i = 0; i < data.length; i++ ){\n\t\t\ttemp[i] = data[i];\n\t\t}\n\t\tdata = temp;\n\t}", "private void reallocate() {\n\t\tthis.capacity *= 2;\n\t\tObject[] newElements = new Object[this.capacity];\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tnewElements[i] = this.elements[i];\n\t\t}\n\n\t\tthis.elements = newElements;\n\t}", "private void expandCapacity()\r\n {\r\n T[] larger = (T[])(new Object[stack.length*2]);\r\n \r\n for (int index=0; index < stack.length; index++)\r\n larger[index] = stack[index];\r\n \r\n stack = larger;\r\n }", "private void resizeUp() \n\t {\n\t\t int newSize = myArray.length * 2;\n\t\t myArray = Arrays.copyOf(myArray, newSize);\n\t }", "private void ensureCapacity() {\n int newLength = (this.values.length * 3) / 2 + 1;\n Object[] newValues = new Object[newLength];\n System.arraycopy(this.values, 0, newValues, 0, this.values.length);\n this.values = newValues;\n }", "@SuppressWarnings(\"resource\")\n public static void doubleCapacity(String[] array){\n int wordCount = 0;\n int arrayGrowth = 500;\n array = new String[10];\n String strLine = null;\n while (strLine != null) {\n // Store the content into an array\n Scanner s = new Scanner(strLine);\n while (s.hasNext()) {\n if (array.length == wordCount) {\n // expand list\n array = Arrays.copyOf(array, array.length + arrayGrowth);\n }\n array[wordCount] = s.next();\n wordCount++;\n } \n }\n }", "@SuppressWarnings(\"unchecked\") // this will stop Java complaining about the cast\n private void ensureCapacity() {\n if (count == data.length) { //if count is equal to the length of data a new array is made doubling the initial size, it then makes the data collection == to the temp collection\n E[] temp = (E[]) new String[data.length * 2]; //effectivly increasing the size of the array\n for (int i = 0; i < data.length; i++) {\n temp[i] = data[i];\n }\n data = temp;\n }\n }", "private void ensureCapacity(int newCapacity) {\n\t\t\t data = Arrays.copyOf(data, newCapacity * 2);\n\t\t\t this.capacity = newCapacity * 2;\n\t\t }", "private static char[] expand(char[] array, int neededSpace, int size)\r\n/* 108: */ {\r\n/* 109:125 */ int newCapacity = array.length;\r\n/* 110: */ do\r\n/* 111: */ {\r\n/* 112:128 */ newCapacity <<= 1;\r\n/* 113:130 */ if (newCapacity < 0) {\r\n/* 114:131 */ throw new IllegalStateException();\r\n/* 115: */ }\r\n/* 116:134 */ } while (neededSpace > newCapacity);\r\n/* 117:136 */ char[] newArray = new char[newCapacity];\r\n/* 118:137 */ System.arraycopy(array, 0, newArray, 0, size);\r\n/* 119: */ \r\n/* 120:139 */ return newArray;\r\n/* 121: */ }", "private void reallocateArray() {\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tTableEntry<K, V>[] newTable = new TableEntry[table.length * 2];\r\n\t\tTableEntry<K, V> currentElement = null, nextElement = null;\r\n\r\n\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\tif (table[i] == null) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tcurrentElement = table[i];\r\n\t\t\tnextElement = currentElement.next;\r\n\r\n\t\t\twhile (currentElement != null) {\r\n\t\t\t\tcurrentElement.next = null;\r\n\t\t\t\taddTableEntry(currentElement, newTable);\r\n\r\n\t\t\t\tcurrentElement = nextElement;\r\n\t\t\t\tnextElement = currentElement == null ? null : currentElement.next;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\ttable = newTable;\r\n\t}", "public void allocArrays() {\n Preconditions.checkState(needsAllocArrays(), \"Arrays already allocated\");\n int expectedSize = this.modCount;\n this.table = newTable(Hashing.closedTableSize(expectedSize, 1.0d));\n this.entries = newEntries(expectedSize);\n this.elements = new Object[expectedSize];\n }", "private void reallocArray() {\n this.stringArray = Arrays.copyOf\n (stringArray, stringArray.length*INCREMENT);\n }", "public void makeArray(int size) {\n\t\t\n\t}", "public void allocate(int size_bytes) {\r\n size = size_bytes;\r\n int elems = (size + BYTES_IN_ELEMENT - 1) / BYTES_IN_ELEMENT;\r\n data = new int[elems];\r\n \r\n // Reset head position\r\n offset = 0;\r\n cbyte = 0;\r\n bytenum = 0;\r\n elem = 0;\r\n }", "void assignSize (int size) {\n array = new int[size];\n }", "private void grow() {\n final int new_size = Math.min(size * 2, Const.MAX_TIMESPAN);\n if (new_size == size) {\n throw new AssertionError(\"Can't grow \" + this + \" larger than \" + size);\n }\n values = Arrays.copyOf(values, new_size);\n qualifiers = Arrays.copyOf(qualifiers, new_size);\n }", "private void grow(int minCapacity) {\n // overflow-conscious code\n int oldCapacity = buf.length;\n int newCapacity = oldCapacity << 1;\n if (newCapacity - minCapacity < 0) {\n newCapacity = minCapacity;\n }\n if (newCapacity - MAX_ARRAY_SIZE > 0) {\n newCapacity = hugeCapacity(minCapacity);\n }\n buf = Arrays.copyOf(buf, newCapacity);\n }", "public void reallocate()\r\n\t{\r\n\t\tE[] newArray = (E[]) new Object[capacity * 2];\r\n\t\tint i = 0;\r\n\t\tfor(i = 0; i < this.size(); i++)\r\n\t\t{\r\n\t\t\tnewArray[i] = innerArray[(front + i) % capacity];\r\n\t\t\tSystem.out.println((front + i) % capacity);\r\n\t\t}\r\n\t\tfront = 0;\r\n\t\trear = this.size() - 1;\r\n\t\tcapacity = capacity * 2;\r\n\t\tinnerArray = newArray;\r\n\t}", "static protected int[] allocMemory(int size)\n\t{\n\t\tint m[] = new int[size];\n\t\tArrays.fill(m,(byte)0xff);\n\t\treturn m;\n\t}", "private void resize(int newCapacity) {\n\n E[] temp = (E[]) new Object[newCapacity];\n for(int i = 0; i < size(); i++)\n temp[i] = data[calculate(i)];\n data = temp;\n head = 0;\n tail = size()-1;\n\n\n }", "private void resize(int capacity) {\n // create a new array, and copy the original array items to the new array\n T[] newArray = (T[]) new Object[capacity];\n int position = plusOne(nextFirst);\n for (int i = 0; i < size; i += 1) {\n newArray[i] = array[position];\n position = plusOne(position);\n }\n nextFirst = newArray.length - 1;\n nextLast = size;\n array = newArray;\n }", "private void expandArray() {\r\n//\t\tSystem.out.println(\"Expanding: current capacity \" + capacity); //Used for debugging\r\n\t\tcapacity = 2 * capacity;\r\n\t\tE[] temp = (E[]) new Object[capacity];\r\n\t\tfor (int i = 0; i < t + 1; i++)\r\n\t\t\ttemp[i] = stack[i];\r\n\t\tstack = temp;\r\n\t}", "private void resize() {\n Point[] temp = new Point[2*N+1];\n for (int i = 0; i <= N; i++) temp[i] = a[i];\n a = temp;\n }", "private void ensureCapacity()\n {\n if (numberOfEntries >= dictionary.length - 1)\n {\n int newCapacity = 2 * dictionary.length;\n checkCapacity(newCapacity); // Is capacity too big?\n dictionary = Arrays.copyOf(dictionary, newCapacity + 1);\n } // end if\n }", "private void grow() {\n Book[] temp = new Book[books.length + GROWTH_SIZE];\n for (int i = 0; i < books.length; i ++){\n temp[i] = books[i];\n }\n books = temp;\n }", "@SuppressWarnings(\"unchecked\")\n\t private boolean grow() {\n\n\t /* \n\t * Add code here \n\t * Expand capacity (double it) and copy old array contents to the\n\t * new one. \n\t */\n\t\t \n\t\t capacity = (capacity*2);\n\t\t E[] new_elements = elements;\n\t\t elements = (E[])new Object[capacity];\n\t\t for(int i=0; i<new_elements.length;i++){\n\t\t\t elements[i] = new_elements[i];\n\t\t }\n\t System.out.println(\"Capacity reached. Increasing storage...\");\n\t System.out.println(\"New capacity is \" + capacity + \" elements\");\n\n\t return true;\n\t }", "private void resizeArray() {\n stackArray = Arrays.copyOf(stackArray, stackArray.length * 2 + 1);\n }", "private void doubleArraySizeBy(final int numberOfNewSize) {\n if (numberOfNewSize > 0) {\n int newSize = this.data.length * numberOfNewSize;\n this.data = Arrays.copyOf(this.data, newSize);\n }\n }", "public int capacity()\r\n/* 81: */ {\r\n/* 82:116 */ ensureAccessible();\r\n/* 83:117 */ return this.array.length;\r\n/* 84: */ }", "public static void dynamicAllocation() {\n\t\tint[] studentAges;\n\t\t\n\t\t// Allocate memory\n\t\tstudentAges = new int[5];\n\t\t\n\t\t// Initialize\n\t\tstudentAges[0] = 13;\n\t\tstudentAges[1] = 10;\n\t\tstudentAges[2] = 15;\n\t\tstudentAges[3] = 11;\n\t\t\n\t\t\n\t\tshowArray(\"studentAges\", studentAges);\n\t}", "private void arrayIncreaaseSize(MyArrayList myArrayList, Results results) {\r\n int old_size = myArrayList.length();\r\n int value;\r\n Random rand = new Random();\r\n \r\n for(int i=0; i<50; i++) {\r\n value = rand.nextInt(10000);\r\n if(value < 0) {\r\n value = value * -1;\r\n }\r\n myArrayList.insertSorted(value);\r\n }\r\n if(myArrayList.length() == old_size + 25) {\r\n results.storeNewResult(\"ArrayIncrease test case: PASSED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArrayIncrease test case: FAILED\");\r\n }\r\n }", "private void reallocate() {\r\n //elem = java.util.Arrays.copyOf(elem, elem.length * 2);\r\n E[] temp = (E[]) new Object[elem.length * 2];\r\n int i = 0;\r\n while (elem[i] != null) {\r\n temp[i] = elem[i];\r\n i++;\r\n }\r\n int j = elem.length - 1;\r\n int k = temp.length - 1;\r\n while (elem[i] != null) {\r\n temp[k] = elem[j];\r\n j--;\r\n k--;\r\n }\r\n front = k;\r\n elem = temp;\r\n }", "public void increaseSize() {\n Estimate[] newQueue = new Estimate[queue.length * 2];\n\n for (int i = 0; i < queue.length; i++) {\n newQueue[i] = queue[i];\n }\n\n queue = newQueue;\n }", "void alloc() {\n\t\tother = new int[symbol.length + 2];\n\t}", "public void doubleSize()\r\n\t{\r\n \t\tint newSize = Stack.length * 2;\r\n\t Stack = Arrays.copyOf(Stack, newSize);\r\n\t}", "private T[] resize(T[] arr, double factor) {\n int nSize = (int) (arr.length * factor) + 1;\n // initialize the new array with a new size\n T[] nArr = (T[]) (new Object[nSize]);\n // always take the smallest length to make sure the index is in bound\n int size = Math.min(nArr.length, arr.length);\n // copy all values from the old array into the new array\n for (int i = 0; i < size; i++) {\n nArr[i] = arr[i];\n }\n return nArr;\n }", "private void increase_capacity() {\r\n Object[] temp = new Object[capacity = capacity + capacity/2];\r\n for (int i = 0;i < stack.length ;i++) {\r\n temp[i] = stack[i];\r\n }\r\n stack = temp;\r\n }", "BigONotation(int size) {\n\t\tarraySize = size;\n\t\ttheArray = new int[size];\n\t}", "protected Double[] allocateVariables() {\n\t\tDouble[] _variables = new Double[size];\n\t\treturn _variables;\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate void increaseCapacity()\r\n\t{\r\n\t\t// Store a reference to the old table\r\n\t\tHashEntry<K, V>[] oldTable = table;\r\n\r\n\t\t// Attempt to resize the table\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Make a new table full of empty entries\r\n\t\t\ttable = new HashEntry[SIZES[++sizeIdx]];\r\n\t\t}\r\n\t\t// We have too many entries in the hash table: no more sizes left\r\n\t\tcatch (ArrayIndexOutOfBoundsException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Too many entries in hash table. Exiting.\");\r\n\t\t\tSystem.exit(4);\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < oldTable.length; ++i)\r\n\t\t{\r\n\t\t\t// If we are at an entry with a key and value\r\n\t\t\tif (oldTable[i] != null && !oldTable[i].isTombstone)\r\n\t\t\t{\r\n\t\t\t\t// Add every value at that key to the bigger table\r\n\t\t\t\tfor (V value : oldTable[i].value)\r\n\t\t\t\t{\r\n\t\t\t\t\tinsert(oldTable[i].key, value);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void grow(int n) {\n\t\tint newSize = length + n;\n\t\tif (newSize > limit) {\n\t\t\t// find smallest power of 2 greater than newSize\n\t\t\tlimit = (int) Math.pow(2, Math.ceil(Math.log(newSize) / LN2));\n\t\t\tfloat[] newBuffer = new float[limit];\n\t\t\tSystem.arraycopy(data, 0, newBuffer, 0, length);\n\t\t\tdata = newBuffer;\n\t\t}\n\t}", "void makeNewArray() {\r\n\t\tint[] newStack = new int[stack.length*2];\r\n\t\tfor (int i=0; i<stack.length; i++)\r\n\t\t\tnewStack[i] = stack[i];\r\n\t\t\r\n\t\tstack = newStack;\r\n\t}", "DS (int size) {sz = size; p = new int [sz]; for (int i = 0; i < sz; i++) p[i] = i; R = new int[sz];}", "private void growTable() {\n // Instantiate new array double the size\n LinkedList<Entry<K, V>>[] tmp = (LinkedList<Entry<K, V>>[]) new LinkedList<?>[this.array.length * 2];\n for (int i = 0; i < this.array.length; i++) {\n // Visit every chain of our current array\n if (this.array[i] != null) {\n // If there's a linked list there, instantiate a new linked list\n // with all the same key, values into the new, expanded array\n tmp[i] = new LinkedList<Entry<K, V>>(this.array[i]);\n }\n }\n // Set the current array to be the updated expanded array\n this.array = tmp;\n }", "private void resize(int cap) {\n Item[] temp = (Item[]) new Object[cap];\n for(int i = 0; i < size; i++)\n temp[i] = rqArrays[i];\n rqArrays = temp;\n }", "@SuppressWarnings(\"unchecked\")\n private void resize() {\n // Create a temporary array of the old capacity of the heap and store all of the heaps\n // elements in it\n int size = heap.length;\n T[] temp = (T[]) new Comparable[size];\n System.arraycopy(heap, 0, temp, 0, size);\n\n // Double the capacity of the heap array and copy the values of the temp array back into\n // the heap\n heap = (T[]) new Comparable[size * DOUBLE];\n System.arraycopy(temp, 0, heap, 0, size);\n }", "private void resizeDown()\n\t{\n\t\tint newSize = myArray.length/2;\n\t\tmyArray = Arrays.copyOf(myArray, newSize);\n\t}", "public static void getOutOfMemoryErrorHeapSpace() {\n LOGGER.info(String.format(MESSAGE, \"OutOfMemoryError\", \"big array size\"));\n int[] array = new int[Integer.MAX_VALUE - 3];\n }", "private void grow() {\n Account[] replaceAccounts = new Account[this.accounts.length + 5];\n System.arraycopy(this.accounts, 0, replaceAccounts, 0, this.accounts.length);\n this.accounts = replaceAccounts;\n }", "public ResizingArray() {\r\n super();\r\n this.aObjects = new Object[ResizingArray.DEFAULT_SIZE];\r\n this.aFreeElements = new int[ResizingArray.DEFAULT_SIZE];\r\n }", "private void doubleArray()\n\t{\n\t\tT[] oldList = list;\n\t\tint oldSize = oldList.length;\n\t\t\n\t\tlist = (T[]) new Object[2 * oldSize];\n\t\t\n\t\t// copy entries from old array to new, bigger array\n\t\tfor (int index = 0; index < oldSize; index++)\n\t\t\tlist[index] = oldList[index];\n\t}", "private void ensureCapacity(int capacity) {\n\t\t\tif(capacity > elementData.length) {\n\t\t\t\tint newCap = elementData.length * 2 + 1;\n\t\t\t\tif(capacity > newCap) {\n\t\t\t\t\tnewCap = capacity;\n\t\t\t\t}\n\t\t\t\telementData = Arrays.copyOf(elementData, newCap);\n\t\t\t}\n\t\t}", "int increaseCapacity(int expectedCapacity)\r\n/* 425: */ {\r\n/* 426:456 */ int newCapacity = this.elements.length;\r\n/* 427:457 */ int maxCapacity = this.maxCapacity;\r\n/* 428: */ do\r\n/* 429: */ {\r\n/* 430:459 */ newCapacity <<= 1;\r\n/* 431:460 */ } while ((newCapacity < expectedCapacity) && (newCapacity < maxCapacity));\r\n/* 432:462 */ newCapacity = Math.min(newCapacity, maxCapacity);\r\n/* 433:463 */ if (newCapacity != this.elements.length) {\r\n/* 434:464 */ this.elements = ((Recycler.DefaultHandle[])Arrays.copyOf(this.elements, newCapacity));\r\n/* 435: */ }\r\n/* 436:467 */ return newCapacity;\r\n/* 437: */ }", "private void resize(int newSize){\n Item[] temp = (Item[]) new Object[newSize]; //newsize\n for(int i=0; i<itemCount; i++){\n temp[i] = array[i]; // fill temp with array's stuff\n }\n array = temp; // reset array to temp\n }", "private void resizeArray(int capacity){\n //take temporary array to copy elements\n String[] copy = new String[capacity];\n for(int i=0;i<N;i++){\n copy[i]=stackArray[i];\n }\n //point the temp array to main array\n stackArray=copy;\n }", "private void growSize() {\n size++;\n\n if (size > maxSize) {\n if (keys.length == Integer.MAX_VALUE) {\n throw new IllegalStateException(\"Max capacity reached at size=\" + size);\n }\n\n // Double the capacity.\n rehash(keys.length << 1);\n }\n }", "Object createArray(int capacity);", "private void resize(int newCap) {\n\t\tE[] newArray = (E[]) new Object[newCap];\n\t\tfor(int x = 0; x < newCap && x < capacity; x++) {\n\t\t\tnewArray[x] = elements[x];\n\t\t}\n\t\telements = newArray;\n\t\tcapacity = newCap;\n\t}", "private void grow() {\n OmaLista<OmaPari<K, V>>[] newList = new OmaLista[this.values.length * 2];\n\n for (int i = 0; i < this.values.length; i++) {\n copy(newList, i);\n }\n\n this.values = newList;\n }", "public Array(int capacity)\n {\n array = new Object[capacity];\n }", "public static native int Capacity(long lpjFbxArrayVector2);", "private Flight[] growArray(Flight[] flights) {\r\n\t\tFlight[] newFlights = new Flight[flights.length * 2];\r\n\t\tfor(int i = 0; i < flights.length; i++) {\r\n\t\t\tnewFlights[i] = flights[i];\r\n\t\t}\r\n\t\tsize = size*2;\r\n\t\treturn newFlights;\r\n\t}", "public void resize()\r\n\t{\r\n\t\tif(nItems >= arraySize/2)\t\t\t\t\t\t\t\t\t\t\t\t//If array is half full, the array becomes twice as large.\r\n\t\t{\t\t\t\r\n\t\t\tItem[] tempArray = (Item[]) new Object[2*arraySize];\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < nItems; i++)\r\n\t\t\t{\r\n\t\t\t\ttempArray[i] = q[i];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tq = tempArray;\t\t\t\t\t\t\t\t\t\t\t\t//Re-initialization of q array.\r\n\t\t\tarraySize = 2*arraySize;\t\t\t\t\t\t\t\t\t\t\t//Array size is doubled.\r\n\t\t}\r\n\t\telse if(nItems <= arraySize/4)\t\t\t\t\t\t\t\t\t\t\t//If array is a quarter full, the array size is halved.\r\n\t\t{\r\n\t\t\tItem[] tempArray = (Item[]) new Object[arraySize/2];\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < nItems; i++)\r\n\t\t\t{\r\n\t\t\t\ttempArray[i] = q[i];\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tq = tempArray;\t\t\t\t\t\t\t\t\t\t\t\t//Re-initialization of q array.\r\n\t\t\tarraySize = arraySize/2;\t\t\t\t\t\t\t\t\t\t\t//Array size is halved.\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn;\r\n\t}" ]
[ "0.7295891", "0.7230984", "0.7191749", "0.7149707", "0.71275246", "0.7040889", "0.6965933", "0.6964724", "0.6953754", "0.690967", "0.6796872", "0.6762605", "0.6753777", "0.6743518", "0.6739499", "0.67257214", "0.6690016", "0.66792244", "0.6667698", "0.66545445", "0.6651112", "0.66500825", "0.66434354", "0.6604936", "0.6603058", "0.6580119", "0.6579511", "0.6565613", "0.65609455", "0.6550839", "0.65335816", "0.6522803", "0.65095663", "0.65002376", "0.6497863", "0.6490769", "0.646174", "0.6455857", "0.64555186", "0.6452012", "0.63953036", "0.63818467", "0.63521063", "0.63452005", "0.6339821", "0.6337388", "0.6290617", "0.62862253", "0.6283218", "0.6280473", "0.626532", "0.62606174", "0.6260583", "0.62454873", "0.62433505", "0.623144", "0.62296844", "0.6204933", "0.6203551", "0.6193825", "0.61788434", "0.61783123", "0.6173035", "0.6165643", "0.6163327", "0.61431646", "0.61068064", "0.609655", "0.60943156", "0.6069191", "0.60604703", "0.60602665", "0.6026212", "0.6020791", "0.60200554", "0.59945905", "0.5978208", "0.5972287", "0.59720993", "0.59645736", "0.59487164", "0.59457785", "0.59399855", "0.59307003", "0.5924605", "0.59163237", "0.59008294", "0.5894117", "0.58858675", "0.58858186", "0.58845246", "0.58814085", "0.5877203", "0.58760536", "0.58754534", "0.58737284", "0.5871058", "0.586959", "0.5867784", "0.5854085" ]
0.62515765
53
/ readFile opens a file and reads in all of the integers from the given file.
private void readInFile() { try { file = new File(fileAddress);//Create new file from the given file name fileScanner = new Scanner(file);//Create a file scanner to scan for all the integers } catch(FileNotFoundException e) //Throws a FileNotFountException if the given file name doesn't exist { System.out.println("The file " + fileAddress + " could not be found"); } int i = 0; for(int j = 0; j < 1000; j++) { integerList[j] = fileScanner.nextInt();//Store the next integer from the file in to the integerList //Check to see if the index is at the end of the array and the file still has more integers, //then we reallocate more space for the array. /* if(i > (integerList.length - 1) && fileScanner.hasNextInt()) resizeArray(); i++;*/ } /*while(fileScanner.hasNextInt())//Iterate through the file until there are no more integers { integerList[i] = fileScanner.nextInt();//Store the next integer from the file in to the integerList //Check to see if the index is at the end of the array and the file still has more integers, //then we reallocate more space for the array. if(i >= (integerList.length - 1) && fileScanner.hasNextInt()) resizeArray(); i++; }*/ fileScanner.close();//close the scanner }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Integer> readFile(File file) {\n\t\tArrayList<Integer> fileData = new ArrayList<Integer>();\n\t\t// read the file\n\t\ttry {\n\t\t\tScanner sc = new Scanner(file);\n\t\t\twhile (sc.hasNextInt()) {\n\t\t\t\tfileData.add(sc.nextInt());\n\t\t\t}\n\t\t\tsc.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"An error occurred.\");\n\t\t e.printStackTrace();\n\t\t}\n\t\treturn fileData;\n\t}", "public static void readFile() {\n\t\tbufferedReader = null;\n\t\ttry {\n\t\t\tFileReader fileReader = new FileReader(\"/home/bridgeit/Desktop/number.txt\");\n\t\t\tbufferedReader = new BufferedReader(fileReader);\n\n\t\t\tString line;\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\n\t\t\t\tString[] strings = line.split(\" \");\n\t\t\t\tfor (String integers : strings) {\n\t\t\t\t\thl.add(Integer.parseInt(integers));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File Not Found...\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tbufferedReader.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public ArrayList<Integer> readNumbersFromFile() throws FileNotFoundException {\r\n ArrayList<Integer> arrayList = new ArrayList<>();\r\n File file = new File(readFilename);\r\n Scanner scanner = new Scanner(file);\r\n while(scanner.hasNextInt())\r\n {\r\n arrayList.add(scanner.nextInt());\r\n }\r\n return arrayList;\r\n }", "private int read_int(RandomAccessFile file) throws IOException {\n int number = 0;\n for (int i = 0; i < 4; ++i) {\n number += (file.readByte() & 0xFF) << (8 * i);\n }\n return number;\n }", "public void readIn(String file) {\r\n\r\n\t\ttry {\r\n\r\n\t\t\t/** Initialise loop variable **/\r\n\r\n\t\t\tusedSize = 0;\r\n\r\n\t\t\t/** Set up file for reading **/\r\n\r\n\t\t\tFileReader reader = new FileReader(file);\r\n\r\n\t\t\tScanner in = new Scanner(reader);\r\n\r\n\t\t\t/** Loop round reading in data while array not full **/\r\n\r\n\t\t\twhile (in.hasNextInt() && (usedSize < size)) {\r\n\r\n\t\t\t\tA[usedSize] = in.nextInt();\r\n\r\n\t\t\t\tusedSize++;\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\tSystem.out.println(\"Error processing file \" + file);\r\n\r\n\t\t}\r\n\r\n\t}", "public static int[] readMysteriousNumbers(String filename) throws Exception {\n File file = new File(filename);\n Scanner counter = new Scanner(file);\n int numLines = 0;\n while(counter.hasNextLine()){\n counter.nextLine();\n numLines++;\n }\n int[] arr = new int[numLines];\n\n\n\n Scanner reader = new Scanner(file);\n int index = 0;\n while(reader.hasNextLine()){\n arr[index] = Integer.parseInt(reader.nextLine());\n index++;\n }\n\n\n\n\n return arr;\n /*\n List<Integer> nums = new ArrayList<>();\n while (scanner.hasNextInt()) {\n nums.add(scanner.nextInt());\n }\n int[] ret = new int[nums.size()];\n for(int i = 0;i < ret.length;i++) {\n ret[i] = nums.get(i);\n }\n return ret*/\n }", "private static int[] readData(int size, String filename) throws FileNotFoundException {\n\t\tint[] input = new int[size];\t\n\t\tScanner scanner = new Scanner(new File(filename));\n \n int i = 0;\n while (scanner.hasNext() && i < size)\n {\n \tinput[i] = Integer.parseInt(scanner.next());\n \ti++;\n }\n scanner.close();\n\t return input;\n\t}", "private ArrayList<Integer> fileReader() {\n ArrayList<Integer> data = new ArrayList<>();\n try {\n Scanner scanner = new Scanner(new File(\"andmed.txt\"));\n while (scanner.hasNextLine()) {\n data.add(Integer.valueOf(scanner.nextLine()));\n }\n scanner.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return data;\n }", "public static List<Integer> readBinaryFile(String filename) throws IOException\n {\n List<Integer> binary = new ArrayList<>();\n\n FileInputStream inputStream = new FileInputStream(filename);\n BufferedInputStream bufferedInputStream = new BufferedInputStream(inputStream);\n\n byte[] byteInput = bufferedInputStream.readAllBytes();\n\n String stringInput = new String(byteInput);\n\n for(char c : stringInput.toCharArray())\n {\n binary.add((int) (c - '0'));\n }\n\n return binary;\n }", "public void readFile(){\n try {\n highscores = new ArrayList<>();\n BufferedReader br = new BufferedReader(new FileReader(\"Highscores.txt\"));\n String line = br.readLine();\n while (line != null){\n try{\n highscores.add(Integer.parseInt(line));\n } catch (NumberFormatException e){}\n line = br.readLine();\n }\n br.close();\n } catch (FileNotFoundException e) {\n System.out.println(\"No file found\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void readFile(String myFile, List <Integer> myList) throws FileNotFoundException{\n \t \n Scanner fileScanner = new Scanner(new File(myFile)); // Reads in from filePath.\n \n while (fileScanner.hasNextInt()){ // Loops while there is still a next integer in the list.\n \t myList.add(fileScanner.nextInt()); // Adds all integers to RandomIntegers arraylist.\n }\n \n System.out.println(\"\\nFile read in successfully.\"); \n }", "public static void readNumbers(String filePath, int[] nums) {\n JSONParser parser = new JSONParser();\n try {\n JSONObject jsonObject = (JSONObject) parser.parse(new FileReader(filePath));\n nums[0] = Integer.parseInt((String) jsonObject.get(\"number of primary\"));\n nums[1] = Integer.parseInt((String) jsonObject.get(\"number of backup\"));\n } catch (IOException | ParseException e) {\n e.printStackTrace();\n }\n\n }", "static void experiment1Day1Part1() {\n\n File file = new File(\"src/main/java/weekone/input01.txt\");\n FileReader fileReader = null;\n BufferedReader bufferedReader = null;\n int sum = 0;\n\n try {\n fileReader = new FileReader(file);\n bufferedReader = new BufferedReader(fileReader);\n\n while ((bufferedReader.read() != -1)) {\n String line = bufferedReader.readLine();\n System.out.println(\"\\nThe string is: \" + line);\n int number = Integer.valueOf(line);\n\n System.out.println(\"The number is: \" + number);\n\n }\n\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (fileReader != null)\n fileReader.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n System.out.println(\"The sum is: \" + sum);\n }", "public void readFile(String filename) throws IOException {\n BufferedReader buffer = new BufferedReader(new FileReader(filename));\n\n String line;\n int row = 0;\n isFirstLine = true;\n\n while ((line = buffer.readLine()) != null) {\n String[] vals = line.trim().split(\"\\\\s+\");\n int length = vals.length;\n \n if(isFirstLine) {\n \tfor(int col = 0; col < 2; col++) {\n \t\tif(col == 0)\n \t\t\trowSize = Integer.parseInt(vals[col]);\n \t\telse\n \t\t\tcolSize = Integer.parseInt(vals[col]);\n \t}\n \tskiMap = new int[rowSize][colSize];\n \tisFirstLine = false;\n }\n else {\n \tfor (int col = 0; col < length; col++) {\n \tskiMap[row][col] = Integer.parseInt(vals[col]);\n }\n \t row++;\n }\n }\n \n if(buffer != null)\n \tbuffer.close();\n }", "static int [] readFile() throws IOException {\n\n // Scanner used to get name of file from user\n Scanner in = new Scanner(System.in);\n System.out.println(\"Please enter the name of your file: \");\n String name = in.nextLine();\n\n File file = new File(name); \n \n // Scanner used to read file\n Scanner inputFile = new Scanner(file); \n // reads first line of file for length of array\n int x = inputFile.nextInt();\n\n //Creates array \n int [] scores = new int[x]; \n\n for (int i=0; i<x; i++) {\n int value = inputFile.nextInt();\n scores[i] = value;\n }\n inputFile.close();\n in.close();\n return scores; \n }", "private static void readFileIntoArray (String inputFileName) {\n Path path = Paths.get(inputFileName);\n array = new int[countLines(inputFileName)];\n try {\n Scanner sc = new Scanner(path);\n int i = 0;\n while (sc.hasNextLine()) {\n array[i] = Integer.parseInt(sc.nextLine());\n i++;\n }\n sc.close();\n //sort the array\n MergeSort.mergeSort(array);\n }\n catch(FileNotFoundException e) {\n System.out.println(\"File Error\");\n e.printStackTrace();\n }\n catch(IOException e) {\n System.out.println(\"File Error\");\n e.printStackTrace();\n }\n }", "public int[] getData(String filename) throws IOException\n {\n\tScanner scanner = new Scanner(new File(filename)) ;\n\ttry {\n\t readData(scanner) ;\n\t return data ;\n\t}\n\tfinally {\n\t System.out.println(\"Finally closing the scanner.\") ;\n\t scanner.close() ;\n\t}\n }", "public static void readArray(String fileName, int[] newArray) throws Exception{\n\n // Create DataInputStream object to read from binary file.\n // Use fileName from demo file and read into newArray in demo file.\n DataInputStream input = new DataInputStream(new FileInputStream(fileName));\n\n // Create boolean variable to determine End Of File\n boolean EOF = false;\n\n // While it's not the End Of File\n while(!EOF){\n\n // Try Catch Statement\n try{\n\n // for Loop to go through each integer in the binary file\n for(int i = 0; i < newArray.length; i++){\n\n // read the number and place it in the newArray\n newArray[i] = input.readInt();\n }\n }catch(EOFException e){ // Catch clause to find end of file\n // Change EOF to True\n EOF = true;\n }\n\n }\n // Close the file\n input.close();\n }", "public int[] readBasicInfo() throws IOException\n\t{\n\t\t//Creates a FileReader and BufferedReader to read from the file that you pass it\n\t\tFileReader fr = new FileReader(path);\n\t\tBufferedReader textReader = new BufferedReader(fr);\n\t\t\n\t\t//Creates a new array to read the first line of data to (is an array because need to convert to int list)\n\t\tString textData;\n\t\t\n\t\t//Reads the first line of the text file into the array\n\t\ttextData = textReader.readLine();\n\t\t\n\t\tint[] data = new int[5];\n\t\t//Create a holding variable that will help to convert the String list over to an int list\n\t\tString[] tempList = new String[6];\n\t\t//List of deliminations that will be parsed out of the read strings in the string list that the function is passed\n\t\tString delims = \"[,()]+\";\n\t\t//Splits the strings from the file by the parenthesis and the commas\n\t\ttempList = textData.split(delims);\n\t\tfor (int i = 1; i < tempList.length; i++)\n\t\t\tdata[i-1] = Integer.parseInt(tempList[i]);\n\t\t\n\t\t//Returns the array containing the first line of the text file\n\t\treturn data;\n\t}", "private void readFromFile() {\n\t\tPath filePath = Paths.get(inputFile);\n\n\t\ttry (BufferedReader reader = Files.newBufferedReader(filePath,\n\t\t\t\tCharset.forName(\"UTF-8\"));) {\n\t\t\tString line = null;\n\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tString[] splitLine = line.split(\",\");\n\t\t\t\tcurrentGen.setValue(Integer.parseInt(splitLine[0]),\n\t\t\t\t\t\tInteger.parseInt(splitLine[1]), true);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not find file provided.\");\n\t\t}\n\t}", "private List<Integer> readConfigFile(String filename) {\n\n Scanner input;\n try {\n input = new Scanner(this.getClass().getClassLoader().getResourceAsStream(filename));\n input.useDelimiter(\",|\\\\n\");\n } catch (NullPointerException e){\n throw new IllegalArgumentException(filename + \" cannot be found\", e);\n }\n\n checkConfigFile(filename);\n\n return parseFile(input);\n }", "public int[] readAllInts(){\n\t\tString[] fields=readAllStrings();\n\t\tint[] vals=new int[fields.length];\n\t\tfor (int i=0;i<fields.length;i++){\n\t\t\tvals[i]=Integer.parseInt(fields[i]);\n\t\t}\n\t\treturn vals;\n\t}", "public List<Integer> readLineAsIntegers() throws IOException {\n List<Integer> ret = new ArrayList<>();\n int idx = 0;\n byte c = read();\n while (c != -1) {\n if (c == '\\n' || c == '\\r')\n break;\n\n // next integer\n int i = 0;\n while (c <= ' ') {\n c = read();\n }\n boolean negative = (c == '-');\n if (negative) {\n c = read();\n }\n\n do {\n i = i * 10 + (c - '0');\n c = read();\n } while (c >= '0' && c <= '9');\n// ret[idx++] = (negative) ? -i : i;\n ret.add((negative) ? -i : i);\n }\n return ret;\n }", "public static int getIntFromFile(String filename) {\n if (Logger.get().isDebug()) {\n Logger.debug(\"Reading file {}\", filename);\n }\n try {\n List<String> read = FileKit.readLines(filename);\n if (!read.isEmpty()) {\n if (Logger.get().isTrace()) {\n Logger.trace(\"Read {}\", read.get(0));\n }\n return Integer.parseInt(read.get(0));\n }\n } catch (NumberFormatException ex) {\n Logger.warn(\"Unable to read value from {}. {}\", filename, ex.getMessage());\n }\n return 0;\n }", "public static int[] buildArray() throws IOException {\r\n\r\n //Variable initializations\r\n int[] intArray = {};\r\n int sumOfElements = 0;\r\n int index = 0;\r\n \r\n //Initialization of File and Scanner objects\r\n \r\n File sumOfIntegers = new File(fileInput);\r\n Scanner elementScanner = new Scanner(sumOfIntegers);\r\n\r\n //Loop that increases the num of array elements by 1 every time\r\n //it acknowledges an integer value within the file and subtracts\r\n //1 from the array elements when the sentinel value is reached.\r\n while (elementScanner.hasNextInt()) {\r\n sumOfElements++;\r\n \r\n \r\n //Assign next int scanner method to x variable\r\n //Used to process if boolean condition\r\n int x = elementScanner.nextInt();\r\n\r\n //When -999 sentinel value is reached reduce num of array elements\r\n //by 1 since we do not want it included\r\n if (x == -999) {\r\n sumOfElements = sumOfElements - 1;\r\n intArray = new int[sumOfElements];\r\n }\r\n //Assign sumOfElements as num of array elements\r\n intArray = new int[sumOfElements]; \r\n\r\n }\r\n\r\n //new scanner to reset abstract cursor of file\r\n elementScanner = new Scanner(sumOfIntegers);\r\n for (index = 0; index < sumOfElements; index++) {\r\n int x = elementScanner.nextInt();\r\n\r\n if (x != -999) {\r\n intArray[index] = x;\r\n }\r\n\r\n }\r\n\r\n //Closes the file/scanner\r\n elementScanner.close();\r\n\r\n return intArray;\r\n }", "public static void main(String[] args) throws FileNotFoundException {\n\n\t\t// define a file object for the file on our computer we want to read\n\t\t// provide a path to the file when defining a File object\n\t\t//\n\t\t// paths can be: absolute - code all the parts from the root folder of your OS (Windows)\n\t\t//\n\t\t// paths can be: relative - code the part from the assumed current position to the file\n\t\t//\n\t\t// absolute paths should be avoided - they tightly couple the program to the directory structure it was created on\n\t\t//\t\t\t\t\t\t\t\t\t\t\tif the program is run on a machine with a different directory structure it won't work\n\t\t//\t\t\t\t\t\t\t\t\t\t\t\tbecause the absolute path doesn't exist in a different directory structure\n\t\t//\n\t\t// relative paths are preferred because you have loosely coupled the file to the directory structure\n\t\t//\t\t\tit is more likely that the relative paths will be the same from machine to machine\n\t\t//\n\t\t// path: . = current directory\n\t\t//\t\t/ = then (sub-directory or file follows)\n\t\t//\t\tnumbers.txt - file name\n\n\t\tFile theFile = new File(\"./data/numbers.txt\"); // give the File object the path to our file\n\n\t\t// define a scanner for the File object we created for the file on our computer\n\t\tScanner scannerForFile = new Scanner(theFile); // give Scanner the file object we created\n\n\t\tString aLine = \"\"; // hold a line of input from the file\n\n\n\t\tint sum = 0; // hold the sum of the numbers in a line\n\n\t\t// if we want to get all the lines in the file\n\t\t// we need to go through and get each line in the file one at a time\n\t\t// but we can't get a line from the file if there are no more lines in the file\n\t\t// we can use the Scanner class hasNextLine() method to see if there is another line in the file\n\t\t// we can set a loop to get a line from the file and process it as long as there are lines in the file\n\t\t// we will use while loop since we want loop based on a condition (as long as there are line in the file)\n\t\t// \t\t\tand not a count of lines in the file, in which case we would use a for-loop\n\t\t//\t\t\t\tfor-each-loops only work for collection classes\n\n\t\t// add up each line from my file\n\t\t// the file has one or more numbers separated by a single space in each line\n\n\t\twhile (scannerForFile.hasNextLine()) { // loop while there ia a line in the file\n\n\t\t\taLine = scannerForFile.nextLine(); // get a line from the file and store it in aLine\n\n\t\t\t// break apart the numbers in the line based on spaces\n\t\t\t// String .split() will create an array of Strings of the values separated by the delimiter\n\n\t\t\tString[] theNumbers = aLine.split(\" \"); // break apart the numbers in the line based on spaces\n\n\t\t\tSystem.out.println(\"Line from the file: \" + aLine); // display the line from the file\n\n\t\t\t// reset teh sum to 0 to clear it of the value from the last time through the loop\n\t\t\tsum = 0;\n\n\t\t\t// loop through the array of Strings holding the numbers from the line in the file\n\n\t\t\tfor (String aNumber : theNumbers) { // aNumber will hold the current element that is in the array\n\t\t\t\t\tsum = sum + Integer.parseInt(aNumber); // add the number to a sum after converting the String to an int\n\t\t\t}\n\n\t\t\t// now that we have the sum, we can display it\n\n\t\t\tSystem.out.println(\"Sum of the numbers is: \" + sum);\n\t\t\tSystem.out.println(\"Average of the numbers is: \" + sum / theNumbers.length);\n\n\t\t} // end of while loop\n\n\n\t\t\n}", "public static int[] readInts() {\n return readAllInts();\n }", "public static void main (String [] args) throws IOException {\n BufferedReader f = new BufferedReader(new FileReader(\"test.in\"));\n // input file name goes above\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"test.out\")));\n // Use StringTokenizer vs. readLine/split -- lots faster\n StringTokenizer st = new StringTokenizer(f.readLine());\n\t\t\t\t\t\t // Get line, break into tokens\n int i1 = Integer.parseInt(st.nextToken()); // first integer\n int i2 = Integer.parseInt(st.nextToken()); // second integer\n out.println(i1+i2); // output result\n out.close(); // close the output file\n}", "public ArrayList<BigInteger> read(String fileName) {\n String line = null; // current line from text file\n String[] numbers = null;\n try {\n BufferedReader lineReader = new BufferedReader\n ( (fileName == null || fileName.length() <= 0 || fileName.equals(\"-\"))\n ? new InputStreamReader(System.in)\n : new FileReader(fileName)\n );\n while ((line = lineReader.readLine()) != null) { // read and process lines\n if (! line.matches(\"\\\\s*#.*\") && ! line.matches(\"\\\\s*\")) { // no comment line, no empty line\n numbers = line.trim().split(\"\\\\s+\");\n int last = numbers.length - 1;\n /*\n try {\n int index = Integer.parseInt(numbers[0]);\n } catch (Exception exc) {\n }\n */\n sequence.add(new BigInteger(numbers[last]));\n } else {\n // ignore comment line\n }\n } // while ! eof\n lineReader.close();\n } catch (Exception exc) {\n log.error(exc.getMessage(), exc);\n } // try\n return sequence;\n }", "private static int readFromBuffer() throws IOException{\n int n;\n // The number of ints read into the buffer after a read.\n int intsRead;\n // The current position in the byte buffer.\n int pos;\n // The current integer values being processed.\n int x;\n // The current position in the integer array of values to be sorted.\n int index = 0;\n\n // The loop condition reads in the next buffer of bytes from the file, until there are no\n // more bytes to be read in.\n while ((n = fis.read(buf)) != READ_FINISHED) {\n intsRead = n / BYTES_TO_INTS;\n\n // iterate through all the ints currently being held in the byte buffer\n // if they fall in the given bound, add them to the int array to be sorted.\n for (int i = 0; i < intsRead; i++) {\n pos = BYTES_TO_INTS * i;\n\n // Convert the next set of 4 bytes to an integer.\n x = (((int) buf[pos]) & 255) << 24\n | ((((int) buf[pos + 1]) & 255) << 16)\n | ((((int) buf[pos + 2]) & 255) << 8)\n | ((((int) buf[pos + 3]) & 255));\n\n\n // put the current integer into the int array\n ints[index] = x;\n index++;\n }\n }\n\n\n // This returns the number of values selected to be sorted.\n return index;\n }", "public static int dataNum(File file) {\n int lineCount = 0; // Start line count at 0\n\n try { // Try catch\n Scanner scan = new Scanner(file); // Scans file that was specified\n while(scan.hasNextLine()) { // While loop runs until there are no more lines to read\n String line = scan.nextLine(); // Line read is stored as a string\n if (Character.isDigit(line.charAt(4))) { // Sees if the 4th character in the line is a integer\n lineCount++; // If it is an integer, it counts that line\n }\n }\n return lineCount; // Returns the line count\n } catch (FileNotFoundException e) { // If error occurs\n System.out.println(\"An error has occured\"); // Print that error has occured\n }\n return 0; // In case there is no lineCount return and to get rid of errors\n }", "private int[][] readPuzzle(File f) throws NumberFormatException, IOException {\n\t\tint[][] out = new int[N + 1][N + 1];\n\t\tBufferedReader br = new BufferedReader(new FileReader(f));\n\t\tString line = null;\n\t\tint row = 1;\n\t\ttry {\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tif (line.isBlank() || row > N)\n\t\t\t\t\tcontinue;\n\t\t\t\tString[] vals = line.split(\" \");\n\t\t\t\tif (vals.length != N)\n\t\t\t\t\treturn null;\n\t\t\t\tfor (int j = 0; j < vals.length; j++) {\n\t\t\t\t\tout[row][j + 1] = Integer.parseInt(vals[j]);\n\t\t\t\t}\n\t\t\t\trow++;\n\t\t\t}\n\t\t} finally {\n\t\t\tbr.close();\n\t\t}\n\t\treturn out;\n\t}", "public int[][] readMatrix(String filename, int n) throws Exception\n {\n\t // start with a null file and scanner\n\t File file = null;\n\t Scanner sc = null;\n\t // try to get a file and scanner. If it fails, an exception is thrown\n\t file = new File(filename);\n\t sc = new Scanner(file);\n\t \n\t \n\t // create the return matrix\n\t int[][] matrix = initMatrix(n);\n\t // go through the file line by line and populate the matrix\n\t for (int i = 0; i<n; i++) {\n\t\t String line = sc.nextLine();\n\t\t String[] elements = line.split(\" \");\n\t\t for (int j = 0; j<n; j++) {\n\t\t\t matrix[i][j] = Integer.parseInt(elements[j]);\n\t\t }\n\t }\n\t // close scanner, return the matrix.\n\t sc.close();\n\t return matrix;\n }", "public void readFile(String file)\n\t{\t\n\t\tfindPieces(file);\n\t}", "public void readVotes(File inFile);", "private void readFile() {\r\n\t\tScanner sc = null; \r\n\t\ttry {\r\n\t\t\tsc = new Scanner(inputFile);\t\r\n\t\t\twhile(sc.hasNextLine()){\r\n\t\t\t\tgrade.add(sc.nextLine());\r\n\t } \r\n\t\t}\r\n\t\tcatch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tsc.close();\r\n\t\t}\t\t\r\n\t}", "private long read_long(RandomAccessFile file) throws IOException {\n long number = 0;\n for (int i = 0; i < 8; ++i) {\n number += ((long) (file.readByte() & 0xFF)) << (8 * i);\n }\n return number;\n }", "int readInt() throws IOException;", "public static Integer[] readInputArrayFromFile(Integer[] array, String fileName) {\n\n\t\tList<Integer> ints = readInputArrayFromFile(fileName);\n\n\t\tarray = new Integer[ints.size()];\n\t\tfor (int i = 0; i < ints.size(); i++) {\n\t\t\tarray[i] = ints.get(i);\n\t\t}\n\t\treturn array;\n\t}", "public static void readFile( String file ) throws Exception\r\n\t{\r\n\t\tString format;\r\n\t\tint width, height, maxPixel;\r\n\t\t\r\n\t\tScanner get = new Scanner( new FileReader( file ) );\r\n\t\t\r\n\t\tformat = get.next();\r\n\t\twidth = get.nextInt();\r\n\t\theight = get.nextInt();\r\n\t\tmaxPixel = get.nextInt();\r\n\t\t\r\n\t\tif ( ( width != WIDTH ) || ( height != HEIGHT ) || ( maxPixel != MAX_PIXEL ) )\r\n\t\t{\r\n\t\t\tSystem.out.println( \"Error in file format. Exiting...\" );\r\n\t\t\tSystem.exit( 1 );\r\n\t\t}\r\n\t\t\t\r\n\t\tif ( format.equals(\"P2\") )\r\n\t\t{\r\n\t\t\tfor ( int i = 0; i < WIDTH; i++ )\r\n\t\t\t{\r\n\t\t\t\tfor ( int j = 0; j < HEIGHT; j++ )\r\n\t\t\t\t{\r\n\t\t\t\t\torig_pixels[i][j] = get.nextByte( );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif ( format.equals( \"P5\" ) )\r\n\t\t{\r\n\t\t\tget.close();\r\n\t\t\t\r\n\t\t\tDataInputStream input = new DataInputStream( new FileInputStream( file ) );\r\n\r\n\t\t\tfor ( int i = 0; i < 15; i++ )\r\n\t\t\t\tinput.readUnsignedByte();\r\n\t\t\t\r\n\t\t\tfor ( int i = 0; i < WIDTH; i++ )\r\n\t\t\t{\r\n\t\t\t\tfor ( int j = 0; j < HEIGHT; j++ )\r\n\t\t\t\t{\r\n\t\t\t\t\torig_pixels[i][j] = input.readUnsignedByte();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tinput.close();\r\n\t\t}\r\n\t\t\r\n\t}", "private void readInter() throws FileNotFoundException {\n\t\t\r\n\t\tFile file = new File(\"input.txt\");\r\n\r\n\t\tScanner input = new Scanner(file);\r\n\r\n\t\twhile (input.hasNext()) {\r\n\r\n\t\t\tint x = input.nextInt();\r\n\t\t\tint y = input.nextInt();\r\n\t\t\t\r\n\t\t\tintervals.add(new Point(x, y));\r\n\t\t}\r\n\t\t\r\n\t\t//Close 'input.txt'\r\n\t\tinput.close();\r\n\t\t\r\n\t}", "private static void readFile(File file) throws IOException {\n try (FileInputStream is = new FileInputStream(file)) {\n byte[] buf = new byte[CHUNK];\n int count = 0;\n long t = System.nanoTime();\n for (int i = 0; i < N/CHUNK; i++) {\n int c = is.read(buf);\n if (c == -1) {\n System.out.println(\"EOF\");\n break;\n } else if (c < 10) {\n System.out.println(\"PARTIAL\");\n break;\n }\n count += c;\n }\n System.out.println((System.nanoTime() - t) / 1_000_000 + \" ms \" + count + \" bytes\");\n }\n }", "public static int[][][] read(String filename) {\n\n\t\t// Calling the right file\n\t\tStdIn.setInput(filename); \n\t\t// This is for ״P3״\n\t\tStdIn.readString(); \n\t\t// The number of columns from file\n\t\tint columns = StdIn.readInt(); \n\t\t// The number of row from file\n\t\tint rows = StdIn.readInt(); \n\t\t // Creating the 3 dim matrix\n\t\tint[][][] readMatrix = new int[rows][columns][3];\n\t\tStdIn.readInt(); // This is the number of colors\n\n\t\tfor (int i = 0; i < rows; i++) {\n\t\t\tfor (int j = 0; j < columns; j++) {\n\t\t\t\tfor (int k = 0; k < 3; k++) {\n\t\t\t\t\t// Getting the value in a 3d matrix\n\t\t\t\t\treadMatrix[i][j][k] = StdIn.readInt(); \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn readMatrix;\n\t}", "public int read(String filename) {\n System.out.println(\"==== Processing data ====\");\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(filename));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n // Read and interpret all the lines.\n int count = 0;\n String line = null;\n while (true) {\n try {\n line = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (line == null) {\n break;\n }\n line = line.trim();\n String[] splitedLine = line.split(\"[,\\\\s]+\");\n if (splitedLine.length != 3) {\n continue;\n }\n String instructionType = splitedLine[0];\n MemRef.MemRefType refType =null;\n if (instructionType.equals(\"I\")) {\n refType = MemRef.MemRefType.INSTR_FETCH;\n } else if (instructionType.equals(\"S\")) {\n refType = MemRef.MemRefType.STORE;\n } else if (instructionType.equals(\"L\")) {\n refType = MemRef.MemRefType.FETCH;\n } else if (instructionType.equals(\"M\")) {\n refType = MemRef.MemRefType.UPDATE;\n } else {\n continue;\n }\n if (refType == null) {\n continue;\n }\n\n Long address = Long.parseLong(splitedLine[1], 16);\n int size = Integer.parseInt(splitedLine[2]);\n MemRef r = new MemRef(refType, address, size);\n count ++;\n runMemoryReference(r);\n }\n return count;\n }", "public void readFile();", "@Override\n public Ini read(File file) throws IOException {\n try ( Reader reader = new FileReader(file)) {\n return read(reader);\n }\n }", "public static int[] firstNum(File file) {\n int lineCount = dataNum(file); // Storing the return of dataNum method as an integer\n int[] firstNum = new int[lineCount]; // Making an int array with an index the same as the lineCount\n String line = \"\"; // Blank string so it can be used anywhere in method \n \n try { // Try catch\n Scanner scan = new Scanner(file); // Scans file that was specified\n for(int i = 0; i < lineCount; i++) { // For loop that runs as many times as line count\n if (scan.hasNextLine()) { // When there is a next line\n line = scan.nextLine(); // The line is stored in the string \"line\"\n }\n if (Character.isDigit(line.charAt(4)) == false) { // If the 4th character in the line is not an integer\n if (scan.hasNextLine()) { // And there is a line after\n line = scan.nextLine(); // The program skips the line with no integer and scans the next line instead\n }\n }\n char first = line.charAt(4); // The 4th character is stored in a char variable\n int num = Character.getNumericValue(first); // The character is then converted to an integer\n firstNum[i] = num; // That integer is stored in the int array at the index number equal to the times the for loop ran\n //System.out.println(firstNum[i]);\n }\n } catch (FileNotFoundException e) { // If error occurs\n System.out.println(\"An error has occured\"); // Prints that the error has occured\n }\n return firstNum; // Returns the int array with all the values stored\n }", "private static void readFile(String filePath) {\n\t\ttry {\n\t\t\tString [] data; // Array of strings that contains the different cells.\n\t\t\t\n\t\t\t// Open the file and read it.\n\t\t\tBufferedReader bufferedReader = new BufferedReader(new FileReader(filePath));\n\t\t\t\n\t\t\t// Read the next line;\n\t\t\tdata = bufferedReader.readLine().split(ONE_SPACE);\n\t\t\t\n\t\t\t// Number of photos.\n\t\t\tSystem.out.println(\">> Reading number of photos...\");\n\t\t\tnumberPhotos = Integer.parseInt(data[0]);\n\t\t\t\n\t\t\tSystem.out.println(\">> Reading photos info...\");\n\t\t\tSystem.out.println(\"\");\n\t\t\tfor (int i = 0; i < numberPhotos; i++) {\n\t\t\t\tdata = bufferedReader.readLine().split(ONE_SPACE);\n\t\t\t\t\n\t\t\t\tList<String> tagList = new ArrayList<String>();\n\t\t\t\t\n\t\t\t\tfor (int j = 2; j < data.length; j++) {\n\t\t\t\t\ttagList.add(data[j]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (data[0].toUpperCase().equals(\"V\")) {\n\t\t\t\t\tphotoList.add(new Photo(true, i, tagList));\n\t\t\t\t} else {\n\t\t\t\t\tslideList.add(new Slide(i, i, tagList));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Close the file.\n\t\t\tbufferedReader.close();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error while reading the input file: \" + e);\n\t\t}\n\t}", "public int[] scanGrades(String filepath) {\n Scanner scanner = null;\n try {\n scanner = new Scanner(new File(filepath));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n ArrayList<Integer> grades = new ArrayList<Integer>();\n while (scanner.hasNextInt()) {\n grades.add(scanner.nextInt());\n }\n int[] gradeArray = new int[grades.size()];\n for (int i = 0; i < grades.size(); i++) {\n gradeArray[i] = grades.get(i);\n }\n return gradeArray;\n }", "public int readInt() throws IOException;", "public static int[][] read(String fileName) throws FileNotFoundException {\r\n int i = -1;\r\n int j;\r\n\r\n int row = 1;\r\n int col = 0;\r\n\r\n Scanner read = new Scanner(new File(\".\\\\data\\\\mountain.paths\\\\\" + fileName));\r\n StringTokenizer st = new StringTokenizer(read.nextLine());\r\n\r\n while (st.hasMoreTokens()) {\r\n st.nextToken();\r\n col++;\r\n }\r\n\r\n while (read.hasNextLine()) {\r\n read.nextLine();\r\n row++;\r\n }\r\n\r\n read = new Scanner(new File(\".\\\\data\\\\mountain.paths\\\\\" + fileName));\r\n int[][] data = new int[row][col];\r\n\r\n while (read.hasNextLine()) {\r\n j = -1;\r\n i++;\r\n st = new StringTokenizer(read.nextLine());\r\n while (st.hasMoreTokens()) {\r\n j++;\r\n data[i][j] = Integer.parseInt(st.nextToken());\r\n }\r\n }\r\n return data;\r\n }", "private static void fileRead(String file) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\t\tString line = \"\";\n\t\t\twhile((line=br.readLine())!=null) {\n\t\t\t\tString data[] = line.split(\"\\\\t\");\n\t\t\t\tint id = Integer.parseInt(data[0]);\n\t\t\t\tint groundTruth = Integer.parseInt(data[1]);\n\t\t\t\tactualClusters.put(id, groundTruth);\n\t\t\t\tArrayList<Double> temp = new ArrayList<>();\n\t\t\t\tfor(int i=2;i<data.length;i++) {\n\t\t\t\t\ttemp.add(Double.parseDouble(data[i]));\n\t\t\t\t}\n\t\t\t\tcols = data.length-2;\n\t\t\t\tgeneAttributes.put(id, temp);\n\t\t\t\tallClusters.add(id+\"\");\n\t\t\t\ttotalGenes++;\n\t\t\t}\n\t\t\ttotalCluster = totalGenes;\n\t\t\tbr.close();\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public int idNum(String fullFilePath){\n\n int lines = 0;\n\n try {\n BufferedReader reader = new BufferedReader(new FileReader(fullFilePath));\n while (reader.readLine() != null) {\n lines++;\n }\n reader.close();\n }\n catch(IOException ioe) {\n ioe.printStackTrace();\n }\n return lines;\n }", "public void readGraph(String filename)\n {\n Scanner fileIn = null;\n int vertex1, vertex2;\n\n try {\n fileIn = new Scanner (new FileReader(filename));\n numVertices = fileIn.nextInt();\n clearGraph();\n vertex1 = fileIn.nextInt();\n while (vertex1 != -1) {\n vertex2 = fileIn.nextInt();\n addEdge(vertex1, vertex2);\n vertex1 = fileIn.nextInt();\n }\n fileIn.close();\n } catch (IOException ioe)\n {\n System.out.println (ioe.getMessage());\n System.exit(0);\n }\n }", "private static int[][] readInput() throws Exception {\r\n\t\t\r\n\t\t// Read the input into a array of strings.\r\n\t\tList<String> inputLines = new ArrayList<String>();\r\n\t\tString currLine = \"\";\r\n\t\ttry {\r\n\t\t\t// Read the content of the file into an array of strings.\r\n\t\t\tScanner myScanner = new Scanner(new File(myFileName));\r\n\t\t\twhile((currLine = myScanner.nextLine()) != null) {\r\n\t\t\t\t\r\n\t\t\t\tinputLines.add(currLine);\r\n\r\n\t\t\t\tif (!myScanner.hasNextLine()) {\r\n\t\t\t\t\tmyScanner.close();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Based out of the number of lines in the input file\r\n\t\t\t// create a nXn matrix.\r\n\t\t\tint max = inputLines.size();\r\n\t\t\tint[][] data = new int[max][max];\r\n\t\t\tint count = 0;\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < max; i++) {\r\n\t\t\t\tfor (int j = 0; j < max; j++) {\r\n\t\t\t\t\tdata[i][j] = INFINITY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Populate the nXn matrix.\r\n\t\t\tfor(int i = 0; i < inputLines.size(); i++) {\r\n\t\t\t\tcurrLine = inputLines.get(i);\r\n\t\t\t\tString[] splitLine = currLine.split(\"\\t\");\r\n\t\t\t\tfor(int j = 0; j < splitLine.length; j++) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tdata[count][j] = Integer.parseInt(splitLine[j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (NumberFormatException ex) { \r\n\t\t\t\t\t\t//do nothing\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcount++;\r\n\t\t\t}\t\t\t\r\n\t\t\treturn data;\r\n\t\t\t\r\n\t\t} catch(Exception ex) {\r\n\t\t\tSystem.out.println(ex.toString());\r\n\t\t\tthrow ex;\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tList<Integer> numbers = new ArrayList<>();\n\t\tint sum = 0;\n\t\ttry {\n\t\t\tfor (String line : Files.readAllLines(Paths.get(\"C:/My Workspace/R_W_Text_file/src/read.txt\"))) {\n\t\t\t\tfor (String part : line.split(\"\\\\s+\")) {\n\t\t\t\t\tInteger i = Integer.valueOf(part);\n\t\t\t\t\tnumbers.add(i);\n\t\t\t\t\tsum = sum + i;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static int readIntFromIndex(File file, String index) {\n if(!file.exists()) return -1;\n String[] lines = getFileLines(file);\n for(String line : lines) {\n if(line.startsWith(index)) {\n line = line.replace(index,\"\");\n try{\n return Integer.parseInt(line);\n } catch (Exception e) { //continues looking for another index\n e.printStackTrace();\n ZmdbLogger.log(\"Unable to get integer from index \" + index + \" from file \" + file.getPath() + \". Continuing to look for another index.\");\n }\n }\n }\n //if nothing was found or Integer.parseInt failed\n return -1;\n }", "public static int[] scanFile(String fileName){\n File file = new File(fileName);\n int[] freqNums = new int[94];\n //try catch in case the file doesn't exist\n try {\n Scanner scan = new Scanner(file);\n //loop to look at each word in the file\n while (scan.hasNext()) {\n String s = scan.next();\n //loop to look at each character in the word\n for(int i = 0; i < s.length(); i++){\n if((int)s.charAt(i)-32 <= 94)\n freqNums[(int)s.charAt(i)-32] = freqNums[(int)s.charAt(i)-32] + 1;\n }\n //accounts for all the spaces\n freqNums[0] = freqNums[0]+1;\n }\n scan.close();\n //gets rid of the imaginary last space\n freqNums[0] = freqNums[0]-1;\n }\n catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return freqNums;\n }", "public static void addtoHashMap (File filename){\n\t\tFileInputStream fin;\n\t\ttry{\n\t\t\tfin = new FileInputStream(filename);\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(fin));\n\t\t\tString n;\n\t\t\ttry{\n\t\t\t\twhile ((n = br.readLine()) != null){\n\t\t\t\t\tif(h.containsKey(n)){\n\t\t\t\t\t\tint i = (Integer) h.get(n);\n\t\t\t\t\t\th.put(n, (i+1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\th.put(n, 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}catch(FileNotFoundException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) throws FileNotFoundException {\n\t\tint listArr[] = new int[70];\r\n\t\tString filename = \"MyList.txt\";\r\n\t\tFile file = new File(filename);\r\n\t\tScanner input = new Scanner(file);\r\n\t\tint i = 0;\r\n\t\twhile (input.hasNextLine()) {\r\n\t\t\tlistArr[i] = input.nextInt();\r\n\t\t\ti++;\r\n\t\t}\r\n\t\t\r\n\t\tmergeSort(listArr, 70);\r\n\t\tfor(i = 0; i < 70; i++) {\r\n\t\t\tSystem.out.println(listArr[i]);\r\n\t\t}\r\n\t}", "private static void printNumbers(String f1) throws IOException {\n DataInputStream in = readFile(f1,f1,true);\n System.out.println(\"\\nThe numbers in \" + f1 + \" are :\");\n int i=0;\n while(i<20 && in.available()>=4){ //print first 20 numbers\n int val = in.readInt();\n System.out.print(val + \" \");\n\n i++;\n\n }\n }", "private void readFromFile(String filename) {\n\t\ttry {\n\t\t Scanner read = new Scanner(new File(filename));\n\t\t String line;\n\t\t int counter = 0;\n\t\t String temp;\n\t\t line = read.nextLine();\n\t\t temp = line.substring(0);\n\t\t height = convertToInt(temp);\n\n\t\t line = read.nextLine();\n\t\t temp = line.substring(0);\n\n\t\t length = convertToInt(temp);\n\t\t size = height*length;\n\t\t \n\t\t squares = new Square[size][size];\n\n\t\t while(read.hasNextLine()) {\n\t\t\t\tline = read.nextLine();\n\t\t \tfor (int i = 0; i < line.length(); i++) {\n\t\t \t temp = line.substring(i, i+1);\n\n\t\t \t if (temp.equals(\".\")) {\n\t\t \t\t\tsquares[counter][i] = new FindValue(0);\n\t\t \t } \n\t\t \t else {\n\t\t\t\t\t\tsquares[counter][i] = new PreFilled(convertToInt(temp));\n\t\t\t \t\t}\n\t\t \t}\n\t\t \tcounter++;\n\t\t }\n\t\t} catch(IOException e) {\n\t\t e.printStackTrace();\n\t\t}\n }", "public void loadEPILine(File file)\r\n\t{\r\n\t\tString name=file.getName();\r\n\t\tint [][] result=null;\r\n\t\ttry \r\n\t\t{\r\n\t\t\tScanner scanner=new Scanner(file);\r\n\t\t\tint size=scanner.nextInt();\r\n\t\t\tint width=scanner.nextInt();\t\t\t\r\n\t\t\tresult=new int[size][width];\r\n\t\t\tscanner.useDelimiter(\",\");\r\n\t\t\tString temp;\r\n\t\t\tfor(int i=0;i<size;i++)\r\n\t\t\t\tfor(int j=0;j<width;j++)\r\n\t\t\t\t{\r\n\t\t\t\t\ttemp=scanner.next();\r\n\t\t\t\t\tresult[i][j]=Integer.parseInt(temp.trim());\r\n\t\t\t\t}\r\n\t\t\tscanner.close();\t\r\n\t\t} catch (FileNotFoundException e) \r\n\t\t{\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t_pixels=result;\r\n\t\t\r\n\t\t//That's why I needed to get rid of \"_\" in directory name\r\n\t\tname=name.substring(0,name.lastIndexOf(\".\"));\r\n\t\tString[] split=name.split(\"_\");\r\n\t\t_line=Integer.parseInt(split[1])+1;\r\n\t\t_position=Position.valueOf(split[2]);\r\n\t\t\r\n\t}", "public TwoSum(int size, File file) throws FileNotFoundException{\n this.size = size;\n ht = new Node[size];\n \n //create and populate array from file\n Scanner sc = new Scanner(file);\n long x,i=0;\n while(sc.hasNext()){\n x=sc.nextLong();\n insert(x);\n System.out.println(i+\" \"+x);\n i++;\n }\n \n findTwoSum();\n }", "List readFile(String pathToFile);", "public static int readID(String path) {\n int id = 0;\n\n try {\n File file = new File(sourcePath + path);\n BufferedReader br = new BufferedReader(new FileReader(file));\n\n String line = br.readLine();\n\n if (line != null)\n id = Integer.parseInt(line.trim());\n else\n System.out.println(\"Unable to convert to integer!\");\n\n br.close();\n } catch (IOException e) {\n System.out.println(\"File not found!\");\n e.printStackTrace();\n }\n\n return id;\n }", "public static int loadFile(File f, Data[] datas) throws IOException \n {\n Scanner scf = new Scanner(f);\n int n = 0; // number of lines read\n while (n < datas.length && scf.hasNextLine()) \n {\n String line = scf.nextLine();\n datas[n] = new Data(line);\n n++;\n }\n scf.close();\n return n;\n }", "static void solutionDay1Part1() {\n List<Integer> integerList = new ArrayList<Integer>(); // Defining an integer Array List\n Scanner myFile = null;\n int sum = 0;\n\n try {\n myFile = new Scanner(new FileReader(\"src/main/java/weekone/input01.txt\"));\n while (myFile.hasNext()) {\n integerList.add(myFile.nextInt());\n }\n for (int integer : integerList) {\n sum += integer;\n //System.out.println(sum);\n }\n System.out.println(\"Day 1 Part1 - The resulting frequency is: \" + sum);\n //Might be also possible using: System.out.println(IntStream.of(integerList).sum());\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (myFile != null) {\n myFile.close();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "public void readFromFile() {\n\n\t}", "public int readInt();", "public void fileRead(String filename) throws IOException;", "public void readFile(String file) throws FileNotFoundException {\n\t\tsc = new Scanner(new File(file));\n\t\tString firstLine = sc.nextLine();\n\t\tString [] breakFirstLine = firstLine.split(\" \");\n\t\tvillages = Integer.parseInt(breakFirstLine[0]);\n\t\tlines = Integer.parseInt(breakFirstLine[1]);\n\t\tSystem.out.println(\"villages: \" + villages + \"\\nlines: \" + lines);\n\t\tString line = \"\"; // current line\n\t\twhile(sc.hasNextLine()) { \n\t\t\tline = sc.nextLine();\n\t\t\tSystem.out.println(line);\n\t\t\tString[] breaks = line.split(\" \");\n\t\t\tString city1 = breaks[0];\n\t\t\tString city2 = breaks[1];\n\t\t\tString col = breaks[2];\n\t\t\tcolor = color(col);\n\t\t\tString route = breaks[3];\n\t\t\ttransit = transit(route);\n\t\t\tVillage a = new Village(city1);\n\t\t\tVillage b = new Village(city2);\n\t\t\t\n\t\t\tEdge e = new Edge(a, b, transit, color);\n\t\t\ta.addEdge(e);\n\t\t\tb.addEdge(e);\n\t\t\tg.addEdge(e);\n\t\t\t\n\t\t\tvertices.add(a);\n\t\t\tlast_transit = transit;\n\t\t\tlast_color = color;\n\t\t}\n\t}", "public Double[] getNumbers() throws IOException {\n List<String> numbersStrs= Files.readAllLines(Paths.get(\"C:\\\\Users\\\\user\\\\Desktop\\\\Software construction git repo\\\\calculator\\\\src\\\\java\\\\com\\\\kelaniya\\\\uni\\\\numbers.txt\"));\n double number1=Integer.parseInt(numbersStrs.get(0));\n double number2=Integer.parseInt(numbersStrs.get(1));\n return new Double[] {number1,number2};\n\n }", "public int readTrials() throws Exception\n {\n return fileHandler.readInt(file);\n }", "private void loadFromFile() {\n try {\n /* Load in the data from the file */\n FileInputStream fIn = openFileInput(FILENAME);\n BufferedReader inRead = new BufferedReader(new InputStreamReader(fIn));\n\n /*\n * access from the GSON file\n * Taken from lonelyTwitter lab code\n */\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Counter>>() {}.getType();\n counters = gson.fromJson(inRead, listType);\n\n } catch (FileNotFoundException e) {\n counters = new ArrayList<Counter>();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "public void loadGridFromFile( String filename )\n\t{\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader( new FileReader( filename ));\n\t\t\tString[] data = new String[width];\n\t\t\tString delimiter = \",\", line = null;\n\t\t\tint i = 0, j = 0;\n\t\t\t\n\t\t\ttry \n\t\t\t{ \n\t\t\t\tline = br.readLine(); \n\t\t\t\t\n\t\t\t\t// Based on file format, determine grid width / height\n\t\t\t\twidth = line.length() / 2 + 1;\n\t\t\t\theight = line.length() / 2 + 1;\n\t\t\t\tgrid = new int[width][height];\n\t\t\t\t\n\t\t\t\t// While file isn't empty\n\t\t\t\twhile ( line != null )\n\t\t\t\t{\n\t\t\t\t\t// Split lines using delimiter of ','\n\t\t\t\t\tdata = line.split( delimiter );\n\t\t\t\t\t\n\t\t\t\t\t// Put contents of each formatted line into grid array\n\t\t\t\t\tfor (i = 0; i < width; i++) \n\t\t\t\t\t{\n\t\t\t\t\t\tgrid[i][j] = Integer.parseInt( data[i] );\n\t\t\t\t\t\tif ( grid[i][j] == 0 ) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tx0 = i;\n\t\t\t\t\t\t\ty0 = j;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tj++;\n\t\t\t\t\tline = br.readLine();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (IOException e) \n\t\t\t{ \n\t\t\t\tSystem.out.println( \"Unable to read from file \" + filename + \". Closing...\" ); \n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tcatch ( FileNotFoundException e)\n\t\t{\n\t\t\tSystem.out.println( \"File with name \" + filename + \" not found. Closing...\" );\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "private void ReadFile(String filePath) throws IOException{\n File file = new File(filePath);\n BufferedReader b = new BufferedReader(new FileReader(file));\n int lineNumber = 1;\n String line = \"\";\n line = b.readLine();\n while (line != null) {\n // analyze the line only when it is not empty and it is not a comment\n String trimLine = line.toString().trim();\n if(trimLine.length() != 0 && !trimLine.substring(0, 1).equals(\"/\") && !trimLine.substring(0, 1).equals(\"#\")){\n // line.toString().trim(): eliminate heading and tailing whitespaces\n // but add one whitespace to the end of the string to facilitate token manipulation\n // under the circumstances that there is only one token on one line, e.g. main\n AnalyzeByLine(line.toString().trim() + \" \", lineNumber);\n }\n lineNumber++;\n line = b.readLine();\n }\n arrL.add(new Token(\"end of file\", 255, lineNumber));\n// for(int i = 0; i < arrL.size(); i++){\n// System.out.println(arrL.get(i).getCharacters() + \" \" + arrL.get(i).getValue() + \" \" + arrL.get(i).getLineNum());\n// }\n }", "public static void main(String[] args) throws IOException{\n\t\tBufferedReader br=new BufferedReader(new FileReader(\"numbers.txt\"));\r\n\t\tString line=br.readLine();\r\n\t\tString evennum[]=line.split(\",\");\r\n\t\tfor(int i=0;i<evennum.length;i++) {\r\n\t\t\tint num=Integer.parseInt(evennum[i]);\r\n\t\t\t\r\n\t\t\tif(num%2==0)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(num);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "private static int lines(String file) {\n\t\tint lineCount = 0;\ntry{\n \t\tFileReader fr = new FileReader(file);\n \t\t LineNumberReader lnr = new LineNumberReader(fr);\n \t\t while (lnr.readLine() != null){\n \t\t \tlineCount++;\n \t }\n \t lnr.close(); \n \t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\nreturn lineCount;\n\n\t\t\n\t}", "public int getNumberOfPersons(String file) throws FileNotFoundException, IOException, ParseException {\n\t\tarrayList = pareseFile(file);\n\t\tSystem.out.println(arrayList.toString());\n\t\treturn arrayList.size();\n\t}", "public void readScoreFromFile(){\n\t\tString line;\n\t\tString[] temp;\n\t\ttry{\n\t\t\tFileReader f = new FileReader(\"conversation_file.txt\");\n\t\t\tBufferedReader b = new BufferedReader(f);\n\t\t\tif((line = b.readLine()) != null){\n\t\t\t\ttemp = line.split(\" \", -1);\n\t\t\t\thighScore = Integer.parseInt(temp[1]);\n\t\t\t\thighScorer = temp[0];\n\t\t\t}\n\t\t} catch (IOException e){\n\t\t\tSystem.out.println(\"File Not Found.\");\n\t\t}\n\t\tSystem.out.println(\"File read, highScore \" + highScore + \" saved.\");\n\t}", "private boolean readBin(String filePath) throws FileNotFoundException, IOException {\n try {\n BufferedReader dataIn = new BufferedReader(new FileReader(filePath + \".bin\"));\n\n String next = dataIn.readLine();\n int length = Integer.parseInt(next);\n next = dataIn.readLine();\n start = Integer.parseInt(next);\n for (int i = 0; i < memory.length; i++) {\n next = dataIn.readLine();\n if (next == null) {\n break;\n }\n memory[i] = Integer.parseInt(next);\n }\n dataIn.close();\n } catch (IOException ex) {\n print(\"File error: \" + ex.toString());\n return true;\n }\n return false;\n\n }", "public static void main(String[] args) throws IOException\n\t{\n \tif ( args.length == 0 )\n\t\t{\n \t\tSystem.out.println(\"File name expected.\");\n \t\tSystem.exit(0);\n \t}\n \tSystem.out.println(\"Opening file \" + args[0] + \"...\");\n\n \t// declares new FileInputStream object and opens input file\n \tFileInputStream fileStream = new FileInputStream(args[0]);\n \tSystem.out.println(\"Opening of file \" + args[0] + \" successful.\");\n\n\t\t// outputs average of 3 columns where there are 6 integers in the input file\n \tScanner sc = new Scanner(fileStream);\n \tint num;\n \tint count = 0;\n\t\tint columns = 3;\n \tlong [] sum = new long[columns];\n\n\t while ( sc.hasNextInt() )\n\t\t{\n\t\t\tfor ( int i = 0; i < columns; ++i )\n\t\t\t{\n\t \t\tnum = sc.nextInt();\n \t \t\tsum[i] = sum[i] + num;\n\t\t\t}\n\t\t\t++count;\n \t}\n\n\t if ( count == 0 )\n \t\tSystem.out.println(\"No integers in file.\");\n \telse\n\t\t{\n\t\t\tfor ( int i = 0; i < columns; ++i )\n\t\t\t{\n\t \t\tSystem.out.print(Math.round((double)sum[i]/(double)count) + \" \");\n \t\t}\n\t\t\tSystem.out.println();\n\t\t}\n \tfileStream.close();\n \t}", "public static List<String> readLineFromFile(File file) {\r\n List<String> result = new ArrayList<String>();\r\n LineNumberReader lnr = null;\r\n try {\r\n lnr = new LineNumberReader(new BufferedReader(\r\n new InputStreamReader(new FileInputStream(file), Charset\r\n .defaultCharset().name())));\r\n for (String line = lnr.readLine(); line != null; line = lnr\r\n .readLine()) {\r\n result.add(line);\r\n }\r\n } catch (Exception e) {\r\n throw new RuntimeException(e);\r\n } finally {\r\n if (lnr != null) {\r\n try {\r\n lnr.close();\r\n } catch (IOException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }\r\n }\r\n return result;\r\n }", "protected abstract void readFile();", "public List<int[]> readCSVint() {\n\t\tCSVReader reader;\n\t\t// The strings pulled from file\n\t\tList<String[]> storedEntries = new ArrayList<String[]>();\n\t\t// Each string converted to int.\n\t\tList<int[]> convertedEntries = new ArrayList<int[]>();\n\n\t\t// Read the entire file into a List.\n\t\ttry {\n\t\t\treader = new CSVReader(new FileReader(getCSVFolder() + File.separator + getFileName() + \".csv\"));\n\t\t\tstoredEntries = reader.readAll();\n\t\t\treader.close();\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// The current list contains strings, so we convert them.\n\t\tint size = storedEntries.get(0).length;\n\t\tfor (String[] row : storedEntries) {\n\t\t\tint[] convertedRow = new int[size];\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tconvertedRow[i] = Integer.parseInt(row[i]);\n\t\t\t}\n\t\t\tconvertedEntries.add(convertedRow);\n\t\t}\n\n\t\treturn convertedEntries;\n\t}", "public int Load(String filepath) throws IOException {\n \t\tint AddeCounter = 0;\n \t\tPath path = Paths.get(filepath);\n \t\ttry (Scanner scanner = new Scanner(path, ENCODING.name())) {\n \t\t\twhile (scanner.hasNextLine()) {\n \t\t\t\t// Read each line into the array list\n \t\t\t\tString line = scanner.nextLine();\n \t\t\t\tif (line != null && !line.isEmpty()) {\n \t\t\t\t\tJobs jobUnit = new Jobs(line);\n \t\t\t\t\tjobqueue.add(jobUnit);\n \t\t\t\t\tAddeCounter++;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\treturn AddeCounter;\n \t}", "public int readInt() throws IOException {\n return in.readInt();\n }", "private static List<String> readFile(File file) throws IOException {\n return Files.readAllLines(file.toPath());\n }", "private static List<String> readFile(File file) throws IOException {\n return Files.readAllLines(file.toPath());\n }", "public void loadMap(String filepath) {\n\n\t\ttry {\n\n\t\t\tInputStream in = getClass().getResourceAsStream(filepath);\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in));\n\n\t\t\tnumCols = Integer.parseInt(br.readLine());\n\t\t\tnumRows = Integer.parseInt(br.readLine());\n\t\t\tmap = new int[numRows][numCols];\n\t\t\twidth = numCols * tileSize;\n\t\t\theight = numRows * tileSize;\n\n\t\t\tString delims = \"\\\\s+\";\n\t\t\tfor (int row = 0; row < numRows; row++) {\n\t\t\t\tString line = br.readLine();\n\t\t\t\tString[] tokens = line.split(delims);\n\t\t\t\tfor (int col = 0; col < numCols; col++) {\n\t\t\t\t\tmap[row][col] = Integer.parseInt(tokens[col]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static void main(String[] args) throws Exception {\n\n Scanner sc = new Scanner(new File(\"IO_in1.txt\"));\n int TC = sc.nextInt(); // number of test cases\n while (TC-- > 0) { // shortcut to repeat until 0\n int a = sc.nextInt(), b = sc.nextInt(); // compute answer\n System.out.println(a+b); // on the fly\n }\n\n // Scanner sc = new Scanner(new File(\"IO_in2.txt\"));\n // int a, b;\n // // stop when both integers are 0\n // while (true) {\n // a = sc.nextInt(); b = sc.nextInt();\n // if ((a == 0) && (b == 0)) break;\n // System.out.println(a+b);\n // }\n\n // Scanner sc = new Scanner(new File(\"IO_in3.txt\"));\n // // Scanner class has hasNext method\n // while (sc.hasNext()) {\n // int a = sc.nextInt(), b = sc.nextInt();\n // System.out.println(a+b);\n // }\n\n // Scanner sc = new Scanner(new File(\"IO_in3.txt\")); // same input file as before\n // int c = 0;\n // while (sc.hasNext()) {\n // int a = sc.nextInt(), b = sc.nextInt();\n // // notice the two '\\n', Java System.out has printf too\n // System.out.printf(\"Case %d: %d\\n\\n\", ++c, a+b);\n // }\n\n // Scanner sc = new Scanner(new File(\"IO_in3.txt\")); // same input file as before\n // int c = 0;\n // while (sc.hasNext()) {\n // int a = sc.nextInt(), b = sc.nextInt();\n // if (c > 0) System.out.println(); // 2nd/more cases\n // System.out.printf(\"Case %d: %d\\n\", ++c, a+b);\n // }\n\n // Scanner sc = new Scanner(new File(\"IO_in4.txt\"));\n // while (sc.hasNext()) {\n // int k = sc.nextInt();\n // int ans = 0, v;\n // while (k-- > 0) { v = sc.nextInt(); ans += v; }\n // System.out.println(ans);\n // }\n\n // Scanner sc = new Scanner(new File(\"IO_in5.txt\"));\n // while (sc.hasNext()) { // keep looping\n // String[] token = sc.nextLine().split(\" \");\n // int ans = 0;\n // for (int i = 0; i < token.length; ++i)\n // ans += Integer.parseInt(token[i]);\n // System.out.println(ans);\n // }\n }", "public void fileRead() {\n\t\tString a, b;\n\t\t\n\t\twhile (input.hasNext()) {\n\t\t\ta = input.next();\n\t\t\tb = input.next();\n\t\t\tSystem.out.printf(\"%s %s\\n\", a, b);\n\t\t}\n\t}", "public List<CorruptionIndex> readFromFile(String filePath){\n return null;\n }", "protected int[] readIntArray(BinaryDataReader dataReader) throws IOException\n\t{\n\t\tlong offset = ((long) this.value) & 0xffffffffL;\n\n\t\t// allocate memory for result\n\t\tint[] res = new int[this.count];\n\n\t\t// save pointer location\n\t\tlong saveLoc = dataReader.getFilePointer();\n\n\t\t// fill up array\n\t\tdataReader.seek(offset);\n\t\tfor (int c = 0; c < this.count; c++)\n\t\t{\n\t\t\tres[c] = dataReader.readInt();\n\t\t}\n\t\t\n\t\t// restore pointer and return result\n\t\tdataReader.seek(saveLoc);\n\t\treturn res;\n\t}", "public int readFromFile(int index) throws IOException {\n FileReader file = (FileReader) filePtrs.get(index);\n int i16 = file.read(); // UTF-16 as int\n char c16 = (char)i16; // UTF-16\n if (Character.isHighSurrogate(c16))\n {\n int low_i16 = file.read(); // low surrogate UTF-16 as int\n char low_c16 = (char)low_i16;\n return Character.toCodePoint(c16, low_c16);\n }\n return i16;\n }", "private Point[] readTestFile(String filename) {\n In in = new In(filename);\n int N = in.readInt();\n Point[] points = new Point[N];\n for (int i = 0; i < N; i++) {\n int x = in.readInt();\n int y = in.readInt();\n points[i] = new Point(x, y);\n }\n return points;\n }", "public static void main(String[] args) throws FileNotFoundException {\nint zbir=0;\n\n\t\tFileReader file=new FileReader(\"maraton.txt\");\n\nArrayList<Integer> lista = new ArrayList<>();\nScanner input=new Scanner(file);\n\nwhile (input.hasNext()) {\n\t\nString ime = input.next();\n\nlista.add(input.nextInt());\n}\nfor(int i=0; i<lista.size();i++) {\n\n\t zbir += lista.get(i);\n\t \n\t\n}\nSystem.out.println(\"Zbir je :\" +zbir);\n\t System.out.println(\"Prosjek je :\" + (zbir/lista.size()));\n\n}", "public int readInt() throws IOException {\n int token = fTokenizer.nextToken();\n if (token == StreamTokenizer.TT_NUMBER)\n return (int) fTokenizer.nval;\n\n String msg = \"Integer expected in line: \" + fTokenizer.lineno();\n throw new IOException(msg);\n }", "public void doTheStuff (String filename) throws FileNotFoundException {\n\tScanner in = new Scanner (new File (filename));\n\tint numberOfCases = in.nextInt();\n\tfor (int caseNumber = 1; caseNumber <= numberOfCases; caseNumber++) {\n\t\tSystem.out.print (\"Case #\"+caseNumber+\": \");\n\t\tsolve(in);\n\t}\n}" ]
[ "0.76239395", "0.73167664", "0.71421367", "0.7085026", "0.6907366", "0.67733496", "0.67254484", "0.6684564", "0.6653301", "0.66194284", "0.65815985", "0.6385675", "0.63113713", "0.63112295", "0.63037825", "0.6266334", "0.6234429", "0.6181558", "0.6175353", "0.6169802", "0.61662847", "0.6153431", "0.61256874", "0.60965973", "0.6003061", "0.5989437", "0.59661055", "0.5958462", "0.59575766", "0.5894936", "0.58625144", "0.5859362", "0.58179915", "0.5797806", "0.57736003", "0.5745513", "0.57447475", "0.57299787", "0.5723234", "0.57188153", "0.5700656", "0.5681353", "0.5679905", "0.56779736", "0.5668369", "0.565647", "0.56204027", "0.55918926", "0.5589994", "0.5574951", "0.5544933", "0.55277723", "0.55205536", "0.5497884", "0.5497537", "0.5491403", "0.54791397", "0.54754806", "0.5447145", "0.54411566", "0.54396594", "0.54292417", "0.54215044", "0.537923", "0.53790367", "0.535069", "0.5331204", "0.5331164", "0.5329837", "0.53045446", "0.5300543", "0.52999026", "0.5297384", "0.52889854", "0.5274799", "0.5268409", "0.5256872", "0.52414215", "0.5236907", "0.523383", "0.52310365", "0.5228908", "0.52255404", "0.52210426", "0.52209765", "0.52185804", "0.521469", "0.51978856", "0.51909924", "0.51909924", "0.5185301", "0.5184136", "0.5182342", "0.5177304", "0.5176517", "0.5174681", "0.5155688", "0.5153946", "0.51536864", "0.51495856" ]
0.64430636
11
Sends a specific order to the order broker. The method recives the message from the analysis executor.
public void send(Order brokerMsg) { // System.out.println("Sending a transaction from. price" + brokerMsg.getPrice() + " buy : " + brokerMsg.isBuy()); MessageCreator messageCreator = new MessageCreator() { @Override public Message createMessage(Session session) throws JMSException { Message msg = session.createTextMessage(brokerMsg.toString()); msg.setJMSCorrelationID(brokerMsg.getStratId().toString()); // System.out.println(msg); return msg; } }; orderService.writeOrder(brokerMsg); jmsTemplate.send("OrderBroker", messageCreator); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendOrderMessage(OrderEntity orderEntity) {\n\t\tOrderEntity cur = getCurrentOrder(orderEntity.getOrderId());\n\t\tif(!\"Y\".equals(cur.getSendStatus())) {\n\t\t\t\n\t\t\t//TODO send order by e-mail or other channels\n\t\t\t\n\t\t\tcur.setSendStatus(\"Y\");\n\t\t\tsaveOrder(cur);\n\t\t}\n\t\t\n\t}", "public void SendOrder(Order order){\r\n\r\n try {\r\n String orderString=Order.packageOrder(order);\r\n out.writeChars(orderString);\r\n out.flush();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "Order sendNotificationNewOrder(Order order);", "private void sendOrderReceivedMessage(String orderId) {\n String orderURI = orderEndpoint + \"/\" + orderId;\n OrderReceived orderReceived = new OrderReceived();\n orderReceived.setOrderUri(orderURI);\n ordersMessageProducer.sendMessage(orderId, orderReceived);\n }", "public void sendMessage(Integer bouquetOrderId) {\n try {\n Connection connection = connectionFactory.createConnection();\n Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);\n MessageProducer producer = session.createProducer(destination);\n producer.setDeliveryMode(DeliveryMode.PERSISTENT);\n TextMessage message = session.createTextMessage();\n message.setText(\"\" + bouquetOrderId);\n producer.send(message);\n logger.warn(\"Sending message: \" + message.getText());\n session.close();\n connection.close();\n } catch (JMSException ex) {\n logger.error(\"Sending message failed : \" + ex);\n }\n }", "public void submit(OrderInternal order_, OrderManagementContext orderManagementContext_);", "public void placeOrder(TradeOrder order)\r\n {\r\n brokerage.placeOrder(order);\r\n }", "public void receiveOrder(Order order) {\n // Let's pretend putting orders on the shelves and scheduling drivers is slow, do the work\n // concurrently in separate threads, and return immediately so the order placer can move on.\n executorService.submit(() -> putOrder(order));\n executorService.submit(() -> scheduleDriver(order));\n }", "public void sendOrder(OrderInfo order) {\n KafkaJsontemplate.send(TOPIC_NAME,order);\n //send to control panel topic for making changes\n KafkaJsontemplate.send(TOPIC_NAME_CHANGE,order);\n\n\n String uri = \"http://localhost:8080/order/send/\";\n\n HttpHeaders headers = new HttpHeaders();\n headers.setContentType(MediaType.APPLICATION_JSON);\n headers.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));\n\n HttpEntity<OrderInfo> request = new HttpEntity<>(order, headers);\n ResponseEntity<OrderInfo> response = restTemplate.postForEntity(uri, request, OrderInfo.class);\n\n if (response.getStatusCode() == HttpStatus.CREATED) {\n log.debug(\"Запрос создан:{}\", response.getBody());\n } else {\n log.debug(\"Request Failed: {}\", response.getStatusCode());\n }\n }", "public void submitOrder() throws BackendException;", "public void reprocessOrder(final Order order) {\n final String orderId = order.getId();\n final Map<String, Object> logMap = LoggingUtils.createLogMap();\n LoggingUtils.logIfNotNull(logMap, LoggingUtils.ORDER_ID, orderId);\n LOGGER.info(\"REPUBLISHING notification to Kafka 'order-received' topic for order - \" + orderId + \".\", logMap);\n sendOrderReceivedMessage(order.getId());\n }", "public synchronized void sendOrder(BlockingBuffer buffer,AmazonOrder order){\n try\n {\n buffer.blockingPut(order); // set value in buffer\n } catch (InterruptedException exception) {\n Thread.currentThread().interrupt();\n }\n\n }", "public void setOrder(String Order) {\n this.Order = Order;\n }", "public void submitOrder(BeverageOrder order);", "public void sendOrder(View view) {\n Intent gIntent = new Intent();\n gIntent.setAction(Intent.ACTION_SENDTO);\n gIntent.setData(Uri.parse(\"mailto:\"));\n gIntent.putExtra(Intent.EXTRA_SUBJECT, \"StarBox order for \" + order.getCustomerName());\n gIntent.putExtra(Intent.EXTRA_TEXT, getOrderDetails(order));\n gIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n startActivity(gIntent);\n }", "public void processOrder(int orderID);", "private void generateAndSubmitOrder()\n {\n OrderSingle order = Factory.getInstance().createOrderSingle();\n order.setOrderType(OrderType.Limit);\n order.setPrice(BigDecimal.ONE);\n order.setQuantity(BigDecimal.TEN);\n order.setSide(Side.Buy);\n order.setInstrument(new Equity(\"METC\"));\n order.setTimeInForce(TimeInForce.GoodTillCancel);\n if(send(order)) {\n recordOrderID(order.getOrderID());\n }\n }", "@Override\n public void sendOrder(List<AbstractPlayer> playersOrderList) {\n List<Integer> orderList = new ArrayList<>();\n for (AbstractPlayer player : playersOrderList) {\n orderList.add(player.getIdPlayer());\n }\n try {\n if (getClientInterface() != null)\n getClientInterface().notifyTurnOrder(orderList);\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending order error\");\n }\n }", "public void submitOrder(View view) {\n /* invoke email app and include order summary in the mail body */\n final Intent emailIntent = new Intent(Intent.ACTION_SENDTO);\n emailIntent.setData(Uri.parse(\"mailto:\"));\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, Constants.NEW_ORDER_SUBJECT);\n emailIntent.putExtra(Intent.EXTRA_TEXT, getOrderSummary());\n if (emailIntent.resolveActivity(getPackageManager()) != null) {\n startActivity(emailIntent);\n }\n }", "public void submitOrder(View view) {\n\n String order = gatherOrder(view);\n\n Uri uri = Uri.parse(\"mailto:\" + \"[email protected]\")\n .buildUpon()\n .appendQueryParameter(\"to\", \"[email protected]\")\n .appendQueryParameter(\"subject\", \"Your pizza order\")\n .appendQueryParameter(\"body\", order)\n .build();\n\n sendEmail(uri, \"Select Email\");\n }", "public void setOrder(Order order){\n this.order = order;\n }", "public String processOrder() {\n notifyAllObservers();\n\n return getOrderReport();\n }", "public void receiveOrder(MissMintOrder order) {\n\t\tAssert.notNull(order, \"order should not be null\");\n\n\t\tMissMintService service = serviceManager.getService(order);\n\t\tAssert.isTrue(orderService.isOrderAcceptable(service), \"service must be acceptable\");\n\t\titemCatalog.save(order.getItem());\n\n\t\torder.getOrderLines().forEach(orderLine ->\n\t\t\tfinanceService.add(\n\t\t\t\tmessages.get(\"orders.service.\" + orderLine.getProductName()) + \" \" + order.getId(),\n\t\t\t\torderLine.getPrice())\n\t\t);\n\n\t\tTimeTableEntry entry = timeTableService.createEntry(order);\n\t\torder.setExpectedFinished(entry.getDate());\n\t\torderManager.save(order);\n\t\tentryRepository.save(entry);\n\n\t\tServiceCategory serviceCategory = ServiceManager.getCategory(service);\n\t\tServiceConsumptionManager.serviceMatRelation.get(serviceCategory).forEach(x ->\n\t\t\t{\n\t\t\t\tString materialName = x.getFirst();\n\t\t\t\tQuantity quantity = x.getSecond();\n\t\t\t\tMaterial material = materialManager.fromName(materialName);\n\t\t\t\tUniqueInventoryItem item = materialInventory.findByProduct(material).orElseThrow(() -> new RuntimeException(\"could not find inventory item\"));\n\t\t\t\tmaterialManager.checkAndConsume(item.getId(), quantity.getAmount().intValue());\n\t\t\t}\n\t\t);\n\n\t}", "public void setOrder(Order order) {\n this.order = order;\n notifyChanged();\n }", "public void placeOrder(TradeOrder order) {\r\n\t\tString msg = \"New order: \";\r\n\t\tif (order.isBuy()) {\r\n\t\t\tbuy.add(order);\r\n\t\t\tmsg += \"Buy \";\r\n\r\n\t\t}\r\n\r\n\t\tif (order.isSell()) {\r\n\t\t\tsell.add(order);\r\n\t\t\tmsg += \"Sell \";\r\n\t\t}\r\n\r\n\t\tmsg += this.getSymbol() + \" (\" + this.getName() + \")\";\r\n\t\tmsg += \"\\n\" + order.getShares() + \" shares at \";\r\n\r\n\t\tif (order.isLimit())\r\n\t\t\tmsg += money.format(order.getPrice());\r\n\t\telse\r\n\t\t\tmsg += \"market\";\r\n\t\tdayVolume += order.getShares();\r\n\t\torder.getTrader().receiveMessage(msg);\r\n\t\t\r\n\t}", "public void submitOrder(View view) {\n EditText nameText = (EditText) findViewById(R.id.text_name);\n String nameCustomer = nameText.getText().toString();\n\n CheckBox wcCb = (CheckBox) findViewById(R.id.checkbox_whipped_cream);\n boolean wcChecked = wcCb.isChecked();\n\n CheckBox cCb = (CheckBox) findViewById(R.id.checkbox_chocolate);\n boolean cChecked = cCb.isChecked();\n\n String message = generateOrderSummary(nameCustomer, count, wcChecked, cChecked);\n\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.setData(Uri.parse(\"mailto:\")); // only email apps should handle this\n intent.putExtra(Intent.EXTRA_SUBJECT, \"Just Java order for \" + nameCustomer);\n intent.putExtra(Intent.EXTRA_TEXT, message);\n\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "@Incoming(\"orders_broadcast\")\n @Counted(\"inventorydemo.orders.count\")\n void ordersToSocket(Order order) {\n }", "public void orderPerform(ControllerOrder controllerOrder) throws IOException, SQLException {\n\r\n\t}", "public void setOrder(final Integer order) {\n this.order = order;\n }", "private void requestOrderDetail() {\n\n ModelHandler.OrderRequestor.requestOrderDetail(client, mViewData.getOrder().getId(), (order) -> {\n mViewData.setOrder(order);\n onViewDataChanged();\n }, this::showErrorMessage);\n }", "public void setOrder(int order) {\n this.order = order;\n }", "public void setOrder(int order) {\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 }", "public void setOrder(int order) {\n\t\tthis.order = order;\n\t}", "public void SendPartialNotificatin(Order ModifiedOrder) {\r\n if (ModifiedOrder!=null) WriteMessages(ModifiedOrder);\r\n }", "public void setOrder(Integer order) {\n this.order = order;\n }", "public void setOrder(Integer order) {\n\t\tthis.order = order;\n\t}", "public void submitOrder(View view) {\n\n displayQuantity(myQuantity);\n int total = calculatePrice(myPrice,myQuantity);\n String orderMessage = displayOrder(total);\n Context context = getApplicationContext();\n Toast myToast = Toast.makeText(context,\"Thanks:\" + myName,Toast.LENGTH_SHORT);\n myToast.show();\n // intent to maps\n //Intent myIntent = new Intent(Intent.ACTION_VIEW);\n //myIntent.setData(Uri.parse(\"geo:47.6, -122.3\"));\n Intent myIntent = new Intent(Intent.ACTION_SENDTO);\n myIntent.setData(Uri.parse(\"mailto:\"));\n myIntent.putExtra(Intent.EXTRA_EMAIL, \"[email protected]\");\n myIntent.putExtra(Intent.EXTRA_SUBJECT,\"Java Order\");\n myIntent.putExtra(Intent.EXTRA_TEXT,orderMessage);\n if(myIntent.resolveActivity(getPackageManager())!= null) {startActivity(myIntent);}\n\n }", "public void setOrder(int order) {\n mOrder = order;\n }", "@Override\n\tpublic void sendOrderConfirmationHtmlEmail(Order order) {\n\t\t\n\t}", "@RabbitListener(queues = \"fulfillment.order\")\n public void processOrderMessage(Object message) {\n\t\tLOG.info(\"Message is of type: \" + message.getClass().getName());\n\t\tif(!(message instanceof byte[])) message = ((Message) message).getBody();\n\t\tString content = new String((byte[])message, StandardCharsets.UTF_8);\n\t\t\n\t\tLOG.info(\"Received on order: \" + content);\n\n\t\ttry {\n\t mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);\n\t Orderr orderr = mapper.readValue(content, Orderr.class);\n\t\t\tthis.orderRepository.save(orderr);\n\t\t\tString paymentStatus = Shipment.TO_BE_PAID;\n\t\t\tif(orderr.isPaymentReceived()) paymentStatus = Shipment.SHIPPABLE;\n\t\t\tShipment shipment = new Shipment(UUID.randomUUID(), paymentStatus, orderr.getShippingAddress(), orderr);\n\t\t\tthis.shipmentRepository.save(shipment);\n\t\t\tLOG.info(\"Order \" +orderr.getUuid().toString()+ \" received and created a shipment:\\n\" + shipment.toString());\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\tLOG.error(\"Error: \" + e.getMessage());\n\t\t}\n\t\tlatch.countDown();\n }", "public void setOrderId(String orderId) {\n this.orderId = orderId;\n }", "public void deliverOrder(Order order, int totalDistance) {\n // Vehicle is not currently available for delivery\n // Run the delivery on a separate thread so the deliveries can happen concurrently\n // This is the current order on the vehicle.\n this.currentOrder = order;\n this.setAvailableForDelivery(false);\n Thread deliveryThread = new Thread(new VehicleThread(this, order, totalDistance));\n deliveryThread.start();\n\n }", "public void submitOrder(View view) {\n CheckBox whippedCreamCheckBox = (CheckBox) findViewById(R.id.whipped_cream_checkbox);\n boolean hasWhippedCream = whippedCreamCheckBox.isChecked();\n CheckBox chocolateCheckBox= (CheckBox) findViewById(R.id.chocolate_checkbox);\n boolean hasChocolate = chocolateCheckBox.isChecked();\n EditText nameField = (EditText)findViewById(R.id.name_field);\n\n /**getting the name */\n String name = nameField.getText().toString();\n\n /**calculating price*/\n int price=calculatePrice(hasWhippedCream,hasChocolate);\n\n /**creating order summary*/\n String priceMessage=createOrderSummary(price,hasWhippedCream,hasChocolate,name);\n\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.setType(\"*/*\");\n intent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.order_summary_email_subject,name));\n intent.putExtra(Intent.EXTRA_TEXT,priceMessage);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "public void createNewOrder()\n\t{\n\t\tnew DataBaseOperationAsyn().execute();\n\t}", "public void setOrder(int value) {\n this.order = value;\n }", "void write(MarketOrder mo, String orderer, String comment);", "public void setOrder(List<Order> order) {\n this.order = order;\n }", "public void receiveNotification(Order order) {\n System.out.println(this.getDescription() + \" has received a notification about \" + order.getDescription());\n }", "public void submitOrder(View view) {\n EditText getName = (EditText)findViewById(R.id.name_field);\n String nameValue = getName.getText().toString();\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_checkbox);\n boolean hasChocolate = chocolateCheckBox.isChecked();\n\n CheckBox CinnamonCheckBox = (CheckBox) findViewById(R.id.Cinnamon_checkbox);\n boolean hasCinnamon = CinnamonCheckBox.isChecked();\n\n CheckBox MarshmallowsCheckBox = (CheckBox) findViewById(R.id.Marshmallows_checkbox);\n boolean hasMarshmallows = MarshmallowsCheckBox.isChecked();\n\n int price = calculatePrice(hasWhippedCream, hasChocolate, hasMarshmallows, hasCinnamon);\n String priceMessage = createOrderSummary(nameValue, price, hasWhippedCream,hasChocolate, hasCinnamon, hasMarshmallows);\n /*displayMessage(priceMessage);*/\n // Use an intent to launch an email app.\n // Send the order summary in the email body.\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.setData(Uri.parse(\"mailto:\")); // only email apps should handle this\n intent.putExtra(Intent.EXTRA_SUBJECT, \"JustJava order for \" + nameValue);\n intent.putExtra(Intent.EXTRA_TEXT, priceMessage);\n\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "void setOrder(Order order);", "private void makeOrder(SensorData sensorData)throws IOException{\n try (TTransport transport = new TSocket(HOST_THRIFT, PORT_THRIFT)){\n transport.open();\n TProtocol protocol = new TBinaryProtocol(transport);\n ShopService.Client client = new ShopService.Client(protocol);\n int tmpPriceFromShop = client.getPriceByName(sensorData.getProduct().nameOfProduct);\n int min = 15;\n int max = 30;\n int random = (int )(Math.random() * max + min);\n String resultFromRPCServer = client.buyProduct(sensorData.getProduct().getNameOfProduct(),random,tmpPriceFromShop);\n // check name and value of ordered Product\n testNameAndValue(resultFromRPCServer, sensorData.getProduct().getNameOfProduct(),random);\n System.out.println(\"RPC answer:\" + resultFromRPCServer);\n sendAnswer(sensorData,resultFromRPCServer);\n try {\n Thread.sleep(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n transport.close();\n } catch (TException x) {\n x.printStackTrace();\n }\n }", "public abstract void saveOrder(Order order);", "public void setOrderId(String orderId) {\n\t\tthis.orderId = orderId;\n\t}", "@Override\n\tpublic void handleEmail(OrderDTO orderDTO) {\n\t\t\n\t}", "private void handleNewOrderSingle(Message input, SessionID sessionID) {\n Message response;\n try {\n response = getExecutionReport(input);\n Session.sendToTarget(response, sessionID);\n } catch (SessionNotFound e) {\n LOG.error(\"Session not found: \" + sessionID.toString(), e);\n }\n }", "public void setOrderType(Byte orderType) {\n this.orderType = orderType;\n }", "@Override\n\tpublic void handleEmail(OrderDTO orderDTO) {\n\n\t}", "public void setOrderId(Integer orderId) {\n this.orderId = orderId;\n }", "void setOrder(int order){\r\n\t\t\tthis.order = order;\r\n\t\t}", "public void setOrderID(String orderID) {\n\t\tORDER_ID = orderID;\n\t}", "public final void setOrder(java.lang.Integer order)\r\n\t{\r\n\t\tsetOrder(getContext(), order);\r\n\t}", "@Override\n public void onMessage(final Message message) {\n final var objectMessage = (ObjectMessage) message;\n try {\n var orderMessage = (OrderMessage) objectMessage.getObject();\n var orders = createOrder.create(orderMessage);\n jmsContext.createProducer().send(orderCreatedBean, orders);\n } catch (JMSException e) {\n throw new RuntimeException(e);\n }\n }", "public void setOrderId(Long orderId) {\n this.orderId = orderId;\n }", "public void setOrderId(Long orderId) {\n this.orderId = orderId;\n }", "public CartOrder updateOrder(CartOrder order) throws Exception;", "@Override\r\n\tpublic void PassOrder(Order order) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tem.persist(order);\r\n\t\t\r\n\t}", "public void submitOrder(View view) {\n EditText nameText = (EditText) findViewById(R.id.edt_Name);\n String name = nameText.getText().toString();\n\n CheckBox whippedCream = (CheckBox) findViewById(R.id.chx_WhippedCream);\n boolean cream = whippedCream.isChecked();\n\n CheckBox hasChocolate = (CheckBox) findViewById(R.id.chx_Chocolate);\n boolean chocolate = hasChocolate.isChecked();\n\n int price = calculatePrice(cream, chocolate);\n displayMessage(createOrderSummary(price, cream, chocolate, name));\n sendReceipt(name, createOrderSummary(price,cream,chocolate,name));\n }", "@Override\n public void sendMessage(Message m) {\n commSender.sendMessage(m);\n }", "void finishOrder(int orderId);", "public abstract void update(Order order, String action);", "public void submitOrder(View view) {\n EditText Name = findViewById(R.id.name);\n nameOfTheCustomer = Name.getText().toString();\n\n// String message = \"Name: \" + nameOfTheCustomer + \"\\n\";\n CheckBox whippedCream = findViewById(R.id.whipped_cream_checkbox);\n CheckBox chocolate = findViewById(R.id.chocolate_checkbox);\n hasWhippedCream = whippedCream.isChecked();\n hasChocolate = chocolate.isChecked();\n String message = \"Toppings:\";\n if(hasWhippedCream){\n message += \" Whipped Cream\";\n }\n if(hasChocolate) {\n message += \" Chocolate\";\n }\n message += \"\\nQuantity: \" + quantity + \"\\n\";\n\n message += \"Total: $\" + calculatePrice();\n message += \"\\nThank you!\";\n// displayMessage(message);\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.setType(\"*/*\");\n intent.putExtra(Intent.EXTRA_SUBJECT, \"Just Java order for: \" + nameOfTheCustomer);\n intent.putExtra(Intent.EXTRA_TEXT, message);\n if(intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "public String orderById(String orderId) {\n String path = mgmtOrdersPath + orderId;\n\n return sendRequest(getResponseType, systemUserAuthToken(), path, allResult, statusCode200);\n }", "public void forwardOrderToSupport(String orderId) {\n Map<String, Object> bodyAdmin = new HashMap<>();\n bodyAdmin.put(\"reason\", \"Admin\");\n\n String toSupportPath = mgmtOrdersPath + orderId + \"/to-support\";\n sendRequest(putResponseType, systemUserAuthToken(), bodyAdmin, toSupportPath, allResult, statusCode200);\n }", "@Override\n public void orderReceivedByServer(Order currentOrder, OrderConsumer server) {\n currentOrder.setTimestamp(new Date());\n LOGGER.log(server.getName() + \": received order=\" + currentOrder.toString());\n\n serverFrame.updateView(server, currentOrder);\n callback.orderReceivedByServer(currentOrder, server);\n }", "public void addPendingOrder(Order order) {\n\t\tmOrders.add(order);\n\t}", "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 setOrderId(String orderId) {\n this.orderId = orderId == null ? null : orderId.trim();\n }", "public void setOrderId(String orderId) {\n this.orderId = orderId == null ? null : orderId.trim();\n }", "public void send(Object o) {\n bus.onNext(o);\n }", "@Override\r\n\tpublic void updateOrder(OrderVO vo) throws Exception {\n\t\tsqlSession.update(namespaceOrder+\".updateOrder\",vo);\r\n\t}", "public void send(Message msg);", "void paymentOrder(long orderId);", "public void sendMsg(){\r\n\t\tsuper.getPPMsg(send);\r\n\t}", "public void setOrderIndex(Integer orderIndex) {\n this.orderIndex = orderIndex;\n }", "@Override\n public void onClick(View v) {\n\n String order = sendOrder(parcelCart);\n\n String orderPost = \"http://project-order-food.appspot.com/send_order\";\n final PostTask sendOrderTask = new PostTask(); // need to make a new httptask for each request\n try {\n // try the getTask with actual location from gps\n sendOrderTask.execute(orderPost, order).get(30, TimeUnit.SECONDS);\n Log.d(\"httppost\", order);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n\n Log.d(\"Button\", \"clicked\");\n Log.d(\"sendorder\", sendOrder(parcelCart));\n Toast toast = Toast.makeText(getApplication().getBaseContext(), \"Order Placed!\", Toast.LENGTH_LONG);\n toast.show();\n }", "public void submitOrder(View view) {\n CheckBox whippedCreamCheckBox=(CheckBox) findViewById(R.id.whipped_cream_checkbox);\n boolean hasWhippedCream=whippedCreamCheckBox.isChecked();\n Log.v(\"MainActivity\",\"hasWhippedCream \"+hasWhippedCream);\n\n CheckBox chocolate=(CheckBox)findViewById(R.id.chocolate_checkbox);\n boolean hasChocolate=chocolate.isChecked();\n\n EditText name=(EditText)findViewById(R.id.name_edittext);\n String userName=name.getText().toString();\n int price=calculatePrice(hasWhippedCream,hasChocolate);\n String priceMessage=createOrderSummary(price,hasWhippedCream,hasChocolate,userName);\n\n\n\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.setData(Uri.parse(\"mailto:\")); // only email apps should handle this\n intent.putExtra(Intent.EXTRA_SUBJECT,\"Just java order for \"+userName);\n intent.putExtra(Intent.EXTRA_TEXT,priceMessage);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n\n //displayMessage(priceMessage);\n\n // Intent intent = new Intent(Intent.ACTION_VIEW);\n // intent.setData(Uri.parse(\"geo:47.6,-122.3\"));\n // if (intent.resolveActivity(getPackageManager()) != null) {\n // startActivity(intent);\n // }\n\n }", "@Override\n\tpublic void execute(final CheckoutActionContext context) throws EpSystemException {\n\t\tcheckoutEventHandler.preCheckoutOrderPersist(context.getShoppingCart(),\n\t\t\t\tcontext.getOrderPaymentList(), context.getOrder());\n\n\t\t//process and update order - should limit our updates to once\n\t\tfinal Order updatedOrder = orderService.processOrderOnCheckout(context.getOrder(),\n\t\t\t\tcontext.getShoppingCart().isExchangeOrderShoppingCart());\n\t\tcontext.setOrder(updatedOrder);\n\t\tcontext.setOrderPaymentList(updatedOrder.getOrderPayments());\n\t}", "public void setReceived(Order order) {\n\t\tProduct product = order.getProductId();\n\n\t\tproduct.setCurrentStock(product.getCurrentStock() + order.getQuantityMultiplier());\n\t\tproductService.update(product);\n\t\torder.setReceived(true);\n\t\tthis.update(order);\n\t}", "public void writeOrderId() {\n FacesContext fc = FacesContext.getCurrentInstance();\n HttpSession session = (HttpSession) fc.getExternalContext().getSession(false);\n session.setAttribute(\"orderId\", \"\" + orderId);\n }", "public void setOrderType(String orderType) {\r\n\t\tthis.orderType = orderType;\r\n\t}", "public void submitOrder() {\n int price = quantity*5;\n displayPrice(price);\n }", "public APIResponse placeOrder(@NotNull Order order){\n try {\n validateOrder(order);\n \n order.getItems().addAll(\n orderItemRepository.saveAll(order.getItems())\n );\n orderRepository.save( order );\n return APIResponse.builder()\n .success( true)\n .data( true )\n .error( null )\n .build();\n }catch (Exception exception){\n\n log.error(exception.getMessage());\n return APIResponse.builder()\n .success( true)\n .data( false )\n .error( exception.getMessage() )\n .build();\n }\n }", "private void send(byte[] message)\n\t\t\tthrows IOException\n\t{\n\t\tchannel.basicPublish(BUNGEECORD_QUEUE, \"\", null, message);\n\t}", "public void setOrderNum(String orderNum) {\n\t\tthis.orderNum = orderNum;\n\t}", "public void setOrderNo(Short orderNo) {\n this.orderNo = orderNo;\n }", "public void saveOrder(Order order) {\n Client client = clientService.findBySecurityNumber(order.getClient().getSecurityNumber());\n Product product = productService.findByBarcode(order.getProduct().getBarcode());\n order.setClient(client);\n order.setProduct(product);\n if (isClientPresent(order) && isProductPresent(order)) {\n do {\n currencies = parseCurrencies();\n } while (currencies.isEmpty());\n\n generateTransactionDate(order);\n\n// Client client = ClientServiceImpl.getClientRepresentationMap().get(order.getClient());\n// Product product = ProductServiceImpl.getProductRepresentationMap().get(order.getProduct());\n convertPrice(order);\n orders.add(order);\n orderedClients.add(client);\n orderedProducts.add(product);\n }\n }", "public void receive(@Observes @JmsIncoming StockQuote quote) {\n System.out.println(\"##### received \" + quote);\n }", "public void setOrderNumber(int value) {\n this.orderNumber = value;\n }" ]
[ "0.72448796", "0.7135796", "0.68700606", "0.6800426", "0.65383536", "0.6516659", "0.64669466", "0.6371336", "0.63144004", "0.63119864", "0.6247917", "0.6191299", "0.6189426", "0.6171628", "0.6145693", "0.60985917", "0.60915446", "0.60474235", "0.60177815", "0.60081875", "0.5972269", "0.5960772", "0.5941279", "0.59397364", "0.58911365", "0.5887493", "0.5877603", "0.5870145", "0.58470416", "0.5844256", "0.5817954", "0.5817954", "0.5795901", "0.5795901", "0.57673055", "0.57638717", "0.57616186", "0.5759524", "0.574823", "0.57475287", "0.5700737", "0.57004285", "0.5699845", "0.56980175", "0.56917083", "0.56842875", "0.5636085", "0.5625951", "0.5608716", "0.55940187", "0.5576812", "0.5563702", "0.55434406", "0.5534564", "0.5506093", "0.54993904", "0.5496388", "0.549429", "0.5488532", "0.54878455", "0.54683095", "0.54615974", "0.5456854", "0.5452538", "0.5440495", "0.5440495", "0.543921", "0.543383", "0.54266584", "0.5422824", "0.54084456", "0.5397611", "0.5393314", "0.5387104", "0.5368291", "0.53628117", "0.5358227", "0.53576016", "0.53541553", "0.53541553", "0.5349692", "0.53434974", "0.5340634", "0.53341216", "0.5323728", "0.5315035", "0.53109", "0.5300056", "0.5298851", "0.52986735", "0.5296951", "0.5295391", "0.5292596", "0.52857745", "0.5278823", "0.5276284", "0.52730966", "0.5267876", "0.52603465", "0.52482796" ]
0.6992557
2
Created by happy on 2019/9/20.
public interface SendSmsService { public String sendSms(String phoneNum); public boolean checkSmsCode(String phoneNum, String smsCode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@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 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 dormir() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void anular() {\n\n\t}", "Consumable() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "private void m50366E() {\n }", "@Override\n void init() {\n }", "@Override\n public void init() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "Petunia() {\r\n\t\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n public void memoria() {\n \n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void initialize() \n {\n \n }", "public void mo4359a() {\n }", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\n public int getSize() {\n return 1;\n }", "private void kk12() {\n\n\t}", "public Pitonyak_09_02() {\r\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 public int describeContents() { return 0; }", "@Override\n public void init() {}", "protected boolean func_70814_o() { return true; }", "private UsineJoueur() {}", "private TMCourse() {\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "public void mo6081a() {\n }", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "private final zzgy zzgb() {\n }", "@Override\n public void initialize() { \n }", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "public void mo21877s() {\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "private void init() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n protected void init() {\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "private void strin() {\n\n\t}", "@Override\n\tpublic void jugar() {}", "private Infer() {\n\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "public abstract void mo70713b();", "@Override\n\tpublic void create () {\n\n\t}", "@Override\n public void initialize() {\n \n }", "@Override\n public int describeContents()\n {\n return 0;\n }" ]
[ "0.5842835", "0.5719488", "0.55224913", "0.54229957", "0.54229957", "0.5408971", "0.5400505", "0.53956425", "0.5391909", "0.53582305", "0.5345321", "0.5344362", "0.5294158", "0.5235002", "0.52107155", "0.52085084", "0.52068853", "0.5196756", "0.5196756", "0.5196756", "0.5196756", "0.5196756", "0.5196756", "0.5191552", "0.5189605", "0.5187954", "0.518254", "0.5175267", "0.51725245", "0.5167279", "0.5161948", "0.5159319", "0.5158796", "0.5153075", "0.51469135", "0.514438", "0.51426005", "0.5141182", "0.5118162", "0.5110863", "0.50967395", "0.5093807", "0.5092067", "0.50870925", "0.5084758", "0.5073095", "0.50690186", "0.5060487", "0.5060487", "0.5060487", "0.5060487", "0.5060487", "0.5060487", "0.5060487", "0.505443", "0.50501376", "0.50464815", "0.5044001", "0.50409496", "0.50306386", "0.5030541", "0.50258195", "0.50258195", "0.50258195", "0.50258195", "0.50258195", "0.50240475", "0.50212675", "0.50212675", "0.50212675", "0.5020733", "0.50201046", "0.5013934", "0.50134015", "0.50134015", "0.5012064", "0.5011588", "0.50022334", "0.49931335", "0.49926627", "0.49771306", "0.49769732", "0.49760312", "0.49728072", "0.49728072", "0.4960676", "0.49570334", "0.49566975", "0.49551323", "0.49551323", "0.49546307", "0.49447814", "0.49443513", "0.49385768", "0.49385768", "0.49385768", "0.49383858", "0.49359977", "0.49295074", "0.49261406", "0.49214354" ]
0.0
-1
Representation of a provision in the view. A provision is a "graphical" representation of a food in the GUI.
public interface ViewProvision extends Colorable { /** * @return the radius of the bacteria. */ Radius getRadius(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface PVPlant extends ElectricityGenerator {\n\n\t/**\n\t * Total area of the panels.\n\t */\n\tAreaResource panelArea();\n\n\t/**\n\t * Inclination of the modules in degrees. <br>\n\t * 0 : horizontal <br>\n\t * 90 : vertical.\n\t */\n\tAngleResource inclination();\n\n\t/**\n\t * Azimuthal orientation of the modules, from 0° to 360°. <br>\n\t */\n\tGeographicDirectionSensor azimuth();\n\n\t/**\n\t * Change in panel output power per temperature unit. Unit = 1/K. <br>\n\t * Note that this quantity is normally given in %/K instead of 1/K (factor 100 difference!). <br>\n\t * In practice, this value is temperature dependent. TODO\n\t * */\n\tFloatResource temperatureCoefficient();\n\n\t/**\n\t * Nominal Operating Cell Temperature (TNOCT), <br>\n\t * defined as the mean panel cell temperature for an open-rack mounted module in idle operation @ solar irradiance\n\t * of 800 W/m2 on the panel surface, ambient temperature of 20°C, wind speed of 1 m/s.\n\t */\n\tTemperatureResource nominalOperatingCellTemperature();\n\n\t/**\n\t * Solar panel installation type <br>\n\t * 1: roof mount <br>\n\t * 2: free standing <br>\n\t * 3: building integrated PV <br>\n\t * 10: flush mount roof installation (panels have the same orientation as the roof, panels close to roof) <br>\n\t * 11: open-rack roof installation <br>\n\t * 20: open-rack free standing <br>\n\t * 21: pole-mounted free standing\n\t */\n\tIntegerResource installationType();\n\n\t/**\n\t * 1: fixed installation, no tracking <br>\n\t * 2: single-axis tracking: horizontal <br>\n\t * 2: single-axis tracking: vertical <br>\n\t * 3: dual-axis tracking\n\t * */\n\tIntegerResource tracking();\n}", "ProvisionProductResult provisionProduct(ProvisionProductRequest provisionProductRequest);", "public abstract T provision();", "public interface PolicyViewDisplay extends PolicyPageTemplateDisplay {\n\t\t\n\t\t/** The MI n_ scrollba r_ size. */\n\t\tpublic static int MIN_SCROLLBAR_SIZE = 5;\n\t\t\n\t\tButton getCancelButton();\n\n\t\tResourcesContentDisplay getResourceContentView();\n\n\t\tSubjectContentDisplay getSubjectContentView();\n\n\t\tvoid setPolicyDesc(String policyDesc);\n\n\t\tvoid setPolicyName(String policyName);\n\n\t\tvoid setPolicyType(String policyType);\n\n\t\tvoid setPolicyStatus(boolean enabled);\n\n\t\tvoid clear();\n\n\t\tvoid error(String msg);\n\n\t\tUserAction getSelectedAction();\n\n\t\tvoid setExtraFieldList(List<ExtraField> extraFieldList);\n\n\t\tvoid setExtraFieldAvailable(boolean available);\n\n\t}", "public interface Part\n{\n\t/**\n\t * Add a draw to the part; pool and count to draw from.\n\t * \n\t * @param pool\n\t * The pool to draw from.\n\t * @param numQuestions\n\t * The number of questions to draw.\n\t * @return the PoolDraw detail added.\n\t */\n\tPoolDraw addDrawDetail(Pool pool, Integer numQuestions);\n\n\t/**\n\t * Add a pick to the part; question.\n\t * \n\t * @param question\n\t * The question to add.\n\t * @return the QuestionPick detail added.\n\t */\n\tQuestionPick addPickDetail(Question question);\n\n\t/**\n\t * Access the back pointer to the assessment.\n\t * \n\t * @return The back pointer to the assessment.\n\t */\n\tAssessment getAssessment();\n\n\t/**\n\t * Access the part details, each a PoolDraw or QuestionPick.\n\t * \n\t * @return The List of part details.\n\t */\n\tList<PartDetail> getDetails();\n\n\t/**\n\t * Access the first question. The order will be in a random order (if enabled) based on the current user.\n\t * \n\t * @return The first question, or null if there are none.\n\t */\n\tQuestion getFirstQuestion();\n\n\t/**\n\t * Access the id.\n\t * \n\t * @return The id.\n\t */\n\tString getId();\n\n\t/**\n\t * Get a message describing what is wrong with the part.\n\t * \n\t * @return A localized message describing what is wrong with the part, or null if the part is valid.\n\t */\n\tString getInvalidMessage();\n\n\t/**\n\t * Check if the part is valid.\n\t * \n\t * @return TRUE if the part is valid, FALSE if not.\n\t */\n\tBoolean getIsValid();\n\n\t/**\n\t * Access the last question. The order will be in a random order (if enabled) based on the current user.\n\t * \n\t * @return The last question, or null if there are none.\n\t */\n\tQuestion getLastQuestion();\n\n\t/**\n\t * Access the count of questions.\n\t * \n\t * @return The count of questions.\n\t */\n\tInteger getNumQuestions();\n\n\t/**\n\t * Access the ordering information within the assessment.\n\t * \n\t * @return The ordering information within the assessment.\n\t */\n\tOrdering<Part> getOrdering();\n\n\t/**\n\t * Access the assessment's presentation; the rich text and attachments that describe the assessment.\n\t * \n\t * @return The assessment's presentation.\n\t */\n\tPresentation getPresentation();\n\n\t/**\n\t * Access one of the questions, by question id.\n\t * \n\t * @param questionId\n\t * The question id.\n\t * @return the question, or null if the question is not defined or not part of the Part.\n\t */\n\tQuestion getQuestion(String questionId);\n\n\t/**\n\t * Access one of the questions, by question id, if it is in the part in a draw (not pick).\n\t * \n\t * @param questionId\n\t * The question id.\n\t * @return the question, or null if the question is not defined or not part of the Part as a draw.\n\t */\n\tQuestion getQuestionInDraw(String questionId);\n\n\t/**\n\t * Access one of the questions, by question id, if it is in the part in a pick (not draw).\n\t * \n\t * @param questionId\n\t * The question id.\n\t * @return the question, or null if the question is not defined or not part of the Part as a pick.\n\t */\n\tQuestion getQuestionInPick(String questionId);\n\n\t/**\n\t * Access the questions in delivery order.\n\t * \n\t * @return The questions in delivery order.\n\t */\n\tList<Question> getQuestions();\n\n\t/**\n\t * Access the questions that have been used for this part in any submissions. <br />\n\t * Order by question description.\n\t * \n\t * @return The questions that have been used for this part in any submissions\n\t */\n\tList<Question> getQuestionsUsed();\n\n\t/**\n\t * Access the randomize flag.\n\t * \n\t * @return TRUE if questions should be randomized per submission, FALSE if they should be presented in authored order.\n\t */\n\tBoolean getRandomize();\n\n\t/**\n\t * @return a non empty string describing the part; either the title, or text based on the part position.\n\t */\n\tString getTag();\n\n\t/**\n\t * Access the title.\n\t * \n\t * @return The title.\n\t */\n\tString getTitle();\n\n\t/**\n\t * Access the sum of all possible points for all questions in the part.\n\t * \n\t * @return The sum of all possible points for all questions in the part.\n\t */\n\tFloat getTotalPoints();\n\n\t/**\n\t * Remove the detail with this detail id.\n\t * \n\t * @param id\n\t * The detail id.\n\t */\n\tvoid removeDetail(String id);\n\n\t/**\n\t * Remove any draw detail that is for this pool.\n\t * \n\t * @param pool\n\t * The pool to remove.\n\t */\n\tvoid removeDrawDetail(Pool pool);\n\n\t/**\n\t * Remove any pick detail that selects this question.\n\t * \n\t * @param question\n\t * The question to remove.\n\t */\n\tvoid removePickDetail(Question question);\n\n\t/**\n\t * Set the randomize flag.\n\t * \n\t * @param setting\n\t * TRUE if questions should be randomized per submission, FALSE if they should be presented in authored order.\n\t */\n\tvoid setRandomize(Boolean setting);\n\n\t/**\n\t * Set the title.\n\t * \n\t * @param title\n\t * The title.\n\t */\n\tvoid setTitle(String title);\n}", "@Override\r\n\tpublic String getType() {\n\t\treturn \"Pigiste\";\r\n\t}", "public String getProvisioned() {\n return this.provisioned;\n }", "public interface VendingUI\n\t{\n\t\tvoid showTotalPaymentsAs(int paymentsSoFar);\n\t\tvoid giveProductOut(StockedProduct portion);\n\t\tvoid giveRefundOut(List<Coin> refund);\n\t\tvoid showWhatsAvailable(Collection<StockedProduct> result);\t\t\n\t}", "private void generateTreasureDesc() {\n description += \" Treasure: \" + treasure.getDescription() + \" Container: \" + treasure.getContainer();\n try {\n description += \" Protection: \" + treasure.getProtection();\n } catch (NotProtectedException ex) {\n\n }\n }", "public String getItemInformation()\n {\n return this.aDescription + \" qui a un poids de \" + this.aWeight;\n\n }", "public void provision(Path provisioningXml, Map<String, String> options) throws ProvisioningException {\n try(ProvisioningLayout<FeaturePackRuntimeBuilder> layout = newConfigLayout(ProvisioningXmlParser.parse(provisioningXml), options)) {\n doProvision(layout, getFsDiff(), false);\n }\n }", "PiviDiagram createPiviDiagram();", "@Override\n\tpublic String toString() {\n\t\treturn this.gems + \" gems for \" + this.amount + \" \" + this.goods.toString();\n\t}", "public ProvisionMode getProvisionMode() {\r\n\t\treturn mode;\r\n\t}", "@Override\n public String toString() {\n return \"Ingredient'\" + ingredientName + '\\'' +\n \": amount='\" + amount + '\\'';\n }", "public interface Product {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the etag property: The entity tag used for optimistic concurrency when modifying the resource.\n *\n * @return the etag value.\n */\n String etag();\n\n /**\n * Gets the displayName property: The display name of the product.\n *\n * @return the displayName value.\n */\n String displayName();\n\n /**\n * Gets the description property: The description of the product.\n *\n * @return the description value.\n */\n String description();\n\n /**\n * Gets the publisherDisplayName property: The user-friendly name of the product publisher.\n *\n * @return the publisherDisplayName value.\n */\n String publisherDisplayName();\n\n /**\n * Gets the publisherIdentifier property: Publisher identifier.\n *\n * @return the publisherIdentifier value.\n */\n String publisherIdentifier();\n\n /**\n * Gets the offer property: The offer representing the product.\n *\n * @return the offer value.\n */\n String offer();\n\n /**\n * Gets the offerVersion property: The version of the product offer.\n *\n * @return the offerVersion value.\n */\n String offerVersion();\n\n /**\n * Gets the sku property: The product SKU.\n *\n * @return the sku value.\n */\n String sku();\n\n /**\n * Gets the billingPartNumber property: The part number used for billing purposes.\n *\n * @return the billingPartNumber value.\n */\n String billingPartNumber();\n\n /**\n * Gets the vmExtensionType property: The type of the Virtual Machine Extension.\n *\n * @return the vmExtensionType value.\n */\n String vmExtensionType();\n\n /**\n * Gets the galleryItemIdentity property: The identifier of the gallery item corresponding to the product.\n *\n * @return the galleryItemIdentity value.\n */\n String galleryItemIdentity();\n\n /**\n * Gets the iconUris property: Additional links available for this product.\n *\n * @return the iconUris value.\n */\n IconUris iconUris();\n\n /**\n * Gets the links property: Additional links available for this product.\n *\n * @return the links value.\n */\n List<ProductLink> links();\n\n /**\n * Gets the legalTerms property: The legal terms.\n *\n * @return the legalTerms value.\n */\n String legalTerms();\n\n /**\n * Gets the privacyPolicy property: The privacy policy.\n *\n * @return the privacyPolicy value.\n */\n String privacyPolicy();\n\n /**\n * Gets the payloadLength property: The length of product content.\n *\n * @return the payloadLength value.\n */\n Long payloadLength();\n\n /**\n * Gets the productKind property: The kind of the product (virtualMachine or virtualMachineExtension).\n *\n * @return the productKind value.\n */\n String productKind();\n\n /**\n * Gets the productProperties property: Additional properties for the product.\n *\n * @return the productProperties value.\n */\n ProductProperties productProperties();\n\n /**\n * Gets the compatibility property: Product compatibility with current device.\n *\n * @return the compatibility value.\n */\n Compatibility compatibility();\n\n /**\n * Gets the inner com.azure.resourcemanager.azurestack.fluent.models.ProductInner object.\n *\n * @return the inner object.\n */\n ProductInner innerModel();\n}", "public Recipe(int inProduced)\n\t{\n\t\tthis.produced = inProduced;\n\t\tingredients = new ArrayList<Ingredient>();\n\t}", "public ViewObjectImpl getSvLpgHoseProductVo1() {\n return (ViewObjectImpl) findViewObject(\"SvLpgHoseProductVo1\");\n }", "public void provision(ProvisioningConfig provisioningConfig, Map<String, String> options) throws ProvisioningException {\n try(ProvisioningLayout<FeaturePackRuntimeBuilder> layout = newConfigLayout(provisioningConfig, options)) {\n doProvision(layout, getFsDiff(), false);\n }\n }", "public String getDescription() {return \"Use an item in your inventory\"; }", "public PromoSetPack(String description, String name, double price){ \r\n\t\tthis.Type = type.PROMO; \r\n\t\tthis.description = description;\r\n\t\tthis.name = name;\r\n\t\tthis.price = price;\r\n\t\tthis.promo = new ArrayList<MenuItem>();\r\n\t}", "public PromoSetPack(){\r\n\t\tthis.Type = type.PROMO;\r\n\t\tthis.promo = new ArrayList<\t>();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn denominacion + \" [prop: \" + propietario + \", sup: \" + superficie + \"]\";\r\n\t}", "public String getPublicPropertyForm( Presentation presentation );", "public String getProposal() {\n return proposal;\n }", "@Override\n public String toString() {\n return String.format(\"Pizza %s, prezzo %f€\", this.gusto, this.prezzo);\n }", "public Boolean getProvisioning() {\r\n return provisioning;\r\n }", "public interface SparePartsPresenter extends BasePresenter<SparePartsView> {\r\n\r\n void getCarModels();\r\n\r\n void getSpareParts(String trimId);\r\n}", "private void createListStereotypes(Composite section2)\n {\n listStereotypes = new ListViewer(section2, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);\n GridData data = new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1);\n listStereotypes.getList().setLayoutData(data);\n\n // Set the label provider\n listStereotypes.setLabelProvider(new LabelProvider()\n {\n public String getText(Object element)\n {\n // Return the resolution's label.\n if (element instanceof Stereotype)\n {\n Stereotype stereotype = (Stereotype) element;\n return stereotype.getName();\n }\n return null;\n }\n });\n\n // Set the content provider\n listStereotypes.setContentProvider(new IStructuredContentProvider()\n {\n\n public Object[] getElements(Object inputElement)\n {\n if (inputElement instanceof Collection)\n {\n int countStereo = 0;\n Collection<Stereotype> result = new LinkedList<Stereotype>();\n Collection< ? > collec = (Collection< ? >) inputElement;\n // for all stereotypes\n for (Object o : collec)\n {\n if (o instanceof Stereotype)\n {\n Stereotype stereo = (Stereotype) o;\n // for all association to the current stereotype\n for (Association a : stereo.getAssociations())\n {\n if (a instanceof Extension)\n {\n Extension e = (Extension) a;\n // get the MetaClass\n EClassifier metaClass = CustomUMLUtil.getEClass(e.getMetaclass());\n // if the MetaClass is in the requirement hierarchie\n if (requirementInheritance.contains(metaClass))\n {\n result.add(stereo);\n countStereo++;\n }\n }\n }\n }\n }\n // Display error if there 0 stereotype\n if (countStereo == 0)\n {\n section.setDescription(\"No stereotype applicable on requirement element in the selected profile\"); //$NON-NLS-1$\n section.layout(true);\n }\n else\n {\n section.setDescription(\"\"); //$NON-NLS-1$\n section.layout(true);\n }\n return result.toArray();\n }\n return null;\n }\n\n public void dispose()\n {\n }\n\n public void inputChanged(Viewer viewer, Object oldInput, Object newInput)\n {\n }\n\n });\n listStereotypes.addSelectionChangedListener(new ISelectionChangedListener()\n {\n private ISelection selection;\n\n public void selectionChanged(SelectionChangedEvent event)\n {\n selection = listStereotypes.getSelection();\n if (selection instanceof IStructuredSelection)\n {\n IStructuredSelection stru = (IStructuredSelection) selection;\n if (stru.getFirstElement() instanceof Stereotype)\n {\n selectedStereotype = (Stereotype) stru.getFirstElement();\n }\n }\n\n }\n });\n }", "public void setProvisioned(String provisioned) {\n this.provisioned = provisioned;\n }", "public void print(){\r\n\t\tint ListLength = this.promo.size();\r\n\t\tSystem.out.println(\"Type: \"+this.Type);\r\n\t\tSystem.out.println(\"Name: \"+this.name);\r\n\t\tSystem.out.println(\"Description: \"+this.description);\r\n\t\tSystem.out.printf(\"$%.2f\\n\", this.price);\r\n\t\tSystem.out.println(\"Featured dishes:\");\r\n\t\tfor (int i =0; i<ListLength; i++){\r\n\t\t\tSystem.out.print(\"\\t\"+(i+1) + \". \");\r\n\t\t\tSystem.out.println(this.promo.get(i).getName()); //print name of ala-carte item in promo array\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "public void provision(Path provisioningXml) throws ProvisioningException {\n provision(provisioningXml, Collections.emptyMap());\n }", "public interface VipInfoPresenter {\n void vipPrice();\n}", "@Override\r\n public String toString()\r\n {\r\n return String.format(\"%s: %n%s: %s (%s) %n%s: %d %n%s: $%,.2f\", \r\n \"invoice\", \"part number\", getPartNumber(), getPartDescription(), \r\n \"quantity\", getQuantity(), \"price per item\", getPricePerItem());\r\n }", "SUP createSUP();", "public String getArmorPicture() {\r\n\t\treturn super.getItemPicture();\r\n\t}", "public interface View {\n\n void show();\n\n void hide();\n\n Stage getStage();\n\n GlueObject getGlueObject();\n\n void setPerson(Person person);\n\n}", "public String getDetails() {\n\t\treturn \"Protein bar: \" + name + \", Fat: \" + fat + \", Energy: \" + energy + \", Carbohydrate: \"\n\t\t\t\t+ carbohydrate + \", Protein: \" + protein + \", Fiber: \" + fiber;\n\t}", "AdditionalRepresentation getAdditionalRepresentation();", "public void viewPromoPackage() {\n\t\ttry {\n\t\t\tFileInputStream fis = new FileInputStream(\"promoData\");\n\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\n\t\t\tpp.clear();\n\n\t\t\tpp = (ArrayList<PromotionalPackage>) ois.readObject();\n\n\t\t\tString leftAlignFormat = \"| %-10s | %-37s | %-5s | %-12s | %n\";\n\n\t\t\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\tSystem.out.format(\"| Package ID | Description | Price | Menu ID |%n\");\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\tCollections.sort(pp); \n\t\t\tfor (PromotionalPackage item : pp) {\n\t\t\t\tSystem.out.format(leftAlignFormat, item.getPackageID(), item.getMenuDesc(), item.getMenuPrice(),\n\t\t\t\t\t\titem.getMenuName());\n\t\t\t}\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\n\t\t\tois.close();\n\t\t\tfis.close();\n\t\t} catch (IOException e) {\n\t\t\t//System.out.println(\"No promotions found!\");\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\tSystem.out.format(\"| Package ID | Description | Price | Menu ID |%n\");\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\treturn;\n\t\t} catch (ClassNotFoundException c) {\n\t\t\tc.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}", "public void setProvisioning(Boolean provisioning) {\r\n this.provisioning = provisioning;\r\n }", "@Override\n\tpublic void showDetails(Manufacturer entity) {\n\n\t}", "@Override\n public String getDescription() {\n return \"Claim currency reserve\";\n }", "public InstantGrowPro() {\n\t\tsuper(\"Instant-Grow Pro(R)\", 1000, \"Crop\",\n\t\t\t\t\"Immediately harvest a crop\",\n\t\t\t\t\"Immediately readies a crop for harvest. \" +\n\t\t\t\t\"Infused with patented witchcraft technology\");\n\t}", "@Override\n\tpublic String toString()\n\t\t{\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"Voiture [prix=\");\n\t\tbuilder.append(this.prix);\n\t\tbuilder.append(\", poids=\");\n\t\tbuilder.append(this.poids);\n\t\tbuilder.append(\"]\");\n\t\treturn builder.toString();\n\t\t}", "protected void addVolumePropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_volume_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_volume_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__VOLUME,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "public interface CropperedModel {\r\n\r\n\r\n\r\n}", "public Potion() \n\t{\n\t\tnumIngredients=10;\n\t\tingredients=\"\";\n\t}", "@Override\n public String getDescription() {\n return \"Digital goods purchase\";\n }", "PropertyRealization createPropertyRealization();", "interface PropItem {\n\t\t/**\n\t\t * The displayed text, including the current value\n\t\t * @return \n\t\t */\n\t\tString getText();\n\t\t/**\n\t\t * Changes the property.\n\t\t * @param up {@code true} increase value, {@code false} decrease it\n\t\t * @return {@code true} if the property has changed and the terrain should be regenerated\n\t\t */\n\t\tboolean change(boolean up);\n\t}", "public void defineProduct(String name,\r\n\t\t\t\t\t\t\t\t double calories,\r\n\t\t\t\t\t\t\t\t double proteins,\r\n\t\t\t\t\t\t\t\t double carbs,\r\n\t\t\t\t\t\t\t\t double fat){\r\n\t\tproducts.add(new Material(name,calories,proteins,carbs,fat,false));\r\n\t}", "public GrantsByPIController(\r\n Component parent,\r\n boolean modal,\r\n String UnitNumber,\r\n String UnitName)\r\n //BudgetInfoBean budgetInfoBean) \r\n {\r\n super();\r\n this.parent= parent;\r\n this.modal = modal;\r\n this.UnitNumber = UnitNumber;\r\n this.UnitName = UnitName;\r\n initialiseController();\r\n }", "public interface Beverage {\n\n String printDescription();\n double getCost();\n}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Product [id=\" + id + \", code=\" + code + \", name=\" + name + \", brand=\" + brand + \", description=\"\r\n\t\t\t\t+ description + \", unitPrice=\" + unitPrice + \", quantity=\" + quantity + \", active=\" + active\r\n\t\t\t\t+ \", categoryId=\" + categoryId + \", supplierId=\" + supplierId + \", brandId=\" + brandId + \", typeId=\"\r\n\t\t\t\t+ typeId + \", purchases=\" + purchases + \", views=\" + views + \"]\";\r\n\t}", "@Override\n\t\tpublic String toString() {\n\t\t\tString theList = \"\";\n\t\t\tfor (int i = 0; i < this.getSize(); i++) {\n\t\t\t\ttheList += \"Ingredient \" + (i+1) + \": \" + this.getList()[i].toString() + \"\\n\";\n\t\t\t}\n\t\t\treturn theList;\n\t\t}", "public String print() {\n\t\treturn new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)\n\t\t\t\t.append(\"ItemTemplate\", super.print())\n\t\t\t\t.append(\"smallCost\", smallCost)\n\t\t\t\t.append(\"mediumCost\", mediumCost)\n\t\t\t\t.append(\"bigCost\", bigCost)\n\t\t\t\t.append(\"largeCost\", largeCost)\n\t\t\t\t.append(\"weightPercent\", weightPercent)\n\t\t\t\t.append(\"armorType\", armorType)\n\t\t\t\t.toString();\n\t}", "public void setPromotion(String promotion)\n {\n this.promotion = promotion;\n }", "public PromotionDetail() {\r\n\t}", "public String toString() {\n\t\treturn \"[\"+this.getClass().getName()+\":\"+\n\t\t\tgetId()+\n\t\t\t\", proposalPath=\"+proposalPath+\"]\";\n\t}", "@Override\n\tpublic void descriere() {\n\t\tSystem.out.println(\"Item: \"+this.numeSectiune);\n\t}", "public PulverizacionItem(SimpleFeature pulvFeature) {\r\n\t\tsuper(pulvFeature);\t\t\t\t\r\n\t}", "public void display() throws IOException, ObjectNotFoundException,\n OperationNotPermittedException, ValidationException,\n OrganizationAuthoritiesException {\n\n VOPriceModel priceModel = model.getService().getPriceModel().getVo();\n\n ExternalPriceModelDisplayHandler displayHandler = new ExternalPriceModelDisplayHandler();\n\n displayHandler.setContent(priceModel.getPresentation());\n displayHandler.setContentType(priceModel.getPresentationDataType());\n displayHandler.display();\n }", "@Override\n public String getDescription() {\n return \"Digital goods listing\";\n }", "public String toString()\n\t{\n\t\treturn ingredients;\n\t}", "private void gravarPromocao() {\n\t\tString nome = textFieldNome.getText();\n\t\tString descricao = textFieldDescricao.getText();\n\t\tboolean ativo = true;\n\n\t\tPromocao promocao = null;\n\n\t\tif (modoEditar) {\n\t\t\tpromocao = promocaoAntiga;\n\n\t\t\tpromocao.setNome(nome);\n\t\t\tpromocao.setDescricao(descricao);\t\t\t\n\t\t\tpromocao.setAtiva(ativo);\n\n\t\t} else {\n\t\t\tpromocao = new Promocao( nome, descricao, ativo);\n\t\t}\n\n\t\ttry {\n\t\t\tif (modoEditar) {\n\t\t\t\tGestorDeDAO.getGestorDeDAO().editarPromocao(promocao);\n\n\t\t\t\tpromocaoPesquisaApp.refreshPromocaoTable();\n\t\t\t\tJOptionPane.showMessageDialog(promocaoPesquisaApp,\n\t\t\t\t\t\t\"Promoção editada com sucesso!\", \"Promoção Editada\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t} else {\n\t\t\t\tGestorDeDAO.getGestorDeDAO().criarPromocao(promocao);\n\t\t\t\tpromocaoPesquisaApp.refreshPromocaoTable();\n\t\t\t\tJOptionPane.showMessageDialog(promocaoPesquisaApp,\n\t\t\t\t\t\t\"Promoção criada com sucesso!\", \"Promoção Criada\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t}\n\n\t\t\tsetVisible(false);\n\t\t\tdispose();\n\n\n\t\t} catch (Exception exc) {\n\t\t\tJOptionPane.showMessageDialog(promocaoPesquisaApp,\n\t\t\t\t\t\"Error a criar a Promoção \" + exc.getMessage(), \"Error\",\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t}\n\n\t}", "public void provision(ProvisioningLayout<?> provisioningLayout) throws ProvisioningException {\n try(ProvisioningLayout<FeaturePackRuntimeBuilder> layout = provisioningLayout.transform(ProvisioningRuntimeBuilder.FP_RT_FACTORY)) {\n doProvision(layout, getFsDiff(), false);\n }\n }", "public Inventory getInventory(){ //needed for InventoryView - Sam\n return inventory;\n }", "public void getPP() {\n\t\tView v = new View();\n\n\t\tlabPP = v.getLabPP();\n\t\tprojPP = v.getProjectPP();\n\t\texamPP = v.getExamPP();\n\t\tcodeLabPP = v.getCodeLabPP();\n\t\tfinalExamPP = v.getFinalPP();\n\t\ttotalPP = labPP + projPP + examPP + codeLabPP + finalExamPP;\n\t}", "protected String stringGoodsInfo() {\n String ret = \"Goods Supply\";\n for (G good : this.goods) {\n ret += \"\\nN = \" + good.supply;\n }\n return ret;\n }", "@Override\n public String getName() {\n return \"Pencil\";\n }", "@Override\n public String displayUponBeingSelected() {\n\n StringBuilder sb = new StringBuilder();\n sb.append(String.format(\"Information about '%s'\\n\", foodLabel));\n sb.append(String.format(\"Brand: %s\\n\", brand));\n sb.append(String.format(\"Category: %s\\n\", category));\n sb.append(String.format(\"Item type: %s\\n\", StringUtils.capitalize(categoryLabel)));\n sb.append(String.format(\"Measure(s): %s\\n\", StringUtils.join(measures, \", \")));\n sb.append(String.format(\"Food ID: %s\\n\", foodId));\n sb.append(String.format(\"Food URI: %s\\n\", foodUri));\n sb.append(String.format(\"Image link: %s\\n\", imageLink));\n sb.append(String.format(\"Yielding search term: %s\\n\", yieldingSearchTerm));\n sb.append(formatBasicNutrients());\n\n return sb.toString();\n\n }", "public ViewPropertyDetails(Property property) {\n initComponents();\n this.setTitle(\"Property Details\");\n this.property = property;\n customer = property.getCustomer();\n block = property.getBlock();\n type = property.getType();\n filter = property.getFilter();\n images = property.getImages();\n services = property.getServices();\n characteristics = property.getCharacteristics();\n lblBlock.setText(block.getBlockName());\n lblCustomerName.setText(customer.getName());\n SimpleDateFormat sdfDate = new SimpleDateFormat(\"yyyy-MM-dd\");//dd/MM/yyyy\n lblDateOfArrival.setText(sdfDate.format(property.getDateOfEntry()));\n lblDateOfOwnership.setText(sdfDate.format(property.getDateOfOwnerShip()));\n lblDemand.setText(\"\" + property.getDemand());\n lblLoadShed.setText(\"\" + block.getNoOfHourOfLoadShed());\n lblNoOfRooms.setText(\"\" + property.getNoOfRooms());\n lblPropertyFor.setText(filter.getFilterName());\n lblSize.setText(\"\" + property.getSize());\n lblType.setText(type.getTypeName());\n txtAddress.setText(property.getAddress());\n txtAgreement.setText(property.getAgreement());\n String str = \"\";\n for (int i = 0; i < services.size(); i++) {\n str += services.get(i).getServiceName() + \"\\n\";\n }\n txtServices.setText(str);\n DefaultTableModel model = (DefaultTableModel) tblCharacteristics.getModel();\n PropertyCharacteristic characteristic;\n for (int i = 0; i < characteristics.size(); i++) {\n characteristic = characteristics.get(i);\n model.insertRow(tblCharacteristics.getRowCount(), new Object[]{characteristic.getCharacteristicName(), characteristic.getQuantity()});\n }\n tblCharacteristics.setModel(model);\n model = (DefaultTableModel) tblImages.getModel();\n for (int i = 0; i < images.size(); i++) {\n model.insertRow(tblImages.getRowCount(), new Object[]{images.get(i)});\n }\n tblImages.setModel(model);\n }", "VariationPoint createVariationPoint();", "@FXML\n public void selectRecipeFromCombo(){\n Recipe selectedRecipe = comboMealSelection.getSelectionModel().getSelectedItem();\n if (selectedRecipe != null){\n mealMethod.setText(selectedRecipe.getMethod());\n //get the list of ingredients\n ObservableList<Ingredient> mealsIngredients = FXCollections.observableList(selectedRecipe.getIngredients());\n\n //set the ingredients to the listView\n mealIngred.setItems(mealsIngredients);\n\n //calculate and display the nutritional information of the meal\n String lineOne = calculateNutritionLineOne(selectedRecipe);\n String lineTwo = calculateNutritionLineTwo(selectedRecipe);\n browseMealNutritionOne.setText(lineOne);\n browseMealNutritionTwo.setText(lineTwo);\n\n }\n }", "public Plant(String plantName) {\n this.plantName = plantName;\n }", "@Override\n public Vehicule creer(String immatriculation, String marque, String modele, Client client) {\n return new Voiture(immatriculation,marque,modele,client);\n }", "@Override\r\n\tprotected String getView() {\n\t\treturn OBSView.PARTS_VIEW;\r\n\t}", "public void setMode(ProvisionMode mode) {\r\n\t\tthis.mode = mode;\r\n\t}", "public Potion()\r\n\t{\r\n\t\tsuper(\"Potion\");\r\n\t\thealthRecovery = 30;\r\n\t}", "public Product( double discountValue, double iva, double pvp) {\n\t\t\n\t\tthis.discountValue = discountValue;\n\t\tthis.iva = iva;\n\t\tthis.pvp = pvp;\n/*\t\tif (shelf != null) {\n shelves = Long.toString(shelf.getID());\n shelfList.add(shelf);\n }*/\n\t}", "@Get\n public Representation represent(Variant variant) throws ResourceException {\n Representation resultRepresentation = null;\n try {\n //resultRepresentation = new StringRepresentation(\n // \t\t new JaxbRepresentation(MediaType.TEXT_XML, this.student).getText());\n resultRepresentation =\n new JaxbRepresentation(MediaType.TEXT_XML, this.student);\n } catch (Exception ex) {\n logger.log(Level.SEVERE, ex.toString(), ex);\n throw new ResourceException(Status.SERVER_ERROR_INTERNAL, ex);\n }\n return resultRepresentation; \n }", "public ViewObjectImpl getSvLpgStoveProductVo1() {\n return (ViewObjectImpl) findViewObject(\"SvLpgStoveProductVo1\");\n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "public String getRepresentation() {\n\t\treturn representation;\n\t}", "public void printProduct() {\n System.out.println(\"nom_jeu : \" + name);\n System.out.println(\"price : \" + price);\n System.out.println(\"uniqueID : \" + identifier);\n System.out.println(\"stock : \" + stock);\n System.out.println(\"image : \" + image);\n System.out.println(\"genre : \" + genre);\n System.out.println(\"plateforme : \" + platform);\n System.out.println();\n }", "public Ingredient(){\r\n \r\n }", "@Override\r\n\tpublic AbstractBoxGift createBoxGift() {\n\t\treturn new HardPlastic();\r\n\t}", "public String toString(){\n return super.toString() + \" (perishable)\"; // String representation of the PerishableItem\n\n }", "public Promotion getPromotion() {\n return promotion;\n }", "public ViewObjectImpl getVehicleOwnershipVO1() {\n return (ViewObjectImpl) findViewObject(\"VehicleOwnershipVO1\");\n }", "public String getDescription(){\n\t\treturn getiIngredient().getDescription() + \", \" + super.getDescription();\n\t}", "public PromedioView() {\n initComponents();\n }", "public milkVariationBean(){}", "private void createCompositeGoodsShow() {\r\n\t\tGridData gridData4 = new GridData();\r\n\t\tgridData4.grabExcessHorizontalSpace = true;\r\n\t\tgridData4.horizontalSpan = 3;\r\n\t\tgridData4.heightHint = 380;\r\n\t\tgridData4.widthHint = 560;\r\n\t\tgridData4.grabExcessVerticalSpace = true;\r\n\t\tGridLayout gridLayout3 = new GridLayout();\r\n\t\tgridLayout3.numColumns = 3;\r\n\t\tcompositeGoodsShow = new Composite(compositeGoodsMange, SWT.NONE);\r\n\t\tcompositeGoodsShow.setLayout(gridLayout3);\r\n\t\tcompositeGoodsShow.setLayoutData(gridData4);\r\n\t\tdisplayRoom(compositeGoodsShow);\r\n\t}", "@Override\r\n public void getProduct() {\r\n\r\n InventoryList.add(new Product(\"Prod1\", \"Shirt\", \"Each\", 10.0, LocalDate.of(2021,03,19)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,21)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,29)));\r\n }", "public void inventoryPrint() {\n System.out.println(\"Artifact Name: \" + name);\r\n System.out.println(\"Desc:\" + description);\r\n System.out.println(\"Value: \" + value);\r\n System.out.println(\"Mobility: \" + mobility); \r\n }", "public void showInfomation()\n {\n\t System.out.println(\"\\nSide\"+\"\\n\\tnumber: \"+ super.getNumber() +\"\\n\\tdishName: \" + super.getDishName() + \"\\n\\tmaker: \"+maker+\"\\n\\tprice : \" + super.getPrice()+\"$\");\n }", "public void display() {\r\n String kind;\r\n if (profit == true) {\r\n kind = \"profit\";\r\n }\r\n\r\n else kind = \"non-profit\";\r\n System.out.println(name + \" is a \" + kind + \" organization that has\" + \" \" + revenue + \" dollars in revenue\" );\r\n }", "public void displayPromote(View view) {\n promoteFragment = new AdminPromoteFragment();\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n\n transaction.replace(R.id.atm_fragment_container, promoteFragment);\n transaction.addToBackStack(null);\n\n transaction.commit();\n }" ]
[ "0.55448526", "0.545963", "0.5362055", "0.51870453", "0.5050177", "0.5030021", "0.49932116", "0.49916294", "0.4938753", "0.49357796", "0.492442", "0.4903004", "0.48869", "0.48727047", "0.487213", "0.48436263", "0.48267037", "0.48207638", "0.48200294", "0.48115268", "0.47933292", "0.4781842", "0.4780882", "0.47805288", "0.47795415", "0.47747615", "0.4772851", "0.4752884", "0.4752638", "0.4750503", "0.47410685", "0.4739648", "0.47359484", "0.4726433", "0.47261873", "0.47224325", "0.47143993", "0.47139254", "0.4713822", "0.4712235", "0.4710961", "0.4709118", "0.47084782", "0.47033963", "0.4688327", "0.4684101", "0.4683983", "0.4675111", "0.46742505", "0.46692294", "0.46662146", "0.4661858", "0.46481916", "0.4639022", "0.46369138", "0.4630723", "0.46306592", "0.46295363", "0.4624358", "0.4623678", "0.4620757", "0.46109053", "0.46098647", "0.46069428", "0.46050775", "0.46042344", "0.46035168", "0.46000817", "0.45960283", "0.45922226", "0.4589062", "0.45830014", "0.45821857", "0.45702118", "0.4568558", "0.45668876", "0.45650804", "0.45589477", "0.45570785", "0.45568419", "0.45567724", "0.4553469", "0.4552818", "0.45453912", "0.45388654", "0.45338124", "0.4532981", "0.45324948", "0.4531761", "0.45283917", "0.45259306", "0.4521853", "0.45190492", "0.4515233", "0.45143223", "0.45113266", "0.45056427", "0.45042622", "0.45023996", "0.45007983" ]
0.49753627
8
Cloneable interface lets the compiler know that we intend to implement cloning (so there's compiletime exception check)
public interface Animal extends Cloneable { Animal makeCopy(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Object clone();", "public abstract Object clone() ;", "public final Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException();\n }", "@Override\n public Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException();\n }", "public final Object clone() throws java.lang.CloneNotSupportedException {\n\t\tthrow new java.lang.CloneNotSupportedException();\n\t}", "public Object clone() {\n/* */ try {\n/* 111 */ return super.clone();\n/* */ }\n/* 113 */ catch (CloneNotSupportedException cloneNotSupportedException) {\n/* 114 */ throw new InternalError(cloneNotSupportedException.toString(), cloneNotSupportedException);\n/* */ } \n/* */ }", "@Override\n public Object clone() {\n try {\n return super.clone();\n } catch (CloneNotSupportedException e) {\n throw new AssertionError(e);\n }\n }", "@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\tthrow new CloneNotSupportedException();\n\t}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\tthrow new CloneNotSupportedException();\r\n\t}", "public Object clone() throws CloneNotSupportedException {\r\n\t\tthrow new CloneNotSupportedException();\r\n\t}", "public Object clone() throws CloneNotSupportedException { return super.clone(); }", "public Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException(\"clone() is not supported in \"+this.getClass().getName());\n }", "public Object clone() throws CloneNotSupportedException\n\t{\n\t\tthrow new CloneNotSupportedException();\n\t}", "public Object clone() throws CloneNotSupportedException {\n // return INSTANCE\n throw new CloneNotSupportedException();\n }", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException { // semi-copy\r\n\t\tthrow new CloneNotSupportedException();\r\n\t}", "public interface Copieable<T> extends Cloneable\n{\n\tpublic T clone();\n}", "@Override\n protected Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException(\"Singleton class doesn't support cloning of object.\");\n }", "public Object clone() throws CloneNotSupportedException{\n\t\tthrow (new CloneNotSupportedException());\n\t}", "@Override\n public Object clone() {\n try {\n return super.clone();\n } catch (CloneNotSupportedException e) {\n throw new AssertionError(e);\n }\n }", "@Override\n\tprotected Object clone() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public Object clone();", "public Object clone();", "public Object clone();", "public Object clone();", "public Object clone ()\n\t{\n\t\ttry \n\t\t{\n\t\t\treturn super.clone();\n\t\t}\n\t\tcatch (CloneNotSupportedException e) \n\t\t{\n throw new InternalError(e.toString());\n\t\t}\n\t}", "Object clone();", "Object clone();", "@Override\r\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "public Object clone()\n/* */ {\n/* 835 */ return super.clone();\n/* */ }", "public Object clone() throws CloneNotSupportedException {\n\tthrow new CloneNotSupportedException(\"This is a Singleton Ojbect; Buzz off\");\n }", "public Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "public Object clone()\n {\n Object o = null;\n try\n {\n o = super.clone();\n }\n catch (CloneNotSupportedException e)\n {\n e.printStackTrace();\n }\n return o;\n}", "@Override\n protected Object clone() throws CloneNotSupportedException {\n\n return super.clone();\n }", "public Function clone();", "public Object clone() {\n try {\n return super.clone();\n } catch (Exception exception) {\n throw new InternalError(\"Clone failed\");\n }\n }", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "public abstract Pessoa clone();", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "public Object clone() {\n try {\n return super.clone();\n } catch (CloneNotSupportedException e) {\n /* Cannot happen */\n throw new RuntimeException(e.getMessage(), e);\n }\n }", "public Object clone () {\n\t\t\ttry {\n\t\t\t\treturn super.clone();\n\t\t\t} catch (CloneNotSupportedException e) {\n\t\t\t\tthrow new InternalError(e.toString());\n\t\t\t}\n\t\t}", "public Object clone() {\n/* 176 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public Object clone() throws CloneNotSupportedException{\n return super.clone();\n }", "@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\treturn super.clone();\n\t}", "protected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n public Object clone() {\n return super.clone();\n }", "@Override\r\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\t\r\n\t\treturn super.clone();\r\n\t}", "@Override\n protected Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException();\n // return super.clone(); // OR we can return the already present :: return getInstance();\n }", "public boolean isCloneSupported() {\r\n return true;\r\n }", "@Override\n public PhoneNumberCloneable clone() {\n try {\n return (PhoneNumberCloneable) super.clone();\n } catch (CloneNotSupportedException e) {\n throw new AssertionError(); // Can't happen}\n }\n }", "interface Person {\n Person clone();\n}", "public abstract Shape clone() throws CloneNotSupportedException;", "@Override\n protected Control clone() {\n \n try {\n return (Control)super.clone();\n } catch (CloneNotSupportedException ex) {\n // Never happens, once Control is implementing Cloneable. \n throw new RuntimeException(ex);\n }\n }", "@Override\n public Object clone() throws CloneNotSupportedException {\n\t return new TypeCloner(this, super.clone()).invoke();\n\t}", "public abstract INodo copy();", "@Override\n\tpublic Object clone() \n\t{\n\t\ttry{\n\t\t// Note all state is primitive so no need to deep copy reference types.\n\t\treturn (Tile) super.clone();\n\t\t} catch (CloneNotSupportedException e) \n\t\t{\n\t\t\t// We should not ever be here as we implement Cloneable.\n\t\t\t// It is better to deal with the exception here rather than letting\n\t\t\t// clone throw it as we would have to catch it in more places then.\n\t\t\treturn null;\n\t\t}\n\t}", "public interface DeepClonerSPI {\n <T> T clone(T objectToClone);\n}", "public Object clone() {\n // No problems cloning here since private variables are immutable\n return super.clone();\n }", "public abstract GameObject clone();", "public Clone() {}", "public Object clone() {\r\n try {\r\n return super.clone();\r\n } catch (CloneNotSupportedException e) {\r\n return null;\r\n }\r\n }", "public Object clone()\n {\n Object o = null;\n try \n { o = super.clone(); } \n catch(CloneNotSupportedException e) \n { System.err.println(\"Erreur dans le clonage de la cellule...\"); }\n return o;\n }", "public Object clone() {\n\t\ttry {\n\t\t\treturn super.clone();\n\t\t}\n\t\tcatch(CloneNotSupportedException exc) {\n\t\t\treturn null;\n\t\t}\n\t}", "public interface Prototype {\n\n Prototype clone();\n}", "@Override\r\n\tprotected A clone() throws CloneNotSupportedException {\r\n\t\tA clone = (A)super.clone();\r\n//\t\tclone.b = new B();\r\n\t\treturn clone;\r\n\t}", "@Override\r\n\tprotected B clone() throws CloneNotSupportedException {\r\n\t\tB clone = (B)super.clone();\r\n//\t\tclone.a = new A();\r\n\t\treturn clone;\r\n\t}", "@Override \n public Score clone()\n {\n try\n { \n return (Score)super.clone();\n }\n catch(CloneNotSupportedException e)\n {\n throw new InternalError();\n }\n }", "@Override\n\tpublic Object clone() {\n\t\treturn null;\n\t}", "public /*@ non_null @*/ Object clone() {\n return this;\n }", "public abstract Piece clone();", "public abstract Piece clone();", "@Override\n public SharedObject clone() {\n SharedObject c;\n try {\n c = (SharedObject)super.clone();\n } catch (CloneNotSupportedException e) {\n // Should never happen.\n throw new ICUCloneNotSupportedException(e);\n }\n c.refCount = new AtomicInteger();\n return c;\n }", "public abstract State clone();", "public Object clone() throws CloneNotSupportedException {\n/* 354 */ SlidingCategoryDataset clone = (SlidingCategoryDataset)super.clone();\n/* 355 */ if (this.underlying instanceof PublicCloneable) {\n/* 356 */ PublicCloneable pc = (PublicCloneable)this.underlying;\n/* 357 */ clone.underlying = (CategoryDataset)pc.clone();\n/* */ } \n/* 359 */ return clone;\n/* */ }", "public interface Copyable<T> {\n\n /**\n * Creates a copy of class as is relevant to the concrete implementation.\n *\n * @return An exact copy of the class\n */\n T copy();\n}", "@Override\n\tpublic Object clone()\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn new Molecule(((Molecule) super.clone()).getSequence());\n\t\t}\n\t\tcatch (CloneNotSupportedException e)\n\t\t{\n\t\t\tthrow new RuntimeException();\n\t\t}\n\t}", "public Object clone() throws CloneNotSupportedException {\r\n super.clone();\r\n return new JMSCacheReplicator(replicatePuts, replicateUpdates,\r\n replicateUpdatesViaCopy, replicateRemovals, replicateAsync, asynchronousReplicationInterval);\r\n }", "@Override\n\tpublic YoungO clone() throws CloneNotSupportedException {\n\t\tYoungO toReturn = (YoungO) super.clone();\n\t\treturn toReturn;\n\t}", "public boolean isCloneable()\n {\n return leftOperand.isCloneable() && rightOperand.isCloneable();\n }", "public Object clone() {\r\n // Implementation notes: Since all state of an XMLOutputter is\r\n // embodied in simple private instance variables, Object.clone\r\n // can be used. Note that since Object.clone is totally\r\n // broken, we must catch an exception that will never be\r\n // thrown.\r\n try {\r\n return super.clone();\r\n }\r\n catch (java.lang.CloneNotSupportedException e) {\r\n // even though this should never ever happen, it's still\r\n // possible to fool Java into throwing a\r\n // CloneNotSupportedException. If that happens, we\r\n // shouldn't swallow it.\r\n throw new RuntimeException(e.toString());\r\n }\r\n }", "public Object clone() {\n try {\n // clones itself\n return super.clone();\n } catch (Exception exception) {\n ;\n }\n return null;\n }", "public Object clone() throws CloneNotSupportedException {\n\t\tColeccionGenerica clonado= null;\n\t\tclonado= (ColeccionGenerica) super.clone();\n\t\tIterator<Integer> keys= clonado.coleccion.keySet().iterator();\n\t\tIterator<T> values= clonado.coleccion.values().iterator();\n\t\tclonado.coleccion.clear();\n\t\twhile (keys.hasNext() && values.hasNext()) {\n\t\t\tclonado.coleccion.put(keys.next(), values.next());\n\t\t}\n\t\treturn clonado;\n\t}", "interface ProtoType<T> extends Cloneable {\n public T clone() throws CloneNotSupportedException;\n}", "public List<E> clone();", "public Object clone() {\n \ttry {\n \tMyClass1 result = (MyClass1) super.clone();\n \tresult.Some2Ob = (Some2)Some2Ob.clone(); ///IMPORTANT: Some2 clone method called for deep copy without calling this Some2.x will be = 12\n \t\n \treturn result;\n \t} catch (CloneNotSupportedException e) {\n \treturn null; \n \t}\n\t}", "@Override\n public Drop clone() {\n try {\n return (Drop) super.clone();\n } catch (CloneNotSupportedException ex) {\n // Never.\n return null;\n }\n }", "@Override\n\tpublic Object clone() throws CloneNotSupportedException{\n\t\tShape cloned = this;\n\t\tcloned.setPosition(this.getPosition());\n\t\tcloned.setProperties(this.getProperties());\n\t\tcloned.setColor(this.getColor());\n\t\tcloned.setFillColor(this.getFillColor());\n\t\treturn cloned;\n\t}", "Prototype makeCopy();" ]
[ "0.8091108", "0.8020134", "0.8011099", "0.79737216", "0.7912363", "0.78923076", "0.78554314", "0.7849658", "0.784448", "0.7838096", "0.7819632", "0.78168786", "0.77982074", "0.77898276", "0.77860755", "0.775422", "0.77317685", "0.77309006", "0.7713786", "0.76953214", "0.76111126", "0.76111126", "0.76111126", "0.76111126", "0.760809", "0.7510476", "0.7510476", "0.7426596", "0.7415702", "0.7415702", "0.7415702", "0.74078685", "0.7398505", "0.7394436", "0.73883015", "0.7383455", "0.73741233", "0.73656696", "0.7361512", "0.7361512", "0.7361512", "0.73558223", "0.73397195", "0.73397195", "0.73397195", "0.73397195", "0.73397195", "0.73397195", "0.73397195", "0.73397195", "0.73397195", "0.73368764", "0.73318595", "0.7329263", "0.7314425", "0.7300997", "0.7299818", "0.72881407", "0.7265142", "0.7249878", "0.7212516", "0.72018886", "0.7177425", "0.7118311", "0.7108978", "0.70999855", "0.70996994", "0.7092856", "0.70796925", "0.7066925", "0.7047135", "0.7045068", "0.70225734", "0.70199436", "0.69801646", "0.6966155", "0.6949017", "0.6934423", "0.6919916", "0.69061124", "0.68908805", "0.6878538", "0.6878538", "0.68694204", "0.6853617", "0.68495893", "0.6845363", "0.6839959", "0.6839409", "0.68145376", "0.67378014", "0.6710464", "0.6706885", "0.6700154", "0.6695504", "0.6683278", "0.6658931", "0.6653713", "0.6631594", "0.66192955" ]
0.7056832
70
Start a listener for completed spouts
@Override public void run() { TopologyKiller killer = new TopologyKiller(); killer.start(); // create the joiner bolt BoltDeclarer declarer = builder.setBolt("join", new JoinerBolt(), joinerParallelism); // connect all the spouts to the joiner bolt using fieldGrouping for (String spout: spouts) declarer = declarer.fieldsGrouping(spout, new Fields("key")); // create the output bolt with globalGrouping builder.setBolt("output", new ZmqBolt(spouts.size(), replySocketString, killerSocketString), 1) .globalGrouping("join"); Config conf = new Config(); conf.setNumWorkers(numWorkers); conf.put(Config.STORM_LOCAL_MODE_ZMQ, false); conf.put(Config.TOPOLOGY_MAX_SPOUT_PENDING, 100); conf.put(Config.TOPOLOGY_MAX_TASK_PARALLELISM, 20); try { logger.info("Starting topology"); cluster.submitTopology(topologyName, conf, builder.createTopology()); } catch (Exception e) { e.printStackTrace(); kill(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addFinishedListener(Consumer<List<S>> listener) {\n finishedListeners.add(listener);\n }", "void onListeningFinished();", "public interface GetUnfinishedSummaryListener {\n void onTaskEnded(PartyDetails data);\n}", "private void notifyTtsCompleted()\n {\n //if(resources.getTtsCallbackUrl().compareTo())\n RequestDispatcher dispatcher = new RequestDispatcher(this);\n dispatcher.execute(resources.getTtsCallbackUrl(), \"\", \"\", \"true\");\n Intent i = new Intent(\"ttsCompleted-event\");\n LocalBroadcastManager.getInstance(myContext).sendBroadcast(i);\n }", "protected void onBSStop() {\n isFinishing = true;\n mCalled = true;\n }", "void onSuccessfulStarted();", "public void listener() {\n\t\tif (this.command.getMode().equals(Command.MODE_TRACK)) {\n\t\t\tFilterQuery filterQuery = new FilterQuery();\n\t\t\tfilterQuery.track(this.command.getKeywords().toArray(new String[this.command.getKeywords().size()]));\n\t\t\ttwitterStream.addListener(myListener);\n\t\t\ttwitterStream.filter(filterQuery);\n\t\t} else if (this.command.getMode().equals(Command.MODE_SAMPLE)) {\n\t\t\ttwitterStream.addListener(myListener);\n\t\t\ttwitterStream.sample();\n\t\t} else {\n\t\t\t// do search\n\t\t}\n\t}", "@Override\n public void onCompleted() {\n System.out.println(\n \"\\n\\tServer is finished!\"\n );\n\n this.latch.countDown();\n }", "@Override\n\t\t\t\tpublic void onAddSuccess() {\n\t\t\t\t\tif (addListener != null) {\n\t\t\t\t\t\taddListener.onAddSuccess();\n\t\t\t\t\t}\n\t\t\t\t}", "@Override\n public void onCompleted() {\n System.out.println(\"Server has completed sending us response\");\n // on completed will be called right after onNext\n // Whenever server is done sending data latch is going down by 1\n latch.countDown();\n }", "public void onEnded(long endedTime);", "public void launchCompleteSchedule(View view) {\n\t\tIntent intent = new Intent(this, SessionDBActivity.class);\n\t\tintent.putExtra(android.content.Intent.EXTRA_TEXT, SessionDBActivity.ALL_SESSIONS);\n\t\tstartActivity(intent);\n\t}", "public void invokeCompletionListener() {\n if (completionListener == null) return;\n completionListener.onCompletion( player );\n }", "public interface Listener {\n void onFetchFinished(List<Trailer> trailers);\n }", "void addCompletedEventListener(IGameStateListener listener);", "public void onFinished();", "@Override\n\tpublic void onComplete() {\n\t\tSystem.out.println(\"Its Done!!!\");\n\t}", "public void addFinishedListener(ActionListener listener)\n {\n VerifyButton.addActionListener(listener); \n }", "public void onStarted(long startedTime);", "@Override\n\t\t\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\t\t\tif (onFinishListen!=null) {\n\t\t\t\t\t\t\tonFinishListen.onFinish();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public interface FindOrdersListener {\n void onFindOrdersTaskComplete(FindOrdersREST findOrdersREST);\n void onFindOrderLinesTaskComplete(long commande_ref, long commande_id, FindOrderLinesREST findOrderLinesREST);\n}", "@Override\n public void onFinish() {\n Log.d(\"timer\", \"finished one timer cycle\");\n new DownloadDataTask().execute(USGS_URL);\n try {\n // get the most recent earthquake\n mostRecentEarthquake = getFirstEarthquakeFromJson();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n // notify user of earthquake\n Intent i = new Intent(getBaseContext(), EarthquakeWatchService.class);\n i.putExtra(\"earthquake\", mostRecentEarthquake);\n startService(i);\n createAndStartTimer();\n }", "@Override\n public void onComplete() {\n System.out.println (\"Suree onComplete\" );\n }", "@Override\n\t\tpublic void onComplete() {\n\t\t\tSystem.out.println(\"onComplete\");\n\t\t}", "@Override\n\tpublic void informEnd(List<String> winners) {\n\t}", "@Override\n public void outputCompletedNotification(String scriptId, OutputStats outputStats) { }", "public void completed(final Status status);", "void onListeningStarted();", "@Override\n\tpublic void eventFinished() {\n\t\tstatus=EventCompleted;\n\t}", "public synchronized void onRequestSucceeded(long startTimeInNanos) {\r\n\t\tlong micros = (System.nanoTime() - startTimeInNanos) / 1000;\r\n\t\tallRequestsTracker.onRequestSucceeded(micros);\r\n\t\trecentRequestsTracker.onRequestSucceeded(micros);\r\n\t\tmeter.mark();\r\n\t}", "private void onMovementComplete() {\n Callable<Boolean> movementCompleted;\n Consumer<Method> movementFailed;\n\n synchronized (_mutex) {\n movementCompleted = _movementCompleted;\n movementFailed = _movementFailed;\n\n _movementCompleted = null;\n _movementFailed = null;\n }\n\n boolean bMovementCompleted = false;\n if (movementCompleted != null) {\n try {\n bMovementCompleted = movementCompleted.call();\n } catch (Exception e) {\n _log.error(\"An error occurred while completing a movement.\", e);\n }\n }\n\n if (!bMovementCompleted && movementFailed != null) {\n movementFailed.accept(null);\n }\n }", "public interface DoneListener {\n public void done();\n}", "public void completeJob(View v) {\n // FIXME save that it is completed somehow\n Log.w(\"MA\", \"completeJob\");\n setContentView(R.layout.activity_sitter_page);\n allJobsList();\n }", "void onStarted();", "public void onEndListener(int type) {\n if (this.checkListener != null) {\n this.checkListener.onCheckUserEnd(type);\n }\n }", "void onComplete(String status);", "public void onCompletion();", "public void onCompleted() {\n\t\t\n\t\t }", "@Override\n\tpublic void onSubscribeLobbyDone(LobbyEvent arg0) {\n\t\tMain.log(getClass(), \"onSubscribeLobbyDone\");\n\t}", "public void onCompletion(RecordSend send);", "public void finishSportsActivity() {\n Log.v(TAG,\"finishSportsActivity\");\n mRTS.getAndroidLocationListener().requestGps(false, TAG);\n\n if (mStatus == ActivityUtil.SPORTS_ACTIVITY_STATUS_NO_ACTIVITY) {\n return;\n // Doesnt' make sense ot finish something that has not\n // started\n }\n mStatus = ActivityUtil.SPORTS_ACTIVITY_STATUS_NO_ACTIVITY;\n stamp();\n hideNotification();\n mRTS.getReconEventHandler()\n .writeSportsActivityEvent(ReconEventHandler\n .SPORTS_ACTIVITY_FINISH_EVENT,\n mType);\n mRTS.updatePostActivityValues();\n notifyAndSaveTempStates();\n }", "@Override\n public void onCompleted() {\n logger.info(\"Forwarding for query {} complete.\", queryId);\n }", "public void onServerSucceeded() {\n if (offline) {\n statusObserver.onServerCameBack();\n offline = false;\n }\n }", "protected abstract void startListener();", "public void onFinish() {\n timer.setText(\"Time's Up!\");\n Intent timesUp = new Intent(QuizActivity.this, QuizComplete.class);\n timesUp.putExtra(TRANSFER_SCORE, mScore);\n startActivity(timesUp);\n }", "private void closeListener(Status newStatus, Metadata trailers) {\n checkState(listener != null, \"stream not started\");\n if (!listenerClosed) {\n listenerClosed = true;\n closeDeframer();\n listener.closed(newStatus, trailers);\n }\n }", "public void onDrainComplete();", "void onPlaybackStarted(Consumer<Void> listener) {\n playbackStartedListeners.add(listener);\n }", "@Override public void onStatus(Status status) {\n\t\t\tif (Calendar.getInstance().getTime().before( shutdownTime.getTime() )) {\r\n\t\t\t\ttweets.add(status);\t\t\r\n\t\t\t} else {\r\n\t\t\t\tLOGGER.log(Level.FINE, \"Shutting down Twitter stream..\");\r\n\t\t\t\tclearLists();\r\n\t\t\t\tshutdown = true;\r\n\t\t\t\ttwitterStream.shutdown();\r\n\t\t\t}\r\n\t\t}", "void onCompleteSchedule(State state, Bound bound);", "public void addCompletionListener(Runnable listener) {\n\t\tcompletionListeners.add(listener);\n\t\tif(isDone() || isCancelled()) {\n\t\t\tlistener.run();\n\t\t}\t\t\n\t}", "public interface OnFinishedListener<T> {\n\n void onFinished(T result);\n}", "public void FinishedTasks(View view) {\n Intent i = new Intent(this, FinishedTaskList.class);\n startActivity(i);\n }", "@Override public void onStatus(Status status) {\n\t\t\tif (Calendar.getInstance().getTime().before( shutdownTime.getTime() )) {\r\n\t\t\t\ttweets.add(status);\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tLOGGER.log(Level.FINE, \"Shutting down Twitter stream..\");\r\n\t\t\t\tclearLists();\r\n\t\t\t\tshutdown = true;\r\n\t\t\t\ttwitterStream.shutdown();\r\n\t\t\t}\r\n\t\t}", "@EventListener\n public void scriptResultWriting(ScriptLaunched scriptLaunched){\n Long id = scriptLaunched.getEventData();\n logger.info(\"script with id: \" + id + \" launched\");\n // run task for script with id\n }", "@Override\n public void run() {\n DownloadListener.getListener().execute();\n }", "public void onFinish() {\n\n Log.i(\"Done!\", \"Coundown Timer Finished\");\n\n }", "public void setSendedCallback(SendedCallback sendedCallback) {\n this.sendedCallback = sendedCallback;\n }", "public void announceWinners() {\n\t\tsynchronized (blockedAnnouncer) {\n\t\t\tif (resultsNotInAnnouncer(blockedAnnouncer)) {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tblockedAnnouncer.wait();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}// while\n\t\t\t}// if\n\t\t}// synch\n\t\twhile (waitingForResults.size() > 0) {\n\t\t\tsynchronized (waitingForResults.elementAt(0)) {\n\t\t\t\twaitingForResults.elementAt(0).notify();\n\t\t\t\twaitingForResults.removeElementAt(0);\n\t\t\t}// sncnh\n\t\t}// while\n\t}", "interface OnResultListener {\n void onFinished();\n }", "@Override\n public void launchCompletedNotification(String scriptId, int numJobsSucceeded) {\n\n if (workflowVersion == null) {\n log.warn(\"scriptFingerprint not set for this script - not saving stats.\" );\n } else {\n Workflow workflow = new Workflow(scriptId, workflowVersion, jobs);\n\n try {\n outputStatsData(workflow);\n } catch (IOException e) {\n log.error(\"Exception outputting workflow\", e);\n }\n }\n }", "public void startRecording() {\n if (isAlreadyLaunchedRecorder) {\n return;\n } else {\n isAlreadyLaunchedRecorder = true;\n }\n\n // Try to get exclusive audio focus\n int audioFocusRequestResult = audioManager.requestAudioFocus(audioFocusChangeListener, AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE);\n if (audioFocusRequestResult == AudioManager.AUDIOFOCUS_REQUEST_FAILED) {\n Log.d(TAG, \"Unable to get audio focus\");\n }\n\n playStartListeningSound();\n\n scheduler.schedule(new Runnable() {\n public void run() {\n try {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n countdownTimer.setMax(progressMax);\n animation.setDuration(maxRecordingTimeInSeconds * 1000);\n animation.start();\n }\n });\n\n Future<StmAudioRecorderResult> futureRecorderResult = executor.submit(new RecordShoutCallable());\n StmAudioRecorderResult recordingResult = futureRecorderResult.get();\n final Integer shoutRecordingLengthInSeconds = recordingResult.getRecordingLengthInSeconds();\n\n if (recordingResult.isCancelled() || !recordingResult.didUserSpeak()) {\n playCancelListeningSound();\n } else {\n playFinishListeningSound();\n\n Future<Shout> futureShout = executor.submit(new SendShoutCallable(recordingResult.getAudioBuffer()));\n final Shout newShout = futureShout.get();\n newShout.setRecordingLengthInSeconds(shoutRecordingLengthInSeconds);\n\n playShoutSentSound();\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n StmCallback<Shout> stmCallback = stmService.getShoutCreationCallback();\n if (stmCallback != null) {\n stmCallback.onResponse(newShout);\n }\n }\n });\n }\n\n // Sleeping is necessary to prevent the onDestroy being called to early\n // which results in the sent sound not being played\n Thread.sleep(700);\n\n } catch (InterruptedException ex) {\n Log.w(TAG, \"Recording and/or sending shout was interrupted\", ex);\n } catch (ExecutionException ex) {\n Log.e(TAG, \"An error occurred during the recording or sending of a new shout\", ex);\n } finally {\n // Release the audio focus\n if (audioManager != null) {\n audioManager.abandonAudioFocus(audioFocusChangeListener);\n }\n\n // Close the overlay\n Intent intent = new Intent();\n intent.putExtra(ACTIVITY_RESULT, StmService.SUCCESS);\n setResult(RESULT_OK, intent);\n finish();\n }\n }\n }, 300, TimeUnit.MILLISECONDS);\n }", "DoneEvent(double time, Customer cust, Server sv) {\n this.time = time;\n this.cust = cust;\n this.sv = sv;\n }", "@Override\r\n\t\t\tpublic void onFinish() {\n\t\t\t\tLog.i(tag, \"Locatie bepalen..\");\r\n\t\t\t\tlm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 5000,\r\n\t\t\t\t\t\tminDistanceMeters, locationListener);\r\n\t\t\t}", "public void addUsersAtVenueListener(String venueName, double latitude, double longitude, double radius) {\r\n\tStatusListener listener = new StatusListener() { \r\n\t\t@Override public void onStatus(Status status) {\r\n\t\t\t// If the shutdown time is after the current time, record the tweet, otherwise close the connection\r\n\t\t\tif (Calendar.getInstance().getTime().before( shutdownTime.getTime() )) {\r\n\t\t\t\ttweets.add(status);\t\t\r\n\t\t\t} else {\r\n\t\t\t\tLOGGER.log(Level.FINE, \"Shutting down Twitter stream..\");\r\n\t\t\t\tclearLists();\r\n\t\t\t\tshutdown = true;\r\n\t\t\t\ttwitterStream.shutdown();\r\n\t\t\t}\r\n\t\t} \r\n\t\t@Override public void onDeletionNotice(StatusDeletionNotice statusDeletionNotice) {} \r\n\t\t@Override public void onTrackLimitationNotice(int numberOfLimitedStatuses) {} \r\n\t\t@Override public void onScrubGeo(long userId, long upToStatusId) {} \r\n\t\t@Override public void onStallWarning(StallWarning warning) {}\r\n\t\t@Override public void onException(Exception ex) { ex.printStackTrace(); }\r\n\t\t};\r\n\t\ttwitterStream.addListener(listener);\r\n\r\n\t\tint count = 0;\r\n\t\tlong[] idToFollow = null; \r\n\t\tString[] stringsToTrack = null;\r\n\t\tdouble[][] locationsToTrack = null;\r\n\t\t\r\n\t\t// If a geolocation is given, calculate the bounding box for that location and use as a filter,\r\n\t\t// otherwise listen for tweets that contain the venue name\r\n\t\tif (!Double.isNaN(latitude) && !Double.isNaN(longitude) && !Double.isNaN(radius)) {\r\n\t\t\t// Calculate geo bounding box from lat/lon coordinates and radius\r\n\t\t\tdouble oneKmDeg = 90/10001.965729;\r\n\t\t\tdouble radiusAdjustDeg = oneKmDeg*radius;\r\n\t\t\tdouble lat1 = latitude - radiusAdjustDeg;\r\n\t\t\tdouble lon1 = longitude - radiusAdjustDeg;\r\n\t\t\tdouble lat2 = latitude + radiusAdjustDeg;\r\n\t\t\tdouble lon2 = longitude + radiusAdjustDeg;\r\n\t\t\tlocationsToTrack = new double[][]{{lon1, lat1}, {lon2, lat2}};\r\n\t\t} else {\r\n\t\t\tstringsToTrack = new String[]{venueName};\r\n\t\t}\t\t\t\t\r\n\t\ttwitterStream.filter(new FilterQuery(count, idToFollow, stringsToTrack, locationsToTrack));\r\n\t}", "public void onComplete() {\n\t\t\tif (mPlayStauts) {\n\t\t\t\tmHandler.sendEmptyMessage(MESSAGE_PLAY_NEXT);\n\n\t\t\t\ttry {\n\t\t\t\t\tdismissNotSupprot();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t// ignore the exception\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "void onComplete(String ticket, String status);", "public void onComplete() {\r\n\r\n }", "public void onFinish() {\n\t\tthis.notRewarded.putAll(Bake_Auxillary.rewardPlayers(projectReminderList, activeQuest.getLoot(bakeInstance.API_LEVEL), activeQuest.getThreshold(), activeQuest.getName()));\n\t\tnewQuest();\n\t}", "public interface OnViewerInfoSubmittedListener {\n void onViewerInfoSubmitted(ArrayList<Viewer> mViewers, boolean completed);\n }", "private void fireOnTweetsReceived(ArrayList<AbstractTweet> arlis) {\n if ( mOnNewTweet != null ){\n mOnNewTweet.onNewTweet(arlis);\n }\n else{\n throw new NullPointerException(\"fireOnTweetsReceived(): WARNING:: we don't have listener registered. Suspicious logic\"); \n }\n }", "public void onCompletion(MediaPlayer mp) {\n mHandler.sendEmptyMessage(TRACK_ENDED);\n }", "public void onConnected() {\n userName = conn.getUsername();\n tellManagers(\"I have arrived.\");\n tellManagers(\"Running {0} version {1} built on {2}\", BOT_RELEASE_NAME, BOT_RELEASE_NUMBER, BOT_RELEASE_DATE);\n command.sendCommand(\"set noautologout 1\");\n command.sendCommand(\"set style 13\");\n command.sendCommand(\"-notify *\");\n Collection<Player> players = tournamentService.findScheduledPlayers();\n for (Player p : players) {\n command.sendCommand(\"+notify {0}\", p);\n }\n conn.addDatagramListener(conn, Datagram.DG_NOTIFY_ARRIVED);\n conn.addDatagramListener(conn, Datagram.DG_NOTIFY_LEFT);\n\n Runnable task = new SafeRunnable() {\n\n @Override\n public void safeRun() {\n onConnectSpamDone();\n }\n };\n //In 2 seconds, call onConnectSpamDone().\n scheduler.schedule(task, 4, TimeUnit.SECONDS);\n System.out.println();\n }", "@Override\n\tpublic void onEvent() {\n\t\tSystem.out.println(\"Performing callback after synchronous task!\");\n\t}", "@Override\r\n\tpublic void finishEvent() {\n\t\tif(!mEventStarted)\r\n\t\t\treturn;\r\n\t\t\r\n\t\tmEventStarted = false;\r\n\t\t\r\n\t\txmlStreamTracerService.postObsel(mURL, mTraceID, mCookie, mRoot.toString(),\r\n\t\t\t\tnew AsyncCallback<String>() {\r\n\t\t\tpublic void onFailure(Throwable caught) {\r\n\t\t\t\t// Show the RPC error message to the user\r\n\t\t\t\tSystem.out.println(\"XMLStreamTracer: Failed to post the event.\");\r\n\t\t\t}\r\n\r\n\t\t\tpublic void onSuccess(String result) {\r\n\t\t\t\tSystem.out.println(\"XMLStreamTracer: Event posted.\");\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tmDocument.removeChild(mRoot);\r\n\t}", "void observerCompleted(@IdRes int spinnerId);", "public void InitListener()\n {\n Intent listener = new Intent(this, SmsListener.class);\n listener.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startService(listener);\n }", "private void onCompletion(MediaPlayer mp) {\n for (AudioEventListener handler : eventHandlerList) {\n handler.onCompletion(mp);\n }\n }", "public interface OnGetPayFinishedListener {\n void OnGetPayError(String message);\n void OnGetPaySuccess(String message);\n}", "@Override\n\t\tpublic void onCompleted() {\n\t\t}", "@Async.Schedule\n public void listen(IgniteRunnable lsnr);", "@Async.Schedule\n public void listen(IgniteInClosure<? super IgniteInternalFuture<R>> lsnr);", "private void notifyShipsPlaced(String userName) {\n if(this.shipsPlacedListenerList == null || this.shipsPlacedListenerList.isEmpty()) return;\n\n // yes - there are - create a thread and inform them\n (new Thread(new Runnable() {\n @Override\n public void run() {\n for(ShipsPlacedListener listener : SchiffeVersenkenImpl.this.shipsPlacedListenerList) {\n listener.shipsPlaced(userName);\n }\n }\n })).start();\n }", "@Override\n\tpublic void streamingServiceStalled(int arg0) {\n\t\t\n\t}", "public synchronized void addCompletionListener(ActionListener l) {\n if (Trace.isTracing(Trace.MASK_APPLICATION))\n {\n Trace.record(Trace.MASK_APPLICATION, BEANNAME, \"addCompletionListener registered\");\n }\n completionListeners.addElement(l); //add listeners\n }", "public void onConnectSpamDone() {\n loggingIn = false;\n }", "public interface OnStudentsListTaskCompleted {\n void onTaskCompleted(ArrayList<Student> strings);\n}", "void onTaskCompleted(T t, boolean succeed) {\n metrics.markCompletion(t, succeed);\n for (CompletableTask.Listener<T> listener : listeners) {\n listener.onComplete(t, succeed);\n }\n }", "@Override\n protected void onPreExecute() {\n this.progressDialog.setMessage(\"Retrieving workouts list...\");\n this.progressDialog.show();\n }", "@Override\n\t\t\tpublic void onCompleted() {\n\t\t\t\tSystem.out.println(\"GreetingsServiceImpl.greetAll All greetings done\");\n\t\t\t\tresponseObserver.onCompleted();\n\t\t\t}", "public void onLoadComplete(){\n\t\tif (listener != null){\n\t\t\thandler.post(new Runnable() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tlistener.onLoadComplete();\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "public void onFinish() {\n updatedTime = 0;\n\n if (seqNumber > 1) {\n if (cycleNumber != 0) {\n if (!didiwork) {\n didiwork = true;\n nextTimer(workTime);\n ActionName = \"Travail\";\n } else {\n didiwork = false;\n cycleNumber --;\n nextTimer(downTime);\n ActionName = \"Repos\";\n }\n } else {\n cycleNumber = initialCycleNumber;\n seqNumber --;\n didiwork = false;\n nextTimer(longDownTime);\n ActionName = \"LongRepos\";\n }\n } else {\n if (cycleNumber != 0) {\n if (!didiwork) {\n didiwork = true;\n nextTimer(workTime);\n ActionName = \"Travail\";\n } else {\n didiwork = false;\n cycleNumber --;\n nextTimer(downTime);\n ActionName = \"Repos\";\n }\n } else {\n ActionName = \"FINIIIIII\";\n }\n }\n shakeItBaby();\n // Mise à jour\n update();\n }", "void onPlaybackPaused(Consumer<Void> listener) {\n playbackPausedListeners.add(listener);\n }", "@Override\n\t public void onDone(String utteranceId)\n\t {\n\t \tLog.d(\"END\", \"FINISHED: \" + utteranceId);\n\t \t\t\tif(DataModel.getInstance().isVoiceActionsEnabled()) {\n\t \t\t\t\tWordActivatorAPI.getInstance().start(); \t\n\t \t\t\t}\n\t }", "void execute(DetailedProgressListener listener);", "public interface CollectPointInfoListener {\n void showCollectPointInfo(CollectionInfoData response);\n void showCollectPointInfoFailed(String errInfo);\n}", "@Override\n\tpublic void onJoinLobbyDone(LobbyEvent arg0) {\n\t\tMain.log(getClass(), \"onJoinLobbyDone\");\n\t}", "@Override\n public void onCompletion(MediaPlayer mp) {\n setViewOnFinish();\n log(\"Playing completed\");\n }", "protected void notifyScanFinished() {\n for (ScanListener l : listeners) l.scanFinished(contextId);\n }", "public interface PlacementRequestListener {\n \n void onRequestComplete(boolean isFound, Placement placement);\n\n void onRequestError(String error);\n}", "public interface Listener {\n \tpublic void notifyDone(LookupTypeQuery q, boolean complete, Type.Promise type);\n }" ]
[ "0.6106959", "0.57224435", "0.5659876", "0.55627507", "0.554189", "0.5505585", "0.5365079", "0.5331657", "0.5320538", "0.52970463", "0.5282498", "0.52821606", "0.5244978", "0.523058", "0.51989275", "0.51772434", "0.51569957", "0.5139239", "0.511906", "0.5109688", "0.5092957", "0.5079477", "0.50762206", "0.50730526", "0.5073039", "0.5057485", "0.5055415", "0.5049544", "0.5044945", "0.5037526", "0.5035294", "0.5026054", "0.5014267", "0.50131625", "0.5005051", "0.50047827", "0.4991832", "0.49839538", "0.49774128", "0.49742094", "0.49706948", "0.4962037", "0.49564084", "0.49548098", "0.49542132", "0.49417937", "0.49403936", "0.49389637", "0.49388698", "0.4937027", "0.49323294", "0.49269167", "0.49260285", "0.4917874", "0.49159038", "0.49140975", "0.4910336", "0.49079323", "0.4900613", "0.48956972", "0.48918784", "0.48913997", "0.48911792", "0.48771483", "0.48715526", "0.4860482", "0.4854856", "0.48467726", "0.48434475", "0.48422644", "0.48406792", "0.4828337", "0.48270693", "0.48264253", "0.4821463", "0.48198166", "0.4804308", "0.48018378", "0.48002422", "0.47883576", "0.47778583", "0.47741628", "0.47726992", "0.47724986", "0.47692195", "0.47686166", "0.47671524", "0.4759279", "0.47569436", "0.4755441", "0.4754109", "0.47531933", "0.47429106", "0.4742499", "0.4739209", "0.47374028", "0.4736543", "0.47359735", "0.47285518", "0.47245127", "0.47241563" ]
0.0
-1
Read an item stack in from an NBT tag. Returns null if no item exists.
public static ItemStack readItem(CompoundTag tag) { BlockDataManager blockDataManager = ((GlowServer) Bukkit.getServer()).getBlockDataManager(); final Material[] material = {null}; if ((!tag.readString("id", id -> material[0] = ItemIds.getItem(id)) && !tag.readShort("id", id -> material[0] = blockDataManager.convertToBlockData(id).getMaterial())) || material[0] == null || material[0] == Material.AIR) { return null; } final byte[] count = {0}; tag.readByte("Count", x -> count[0] = x); if (count[0] == 0) { return null; } final short[] damage = {0}; tag.readShort("Damage", x -> damage[0] = x); ItemStack stack = new ItemStack(material[0], count[0], damage[0]); // This is slightly different than what tag.readItem would do, since we specify the // material separately. tag.readCompound("tag", subtag -> stack.setItemMeta(GlowItemFactory.instance().readNbt(material[0], subtag))); return stack; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readInventoryFromNBT(CompoundNBT tag) {\n ListNBT nbttaglist = tag.getList(TAG_ITEMS, NBT.TAG_COMPOUND);\n\n int limit = this.getInventoryStackLimit();\n ItemStack stack;\n for (int i = 0; i < nbttaglist.size(); ++i) {\n CompoundNBT itemTag = nbttaglist.getCompound(i);\n int slot = itemTag.getByte(TAG_SLOT) & 255;\n if (slot < this.inventory.size()) {\n stack = ItemStack.read(itemTag);\n if (!stack.isEmpty() && stack.getCount() > limit) {\n stack.setCount(limit);\n }\n this.inventory.set(slot, stack);\n }\n }\n }", "@Override\n public void readFromNBT(NBTTagCompound nbt)\n {\n super.readFromNBT(nbt);\n pokedexNb = nbt.getInteger(\"pokedexNb\");\n time = nbt.getInteger(\"time\");\n NBTBase temp = nbt.getTag(\"Inventory\");\n if (temp instanceof NBTTagList)\n {\n NBTTagList tagList = (NBTTagList) temp;\n for (int i = 0; i < tagList.tagCount(); i++)\n {\n NBTTagCompound tag = tagList.getCompoundTagAt(i);\n byte slot = tag.getByte(\"Slot\");\n\n if (slot >= 0 && slot < inventory.length)\n {\n inventory[slot] = ItemStack.loadItemStackFromNBT(tag);\n }\n }\n }\n }", "protected void readEntityFromNBT(NBTTagCompound paramfn)\r\n/* 132: */ {\r\n/* 133:155 */ super.readEntityFromNBT(paramfn);\r\n/* 134: */ \r\n/* 135:157 */ fv localfv = paramfn.c(\"Items\", 10);\r\n/* 136:158 */ this.a = new ItemStack[getSize()];\r\n/* 137:159 */ for (int i = 0; i < localfv.c(); i++)\r\n/* 138: */ {\r\n/* 139:160 */ NBTTagCompound localfn = localfv.b(i);\r\n/* 140:161 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 141:162 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 142:163 */ this.a[j] = ItemStack.loadItemStackFromNBT(localfn);\r\n/* 143: */ }\r\n/* 144: */ }\r\n/* 145: */ }", "ItemStack getItem();", "ItemStack createItemStack(CompoundTag tag);", "public void readFromNBT(NBTTagCompound par1NBTTagCompound);", "public void readFromNBT(NBTTagCompound par1NBTTagCompound)\n {\n super.readFromNBT(par1NBTTagCompound);\n NBTTagList var2 = par1NBTTagCompound.getTagList(\"Items\");\n this.furnaceItemStacks = new ItemStack[this.getSizeInventory()];\n\n for (int var3 = 0; var3 < var2.tagCount(); ++var3)\n {\n NBTTagCompound var4 = (NBTTagCompound)var2.tagAt(var3);\n byte var5 = var4.getByte(\"Slot\");\n\n if (var5 >= 0 && var5 < this.furnaceItemStacks.length)\n {\n this.furnaceItemStacks[var5] = ItemStack.loadItemStackFromNBT(var4);\n }\n }\n\n this.fuel = par1NBTTagCompound.getShort(\"Fuel\");\n this.furnaceCookTime = par1NBTTagCompound.getShort(\"CookTime\");\n this.direction = par1NBTTagCompound.getShort(\"Direction\");\n this.furnaceTimeBase = par1NBTTagCompound.getShort(\"TimeBase\");\n this.maxFuel = par1NBTTagCompound.getShort(\"MaxFuel\");\n sync();\n }", "public static ItemStack consumeStack (ItemStack stack) {\n \n if (stack.getCount() == 1) {\n \n if (stack.getItem().hasContainerItem(stack))\n return stack.getItem().getContainerItem(stack);\n \n else\n return null;\n }\n \n else {\n \n stack.splitStack(1);\n return stack;\n }\n }", "Optional<ItemStack> getItemStack();", "public ItemStack getItemStack() {\n\t\treturn this.itemStack;\n\t}", "public void readEntityFromNBT(NBTTagCompound tagCompund) {}", "public Item pop() throws EmptyStackException{\n return (Item) stack.pop();\n\n }", "public Item peek() throws EmptyStackException{\n return (Item) stack.peek();\n\n }", "public static ItemStack consumeItem(ItemStack stack)\n\t{\n\t\treturn consumeItem(stack, 1);\n\t}", "public ItemStack getItemStack(int index) {\n return this.ITEMS.get(index);\n }", "@Override\n\tprotected void readEntityFromNBT(NBTTagCompound tag) {\n\t\tthis.fuse = tag.getByte(\"Fuse\");\n\t\tthis.variant = tag.getByte(\"Variant\");\n\t}", "StackType getFirstItem();", "@SubL(source = \"cycl/stacks.lisp\", position = 3462) \n public static final SubLObject stack_peek(SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n if ((NIL == stack_empty_p(stack))) {\n {\n SubLObject elements = stack_struc_elements(stack);\n SubLObject item = elements.first();\n return item;\n }\n }\n return NIL;\n }", "ItemStack getItemstackWithMaterial(Material material);", "public Item peek(){\n\t\tif(isEmpty()){\r\n\t\t\tthrow new NoSuchElementException(\"Stack Underflow\"); // if stack is empty , ,t throws an exception\r\n\t\t}\r\n\t\treturn first.item;\r\n\t}", "public void readEntityFromNBT(NBTTagCompound tagCompund) {\n/* 182 */ this.fireworkAge = tagCompund.getInteger(\"Life\");\n/* 183 */ this.lifetime = tagCompund.getInteger(\"LifeTime\");\n/* 184 */ NBTTagCompound var2 = tagCompund.getCompoundTag(\"FireworksItem\");\n/* */ \n/* 186 */ if (var2 != null) {\n/* */ \n/* 188 */ ItemStack var3 = ItemStack.loadItemStackFromNBT(var2);\n/* */ \n/* 190 */ if (var3 != null)\n/* */ {\n/* 192 */ this.dataWatcher.updateObject(8, var3);\n/* */ }\n/* */ } \n/* */ }", "public ItemStack getItem() {\r\n\t\treturn item;\r\n\t}", "public ItemStack getItem() {\n return this.item;\n }", "public void readEntityFromNBT(NBTTagCompound tagCompund)\n {\n super.readEntityFromNBT(tagCompund);\n\n if (tagCompund.hasKey(\"Potion\", 10))\n {\n this.potion = ItemStack.loadItemStackFromNBT(tagCompund.getCompoundTag(\"Potion\"));\n }\n else\n {\n this.setPotionDamage(tagCompund.getInteger(\"potionValue\"));\n }\n\n if (this.potion == null)\n {\n this.setDead();\n }\n }", "public Object pop( )\n {\n Object item = null;\n\n try\n {\n if ( this.top == null)\n {\n throw new Exception( );\n }\n\n item = this.top.data;\n this.top = this.top.next;\n \n this.count--;\n }\n catch (Exception e)\n {\n System.out.println( \" Exception: attempt to pop an empty stack\" );\n }\n\n return item;\n }", "@Override\n public void readFromNBT(NBTTagCompound tag) {\n super.readFromNBT(tag);\n if(tag.hasKey(Names.NBT.material) && tag.hasKey(Names.NBT.materialMeta)) {\n this.materialName = tag.getString(Names.NBT.material);\n this.materialMeta = tag.getInteger(Names.NBT.materialMeta);\n }\n }", "public ItemStack getStackInSlotOnClosing(int p_70304_1_)\n {\n if (this.inventoryContents[p_70304_1_] != null)\n {\n ItemStack itemstack = this.inventoryContents[p_70304_1_];\n this.inventoryContents[p_70304_1_] = null;\n return itemstack;\n } else\n {\n return null;\n }\n }", "public ItemStack getStackInSlot(int p_70301_1_)\n {\n return p_70301_1_ >= 0 && p_70301_1_ < this.inventoryContents.length ? this.inventoryContents[p_70301_1_] : null;\n }", "default ItemStack getStack(int slot) {\n\t\treturn this.getContents().getOrDefault(slot, ItemStack.EMPTY);\n\t}", "default void read(ItemInventoryComponent target, CompoundTag tag, Optional<String> subtag, Optional<Range<Integer>> range) {\n\t\tif (tag == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tTag rawTag;\n\n\t\tif (subtag.isPresent()) {\n\t\t\trawTag = tag.get(subtag.get());\n\t\t} else {\n\t\t\trawTag = tag;\n\t\t}\n\n\t\tif (!(rawTag instanceof CompoundTag)) {\n\t\t\tAstromineCommon.LOGGER.log(Level.ERROR, \"Inventory contents failed to be read: \" + rawTag.getClass().getName() + \" is not instance of \" + CompoundTag.class.getName() + \"!\");\n\t\t\treturn;\n\t\t}\n\n\t\tCompoundTag compoundTag = (CompoundTag) rawTag;\n\n\t\tif (!compoundTag.contains(\"size\")) {\n\t\t\tAstromineCommon.LOGGER.log(Level.ERROR, \"Inventory contents failed to be read: \" + CompoundTag.class.getName() + \" does not contain 'size' value! (\" + getClass().getName() + \")\");\n\t\t\treturn;\n\t\t}\n\n\t\tint size = compoundTag.getInt(\"size\");\n\n\t\tif (size == 0) {\n\t\t\tAstromineCommon.LOGGER.log(Level.WARN, \"Inventory contents size successfully read, but with size of zero. This may indicate a non-integer 'size' value! (\" + getClass().getName() + \")\");\n\t\t}\n\n\t\tif (!compoundTag.contains(\"stacks\")) {\n\t\t\tAstromineCommon.LOGGER.log(Level.ERROR, \"Inventory contents failed to be read: \" + CompoundTag.class.getName() + \" does not contain 'stacks' subtag!\");\n\t\t\treturn;\n\t\t}\n\n\t\tTag rawStacksTag = compoundTag.get(\"stacks\");\n\n\t\tif (!(rawStacksTag instanceof CompoundTag)) {\n\t\t\tAstromineCommon.LOGGER.log(Level.ERROR, \"Inventory contents failed to be read: \" + rawStacksTag.getClass().getName() + \" is not instance of \" + CompoundTag.class.getName() + \"!\");\n\t\t\treturn;\n\t\t}\n\n\t\tCompoundTag stacksTag = (CompoundTag) rawStacksTag;\n\n\t\tint minimum = range.isPresent() ? range.get().getMinimum() : 0;\n\t\tint maximum = range.isPresent() ? range.get().getMaximum() : target.getItemSize();\n\n\t\tif (size < maximum) {\n\t\t\tAstromineCommon.LOGGER.log(Level.WARN, \"Inventory size from tag smaller than specified maximum: will continue reading!\");\n\t\t\tmaximum = size;\n\t\t}\n\n\t\tif (target.getItemSize() < maximum) {\n\t\t\tAstromineCommon.LOGGER.log(Level.WARN, \"Inventory size from target smaller than specified maximum: will continue reading!\");\n\t\t\tmaximum = target.getItemSize();\n\t\t}\n\n\t\tfor (int position = minimum; position < maximum; ++position) {\n\t\t\tif (stacksTag.contains(String.valueOf(position))) {\n\t\t\t\tTag rawStackTag = stacksTag.get(String.valueOf(position));\n\n\t\t\t\tif (!(rawStackTag instanceof CompoundTag)) {\n\t\t\t\t\tAstromineCommon.LOGGER.log(Level.ERROR, \"Inventory stack skipped: stored tag not instance of \" + CompoundTag.class.getName() + \"!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tCompoundTag stackTag = (CompoundTag) rawStackTag;\n\n\t\t\t\tItemStack stack = ItemStack.fromTag(stackTag);\n\n\t\t\t\tif (target.getItemSize() >= position) {\n\t\t\t\t\ttarget.getContents().put(position, stack);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdispatchConsumers();\n\t}", "@Override\n public void load(NBTTagCompound nbt)\n {\n\n }", "public ItemStack getStackInSlot(int par1)\n {\n return this.furnaceItemStacks[par1];\n }", "public ItemStack getItemInHand ( ) {\n\t\tPlayer handle = handle ( );\n\t\t\n\t\tif ( handle != null ) {\n\t\t\ttry {\n\t\t\t\treturn ( ItemStack ) safeGetMethod (\n\t\t\t\t\t\tPlayerInventory.class , \"getItemInMainHand\" , new Class[ 0 ] ).invoke (\n\t\t\t\t\t\thandle.getInventory ( ) );\n\t\t\t} catch ( Exception e ) {\n\t\t\t\ttry {\n\t\t\t\t\treturn ( ItemStack ) safeGetMethod (\n\t\t\t\t\t\t\tPlayerInventory.class , \"getItemInHand\" , new Class[ 0 ] ).invoke (\n\t\t\t\t\t\t\thandle.getInventory ( ) );\n\t\t\t\t} catch ( IllegalAccessException | InvocationTargetException ex ) {\n\t\t\t\t\tex.printStackTrace ( );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public Item pop(){\n\t\tif(isEmpty()){\r\n\t\t\tSystem.out.println(\"Stack is empty\");\r\n\t\t}\r\n\t\t\r\n\t\tItem item=first.item;\r\n\t\tfirst=first.next;\r\n\t\tN--;\r\n\t\treturn item;\r\n\t\r\n\r\n\t}", "public ItemStack getStackInSlot(int par1)\n {\n return par1 >= 9 ? null : tile.inventory[par1];\n }", "@Override\n\tpublic ItemStack getStackInSlot(int index) {\n\t\treturn null;\n\t}", "@Override\n public void load(NBTTagCompound nbt)\n {\n \n }", "public static NamespacedNBT readFromNBT(CompoundTag data) {\n return new NamespacedNBT(data);\n }", "protected void readFromPacket(NBTTagCompound nbt) {\n }", "@Override\n public void readFromNBT(NBTTagCompound par1NBTTagCompound)\n {\n super.readFromNBT(par1NBTTagCompound);\n this.explosive = Explosives.get(par1NBTTagCompound.getInteger(\"explosiveID\"));\n this.nbtData = par1NBTTagCompound.getCompoundTag(\"data\");\n }", "@Override\n public void readFromNBT(NBTTagCompound compound, boolean array) {\n super.readFromNBT(compound, array);\n fuel = DictionaryEntry.readFromNBTSafely(compound.getCompoundTag(\"fuel\"));\n edgeItem = new ItemStack(compound.getCompoundTag(\"edgeItem\"));\n }", "public Item pop(Item item){\n\nif(isEmpty()) throw new NoSuchElementException(\"Stack undervflow\"); \n Item item =top.item;\n top = top.next;\n N--;\n return item;\n}", "private ItemStack[] getItemStack() {\n\n ItemStack[] stack = new ItemStack[54];\n int i = 0;\n // get the player's messages\n TVMResultSetInbox rs = new TVMResultSetInbox(plugin, uuid, start, 44);\n if (rs.resultSet()) {\n List<TVMMessage> messages = rs.getMail();\n for (TVMMessage m : messages) {\n // message\n ItemStack mess;\n if (m.isRead()) {\n mess = new ItemStack(Material.BOOK, 1);\n } else {\n mess = new ItemStack(Material.WRITABLE_BOOK, 1);\n }\n ItemMeta age = mess.getItemMeta();\n age.setDisplayName(\"#\" + (i + start + 1));\n String from = plugin.getServer().getOfflinePlayer(m.getWho()).getName();\n age.setLore(Arrays.asList(\"From: \" + from, \"Date: \" + m.getDate(), \"\" + m.getId()));\n mess.setItemMeta(age);\n stack[i] = mess;\n i++;\n }\n }\n\n int n = start / 44 + 1;\n // page number\n ItemStack page = new ItemStack(Material.BOWL, 1);\n ItemMeta num = page.getItemMeta();\n num.setDisplayName(\"Page \" + n);\n num.setCustomModelData(119);\n page.setItemMeta(num);\n stack[45] = page;\n // close\n ItemStack close = new ItemStack(Material.BOWL, 1);\n ItemMeta win = close.getItemMeta();\n win.setDisplayName(\"Close\");\n win.setCustomModelData(1);\n close.setItemMeta(win);\n stack[46] = close;\n // previous screen (only if needed)\n if (start > 0) {\n ItemStack prev = new ItemStack(Material.BOWL, 1);\n ItemMeta een = prev.getItemMeta();\n een.setDisplayName(\"Previous Page\");\n een.setCustomModelData(120);\n prev.setItemMeta(een);\n stack[48] = prev;\n }\n // next screen (only if needed)\n if (finish > 44) {\n ItemStack next = new ItemStack(Material.BOWL, 1);\n ItemMeta scr = next.getItemMeta();\n scr.setDisplayName(\"Next Page\");\n scr.setCustomModelData(116);\n next.setItemMeta(scr);\n stack[49] = next;\n }\n // read\n ItemStack read = new ItemStack(Material.BOWL, 1);\n ItemMeta daer = read.getItemMeta();\n daer.setDisplayName(\"Read\");\n daer.setCustomModelData(121);\n read.setItemMeta(daer);\n stack[51] = read;\n // delete\n ItemStack del = new ItemStack(Material.BOWL, 1);\n ItemMeta ete = del.getItemMeta();\n ete.setDisplayName(\"Delete\");\n ete.setCustomModelData(107);\n del.setItemMeta(ete);\n stack[53] = del;\n\n return stack;\n }", "private void addItemStack(Item itemStack) {\n\t\tint findStackable = findStackableItem(itemStack);\r\n\t\tif(findStackable!=-1){\r\n\t\t\tItem heldStack=tileItems.getItem(findStackable);\r\n\t\t\twhile(!heldStack.stackFull()&&\t//as long as the current stack isn't full and the stack we're picking up isn't empty\r\n\t\t\t\t!itemStack.stackEmpty()){\r\n\t\t\t\theldStack.incrementStack();\r\n\t\t\t\titemStack.decrementStack(tileItems);\r\n\t\t\t\tif(itemStack.stackEmpty())\t//will this cause an error since the item is removed by the inventory?\r\n\t\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\taddItemStack(itemStack);\r\n\t\t}\r\n\t\telse\r\n\t\t\taddFullStack(itemStack);\r\n\t}", "@SubL(source = \"cycl/stacks.lisp\", position = 3109) \n public static final SubLObject stack_pop(SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n if ((NIL == stack_empty_p(stack))) {\n {\n SubLObject elements = stack_struc_elements(stack);\n SubLObject item = elements.first();\n SubLObject rest = elements.rest();\n _csetf_stack_struc_num(stack, Numbers.subtract(stack_struc_num(stack), ONE_INTEGER));\n _csetf_stack_struc_elements(stack, rest);\n return item;\n }\n }\n return NIL;\n }", "public Stack getStack(int slot);", "public static NBTTagCompound prepareDataTag (ItemStack stack) {\n \n if (!stack.hasTagCompound())\n stack.setTagCompound(new NBTTagCompound());\n \n return stack.getTagCompound();\n }", "@Test\n public void pop() {\n SimpleStack stack = new DefaultSimpleStack();\n Item item = new Item();\n Item item1 = new Item();\n stack.push(item);\n stack.push(item1);\n\n // When we pop the stack\n Item topItem = stack.pop();\n\n // Then…\n assertEquals(\"The stack constains 1 item\", 1, stack.getSize());\n assertSame(\"The first item is on top of the stack\", item, stack.peek());\n assertSame(item1, topItem);\n }", "public void fromNBT(NBTTagCompound tag)\n {\n this.name = tag.getString(\"Name\");\n }", "public Item peek()\n {\n if (isEmpty()) throw new NoSuchElementException(\"Stack underflow\");\n return top.item;\n }", "public ItemStack getItem() {\n ItemStack item = new ItemStack(material, 1);\n ItemMeta meta = item.getItemMeta();\n meta.setDisplayName(displayName);\n item.setItemMeta(meta);\n return item;\n }", "@Override\n\tpublic void readFromNBT( NBTTagCompound compound )\n\t{\n\t\tsuper.readFromNBT( compound );\n\t\tcolorInner = compound.getByte( TAG_COLOR_INNER );\n\t\tcolorOuter = compound.getByte( TAG_COLOR_OUTER );\n\t\tskojanzaMode = compound.getBoolean( TAG_SKOJANZA_MODE );\n\t\tnameTag = compound.hasKey( TAG_NAMETAG ) ? compound.getString( TAG_NAMETAG ) : null;\n\t}", "public E top() throws StackUnderflowException {\r\n E item = null;\r\n if(!isEmpty()) item = items.get(0);\r\n else throw new StackUnderflowException(\"Stack Empty\");\r\n \r\n return item;\r\n }", "public T pop() {\r\n if ( top == null )\r\n throw new IllegalStateException(\"Can't pop from an empty stack.\");\r\n T topItem = top.item; // The item that is being popped.\r\n top = top.next; // The previous second item is now on top.\r\n return topItem;\r\n }", "public static ItemStack[] readInventory(List<CompoundTag> tagList, int start, int size) {\n ItemStack[] items = new ItemStack[size];\n for (CompoundTag tag : tagList) {\n tag.readByte(\"Slot\", slot -> {\n if (slot >= start && slot < start + size) {\n items[slot - start] = readItem(tag);\n }\n });\n }\n return items;\n }", "E pop() throws EmptyStackException;", "public static ItemStack createStackFromTileEntity (TileEntity tile) {\n \n final ItemStack stack = new ItemStack(tile.getBlockType(), 1, tile.getBlockMetadata());\n prepareDataTag(stack);\n final NBTTagCompound tileTag = tile.writeToNBT(new NBTTagCompound());\n stack.getTagCompound().setTag(\"TileData\", tileTag);\n return stack;\n }", "public Object pop() {\n if (top != null) {\n Object item = top.getOperand();\n\n top = top.next;\n return item;\n }\n\n System.out.println(\"Stack is empty\");\n return null;\n\n }", "public ItemStack containsItem(Item item) {\n for (ItemStack itemStack : this.ITEMS) {\n if (itemStack.getItem() == item)\n return itemStack;\n }\n\n return null;\n }", "public static ItemStack getFirstItem(Player player, ItemStack istack) {\n\t\tPlayerInventory inv = player.getInventory();\n\t\tItemStack[] contents = inv.getContents();\n\t\tfor (int i = 0; i < contents.length; i++) {\n\t\t\tif (contents[i] != null) {\n\t\t\t\tif (contents[i].getType() == istack.getType()) {\n\t\t\t\t\treturn contents[i];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Item peek() {\r\n if (isEmpty()) throw new RuntimeException(\"Stack underflow\");\r\n return first.item;\r\n }", "public static CustomWoodType readFromNBT(NBTTagCompound tag) {\n if (!NBTHelper.hasKey(tag, AgriNBT.MATERIAL_META, AgriNBT.MATERIAL)) {\n return getDefault();\n }\n return getFromNameAndMeta(tag.getString(AgriNBT.MATERIAL), tag.getInteger(AgriNBT.MATERIAL_META));\n }", "@Override\n public void readFromNBT(NBTTagCompound nbtTagCompound)\n {\n super.readFromNBT(nbtTagCompound);\n\n this.processTimeOutput = nbtTagCompound.getShort(\"ProcO\");\n this.tfPooled = nbtTagCompound.getDouble(\"TfP\");\n this.tfNeeded = nbtTagCompound.getDouble(\"TfN\");\n this.nigariTank.readFromNBT(nbtTagCompound.getCompoundTag(\"Tank1\"));\n this.ingredientTank.readFromNBT(nbtTagCompound.getCompoundTag(\"Tank2\"));\n this.updateIngredientItem();\n }", "public ItemStack transferStackInSlot(int i)\n {\n ItemStack itemstack = null;\n Slot slot = (Slot)inventorySlots.get(i);\n\n if (slot != null && slot.getHasStack())\n {\n ItemStack itemstack1 = slot.getStack();\n itemstack = itemstack1.copy();\n\n if (i < 9)\n {\n if (!mergeItemStack(itemstack1, 9, 45, true))\n {\n return null;\n }\n }\n else if (!mergeItemStack(itemstack1, 0, 9, false))\n {\n return null;\n }\n\n if (itemstack1.stackSize == 0)\n {\n slot.putStack(null);\n }\n else\n {\n slot.onSlotChanged();\n }\n\n if (itemstack1.stackSize != itemstack.stackSize)\n {\n slot.onPickupFromSlot(null, itemstack1);\n }\n else\n {\n return null;\n }\n }\n\n return itemstack;\n }", "public Item pop()\n {\n if (isEmpty()) throw new NoSuchElementException(\"Stack underflow\");\n Item item = top.item;\n top = top.next;\n N--;\n return item;\n }", "public GenericStack popStack(){\n if(isEmpty() == true)return null;\n GenericStack temp = top;\n // makes next item in list the tip\n top = top.next;\n return temp;\n }", "public Tag readTag() {\n Tag tag = null;\n if(currentFrame >= frames.size()) {\n return tag;\n }\n\n try {\n lock.acquire();\n\n //get the current frame\n MP4Frame frame = frames.get(currentFrame);\n if (frame != null) {\n// LogU.d(\"currentFrame= \" + currentFrame + \" frame \"+ frame);\n int sampleSize = frame.getSize();\n int time = (int) Math.round(frame.getTime() * 1000.0);\n //Log.d(TAG,\"Read tag - dst: {} base: {} time: \" + new Object[]{frameTs, baseTs, time});\n long samplePos = frame.getOffset();\n //Log.d(TAG,\"Read tag - samplePos \" + samplePos);\n //determine frame type and packet body padding\n byte type = frame.getType();\n\n //create a byte buffer of the size of the sample\n ByteBuffer data = ByteBuffer.allocate(sampleSize);\n try {\n //prefix is different for keyframes\n\n // do we need to add the mdat offset to the sample position?\n dataSource.position(samplePos);\n // read from the channel\n dataSource.read(data);\n } catch (IOException e) {\n e.printStackTrace();\n }\n // chunk the data\n ByteBuffer payload = ByteBuffer.wrap(data.array());\n // create the tag\n tag = new Tag(type, time, payload.limit(), payload, prevFrameSize);\n // set the frame / tag size\n prevFrameSize = tag.getBodySize();\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n } finally {\n lock.release();\n }\n LogU.d(\"read tag currentFrame \"+ currentFrame + \" finish frame size \" + tag.getBodySize());\n return tag;\n }", "public Item peek() \n {\n if (isEmpty()) \n \tthrow new NoSuchElementException(\"Queue underflow\");\n \n if (stack2.isEmpty())\n \tmoveStack1ToStack2();\n \n return stack2.peek();\n }", "E peek() throws EmptyStackException;", "public ItemStack getStackInSlot(int slot)\n {\n return waterjetStacks[slot];\n }", "public Object pop() {\n if (top >= 0) {\n Object currentObject = stack[top--];\n if (top > minStackSize) {\n decreaseStackSize(1);\n }\n return currentObject;\n }\n else {\n return null;\n }\n }", "public void readFromNet(NBTTagCompound tag, boolean self)\n\t{\n\t}", "public Object pop() {\n\t\tif(this.isEmpty())\n throw new IllegalStateException(\"Stack is empty\");\n return items.remove(items.size() - 1);\n\t}", "public Object peek() {\n if (top >= 0) {\n return stack[top];\n }\n else {\n return null;\n }\n }", "public T pop() {\n\t\tif (this.l.getHead() != null) {\n\t\t\tT tmp = l.getHead().getData();\n\t\t\tl.setHead(l.getHead().getNext());\n\t\t\treturn tmp;\n\t\t} else {\n\t\t\tSystem.out.println(\"No element in stack\");\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\r\n public ItemStack transferStackInSlot(EntityPlayer p_82846_1_, int p_82846_2_)\r\n {\r\n ItemStack itemstack = null;\r\n Slot slot = (Slot)this.inventorySlots.get(p_82846_2_);\r\n\r\n if (slot != null && slot.getHasStack())\r\n {\r\n ItemStack itemstack1 = slot.getStack();\r\n itemstack = itemstack1.copy();\r\n\r\n if (p_82846_2_ == 2 ||p_82846_2_ == 3 )\r\n {\r\n if (!this.mergeItemStack(itemstack1, 4, 40, true))\r\n {\r\n return null;\r\n }\r\n\r\n slot.onSlotChange(itemstack1, itemstack);\r\n }\r\n else if (p_82846_2_ != 1 && p_82846_2_ != 0)\r\n {\r\n \r\n if (p_82846_2_ >= 4 && p_82846_2_ < 31)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 31, 40, false))\r\n {\r\n return null;\r\n }\r\n }\r\n else if (p_82846_2_ >= 31 && p_82846_2_ < 40 && !this.mergeItemStack(itemstack1, 4, 31, false))\r\n {\r\n return null;\r\n }\r\n }\r\n else if (!this.mergeItemStack(itemstack1, 4, 40, false))\r\n {\r\n return null;\r\n }\r\n\r\n if (itemstack1.stackSize == 0)\r\n {\r\n slot.putStack((ItemStack)null);\r\n }\r\n else\r\n {\r\n slot.onSlotChanged();\r\n }\r\n\r\n if (itemstack1.stackSize == itemstack.stackSize)\r\n {\r\n return null;\r\n }\r\n\r\n slot.onPickupFromSlot(p_82846_1_, itemstack1);\r\n }\r\n\r\n return itemstack;\r\n }", "public T pop() {\n if (this.top == null) {\n throw new EmptyStackException();\n }\n T data = this.top.data;\n this.top = this.top.below;\n return data;\n }", "public synchronized T pop() throws PoolException {\n try {\n\n T item = getStack().poll();\n if (item == null || !isValid(item)) {\n trace(\"pop: creating new item\");\n return doCreate();\n }\n inUse++;\n trace(\"pop: in use = \" + inUse + \", created = \" + totalCreated);\n return item;\n } catch (IndexOutOfBoundsException x) { // pool is empty\n return doCreate();\n } catch (NoSuchElementException x) { // pool is empty\n return doCreate();\n }\n }", "@Override\n\tpublic Tags read(int tagID) {\n\t\treturn entityMgr.find(Tags.class, tagID);\n\t}", "public Object getItem(Node itemNode) throws XmlRecipeException;", "public Integer peek() {\n\t\t if(size == 0) {\n\t\t\tthrow new EmptyStackException(); \n\t\t }\n\t\t if(!empty()) {\n\t\t\t return data[0]; \n\t\t }\n\t return null;\n\t }", "public T pop() {\n\t\tif (head.data == null) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\tStackNode<T> item = new StackNode<>();\n\t\titem = head;\n\t\thead = head.next;\n\t\tthis.size--;\n\t\treturn item.data;\n\t}", "public Item pop() {\r\n if (isEmpty()) throw new RuntimeException(\"Stack underflow\");\r\n Item item = first.item; // save item to return\r\n first = first.next; // delete first node\r\n N--;\r\n return item; // return the saved item\r\n }", "public void readFromServer(NBTTagCompound tag)\n\t{\n\t}", "@Override\n\tpublic Item getItemDropped(int par1, Random par2Random, int par3) {\n\t\treturn Item.getItemFromBlock(this);\n\t}", "public E pop() {\n if(isEmpty()) throw new EmptyStackException();\n\n E itemPopped = this.stack[top-1];\n this.stack[top-1] = null;\n top--;\n return itemPopped;\n\n }", "public static PotionEffect fromNBT(NBTTagCompound tag)\r\n/* 168: */ {\r\n/* 169:168 */ int id = tag.d(\"Id\");\r\n/* 170:169 */ if ((id < 0) || (id >= Potion.potionList.length) || (Potion.potionList[id] == null)) {\r\n/* 171:170 */ return null;\r\n/* 172: */ }\r\n/* 173:172 */ int amplifier = tag.d(\"Amplifier\");\r\n/* 174:173 */ int duration = tag.getInteger(\"Duration\");\r\n/* 175:174 */ boolean ambient = tag.getBoolean(\"Ambient\");\r\n/* 176:175 */ boolean showParticles = true;\r\n/* 177:176 */ if (tag.hasKey(\"ShowParticles\", 1)) {\r\n/* 178:177 */ showParticles = tag.getBoolean(\"ShowParticles\");\r\n/* 179: */ }\r\n/* 180:179 */ return new PotionEffect(id, duration, amplifier, ambient, showParticles);\r\n/* 181: */ }", "public ItemStack transferStackInSlot(EntityPlayer playerIn, int index) {\r\n ItemStack itemstack = null;\r\n Slot slot = (Slot) this.inventorySlots.get(index);\r\n\r\n if (slot != null && slot.getHasStack()) {\r\n ItemStack itemstack1 = slot.getStack();\r\n itemstack = itemstack1.copy();\r\n\r\n if (index == 0) {\r\n if (!this.mergeItemStack(itemstack1, this.inventoryHandler.getSlots(), this.inventorySlots.size(), true)) {\r\n return null;\r\n }\r\n\r\n slot.onSlotChange(itemstack1, itemstack);\r\n } else if (index >= 1 && index < this.inventorySlots.size()) {\r\n if (!this.mergeItemStack(itemstack1, this.inventorySlots.size() - 9, this.inventorySlots.size(), false)) {\r\n return null;\r\n }\r\n } else if (!this.mergeItemStack(itemstack1, this.inventoryHandler.getSlots(), this.inventorySlots.size(), false)) {\r\n return null;\r\n }\r\n\r\n if (itemstack1.stackSize == 0) {\r\n slot.putStack((ItemStack) null);\r\n } else {\r\n slot.onSlotChanged();\r\n }\r\n\r\n if (itemstack1.stackSize == itemstack.stackSize) {\r\n return null;\r\n }\r\n\r\n slot.onPickupFromSlot(playerIn, itemstack1);\r\n }\r\n\r\n return itemstack;\r\n }", "@Nullable\n public T getItem(@IntRange(from = 0) int position) {\n if (position < mData.size())\n return mData.get(position);\n else\n return null;\n }", "public E pop()\n\tthrows EmptyStackException;", "public Items getItem(String name)\n {\n return Inventory.get(name);\n }", "public Item getItemByName(String itemName) {\n\t\t\n\t\tfor (Item item : itemsInStock) {\n\t\t\tif (item.name.equals(itemName)) {\n\t\t\t\treturn item;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public Tag readTag() throws IOException {\n/* 78 */ char[] arrayOfChar = new char[1024];\n/* */ \n/* 80 */ int j = -1;\n/* */ \n/* 82 */ Integer integer1 = null;\n/* 83 */ Integer integer2 = null;\n/* */ \n/* 85 */ int i = read(2);\n/* 86 */ if (i < 0) {\n/* 87 */ throw new IOException(\"stop.\");\n/* */ }\n/* 89 */ if (i > arrayOfChar.length) {\n/* 90 */ throw new IOException(\"Invalid tag length.\");\n/* */ }\n/* 92 */ while (i > 0) {\n/* 93 */ j = read(2);\n/* 94 */ int k = read(2);\n/* 95 */ switch (j) {\n/* */ case 1:\n/* 97 */ integer1 = new Integer(read(4));\n/* 98 */ integer2 = new Integer(read(4));\n/* */ break;\n/* */ } \n/* */ \n/* 102 */ i -= 4 + k;\n/* */ } \n/* 104 */ return new Tag(i, j, integer1, integer2);\n/* */ }", "@Override\n\tpublic ItemStack getStackInSlotOnClosing(int slot){\n\t if(modularStacks[slot] != null) {\n\t ItemStack itemstack = modularStacks[slot];\n\t modularStacks[slot] = null;\n\t return itemstack;\n\t } else {\n\t return null;\n\t }\n\t}", "public T peek() {\r\n\t\t\r\n\t\tif (isEmpty()) { // Throws exception if empty.\r\n\t\t\tthrow new EmptyStackException();\r\n\t\t} else {\r\n\t\t\t// Returns the data in top Link of stack.\r\n\t\t\treturn topNode.getData();\r\n\t\t} // end if else\r\n\t\t\r\n\t}", "@Nullable\n public ItemStack transferStackInSlot(EntityPlayer playerIn, int index)\n {\n ItemStack itemstack = null;\n Slot slot = (Slot)this.inventorySlots.get(index);\n\n if (slot != null && slot.getHasStack())\n {\n ItemStack itemstack1 = slot.getStack();\n \n if(itemstack1.getItem()==TF2weapons.itemTF2&&itemstack1.getMetadata()==9){\n \t\titemstack1=ItemFromData.getRandomWeapon(playerIn.getRNG(),ItemFromData.VISIBLE_WEAPON);\n \t}\n \telse if(itemstack1.getItem()==TF2weapons.itemTF2&&itemstack1.getMetadata()==10){\n \t\titemstack1=ItemFromData.getRandomWeaponOfClass(\"cosmetic\",playerIn.getRNG(), false);\n \t}\n \n itemstack = itemstack1.copy();\n\n if (index == 0)\n {\n if (!this.mergeItemStack(itemstack1, 10, 46, true))\n {\n return null;\n }\n\n slot.onSlotChange(itemstack1, itemstack);\n }\n else if (index >= 10 && index < 37)\n {\n if (!this.mergeItemStack(itemstack1, 37, 46, false))\n {\n return null;\n }\n }\n else if (index >= 37 && index < 46)\n {\n if (!this.mergeItemStack(itemstack1, 10, 37, false))\n {\n return null;\n }\n }\n else if (!this.mergeItemStack(itemstack1, 10, 46, false))\n {\n return null;\n }\n\n if (itemstack1.stackSize == 0)\n {\n slot.putStack((ItemStack)null);\n }\n else\n {\n slot.onSlotChanged();\n }\n\n if (itemstack1.stackSize == itemstack.stackSize)\n {\n return null;\n }\n\n slot.onPickupFromSlot(playerIn, itemstack1);\n }\n\n return itemstack;\n }", "public Item pop() {\n if (isEmpty()) throw new ArrayIndexOutOfBoundsException(\"Stack underflow\");\n Item item = first.item;\n first = first.next;\n return item;\n }", "public abstract void readTagPayload(DataInput in) throws IOException;", "ILitePackItem getFirstChild();", "public GenericStack peek(){\n // checks if stack is empty\n if(top == null){\n System.out.println(\"Stack is empty.\");\n return null;\n //System.exit(0);\n }\n return top;\n }" ]
[ "0.7101296", "0.6627176", "0.6580964", "0.6549454", "0.64952016", "0.63032645", "0.6164423", "0.6110279", "0.60615647", "0.5991397", "0.59906507", "0.5970813", "0.59211034", "0.5816456", "0.57901144", "0.5769262", "0.57602453", "0.57394755", "0.5706474", "0.5698786", "0.5698139", "0.56823105", "0.5678873", "0.5641597", "0.56328595", "0.5621361", "0.5616232", "0.5607724", "0.55915385", "0.55618757", "0.55524695", "0.55408263", "0.5538334", "0.553371", "0.55222356", "0.55167097", "0.54495394", "0.54383767", "0.5417792", "0.5413757", "0.5409868", "0.5406975", "0.53861964", "0.5376276", "0.5360644", "0.5360514", "0.5332805", "0.53301376", "0.53273183", "0.53243953", "0.53200287", "0.53178424", "0.5316116", "0.53036803", "0.52879566", "0.5280436", "0.526186", "0.52516276", "0.5236658", "0.52296835", "0.5197799", "0.51786757", "0.5178418", "0.5175591", "0.5175576", "0.5145751", "0.51442146", "0.5131269", "0.51274836", "0.51166797", "0.51154715", "0.5109749", "0.5103844", "0.5097774", "0.50977254", "0.5083345", "0.50827754", "0.50819606", "0.5081787", "0.5075976", "0.5072049", "0.5054194", "0.50509757", "0.50380296", "0.50287145", "0.5027935", "0.5025302", "0.5024304", "0.5022014", "0.5020626", "0.50192046", "0.50186723", "0.5016223", "0.5015208", "0.5010949", "0.5010917", "0.50089383", "0.49999848", "0.4990924", "0.49825606" ]
0.80696243
0
Write an item stack to an NBT tag. Null stacks produce an empty tag, and if slot is negative it is omitted from the result.
public static CompoundTag writeItem(ItemStack stack, int slot) { CompoundTag tag = new CompoundTag(); if (stack == null || stack.getType() == Material.AIR) { return tag; } tag.putString("id", ItemIds.getName(stack.getType())); tag.putShort("Damage", stack.getDurability()); tag.putByte("Count", stack.getAmount()); tag.putByte("Slot", slot); CompoundTag meta = GlowItemFactory.instance().writeNbt(stack.getItemMeta()); if (meta != null) { tag.putCompound("tag", meta); } return tag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeInventoryToNBT(CompoundNBT tag) {\n IInventory inventory = this;\n ListNBT nbttaglist = new ListNBT();\n\n for (int i = 0; i < inventory.getSizeInventory(); i++) {\n if (!inventory.getStackInSlot(i).isEmpty()) {\n CompoundNBT itemTag = new CompoundNBT();\n itemTag.putByte(TAG_SLOT, (byte) i);\n inventory.getStackInSlot(i).write(itemTag);\n nbttaglist.add(itemTag);\n }\n }\n\n tag.put(TAG_ITEMS, nbttaglist);\n }", "@Override\n public void writeToNBT(NBTTagCompound nbt)\n {\n super.writeToNBT(nbt);\n nbt.setInteger(\"pokedexNb\", pokedexNb);\n nbt.setInteger(\"time\", time);\n NBTTagList itemList = new NBTTagList();\n\n for (int i = 0; i < inventory.length; i++)\n {\n ItemStack stack = inventory[i];\n\n if (stack != null)\n {\n NBTTagCompound tag = new NBTTagCompound();\n tag.setByte(\"Slot\", (byte) i);\n stack.writeToNBT(tag);\n itemList.appendTag(tag);\n }\n }\n nbt.setTag(\"Inventory\", itemList);\n }", "ItemStack createItemStack(CompoundTag tag);", "public ItemStack transferStackInSlot(int i)\n {\n ItemStack itemstack = null;\n Slot slot = (Slot)inventorySlots.get(i);\n\n if (slot != null && slot.getHasStack())\n {\n ItemStack itemstack1 = slot.getStack();\n itemstack = itemstack1.copy();\n\n if (i < 9)\n {\n if (!mergeItemStack(itemstack1, 9, 45, true))\n {\n return null;\n }\n }\n else if (!mergeItemStack(itemstack1, 0, 9, false))\n {\n return null;\n }\n\n if (itemstack1.stackSize == 0)\n {\n slot.putStack(null);\n }\n else\n {\n slot.onSlotChanged();\n }\n\n if (itemstack1.stackSize != itemstack.stackSize)\n {\n slot.onPickupFromSlot(null, itemstack1);\n }\n else\n {\n return null;\n }\n }\n\n return itemstack;\n }", "public void setInventorySlotContents(int slot, ItemStack stack)\n {\n waterjetStacks[slot] = stack;\n }", "public static void writeStackToTag (ItemStack stack, NBTTagCompound tag, String tagName) {\n \n final NBTTagCompound stackTag = new NBTTagCompound();\n stack.writeToNBT(stackTag);\n tag.setTag(tagName, stackTag);\n }", "default ItemStack getStack(int slot) {\n\t\treturn this.getContents().getOrDefault(slot, ItemStack.EMPTY);\n\t}", "default void setStack(int slot, ItemStack stack) {\n\t\tif (slot <= this.getItemSize()) {\n\t\t\tthis.getContents().put(slot, stack);\n\t\t\tthis.dispatchConsumers();\n\t\t}\n\t}", "@Override\n\tpublic ItemStack getStackInSlotOnClosing(int slot){\n\t if(modularStacks[slot] != null) {\n\t ItemStack itemstack = modularStacks[slot];\n\t modularStacks[slot] = null;\n\t return itemstack;\n\t } else {\n\t return null;\n\t }\n\t}", "public void setStack(int slot, Stack stack);", "@Override\r\n\tpublic ItemStack transferStackInSlot(EntityPlayer playerIn, int index)\r\n {\r\n ItemStack itemstack = ItemStackTools.getEmptyStack();\r\n Slot slot = this.inventorySlots.get(index);\r\n\r\n if (slot != null && slot.getHasStack())\r\n {\r\n ItemStack itemstack1 = slot.getStack();\r\n itemstack = itemstack1.copy();\r\n\r\n if (index == 0)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 10, 46, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n\r\n slot.onSlotChange(itemstack1, itemstack);\r\n }\r\n else if (index >= 10 && index < 37)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 37, 46, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n }\r\n else if (index >= 37 && index < 46)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 10, 37, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n }\r\n else if (!this.mergeItemStack(itemstack1, 10, 46, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n\r\n if (ItemStackTools.isEmpty(itemstack1))\r\n {\r\n slot.putStack(ItemStackTools.getEmptyStack());\r\n }\r\n else\r\n {\r\n slot.onSlotChanged();\r\n }\r\n\r\n if (ItemStackTools.getStackSize(itemstack1) == ItemStackTools.getStackSize(itemstack))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n\r\n slot.onTake(playerIn, itemstack1);\r\n }\r\n\r\n return itemstack;\r\n }", "public void writeToNBT(NBTTagCompound par1NBTTagCompound)\n {\n super.writeToNBT(par1NBTTagCompound);\n par1NBTTagCompound.setShort(\"Fuel\", (short)this.fuel);\n par1NBTTagCompound.setShort(\"CookTime\", (short)this.furnaceCookTime);\n par1NBTTagCompound.setShort(\"Direction\", (short)this.direction);\n par1NBTTagCompound.setShort(\"TimeBase\", (short)this.furnaceTimeBase);\n par1NBTTagCompound.setShort(\"MaxFuel\", (short)this.maxFuel);\n NBTTagList var2 = new NBTTagList();\n\n for (int var3 = 0; var3 < this.furnaceItemStacks.length; ++var3)\n {\n if (this.furnaceItemStacks[var3] != null)\n {\n NBTTagCompound var4 = new NBTTagCompound();\n var4.setByte(\"Slot\", (byte)var3);\n this.furnaceItemStacks[var3].writeToNBT(var4);\n var2.appendTag(var4);\n }\n }\n\n par1NBTTagCompound.setTag(\"Items\", var2);\n sync();\n }", "@Override\n\tpublic ItemStack getStackInSlot(int index) {\n\t\treturn null;\n\t}", "default void write(ItemInventoryComponent source, CompoundTag tag, Optional<String> subtag, Optional<Range<Integer>> range) {\n\t\tif (source == null || source.getItemSize() <= 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (tag == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tCompoundTag stacksTag = new CompoundTag();\n\n\t\tint minimum = range.isPresent() ? range.get().getMinimum() : 0;\n\t\tint maximum = range.isPresent() ? range.get().getMaximum() : source.getItemSize();\n\n\t\tfor (int position = minimum; position < maximum; ++position) {\n\t\t\tItemStack stack = source.getStack(position);\n\n\t\t\tCompoundTag stackTag;\n\t\t\tif (stack != null && !stack.isEmpty()) {\n\t\t\t\tstackTag = source.getStack(position).toTag(new CompoundTag());\n\t\t\t} else {\n\t\t\t\tstackTag = ItemStack.EMPTY.toTag(new CompoundTag());\n\t\t\t}\n\t\t\tif (!stackTag.isEmpty()) {\n\t\t\t\tstacksTag.put(String.valueOf(position), stackTag);\n\t\t\t}\n\t\t}\n\n\t\tif (subtag.isPresent()) {\n\t\t\tCompoundTag inventoryTag = new CompoundTag();\n\n\t\t\tinventoryTag.putInt(\"size\", source.getItemSize());\n\t\t\tinventoryTag.put(\"stacks\", stacksTag);\n\n\t\t\ttag.put(subtag.get(), inventoryTag);\n\t\t} else {\n\t\t\ttag.putInt(\"size\", source.getItemSize());\n\t\t\ttag.put(\"stacks\", stacksTag);\n\t\t}\n\t}", "protected void writeEntityToNBT(NBTTagCompound paramfn)\r\n/* 115: */ {\r\n/* 116:137 */ super.writeEntityToNBT(paramfn);\r\n/* 117: */ \r\n/* 118:139 */ fv localfv = new fv();\r\n/* 119:141 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 120:142 */ if (this.a[i] != null)\r\n/* 121: */ {\r\n/* 122:143 */ NBTTagCompound localfn = new NBTTagCompound();\r\n/* 123:144 */ localfn.setByte(\"Slot\", (byte)i);\r\n/* 124:145 */ this.a[i].writeToNBT(localfn);\r\n/* 125:146 */ localfv.a(localfn);\r\n/* 126: */ }\r\n/* 127: */ }\r\n/* 128:149 */ paramfn.setNBT(\"Items\", localfv);\r\n/* 129: */ }", "public ItemStack transferStackInSlot(EntityPlayer playerIn, int index) {\n/* 79 */ ItemStack var3 = null;\n/* 80 */ Slot var4 = this.inventorySlots.get(index);\n/* */ \n/* 82 */ if (var4 != null && var4.getHasStack()) {\n/* */ \n/* 84 */ ItemStack var5 = var4.getStack();\n/* 85 */ var3 = var5.copy();\n/* */ \n/* 87 */ if (index < this.field_111243_a.getSizeInventory()) {\n/* */ \n/* 89 */ if (!mergeItemStack(var5, this.field_111243_a.getSizeInventory(), this.inventorySlots.size(), true))\n/* */ {\n/* 91 */ return null;\n/* */ }\n/* */ }\n/* 94 */ else if (getSlot(1).isItemValid(var5) && !getSlot(1).getHasStack()) {\n/* */ \n/* 96 */ if (!mergeItemStack(var5, 1, 2, false))\n/* */ {\n/* 98 */ return null;\n/* */ }\n/* */ }\n/* 101 */ else if (getSlot(0).isItemValid(var5)) {\n/* */ \n/* 103 */ if (!mergeItemStack(var5, 0, 1, false))\n/* */ {\n/* 105 */ return null;\n/* */ }\n/* */ }\n/* 108 */ else if (this.field_111243_a.getSizeInventory() <= 2 || !mergeItemStack(var5, 2, this.field_111243_a.getSizeInventory(), false)) {\n/* */ \n/* 110 */ return null;\n/* */ } \n/* */ \n/* 113 */ if (var5.stackSize == 0) {\n/* */ \n/* 115 */ var4.putStack(null);\n/* */ }\n/* */ else {\n/* */ \n/* 119 */ var4.onSlotChanged();\n/* */ } \n/* */ } \n/* */ \n/* 123 */ return var3;\n/* */ }", "@Override\n\tpublic void setInventorySlotContents(int slot, ItemStack stack){\n\t modularStacks[slot] = stack;\n\n\t if(stack != null && stack.stackSize > getInventoryStackLimit()) {\n\t stack.stackSize = getInventoryStackLimit();\n\t }\n\n\t markDirty();\n\t worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);\n\t}", "@Nullable\n public ItemStack transferStackInSlot(EntityPlayer playerIn, int index)\n {\n ItemStack itemstack = null;\n Slot slot = (Slot)this.inventorySlots.get(index);\n\n if (slot != null && slot.getHasStack())\n {\n ItemStack itemstack1 = slot.getStack();\n \n if(itemstack1.getItem()==TF2weapons.itemTF2&&itemstack1.getMetadata()==9){\n \t\titemstack1=ItemFromData.getRandomWeapon(playerIn.getRNG(),ItemFromData.VISIBLE_WEAPON);\n \t}\n \telse if(itemstack1.getItem()==TF2weapons.itemTF2&&itemstack1.getMetadata()==10){\n \t\titemstack1=ItemFromData.getRandomWeaponOfClass(\"cosmetic\",playerIn.getRNG(), false);\n \t}\n \n itemstack = itemstack1.copy();\n\n if (index == 0)\n {\n if (!this.mergeItemStack(itemstack1, 10, 46, true))\n {\n return null;\n }\n\n slot.onSlotChange(itemstack1, itemstack);\n }\n else if (index >= 10 && index < 37)\n {\n if (!this.mergeItemStack(itemstack1, 37, 46, false))\n {\n return null;\n }\n }\n else if (index >= 37 && index < 46)\n {\n if (!this.mergeItemStack(itemstack1, 10, 37, false))\n {\n return null;\n }\n }\n else if (!this.mergeItemStack(itemstack1, 10, 46, false))\n {\n return null;\n }\n\n if (itemstack1.stackSize == 0)\n {\n slot.putStack((ItemStack)null);\n }\n else\n {\n slot.onSlotChanged();\n }\n\n if (itemstack1.stackSize == itemstack.stackSize)\n {\n return null;\n }\n\n slot.onPickupFromSlot(playerIn, itemstack1);\n }\n\n return itemstack;\n }", "public ItemStack getStackInSlot(int slot)\n {\n return waterjetStacks[slot];\n }", "@Override\r\n public ItemStack transferStackInSlot(EntityPlayer p_82846_1_, int p_82846_2_)\r\n {\r\n ItemStack itemstack = null;\r\n Slot slot = (Slot)this.inventorySlots.get(p_82846_2_);\r\n\r\n if (slot != null && slot.getHasStack())\r\n {\r\n ItemStack itemstack1 = slot.getStack();\r\n itemstack = itemstack1.copy();\r\n\r\n if (p_82846_2_ == 2 ||p_82846_2_ == 3 )\r\n {\r\n if (!this.mergeItemStack(itemstack1, 4, 40, true))\r\n {\r\n return null;\r\n }\r\n\r\n slot.onSlotChange(itemstack1, itemstack);\r\n }\r\n else if (p_82846_2_ != 1 && p_82846_2_ != 0)\r\n {\r\n \r\n if (p_82846_2_ >= 4 && p_82846_2_ < 31)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 31, 40, false))\r\n {\r\n return null;\r\n }\r\n }\r\n else if (p_82846_2_ >= 31 && p_82846_2_ < 40 && !this.mergeItemStack(itemstack1, 4, 31, false))\r\n {\r\n return null;\r\n }\r\n }\r\n else if (!this.mergeItemStack(itemstack1, 4, 40, false))\r\n {\r\n return null;\r\n }\r\n\r\n if (itemstack1.stackSize == 0)\r\n {\r\n slot.putStack((ItemStack)null);\r\n }\r\n else\r\n {\r\n slot.onSlotChanged();\r\n }\r\n\r\n if (itemstack1.stackSize == itemstack.stackSize)\r\n {\r\n return null;\r\n }\r\n\r\n slot.onPickupFromSlot(p_82846_1_, itemstack1);\r\n }\r\n\r\n return itemstack;\r\n }", "public static ItemStack readItem(CompoundTag tag) {\n BlockDataManager blockDataManager = ((GlowServer) Bukkit.getServer()).getBlockDataManager();\n final Material[] material = {null};\n if ((!tag.readString(\"id\", id -> material[0] = ItemIds.getItem(id))\n && !tag.readShort(\"id\",\n id -> material[0] = blockDataManager.convertToBlockData(id).getMaterial()))\n || material[0] == null || material[0] == Material.AIR) {\n return null;\n }\n final byte[] count = {0};\n tag.readByte(\"Count\", x -> count[0] = x);\n if (count[0] == 0) {\n return null;\n }\n final short[] damage = {0};\n tag.readShort(\"Damage\", x -> damage[0] = x);\n ItemStack stack = new ItemStack(material[0], count[0], damage[0]);\n // This is slightly different than what tag.readItem would do, since we specify the\n // material separately.\n tag.readCompound(\"tag\",\n subtag -> stack.setItemMeta(GlowItemFactory.instance().readNbt(material[0], subtag)));\n return stack;\n }", "public ItemStack transferStackInSlot(EntityPlayer playerIn, int index) {\r\n ItemStack itemstack = null;\r\n Slot slot = (Slot) this.inventorySlots.get(index);\r\n\r\n if (slot != null && slot.getHasStack()) {\r\n ItemStack itemstack1 = slot.getStack();\r\n itemstack = itemstack1.copy();\r\n\r\n if (index == 0) {\r\n if (!this.mergeItemStack(itemstack1, this.inventoryHandler.getSlots(), this.inventorySlots.size(), true)) {\r\n return null;\r\n }\r\n\r\n slot.onSlotChange(itemstack1, itemstack);\r\n } else if (index >= 1 && index < this.inventorySlots.size()) {\r\n if (!this.mergeItemStack(itemstack1, this.inventorySlots.size() - 9, this.inventorySlots.size(), false)) {\r\n return null;\r\n }\r\n } else if (!this.mergeItemStack(itemstack1, this.inventoryHandler.getSlots(), this.inventorySlots.size(), false)) {\r\n return null;\r\n }\r\n\r\n if (itemstack1.stackSize == 0) {\r\n slot.putStack((ItemStack) null);\r\n } else {\r\n slot.onSlotChanged();\r\n }\r\n\r\n if (itemstack1.stackSize == itemstack.stackSize) {\r\n return null;\r\n }\r\n\r\n slot.onPickupFromSlot(playerIn, itemstack1);\r\n }\r\n\r\n return itemstack;\r\n }", "public void writeToNBT(NBTTagCompound par1NBTTagCompound);", "public ItemStack getStackInSlotOnClosing(int slot)\n {\n return waterjetStacks[slot];\n }", "@Override\n public ItemStack transferStackInSlot(EntityPlayer player, int index) {\n ItemStack result = ItemStack.EMPTY;\n Slot slot = inventorySlots.get(index);\n ItemStack stack = slot.getStack();\n if (slot != null && slot.getHasStack()) {\n SlotRange destRange = transferSlotRange(index, stack);\n if (destRange != null) {\n if (index >= destRange.numSlots) {\n result = stack.copy();\n if (!mergeItemStackIntoRange(stack, destRange))\n return ItemStack.EMPTY;\n if (stack.getCount() == 0)\n slot.putStack(ItemStack.EMPTY);\n else\n slot.onSlotChanged();\n }\n else\n player.inventory.addItemStackToInventory(stack);\n }\n }\n return result;\n }", "@SubL(source = \"cycl/stacks.lisp\", position = 2898) \n public static final SubLObject stack_push(SubLObject item, SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n _csetf_stack_struc_elements(stack, cons(item, stack_struc_elements(stack)));\n _csetf_stack_struc_num(stack, Numbers.add(stack_struc_num(stack), ONE_INTEGER));\n return stack;\n }", "private void addItemStack(Item itemStack) {\n\t\tint findStackable = findStackableItem(itemStack);\r\n\t\tif(findStackable!=-1){\r\n\t\t\tItem heldStack=tileItems.getItem(findStackable);\r\n\t\t\twhile(!heldStack.stackFull()&&\t//as long as the current stack isn't full and the stack we're picking up isn't empty\r\n\t\t\t\t!itemStack.stackEmpty()){\r\n\t\t\t\theldStack.incrementStack();\r\n\t\t\t\titemStack.decrementStack(tileItems);\r\n\t\t\t\tif(itemStack.stackEmpty())\t//will this cause an error since the item is removed by the inventory?\r\n\t\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\taddItemStack(itemStack);\r\n\t\t}\r\n\t\telse\r\n\t\t\taddFullStack(itemStack);\r\n\t}", "public static List<CompoundTag> writeInventory(ItemStack[] items, int start) {\n List<CompoundTag> out = new ArrayList<>();\n for (int i = 0; i < items.length; i++) {\n ItemStack stack = items[i];\n if (!InventoryUtil.isEmpty(stack)) {\n out.add(writeItem(stack, start + i));\n }\n }\n return out;\n }", "@Override\n public ItemStack transferStackInSlot(EntityPlayer player, int sourceSlotIndex)\n {\n Slot sourceSlot = (Slot)inventorySlots.get(sourceSlotIndex);\n if (sourceSlot == null || !sourceSlot.getHasStack()) return ItemStack.EMPTY; //EMPTY_ITEM\n ItemStack sourceStack = sourceSlot.getStack();\n ItemStack copyOfSourceStack = sourceStack.copy();\n\n // Check if the slot clicked is one of the vanilla container slots\n if (sourceSlotIndex >= VANILLA_FIRST_SLOT_INDEX && sourceSlotIndex < VANILLA_FIRST_SLOT_INDEX + VANILLA_SLOT_COUNT) {\n // This is a vanilla container slot so merge the stack into the tile inventory\n // We can only put it into the first slot though, keep that in mind.\n if (!mergeItemStack(sourceStack, TE_INVENTORY_FIRST_SLOT_INDEX, TE_INVENTORY_FIRST_SLOT_INDEX + 1, false)){\n return ItemStack.EMPTY; // EMPTY_ITEM\n }\n } else if (sourceSlotIndex >= TE_INVENTORY_FIRST_SLOT_INDEX && sourceSlotIndex < TE_INVENTORY_FIRST_SLOT_INDEX + TE_INVENTORY_SLOT_COUNT) {\n // This is a TE slot so merge the stack into the players inventory\n if (!mergeItemStack(sourceStack, VANILLA_FIRST_SLOT_INDEX, VANILLA_FIRST_SLOT_INDEX + VANILLA_SLOT_COUNT, false)) {\n return ItemStack.EMPTY; // EMPTY_ITEM\n }\n } else {\n return ItemStack.EMPTY; // EMPTY_ITEM\n }\n\n // If stack size == 0 (the entire stack was moved) set slot contents to null\n if (sourceStack.getCount() == 0) { // getStackSize\n sourceSlot.putStack(ItemStack.EMPTY); // EMPTY_ITEM\n } else {\n sourceSlot.onSlotChanged();\n }\n\n sourceSlot.onTake(player, sourceStack); //onPickupFromSlot()\n return copyOfSourceStack;\n }", "public ItemStack transferStackInSlot(EntityPlayer playerIn, int index) {\n ItemStack var3 = null;\n Slot var4 = (Slot) this.inventorySlots.get(index);\n\n if (var4 != null && var4.getHasStack()) {\n ItemStack var5 = var4.getStack();\n var3 = var5.copy();\n\n if ((index < 0 || index > 2) && index != 3) {\n if (!this.theSlot.getHasStack() && this.theSlot.isItemValid(var5)) {\n if (!this.mergeItemStack(var5, 3, 4, false)) {\n return null;\n }\n } else if (ContainerBrewingStand.Potion.canHoldPotion(var3)) {\n if (!this.mergeItemStack(var5, 0, 3, false)) {\n return null;\n }\n } else if (index >= 4 && index < 31) {\n if (!this.mergeItemStack(var5, 31, 40, false)) {\n return null;\n }\n } else if (index >= 31 && index < 40) {\n if (!this.mergeItemStack(var5, 4, 31, false)) {\n return null;\n }\n } else if (!this.mergeItemStack(var5, 4, 40, false)) {\n return null;\n }\n } else {\n if (!this.mergeItemStack(var5, 4, 40, true)) {\n return null;\n }\n\n var4.onSlotChange(var5, var3);\n }\n\n if (var5.stackSize == 0) {\n var4.putStack((ItemStack) null);\n } else {\n var4.onSlotChanged();\n }\n\n if (var5.stackSize == var3.stackSize) {\n return null;\n }\n\n var4.onPickupFromSlot(playerIn, var5);\n }\n\n return var3;\n }", "@Override\n\tpublic void setInventorySlotContents(int index, ItemStack stack) {\n\t\t\n\t}", "@Override\n\tpublic void setItemStack(ItemStack stack) {\n\t}", "public Stack getStack(int slot);", "@Deprecated\n public ItemStack getStackInSlotOnClosing(int slot) {\n return ItemStack.EMPTY;\n }", "public void push(Item item){\n this.stack.add(item);\n\n }", "@Override\n\tpublic ItemStack getStackInSlot(int slot){\n\t return modularStacks[slot];\n\t}", "@Override\n\tpublic ItemStack transferStackInSlot(EntityPlayer player, int p_82846_2_)\n\t{\n\t\tItemStack itemstack = null;\n\t\tSlot slot = (Slot)this.inventorySlots.get(p_82846_2_);\n\n\t\tif (slot != null && slot.getHasStack())\n\t\t{\n\t\t\tItemStack stackInSlot = slot.getStack();\n\t\t\titemstack = stackInSlot.copy();\n\n\t\t\t//merges the item into player inventory since its in the tileEntity\n\t\t\tif (p_82846_2_ <= 1) {\n\t\t\t\tif (!this.mergeItemStack(stackInSlot, 0, 35, true)) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//places it into the tileEntity is possible since its in the player inventory\n\t\t\telse if (!this.mergeItemStack(stackInSlot, 0, 0, false)) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\n\t\t\tif (stackInSlot.stackSize == 0)\n\t\t\t{\n\t\t\t\tslot.putStack((ItemStack)null);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tslot.onSlotChanged();\n\t\t\t}\n\t\t}\n\t\treturn itemstack;\n\t}", "public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)\r\n\t {\r\n\t\t ItemStack itemstack = null;\r\n\t\t Slot slot = (Slot)this.inventorySlots.get(par2);\r\n\r\n\t\t if (slot != null && slot.getHasStack())\r\n\t\t {\r\n\t\t\t ItemStack itemstack1 = slot.getStack();\r\n\t\t\t itemstack = itemstack1.copy();\r\n\r\n\t\t\t if (par2 == 0)\r\n\t\t\t {\r\n\t\t\t\t if (!this.mergeItemStack(itemstack1, 1, 37, true))\r\n\t\t\t\t {\r\n\t\t\t\t\t return null;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t else\r\n\t\t\t {\r\n\t\t\t\t if (((Slot)this.inventorySlots.get(0)).getHasStack() || !((Slot)this.inventorySlots.get(0)).isItemValid(itemstack1))\r\n\t\t\t\t {\r\n\t\t\t\t\t return null;\r\n\t\t\t\t }\r\n\r\n\t\t\t\t if (itemstack1.hasTagCompound() && itemstack1.stackSize == 1)\r\n\t\t\t\t {\r\n\t\t\t\t\t ((Slot)this.inventorySlots.get(0)).putStack(itemstack1.copy());\r\n\t\t\t\t\t itemstack1.stackSize = 0;\r\n\t\t\t\t }\r\n\t\t\t\t else if (itemstack1.stackSize >= 1)\r\n\t\t\t\t {\r\n\t\t\t\t\t ((Slot)this.inventorySlots.get(0)).putStack(new ItemStack(itemstack1.itemID, 1, itemstack1.getItemDamage()));\r\n\t\t\t\t\t --itemstack1.stackSize;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t\t if (itemstack1.stackSize == 0)\r\n\t\t\t {\r\n\t\t\t\t slot.putStack((ItemStack)null);\r\n\t\t\t }\r\n\t\t\t else\r\n\t\t\t {\r\n\t\t\t\t slot.onSlotChanged();\r\n\t\t\t }\r\n\r\n\t\t\t if (itemstack1.stackSize == itemstack.stackSize)\r\n\t\t\t {\r\n\t\t\t\t return null;\r\n\t\t\t }\r\n\r\n\t\t\t slot.onPickupFromSlot(par1EntityPlayer, itemstack1);\r\n\t\t }\r\n\r\n\t\t return itemstack;\r\n\t }", "public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)\n {\n ItemStack itemstack = null;\n Slot slot = (Slot)this.inventorySlots.get(par2);\n\n if (slot != null && slot.getHasStack())\n {\n ItemStack itemstack1 = slot.getStack();\n itemstack = itemstack1.copy();\n\n if (par2 == 0)\n {\n if (!this.mergeItemStack(itemstack1, 9, 45, true))\n {\n return null;\n }\n\n slot.onSlotChange(itemstack1, itemstack);\n }\n else if (par2 >= 1 && par2 < 5)\n {\n if (!this.mergeItemStack(itemstack1, 9, 45, false))\n {\n return null;\n }\n }\n else if (par2 >= 5 && par2 < 9)\n {\n if (!this.mergeItemStack(itemstack1, 9, 45, false))\n {\n return null;\n }\n }\n else if (itemstack.getItem() instanceof ItemArmor && !((Slot)this.inventorySlots.get(5 + ((ItemArmor)itemstack.getItem()).armorType)).getHasStack())\n {\n int j = 5 + ((ItemArmor)itemstack.getItem()).armorType;\n\n if (!this.mergeItemStack(itemstack1, j, j + 1, false))\n {\n return null;\n }\n }\n else if (par2 >= 9 && par2 < 36)\n {\n if (!this.mergeItemStack(itemstack1, 36, 45, false))\n {\n return null;\n }\n }\n else if (par2 >= 36 && par2 < 45)\n {\n if (!this.mergeItemStack(itemstack1, 9, 36, false))\n {\n return null;\n }\n }\n else if (!this.mergeItemStack(itemstack1, 9, 45, false))\n {\n return null;\n }\n\n if (itemstack1.stackSize == 0)\n {\n slot.putStack((ItemStack)null);\n }\n else\n {\n slot.onSlotChanged();\n }\n\n if (itemstack1.stackSize == itemstack.stackSize)\n {\n return null;\n }\n\n slot.onPickupFromSlot(par1EntityPlayer, itemstack1);\n }\n\n return itemstack;\n }", "public void setItemStack(ItemStack stack) {\n item = stack.clone();\n }", "public static ItemStack createStackFromTileEntity (TileEntity tile) {\n \n final ItemStack stack = new ItemStack(tile.getBlockType(), 1, tile.getBlockMetadata());\n prepareDataTag(stack);\n final NBTTagCompound tileTag = tile.writeToNBT(new NBTTagCompound());\n stack.getTagCompound().setTag(\"TileData\", tileTag);\n return stack;\n }", "public static String writeStackToString (ItemStack stack) {\n \n return stack.getItem().getRegistryName().toString() + \"#\" + stack.getItemDamage();\n }", "public ItemStack func_82846_b(EntityPlayer par1EntityPlayer, int slot) {\n/* 82 */ ItemStack stack = ItemStack.field_190927_a;\n/* 83 */ Slot slotObject = (Slot)this.field_75151_b.get(slot);\n/* */ \n/* */ \n/* 86 */ if (slotObject != null && slotObject.func_75216_d()) {\n/* 87 */ ItemStack stackInSlot = slotObject.func_75211_c();\n/* 88 */ stack = stackInSlot.func_77946_l();\n/* */ \n/* 90 */ if (slot == 0) {\n/* 91 */ if (!func_75135_a(stackInSlot, 1, this.field_75151_b.size(), true)) {\n/* 92 */ return ItemStack.field_190927_a;\n/* */ }\n/* */ }\n/* 95 */ else if (!func_75135_a(stackInSlot, 0, 1, false)) {\n/* 96 */ return ItemStack.field_190927_a;\n/* */ } \n/* */ \n/* 99 */ if (stackInSlot.func_190916_E() == 0) {\n/* 100 */ slotObject.func_75215_d(ItemStack.field_190927_a);\n/* */ } else {\n/* 102 */ slotObject.func_75218_e();\n/* */ } \n/* */ } \n/* */ \n/* 106 */ return stack;\n/* */ }", "public static ItemStack createItemStack()\r\n \t{\r\n \t\treturn new ItemStack(0);\r\n \t}", "public void push(int item) {\n\t\t// TODO Auto-generated method stub\n\t\tif(position >= stack.length-1){\n\t\t\tSystem.out.println(\"Stack is full!\");\n\t\t}else{\n\t\t\tstack[position] = item;\n\t\t\tposition++;\n\t\t}\n\t}", "public void readInventoryFromNBT(CompoundNBT tag) {\n ListNBT nbttaglist = tag.getList(TAG_ITEMS, NBT.TAG_COMPOUND);\n\n int limit = this.getInventoryStackLimit();\n ItemStack stack;\n for (int i = 0; i < nbttaglist.size(); ++i) {\n CompoundNBT itemTag = nbttaglist.getCompound(i);\n int slot = itemTag.getByte(TAG_SLOT) & 255;\n if (slot < this.inventory.size()) {\n stack = ItemStack.read(itemTag);\n if (!stack.isEmpty() && stack.getCount() > limit) {\n stack.setCount(limit);\n }\n this.inventory.set(slot, stack);\n }\n }\n }", "public ItemStack getItemStack() {\n\t\treturn this.itemStack;\n\t}", "@Override\n\tpublic ItemStack slotClick(int slot, int p_75144_2_, int p_75144_3_, EntityPlayer player)\n\t{\n\t\tItemStack stack;\n\t\tif(slot != -999)\n\t\t\tstack = player.inventory.mainInventory[slot];\n\t\telse stack = null;\n\n\t\tif(inv != null && p_75144_2_ == 0)\n\t\t\t//Check if anything is in the slot and set the slot value if it is\n\t\t\tif(stack == null) {\n\t\t\t\tinv.setSelectedSlot(-1);\n\t\t\t}\n\t\t\telse\n\t\t\t\tfor(int id : OreDictionary.getOreIDs(stack)) {\n\t\t\t\t\tif(OreDictionary.getOreName(id).startsWith(\"ore\") || OreDictionary.getOreName(id).startsWith(\"gem\") || OreDictionary.getOreName(id).startsWith(\"dust\")) {\n\t\t\t\t\t\tinv.setSelectedSlot(slot);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\treturn stack;\n\n\t}", "public NBTTagCompound writeToNBT(NBTTagCompound tag)\r\n/* 158: */ {\r\n/* 159:159 */ tag.setByte(\"Id\", (byte)getID());\r\n/* 160:160 */ tag.setByte(\"Amplifier\", (byte)getAmplifier());\r\n/* 161:161 */ tag.setInt(\"Duration\", getDuration());\r\n/* 162:162 */ tag.setBoolean(\"Ambient\", getAmbient());\r\n/* 163:163 */ tag.setBoolean(\"ShowParticles\", getShowParticles());\r\n/* 164:164 */ return tag;\r\n/* 165: */ }", "public static NBTTagCompound prepareDataTag (ItemStack stack) {\n \n if (!stack.hasTagCompound())\n stack.setTagCompound(new NBTTagCompound());\n \n return stack.getTagCompound();\n }", "public int addItemStack(ItemStack itemStack) {\n Item item = itemStack.getItem();\n int amount = itemStack.getAmount();\n int added = 0;\n\n List<ItemStack> itemStacksToRemove = new ArrayList<>();\n for (ItemStack itemStack1 : this.ITEMS) {\n if (itemStack1.getItem() == item) {\n amount += itemStack1.getAmount();\n itemStacksToRemove.add(itemStack1);\n }\n }\n\n // clear inventory\n for (ItemStack itemStack1 : itemStacksToRemove)\n this.ITEMS.remove(itemStack1);\n\n System.out.println(String.format(\"Total amount of %s: %d\", item.getName(), amount));\n\n int stack_size = item.getMaxStack();\n int stacks = amount / stack_size;\n int last_stack = amount % stack_size;\n\n System.out.println(String.format(\"Stack size: %d, full stacks: %s, last stack: %d, inv size: %d, inv full: %d\", stack_size, stacks, last_stack, this.getSize(), this.ITEMS.size()));\n\n // add full stacks\n for (int i = 0; i < stacks; i++) {\n if (this.ITEMS.size() > this.getSize())\n break;\n\n System.out.println(\"Added full stack\");\n this.ITEMS.add(new ItemStack(item, stack_size));\n added += stack_size;\n }\n\n // add last (not full) stack\n if (last_stack != 0 && this.ITEMS.size() < this.getSize()) {\n System.out.println(\"Added partial stack\");\n this.ITEMS.add(new ItemStack(item, last_stack));\n added += last_stack;\n }\n\n for (InventoryChangedEvent listener : listeners)\n listener.onInventoryChanged(this);\n\n return added;\n }", "public ItemStack func_82846_b(EntityPlayer par1EntityPlayer, int par2)\n/* */ {\n/* 64 */ ItemStack itemstack = null;\n/* 65 */ Slot slot = (Slot)this.field_75151_b.get(par2);\n/* */ \n/* 67 */ if ((slot != null) && (slot.func_75216_d()))\n/* */ {\n/* 69 */ ItemStack itemstack1 = slot.func_75211_c();\n/* 70 */ itemstack = itemstack1.func_77946_l();\n/* */ \n/* 72 */ if (par2 != 0)\n/* */ {\n/* 74 */ if ((itemstack1.func_77973_b() instanceof ItemFocusBasic))\n/* */ {\n/* 76 */ if (!func_75135_a(itemstack1, 0, 1, false))\n/* */ {\n/* 78 */ return null;\n/* */ }\n/* */ }\n/* 81 */ else if ((par2 >= 1) && (par2 < 28))\n/* */ {\n/* 83 */ if (!func_75135_a(itemstack1, 28, 37, false))\n/* */ {\n/* 85 */ return null;\n/* */ }\n/* */ }\n/* 88 */ else if ((par2 >= 28) && (par2 < 37) && (!func_75135_a(itemstack1, 1, 28, false)))\n/* */ {\n/* 90 */ return null;\n/* */ }\n/* */ }\n/* 93 */ else if (!func_75135_a(itemstack1, 1, 37, false))\n/* */ {\n/* 95 */ return null;\n/* */ }\n/* */ \n/* 98 */ if (itemstack1.field_77994_a == 0)\n/* */ {\n/* 100 */ slot.func_75215_d((ItemStack)null);\n/* */ }\n/* */ else\n/* */ {\n/* 104 */ slot.func_75218_e();\n/* */ }\n/* */ \n/* 107 */ if (itemstack1.field_77994_a == itemstack.field_77994_a)\n/* */ {\n/* 109 */ return null;\n/* */ }\n/* */ \n/* 112 */ slot.func_82870_a(par1EntityPlayer, itemstack1);\n/* */ }\n/* */ \n/* 115 */ return itemstack;\n/* */ }", "@Override\n\n\t public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)\n\t {\n\t ItemStack itemstack = null;\n\t Slot slot = (Slot)this.inventorySlots.get(par2);\n\n\t if (slot != null && slot.getHasStack())\n\t {\n\t ItemStack itemstack1 = slot.getStack();\n\t itemstack = itemstack1.copy();\n\n\t if (par2 < this.giftBoxEntity.getSizeInventory())\n\t {\n\t if (!this.mergeItemStack(itemstack1, this.giftBoxEntity.getSizeInventory(), this.inventorySlots.size(), true))\n\t {\n\t return null;\n\t }\n\t }\n\t else if (!this.mergeItemStack(itemstack1, 0, this.giftBoxEntity.getSizeInventory(), false))\n\t {\n\t return null;\n\t }\n\n\t if (itemstack1.stackSize == 0)\n\t {\n\t slot.putStack((ItemStack)null);\n\t }\n\t else\n\t {\n\t slot.onSlotChanged();\n\t }\n\t }\n\n\t return itemstack;\n\t }", "@Override\n public void setInventorySlotContents(int index, @Nullable ItemStack stack1) {\n markDirty();\n int flag = 1;\n if (null == stack) {\n stack = stack1.copy();\n stack1.stackSize = 0;\n flag = 3;\n } else {\n int limit = Config.Feeder.InvSize - stack.stackSize;\n if (stack1.stackSize > limit) {\n stack.stackSize += limit;\n stack1.stackSize -= limit;\n } else {\n stack.stackSize += stack1.stackSize;\n stack1.stackSize = 0;\n }\n }\n IBlockState state = worldObj.getBlockState(getPos());\n worldObj.notifyBlockUpdate(getPos(), state, state, flag);\n }", "@Override\n\tpublic boolean isItemValidForSlot(int slot, ItemStack stack){\n\t return true;\n\t}", "@Override\n\tpublic boolean isItemValidForSlot(int i, ItemStack itemstack) {\n\t\treturn false;\n\t}", "@Override\n public void writeToNBT(NBTTagCompound tag) {\n if(this.materialName!=null && !this.materialName.equals(\"\")) {\n tag.setString(Names.NBT.material, this.materialName);\n tag.setInteger(Names.NBT.materialMeta, this.materialMeta);\n }\n super.writeToNBT(tag);\n }", "@Override\n\tpublic ItemStack removeStackFromSlot(int index) {\n\t\treturn null;\n\t}", "public ItemStack getStackInSlot(int par1)\n {\n return par1 >= 9 ? null : tile.inventory[par1];\n }", "public void setSmeltingOutput(String name, ItemStack item) {\n\t\tif (item != null && item.getItem() != null) {\n\t\t\tsmeltingOutputItem = item;\n\t\t} else {\n\t\t\tItemStack newItem = Utils.getItemStack(name);\n\t\t\tif (newItem != null) {\n\t\t\t\tsmeltingOutputItem = newItem;\n\t\t\t}\n\t\t}\n\t}", "public ItemStack getStackInSlotOnClosing(int p_70304_1_)\n {\n if (this.inventoryContents[p_70304_1_] != null)\n {\n ItemStack itemstack = this.inventoryContents[p_70304_1_];\n this.inventoryContents[p_70304_1_] = null;\n return itemstack;\n } else\n {\n return null;\n }\n }", "@Override\r\n public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)\r\n {\r\n\t\tItemStack stack = null;\r\n Slot slot = (Slot)this.inventorySlots.get(par2);\r\n\r\n if (slot != null && slot.getHasStack()) {\r\n ItemStack stack1 = slot.getStack();\r\n stack = stack1.copy();\r\n\r\n if (par2 == 0) {\r\n if (!this.mergeItemStack(stack1, 10, 46, true)) {\r\n return null;\r\n }\r\n slot.onSlotChange(stack1, stack);\r\n }\r\n else if (par2 >= 10 && par2 < 37) {\r\n if (!this.mergeItemStack(stack1, 37, 46, false)) {\r\n return null;\r\n }\r\n }\r\n else if (par2 >= 37 && par2 < 46) {\r\n if (!this.mergeItemStack(stack1, 10, 37, false)) {\r\n return null;\r\n }\r\n }\r\n else if (!this.mergeItemStack(stack1, 10, 46, false)) {\r\n return null;\r\n }\r\n\r\n if (stack1.stackSize == 0) {\r\n slot.putStack((ItemStack)null);\r\n }\r\n else {\r\n slot.onSlotChanged();\r\n }\r\n\r\n if (stack1.stackSize == stack.stackSize) {\r\n return null;\r\n }\r\n\r\n slot.onPickupFromSlot(par1EntityPlayer, stack1);\r\n }\r\n\r\n return stack;\r\n }", "default ItemStack addStack(ItemStack stack) {\n for (IInventoryAdapter inv : this) {\n InventoryManipulator im = InventoryManipulator.get(inv);\n stack = im.addStack(stack);\n if (InvTools.isEmpty(stack))\n return InvTools.emptyStack();\n }\n return stack;\n }", "public void push(char item) {\n StackNode stackNode = new StackNode(item);\n\n if (top == null) { //if list is empty\n top = stackNode;\n }\n else { //list is not empty\n stackNode.next = top;\n top = stackNode;\n }\n }", "public void push (E item){\n this.stack.add(item);\n }", "Optional<ItemStack> getItemStack();", "@Override\r\n\tpublic final ItemStack getItemAt(final int slot) {\r\n\t\treturn slot < this.tools.size() ? this.tools.get(slot).get(this.getViewer()) : null;\r\n\t}", "public Item(Integer itemSlot) {\n this.itemSlot = itemSlot;\n }", "@Override\n\tprotected void writeEntityToNBT(NBTTagCompound tag) {\n\t\ttag.setByte(\"Fuse\", (byte)this.fuse);\n\t\ttag.setByte(\"Variant\", (byte)this.variant);\n\t}", "protected void writeToPacket(NBTTagCompound nbt) {\n }", "public ItemStack getStackInSlot(int p_70301_1_)\n {\n return p_70301_1_ >= 0 && p_70301_1_ < this.inventoryContents.length ? this.inventoryContents[p_70301_1_] : null;\n }", "public boolean addItem( GameItem gameItem , boolean stack )\n {\n int slot = -1;\n for( int i = 0 ; i < size ; i++ ) {\n GameItem item = items[ i ];\n if( stack ) {\n if( item != null ) {\n if( item.getId() == gameItem.getId() ) {\n item.add( gameItem.getAmount() );\n return true;\n }\n } else {\n if( slot == -1 ) {\n slot = i;\n }\n }\n } else {\n if( item == null ) {\n items[ i ] = gameItem;\n return true;\n }\n }\n }\n \n if( slot != -1 ) {\n items[ slot ] = gameItem;\n return true;\n }\n \n return false;\n }", "@Override\n public void set(@Nonnull ItemStack stack) {\n ((IItemHandlerModifiable) this.getItemHandler()).setStackInSlot(index, stack);\n }", "@Override\r\n\tpublic void push(int item) {\n\t\tif(tos == stack.length-1)\r\n\t\t\tSystem.out.println(\"스택이 꽉참\");\r\n\t\telse\r\n\t\t\tstack[++tos] = item;//화살표 즉시 +1 한후 들어온 값 대입\r\n\t}", "public NBTTagCompound writeToNBT(NBTTagCompound nbt)\n {\n nbt.setDouble(\"x\", this.x);\n nbt.setDouble(\"y\", this.y);\n nbt.setDouble(\"z\", this.z);\n return nbt;\n }", "public void setSmeltingOutput(ItemStack item) {\n\t\tsetSmeltingOutput(\"\", item);\n\t}", "public void smeltItem() {\n\t\tif (this.canSmelt()) {\n\t\t\tItemStack itemstack = FurnaceRecipes.smelting().getSmeltingResult(\n\t\t\t\t\tthis.slots[0]);\n\t\t\tif (this.slots[1] == null) {\n\t\t\t\tthis.slots[1] = itemstack.copy();\n\t\t\t} else if (this.slots[1].getItem() == itemstack.getItem()) {\n\t\t\t\tthis.slots[1].stackSize += itemstack.stackSize;\n\t\t\t}\n\n\t\t\t--this.slots[0].stackSize;\n\n\t\t\tif (this.slots[0].stackSize <= 0) {\n\t\t\t\tthis.slots[0] = null;\n\t\t\t}\n\t\t}\n\t}", "public void writeToNBT(NBTTagCompound nbt) {\n\t\tnbt.setInteger(\"xSize\", sizeX);\n\t\tnbt.setInteger(\"ySize\", sizeY);\n\t\tnbt.setInteger(\"zSize\", sizeZ);\n\n\n\t\tIterator<TileEntity> tileEntityIterator = tileEntities.iterator();\n\t\tNBTTagList tileList = new NBTTagList();\n\t\twhile(tileEntityIterator.hasNext()) {\n\t\t\tTileEntity tile = tileEntityIterator.next();\n\t\t\ttry {\n\t\t\t\tNBTTagCompound tileNbt = new NBTTagCompound();\n\t\t\t\ttile.writeToNBT(tileNbt);\n\t\t\t\ttileList.appendTag(tileNbt);\n\t\t\t} catch(RuntimeException e) {\n\t\t\t\tAdvancedRocketry.logger.warn(\"A tile entity has thrown an error: \" + tile.getClass().getCanonicalName());\n\t\t\t\tblocks[tile.getPos().getX()][tile.getPos().getY()][tile.getPos().getZ()] = Blocks.AIR;\n\t\t\t\tmetas[tile.getPos().getX()][tile.getPos().getY()][tile.getPos().getZ()] = 0;\n\t\t\t\ttileEntityIterator.remove();\n\t\t\t}\n\t\t}\n\n\t\tint[] blockId = new int[sizeX*sizeY*sizeZ];\n\t\tint[] metasId = new int[sizeX*sizeY*sizeZ];\n\t\tfor(int x = 0; x < sizeX; x++) {\n\t\t\tfor(int y = 0; y < sizeY; y++) {\n\t\t\t\tfor(int z = 0; z < sizeZ; z++) {\n\t\t\t\t\tblockId[z + (sizeZ*y) + (sizeZ*sizeY*x)] = Block.getIdFromBlock(blocks[x][y][z]);\n\t\t\t\t\tmetasId[z + (sizeZ*y) + (sizeZ*sizeY*x)] = (int)metas[x][y][z];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tNBTTagIntArray idList = new NBTTagIntArray(blockId);\n\t\tNBTTagIntArray metaList = new NBTTagIntArray(metasId);\n\n\t\tnbt.setTag(\"idList\", idList);\n\t\tnbt.setTag(\"metaList\", metaList);\n\t\tnbt.setTag(\"tiles\", tileList);\n\n\n\t\t/*for(int x = 0; x < sizeX; x++) {\n\t\t\tfor(int y = 0; y < sizeY; y++) {\n\t\t\t\tfor(int z = 0; z < sizeZ; z++) {\n\n\t\t\t\t\tidList.appendTag(new NBTTagInt(Block.getIdFromBlock(blocks[x][y][z])));\n\t\t\t\t\tmetaList.appendTag(new NBTTagInt(metas[x][y][z]));\n\n\t\t\t\t\t//NBTTagCompound tag = new NBTTagCompound();\n\t\t\t\t\ttag.setInteger(\"block\", Block.getIdFromBlock(blocks[x][y][z]));\n\t\t\t\t\ttag.setShort(\"meta\", metas[x][y][z]);\n\n\t\t\t\t\tNBTTagCompound tileNbtData = null;\n\n\t\t\t\t\tfor(TileEntity tile : tileEntities) {\n\t\t\t\t\t\tNBTTagCompound tileNbt = new NBTTagCompound();\n\n\t\t\t\t\t\ttile.writeToNBT(tileNbt);\n\n\t\t\t\t\t\tif(tileNbt.getInteger(\"x\") == x && tileNbt.getInteger(\"y\") == y && tileNbt.getInteger(\"z\") == z){\n\t\t\t\t\t\t\ttileNbtData = tileNbt;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif(tileNbtData != null)\n\t\t\t\t\t\ttag.setTag(\"tile\", tileNbtData);\n\n\t\t\t\t\tnbt.setTag(String.format(\"%d.%d.%d\", x,y,z), tag);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}*/\n\t}", "public void setInventorySlotContents(int par1, ItemStack par2ItemStack)\n {\n this.furnaceItemStacks[par1] = par2ItemStack;\n\n if (par2ItemStack != null && par2ItemStack.stackSize > this.getInventoryStackLimit())\n {\n par2ItemStack.stackSize = this.getInventoryStackLimit();\n }\n }", "@Override\n\tpublic ItemStack decrStackSize(int index, int count) {\n\t\treturn null;\n\t}", "@Override\n\tpublic ItemStack getStackInSlotOnClosing(int var1) {\n\t\treturn null;\n\t}", "@Override\n public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par1) {\n\t\treturn null;\n }", "ItemStack make();", "private void itemEncode(Player player) {\n\t\tPlayerInventory inventory = player.getInventory();\n\t\tItemStack heldItem = inventory.getItemInMainHand();\n\t\tList<String> data = CryptoSecure.encodeItemStack(heldItem);\n\t\t\n\t\tItemStack holder = new ItemStack(Material.WRITTEN_BOOK);\n\t\tBookMeta meta = (BookMeta) holder.getItemMeta();\n\t\tmeta.setAuthor(\"WATCHBOX\");\n\t\tmeta.setTitle(\"(Placeholder)\");\n\t\tmeta.setPages(data);\n\t\tholder.setItemMeta(meta);\n\t\t\n\t\tinventory.addItem(holder);\n\t}", "public void toNBT(NBTTagCompound tag)\n {\n tag.setString(\"Name\", this.name);\n }", "public void writeEntityToNBT(NBTTagCompound tagCompound) {\n/* 165 */ tagCompound.setInteger(\"Life\", this.fireworkAge);\n/* 166 */ tagCompound.setInteger(\"LifeTime\", this.lifetime);\n/* 167 */ ItemStack var2 = this.dataWatcher.getWatchableObjectItemStack(8);\n/* */ \n/* 169 */ if (var2 != null) {\n/* */ \n/* 171 */ NBTTagCompound var3 = new NBTTagCompound();\n/* 172 */ var2.writeToNBT(var3);\n/* 173 */ tagCompound.setTag(\"FireworksItem\", (NBTBase)var3);\n/* */ } \n/* */ }", "private void appendItemStackString(StringBuilder buffy, @Nullable ItemStack stack,\n SerializerOutputType outputType) {\n\n if (stack == null) {\n stack = new ItemStack(Material.AIR, -1);\n }\n\n // material name\n if (outputType == SerializerOutputType.COLOR)\n buffy.append(ChatColor.GREEN);\n\n buffy.append(stack.getType().name());\n\n // material data\n short data = stack.getData().getData();\n if (data != 0) {\n if (outputType == SerializerOutputType.COLOR)\n buffy.append(ChatColor.DARK_GRAY);\n buffy.append(':');\n\n if (outputType == SerializerOutputType.COLOR)\n buffy.append(ChatColor.YELLOW);\n buffy.append(data);\n\n if (outputType == SerializerOutputType.COLOR)\n buffy.append(ChatColor.GRAY);\n }\n else if (outputType == SerializerOutputType.COLOR) {\n buffy.append(ChatColor.GRAY);\n }\n\n // quantity\n\n if (stack.getAmount() != 1) {\n buffy.append(';');\n\n if (outputType == SerializerOutputType.COLOR)\n buffy.append(ChatColor.AQUA);\n\n buffy.append(stack.getAmount());\n }\n\n Collection<IItemMetaHandler> handlers = _metaHandlers.getHandlers();\n\n List<ItemMetaValue> metaObjects = new ArrayList<>(10);\n\n for (IItemMetaHandler handler : handlers) {\n metaObjects.addAll(handler.getMeta(stack));\n }\n\n if (!metaObjects.isEmpty()) {\n buffy.append('{');\n\n for (int i=0, last = metaObjects.size() - 1; i < metaObjects.size(); i++) {\n\n ItemMetaValue meta = metaObjects.get(i);\n\n buffy.append(meta.getName());\n\n buffy.append(':');\n buffy.append('\"');\n\n Matcher matcher = TextUtils.PATTERN_DOUBLE_QUOTE.matcher(meta.getRawData());\n buffy.append(matcher.replaceAll(\"\\\\\\\"\"));\n\n buffy.append('\"');\n\n if (i < last) {\n buffy.append(',');\n }\n }\n\n buffy.append('}');\n }\n }", "ItemStack getItemstackWithMaterial(Material material);", "protected ItemStack createStackedBlock(int par1) {\n\t\treturn new ItemStack(this.blockID, 1, par1);\n\t}", "@Override\n\tpublic void setInventorySlotContents(int p_70299_1_, ItemStack p_70299_2_) {\n\t\tfield_145900_a[p_70299_1_] = p_70299_2_;\n\n\t\tif (p_70299_2_ != null\n\t\t\t\t&& p_70299_2_.stackSize > getInventoryStackLimit()) {\n\t\t\tp_70299_2_.stackSize = getInventoryStackLimit();\n\t\t}\n\t}", "public ItemStack getIconItemStack()\n {\n return new ItemStack(Item.writableBook, 1, 0);\n }", "public ItemStack getIconItemStack()\n {\n return new ItemStack(Item.writableBook, 1, 0);\n }", "public void setStandNAME(ItemStack stack, String name) {\n/* 314 */ NBTTagCompound nbttagcompound = stack.getTagCompound();\n/* */ \n/* 316 */ if (nbttagcompound == null) {\n/* */ \n/* 318 */ nbttagcompound = new NBTTagCompound();\n/* 319 */ stack.setTagCompound(nbttagcompound);\n/* */ } \n/* */ \n/* 322 */ NBTTagCompound nbttagcompound1 = nbttagcompound.getCompoundTag(this.standInfo);\n/* */ \n/* 324 */ if (!nbttagcompound.hasKey(this.standInfo))\n/* */ {\n/* 326 */ nbttagcompound.setTag(this.standInfo, nbttagcompound1);\n/* */ }\n/* */ \n/* 329 */ nbttagcompound1.setString(this.standName, name);\n/* */ }", "@Override\n public void writeToNBT(NBTTagCompound nbtTagCompound)\n {\n super.writeToNBT(nbtTagCompound);\n nbtTagCompound.setShort(\"ProcO\", (short) this.processTimeOutput);\n nbtTagCompound.setShort(\"WholeO\", (short) this.wholeTimeOutput);\n nbtTagCompound.setDouble(\"TfP\", this.tfPooled);\n nbtTagCompound.setDouble(\"TfN\", this.tfNeeded);\n\n NBTTagCompound tag1 = this.nigariTank.writeToNBT(new NBTTagCompound());\n nbtTagCompound.setTag(\"Tank1\", tag1);\n\n NBTTagCompound tag2 = this.ingredientTank.writeToNBT(new NBTTagCompound());\n nbtTagCompound.setTag(\"Tank2\", tag2);\n }", "private void givePlayer(ItemStack item,EntityPlayer entityplayer){\n ItemStack itemstack3 = entityplayer.inventory.getItemStack();\n if(itemstack3 == null){\n \tentityplayer.inventory.setItemStack(item);\n }\n else if(NoppesUtilPlayer.compareItems(itemstack3, item, false, false)){\n\n int k1 = item.stackSize;\n if(k1 > 0 && k1 + itemstack3.stackSize <= itemstack3.getMaxStackSize())\n {\n itemstack3.stackSize += k1;\n }\n }\n }", "public void push(T item)\r\n\t{\r\n\t\t if (size == Stack.length) \r\n\t\t {\r\n\t\t\t doubleSize();\r\n\t }\r\n\t\tStack[size++] = item;\r\n\t}", "public static ArmorSlot getItemSlotEquiping(ItemStack item){\n\t\tif(item == null){\n\t\t\treturn ArmorSlot.NONE;\n\t\t}\n\t\t\n\t\tswitch(item.getType()){\n\t\t\t//Helmets:\t\n\t\t\tcase LEATHER_HELMET:\n\t\t\tcase GOLD_HELMET:\n\t\t\tcase CHAINMAIL_HELMET:\n\t\t\tcase IRON_HELMET:\n\t\t\tcase DIAMOND_HELMET: return ArmorSlot.HELMET;\n\t\t\t\n\t\t\t//Chest:\t\n\t\t\tcase LEATHER_CHESTPLATE:\n\t\t\tcase GOLD_CHESTPLATE:\n\t\t\tcase CHAINMAIL_CHESTPLATE:\n\t\t\tcase IRON_CHESTPLATE:\n\t\t\tcase DIAMOND_CHESTPLATE: return ArmorSlot.CHESTPLATE;\n\t\t\t\n\t\t\t//Legs:\t\n\t\t\tcase LEATHER_LEGGINGS:\n\t\t\tcase GOLD_LEGGINGS:\n\t\t\tcase CHAINMAIL_LEGGINGS:\n\t\t\tcase IRON_LEGGINGS:\n\t\t\tcase DIAMOND_LEGGINGS: return ArmorSlot.LEGGINGS;\n\t\t\t\n\t\t\t//feet:\t\n\t\t\tcase LEATHER_BOOTS:\n\t\t\tcase GOLD_BOOTS:\n\t\t\tcase CHAINMAIL_BOOTS:\n\t\t\tcase IRON_BOOTS:\n\t\t\tcase DIAMOND_BOOTS: return ArmorSlot.BOOTS;\n\t\t\n\t\t\n\t\t\tdefault: return ArmorSlot.NONE;\n\t\t}\n\t}", "public boolean isItemValidForSlot(int slot, ItemStack stack)\n {\n return slot == 0;\n }", "@Override\n public void save(NBTTagCompound nbt)\n {\n \n }", "public void setStandID(ItemStack stack, int ID) {\n/* 219 */ NBTTagCompound nbttagcompound = stack.getTagCompound();\n/* */ \n/* 221 */ if (nbttagcompound == null) {\n/* */ \n/* 223 */ nbttagcompound = new NBTTagCompound();\n/* 224 */ stack.setTagCompound(nbttagcompound);\n/* */ } \n/* */ \n/* 227 */ NBTTagCompound nbttagcompound1 = nbttagcompound.getCompoundTag(this.standInfo);\n/* */ \n/* 229 */ if (!nbttagcompound.hasKey(this.standInfo))\n/* */ {\n/* 231 */ nbttagcompound.setTag(this.standInfo, nbttagcompound1);\n/* */ }\n/* */ \n/* 234 */ nbttagcompound1.setInteger(this.standID, ID);\n/* */ }" ]
[ "0.7008086", "0.6852255", "0.62623227", "0.6252094", "0.62075526", "0.61661863", "0.60797733", "0.60683525", "0.59863734", "0.59215313", "0.5902086", "0.5897317", "0.58894455", "0.58638483", "0.58546144", "0.5854022", "0.5793842", "0.5789038", "0.5763776", "0.57418317", "0.5715057", "0.5714684", "0.5690311", "0.56867766", "0.56773615", "0.5658778", "0.5641177", "0.56403816", "0.56382906", "0.56250465", "0.55772346", "0.5573205", "0.55615497", "0.55526686", "0.5545787", "0.55457604", "0.5533255", "0.553066", "0.55263984", "0.54875875", "0.54686576", "0.54086906", "0.54030335", "0.53956044", "0.5359093", "0.5347415", "0.5309706", "0.5298362", "0.5296623", "0.52597725", "0.52589643", "0.5246435", "0.52421695", "0.5234478", "0.5231156", "0.523088", "0.5229357", "0.52275556", "0.5212696", "0.5189294", "0.5175159", "0.51748073", "0.5165596", "0.5155589", "0.51460284", "0.51283157", "0.5106058", "0.5099663", "0.5092709", "0.50915426", "0.5084945", "0.5079214", "0.50757784", "0.50723183", "0.50723004", "0.5061178", "0.50529397", "0.5050644", "0.50485355", "0.5035626", "0.5029369", "0.5022793", "0.4997493", "0.49971285", "0.49894816", "0.49880835", "0.49548993", "0.4953012", "0.49475962", "0.49359435", "0.49340582", "0.49340582", "0.49176398", "0.491247", "0.49082765", "0.49069914", "0.4902399", "0.48838565", "0.48762727", "0.48636666" ]
0.80538183
0
Read a full inventory (players, chests, etc.) from a compound list.
public static ItemStack[] readInventory(List<CompoundTag> tagList, int start, int size) { ItemStack[] items = new ItemStack[size]; for (CompoundTag tag : tagList) { tag.readByte("Slot", slot -> { if (slot >= start && slot < start + size) { items[slot - start] = readItem(tag); } }); } return items; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readFromNBT(NBTTagCompound par1NBTTagCompound)\n {\n super.readFromNBT(par1NBTTagCompound);\n NBTTagList var2 = par1NBTTagCompound.getTagList(\"Items\");\n this.furnaceItemStacks = new ItemStack[this.getSizeInventory()];\n\n for (int var3 = 0; var3 < var2.tagCount(); ++var3)\n {\n NBTTagCompound var4 = (NBTTagCompound)var2.tagAt(var3);\n byte var5 = var4.getByte(\"Slot\");\n\n if (var5 >= 0 && var5 < this.furnaceItemStacks.length)\n {\n this.furnaceItemStacks[var5] = ItemStack.loadItemStackFromNBT(var4);\n }\n }\n\n this.fuel = par1NBTTagCompound.getShort(\"Fuel\");\n this.furnaceCookTime = par1NBTTagCompound.getShort(\"CookTime\");\n this.direction = par1NBTTagCompound.getShort(\"Direction\");\n this.furnaceTimeBase = par1NBTTagCompound.getShort(\"TimeBase\");\n this.maxFuel = par1NBTTagCompound.getShort(\"MaxFuel\");\n sync();\n }", "public void readInventoryFromNBT(CompoundNBT tag) {\n ListNBT nbttaglist = tag.getList(TAG_ITEMS, NBT.TAG_COMPOUND);\n\n int limit = this.getInventoryStackLimit();\n ItemStack stack;\n for (int i = 0; i < nbttaglist.size(); ++i) {\n CompoundNBT itemTag = nbttaglist.getCompound(i);\n int slot = itemTag.getByte(TAG_SLOT) & 255;\n if (slot < this.inventory.size()) {\n stack = ItemStack.read(itemTag);\n if (!stack.isEmpty() && stack.getCount() > limit) {\n stack.setCount(limit);\n }\n this.inventory.set(slot, stack);\n }\n }\n }", "public void loadItems() {\n\t\tArrayList<String> lines = readData();\n\t\tfor (int i = 1; i < lines.size(); i++) {\n\t\t\tString line = lines.get(i);\n\t\t\t\n\t\t\tString[] parts = line.split(\",\");\n\t\t\t\n//\t\t\tSystem.out.println(\"Name: \" + parts[0]);\n//\t\t\tSystem.out.println(\"Amount: \" + parts[1]);\n//\t\t\tSystem.out.println(\"Price: \" + parts[2]);\n//\t\t\tSystem.out.println(\"-------\");\n\t\t\t\n\t\t\tString name = parts[0].trim();\n\t\t\tint amount = Integer.parseInt(parts[1].trim());\n\t\t\tdouble price = Double.parseDouble(parts[2].trim());\n\t\t\t\n\t\t\tItem item = new Item(name, amount, price);\n\t\t\titemsInStock.add(item);\n\t\t}\n\t}", "@Override\n public void readFromNBT(NBTTagCompound nbt)\n {\n super.readFromNBT(nbt);\n pokedexNb = nbt.getInteger(\"pokedexNb\");\n time = nbt.getInteger(\"time\");\n NBTBase temp = nbt.getTag(\"Inventory\");\n if (temp instanceof NBTTagList)\n {\n NBTTagList tagList = (NBTTagList) temp;\n for (int i = 0; i < tagList.tagCount(); i++)\n {\n NBTTagCompound tag = tagList.getCompoundTagAt(i);\n byte slot = tag.getByte(\"Slot\");\n\n if (slot >= 0 && slot < inventory.length)\n {\n inventory[slot] = ItemStack.loadItemStackFromNBT(tag);\n }\n }\n }\n }", "SimpleInventory getOpenedInventory(Player player);", "List<InventoryItem> getInventory();", "@Override\r\n\tprotected void readImpl()\r\n\t{\r\n\t\t_listId = readD();\r\n\t\tint count = readD();\r\n\t\tif (count <= 0 || count > Config.MAX_ITEM_IN_PACKET || count * BATCH_LENGTH != getByteBuffer().remaining())\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t_items = new Item[count];\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t{\r\n\t\t\tint objectId = readD();\r\n\t\t\tint itemId = readD();\r\n\t\t\tlong cnt = readQ();\r\n\t\t\tif (objectId < 1 || itemId < 1 || cnt < 1)\r\n\t\t\t{\r\n\t\t\t\t_items = null;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t_items[i] = new Item(objectId, itemId, cnt);\r\n\t\t}\r\n\t}", "private void loadInventory(String fileName){\t\t\r\n\t\tList<String> list = new ArrayList<String>();\r\n\r\n\t\ttry (Stream<String> stream = Files.lines(Paths.get(fileName))) {\r\n\t\t\t//Convert it into a List\r\n\t\t\tlist = stream.collect(Collectors.toList());\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tfor(String itemList : list){\r\n\t\t\tString[] elements = itemList.split(\"--\");\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tswitch(elements[0].toUpperCase()){\r\n\t\t\t\t\tcase \"BURGER\":\r\n\t\t\t\t\t\t\tinventory.add(createBurger(elements));;\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\r\n\t\t\t\t\tcase \"SALAD\":\r\n\t\t\t\t\t\t\tinventory.add(createSalad(elements));;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"BEVERAGE\":\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tinventory.add(createBeverage(elements));;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"SIDE\":\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tinventory.add(createSide(elements));;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"DESSERT\":\r\n\t\t\t\t\t\t\tinventory.add(createDessert(elements));;\r\n\t\t\t\t\t\t\tbreak;\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}", "Collection<Item> getInventory();", "List<SimpleInventory> getInventories();", "private void loadStartingInventory(){\n this.shelfList = floor.getShelf();\n Iterator<String> i = items.iterator();\n for (Shelf s : shelfList){\n while (s.hasFreeSpace()){\n s.addItem(i.next(), 1);\n }\n }\n }", "public void readAdditional(CompoundNBT compound) {\n super.readAdditional(compound);\n if (compound.contains(\"EggLayTime\")) {\n this.timeUntilNextEgg = compound.getInt(\"EggLayTime\");\n }\n if (compound.contains(\"isBreed\")) {\n this.breed = compound.getBoolean(\"isBreed\");\n }\n if (compound.contains(\"isSleeping\")) {\n this.sleeping = compound.getBoolean(\"isSleeping\");\n }\n if (compound.contains(\"leaderEntity\") && !world.isRemote()) {\n Entity e = ((ServerWorld)world).getEntityByUuid(UUID.fromString(compound.getString(\"leaderEntity\")));\n if(e instanceof AbstractDuckEntity){\n leader = (AbstractDuckEntity) e;\n Main.LOGGER.debug(\"My leader is \" + leader==this + \" \" + leader);\n }\n }else{\n Main.LOGGER.debug(\"Cannot get leader\");\n\n }\n if (compound.contains(\"isGroupLeader\")) {\n this.isGroupLeader = compound.getBoolean(\"isGroupLeader\");\n if(!world.isRemote() && compound.contains(\"duckGroup\")){\n ListNBT l = (ListNBT)compound.get(\"duckGroup\");\n\n assert l != null;\n\n for(INBT nbt : l){\n Main.LOGGER.info(\"Reading nbt...\");\n String s = ((CompoundNBT)nbt).getString(\"uuid\");\n Entity e = ((ServerWorld)world).getEntityByUuid(UUID.fromString(s));\n if(e instanceof AbstractDuckEntity){\n Main.LOGGER.info(\"Readed from uuid \" + group.size() + \" : \" + e);\n\n group.add((AbstractDuckEntity)e);\n }\n }\n }\n }else{\n //new spawned\n }\n\n }", "protected void readEntityFromNBT(NBTTagCompound paramfn)\r\n/* 132: */ {\r\n/* 133:155 */ super.readEntityFromNBT(paramfn);\r\n/* 134: */ \r\n/* 135:157 */ fv localfv = paramfn.c(\"Items\", 10);\r\n/* 136:158 */ this.a = new ItemStack[getSize()];\r\n/* 137:159 */ for (int i = 0; i < localfv.c(); i++)\r\n/* 138: */ {\r\n/* 139:160 */ NBTTagCompound localfn = localfv.b(i);\r\n/* 140:161 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 141:162 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 142:163 */ this.a[j] = ItemStack.loadItemStackFromNBT(localfn);\r\n/* 143: */ }\r\n/* 144: */ }\r\n/* 145: */ }", "private static Inventory[] createInventoryList() {\n Inventory[] inventory = new Inventory[3];\r\n \r\n Inventory potion = new Inventory();\r\n potion.setDescription(\"potion\");\r\n potion.setQuantityInStock(0);\r\n inventory[Item.potion.ordinal()] = potion;\r\n \r\n Inventory powerup = new Inventory();\r\n powerup.setDescription(\"powerup\");\r\n powerup.setQuantityInStock(0);\r\n inventory[Item.powerup.ordinal()] = powerup;\r\n \r\n Inventory journalclue = new Inventory();\r\n journalclue.setDescription(\"journalclue\");\r\n journalclue.setQuantityInStock(0);\r\n inventory[Item.journalclue.ordinal()] = journalclue;\r\n \r\n return inventory;\r\n }", "public abstract List<String> getInventory();", "public List<Inventory> getInventory();", "public void loadItems(String filename) throws IOException, CSVException {\n\t\tinventory = new Stock();\n\n\t\tString[] itemProperties = Utilities.readCSV(filename, 5, 6);\n\t\tfor (String line : itemProperties) {\n\t\t\tString[] properties = line.split(\",\");\n\t\t\tItem item;\n\t\t\tif (properties.length == 5) {\n\t\t\t\titem = new Item(properties[0], Double.parseDouble(properties[1]), Double.parseDouble(properties[2]),\n\t\t\t\t\t\tInteger.parseInt(properties[3]), Integer.parseInt(properties[4]));\n\t\t\t} else {\n\t\t\t\titem = new ColdItem(properties[0], Double.parseDouble(properties[1]), Double.parseDouble(properties[2]),\n\t\t\t\t\t\tInteger.parseInt(properties[3]), Integer.parseInt(properties[4]),\n\t\t\t\t\t\tDouble.parseDouble(properties[5]));\n\t\t\t}\n\n\t\t\tinventory.add(item);\n\t\t}\n\n\t}", "private ClothingItem readItem() {\n System.out.println(\"Read item {id,name,designer,price}\");\n\n BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in));\n try {\n Long id = Long.valueOf(bufferRead.readLine());\n String name = bufferRead.readLine();\n String designer = bufferRead.readLine();\n int price = Integer.parseInt(bufferRead.readLine());\n ClothingItem item = new ClothingItem(name, designer, price);\n item.setId(id);\n\n return item;\n\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n return null;\n }", "public void read(String bookName, World world) {\n\t\tItem item = world.dbItems().get(bookName);\n\t\tList<Item> items = super.getItems();\n\n\t\tif (items.contains(item) && item instanceof Book) {\n\t\t\tBook book = (Book) item;\n\t\t\tSystem.out.println(book.getBookText());\n\t\t} else {\n\t\t\tSystem.out.println(\"No book called \" + bookName + \" in inventory.\");\n\t\t}\n\t}", "public interface IInventory {\n\n\t/**\n\t * Reads the inventory from a comma separated <code>InputStream</code>, each\n\t * line in the <code>InputStream</code> represents a different\n\t * <code>Product</code>. An example input stream looks like this (the header\n\t * will be part of the input stream as well):\n\t * \n\t * <pre>\n\tupc,name,wholesalePrice,retailPrice,quantity\n\tA123,Apple,0.50,1.00,100\n\tB234,Peach,0.35,0.75,200\n\tC123,Milk,2.15,4.50,40\n\t * </pre>\n\t * \n\t * @param inputStream the stream from where to read the inventory\n\t */\n\tpublic void replenish(InputStream inputStream);\n\n\t/**\n\t * @return returns an unmodifiable <code>List</code> of <code>Product</code>\n\t * representing products inside the inventory.\n\t */\n\tpublic List<Product> list();\n\n\t/**\n\t * @param upc the UPC\n\t * @return an Optional contain the found product else an empty optional\n\t */\n\tOptional<Product> find(String upc);\n\n\t/**\n\t * Adjusts the {@link Product#getQuantity() quantity} of the {@link Product}\n\t * specified by the given UPC in this inventory by the given delta amount. If\n\t * the Product was found in this inventory, then the return value is an\n\t * {@link Optional} containing the Product with the adjusted quantity, else an\n\t * empty Optional is returned\n\t * \n\t * @param upc the UPC for the product\n\t * @param delta the delta amount to use to adjust quantity\n\t * @return an optional product with the adjustedQuantity or empty Optional if no\n\t * product found in inventory for given UPC\n\t */\n\tOptional<Product> adjustQuantity(final String upc, final Integer delta);\n}", "List<InventoryItem> getInventory(String username);", "void openInventory(Player player, SimpleInventory inventory);", "public Items getItem(String name)\n {\n return Inventory.get(name);\n }", "public void takeItemsFromChest() {\r\n currentRoom = player.getCurrentRoom();\r\n for (int i = 0; i < currentRoom.getChest().size(); i++) {\r\n player.addToInventory(currentRoom.getChest().get(i));\r\n currentRoom.getChest().remove(i);\r\n }\r\n\r\n }", "private static ArrayList<String> readInventory(Scanner source) {\n\n\t\tArrayList<String> contents = new ArrayList<String>();\n\n\t\twhile (source.hasNext()) {\n\t\t\tString line = source.nextLine();\n\t\t\tcontents.add(line);\n\t\t}\n\n\t\treturn contents;\n\t}", "public void readEntityFromNBT(NBTTagCompound tagCompund) {\n/* 182 */ this.fireworkAge = tagCompund.getInteger(\"Life\");\n/* 183 */ this.lifetime = tagCompund.getInteger(\"LifeTime\");\n/* 184 */ NBTTagCompound var2 = tagCompund.getCompoundTag(\"FireworksItem\");\n/* */ \n/* 186 */ if (var2 != null) {\n/* */ \n/* 188 */ ItemStack var3 = ItemStack.loadItemStackFromNBT(var2);\n/* */ \n/* 190 */ if (var3 != null)\n/* */ {\n/* 192 */ this.dataWatcher.updateObject(8, var3);\n/* */ }\n/* */ } \n/* */ }", "public void fillChest(Inventory inv);", "public void read(CompoundNBT nbt) {\n this.nextAvailableId = nbt.getInt(\"NextAvailableID\");\n this.tick = nbt.getInt(\"Tick\");\n ListNBT listnbt = nbt.getList(\"Raids\", 10);\n\n for(int i = 0; i < listnbt.size(); ++i) {\n CompoundNBT compoundnbt = listnbt.getCompound(i);\n Raid raid = new Raid(this.world, compoundnbt);\n this.byId.put(raid.getId(), raid);\n }\n\n }", "List<T> read();", "public ArrayList<String> readItem();", "default void read(ItemInventoryComponent target, CompoundTag tag, Optional<String> subtag, Optional<Range<Integer>> range) {\n\t\tif (tag == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tTag rawTag;\n\n\t\tif (subtag.isPresent()) {\n\t\t\trawTag = tag.get(subtag.get());\n\t\t} else {\n\t\t\trawTag = tag;\n\t\t}\n\n\t\tif (!(rawTag instanceof CompoundTag)) {\n\t\t\tAstromineCommon.LOGGER.log(Level.ERROR, \"Inventory contents failed to be read: \" + rawTag.getClass().getName() + \" is not instance of \" + CompoundTag.class.getName() + \"!\");\n\t\t\treturn;\n\t\t}\n\n\t\tCompoundTag compoundTag = (CompoundTag) rawTag;\n\n\t\tif (!compoundTag.contains(\"size\")) {\n\t\t\tAstromineCommon.LOGGER.log(Level.ERROR, \"Inventory contents failed to be read: \" + CompoundTag.class.getName() + \" does not contain 'size' value! (\" + getClass().getName() + \")\");\n\t\t\treturn;\n\t\t}\n\n\t\tint size = compoundTag.getInt(\"size\");\n\n\t\tif (size == 0) {\n\t\t\tAstromineCommon.LOGGER.log(Level.WARN, \"Inventory contents size successfully read, but with size of zero. This may indicate a non-integer 'size' value! (\" + getClass().getName() + \")\");\n\t\t}\n\n\t\tif (!compoundTag.contains(\"stacks\")) {\n\t\t\tAstromineCommon.LOGGER.log(Level.ERROR, \"Inventory contents failed to be read: \" + CompoundTag.class.getName() + \" does not contain 'stacks' subtag!\");\n\t\t\treturn;\n\t\t}\n\n\t\tTag rawStacksTag = compoundTag.get(\"stacks\");\n\n\t\tif (!(rawStacksTag instanceof CompoundTag)) {\n\t\t\tAstromineCommon.LOGGER.log(Level.ERROR, \"Inventory contents failed to be read: \" + rawStacksTag.getClass().getName() + \" is not instance of \" + CompoundTag.class.getName() + \"!\");\n\t\t\treturn;\n\t\t}\n\n\t\tCompoundTag stacksTag = (CompoundTag) rawStacksTag;\n\n\t\tint minimum = range.isPresent() ? range.get().getMinimum() : 0;\n\t\tint maximum = range.isPresent() ? range.get().getMaximum() : target.getItemSize();\n\n\t\tif (size < maximum) {\n\t\t\tAstromineCommon.LOGGER.log(Level.WARN, \"Inventory size from tag smaller than specified maximum: will continue reading!\");\n\t\t\tmaximum = size;\n\t\t}\n\n\t\tif (target.getItemSize() < maximum) {\n\t\t\tAstromineCommon.LOGGER.log(Level.WARN, \"Inventory size from target smaller than specified maximum: will continue reading!\");\n\t\t\tmaximum = target.getItemSize();\n\t\t}\n\n\t\tfor (int position = minimum; position < maximum; ++position) {\n\t\t\tif (stacksTag.contains(String.valueOf(position))) {\n\t\t\t\tTag rawStackTag = stacksTag.get(String.valueOf(position));\n\n\t\t\t\tif (!(rawStackTag instanceof CompoundTag)) {\n\t\t\t\t\tAstromineCommon.LOGGER.log(Level.ERROR, \"Inventory stack skipped: stored tag not instance of \" + CompoundTag.class.getName() + \"!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tCompoundTag stackTag = (CompoundTag) rawStackTag;\n\n\t\t\t\tItemStack stack = ItemStack.fromTag(stackTag);\n\n\t\t\t\tif (target.getItemSize() >= position) {\n\t\t\t\t\ttarget.getContents().put(position, stack);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdispatchConsumers();\n\t}", "private void loadInv() {\n\t\titem = Main.inventory.business.getAllBaked();\n\t\tString test = \"ID, Name, Amount, Price\\n\";\n\t\t//formatting for string to load into the screen\n\t\tfor(int i=0 ; i< item.size() ; i++) {\n\t\t\ttest += (i+1) + \" \" + item.get(i).getName() +\", \" \n\t\t\t\t\t+ item.get(i).getQuantity() + \n\t\t\t\t\t\", $\"+ Main.inventory.business.getItemCost(item.get(i).getName()) +\"\\n\";\n\t\t}\n\t\tthis.inv.setText(test);\n\t}", "public List<InventoryEntry> getInventoryEntries();", "static private void loadGame() {\n ArrayList loadData = data.loadGame();\n\n //inventory\n inventory = new Inventory();\n LinkedTreeMap saveMap = (LinkedTreeMap) loadData.get(0);\n if (!saveMap.isEmpty()) {\n LinkedTreeMap inventoryItemWeight = (LinkedTreeMap) saveMap.get(\"itemWeight\");\n LinkedTreeMap inventoryItemQuantity = (LinkedTreeMap) saveMap.get(\"inventory\");\n String inventoryItemQuantityString = inventoryItemQuantity.toString();\n inventoryItemQuantityString = removeCrapCharsFromString(inventoryItemQuantityString);\n String itemListString = inventoryItemWeight.toString();\n itemListString = removeCrapCharsFromString(itemListString);\n\n for (int i = 0; i < inventoryItemWeight.size(); i++) {\n String itemSet;\n double itemQuantity;\n if (itemListString.contains(\",\")) {\n itemQuantity = Double.parseDouble(inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\"=\") + 1, inventoryItemQuantityString.indexOf(\",\")));\n inventoryItemQuantityString = inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\",\") + 1, inventoryItemQuantityString.length());\n itemSet = itemListString.substring(0, itemListString.indexOf(\",\"));\n itemListString = itemListString.substring(itemListString.indexOf(\",\") + 1, itemListString.length());\n } else {\n itemSet = itemListString;\n itemQuantity = Double.parseDouble(inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\"=\") + 1, inventoryItemQuantityString.length()));\n }\n String itemName = itemSet.substring(0, itemSet.indexOf(\"=\"));\n int itemWeight = Double.valueOf(itemSet.substring(itemSet.indexOf(\"=\") + 1, itemSet.length())).intValue();\n while (itemQuantity > 0) {\n Item item = new Item(itemName, \"\", itemWeight, true);\n inventory.addItemInInventory(item);\n itemQuantity--;\n }\n }\n }\n\n //itemList\n itemLocation = new ItemLocation();\n saveMap = (LinkedTreeMap) loadData.get(1);\n if (!saveMap.isEmpty()) {\n System.out.println(saveMap.keySet());\n LinkedTreeMap itemLocationOnMap = (LinkedTreeMap) saveMap;\n String rooms = saveMap.keySet().toString();\n rooms = removeCrapCharsFromString(rooms);\n for (int j = 0; j <= itemLocationOnMap.size() - 1; j++) {\n String itemToAdd;\n\n if (rooms.contains(\",\")) {\n itemToAdd = rooms.substring(0, rooms.indexOf(\",\"));\n } else {\n itemToAdd = rooms;\n }\n\n rooms = rooms.substring(rooms.indexOf(\",\") + 1, rooms.length());\n ArrayList itemInRoom = (ArrayList) itemLocationOnMap.get(itemToAdd);\n for (int i = 0; i < itemInRoom.size(); i++) {\n Item itemLocationToAdd;\n LinkedTreeMap itemT = (LinkedTreeMap) itemInRoom.get(i);\n String itemName = itemT.get(\"name\").toString();\n String itemDesc = \"\";\n int itemWeight = (int) Double.parseDouble(itemT.get(\"weight\").toString());\n boolean itemUseable = Boolean.getBoolean(itemT.get(\"useable\").toString());\n\n itemLocationToAdd = new PickableItem(itemName, itemDesc, itemWeight, itemUseable);\n itemLocation.addItem(itemToAdd, itemLocationToAdd);\n\n }\n }\n //set room\n String spawnRoom = loadData.get(3).toString();\n currentRoom = getRoomFromName(spawnRoom);\n }\n }", "public void readEntityFromNBT(NBTTagCompound compound)\n {\n super.readEntityFromNBT(compound);\n this.setProfession(compound.getByte(\"Profession\"));\n }", "private void readFile() {\n try (BufferedReader br = new BufferedReader(new FileReader(\"../CS2820/src/production/StartingInventory.txt\"))) {\n String line = br.readLine();\n while (line != null) {\n line = br.readLine();\n this.items.add(line);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void readItems() {\n }", "@SideOnly(Side.CLIENT)\r\n/* 250: */ public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List par3List)\r\n/* 251: */ {\r\n/* 252:285 */ par3List.add(new ItemStack(par1, 1, 0));\r\n/* 253:286 */ par3List.add(new ItemStack(par1, 1, 6));\r\n/* 254:287 */ par3List.add(new ItemStack(par1, 1, 12));\r\n/* 255:288 */ par3List.add(new ItemStack(par1, 1, 13));\r\n/* 256: */ }", "List<InventoryItem> getInventory(String username, int appId);", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static ArrayList<Item> loadItems(String filename)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(new FileInputStream(new File(filename)));\r\n\t\t\tArrayList<Item> items = (ArrayList<Item>)ois.readObject();\r\n\t\t\tois.close();\r\n\t\t\tSystem.out.println(\"Loaded items from disk: \" + items.size());\r\n\t\t\treturn items;\r\n\t\t} \r\n\t\tcatch (FileNotFoundException e2) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"No locally saved \" + filename + \" - creating a new one: \" + e2.getMessage());\r\n\t\t}\r\n\t\tcatch (IOException e2) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"IO Error: \" + e2.getMessage());\r\n\t\t} \r\n\t\tcatch (ClassNotFoundException e1) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"This copy of the program is missing some files: \" + e1.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "InventoryItem getInventoryItem();", "List<E> read();", "public void data() {\n\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(\"/Users/macbook_user/Desktop/OOP Project/List.txt\"));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n return;\n }\n\n String[] columnName\n = {\"Id\", \"Name\", \"Amount\", \"Shelf#\", \"Position\"};\n int i, index;\n String line;\n try {\n br.readLine();\n while ((line = br.readLine()) != null) {\n index = 0;\n String[] se = line.split(\" \");\n Map<String, Object> item = new HashMap<>();\n for (i = 0; i < se.length; i++) {\n if (\"\".equals(se[i])) {\n continue;\n }\n if (index >= columnName.length) {\n continue;\n }\n item.put(columnName[index], se[i]);\n index++;\n }\n\n //get the amount of the item from the list\n int amount = Integer.parseInt((String) item\n .get(columnName[2]));\n\n // if amount greater than 0, Existence is Y, else N\n if (amount > 0) {\n item.put(\"Existence\", \"Y\");\n } else {\n item.put(\"Existence\", \"N\");\n }\n\n inventory.add(item);// add item to ArrayList\n }\n br.close();\n\n outPutFile();\n } catch (IOException e) {\n }\n\n }", "@Override\n public void readFromNBT(NBTTagCompound compound, boolean array) {\n super.readFromNBT(compound, array);\n fuel = DictionaryEntry.readFromNBTSafely(compound.getCompoundTag(\"fuel\"));\n edgeItem = new ItemStack(compound.getCompoundTag(\"edgeItem\"));\n }", "public void list(){\n //loop through all inventory items\n for(int i=0; i<this.items.size(); i++){\n //print listing of each item\n System.out.printf(this.items.get(i).getListing()+\"\\n\");\n }\n }", "public Item getItem(int itemIndex){\n\t\treturn inventoryItems[itemIndex];\n\t}", "public Set<InventoryCarModel> loadInventoryItems() {\r\n\t\tSet<InventoryCarModel> items = new HashSet<InventoryCarModel>();\r\n\t\ttry(BufferedReader br = new BufferedReader(new FileReader(this.data_location))) {\r\n\t\t\tString line;\r\n\t\t\tint counter = 0;\r\n\t\t\twhile ((line = br.readLine()) != null && line != \"\\n\") {\r\n\t\t\t\tString[] values = line.split(\",\");\r\n\t\t\t\tif (values[0].equals(\"vin\")) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tInventoryCarModel Inventory = new InventoryCarModel(values[0], values[1], values[2], values[3], Integer.parseInt(values[4]));\r\n\t\t\t\t\titems.add(Inventory);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Error adding vehicle to inventory: \" + e.getMessage());\r\n\t\t}\r\n\t\treturn items;\r\n\t}", "private void readItems() {\n // open file\n File file = getFilesDir();\n File todoFile = new File(file, \"scores.txt\");\n // try to find items to add\n try {\n items = new ArrayList<>(FileUtils.readLines(todoFile));\n } catch (IOException e) {\n items = new ArrayList<>();\n }\n }", "public abstract List<String> getUserInventory();", "public static ItemStack readItem(CompoundTag tag) {\n BlockDataManager blockDataManager = ((GlowServer) Bukkit.getServer()).getBlockDataManager();\n final Material[] material = {null};\n if ((!tag.readString(\"id\", id -> material[0] = ItemIds.getItem(id))\n && !tag.readShort(\"id\",\n id -> material[0] = blockDataManager.convertToBlockData(id).getMaterial()))\n || material[0] == null || material[0] == Material.AIR) {\n return null;\n }\n final byte[] count = {0};\n tag.readByte(\"Count\", x -> count[0] = x);\n if (count[0] == 0) {\n return null;\n }\n final short[] damage = {0};\n tag.readShort(\"Damage\", x -> damage[0] = x);\n ItemStack stack = new ItemStack(material[0], count[0], damage[0]);\n // This is slightly different than what tag.readItem would do, since we specify the\n // material separately.\n tag.readCompound(\"tag\",\n subtag -> stack.setItemMeta(GlowItemFactory.instance().readNbt(material[0], subtag)));\n return stack;\n }", "@SideOnly(Side.CLIENT)\n/* 34: */ public void getSubItems(Item itemId, CreativeTabs table, List list)\n/* 35: */ {\n/* 36:35 */ for (int i = 0; i < 13; i++)\n/* 37: */ {\n/* 38:36 */ ItemStack is = new ItemStack(itemId);\n/* 39:37 */ is.stackTagCompound = new NBTTagCompound();\n/* 40:38 */ is.stackTagCompound.setShort(\"Shield\", (short)i);\n/* 41:39 */ list.add(is);\n/* 42: */ }\n/* 43: */ }", "public void readEntityFromNBT(NBTTagCompound tagCompund)\n {\n super.readEntityFromNBT(tagCompund);\n\n if (tagCompund.hasKey(\"Potion\", 10))\n {\n this.potion = ItemStack.loadItemStackFromNBT(tagCompund.getCompoundTag(\"Potion\"));\n }\n else\n {\n this.setPotionDamage(tagCompund.getInteger(\"potionValue\"));\n }\n\n if (this.potion == null)\n {\n this.setDead();\n }\n }", "List<T> readList();", "public static void useBag(ReadingMaple rh, MapleClient c) {\n MapleCharacter chr = c.getPlayer();\n if (chr == null || !chr.isAlive() || chr.getMap() == null) {\n c.getSession().writeAndFlush(MainPacketCreator.resetActions(c.getPlayer()));\n return;\n }\n rh.skip(4);\n final short slot = rh.readShort();\n final int itemId = rh.readInt();\n final IItem toUse = chr.getInventory(MapleInventoryType.ETC).getItem(slot);\n\n if (toUse == null || toUse.getQuantity() < 1 || toUse.getItemId() != itemId || itemId / 10000 != 433) {\n c.getSession().writeAndFlush(MainPacketCreator.resetActions(c.getPlayer()));\n return;\n }\n boolean firstTime = !chr.getExtendedSlots().contains(toUse.getUniqueId());\n if (firstTime) {\n chr.getExtendedSlots().add(toUse.getUniqueId());\n short flag = toUse.getFlag();\n flag |= ItemFlag.UNTRADEABLE.getValue();\n toUse.setFlag(flag);\n // c.getPlayer().extendedslots_changed = true;\n c.getSession().writeAndFlush(MainPacketCreator.addInventorySlot(MapleInventoryType.EQUIP, toUse));\n }\n c.getSession().writeAndFlush(\n MainPacketCreator.openBag(chr.getExtendedSlots().indexOf(toUse.getUniqueId()), itemId, firstTime));\n c.getSession().writeAndFlush(MainPacketCreator.resetActions(c.getPlayer()));\n }", "List<InventoryItem> getInventory(int appId);", "public PlayerInventory load(Player player) {\n return new PlayerInventory(\n player,\n repository.byPlayer(player)\n .stream()\n .map(\n entity -> new LoadedItem(\n entity,\n service.retrieve(entity.itemTemplateId(), entity.effects())\n )\n )\n .collect(Collectors.toList())\n );\n }", "public void readEntityFromNBT(NBTTagCompound tagCompund) {}", "public static ArrayList<InventoryItem> getInventoryItems() {\n\n String itemUrl = REST_BASE_URL + ITEMS;\n String inventoryUrl = REST_BASE_URL + INVENTORIES;\n String availableUrl = REST_BASE_URL + INVENTORIES + AVAILABLE + CATEGORIZED;\n\n // List of items\n ArrayList<InventoryItem> items = new ArrayList<>();\n ArrayList<String> itemNames = new ArrayList<>();\n\n URL url = null;\n\n /* Fetch items from \"items\" table. */\n try {\n url = new URL(itemUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n JSONArray itemJsonArray = null;\n try {\n Log.d(TAG, \"getInventoryItems: getting items\");\n itemJsonArray = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n // Store each item into <items>. Store each item name into <itemNames>.\n for (int i = 0; i < itemJsonArray.length(); i++) {\n JSONObject jo = (JSONObject) itemJsonArray.get(i);\n InventoryItem newItem = new InventoryItem(\n jo.getString(ITEM_IMAGE_URL),\n jo.getString(ITEM_NAME),\n jo.getString(ITEM_DESCRIPTION),\n 0,\n 0);\n items.add(newItem);\n itemNames.add(jo.getString(ITEM_NAME));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n /* Fetch inventory items from \"inventories\" */\n try {\n url = new URL(inventoryUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n JSONArray jaResult = null;\n try {\n Log.d(TAG, \"getInventoryItems: getting ivnentories\");\n jaResult = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n for (int i = 0; i < jaResult.length(); i++) {\n JSONObject jo = (JSONObject) jaResult.get(i);\n int index = itemNames.indexOf(jo.getString(ITEM_NAME));\n if (index > -1) {\n InventoryItem currItem = items.get(index);\n currItem.setItemQuantity(currItem.getItemQuantity()+1);\n items.set(index, currItem);\n } else {\n // TODO: throw an exception here?\n Log.e(TAG, \"getInventoryItems: There is an item in the inventory but not in the item table!\");\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n /* get inventory stocks from \"/available/categorized\" */\n try {\n url = new URL(availableUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n\n try {\n Log.d(TAG, \"getInventoryItems: getting inventory stocks\");\n jaResult = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n for (int i = 0; i < jaResult.length(); i++) {\n JSONObject jo = (JSONObject) jaResult.get(i);\n int index = itemNames.indexOf(jo.getString(ITEM_NAME));\n if (index > -1) {\n InventoryItem currItem = items.get(index);\n currItem.setItemStock(jo.getInt(ITEM_COUNT));\n items.set(index, currItem);\n } else {\n // TODO: throw an exception here?\n Log.e(TAG, \"getInventoryItems: There is an item in the stock but not in the item table!\");\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return items;\n }", "public void printInventory()\n { \n System.out.println();\n\n // Checks if the player has items.\n if(!(getPerson(PLAYER).getInventory().getItems().isEmpty())){\n System.out.println(\"In your backpack, you have:\");\n\n // Gets each item in the player's inventory.\n for(Item item: getPerson(PLAYER).getInventory().getItems()){\n System.out.print(item.getName() + \",\");\n }\n System.out.println();\n System.out.println(\"You are carrying \"+ getPerson(PLAYER).getWeight() + \"kg.\");\n }\n else{\n System.out.println(\"There are currently no items in your backpack.\");\n }\n System.out.println();\n }", "@SideOnly(Side.CLIENT)\n public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List)\n {\n par3List.add(new ItemStack(par1, 1, 0));\n }", "@SideOnly(Side.CLIENT)\r\n public Item getItem(World p_149694_1_, int p_149694_2_, int p_149694_3_, int p_149694_4_)\r\n {\r\n return Item.getItemFromBlock(MainRegistry.blockCampfireUnlit);\r\n }", "private void refreshPlayerList() {\n List<MarketItem> items = new ArrayList<>();\n EntityRef player = localPlayer.getCharacterEntity();\n for (int i = 0; i < inventoryManager.getNumSlots(player); i++) {\n EntityRef entity = inventoryManager.getItemInSlot(player, i);\n\n if (entity.getParentPrefab() != null) {\n MarketItem item;\n\n if (entity.hasComponent(BlockItemComponent.class)) {\n String itemName = entity.getComponent(BlockItemComponent.class).blockFamily.getURI().toString();\n item = marketItemRegistry.get(itemName, 1);\n } else {\n item = marketItemRegistry.get(entity.getParentPrefab().getName(), 1);\n }\n\n items.add(item);\n }\n }\n\n tradingScreen.setPlayerItems(items);\n }", "public static FluidIngredient read(FriendlyByteBuf buffer) {\n int count = buffer.readInt();\n FluidIngredient[] ingredients = new FluidIngredient[count];\n for (int i = 0; i < count; i++) {\n Fluid fluid = ForgeRegistries.FLUIDS.getValue(new ResourceLocation(buffer.readUtf(32767)));\n if (fluid == null) {\n fluid = Fluids.EMPTY;\n }\n int amount = buffer.readInt();\n ingredients[i] = of(fluid, amount);\n }\n // if a single ingredient, do not wrap in compound\n if (count == 1) {\n return ingredients[0];\n }\n // compound for anything else\n return of(ingredients);\n }", "private void getInventoryNumber(ArrayList list){}", "private void getItemList(){\n sendPacket(Item_stocksTableAccess.getConnection().getItemList());\n \n }", "public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List)\n {\n par3List.add(new ItemStack(par1, 1, 0));\n //par3List.add(new ItemStack(par1, 1, 1));\n //par3List.add(new ItemStack(par1, 1, 2));\n //par3List.add(new ItemStack(par1, 1, 3));\n }", "public static void readAll(List<Thing> list)\n {\n list.clear(); // Clear the target list first.\n\n /* Create a new prepared statement object with the desired SQL query. */\n PreparedStatement statement = Application.database.newStatement(\"SELECT id, name, categoryId FROM things ORDER BY id\"); \n\n if (statement != null) // Assuming the statement correctly initated...\n {\n ResultSet results = Application.database.runQuery(statement); // ...run the query!\n\n if (results != null) // If some results are returned from the query...\n {\n try { // ...add each one to the list.\n while (results.next()) { \n list.add( new Thing(results.getInt(\"id\"), results.getString(\"name\"), results.getInt(\"categoryId\")));\n }\n }\n catch (SQLException resultsexception) // Catch any error processing the results.\n {\n System.out.println(\"Database result processing error: \" + resultsexception.getMessage());\n }\n }\n }\n\n }", "public void readObject (ObjectInputStream in)\n throws IOException\n {\n int topSlots = in.readByte();\n long flips = in.readLong();\n long balls = in.readLong();\n long holes = in.readLong();\n\n populate(topSlots, flips, balls, holes);\n }", "public ArrayList<Rocket>loadU1(ArrayList<Item>list){\n ArrayList<Rocket> fleet = new ArrayList<>();\n int totalBudget = 0;\n Rocket U1Rocket = new U1();\n\n for(Item item:list){\n while(!U1Rocket.canCarry(item)){\n\n fleet.add(U1Rocket);\n U1Rocket = new U1();\n }\n U1Rocket.carry(item);\n\n\n }\n\n return fleet;\n }", "public static void initializeInventory(File initialInventory,\n CS145LinkedList<BookData> inventory) {\n Scanner input = null;\n\n // Try opening file object for initial listing of inventory\n try {\n input = new Scanner(initialInventory);\n\n // If failure occurs throw exception\n } catch (FileNotFoundException ex) {\n System.out.println(\"Error: File \" + initialInventory.getName()\n + \"not found. Terminating Program.\");\n }\n // Otherwise begin reading file\n while(input.hasNextLine()) {\n\n String line = input.nextLine();\n Scanner lineScanner = new Scanner(line);\n\n // Read lines of txt file as tokes delimited by commas\n lineScanner.useDelimiter(\",\");\n\n // Try reading tokens of lines and save data to BookData Objects\n // of inventory\n try {\n String title = lineScanner.next();\n String ISBN = lineScanner.next();\n double price = lineScanner.nextDouble();\n String format = lineScanner.next();\n int stock = lineScanner.nextInt();\n\n // Create new book object using collected data\n Book aNewBook = new Book(title,ISBN,price,format);\n aNewBook.changeStock(stock);\n\n // Pass created Book object to new BookData object\n inventory.add(new BookData(aNewBook));\n\n // If failure occurs trying to save tokens in given way occurs,\n // throw InputMismatchException\n } catch (InputMismatchException ex) {\n System.out.println(\"Line : \" + line);\n System.out.println(\"Mismatched Token\" + lineScanner.next());\n }\n }\n }", "private Object readResolve() {\n\t\titemsArray = new ItemDefinition[256];\n\t\tfor (ItemDefinition def : itemsList) {\n\t\t\titemsArray[def.getId()] = def;\n\t\t}\n\t\treturn this;\n\t}", "com.rpg.framework.database.Protocol.Item getItems(int index);", "public PlayerInventory getInventory ( ) {\n\t\treturn extract ( handle -> handle.getInventory ( ) );\n\t}", "public void retrieveCardInventoryList() {\n try {\n systemResultViewUtil.setCardInventoryDataBeansList(cardInventoryTransformerBean.retrieveAllCardInventory());\n System.out.println(\"Retrive CardInventory Successfully\");\n } catch (Exception e) {\n System.out.println(e);\n System.out.println(\"Error in Retrive CardInventory\");\n }\n }", "protected void readEntityFromNBT(NBTTagCompound compound) {\n this.casterUuid = compound.getUniqueId(\"OwnerUUID\");\n }", "void loadInventory() {\n\n // make sure there isn't already an inventory record\n MrnInventory checkInv[] =\n new MrnInventory(survey.getSurveyId()).get();\n\n if (dbg3) System.out.println(\"<br>loadInventory: survey.getSurveyId() = \" +\n survey.getSurveyId());\n if (dbg3) System.out.println(\"<br>loadInventory: checkInv.length = \" +\n checkInv.length);\n\n if (checkInv.length == 0) {\n\n inventory.setSurveyId(survey.getSurveyId());\n\n // defaults\n inventory.setDataCentre(\"SADCO\");\n inventory.setTargetCountryCode(0); // unknown\n inventory.setStnidPrefix(survey.getInstitute());\n inventory.setDataRecorded(\"Y\");\n\n // from screen - done in LoadMRNData.getArgsFromFile()\n //inventory.setCountryCode(screenInv.getCountryCode());\n //inventory.setPlanamCode(screenInv.getPlanamCode());\n //inventory.setInstitCode(screenInv.getInstitCode());\n //inventory.setCruiseName(screenInv.getCruiseName());\n //inventory.setProjectName(screenInv.getProjectName());\n //inventory.setAreaname(screenInv.getAreaname()); // use as default to show on screen\n //inventory.setDomain(screenInv.getDomain()); // use as default to show on screen\n\n inventory.setCountryCode(0); // unknown\n\n inventory.setSciCode1(1); // unknown\n inventory.setSciCode2(1); // unknown // new\n inventory.setCoordCode(1); // unknown\n\n inventory.setProjectionCode(1); // unknown\n inventory.setSpheroidCode(1); // unknown\n inventory.setDatumCode(1); // unknown\n\n inventory.setSurveyTypeCode(1); // hydro\n if (dbg) System.out.println(\"loadInventory: put inventory = \" + inventory);\n\n try {\n inventory.put();\n } catch(Exception e) {\n System.err.println(\"loadInventory: put inventory = \" + inventory);\n System.err.println(\"loadInventory: put sql = \" + inventory.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadInventory: put inventory = \" +\n inventory);\n\n } // if (checkInv.length > 0)\n\n }", "@Override\n public ItemStack[] getContents() {\n final ItemStack[] items = new ItemStack[36];\n\n items[0] = this.getSword();\n\n for(int i = 0; i < this.getAbilities().length; i++) {\n final Ability ability = this.getAbilities()[i];\n\n if (ability instanceof ItemAbility) {\n items[i+1] = new ItemStack(((ItemAbility) ability).getMaterial());\n }\n }\n\n for (int i = 0; i < items.length; i++) {\n if (items[i] == null) {\n items[i] = this.getHealthType();\n }\n }\n\n return items;\n }", "public void readAdditional(CompoundNBT compound) {\n super.readAdditional(compound);\n this.dataManager.set(ATTACHED_FACE, Direction.byIndex(compound.getByte(\"AttachFace\")));\n this.dataManager.set(PEEK_TICK, compound.getByte(\"Peek\"));\n this.dataManager.set(COLOR, compound.getByte(\"Color\"));\n if (compound.contains(\"APX\")) {\n int i = compound.getInt(\"APX\");\n int j = compound.getInt(\"APY\");\n int k = compound.getInt(\"APZ\");\n this.dataManager.set(ATTACHED_BLOCK_POS, Optional.of(new BlockPos(i, j, k)));\n } else {\n this.dataManager.set(ATTACHED_BLOCK_POS, Optional.empty());\n }\n\n }", "public HashMap<String, Item> loadItems() {\n HashMap<String, Item> items = null;\n Gson gson = new Gson();\n try {\n BufferedReader reader = new BufferedReader(new FileReader(DEPOSITED_PATH));\n Type type = new TypeToken<HashMap<String, Item>>() {\n }.getType();\n items = gson.fromJson(reader, type);\n } catch (FileNotFoundException fnfe) {\n System.out.println(fnfe);\n }\n return items;\n }", "private void populateItems() {\n \t try {\n \t File myObj = new File(\"items.txt\");\n \t Scanner myReader = new Scanner(myObj);\n \t while (myReader.hasNextLine()) {\n\t \t String data = myReader.nextLine();\n\t \t String[] variables = data.split(\",\");\n\t \t int price = (int) Math.floor(Math.random() * 100); \n\t \t \n\t \t itemList += variables[0] + \",\"+ variables[1] +\",\" + \"0\" + \", \"+ \",\"+price + \",\";\n\t \t Item x = new Item(variables[0], 0, \"\", price, variables[1]);\n\t \t items.add(x);\n \t }\n \t myReader.close();\n \t } catch (FileNotFoundException e) {\n \t System.out.println(\"An error occurred.\");\n \t e.printStackTrace();\n \t }\n\t\t\n\t}", "public static void main(String[] args) throws IOException, ClassNotFoundException {\n FileInputStream fis =new FileInputStream(\"test.txt\");\n BufferedInputStream bis=new BufferedInputStream(fis);\n ObjectInputStream ois=new ObjectInputStream(bis);\n ArrayList<Goods> list = (ArrayList<Goods>)ois.readObject();\n for (int i = 0; i < list.size(); i++) {\n Goods goods = list.get(i);\n System.out.println(goods);\n }\n\n // Goods goods= (Goods)ois.readObject();\n // System.out.println(goods);\n ois.close();\n\n }", "public void printInventory(){\n\t\tint i;\n\t\tint listSize = inventory.size();\n\t\tRoll temp;\n\t\tString outputText;\n\t\toutputText = \"Inventory Stocks Per Roll: \";\n\t\t//outputText = inventory.get(0).getRoll().getType() + \" Roll Current stock: \" + inventory.get(0).getStock();\n\t\tfor(i = 0; i < listSize; i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\toutputText = outputText + \"\\n\";\n\t\t\t}\n\t\t\toutputText = outputText + inventory.get(i).getRoll().getType() + \" : \" + inventory.get(i).getStock() + \" \";\n\t\t}\n\t\tSystem.out.println(outputText);\n\t\tthis.status = outputText;\n\t\tsetChanged();\n notifyObservers();\n\t}", "public void getSubBlocks(Item itemIn, CreativeTabs tab, List<ItemStack> list) {\n/* 98 */ EnumType[] var4 = EnumType.values();\n/* 99 */ int var5 = var4.length;\n/* */ \n/* 101 */ for (int var6 = 0; var6 < var5; var6++) {\n/* */ \n/* 103 */ EnumType var7 = var4[var6];\n/* 104 */ list.add(new ItemStack(itemIn, 1, var7.func_176881_a()));\n/* */ } \n/* */ }", "public Inventory() {\n this.SIZE = DEFAULT_SIZE;\n this.ITEMS = new ArrayList<>();\n }", "public interface IInventoryComposite extends Iterable<IInventoryAdapter> {\n\n @Override\n default Iterator<IInventoryAdapter> iterator() {\n if (this instanceof IInventoryAdapter)\n return Iterators.singletonIterator((IInventoryAdapter) this);\n return Collections.emptyIterator();\n }\n\n default int slotCount() {\n return stream().mapToInt(IInventoryAdapter::getNumSlots).sum();\n }\n\n default boolean hasItems() {\n return streamStacks().findAny().isPresent();\n }\n\n default boolean hasNoItems() {\n return !hasItems();\n }\n\n default boolean isFull() {\n return streamSlots().allMatch(IInvSlot::hasStack);\n }\n\n default boolean hasEmptySlot() {\n return !isFull();\n }\n\n /**\n * Counts the number of items.\n *\n * @return the number of items in the inventory\n */\n default int countItems() {\n return countItems(StandardStackFilters.ALL);\n }\n\n /**\n * Counts the number of items that match the filter.\n *\n * @param filter the Predicate to match against\n * @return the number of items in the inventory\n */\n default int countItems(Predicate<ItemStack> filter) {\n return streamStacks().filter(filter).mapToInt(InvTools::sizeOf).sum();\n }\n\n /**\n * Counts the number of items that match the filter.\n *\n * @param filters the items to match against\n * @return the number of items in the inventory\n */\n default int countItems(ItemStack... filters) {\n return countItems(StackFilters.anyOf(filters));\n }\n\n default int countStacks() {\n return countStacks(StandardStackFilters.ALL);\n }\n\n default int countStacks(Predicate<ItemStack> filter) {\n return (int) streamStacks().filter(filter).count();\n }\n\n /**\n * Returns true if the inventory contains any of the specified items.\n *\n * @param items The ItemStack to look for\n * @return true is exists\n */\n default boolean contains(ItemStack... items) {\n return contains(StackFilters.anyOf(items));\n\n }\n\n /**\n * Returns true if the inventory contains the specified item.\n *\n * @param filter The ItemStack to look for\n * @return true is exists\n */\n default boolean contains(Predicate<ItemStack> filter) {\n return streamStacks().anyMatch(filter);\n }\n\n default boolean numItemsMoreThan(int amount) {\n int count = 0;\n for (IInventoryAdapter inventoryObject : this) {\n for (IInvSlot slot : InventoryIterator.get(inventoryObject)) {\n ItemStack stack = slot.getStack();\n if (!InvTools.isEmpty(stack))\n count += InvTools.sizeOf(stack);\n if (count >= amount)\n return true;\n }\n }\n return false;\n }\n\n default int countMaxItemStackSize() {\n return streamStacks().mapToInt(ItemStack::getMaxStackSize).sum();\n }\n\n /**\n * Checks if there is room for the ItemStack in the inventory.\n *\n * @param stack The ItemStack\n * @return true if room for stack\n */\n default boolean canFit(ItemStack stack) {\n return !InvTools.isEmpty(stack) && stream().anyMatch(inv -> {\n InventoryManipulator im = InventoryManipulator.get(inv);\n return im.canAddStack(stack);\n });\n }\n\n /**\n * Returns a single item from the inventory that matches the\n * filter, but does not remove it.\n *\n * @param filter the filter to match against\n * @return An ItemStack\n */\n default ItemStack findOne(Predicate<ItemStack> filter) {\n for (IInventoryAdapter inventoryObject : this) {\n InventoryManipulator im = InventoryManipulator.get(inventoryObject);\n ItemStack removed = im.tryRemoveItem(filter);\n if (!InvTools.isEmpty(removed))\n return removed;\n }\n return InvTools.emptyStack();\n }\n\n /**\n * Returns all items from the inventory that match the\n * filter, but does not remove them.\n * The resulting set will be populated with a single instance of each item type.\n *\n * @param filter EnumItemType to match against\n * @return A Set of ItemStacks\n */\n default Set<StackKey> findAll(Predicate<ItemStack> filter) {\n Set<StackKey> items = new HashSet<>();\n for (IInventoryAdapter inventoryObject : this) {\n for (IInvSlot slot : InventoryIterator.get(inventoryObject)) {\n ItemStack stack = slot.getStack();\n if (!InvTools.isEmpty(stack) && filter.test(stack)) {\n stack = stack.copy();\n InvTools.setSize(stack, 1);\n items.add(StackKey.make(stack));\n }\n }\n }\n return items;\n }\n\n /**\n * Attempts to move a single item from one inventory to another.\n *\n * @param dest the destination inventory\n * @return null if nothing was moved, the stack moved otherwise\n */\n default ItemStack moveOneItemTo(IInventoryComposite dest) {\n return moveOneItemTo(dest, Predicates.alwaysTrue());\n }\n\n /**\n * Attempts to move a single item from one inventory to another.\n *\n * @param dest the destination inventory\n * @param filter Predicate to match against\n * @return null if nothing was moved, the stack moved otherwise\n */\n default ItemStack moveOneItemTo(IInventoryComposite dest, Predicate<ItemStack> filter) {\n for (IInventoryAdapter src : this) {\n for (IInventoryAdapter dst : dest) {\n InventoryManipulator imSource = InventoryManipulator.get(src);\n ItemStack moved = imSource.moveItem(dst, filter);\n if (!InvTools.isEmpty(moved))\n return moved;\n }\n }\n return InvTools.emptyStack();\n }\n\n /**\n * Removes a specified number of items matching the filter, but only if the\n * operation can be completed. If the function returns false, the inventory\n * will not be modified.\n *\n * @param amount the amount of items to remove\n * @param filter the filter to match against\n * @return true if there are enough items that can be removed, false\n * otherwise.\n */\n default boolean removeItemsAbsolute(int amount, ItemStack... filter) {\n return removeItemsAbsolute(amount, StackFilters.anyOf(filter));\n }\n\n /**\n * Removes a specified number of items matching the filter, but only if the\n * operation can be completed. If the function returns false, the inventory\n * will not be modified.\n *\n * @param amount the amount of items to remove\n * @param filter the filter to match against\n * @return true if there are enough items that can be removed, false\n * otherwise.\n */\n default boolean removeItemsAbsolute(int amount, Predicate<ItemStack> filter) {\n for (IInventoryAdapter inventoryObject : this) {\n InventoryManipulator im = InventoryManipulator.get(inventoryObject);\n if (im.canRemoveItems(filter, amount)) {\n im.removeItems(filter, amount);\n return true;\n }\n }\n return false;\n }\n\n /**\n * Removes and returns a single item from the inventory.\n *\n * @return An ItemStack\n */\n default ItemStack removeOneItem() {\n return removeOneItem(StandardStackFilters.ALL);\n }\n\n /**\n * Removes and returns a single item from the inventory that matches the\n * filter.\n *\n * @param filter the filter to match against\n * @return An ItemStack\n */\n default ItemStack removeOneItem(ItemStack... filter) {\n return removeOneItem(StackFilters.anyOf(filter));\n }\n\n /**\n * Removes and returns a single item from the inventory that matches the\n * filter.\n *\n * @param filter the filter to match against\n * @return An ItemStack\n */\n default ItemStack removeOneItem(Predicate<ItemStack> filter) {\n for (IInventoryAdapter inventoryObject : this) {\n InventoryManipulator im = InventoryManipulator.get(inventoryObject);\n ItemStack stack = im.removeItem(filter);\n if (!InvTools.isEmpty(stack))\n return stack;\n }\n return InvTools.emptyStack();\n }\n\n /**\n * Places an ItemStack in a destination Inventory. Will attempt to move as\n * much of the stack as possible, returning any remainder.\n *\n * @param stack The ItemStack to put in the inventory.\n * @return Null if itemStack was completely moved, a new itemStack with\n * remaining stackSize if part or none of the stack was moved.\n */\n default ItemStack addStack(ItemStack stack) {\n for (IInventoryAdapter inv : this) {\n InventoryManipulator im = InventoryManipulator.get(inv);\n stack = im.addStack(stack);\n if (InvTools.isEmpty(stack))\n return InvTools.emptyStack();\n }\n return stack;\n }\n\n /**\n * Checks if inventory will accept the ItemStack.\n *\n * @param stack The ItemStack\n * @return true if room for stack\n */\n default boolean willAccept(ItemStack stack) {\n if (InvTools.isEmpty(stack))\n return false;\n ItemStack newStack = InvTools.copyOne(stack);\n return streamSlots().anyMatch(slot -> slot.canPutStackInSlot(newStack));\n }\n\n /**\n * Checks if inventory will accept any item from the list.\n *\n * @param stacks The ItemStacks\n * @return true if room for stack\n */\n default boolean willAcceptAny(List<ItemStack> stacks) {\n return stacks.stream().anyMatch(this::willAccept);\n }\n\n default Stream<IInventoryAdapter> stream() {\n return StreamSupport.stream(spliterator(), false);\n }\n\n default Stream<? extends IInvSlot> streamSlots() {\n return stream().flatMap(inv -> InventoryIterator.get(inv).stream());\n }\n\n default Stream<ItemStack> streamStacks() {\n return stream().flatMap(inv -> InventoryIterator.get(inv).streamStacks());\n }\n\n /**\n * @see Container#calcRedstoneFromInventory(IInventory)\n */\n default int calcRedstone() {\n double average = streamSlots()\n .filter(IInvSlot::hasStack)\n .mapToDouble(slot -> {\n ItemStack stack = slot.getStack();\n return (double) InvTools.sizeOf(stack) / (double) Math.min(stack.getMaxStackSize(), slot.maxStackSize());\n }).sum();\n\n average = average / (double) slotCount();\n return MathHelper.floor(average * 14.0F) + (hasNoItems() ? 0 : 1);\n }\n}", "@Override\n public List<Item> retrieveAllItems() throws VendingMachinePersistenceException {\n loadItemFile();\n List<Item> itemList = new ArrayList<>();\n for (Item currentItem: itemMap.values()) {\n itemList.add(currentItem);\n }\n\n return itemList;\n }", "@Override\n\tpublic void openInventory() {\n\t\t\n\t}", "public void readFromNBT(NBTTagCompound par1NBTTagCompound);", "public Inventory(){\n this.items = new ArrayList<InventoryItem>(); \n }", "public Inventory () {\n weaponsInventory = new ArrayList<>();\n pointInventory = 0;\n lenInventory = 0;\n }", "public InteractiveEntity(ArrayList<Item> items) {\n\t\tsuper();\n\t\tthis.inventory.addAll(items);\n\t}", "public void stockLoad() {\n try {\n File file = new File(stockPath);\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()) {\n String data = scanner.nextLine();\n String[] userData = data.split(separator);\n Stock stock = new Stock();\n stock.setProductName(userData[0]);\n int stockCountToInt = Integer.parseInt(userData[1]);\n stock.setStockCount(stockCountToInt);\n float priceToFloat = Float.parseFloat(userData[2]);\n stock.setPrice(priceToFloat);\n stock.setBarcode(userData[3]);\n\n stocks.add(stock);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "ItemStack getItem();", "public ArrayList<Item> getItemList(){\n\t\treturn inventoryList;\n\t}", "io.opencannabis.schema.commerce.OrderItem.Item getItem(int index);", "public void getSubBlocks(int var1, CreativeTabs var2, List var3)\n {\n var3.add(new ItemStack(this));\n }", "public void fillInventory(TheGroceryStore g);", "public void listAll(InventoryList inStock) {\n for (Item a : inStock.getInventoryList()) {\n if (1 >= a.getCount()) {\n console.promptForPrintPrompt(a.toString());\n }\n }\n }", "List<T> readAll();", "private void readFromInternalStorage() {\n ArrayList<GeofenceObjects> returnlist = new ArrayList<>();\n if (!isExternalStorageReadable()) {\n System.out.println(\"not readable\");\n } else {\n returnlist = new ArrayList<>();\n try {\n FileInputStream fis = openFileInput(\"GeoFences\");\n ObjectInputStream ois = new ObjectInputStream(fis);\n returnlist = (ArrayList<GeofenceObjects>) ois.readObject();\n ois.close();\n System.out.println(returnlist);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n currentList = returnlist;\n }" ]
[ "0.6494618", "0.62787837", "0.6215564", "0.6140612", "0.6047781", "0.5969134", "0.5878153", "0.5874475", "0.579835", "0.57928497", "0.5766451", "0.5732356", "0.57025915", "0.5673463", "0.56670743", "0.5639312", "0.55937624", "0.55850184", "0.55755275", "0.55644804", "0.552968", "0.5501417", "0.55001307", "0.5499882", "0.54331213", "0.54253423", "0.54171556", "0.54076886", "0.5397707", "0.538482", "0.53580195", "0.5347253", "0.53455865", "0.53264296", "0.5295029", "0.5292818", "0.5289909", "0.5271684", "0.52610785", "0.5259745", "0.5245025", "0.5229071", "0.52186346", "0.5214072", "0.5207474", "0.5207358", "0.5206022", "0.52028203", "0.51921207", "0.5180861", "0.5174597", "0.5161363", "0.5160875", "0.5155358", "0.51497763", "0.51266634", "0.5121961", "0.5117599", "0.51075965", "0.510686", "0.5100966", "0.51009357", "0.50754404", "0.5072561", "0.5068567", "0.50574666", "0.50436133", "0.50407034", "0.5025616", "0.50236684", "0.50195533", "0.50174266", "0.5010197", "0.5009832", "0.50087434", "0.5004575", "0.5000051", "0.4995118", "0.49944916", "0.4992825", "0.49845394", "0.49782917", "0.49654666", "0.49600226", "0.49385452", "0.4932353", "0.49320775", "0.49312526", "0.49307436", "0.49287975", "0.492867", "0.49278998", "0.4923568", "0.4923172", "0.4918214", "0.49179626", "0.49153078", "0.491486", "0.4912717", "0.4909625" ]
0.6109424
4