signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class StreamSource { /** * Close the stream . */
public void close ( ) { } } | StreamSource ss = _indirectSource ; _indirectSource = null ; if ( ss != null ) { ss . freeUseCount ( ) ; } else { freeUseCount ( ) ; } |
public class ImmutableGrid { /** * Obtains an immutable grid by copying a set of cells .
* @ param < R > the type of the value
* @ param rowCount the number of rows , zero or greater
* @ param columnCount the number of columns , zero or greater
* @ param cells the cells to copy , not null
* @ return the immut... | if ( cells == null ) { throw new IllegalArgumentException ( "Cells must not be null" ) ; } if ( ! cells . iterator ( ) . hasNext ( ) ) { return new EmptyGrid < R > ( rowCount , columnCount ) ; } return new SparseImmutableGrid < R > ( rowCount , columnCount , cells ) ; |
public class AbstractPluginBeanValidation { /** * attribute from parent declaration */
private void _processValue ( @ Nonnull final CValuePropertyInfo aProperty , final ClassOutline aClassOutline ) { } } | final String sPropertyName = aProperty . getName ( false ) ; final XSComponent aDefinition = aProperty . getSchemaComponent ( ) ; if ( aDefinition instanceof RestrictionSimpleTypeImpl ) { final RestrictionSimpleTypeImpl aParticle = ( RestrictionSimpleTypeImpl ) aDefinition ; final XSSimpleType aSimpleType = aParticle .... |
public class Matrix4d { /** * / * ( non - Javadoc )
* @ see org . joml . Matrix4dc # getTransposed ( int , java . nio . ByteBuffer ) */
public ByteBuffer getTransposed ( int index , ByteBuffer dest ) { } } | MemUtil . INSTANCE . putTransposed ( this , index , dest ) ; return dest ; |
public class ComputePoliciesInner { /** * Lists the Data Lake Analytics compute policies within the specified Data Lake Analytics account . An account supports , at most , 50 policies .
* @ param nextPageLink The NextLink from the previous successful call to List operation .
* @ throws IllegalArgumentException thro... | ServiceResponse < Page < ComputePolicyInner > > response = listByAccountNextSinglePageAsync ( nextPageLink ) . toBlocking ( ) . single ( ) ; return new PagedList < ComputePolicyInner > ( response . body ( ) ) { @ Override public Page < ComputePolicyInner > nextPage ( String nextPageLink ) { return listByAccountNextSing... |
public class StringUtil { /** * adds zeros add the begin of a int example : addZeros ( 2,3 ) return " 002"
* @ param i number to add nulls
* @ param size
* @ return min len of return value ; */
public static String addZeros ( int i , int size ) { } } | String rtn = Caster . toString ( i ) ; if ( rtn . length ( ) < size ) return repeatString ( "0" , size - rtn . length ( ) ) + rtn ; return rtn ; |
public class BinarySerde { /** * Setup the given byte buffer
* for serialization ( note that this is for uncompressed INDArrays )
* 4 bytes int for rank
* 4 bytes for data opType
* shape buffer
* data buffer
* @ param arr the array to setup
* @ param allocated the byte buffer to setup
* @ param rewind w... | // ensure we send data to host memory
Nd4j . getExecutioner ( ) . commit ( ) ; Nd4j . getAffinityManager ( ) . ensureLocation ( arr , AffinityManager . Location . HOST ) ; ByteBuffer buffer = arr . data ( ) . pointer ( ) . asByteBuffer ( ) . order ( ByteOrder . nativeOrder ( ) ) ; ByteBuffer shapeBuffer = arr . shapeIn... |
public class DescribeEventTypesResult { /** * A list of event types that match the filter criteria . Event types have a category ( < code > issue < / code > ,
* < code > accountNotification < / code > , or < code > scheduledChange < / code > ) , a service ( for example , < code > EC2 < / code > ,
* < code > RDS < /... | if ( eventTypes == null ) { this . eventTypes = null ; return ; } this . eventTypes = new java . util . ArrayList < EventType > ( eventTypes ) ; |
public class CmsDefaultWorkflowManager { /** * Gets the localized label for a given CMS context and key . < p >
* @ param cms the CMS context
* @ param key the localization key
* @ return the localized label */
public String getLabel ( CmsObject cms , String key ) { } } | CmsMessages messages = Messages . get ( ) . getBundle ( getLocale ( cms ) ) ; return messages . key ( key ) ; |
public class ConversionTracker { /** * Gets the countingType value for this ConversionTracker .
* @ return countingType * How to count events for this conversion tracker .
* If countingType is MANY _ PER _ CLICK , then all conversion
* events are counted .
* If countingType is ONE _ PER _ CLICK , then only the ... | return countingType ; |
public class RegionDiskClient { /** * Creates a snapshot of this regional disk .
* < p > Sample code :
* < pre > < code >
* try ( RegionDiskClient regionDiskClient = RegionDiskClient . create ( ) ) {
* ProjectRegionDiskName disk = ProjectRegionDiskName . of ( " [ PROJECT ] " , " [ REGION ] " , " [ DISK ] " ) ; ... | CreateSnapshotRegionDiskHttpRequest request = CreateSnapshotRegionDiskHttpRequest . newBuilder ( ) . setDisk ( disk == null ? null : disk . toString ( ) ) . setSnapshotResource ( snapshotResource ) . build ( ) ; return createSnapshotRegionDisk ( request ) ; |
public class HsqlTimer { /** * ( Re ) starts background processing of the task queue .
* @ throws IllegalStateException if this timer is shut down .
* @ see # shutdown ( )
* @ see # shutdownImmediately ( ) */
public synchronized void restart ( ) throws IllegalStateException { } } | if ( this . isShutdown ) { throw new IllegalStateException ( "isShutdown==true" ) ; } else if ( this . taskRunnerThread == null ) { this . taskRunnerThread = this . threadFactory . newThread ( this . taskRunner ) ; this . taskRunnerThread . start ( ) ; } else { this . taskQueue . unpark ( ) ; } |
public class NucleotideWSSaver { /** * Adds or updates a single nucleotide to the nucleotide store using the URL configured in
* { @ code MonomerStoreConfiguration } .
* @ param nucleotide to save
* @ return response from the webservice */
public String saveNucleotideToStore ( Nucleotide nucleotide ) { } } | String res = "" ; CloseableHttpResponse response = null ; try { response = WSAdapterUtils . putResource ( nucleotide . toJSON ( ) , MonomerStoreConfiguration . getInstance ( ) . getWebserviceNucleotidesPutFullURL ( ) ) ; LOG . debug ( response . getStatusLine ( ) . toString ( ) ) ; EntityUtils . consume ( response . ge... |
public class RequireBuilder { /** * Creates a new require ( ) function . You are still responsible for invoking
* either { @ link Require # install ( Scriptable ) } or
* { @ link Require # requireMain ( Context , String ) } to effectively make it
* available to its JavaScript program .
* @ param cx the current ... | return new Require ( cx , globalScope , moduleScriptProvider , preExec , postExec , sandboxed ) ; |
public class PerlinNoise { /** * Cosine interpolation .
* @ param x1 X1 Value .
* @ param x2 X2 Value .
* @ param a Value .
* @ return Value . */
private double CosineInterpolate ( double x1 , double x2 , double a ) { } } | double f = ( 1 - Math . cos ( a * Math . PI ) ) * 0.5 ; return x1 * ( 1 - f ) + x2 * f ; |
public class ObjectResult { /** * Serialize this ObjectResult into a UNode tree . The root node is called " doc " .
* @ return This object serialized into a UNode tree . */
public UNode toDoc ( ) { } } | // Root node is called " doc " .
UNode result = UNode . createMapNode ( "doc" ) ; // Each child of " doc " is a simple VALUE node .
for ( String fieldName : m_resultFields . keySet ( ) ) { // In XML , we want the element name to be " field " when the node name is " _ ID " .
if ( fieldName . equals ( OBJECT_ID ) ) { res... |
public class Header { /** * Converts the header ' s flags into a String */
public String printFlags ( ) { } } | StringBuffer sb = new StringBuffer ( ) ; for ( int i = 0 ; i < 16 ; i ++ ) if ( validFlag ( i ) && getFlag ( i ) ) { sb . append ( Flags . string ( i ) ) ; sb . append ( " " ) ; } return sb . toString ( ) ; |
public class Rapids { /** * Parse a " num list " . This could be either a plain list of numbers , or a range , or a list of ranges . For example
* [ 2 3 4 5 6 7 ] can also be written as [ 2:6 ] or [ 2:2 4:4:1 ] . The format of each " range " is ` start : count [ : stride ] ` ,
* and it denotes the sequence { start ... | ArrayList < Double > bases = new ArrayList < > ( ) ; ArrayList < Double > strides = new ArrayList < > ( ) ; ArrayList < Long > counts = new ArrayList < > ( ) ; while ( skipWS ( ) != ']' ) { double base = number ( ) ; double count = 1 ; double stride = 1 ; if ( skipWS ( ) == ':' ) { eatChar ( ':' ) ; skipWS ( ) ; count ... |
public class CmsConvertXmlThread { /** * Gets file xml content . < p >
* @ param cmsResource current resource CmsResource
* @ param cmsFile current CmsFile
* @ param cmsObject current CmsObject
* @ param xmlContent xml content to write
* @ param encodingType encoding type
* @ param report I _ CmsReport */
p... | try { byte [ ] fileContent = xmlContent . getBytes ( encodingType ) ; cmsFile . setContents ( fileContent ) ; // write into file
cmsObject . writeFile ( cmsFile ) ; // unlock resource
try { cmsObject . unlockResource ( cmsObject . getSitePath ( cmsResource ) ) ; } catch ( CmsException e ) { m_errorTransform += 1 ; repo... |
public class AbstractDatabaseEngine { /** * Creates a prepared statement .
* @ param name The name of the prepared statement .
* @ param query The query .
* @ param timeout The timeout ( in seconds ) if applicable . Only applicable if > 0.
* @ param recovering True if calling from recovering , false otherwise .... | if ( ! recovering ) { if ( stmts . containsKey ( name ) ) { throw new NameAlreadyExistsException ( String . format ( "There's already a PreparedStatement with the name '%s'" , name ) ) ; } try { getConnection ( ) ; } catch ( final Exception e ) { throw new DatabaseEngineException ( "Could not create prepared statement"... |
public class Transformers { /** * Gets the element value .
* @ param parent the parent
* @ param elementName the element name
* @ return the element value */
private String getElementValue ( Element parent , String elementName ) { } } | String value = null ; NodeList nodes = parent . getElementsByTagName ( elementName ) ; if ( nodes . getLength ( ) > 0 ) { value = nodes . item ( 0 ) . getChildNodes ( ) . item ( 0 ) . getNodeValue ( ) ; } return value ; |
public class CSSURLHelper { /** * Internal method to escape a CSS URL . Because this method is only called for
* quoted URLs , only the quote character itself needs to be quoted .
* @ param sURL
* The URL to be escaped . May not be < code > null < / code > .
* @ param cQuoteChar
* The quote char that is used ... | ValueEnforcer . notNull ( sURL , "URL" ) ; if ( sURL . indexOf ( cQuoteChar ) < 0 && sURL . indexOf ( CSSParseHelper . URL_ESCAPE_CHAR ) < 0 ) { // Found nothing to quote
return sURL ; } final StringBuilder aSB = new StringBuilder ( sURL . length ( ) * 2 ) ; for ( final char c : sURL . toCharArray ( ) ) { // Escape the... |
public class BlobContainersInner { /** * Creates a new container under the specified account as described by request body . The container resource includes metadata and properties for that container . It does not include a list of the blobs contained by the container .
* @ param resourceGroupName The name of the reso... | return createWithServiceResponseAsync ( resourceGroupName , accountName , containerName ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class DataService { /** * Common method to prepare the request params for voidRequest operation for both sync and async calls
* @ param entity
* the entity
* @ return IntuitMessage the intuit message
* @ throws FMSException */
private < T extends IEntity > IntuitMessage prepareVoidRequest ( T entity ) th... | IntuitMessage intuitMessage = new IntuitMessage ( ) ; RequestElements requestElements = intuitMessage . getRequestElements ( ) ; // set the request parameters
Map < String , String > requestParameters = requestElements . getRequestParameters ( ) ; requestParameters . put ( RequestElements . REQ_PARAM_METHOD_TYPE , Meth... |
public class PolylineSplitMerge { /** * Selects and splits the side defined by the e0 corner . If convex a check is performed to
* ensure that the polyline will be convex still . */
void setSplitVariables ( List < Point2D_I32 > contour , Element < Corner > e0 , Element < Corner > e1 ) { } } | int distance0 = CircularIndex . distanceP ( e0 . object . index , e1 . object . index , contour . size ( ) ) ; int index0 = CircularIndex . plusPOffset ( e0 . object . index , minimumSideLength , contour . size ( ) ) ; int index1 = CircularIndex . minusPOffset ( e1 . object . index , minimumSideLength , contour . size ... |
public class Spies { /** * Proxies an consumer spying for parameter .
* @ param < T > the consumer parameter type
* @ param consumer the consumer to be spied
* @ param param a box that will be containing the spied parameter
* @ return the proxied consumer */
public static < T > Consumer < T > spy ( Consumer < T... | return new CapturingConsumer < T > ( consumer , param ) ; |
public class RouteFiltersInner { /** * Updates a route filter in a specified resource group .
* @ param resourceGroupName The name of the resource group .
* @ param routeFilterName The name of the route filter .
* @ param routeFilterParameters Parameters supplied to the update route filter operation .
* @ throw... | return updateWithServiceResponseAsync ( resourceGroupName , routeFilterName , routeFilterParameters ) . toBlocking ( ) . last ( ) . body ( ) ; |
public class VTimeZone { /** * Format integer number */
private static String numToString ( int num , int width ) { } } | String str = Integer . toString ( num ) ; int len = str . length ( ) ; if ( len >= width ) { return str . substring ( len - width , len ) ; } StringBuilder sb = new StringBuilder ( width ) ; for ( int i = len ; i < width ; i ++ ) { sb . append ( '0' ) ; } sb . append ( str ) ; return sb . toString ( ) ; |
public class FessMessages { /** * Add the created action message for the key ' success . upload _ bad _ word ' with parameters .
* < pre >
* message : Uploaded Bad Word file .
* < / pre >
* @ param property The property name for the message . ( NotNull )
* @ return this . ( NotNull ) */
public FessMessages ad... | assertPropertyNotNull ( property ) ; add ( property , new UserMessage ( SUCCESS_upload_bad_word ) ) ; return this ; |
public class AWSCognitoIdentityProviderClient { /** * Stops the user import job .
* @ param stopUserImportJobRequest
* Represents the request to stop the user import job .
* @ return Result of the StopUserImportJob operation returned by the service .
* @ throws ResourceNotFoundException
* This exception is th... | request = beforeClientExecution ( request ) ; return executeStopUserImportJob ( request ) ; |
public class TLEImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public boolean eIsSet ( int featureID ) { } } | switch ( featureID ) { case AfplibPackage . TLE__TRIPLETS : return triplets != null && ! triplets . isEmpty ( ) ; } return super . eIsSet ( featureID ) ; |
public class Contract { /** * CHECKSTYLE : OFF : RedundantThrows */
public static void requireValid ( @ NotNull final Validator validator , @ NotNull final Object value , @ Nullable final Class < ? > ... groups ) throws ConstraintViolationException { } } | // CHECKSTYLE : ON
final Set < ConstraintViolation < Object > > constraintViolations = validator . validate ( value ) ; if ( constraintViolations . size ( ) > 0 ) { final StringBuffer sb = new StringBuffer ( ) ; for ( final ConstraintViolation < Object > constraintViolation : constraintViolations ) { if ( sb . length (... |
public class Range { /** * Checks whether the specified element occurs within this range .
* @ param element
* the element to check for , null returns false
* @ return true if the specified element occurs within this range */
public boolean contains ( final T element ) { } } | if ( element == null ) { return false ; } return lowerEndpoint . includes ( element ) && upperEndpoint . includes ( element ) ; |
public class Mediawiki { /** * get a Post response
* @ param queryUrl
* @ param params
* - direct query parameters
* @ param token
* - a token if any
* @ param pFormData
* - the form data - either as multipart of urlencoded
* @ return - the client Response
* @ throws Exception */
public ClientResponse... | params = params . replace ( "|" , "%7C" ) ; params = params . replace ( "+" , "%20" ) ; // modal handling of post
FormDataMultiPart form = null ; MultivaluedMap < String , String > lFormData = null ; if ( pFormDataObject instanceof FormDataMultiPart ) { form = ( FormDataMultiPart ) pFormDataObject ; } else { @ Suppress... |
public class CodecCollector { /** * Collect group using spans .
* @ param list
* the list
* @ param docSet
* the doc set
* @ param docBase
* the doc base
* @ param docCounter
* the doc counter
* @ param matchData
* the match data
* @ param occurencesSum
* the occurences sum
* @ param occurence... | int total = 0 ; if ( docCounter + 1 < docSet . size ( ) ) { // initialize
int nextDocCounter = docCounter + 1 ; long [ ] subSum = new long [ list . size ( ) ] ; int [ ] subN = new int [ list . size ( ) ] ; boolean [ ] newNextDocs = new boolean [ list . size ( ) ] ; boolean newNextDoc ; int [ ] spansNextDoc = new int [ ... |
public class ClassHelper { /** * Load a collection of classes .
* @ param typeNames
* The class names .
* @ return The collection of classes . */
public static Collection < Class < ? > > getTypes ( Collection < String > typeNames ) { } } | Set < Class < ? > > types = new HashSet < > ( ) ; for ( String typeName : typeNames ) { types . add ( ClassHelper . getType ( typeName ) ) ; } return types ; |
public class SoftHashMap { /** * Returns a collection view of the mappings contained in this map . Each
* element in the returned collection is a < tt > Map . Entry < / tt > . The
* collection is backed by the map , so changes to the map are reflected in
* the collection , and vice - versa . The collection suppor... | if ( mEntrySet == null ) { mEntrySet = new AbstractSet ( ) { public Iterator iterator ( ) { return getHashIterator ( IdentityMap . ENTRIES ) ; } public boolean contains ( Object o ) { if ( ! ( o instanceof Map . Entry ) ) { return false ; } Map . Entry entry = ( Map . Entry ) o ; Object key = entry . getKey ( ) ; Entry... |
public class JimfsFileChannel { /** * Begins a blocking operation , making the operation interruptible . Returns { @ code true } if the
* channel was open and the thread was added as a blocking thread ; returns { @ code false } if the
* channel was closed . */
private boolean beginBlocking ( ) { } } | begin ( ) ; synchronized ( blockingThreads ) { if ( isOpen ( ) ) { blockingThreads . add ( Thread . currentThread ( ) ) ; return true ; } return false ; } |
public class BaseTable { /** * Is the last record in the file ?
* @ return false if file position is at last record . */
public boolean doHasNext ( ) throws DBException { } } | if ( ( m_iRecordStatus & DBConstants . RECORD_AT_EOF ) != 0 ) return false ; // Already at EOF , can ' t be one after
if ( ( m_iRecordStatus & DBConstants . RECORD_NEXT_PENDING ) != 0 ) return true ; // Already one waiting
boolean bAtEOF = true ; if ( ! this . isOpen ( ) ) this . open ( ) ; // Make sure any listeners a... |
public class DataSynchronizer { /** * Deletes a single synchronized document by its given id . No deletion will occur if the _ id is
* not being synchronized .
* @ param nsConfig the namespace synchronization config of the namespace where the document
* lives .
* @ param documentId the _ id of the document . */... | final MongoNamespace namespace = nsConfig . getNamespace ( ) ; final ChangeEvent < BsonDocument > event ; final Lock lock = this . syncConfig . getNamespaceConfig ( namespace ) . getLock ( ) . writeLock ( ) ; lock . lock ( ) ; final CoreDocumentSynchronizationConfig config ; try { config = syncConfig . getSynchronizedD... |
public class Coref { /** * getter for ref - gets
* @ generated
* @ return value of the feature */
public Coref getRef ( ) { } } | if ( Coref_Type . featOkTst && ( ( Coref_Type ) jcasType ) . casFeat_ref == null ) jcasType . jcas . throwFeatMissing ( "ref" , "de.julielab.jules.types.muc7.Coref" ) ; return ( Coref ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( Coref_Type ) jcasType ) . casFeatCode_ref ) ) )... |
public class RequestServer { /** * Returns the name of the request , that is the request url without the
* request suffix . E . g . converts " / GBM . html / crunk " into " / GBM / crunk " */
String requestName ( String url ) { } } | String s = "." + toString ( ) ; int i = url . indexOf ( s ) ; if ( i == - 1 ) return url ; // No , or default , type
return url . substring ( 0 , i ) + url . substring ( i + s . length ( ) ) ; |
public class PlatformLogger { /** * Returns true if a message of the given level would actually
* be logged by this logger . */
public boolean isLoggable ( Level level ) { } } | if ( level == null ) { throw new NullPointerException ( ) ; } // performance - sensitive method : use two monomorphic call - sites
JavaLoggerProxy jlp = javaLoggerProxy ; return jlp != null ? jlp . isLoggable ( level ) : loggerProxy . isLoggable ( level ) ; |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "http://www.ibm.com/websphere/wim" , name = "employeeNumber" ) public JAXBElement < String > createEmployeeNumber ( String value ) { } } | return new JAXBElement < String > ( _EmployeeNumber_QNAME , String . class , null , value ) ; |
public class PackageMatcher { /** * Returns a matching { @ link PackageMatcher . Result Result }
* against the provided package name . If the package identifier of this { @ link PackageMatcher } does not match the
* given package name , then { @ link Optional # absent ( ) } is returned .
* @ param aPackage The pa... | Matcher matcher = packagePattern . matcher ( aPackage ) ; return matcher . matches ( ) ? Optional . of ( new Result ( matcher ) ) : Optional . < Result > absent ( ) ; |
public class QuerySpec { /** * Evaluates this querySpec against the provided list in memory . It supports
* sorting , filter and paging .
* TODO currently ignores relations and inclusions , has room for
* improvements
* @ param < T > the type of resources in this Iterable
* @ param resources resources
* @ r... | DefaultResourceList < T > resultList = new DefaultResourceList < > ( ) ; resultList . setMeta ( new DefaultPagedMetaInformation ( ) ) ; apply ( resources , resultList ) ; return resultList ; |
public class Tickets { /** * 创建临时二维码
* @ return */
public Ticket temporary ( int expires , int sceneId ) { } } | String url = WxEndpoint . get ( "url.ticket.create" ) ; String json = "{\"expire_seconds\":%s,\"action_name\":\"QR_SCENE\",\"action_info\":{\"scene\":{\"scene_id\":%s}}}" ; logger . debug ( "create temporary ticket : {}" , String . format ( json , expires , sceneId ) ) ; String response = wxClient . post ( url , String... |
public class XPathScanner { /** * Checks if the given character is a special character .
* @ param paramInput
* The character to check .
* @ return Returns true , if the character is a special character . */
private boolean isSpecial ( final char paramInput ) { } } | return ( paramInput == ')' ) || ( paramInput == ';' ) || ( paramInput == ',' ) || ( paramInput == '@' ) || ( paramInput == '[' ) || ( paramInput == ']' ) || ( paramInput == '=' ) || ( paramInput == '"' ) || ( paramInput == '\'' ) || ( paramInput == '$' ) || ( paramInput == ':' ) || ( paramInput == '|' ) || ( paramInput... |
public class FileUtils { /** * Renames the source file to the target file . If the target file exists , then we attempt to
* delete it . If the delete or the rename operation fails , then we raise an exception
* @ param source the source file
* @ param target the new ' name ' for the source file
* @ throws IOEx... | Preconditions . checkNotNull ( source ) ; Preconditions . checkNotNull ( target ) ; // delete the target first - but ignore the result
target . delete ( ) ; if ( source . renameTo ( target ) ) { return ; } Throwable innerException = null ; if ( target . exists ( ) ) { innerException = new FileDeleteException ( target .... |
public class ZealotKhala { /** * 根据指定的模式字符串生成 " NOT LIKE " 模糊查询的SQL片段 .
* < p > 示例 : 传入 { " b . title " , " Java % " } 两个参数 , 生成的SQL片段为 : " b . title NOT LIKE ' Java % ' " < / p >
* @ param field 数据库字段
* @ param pattern 模式字符串
* @ return ZealotKhala实例 */
public ZealotKhala notLikePattern ( String field , String ... | return this . doLikePattern ( ZealotConst . ONE_SPACE , field , pattern , true , false ) ; |
public class ServerAuthenticatorNone { /** * Convinience routine for selecting SOCKSv5 authentication .
* This method reads in authentication methods that client supports ,
* checks wether it supports given method . If it does , the notification
* method is written back to client , that this method have been chos... | int num_methods = in . read ( ) ; if ( num_methods <= 0 ) return false ; byte method_ids [ ] = new byte [ num_methods ] ; byte response [ ] = new byte [ 2 ] ; boolean found = false ; response [ 0 ] = ( byte ) 5 ; // SOCKS version
response [ 1 ] = ( byte ) 0xFF ; // Not found , we are pessimistic
int bread = 0 ; // byte... |
public class QueuedExecutions { /** * Fetch Activereference for an execution . Returns null , if execution not in queue */
public ExecutionReference getReference ( final int executionId ) { } } | if ( hasExecution ( executionId ) ) { return this . queuedFlowMap . get ( executionId ) . getFirst ( ) ; } return null ; |
public class ForeignBus { /** * / * ( non - Javadoc )
* @ see com . ibm . ws . sib . processor . runtime . SIMPMessageHandlerControllable # isTemporary ( ) */
public boolean isTemporary ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "isTemporary" ) ; boolean isTemporary = _foreignBus . isTemporary ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "isTemporary" , new Boolean ( isTemporary ) ) ; return is... |
public class AuthorizationCodeFlow { /** * Returns a new credential instance based on the given user ID .
* @ param userId user ID or { @ code null } if not using a persisted credential store */
@ SuppressWarnings ( "deprecation" ) private Credential newCredential ( String userId ) { } } | Credential . Builder builder = new Credential . Builder ( method ) . setTransport ( transport ) . setJsonFactory ( jsonFactory ) . setTokenServerEncodedUrl ( tokenServerEncodedUrl ) . setClientAuthentication ( clientAuthentication ) . setRequestInitializer ( requestInitializer ) . setClock ( clock ) ; if ( credentialDa... |
public class ObjectInputStream { /** * Reads and discards block data and objects until TC _ ENDBLOCKDATA is found .
* @ throws IOException
* If an IO exception happened when reading the optional class
* annotation .
* @ throws ClassNotFoundException
* If the class corresponding to the class descriptor could n... | primitiveData = emptyStream ; boolean resolve = mustResolve ; mustResolve = false ; do { byte tc = nextTC ( ) ; if ( tc == TC_ENDBLOCKDATA ) { mustResolve = resolve ; return ; // End of annotation
} readContent ( tc ) ; } while ( true ) ; |
public class ClassDiscoveryUtil { /** * Returns an array of concrete classes in the given package that implement the
* specified interface .
* @ param basePackage the name of the package containing the classes to discover
* @ param requiredInterface the inteface that the returned classes must implement
* @ retu... | return getClasses ( basePackage , new Class [ ] { requiredInterface } ) ; |
public class RespokeClient { /** * Retrieve the history of messages that have been persisted for a specific group . Only those
* messages that have been marked to be persisted when sent will show up in the history .
* @ param groupId The groups to pull history for
* @ param maxMessages The maximum number of messa... | if ( ! isConnected ( ) ) { getGroupHistoryError ( completionListener , "Can't complete request when not connected, " + "Please reconnect!" ) ; return ; } if ( ( maxMessages == null ) || ( maxMessages < 1 ) ) { getGroupHistoryError ( completionListener , "maxMessages must be at least 1" ) ; return ; } if ( ( groupId == ... |
public class AstaDatabaseReader { /** * Process resource assignments .
* @ throws SQLException */
private void processAssignments ( ) throws SQLException { } } | List < Row > permanentAssignments = getRows ( "select * from permanent_schedul_allocation inner join perm_resource_skill on permanent_schedul_allocation.allocatiop_of = perm_resource_skill.perm_resource_skillid where permanent_schedul_allocation.projid=? order by permanent_schedul_allocation.permanent_schedul_allocatio... |
public class ResourceWriter { /** * 将XML内容写入文件
* @ param content XML内容
* @ param filename 需要写入的文件
* @ throws NoSuchPathException 写入文件时 , 无法发现路径引发的异常
* @ throws IOException 文件写入异常 */
public void writeToFile ( StringBuffer content , String filename ) throws NoSuchPathException , IOException { } } | try { FileWriter input = new FileWriter ( filename ) ; input . write ( content . toString ( ) , 0 , content . length ( ) ) ; input . flush ( ) ; input . close ( ) ; } catch ( FileNotFoundException e ) { throw new NoSuchPathException ( e ) ; } |
public class KTypeArrayDeque { /** * { @ inheritDoc } */
@ Override public KType removeFirst ( ) { } } | assert size ( ) > 0 : "The deque is empty." ; final KType result = Intrinsics . < KType > cast ( buffer [ head ] ) ; buffer [ head ] = Intrinsics . empty ( ) ; head = oneRight ( head , buffer . length ) ; return result ; |
public class GeomajasController { /** * Gets the { @ link SerializationPolicy } for given module base URL and strong name if there is one .
* Use { @ link # setSerializationPolicyLocator ( SerializationPolicyLocator ) } to provide an alternative approach .
* @ param request the HTTP request being serviced
* @ par... | if ( getSerializationPolicyLocator ( ) == null ) { return super . doGetSerializationPolicy ( request , moduleBaseURL , strongName ) ; } else { return getSerializationPolicyLocator ( ) . loadPolicy ( request , moduleBaseURL , strongName ) ; } |
public class Node { /** * Gets all the property types , in sorted order . */
private byte [ ] getSortedPropTypes ( ) { } } | int count = 0 ; for ( PropListItem x = propListHead ; x != null ; x = x . next ) { count ++ ; } byte [ ] keys = new byte [ count ] ; for ( PropListItem x = propListHead ; x != null ; x = x . next ) { count -- ; keys [ count ] = x . propType ; } Arrays . sort ( keys ) ; return keys ; |
public class CmsGallerySearchParameters { /** * Checks if the given list of resource type names contains a function - like type . < p >
* @ param resourceTypes the collection of resource types
* @ return true if the list contains a function - like type */
private boolean containsFunctionType ( List < String > resou... | if ( resourceTypes . contains ( CmsXmlDynamicFunctionHandler . TYPE_FUNCTION ) ) { return true ; } if ( resourceTypes . contains ( CmsResourceTypeFunctionConfig . TYPE_NAME ) ) { return true ; } return false ; |
public class IntStream { /** * Returns a { @ code IntStream } produced by iterative application of a accumulation function
* to reduction value and next element of the current stream .
* Produces a { @ code IntStream } consisting of { @ code value1 } , { @ code acc ( value1 , value2 ) } ,
* { @ code acc ( acc ( v... | Objects . requireNonNull ( accumulator ) ; return new IntStream ( params , new IntScan ( iterator , accumulator ) ) ; |
public class CPDefinitionInventoryUtil { /** * Returns the cp definition inventory with the primary key or throws a { @ link NoSuchCPDefinitionInventoryException } if it could not be found .
* @ param CPDefinitionInventoryId the primary key of the cp definition inventory
* @ return the cp definition inventory
* @... | return getPersistence ( ) . findByPrimaryKey ( CPDefinitionInventoryId ) ; |
public class MonthRenderer { /** * returns the instance .
* @ return Renderer */
public static final Renderer < Date > instance ( ) { } } | // NOPMD it ' s thread save !
if ( MonthRenderer . instanceRenderer == null ) { synchronized ( MonthRenderer . class ) { if ( MonthRenderer . instanceRenderer == null ) { MonthRenderer . instanceRenderer = new MonthRenderer ( "yyyy-MM" ) ; } } } return MonthRenderer . instanceRenderer ; |
public class HintedHandOffManager { /** * read less columns ( mutations ) per page if they are very large */
private int calculatePageSize ( ) { } } | int meanColumnCount = hintStore . getMeanColumns ( ) ; if ( meanColumnCount <= 0 ) return PAGE_SIZE ; int averageColumnSize = ( int ) ( hintStore . getMeanRowSize ( ) / meanColumnCount ) ; if ( averageColumnSize <= 0 ) return PAGE_SIZE ; // page size of 1 does not allow actual paging b / c of > = behavior on startColum... |
public class CreateHITWithHITTypeRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( CreateHITWithHITTypeRequest createHITWithHITTypeRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( createHITWithHITTypeRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( createHITWithHITTypeRequest . getHITTypeId ( ) , HITTYPEID_BINDING ) ; protocolMarshaller . marshall ( createHITWithHITTypeRequest . getMaxAssignments ( ) , ... |
public class AsyncContextImpl { /** * Called by the container when the initial request is finished .
* If this request has a dispatch or complete call pending then
* this will be started . */
public synchronized void initialRequestDone ( ) { } } | initialRequestDone = true ; if ( previousAsyncContext != null ) { previousAsyncContext . onAsyncStart ( this ) ; previousAsyncContext = null ; } if ( ! processingAsyncTask ) { processAsyncTask ( ) ; } initiatingThread = null ; |
public class OptionUtil { /** * 获取文件夹路径 , 如果不存在则创建
* @ param folderPath
* @ return */
private static String getFolderPath ( String folderPath ) { } } | File folder = new File ( folderPath ) ; if ( folder . exists ( ) && folder . isFile ( ) ) { String tempPath = folder . getParent ( ) ; folder = new File ( tempPath ) ; } if ( ! folder . exists ( ) ) { folder . mkdirs ( ) ; } return folder . getPath ( ) ; |
public class PropertiesConfigurationSource { /** * Creates an instance of { @ link PropertiesConfigurationSource } .
* @ throws ConfigurationException if failed to create the { @ link PropertiesConfiguration }
* @ throws IOException if failed to read from { @ code reader } . */
public static PropertiesConfiguration... | return new PropertiesConfigurationSource ( createPropertiesConfiguration ( reader ) , priority ) ; |
public class ReflectionToStringBuilder { /** * Appends the fields and values defined by the given object of the given Class .
* If a cycle is detected as an object is & quot ; toString ( ) ' ed & quot ; , such an object is rendered as if
* < code > Object . toString ( ) < / code > had been called and not implemente... | if ( clazz . isArray ( ) ) { this . reflectionAppendArray ( this . getObject ( ) ) ; return ; } final Field [ ] fields = clazz . getDeclaredFields ( ) ; AccessibleObject . setAccessible ( fields , true ) ; for ( final Field field : fields ) { final String fieldName = field . getName ( ) ; if ( this . accept ( field ) )... |
public class Schedule { /** * The tags to apply to policy - created resources . These user - defined tags are in addition to the AWS - added lifecycle
* tags .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setTagsToAdd ( java . util . Collection ) } or { ... | if ( this . tagsToAdd == null ) { setTagsToAdd ( new java . util . ArrayList < Tag > ( tagsToAdd . length ) ) ; } for ( Tag ele : tagsToAdd ) { this . tagsToAdd . add ( ele ) ; } return this ; |
public class CmsADEConfigCacheState { /** * Helper method to retrieve the parent folder type or < code > null < / code > if none available . < p >
* @ param rootPath the path of a resource
* @ return the parent folder content type */
public String getParentFolderType ( String rootPath ) { } } | String parent = CmsResource . getParentFolder ( rootPath ) ; if ( parent == null ) { return null ; } String type = m_folderTypes . get ( parent ) ; // type may be null
return type ; |
public class SvgGraphicsContext { /** * Draw a circle on the < code > GraphicsContext < / code > .
* @ param parent
* parent group object
* @ param name
* The circle ' s name .
* @ param position
* The center position as a coordinate .
* @ param radius
* The circle ' s radius .
* @ param style
* The... | if ( isAttached ( ) ) { Element circle = helper . createOrUpdateElement ( parent , name , "circle" , style ) ; Dom . setElementAttribute ( circle , "cx" , Integer . toString ( ( int ) position . getX ( ) ) ) ; Dom . setElementAttribute ( circle , "cy" , Integer . toString ( ( int ) position . getY ( ) ) ) ; Dom . setEl... |
public class ExceptionDestinationHandlerImpl { /** * Returns a String representing the name of the default exception destination
* for this messaging engine */
public String getDefaultExceptionDestinationName ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getDefaultExceptionDestinationName" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "getDefaultExceptionDestinationName" , _defaultExceptionDestinationName ) ; return _defa... |
public class ClaimBean { /** * { @ inheritDoc } */
@ SuppressWarnings ( "unchecked" ) @ Override public T create ( CreationalContext < T > creationalContext ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "create" , creationalContext ) ; } T instance = null ; CDI < Object > cdi = CDI . current ( ) ; BeanManager beanManager = cdi . getBeanManager ( ) ; if ( beanType instanceof ParameterizedType ) { instance = createInstanceForP... |
public class ServiceException { /** * Sets the exception which caused this service exception .
* It ' s important to set this exception to understand
* and reproduce the error !
* @ param innerException Underlying exception */
public ServiceException setException ( Throwable innerException ) { } } | ByteArrayOutputStream messageOutputStream = new ByteArrayOutputStream ( ) ; innerException . printStackTrace ( new PrintStream ( messageOutputStream ) ) ; String exceptionMessage = messageOutputStream . toString ( ) ; this . fault . setException ( exceptionMessage ) ; return this ; |
public class MFSResource { /** * Get the ordered Map of most frequent senses for a lemma # pos entry .
* @ param lemmaPOSClass
* the lemma # pos entry
* @ return the ordered multimap of senses */
public TreeMultimap < Integer , String > getOrderedMap ( final String lemmaPOSClass ) { } } | final List < String > mfsList = this . multiMap . get ( lemmaPOSClass ) ; final TreeMultimap < Integer , String > mfsMap = TreeMultimap . create ( Ordering . natural ( ) . reverse ( ) , Ordering . natural ( ) ) ; if ( ! mfsList . isEmpty ( ) ) { getOrderedSenses ( mfsList , mfsMap ) ; } return mfsMap ; |
public class PythonExecutioner { /** * Executes python code . Also manages python thread state .
* @ param code */
public static void exec ( String code ) { } } | code = getFunctionalCode ( "__f_" + Thread . currentThread ( ) . getId ( ) , code ) ; acquireGIL ( ) ; log . info ( "CPython: PyRun_SimpleStringFlag()" ) ; log . info ( code ) ; int result = PyRun_SimpleStringFlags ( code , null ) ; if ( result != 0 ) { PyErr_Print ( ) ; throw new RuntimeException ( "exec failed" ) ; }... |
public class PredefinedPromotionLevelController { /** * Gets the list of predefined promotion levels . */
@ RequestMapping ( value = "predefinedPromotionLevels" , method = RequestMethod . GET ) public Resources < PredefinedPromotionLevel > getPredefinedPromotionLevelList ( ) { } } | return Resources . of ( predefinedPromotionLevelService . getPredefinedPromotionLevels ( ) , uri ( on ( getClass ( ) ) . getPredefinedPromotionLevelList ( ) ) ) . with ( Link . CREATE , uri ( on ( getClass ( ) ) . getPredefinedPromotionLevelCreationForm ( ) ) ) . with ( "_reorderPromotionLevels" , uri ( on ( getClass (... |
public class AWSDirectoryServiceClient { /** * Returns the shared directories in your account .
* @ param describeSharedDirectoriesRequest
* @ return Result of the DescribeSharedDirectories operation returned by the service .
* @ throws EntityDoesNotExistException
* The specified entity could not be found .
*... | request = beforeClientExecution ( request ) ; return executeDescribeSharedDirectories ( request ) ; |
public class OntologyBuilderImpl { /** * Normalizes and adds class disjointness axiom
* DisjointClasses : = ' DisjointClasses ' ' ( ' axiomAnnotations
* subClassExpression subClassExpression { subClassExpression } ' ) ' < br >
* Implements rule [ C2 ] : < br >
* - eliminates all occurrences of bot and if the re... | for ( ClassExpression c : ces ) checkSignature ( c ) ; classAxioms . addDisjointness ( ces ) ; |
public class TaskController { /** * Use DestroyJVMTaskRunnable to kill task JVM asynchronously . Wait for the
* confirmed kill if configured so .
* @ param context Task context */
final void destroyTaskJVM ( TaskControllerContext context ) { } } | Thread taskJVMDestroyer = new Thread ( new DestroyJVMTaskRunnable ( context ) ) ; taskJVMDestroyer . start ( ) ; if ( waitForConfirmedKill ) { try { taskJVMDestroyer . join ( ) ; } catch ( InterruptedException e ) { throw new IllegalStateException ( "destroyTaskJVM: Failed to join " + taskJVMDestroyer . getName ( ) ) ;... |
public class UpdateDescription { /** * Find the diff between two documents .
* < p > NOTE : This does not do a full diff on [ BsonArray ] . If there is
* an inequality between the old and new array , the old array will
* simply be replaced by the new one .
* @ param beforeDocument original document
* @ param ... | if ( beforeDocument == null || afterDocument == null ) { return new UpdateDescription ( new BsonDocument ( ) , new HashSet < > ( ) ) ; } return UpdateDescription . diff ( beforeDocument , afterDocument , null , new BsonDocument ( ) , new HashSet < > ( ) ) ; |
public class MonoT { /** * Construct an MonoT from an AnyM that wraps a monad containing MonoWs
* @ param monads AnyM that contains a monad wrapping an Mono
* @ return MonoT */
public static < W extends WitnessType < W > , A > MonoT < W , A > of ( final AnyM < W , Mono < A > > monads ) { } } | return new MonoT < > ( monads ) ; |
public class NFAppenderAttachableImpl { /** * ( non - Javadoc )
* @ see
* org . apache . log4j . helpers . AppenderAttachableImpl # getAppender ( java . lang
* . String ) */
@ Override public Appender getAppender ( String name ) { } } | if ( appenderList == null || name == null ) return null ; Appender appender ; Iterator < Appender > it = appenderList . iterator ( ) ; while ( it . hasNext ( ) ) { appender = ( Appender ) it . next ( ) ; if ( name . equals ( appender . getName ( ) ) ) { return appender ; } } return null ; |
public class MetricsTags { /** * Create host tag based on the local host .
* @ return host tag . */
public static String [ ] createHostTag ( ) { } } | String [ ] hostTag = { MetricsTags . TAG_HOST , null } ; try { hostTag [ 1 ] = InetAddress . getLocalHost ( ) . getHostName ( ) ; } catch ( UnknownHostException e ) { hostTag [ 1 ] = "unknown" ; } return hostTag ; |
public class CommonUtils { /** * TODO ignore case for windows */
public static File relativize ( File target , File baseDir ) { } } | String separator = File . separator ; try { String absTargetPath = target . getAbsolutePath ( ) ; absTargetPath = FilenameUtils . normalizeNoEndSeparator ( FilenameUtils . separatorsToSystem ( absTargetPath ) ) ; String absBasePath = baseDir . getAbsolutePath ( ) ; absBasePath = FilenameUtils . normalizeNoEndSeparator ... |
public class QueryBuilder { /** * Method to get an Attribute Query in case of a Select where criteria .
* @ return Attribute Query
* @ throws EFapsException on error */
protected AttributeQuery getAttributeQuery ( ) throws EFapsException { } } | AttributeQuery ret = this . getAttributeQuery ( getSelectAttributeName ( ) ) ; // check if in the linkto chain is one before this one
if ( ! this . attrQueryBldrs . isEmpty ( ) ) { final QueryBuilder queryBldr = this . attrQueryBldrs . values ( ) . iterator ( ) . next ( ) ; queryBldr . addWhereAttrInQuery ( queryBldr .... |
public class CmsXmlGenericWrapper { /** * Provides a type safe / generic wrapper for { @ link Document # selectNodes ( String ) } . < p >
* @ param doc the document to select the nodes from
* @ param xpathExpression the XPATH expression to select
* @ return type safe access to { @ link Document # selectNodes ( St... | return doc . selectNodes ( xpathExpression ) ; |
public class FctBnAccEntitiesProcessors { /** * < p > Get PrcAccSettingsSave ( create and put into map ) . < / p >
* @ param pAddParam additional param
* @ return requested PrcAccSettingsSave
* @ throws Exception - an exception */
protected final PrcAccSettingsSave < RS > lazyGetPrcAccSettingsSave ( final Map < S... | @ SuppressWarnings ( "unchecked" ) PrcAccSettingsSave < RS > proc = ( PrcAccSettingsSave < RS > ) this . processorsMap . get ( PrcAccSettingsSave . class . getSimpleName ( ) ) ; if ( proc == null ) { proc = new PrcAccSettingsSave < RS > ( ) ; proc . setSrvAccSettings ( getSrvAccSettings ( ) ) ; // assigning fully initi... |
public class CmsSearchManager { /** * Registers a new Solr core for the given index . < p >
* @ param index the index to register a new Solr core for
* @ throws CmsConfigurationException if no Solr server is configured */
@ SuppressWarnings ( "resource" ) public void registerSolrIndex ( CmsSolrIndex index ) throws ... | if ( ( m_solrConfig == null ) || ! m_solrConfig . isEnabled ( ) ) { // No solr server configured
throw new CmsConfigurationException ( Messages . get ( ) . container ( Messages . ERR_SOLR_NOT_ENABLED_0 ) ) ; } if ( m_solrConfig . getServerUrl ( ) != null ) { // HTTP Server configured
// TODO Implement multi core suppor... |
public class RSAUtils { /** * 公钥解密
* @ param encryptedData 已加密数据
* @ param publicKey 公钥 ( BASE64编码 )
* @ return
* @ throws Exception */
public static byte [ ] decryptByPublicKey ( byte [ ] encryptedData , String publicKey ) throws Exception { } } | String keyBytes = Base64Utils . decode ( publicKey ) ; X509EncodedKeySpec x509KeySpec = new X509EncodedKeySpec ( keyBytes . getBytes ( ) ) ; KeyFactory keyFactory = KeyFactory . getInstance ( KEY_ALGORITHM ) ; Key publicK = keyFactory . generatePublic ( x509KeySpec ) ; Cipher cipher = Cipher . getInstance ( keyFactory ... |
public class ReservoirItemsSketch { /** * Used during union operations to ensure we do not overwrite an existing reservoir . Creates a
* shallow copy of the reservoir .
* @ return A copy of the current sketch */
@ SuppressWarnings ( "unchecked" ) ReservoirItemsSketch < T > copy ( ) { } } | return new ReservoirItemsSketch < > ( reservoirSize_ , currItemsAlloc_ , itemsSeen_ , rf_ , ( ArrayList < T > ) data_ . clone ( ) ) ; |
public class ValidationFileUtil { /** * Write string to file .
* @ param file the file
* @ param content the content
* @ throws IOException the io exception */
public static void writeStringToFile ( File file , String content ) throws IOException { } } | OutputStream outputStream = getOutputStream ( file ) ; outputStream . write ( content . getBytes ( ) ) ; |
public class ServerPrepareStatementCache { /** * Remove eldestEntry .
* @ param eldest eldest entry
* @ return true if eldest entry must be removed */
@ Override public boolean removeEldestEntry ( Map . Entry eldest ) { } } | boolean mustBeRemoved = this . size ( ) > maxSize ; if ( mustBeRemoved ) { ServerPrepareResult serverPrepareResult = ( ( ServerPrepareResult ) eldest . getValue ( ) ) ; serverPrepareResult . setRemoveFromCache ( ) ; if ( serverPrepareResult . canBeDeallocate ( ) ) { try { protocol . forceReleasePrepareStatement ( serve... |
public class JarMain { /** * By default read config from current dir
* @ param args cmd
* @ throws java . io . IOException when the configuration file can ' t be found */
public static void main ( String [ ] args ) throws IOException { } } | if ( args . length == 0 ) { System . out . println ( "No command given, choose: \n\tinit\n\tpull\n\tpush\n\tpushTerms" ) ; return ; } Map < String , String > parameters = new HashMap < String , String > ( ) ; if ( args . length > 1 ) { for ( String s : args ) { String [ ] splitted = s . split ( "=" ) ; if ( splitted . ... |
public class AlphabeticIndex { /** * Add more index characters ( aside from what are in the locale )
* @ param additions additional characters to add to the index , such as those in Swedish .
* @ return this , for chaining */
public AlphabeticIndex < V > addLabels ( Locale ... additions ) { } } | for ( Locale addition : additions ) { addIndexExemplars ( ULocale . forLocale ( addition ) ) ; } buckets = null ; return this ; |
public class JSMessageImpl { /** * The BoxManager stuff is a black art so we ' ll lock round it to be safe . */
public boolean isPresent ( int accessor ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) JmfTr . entry ( this , tc , "isPresent" , new Object [ ] { Integer . valueOf ( accessor ) } ) ; boolean result ; if ( accessor < cacheSize ) { result = super . isPresent ( accessor ) ; } else if ( accessor < firstBoxed ) { result = getCase ( acc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.