query
stringlengths
74
6.1k
positive
listlengths
1
1
negative
listlengths
9
9
public List<CmsFavoriteEntry> loadFavorites() throws CmsException { List<CmsFavoriteEntry> result = new ArrayList<>(); try { CmsUser user = readUser(); String data = (String)user.getAdditionalInfo(ADDINFO_KEY); if (CmsStringUtil.isEmptyOrWhitespaceOnly(data)) { ...
[ "Loads the favorite list.\n\n@return the list of favorites\n\n@throws CmsException if something goes wrong" ]
[ "Helper method to synchronously invoke a callback\n\n@param call", "Returns the JSON String representation of the payload\naccording to Apple APNS specification\n\n@return the String representation as expected by Apple", "High-accuracy Normal cumulative distribution function.\n\n@param x Value.\n@return Result...
private boolean processQueue(K key) { Queue<AsyncResourceRequest<V>> requestQueue = getRequestQueueForKey(key); if(requestQueue.isEmpty()) { return false; } // Attempt to get a resource. Pool<V> resourcePool = getResourcePoolForKey(key); V resource = null; ...
[ "Attempts to checkout a resource so that one queued request can be\nserviced.\n\n@param key The key for which to process the requestQueue\n@return true iff an item was processed from the Queue." ]
[ "This method is called to format a relation.\n\n@param relation relation instance\n@return formatted relation instance", "Curries a procedure that takes two arguments.\n\n@param procedure\nthe original procedure. May not be <code>null</code>.\n@param argument\nthe fixed first argument of {@code procedure}.\n@retu...
public static base_responses Import(nitro_service client, sslfipskey resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { sslfipskey Importresources[] = new sslfipskey[resources.length]; for (int i=0;i<resources.length;i++){ Importresources[i] = ne...
[ "Use this API to Import sslfipskey resources." ]
[ "Returns true of the specified matrix element is valid element inside this matrix.\n\n@param row Row index.\n@param col Column index.\n@return true if it is a valid element in the matrix.", "appends a HAVING-clause to the Statement\n@param having\n@param crit\n@param stmt", "Use this API to fetch the statistics...
@SuppressWarnings("unchecked") public Multimap<String, Processor> getAllRequiredAttributes() { Multimap<String, Processor> requiredInputs = HashMultimap.create(); for (ProcessorGraphNode root: this.roots) { final BiMap<String, String> inputMapper = root.getInputMapper(); for ...
[ "Get all the names of inputs that are required to be in the Values object when this graph is executed." ]
[ "Returns the output path specified on the javadoc options", "Convert a string to a URL and fallback to classpath resource, if not convertible.\n\n@param s\nThe string to convert.\n\n@return The URL.", "Create a rollback patch based on the recorded actions.\n\n@param patchId the new patch id, depending on rele...
private void processCalendarDays(ProjectCalendar calendar, Record root) { // Retrieve working hours ... Record daysOfWeek = root.getChild("DaysOfWeek"); if (daysOfWeek != null) { for (Record dayRecord : daysOfWeek.getChildren()) { processCalendarHours(calendar, d...
[ "Process calendar days of the week.\n\n@param calendar project calendar\n@param root calendar data" ]
[ "Creates a db handling object.\n\n@return The db handling object\n@throws BuildException If the handling is invalid", "Converts the suggestions from the Solrj format to JSON format.\n\n@param response The SpellCheckResponse object containing the spellcheck results.\n@return The spellcheck suggestions as JSON obje...
void stop() { try { dm.stop(getBundleContext()); } catch (DirectoryMonitoringException e) { LOG.error("Failed to stop " + DirectoryMonitor.class.getName() + " for the directory " + monitoredDirectory, e); } declarationsFiles.clear(); declarationRegistratio...
[ "This method must be called on the stop of the component. Stop the directory monitor and unregister all the\ndeclarations." ]
[ "Used to determine if a particular day of the week is normally\na working day.\n\n@param mpxjCalendar ProjectCalendar instance\n@param day Day instance\n@return boolean flag", "Returns an array specifing the index of each hull vertex with respect to\nthe original input points.\n\n@return vertex indices with respe...
public static String getDateTimeStr(Date d) { if (d == null) return ""; SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSSZ"); // 20140315 test will problem +0000 return sdf.format(d); }
[ "Gets the date time str.\n\n@param d\nthe d\n@return the date time str" ]
[ "Send a master changed announcement to all registered master listeners.\n\n@param update the message announcing the new tempo master", "Retrieve row from a nested table.\n\n@param name column name\n@return nested table rows", "Write exceptions in the format used by MSPDI files prior to Project 2007.\n\n@param d...
public static boolean sameNetwork(int prefixLength, InetAddress address1, InetAddress address2) { if (logger.isDebugEnabled()) { logger.debug("Comparing address " + address1.getHostAddress() + " with " + address2.getHostAddress() + ", prefixLength=" + prefixLength); } long prefixMask...
[ "Checks whether two internet addresses are on the same subnet.\n\n@param prefixLength the number of bits within an address that identify the network\n@param address1 the first address to be compared\n@param address2 the second address to be compared\n\n@return true if both addresses share the same network bits" ]
[ "This method searches in the Component Management Service, so given an\nagent name returns its IExternalAccess\n\n@param agent_name\nThe name of the agent in the platform\n@return The IComponentIdentifier of the agent in the platform", "Parse a filter expression.\n\n@param filter the filter expression\n@return co...
public static long decodeLong(byte[] ba, int offset) { return ((((long) ba[offset + 0] << 56) + ((long) (ba[offset + 1] & 255) << 48) + ((long) (ba[offset + 2] & 255) << 40) + ((long) (ba[offset + 3] & 255) << 32) + ((long) (ba[offset + 4] & 255) << 24) + ((ba[offset + 5] & 255) << 16) + ((b...
[ "Decode long from byte array at offset\n\n@param ba byte array\n@param offset Offset\n@return long value" ]
[ "Pick arbitrary wrapping method. No generics should be set.\n@param builder", "If provided with an AVRO schema, validates it and checks if there are\nbackwards compatible.\n\nTODO should probably place some similar checks for other serializer types\nas well?\n\n@param serializerDef", "Checks if the specified la...
private static void attachToContent(Activity activity, MenuDrawer menuDrawer) { /** * Do not call mActivity#setContentView. * E.g. if using with a ListActivity, Activity#setContentView is overridden and dispatched to * MenuDrawer#setContentView, which then again would call Activity#se...
[ "Attaches the menu drawer to the content view." ]
[ "Use this API to fetch all the transformpolicylabel resources that are configured on netscaler.", "Stop finding waveforms for all active players.", "Reads basic summary details from the project properties.\n\n@param file MPX file", "Output method responsible for sending the updated content to the Subscribers....
public QueryBuilder<T, ID> selectColumns(String... columns) { for (String column : columns) { addSelectColumnToList(column); } return this; }
[ "Add columns to be returned by the SELECT query. If no columns are selected then all columns are returned by\ndefault. For classes with id columns, the id column is added to the select list automagically. This can be called\nmultiple times to add more columns to select.\n\n<p>\n<b>WARNING:</b> If you specify any co...
[ "Checks if provided class package is on the exclude list\n\n@param classPackageName\nname of class package\n@return false if class package is on the {@link #excludePackages} list", "Starting with the given column index, will return the first column index\nwhich contains a colour that does not match the given colo...
List<W3CEndpointReference> lookupEndpoints(QName serviceName, MatcherDataType matcherData) throws ServiceLocatorFault, InterruptedExceptionFault { SLPropertiesMatcher matcher = createMatcher(matcherData); List<String> names = null; List<W3CEndpointReference> result = new ...
[ "For the given service name return list of endpoint references currently\nregistered at the service locator server endpoints.\n\n@param serviceName\nthe name of the service for which to get the endpoints, must\nnot be <code>null</code>\n@return EndpointReferenceListType encapsulate list of endpoint references\nor <...
[ "Do the search, called as a \"page action\"", "Copies just the upper or lower triangular portion of a matrix.\n\n@param src Matrix being copied. Not modified.\n@param dst Where just a triangle from src is copied. If null a new one will be created. Modified.\n@param upper If the upper or lower triangle should be ...
public void setCurrencySymbol(String symbol) { if (symbol == null) { symbol = DEFAULT_CURRENCY_SYMBOL; } set(ProjectField.CURRENCY_SYMBOL, symbol); }
[ "Sets currency symbol.\n\n@param symbol currency symbol" ]
[ "Converts the suggestions from the Solrj format to JSON format.\n\n@param response The SpellCheckResponse object containing the spellcheck results.\n@return The spellcheck suggestions as JSON object or null if something goes wrong.", "Returns the target locales.\n\n@return the target locales, never null.", "Red...
private static String getUnexpectedTypeMessage(final Class<?> expectedType, final Object actualValue) { if( expectedType == null ) { throw new NullPointerException("expectedType should not be null"); } String expectedClassName = expectedType.getName(); String actualClassName = (actualValue != null) ? actualV...
[ "Assembles the exception message when the value received by a CellProcessor isn't of the correct type.\n\n@param expectedType\nthe expected type\n@param actualValue\nthe value received by the CellProcessor\n@return the message\n@throws NullPointerException\nif expectedType is null" ]
[ "Sets the node meta data.\n\n@param key - the meta data key\n@param value - the meta data value\n@throws GroovyBugError if key is null or there is already meta\ndata under that key", "Updates the gatewayDirection attributes of all gateways.\n@param def", "Given a string with method or package name, creates a Cl...
private void flushOutput() throws IOException { outStream.flush(); outWriter.completeLine(); errStream.flush(); errWriter.completeLine(); }
[ "Flush output streams." ]
[ "Create a new custom field setting on the project.\n\n@param project The project to associate the custom field with\n@return Request object", "Returns whether this address section represents a subnet block of addresses associated its prefix length.\n\nReturns false if it has no prefix length, if it is a single a...
@Override public T next() { SQLException sqlException = null; try { T result = nextThrow(); if (result != null) { return result; } } catch (SQLException e) { sqlException = e; } // we have to throw if there is no next or on a SQLException last = null; closeQuietly(); throw new IllegalSt...
[ "Returns the next object in the table.\n\n@throws IllegalStateException\nIf there was a problem extracting the object from SQL." ]
[ "Tries to guess the packaging of the archive - whether it's an EAR, WAR, JAR.\nMaybe not needed as we can rely on the suffix?", "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 G...
public static <InnerT> Observable<InnerT> convertPageToInnerAsync(Observable<Page<InnerT>> innerPage) { return innerPage.flatMap(new Func1<Page<InnerT>, Observable<InnerT>>() { @Override public Observable<InnerT> call(Page<InnerT> pageInner) { return Observable.from(pageI...
[ "Converts Observable of page to Observable of Inner.\n@param <InnerT> type of inner.\n@param innerPage Page to be converted.\n@return Observable for list of inner." ]
[ "Send message to all connections connected to the same URL of this context\n\n@param message the message to be sent\n@param excludeSelf whether the connection of this context should be sent to\n@return this context", "The metadata cache can become huge over time. This simply flushes it periodically.", "Takes a ...
private Project.Calendars.Calendar writeCalendar(ProjectCalendar bc) { // // Create a calendar // Project.Calendars.Calendar calendar = m_factory.createProjectCalendarsCalendar(); calendar.setUID(NumberHelper.getBigInteger(bc.getUniqueID())); calendar.setIsBaseCalendar(Boolean.val...
[ "This method writes data for a single calendar to an MSPDI file.\n\n@param bc Base calendar data\n@return New MSPDI calendar instance" ]
[ "When the JRField needs properties, use this method.\n@param propertyName\n@param value\n@return", "Use this API to login into Netscaler.\n@param username Username\n@param password Password for the Netscaler.\n@param timeout timeout for netscaler session.Default is 1800secs\n@return status of the operation perfor...
public CompositeGeneratorNode appendTemplate(final CompositeGeneratorNode parent, final StringConcatenationClient templateString) { final TemplateNode proc = new TemplateNode(templateString, this); List<IGeneratorNode> _children = parent.getChildren(); _children.add(proc); return parent; }
[ "Creates a template node for the given templateString and appends it to the given parent node.\n\nTemplates are translated to generator node trees and expressions in templates can be of type IGeneratorNode.\n\n@return the given parent node" ]
[ "Builds the resource.\n\n@return the cms resource", "if you want to convert some string to an object, you have an argument to parse", "Inserts a CharSequence 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,...
protected static String getTimePrecisionString(byte precision) { switch (precision) { case TimeValue.PREC_SECOND: return "sec"; case TimeValue.PREC_MINUTE: return "min"; case TimeValue.PREC_HOUR: return "hour"; case TimeValue.PREC_DAY: return "day"; case TimeValue.PREC_MONTH: return "month"; ...
[ "Returns a human-readable string representation of a reference to a\nprecision that is used for a time value.\n\n@param precision\nthe numeric precision\n@return a string representation of the precision" ]
[ "Convert a Throwable into a list containing all of its causes.\n@param t The throwable for which the causes are to be returned.\n@return A (possibly empty) list of {@link Throwable}s.", "Stops all servers linked with the current camel context\n\n@param camelContext", "Draws the specified image with the first re...
public ConfigurableMessages getConfigurableMessages(CmsMessages defaultMessages, Locale locale) { return new ConfigurableMessages(defaultMessages, locale, m_configuredBundle); }
[ "Returns the configured bundle, or the provided default bundle.\n@param defaultMessages the default bundle\n@param locale the preferred locale\n@return the configured bundle or, if not found, the default bundle." ]
[ "Start unmarshalling using the parser.\n@param parser\n@param preProcessingData\n@return the root element of a bpmn2 document.\n@throws java.io.IOException", "Binds the Identities Primary key values to the statement.", "Delete the given file in a separate thread\n\n@param file The file to delete", "Close the ...
public static base_responses kill(nitro_service client, systemsession resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { systemsession killresources[] = new systemsession[resources.length]; for (int i=0;i<resources.length;i++){ killresources[i] =...
[ "Use this API to kill systemsession resources." ]
[ "Use this API to fetch nssimpleacl resources of given names .", "Wraps the specified object pool for connections as a DataSource.\n\n@param jcd the OJB connection descriptor for the pool to be wrapped\n@param connectionPool the connection pool to be wrapped\n@return a DataSource attached to the connection pool.\n...
private String escapeString(String value) { m_buffer.setLength(0); m_buffer.append('"'); for (int index = 0; index < value.length(); index++) { char c = value.charAt(index); switch (c) { case '"': { m_buffer.append("\\\""); ...
[ "Escape text to ensure valid JSON.\n\n@param value value\n@return escaped value" ]
[ "Returns the index of the eigenvalue which has the smallest magnitude.\n\n@return index of the smallest magnitude eigen value.", "Apply content type to response with result provided.\n\nIf `result` is an error then it might not apply content type as requested:\n* If request is not ajax request, then use `text/htm...
private void normalizeSelectedCategories() { Collection<String> normalizedCategories = new ArrayList<String>(m_selectedCategories.size()); for (CmsTreeItem item : m_categories.values()) { if (item.getCheckBox().isChecked()) { normalizedCategories.add(item.getId()); ...
[ "Normalize the list of selected categories to fit for the ids of the tree items." ]
[ "Delete the proxy history for the active profile\n\n@throws Exception exception", "Use this API to fetch appfwprofile_safeobject_binding resources of given name .", "Execute a Runnable on a thread pool thread\n\n@param priority\nThe thread priority. Be careful with this! <blockquote>\n<b>Note:</b> Use Thread.MI...
public ItemRequest<Task> update(String task) { String path = String.format("/tasks/%s", task); return new ItemRequest<Task>(this, Task.class, path, "PUT"); }
[ "A specific, existing task can be updated by making a PUT request on the\nURL for that task. Only the fields provided in the `data` block will be\nupdated; any unspecified fields will remain unchanged.\n\nWhen using this method, it is best to specify only those fields you wish\nto change, or else you may overwrite ...
[ "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", "Implements get by delegating to getAll.", "Polls the next ParsedWord from the stack.\n\n@return next ParsedWord", "Get transformer to use.\n\n@...
public void setColorForTotal(int row, int column, Color color){ int mapC = (colors.length-1) - column; int mapR = (colors[0].length-1) - row; colors[mapC][mapR]=color; }
[ "Sets the color for the big total between the column and row\n@param row row index (starting from 1)\n@param column column index (starting from 1)\n@param color" ]
[ "Sobel method to generate bump map from a height map\n\n@param input - A height map\n@return bump map", "Given a list of keys and a number of splits find the keys to split on.\n\n@param keys the list of keys.\n@param numSplits the number of splits.", "Get the element at the index as a json object.\n\n@param i t...
public RemoteMongoCollection<Document> getCollection(final String collectionName) { return new RemoteMongoCollectionImpl<>(proxy.getCollection(collectionName), dispatcher); }
[ "Gets a collection.\n\n@param collectionName the name of the collection to return\n@return the collection" ]
[ "Create a HttpComponents HttpUriRequest object for the given HTTP method and URI specification.\n\n@param httpMethod the HTTP method\n@param uri the URI\n@return the HttpComponents HttpUriRequest object", "Parses the resource String id and get back the int res id\n@param context\n@param id String resource id\n@re...
public static lbvserver_rewritepolicy_binding[] get(nitro_service service, String name) throws Exception{ lbvserver_rewritepolicy_binding obj = new lbvserver_rewritepolicy_binding(); obj.set_name(name); lbvserver_rewritepolicy_binding response[] = (lbvserver_rewritepolicy_binding[]) obj.get_resources(service); ...
[ "Use this API to fetch lbvserver_rewritepolicy_binding resources of given name ." ]
[ "Returns the next object in the table.\n\n@throws IllegalStateException\nIf there was a problem extracting the object from SQL.", "Retrieve a duration in the form required by Primavera.\n\n@param duration Duration instance\n@return formatted duration", "Try Oracle update batching and call sendBatch or revert to...
@Override public void setModel(TableModel model) { super.setModel(model); int columns = model.getColumnCount(); TableColumnModel tableColumnModel = getColumnModel(); for (int index = 0; index < columns; index++) { tableColumnModel.getColumn(index).setPreferredWidth(m_columnWidt...
[ "Updates the model. Ensures that we reset the columns widths.\n\n@param model table model" ]
[ "Use this API to fetch appflowpolicy_appflowglobal_binding resources of given name .", "Get upload status for the currently authenticated user.\n\nRequires authentication with 'read' permission using the new authentication API.\n\n@return A User object with upload status data fields filled\n@throws FlickrExceptio...
@Inline(value = "$1.putAll($2)", statementExpression = true) public static <K, V> void operator_add(Map<K, V> outputMap, Map<? extends K, ? extends V> inputMap) { outputMap.putAll(inputMap); }
[ "Add the given entries of the input map into the output map.\n\n<p>\nIf a key in the inputMap already exists in the outputMap, its value is\nreplaced in the outputMap by the value from the inputMap.\n</p>\n\n@param <K> type of the map keys.\n@param <V> type of the map values.\n@param outputMap the map to update.\n@...
[ "Processes the template for all column definitions 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 type=\"block\"", "Add the steal information to the rebalancer...
protected Element createPageElement() { String pstyle = ""; PDRectangle layout = getCurrentMediaBox(); if (layout != null) { /*System.out.println("x1 " + layout.getLowerLeftX()); System.out.println("y1 " + layout.getLowerLeftY()); System.out.printl...
[ "Creates an element that represents a single page.\n@return the resulting DOM element" ]
[ "Get the bone index for the given scene object.\n\n@param bone GVRSceneObject bone to search for\n@return bone index or -1 for root bone.\n@see #getParentBoneIndex", "Use this API to fetch all the appfwprofile resources that are configured on netscaler.", "Upcasts a Builder instance to the generated superclass,...
public double getValue(int[] batch) { double value = 0.0; for (int i=0; i<batch.length; i++) { value += getValue(i); } return value; }
[ "Gets value of this function at the current point, computed on the given batch of examples.\n@param batch A set of indices indicating the examples over which the gradient should be computed.\n@return The value of the function at the point." ]
[ "Read task data from a Gantt Designer file.\n\n@param gantt Gantt Designer file", "Edit the text of 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 edit.\n@param commentText\nUpdate the comment to this tex...
public void setValue(Vector3f scale) { mX = scale.x; mY = scale.y; mZ = scale.z; }
[ "Sets the scale vector of the keyframe." ]
[ "Call the Coverage Task.", "Write exceptions in the format used by MSPDI files prior to Project 2007.\n\n@param dayList list of calendar days\n@param exceptions list of exceptions", "Copies all available data from in to out without closing any stream.\n\n@return number of bytes copied", "Downloads a part of t...
void resizeArray(int newArraySize) { long[] newArray = new long[newArraySize]; System.arraycopy(this.arrayOfBits, 0, newArray, 0, Math.min(this.arrayOfBits.length, newArraySize)); this.arrayOfBits = newArray; }
[ "Resizes the array that represents this bit vector.\n\n@param newArraySize\nnew array size" ]
[ "Extracts the column from the matrix a.\n@param a Input matrix\n@param column Which column is to be extracted\n@param out output. Storage for the extracted column. If null then a new vector will be returned.\n@return The extracted column.", "Returns true if the activity is a start milestone.\n\n@param activity Ph...
public void convertToSparse() { switch ( mat.getType() ) { case DDRM: { DMatrixSparseCSC m = new DMatrixSparseCSC(mat.getNumRows(), mat.getNumCols()); ConvertDMatrixStruct.convert((DMatrixRMaj) mat, m,0); setMatrix(m); } break; ...
[ "Switches from a dense to sparse matrix" ]
[ "Entry point for the example.\n\n@param args Command-line arguments for the example. To use samplemachine.xml from resources, send\nno arguments. To use other file, send a filename without xml extension).", "close the AdminPool, if no long required.\nAfter closed, all public methods will throw IllegalStateExcepti...
protected void generateFile(File file, String templateName, VelocityContext context) throws Exception { Writer writer = new BufferedWriter(new FileWriter(file)); try { Velocity.mergeTemplate(classpathPrefix + templat...
[ "Generate the specified output file by merging the specified\nVelocity template with the supplied context." ]
[ "Calls a function script associated with this component.\nThe function is called even if the component\nis not enabled and not attached to a scene object.\n@param funcName name of script function to call.\n@param args function parameters as an array of objects.\n@return true if function was called, false if no such...
protected void writeBody(HttpURLConnection connection, ProgressListener listener) { if (this.body == null) { return; } connection.setDoOutput(true); try { OutputStream output = connection.getOutputStream(); if (listener != null) { outp...
[ "Writes the body of this request to an HttpURLConnection.\n\n<p>Subclasses overriding this method must remember to close the connection's OutputStream after writing.</p>\n\n@param connection the connection to which the body should be written.\n@param listener an optional listener for monitoring the write progress...
[ "Sets that there are some pending writes that occurred at a time for an associated\nlocally emitted change event. This variant maintains the last version set.\n\n@param atTime the time at which the write occurred.\n@param changeEvent the description of the write/change.", "Assigns retention policy with given...
private boolean isSecuredByProperty(Server server) { boolean isSecured = false; Object value = server.getEndpoint().get("org.talend.tesb.endpoint.secured"); //Property name TBD if (value instanceof String) { try { isSecured = Boolean.valueOf((String) value); ...
[ "Is the transport secured by a JAX-WS property" ]
[ "Override this method to change the default splash screen size or\nposition.\n\nThis method will be called <em>before</em> {@link #onInit(GVRContext)\nonInit()} and before the normal render pipeline starts up. In particular,\nthis means that any {@linkplain GVRAnimation animations} will not start\nuntil the first {...
public final static String process(final String input, final Configuration configuration) { try { return process(new StringReader(input), configuration); } catch (final IOException e) { // This _can never_ happen return null; } ...
[ "Transforms an input String into HTML using the given Configuration.\n\n@param input\nThe String to process.\n@param configuration\nThe Configuration.\n@return The processed String.\n@since 0.7\n@see Configuration" ]
[ "Use this API to enable snmpalarm of given name.", "Creates an instance of a NewEnterpriseBean from an annotated class\n\n@param clazz The annotated class\n@param beanManager The Bean manager\n@return a new NewEnterpriseBean instance", "Inserts a vertex into this list before another specificed vertex.", ...
public static byte[] concat(Bytes... listOfBytes) { int offset = 0; int size = 0; for (Bytes b : listOfBytes) { size += b.length() + checkVlen(b.length()); } byte[] data = new byte[size]; for (Bytes b : listOfBytes) { offset = writeVint(data, offset, b.length()); b.copyTo(0, ...
[ "Concatenates of list of Bytes objects to create a byte array\n\n@param listOfBytes Bytes objects to concatenate\n@return Bytes" ]
[ "Checks if the method being invoked should be wrapped by a service.\nIt looks the method name up in the methodList. If its in the list, then\nthe method should be wrapped. If the list is null, then all methods\nare wrapped.\n\n@param methodName The method being called\n\n@return boolean", "Returns the screen widt...
public Object invokeOperation(Map<String, String[]> parameterMap) throws JMException { MBeanParameterInfo[] parameterInfoArray = operationInfo.getSignature(); Object[] values = new Object[parameterInfoArray.length]; String[] types = new String[parameterInfoArray.length]; MBeanValueConv...
[ "Invoke the operation.\n@param parameterMap the {@link Map} of parameter names to value arrays.\n@return the {@link Object} return value from the operation.\n@throws JMException Java Management Exception" ]
[ "Returns the error correction codewords for the specified data codewords.\n\n@param codewords the codewords that we need error correction codewords for\n@param ecclen the number of error correction codewords needed\n@return the error correction codewords for the specified data codewords", "Creates the database.\n...
public void swapSubstring(BitString other, int start, int length) { assertValidIndex(start); other.assertValidIndex(start); int word = start / WORD_LENGTH; int partialWordSize = (WORD_LENGTH - start) % WORD_LENGTH; if (partialWordSize > 0) { swap...
[ "An efficient method for exchanging data between two bit strings. Both bit strings must\nbe long enough that they contain the full length of the specified substring.\n@param other The bitstring with which this bitstring should swap bits.\n@param start The start position for the substrings to be exchanged. All bit...
[ "Get the primitive attributes for the associated object.\n\n@return attributes for associated objects\n@deprecated replaced by {@link #getAllAttributes()} after introduction of nested associations", "Adds another scene object to pick against.\nEach frame all the colliders in the scene will be compared\nagainst th...
private void handleTextWebSocketFrameInternal(TextWebSocketFrame frame, ChannelHandlerContext ctx) { if (logger.isTraceEnabled()) { logger.trace(String.format("%s received %s", ctx.channel(), frame.text())); } addTraceForFrame(frame, "text"); ctx.channel().write(new TextWebSocketFrame("Echo: " + frame.text(...
[ "simple echo implementation" ]
[ "Check if we still need more nodes from the given zone and reduce the\nzoneReplicationFactor count accordingly.\n\n@param requiredRepFactor\n@param zoneId\n@return", "gets a class from the class cache. This cache contains only classes loaded through\nthis class loader or an InnerLoader instance. If no class is st...
public ParallelTaskBuilder setSshPrivKeyRelativePathWtihPassphrase( String privKeyRelativePath, String passphrase) { this.sshMeta.setPrivKeyRelativePath(privKeyRelativePath); this.sshMeta.setPrivKeyUsePassphrase(true); this.sshMeta.setPassphrase(passphrase); this.sshMeta.setS...
[ "Sets the ssh priv key relative path wtih passphrase.\n\n@param privKeyRelativePath the priv key relative path\n@param passphrase the passphrase\n@return the parallel task builder" ]
[ "When it is time to actually close a client, do so, and clean up the related data structures.\n\n@param client the client which has been idle for long enough to be closed", "Schedule at most one task.\n\nThe scheduled task *must* invoke 'doneTask()' upon\ncompletion/termination.\n\n@param executeService flag to c...
public AbstractSqlCreator setParameter(String name, Object value) { ppsc.setParameter(name, value); return this; }
[ "Sets a parameter for the creator." ]
[ "Get the art available for all tracks currently loaded in any player, either on the play deck, or in a hot cue.\n\n@return the album art associated with all current players, including for any tracks loaded in their hot cue slots\n\n@throws IllegalStateException if the ArtFinder is not running", "This configuratio...
public synchronized GeoInterface getGeoInterface() { if (geoInterface == null) { geoInterface = new GeoInterface(apiKey, sharedSecret, transport); } return geoInterface; }
[ "Get the geo interface.\n\n@return Access class to the flickr.photos.geo methods." ]
[ "Utility function to find the first index of a value in a\nListBox.", "Checks if a given number is in the range of an integer.\n\n@param number\na number which should be in the range of an integer (positive or negative)\n\n@see java.lang.Integer#MIN_VALUE\n@see java.lang.Integer#MAX_VALUE\n\n@return number as an ...
@Override protected boolean changeDirection(int currentIndex, int centerIndex, boolean inBounds) { boolean changed = false; if (getGravityInternal() == Gravity.CENTER && currentIndex <= centerIndex && currentIndex == 0 || !inBounds) { changed = true; ...
[ "<<<<<< measureUntilFull helper methods" ]
[ "The parameter must never be null\n\n@param queryParameters", "Sets the day of the month.\n@param day the day to set.", "Converts from partitionId to nodeId. The list of partition IDs,\npartitionIds, is expected to be a \"replicating partition list\", i.e., the\nmapping from partition ID to node ID should be on...
public Object lookup(Identity oid) { Object ret = null; if (oid != null) { ObjectCache cache = getCache(oid, null, METHOD_LOOKUP); if (cache != null) { ret = cache.lookup(oid); } } return ret; }
[ "Looks up the object from the cache\n\n@param oid The Identity to look up the object for\n@return The object if found, otherwise null" ]
[ "Compiles and performs the provided equation.\n\n@param equation String in simple equation format", "Check if position is in inner circle\n\n@param x x position\n@param y y position\n@return true if in inner circle, false otherwise", "Click handler for bottom drawer items.", "Computes eigenvalues only\n\n@ret...
public void handleStateEvent(String callbackKey) { if (handlers.containsKey(callbackKey) && handlers.get(callbackKey) instanceof StateEventHandler) { ((StateEventHandler) handlers.get(callbackKey)).handle(); } else { System.err.println("Error in handle: " + callbackKey + " for st...
[ "This method is called from Javascript, passing in the previously created\ncallback key. It uses that to find the correct handler and then passes on\nthe call. State events in the Google Maps API don't pass any parameters.\n\n@param callbackKey Key generated by the call to registerHandler." ]
[ "A smoothed pulse function. A cubic function is used to smooth the step between two thresholds.\n@param a1 the lower threshold position for the start of the pulse\n@param a2 the upper threshold position for the start of the pulse\n@param b1 the lower threshold position for the end of the pulse\n@param b2 the upper ...
public void set( int row , int col , double value ) { ops.set(mat, row, col, value); }
[ "Assigns the element in the Matrix to the specified value. 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@param value The element's new value." ]
[ "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", "Delete a license from the repository\n\n@param licName The name of the license to remove", "Uncompresses the textual contents in the given map and and writes the...
public static String buildDynamicCapabilityName(String baseName, String dynamicNameElement) { return buildDynamicCapabilityName(baseName, new String[]{dynamicNameElement}); }
[ "todo remove, here only for binary compatibility of elytron subsystem, drop once it is in." ]
[ "checks if a bean has been seen before in the dependencyPath. If not, it\nresolves the InjectionPoints and adds the resolved beans to the set of\nbeans to be validated", "Generates a License regarding the parameters.\n\n@param name String\n@param longName String\n@param comments String\n@param regexp String\n@par...
void update(Object feature) throws LayerException { SimpleFeatureSource source = getFeatureSource(); if (source instanceof SimpleFeatureStore) { SimpleFeatureStore store = (SimpleFeatureStore) source; String featureId = getFeatureModel().getId(feature); Filter filter = filterService.createFidFilter(new Str...
[ "Update an existing feature. Made package private for testing purposes.\n\n@param feature feature to update\n@throws LayerException oops" ]
[ "Returns the name of the class to be instantiated.\n@param rs the Resultset\n@return null if the column is not available", "Determine whether the given method is a \"readString\" method.\n\n@see Object#toString()", "Use this API to fetch dnstxtrec resource of given name .", "Returns the ordered Map value of t...
public static void outputString(final HttpServletResponse response, final Object obj) { try { response.setContentType("text/javascript"); response.setCharacterEncoding("utf-8"); disableCache(response); response.getWriter().write(obj.toString()); respon...
[ "response simple String\n\n@param response\n@param obj" ]
[ "Write a time units field to the JSON file.\n\n@param fieldName field name\n@param value field value", "Make a composite filter from the given sub-filters using AND to combine filters.", "Return an instance of this class.\n\n@param container Solr CoreContainer container object in order to create a server object...
public MembersList<Member> getList(String groupId, Set<String> memberTypes, int perPage, int page) throws FlickrException { MembersList<Member> members = new MembersList<Member>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_LIST); ...
[ "Get a list of the members of a group. The call must be signed on behalf of a Flickr member, and the ability to see the group membership will be\ndetermined by the Flickr member's group privileges.\n\n@param groupId\nReturn a list of members for this group. The group must be viewable by the Flickr member on whose b...
[ "Create a ModelNode representing the JVM the instance is running on.\n\n@return a ModelNode representing the JVM the instance is running on.\n@throws OperationFailedException", "Returns the real key object.", "Compare the controlDOM and testDOM and save and return the differences in a list.\n\n@return list with...
private long validateMessage(FileChannel channel, long start, long len, ByteBuffer buffer) throws IOException { buffer.rewind(); int read = channel.read(buffer, start); if (read < 4) return -1; // check that we have sufficient bytes left in the file int size = buffer.getInt(0); ...
[ "Read, validate, and discard a single message, returning the next valid offset, and the\nmessage being validated\n\n@throws IOException any exception" ]
[ "Get the response headers for URL\n\n@param stringUrl URL to use\n@return headers HTTP Headers\n@throws IOException I/O error happened", "Sets the alias. Empty String is regarded as null.\n@param alias The alias to set", "Use this API to fetch ipset_nsip_binding resources of given name .", "Reverse how the tr...
private void initDefaultScopeType(EnhancedAnnotation<T> annotatedAnnotation) { Set<Annotation> scopeTypes = new HashSet<Annotation>(); scopeTypes.addAll(annotatedAnnotation.getMetaAnnotations(Scope.class)); scopeTypes.addAll(annotatedAnnotation.getMetaAnnotations(NormalScope.class)); if ...
[ "Initializes the default scope type" ]
[ "Sets the distance from the origin to the near clipping plane for the\nwhole camera rig.\n\n@param near\nDistance to the near clipping plane.", "Sets the transformations to be applied to the shape before indexing it.\n\n@param transformations the sequence of transformations\n@return this with the specified sequen...
private void verifyClusterStoreDefinition() { if(SystemStoreConstants.isSystemStore(storeDefinition.getName())) { // TODO: Once "todo" in StorageService.initSystemStores is complete, // this early return can be removed and verification can be enabled // for system stores. ...
[ "Verify that cluster is congruent to store def wrt zones." ]
[ "Sets the quaternion of the keyframe.", "Layout children inside the layout container", "Fires the event and waits for a specified time.\n\n@param webElement the element to fire event on.\n@param eventable The HTML event type (onclick, onmouseover, ...).\n@return true if firing event is successful.\n@throws Int...
private void processDependencies() { Set<Task> tasksWithBars = new HashSet<Task>(); FastTrackTable table = m_data.getTable(FastTrackTableType.ACTBARS); for (MapRow row : table) { Task task = m_project.getTaskByUniqueID(row.getInteger(ActBarField._ACTIVITY)); if (task == null...
[ "Process task dependencies." ]
[ "Assigns the element in the Matrix to the specified value. 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@param value The element's new value.", "I KNOW WHAT I AM DOING", "Checks if ranges contain...
public List<String> parseMethodList(String methods) { String[] methodArray = StringUtils.delimitedListToStringArray(methods, ","); List<String> methodList = new ArrayList<String>(); for (String methodName : methodArray) { methodList.add(methodName.trim()); } return...
[ "Parse a comma-delimited list of method names into a List of strings.\nWhitespace is ignored.\n\n@param methods the comma delimited list of methods from the spring configuration\n\n@return List&lt;String&gt;" ]
[ "Evaluates the body if current member has no tag with the specified name.\n\n@param template The body of the block tag\n@param attributes The attributes of the template tag\n@exception XDocletException Description of Exception\n@doc.tag type=\"block\"\n@doc.param ...
public Date getBaselineFinish() { Object result = getCachedValue(TaskField.BASELINE_FINISH); if (result == null) { result = getCachedValue(TaskField.BASELINE_ESTIMATED_FINISH); } if (!(result instanceof Date)) { result = null; } return (Date) result;...
[ "The Baseline Finish field shows the planned completion date for a task\nat the time you saved a baseline. Information in this field becomes\navailable when you set a baseline for a task.\n\n@return Date" ]
[ "Transforms an input String into HTML using the given Configuration.\n\n@param input\nThe String to process.\n@param configuration\nThe Configuration.\n@return The processed String.\n@since 0.7\n@see Configuration", "Load a JSON file from the application's \"asset\" directory.\n\n@param context Valid {@link Conte...
public void addHandlerFactory(ManagementRequestHandlerFactory factory) { for (;;) { final ManagementRequestHandlerFactory[] snapshot = updater.get(this); final int length = snapshot.length; final ManagementRequestHandlerFactory[] newVal = new ManagementRequestHandlerFactory[l...
[ "Add a management request handler factory to this context.\n\n@param factory the request handler to add" ]
[ "Generates a torque schema for the model.\n\n@param attributes The attributes of the tag\n@return The property value\n@exception XDocletException If an error occurs\n@doc.tag type=\"content\"", "Adds a classpath source which contains the given resource.\n\nTODO...
public NestedDef getNested(String name) { NestedDef nestedDef = null; for (Iterator it = _nested.iterator(); it.hasNext(); ) { nestedDef = (NestedDef)it.next(); if (nestedDef.getName().equals(name)) { return nestedDef; ...
[ "Returns the nested object definition with the specified name.\n\n@param name The name of the attribute of the nested object\n@return The nested object definition or <code>null</code> if there is no such nested object" ]
[ "Reads the text files in the given directory and puts their content\nin the given map after compressing it. Note that this method does not\ntraverse recursivly into sub-directories.\n\n@param dir The directory to process\n@param results Map that will receive the contents (indexed by the relative filenames)\n@th...
public void build(Set<Bean<?>> beans) { if (isBuilt()) { throw new IllegalStateException("BeanIdentifier index is already built!"); } if (beans.isEmpty()) { index = new BeanIdentifier[0]; reverseIndex = Collections.emptyMap(); indexHash = 0; ...
[ "Note that the index can only be built once.\n\n@param beans The set of beans the index should be built from, only instances of {@link CommonBean} and implementations of {@link PassivationCapable} are\nincluded\n@throws IllegalStateException If the index is built already" ]
[ "Removes a child task.\n\n@param child child task instance", "This method computes the list of unnamed parameters, by filtering the\nlist of raw arguments, stripping out the named parameters.", "Build and return a string version of the query. If you change the where or make other calls you will need to\nre-call...
public void addRow(final String... cells){ final Row row = new Row((Object[]) cells); if(!rows.contains(row)){ rows.add(row); } }
[ "Add a row to the table if it does not already exist\n\n@param cells String..." ]
[ "Returns all information related to a single texture.\n\n@param type the texture type\n@param index the index in the texture stack\n@return the texture information", "Blocking function which completes the migration of one store\n\n@param storeName The name of the store\n@param adminClient Admin client used to ini...
protected void propagateOnEnter(GVRPickedObject hit) { GVRSceneObject hitObject = hit.getHitObject(); GVREventManager eventManager = getGVRContext().getEventManager(); if (mEventOptions.contains(EventOptions.SEND_TOUCH_EVENTS)) { if (mEventOptions.contains(EventOptions.SE...
[ "Propagate onEnter events to listeners\n@param hit collision object" ]
[ "Prepare a parallel HTTP OPTION Task.\n\n@param url\nthe UrlPostfix: e.g. in http://localhost:8080/index.html.,the url is \"/index.html\"\n@return the parallel task builder", "Gets the positions.\n\n@return the positions", "Extract task data.", "Get the hours difference", "Get the Query Paramaters to be use...
public static Map<String, Object> with(Object... params) { Map<String, Object> map = new HashMap<>(); for (int i = 0; i < params.length; i++) { map.put(String.valueOf(i), params[i]); } return map; }
[ "Convenience wrapper for message parameters\n@param params\n@return" ]
[ "Sorts the specified list itself into ascending order, according to the natural ordering of its elements.\n\n@param list\nthe list to be sorted. May not be <code>null</code>.\n@return the sorted list itself.\n@see Collections#sort(List)", "Creates the DAO if we have config information cached and caches the DAO.",...
public static List<Integer> toIntegerList(List<String> strList, boolean failOnException){ List<Integer> intList = new ArrayList<Integer>(); for(String str : strList){ try{ intList.add(Integer.parseInt(str)); } catch(NumberFormatException nfe){ if(failOnException){ return null; } else{ ...
[ "Parse a list of String into a list of Integer.\nIf one element can not be parsed, the behavior depends on the value of failOnException.\n@param strList can't be null\n@param failOnException if an element can not be parsed should we return null or add a null element to the list.\n@return list of all String parsed a...
[ "Use this API to update clusterinstance.", "Use this API to add appfwjsoncontenttype.", "Build a Pk-Query base on the ClassDescriptor.\n\n@param cld\n@return a select by PK query", "Delete by id.\n\n@param id the id", "This method handles submitting and then waiting for the request from the\nserver. It uses...
@SuppressWarnings("unchecked") protected String addeDependency(Appliable<? extends Indexable> appliable) { TaskGroup.HasTaskGroup dependency = (TaskGroup.HasTaskGroup) appliable; return this.addDependency(dependency); }
[ "Add an appliable dependency for this task item.\n\n@param appliable the appliable dependency.\n@return the key to be used as parameter to taskResult(string) method to retrieve updated dependency" ]
[ "Encodes the given URI host with the given encoding.\n@param host the host to be encoded\n@param encoding the character encoding to encode to\n@return the encoded host\n@throws UnsupportedEncodingException when the given encoding parameter is not supported", "Use this API to unset the properties of coparameter re...
public JsonNode wbRemoveClaims(List<String> statementIds, boolean bot, long baserevid, String summary) throws IOException, MediaWikiApiErrorException { Validate.notNull(statementIds, "statementIds parameter cannot be null when deleting statements"); Validate.notEmpty(statementIds, "statement ids to ...
[ "Executes the API action \"wbremoveclaims\" for the given parameters.\n\n@param statementIds\nthe statement ids to delete\n@param bot\nif true, edits will be flagged as \"bot edits\" provided that\nthe logged in user is in the bot group; for regular users, the\nflag will just be ignored\n@param baserevid\nthe revis...
[ "Collection of JRVariable\n\n@param variables\n@return", "Adds the file to the tar archive represented by output stream. It's caller's responsibility to close output stream\nproperly.\n\n@param out target archive.\n@param source file to be added.\n@param fileSize size of the file (which is known in most ca...
public void addIterator(OJBIterator iterator) { /** * only add iterators that are not null and non-empty. */ if (iterator != null) { if (iterator.hasNext()) { setNextIterator(); m_rsIterators.add(iterator); ...
[ "use this method to construct the ChainingIterator\niterator by iterator." ]
[ "Use this API to update transformpolicy.", "Convert an object to another object given a parameterized type signature\n\n@param context\n@param destinationType\nthe destination type\n@param source\nthe source object\n\n@return the converted object\n@throws ConverterException\nif conversion failed", "Processes th...
public void startup() throws InterruptedException { final int maxCacheConnectionPerThread = serverConfig.getMaxConnections() / processors.length; logger.debug("start {} Processor threads",processors.length); for (int i = 0; i < processors.length; i++) { processors[i] = new Processor(...
[ "Start the socket server and waiting for finished\n\n@throws InterruptedException thread interrupted" ]
[ "Method used to write the name of the scenarios methods\n\n@param word\n@return the same word starting with lower case", "Returns a licenses regarding its Id and a fake on if no license exist with such an Id\n\n@param licenseId String\n@return License", "Loads the specified class name and stores it in the hash\...
public static <T> T assertNull(T value, String message) { if (value != null) throw new IllegalStateException(message); return value; }
[ "Throws an IllegalStateException when the given value is not null.\n@return the value" ]
[ "Use this API to Import sslfipskey resources.", "Handles an incoming request message.\nAn incoming request message is a message initiated by a node or the controller.\n@param incomingMessage the incoming message to process.", "calculate distance of two points\n\n@param a\n@param b\n@return", "Randomize the gr...
private String readLine(boolean trim) throws IOException { boolean done = false; boolean sawCarriage = false; // bytes to trim (the \r and the \n) int removalBytes = 0; while (!done) { if (isReadBufferEmpty()) { offset = 0; end = 0; int bytesRead = inputStream.read(buff...
[ "Reads a line from the input stream, where a line is terminated by \\r, \\n, or \\r\\n\n@param trim whether to trim trailing \\r and \\ns" ]
[ "Deletes a redirect by id\n\n@param id redirect ID", "This method should be called after all column have been added to the report.\n@param numgroups\n@return", "Sets the protocol, hostname and port to connect to.\n\n@param protocol the protocol to use\n@param hostname the host name\n@param port the port\n\n...
public double mean() { double total = 0; final int N = getNumElements(); for( int i = 0; i < N; i++ ) { total += get(i); } return total/N; }
[ "Computes the mean or average of all the elements.\n\n@return mean" ]
[ "Use this API to unset the properties of inatparam resource.\nProperties that need to be unset are specified in args array.", "Returns an iban with replaced check digit.\n\n@param iban The iban\n@return The iban without the check digit", "Use this API to add inat resources.", "Retrieve a duration in the form ...
public static List<Object> listOfEntities(SharedSessionContractImplementor session, Type[] resultTypes, ClosableIterator<Tuple> tuples) { Class<?> returnedClass = resultTypes[0].getReturnedClass(); TupleBasedEntityLoader loader = getLoader( session, returnedClass ); OgmLoadingContext ogmLoadingContext = new OgmLo...
[ "At the moment we only support the case where one entity type is returned" ]
[ "Creates a project shared with the given team.\n\nReturns the full record of the newly created project.\n\n@param team The team to create the project in.\n@return Request object", "Entry point for recursive resolution of an expression and all of its\nnested expressions.\n\n@todo Ensure unresolvable expressions d...
public static final String[] getRequiredSolrFields() { if (null == m_requiredSolrFields) { List<Locale> locales = OpenCms.getLocaleManager().getAvailableLocales(); m_requiredSolrFields = new String[14 + (locales.size() * 6)]; int count = 0; m_requiredSolrFields[c...
[ "Returns the list of Solr fields a search result must have to initialize the gallery search result correctly.\n@return the list of Solr fields." ]
[ "Retrieves a list of Terms of Service that belong to your Enterprise as an Iterable.\n@param api api the API connection to be used by the resource.\n@param termsOfServiceType the type of terms of service to be retrieved. Can be set to \"managed\" or \"external\"\n@return th...
private List<Entity> runQuery(Query query) throws DatastoreException { RunQueryRequest.Builder request = RunQueryRequest.newBuilder(); request.setQuery(query); RunQueryResponse response = datastore.runQuery(request.build()); if (response.getBatch().getMoreResults() == QueryResultBatch.MoreResultsType.N...
[ "Run a query on the datastore.\n\n@return The entities returned by the query.\n@throws DatastoreException on error" ]
[ "Updates the gatewayDirection attributes of all gateways.\n@param def", "Remove multiple fields from the map\n@param fields the fields to remove\n@return the number of fields removed", "Examines the list of variables for any unknown variables and throws an exception if one is found", "Return configuration twe...
public Equation process( String equation , boolean debug ) { compile(equation,true,debug).perform(); return this; }
[ "Compiles and performs the provided equation.\n\n@param equation String in simple equation format" ]
[ "Copy a subsequence of Bytes to specific byte array. Uses the specified offset in the dest byte\narray to start the copy.\n\n@param start index of subsequence start (inclusive)\n@param end index of subsequence end (exclusive)\n@param dest destination array\n@param destPos starting position in the destination data.\...
static Path resolvePath(final Path base, final String... paths) { return Paths.get(base.toString(), paths); }
[ "Resolves a path relative to the base path.\n\n@param base the base path\n@param paths paths relative to the base directory\n\n@return the resolved path" ]
[ "visibility increased for testing", "Returns an entry with the given proposal and the prefix from the context, or null if the proposal is not valid.", "Read an optional JSON array.\n@param json the JSON Object that has the array as element\n@param key the key for the array in the provided JSON object\n@return t...
public List<DbLicense> getModuleLicenses(final String moduleId, final LicenseMatcher licenseMatcher) { final DbModule module = getModule(moduleId); final List<DbLicense> licenses = new ArrayList<>(); final FiltersHolder filters = new FiltersHolder();...
[ "Return a licenses view of the targeted module\n\n@param moduleId String\n@return List<DbLicense>" ]
[ "This filter adds rounded corners to the image using the specified color as the background.\n\n@param radiusInner amount of pixels to use as radius.\n@param radiusOuter specifies the second value for the ellipse used for the radius. Use 0 for\nno value.\n@param color fill color for clipped region.", "Generated th...
private PersistentResourceXMLDescription getSimpleMapperParser() { if (version.equals(Version.VERSION_1_0)) { return simpleMapperParser_1_0; } else if (version.equals(Version.VERSION_1_1)) { return simpleMapperParser_1_1; } return simpleMapperParser; }
[ "1.0 version of parser is different at simple mapperParser" ]
[ "Delivers the correct JSON Object for the Bounds\n\n@param bounds\n@throws org.json.JSONException", "Sets up and declares internal data structures.\n\n@param diag Diagonal elements from tridiagonal matrix. Modified.\n@param off Off diagonal elements from tridiagonal matrix. Modified.\n@param numCols number of col...
protected void clearStatementCaches(boolean internalClose) { if (this.statementCachingEnabled){ // safety if (internalClose){ this.callableStatementCache.clear(); this.preparedStatementCache.clear(); } else { if (this.pool.closeConnectionWatch){ // debugging enabled? this.callableSta...
[ "Clears out the statement handles.\n@param internalClose if true, close the inner statement handle too." ]
[ "Performs a remote service method invocation. This method is called by\ngenerated proxy classes.\n\n@param <T> return type for the AsyncCallback\n@param responseReader instance used to read the return value of the\ninvocation\n@param requestData payload that encodes the addressing and arguments of the\nRPC call\n@p...
protected I_CmsSearchConfigurationFacetField parseFieldFacet(JSONObject fieldFacetObject) { try { String field = fieldFacetObject.getString(JSON_KEY_FACET_FIELD); String name = parseOptionalStringValue(fieldFacetObject, JSON_KEY_FACET_NAME); String label = parseOptionalStrin...
[ "Parses the field facet configurations.\n@param fieldFacetObject The JSON sub-node with the field facet configurations.\n@return The field facet configurations." ]
[ "Obtains a local date in Discordian calendar system from the\nproleptic-year, month-of-year and day-of-month fields.\n\n@param prolepticYear the proleptic-year\n@param month the month-of-year\n@param dayOfMonth the day-of-month\n@return the Discordian local date, not null\n@throws DateTimeException if unable to ...
private static String mapContent(DataHandler dh) { if (dh == null) { return ""; } try { InputStream is = dh.getInputStream(); String content = IOUtils.toString(is); is.close(); return content; } catch (IOException e) { ...
[ "Map content.\n\n@param dh the data handler\n@return the string" ]
[ "Recursively searches for formatting annotations.\n\n@param visitedTypes used to prevent an endless loop\n@param parameterName", "Support the range subscript operator for String with IntRange\n\n@param text a String\n@param range an IntRange\n@return the resulting String\n@since 1.0", "This method is called on...
private static void logVersionWarnings(String label1, String version1, String label2, String version2) { if (version1 == null) { if (version2 != null) { warning(null, "Unknown version", " for {}, version for {} is '{}'", new Object[] { label1, label2, version2 }); } } else { if (version2 == null)...
[ "Log error information" ]
[ "Extracts location result from intent object\n\n@param intent valid intent object\n@return location result.\n@since 1.1.0", "Retrieve an instance of the ResourceField class based on the data read from an\nMS Project file.\n\n@param value value from an MS Project file\n@return ResourceField instance", "Gets the ...
private void lockLocalization(Locale l) throws CmsException { if (null == m_lockedBundleFiles.get(l)) { LockedFile lf = LockedFile.lockResource(m_cms, m_bundleFiles.get(l)); m_lockedBundleFiles.put(l, lf); } }
[ "Locks the bundle file that contains the translation for the provided locale.\n@param l the locale for which the bundle file should be locked.\n@throws CmsException thrown if locking fails." ]
[ "mark a node as blacklisted\n\n@param nodeId Integer node id of the node to be blacklisted", "Sorts the specified list itself according to the order induced by applying a key function to each element which\nyields a comparable criteria.\n\n@param list\nthe list to be sorted. May not be <code>null</code>.\n@param ...
public Metadata setMetadata(String templateName, String scope, Metadata metadata) { Metadata metadataValue = null; try { metadataValue = this.createMetadata(templateName, scope, metadata); } catch (BoxAPIException e) { if (e.getResponseCode() == 409) { Me...
[ "Sets the provided metadata on the folder, overwriting any existing metadata keys already present.\n\n@param templateName the name of the metadata template.\n@param scope the scope of the template (usually \"global\" or \"enterprise\").\n@param metadata the new metadata values.\n@return the metadata retu...
[ "Returns status help message.\n\n@param user CmsUser\n@param disabled boolean\n@param newUser boolean\n@return String", "Use this API to update dbdbprofile.", "use the design parameters to compute the constraint equation to get the value", "Get an exception reporting an unexpected end tag for an XML element.\...
public synchronized void addRange(final float range, final GVRSceneObject sceneObject) { if (null == sceneObject) { throw new IllegalArgumentException("sceneObject must be specified!"); } if (range < 0) { throw new IllegalArgumentException("range cannot be negative");...
[ "Add a range to this LOD group. Specify the scene object that should be displayed in this\nrange. Add the LOG group as a component to the parent scene object. The scene objects\nassociated with each range will automatically be added as children to the parent.\n@param range show the scene object if the camera distan...
[ "Read hints from a file and merge with the given hints map.", "Main method, handles all the setup tasks for DataGenerator a user would normally do themselves\n\n@param args command line arguments", "Specify the string and the int identifying which word shaper to\nuse and this returns the result of using that wo...
public Client findClient(String clientUUID, Integer profileId) throws Exception { Client client = null; /* ERROR CODE: 500 WHEN TRYING TO DELETE A SERVER GROUP. THIS APPEARS TO BE BECAUSE CLIENT UUID IS NULL. */ /* CODE ADDED TO PREVENT NULL POINTERS. */ if (clientUU...
[ "Returns a Client object for a clientUUID and profileId\n\n@param clientUUID UUID or friendlyName of client\n@param profileId - can be null, safer if it is not null\n@return Client object or null\n@throws Exception exception" ]
[ "Takes an object and converts it to a string.\n\n@param mapper the object mapper\n@param object the object to convert\n@return json string", "Get the exception message using the requested locale.\n\n@param locale locale for message\n@return exception message", "Get the default provider used.\n\n@return the defa...
public static String capitalize( String text ) { if( text == null || text.isEmpty() ) { return text; } return text.substring( 0, 1 ).toUpperCase().concat( text.substring( 1, text.length() ) ); }
[ "Returns the given text with the first letter in upper case.\n\n<h2>Examples:</h2>\n<pre>\ncapitalize(\"hi\") == \"Hi\"\ncapitalize(\"Hi\") == \"Hi\"\ncapitalize(\"hi there\") == \"hi there\"\ncapitalize(\"\") == \"\"\ncapitalize(null) == null\n</pre>\n@param text the text to capitalize\n@return text with the first...
[ "Replace a photo from a File.\n\n@param file\n@param flickrId\n@param async\n@return photoId or ticketId\n@throws FlickrException", "Use this API to delete dnstxtrec of given name.", "Add an empty work week.\n\n@return new work week", "Deploys application reading resources from specified InputStream.\n\n@para...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final ServicesAttachment servicesAttachment = deploymentUnit.getAttachment(Attachments.SERVICES); if (servicesAttachment == n...
[ "If the deployment has a module attached it will ask the module to load the ServiceActivator services.\n\n@param phaseContext the deployment unit context" ]
[ "Parse the XML for a collection as returned by getTree call.\n\n@param collectionElement\n@return", "Returns a string to resolve apostrophe issue in xpath\n\n@param text\n@return the apostrophe resolved xpath value string", "Notifies that multiple content items are changed.\n\n@param positionStart the position....
public String[] getItemsSelected() { List<String> selected = new LinkedList<>(); for (int i = getIndexOffset(); i < listBox.getItemCount(); i++) { if (listBox.isItemSelected(i)) { selected.add(listBox.getValue(i)); } } return selected.toArray(new S...
[ "Returns all selected values of the list box, or empty array if none.\n\n@return the selected values of the list box" ]
[ "Adds a data source to the configuration. If in deduplication mode\ngroupno == 0, otherwise it gives the number of the group to which\nthe data source belongs.", "Gets the invalid message.\n\n@param key the key\n@return the invalid message", "Retrieve the default mapping between MPXJ task fields and Primavera w...
public int getCrossZonePartitionStoreMoves() { int xzonePartitionStoreMoves = 0; for (RebalanceTaskInfo info : batchPlan) { Node donorNode = finalCluster.getNodeById(info.getDonorId()); Node stealerNode = finalCluster.getNodeById(info.getStealerId()); if(donorNode.ge...
[ "Determines total number of partition-stores moved across zones.\n\n@return number of cross zone partition-store moves" ]
[ "Initialize current thread's JobContext using specified copy\n@param origin the original job context", "Converts to credentials for use in Grgit.\n@return {@code null} if both username and password are {@code null},\notherwise returns credentials in Grgit format.", "Returns all headers with the headers from the...
public float getBoundsWidth() { if (mSceneObject != null) { GVRSceneObject.BoundingVolume v = mSceneObject.getBoundingVolume(); return v.maxCorner.x - v.minCorner.x; } return 0f; }
[ "Gets Widget bounds width\n@return width" ]
[ "Painter the tile, by building a URL where the image can be found.\n\n@param tile\nMust be an instance of {@link InternalTile}, and must have a non-null {@link RasterUrlBuilder}.\n@return Returns a {@link InternalTile}.", "Determines the offset code of a forward contract from a schedule. Rounds the average period...
public String getRejectionLogMessageId() { String id = logMessageId; if (id == null) { id = getRejectionLogMessage(Collections.<String, ModelNode>emptyMap()); } logMessageId = id; return logMessageId; }
[ "Returns the log message id used by this checker. This is used to group it so that all attributes failing a type of rejction\nend up in the same error message. This default implementation uses the formatted log message with an empty attribute map as the id.\n\n@return the log message id" ]
[ "Use this API to fetch auditsyslogpolicy_lbvserver_binding resources of given name .", "Gets an iterable of all the collections for the given user.\n@param api the API connection to be used when retrieving the collections.\n@return an iterable containing info about all the collections.", "With the QR algor...
public CollectionRequest<Story> findByTask(String task) { String path = String.format("/tasks/%s/stories", task); return new CollectionRequest<Story>(this, Story.class, path, "GET"); }
[ "Returns the compact records for all stories on the task.\n\n@param task Globally unique identifier for the task.\n@return Request object" ]
[ "Use this API to clear bridgetable resources.", "Load the related repositories, plugins and a promotion config associated to the buildId.\nCalled from the UI.\n\n@param buildId - The unique build id.\n@return LoadBuildsResponse e.g. list of repositories, plugins and a promotion config.", "Obtains a Discordian z...
public static boolean isCacheSafe(Class<?> clazz, ClassLoader classLoader) { Assert.notNull(clazz, "Class must not be null"); try { ClassLoader target = clazz.getClassLoader(); if (target == null) { return true; } ClassLoader cur = classLoader; if (cur == target) { return true; } while ...
[ "Check whether the given class is cache-safe in the given context,\ni.e. whether it is loaded by the given ClassLoader or a parent of it.\n@param clazz the class to analyze\n@param classLoader the ClassLoader to potentially cache metadata in" ]
[ "Returns the screen width in pixels\n\n@param context is the context to get the resources\n@return the screen width in pixels", "Returns the end time of the event.\n@return the end time of the event.", "Use this API to fetch statistics of gslbservice_stats resource of given name .", "Get path ID for a given p...
public BoxFile.Info restoreFile(String fileID) { URL url = RESTORE_FILE_URL_TEMPLATE.build(this.api.getBaseURL(), fileID); BoxAPIRequest request = new BoxAPIRequest(this.api, url, "POST"); JsonObject requestJSON = new JsonObject() .add("", ""); request.setBody(requestJSON...
[ "Restores a trashed file back to its original location.\n@param fileID the ID of the trashed file.\n@return info about the restored file." ]
[ "Adds a resource collection with execution hints.", "Read the projects from a ConceptDraw PROJECT file as top level tasks.\n\n@param cdp ConceptDraw PROJECT file", "Calculate the value of a caplet assuming the Black'76 model.\n\n@param forward The forward (spot).\n@param volatility The Black'76 volatility.\n@pa...
private String getDateTimeString(Date value) { String result = null; if (value != null) { Calendar cal = DateHelper.popCalendar(value); StringBuilder sb = new StringBuilder(16); sb.append(m_fourDigitFormat.format(cal.get(Calendar.YEAR))); sb.append(m_twoDigitForm...
[ "Convert a Java date into a Planner date-time string.\n\n20070222T080000Z\n\n@param value Java date\n@return Planner date-time string" ]
[ "Convert a date to the String representation we use in the JSON.\n@param d the date to convert\n@return the String representation we use in the JSON.", "Starting with the given column index, will return the first column index\nwhich contains a colour that does not match the given color.", "Create and return a n...
public Object materializeObject(ClassDescriptor cld, Identity oid) throws PersistenceBrokerException { final StatementManagerIF sm = broker.serviceStatementManager(); final SelectStatement sql = broker.serviceSqlGenerator().getPreparedSelectByPkStatement(cld); Object result = nu...
[ "performs a primary key lookup operation against RDBMS and materializes\nan object from the resulting row. Only skalar attributes are filled from\nthe row, references are not resolved.\n@param oid contains the primary key info.\n@param cld ClassDescriptor providing mapping information.\n@return the materialized obj...
[ "Obtains a local date in Ethiopic calendar system from the\nera, year-of-era and day-of-year fields.\n\n@param era the Ethiopic era, not null\n@param yearOfEra the year-of-era\n@param dayOfYear the day-of-year\n@return the Ethiopic local date, not null\n@throws DateTimeException if unable to create the date\n@th...