query
stringlengths
74
6.1k
positive
listlengths
1
1
negative
listlengths
9
9
public void showToast(final String message, float duration) { final float quadWidth = 1.2f; final GVRTextViewSceneObject toastSceneObject = new GVRTextViewSceneObject(this, quadWidth, quadWidth / 5, message); toastSceneObject.setTextSize(6); toastSceneObject.setTextColor...
[ "Show a toast-like message for the specified duration\n\n@param message\n@param duration in seconds" ]
[ "Throws an IllegalStateException when the given value is null.\n@return the value", "Adds OPT_P | OPT_PARTITION option to OptionParser, with multiple\narguments.\n\n@param parser OptionParser to be modified\n@param required Tells if this option is required or optional", "Saves the loaded XML bundle as property ...
public String getWorkplaceLink(CmsObject cms, String resourceName, boolean forceSecure) { String result = substituteLinkForUnknownTarget(cms, resourceName, forceSecure); return appendServerPrefix(cms, result, resourceName, true); }
[ "Returns the link for the given workplace resource.\n\nThis should only be used for resources under /system or /shared.<p<\n\n@param cms the current OpenCms user context\n@param resourceName the resource to generate the online link for\n@param forceSecure forces the secure server prefix\n\n@return the link for the ...
[ "Find the path to use .\nUses java annotations first and if not found, uses kubernetes annotations on the service object.\n\n@param service\nThe target service.\n@param qualifiers\nThe set of qualifiers.\n\n@return Returns the resolved path of '/' as a fallback.", "Add filters to the tree.\n\n@param parentNode pa...
private Map<String, String> getLocaleProperties() { if (m_localeProperties == null) { m_localeProperties = CmsCollectionsGenericWrapper.createLazyMap( new CmsProperty.CmsPropertyLocaleTransformer(m_properties, m_locale)); } return m_localeProperties; }
[ "Helper to get locale specific properties.\n\n@return the locale specific properties map." ]
[ "sets the initialization method for this descriptor", "Switches from a sparse to dense matrix", "Convert an object to a set.\n\n@param mapper the object mapper\n@param source the source object\n@param targetElementType the target set element type\n@return set", "Invoke a method through r...
public PhotoList<Photo> getPhotos(String photosetId, Set<String> extras, int privacy_filter, int perPage, int page) throws FlickrException { PhotoList<Photo> photos = new PhotoList<Photo>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_PH...
[ "Get a collection of Photo objects for the specified Photoset.\n\nThis method does not require authentication.\n\n@see com.flickr4java.flickr.photos.Extras\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_NO_FILTER\n@see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_PUBLIC\n@see com.flickr4java.flickr.Flickr#PRIVACY...
[ "Indicates if the type is a simple Web Bean\n\n@param clazz The type to inspect\n@return True if simple Web Bean, false otherwise", "Get the collection of public contacts for the specified user ID.\n\nThis method does not require authentication.\n\n@param userId\nThe user ID\n@return The Collection of Contact obj...
public static float noise1(float x) { int bx0, bx1; float rx0, rx1, sx, t, u, v; if (start) { start = false; init(); } t = x + N; bx0 = ((int)t) & BM; bx1 = (bx0+1) & BM; rx0 = t - (int)t; rx1 = rx0 - 1.0f; sx = s...
[ "Compute 1-dimensional Perlin noise.\n@param x the x value\n@return noise value at x in the range -1..1" ]
[ "Finds all providers for the given service.\n\n@param serviceName\nThe fully qualified name of the service interface.\n@return\nThe ordered set of providers for the service if any exists.\nOtherwise, it returns an empty list.\n@throws IllegalArgumentException if serviceName is <tt>null</tt>", "Obtain override ID\...
private void validateAsMongoDBFieldName(String fieldName) { if ( fieldName.startsWith( "$" ) ) { throw log.fieldNameHasInvalidDollarPrefix( fieldName ); } else if ( fieldName.contains( "\u0000" ) ) { throw log.fieldNameContainsNULCharacter( fieldName ); } }
[ "Validates a String to be a valid name to be used in MongoDB for a field name.\n\n@param fieldName" ]
[ "This method is called if the data set has been scrolled.", "Checks that given directory if readable & writable and prints a warning if the check fails. Warning is only\nprinted once and is not repeated until the condition is fixed and broken again.\n\n@param directory deployment directory\n@return does given dir...
public void addAuxHandler(Object handler, String prefix) { if (handler == null) { throw new NullPointerException(); } auxHandlers.put(prefix, handler); allHandlers.add(handler); addDeclaredMethods(handler, prefix); inputConverter.addDeclaredConverters(handler...
[ "This method is very similar to addMainHandler, except ShellFactory\nwill pass all handlers registered with this method to all this shell's subshells.\n\n@see org.gearvrf.debug.cli.Shell#addMainHandler(java.lang.Object, java.lang.String)\n\n@param handler Object which should be registered as handler.\n@param prefix...
[ "key function. first validate if the ACM has adequate data; then execute\nit after the validation. the new ParallelTask task guareetee to have the\ntargethost meta and command meta not null\n\n@param handler\nthe handler\n@return the parallel task", "Returns the earlier of two dates, handling null values. A non-n...
public T addFile(final String name, final List<String> path, final byte[] newHash, final boolean isDirectory) { return addFile(name, path, newHash, isDirectory, null); }
[ "Add a misc file.\n\n@param name the file name\n@param path the relative path\n@param newHash the new hash of the added content\n@param isDirectory whether the file is a directory or not\n@return the builder" ]
[ "This method writes data for a single task to a Planner file.\n\n@param mpxjTask MPXJ Task instance\n@param taskList list of child tasks for current parent", "Creates the box tree for the PDF file.\n@param dim", "Process the deployment root for the manifest.\n\n@param phaseContext the deployment unit context\n@...
private Map<String, String> toPayload(Map<String, Object> data) throws LocalOperationException { Map<String, Object> dataClone = new HashMap<String, Object>(data); dataClone.put("auth", getAuthData()); Map<String, String> payload = new HashMap<String, String>(); payload.put("params", js...
[ "Returns data tree structured as Transloadit expects it.\n\n@param data\n@return {@link Map}\n@throws LocalOperationException" ]
[ "Use this API to fetch authenticationlocalpolicy_authenticationvserver_binding resources of given name .", "Calculates the Black-Scholes option value of a digital call option.\n\n@param initialStockValue The initial value of the underlying, i.e., the spot.\n@param riskFreeRate The risk free rate of the bank accou...
private void initializeQueue() { this.queue.clear(); for (Map.Entry<String, NodeT> entry: nodeTable.entrySet()) { if (!entry.getValue().hasDependencies()) { this.queue.add(entry.getKey()); } } if (queue.isEmpty()) { throw new IllegalSta...
[ "Initializes the queue that tracks the next set of nodes with no dependencies or\nwhose dependencies are resolved." ]
[ "Write a size prefixed string where the size is stored as a 2 byte\nshort\n\n@param buffer The buffer to write to\n@param s The string to write", "removes all data for an annotation class. This should be called after an\nannotation has been modified through the SPI", "Loads the tag definitions from the fil...
protected List<String> splitLinesAndNewLines(String text) { if (text == null) return Collections.emptyList(); int idx = initialSegmentSize(text); if (idx == text.length()) { return Collections.singletonList(text); } return continueSplitting(text, idx); }
[ "Return a list of segments where each segment is either the content of a line in the given text or a line-break\naccording to the configured delimiter. Existing line-breaks in the text will be replaced by this's\ninstances delimiter.\n\n@param text\nthe to-be-splitted text. May be <code>null</code>.\n@return a list...
[ "Calls a method from editService to update the repeat number for a path\n\n@param model\n@param newNum\n@param path_id\n@param clientUUID\n@return\n@throws Exception", "Writes a DTD that can be used for data XML files matching the current model to the given writer.\n\n@param output The writer to write the DTD to"...
public void addAppenderEvent(final Category cat, final Appender appender) { updateDefaultLayout(appender); if (appender instanceof FoundationFileRollingAppender) { final FoundationFileRollingAppender timeSizeRollingAppender = (FoundationFileRollingAppender) appender; // update the appender with default val...
[ "In this method perform the actual override in runtime.\n\n@see org.apache.log4j.spi.HierarchyEventListener#addAppenderEvent(org.apache.log4j.Category, org.apache.log4j.Appender)" ]
[ "Carry out any post-processing required to tidy up\nthe data read from the database.", "Throws an IllegalArgumentException when the given value is null.\n@param value the value to assert if not null\n@param name the name of the argument\n@param <T> The generic type of the value to assert if not null\n@return the ...
public static String fixLanguageCodeIfDeprecated(String wikimediaLanguageCode) { if (DEPRECATED_LANGUAGE_CODES.containsKey(wikimediaLanguageCode)) { return DEPRECATED_LANGUAGE_CODES.get(wikimediaLanguageCode); } else { return wikimediaLanguageCode; } }
[ "Translate a Wikimedia language code to its preferred value\nif this code is deprecated, or return it untouched if the string\nis not a known deprecated Wikimedia language code\n\n@param wikimediaLanguageCode\nthe language code as used by Wikimedia\n@return\nthe preferred language code corresponding to the original...
[ "Register this broker in ZK for the first time.", "Append the text at the end of the File, using a specified encoding.\n\n@param file a File\n@param text the text to append at the end of the File\n@param charset the charset used\n@throws IOException if an IOException occurs.\n@since 1.0", "Set the week da...
public Object remove(String name) { ThreadScopeContext context = ThreadScopeContextHolder.getContext(); return context.remove(name); }
[ "Removes bean from scope.\n\n@param name bean name\n@return previous value" ]
[ "Print the method parameter p", "Adds this handler to the widget.\n\n@param <H> the type of handler to add\n@param type the event type\n@param handler the handler\n@return {@link HandlerRegistration} used to remove the handler", "Use this API to fetch all the appqoepolicy resources that are configured on netsca...
@UiHandler("m_wholeDayCheckBox") void onWholeDayChange(ValueChangeEvent<Boolean> event) { //TODO: Improve - adjust time selections? if (handleChange()) { m_controller.setWholeDay(event.getValue()); } }
[ "Handle a whole day change event.\n@param event the change event." ]
[ "Returns the ports of the server.\n\n@return the {@link Map} which contains the pairs of local {@link InetSocketAddress} and\n{@link ServerPort} is the server is started. {@link Optional#empty()} otherwise.", "Replaces the translations in an existing container with the translations for the provided locale.\n@para...
public void showCurrentDates(Collection<CmsPair<Date, Boolean>> dates) { m_overviewList.setDatesWithCheckState(dates); m_overviewPopup.center(); }
[ "Shows the provided list of dates as current dates.\n@param dates the current dates to show, accompanied with the information if they are exceptions or not." ]
[ "Adds a foreignkey to this table.\n\n@param relationName The name of the relation represented by the foreignkey\n@param remoteTable The referenced table\n@param localColumns The local columns\n@param remoteColumns The remote columns", "Calculate the name of the input value.\n\n@param inputPrefix a nullable pr...
public static Optional<Field> getField(Class<?> type, final String fieldName) { Optional<Field> field = Iterables.tryFind(newArrayList(type.getDeclaredFields()), havingFieldName(fieldName)); if (!field.isPresent() && type.getSuperclass() != null){ field = getField(type.getSuperclass(), fiel...
[ "Finds the first Field with given field name in the Class and in its super classes.\n\n@param type The Class type\n@param fieldName The field name to get\n@return an {@code Optional}. Use isPresent() to find out if the field name was found." ]
[ "If users want to implement clone on all their objects, we can use this\nto make copies. This is hazardous as user may mess it up, but it is also\npotentially the fastest way of making a copy.\n\nUsually the OjbCloneable interface should just be delegating to the clone()\noperation that the user has implemented.\n\...
private void precheckStateAllNull() throws IllegalStateException { if ((doubleValue != null) || (doubleArray != null) || (longValue != null) || (longArray != null) || (stringValue != null) || (stringArray != null) || (map != null)) { throw new IllegalStateExceptio...
[ "Sanity check precondition for above setters" ]
[ "Gets the favorite entry for a given row.\n\n@param row the widget used to display the favorite\n@return the favorite entry for the widget", "Start with specifying the groupId", "Plots the MSD curve with the trajectory t and adds the fitted model for anomalous diffusion above.\n@param t\n@param lagMin Minimum t...
public PreparedStatementCreator count(final Dialect dialect) { return new PreparedStatementCreator() { public PreparedStatement createPreparedStatement(Connection con) throws SQLException { return getPreparedStatementCreator() .setSql(dialect.createCountSe...
[ "Returns a PreparedStatementCreator that returns a count of the rows that\nthis creator would return.\n\n@param dialect\nDatabase dialect." ]
[ "Map the given region of the given file descriptor into memory.\nReturns a Pointer to the newly mapped memory throws an\nIOException on error.", "Delete a photo from flickr.\n\nThis method requires authentication with 'delete' permission.\n\n@param photoId\n@throws FlickrException", "In common shader cases, NaN...
public static base_response delete(nitro_service client, String viewname) throws Exception { dnsview deleteresource = new dnsview(); deleteresource.viewname = viewname; return deleteresource.delete_resource(client); }
[ "Use this API to delete dnsview of given name." ]
[ "Import user from file.", "Use this API to update nsacl6.", "Use this API to update spilloverpolicy.", "Reads the configuration of a range facet.\n@param pathPrefix The XML Path that leads to the range facet configuration, or <code>null</code> if the XML was not correctly structured.\n@return The read configu...
private void processRanges(List<DateRange> ranges, ProjectCalendarDateRanges container) { if (ranges != null) { for (DateRange range : ranges) { container.addRange(range); } } }
[ "Populate time ranges.\n\n@param ranges time ranges from a Synchro table\n@param container time range container" ]
[ "Get a discount curve from the model, if not existing create a discount curve.\n\n@param discountCurveName The name of the discount curve to create.\n@return The discount factor curve associated with the given name.", "Plots the MSD curve with the trajectory t and adds the fitted model for confined diffusion abov...
private void WebPageCloseOnClick(GVRViewSceneObject gvrWebViewSceneObject, GVRSceneObject gvrSceneObjectAnchor, String url) { final String urlFinal = url; webPagePlusUISceneObject = new GVRSceneObject(gvrContext); webPagePlusUISceneObject.getTransform().setPosition(webPagePlusUIPosition[0], web...
[ "Display web page, but no user interface - close" ]
[ "Check if this path matches the address path.\nAn address matches this address if its path elements match or are valid\nmulti targets for this path elements. Addresses that are equal are matching.\n\n@param address The path to check against this path. If null, this method\nreturns false.\n@return true if the provid...
public void show() { if (!(container instanceof RootPanel)) { if (!(container instanceof MaterialDialog)) { container.getElement().getStyle().setPosition(Style.Position.RELATIVE); } div.getElement().getStyle().setPosition(Style.Position.ABSOLUTE); } ...
[ "Shows the Loader component" ]
[ "Sets an error message that will be displayed in a popup when the EditText has focus along\nwith an icon displayed at the right-hand side.\n\n@param error error message to show", "Converts the given CharSequence into a List of Strings of one character.\n\n@param self a CharSequence\n@return a List of characters (...
public final void setWeekDays(SortedSet<WeekDay> weekDays) { m_weekDays.clear(); if (null != weekDays) { m_weekDays.addAll(weekDays); } }
[ "Set the week days the events should occur.\n@param weekDays the week days to set." ]
[ "Handles an initial response from a PUT or PATCH operation response by polling\nthe status of the operation until the long running operation terminates.\n\n@param observable the initial observable from the PUT or PATCH operation.\n@param <T> the return type of the caller\n@param resourceType the java.lang.re...
private void readExceptionDay(ProjectCalendar mpxjCalendar, ExceptedDay day) { ProjectCalendarException mpxjException = mpxjCalendar.addCalendarException(day.getDate(), day.getDate()); if (day.isIsDayWorking()) { for (Document.Calendars.Calendar.ExceptedDays.ExceptedDay.TimePeriods.TimePer...
[ "Read an exception day for a calendar.\n\n@param mpxjCalendar ProjectCalendar instance\n@param day ConceptDraw PROJECT exception day" ]
[ "Returns the default safety level preference for the user.\n\n@see com.flickr4java.flickr.Flickr#SAFETYLEVEL_MODERATE\n@see com.flickr4java.flickr.Flickr#SAFETYLEVEL_RESTRICTED\n@see com.flickr4java.flickr.Flickr#SAFETYLEVEL_SAFE\n@return The current users safety-level\n@throws FlickrException", "Handles Multi In...
@Subscribe public void onQuit(AggregatedQuitEvent e) { if (summaryFile != null) { try { Persister persister = new Persister(); persister.write(new MavenFailsafeSummaryModel(summaryListener.getResult()), summaryFile); } catch (Exception x) { junit4.log("Could not serialize summa...
[ "Write the summary file, if requested." ]
[ "Confirms that both clusters have the same number of total partitions.\n\n@param lhs\n@param rhs", "Shows a dialog with user information for given session.\n\n@param session to show information for", "Find the earliest start time of the specified methods.\n@param methods A list of test methods.\n@return The ear...
public void register(Delta delta) { final IResourceDescription newDesc = delta.getNew(); if (newDesc == null) { removeDescription(delta.getUri()); } else { addDescription(delta.getUri(), newDesc); } }
[ "Put a new resource description into the index, or remove one if the delta has no new description. A delta for a\nparticular URI may be registered more than once; overwriting any earlier registration.\n\n@param delta\nThe resource change.\n@since 2.9" ]
[ "Creates a new section in a project.\n\nReturns the full record of the newly created section.\n\n@param project The project to create the section in\n@return Request object", "remove an objects entry from the object registry", "Set the model used by the left table.\n\n@param model table model", "Convert an M...
public float getPositionZ(int vertex) { if (!hasPositions()) { throw new IllegalStateException("mesh has no positions"); } checkVertexIndexBounds(vertex); return m_vertices.getFloat((vertex * 3 + 2) * SIZEOF_FLOAT); }
[ "Returns the z-coordinate of a vertex position.\n\n@param vertex the vertex index\n@return the z coordinate" ]
[ "Executes the rebalance plan. Does so batch-by-batch. Between each batch,\nstatus is dumped to logger.info.\n\n@param rebalancePlan", "Use this API to update snmpoption.", "Sends the error to responder.", "The list of device types on which this application can run.", "Remove a part of a CharSequence. This r...
public static base_responses update(nitro_service client, snmpmanager resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { snmpmanager updateresources[] = new snmpmanager[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] =...
[ "Use this API to update snmpmanager resources." ]
[ "Return the list of module ancestors\n\n@param moduleName\n@param moduleVersion\n@return List<Dependency>\n@throws GrapesCommunicationException", "Record a prepare operation.\n\n@param preparedOperation the prepared operation", "Check if the property is part of the identifier of the entity.\n\n@param persister ...
private void countEntity() { if (!this.timer.isRunning()) { startTimer(); } this.entityCount++; if (this.entityCount % 100 == 0) { timer.stop(); int seconds = (int) (timer.getTotalWallTime() / 1000000000); if (seconds >= this.lastSeconds + this.reportInterval) { this.lastSeconds = seconds; ...
[ "Counts one entity. Every once in a while, the current time is checked so\nas to print an intermediate report roughly every ten seconds." ]
[ "Stop Redwood, closing all tracks and prohibiting future log messages.", "Answer a List of InCriteria based on values, each InCriteria\ncontains only inLimit values\n@param attribute\n@param values\n@param negative\n@param inLimit the maximum number of values for IN (-1 for no limit)\n@return List of InCriteria",...
public Jar setJarPrefix(String value) { verifyNotSealed(); if (jos != null) throw new IllegalStateException("Really executable cannot be set after entries are added."); if (value != null && jarPrefixFile != null) throw new IllegalStateException("A prefix has already been ...
[ "Sets a string that will be prepended to the JAR file's data.\n\n@param value the prefix, or {@code null} for none.\n@return {@code this}" ]
[ "Use this API to fetch sslvserver_sslciphersuite_binding resources of given name .", "Inserts a child task prior to a given sibling task.\n\n@param child new child task\n@param previousSibling sibling task", "Retrieve the fixed data offset for a specific field.\n\n@param type field type\n@return offset", "App...
private boolean isAllOrDirtyOptLocking() { EntityMetamodel entityMetamodel = getEntityMetamodel(); return entityMetamodel.getOptimisticLockStyle() == OptimisticLockStyle.DIRTY || entityMetamodel.getOptimisticLockStyle() == OptimisticLockStyle.ALL; }
[ "Copied from AbstractEntityPersister" ]
[ "Retrieves an existing resource assignment if one is present,\nto prevent duplicate resource assignments being added.\n\n@param resource resource to test for\n@return existing resource assignment", "This method extracts task data from a Planner file.\n\n@param plannerProject Root node of the Planner file", "Emi...
public static authenticationvserver_authenticationnegotiatepolicy_binding[] get(nitro_service service, String name) throws Exception{ authenticationvserver_authenticationnegotiatepolicy_binding obj = new authenticationvserver_authenticationnegotiatepolicy_binding(); obj.set_name(name); authenticationvserver_authe...
[ "Use this API to fetch authenticationvserver_authenticationnegotiatepolicy_binding resources of given name ." ]
[ "Loads the file content in the properties collection\n@param filePath The path of the file to be loaded", "Returns the key of the entity targeted by the represented association, retrieved from the given tuple.\n\n@param tuple the tuple from which to retrieve the referenced entity key\n@return the key of the entit...
private void setObjectForStatement(PreparedStatement stmt, int index, Object value, int sqlType) throws SQLException { if (value == null) { m_platform.setNullForStatement(stmt, index, sqlType); } else { m_platform.setObjectForState...
[ "Sets object for statement at specific index, adhering to platform- and null-rules.\n@param stmt the statement\n@param index the current parameter index\n@param value the value to set\n@param sqlType the JDBC SQL-type of the value\n@throws SQLException on platform error" ]
[ "Returns the index descriptor definition of the given name if it exists.\n\n@param name The name of the index\n@return The index descriptor definition or <code>null</code> if there is no such index", "Return the Renderer class associated to the prototype.\n\n@param prototypeClass used to search the renderer in th...
public static DMatrixRMaj identity(int numRows , int numCols ) { DMatrixRMaj ret = new DMatrixRMaj(numRows,numCols); int small = numRows < numCols ? numRows : numCols; for( int i = 0; i < small; i++ ) { ret.set(i,i,1.0); } return ret; }
[ "Creates a rectangular matrix which is zero except along the diagonals.\n\n@param numRows Number of rows in the matrix.\n@param numCols NUmber of columns in the matrix.\n@return A matrix with diagonal elements equal to one." ]
[ "Returns the text for the JSONObject of Link provided\nThe JSONObject of Link provided should be of the type \"url\"\n@param jsonObject of Link\n@return String", "Calculate delta with another vector\n@param v another vector\n@return delta vector", "Allocates a database connection.\n\n@throws SQLException", "C...
public void fire(StepEvent event) { Step step = stepStorage.getLast(); event.process(step); notifier.fire(event); }
[ "Process any StepEvent. You can change last added to stepStorage\nstep using this method.\n\n@param event to process" ]
[ "Guess the type of the given dump from its filename.\n\n@param fileName\n@return dump type, defaulting to JSON if no type was found", "Use this API to fetch statistics of cmppolicy_stats resource of given name .", "Merges the item from the resultLocaleValues into the corresponding item of the localeValues.\n@pa...
public static final String getString(InputStream is) throws IOException { int type = is.read(); if (type != 1) { throw new IllegalArgumentException("Unexpected string format"); } Charset charset = CharsetHelper.UTF8; int length = is.read(); if (length == 0xF...
[ "Read a Synchro string from an input stream.\n\n@param is input stream\n@return String instance" ]
[ "This is generally only useful for extensions that delegate some of their functionality to other \"internal\"\nextensions of their own that they need to configure.\n\n@param configuration the configuration to be supplied with the returned analysis context.\n@return an analysis context that is a clone of this instan...
public E setById(final int id, final E element) { VListKey<K> key = new VListKey<K>(_key, id); UpdateElementById<K, E> updateElementAction = new UpdateElementById<K, E>(key, element); if(!_storeClient.applyUpdate(updateElementAction)) throw new ObsoleteVersionException("update faile...
[ "Put the given value to the appropriate id in the stack, using the version\nof the current list node identified by that id.\n\n@param id\n@param element element to set\n@return element that was replaced by the new element\n@throws ObsoleteVersionException when an update fails" ]
[ "Searches the set of imports to find a matching import by type name.\n\n@param typeName\nname of type (qualified or simple name allowed)\n@return found import or {@code null}", "Here the lambda in the implicit step is determined dynamically. At first\nit selects zeros to quickly reveal singular values that are z...
@Override public void writeText(PDDocument doc, Writer outputStream) throws IOException { try { DOMImplementationRegistry registry = DOMImplementationRegistry.newInstance(); DOMImplementationLS impl = (DOMImplementationLS)registry.getDOMImplementation("LS"); L...
[ "Parses a PDF document and serializes the resulting DOM tree to an output. This requires\na DOM Level 3 capable implementation to be available." ]
[ "Creates a Bytes object by copying the value of the given String with a given charset", "Set sizes to override the generated URLs of the different sizes.\n\n@param sizes\n@see com.flickr4java.flickr.photos.PhotosInterface#getSizes(String)", "Serialize the Document object.\n\n@param dom the document to serialize...
public static Status from(Set<ServiceReference> serviceReferencesBound, Set<ServiceReference> serviceReferencesHandled) { if (serviceReferencesBound == null && serviceReferencesHandled == null) { throw new IllegalArgumentException("Cannot create a status with serviceReferencesBound == null" + ...
[ "Creates a status instance from the given serviceReferences.\nThe given list is copied to a new set made immutable.\n\n@param serviceReferencesBound the set of ServiceReference which are bound to the declaration.\n@param serviceReferencesHandled the set of ServiceReference which are handling the declaration.\n@re...
[ "Get the days difference", "Scan the segments to find the largest height value present.\n\n@return the largest waveform height anywhere in the preview.", "Use this API to fetch systemsession resources of given names .", "Manage the artifact add to the Module AbstractGraph\n\n@param graph\n@param depth", "Co...
public int getInt(Integer type) { int result = 0; byte[] item = m_map.get(type); if (item != null) { result = MPPUtility.getInt(item, 0); } return (result); }
[ "Retrieves an integer value from the extended data.\n\n@param type Type identifier\n@return integer value" ]
[ "Invoke the setters for the given variables on the given instance.\n@param <T> the instance type\n@param instance the instance to inject with the variables\n@param vars the variables to inject\n@return the instance\n@throws ReflectiveOperationException if there was a problem finding or invoking a setter method", ...
private List<Versioned<byte[]>> disassembleValues(byte[] values) throws IOException { if(values == null) return new ArrayList<Versioned<byte[]>>(0); List<Versioned<byte[]>> returnList = new ArrayList<Versioned<byte[]>>(); ByteArrayInputStream stream = new ByteArrayInputStream(value...
[ "Splits up value into multiple versioned values\n\n@param value\n@return\n@throws IOException" ]
[ "Finds and sets up the Listeners in the given rootView.\n\n@param rootView a View to traverse looking for listeners.\n@return the list of refinement attributes found on listeners.", "Return the next word of the string, in other words it stops when a space is encountered.", "Handles the response of the Request n...
public static String getBuildString() { String versionString = "UNKNOWN"; Properties propeties = getProperites(); if(propeties != null) { versionString = propeties.getProperty("finmath-lib.build"); } return versionString; }
[ "Return the build string of this instance of finmath-lib.\nCurrently this is the Git commit hash.\n\n@return The build string of this instance of finmath-lib." ]
[ "Set the individual dates.\n@param dates the dates to set.", "Print an accrue type.\n\n@param value AccrueType instance\n@return accrue type value", "Gets a SerialMessage with the WAKE_UP_NO_MORE_INFORMATION command.\n@return the serial message", "We have received notification that a device is no longer on th...
public void setProjectionMatrix(float x1, float y1, float z1, float w1, float x2, float y2, float z2, float w2, float x3, float y3, float z3, float w3, float x4, float y4, float z4, float w4) { NativeCustomCamera.setProjectionMatrix(getNative(), x1, y1, z1, w1, x2, y2, z2...
[ "Set the custom projection matrix with individual matrix elements." ]
[ "Retrieve a table of data.\n\n@param type table type\n@return FastTrackTable instance", "Resets the calendar", "Creates a new deployment for the URL. The target server will require access to the URL.\n\n@param url the URL representing the content\n\n@return the deployment", "Calculate where within the beat gr...
public List<Integer> getConnectionRetries() { List<Integer> items = new ArrayList<Integer>(); for (int i = 0; i < 10; i++) { items.add(i); } return items; }
[ "To populate the dropdown list from the jelly" ]
[ "convenience method for setting working or non-working days.\n\n@param day required day\n@param working flag indicating if the day is a working day", "Undo changes for a single patch entry.\n\n@param entry the patch entry\n@param loader the content loader", "Find a given range object in a list of ranges by a v...
private List<TimephasedCost> getTimephasedCostMultipleRates(List<TimephasedWork> standardWorkList, List<TimephasedWork> overtimeWorkList) { List<TimephasedWork> standardWorkResult = new LinkedList<TimephasedWork>(); List<TimephasedWork> overtimeWorkResult = new LinkedList<TimephasedWork>(); CostRat...
[ "Generates timephased costs from timephased work where multiple cost rates\napply to the assignment.\n\n@param standardWorkList timephased work\n@param overtimeWorkList timephased work\n@return timephased cost" ]
[ "Add this service to the given service target.\n@param serviceTarget the service target\n@param configuration the bootstrap configuration", "Try to provide an escaped, ready-to-use shell line to repeat a given command line.", "Add the string representation of the given object to this sequence immediately. That ...
public static appqoepolicy[] get(nitro_service service) throws Exception{ appqoepolicy obj = new appqoepolicy(); appqoepolicy[] response = (appqoepolicy[])obj.get_resources(service); return response; }
[ "Use this API to fetch all the appqoepolicy resources that are configured on netscaler." ]
[ "Removes trailing and leading whitespace, and also reduces each\nsequence of internal whitespace to a single space.", "Sets ID field value.\n\n@param val value", "get the converted object corresponding to sourceObject as converted to\ndestination type by converter\n\n@param converter\n@param sourceObject\n@para...
protected void _format(EObject obj, IFormattableDocument document) { for (EObject child : obj.eContents()) document.format(child); }
[ "Fall-back for types that are not handled by a subclasse's dispatch method." ]
[ "Configures the given annotation as a tag.\n\nThis is useful if you want to treat annotations as tags in JGiven that you cannot or want not\nto be annotated with the {@link com.tngtech.jgiven.annotation.IsTag} annotation.\n\n@param tagAnnotation the tag to be configured\n@return a configuration builder for configur...
private void readTasks() { Integer rootID = Integer.valueOf(1); readWBS(m_projectFile, rootID); readTasks(rootID); m_projectFile.getTasks().synchronizeTaskIDToHierarchy(); }
[ "Read task data from a PEP file." ]
[ "Sets up the coordinate transformations between the coordinate system of the parent element of the image element and the native coordinate system\nof the original image.", "Adds a new Token to the end of the linked list", "Set the color for the statusBar\n\n@param statusBarColor", "Use this API to unset the p...
public Bundler put(String key, Serializable value) { delegate.putSerializable(key, value); return this; }
[ "Inserts a Serializable value into the mapping of the underlying Bundle, replacing any existing\nvalue for the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a Serializable object, or null\n@return this bundler instance to chain method calls" ]
[ "MOVED INSIDE ExpressionUtils\n\nprotected JRDesignExpression getExpressionForConditionalStyle(ConditionalStyle condition, String columExpression) {\nString fieldsMap = \"((\"+DJDefaultScriptlet.class.getName() + \")$P{REPORT_SCRIPTLET}).getCurrentFields()\";\nString parametersMap = \"((\"+DJDefaultScriptlet.class....
public static void checkStringNotNullOrEmpty(String parameterName, String value) { if (TextUtils.isEmpty(value)) { throw Exceptions.IllegalArgument("Current input string %s is %s.", parameterName, value == null ? "null" : "empty"); } }
[ "Check that the parameter string is not null or empty\n\n@param value\nString value to be checked.\n@param parameterName\nThe name of the user-supplied parameter that we are validating\nso that the user can easily find the error in their code.\n@throws IllegalArgumentException\nIf the key is null or empty." ]
[ "only TOP or Bottom", "Adds a new metadata value of array type.\n@param path the path to the field.\n@param values the collection of values.\n@return the metadata object for chaining.", "Use this API to fetch all the sslcipher resources that are configured on netscaler.", "Read an optional month value form a ...
public static String getPropertyUri(PropertyIdValue propertyIdValue, PropertyContext propertyContext) { switch (propertyContext) { case DIRECT: return PREFIX_PROPERTY_DIRECT + propertyIdValue.getId(); case STATEMENT: return PREFIX_PROPERTY + propertyIdValue.getId(); case VALUE_SIMPLE: return PREFIX_...
[ "Get the URI for the given property in the given context.\n\n@param propertyIdValue\nthe property id for which to create a URI\n@param propertyContext\nthe context for which the URI will be needed\n@return the URI" ]
[ "The entity instance is already in the session cache\n\nCopied from Loader#instanceAlreadyLoaded", "Hides the Loader component", "Make sure that the Identity objects of garbage collected cached\nobjects are removed too.", "Creates the conversion server that is specified by this builder.\n\n@return The convers...
private TestClassResults getResultsForClass(Map<IClass, TestClassResults> flattenedResults, ITestResult testResult) { TestClassResults resultsForClass = flattenedResults.get(testResult.getTestClass()); if (resultsForClass == null) { ...
[ "Look-up the results data for a particular test class." ]
[ "Set the classpath for loading the driver.\n\n@param classpath the classpath", "Awaits at most 5 minutes until all pods meets the given predicate.\n\n@param filter used to wait to detect that a pod is up and running.", "Returns the latest change events for a given namespace.\n\n@param namespace the namespace to...
private void setLockingValues(ClassDescriptor cld, Object obj, ValueContainer[] oldLockingValues) { FieldDescriptor fields[] = cld.getLockingFields(); for (int i=0; i<fields.length; i++) { PersistentField field = fields[i].getPersistentField(); Object lockVal ...
[ "Set the locking values\n@param cld\n@param obj\n@param oldLockingValues" ]
[ "Deletes data associated with the given profile ID\n\n@param profileId ID of profile", "Closes the server socket.", "Obtains a International Fixed local date-time from another date-time object.\n\n@param temporal the date-time object to convert, not null\n@return the International Fixed local date-time, not nu...
public void commandLoop() throws IOException { for (Object handler : allHandlers) { if (handler instanceof ShellManageable) { ((ShellManageable)handler).cliEnterLoop(); } } output.output(appName, outputConverter); String command = ""; while...
[ "Runs the command session.\nCreate the Shell, then run this method to listen to the user,\nand the Shell will invoke Handler's methods.\n@throws java.io.IOException when can't readLine() from input." ]
[ "Replies to this comment with another message.\n@param message the message for the reply.\n@return info about the newly created reply comment.", "Obtain the profile identifier.\n\n@param profileIdentifier Can be profile ID, or friendly name\n@return\n@throws Exception", "Returns the remote collection represent...
@Override public double get( int row , int col ) { if( col < 0 || col >= numCols || row < 0 || row >= numRows ) { throw new IllegalArgumentException("Specified element is out of bounds: "+row+" "+col); } return data[ row * numCols + col ]; }
[ "Returns the value of the specified matrix element. Performs a bounds check to make sure\nthe requested element is part of the matrix.\n\n@param row The row of the element.\n@param col The column of the element.\n@return The value of the element." ]
[ "Extracts calendar data from a ConceptDraw PROJECT file.\n\n@param cdp ConceptDraw PROJECT file", "Create a Renderer getting a copy from the prototypes collection.\n\n@param content to render.\n@param parent used to inflate the view.\n@return a new renderer.", "Use this API to fetch vpnclientlessaccesspolicy_bi...
public static boolean containsAllQualifiers(Set<QualifierInstance> requiredQualifiers, Set<QualifierInstance> qualifiers) { return qualifiers.containsAll(requiredQualifiers); }
[ "Checks that all the qualifiers in the set requiredQualifiers are in the set of qualifiers. Qualifier equality rules for\nannotation members are followed.\n\n@param requiredQualifiers The required qualifiers\n@param qualifiers The set of qualifiers to check\n@return True if all matches, false otherwise" ]
[ "Drop down selected view\n\n@param position position of selected item\n@param convertView View of selected item\n@param parent parent of selected view\n@return convertView", "We have received notification that a device is no longer on the network, so clear out all its beat grids.\n\n@param announcement th...
public void deleteComment(String commentId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_DELETE_COMMENT); parameters.put("comment_id", commentId); // Note: This method requires an HTTP POST request. ...
[ "Delete a comment as the currently authenticated user.\n\nThis method requires authentication with 'write' permission.\n\n@param commentId\nThe id of the comment to delete.\n@throws FlickrException" ]
[ "digest message with MD5\n\n@param source message\n@return 32 bit MD5 value (lower case)", "Use this API to add autoscaleaction resources.", "Marshal the assertion as a JSON object.\n\n@param assertion the assertion to marshal", "Use this API to fetch all the autoscaleaction resources that are configured on n...
public BoxFile.Info commit(String digest, List<BoxFileUploadSessionPart> parts, Map<String, String> attributes, String ifMatch, String ifNoneMatch) { URL commitURL = this.sessionInfo.getSessionEndpoints().getCommitEndpoint(); BoxJSONRequest request = new BoxJSONRequest(this.getAPI...
[ "Commit an upload session after all parts have been uploaded, creating the new file or the version.\n@param digest the base64-encoded SHA-1 hash of the file being uploaded.\n@param parts the list of uploaded parts to be committed.\n@param attributes the key value pairs of attributes from the file instance.\n@param ...
[ "Creates a check box and adds it to the week panel and the checkboxes.\n@param internalValue the internal value of the checkbox\n@param labelMessageKey key for the label of the checkbox", "returns IsolationLevel literal as matching\nto the corresponding id\n@return the IsolationLevel literal", "Color waveforms ...
private void onScrollImpl(final Vector3Axis offset, final LayoutScroller.OnScrollListener listener) { if (!isScrolling()) { mScroller = new ScrollingProcessor(offset, listener); mScroller.scroll(); } }
[ "This method is called if the data set has been scrolled." ]
[ "Get the inactive overlay directories.\n\n@return the inactive overlay directories", "Create the log if it does not exist or return back exist log\n\n@param topic the topic name\n@param partition the partition id\n@return read or create a log\n@throws IOException any IOException", "Apply all attributes on t...
public void deleteArtifact(final String gavc, final String user, final String password) throws GrapesCommunicationException, AuthenticationException{ final Client client = getClient(user, password); final WebResource resource = client.resource(serverURL).path(RequestUtils.getArtifactPath(gavc)); ...
[ "Delete an artifact in the Grapes server\n\n@param gavc\n@throws GrapesCommunicationException\n@throws javax.naming.AuthenticationException" ]
[ "Returns a collection of all profiles\n\n@return Collection of all Profiles\n@throws Exception exception", "Gets existing config files.\n\n@return the existing config files", "Calculate start dates for a weekly recurrence.\n\n@param calendar current date\n@param frequency frequency\n@param dates array of start ...
public void sendToTagged(String message, String ... labels) { for (String label : labels) { sendToTagged(message, label); } }
[ "Send message to all connections tagged with all given tags\n@param message the message\n@param labels the tag labels" ]
[ "Gets the date time str.\n\n@param d\nthe d\n@return the date time str", "Processes the template for all indices of the current table.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException if an error occurs\n@doc.tag ...
public static dnsaaaarec[] get(nitro_service service, dnsaaaarec_args args) throws Exception{ dnsaaaarec obj = new dnsaaaarec(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); dnsaaaarec[] response = (dnsaaaarec[])obj.get_resources(service, option); return re...
[ "Use this API to fetch all the dnsaaaarec resources that are configured on netscaler.\nThis uses dnsaaaarec_args which is a way to provide additional arguments while fetching the resources." ]
[ "Retrieve from the parent pom the path to the modules of the project", "Gets the node list from string line seperate or space seperate.\n\n@param listStr\nthe list str\n@param removeDuplicate\nthe remove duplicate\n@return the node list from string line seperate or space seperate", "Returns true if required pro...
public static java.sql.Time toTime(Object value) throws ParseException { if (value == null) { return null; } if (value instanceof java.sql.Time) { return (java.sql.Time) value; } if (value instanceof String) { if ("".equals((String) value)) { ...
[ "Convert an Object to a Time." ]
[ "Store the versioned values\n\n@param values list of versioned bytes\n@return the list of versioned values rolled into an array of bytes", "Attempts to substitute all the found expressions in the input\nwith their corresponding resolved values.\nIf any of the found expressions failed to resolve or\nif the input d...
public static Bitmap decodeStream(InputStream stream, boolean closeStream) { return AsyncBitmapTexture.decodeStream(stream, AsyncBitmapTexture.glMaxTextureSize, AsyncBitmapTexture.glMaxTextureSize, true, null, closeStream); }
[ "An internal method, public only so that GVRContext can make cross-package\ncalls.\n\nA synchronous (blocking) wrapper around\n{@link android.graphics.BitmapFactory#decodeStream(InputStream)\nBitmapFactory.decodeStream} that uses an\n{@link android.graphics.BitmapFactory.Options} <code>inTempStorage</code>\ndecode ...
[ "Method that takes an inputstream, read it preserving the end lines, and subtitute using commons-lang-3 calls\nthe variables, first searching as system properties vars and then in environment var list.\nIn case of missing the property is replaced by white space.\n@param stream\n@return", "Static method to convert...
public boolean switchToStateAndCheckIfClone(final Eventable event, StateVertex newState, CrawlerContext context) { StateVertex cloneState = this.addStateToCurrentState(newState, event); runOnInvariantViolationPlugins(context); if (cloneState == null) { changeState(newState); plugins.runOnNewSt...
[ "Adds an edge between the current and new state.\n\n@return true if the new state is not found in the state machine." ]
[ "Creates the row key of the given association row; columns present in the given association key will be obtained\nfrom there, all other columns from the given native association row.", "Uploads a new large file.\n@param boxApi the API connection to be used by the upload session.\n@param folderId the id of the fol...
public Date dateTime(ImapRequestLineReader request) throws ProtocolException { char next = request.nextWordChar(); String dateString; // From https://tools.ietf.org/html/rfc3501 : // date-time = DQUOTE date-day-fixed "-" date-month "-" date-year // SP time...
[ "Reads a \"date-time\" argument from the request." ]
[ "Add a new column\n\n@param columnName the name of the column\n@param searchable whether the column is searchable or not\n@param orderable whether the column is orderable or not\n@param searchValue if any, the search value to apply", "Deletes the concrete representation of the specified object in the underlying\n...
public static nsacl6_stats get(nitro_service service, String acl6name) throws Exception{ nsacl6_stats obj = new nsacl6_stats(); obj.set_acl6name(acl6name); nsacl6_stats response = (nsacl6_stats) obj.stat_resource(service); return response; }
[ "Use this API to fetch statistics of nsacl6_stats resource of given name ." ]
[ "Determines whether or not two axially aligned bounding boxes in\nthe same coordinate space intersect.\n@param bv1 first bounding volume to test.\n@param bv2 second bounding volume to test.\n@return true if the boxes intersect, false if not.", "Creates a spin wrapper for a data input. The data format of the\ninpu...
private Database readSingleSchemaFile(DatabaseIO reader, File schemaFile) { Database model = null; if (!schemaFile.isFile()) { log("Path "+schemaFile.getAbsolutePath()+" does not denote a schema file", Project.MSG_ERR); } else if (!schemaFile.canRead()) ...
[ "Reads a single schema file.\n\n@param reader The schema reader\n@param schemaFile The schema file\n@return The model" ]
[ "Method signature without \"public void\" prefix\n\n@return The method signature in String format", "Return key Values of an Identity\n@param cld\n@param oid\n@param convertToSql\n@return Object[]\n@throws PersistenceBrokerException", "Un-serialize a Json into BuildInfo\n@param buildInfo String\n@return Map<Str...
public int getHotCueCount() { if (rawMessage != null) { return (int) ((NumberField) rawMessage.arguments.get(5)).getValue(); } int total = 0; for (Entry entry : entries) { if (entry.hotCueNumber > 0) { ++total; } } retur...
[ "Return the number of entries in the cue list that represent hot cues.\n\n@return the number of cue list entries that are hot cues" ]
[ "Creates a non-binary media type with the given type, subtype, and UTF-8 encoding\n@throws com.tngtech.jgiven.exception.JGivenWrongUsageException if any of the given arguments is {@code null}", "This functions reads SAM flowId and sets it\nas message property for subsequent store in CallContext\n@param message", ...
private static boolean extractSimpleExtents(Variable var, Extents e, boolean row, int length) { int lower; int upper; if( var.getType() == VariableType.INTEGER_SEQUENCE ) { IntegerSequence sequence = ((VariableIntegerSequence)var).sequence; if( sequence.getType() == Integ...
[ "See if a simple sequence can be used to extract the array. A simple extent is a continuous block from\na min to max index\n\n@return true if it is a simple range or false if not" ]
[ "Removes any configured observers.\n\n@deprecated since 1.1.0. Replaced by {@link #setObserverProvider(String)} and\n{@link #getObserverProvider()}", "Process the graphical indicator data.", "Specify the string and the int identifying which word shaper to\nuse and this returns the result of using that wordshape...
public File curDir() { File file = session().attribute(ATTR_PWD); if (null == file) { file = new File(System.getProperty("user.dir")); session().attribute(ATTR_PWD, file); } return file; }
[ "Return the current working directory\n\n@return the current working directory" ]
[ "Calculate where within the beat grid array the information for the specified beat can be found.\nYes, this is a super simple calculation; the main point of the method is to provide a nice exception\nwhen the beat is out of bounds.\n\n@param beatNumber the beat desired\n\n@return the offset of the start of our cach...
private void tryRefreshAccessToken(final Long reqStartedAt) { authLock.writeLock().lock(); try { if (!isLoggedIn()) { throw new StitchClientException(StitchClientErrorCode.LOGGED_OUT_DURING_REQUEST); } try { final Jwt jwt = Jwt.fromEncoded(getAuthInfo().getAccessToken()); ...
[ "prevent too many refreshes happening one after the other." ]
[ "List app dynos for an app\n\n@param appName See {@link #listApps} for a list of apps that can be used.", "This method is called by the client to load the most recent list of resources.\nThis method should only be called by the service client.\n\n@param result the most recent list of resources.", "Get the aggre...
private void checkUndefinedNotification(Notification notification) { String type = notification.getType(); PathAddress source = notification.getSource(); Map<String, NotificationEntry> descriptions = getRootResourceRegistration().getNotificationDescriptions(source, true); if (!descriptio...
[ "Check that each emitted notification is properly described by its source." ]
[ "Attempts to create a human-readable String representation of the provided rule.", "Gets the date time str.\n\n@param d\nthe d\n@return the date time str", "Generate a unique ID across the cluster\n@return generated ID", "Create a new custom field setting on the project.\n\n@param project The project to asso...
private void handleApplicationUpdateRequest(SerialMessage incomingMessage) { logger.trace("Handle Message Application Update Request"); int nodeId = incomingMessage.getMessagePayloadByte(1); logger.trace("Application Update Request from Node " + nodeId); UpdateState updateState = UpdateState.getUpdateState(i...
[ "Handles incoming Application Update Request.\n@param incomingMessage the request message to process." ]
[ "Records the result of updating a server.\n\n@param server the id of the server. Cannot be <code>null</code>\n@param response the result of the updates", "Use this API to update nsconfig.", "Checks whether the property of the given name is allowed for the model element.\n\n@param defClass The class of the ...
private Collection<? extends ResourceRoot> handleClassPathItems(final DeploymentUnit deploymentUnit) { final Set<ResourceRoot> additionalRoots = new HashSet<ResourceRoot>(); final ArrayDeque<ResourceRoot> toProcess = new ArrayDeque<ResourceRoot>(); final List<ResourceRoot> resourceRoots = Deploy...
[ "Loops through all resource roots that have been made available transitively via Class-Path entries, and\nadds them to the list of roots to be processed." ]
[ "Exceptions specific to each operation is handled in the corresponding\nsubclass. At this point we don't know the reason behind this exception.\n\n@param exception", "Handles a faulted task.\n\n@param faultedEntry the entry holding faulted task\n@param throwable the reason for fault\n@param context the context ob...
private void init() { style = new BoxStyle(UNIT); textLine = new StringBuilder(); textMetrics = null; graphicsPath = new Vector<PathSegment>(); startPage = 0; endPage = Integer.MAX_VALUE; fontTable = new FontTable(); }
[ "Internal initialization.\n@throws ParserConfigurationException" ]
[ "Method is called by spring and verifies that there is only one plugin per URI scheme.", "Answer a List of InCriteria based on values, each InCriteria\ncontains only inLimit values\n@param attribute\n@param values\n@param negative\n@param inLimit the maximum number of values for IN (-1 for no limit)\n@return List...
@Override public AccountingDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); }
[ "Obtains a local date in Accounting calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Accounting era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Accounting local date, not null\n@throws DateTimeException if unable to create the dat...
[ "Removes all of the markers from the map.", "Initializes the upper left component. Does not show the mode switch.", "New REST client uses new REST service", "Wrap a simple attribute def as list.\n\n@param def the attribute definition\n@return the list attribute def", "Creates a Source Processor\n\n@param so...
public UseCase selectUseCase() { displayUseCases(); System.out.println("type in number to select a use case"); String in = readLine(); int index = Integer.parseInt(in); return (UseCase) useCases.get(index); }
[ "select a use case." ]
[ "Computes the distance from a point p to the plane of this face.\n\n@param p\nthe point\n@return distance from the point to the plane", "Excludes Vertices that are of the provided type.", "Add a point to this curveFromInterpolationPoints. The method will throw an exception if the point\nis already part of the c...
public String processProcedure(Properties attributes) throws XDocletException { String type = attributes.getProperty(ATTRIBUTE_TYPE); ProcedureDef procDef = _curClassDef.getProcedure(type); String attrName; if (procDef == null) { procDe...
[ "Processes a procedure tag.\n\n@param template The template\n@param attributes The attributes of the tag\n@exception XDocletException If an error occurs\n@doc.tag type=\"content\"\n@doc.param name=\"arguments\" optional=\"true\" description=\"The argume...
[ "Clones the given collection.\n\n@param collDef The collection descriptor\n@param prefix A prefix for the name\n@return The cloned collection", "Gets the sub-entries of the navigation entry.\n\n@return the sub-entries", "Registers an image to be captured by the build-info proxy.\n\n@param imageTag\n@param host...
@Deprecated public List<Double> getResolutions() { List<Double> resolutions = new ArrayList<Double>(); for (ScaleInfo scale : getZoomLevels()) { resolutions.add(1. / scale.getPixelPerUnit()); } return resolutions; }
[ "Get the list of supported resolutions for the layer. Each resolution is specified in map units per pixel.\n\n@return list of supported resolutions\n@deprecated use {@link #getZoomLevels()}" ]
[ "Check if a dependency matches the filters\n\n@param dependency\n\n@return boolean", "Add a single header key-value pair. If one with the name already exists,\nboth stay in the header map.\n\n@param name the name of the header.\n@param value the value of the header.\n@return the interceptor instance itself.", "...
public void contextInitialized(ServletContextEvent event) { this.context = event.getServletContext(); // Output a simple message to the server's console System.out.println("The Simple Web App. Is Ready"); ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext( ...
[ "is ready to service requests" ]
[ "Redirect to page\n\n@param model\n@return", "Creates instance of the entity class. This method is called to create the object\ninstances when returning query results.", "width of input section", "Helper xml end tag writer\n\n@param value the output stream to use in writing", "Calculate the summed condition...
public void push( Token token ) { size++; if( first == null ) { first = token; last = token; token.previous = null; token.next = null; } else { last.next = token; token.previous = last; token.next = null; ...
[ "Adds a new Token to the end of the linked list" ]
[ "This method is called to format a task type.\n\n@param value task type value\n@return formatted task type", "Compute the A matrix from the Q and R matrices.\n\n@return The A matrix.", "Log a trace message.", "Use this API to add vpath.", "Register operations associated with this resource.\n\n@param resourc...
@Deprecated @SuppressWarnings({ "rawtypes", "unchecked" }) public void setAttributes(Map<String, PrimitiveAttribute<?>> attributes) { if (!isPrimitiveOnly()) { throw new UnsupportedOperationException("Primitive API not supported for nested association values"); } this.attributes = (Map) attributes; }
[ "Set the attributes for the associated object.\n\n@param attributes attributes for associated objects\n@deprecated replaced by {@link #setAllAttributes(Map)} after introduction of nested associations" ]
[ "Create new logging action\nThis method check if there is an old instance for this thread-local\nIf not - Initialize new instance and set it as this thread-local's instance\n@param logger\n@param auditor\n@param instance\n@return whether new instance was set to thread-local", "Set keyboard done listener to detect...
public Collection<Blog> getList() throws FlickrException { List<Blog> blogs = new ArrayList<Blog>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_LIST); Response response = transportAPI.post(transportAPI.getPath(), parameters...
[ "Get the collection of configured blogs for the calling user.\n\n@return The Collection of configured blogs" ]
[ "Use this API to fetch statistics of lbvserver_stats resource of given name .", "Encode a path segment, escaping characters not valid for a URL.\n\n<p>The following characters are not escaped:\n\n<ul>\n<li>{@code a..z, A..Z, 0..9}\n<li>{@code . - * _}\n</ul>\n\n<p>' ' (space) is encoded as '+'.\n\n<p>All other ch...
public static TimeZone getStockTimeZone(String symbol) { // First check if it's a known stock index if(INDEX_TIMEZONES.containsKey(symbol)) { return INDEX_TIMEZONES.get(symbol); } if(!symbol.contains(".")) { return ExchangeTimeZone.get(""); } ...
[ "Get the time zone for a specific stock or index.\nFor stocks, the exchange suffix is extracted from the stock symbol to retrieve the time zone.\n\n@param symbol stock symbol in YahooFinance\n@return time zone of the exchange on which this stock is traded" ]
[ "Returns the default output for functions without configured JSPs.\n\n@param request the current request\n@return the default HTML output", "Read the leaf tasks for an individual WBS node.\n\n@param parent parent task\n@param id first task ID", "Counts the coordinates stored in a single statement for the releva...
@SuppressWarnings("WeakerAccess") public Map<DeckReference, WaveformPreview> getLoadedPreviews() { ensureRunning(); // Make a copy so callers get an immutable snapshot of the current state. return Collections.unmodifiableMap(new HashMap<DeckReference, WaveformPreview>(previewHotCache)); ...
[ "Get the waveform previews available for all tracks currently loaded in any player, either on the play deck, or\nin a hot cue.\n\n@return the previews associated with all current players, including for any tracks loaded in their hot cue slots\n\n@throws IllegalStateException if the WaveformFinder is not running" ]
[ "Builds the mapping table.", "Return a logger associated with a particular class name.", "Removes the given entity from the inverse associations it manages.", "Handling out request.\n\n@param message\nthe message\n@throws Fault\nthe fault", "Iterates over all tags of current member and evaluates the templat...
public void setResource(Resource resource) { m_resource = resource; String name = m_resource.getName(); if (name == null || name.length() == 0) { name = "Unnamed Resource"; } setName(name); }
[ "Sets the resource to which this calendar is linked. Note that this\nmethod updates the calendar's name to be the same as the resource name.\nIf the resource does not yet have a name, then the calendar is given\na default name.\n\n@param resource resource instance" ]
[ "Log a free-form warning\n@param message the warning message. Cannot be {@code null}", "This method extracts data for a single resource from a GanttProject file.\n\n@param gpResource resource data", "Attaches an arbitrary object to this context only if the object was not already attached. If a value has already...
private void addCalendar(MpxjTreeNode parentNode, final ProjectCalendar calendar) { MpxjTreeNode calendarNode = new MpxjTreeNode(calendar, CALENDAR_EXCLUDED_METHODS) { @Override public String toString() { return calendar.getName(); } }; parentNode.add(ca...
[ "Add a calendar node.\n\n@param parentNode parent node\n@param calendar calendar" ]
[ "Remove the S3 file that contains the domain controller data.\n\n@param directoryName the name of the directory that contains the S3 file", "Convert a URL Encoded name back to the original form.\n@param name the name to URL urlDecode.\n@param encoding the string encoding to be used (i.e. UTF-8)\n@return the name ...
protected final StringBuilder getBaseUrl(final HttpServletRequest httpServletRequest) { StringBuilder baseURL = new StringBuilder(); if (httpServletRequest.getContextPath() != null && !httpServletRequest.getContextPath().isEmpty()) { baseURL.append(httpServletRequest.getContextPath()); ...
[ "Returns the base URL of the print servlet.\n\n@param httpServletRequest the request" ]
[ "Returns a flag represented as a String, indicating if\nthe supplied day is a working day.\n\n@param mpxjCalendar MPXJ ProjectCalendar instance\n@param day Day instance\n@return boolean flag as a string", "send object to client and serialize it using JSON\n\n@param objectToSend the object to send\n@param cb the ...
public boolean needToSetCategoryFolder() { if (m_adeModuleVersion == null) { return true; } CmsModuleVersion categoryFolderUpdateVersion = new CmsModuleVersion("9.0.0"); return (m_adeModuleVersion.compareTo(categoryFolderUpdateVersion) == -1); }
[ "Checks if the categoryfolder setting needs to be updated.\n\n@return true if the categoryfolder setting needs to be updated" ]
[ "Encodes the given URI authority with the given encoding.\n@param authority the authority to be encoded\n@param encoding the character encoding to encode to\n@return the encoded authority\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "Returns the first 24 photos for a ...
public void setImage(final GVRImage imageData) { mImage = imageData; if (imageData != null) NativeTexture.setImage(getNative(), imageData, imageData.getNative()); else NativeTexture.setImage(getNative(), null, 0); }
[ "Changes the image data associated with a GVRTexture.\nThis can be a simple bitmap, a compressed bitmap,\na cubemap or a compressed cubemap.\n@param imageData data for the texture as a GVRImate" ]
[ "Populates a relation list.\n\n@param task parent task\n@param field target task field\n@param data MPX relation list data", "Possibly coalesces the newest change event to match the user's original intent. For example,\nan unsynchronized insert and update is still an insert.\n\n@param lastUncommittedChangeEvent t...
public static vpnvserver_authenticationradiuspolicy_binding[] get(nitro_service service, String name) throws Exception{ vpnvserver_authenticationradiuspolicy_binding obj = new vpnvserver_authenticationradiuspolicy_binding(); obj.set_name(name); vpnvserver_authenticationradiuspolicy_binding response[] = (vpnvserve...
[ "Use this API to fetch vpnvserver_authenticationradiuspolicy_binding resources of given name ." ]
[ "Computes the decomposition of the provided matrix. If no errors are detected then true is returned,\nfalse otherwise.\n@param A The matrix that is being decomposed. Not modified.\n@return If it detects any errors or not.", "Process calendar hours and exception data from the database.\n\n@param calendars all c...
synchronized JSONObject fetchEvents(Table table, final int limit) { final String tName = table.getName(); Cursor cursor = null; String lastId = null; final JSONArray events = new JSONArray(); //noinspection TryFinallyCanBeTryWithResources try { final SQLiteD...
[ "Returns a JSONObject keyed with the lastId retrieved and a value of a JSONArray of the retrieved JSONObject events\n\n@param table the table to read from\n@return JSONObject containing the max row ID and a JSONArray of the JSONObject events or null" ]
[ "Updates the indices in the index buffer from a Java char array.\nAll of the entries of the input char array are copied into\nthe storage for the index buffer. The new indices must be the\nsame size as the old indices - the index buffer size cannot be changed.\n@param data char array containing the new values\n@thr...
public void init(Map<String, String> testConfig, Map<String, String> hiveVars) { context.init(); HiveConf hiveConf = context.getHiveConf(); // merge test case properties with hive conf before HiveServer is started. for (Map.Entry<String, String> property : testConfig.entrySet()) { ...
[ "Will start the HiveServer.\n\n@param testConfig Specific test case properties. Will be merged with the HiveConf of the context\n@param hiveVars HiveVars to pass on to the HiveServer for this session" ]
[ "needs to be resolved once extension beans are deployed", "create a new instance of class clazz.\nfirst use the public default constructor.\nIf this fails also try to use protected an private constructors.\n@param clazz the class to instantiate\n@return the fresh instance of class clazz\n@throws InstantiationExce...
@SuppressWarnings("unchecked") private static Object resolveConflictWithResolver( final ConflictHandler conflictResolver, final BsonValue documentId, final ChangeEvent localEvent, final ChangeEvent remoteEvent ) { return conflictResolver.resolveConflict( documentId, local...
[ "Returns the resolution of resolving the conflict between a local and remote event using\nthe given conflict resolver.\n\n@param conflictResolver the conflict resolver to use.\n@param documentId the document id related to the conflicted events.\n@param localEvent the conflicted local event.\n@param remo...
[ "Generate a map of UUID values to field types.\n\n@return UUID field value map", "Gets the task from in progress map.\n\n@param jobId\nthe job id\n@return the task from in progress map", "Updates the given integer belief\nadding the given integer\nnewBelief = previousBelief + givenValue\n\n@param String - the b...
public void setScale(final float scale) { if (equal(mScale, scale) != true) { Log.d(TAG, "setScale(): old: %.2f, new: %.2f", mScale, scale); mScale = scale; setScale(mSceneRootObject, scale); setScale(mMainCameraRootObject, scale); setScale(mLeftCamera...
[ "Scale all widgets in Main Scene hierarchy\n@param scale" ]
[ "Process the given key and value. First validate the value and check if there's no different value for the same key in the same source - invalid and\ndifferent values are treated as a deployment problem.\n\n@param properties\n@param key\n@param value", "Adds NOT BETWEEN criteria,\ncustomer_id not between 1 and 10...
public static boolean setCustomResponseForDefaultProfile(String pathName, String customData) { try { return setCustomForDefaultProfile(pathName, true, customData); } catch (Exception e) { e.printStackTrace(); } return false; }
[ "set custom response for the default profile's default client\n\n@param pathName friendly name of path\n@param customData custom response/request data\n@return true if success, false otherwise" ]
[ "Maps a field index to a ResourceField instance.\n\n@param fields array of fields used as the basis for the mapping.\n@param index required field index\n@return ResourceField instance", "Sets a client option per-request\n\n@param key Option name\n@param value Option value\n@return The request itself", "Use th...
@Override protected void registerRequest(RestRequestValidator requestValidator, ChannelHandlerContext ctx, MessageEvent messageEvent) { // At this point we know the request is valid and we have a // error handler. So we construct...
[ "Constructs a valid request and passes it on to the next handler. It also\ncreates the 'StoreClient' object corresponding to the store name\nspecified in the REST request.\n\n@param requestValidator The Validator object used to construct the\nrequest object\n@param ctx Context of the Netty channel\n@param messageEv...
[ "Gets the automaton by id.\n\n@param id the id\n@return the automaton by id\n@throws IOException Signals that an I/O exception has occurred.", "Converts this file into a resource name on the classpath by cutting of the file path\nto the classpath root.\n\n@param classPathRootOnDisk The location of the classpath r...
public void removeJobType(final Class<?> jobType) { if (jobType == null) { throw new IllegalArgumentException("jobType must not be null"); } this.jobTypes.values().remove(jobType); }
[ "Disallow the job type from being executed.\n@param jobType the job type to disallow" ]
[ "Copied from original SeleniumProxyHandler\nChanged SslRelay to SslListener and getSslRelayOrCreateNew to getSslRelayOrCreateNewOdo\nNo other changes to the function\n\n@param pathInContext\n@param pathParams\n@param request\n@param response\n@throws HttpException\n@throws IOException", "Use this API to unset the...