signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class TypeCheck { /** * Checks if current node contains js docs and checks all types specified in the js doc whether
* they have Objects with potentially invalid keys . For example : { @ code Object < ! Object , number > } .
* If such type is found , a warning is reported for the current node . */
private vo... | if ( n . getJSDocInfo ( ) != null ) { JSDocInfo info = n . getJSDocInfo ( ) ; checkTypeContainsObjectWithBadKey ( n , info . getType ( ) ) ; checkTypeContainsObjectWithBadKey ( n , info . getReturnType ( ) ) ; checkTypeContainsObjectWithBadKey ( n , info . getTypedefType ( ) ) ; for ( String param : info . getParameter... |
public class TypicalFaihyApiFailureHook { protected FaihyFailureErrorPart createJsonistaError ( ApiFailureResource resource , String field , String clientManaged , String dataDelimiter , String serverManaged ) { } } | final String code = Srl . substringFirstFront ( clientManaged , dataDelimiter ) . trim ( ) ; // e . g . LENGTH
final String json = "{" + Srl . substringFirstRear ( clientManaged , dataDelimiter ) . trim ( ) + "}" ; // e . g . { min : { min } , max : { max } }
final Map < String , Object > jsonistaData = filterDataParse... |
public class Futures { /** * Like { @ link # transform ( ListenableFuture , Function ) } except that the transformation { @ code
* function } is invoked on each call to { @ link Future # get ( ) get ( ) } on the returned future .
* < p > The returned { @ code Future } reflects the input ' s cancellation state direc... | checkNotNull ( input ) ; checkNotNull ( function ) ; return new Future < O > ( ) { @ Override public boolean cancel ( boolean mayInterruptIfRunning ) { return input . cancel ( mayInterruptIfRunning ) ; } @ Override public boolean isCancelled ( ) { return input . isCancelled ( ) ; } @ Override public boolean isDone ( ) ... |
public class StandaloneConfiguration { /** * load a JSON file from the resource or file system . As a fallback , treats { @ code resource } as a
* JSON string to be parsed .
* @ param resource file or jar resource location
* @ return A JsonObject representing the passed resource argument . */
protected static Jso... | try { return new Json ( ) . newInput ( readFileOrResource ( resource ) ) ; } catch ( RuntimeException e ) { throw new GridConfigurationException ( "Unable to read input" , e ) ; } |
public class RedundentExprEliminator { /** * Tell if the given LocPathIterator is relative to an absolute path , i . e .
* in not dependent on the context .
* @ return true if the LocPathIterator is not dependent on the context node . */
public boolean isAbsolute ( LocPathIterator path ) { } } | int analysis = path . getAnalysisBits ( ) ; boolean isAbs = ( WalkerFactory . isSet ( analysis , WalkerFactory . BIT_ROOT ) || WalkerFactory . isSet ( analysis , WalkerFactory . BIT_ANY_DESCENDANT_FROM_ROOT ) ) ; if ( isAbs ) { isAbs = m_absPathChecker . checkAbsolute ( path ) ; } return isAbs ; |
public class Thin { /** * Returns true if the 8 neighbours of p match the kernel
* 0 is background
* 1 is foreground
* 2 is don ' t care .
* @ param p the point at the centre of the
* 9 pixel neighbourhood
* @ param pixels the 2D array of the image
* @ param w the width of the image
* @ param h the heig... | int matched = 0 ; for ( int j = - 1 ; j < 2 ; ++ j ) { for ( int i = - 1 ; i < 2 ; ++ i ) { if ( kernel [ ( ( j + 1 ) * 3 ) + ( i + 1 ) ] == 2 ) { ++ matched ; } else if ( ( p . x + i >= 0 ) && ( p . x + i < w ) && ( p . y + j >= 0 ) && ( p . y + j < h ) && ( ( ( pixels [ p . x + i ] [ p . y + j ] == BinaryFast . FOREG... |
public class Messenger { /** * Block users
* @ param uid user ' s id
* @ return promise */
@ NotNull @ ObjectiveCName ( "blockUser:" ) public Promise < Void > blockUser ( int uid ) { } } | return modules . getUsersModule ( ) . blockUser ( uid ) ; |
public class Representations { /** * Returns an optional result of applying the provided function if the resource
* is satisified by the provided interface .
* Interface satisfaction is determined by all interface methods being resolvable to
* properties on the resource .
* @ param anInterface The interface to ... | if ( InterfaceContract . newInterfaceContract ( anInterface ) . isSatisfiedBy ( representation ) ) { T proxy = InterfaceRenderer . newInterfaceRenderer ( anInterface ) . render ( representation ) ; return Optional . of ( function . apply ( proxy ) ) ; } return Optional . absent ( ) ; |
public class CompressionUtil { /** * Encode lz byte [ ] .
* @ param data the data
* @ param dictionary the dictionary
* @ return the byte [ ] */
public static byte [ ] encodeLZ ( String data , String dictionary ) { } } | byte [ ] asBytes = new byte [ 0 ] ; try { asBytes = data . getBytes ( "UTF-8" ) ; } catch ( UnsupportedEncodingException e ) { throw new RuntimeException ( e ) ; } return encodeLZ ( asBytes , dictionary ) ; |
public class SecurityAppManifestWithFixtures { /** * Fixtures to be installed . */
@ Override public List < Class < ? extends FixtureScript > > getFixtures ( ) { } } | return Lists . < Class < ? extends FixtureScript > > newArrayList ( SecurityModuleAppSetUp . class ) ; |
public class AttributeComparator { /** * ( non - Javadoc )
* @ see java . util . Comparator # compare ( java . lang . Object , java . lang . Object ) */
public int compare ( Attribute a , Attribute b ) { } } | int result = a . getId ( ) . toString ( ) . compareTo ( b . getId ( ) . toString ( ) ) ; if ( result == 0 ) { result = a . getType ( ) . toString ( ) . compareTo ( b . getType ( ) . toString ( ) ) ; } else { return result ; } if ( result == 0 ) { result = a . getValue ( ) . encode ( ) . compareTo ( b . getValue ( ) . e... |
public class RulesEntity { /** * Delete an existing Rule . A token with scope delete : rules is needed .
* See https : / / auth0 . com / docs / api / management / v2 # ! / Rules / delete _ rules _ by _ id
* @ param ruleId the rule id
* @ return a Request to execute . */
public Request delete ( String ruleId ) { }... | Asserts . assertNotNull ( ruleId , "rule id" ) ; String url = baseUrl . newBuilder ( ) . addPathSegments ( "api/v2/rules" ) . addPathSegment ( ruleId ) . build ( ) . toString ( ) ; VoidRequest request = new VoidRequest ( client , url , "DELETE" ) ; request . addHeader ( "Authorization" , "Bearer " + apiToken ) ; return... |
public class Recurring { /** * Parses a human - readable representation of a recurring schedule .
* All parsing case - insensitive .
* Supported values are :
* < ul >
* < li > " everyday " - Task must be done every day < / li >
* < li > " weekdays " - Monday through Friday ( no holidays scheduled - yet ) < / ... | if ( recurring == null ) return null ; if ( "everyday" . equalsIgnoreCase ( recurring ) ) { return EVERYDAY ; } if ( "weekdays" . equalsIgnoreCase ( recurring ) ) { return WEEKDAYS ; } if ( recurring . length ( ) >= 3 && recurring . substring ( 0 , 3 ) . equalsIgnoreCase ( "on " ) ) { EnumSet < DayOfWeek > daysOfWeek =... |
public class EsClient { /** * Deletes document .
* @ param name index name .
* @ param type index type .
* @ param id document id
* @ return true if it was deleted .
* @ throws IOException */
public boolean deleteDocument ( String name , String type , String id ) throws IOException { } } | CloseableHttpClient client = HttpClients . createDefault ( ) ; HttpDelete delete = new HttpDelete ( String . format ( "http://%s:%d/%s/%s/%s" , host , port , name , type , id ) ) ; try { return client . execute ( delete ) . getStatusLine ( ) . getStatusCode ( ) == HttpStatus . SC_OK ; } finally { delete . releaseConnec... |
public class PtoPLocalMsgsItemStream { /** * Method updateLocalizationDefinition .
* < p > Update the localisation definition associated with the local localisation . < / p >
* @ param localizationDefinition Has no effect if null is passed . */
public void updateLocalizationDefinition ( LocalizationDefinition newLo... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "updateLocalizationDefinition" , newLocalizationDefinition ) ; // If null is passed as the new localization definition , treat that
// as a no - op .
if ( null != newLocalizationDefinition ) { boolean isDestLimitsChanged = f... |
public class CmsRfsFileViewer { /** * Set the character encoding of the underlying file . < p >
* The given String has to match a valid char set name ( canonical or alias )
* of one of the system ' s supported < code > { @ link Charset } < / code > instances
* ( see < code > { @ link Charset # forName ( java . la... | checkFrozen ( ) ; try { m_fileEncoding = Charset . forName ( fileEncoding ) ; } catch ( IllegalCharsetNameException icne ) { throw new CmsIllegalArgumentException ( Messages . get ( ) . container ( Messages . ERR_CHARSET_ILLEGAL_NAME_1 , fileEncoding ) ) ; } catch ( UnsupportedCharsetException ucse ) { throw new CmsIll... |
public class SDLayerParams { /** * Add a weight parameter to the layer , with the specified shape . For example , a standard fully connected layer
* could have weight parameters with shape [ numInputs , layerSize ]
* @ param paramKey The parameter key ( name ) for the weight parameter
* @ param paramShape Shape o... | Preconditions . checkArgument ( paramShape . length > 0 , "Provided weight parameter shape is" + " invalid: length 0 provided for shape. Parameter: " + paramKey ) ; weightParams . put ( paramKey , paramShape ) ; paramsList = null ; weightParamsList = null ; biasParamsList = null ; |
public class SchemeEquals { /** * Apply the filter to a given URI
* @ param uri the URI to be filtered
* @ return < code > true < / code > if uri has scheme equals to the inner string */
@ Override public boolean apply ( final URI uri ) { } } | if ( uri . getScheme ( ) == null ) throw new IllegalArgumentException ( "URI \"" + uri + "\" has no scheme" ) ; return scheme . equals ( uri . getScheme ( ) ) ; |
public class Regex { /** * Specifies the minimum and maximum times for this regex to repeat .
* @ param min the minimum times the pattern should repeat
* @ param max the maximum times the pattern should repeat
* @ return the regex */
public Regex range ( int min , int max ) { } } | return re ( this . pattern + "{" + Integer . toString ( min ) + "," + Integer . toString ( max ) + "}" ) ; |
public class TableRef { /** * Applies a filter to the table . When fetched , it will return the items that does not match the filter property value .
* < pre >
* StorageRef storage = new StorageRef ( " your _ app _ key " , " your _ token " ) ;
* TableRef tableRef = storage . table ( " your _ table " ) ;
* / / R... | filters . add ( new Filter ( StorageFilter . NOTEQUAL , attributeName , value , null ) ) ; return this ; |
public class Math { /** * Returns the variance of an array . */
public static double var ( int [ ] x ) { } } | if ( x . length < 2 ) { throw new IllegalArgumentException ( "Array length is less than 2." ) ; } double sum = 0.0 ; double sumsq = 0.0 ; for ( int xi : x ) { sum += xi ; sumsq += xi * xi ; } int n = x . length - 1 ; return sumsq / n - ( sum / x . length ) * ( sum / n ) ; |
public class ApiClient { /** * Format to { @ code Pair } objects . */
public List < Pair > parameterToPairs ( String collectionFormat , String name , Object value ) { } } | List < Pair > params = new ArrayList < Pair > ( ) ; // preconditions
if ( name == null || name . isEmpty ( ) || value == null ) return params ; Collection < ? > valueCollection = null ; if ( value instanceof Collection < ? > ) { valueCollection = ( Collection < ? > ) value ; } else { params . add ( new Pair ( name , pa... |
public class ServerLock { /** * Calculate the number of times to wait 500ms */
private int calculateWaitCyclesFromWaitTime ( ) { } } | String serverWaitTime = System . getProperty ( BootstrapConstants . SERVER_START_WAIT_TIME ) ; if ( ( serverWaitTime == null ) || serverWaitTime . trim ( ) . equals ( "" ) ) { return BootstrapConstants . MAX_POLL_ATTEMPTS ; } int waitTime = 0 ; try { waitTime = Integer . parseInt ( System . getProperty ( BootstrapConst... |
public class ElementMatchers { /** * Matches an iteration of generic types ' erasures against the provided types . As a wildcard does not define an erasure , a runtime
* exception is thrown when this matcher is applied to a wildcard .
* @ param type The types to match .
* @ param < T > The type of the matched obj... | return erasures ( Arrays . asList ( type ) ) ; |
public class ResumingStreamingResultScanner { /** * { @ inheritDoc } */
@ Override public FlatRow next ( ) throws IOException { } } | if ( isConsumed ) { return null ; } try ( Timer . Context ignored = resultsTimer . time ( ) ) { FlatRow result = responseQueueReader . getNextMergedRow ( ) ; if ( result != null ) { resultsMeter . mark ( ) ; } else { isConsumed = true ; } return result ; } catch ( RuntimeException | IOException e ) { isConsumed = true ... |
public class MapUtils { /** * Builds a map from sequence items to their zero - indexed positions in the sequence . */
public static < T > ImmutableMap < T , Integer > indexMap ( Iterable < ? extends T > items ) { } } | final ImmutableMap . Builder < T , Integer > ret = ImmutableMap . builder ( ) ; int idx = 0 ; for ( final T item : items ) { ret . put ( item , idx ++ ) ; } return ret . build ( ) ; |
public class CloudDirectoryUtils { /** * Gets list object attributes request .
* @ param arnName the arn name
* @ param objectId the object id
* @ return the list object attributes request */
public static ListObjectAttributesRequest getListObjectAttributesRequest ( final String arnName , final String objectId ) ... | return new ListObjectAttributesRequest ( ) . withDirectoryArn ( arnName ) . withObjectReference ( getObjectRefById ( objectId ) ) ; |
public class CanalAction { /** * 删除canal
* @ param canalId
* @ throws WebxException */
public void doDelete ( @ Param ( "canalId" ) Long canalId , Navigator nav ) throws WebxException { } } | canalService . remove ( canalId ) ; nav . redirectToLocation ( "canalList.htm" ) ; |
public class XMLReaderAdapter { /** * Adapt a SAX2 end element event .
* @ param uri The Namespace URI .
* @ param localName The Namespace local name .
* @ param qName The qualified ( prefixed ) name .
* @ exception org . xml . sax . SAXException The client may raise a
* processing exception .
* @ see org .... | if ( documentHandler != null ) documentHandler . endElement ( qName ) ; |
public class MuServerBuilder { /** * < p > Adds a request handler . < / p >
* < p > Note that handlers are executed in the order added to the builder , but all async
* handlers are executed before synchronous handlers . < / p >
* @ see # addHandler ( Method , String , RouteHandler )
* @ param handler The handle... | if ( handler != null ) { handler = getContextualHandlerForResourceHandler ( handler ) ; handlers . add ( handler ) ; } return this ; |
public class BaseCellConverter { /** * 初期値を設定します 。
* @ param defaultValue 初期値となるオブジェクト 。
* @ param cases 該当する処理ケース */
public void setDefaultValue ( T defaultValue , ProcessCase [ ] cases ) { } } | this . defaultValue = OptionalProcessCase . of ( defaultValue , cases ) ; |
public class GlobalizationPreferences { /** * This function can be overridden by subclasses to use different heuristics .
* < b > It MUST return a ' safe ' value ,
* one whose modification will not affect this object . < / b >
* @ hide draft / provisional / internal are hidden on Android */
protected Collator gue... | ULocale collLocale = getAvailableLocale ( TYPE_COLLATOR ) ; if ( collLocale == null ) { collLocale = ULocale . ROOT ; } return Collator . getInstance ( collLocale ) ; |
public class PenaltyThresholdHeuristic { /** * Return true if the change is sufficiently different . */
@ Override public boolean isAcceptableChange ( Changes changes , Tree node , MethodSymbol symbol , VisitorState state ) { } } | int numberOfChanges = changes . changedPairs ( ) . size ( ) ; return changes . totalOriginalCost ( ) - changes . totalAssignmentCost ( ) >= threshold * numberOfChanges ; |
public class LDAP { /** * Authenticate user ID and password against the LDAP server
* @ param uid i . e . greeng
* @ param password the user password
* @ return the user principal details
* @ throws SecurityException when security error occurs */
public Principal authenicate ( String uid , char [ ] password ) t... | String rootDN = Config . getProperty ( ROOT_DN_PROP ) ; int timeout = Config . getPropertyInteger ( TIMEOUT_SECS_PROP ) . intValue ( ) ; Debugger . println ( LDAP . class , "timeout=" + timeout ) ; String uidAttributeName = Config . getProperty ( UID_ATTRIB_NM_PROP ) ; String groupAttributeName = Config . getProperty (... |
public class ObjectPoolImpl { /** * 获取一个池元素 , 如果没有则会创建
* @ return 池元素 */
public PooledObject < T > get ( ) { } } | T data = pool . pollLast ( ) ; if ( data == null ) { data = function . get ( ) ; } return new PooledObjectImpl < > ( data , pool ) ; |
public class Messages { /** * Returns the String for the given CmsMessageContainer localized to the current user ' s locale
* if available or to the default locale else .
* This method is needed for localization of non - { @ link org . opencms . main . CmsException }
* instances that have to be thrown here due to... | return Messages . getLocalizedMessage ( container , context . getRequest ( ) ) ; |
public class AzureBatchEvaluatorShimManager { /** * This method is invoked when the Azure Batch runtime is notified that a pending resource request has been
* fulfilled . It could happen because of two reasons :
* 1 . The driver receives a message from the evaluator shim indicating it has successfully started .
*... | ResourceRequestEvent resourceRequestEvent = this . outstandingResourceRequests . remove ( containerId ) ; if ( resourceRequestEvent == null ) { LOG . log ( Level . WARNING , "No outstanding resource request found for container id = {0}." , containerId ) ; } else { this . outstandingResourceRequestCount . decrementAndGe... |
public class CmsWorkplaceMessages { /** * Returns the title for the " new resource " dialog . < p >
* It will look up a key with the prefix { @ link # GUI _ NEW _ RESOURCE _ TITLE _ PREFIX }
* and the given name appended ( converted to lower case ) . < p >
* If this key is not found , the value of
* { @ link or... | // try to find the localized key
String title = wp . key ( GUI_NEW_RESOURCE_TITLE_PREFIX + name . toLowerCase ( ) ) ; if ( CmsMessages . isUnknownKey ( title ) ) { // still unknown - use default title
title = wp . key ( org . opencms . workplace . explorer . Messages . GUI_TITLE_NEWFILEOTHER_0 ) ; } return title ; |
public class InstanceAdminClientSnippets { /** * Example to list instances . */
public List < Instance > listInstances ( ) { } } | // [ START instance _ admin _ client _ list _ instances ]
List < Instance > instances = Lists . newArrayList ( instanceAdminClient . listInstances ( Options . pageSize ( 1 ) ) . iterateAll ( ) ) ; // [ END instance _ admin _ client _ list _ instances ]
return instances ; |
public class Util { /** * Encodes the given string so it can be placed inside a URL . This should oly be used for
* the query part of the URL , for other parts , like path , use { @ link # urlEncode ( String ) } .
* @ param str non - query string to encode
* @ return encoded string that can be placed inside a URL... | try { String encodeForForm = URLEncoder . encode ( str , "UTF-8" ) ; return encodeForForm ; } catch ( UnsupportedEncodingException e ) { throw new IllegalStateException ( "JVM does not support UTF-8" ) ; } |
public class BTreeIndex { /** * Processes a BTreePage that has been modified ( but not split ) .
* @ param context Processing context . */
private void processModifiedPage ( PageModificationContext context ) { } } | PageWrapper page = context . getPageWrapper ( ) ; boolean emptyPage = page . getPage ( ) . getCount ( ) == 0 ; ByteArraySegment pageKey = page . getPageKey ( ) ; if ( emptyPage && page . getParent ( ) != null ) { // This page is empty . Remove it from the PageCollection ( so we don ' t write it back to our data source ... |
public class Atom10Parser { /** * List ( Elements ) - > List ( Link ) */
private List < Link > parseAlternateLinks ( final Feed feed , final Entry entry , final String baseURI , final List < Element > eLinks ) { } } | final List < Link > links = new ArrayList < Link > ( ) ; for ( final Element eLink : eLinks ) { final Link link = parseLink ( feed , entry , baseURI , eLink ) ; if ( link . getRel ( ) == null || "" . equals ( link . getRel ( ) . trim ( ) ) || "alternate" . equals ( link . getRel ( ) ) ) { links . add ( link ) ; } } ret... |
public class NetworkInterfacesInner { /** * Gets all network interfaces in a virtual machine scale set .
* @ param nextPageLink The NextLink from the previous successful call to List operation .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the observable to the PagedList... | return listVirtualMachineScaleSetNetworkInterfacesNextSinglePageAsync ( nextPageLink ) . concatMap ( new Func1 < ServiceResponse < Page < NetworkInterfaceInner > > , Observable < ServiceResponse < Page < NetworkInterfaceInner > > > > ( ) { @ Override public Observable < ServiceResponse < Page < NetworkInterfaceInner > ... |
public class Resolve { /** * Find an identifier in a package which matches a specified kind set .
* @ param env The current environment .
* @ param name The identifier ' s name .
* @ param kind Indicates the possible symbol kinds
* ( a nonempty subset of TYP , PCK ) . */
Symbol findIdentInPackage ( Env < AttrCo... | Name fullname = TypeSymbol . formFullName ( name , pck ) ; Symbol bestSoFar = typeNotFound ; if ( kind . contains ( KindSelector . TYP ) ) { RecoveryLoadClass recoveryLoadClass = allowModules && ! kind . contains ( KindSelector . PCK ) && ! pck . exists ( ) && ! env . info . isSpeculative ? doRecoveryLoadClass : noReco... |
public class DataChecksum { /** * Writes the checksum header to the output stream < i > out < / i > . */
public void writeHeader ( DataOutputStream out ) throws IOException { } } | out . writeByte ( type ) ; out . writeInt ( bytesPerChecksum ) ; |
public class I18nUtils { /** * Get the language code of a new with language suffix .
* < p > Returns null if not suffixed with language code */
public static String getLanguageCode ( String name ) { } } | if ( ! isI18n ( name ) ) return null ; return name . substring ( name . indexOf ( '-' ) + 1 , name . length ( ) ) ; |
public class WebSocketScope { /** * Add new connection on scope .
* @ param conn
* WebSocketConnection */
public void addConnection ( WebSocketConnection conn ) { } } | conns . add ( conn ) ; for ( IWebSocketDataListener listener : listeners ) { listener . onWSConnect ( conn ) ; } |
public class AndroidEventBuilderHelper { /** * Get the unused amount of internal storage , in bytes .
* @ return the unused amount of internal storage , in bytes */
protected static Long getUnusedInternalStorage ( ) { } } | try { File path = Environment . getDataDirectory ( ) ; StatFs stat = new StatFs ( path . getPath ( ) ) ; long blockSize = stat . getBlockSize ( ) ; long availableBlocks = stat . getAvailableBlocks ( ) ; return availableBlocks * blockSize ; } catch ( Exception e ) { Log . e ( TAG , "Error getting unused internal storage... |
public class DeploymentServiceEJBImpl { /** * inject resources */
@ PostConstruct public void onInit ( ) { } } | isExecutorAvailable = isExecutorOnClasspath ( ) ; if ( identityProvider . isUnsatisfied ( ) ) { setIdentityProvider ( new EJBContextIdentityProvider ( context ) ) ; } else { setIdentityProvider ( identityProvider . get ( ) ) ; } setManagerFactory ( new RuntimeManagerFactoryImpl ( ) ) ; super . onInit ( ) ; |
public class IntTupleFunctions { /** * Performs a reduction on the elements of the given tuple , using the
* provided identity value and an associative accumulation function ,
* and returns the reduced value .
* @ param t0 The tuple
* @ param identity The identity value
* @ param op The accumulation function ... | int result = identity ; int n = t0 . getSize ( ) ; for ( int i = 0 ; i < n ; i ++ ) { int operand0 = t0 . get ( i ) ; result = op . applyAsInt ( result , operand0 ) ; } return result ; |
public class ImageAnchor { /** * Insert rollover javascript .
* Support for indexed property since Struts 1.1
* @ throws JspException if a JSP exception has occurred */
public int doStartTag ( ) throws JspException { } } | if ( _rolloverImage != null && getJavaScriptAttribute ( ONMOUSEOVER ) == null ) { // cause the roll over script to be inserted
WriteRenderAppender writer = new WriteRenderAppender ( pageContext ) ; ScriptRequestState srs = ScriptRequestState . getScriptRequestState ( ( HttpServletRequest ) pageContext . getRequest ( ) ... |
public class AbstractOffHeapClockCache { /** * Return the table offset of the to be evicted mapping .
* The mapping to be evicted can occur anywhere in this cache ' s table .
* @ return table offset of the mapping to be evicted */
public int getEvictionIndex ( ) { } } | /* * If the table has been shrunk then it ' s possible for the clock - hand to
* point past the end of the table . We cannot allow the initial - hand to
* be equal to this otherwise we may never be able to terminate this loop . */
if ( clockHand >= hashtable . capacity ( ) ) { clockHand = 0 ; } int initialHand = cl... |
public class OverWindowPartitionedOrdered { /** * Assigns an alias for this window that the following { @ code select ( ) } clause can refer to .
* @ param alias alias for this over window
* @ return the fully defined over window */
public OverWindow as ( Expression alias ) { } } | return new OverWindow ( alias , partitionBy , orderBy , new CallExpression ( BuiltInFunctionDefinitions . UNBOUNDED_RANGE , Collections . emptyList ( ) ) , Optional . empty ( ) ) ; |
public class VoltTableRow { /** * Retrieve the varbinary value stored in the column specified by index .
* Looking at the return value is not a reliable way to check if the value
* is < tt > null < / tt > . Use { @ link # wasNull ( ) } instead .
* @ param columnIndex Index of the column
* @ return Varbinary val... | validateColumnType ( columnIndex , VoltType . VARBINARY ) ; int pos = m_buffer . position ( ) ; m_buffer . position ( getOffset ( columnIndex ) ) ; // Sanity check the varbinary size int position .
if ( VARBINARY_LEN_SIZE > m_buffer . remaining ( ) ) { throw new RuntimeException ( String . format ( "VoltTableRow::getVa... |
public class Utils { /** * Unzip a zip file . Will overwrite existing files .
* @ param zipFile Full path of the zip file you ' d like to unzip .
* @ param location Full path of the directory you ' d like to unzip to ( will be created if it
* doesn ' t exist ) .
* @ throws IOException */
public void unzip ( Str... | final int BUFFER_SIZE = 10240 ; int size ; byte [ ] buffer = new byte [ BUFFER_SIZE ] ; try { if ( ! location . endsWith ( "/" ) ) { location += "/" ; } File f = new File ( location ) ; if ( ! f . isDirectory ( ) ) { f . mkdirs ( ) ; } ZipInputStream zin = new ZipInputStream ( new BufferedInputStream ( new FileInputStr... |
public class AbstractCachedGenerator { /** * Retrieves the resource from cache if it exists
* @ param path
* the resource path
* @ param context
* the generator context
* @ param cacheMode
* the cache mode
* @ return the reader to the resource */
protected Reader retrieveFromCache ( String path , Generato... | Reader rd = null ; String filePath = getTempFilePath ( context , cacheMode ) ; FileInputStream fis = null ; File file = new File ( filePath ) ; if ( file . exists ( ) ) { try { fis = new FileInputStream ( file ) ; } catch ( FileNotFoundException e ) { throw new BundlingProcessException ( "An error occured while creatin... |
public class XpathNodeTracker { /** * Invoked by { @ link # visited visited } when visited is an element ,
* text , CDATA section , comment or processing instruction .
* @ param visited the visited node - Unit tests call this with
* null values , so it is not safe to assume it will never be null .
* It will nev... | levels . getLast ( ) . trackNode ( visited , value ) ; |
public class AbstractRunMojo { /** * Package customized war file and install it in local maven repo .
* @ param warName the name of the custom war
* @ return the customized war file artifactId , to be used by the tomcat7 plugin
* @ throws MojoExecutionException when any problem appears packaging or installing the... | final String warArtifactId = "${project.artifactId}-" + warName ; final String warSourceDir = getWarOutputDir ( warName ) ; // Package the customized war file
// Note . don ' t use the maven - war - plugin here as it will package the module files twice , once from the
// target / classes dir and once via the JAR
String... |
public class Record { /** * Return column names of this record . */
public String [ ] getColumnNames ( ) { } } | Set < String > attrNameSet = getColumns ( ) . keySet ( ) ; return attrNameSet . toArray ( new String [ attrNameSet . size ( ) ] ) ; |
public class MarkerUtil { /** * Tries to retrieve right bug marker for given selection . If there are many
* markers for given editor , and text selection doesn ' t match any of them ,
* return null . If there is only one marker for given editor , returns this
* marker in any case .
* @ param selection
* @ pa... | IResource resource = ( IResource ) editor . getEditorInput ( ) . getAdapter ( IFile . class ) ; IMarker [ ] allMarkers ; if ( resource != null ) { allMarkers = getMarkers ( resource , IResource . DEPTH_ZERO ) ; } else { IClassFile classFile = ( IClassFile ) editor . getEditorInput ( ) . getAdapter ( IClassFile . class ... |
public class BedWriter { /** * Write zero or more BED records with the specified print writer .
* @ param records zero or more BED records to write , must not be null
* @ param writer print writer to write BED records with , must not be null */
public static void write ( final Iterable < BedRecord > records , final... | checkNotNull ( records ) ; checkNotNull ( writer ) ; for ( BedRecord record : records ) { writer . println ( record . toString ( ) ) ; } |
public class BigtableDataGrpcClient { /** * { @ inheritDoc } */
@ Override public ResultScanner < FlatRow > readFlatRows ( ReadRowsRequest request ) { } } | if ( shouldOverrideAppProfile ( request . getAppProfileId ( ) ) ) { request = request . toBuilder ( ) . setAppProfileId ( clientDefaultAppProfileId ) . build ( ) ; } // Delegate all resumable operations to the scanner . It will request a non - resumable scanner
// during operation .
final ResponseQueueReader reader = n... |
public class DBCleanService { /** * Cleaning .
* @ throws SQLException */
private static void doClean ( DBCleanerTool dbCleaner ) throws DBCleanException , SQLException { } } | Connection jdbcConn = dbCleaner . getConnection ( ) ; try { dbCleaner . clean ( ) ; dbCleaner . commit ( ) ; jdbcConn . commit ( ) ; } catch ( SQLException e ) { jdbcConn . rollback ( ) ; dbCleaner . rollback ( ) ; jdbcConn . commit ( ) ; } |
public class RelationalOperations { /** * Returns true if polygon _ a is within envelope _ b */
private static boolean polygonWithinEnvelope_ ( Polygon polygon_a , Envelope envelope_b , double tolerance , ProgressTracker progress_tracker ) { } } | Envelope2D env_a = new Envelope2D ( ) , env_b = new Envelope2D ( ) ; polygon_a . queryEnvelope2D ( env_a ) ; envelope_b . queryEnvelope2D ( env_b ) ; return envelopeInfContainsEnvelope_ ( env_b , env_a , tolerance ) ; |
public class DescribeAddressRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DescribeAddressRequest describeAddressRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( describeAddressRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( describeAddressRequest . getAddressId ( ) , ADDRESSID_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " ... |
public class URIBuilder { /** * Builds a dataset URI from the given repository URI , namespace , and dataset
* name .
* @ param repoUri a repository URI
* @ param namespace a String namespace
* @ param dataset a String dataset name
* @ return a dataset URI for the namespace and dataset name in the repository ... | return new URIBuilder ( repoUri , namespace , dataset ) . build ( ) ; |
public class ResourceGridScreen { /** * Add the navigation button ( s ) to the left of the grid row . */
public void addNavButtons ( ) { } } | new SCannedBox ( this . getNextLocation ( ScreenConstants . FIRST_SCREEN_LOCATION , ScreenConstants . SET_ANCHOR ) , this , null , ScreenConstants . DEFAULT_DISPLAY , null , null , MenuConstants . FORMDETAIL , MenuConstants . FORMDETAIL , null ) ; super . addNavButtons ( ) ; // Next buttons will be " First ! " |
public class EventRecurrence { /** * Converts one of the internal day constants ( SU , MO , etc . ) to the
* two - letter string representing that constant .
* @ param day one the internal constants SU , MO , etc .
* @ return the two - letter string for the day ( " SU " , " MO " , etc . )
* @ throws IllegalArgu... | switch ( day ) { case SU : return "SU" ; case MO : return "MO" ; case TU : return "TU" ; case WE : return "WE" ; case TH : return "TH" ; case FR : return "FR" ; case SA : return "SA" ; default : throw new IllegalArgumentException ( "bad day argument: " + day ) ; } |
public class ApplicationGatewaysInner { /** * Lists all SSL predefined policies for configuring Ssl policy .
* @ param serviceCallback the async ServiceCallback to handle successful and failed responses .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the { @ link ServiceF... | return AzureServiceFuture . fromPageResponse ( listAvailableSslPredefinedPoliciesSinglePageAsync ( ) , new Func1 < String , Observable < ServiceResponse < Page < ApplicationGatewaySslPredefinedPolicyInner > > > > ( ) { @ Override public Observable < ServiceResponse < Page < ApplicationGatewaySslPredefinedPolicyInner > ... |
public class ScriptableObject { /** * Gets a named property from an object or any object in its prototype chain .
* Searches the prototype chain for a property named < code > name < / code > .
* @ param obj a JavaScript object
* @ param name a property name
* @ return the value of a property with name < code > ... | Scriptable start = obj ; Object result ; do { result = obj . get ( name , start ) ; if ( result != Scriptable . NOT_FOUND ) break ; obj = obj . getPrototype ( ) ; } while ( obj != null ) ; return result ; |
public class cmppolicylabel { /** * Use this API to add cmppolicylabel resources . */
public static base_responses add ( nitro_service client , cmppolicylabel resources [ ] ) throws Exception { } } | base_responses result = null ; if ( resources != null && resources . length > 0 ) { cmppolicylabel addresources [ ] = new cmppolicylabel [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new cmppolicylabel ( ) ; addresources [ i ] . labelname = resources [ i ] . labelname... |
public class KAMStoreImpl { /** * { @ inheritDoc } */
@ Override public List < BelStatement > getSupportingEvidence ( KamEdge kamEdge ) { } } | if ( kamEdge == null ) throw new InvalidArgument ( "kamEdge" , kamEdge ) ; if ( ! exists ( kamEdge . getKam ( ) ) ) return null ; return getSupportingEvidence ( kamEdge , null ) ; |
public class TaskMetricGroup { @ Override protected void putVariables ( Map < String , String > variables ) { } } | variables . put ( ScopeFormat . SCOPE_TASK_VERTEX_ID , vertexId . toString ( ) ) ; variables . put ( ScopeFormat . SCOPE_TASK_NAME , taskName ) ; variables . put ( ScopeFormat . SCOPE_TASK_ATTEMPT_ID , executionId . toString ( ) ) ; variables . put ( ScopeFormat . SCOPE_TASK_ATTEMPT_NUM , String . valueOf ( attemptNumb... |
public class MultiPartRequest { /** * Get any file name associated with a part .
* @ param name The part name
* @ return The filename */
public String getFilename ( String name ) { } } | List part = ( List ) _partMap . getValues ( name ) ; if ( part == null ) return null ; return ( ( Part ) part . get ( 0 ) ) . _filename ; |
public class nslimitidentifier_nslimitsessions_binding { /** * Use this API to count the filtered set of nslimitidentifier _ nslimitsessions _ binding resources .
* filter string should be in JSON format . eg : " port : 80 , servicetype : HTTP " . */
public static long count_filtered ( nitro_service service , String ... | nslimitidentifier_nslimitsessions_binding obj = new nslimitidentifier_nslimitsessions_binding ( ) ; obj . set_limitidentifier ( limitidentifier ) ; options option = new options ( ) ; option . set_count ( true ) ; option . set_filter ( filter ) ; nslimitidentifier_nslimitsessions_binding [ ] response = ( nslimitidentifi... |
public class BucketReadTrx { /** * Dereference data bucket reference .
* @ param pSeqDataBucketKey
* Key of data bucket .
* @ return Dereferenced bucket .
* @ throws TTIOException
* if something odd happens within the creation process . */
protected final List < DataBucket > getSnapshotBuckets ( final long pS... | // Return Value , since the revision iterates a flexible number of version , this has to be a list
// first .
final List < DataBucket > dataBuckets = new ArrayList < DataBucket > ( ) ; // Getting the keys for the revRoots
final long [ ] pathToRoot = BucketReadTrx . dereferenceLeafOfTree ( mBucketReader , mUberBucket . ... |
public class OmsNetDiff { /** * Calculates the difference map .
* @ return */
private WritableRaster netdif ( ) { } } | // get rows and cols from the active region
HashMap < String , Double > regionMap = CoverageUtilities . getRegionParamsFromGridCoverage ( inFlow ) ; int cols = regionMap . get ( CoverageUtilities . COLS ) . intValue ( ) ; int rows = regionMap . get ( CoverageUtilities . ROWS ) . intValue ( ) ; int [ ] flow = new int [ ... |
public class FlinkApplicationConfigurationUpdateMarshaller { /** * Marshall the given parameter object . */
public void marshall ( FlinkApplicationConfigurationUpdate flinkApplicationConfigurationUpdate , ProtocolMarshaller protocolMarshaller ) { } } | if ( flinkApplicationConfigurationUpdate == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( flinkApplicationConfigurationUpdate . getCheckpointConfigurationUpdate ( ) , CHECKPOINTCONFIGURATIONUPDATE_BINDING ) ; protocolMarshaller . marshall ... |
public class JITDeploy { /** * TODO : javadoc */
public static final Class < ? > generateEJBHomeImplClass ( ClassLoader classLoader , String homeClassName , Class < ? > remoteInterface , Class < ? > localInterface , Class < ? > ejbClass , // d369262.5
Class < ? > pkeyClass , HashMap < String , String > initMethods , //... | Class < ? > rtnClass = null ; final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; // d576626
if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "generateEJBHomeImplClass: " + homeClassName + " : " + beanName ) ; try { byte [ ] classbytes = EJBHomeImpl . generateClassBytes ( homeClassName , r... |
public class AlgoAbstractRegister { /** * Register algorithm common REST interface .
* @ param mbProto prototype instance of algorithm model builder
* @ param version registration version */
protected final void registerModelBuilder ( RestApiContext context , ModelBuilder mbProto , int version ) { } } | Class < ? extends water . api . Handler > handlerClass = water . api . ModelBuilderHandler . class ; if ( H2O . ARGS . features_level . compareTo ( mbProto . builderVisibility ( ) ) > 0 ) { return ; // Skip endpoint registration
} String base = mbProto . getClass ( ) . getSimpleName ( ) ; String lbase = base . toLowerC... |
public class ImageDeformPointMLS_F32 { /** * Specifies the input image size and the size of the grid it will use to approximate the idea solution . All
* control points are discarded
* @ param width Image width
* @ param height Image height
* @ param gridRows grid rows
* @ param gridCols grid columns */
publi... | // need to maintain the same ratio of pixels in the grid as in the regular image for similarity and rigid
// to work correctly
int s = Math . max ( width , height ) ; scaleX = s / ( float ) ( gridCols - 1 ) ; scaleY = s / ( float ) ( gridRows - 1 ) ; if ( gridRows > gridCols ) { scaleY /= ( gridCols - 1 ) / ( float ) (... |
public class Counters { /** * Returns the set of keys that have exactly the given count . This set may
* have 0 elements but will not be null . */
public static < E > Set < E > keysAt ( Counter < E > c , double count ) { } } | Set < E > keys = new HashSet < E > ( ) ; for ( E key : c . keySet ( ) ) { if ( c . getCount ( key ) == count ) { keys . add ( key ) ; } } return ( keys ) ; |
public class ModelRegistry { /** * Removes all resource models originating from the given bundle from this registry .
* @ param bundle must not be < code > null < / code > . */
void removeResourceModels ( final Bundle bundle ) { } } | this . logger . info ( "Removing resource models of bundle " + displayNameOf ( bundle ) + "..." ) ; MatchedBundlesPredicate sourcesWithBundles = new MatchedBundlesPredicate ( bundle ) ; for ( Collection < OsgiModelSource < ? > > values : this . typeNameToModelSourcesMap . values ( ) ) { CollectionUtils . filter ( value... |
public class CmsStringUtil { /** * Returns the last index a whitespace char the given source . < p >
* If no whitespace char is found , - 1 is returned . < p >
* @ param source the source to check
* @ return the last index a whitespace char the given source , or - 1 */
public static int lastWhitespaceIn ( String ... | if ( CmsStringUtil . isEmpty ( source ) ) { return - 1 ; } int pos = - 1 ; for ( int i = source . length ( ) - 1 ; i >= 0 ; i -- ) { if ( Character . isWhitespace ( source . charAt ( i ) ) ) { pos = i ; break ; } } return pos ; |
public class TagUtil { /** * This method returns the URI value from a set of
* supplied tags , by first identifying which tag
* relates to a URI and then returning its path value .
* @ param tags The tags
* @ return The URI path , or null if not found */
public static String getUriPath ( Map < String , Object >... | for ( Map . Entry < String , Object > entry : tags . entrySet ( ) ) { if ( isUriKey ( entry . getKey ( ) ) ) { return getUriPath ( entry . getValue ( ) . toString ( ) ) ; } } return null ; |
public class CharCharMap { /** * Rehashes this map if the table is too large .
* < br > Let < var > N < / var > be the smallest table size that can hold < code > max ( n , { @ link # size ( ) } ) < / code > entries , still satisfying the load factor . If the current table size is smaller than or equal to
* < var > ... | final int l = HashCommon . nextPowerOfTwo ( ( int ) Math . ceil ( n / f ) ) ; if ( l >= n || size > maxFill ( l , f ) ) return true ; try { rehash ( l ) ; } catch ( Error cantDoIt ) { return false ; } return true ; |
public class OpsRegistrar { /** * Shutdown all the OpsAgent ' s executor services . Should be possible
* to eventually consolidate all of them into a single executor service . */
public void shutdown ( ) { } } | for ( Entry < OpsSelector , OpsAgent > entry : m_agents . entrySet ( ) ) { try { entry . getValue ( ) . shutdown ( ) ; } catch ( InterruptedException e ) { } } m_agents . clear ( ) ; |
public class RowKey { /** * Extracts the name of the metric ID contained in a row key .
* @ param tsdb The TSDB to use .
* @ param row The actual row key .
* @ return The name of the metric .
* @ throws NoSuchUniqueId if the UID could not resolve to a string */
static String metricName ( final TSDB tsdb , final... | try { return metricNameAsync ( tsdb , row ) . joinUninterruptibly ( ) ; } catch ( RuntimeException e ) { throw e ; } catch ( Exception e ) { throw new RuntimeException ( "Should never be here" , e ) ; } |
public class FnJodaString { /** * It converts the input { @ link BaseDateTime } into a { @ link String } by means of the given pattern or style
* ( depending on the value of formatType parameter ) .
* @ param formatType the format { @ link FormatType }
* @ param format string with the format used for the output
... | return new BaseDateTimeToStr ( formatType , format ) ; |
public class AbstractCommonShapeFileWriter { /** * Write a little endian 8 - byte floating point number .
* @ param v is a little endian 8 - byte floating point number .
* @ throws IOException in case of error . */
protected final void writeLEDouble ( double v ) throws IOException { } } | ensureAvailableBytes ( 8 ) ; this . buffer . order ( ByteOrder . LITTLE_ENDIAN ) ; this . buffer . putDouble ( v ) ; |
public class Ebes { /** * Evaluates a solution
* @ param solution The solution to evaluate */
@ Override public void evaluate ( DoubleSolution solution ) { } } | int hi = 0 ; double [ ] fx = new double [ getNumberOfObjectives ( ) ] ; // functions
EBEsElementsTopology ( solution ) ; // transforma geometria a caracterÃÂsticas mecà¡ nicas
EBEsCalculus ( ) ; // metodo matricial de la rigidez para estructuras espaciales ( 3D )
// START OBJETIVES FUNCTION
for ( int j = 0 ; j ... |
public class DomainMessage { /** * * Blocking until get a Event Result
* @ return */
public Object getBlockEventResult ( ) { } } | Object result = eventResultCache . get ( ) ; if ( result != null ) { return result ; } if ( eventResultHandler != null ) { result = eventResultHandler . getBlockedValue ( ) ; if ( result != null ) { if ( ! eventResultCache . compareAndSet ( null , result ) ) { result = eventResultCache . get ( ) ; } } } return result ; |
public class OSGiLocator { /** * Finds all providers for the given service .
* @ param serviceName
* The fully qualified name of the service interface .
* @ return
* The ordered set of providers for the service if any exists .
* Otherwise , it returns an empty list .
* @ throws IllegalArgumentException if s... | if ( serviceName == null ) { throw new IllegalArgumentException ( "serviceName cannot be null" ) ; } List < Class < ? > > classes = new ArrayList < Class < ? > > ( ) ; if ( factories != null ) { List < Callable < Class < ? > > > l = factories . get ( serviceName ) ; if ( l != null ) { for ( Callable < Class < ? > > c :... |
public class PdfCopyFieldsImp { /** * Checks if a reference has already been " visited " in the copy process .
* @ paramrefthe reference that needs to be checked
* @ returntrue if the reference was already visited */
protected boolean isVisited ( PRIndirectReference ref ) { } } | IntHashtable refs = ( IntHashtable ) visited . get ( ref . getReader ( ) ) ; if ( refs != null ) return refs . containsKey ( ref . getNumber ( ) ) ; else return false ; |
public class ChaincodeStub { /** * Invokes the provided chaincode with the given function and arguments , and returns the
* raw ByteString value that invocation generated .
* @ param chaincodeName The name of the chaincode to invoke
* @ param function the function parameter to pass to the chaincode
* @ param ar... | return handler . handleInvokeChaincode ( chaincodeName , function , args , uuid ) ; |
public class ImageModerationsImpl { /** * Returns probabilities of the image containing racy or adult content .
* @ param imageStream The image file .
* @ param evaluateFileInputOptionalParameter the object representing the optional parameters to be set before calling this API
* @ throws IllegalArgumentException ... | return evaluateFileInputWithServiceResponseAsync ( imageStream , evaluateFileInputOptionalParameter ) . map ( new Func1 < ServiceResponse < Evaluate > , Evaluate > ( ) { @ Override public Evaluate call ( ServiceResponse < Evaluate > response ) { return response . body ( ) ; } } ) ; |
public class CmsLinkUpdateUtil { /** * Updates the link node in the underlying XML page document . < p >
* @ param link the link to update
* @ param element the & lt ; link & gt ; element to update
* @ param updateOnly if set and the element has no { @ link CmsLink # NODE _ TARGET } subelement , so no action if e... | // if element is not null
if ( element != null ) { if ( ! updateOnly || ( element . element ( CmsLink . NODE_TARGET ) != null ) ) { String strId = ( link . getStructureId ( ) == null ? null : link . getStructureId ( ) . toString ( ) ) ; // there may still be entities in the target , so we decode it
updateNode ( element... |
public class ZealotKhala { /** * 生成带 " AND " 前缀 " IS NOT NULL " 的SQL片段 .
* < p > 示例 : 传入 { " a . name " } 参数 , 生成的SQL片段为 : " AND a . name IS NOT NULL " < / p >
* @ param field 数据库字段
* @ return ZealotKhala实例 */
public ZealotKhala andIsNotNull ( String field ) { } } | return this . doIsNull ( ZealotConst . AND_PREFIX , field , true , false ) ; |
public class CommerceOrderItemPersistenceImpl { /** * Returns the commerce order items before and after the current commerce order item in the ordered set where CProductId = & # 63 ; .
* @ param commerceOrderItemId the primary key of the current commerce order item
* @ param CProductId the c product ID
* @ param ... | CommerceOrderItem commerceOrderItem = findByPrimaryKey ( commerceOrderItemId ) ; Session session = null ; try { session = openSession ( ) ; CommerceOrderItem [ ] array = new CommerceOrderItemImpl [ 3 ] ; array [ 0 ] = getByCProductId_PrevAndNext ( session , commerceOrderItem , CProductId , orderByComparator , true ) ; ... |
public class Collections { /** * Get an Iterator over the supplied Collection that returns the elements in the order dictated
* by the supplied Comparator . */
public static < T > Iterator < T > getSortedIterator ( Iterable < T > coll , Comparator < T > comparator ) { } } | return getSortedIterator ( coll . iterator ( ) , comparator ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.