signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class SaturationChecker { /** * Returns the currently maximum formable bond order for this atom .
* @ param atom The atom to be checked
* @ param ac The AtomContainer that provides the context
* @ return the currently maximum formable bond order for this atom */
public double getCurrentMaxBondOrder ( IAtom... | IAtomType [ ] atomTypes = getAtomTypeFactory ( atom . getBuilder ( ) ) . getAtomTypes ( atom . getSymbol ( ) ) ; if ( atomTypes . length == 0 ) return 0 ; double bondOrderSum = ac . getBondOrderSum ( atom ) ; Integer hcount = atom . getImplicitHydrogenCount ( ) == CDKConstants . UNSET ? 0 : atom . getImplicitHydrogenCo... |
public class CmsAttributeValueView { /** * Gets the parent attribute value view , or null if none exists . < p >
* @ return the parent attribute value view */
public CmsAttributeValueView getParentView ( ) { } } | Widget ancestor = getParent ( ) ; while ( ( ancestor != null ) && ! ( ancestor instanceof CmsAttributeValueView ) ) { ancestor = ancestor . getParent ( ) ; } return ( CmsAttributeValueView ) ancestor ; |
public class ContextManager { /** * Get a directory context .
* @ return The context .
* @ throws WIMSystemException If any { @ link NamingException } s occurred . */
@ FFDCIgnore ( { } } | InterruptedException . class , NamingException . class } ) public TimedDirContext getDirContext ( ) throws WIMSystemException { final String METHODNAME = "getDirContext" ; TimedDirContext ctx = null ; long currentTimeSeconds = roundToSeconds ( System . currentTimeMillis ( ) ) ; if ( iContextPoolEnabled ) { do { // Get ... |
public class JSONArray { /** * Put a value in the JSONArray , where the value will be a JSONObject which
* is produced from a Map .
* @ param value A Map value .
* @ return this . */
public JSONArray element ( Map value , JsonConfig jsonConfig ) { } } | if ( value instanceof JSONObject ) { elements . add ( value ) ; return this ; } else { return element ( JSONObject . fromObject ( value , jsonConfig ) ) ; } |
public class VideoSelectorSettingsMarshaller { /** * Marshall the given parameter object . */
public void marshall ( VideoSelectorSettings videoSelectorSettings , ProtocolMarshaller protocolMarshaller ) { } } | if ( videoSelectorSettings == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( videoSelectorSettings . getVideoSelectorPid ( ) , VIDEOSELECTORPID_BINDING ) ; protocolMarshaller . marshall ( videoSelectorSettings . getVideoSelectorProgramId ( ... |
public class csvserver_appflowpolicy_binding { /** * Use this API to fetch csvserver _ appflowpolicy _ binding resources of given name . */
public static csvserver_appflowpolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { } } | csvserver_appflowpolicy_binding obj = new csvserver_appflowpolicy_binding ( ) ; obj . set_name ( name ) ; csvserver_appflowpolicy_binding response [ ] = ( csvserver_appflowpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; |
public class OpentracingClientFilter { /** * < p > Handle an outgoing request . < / p >
* < p > Associate the outgoing request with the incoming request . Create
* an outgoing span . Inject the span into the outgoing request headers
* for propagation to the next server . < / p >
* < p > A tracer is expected to ... | String methodName = "filter(outgoing)" ; Tracer tracer = OpentracingTracerManager . getTracer ( ) ; if ( tracer == null ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName + " no tracer" ) ; } return ; } else { if ( TraceComponent . isAnyTracingEnabled ( ) && tc... |
public class AssertMessages { /** * The value of first Parameter must be < code > false < / code > .
* @ param functionName the name of the function that should reply < code > false < / code > .
* @ return the error message . */
@ Pure @ Inline ( value = "AssertMessages.invalidTrueValue(0, $1)" , imported = { } } | AssertMessages . class } ) public static String invalidTrueValue ( String functionName ) { return invalidTrueValue ( 0 , functionName ) ; |
public class AmazonCloudDirectoryClient { /** * Does the following :
* < ol >
* < li >
* Adds new < code > Attributes < / code > , < code > Rules < / code > , or < code > ObjectTypes < / code > .
* < / li >
* < li >
* Updates existing < code > Attributes < / code > , < code > Rules < / code > , or < code > ... | request = beforeClientExecution ( request ) ; return executeUpdateFacet ( request ) ; |
public class StandardJspCompiler { /** * / * ( non - Javadoc )
* @ see com . ibm . wsspi . jsp . compiler . JspCompiler # compile ( java . lang . String , java . util . Collection , java . util . List ) */
@ Override public JspCompilerResult compile ( String arg0 , Collection arg1 , List arg2 ) { } } | // TODO Auto - generated method stub
return null ; |
public class Closeables { /** * Close potential { @ linkplain Closeable } .
* An { @ linkplain IOException } caused by { @ linkplain Closeable # close ( ) } is suppressed and added to the given outer
* exception .
* @ param exception the currently handled outer exception .
* @ param object the object to check a... | if ( object instanceof Closeable ) { try { ( ( Closeable ) object ) . close ( ) ; } catch ( IOException e ) { exception . addSuppressed ( e ) ; } } |
public class JobExistingWorkspaceRestore { /** * { @ inheritDoc } */
@ Override protected void restoreWorkspace ( ) throws WorkspaceRestoreException { } } | try { // get current workspace configuration
WorkspaceEntry wEntry = null ; ; for ( WorkspaceEntry entry : repositoryService . getRepository ( repositoryName ) . getConfiguration ( ) . getWorkspaceEntries ( ) ) { if ( entry . getName ( ) . equals ( this . wEntry . getName ( ) ) ) { wEntry = entry ; break ; } } if ( wEn... |
public class OpenIabHelper { /** * See { @ link # queryInventory ( boolean , List , List ) } for details */
public @ Nullable Inventory queryInventory ( final boolean querySkuDetails , @ Nullable final List < String > moreSkus ) throws IabException { } } | return queryInventory ( querySkuDetails , moreSkus , null ) ; |
public class SessionProperties { /** * Returns the session properties as a Map . */
public Map < String , Collection < String > > toMap ( ) { } } | Map < String , Collection < String > > params = new HashMap < String , Collection < String > > ( ) ; if ( null != location ) { ArrayList < String > valueList = new ArrayList < String > ( ) ; valueList . add ( location ) ; params . put ( "location" , valueList ) ; } ArrayList < String > mediaModeValueList = new ArrayLis... |
public class HttpTransportFactory { /** * Create an { @ link HttpTransport } based on an type class .
* @ param type The type of HttpTransport to use .
* @ return The resulting HttpTransport .
* @ throws IllegalArgumentException If the proxy address is invalid .
* @ throws IOException If there is an issue conne... | return createHttpTransport ( type , /* proxyAddress = */
null , /* proxyUsername = */
null , /* proxyPassword = */
null ) ; |
public class LinearLayout { /** * Check if the gravity and orientation are not in conflict one with other .
* @ param gravity
* @ param orientation
* @ return true if orientation and gravity can be applied together , false - otherwise */
protected boolean isValidLayout ( Gravity gravity , Orientation orientation ... | boolean isValid = true ; switch ( gravity ) { case TOP : case BOTTOM : isValid = ( ! isUnlimitedSize ( ) && orientation == Orientation . VERTICAL ) ; break ; case LEFT : case RIGHT : isValid = ( ! isUnlimitedSize ( ) && orientation == Orientation . HORIZONTAL ) ; break ; case FRONT : case BACK : isValid = ( ! isUnlimit... |
public class CreateTrustRequest { /** * The IP addresses of the remote DNS server associated with RemoteDomainName .
* @ param conditionalForwarderIpAddrs
* The IP addresses of the remote DNS server associated with RemoteDomainName . */
public void setConditionalForwarderIpAddrs ( java . util . Collection < String ... | if ( conditionalForwarderIpAddrs == null ) { this . conditionalForwarderIpAddrs = null ; return ; } this . conditionalForwarderIpAddrs = new com . amazonaws . internal . SdkInternalList < String > ( conditionalForwarderIpAddrs ) ; |
public class Program { /** * Validates the given program tree .
* @ param program the program to validate
* @ throws NullPointerException if the given { @ code program } is { @ code null }
* @ throws IllegalArgumentException if the given operation tree is invalid ,
* which means there is at least one node where... | requireNonNull ( program ) ; program . forEach ( Program :: checkArity ) ; |
public class FileUtils { /** * 字符流写文件 较快
* @ param file 文件
* @ param data 数据
* @ return 操作是否成功
* @ throws IOException 发送IO异常 */
public static boolean string2File ( File file , String data ) throws IOException { } } | if ( ! file . getParentFile ( ) . exists ( ) ) { file . getParentFile ( ) . mkdirs ( ) ; } FileWriter writer = null ; try { writer = new FileWriter ( file , false ) ; writer . write ( data ) ; } finally { if ( writer != null ) { writer . close ( ) ; } } return true ; |
public class EnvironmentConfig { /** * Sets the number of milliseconds which the database garbage collector is postponed for after the
* { @ linkplain Environment } is created . Default value is { @ code 10000 } .
* < p > Mutable at runtime : no
* @ param startInMillis number of milliseconds which the database ga... | if ( startInMillis < 0 ) { throw new InvalidSettingException ( "GC can't be postponed for that number of milliseconds: " + startInMillis ) ; } return setSetting ( GC_START_IN , startInMillis ) ; |
public class ContentSpecValidator { /** * Validates that a Content Specification is valid by checking the META data , child levels and topics .
* @ param contentSpec The content specification to be validated .
* @ return True if the content specification is valid , otherwise false . */
public boolean preValidateCon... | // Create the map of unique ids to spec topics
final Map < String , SpecTopic > specTopicMap = ContentSpecUtilities . getUniqueIdSpecTopicMap ( contentSpec ) ; final Map < String , InfoTopic > infoTopicMap = ContentSpecUtilities . getUniqueIdInfoTopicMap ( contentSpec ) ; // Get all server defined fixed urls
final Set ... |
public class OrcParser { /** * This method is written to take care of the leap seconds , leap year effects . Our original
* plan of converting number of days from epoch does not quite work out right due to all these
* leap seconds , years accumulated over the century . However , I do notice that when we are
* not... | long timestamp = ( daysSinceEpoch * DAY_TO_MS + ADD_OFFSET ) ; DateTime date = new DateTime ( timestamp ) ; int hour = date . hourOfDay ( ) . get ( ) ; if ( hour == 0 ) return timestamp ; else return ( timestamp - hour * HOUR_OFFSET ) ; |
public class CertificatesInner { /** * Get the certificate .
* Returns the certificate .
* @ param resourceGroupName The name of the resource group that contains the IoT hub .
* @ param resourceName The name of the IoT hub .
* @ param certificateName The name of the certificate
* @ throws IllegalArgumentExcep... | return getWithServiceResponseAsync ( resourceGroupName , resourceName , certificateName ) . map ( new Func1 < ServiceResponse < CertificateDescriptionInner > , CertificateDescriptionInner > ( ) { @ Override public CertificateDescriptionInner call ( ServiceResponse < CertificateDescriptionInner > response ) { return res... |
public class DateUtil { /** * Adds or subtracts the specified amount of time to the given time unit ,
* based on the calendar ' s rules . For example , to subtract 5 days from the
* current time of the calendar , you can achieve it by calling :
* < code > N . roll ( date , - 5 , TimeUnit . DAYS ) < / code > .
*... | N . checkArgNotNull ( date , "date" ) ; return createDate ( date . getClass ( ) , date . getTime ( ) + unit . toMillis ( amount ) ) ; |
public class WSManRemoteShellService { /** * Configures the HttpClientInputs object with the most common http parameters .
* @ param httpClientInputs
* @ param url
* @ param wsManRequestInputs
* @ return the configured HttpClientInputs object .
* @ throws MalformedURLException */
private static HttpClientInpu... | httpClientInputs . setUrl ( url . toString ( ) ) ; httpClientInputs . setUsername ( wsManRequestInputs . getUsername ( ) ) ; httpClientInputs . setPassword ( wsManRequestInputs . getPassword ( ) ) ; httpClientInputs . setAuthType ( wsManRequestInputs . getAuthType ( ) ) ; httpClientInputs . setKerberosConfFile ( wsManR... |
public class Maybe { /** * Returns an Observable that maps a success value into an Iterable and emits its items .
* < img width = " 640 " height = " 373 " src = " https : / / raw . github . com / wiki / ReactiveX / RxJava / images / rx - operators / flattenAsObservable . png " alt = " " >
* < dl >
* < dt > < b > ... | ObjectHelper . requireNonNull ( mapper , "mapper is null" ) ; return RxJavaPlugins . onAssembly ( new MaybeFlatMapIterableObservable < T , U > ( this , mapper ) ) ; |
public class InternalPureXbaseParser { /** * InternalPureXbase . g : 6478:1 : ruleJvmUpperBoundAnded returns [ EObject current = null ] : ( otherlv _ 0 = ' & ' ( ( lv _ typeReference _ 1_0 = ruleJvmTypeReference ) ) ) ; */
public final EObject ruleJvmUpperBoundAnded ( ) throws RecognitionException { } } | EObject current = null ; Token otherlv_0 = null ; EObject lv_typeReference_1_0 = null ; enterRule ( ) ; try { // InternalPureXbase . g : 6484:2 : ( ( otherlv _ 0 = ' & ' ( ( lv _ typeReference _ 1_0 = ruleJvmTypeReference ) ) ) )
// InternalPureXbase . g : 6485:2 : ( otherlv _ 0 = ' & ' ( ( lv _ typeReference _ 1_0 = r... |
public class CassandraBundle { /** * Initializes the Cassandra environment : registers context binder for
* { @ link com . datastax . driver . core . Cluster } and { @ link com . datastax . driver . core . Session } instances .
* @ param configuration The configuration object
* @ param environment The application... | environment . jersey ( ) . register ( CassandraProvider . binder ( getCassandraFactory ( configuration ) , environment ) ) ; |
public class PublishMqDemoObjects { /** * region > listAll ( action ) */
@ Action ( semantics = SemanticsOf . SAFE ) @ ActionLayout ( bookmarking = BookmarkPolicy . AS_ROOT ) @ MemberOrder ( sequence = "1" ) public List < PublishMqDemoObject > listAll ( ) { } } | return container . allInstances ( PublishMqDemoObject . class ) ; |
public class SmtpResponseDecoder { /** * Parses the io . netty . handler . codec . smtp code without any allocation , which is three digits . */
private static int parseCode ( ByteBuf buffer ) { } } | final int first = parseNumber ( buffer . readByte ( ) ) * 100 ; final int second = parseNumber ( buffer . readByte ( ) ) * 10 ; final int third = parseNumber ( buffer . readByte ( ) ) ; return first + second + third ; |
public class ApplicationGatewaysInner { /** * Creates or updates the specified application gateway .
* @ param resourceGroupName The name of the resource group .
* @ param applicationGatewayName The name of the application gateway .
* @ param parameters Parameters supplied to the create or update application gate... | return ServiceFuture . fromResponse ( createOrUpdateWithServiceResponseAsync ( resourceGroupName , applicationGatewayName , parameters ) , serviceCallback ) ; |
public class Matrix3d { /** * / * ( non - Javadoc )
* @ see org . joml . Matrix3dc # invert ( org . joml . Matrix3d ) */
public Matrix3d invert ( Matrix3d dest ) { } } | double s = 1.0 / determinant ( ) ; double nm00 = ( m11 * m22 - m21 * m12 ) * s ; double nm01 = ( m21 * m02 - m01 * m22 ) * s ; double nm02 = ( m01 * m12 - m11 * m02 ) * s ; double nm10 = ( m20 * m12 - m10 * m22 ) * s ; double nm11 = ( m00 * m22 - m20 * m02 ) * s ; double nm12 = ( m10 * m02 - m00 * m12 ) * s ; double nm... |
public class TypedProperties { /** * Equivalent to { @ link # setString ( String , String )
* setString } { @ code ( key , ( value = = null ) ? null : value . name ( ) ) } . */
public < TEnum extends Enum < TEnum > > void setEnum ( String key , TEnum value ) { } } | setString ( key , ( value == null ) ? null : value . name ( ) ) ; |
public class DescribeSecurityGroupReferencesRequest { /** * The IDs of the security groups in your account .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setGroupId ( java . util . Collection ) } or { @ link # withGroupId ( java . util . Collection ) } if ... | if ( this . groupId == null ) { setGroupId ( new com . amazonaws . internal . SdkInternalList < String > ( groupId . length ) ) ; } for ( String ele : groupId ) { this . groupId . add ( ele ) ; } return this ; |
public class CommonAhoCorasickSegmentUtil { /** * 最长分词 , 合并未知语素
* @ param text 文本
* @ param trie 自动机
* @ param < V > 类型
* @ return 结果链表 */
public static < V > LinkedList < ResultTerm < V > > segment ( String text , AhoCorasickDoubleArrayTrie < V > trie ) { } } | return segment ( text . toCharArray ( ) , trie ) ; |
public class AptEventField { /** * Returns the ControlInterface associated with this event field */
public AptControlInterface getControlInterface ( ) { } } | if ( _controlIntf == null ) { _controlIntf = initControlInterface ( ) ; if ( _controlIntf != null ) initTypeParameterBindings ( ) ; } return _controlIntf ; |
public class AIStreamIterator { /** * / * ( non - Javadoc )
* @ see com . ibm . ws . sib . processor . runtime . SIMPIterator # finished ( ) */
public void finished ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "finished" ) ; msgIterator = null ; aiStream = null ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "finished" ) ; |
public class dnsaction64 { /** * Use this API to fetch filtered set of dnsaction64 resources .
* filter string should be in JSON format . eg : " port : 80 , servicetype : HTTP " . */
public static dnsaction64 [ ] get_filtered ( nitro_service service , String filter ) throws Exception { } } | dnsaction64 obj = new dnsaction64 ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; dnsaction64 [ ] response = ( dnsaction64 [ ] ) obj . getfiltered ( service , option ) ; return response ; |
public class NetworkWatchersInner { /** * Configures flow log on a specified resource .
* @ param resourceGroupName The name of the network watcher resource group .
* @ param networkWatcherName The name of the network watcher resource .
* @ param parameters Parameters that define the configuration of flow log .
... | return setFlowLogConfigurationWithServiceResponseAsync ( resourceGroupName , networkWatcherName , parameters ) . map ( new Func1 < ServiceResponse < FlowLogInformationInner > , FlowLogInformationInner > ( ) { @ Override public FlowLogInformationInner call ( ServiceResponse < FlowLogInformationInner > response ) { retur... |
public class JSDocInfoBuilder { /** * Records that the { @ link JSDocInfo } being built should have its
* { @ link JSDocInfo # isConstant ( ) } flag set to { @ code true } .
* @ return { @ code true } if the constancy was recorded and { @ code false }
* if it was already defined */
public boolean recordConstancy ... | if ( ! currentInfo . hasConstAnnotation ( ) ) { currentInfo . setConstant ( true ) ; populated = true ; return true ; } else { return false ; } |
public class BooleansBitStore { /** * views */
@ Override public BitStore range ( int from , int to ) { } } | if ( from < 0 ) throw new IllegalArgumentException ( ) ; if ( from > to ) throw new IllegalArgumentException ( ) ; from += start ; to += start ; if ( to > finish ) throw new IllegalArgumentException ( ) ; return new BooleansBitStore ( bits , from , to , mutable ) ; |
public class CodeBlock { /** * A { @ link Collector } implementation that joins { @ link CodeBlock } instances together into one
* separated by { @ code separator } . For example , joining { @ code String s } , { @ code Object o } and
* { @ code int i } using { @ code " , " } would produce { @ code String s , Objec... | Builder builder = builder ( ) . add ( "$N" , prefix ) ; return Collector . of ( ( ) -> new CodeBlockJoiner ( separator , builder ) , CodeBlockJoiner :: add , CodeBlockJoiner :: merge , joiner -> { builder . add ( CodeBlock . of ( "$N" , suffix ) ) ; return joiner . join ( ) ; } ) ; |
public class Retrier { /** * Start to do retries to perform the set action .
* @ return the result of the action , it could be null if there was an exception or if the action itself returns null
* @ throws Exception If a unallowed exception is raised during the action */
public @ CheckForNull V start ( ) throws Exc... | V result = null ; int currentAttempt = 0 ; boolean success = false ; while ( currentAttempt < attempts && ! success ) { currentAttempt ++ ; try { if ( LOGGER . isLoggable ( Level . INFO ) ) { LOGGER . log ( Level . INFO , Messages . Retrier_Attempt ( currentAttempt , action ) ) ; } result = callable . call ( ) ; } catc... |
public class ScreenServiceImpl { /** * { @ inheritDoc } */
@ Override public void saveScreenshot ( String screenName , WebElement element ) throws IOException { } } | logger . debug ( "saveScreenshot with the scenario named [{}] and element [{}]" , screenName , element . getTagName ( ) ) ; final byte [ ] screenshot = ( ( TakesScreenshot ) Context . getDriver ( ) ) . getScreenshotAs ( OutputType . BYTES ) ; FileUtils . forceMkdir ( new File ( System . getProperty ( USER_DIR ) + File ... |
public class KeyPhraseMarshaller { /** * Marshall the given parameter object . */
public void marshall ( KeyPhrase keyPhrase , ProtocolMarshaller protocolMarshaller ) { } } | if ( keyPhrase == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( keyPhrase . getScore ( ) , SCORE_BINDING ) ; protocolMarshaller . marshall ( keyPhrase . getText ( ) , TEXT_BINDING ) ; protocolMarshaller . marshall ( keyPhrase . getBeginOff... |
public class JdbcTable { /** * Execute this SQL seek or open statement .
* Note : This code uses prepared statements to optimize the call of the
* same SQL query . Also , if the table doesn ' t exist , it can be created automatically
* and re - do the call .
* @ param strSQL The SQL statement to prepare .
* @... | ResultSet resultSet = null ; m_bSelectAllFields = false ; m_rgiFieldColumns = null ; try { Utility . getLogger ( ) . info ( strSQL ) ; if ( SQLParams . USE_SELECT_LITERALS ) { if ( this . getStatement ( iType ) instanceof PreparedStatement ) this . setStatement ( null , iType ) ; // Close old prepared statement
if ( th... |
public class PresentationManager { /** * Getter for an object property value
* @ param obj The object
* @ param propertyName The property
* @ return The value of the property of the object */
public Object get ( Object obj , String propertyName ) { } } | try { if ( obj != null && propertyName != null ) { return PropertyUtils . getNestedProperty ( obj , propertyName ) ; } } catch ( NullPointerException e ) { } catch ( NestedNullException e ) { } catch ( Exception e ) { // Now I don ' t like it .
error ( e ) ; return "-undefined-" ; } return null ; |
public class JpaSearchRepository { /** * { @ inheritDoc } */
public T findById ( ID id ) { } } | T retVal = ( T ) getEntityManager ( ) . find ( getEntityClass ( ) , id ) ; return retVal ; |
public class HString { /** * Finds all occurrences of the given text in this HString starting
* @ param text the text to search for
* @ return A list of HString that are matches to the given string */
public Stream < HString > findAll ( @ NonNull String text ) { } } | return Streams . asStream ( new Iterator < HString > ( ) { Integer pos = null ; int start = 0 ; private boolean advance ( ) { if ( pos == null ) { pos = indexOf ( text , start ) ; } return pos != - 1 ; } @ Override public boolean hasNext ( ) { return advance ( ) ; } @ Override public HString next ( ) { if ( ! advance (... |
public class CollectionsInterface { /** * Retrieves a list of the current Commons institutions .
* This method does not require authentication .
* @ param collectionId
* the id of the collection ( optional - returns all if not specified ) .
* @ param userId
* the user id of the collection owner ( optional - d... | Map < String , Object > parameters = new HashMap < String , Object > ( ) ; parameters . put ( "method" , METHOD_GET_TREE ) ; if ( collectionId != null ) { parameters . put ( "collection_id" , collectionId ) ; } if ( userId != null ) { parameters . put ( "user_id" , userId ) ; } Response response = transportAPI . get ( ... |
public class JettyHandler { /** * process write message and status on the response .
* @ param response
* @ param message
* @ param status
* @ throws IOException */
private void writeMessage ( final HttpServletResponse response , final String message , final int status ) throws IOException { } } | response . getWriter ( ) . println ( message ) ; response . setStatus ( status ) ; |
public class AbstractStoreResource { /** * { @ inheritDoc } */
@ Override public void open ( final StoreEvent _event ) throws EFapsException { } } | this . storeEvent = _event ; super . open ( ) ; if ( getStoreEvent ( ) . equals ( StoreEvent . READ ) || getStoreEvent ( ) . equals ( StoreEvent . WRITE ) ) { insertDefaults ( ) ; } |
public class BigtableAsyncAdmin { /** * { @ inheritDoc } */
@ Override public CompletableFuture < Boolean > isTableDisabled ( TableName tableName ) { } } | // TODO : this might require a tableExists ( ) check , and throw an exception if it doesn ' t .
return CompletableFuture . completedFuture ( disabledTables . contains ( tableName ) ) ; |
public class JBBPDslBuilder { /** * Set byte order for next fields
* @ param order order , if null then BIG _ ENDIAN
* @ return the builder instance , must not be null */
public JBBPDslBuilder ByteOrder ( final JBBPByteOrder order ) { } } | this . byteOrder = order == null ? JBBPByteOrder . BIG_ENDIAN : order ; return this ; |
public class WriteFileExtensions { /** * The Method write2File ( ) writes the File into the PrintWriter .
* @ param inputFile
* The Name from the File to read and copy .
* @ param writer
* The PrintWriter to write into .
* @ throws FileNotFoundException
* is thrown if an attempt to open the file denoted by ... | try ( BufferedReader bufferedReader = new BufferedReader ( new FileReader ( inputFile ) ) ; ) { write2File ( bufferedReader , writer ) ; } |
public class OpenshiftAdapterSupport { /** * Check if OpenShift API Groups are available
* @ param client The client .
* @ return True if the new < code > / apis / * . openshift . io / < / code > APIs are found in the root paths . */
static boolean isOpenShiftAPIGroups ( Client client ) { } } | Config configuration = client . getConfiguration ( ) ; if ( configuration instanceof OpenShiftConfig ) { OpenShiftConfig openShiftConfig = ( OpenShiftConfig ) configuration ; if ( openShiftConfig . isDisableApiGroupCheck ( ) ) { return false ; } } URL masterUrl = client . getMasterUrl ( ) ; if ( isOpenShift ( client ) ... |
public class BucketPath { /** * A wrapper around
* { @ link BucketPath # replaceShorthand ( char , Map , TimeZone , boolean , int ,
* int , boolean ) }
* with the timezone set to the default .
* < p > This static method will be REMOVED in a future version of Flume < / p > */
@ Deprecated public static String re... | return replaceShorthand ( c , headers , null , needRounding , unit , roundDown , false ) ; |
public class BlackDuckService { public < T extends BlackDuckResponse > T getResponse ( UriSingleResponse < T > uriSingleResponse ) throws IntegrationException { } } | Request request = RequestFactory . createCommonGetRequest ( uriSingleResponse . getUri ( ) ) ; return blackDuckResponseTransformer . getResponse ( request , uriSingleResponse . getResponseClass ( ) ) ; |
public class Main { /** * Runs the grammar checker on paragraph text .
* @ param docID document ID
* @ param paraText paragraph text
* @ param locale Locale the text Locale
* @ param startOfSentencePos start of sentence position
* @ param nSuggestedBehindEndOfSentencePosition end of sentence position
* @ re... | ProofreadingResult paRes = new ProofreadingResult ( ) ; paRes . nStartOfSentencePosition = startOfSentencePos ; paRes . nStartOfNextSentencePosition = nSuggestedBehindEndOfSentencePosition ; paRes . nBehindEndOfSentencePosition = paRes . nStartOfNextSentencePosition ; paRes . xProofreader = this ; paRes . aLocale = loc... |
public class VerbFeats { /** * setter for person - sets Person
* @ generated
* @ param v value to set into the feature */
public void setPerson ( String v ) { } } | if ( VerbFeats_Type . featOkTst && ( ( VerbFeats_Type ) jcasType ) . casFeat_person == null ) jcasType . jcas . throwFeatMissing ( "person" , "de.julielab.jules.types.VerbFeats" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( VerbFeats_Type ) jcasType ) . casFeatCode_person , v ) ; |
public class DefaultEntityHandler { /** * SQL _ ID文字列の生成
* @ param metadata エンティティメタ情報
* @ param entityType エイティティタイプ
* @ return SQL _ ID文字列 */
private String createSqlId ( final TableMetadata metadata , final Class < ? extends Object > entityType ) { } } | return "mapping @ " + ( entityType != null ? entityType . getSimpleName ( ) : metadata . getTableName ( ) ) ; |
public class SortedSetIterables { /** * Returns an Immutable version of powerset where the inner sets are also immutable . */
public static < T > ImmutableSortedSet < ImmutableSortedSet < T > > immutablePowerSet ( SortedSet < T > set ) { } } | return powerSet ( set ) . collect ( new Function < MutableSortedSet < T > , ImmutableSortedSet < T > > ( ) { public ImmutableSortedSet < T > valueOf ( MutableSortedSet < T > set ) { return set . toImmutable ( ) ; } } , TreeSortedSet . < ImmutableSortedSet < T > > newSet ( Comparators . < T > powerSet ( ) ) ) . toImmuta... |
public class FlowPath { /** * This method allows to set position for next rewind within graph .
* PLEASE NOTE : This methods check , if rewind position wasn ' t set yet . If it was already set for this frame - it ' ll be no - op method
* @ param frameName
* @ param position */
public void setRewindPositionOnce ( ... | if ( getRewindPosition ( frameName ) >= 0 ) return ; frames . get ( frameName ) . setRewindPosition ( position ) ; |
public class ProgressManager { /** * Close the progress and all tasks associated with it . */
@ Override public void close ( ) { } } | synchronized ( startedTasks ) { if ( executor . isShutdown ( ) ) { return ; } // . . . stop updater thread . Do not interrupt .
executor . shutdown ( ) ; try { updater . get ( ) ; } catch ( InterruptedException | CancellationException | ExecutionException ignore ) { // Ignore these closing thread errors .
} // And stop... |
public class InfinispanRemoteConfiguration { /** * We provide some default values in case some properties are not set */
private void setExpectedPropertiesIfNull ( Properties hotRodConfiguration ) { } } | for ( int i = 0 ; i < expectedValuesForHotRod . length ; i ++ ) { String property = expectedValuesForHotRod [ i ] [ 0 ] ; String expectedValue = expectedValuesForHotRod [ i ] [ 1 ] ; if ( ! hotRodConfiguration . containsKey ( property ) ) { hotRodConfiguration . setProperty ( property , expectedValue ) ; } } |
public class CmsADECache { /** * Returns the cached container page under the given key and for the given project . < p >
* @ param key the cache key
* @ param online if cached in online or offline project
* @ return the cached container page or < code > null < / code > if not found */
public CmsXmlContainerPage g... | try { m_lock . readLock ( ) . lock ( ) ; CmsXmlContainerPage retValue ; if ( online ) { retValue = m_containerPagesOnline . get ( key ) ; if ( LOG . isDebugEnabled ( ) ) { if ( retValue == null ) { LOG . debug ( Messages . get ( ) . getBundle ( ) . key ( Messages . LOG_DEBUG_CACHE_MISSED_ONLINE_1 , new Object [ ] { key... |
public class Tile { /** * Defines the behavior of the visualization where the needle / bar should
* always return to 0 after it reached the final value . This setting only makes
* sense if animated = = true and the data rate is not too high .
* Set to false when using real measured live data .
* @ param IS _ TR... | if ( null == returnToZero ) { _returnToZero = Double . compare ( getMinValue ( ) , 0.0 ) <= 0 && IS_TRUE ; fireTileEvent ( REDRAW_EVENT ) ; } else { returnToZero . set ( IS_TRUE ) ; } |
public class InternalSARLParser { /** * $ ANTLR start synpred41 _ InternalSARL */
public final void synpred41_InternalSARL_fragment ( ) throws RecognitionException { } } | // InternalSARL . g : 13266:6 : ( ( ( ) ( ' . ' | ( ( ' : : ' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )
// InternalSARL . g : 13266:7 : ( ( ) ( ' . ' | ( ( ' : : ' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign )
{ // InternalSARL . g : 13266:7 : ( ( ) ( ' . ' | ( ( ' : : ' ) ) ) ( ( ruleFeatureCallID ... |
public class Matrix4d { /** * / * ( non - Javadoc )
* @ see org . joml . Matrix4dc # get ( double [ ] , int ) */
public double [ ] get ( double [ ] dest , int offset ) { } } | dest [ offset + 0 ] = m00 ; dest [ offset + 1 ] = m01 ; dest [ offset + 2 ] = m02 ; dest [ offset + 3 ] = m03 ; dest [ offset + 4 ] = m10 ; dest [ offset + 5 ] = m11 ; dest [ offset + 6 ] = m12 ; dest [ offset + 7 ] = m13 ; dest [ offset + 8 ] = m20 ; dest [ offset + 9 ] = m21 ; dest [ offset + 10 ] = m22 ; dest [ offs... |
public class ExternalResource { /** * Creates a statement that will execute { @ code before ) and { @ code after )
* @ param base
* the base statement to be executed
* @ return
* the statement for invoking before and after */
private Statement statement ( final Statement base ) { } } | return new Statement ( ) { @ Override public void evaluate ( ) throws Throwable { before ( ) ; doStateTransition ( State . BEFORE_EXECUTED ) ; try { base . evaluate ( ) ; } finally { after ( ) ; doStateTransition ( State . AFTER_EXECUTED ) ; } } } ; |
public class Persistables { /** * Returns a newly allocated { @ link ByteBuffer # slice ( ) } , starting from the current { @ link ByteBuffer # position ( ) position } , of
* a given { @ link ByteBuffer } . The slice and the original buffer will share their contents . < br > Upon return from this
* method , the ori... | final int l = buffer . limit ( ) ; buffer . limit ( buffer . position ( ) + length ) ; final ByteBuffer slice = buffer . slice ( ) ; buffer . limit ( l ) ; buffer . position ( buffer . position ( ) + length ) ; return slice ; |
public class ArrayOfDoublesSketch { /** * Wrap the given Memory and seed as a ArrayOfDoublesSketch
* @ param mem the given Memory
* @ param seed the given seed
* @ return an ArrayOfDoublesSketch */
public static ArrayOfDoublesSketch wrap ( final Memory mem , final long seed ) { } } | final SerializerDeserializer . SketchType sketchType = SerializerDeserializer . getSketchType ( mem ) ; if ( sketchType == SerializerDeserializer . SketchType . ArrayOfDoublesQuickSelectSketch ) { return new DirectArrayOfDoublesQuickSelectSketchR ( mem , seed ) ; } return new DirectArrayOfDoublesCompactSketch ( mem , s... |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcConic ( ) { } } | if ( ifcConicEClass == null ) { ifcConicEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 119 ) ; } return ifcConicEClass ; |
public class StoreRoutingPlan { /** * Converts from partitionId to nodeId . The list of partition IDs ,
* partitionIds , is expected to be a " replicating partition list " , i . e . , the
* mapping from partition ID to node ID should be one to one .
* @ param partitionIds List of partition IDs for which to find t... | List < Integer > nodeIds = new ArrayList < Integer > ( partitionIds . size ( ) ) ; for ( Integer partitionId : partitionIds ) { int nodeId = getNodeIdForPartitionId ( partitionId ) ; if ( nodeIds . contains ( nodeId ) ) { throw new VoldemortException ( "Node ID " + nodeId + " already in list of Node IDs." ) ; } else { ... |
public class ConverterManager { /** * Gets the best converter for the object specified .
* @ param object the object to convert
* @ return the converter to use
* @ throws IllegalArgumentException if no suitable converter
* @ throws IllegalStateException if multiple converters match the type
* equally well */
... | IntervalConverter converter = ( IntervalConverter ) iIntervalConverters . select ( object == null ? null : object . getClass ( ) ) ; if ( converter != null ) { return converter ; } throw new IllegalArgumentException ( "No interval converter found for type: " + ( object == null ? "null" : object . getClass ( ) . getName... |
public class Kryo { /** * Instances of the specified class will use the specified serializer when { @ link # register ( Class ) } or
* { @ link # register ( Class , int ) } are called . Serializer instances are created as needed via
* { @ link ReflectionSerializerFactory # newSerializer ( Kryo , Class , Class ) } .... | if ( type == null ) throw new IllegalArgumentException ( "type cannot be null." ) ; if ( serializerClass == null ) throw new IllegalArgumentException ( "serializerClass cannot be null." ) ; insertDefaultSerializer ( type , new ReflectionSerializerFactory ( serializerClass ) ) ; |
public class AmazonWorkLinkClient { /** * Retrieves a list of domains associated to a specified fleet .
* @ param listDomainsRequest
* @ return Result of the ListDomains operation returned by the service .
* @ throws UnauthorizedException
* You are not authorized to perform this action .
* @ throws InternalSe... | request = beforeClientExecution ( request ) ; return executeListDomains ( request ) ; |
public class CPDAvailabilityEstimatePersistenceImpl { /** * Returns a range of all the cpd availability estimates where commerceAvailabilityEstimateId = & # 63 ; .
* Useful when paginating results . Returns a maximum of < code > end - start < / code > instances . < code > start < / code > and < code > end < / code > ... | return findByCommerceAvailabilityEstimateId ( commerceAvailabilityEstimateId , start , end , null ) ; |
public class ReducedArchiver { /** * Return a pre - configured manifest
* @ todo Add user attributes list and user groups list */
public Manifest getManifest ( MavenProject project , ManifestConfiguration config ) throws ManifestException , DependencyResolutionRequiredException { } } | // Added basic entries
Manifest m = new Manifest ( ) ; Manifest . Attribute buildAttr = new Manifest . Attribute ( "Built-By" , System . getProperty ( "user.name" ) ) ; m . addConfiguredAttribute ( buildAttr ) ; Manifest . Attribute createdAttr = new Manifest . Attribute ( "Created-By" , "Apache Maven" ) ; m . addConfi... |
public class RootBeer { /** * Run all the checks apart from checking for the busybox binary . This is because it can sometimes be a false positive
* as some manufacturers leave the binary in production builds .
* @ return true , we think there ' s a good * indication * of root | false good * indication * of no root... | return detectRootManagementApps ( ) || detectPotentiallyDangerousApps ( ) || checkForBinary ( BINARY_SU ) || checkForDangerousProps ( ) || checkForRWPaths ( ) || detectTestKeys ( ) || checkSuExists ( ) || checkForRootNative ( ) || checkForMagiskBinary ( ) ; |
public class MapTileCollisionLoader { /** * Load map collision from an external file .
* @ param mapCollision The map tile collision owner .
* @ param collisionFormulas The collision formulas descriptor .
* @ param collisionGroups The tile collision groups descriptor .
* @ throws LionEngineException If error wh... | if ( collisionFormulas . exists ( ) ) { loadCollisionFormulas ( collisionFormulas ) ; } if ( collisionGroups . exists ( ) ) { loadCollisionGroups ( mapCollision , collisionGroups ) ; } loadTilesCollisions ( mapCollision ) ; applyConstraints ( ) ; |
public class BorderSpecification { /** * / * default */
char horizontals ( int row , int column ) { } } | boolean result = ( match & TOP ) == TOP && row == row1 ; result |= ( match & INNER_HORIZONTAL ) == INNER_HORIZONTAL && row > row1 && row < row2 ; result |= ( match & BOTTOM ) == BOTTOM && row == row2 ; result &= column >= column1 ; result &= column < column2 ; return result ? style . horizontalGlyph ( ) : BorderStyle .... |
public class MBeanRegistratorImpl { /** * Returns either a AnnotatedStandardMBean or a DynamicMBean implementation .
* @ param object Object to create MBean for .
* @ return either a AnnotatedStandardMBean or a DynamicMBean implementation .
* @ throws IllegalArgumentException
* @ throws NotCompliantMBeanExcepti... | JmxBean jmxBean = AnnotationUtils . getAnnotation ( object . getClass ( ) , JmxBean . class ) ; if ( DynamicMBean . class . isAssignableFrom ( object . getClass ( ) ) ) { return object ; } ClassIntrospector classIntrospector = new ClassIntrospectorImpl ( object . getClass ( ) ) ; Class < ? > mBeanInterface = classIntro... |
public class XFactory { /** * Get the XClass object providing information about the class named by the
* given ClassDescriptor .
* @ param classDescriptor
* a ClassDescriptor
* @ return an XClass object providing information about the class , or null
* if the class cannot be found */
public @ CheckForNull XCl... | try { IAnalysisCache analysisCache = Global . getAnalysisCache ( ) ; return analysisCache . getClassAnalysis ( XClass . class , classDescriptor ) ; } catch ( CheckedAnalysisException e ) { return null ; } |
public class DataStoreEvent { /** * Removal event .
* @ param removals Removal
* @ return Event */
public static DataStoreEvent removalEvent ( DBIDs removals ) { } } | return new DataStoreEvent ( DBIDUtil . EMPTYDBIDS , removals , DBIDUtil . EMPTYDBIDS ) ; |
public class CommerceAccountPersistenceImpl { /** * Returns the commerce account where companyId = & # 63 ; and externalReferenceCode = & # 63 ; or throws a { @ link NoSuchAccountException } if it could not be found .
* @ param companyId the company ID
* @ param externalReferenceCode the external reference code
*... | CommerceAccount commerceAccount = fetchByC_ERC ( companyId , externalReferenceCode ) ; if ( commerceAccount == null ) { StringBundler msg = new StringBundler ( 6 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "companyId=" ) ; msg . append ( companyId ) ; msg . append ( ", externalReferenceCode=" ) ; msg... |
public class ReadCommEventLogResponse { /** * readData - - input the Modbus message from din . If there was a header ,
* such as for Modbus / TCP , it will have been read already .
* @ throws java . io . IOException If the data cannot be read */
public void readData ( DataInput din ) throws IOException { } } | byteCount = din . readByte ( ) ; status = din . readUnsignedShort ( ) ; eventCount = din . readUnsignedShort ( ) ; messageCount = din . readUnsignedShort ( ) ; events = new byte [ byteCount - 6 ] ; if ( events . length > 0 ) { din . readFully ( events , 0 , events . length ) ; } |
public class HiveTask { /** * Run the specified setup query on the Hive session before running the task . */
public static void addSetupQuery ( State state , String query ) { } } | state . setProp ( SETUP_QUERIES , state . getProp ( SETUP_QUERIES , "" ) + ";" + query ) ; |
public class DateTimeKit { /** * 格式化时间戳为制定的style
* @ param style
* @ param unixtime
* @ return */
public static String formatUnixTime ( String style , BigInteger unixtime ) { } } | SimpleDateFormat sdf = new SimpleDateFormat ( style ) ; return sdf . format ( unixtime ) ; |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcZone ( ) { } } | if ( ifcZoneEClass == null ) { ifcZoneEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 653 ) ; } return ifcZoneEClass ; |
public class JQMListBindable { /** * Needed in case of renderer changed , so list has to be visually reconstructed by new renderer . */
public void rerender ( ) { } } | clear ( ) ; if ( dataItems != null ) { for ( M m : dataItems ) { addDataItem ( m ) ; } } doRefresh ( ) ; |
public class ServiceAccount { /** * Returns an instance of ServiceAccount . This factory method tries below in order .
* < ol >
* < li > Checks environment variables < code > GP _ URL < / code > ( service URL - e . g .
* https : / / gp - rest . ng . bluemix . net / translate / rest ) , < code > GP _ INSTANCE _ ID... | ServiceAccount account = getInstanceByEnvVars ( ) ; if ( account == null ) { Map < String , String > env = System . getenv ( ) ; String serviceName = env . get ( GP_SERVICE_NAME ) ; String serviceInstanceName = env . get ( GP_SERVICE_INSTANCE_NAME ) ; account = getInstanceByVcapServices ( serviceName , serviceInstanceN... |
public class RuntimeEnvironmentBuilder { /** * Builds a RuntimeEnvironment .
* @ return a RuntimeEnvironment */
public RuntimeEnvironment build ( ) { } } | final org . kie . api . runtime . manager . RuntimeEnvironmentBuilder jbpmRuntimeEnvironmentBuilder ; Manifest manifest = _manifestBuilder . build ( ) ; if ( manifest instanceof RemoteManifest ) { RemoteManifest remoteManifest = ( RemoteManifest ) manifest ; jbpmRuntimeEnvironmentBuilder = _runtimeEnvironmentBuilderFac... |
public class NumberUtil { /** * 提供精确的减法运算
* @ param v1 被减数
* @ param v2 减数
* @ return 差 */
public static double sub ( float v1 , float v2 ) { } } | return sub ( Float . toString ( v1 ) , Float . toString ( v2 ) ) . doubleValue ( ) ; |
public class ArrayUtil { /** * 以 conjunction 为分隔符将数组转换为字符串
* @ param < T > 被处理的集合
* @ param array 数组
* @ param conjunction 分隔符
* @ return 连接后的字符串 */
public static < T > String join ( T [ ] array , CharSequence conjunction ) { } } | return join ( array , conjunction , null , null ) ; |
public class VMPlacementUtils { /** * Check if a VM can stay on its current node .
* @ param rp the reconfiguration problem .
* @ param vm the VM
* @ return { @ code true } iff the VM can stay */
public static boolean canStay ( ReconfigurationProblem rp , VM vm ) { } } | Mapping m = rp . getSourceModel ( ) . getMapping ( ) ; if ( m . isRunning ( vm ) ) { int curPos = rp . getNode ( m . getVMLocation ( vm ) ) ; return rp . getVMAction ( vm ) . getDSlice ( ) . getHoster ( ) . contains ( curPos ) ; } return false ; |
public class Splitter { /** * Splits the CharSequence passed in parameter .
* @ param source the sequence of characters to split
* @ return a map of key / value pairs */
public Map < String , String > split ( final CharSequence source ) { } } | java . util . Objects . requireNonNull ( source , "source" ) ; Map < String , String > parameters = new HashMap < > ( ) ; Iterator < String > i = new StringIterator ( source , pairSeparator ) ; while ( i . hasNext ( ) ) { String keyValue = i . next ( ) ; int keyValueSeparatorPosition = keyValueSeparatorStart ( keyValue... |
public class RepositoryResolver { /** * If any errors occurred during resolution , throw a { @ link RepositoryResolutionException } */
private void reportErrors ( ) throws RepositoryResolutionException { } } | if ( resourcesWrongProduct . isEmpty ( ) && missingTopLevelRequirements . isEmpty ( ) && missingRequirements . isEmpty ( ) ) { // Everything went fine !
return ; } Set < ProductRequirementInformation > missingProductInformation = new HashSet < > ( ) ; for ( ApplicableToProduct esa : resourcesWrongProduct ) { missingReq... |
public class NotesDao { /** * @ param id id of the note
* @ param text comment to be added to the note . Must not be null or empty
* @ throws OsmConflictException if the note has already been closed .
* @ throws OsmAuthorizationException if this application is not authorized to write notes
* ( Permission . WRIT... | if ( text . isEmpty ( ) ) { throw new IllegalArgumentException ( "comment must not be empty" ) ; } SingleElementHandler < Note > noteHandler = new SingleElementHandler < > ( ) ; makeSingleNoteRequest ( id , "comment" , text , new NotesParser ( noteHandler ) ) ; return noteHandler . get ( ) ; |
public class EmbeddedJavaProcessExecutor { /** * Executes the given Java { @ link Class } passing the given array of { @ link String arguments } .
* This execute method employs a { @ link JavaClassExecutor } strategy to execute the given Java { @ link Class } .
* The Java { @ link Class } is expected to either impl... | Assert . notNull ( type , "Class type must not be null" ) ; return JAVA_CLASS_EXECUTORS . stream ( ) . filter ( javaClassExecutor -> javaClassExecutor . isExecutable ( type ) ) . findFirst ( ) . map ( javaClassExecutor -> javaClassExecutor . execute ( type , ( Object [ ] ) args ) ) . orElseThrow ( ( ) -> new EmbeddedPr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.