signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class PathMerger { /** * This method iterates over all instructions and uses the available context to improve the instructions .
* If the requests contains a heading , this method can transform the first continue to a u - turn if the heading
* points into the opposite direction of the route .
* At a waypoi... | Instruction instruction ; Instruction nextInstruction ; for ( int i = 0 ; i < instructions . size ( ) - 1 ; i ++ ) { instruction = instructions . get ( i ) ; if ( i == 0 && ! Double . isNaN ( favoredHeading ) && instruction . extraInfo . containsKey ( "heading" ) ) { double heading = ( double ) instruction . extraInfo ... |
public class CliFrontend { /** * Creates a Packaged program from the given command line options .
* @ return A PackagedProgram ( upon success ) */
PackagedProgram buildProgram ( ProgramOptions options ) throws FileNotFoundException , ProgramInvocationException { } } | String [ ] programArgs = options . getProgramArgs ( ) ; String jarFilePath = options . getJarFilePath ( ) ; List < URL > classpaths = options . getClasspaths ( ) ; if ( jarFilePath == null ) { throw new IllegalArgumentException ( "The program JAR file was not specified." ) ; } File jarFile = new File ( jarFilePath ) ; ... |
public class SmilesValencyChecker { /** * Saturates a set of Bonds in an AtomContainer . */
public boolean saturate ( IBond [ ] bonds , IAtomContainer atomContainer ) throws CDKException { } } | logger . debug ( "Saturating bond set of size: " , bonds . length ) ; boolean bondsAreFullySaturated = false ; if ( bonds . length > 0 ) { IBond bond = bonds [ 0 ] ; // determine bonds left
int leftBondCount = bonds . length - 1 ; IBond [ ] leftBonds = new IBond [ leftBondCount ] ; System . arraycopy ( bonds , 1 , left... |
public class FXBinder { /** * Start point of the fluent API to create a binding .
* @ param writableDoubleValue the javafx property
* @ return binder that can be used by the fluent API to create binding . */
public static < T > JavaFXBinder < T > bind ( WritableValue < T > writableDoubleValue ) { } } | requireNonNull ( writableDoubleValue , "writableDoubleValue" ) ; return new DefaultJavaFXBinder ( writableDoubleValue ) ; |
public class RemoveAttributesFromFindingsRequest { /** * The array of attribute keys that you want to remove from specified findings .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setAttributeKeys ( java . util . Collection ) } or { @ link # withAttributeK... | if ( this . attributeKeys == null ) { setAttributeKeys ( new java . util . ArrayList < String > ( attributeKeys . length ) ) ; } for ( String ele : attributeKeys ) { this . attributeKeys . add ( ele ) ; } return this ; |
public class XTryCatchFinallyExpressionImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public void eUnset ( int featureID ) { } } | switch ( featureID ) { case XbasePackage . XTRY_CATCH_FINALLY_EXPRESSION__EXPRESSION : setExpression ( ( XExpression ) null ) ; return ; case XbasePackage . XTRY_CATCH_FINALLY_EXPRESSION__FINALLY_EXPRESSION : setFinallyExpression ( ( XExpression ) null ) ; return ; case XbasePackage . XTRY_CATCH_FINALLY_EXPRESSION__CAT... |
public class MapsInner { /** * Gets a list of integration account maps .
* @ param nextPageLink The NextLink from the previous successful call to List operation .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the observable to the PagedList & lt ; IntegrationAccountMapInn... | return listByIntegrationAccountsNextWithServiceResponseAsync ( nextPageLink ) . map ( new Func1 < ServiceResponse < Page < IntegrationAccountMapInner > > , Page < IntegrationAccountMapInner > > ( ) { @ Override public Page < IntegrationAccountMapInner > call ( ServiceResponse < Page < IntegrationAccountMapInner > > res... |
public class OrganizationResource { /** * Remove an existing Corporate GroupId from an organization .
* @ return Response */
@ DELETE @ Path ( "/{name}" + ServerAPI . GET_CORPORATE_GROUPIDS ) public Response removeCorporateGroupIdPrefix ( @ Auth final DbCredential credential , @ PathParam ( "name" ) final String orga... | LOG . info ( "Got an remove a corporate groupId prefix request for organization " + organizationId + "." ) ; if ( ! credential . getRoles ( ) . contains ( DbCredential . AvailableRoles . DATA_UPDATER ) ) { throw new WebApplicationException ( Response . status ( Response . Status . UNAUTHORIZED ) . build ( ) ) ; } if ( ... |
public class VectorVectorMult_ZDRM { /** * Computes the inner product of the two vectors . In geometry this is known as the dot product . < br >
* < br >
* & sum ; < sub > k = 1 : n < / sub > x < sub > k < / sub > * y < sub > k < / sub > < br >
* where x and y are vectors with n elements .
* These functions are... | if ( output == null ) output = new Complex_F64 ( ) ; else { output . real = output . imaginary = 0 ; } int m = x . getDataLength ( ) ; for ( int i = 0 ; i < m ; i += 2 ) { double realX = x . data [ i ] ; double imagX = x . data [ i + 1 ] ; double realY = y . data [ i ] ; double imagY = y . data [ i + 1 ] ; output . rea... |
public class Parser { void store ( final RECORD record , final String key , final String name , final Value value ) { } } | boolean calledASetter = false ; if ( value == null ) { LOG . error ( "Got a null value to store for key={} name={}." , key , name ) ; return ; // Nothing to do
} final Set < Pair < Method , SetterPolicy > > methodPairs = targets . get ( key ) ; if ( methodPairs == null ) { LOG . error ( "NO methods for key={} name={}... |
public class HttpRequestUtil { /** * Simple validation , using java . net . InetAddress . getByName ( ) .
* @ param ip the IP address string to check
* @ return true for a valid IP address */
private static boolean isIPAdressValid ( final String ip ) { } } | // InetAddress . getByName ( ) validates ' null ' as a valid IP ( localhost ) .
// we do not want that
if ( hasValue ( ip ) ) { return IP_ADDR_PATTERN . matcher ( ip ) . matches ( ) ; } return false ; |
public class Config { /** * Return a configuration value as list
* @ param key
* @ param c
* @ param < T >
* @ return the list */
public < T > List < T > getList ( AppConfigKey key , Class < T > c ) { } } | Object o = data . get ( key ) ; if ( null == o ) { List < T > l = key . implList ( key . key ( ) , raw , c ) ; data . put ( key , l ) ; return l ; } else { return ( List ) o ; } |
public class ManagedDatabasesInner { /** * Creates a new database or updates an existing database .
* @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal .
* @ param managedInstanceName The name of the mana... | return beginCreateOrUpdateWithServiceResponseAsync ( resourceGroupName , managedInstanceName , databaseName , parameters ) . map ( new Func1 < ServiceResponse < ManagedDatabaseInner > , ManagedDatabaseInner > ( ) { @ Override public ManagedDatabaseInner call ( ServiceResponse < ManagedDatabaseInner > response ) { retur... |
public class AbstractTheme { /** * Returns a list of redundant theme entries in this theme . A redundant entry means that it doesn ' t need to be
* specified because there is a parent node in the hierarchy which has the same property so if the redundant entry
* wasn ' t there , the parent node would be picked up an... | List < String > result = new ArrayList < String > ( ) ; for ( ThemeTreeNode node : rootNode . childMap . values ( ) ) { findRedundantDeclarations ( result , node ) ; } Collections . sort ( result ) ; return result ; |
public class NumeratorSubstitution { /** * Dispatches to the inherited version of this function , but makes
* sure that lenientParse is off . */
public Number doParse ( String text , ParsePosition parsePosition , double baseValue , double upperBound , boolean lenientParse ) { } } | // we don ' t have to do anything special to do the parsing here ,
// but we have to turn lenient parsing off - - if we leave it on ,
// it SERIOUSLY messes up the algorithm
// if withZeros is true , we need to count the zeros
// and use that to adjust the parse result
int zeroCount = 0 ; if ( withZeros ) { String work... |
public class QueryFactory { /** * Method declaration
* @ param classToSearchFrom
* @ param criteria
* @ return QueryByCriteria */
public static QueryByCriteria newQuery ( Class classToSearchFrom , Criteria criteria ) { } } | return newQuery ( classToSearchFrom , criteria , false ) ; |
public class JobConf { /** * Compute the number of slots required to run a single map task - attempt
* of this job .
* @ param slotSizePerMap cluster - wide value of the amount of memory required
* to run a map - task
* @ return the number of slots required to run a single map task - attempt
* 1 if memory par... | if ( ( slotSizePerMap == DISABLED_MEMORY_LIMIT ) || ( getMemoryForMapTask ( ) == DISABLED_MEMORY_LIMIT ) ) { return 1 ; } return ( int ) ( Math . ceil ( ( float ) getMemoryForMapTask ( ) / ( float ) slotSizePerMap ) ) ; |
public class Attribute { /** * Prepares for given < code > _ values < / code > depending on this attribute the
* < code > _ update < / code > into the database .
* @ param _ update SQL update statement for related { @ link # sqlTable }
* @ param _ values values to update
* @ throws SQLException if values could ... | Object [ ] tmp = _values ; try { final List < Return > returns = executeEvents ( EventType . UPDATE_VALUE , ParameterValues . CLASS , this , ParameterValues . OTHERS , _values ) ; for ( final Return aRet : returns ) { if ( aRet . contains ( ReturnValues . VALUES ) ) { tmp = ( Object [ ] ) aRet . get ( ReturnValues . VA... |
public class GetPlaybackConfigurationRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( GetPlaybackConfigurationRequest getPlaybackConfigurationRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( getPlaybackConfigurationRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getPlaybackConfigurationRequest . getName ( ) , NAME_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to ... |
public class JobScheduler { /** * Run a job .
* This method runs the job immediately without going through the Quartz scheduler .
* This is particularly useful for testing .
* This method does what { @ link # runJob ( Properties , JobListener ) } does , and additionally it allows
* the caller to pass in a { @ l... | Preconditions . checkArgument ( jobProps . containsKey ( ConfigurationKeys . JOB_NAME_KEY ) , "A job must have a job name specified by job.name" ) ; String jobName = jobProps . getProperty ( ConfigurationKeys . JOB_NAME_KEY ) ; // Check if the job has been disabled
boolean disabled = Boolean . valueOf ( jobProps . getP... |
public class SnackbarWrapper { /** * Set the icon at the start of the Snackbar . If there is no icon it will be added , or if there is then it will be
* replaced .
* @ param icon The icon drawable resource to display .
* @ return This instance . */
@ NonNull @ SuppressWarnings ( "WeakerAccess" ) public SnackbarWr... | return setIcon ( ContextCompat . getDrawable ( context , icon ) ) ; |
public class DataSynchronizer { /** * Update all documents in the collection according to the specified arguments .
* @ param filter a document describing the query filter , which may not be null .
* @ param update a document describing the update , which may not be null . The update to
* apply must include only ... | this . waitUntilInitialized ( ) ; ongoingOperationsGroup . enter ( ) ; try { final List < ChangeEvent < BsonDocument > > eventsToEmit = new ArrayList < > ( ) ; final UpdateResult result ; final NamespaceSynchronizationConfig nsConfig = this . syncConfig . getNamespaceConfig ( namespace ) ; final Lock lock = nsConfig . ... |
public class MenusSession { /** * Override this to do an action sent from the client .
* @ param strCommand The command to execute
* @ param properties The properties for the command
* @ returns Object Return a Boolean . TRUE for success , Boolean . FALSE for failure . */
public Object doRemoteCommand ( String st... | Map < String , Object > propMenu = properties ; // I NOW for a fact this is a Properties object .
if ( propMenu == null ) propMenu = new Hashtable < String , Object > ( ) ; if ( strCommand != null ) if ( strCommand . length ( ) > 0 ) if ( strCommand . indexOf ( '=' ) == - 1 ) strCommand = DBParams . MENU + '=' + strCom... |
public class CmsJspStandardContextBean { /** * Gets a map providing access to the locale variants of the current page . < p >
* Note that all available locales for the site / subsite are used as keys , not just the ones for which a locale
* variant actually exists .
* Usage in JSPs : $ { cms . localeResource [ ' ... | Map < String , CmsJspResourceWrapper > result = getPageResource ( ) . getLocaleResource ( ) ; List < Locale > locales = CmsLocaleGroupService . getPossibleLocales ( m_cms , getPageResource ( ) ) ; for ( Locale locale : locales ) { if ( ! result . containsKey ( locale . toString ( ) ) ) { result . put ( locale . toStrin... |
public class Call { /** * Performs a get http call and writes the call and response information to
* the output file
* @ param endpoint - the endpoint of the service under test
* @ param params - the parameters to be passed to the endpoint for the service
* call
* @ return Response : the response provided fro... | return call ( Method . GET , endpoint , params , null ) ; |
public class CommandBusOnClient { /** * Executes the request to the remote url */
private < T > T execute ( String url , Class < T > returnType , Object requestObject ) throws Exception { } } | URLConnection connection = new URL ( url ) . openConnection ( ) ; if ( ! ( connection instanceof HttpURLConnection ) ) { throw new IllegalStateException ( "Not an http connection! " + connection ) ; } HttpURLConnection httpConnection = ( HttpURLConnection ) connection ; httpConnection . setUseCaches ( false ) ; httpCon... |
public class OjbTagsHandler { /** * Processes a procedure tag .
* @ param template The template
* @ param attributes The attributes of the tag
* @ exception XDocletException If an error occurs
* @ doc . tag type = " content "
* @ doc . param name = " arguments " optional = " true " description = " The argumen... | String type = attributes . getProperty ( ATTRIBUTE_TYPE ) ; ProcedureDef procDef = _curClassDef . getProcedure ( type ) ; String attrName ; if ( procDef == null ) { procDef = new ProcedureDef ( type ) ; _curClassDef . addProcedure ( procDef ) ; } for ( Enumeration attrNames = attributes . propertyNames ( ) ; attrNames ... |
public class ContainersInner { /** * Get the logs for a specified container instance .
* Get the logs for a specified container instance in a specified resource group and container group .
* @ param resourceGroupName The name of the resource group .
* @ param containerGroupName The name of the container group .
... | return listLogsWithServiceResponseAsync ( resourceGroupName , containerGroupName , containerName ) . map ( new Func1 < ServiceResponse < LogsInner > , LogsInner > ( ) { @ Override public LogsInner call ( ServiceResponse < LogsInner > response ) { return response . body ( ) ; } } ) ; |
public class CodingUtil { /** * AES加密 */
private static SecretKey getKey ( String strKey ) { } } | try { KeyGenerator _generator = KeyGenerator . getInstance ( AES ) ; SecureRandom secureRandom = SecureRandom . getInstance ( "SHA1PRNG" ) ; secureRandom . setSeed ( strKey . getBytes ( ) ) ; _generator . init ( 128 , secureRandom ) ; return _generator . generateKey ( ) ; } catch ( Exception e ) { throw new RuntimeExce... |
public class SnapshotUtil { /** * Returns a detailed report and a boolean indicating whether the snapshot can be successfully loaded
* The implementation supports disabling the hashinator check , e . g . for old snapshots in tests .
* @ param snapshotTime
* @ param snapshot
* @ param expectHashinator */
public ... | CharArrayWriter caw = new CharArrayWriter ( ) ; PrintWriter pw = new PrintWriter ( caw ) ; boolean snapshotConsistent = true ; String indentString = "" ; pw . println ( indentString + "TxnId: " + snapshotTxnId ) ; pw . println ( indentString + "Date: " + new Date ( org . voltcore . TransactionIdManager . getTimestampFr... |
public class JMSConnectionFactoryResourceBuilder { /** * Utility method that creates a unique identifier for an application defined data source .
* For example ,
* application [ MyApp ] / module [ MyModule ] / connectionFactory [ java : module / env / jdbc / cf1]
* @ param application application name if data sou... | StringBuilder sb = new StringBuilder ( jndiName . length ( ) + 80 ) ; if ( application != null ) { sb . append ( AppDefinedResource . APPLICATION ) . append ( '[' ) . append ( application ) . append ( ']' ) . append ( '/' ) ; if ( module != null ) { sb . append ( AppDefinedResource . MODULE ) . append ( '[' ) . append ... |
public class Util { /** * Returns true if an HTTP request for { @ code a } and { @ code b } can reuse a connection . */
public static boolean sameConnection ( HttpUrl a , HttpUrl b ) { } } | return a . host ( ) . equals ( b . host ( ) ) && a . port ( ) == b . port ( ) && a . scheme ( ) . equals ( b . scheme ( ) ) ; |
public class RandomAccessFastaIndex { /** * Index fasta file or loads previously created index
* @ param file file to index
* @ param indexStep index step
* @ param save whether to save index to { input _ file _ name } . mifdx file
* @ param reporter reporter
* @ return index */
public static RandomAccessFast... | Path indexFile = file . resolveSibling ( file . getFileName ( ) + INDEX_SUFFIX ) ; if ( Files . exists ( indexFile ) ) try ( FileInputStream fis = new FileInputStream ( indexFile . toFile ( ) ) ) { RandomAccessFastaIndex index = RandomAccessFastaIndex . read ( new BufferedInputStream ( fis ) ) ; if ( index . getIndexSt... |
public class PrefHelper { /** * < p > Sets the value of the { @ link String } key value supplied in preferences . < / p >
* @ param key A { @ link String } value containing the key to reference .
* @ param value A { @ link Long } value to set the preference record to . */
public void setLong ( String key , long val... | prefHelper_ . prefsEditor_ . putLong ( key , value ) ; prefHelper_ . prefsEditor_ . apply ( ) ; |
public class CachingAvatarZooKeeperClient { /** * Makes sure the given file has r / w permissions for everyone . We need this
* since the cache files might be accessed by different users on the
* same machine . */
private void setRWPermissions ( File f ) { } } | if ( ! f . setReadable ( true , false ) || ! f . setWritable ( true , false ) ) { LOG . info ( "Could not set permissions for file : " + f + " probably because user : " + System . getProperty ( "user.name" ) + " is not the owner" ) ; } |
public class BundlePackager { /** * We should have generated a { @ code target / osgi / osgi . properties } file with the metadata we inherit from Maven .
* @ param baseDir the project directory
* @ return the computed set of properties */
public static Properties readMavenProperties ( File baseDir ) throws IOExcep... | return Instructions . load ( new File ( baseDir , org . wisdom . maven . Constants . OSGI_PROPERTIES ) ) ; |
public class CassandraClientBase { /** * Sets the batch size .
* @ param batch _ Size
* the new batch size */
void setBatchSize ( String batch_Size ) { } } | if ( ! StringUtils . isBlank ( batch_Size ) ) { batchSize = Integer . valueOf ( batch_Size ) ; if ( batchSize == 0 ) { throw new IllegalArgumentException ( "kundera.batch.size property must be numeric and > 0." ) ; } } |
public class ManagedBuffer { /** * Convenience method to fill the buffer from the channel .
* Unlocks the buffer if an { @ link IOException } occurs .
* This method may only be invoked for { @ link ManagedBuffer } s
* backed by a { @ link ByteBuffer } .
* @ param channel the channel
* @ return the bytes read ... | if ( ! ( backing instanceof ByteBuffer ) ) { throw new IllegalArgumentException ( "Backing buffer is not a ByteBuffer." ) ; } try { return channel . read ( ( ByteBuffer ) backing ) ; } catch ( IOException e ) { unlockBuffer ( ) ; throw e ; } |
public class TransformSupport { /** * Tag logic */
@ Override public int doStartTag ( ) throws JspException { } } | // set up transformer in the start tag so that nested < param > tags can set parameters directly
if ( xslt == null ) { throw new JspTagException ( Resources . getMessage ( "TRANSFORM_XSLT_IS_NULL" ) ) ; } Source source ; try { if ( xslt instanceof Source ) { source = ( Source ) xslt ; } else if ( xslt instanceof String... |
public class LockedMessageEnumerationImpl { /** * Returns the next available locked message in the enumeration .
* A value of null is returned if there is no next message .
* @ see com . ibm . wsspi . sib . core . LockedMessageEnumeration # nextLocked ( ) */
public SIBusMessage nextLocked ( ) throws SISessionUnavai... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "nextLocked" ) ; JsMessage retMsg = null ; synchronized ( lmeOperationMonitor ) { checkValid ( ) ; // At this point we look at each item in the array up to end of the array for the next
// non - null item . This is be... |
public class QYWeixinSupport { /** * 绑定服务器的方法
* @ param request 请求
* @ param response 响应 */
public void bindServer ( HttpServletRequest request , HttpServletResponse response ) { } } | PrintWriter pw = null ; try { pw = response . getWriter ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } if ( StrUtil . isBlank ( getToken ( ) ) || StrUtil . isBlank ( getAESKey ( ) ) || StrUtil . isBlank ( getCropId ( ) ) ) { pw . write ( "" ) ; pw . flush ( ) ; pw . close ( ) ; } try { WXBizMsgCrypt pc =... |
public class MaskPasswordsBuildWrapper { /** * Contributes the passwords defined by the user as variables that can be reused
* from build steps ( and other places ) . */
@ Override public void makeBuildVariables ( AbstractBuild build , Map < String , String > variables ) { } } | // global var / password pairs
MaskPasswordsConfig config = MaskPasswordsConfig . getInstance ( ) ; List < VarPasswordPair > globalVarPasswordPairs = config . getGlobalVarPasswordPairs ( ) ; // we can ' t use variables . putAll ( ) since passwords are ciphered when in varPasswordPairs
for ( VarPasswordPair globalVarPas... |
public class DatabaseUtils { /** * Ensure values { @ code inputs } are unique ( which avoids useless arguments ) and sorted before creating the partition . */
public static < INPUT extends Comparable < INPUT > > Iterable < List < INPUT > > toUniqueAndSortedPartitions ( Collection < INPUT > inputs ) { } } | return toUniqueAndSortedPartitions ( inputs , i -> i ) ; |
public class WebApp { /** * LIBERTY Added for delayed start . */
public void initialize ( ) throws ServletException , Throwable { } } | if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) logger . entering ( CLASS_NAME , "Initialize : app = " + config . getApplicationName ( ) + ", initialized = " + initialized + ", destroyed = " + destroyed ) ; if ( ! initialized && ! destroyed ) { synchronize... |
public class RetryBuilder { /** * Set both the { @ link Delay } and the { @ link Scheduler } on which the delay is waited .
* If the delay is null , { @ link Retry # DEFAULT _ DELAY } is used . */
public RetryBuilder delay ( Delay delay , Scheduler scheduler ) { } } | this . delay = ( delay == null ) ? Retry . DEFAULT_DELAY : delay ; this . scheduler = scheduler ; return this ; |
public class NetworkInterfaceTapConfigurationsInner { /** * Get the specified tap configuration on a network interface .
* @ param resourceGroupName The name of the resource group .
* @ param networkInterfaceName The name of the network interface .
* @ param tapConfigurationName The name of the tap configuration ... | return getWithServiceResponseAsync ( resourceGroupName , networkInterfaceName , tapConfigurationName ) . map ( new Func1 < ServiceResponse < NetworkInterfaceTapConfigurationInner > , NetworkInterfaceTapConfigurationInner > ( ) { @ Override public NetworkInterfaceTapConfigurationInner call ( ServiceResponse < NetworkInt... |
public class IOUtils { /** * Returns all the text in the given file with the given encoding . If the file
* cannot be read ( non - existent , etc . ) , then and only then the method returns
* < code > null < / code > . */
public static String slurpFileNoExceptions ( String filename , String encoding ) { } } | try { return slurpFile ( filename , encoding ) ; } catch ( Exception e ) { throw new RuntimeIOException ( "slurpFile IO problem" , e ) ; } |
public class BlockdevOptions { @ Nonnull public static BlockdevOptions blkdebug ( @ Nonnull BlockdevOptionsBlkdebug blkdebug ) { } } | BlockdevOptions self = new BlockdevOptions ( ) ; self . driver = BlockdevDriver . blkdebug ; self . blkdebug = blkdebug ; return self ; |
public class Ifc2x3tc1FactoryImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public IfcVibrationIsolatorTypeEnum createIfcVibrationIsolatorTypeEnumFromString ( EDataType eDataType , String initialValue ) { } } | IfcVibrationIsolatorTypeEnum result = IfcVibrationIsolatorTypeEnum . get ( initialValue ) ; if ( result == null ) throw new IllegalArgumentException ( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType . getName ( ) + "'" ) ; return result ; |
public class JandexUtils { /** * Indexes all classes in the classpath ( * . jar or * . class ) .
* @ param classLoader
* Class loader to use .
* @ param indexer
* Indexer to use .
* @ param knownFiles
* List of files already analyzed . New files will be added within this method . */
public static void index... | // Variant that works with Maven " exec : java "
final List < File > classPathFiles = Utils4J . localFilesFromUrlClassLoader ( classLoader ) ; for ( final File file : classPathFiles ) { if ( Utils4J . nonJreJarFile ( file ) ) { indexJar ( indexer , knownFiles , file ) ; } else if ( file . isDirectory ( ) && ! file . ge... |
public class CodeBuilderUtil { /** * Generate code to throw an exception with a message concatenated at runtime .
* @ param b { @ link CodeBuilder } to which to add code
* @ param type type of the object to throw
* @ param messages messages to concat at runtime */
public static void throwConcatException ( CodeBui... | if ( messages == null || messages . length == 0 ) { throwException ( b , type , null ) ; return ; } if ( messages . length == 1 ) { throwException ( b , type , messages [ 0 ] ) ; return ; } TypeDesc desc = TypeDesc . forClass ( type ) ; b . newObject ( desc ) ; b . dup ( ) ; TypeDesc [ ] params = new TypeDesc [ ] { Typ... |
public class Importer { /** * - - - - - public static methods - - - - - */
public static Page parsePageFromSource ( final SecurityContext securityContext , final String source , final String name ) throws FrameworkException { } } | return parsePageFromSource ( securityContext , source , name , false ) ; |
public class ThriftConnectionPool { /** * 获取方法调用堆栈信息的方法
* @ param message
* 提示语
* @ return 堆栈信息 */
protected String captureStackTrace ( String message ) { } } | StringBuilder stringBuilder = new StringBuilder ( String . format ( message , Thread . currentThread ( ) . getName ( ) ) ) ; StackTraceElement [ ] trace = Thread . currentThread ( ) . getStackTrace ( ) ; for ( int i = 0 ; i < trace . length ; i ++ ) { stringBuilder . append ( ' ' ) . append ( trace [ i ] ) . append ( "... |
public class N { /** * Mostly it ' s designed for one - step operation to complete the operation in one step .
* < code > java . util . stream . Stream < / code > is preferred for multiple phases operation .
* @ param a
* @ param fromIndex
* @ param toIndex
* @ param func
* @ return */
public static < T , E... | checkFromToIndex ( fromIndex , toIndex , size ( c ) ) ; N . checkArgNotNull ( func ) ; if ( N . isNullOrEmpty ( c ) && fromIndex == 0 && toIndex == 0 ) { return new CharList ( ) ; } final CharList result = new CharList ( toIndex - fromIndex ) ; if ( c instanceof List && c instanceof RandomAccess ) { final List < T > li... |
public class CmsLetsEncryptConfiguration { /** * Gets the configured port , or - 1 if the port is not set or has an invalid value . < p >
* The port is used to signal to the LetsEncrypt docker container that the certificate configuration has changed .
* @ return the configured port */
public int getPort ( ) { } } | try { String portStr = m_config . get ( ATTR_PORT ) ; return Integer . valueOf ( portStr ) . intValue ( ) ; } catch ( Exception e ) { LOG . error ( "Error getting letsencrypt port: " + e . getLocalizedMessage ( ) , e ) ; return - 1 ; } |
public class SimpleTransformer { /** * Transform a java pojo object to sfsobject
* @ param value pojo java object
* @ return a SFSDataWrapper object */
protected SFSDataWrapper transformObject ( Object value ) { } } | ResponseParamsClass struct = null ; if ( context != null ) struct = context . getResponseParamsClass ( value . getClass ( ) ) ; if ( struct == null ) struct = new ResponseParamsClass ( value . getClass ( ) ) ; ISFSObject sfsObject = new ResponseParamSerializer ( ) . object2params ( struct , value ) ; return new SFSData... |
public class InJvmContainerExecutor { /** * Creates CLI parser which can be used to extract Container ' s class name and
* its launch arguments .
* @ param containerWorkDir
* @ return */
private ExecJavaCliParser createExecCommandParser ( String containerWorkDir ) { } } | String execLine = this . filterAndExecuteLaunchScriptAndReturnExecLine ( containerWorkDir ) ; String [ ] values = execLine . split ( "\"" ) ; String javaCli = values [ 1 ] ; String [ ] javaCliValues = javaCli . split ( " " ) ; StringBuffer buffer = new StringBuffer ( ) ; for ( int i = 0 ; i < javaCliValues . length ; i... |
public class JScreen { /** * Get the GridBagConstraints .
* @ return The gridbag constraints object . */
public GridBagConstraints getGBConstraints ( ) { } } | if ( m_gbconstraints == null ) { m_gbconstraints = new GridBagConstraints ( ) ; m_gbconstraints . insets = new Insets ( 2 , 2 , 2 , 2 ) ; m_gbconstraints . ipadx = 2 ; m_gbconstraints . ipady = 2 ; } return m_gbconstraints ; |
public class ModifyReservedInstancesRequest { /** * The IDs of the Reserved Instances to modify .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setReservedInstancesIds ( java . util . Collection ) } or { @ link # withReservedInstancesIds ( java . util . Col... | if ( this . reservedInstancesIds == null ) { setReservedInstancesIds ( new com . amazonaws . internal . SdkInternalList < String > ( reservedInstancesIds . length ) ) ; } for ( String ele : reservedInstancesIds ) { this . reservedInstancesIds . add ( ele ) ; } return this ; |
public class ProjectApi { /** * Get a list of project users matching the specified search string . This list
* includes all project members and all users assigned to project parent groups .
* < pre > < code > GET / projects / : id / users < / code > < / pre >
* @ param projectIdOrPath projectIdOrPath the project ... | return ( getProjectUsers ( projectIdOrPath , search , getDefaultPerPage ( ) ) . all ( ) ) ; |
public class Functions { /** * Offset a numeric string by another numeric string .
* Any numeric string recognized by { @ code BigDecimal } is supported .
* @ param initial A valid number string
* @ param offset A valid number string
* @ return a number string with the precision matching the highest precision
... | BigDecimal number ; BigDecimal dOffset ; try { number = new BigDecimal ( initial ) ; dOffset = new BigDecimal ( offset ) ; } catch ( Exception ex ) { return null ; } return number . add ( dOffset ) . toString ( ) ; |
public class Applications { /** * Adds the instances to the internal vip address map .
* @ param app
* - the applications for which the instances need to be added . */
private void addInstancesToVIPMaps ( Application app , Map < String , VipIndexSupport > virtualHostNameAppMap , Map < String , VipIndexSupport > sec... | // Check and add the instances to the their respective virtual host name
// mappings
for ( InstanceInfo info : app . getInstances ( ) ) { String vipAddresses = info . getVIPAddress ( ) ; if ( vipAddresses != null ) { addInstanceToMap ( info , vipAddresses , virtualHostNameAppMap ) ; } String secureVipAddresses = info .... |
public class ModelsImpl { /** * Gets information about the hierarchical entity models .
* @ param appId The application ID .
* @ param versionId The version ID .
* @ param listHierarchicalEntitiesOptionalParameter the object representing the optional parameters to be set before calling this API
* @ throws Illeg... | return listHierarchicalEntitiesWithServiceResponseAsync ( appId , versionId , listHierarchicalEntitiesOptionalParameter ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class ResourceHandle { /** * The ' adaptTo ' like wrapping helper .
* @ return the wrapped resource ( may be resource itself if it is a ResourceHandle ) , not null */
public static ResourceHandle use ( Resource resource ) { } } | return resource instanceof ResourceHandle ? ( ( ResourceHandle ) resource ) : new ResourceHandle ( resource ) ; |
public class FileBeanStore { /** * Get object ouput stream suitable for reading persistent state
* associated with given key . */
public GZIPOutputStream getGZIPOutputStream ( BeanId beanId ) throws CSIException { } } | final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getOutputStream" , beanId ) ; final String fileName = getPortableFilename ( beanId ) ; final long beanTimeoutTime = getBeanTimeoutTime ( beanId ) ; GZIPOutputStream result = null ; try { r... |
public class MapViewerTemplate { /** * Template method to create the map views . */
protected void createMapViews ( ) { } } | mapView = getMapView ( ) ; mapView . getModel ( ) . init ( this . preferencesFacade ) ; mapView . setClickable ( true ) ; mapView . getMapScaleBar ( ) . setVisible ( true ) ; mapView . setBuiltInZoomControls ( hasZoomControls ( ) ) ; mapView . getMapZoomControls ( ) . setAutoHide ( isZoomControlsAutoHide ( ) ) ; mapVie... |
public class AWSMediaLiveClient { /** * Produces list of inputs that have been created
* @ param listInputsRequest
* Placeholder documentation for ListInputsRequest
* @ return Result of the ListInputs operation returned by the service .
* @ throws BadRequestException
* This request was invalid
* @ throws In... | request = beforeClientExecution ( request ) ; return executeListInputs ( request ) ; |
public class DensePositiveMapper { @ Override public void map ( int [ ] input , final int start , final int length ) { } } | for ( int i = start , l = length ; l > 0 ; l -- , i ++ ) { input [ i ] = forward [ input [ i ] + offset ] ; } |
public class ModularParser { /** * Searches the Range given by the Span s for the double occurence of
* " quotation " and puts the results in the List quotedSpans . The Quotation
* tags will be deleted .
* @ param sm
* , the Source in which will be searched
* @ param s
* , the range in which will be searche... | final int qlen = quotation . length ( ) ; // get the start position
int start = sm . indexOf ( quotation , s . getStart ( ) , s . getEnd ( ) ) ; while ( start != - 1 ) { // get the end position
int end = sm . indexOf ( quotation , start + qlen , s . getEnd ( ) ) ; if ( end == - 1 ) { break ; } // build a new span from ... |
public class ModuleApiKeys { /** * Delete a given api key from the configured space .
* @ param key the key to be deleted .
* @ return 204 upon success .
* @ throws IllegalArgumentException if key is null .
* @ throws IllegalArgumentException if key ' s spaceId is null . */
public int delete ( CMAApiKey key ) {... | assertNotNull ( key , "key" ) ; final String space = getSpaceIdOrThrow ( key , "key" ) ; final String id = getResourceIdOrThrow ( key , "key" ) ; return service . delete ( space , id ) . blockingFirst ( ) . code ( ) ; |
public class AnnotatedTypeBuilder { /** * Add an annotation to the specified field . If the field is not already
* present , it will be added .
* @ param field the field to add the annotation to
* @ param annotation the annotation to add
* @ throws IllegalArgumentException if the annotation is null */
public An... | if ( fields . get ( field ) == null ) { fields . put ( field , new AnnotationBuilder ( ) ) ; } fields . get ( field ) . add ( annotation ) ; return this ; |
public class JCalendarPopup { /** * User pressed the " next year " button , change the calendar .
* @ param evt The action event ( ignored ) . */
private void nextYearActionPerformed ( ActionEvent evt ) { } } | calendar . setTime ( targetPanelDate ) ; calendar . add ( Calendar . YEAR , 1 ) ; calendar . set ( Calendar . HOUR_OF_DAY , 12 ) ; calendar . set ( Calendar . MINUTE , 0 ) ; calendar . set ( Calendar . SECOND , 0 ) ; calendar . set ( Calendar . MILLISECOND , 0 ) ; targetPanelDate = calendar . getTime ( ) ; this . layou... |
public class WTree { /** * Handle the current expanded state .
* @ param request the request containing row expansion data . */
private void handleExpandedState ( final Request request ) { } } | String [ ] paramValue = request . getParameterValues ( getId ( ) + OPEN_REQUEST_KEY ) ; if ( paramValue == null ) { paramValue = new String [ 0 ] ; } String [ ] expandedRowIds = removeEmptyStrings ( paramValue ) ; Set < String > newExpansionIds = new HashSet < > ( ) ; if ( expandedRowIds != null ) { int offset = getIte... |
public class PBKDF { /** * Implementation of PBKDF2 ( RFC2898 ) .
* @ param mac Pre - initialized { @ link Mac } instance to use .
* @ param S Salt .
* @ param c Iteration count .
* @ param DK Byte array that derived key will be placed in .
* @ param dkLen Intended length , in octets , of the derived key .
... | int hLen = mac . getMacLength ( ) ; if ( dkLen > ( Math . pow ( 2 , 32 ) - 1 ) * hLen ) { throw new GeneralSecurityException ( "Requested key length too long" ) ; } byte [ ] U = new byte [ hLen ] ; byte [ ] T = new byte [ hLen ] ; byte [ ] block1 = new byte [ S . length + 4 ] ; int l = ( int ) Math . ceil ( ( double ) ... |
public class JDBC4PreparedStatement { /** * Sets the designated parameter to the given REF ( < structured - type > ) value . */
@ Override public void setRef ( int parameterIndex , Ref x ) throws SQLException { } } | checkParameterBounds ( parameterIndex ) ; throw SQLError . noSupport ( ) ; |
public class DefaultPassConfig { /** * Creates several passes aimed at removing code . */
private List < PassFactory > getCodeRemovingPasses ( ) { } } | List < PassFactory > passes = new ArrayList < > ( ) ; if ( options . collapseObjectLiterals ) { passes . add ( collapseObjectLiterals ) ; } if ( options . inlineVariables || options . inlineLocalVariables ) { passes . add ( inlineVariables ) ; } else if ( options . inlineConstantVars ) { passes . add ( inlineConstants ... |
public class dnssuffix { /** * Use this API to fetch all the dnssuffix resources that are configured on netscaler . */
public static dnssuffix [ ] get ( nitro_service service ) throws Exception { } } | dnssuffix obj = new dnssuffix ( ) ; dnssuffix [ ] response = ( dnssuffix [ ] ) obj . get_resources ( service ) ; return response ; |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Status } { @ code > } } */
@ XmlElementDecl ( namespace = "http://schema.intuit.com/finance/v3" , name = "Status" , substitutionHeadNamespace = "http://schema.intuit.com/finance/v3" , substitutionHeadName = "IntuitObje... | return new JAXBElement < Status > ( _Status_QNAME , Status . class , null , value ) ; |
public class PointDrawController { public void onMouseDown ( MouseDownEvent event ) { } } | Coordinate newCoords = getWorldPosition ( event ) ; geometry = factory . createPoint ( newCoords ) ; |
public class SetBase { /** * Sub class could override this method to implement iterating in parallel .
* < p > The iterating support partial function visitor by ignoring the
* { @ link org . osgl . exception . NotAppliedException } thrown out by visitor ' s apply
* method call < / p >
* @ param visitor the visi... | for ( T t : this ) { try { visitor . apply ( t ) ; } catch ( NotAppliedException e ) { // ignore
} } return this ; |
public class StandardWebSocketSession { /** * { @ inheritDoc } */
@ Override protected Future < Void > sendObjectMessage ( Object message ) { } } | return getNativeSession ( ) . getAsyncRemote ( ) . sendObject ( message ) ; |
public class RDS { /** * Use this to revoke access of security groups in EC2 - Classic
* @ param groupName
* @ param sourceCidr
* @ throws CloudException
* @ throws InternalException */
private void revokeClassicDbSecurityGroup ( String groupName , String sourceCidr ) throws CloudException , InternalException {... | Map < String , String > parameters = getProvider ( ) . getStandardRdsParameters ( getProvider ( ) . getContext ( ) , REVOKE_DB_SECURITY_GROUP_INGRESS ) ; parameters . put ( "CIDRIP" , sourceCidr ) ; parameters . put ( "DBSecurityGroupName" , groupName ) ; EC2Method method = new EC2Method ( SERVICE_ID , getProvider ( ) ... |
public class SoapHeaderScanner { /** * Search for the given character in the buffer , starting at the
* given index . If not found , return - 1 . If found , return the
* index of the character .
* @ param c
* @ param index */
private int findFrom ( char c , int index ) { } } | int currentIdx = index ; while ( currentIdx < buffer . length ( ) ) { if ( buffer . get ( currentIdx ) == c ) { return currentIdx ; } currentIdx ++ ; } return - 1 ; |
public class PlaceIndexController { /** * Connects HTML template file with data for the surnames index page . The
* page displays the surnames that begin with the provided letter .
* @ param dbName name of database for the lookup .
* @ param model Spring connection between the data model wrapper .
* @ return a ... | logger . debug ( "Entering surnames" ) ; final Root root = fetchRoot ( dbName ) ; final RenderingContext context = createRenderingContext ( ) ; final IndexByPlaceRenderer gedRenderer = new IndexByPlaceRenderer ( root , client , context ) ; model . addAttribute ( "filename" , gedbrowserHome + "/" + dbName + ".ged" ) ; m... |
public class AbstractTTTLearner { /** * Determines a global splitter , i . e . , a splitter for any block . This method may ( but is not required to ) employ
* heuristics to obtain a splitter with a relatively short suffix length .
* @ return a splitter for any of the blocks */
private GlobalSplitter < I , D > find... | // TODO : Make global option
boolean optimizeGlobal = true ; AbstractBaseDTNode < I , D > bestBlockRoot = null ; Splitter < I , D > bestSplitter = null ; for ( AbstractBaseDTNode < I , D > blockRoot : blockList ) { Splitter < I , D > splitter = findSplitter ( blockRoot ) ; if ( splitter != null ) { if ( bestSplitter ==... |
public class Predicate { /** * A list of the conditions that determine when the trigger will fire .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setConditions ( java . util . Collection ) } or { @ link # withConditions ( java . util . Collection ) } if you... | if ( this . conditions == null ) { setConditions ( new java . util . ArrayList < Condition > ( conditions . length ) ) ; } for ( Condition ele : conditions ) { this . conditions . add ( ele ) ; } return this ; |
public class KolmogorovSmirnovIndependentSamples { /** * Checks the Critical Value to determine if the Hypothesis should be rejected
* @ param score
* @ param is _ twoTailed
* @ param n1
* @ param n2
* @ param aLevel
* @ return */
private static boolean checkCriticalValue ( double score , boolean is_twoTail... | boolean rejected = false ; double criticalValue = calculateCriticalValue ( is_twoTailed , n1 , n2 , aLevel ) ; if ( score > criticalValue ) { rejected = true ; } return rejected ; |
public class SimpleBeanBoundTableModel { /** * { @ inheritDoc } */
@ Override public Class < ? extends WComponent > getRendererClass ( final List < Integer > row ) { } } | int idx = getLevelIndex ( row ) ; LevelDetails level = levels . get ( idx ) ; return level . getRenderer ( ) ; |
public class AbstractConfiguration { /** * Gets the value of the configuration property identified by name as a value of the specified Class type .
* The required parameter can be used to indicate the property is not required and that a ConfigurationException
* should not be thrown if the property is undeclared or ... | try { return convert ( getPropertyValue ( propertyName , required ) , type ) ; } catch ( ConversionException e ) { if ( required ) { throw new ConfigurationException ( String . format ( "Failed to get the value of configuration setting property (%1$s) as type (%2$s)!" , propertyName , ClassUtils . getName ( type ) ) , ... |
public class CmsAjaxLinkGallery { /** * Writes the current link into the pointer resource . < p >
* @ see org . opencms . workplace . galleries . CmsAjaxLinkGallery # changeItemLinkUrl ( String )
* @ param itemUrl the pointer resource to change the link of */
@ Override protected void changeItemLinkUrl ( String ite... | try { JspWriter out = getJsp ( ) . getJspContext ( ) . getOut ( ) ; if ( getCms ( ) . existsResource ( itemUrl ) ) { try { writePointerLink ( getCms ( ) . readResource ( itemUrl ) ) ; out . print ( buildJsonItemObject ( getCms ( ) . readResource ( itemUrl ) ) ) ; } catch ( CmsException e ) { // can not happen in theory... |
public class CreateCustomMetadataRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( CreateCustomMetadataRequest createCustomMetadataRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( createCustomMetadataRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( createCustomMetadataRequest . getAuthenticationToken ( ) , AUTHENTICATIONTOKEN_BINDING ) ; protocolMarshaller . marshall ( createCustomMetadataRequest . getR... |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcDuctSilencer ( ) { } } | if ( ifcDuctSilencerEClass == null ) { ifcDuctSilencerEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 204 ) ; } return ifcDuctSilencerEClass ; |
public class OrderItemUrl { /** * Get Resource Url for GetOrderItemViaLineId
* @ param draft If true , retrieve the draft version of the order , which might include uncommitted changes to the order or its components .
* @ param lineId The specific line id that ' s associated with the order item .
* @ param orderI... | UrlFormatter formatter = new UrlFormatter ( "/api/commerce/orders/{orderId}/items/{lineId}?draft={draft}&responseFields={responseFields}" ) ; formatter . formatUrl ( "draft" , draft ) ; formatter . formatUrl ( "lineId" , lineId ) ; formatter . formatUrl ( "orderId" , orderId ) ; formatter . formatUrl ( "responseFields"... |
public class DiscountCurveInterpolation { /** * Create a discount curve from given times and given discount factors using given interpolation and extrapolation methods .
* @ param name The name of this discount curve .
* @ param referenceDate The reference date for this curve , i . e . , the date which defined t = ... | DiscountCurveInterpolation discountFactors = new DiscountCurveInterpolation ( name , referenceDate , interpolationMethod , extrapolationMethod , interpolationEntity ) ; for ( int timeIndex = 0 ; timeIndex < times . length ; timeIndex ++ ) { discountFactors . addDiscountFactor ( times [ timeIndex ] , givenDiscountFactor... |
public class AtomClientFactory { /** * Create ClientCollection bound to URI . */
public static ClientCollection getCollection ( final String uri , final AuthStrategy authStrategy ) throws ProponoException { } } | return new ClientCollection ( uri , authStrategy ) ; |
public class Aggregate { /** * < div color = ' red ' style = " font - size : 24px ; color : red " > < b > < i > < u > JCYPHER < / u > < / i > < / b > < / div >
* < div color = ' red ' style = " font - size : 18px ; color : red " > < i > calculate the average of numeric values < / i > < / div >
* < div color = ' red... | ReturnExpression rx = getReturnExpression ( ) ; ReturnAggregate ra = ( ReturnAggregate ) rx . getReturnValue ( ) ; ra . setType ( AggregateFunctionType . AVG ) ; ra . setArgument ( property ) ; RElement < RElement < ? > > ret = new RElement < RElement < ? > > ( rx ) ; return ret ; |
public class ScanSpec { /** * Add a classpath element filter . The provided ClasspathElementFilter should return true if the path string
* passed to it is a path you want to scan .
* @ param classpathElementFilter
* The classpath element filter to apply to all discovered classpath elements , to decide which shoul... | if ( this . classpathElementFilters == null ) { this . classpathElementFilters = new ArrayList < > ( 2 ) ; } this . classpathElementFilters . add ( classpathElementFilter ) ; |
public class DescribeTableRestoreStatusResult { /** * A list of status details for one or more table restore requests .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setTableRestoreStatusDetails ( java . util . Collection ) } or
* { @ link # withTableRest... | if ( this . tableRestoreStatusDetails == null ) { setTableRestoreStatusDetails ( new com . amazonaws . internal . SdkInternalList < TableRestoreStatus > ( tableRestoreStatusDetails . length ) ) ; } for ( TableRestoreStatus ele : tableRestoreStatusDetails ) { this . tableRestoreStatusDetails . add ( ele ) ; } return thi... |
public class SemanticAPI { /** * 语义理解
* @ param accessToken access _ token
* @ param semproxySearch semproxySearch
* @ return SemproxySearchResult
* @ since 2.8.22 */
public static SemproxySearchResult semproxySearch ( String accessToken , SemproxySearch semproxySearch ) { } } | return semproxySearch ( accessToken , JsonUtil . toJSONString ( semproxySearch ) ) ; |
public class MsgNode { /** * Returns the list of expressions for gender values and sets that field to null .
* < p > Note that this node ' s command text will still contain the substring genders = " . . . " . We think
* this is okay since the command text is only used for reporting errors ( in fact , it might be
... | List < ExprRootNode > genderExprs = this . genderExprs ; this . genderExprs = null ; return genderExprs ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.