signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class ListConstraintsForPortfolioResult { /** * Information about the constraints .
* @ param constraintDetails
* Information about the constraints . */
public void setConstraintDetails ( java . util . Collection < ConstraintDetail > constraintDetails ) { } } | if ( constraintDetails == null ) { this . constraintDetails = null ; return ; } this . constraintDetails = new java . util . ArrayList < ConstraintDetail > ( constraintDetails ) ; |
public class Similarity { /** * Returns the Tanimoto Coefficient of the two { @ code IntegerVector }
* instances
* @ throws IllegalArgumentException when the length of the two vectors are
* not the same . */
@ SuppressWarnings ( "unchecked" ) public static double tanimotoCoefficient ( IntegerVector a , IntegerVec... | check ( a , b ) ; // IMPLEMENTATION NOTE : The Tanimoto coefficient uses the squart of the
// vector magnitudes , which we could compute by just summing the square
// of the vector values . This would save a . sqrt ( ) call from the
// . magnitude ( ) call . However , we expect that this method might be
// called multi... |
public class Utils { /** * Test whether a class is a subclass of another class .
* @ param t1 the candidate superclass .
* @ param t2 the target
* @ return true if t1 is a superclass of t2. */
public boolean isSubclassOf ( TypeElement t1 , TypeElement t2 ) { } } | return typeUtils . isSubtype ( t1 . asType ( ) , t2 . asType ( ) ) ; |
public class ConvolveImage { /** * Performs a 2D convolution across the image .
* @ param input The original image . Not modified .
* @ param output Where the resulting image is written to . Modified .
* @ param kernel The kernel that is being convolved . Not modified .
* @ param border How the image borders ar... | InputSanityCheck . checkSameShapeB ( input , output ) ; boolean processed = BOverrideConvolveImage . invokeNativeConvolve ( kernel , input , output , border ) ; if ( ! processed ) { border . setImage ( input ) ; ConvolveImageNoBorder . convolve ( kernel , input , output ) ; ConvolveJustBorder_General_IL . convolve ( ke... |
public class ProcedureRunner { /** * This function returns the ExecutionEngine for this site .
* ProcedureRunner needs the access to the ExecutionEngine for two purposes :
* - Telling the C + + side to turn on / off the per - fragment time measurement .
* - Collecting the time measurements and the failure indicat... | if ( m_ee != null ) { return m_ee ; } // m _ site is declared as SiteProcedureConnection here .
// SiteProcedureConnection only has two implementations : Site and MpRoSite .
// Only SP site has an underlying ExecutionEngine , MpRoSite does not .
if ( m_site instanceof Site ) { m_ee = ( ( Site ) m_site ) . getExecutionE... |
public class Configuration { /** * Generate a UID or retrieve the latest if it is valid depending the context given
* by the category , project name and project version
* @ param category The category
* @ param projectName The project name
* @ param projectVersion The project version
* @ param force Force the... | String uid = null ; if ( ! force ) { uid = readUid ( new File ( uidDirectory , "latest" ) ) ; } // Check if the UID was already used for the ROX client and projec / version
if ( uid != null && uidAlreadyUsed ( category , projectName , uid ) ) { uid = null ; } // Generate UID and store it
if ( uid == null ) { uid = gene... |
public class SecretKeyFactory { /** * Returns a < code > SecretKeyFactory < / code > object that converts
* secret keys of the specified algorithm .
* < p > A new SecretKeyFactory object encapsulating the
* SecretKeyFactorySpi implementation from the specified provider
* is returned . The specified provider mus... | Instance instance = JceSecurity . getInstance ( "SecretKeyFactory" , SecretKeyFactorySpi . class , algorithm , provider ) ; return new SecretKeyFactory ( ( SecretKeyFactorySpi ) instance . impl , instance . provider , algorithm ) ; |
public class TypePoolInfoMap { /** * Put the value with the appropriate keys
* @ param type Resource type
* @ param poolInfo Pool info
* @ param value Value to put
* @ return Previous value , can be null if wasn ' t set */
public V put ( ResourceType type , PoolInfo poolInfo , V value ) { } } | Map < PoolInfo , V > poolInfoMap = typePoolInfoMap . get ( type ) ; if ( poolInfoMap == null ) { poolInfoMap = new HashMap < PoolInfo , V > ( ) ; typePoolInfoMap . put ( type , poolInfoMap ) ; } return poolInfoMap . put ( poolInfo , value ) ; |
public class AbstractQueuedSynchronizer { /** * Acquires in shared timed mode .
* @ param arg the acquire argument
* @ param nanosTimeout max wait time
* @ return { @ code true } if acquired */
private boolean doAcquireSharedNanos ( int arg , long nanosTimeout ) throws InterruptedException { } } | if ( nanosTimeout <= 0L ) return false ; final long deadline = System . nanoTime ( ) + nanosTimeout ; final Node node = addWaiter ( Node . SHARED ) ; try { for ( ; ; ) { final Node p = node . predecessor ( ) ; if ( p == head ) { int r = tryAcquireShared ( arg ) ; if ( r >= 0 ) { setHeadAndPropagate ( node , r ) ; p . n... |
public class Utility { /** * Get this item from the map and convert it to the target class .
* Convert this object to an formatted string .
* @ param map The map to pull the param from .
* @ param strKey The property key .
* @ param classData The java class to convert the data to .
* @ param objDefault The de... | Object objData = map . get ( strKey ) ; try { return Converter . formatObjectToString ( objData , classData , objDefault ) ; } catch ( Exception ex ) { return null ; } |
public class CQJDBCStorageConnection { /** * This method is similar to { @ link CQJDBCStorageConnection # getChildNodesData ( NodeData , List ) } except that if the
* QPathEntryFilter is an exact name the method { @ link JDBCStorageConnection # getItemData ( NodeData , QPathEntry , ItemType ) }
* will be called ins... | checkIfOpened ( ) ; if ( itemDataFilters . isEmpty ( ) ) { return new ArrayList < NodeData > ( ) ; } List < NodeData > children = new ArrayList < NodeData > ( ) ; for ( Iterator < QPathEntryFilter > it = itemDataFilters . iterator ( ) ; it . hasNext ( ) ; ) { QPathEntryFilter filter = it . next ( ) ; if ( filter . isEx... |
public class TimeSpanFormatter { /** * / * [ deutsch ]
* < p > Erzeugt eine textuelle Ausgabe der angegebenen Dauer und
* schreibt sie in den Puffer . < / p >
* @ param durationduration object
* @ param buffer I / O - buffer where the result is written to
* @ throwsIllegalArgumentException if some aspects of ... | for ( FormatItem < U > item : this . items ) { if ( item == OrItem . INSTANCE ) { break ; } item . print ( duration , buffer ) ; } |
public class StorageAccountsInner { /** * Lists the access keys for the specified storage account .
* @ param resourceGroupName The name of the resource group within the user ' s subscription . The name is case insensitive .
* @ param accountName The name of the storage account within the specified resource group .... | return ServiceFuture . fromResponse ( listKeysWithServiceResponseAsync ( resourceGroupName , accountName ) , serviceCallback ) ; |
public class Matth { /** * Returns { @ code true } if { @ code x } represents a mathematical integer .
* < p > This is equivalent to , but not necessarily implemented as , the expression { @ code
* ! Double . isNaN ( x ) & & ! Double . isInfinite ( x ) & & x = = Math . rint ( x ) } . */
public static boolean isMath... | return isFinite ( x ) && ( x == 0.0 || SIGNIFICAND_BITS - Long . numberOfTrailingZeros ( getSignificand ( x ) ) <= getExponent ( x ) ) ; |
public class SSLChannelProvider { /** * DS method for deactivating this component .
* @ param context */
protected synchronized void deactivate ( ComponentContext context ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( this , tc , "Deactivating" ) ; } // Unregister all services that we registered .
while ( ! sslOptions . isEmpty ( ) ) { Iterator < Map . Entry < String , SSLChannelOptions > > i = sslOptions . entrySet ( ) . iterator ( ) ; while (... |
public class SimpleResponseManager { @ Override public void write ( String text , String contentType ) { } } | assertArgumentNotNull ( "text" , text ) ; assertArgumentNotNull ( "contentType" , contentType ) ; doWrite ( text , contentType ) ; |
public class Widget { /** * update widget state
* @ param delta time elapsed in seconds */
public void update ( float delta ) { } } | background . update ( delta ) ; focusedBackground . update ( delta ) ; leftBorder . update ( delta ) ; rightBorder . update ( delta ) ; topBorder . update ( delta ) ; bottomBorder . update ( delta ) ; for ( Widget child : children ) { child . update ( delta ) ; } |
public class LoggingToolFactory { /** * Dynamically create a { @ link ILoggingTool } for the given
* < code > sourceClass < / code > .
* @ param sourceClass Class for which the { @ link ILoggingTool } should be
* constructed .
* @ return An { @ link ILoggingTool } implementation . */
public static ILoggingTool ... | ILoggingTool tool = null ; // first attempt the user set ILoggingTool
if ( userSetILoggerTool != null ) { tool = instantiateWithCreateMethod ( sourceClass , userSetILoggerTool ) ; } if ( tool == null ) { tool = initializeLoggingTool ( sourceClass , DEFAULT_LOGGING_TOOL_CLASS ) ; } if ( tool == null ) { tool = initializ... |
public class SystemViewStreamExporter { /** * ( non - Javadoc )
* @ see
* org . exoplatform . services . jcr . dataflow . ItemDataTraversingVisitor # leaving ( org . exoplatform . services
* . jcr . datamodel . NodeData , int ) */
@ Override protected void leaving ( NodeData node , int level ) throws RepositoryEx... | try { if ( exportChildVersionHistory && node . getPrimaryTypeName ( ) . equals ( Constants . NT_VERSIONEDCHILD ) ) { try { PropertyData childVersionHistory = ( ( PropertyData ) dataManager . getItemData ( node , new QPathEntry ( Constants . JCR_CHILDVERSIONHISTORY , 1 ) , ItemType . PROPERTY ) ) ; String childVersionHi... |
public class LeftistHeap { /** * Top - down union of two leftist heaps with comparator .
* @ param root1
* the root of the first heap
* @ param root2
* the root of the right heap
* @ return the new root of the merged heap */
@ Override protected Node < K , V > unionWithComparator ( Node < K , V > root1 , Node... | if ( root1 == null ) { return root2 ; } else if ( root2 == null ) { return root1 ; } Node < K , V > newRoot ; Deque < LeftistNode < K , V > > path = new LinkedList < LeftistNode < K , V > > ( ) ; // find initial
int c = comparator . compare ( root1 . key , root2 . key ) ; if ( c <= 0 ) { newRoot = root1 ; root1 = unlin... |
public class Clock { /** * Defines the custom font that can be used to render all
* text elements . To enable the custom font one has to set
* customFontEnabled = true
* @ param FONT */
public void setCustomFont ( final Font FONT ) { } } | if ( null == customFont ) { _customFont = FONT ; fireUpdateEvent ( RESIZE_EVENT ) ; } else { customFont . set ( FONT ) ; } |
public class DSLMappingFile { /** * Saves current mapping into a DSL mapping file
* @ param out
* @ throws IOException */
public void saveMapping ( final Writer out ) throws IOException { } } | for ( final Iterator it = this . mapping . getEntries ( ) . iterator ( ) ; it . hasNext ( ) ; ) { out . write ( it . next ( ) . toString ( ) ) ; out . write ( "\n" ) ; } |
public class CmsWorkplace { /** * Returns the message String for the broadcast message alert of the workplace . < p >
* Caution : returns the pure message String ( not escaped ) or null , if no message is pending . < p >
* @ return the message String for the broadcast message alert of the workplace */
public String... | CmsSessionInfo sessionInfo = OpenCms . getSessionManager ( ) . getSessionInfo ( getSession ( ) ) ; if ( sessionInfo == null ) { return null ; } String sessionId = sessionInfo . getSessionId ( ) . toString ( ) ; Buffer messageQueue = OpenCms . getSessionManager ( ) . getBroadcastQueue ( sessionId ) ; if ( ! messageQueue... |
public class RoutesModule { /** * Adds Routes to the Router respecting exclusion rules .
* Also wraps RouteHandlers with Metrics handlers and sets Route names . */
private void compileRoutes ( ) { } } | Iterator < RouteRegistration > iterator = routeRegistrations . iterator ( ) ; while ( iterator . hasNext ( ) ) { RouteRegistration routeRegistration = iterator . next ( ) ; iterator . remove ( ) ; // Enforce mode requirements specified for Route
if ( routeRegistration . getModes ( ) != null ) { // Enforce specified mod... |
public class JsonObject { /** * Returns the { @ link JsonArray } at the given key , or null if it does not exist or is the wrong
* type . */
public Json . Array getArray ( String key ) { } } | return getArray ( key , ( Json . Array ) null ) ; |
public class CreateBallCommand { /** * { @ inheritDoc } */
@ Override public void perform ( final Wave wave ) { } } | final JRebirthEvent event = wave . get ( EditorWaves . EVENT ) ; LOGGER . trace ( "Process " + event . eventType ( ) + " of type " + event . target ( ) ) ; final EditorModel editorModel = getModel ( EditorModel . class ) ; final BallModel targetBallModel = getModel ( BallModel . class , event ) ; editorModel . register... |
public class SubTool { /** * Process a list of tokens to apply the stated policy to the tokens .
* @ param tokens a list of tokens to process
* @ param policy either to expand or concatenate tokens in the list
* @ return a processed list of tokens */
public static List < String > process ( List < String > tokens ... | if ( policy == Policy . CONCATENATE ) { return concatenate ( tokens ) ; } else { return expand ( tokens ) ; } |
public class GroupApi { /** * Get a Pager of visible direct subgroups in this group .
* < pre > < code > GitLab Endpoint : GET / groups / : id / subgroups < / code > < / pre >
* @ param groupIdOrPath the group ID , path of the group , or a Group instance holding the group ID or path , required
* @ param skipGroup... | Form formData = new GitLabApiForm ( ) . withParam ( "skip_groups" , skipGroups ) . withParam ( "all_available" , allAvailable ) . withParam ( "search" , search ) . withParam ( "order_by" , orderBy ) . withParam ( "sort_order" , sortOrder ) . withParam ( "statistics" , statistics ) . withParam ( "owned" , owned ) ; retu... |
public class AbstractJob { /** * Called when an exception of the specified type occurred
* @ param t
* The exception . Never < code > null < / code > .
* @ param sJobClassName
* The name of the job class
* @ param aJob
* The { @ link IJob } instance */
protected static void triggerCustomExceptionHandler ( @... | exceptionCallbacks ( ) . forEach ( x -> x . onScheduledJobException ( t , sJobClassName , aJob ) ) ; |
public class WorkDir { /** * Returns the user directory from / tmp / */
public static PathImpl getTmpWorkDir ( ) { } } | String userName = System . getProperty ( "user.name" ) ; PathImpl path ; // Windows uses / temp as a work dir
if ( com . caucho . v5 . util . CauchoUtil . isWindows ( ) && ! CurrentTime . isTest ( ) ) path = VfsOld . lookup ( "file:/c:/tmp/" + userName ) ; else path = VfsOld . lookup ( "file:/tmp/" + userName ) ; retur... |
public class GosuClassTransformer { /** * - - - - - Additions */
public boolean isBlockInvoke ( DynamicFunctionSymbol dfs ) { } } | return dfs . getDisplayName ( ) . equals ( BlockClass . INVOKE_METHOD_NAME ) && _context . compilingBlock ( ) ; |
public class Trie2Writable { /** * Compact a build - time trie .
* The compaction
* - removes blocks that are identical with earlier ones
* - overlaps adjacent blocks as much as possible ( if overlap = = TRUE )
* - moves blocks in steps of the data granularity
* - moves and overlaps blocks that overlap with m... | int start , newStart , movedStart ; int blockLength , overlap ; int i , mapIndex , blockCount ; /* do not compact linear - ASCII data */
newStart = UTRIE2_DATA_START_OFFSET ; for ( start = 0 , i = 0 ; start < newStart ; start += UTRIE2_DATA_BLOCK_LENGTH , ++ i ) { map [ i ] = start ; } /* * Start with a block length of... |
public class EventProcessor { /** * Executes all the actions configured on all the event handlers triggered by the { @ link Message } on the queue
* If any of the actions on an event handler fails due to a transient failure , the execution is not persisted such that it can be retried
* @ return a list of { @ link E... | List < EventHandler > eventHandlerList = metadataService . getEventHandlersForEvent ( event , true ) ; Object payloadObject = getPayloadObject ( msg . getPayload ( ) ) ; List < EventExecution > transientFailures = new ArrayList < > ( ) ; for ( EventHandler eventHandler : eventHandlerList ) { String condition = eventHan... |
public class BrokerAccessor { /** * For firing simple queries ( i . e non join queries ) .
* @ param jsonQuery
* @ param reqHeaders
* @ param requiresMapping
* @ return */
public Either < String , Either < Mapper4All , JSONArray > > fireQuery ( String jsonQuery , Map < String , String > reqHeaders , boolean req... | CloseableHttpResponse resp = null ; String respStr ; String url = format ( brokerUrl , brokerHost , brokerPort ) ; try { resp = postJson ( url , jsonQuery , reqHeaders ) ; respStr = IOUtils . toString ( resp . getEntity ( ) . getContent ( ) ) ; } catch ( IOException ex ) { return new Left < > ( format ( "Http %s, faced... |
public class Classfile { /** * Check if scanning needs to be extended upwards to an external superclass , interface or annotation . */
private void extendScanningUpwards ( ) { } } | // Check superclass
if ( superclassName != null ) { scheduleScanningIfExternalClass ( superclassName , "superclass" ) ; } // Check implemented interfaces
if ( implementedInterfaces != null ) { for ( final String interfaceName : implementedInterfaces ) { scheduleScanningIfExternalClass ( interfaceName , "interface" ) ; ... |
public class FadeTransitionCommand { /** * { @ inheritDoc } */
@ Override protected void perform ( final Wave wave ) { } } | // The old node is the one that exists into the parent container ( or null if none )
Node oldNode = waveBean ( wave ) . hideModel ( ) == null ? null : waveBean ( wave ) . hideModel ( ) . node ( ) ; if ( oldNode == null ) { final ObservableList < Node > parentContainer = waveBean ( wave ) . childrenPlaceHolder ( ) ; old... |
public class WebSocketConnection { /** * Close with an associated error status .
* @ param statusCode
* @ param errResponse */
public void close ( int statusCode , HandshakeResponse errResponse ) { } } | log . warn ( "Closing connection with status: {}" , statusCode ) ; // remove handshake flag
session . removeAttribute ( Constants . HANDSHAKE_COMPLETE ) ; // clear the delay queue
queue . clear ( ) ; // send http error response
session . write ( errResponse ) ; // whether to attempt a nice close or a forceful one
if ( ... |
public class LottieCompositionFactory { /** * Parse an animation from raw / res . This is recommended over putting your animation in assets because
* it uses a hard reference to R .
* The resource id will be used as a cache key so future usages won ' t parse the json again . */
@ WorkerThread public static LottieRe... | try { return fromJsonInputStreamSync ( context . getResources ( ) . openRawResource ( rawRes ) , rawResCacheKey ( rawRes ) ) ; } catch ( Resources . NotFoundException e ) { return new LottieResult < > ( e ) ; } |
public class SSLConnectionLink { /** * This method is called to handle the results of an SSL handshake . This may be called
* by a callback or in the same thread as the connect request .
* @ param netBuffer buffer for data flowing in fron the net
* @ param decryptedNetBuffer buffer for decrypted data from the net... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "readyOutboundPostHandshake, vc=" + getVCHash ( ) ) ; } // Exception to call destroy with in case of bad return code from SSL engine .
IOException exception = null ; if ( hsStatus != HandshakeStatus . FINISHED ) { // Handshak... |
public class RuleFilterEvaluator { /** * Resolves the backref arguments , e . g . replaces { @ code \ 1 } by the value of the first token in the pattern . */
public Map < String , String > getResolvedArguments ( String filterArgs , AnalyzedTokenReadings [ ] patternTokens , List < Integer > tokenPositions ) { } } | Map < String , String > result = new HashMap < > ( ) ; String [ ] arguments = filterArgs . split ( "\\s+" ) ; for ( String arg : arguments ) { int delimPos = arg . indexOf ( ':' ) ; if ( delimPos == - 1 ) { throw new RuntimeException ( "Invalid syntax for key/value, expected 'key:value', got: '" + arg + "'" ) ; } Strin... |
public class DescribeMaintenanceWindowExecutionsRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DescribeMaintenanceWindowExecutionsRequest describeMaintenanceWindowExecutionsRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( describeMaintenanceWindowExecutionsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( describeMaintenanceWindowExecutionsRequest . getWindowId ( ) , WINDOWID_BINDING ) ; protocolMarshaller . marshall ( describeMaintenanceWindowE... |
public class OCSP { /** * Obtains the revocation status of a certificate using OCSP .
* @ param cert the certificate to be checked
* @ param issuerCert the issuer certificate
* @ param responderURI the URI of the OCSP responder
* @ param responderCert the OCSP responder ' s certificate
* @ param date the time... | return check ( cert , issuerCert , responderURI , responderCert , date , Collections . < Extension > emptyList ( ) ) ; |
public class JaxWsUtils { /** * Get the string value of attribute in WebService or WebserviceProvider annotation .
* If it is provider , get the attribute from its annotation .
* If it is not provider ,
* First , try to get the attribute from serviceImplBean ,
* then , try to get the attribute from the SEI eith... | AnnotationInfo annotationInfo = getAnnotationInfoFromClass ( classInfo , attribute ) ; if ( annotationInfo == null ) { return "" ; } boolean isProvider = isProvider ( classInfo ) ; // if the serviceImplBean is a WebServiceProvider , return the attribute value or the defaultValue for ServiceProvider
if ( isProvider ) { ... |
public class RunCommandTargetMarshaller { /** * Marshall the given parameter object . */
public void marshall ( RunCommandTarget runCommandTarget , ProtocolMarshaller protocolMarshaller ) { } } | if ( runCommandTarget == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( runCommandTarget . getKey ( ) , KEY_BINDING ) ; protocolMarshaller . marshall ( runCommandTarget . getValues ( ) , VALUES_BINDING ) ; } catch ( Exception e ) { throw ne... |
public class JOGLTypeConversions { /** * Convert depth functions from GL constants .
* @ param d The GL constant .
* @ return The value . */
public static JCGLDepthFunction depthFunctionFromGL ( final int d ) { } } | switch ( d ) { case GL . GL_ALWAYS : return JCGLDepthFunction . DEPTH_ALWAYS ; case GL . GL_EQUAL : return JCGLDepthFunction . DEPTH_EQUAL ; case GL . GL_GREATER : return JCGLDepthFunction . DEPTH_GREATER_THAN ; case GL . GL_GEQUAL : return JCGLDepthFunction . DEPTH_GREATER_THAN_OR_EQUAL ; case GL . GL_LESS : return JC... |
public class EnvironmentPrefixHelper { /** * Extract keys for looking up a { @ link TextEncryptor } from the input text in the form
* of a prefix of zero or many < code > { name : value } < / code > pairs . The name and profiles
* properties are always added to the keys ( replacing any provided in the inputs ) .
... | Map < String , String > keys = new LinkedHashMap < String , String > ( ) ; text = removeEnvironmentPrefix ( text ) ; keys . put ( NAME , name ) ; keys . put ( PROFILES , profiles ) ; if ( text . contains ( ESCAPE ) ) { text = text . substring ( 0 , text . indexOf ( ESCAPE ) ) ; } String [ ] tokens = StringUtils . split... |
public class TaskMonitor { /** * Make a new Monitor
* @ param start the task start moment
* @ param duration the task duration
* @ param end the task end
* @ return the resulting task . */
public static TaskMonitor build ( IntVar start , IntVar duration , IntVar end ) { } } | return new TaskMonitor ( start , duration , end ) ; |
public class RestUtils { /** * A generic JSON response handler .
* @ param status status code
* @ param messages zero or more errors
* @ return a response as JSON */
public static Response getStatusResponse ( Response . Status status , String ... messages ) { } } | if ( status == null ) { return Response . status ( Response . Status . BAD_REQUEST ) . build ( ) ; } String msg = StringUtils . join ( messages , ". " ) ; if ( StringUtils . isBlank ( msg ) ) { msg = status . getReasonPhrase ( ) ; } try { return GenericExceptionMapper . getExceptionResponse ( status . getStatusCode ( )... |
public class VariantVcfFactory { /** * Creates a list of Variant objects using the fields in a record of a VCF
* file . A new Variant object is created per allele , so several of them can
* be created from a single line .
* Start / end coordinates assignment tries to work as similarly as possible
* as Ensembl d... | String [ ] fields = line . split ( "\t" ) ; if ( fields . length < 8 ) { throw new IllegalArgumentException ( "Not enough fields provided (min 8)" ) ; } // if ( fields [ 4 ] . equals ( " . " ) ) {
// throw new NotAVariantException ( " Alternative allele is a ' . ' . This is not an actual variant but a reference positio... |
public class JcaServiceUtilities { /** * Set context classloader to the one for the resource adapter
* @ param raClassLoader
* @ return the current classloader */
public ClassLoader beginContextClassLoader ( ClassLoader raClassLoader ) { } } | return raClassLoader == null ? null : AccessController . doPrivileged ( new GetAndSetContextClassLoader ( raClassLoader ) ) ; |
public class HTODDynacache { /** * dump _ object _ statistics ( )
* Dump filemanager and HTOD statistics to stdout . We could capture these
* for forward to monitors if needed . */
public void dump_object_statistics ( ) { } } | final String methodName = "dump_object_statistics()" ; try { OutputStreamWriter out = new OutputStreamWriter ( System . out ) ; out . write ( "========================================================================" ) ; out . write ( "------------------ Object File Manager Statistics ---------------\n" ) ; object_file... |
public class Types { /** * Cast Java reflective type to language class . If < code > type < / code > is instance of { @ link Class } just return it . If
* is parameterized type returns the raw class .
* @ param t Java reflective type .
* @ return the class described by given < code > type < / code > . */
private ... | if ( t instanceof Class < ? > ) { return ( Class < ? > ) t ; } if ( t instanceof ParameterizedType ) { return ( Class < ? > ) ( ( ParameterizedType ) t ) . getRawType ( ) ; } throw new BugError ( "Unknown type %s to convert to class." , t ) ; |
public class dnsnameserver { /** * Use this API to delete dnsnameserver . */
public static base_response delete ( nitro_service client , dnsnameserver resource ) throws Exception { } } | dnsnameserver deleteresource = new dnsnameserver ( ) ; deleteresource . ip = resource . ip ; deleteresource . dnsvservername = resource . dnsvservername ; return deleteresource . delete_resource ( client ) ; |
public class ObjectMapper { /** * Maps a ResultSet column ( from the current ResultSet row ) to a named
* property of an object , using reflection .
* @ param rs The JDBC ResultSet
* @ param index The column index to get the value from
* @ param property The name of the property to set the value of
* @ param ... | if ( pRSet == null || pProperty == null || pObj == null ) throw new IllegalArgumentException ( "ResultSet, Property or Object" + " arguments cannot be null!" ) ; if ( pIndex <= 0 ) throw new IllegalArgumentException ( "Index parameter must be > 0!" ) ; String methodName = "set" + StringUtil . capitalize ( pProperty ) ;... |
public class FastjsonDecoder { /** * 判断JSON字符串是否是一个合法的JSON字符串
* @ param jsonStr
* JSON字符串
* @ return true - 合法的json字符串 , false - 不是一个json字符串
* @ since 2.0.0 */
public static boolean isValidJson ( String jsonStr ) { } } | if ( jsonStr == null || jsonStr . trim ( ) . equals ( "" ) ) { return false ; } try { Object object = JSON . parse ( jsonStr ) ; if ( object instanceof JSONObject ) { return true ; } else if ( object instanceof JSONArray ) { return true ; } } catch ( Throwable e ) { return false ; } return false ; |
public class ConfigObject { /** * Returns the editor panel for the specified field . */
public JPanel getEditor ( PresentsContext ctx , Field field ) { } } | if ( field . getType ( ) . equals ( Boolean . TYPE ) ) { return new BooleanFieldEditor ( ctx , field , this ) ; } else { return new AsStringFieldEditor ( ctx , field , this ) ; } |
public class SigningDigest { /** * Performs MAC signing of the SMB . This is done as follows .
* The signature field of the SMB is overwritted with the sequence number ;
* The MD5 digest of the MAC signing key + the entire SMB is taken ;
* The first 8 bytes of this are placed in the signature field .
* @ param ... | request . signSeq = signSequence ; if ( response != null ) { response . signSeq = signSequence + 1 ; response . verifyFailed = false ; } try { update ( macSigningKey , 0 , macSigningKey . length ) ; int index = offset + ServerMessageBlock . SIGNATURE_OFFSET ; for ( int i = 0 ; i < 8 ; i ++ ) data [ index + i ] = 0 ; Se... |
public class ApiOvhDedicatedCloud { /** * Get this object properties
* REST : GET / dedicatedCloud / { serviceName } / datacenter / { datacenterId } / vm / { vmId } / backupJob / restorePoints / { restorePointId }
* @ param serviceName [ required ] Domain of the service
* @ param datacenterId [ required ]
* @ p... | String qPath = "/dedicatedCloud/{serviceName}/datacenter/{datacenterId}/vm/{vmId}/backupJob/restorePoints/{restorePointId}" ; StringBuilder sb = path ( qPath , serviceName , datacenterId , vmId , restorePointId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhRestorePoi... |
public class ExtendedLikeFilterImpl { /** * Given OGC PropertyIsLike Filter information , construct an SQL - compatible ' like ' pattern .
* SQL % - - > match any number of characters _ - - > match a single character
* NOTE ; the SQL command is ' string LIKE pattern [ ESCAPE escape - character ] ' We could re - def... | if ( ( escape == '\'' ) || ( multi == '\'' ) || ( single == '\'' ) ) { throw new IllegalArgumentException ( "do not use single quote (') as special char!" ) ; } StringBuilder result = new StringBuilder ( pattern . length ( ) + 5 ) ; int i = 0 ; while ( i < pattern . length ( ) ) { char chr = pattern . charAt ( i ) ; if... |
public class MerlinReader { /** * By the time we reach this method , we should be looking at the SQLite
* database file itself .
* @ param file SQLite database file
* @ return ProjectFile instance */
private ProjectFile readFile ( File file ) throws MPXJException { } } | try { String url = "jdbc:sqlite:" + file . getAbsolutePath ( ) ; Properties props = new Properties ( ) ; m_connection = org . sqlite . JDBC . createConnection ( url , props ) ; m_documentBuilder = DocumentBuilderFactory . newInstance ( ) . newDocumentBuilder ( ) ; XPathFactory xPathfactory = XPathFactory . newInstance ... |
public class HttpResponse { /** * Sets a header field value based on its name .
* @ param name The header name to set
* @ param value The header value to set
* @ return the previous value or null if the field was previously unset . */
public final String setHeader ( String name , String value ) { } } | sortedHeaders = null ; return headers . put ( name , value ) ; |
public class AbstractMultiMatcherElement { /** * Creates and return all the children matchers .
* @ return matcher array */
protected Matcher < ? > [ ] getMatchers ( ) { } } | Matcher < ? > [ ] matchers = new Matcher < ? > [ tasks . size ( ) ] ; for ( int i = 0 ; i < matchers . length ; i ++ ) { matchers [ i ] = tasks . get ( i ) . createMatcher ( ) ; } return matchers ; |
public class GramJob { /** * Convert the status of a GramJob from an integer to a string . This
* method is not typically called by users .
* @ return string representing the status of the GramJob passed as an
* argument . */
public static String getStatusAsString ( int status ) { } } | if ( status == STATUS_PENDING ) { return "PENDING" ; } else if ( status == STATUS_ACTIVE ) { return "ACTIVE" ; } else if ( status == STATUS_DONE ) { return "DONE" ; } else if ( status == STATUS_FAILED ) { return "FAILED" ; } else if ( status == STATUS_SUSPENDED ) { return "SUSPENDED" ; } else if ( status == STATUS_UNSU... |
public class FaceDetailMarshaller { /** * Marshall the given parameter object . */
public void marshall ( FaceDetail faceDetail , ProtocolMarshaller protocolMarshaller ) { } } | if ( faceDetail == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( faceDetail . getBoundingBox ( ) , BOUNDINGBOX_BINDING ) ; protocolMarshaller . marshall ( faceDetail . getAgeRange ( ) , AGERANGE_BINDING ) ; protocolMarshaller . marshall ( ... |
public class Jar { /** * Sets an attribute in the main section of the manifest to a list .
* The list elements will be joined with a single whitespace character .
* @ param name the attribute ' s name
* @ param values the attribute ' s value
* @ return { @ code this }
* @ throws IllegalStateException if entri... | return setAttribute ( name , join ( values ) ) ; |
public class DataFlowAnalysis { /** * Performs a single flow through a node .
* @ return { @ code true } if the flow state differs from the previous state . */
protected boolean flow ( DiGraphNode < N , Branch > node ) { } } | FlowState < L > state = node . getAnnotation ( ) ; if ( isForward ( ) ) { L outBefore = state . out ; state . out = flowThrough ( node . getValue ( ) , state . in ) ; return ! outBefore . equals ( state . out ) ; } else { L inBefore = state . in ; state . in = flowThrough ( node . getValue ( ) , state . out ) ; return ... |
public class JobQueuesManager { /** * because of the change in the job priority or job start - time . */
private void reorderJobs ( JobInProgress job , JobSchedulingInfo oldInfo , QueueInfo qi ) { } } | if ( qi . removeWaitingJob ( oldInfo ) != null ) { qi . addWaitingJob ( job ) ; } if ( qi . removeRunningJob ( oldInfo ) != null ) { qi . addRunningJob ( job ) ; } |
public class ArrayUtils { /** * < p > Copies the given array and adds the given element at the end of the new array . < / p >
* < p > The new array contains the same elements of the input
* array plus the given element in the last position . The component type of
* the new array is the same as that of the input a... | long [ ] newArray = ( long [ ] ) copyArrayGrow1 ( array , Long . TYPE ) ; newArray [ newArray . length - 1 ] = element ; return newArray ; |
public class ApiClient { /** * Helper method to configure the token endpoint of the first oauth found in
* the apiAuthorizations ( there should be only one )
* @ return Token request builder */
public TokenRequestBuilder getTokenEndPoint ( ) { } } | for ( Authentication apiAuth : authentications . values ( ) ) { if ( apiAuth instanceof RetryingOAuth ) { RetryingOAuth retryingOAuth = ( RetryingOAuth ) apiAuth ; return retryingOAuth . getTokenRequestBuilder ( ) ; } } return null ; |
public class CmsLogin { /** * Returns the available organizational units as JSON array string . < p >
* @ return the available organizational units as JSON array string */
public String getJsonOrgUnitList ( ) { } } | List < CmsOrganizationalUnit > allOus = getOus ( ) ; List < JSONObject > jsonOus = new ArrayList < JSONObject > ( allOus . size ( ) ) ; int index = 0 ; for ( CmsOrganizationalUnit ou : allOus ) { JSONObject jsonObj = new JSONObject ( ) ; try { // 1 : OU fully qualified name
jsonObj . put ( "name" , ou . getName ( ) ) ;... |
public class MockBundle { /** * Get the class loader of the mock , rather than that of the bundle . */
@ Override public Class < ? > loadClass ( String classname ) throws ClassNotFoundException { } } | return getClass ( ) . getClassLoader ( ) . loadClass ( classname ) ; |
public class CaseInsensitiveStringMap { /** * Returns the double value to which the specified key is mapped ,
* or defaultValue if there is no mapping for the key . The key match is case - insensitive . */
public double getDouble ( String key , double defaultValue ) { } } | String value = get ( key ) ; return value == null ? defaultValue : Double . parseDouble ( value ) ; |
public class IfcFaceImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ SuppressWarnings ( "unchecked" ) public EList < IfcFaceBound > getBounds ( ) { } } | return ( EList < IfcFaceBound > ) eGet ( Ifc2x3tc1Package . Literals . IFC_FACE__BOUNDS , true ) ; |
public class ManagementGroupVertex { /** * Adds all management vertices which are included in this group vertex to the given list .
* @ param vertices
* the list to which the vertices shall be added */
void collectVertices ( final List < ManagementVertex > vertices ) { } } | final Iterator < ManagementVertex > it = this . groupMembers . iterator ( ) ; while ( it . hasNext ( ) ) { vertices . add ( it . next ( ) ) ; } |
public class AbstractItemExporter { /** * { @ inheritDoc } */
public void transfer ( TransferResult tr ) { } } | this . transferResult = tr ; tr . setTransfer ( this ) ; if ( ! beforeExport ( ) ) return ; for ( final TransferListener listener : listeners ) { listener . onStart ( tr ) ; } while ( hasNext ( ) ) { next ( ) ; int errors = tr . errors ( ) ; // 实体转换开始
for ( final TransferListener listener : listeners ) { listener . onI... |
public class ObjectType { /** * Due to the complexity of some of our internal type systems , sometimes
* we have different types constructed by the same constructor .
* In other parts of the type system , these are called delegates .
* We construct these types by appending suffixes to the constructor name .
* T... | String name = getReferenceName ( ) ; if ( name != null ) { int start = name . indexOf ( '(' ) ; if ( start != - 1 ) { int end = name . lastIndexOf ( ')' ) ; String prefix = name . substring ( 0 , start ) ; return end + 1 % name . length ( ) == 0 ? prefix : prefix + name . substring ( end + 1 ) ; } } return name ; |
public class ConnectionHandle { /** * Get ConnectionHandle stored in VirtualConnection state map ( if one isn ' t
* there already , assign one ) .
* @ param vc
* @ return ConnectionHandle */
public static ConnectionHandle getConnectionHandle ( VirtualConnection vc ) { } } | if ( vc == null ) { return null ; } ConnectionHandle connHandle = ( ConnectionHandle ) vc . getStateMap ( ) . get ( CONNECTION_HANDLE_VC_KEY ) ; // We can be here for two reasons :
// a ) We have one , just needed to find it in VC state map
if ( connHandle != null ) return connHandle ; // b ) We want a new one
connHand... |
public class SequenceListType { /** * Gets the value of the sequence property .
* This accessor method returns a reference to the live list ,
* not a snapshot . Therefore any modification you make to the
* returned list will be present inside the JAXB object .
* This is why there is not a < CODE > set < / CODE ... | if ( sequence == null ) { sequence = new ArrayList < SequenceListType . Sequence > ( ) ; } return this . sequence ; |
public class C10NConfigBase { /** * < p > Create a method annotation binding to the specified locale
* < p > There are two basic usages :
* < pre > < code >
* bindAnnotation ( Ja . class ) . to ( Locale . JAPANESE ) ;
* < / code > < / pre >
* which will tell c10n to take the value given in the < code > @ Ja <... | Preconditions . assertNotNull ( annotationClass , "annotationClass" ) ; checkAnnotationInterface ( annotationClass ) ; C10NAnnotationBinder binder = new C10NAnnotationBinder ( ) ; annotationBinders . put ( annotationClass , binder ) ; return binder ; |
public class AtomicGrowingSparseHashMatrix { /** * Returns the row vector , locking the data if { @ code shouldLock } is { @ code
* true } . */
private SparseDoubleVector getRowVector ( int row , boolean shouldLock ) { } } | int c = cols . get ( ) ; if ( shouldLock ) lockRow ( row , c ) ; // Ensure that the column data is up to date
while ( lastVectorCacheUpdate . get ( ) != modifications . get ( ) ) updateVectorCache ( ) ; int [ ] colArr = rowToColsCache [ row ] ; SparseDoubleVector rowVec = new SparseHashDoubleVector ( c ) ; for ( int co... |
public class DataDirEntry { /** * Calculates the file offset of the data directory based on the virtual
* address and the entries in the section table .
* This method is subject to change .
* @ Beta
* @ param table
* @ return file offset of data directory */
public long getFileOffset ( SectionTable table ) { ... | checkArgument ( table != null , "section table must not be null" ) ; Optional < SectionHeader > section = maybeGetSectionTableEntry ( table ) ; if ( section . isPresent ( ) ) { long sectionRVA = section . get ( ) . getAlignedVirtualAddress ( ) ; long sectionOffset = section . get ( ) . getAlignedPointerToRaw ( ) ; retu... |
public class WritableName { /** * Return the name for a class . Default is { @ link Class # getName ( ) } . */
public static synchronized String getName ( Class writableClass ) { } } | String name = CLASS_TO_NAME . get ( writableClass ) ; if ( name != null ) return name ; return writableClass . getName ( ) ; |
public class LangTools { /** * feats string should following the pattern " k1 = v1 | k2 = v2 | k3 = v3" */
public static DTree getDTreeFromCoNLLXString ( final String input ) { } } | if ( input == null || input . trim ( ) . isEmpty ( ) ) { return null ; } Map < Integer , Map < Integer , String > > semanticHeadsMap = new HashMap < > ( ) ; String [ ] dNodesString = input . split ( System . lineSeparator ( ) ) ; DTree tree = new DTree ( ) ; Arrays . stream ( dNodesString ) . map ( s -> s . split ( "\t... |
public class CmsJspTagLink { /** * @ see javax . servlet . jsp . tagext . Tag # doEndTag ( )
* @ return EVAL _ PAGE
* @ throws JspException in case something goes wrong */
@ Override public int doEndTag ( ) throws JspException { } } | ServletRequest req = pageContext . getRequest ( ) ; // This will always be true if the page is called through OpenCms
if ( CmsFlexController . isCmsRequest ( req ) ) { try { // Get link - string from the body and reset body
String link = getBodyContent ( ) . getString ( ) ; getBodyContent ( ) . clear ( ) ; // Calculate... |
public class BDBResourceFileLocationDB { /** * add an url location for a name , unless it already exists
* @ param name
* @ param url
* @ throws IOException */
public void addNameUrl ( final String name , final String url ) throws IOException { } } | // need to first see if there is already an entry for this name .
// if not , add url as the value .
// if so , check the current url locations for name
// if url exists , do nothing
// if url does not exist , add , and set that as the value .
String newValue = null ; String oldValue = get ( name ) ; if ( oldValue != n... |
public class PNGDecoder { /** * Overwrites the tRNS chunk entry to make a selected color transparent .
* < p > This can only be invoked when the image has no alpha channel . < / p >
* < p > Calling this method causes { @ link # hasAlpha ( ) } to return true . < / p >
* @ param r the red component of the color to ... | if ( hasAlphaChannel ( ) ) { throw new UnsupportedOperationException ( "image has an alpha channel" ) ; } byte [ ] pal = this . palette ; if ( pal == null ) { transPixel = new byte [ ] { 0 , r , 0 , g , 0 , b } ; } else { paletteA = new byte [ pal . length / 3 ] ; for ( int i = 0 , j = 0 ; i < pal . length ; i += 3 , j... |
public class ServiceFacade { /** * Call destination ( lightblue ) using a timeout in dual read / write phases .
* Do not use facade timeout during lightblue proxy and kinda proxy phases ( when
* reading from source is disabled ) .
* @ param listenableFuture
* @ param methodName method name is used to read metho... | // not reading from source / legacy means this is either proxy or kinda proxy phase
// in that case , ignore timeout settings for Lightblue call
if ( ! shouldSource ( FacadeOperation . READ ) || timeoutConfiguration . getTimeoutMS ( methodName , facadeOperation ) <= 0 ) { return listenableFuture . get ( ) ; } else { re... |
public class DynamicCacheHelper { /** * Basic logic to compare two keys for equality */
protected final boolean compareKeys ( K k1 , K k2 ) { } } | return k1 == k2 || ( k1 != null && k1 . equals ( k2 ) ) ; |
public class SecurityToken { /** * Creates a encoded secure random string .
* @ return Base64 encoded string . */
private static String createSecureRandom ( ) { } } | try { final String no = "" + SECURE_RANDOM . nextInt ( ) ; final MessageDigest md = MessageDigest . getInstance ( "SHA-1" ) ; final byte [ ] digest = md . digest ( no . getBytes ( ) ) ; return encodeBase64 ( digest ) ; } catch ( final NoSuchAlgorithmException ex ) { throw new RuntimeException ( ex ) ; } |
public class OkCoinExchange { /** * Adjust host parameters depending on exchange specific parameters */
private static void concludeHostParams ( ExchangeSpecification exchangeSpecification ) { } } | if ( exchangeSpecification . getExchangeSpecificParameters ( ) != null ) { if ( exchangeSpecification . getExchangeSpecificParametersItem ( "Use_Intl" ) . equals ( true ) && exchangeSpecification . getExchangeSpecificParametersItem ( "Use_Futures" ) . equals ( false ) ) { exchangeSpecification . setSslUri ( "https://ww... |
public class CommerceWishListItemPersistenceImpl { /** * Returns all the commerce wish list items .
* @ return the commerce wish list items */
@ Override public List < CommerceWishListItem > findAll ( ) { } } | return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; |
public class InetAddressRange { /** * static utils */
private static InetAddress forString ( String s ) throws ParseException { } } | try { return InetAddress . getByName ( s ) ; } catch ( UnknownHostException e ) { throw new ParseException ( InetAddressRange . class , "Invalid network supplied" , e ) ; } |
public class Character { /** * Returns the { @ code int } value that the specified
* character ( Unicode code point ) represents . For example , the character
* { @ code ' \ u005Cu216C ' } ( the Roman numeral fifty ) will return
* an { @ code int } with a value of 50.
* The letters A - Z in their uppercase ( { ... | // This is both an optimization and papers over differences between Java and ICU .
if ( codePoint < 128 ) { if ( codePoint >= '0' && codePoint <= '9' ) { return codePoint - '0' ; } if ( codePoint >= 'a' && codePoint <= 'z' ) { return codePoint - ( 'a' - 10 ) ; } if ( codePoint >= 'A' && codePoint <= 'Z' ) { return code... |
public class DocumentModelResources { /** * Load the external resources such as gazetters and clustering lexicons .
* @ param params
* the training parameters
* @ return the map contanining and id and the resource
* @ throws IOException
* if io error */
public static Map < String , Object > loadDocumentResour... | final Map < String , Object > resources = new HashMap < String , Object > ( ) ; @ SuppressWarnings ( "rawtypes" ) final Map < String , ArtifactSerializer > artifactSerializers = DocumentClassifierModel . createArtifactSerializers ( ) ; if ( Flags . isBrownFeatures ( params ) ) { final String ClusterLexiconPath = Flags ... |
public class Cast { /** * < p > Casts a map in a lazy fashion . Changes to the returned map are reflected in the
* the given map . < / p >
* @ param < K > the type parameter
* @ param < V > the type parameter
* @ param map the map to cast
* @ return the casted map or null if the map is null */
public static <... | return map == null ? null : new CastingMap < K , V > ( map ) ; |
public class DOType { /** * Answer a list of all field names declared by this type .
* @ return */
public List < String > getDeclaredFieldNames ( ) { } } | if ( this . declaredFieldNames == null ) { this . declaredFieldNames = new ArrayList < String > ( this . declaredFields . size ( ) ) ; for ( DOField f : this . declaredFields ) { this . declaredFieldNames . add ( f . getName ( ) ) ; } } return this . declaredFieldNames ; |
public class DetectDocumentTextRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DetectDocumentTextRequest detectDocumentTextRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( detectDocumentTextRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( detectDocumentTextRequest . getDocument ( ) , DOCUMENT_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON... |
public class TextBuilder { /** * Print an integer to internal buffer or output ( os or writer )
* @ param i
* @ return this builder */
public final TextBuilder p ( int i ) { } } | if ( null != __buffer ) __append ( i ) ; else __caller . p ( i ) ; return this ; |
public class BlockLocation { /** * < code > optional . alluxio . grpc . WorkerNetAddress workerAddress = 2 ; < / code > */
public alluxio . grpc . WorkerNetAddress getWorkerAddress ( ) { } } | return workerAddress_ == null ? alluxio . grpc . WorkerNetAddress . getDefaultInstance ( ) : workerAddress_ ; |
public class JdbcDatabaseManager { /** * Searches embedded databases where the driver matches the argument .
* @ param driverClassName The driver class name to search on
* @ return True if the driver matches an embedded database type */
public static boolean isEmbedded ( String driverClassName ) { } } | return databases . stream ( ) . filter ( JdbcDatabase :: isEmbedded ) . anyMatch ( db -> db . driverClassName . equals ( driverClassName ) ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.