signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getPTD1 ( ) { } } | if ( ptd1EClass == null ) { ptd1EClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 318 ) ; } return ptd1EClass ; |
public class RawResponse { /** * Wrap response input stream if it is compressed , return input its self if not use compress */
private InputStream decompressBody ( ) { } } | if ( ! decompress ) { return body ; } // if has no body , some server still set content - encoding header ,
// GZIPInputStream wrap empty input stream will cause exception . we should check this
if ( method . equals ( Methods . HEAD ) || ( statusCode >= 100 && statusCode < 200 ) || statusCode == NOT_MODIFIED || statusC... |
public class CmsVfsSitemapService { /** * Checks whether a resource is a default file of a folder . < p >
* @ param resource the resource to check
* @ return true if the resource is the default file of a folder
* @ throws CmsException if something goes wrong */
private boolean isDefaultFile ( CmsResource resource... | CmsObject cms = getCmsObject ( ) ; if ( resource . isFolder ( ) ) { return false ; } CmsResource parent = cms . readResource ( CmsResource . getParentFolder ( cms . getSitePath ( resource ) ) , CmsResourceFilter . ONLY_VISIBLE_NO_DELETED ) ; CmsResource defaultFile = cms . readDefaultFile ( parent , CmsResourceFilter .... |
public class WSJdbcPreparedStatement { /** * Method getParameterMetaData .
* < p > Retrieves the number , types and properties of this PreparedStatement object ' s
* parameters . < / p >
* @ return a ParameterMetaData object that contains information about the number ,
* types and properties of this PreparedSta... | final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "getParameterMetaData" ) ; ParameterMetaData pmd = null ; try { pmd = pstmtImpl . getParameterMetaData ( ) ; } catch ( SQLException ex ) { FFDCFilter . processException ( ex , "com.i... |
public class CmsDynamicFunctionParser { /** * Converts a ( possibly null ) content value location to a string . < p >
* @ param cms the current CMS context
* @ param location the content value location
* @ param defaultValue the value to return if the location is null
* @ return the string value of the content ... | if ( location == null ) { return defaultValue ; } return location . asString ( cms ) ; |
public class ModelsImpl { /** * Create an entity role for an entity in the application .
* @ param appId The application ID .
* @ param versionId The version ID .
* @ param entityId The entity model ID .
* @ param createPatternAnyEntityRoleOptionalParameter the object representing the optional parameters to be ... | return ServiceFuture . fromResponse ( createPatternAnyEntityRoleWithServiceResponseAsync ( appId , versionId , entityId , createPatternAnyEntityRoleOptionalParameter ) , serviceCallback ) ; |
public class ImageAttribute { /** * The launch permissions .
* @ return The launch permissions . */
public java . util . List < LaunchPermission > getLaunchPermissions ( ) { } } | if ( launchPermissions == null ) { launchPermissions = new com . amazonaws . internal . SdkInternalList < LaunchPermission > ( ) ; } return launchPermissions ; |
public class AsyncBufferedInputStream { public void run ( ) { } } | try { final byte [ ] buffer = new byte [ 512 * 1024 ] ; while ( ! this . closed . get ( ) ) { int r = this . is . read ( buffer , 0 , buffer . length ) ; if ( r < 0 ) throw new EOFException ( ) ; int offset = 0 ; while ( r > 0 ) { final int w = write ( buffer , offset , r ) ; r -= w ; offset += w ; } } } catch ( IOExce... |
public class V1InstanceCreator { /** * Create a new retrospective with a name .
* @ param name The name of the retrospective .
* @ param project The project this retrospective belongs to .
* @ return A newly minted Retrospective that exists in the VersionOne
* system . */
public Retrospective retrospective ( St... | return retrospective ( name , project , null ) ; |
public class StringUtf8Utils { /** * This method must have the same result with JDK ' s String . getBytes . */
public static byte [ ] encodeUTF8 ( String str ) { } } | byte [ ] bytes = allocateReuseBytes ( str . length ( ) * MAX_BYTES_PER_CHAR ) ; int len = encodeUTF8 ( str , bytes ) ; return Arrays . copyOf ( bytes , len ) ; |
public class FindbugsPlugin { /** * Read saved bug collection and findbugs project from file . Will populate
* the bug collection and findbugs project session properties if successful .
* If there is no saved bug collection and project for the eclipse project ,
* then FileNotFoundException will be thrown .
* @ ... | SortedBugCollection bugCollection ; IPath bugCollectionPath = getBugCollectionFile ( project ) ; // Don ' t turn the path to an IFile because it isn ' t local to the
// project .
// see the javadoc for org . eclipse . core . runtime . Plugin
File bugCollectionFile = bugCollectionPath . toFile ( ) ; if ( ! bugCollection... |
public class DistributedLoadCommand { /** * Loads a file or directory in Alluxio space , makes it resident in memory .
* @ param filePath The { @ link AlluxioURI } path to load into Alluxio memory
* @ throws AlluxioException when Alluxio exception occurs
* @ throws IOException when non - Alluxio exception occurs ... | URIStatus status = mFileSystem . getStatus ( filePath ) ; if ( status . isFolder ( ) ) { List < URIStatus > statuses = mFileSystem . listStatus ( filePath ) ; for ( URIStatus uriStatus : statuses ) { AlluxioURI newPath = new AlluxioURI ( uriStatus . getPath ( ) ) ; load ( newPath , replication ) ; } } else { Thread thr... |
public class CmsSecurityManager { /** * Writes a list of properties for a specified resource . < p >
* Code calling this method has to ensure that the no properties
* < code > a , b < / code > are contained in the specified list so that < code > a . equals ( b ) < / code > ,
* otherwise an exception is thrown . <... | CmsDbContext dbc = m_dbContextFactory . getDbContext ( context ) ; try { checkOfflineProject ( dbc ) ; checkPermissions ( dbc , resource , CmsPermissionSet . ACCESS_WRITE , true , CmsResourceFilter . IGNORE_EXPIRATION ) ; // write the properties
m_driverManager . writePropertyObjects ( dbc , resource , properties , tru... |
public class Command { /** * Flattens ( serializes , dehydrates , etc . ) this instance to a binary representation .
* @ return a binary representation
* @ throws IOException */
public byte [ ] toBytes ( ) throws IOException { } } | ByteArrayOutputStream bout = new ByteArrayOutputStream ( ) ; ZipOutputStream stream = new ZipOutputStream ( bout ) ; ZipEntry ze = new ZipEntry ( "async_message" ) ; stream . putNextEntry ( ze ) ; stream . write ( toXml ( ) . getBytes ( ) ) ; stream . flush ( ) ; stream . close ( ) ; return bout . toByteArray ( ) ; |
public class DBInstance { /** * The AWS Identity and Access Management ( IAM ) roles associated with the DB instance .
* @ param associatedRoles
* The AWS Identity and Access Management ( IAM ) roles associated with the DB instance . */
public void setAssociatedRoles ( java . util . Collection < DBInstanceRole > as... | if ( associatedRoles == null ) { this . associatedRoles = null ; return ; } this . associatedRoles = new com . amazonaws . internal . SdkInternalList < DBInstanceRole > ( associatedRoles ) ; |
public class StartTimerDecisionAttributesMarshaller { /** * Marshall the given parameter object . */
public void marshall ( StartTimerDecisionAttributes startTimerDecisionAttributes , ProtocolMarshaller protocolMarshaller ) { } } | if ( startTimerDecisionAttributes == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( startTimerDecisionAttributes . getTimerId ( ) , TIMERID_BINDING ) ; protocolMarshaller . marshall ( startTimerDecisionAttributes . getControl ( ) , CONTROL_... |
public class LocaleData { /** * Returns LocaleDisplayPattern for this locale , e . g . , { 0 } ( { 1 } )
* @ return locale display pattern as a String . */
public String getLocaleDisplayPattern ( ) { } } | ICUResourceBundle locDispBundle = ( ICUResourceBundle ) langBundle . get ( LOCALE_DISPLAY_PATTERN ) ; String localeDisplayPattern = locDispBundle . getStringWithFallback ( PATTERN ) ; return localeDisplayPattern ; |
public class JobSchedulesImpl { /** * Checks the specified job schedule exists .
* @ param jobScheduleId The ID of the job schedule which you want to check .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the observable to the Boolean object */
public Observable < Boolean ... | return existsWithServiceResponseAsync ( jobScheduleId ) . map ( new Func1 < ServiceResponseWithHeaders < Boolean , JobScheduleExistsHeaders > , Boolean > ( ) { @ Override public Boolean call ( ServiceResponseWithHeaders < Boolean , JobScheduleExistsHeaders > response ) { return response . body ( ) ; } } ) ; |
public class STCImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public void eSet ( int featureID , Object newValue ) { } } | switch ( featureID ) { case AfplibPackage . STC__FRGCOLOR : setFRGCOLOR ( ( Integer ) newValue ) ; return ; case AfplibPackage . STC__PRECSION : setPRECSION ( ( Integer ) newValue ) ; return ; } super . eSet ( featureID , newValue ) ; |
public class JFapByteBuffer { /** * Returns a dump of the specified number of bytes of the specified buffer .
* @ param buffer
* @ param bytesToDump
* @ return Returns a String containing a dump of the buffer . */
private static String getDumpBytes ( WsByteBuffer buffer , int bytesToDump , boolean rewind ) { } } | // Save the current position
int pos = buffer . position ( ) ; if ( rewind ) { buffer . rewind ( ) ; } byte [ ] data = null ; int start ; int count = bytesToDump ; if ( count > buffer . remaining ( ) || count == ENTIRE_BUFFER ) count = buffer . remaining ( ) ; if ( buffer . hasArray ( ) ) { data = buffer . array ( ) ; ... |
public class ReusableFutureLatch { /** * If the latch is released , completes the provided future without invoking the provided
* runnable . If the latch is not released it will add the provided future to the list to be
* notified and runs the provided runnable if there is not already one running .
* If there are... | boolean run = false ; boolean complete = false ; T result = null ; Throwable e = null ; synchronized ( lock ) { if ( released ) { complete = true ; result = this . result ; e = this . e ; } else { waitingFutures . add ( toNotify ) ; if ( runningThreadId == null ) { run = true ; runningThreadId = Thread . currentThread ... |
public class Util { /** * Removes values from the array that meet the criteria for removal via the supplied
* { @ link Predicate } value */
@ SuppressWarnings ( "unchecked" ) public static < T > T [ ] removeValues ( T [ ] values , Predicate < T > shouldRemove , Class < T > type ) { } } | Collection < T > collection = new ArrayList < > ( values . length ) ; for ( T value : values ) { if ( shouldRemove . negate ( ) . test ( value ) ) { collection . add ( value ) ; } } T [ ] array = ( T [ ] ) Array . newInstance ( type , collection . size ( ) ) ; return collection . toArray ( array ) ; |
public class ObserverSpliterator { /** * Offers new item . Return true if item was consumed .
* False if another thread was not waiting for the item .
* @ param t
* @ return */
public boolean offer ( T t ) { } } | try { return queue . offer ( t , offerTimeout , timeUnit ) ; } catch ( InterruptedException ex ) { throw new IllegalArgumentException ( ex ) ; } |
public class TreeEditDistance { /** * This method is a modified version of a " tree _ edit _ graph ( tree & , tree & , GRAPH < string , string > & ) "
* from http : / / www . lsi . upc . es / ~ valiente / algorithm / combin . cpp . Modifications allowed to take into account
* various ( other than equivalence ) sema... | // cache size of lists
int list1size = list1 . size ( ) ; int list2size = list2 . size ( ) ; // this stores the order number for each Node
HashMap < INode , Integer > orderNum1 = new HashMap < INode , Integer > ( ) ; HashMap < INode , Integer > orderNum2 = new HashMap < INode , Integer > ( ) ; // calculate preorder num... |
public class CommerceWishListItemPersistenceImpl { /** * Removes the commerce wish list item with the primary key from the database . Also notifies the appropriate model listeners .
* @ param primaryKey the primary key of the commerce wish list item
* @ return the commerce wish list item that was removed
* @ thro... | Session session = null ; try { session = openSession ( ) ; CommerceWishListItem commerceWishListItem = ( CommerceWishListItem ) session . get ( CommerceWishListItemImpl . class , primaryKey ) ; if ( commerceWishListItem == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + pri... |
public class HtmlWriter { /** * Get the configuration string as a content , replacing spaces
* with non - breaking spaces .
* @ param key the key to look for in the configuration file
* @ return a content tree for the text */
public Content getNonBreakResource ( String key ) { } } | String text = configuration . getText ( key ) ; Content c = configuration . newContent ( ) ; int start = 0 ; int p ; while ( ( p = text . indexOf ( " " , start ) ) != - 1 ) { c . addContent ( text . substring ( start , p ) ) ; c . addContent ( RawHtml . nbsp ) ; start = p + 1 ; } c . addContent ( text . substring ( sta... |
public class RtfCtrlWordMap { /** * Get the HashMap object containing the control words .
* Initializes the instance if this is the first instantiation
* of RtfCtrlWords class .
* @ since 2.0.8 */
public RtfCtrlWordHandler getCtrlWordHandler ( String ctrlWord ) { } } | try { if ( ctrlWords . containsKey ( ctrlWord ) ) { // add 1 to known control words
return ( RtfCtrlWordHandler ) ctrlWords . get ( ctrlWord ) ; } else { // add 1 to unknown control words
return ( RtfCtrlWordHandler ) ctrlWords . get ( "unknown" ) ; } } catch ( SecurityException e ) { // TODO Auto - generated catch blo... |
public class DefaultTraceCollector { /** * This method processes the values associated with the start or end of a scoped
* activity .
* @ param trace The trace
* @ param node The node
* @ param direction The direction
* @ param headers The optional headers
* @ param values The values */
protected void proce... | if ( node . interactionNode ( ) ) { Message m = null ; if ( direction == Direction . In ) { m = ( ( InteractionNode ) node ) . getIn ( ) ; if ( m == null ) { m = new Message ( ) ; ( ( InteractionNode ) node ) . setIn ( m ) ; } } else { m = ( ( InteractionNode ) node ) . getOut ( ) ; if ( m == null ) { m = new Message (... |
public class XESLogParser { /** * Takes a String containing { @ link DataUsage } identifier separated by commas , removes every leading and training whitespace , and parses them into a { @ link List } . < br >
* TODO move to TOVAL into enum { @ link DataUsage } ? */
private static List < DataUsage > parseDataUsageStr... | List < String > dataUsageStrings = Arrays . asList ( dataUsageString . split ( "\\s*,\\s*" ) ) ; List < DataUsage > dataUsageList = new ArrayList < > ( dataUsageStrings . size ( ) ) ; for ( String d : dataUsageStrings ) { DataUsage dataUsage = DataUsage . parse ( d ) ; if ( ! dataUsageList . contains ( dataUsage ) ) da... |
public class MemoryCacheUtils { /** * Generates key for memory cache for incoming image ( URI + size ) . < br / >
* Pattern for cache key - < b > [ imageUri ] _ [ width ] x [ height ] < / b > . */
public static String generateKey ( String imageUri , ImageSize targetSize ) { } } | return new StringBuilder ( imageUri ) . append ( URI_AND_SIZE_SEPARATOR ) . append ( targetSize . getWidth ( ) ) . append ( WIDTH_AND_HEIGHT_SEPARATOR ) . append ( targetSize . getHeight ( ) ) . toString ( ) ; |
public class OutHttpApp { /** * Returns the next byte buffer . */
@ Override public byte [ ] nextBuffer ( int offset ) throws IOException { } } | if ( offset < 0 || SIZE < offset ) { throw new IllegalStateException ( L . l ( "Invalid offset: " + offset ) ) ; } if ( _bufferCapacity <= SIZE || _bufferCapacity <= offset + _bufferSize ) { _offset = offset ; flushByteBuffer ( ) ; return buffer ( ) ; } else { _tBuf . length ( offset ) ; _bufferSize += offset ; TempBuf... |
public class ProgressFeedback { /** * A helper method that executes a task in a worker thread and displays feedback
* in a progress windows .
* @ param strNotice The text notice to display in the ProgressWindow .
* @ param task The task to execute in a separate ( worker ) thread . */
public static ProgressFeedbac... | return runWithProgress ( strNotice , task , false , false ) ; |
public class CleverTapAPI { /** * Returns the device push token or null
* @ param type com . clevertap . android . sdk . PushType ( FCM or GCM )
* @ return String device token or null
* NOTE : on initial install calling getDevicePushToken may return null , as the device token is
* not yet available
* Implemen... | switch ( type ) { case GCM : return getCachedGCMToken ( ) ; case FCM : return getCachedFCMToken ( ) ; default : return null ; } |
public class TrackedActiveConnection { /** * Initializes this TrackedActiveConnection , copying the data associated
* with the given active connection record . At a minimum , the identifier
* of this active connection will be set , the start date , and the
* identifier of the associated connection will be copied ... | super . init ( currentUser ) ; this . connectionRecord = activeConnectionRecord ; // Copy all non - sensitive data from given record
this . connection = activeConnectionRecord . getConnection ( ) ; this . sharingProfileIdentifier = activeConnectionRecord . getSharingProfileIdentifier ( ) ; this . identifier = activeCon... |
public class BoneCPConfig { /** * Queries taking longer than this limit to execute are logged .
* @ param queryExecuteTimeLimit the limit to set in milliseconds .
* @ param timeUnit */
public void setQueryExecuteTimeLimit ( long queryExecuteTimeLimit , TimeUnit timeUnit ) { } } | this . queryExecuteTimeLimitInMs = TimeUnit . MILLISECONDS . convert ( queryExecuteTimeLimit , timeUnit ) ; |
public class QueryParametersLazyList { /** * This is reference implementation of universal read function for scrollable ResultSets .
* Currently it is unoptimized , due to possible compatibility issues .
* @ param row row which should be read
* @ return read value
* @ throws SQLException */
private QueryParamet... | int currentRow = getCurrentResultSet ( ) . getRow ( ) ; QueryParameters result = null ; if ( currentRow == 0 ) { // before first or last
if ( getCurrentResultSet ( ) . isAfterLast ( ) == true ) { // positioning on last
getCurrentResultSet ( ) . last ( ) ; } else if ( getCurrentResultSet ( ) . isBeforeFirst ( ) == true ... |
public class BlockAndLocation { /** * Implement write of Writable */
public void write ( DataOutput out ) throws IOException { } } | out . writeLong ( blockId ) ; out . writeLong ( blockGenStamp ) ; super . write ( out ) ; |
public class CmsImageFormatHandler { /** * Execute on width change . < p >
* @ param width the new width */
public void onWidthChange ( String width ) { } } | int value = CmsClientStringUtil . parseInt ( width ) ; if ( ( m_croppingParam . getTargetWidth ( ) == value ) || ( value == 0 ) ) { // the value has not changed , ignore ' 0'
return ; } m_croppingParam . setTargetWidth ( value ) ; if ( m_ratioLocked ) { m_croppingParam . setTargetHeight ( ( value * m_originalHeight ) /... |
public class Levy { /** * Sets location of the Levy distribution .
* @ param location the new location */
public void setLocation ( double location ) { } } | if ( Double . isNaN ( location ) || Double . isInfinite ( location ) ) throw new ArithmeticException ( "location must be a real number" ) ; this . location = location ; |
public class BucketSnippets { /** * [ VARIABLE " my _ blob _ name " ] */
public Blob createBlobFromByteArray ( String blobName ) { } } | // [ START createBlobFromByteArray ]
Blob blob = bucket . create ( blobName , "Hello, World!" . getBytes ( UTF_8 ) ) ; // [ END createBlobFromByteArray ]
return blob ; |
public class Math { /** * Returns the minimum value of an array . */
public static int min ( int [ ] x ) { } } | int m = x [ 0 ] ; for ( int n : x ) { if ( n < m ) { m = n ; } } return m ; |
public class XMLParser { /** * / * ( non - Javadoc )
* @ see com . abubusoft . kripton . xml . XmlPullParser # getAttributeValue ( java . lang . String , java . lang . String ) */
@ Override public String getAttributeValue ( String namespace , String name ) { } } | for ( int i = ( attributeCount * 4 ) - 4 ; i >= 0 ; i -= 4 ) { if ( attributes [ i + 2 ] . equals ( name ) && ( namespace == null || attributes [ i ] . equals ( namespace ) ) ) { return attributes [ i + 3 ] ; } } return null ; |
public class BlobServicesInner { /** * Sets the properties of a storage account ’ s Blob service , including properties for Storage Analytics and CORS ( Cross - Origin Resource Sharing ) rules .
* @ param resourceGroupName The name of the resource group within the user ' s subscription . The name is case insensitive ... | return ServiceFuture . fromResponse ( setServicePropertiesWithServiceResponseAsync ( resourceGroupName , accountName , parameters ) , serviceCallback ) ; |
public class VecMathDenseDoubleMatrix2D { /** * non - singular matrices only */
public Matrix [ ] lu ( ) { } } | if ( isSquare ( ) ) { GMatrix m = ( GMatrix ) matrix . clone ( ) ; GMatrix lu = ( GMatrix ) matrix . clone ( ) ; GVector piv = new GVector ( matrix . getNumCol ( ) ) ; m . LUD ( lu , piv ) ; Matrix l = new VecMathDenseDoubleMatrix2D ( lu ) . tril ( Ret . NEW , 0 ) ; for ( int i = ( int ) l . getRowCount ( ) - 1 ; i != ... |
public class AnimatedImageCompositor { /** * Renders the specified frame . Only should be called on the rendering thread .
* @ param frameNumber the frame to render
* @ param bitmap the bitmap to render into */
public void renderFrame ( int frameNumber , Bitmap bitmap ) { } } | Canvas canvas = new Canvas ( bitmap ) ; canvas . drawColor ( Color . TRANSPARENT , PorterDuff . Mode . SRC ) ; // If blending is required , prepare the canvas with the nearest cached frame .
int nextIndex ; if ( ! isKeyFrame ( frameNumber ) ) { // Blending is required . nextIndex points to the next index to render onto... |
public class ObjectsImplementInterfaces { /** * when completely open */
private void checkObjectImplementsInterface ( GraphQLObjectType objectType , GraphQLInterfaceType interfaceType , SchemaValidationErrorCollector validationErrorCollector ) { } } | List < GraphQLFieldDefinition > fieldDefinitions = interfaceType . getFieldDefinitions ( ) ; for ( GraphQLFieldDefinition interfaceFieldDef : fieldDefinitions ) { GraphQLFieldDefinition objectFieldDef = objectType . getFieldDefinition ( interfaceFieldDef . getName ( ) ) ; if ( objectFieldDef == null ) { validationError... |
public class LogSemiring { /** * ( non - Javadoc )
* @ see
* edu . cmu . sphinx . fst . weight . Semiring # times ( edu . cmu . sphinx . fst . weight . float ,
* edu . cmu . sphinx . fst . weight . float ) */
@ Override public double times ( double w1 , double w2 ) { } } | if ( ! isMember ( w1 ) || ! isMember ( w2 ) ) { return Double . NEGATIVE_INFINITY ; } return w1 + w2 ; |
public class CmsDriverManager { /** * Collects the groups which constitute a given role . < p >
* @ param dbc the database context
* @ param roleGroupName the group related to the role
* @ param directUsersOnly if true , only the group belonging to the entry itself wil
* @ param accumulator a map for memoizing ... | Set < CmsGroup > result = new HashSet < CmsGroup > ( ) ; if ( accumulator . get ( roleGroupName ) != null ) { return accumulator . get ( roleGroupName ) ; } CmsGroup group = readGroup ( dbc , roleGroupName ) ; // check that the group really exists
if ( ( group == null ) || ( ! group . isRole ( ) ) ) { throw new CmsDbEn... |
public class transformpolicylabel { /** * Use this API to fetch transformpolicylabel resource of given name . */
public static transformpolicylabel get ( nitro_service service , String labelname ) throws Exception { } } | transformpolicylabel obj = new transformpolicylabel ( ) ; obj . set_labelname ( labelname ) ; transformpolicylabel response = ( transformpolicylabel ) obj . get_resource ( service ) ; return response ; |
public class DefaultFastFileStorageClient { /** * 上传文件
* < pre >
* 可通过fastFile对象配置
* 1 . 上传图像分组
* 2 . 上传元数据metaDataSet
* < pre / >
* @ param fastFile
* @ return */
@ Override public StorePath uploadFile ( FastFile fastFile ) { } } | Validate . notNull ( fastFile . getInputStream ( ) , "上传文件流不能为空" ) ; Validate . notBlank ( fastFile . getFileExtName ( ) , "文件扩展名不能为空" ) ; // 获取存储节点
StorageNode client = getStorageNode ( fastFile . getGroupName ( ) ) ; // 上传文件
return uploadFileAndMetaData ( client , fastFile . getInputStream ( ) , fastFile . getFileSiz... |
public class CPIRGImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public Object eGet ( int featureID , boolean resolve , boolean coreType ) { } } | switch ( featureID ) { case AfplibPackage . CPIRG__GCGID : return getGCGID ( ) ; case AfplibPackage . CPIRG__PRT_FLAGS : return getPrtFlags ( ) ; case AfplibPackage . CPIRG__CODE_POINT : return getCodePoint ( ) ; case AfplibPackage . CPIRG__COUNT : return getCount ( ) ; } return super . eGet ( featureID , resolve , cor... |
public class HashedArray { /** * For testing purposes ( only ) we can remove items from the HashedArray . This is not
* very efficient , but is only used for testcases so probably doesn ' t matter too much .
* This method has been made synchronized for thread - safety , just in case anyone ever uses it */
synchroni... | Element oldValue = get ( index ) ; if ( oldValue != null ) { int bind = ( ( int ) index & Integer . MAX_VALUE ) % buckets . length ; Element [ ] bucket = buckets [ bind ] ; int count = counts [ bind ] ; int i = 0 ; while ( bucket [ i ] . getIndex ( ) != index ) i ++ ; System . arraycopy ( bucket , i + 1 , bucket , i , ... |
public class RuleElementImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public NotificationChain basicSetGuard ( Expression newGuard , NotificationChain msgs ) { } } | Expression oldGuard = guard ; guard = newGuard ; if ( eNotificationRequired ( ) ) { ENotificationImpl notification = new ENotificationImpl ( this , Notification . SET , SimpleAntlrPackage . RULE_ELEMENT__GUARD , oldGuard , newGuard ) ; if ( msgs == null ) msgs = notification ; else msgs . add ( notification ) ; } retur... |
public class ResponseCardMarshaller { /** * Marshall the given parameter object . */
public void marshall ( ResponseCard responseCard , ProtocolMarshaller protocolMarshaller ) { } } | if ( responseCard == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( responseCard . getVersion ( ) , VERSION_BINDING ) ; protocolMarshaller . marshall ( responseCard . getContentType ( ) , CONTENTTYPE_BINDING ) ; protocolMarshaller . marshal... |
public class OnDiskMatrix { /** * { @ inheritDoc } */
public void set ( int row , int col , double val ) { } } | int region = getMatrixRegion ( row , col ) ; int regionOffset = getRegionOffset ( row , col ) ; matrixRegions [ region ] . put ( regionOffset , val ) ; |
public class Date { /** * Returns the offset , measured in minutes , for the local time zone
* relative to UTC that is appropriate for the time represented by
* this < code > Date < / code > object .
* For example , in Massachusetts , five time zones west of Greenwich :
* < blockquote > < pre >
* new Date ( 9... | int zoneOffset ; if ( cdate == null ) { // Android - changed : Android specific time zone logic
GregorianCalendar cal = new GregorianCalendar ( fastTime ) ; zoneOffset = ( cal . get ( Calendar . ZONE_OFFSET ) + cal . get ( Calendar . DST_OFFSET ) ) ; } else { normalize ( ) ; zoneOffset = cdate . getZoneOffset ( ) ; } r... |
public class druidGParser { /** * druidG . g : 57:1 : grandDrop returns [ DropProgram program ] : ( s1 = dropStmnt ) ( WS ) ? ( ( OPT _ SEMI _ COLON ) ? | ( OPT _ AMPERSAND ) ? ) ; */
public final DropProgram grandDrop ( ) throws RecognitionException { } } | DropProgram program = null ; DropMeta s1 = null ; program = null ; try { // druidG . g : 59:2 : ( ( s1 = dropStmnt ) ( WS ) ? ( ( OPT _ SEMI _ COLON ) ? | ( OPT _ AMPERSAND ) ? ) )
// druidG . g : 59:4 : ( s1 = dropStmnt ) ( WS ) ? ( ( OPT _ SEMI _ COLON ) ? | ( OPT _ AMPERSAND ) ? )
{ // druidG . g : 59:4 : ( s1 = dro... |
public class StandardMethodTargetRegistrar { /** * Tries to locate an availability indicator ( a no - arg method that returns
* { @ link Availability } ) for the given command method . The following are tried in order
* for method { @ literal m } :
* < ol >
* < li > If { @ literal m } bears the { @ literal @ } ... | ShellMethodAvailability explicit = method . getAnnotation ( ShellMethodAvailability . class ) ; final Method indicator ; if ( explicit != null ) { Assert . isTrue ( explicit . value ( ) . length == 1 , "When set on a @" + ShellMethod . class . getSimpleName ( ) + " method, the value of the @" + ShellMethodAvailability ... |
public class LongestAliphaticChainDescriptor { /** * Depth - First - Search on an acyclic graph . Since we have no cycles we
* don ' t need the visit flags and only need to know which atom we came from .
* @ param adjlist adjacency list representation of grah
* @ param v the current atom index
* @ param prev th... | int longest = 0 ; for ( int w : adjlist [ v ] ) { if ( w == prev ) continue ; // no cycles so don ' t need to check previous
int length = getMaxDepth ( adjlist , w , v ) ; if ( length > longest ) longest = length ; } return 1 + longest ; |
public class RegularExpressionParser { /** * Read a token from the remaining text and return it .
* This is a default implementation that is overridable .
* In the default implementation , the starting and ending
* token characters are not escapable .
* If this implemenation is overridden , A token MUST ALWAYS ... | int start = 0 ; char c = remaining . charAt ( 0 ) ; int end ; if ( c == '<' ) { end = indexOfClose ( remaining , start , '<' , '>' ) ; } else if ( c == '[' ) { end = indexOfClose ( remaining , start , '[' , ']' ) ; } else { throw new IllegalStateException ( ) ; } // make sure we found the end
if ( end == - 1 ) { throw ... |
public class RepositoryApplicationConfiguration { /** * { @ link JpaTargetTagManagement } bean .
* @ return a new { @ link TargetTagManagement } */
@ Bean @ ConditionalOnMissingBean TargetTagManagement targetTagManagement ( final TargetTagRepository targetTagRepository , final TargetRepository targetRepository , fina... | return new JpaTargetTagManagement ( targetTagRepository , targetRepository , virtualPropertyReplacer , properties . getDatabase ( ) ) ; |
public class CommerceAccountUserRelPersistenceImpl { /** * Clears the cache for the commerce account user rel .
* The { @ link EntityCache } and { @ link FinderCache } are both cleared by this method . */
@ Override public void clearCache ( CommerceAccountUserRel commerceAccountUserRel ) { } } | entityCache . removeResult ( CommerceAccountUserRelModelImpl . ENTITY_CACHE_ENABLED , CommerceAccountUserRelImpl . class , commerceAccountUserRel . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; |
public class MariaDbClob { /** * Convert character position into byte position in UTF8 byte array .
* @ param charPosition charPosition
* @ return byte position */
private int utf8Position ( int charPosition ) { } } | int pos = offset ; for ( int i = 0 ; i < charPosition ; i ++ ) { int byteValue = data [ pos ] & 0xff ; if ( byteValue < 0x80 ) { pos += 1 ; } else if ( byteValue < 0xC2 ) { throw new UncheckedIOException ( "invalid UTF8" , new CharacterCodingException ( ) ) ; } else if ( byteValue < 0xE0 ) { pos += 2 ; } else if ( byte... |
public class FuncExtFunction { /** * Call the visitors for the function arguments . */
public void callArgVisitors ( XPathVisitor visitor ) { } } | for ( int i = 0 ; i < m_argVec . size ( ) ; i ++ ) { Expression exp = ( Expression ) m_argVec . elementAt ( i ) ; exp . callVisitors ( new ArgExtOwner ( exp ) , visitor ) ; } |
public class CmsXMLSearchConfigurationParser { /** * Returns the configured request parameter for the current query string , or the default parameter if the core is not specified .
* @ return The configured request parameter for the current query string , or the default parameter if the core is not specified . */
pri... | final String param = parseOptionalStringValue ( XML_ELEMENT_QUERYPARAM ) ; if ( param == null ) { return DEFAULT_QUERY_PARAM ; } else { return param ; } |
public class StringUtils { /** * Creates a random alphanumeric string of given length .
* @ param rnd The random number generator to use .
* @ param length The number of alphanumeric characters to append . */
public static String generateRandomAlphanumericString ( Random rnd , int length ) { } } | checkNotNull ( rnd ) ; checkArgument ( length >= 0 ) ; StringBuilder buffer = new StringBuilder ( length ) ; for ( int i = 0 ; i < length ; i ++ ) { buffer . append ( nextAlphanumericChar ( rnd ) ) ; } return buffer . toString ( ) ; |
public class KeyPadPanel { /** * Initialize layout . */
private void initializeLayout ( ) { } } | final GridBagLayout gbl = new GridBagLayout ( ) ; final GridBagConstraints gbc = new GridBagConstraints ( ) ; this . setLayout ( gbl ) ; LayoutExtensions . addComponent ( gbl , gbc , GridBagConstraints . CENTER , GridBagConstraints . BOTH , new Insets ( 2 , 2 , 2 , 2 ) , 0 , 0 , GridBagConstraints . REMAINDER , 1 , 0 ,... |
public class AstyanaxBlockedDataReaderDAO { /** * Scans for rows within the specified range , exclusive on start and inclusive on end . */
private Iterator < Row < ByteBuffer , DeltaKey > > rowScan ( final DeltaPlacement placement , final ByteBufferRange rowRange , final ByteBufferRange columnRange , final LimitCounter... | return rowScan ( placement , placement . getBlockedDeltaColumnFamily ( ) , rowRange , columnRange , limit , consistency ) ; |
public class XmlEscape { /** * Perform a ( configurable ) XML 1.0 < strong > escape < / strong > operation on a < tt > String < / tt > input ,
* writing results to a < tt > Writer < / tt > .
* This method will perform an escape operation according to the specified
* { @ link org . unbescape . xml . XmlEscapeType ... | escapeXml ( text , writer , XmlEscapeSymbols . XML10_SYMBOLS , type , level ) ; |
public class BidiWriter { /** * When we have OUTPUT _ REVERSE set on writeReordered ( ) , then we
* semantically write RTL runs in reverse and later reverse them again .
* Instead , we actually write them in forward order to begin with .
* However , if the RTL run was to be mirrored , we need to mirror here now
... | /* optimize for several combinations of options */
switch ( options & ( Bidi . REMOVE_BIDI_CONTROLS | Bidi . DO_MIRRORING ) ) { case 0 : { /* simply return the LTR run */
return src ; } case Bidi . DO_MIRRORING : { StringBuffer dest = new StringBuffer ( src . length ( ) ) ; /* do mirroring */
int i = 0 ; int c ; do { c... |
public class PatternFormatter { /** * Format the input parameters .
* @ see com . github . lisicnu . log4android . format . Formatter # format ( String , String , long ,
* com . github . lisicnu . log4android . Level , Object , Throwable ) */
public String format ( String clientID , String name , long time , Level ... | if ( ! patternParsed && pattern != null ) { parsePattern ( pattern ) ; } StringBuffer formattedStringBuffer = new StringBuffer ( 64 ) ; if ( commandArray != null ) { int length = commandArray . length ; for ( int index = 0 ; index < length ; index ++ ) { FormatCommandInterface currentConverter = commandArray [ index ] ... |
public class SvdImplicitQrDecompose_Ultimate { /** * With the QR algorithm it is possible for the found singular values to be native . This
* makes them all positive by multiplying it by a diagonal matrix that has */
private void makeSingularPositive ( ) { } } | numSingular = qralg . getNumberOfSingularValues ( ) ; singularValues = qralg . getSingularValues ( ) ; for ( int i = 0 ; i < numSingular ; i ++ ) { double val = singularValues [ i ] ; if ( val < 0 ) { singularValues [ i ] = - val ; if ( computeU ) { // compute the results of multiplying it by an element of - 1 at this ... |
public class StackedEnsembleModel { /** * For StackedEnsemble we call score on all the base _ models and then combine the results
* with the metalearner to create the final predictions frame .
* @ see Model # predictScoreImpl ( Frame , Frame , String , Job , boolean , CFuncRef )
* @ param adaptFrm Already adapted... | Frame levelOneFrame = new Frame ( Key . < Frame > make ( "preds_levelone_" + this . _key . toString ( ) + fr . _key ) ) ; // TODO : don ' t score models that have 0 coefficients / aren ' t used by the metalearner .
// also we should be able to parallelize scoring of base models
for ( Key < Model > baseKey : this . _par... |
public class AbstractResource { /** * Validates the owner name and returns the owner object .
* @ param req The HTTP request .
* @ param ownerName Name of the owner . It is optional .
* @ return The owner object
* @ throws WebApplicationException Throws exception if owner name does not exist . */
protected Prin... | PrincipalUser remoteUser = getRemoteUser ( req ) ; if ( ownerName == null || ownerName . isEmpty ( ) || ownerName . equalsIgnoreCase ( remoteUser . getUserName ( ) ) ) { // If ownerName is not present or if it is present and equal to remote username , then return remoteUser .
return remoteUser ; } else if ( remoteUser ... |
public class DefaultMonetaryCurrenciesSingletonSpi { /** * Get the names of the currently loaded providers .
* @ return the names of the currently loaded providers , never null . */
@ Override public Set < String > getProviderNames ( ) { } } | Set < String > result = new HashSet < > ( ) ; for ( CurrencyProviderSpi spi : Bootstrap . getServices ( CurrencyProviderSpi . class ) ) { try { result . add ( spi . getProviderName ( ) ) ; } catch ( Exception e ) { Logger . getLogger ( DefaultMonetaryCurrenciesSingletonSpi . class . getName ( ) ) . log ( Level . SEVERE... |
public class SingleInputGate { /** * Creates an input gate and all of its input channels . */
public static SingleInputGate create ( String owningTaskName , JobID jobId , InputGateDeploymentDescriptor igdd , NetworkEnvironment networkEnvironment , TaskEventPublisher taskEventPublisher , TaskActions taskActions , InputC... | final IntermediateDataSetID consumedResultId = checkNotNull ( igdd . getConsumedResultId ( ) ) ; final ResultPartitionType consumedPartitionType = checkNotNull ( igdd . getConsumedPartitionType ( ) ) ; final int consumedSubpartitionIndex = igdd . getConsumedSubpartitionIndex ( ) ; checkArgument ( consumedSubpartitionIn... |
public class RunnableUtils { /** * Safely sleeps for the given amount of milliseconds .
* If the { @ link Thread # currentThread ( ) current Thread } is { @ link Thread # isInterrupted ( ) interrupted } while
* { @ link Thread # sleep ( long , int ) sleeping } , then the { @ link Thread # currentThread ( ) current ... | boolean interrupted = false ; long timeout = ( System . currentTimeMillis ( ) + milliseconds ) ; while ( System . currentTimeMillis ( ) < timeout ) { try { Thread . sleep ( milliseconds ) ; } catch ( InterruptedException cause ) { interrupted = true ; } finally { milliseconds = Math . min ( timeout - System . currentTi... |
public class InitiatorLeaderMonitor { /** * Start monitoring the leaders . This is a blocking operation .
* @ throws InterruptedException
* @ throws ExecutionException */
public void start ( ) throws InterruptedException , ExecutionException { } } | Future < ? > task = es . submit ( handlePartitionChange ) ; task . get ( ) ; |
public class SpotifyApi { /** * Check if a track is saved in the users " Your Music " library .
* @ param ids The tracks IDs to check for in the user ' s Your Music library . Maximum : 50 IDs .
* @ return A builder object that can be used to check if an user has saved a track . */
public CheckUsersSavedTracksReques... | return new CheckUsersSavedTracksRequest . Builder ( accessToken ) . setDefaults ( httpManager , scheme , host , port ) . ids ( concat ( ids , ',' ) ) ; |
public class Isomorphism { /** * { @ inheritDoc } */
@ Override public synchronized Double getEnergyScore ( int key ) { } } | return ( bEnergies != null && ! bEnergies . isEmpty ( ) ) ? bEnergies . get ( key ) : null ; |
public class ChronoDateImpl { /** * Returns a copy of this date with the specified number of days subtracted .
* This subtracts the specified period in days to the date .
* The default implementation uses { @ link # plusDays ( long ) } .
* This instance is immutable and unaffected by this method call .
* @ para... | return ( daysToSubtract == Long . MIN_VALUE ? plusDays ( Long . MAX_VALUE ) . plusDays ( 1 ) : plusDays ( - daysToSubtract ) ) ; |
public class SibRaConnection { /** * Creates a unique identifier . Checks that the connection is valid and then
* delegates .
* @ return a unique identifier
* @ throws SIErrorException
* if the delegation fails
* @ throws SIResourceException
* if the delegation fails
* @ throws SIConnectionLostException
... | checkValid ( ) ; return _delegateConnection . createUniqueId ( ) ; |
public class MediaIntents { /** * Open the media player to play the given media
* @ param file The file path of the media to play .
* @ param type The mime type
* @ return the intent */
public static Intent newPlayMediaFileIntent ( File file , String type ) { } } | return newPlayMediaIntent ( Uri . fromFile ( file ) , type ) ; |
public class InflowRecoveryImpl { /** * { @ inheritDoc } */
public boolean deactivate ( ) throws Exception { } } | if ( activated ) { recovery . shutdown ( ) ; registry . removeXAResourceRecovery ( recovery ) ; activated = false ; return true ; } return false ; |
public class LoganSquare { /** * Parse a map of objects from an InputStream .
* @ param is The inputStream , most likely from your networking library .
* @ param jsonObjectClass The @ JsonObject class to parse the InputStream into */
public static < E > Map < String , E > parseMap ( InputStream is , Class < E > jso... | return mapperFor ( jsonObjectClass ) . parseMap ( is ) ; |
public class Net { /** * Unblock IPv6 source */
static void unblock6 ( FileDescriptor fd , byte [ ] group , int index , byte [ ] source ) throws IOException { } } | blockOrUnblock6 ( false , fd , group , index , source ) ; |
public class JsonModelDescriptorReader { /** * Finds an element in GSON ' s JSON document representation
* @ param jsonElement A ( potentially complex ) element to search in
* @ param jsonPath Path in the given JSON to the desired table . Levels are dot - separated .
* E . g . ' model . _ output . variable _ impo... | final String [ ] route = JSON_PATH_PATTERN . split ( jsonPath ) ; JsonElement result = jsonElement ; for ( String key : route ) { key = key . trim ( ) ; if ( key . isEmpty ( ) ) continue ; if ( result == null ) { result = JsonNull . INSTANCE ; break ; } if ( result . isJsonObject ( ) ) { result = ( ( JsonObject ) resul... |
public class IpcBuffer { /** * absolute get */
public byte getByte ( int index ) { } } | Segment segment = segmentContaining ( index ) ; return segment . buffer . get ( segment . relativize ( index ) ) ; |
public class ConfigEventDispatcher { /** * Dispatch ConfigurationEvent to the ConfigurationListeners .
* @ param pid
* - Service PID
* @ param factoryPid
* - factory PID
* @ param eventType
* - ConfigurationEvent type */
protected Future < ? > dispatch ( final int eventType , final String factoryPid , final... | final ConfigurationEvent event = createConfigurationEvent ( eventType , factoryPid , pid ) ; if ( event == null ) return null ; final ServiceReference < ConfigurationListener > [ ] refs = st . getServiceReferences ( ) ; if ( refs == null ) return null ; final String qPid = ( factoryPid != null ) ? factoryPid : pid ; re... |
public class DatabaseManager { /** * Registers a server as serving a given database . */
private static void registerServer ( Server server , Database db ) { } } | if ( ! serverMap . containsKey ( server ) ) { serverMap . put ( server , new HashSet ( ) ) ; } HashSet databases = ( HashSet ) serverMap . get ( server ) ; databases . add ( db ) ; |
public class ODMGBaseBeanImpl { /** * Store a collection of objects . */
public Collection storeObjects ( Collection objects ) { } } | try { /* One possibility of storing objects is to use the current transaction
associated with the container */
Transaction tx = odmg . currentTransaction ( ) ; for ( Iterator iterator = objects . iterator ( ) ; iterator . hasNext ( ) ; ) { tx . lock ( iterator . next ( ) , Transaction . WRITE ) ; } } catch ( LockNotG... |
public class SarlFieldBuilderImpl { /** * Add a modifier .
* @ param modifier the modifier to add . */
public void addModifier ( String modifier ) { } } | if ( ! Strings . isEmpty ( modifier ) ) { getSarlField ( ) . getModifiers ( ) . add ( modifier ) ; } |
public class Wrap { /** * wrap a single line
* @ param str
* @ param wrapTextLength
* @ return */
private static String wrapLine ( String str , int wrapTextLength ) { } } | int wtl = wrapTextLength ; if ( str . length ( ) <= wtl ) return str ; String sub = str . substring ( 0 , wtl ) ; String rest = str . substring ( wtl ) ; char firstR = rest . charAt ( 0 ) ; String ls = SystemUtil . getOSSpecificLineSeparator ( ) ; if ( firstR == ' ' || firstR == '\t' ) return sub + ls + wrapLine ( rest... |
public class ConceptMention { /** * getter for ref - gets The reference to the Concept , we use here the super type TOP in order to avoid the recursive dependencies between type systems
* @ generated
* @ return value of the feature */
public TOP getRef ( ) { } } | if ( ConceptMention_Type . featOkTst && ( ( ConceptMention_Type ) jcasType ) . casFeat_ref == null ) jcasType . jcas . throwFeatMissing ( "ref" , "de.julielab.jules.types.ConceptMention" ) ; return ( TOP ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( ConceptMention_Type ) jcasT... |
public class DecodingStateProtocolDecoder { /** * { @ inheritDoc } */
public void decode ( IoSession session , IoBuffer in , ProtocolDecoderOutput out ) throws Exception { } } | if ( this . session == null ) { this . session = session ; } else if ( this . session != session ) { throw new IllegalStateException ( getClass ( ) . getSimpleName ( ) + " is a stateful decoder. " + "You have to create one per session." ) ; } undecodedBuffers . offer ( in ) ; for ( ; ; ) { IoBuffer b = undecodedBuffer... |
public class AbstractCollectionValidatorBuilder { /** * Creates a new { @ link ObjectValidatorBuilder builder } for the { @ link AbstractValidator validators } to invoke for
* each { @ link Collection # contains ( Object ) element contained } in the { @ link Collection } . < br / >
* Use { @ link # and ( ) } to ret... | if ( this . subBuilder != null ) { throw new IllegalStateException ( "subBuilder already exists!" ) ; } SUB sub = factory . apply ( getSubFactory ( ) , null ) ; this . subBuilder = sub ; return sub ; |
public class CommerceDiscountRuleUtil { /** * Returns the last commerce discount rule in the ordered set where commerceDiscountId = & # 63 ; .
* @ param commerceDiscountId the commerce discount ID
* @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > )
* @ return the... | return getPersistence ( ) . findByCommerceDiscountId_Last ( commerceDiscountId , orderByComparator ) ; |
public class ASTUtils { /** * Determines if the given ASTType inherits or extends from the given inheritable ASTType
* @ param astType target
* @ param inheritable inheritance target
* @ return true if the given astType target inherits from the inheritable type with the given rules . */
public boolean inherits ( ... | if ( astType == null ) { return false ; } if ( inheritable == null || inheritable . equals ( OBJECT_TYPE ) ) { return true ; } if ( astType . equals ( inheritable ) ) { return true ; } for ( ASTType typeInterfaces : astType . getInterfaces ( ) ) { if ( inherits ( typeInterfaces , inheritable ) ) { return true ; } } ret... |
public class ListFiles { /** * Lists the contents of the given { @ link File directory } displayed from the given { @ link String indent } .
* @ param directory { @ link File } referring to the directory for which the contents will be listed .
* @ param indent { @ link String } containing the characters of the inde... | directory = validateDirectory ( directory ) ; indent = Optional . ofNullable ( indent ) . filter ( StringUtils :: hasText ) . orElse ( StringUtils . EMPTY_STRING ) ; printDirectoryName ( indent , directory ) ; String directoryContentIndent = buildDirectoryContentIndent ( indent ) ; stream ( sort ( nullSafeArray ( direc... |
public class NettyOptions { /** * The number of event loop threads . */
public int threads ( ) { } } | int threads = reader . getInteger ( THREADS , DEFAULT_THREADS ) ; if ( threads == - 1 ) { return Runtime . getRuntime ( ) . availableProcessors ( ) ; } return threads ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.