signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class CSVSummariser { /** * Summarise the CSV file from the input { @ link Reader } and emit the summary CSV
* file to the output { @ link Writer } , including the given maximum number of
* sample values in the summary for each field .
* @ param input
* The input CSV file , as a { @ link Reader } .
* @... | runSummarise ( input , output , mappingOutput , maxSampleCount , showSampleCounts , debug , null , CSVStream . DEFAULT_HEADER_COUNT ) ; |
public class AnnotationValueBuilder { /** * Sets the value member to the given annotation class values .
* @ param name The name of the member
* @ param classValues The annotation [ ]
* @ return This builder */
public AnnotationValueBuilder < T > member ( String name , @ Nullable AnnotationClassValue < ? > ... cl... | if ( classValues != null ) { values . put ( name , classValues ) ; } return this ; |
public class Base64Kit { /** * 编码
* @ param value
* 字符串
* @ return { String } */
public static String encode ( String value ) { } } | byte [ ] val = value . getBytes ( UTF_8 ) ; return delegate . encode ( val ) ; |
public class DebugAminoAcid { /** * { @ inheritDoc } */
@ Override public Order getMinimumBondOrder ( IAtom atom ) { } } | logger . debug ( "Getting minimum bond order for atom: " , atom ) ; return super . getMinimumBondOrder ( atom ) ; |
public class AccountListPoolNodeCountsNextOptions { /** * Set the time the request was issued . Client libraries typically set this to the current system clock time ; set it explicitly if you are calling the REST API directly .
* @ param ocpDate the ocpDate value to set
* @ return the AccountListPoolNodeCountsNextO... | if ( ocpDate == null ) { this . ocpDate = null ; } else { this . ocpDate = new DateTimeRfc1123 ( ocpDate ) ; } return this ; |
public class GradleDependencyResolutionHelper { /** * Parse the plugin definition file and extract the version details from it . */
public static String determinePluginVersion ( ) { } } | if ( pluginVersion == null ) { final String fileName = "META-INF/gradle-plugins/thorntail.properties" ; ClassLoader loader = Thread . currentThread ( ) . getContextClassLoader ( ) ; String version ; try ( InputStream stream = loader . getResourceAsStream ( fileName ) ) { Properties props = new Properties ( ) ; props . ... |
public class KeypadAdapter { /** * Vibrate device on each key press if the feature is enabled */
private void vibrateIfEnabled ( ) { } } | final boolean enabled = styledAttributes . getBoolean ( R . styleable . PinLock_vibrateOnClick , false ) ; if ( enabled ) { Vibrator v = ( Vibrator ) context . getSystemService ( Context . VIBRATOR_SERVICE ) ; final int duration = styledAttributes . getInt ( R . styleable . PinLock_vibrateDuration , 20 ) ; v . vibrate ... |
public class ApplicationResource { /** * ( non - Javadoc )
* @ see net . roboconf . dm . rest . services . internal . resources . IApplicationResource
* # executeCommand ( java . lang . String , java . lang . String ) */
@ Override public Response executeCommand ( String app , String commandName ) { } } | this . logger . fine ( "Request: execute command " + commandName + " in the " + app + " application." ) ; String lang = lang ( this . manager ) ; Response response = Response . ok ( ) . build ( ) ; try { Application application = this . manager . applicationMngr ( ) . findApplicationByName ( app ) ; if ( application ==... |
public class CsvToSqlExtensions { /** * Gets the csv file as sql insert script .
* @ param tableName
* the table name
* @ param csvBean
* the csv bean
* @ param withHeader
* the with header
* @ param withEndSemicolon
* the with end semicolon
* @ return the csv file as sql insert script */
public stati... | final StringBuffer sb = new StringBuffer ( ) ; if ( withHeader ) { final String sqlColumns = extractSqlColumns ( csvBean . getHeaders ( ) ) ; sb . append ( "INSERT INTO " + tableName + " ( " + sqlColumns + ") VALUES \n" ) ; } final String [ ] columnTypesEdit = csvBean . getColumnTypesEdit ( ) ; if ( columnTypesEdit != ... |
public class PhotonCoreValidator { /** * Validate the content of the < code > web . xml < / code > file . It checks if all
* referenced classes are loadable !
* @ throws Exception
* In case of an error . */
public static void validateWebXML ( ) throws Exception { } } | final IMicroDocument aDoc = MicroReader . readMicroXML ( new File ( "src/main/webapp/WEB-INF/web.xml" ) ) ; if ( aDoc != null ) for ( final IMicroNode aNode : new MicroRecursiveIterator ( aDoc . getDocumentElement ( ) ) ) if ( aNode . isElement ( ) ) { final IMicroElement e = ( IMicroElement ) aNode ; if ( e . getTagNa... |
public class EntityInfo { /** * Given a Group g of Chain c ( member of this EntityInfo ) return the corresponding position in the
* alignment of all member sequences ( 1 - based numbering ) , i . e . the index ( 1 - based ) in the SEQRES sequence .
* This allows for comparisons of residues belonging to different ch... | boolean contained = false ; for ( Chain member : getChains ( ) ) { if ( c . getId ( ) . equals ( member . getId ( ) ) ) { contained = true ; break ; } } if ( ! contained ) throw new IllegalArgumentException ( "Given chain with asym_id " + c . getId ( ) + " is not a member of this entity: " + getChainIds ( ) . toString ... |
public class ResourcePoolsBuilder { /** * Add the { @ link ResourcePool } of { @ link ResourceType } in the returned builder .
* @ param resourcePool the non - { @ code null } resource pool to add
* @ return a new builder with the added pool
* @ throws IllegalArgumentException if the set of resource pools already... | final ResourceType < ? > type = resourcePool . getType ( ) ; final ResourcePool existingPool = resourcePools . get ( type ) ; if ( existingPool != null ) { throw new IllegalArgumentException ( "Can not add '" + resourcePool + "'; configuration already contains '" + existingPool + "'" ) ; } Map < ResourceType < ? > , Re... |
public class PdfDocument { /** * Adds an image to the document .
* @ param image the < CODE > Image < / CODE > to add
* @ throws PdfException on error
* @ throws DocumentException on error */
protected void add ( Image image ) throws PdfException , DocumentException { } } | if ( image . hasAbsoluteY ( ) ) { graphics . addImage ( image ) ; pageEmpty = false ; return ; } // if there isn ' t enough room for the image on this page , save it for the next page
if ( currentHeight != 0 && indentTop ( ) - currentHeight - image . getScaledHeight ( ) < indentBottom ( ) ) { if ( ! strictImageSequence... |
public class CASH { /** * Builds a dim - 1 dimensional database where the objects are projected into
* the specified subspace .
* @ param dim the dimensionality of the database
* @ param basis the basis defining the subspace
* @ param ids the ids for the new database
* @ param relation the database storing th... | ProxyDatabase proxy = new ProxyDatabase ( ids ) ; SimpleTypeInformation < ParameterizationFunction > type = new SimpleTypeInformation < > ( ParameterizationFunction . class ) ; WritableDataStore < ParameterizationFunction > prep = DataStoreUtil . makeStorage ( ids , DataStoreFactory . HINT_HOT , ParameterizationFunctio... |
public class PeerGroup { /** * < p > Link the given PeerFilterProvider to this PeerGroup . DO NOT use this for Wallets , use
* { @ link PeerGroup # addWallet ( Wallet ) } instead . < / p >
* < p > Note that this should be done before chain download commences because if you add a listener with keys earlier
* than ... | lock . lock ( ) ; try { checkNotNull ( provider ) ; checkState ( ! peerFilterProviders . contains ( provider ) ) ; // Insert provider at the start . This avoids various concurrency problems that could occur because we need
// all providers to be in a consistent , unchanging state whilst the filter is built . Providers ... |
public class ElementList { /** * Appends a piece of text to the contents of this node
* @ param value */
public void addValue ( String value ) { } } | contents . add ( value ) ; if ( value . trim ( ) . length ( ) > 0 ) { if ( contents . size ( ) == 1 ) { containsSingleString = true ; } else { containsSingleString = false ; containsMarkupText = true ; } } |
public class Payloads { /** * Create a { @ link Payload } from ByteString with the
* specified contentType */
public static Payload create ( ByteString byteString , String contentType ) { } } | return new PayloadImpl ( byteString , Optional . ofNullable ( contentType ) ) ; |
public class UnicodeSet { /** * Reallocate this objects internal structures to take up the least
* possible space , without changing this object ' s value . */
public UnicodeSet compact ( ) { } } | checkFrozen ( ) ; if ( len != list . length ) { int [ ] temp = new int [ len ] ; System . arraycopy ( list , 0 , temp , 0 , len ) ; list = temp ; } rangeList = null ; buffer = null ; return this ; |
public class ZipUtils { /** * Checks if the string denotes a file inside a ZIP file using the notation
* used for getZipContentsRecursive ( ) .
* @ param name The name to check
* @ return true if the name denotes a file inside a known zip file format . */
public static boolean isFileInZip ( String name ) { } } | if ( name == null ) { return false ; } for ( String element : ZIP_EXTENSIONS ) { if ( name . toLowerCase ( ) . contains ( element + ZIP_DELIMITER ) ) { return true ; } } return false ; |
public class HttpResponse { /** * Static builder to create a response with a 200 status code and the string response body .
* @ param body a string */
public static HttpResponse response ( String body ) { } } | return new HttpResponse ( ) . withStatusCode ( OK_200 . code ( ) ) . withReasonPhrase ( OK_200 . reasonPhrase ( ) ) . withBody ( body ) ; |
public class ResponseWrapper { private < T extends Resource > T get ( String field , Class < T > k ) { } } | Gson gson = gsonParser ( ) ; JsonObject object = ( JsonObject ) response ; T e = gson . fromJson ( object . get ( field ) . toString ( ) , k ) ; e . setClient ( client ) ; return e ; |
public class Bucket { /** * Gets the list of < b > active < / b > nodes within the bucket . An active node is one that
* is not failed over
* @ return The list of active nodes in the cluster . */
public List < MemcachedServer > activeServers ( ) { } } | ArrayList < MemcachedServer > active = new ArrayList < MemcachedServer > ( servers . length ) ; for ( MemcachedServer server : servers ) { if ( server . isActive ( ) ) { active . add ( server ) ; } } return active ; |
public class DashboardInvalidInputErrorException { /** * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setDashboardValidationMessages ( java . util . Collection ) } or
* { @ link # withDashboardValidationMessages ( java . util . Collection ) } if you want to ... | if ( this . dashboardValidationMessages == null ) { setDashboardValidationMessages ( new com . amazonaws . internal . SdkInternalList < DashboardValidationMessage > ( dashboardValidationMessages . length ) ) ; } for ( DashboardValidationMessage ele : dashboardValidationMessages ) { this . dashboardValidationMessages . ... |
public class ReviewsImpl { /** * The reviews created would show up for Reviewers on your team . As Reviewers complete reviewing , results of the Review would be POSTED ( i . e . HTTP POST ) on the specified CallBackEndpoint .
* & lt ; h3 & gt ; CallBack Schemas & lt ; / h3 & gt ;
* & lt ; h4 & gt ; Review Completio... | return ServiceFuture . fromResponse ( addVideoFrameWithServiceResponseAsync ( teamName , reviewId , addVideoFrameOptionalParameter ) , serviceCallback ) ; |
public class DataGridStateFactory { /** * Lookup a { @ link DataGridURLBuilder } object given a data grid identifier and a specific
* { @ link DataGridConfig } object .
* @ param name the name of the data grid
* @ param config the { @ link DataGridConfig } object to use when creating the
* grid ' s { @ link Dat... | if ( config == null ) throw new IllegalArgumentException ( Bundle . getErrorString ( "DataGridStateFactory_nullDataGridConfig" ) ) ; DataGridStateCodec codec = lookupCodec ( name , config ) ; DataGridURLBuilder builder = codec . getDataGridURLBuilder ( ) ; return builder ; |
public class Journal { /** * Return an iterable to replay the journal by going through all records
* locations starting from the given one .
* @ param start
* @ return
* @ throws IOException
* @ throws CompactedDataFileException
* @ throws ClosedJournalException */
public Iterable < Location > redo ( Locati... | return new Redo ( start ) ; |
public class TextColumn { /** * Returns a new Column containing all the unique values in this column
* @ return a column with unique values . */
@ Override public TextColumn unique ( ) { } } | List < String > strings = new ArrayList < > ( asSet ( ) ) ; return TextColumn . create ( name ( ) + " Unique values" , strings ) ; |
public class ProcessEpoll { private void cleanupProcess ( LinuxProcess linuxProcess , int stdinFd , int stdoutFd , int stderrFd ) { } } | pidToProcessMap . remove ( linuxProcess . getPid ( ) ) ; fildesToProcessMap . remove ( stdinFd ) ; fildesToProcessMap . remove ( stdoutFd ) ; fildesToProcessMap . remove ( stderrFd ) ; // linuxProcess . close ( linuxProcess . getStdin ( ) ) ;
// linuxProcess . close ( linuxProcess . getStdout ( ) ) ;
// linuxProcess . ... |
public class DialogPreference { /** * Obtains the background of the dialog , which is shown by the preference , from a specific typed
* array .
* @ param typedArray
* The typed array , the background should be obtained from , as an instance of the class
* { @ link TypedArray } . The typed array may not be null ... | int resourceId = typedArray . getResourceId ( R . styleable . DialogPreference_dialogBackground , - 1 ) ; if ( resourceId != - 1 ) { setDialogBackground ( resourceId ) ; } else { int color = typedArray . getColor ( R . styleable . DialogPreference_dialogBackground , - 1 ) ; if ( color != - 1 ) { setDialogBackgroundColo... |
public class IfcCartesianPointImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ SuppressWarnings ( "unchecked" ) public EList < String > getCoordinatesAsString ( ) { } } | return ( EList < String > ) eGet ( Ifc2x3tc1Package . Literals . IFC_CARTESIAN_POINT__COORDINATES_AS_STRING , true ) ; |
public class ClassIndex { /** * Retrieves names of classes from given package .
* The package must be annotated with { @ link IndexSubclasses } for the classes inside
* to be indexed at compile - time by { @ link org . atteo . classindex . processor . ClassIndexProcessor } .
* @ param packageName name of the pack... | Iterable < String > entries = readIndexFile ( classLoader , packageName . replace ( "." , "/" ) + "/" + PACKAGE_INDEX_NAME ) ; List < String > result = new ArrayList < > ( ) ; for ( String simpleName : entries ) { result . add ( packageName + "." + simpleName ) ; } return result ; |
public class CredentialFactory { /** * Obtain the Application Default com . google . api . client . auth . oauth2 . Credential
* @ return the Application Default Credential */
public static GoogleCredential getApplicationDefaultCredential ( ) { } } | try { GoogleCredential credential = GoogleCredential . getApplicationDefault ( ) ; if ( credential . createScopedRequired ( ) ) { credential = credential . createScoped ( Arrays . asList ( "https://www.googleapis.com/auth/genomics" ) ) ; } return credential ; } catch ( IOException e ) { throw new RuntimeException ( MIS... |
public class TAIWebUtils { /** * Gets and validates the authorization endpoint URL from the provided social login configuration . */
public String getAuthorizationEndpoint ( SocialLoginConfig clientConfig ) throws SocialLoginException { } } | final String authzEndpoint = clientConfig . getAuthorizationEndpoint ( ) ; SocialUtil . validateEndpointWithQuery ( authzEndpoint ) ; return authzEndpoint ; |
public class ManagedObject { /** * A subclass may override this method to do its own optimisticReplace processing after the log
* has been written . For the ManagedObject to get this call it must have been on the Notify
* list when Transaction . optimisticReplace ( ) was invoked .
* @ param transaction controling... | if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "optimisticReplaceLogged" , "transaction=" + transaction + "(Transaction)" ) ; // By default does nothing , unless overridden .
if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( thi... |
public class LoadFileImageSequence { /** * Loads the next image into a BufferedImage and returns it . The same instance
* or a new instance of a BufferedImage might be returned each time . Don ' t rely
* on either behavior being consistent .
* @ return A BufferedImage containing the next image . */
public T next ... | if ( loop ) { if ( forwards ) { if ( index >= fileNames . size ( ) ) { index = fileNames . size ( ) - 1 ; forwards = false ; } } else { if ( index < 0 ) { index = 0 ; forwards = true ; } } } if ( forwards ) imageGUI = UtilImageIO . loadImage ( fileNames . get ( index ++ ) ) ; else imageGUI = UtilImageIO . loadImage ( f... |
public class ExprParser { /** * map : ' { ' ( mapEntry ( , mapEntry ) * ) ? ' } '
* mapEntry : ( ID | STR ) ' : ' expr */
Expr map ( ) { } } | if ( peek ( ) . sym != Sym . LBRACE ) { return array ( ) ; } LinkedHashMap < Object , Expr > mapEntry = new LinkedHashMap < Object , Expr > ( ) ; Map map = new Map ( mapEntry ) ; move ( ) ; if ( peek ( ) . sym == Sym . RBRACE ) { move ( ) ; return map ; } buildMapEntry ( mapEntry ) ; while ( peek ( ) . sym == Sym . COM... |
public class AddressDivisionGrouping { /** * Handles the cases in which we can use longs rather than BigInteger
* @ param section
* @ param increment
* @ param addrCreator
* @ param lowerProducer
* @ param upperProducer
* @ param prefixLength
* @ return */
protected static < R extends AddressSection , S e... | if ( increment >= 0 ) { BigInteger count = section . getCount ( ) ; if ( count . compareTo ( LONG_MAX ) <= 0 ) { long longCount = count . longValue ( ) ; if ( longCount > increment ) { if ( longCount == increment + 1 ) { return upperProducer . get ( ) ; } return incrementRange ( section , increment , addrCreator , lowe... |
public class AxesWalker { /** * Moves the < code > TreeWalker < / code > to the next visible node in document
* order relative to the current node , and returns the new node . If the
* current node has no next node , or if the search for nextNode attempts
* to step upward from the TreeWalker ' s root node , retur... | int nextNode = DTM . NULL ; AxesWalker walker = wi ( ) . getLastUsedWalker ( ) ; while ( true ) { if ( null == walker ) break ; nextNode = walker . getNextNode ( ) ; if ( DTM . NULL == nextNode ) { walker = walker . m_prevWalker ; } else { if ( walker . acceptNode ( nextNode ) != DTMIterator . FILTER_ACCEPT ) { continu... |
public class CSVUtil { /** * Joins the two input CSV files according to the { @ link ValueMapping } s ,
* optionally applying the given prefixes to fields in the input and other
* inputs respectively .
* Can also perform a full outer join by setting leftOuterJoin to false .
* @ param input
* The reference inp... | // TODO : Use the following measurements to determine what processing
// method to use
int inputFileBytes = - 1 ; int otherFileBytes = - 1 ; final Path tempInputFile = Files . createTempFile ( "tempInputFile-" , ".csv" ) ; try ( final BufferedWriter tempOutput = Files . newBufferedWriter ( tempInputFile , StandardChars... |
public class MailClient { /** * IMAP only */
public void createFolder ( String folderName ) throws MessagingException , ApplicationException { } } | if ( folderExists ( folderName ) ) throw new ApplicationException ( "cannot create folder [" + folderName + "], folder already exists." ) ; Folder folder = getFolder ( folderName , null , false , true ) ; if ( ! folder . exists ( ) ) folder . create ( Folder . HOLDS_MESSAGES ) ; |
public class FileListOperations { /** * Adds a new fileName in the list of files making up this index
* @ param fileName */
void addFileName ( final String fileName ) { } } | writeLock . lock ( ) ; try { final FileListCacheValue fileList = getFileList ( ) ; boolean done = fileList . add ( fileName ) ; if ( done ) { updateFileList ( fileList ) ; if ( trace ) log . trace ( "Updated file listing: added " + fileName ) ; } } finally { writeLock . unlock ( ) ; } |
public class DefaultAsyncSearchQueryResult { /** * A utility method to convert an HTTP 412 response from the search service into a proper
* { @ link AsyncSearchQueryResult } . HTTP 412 indicates the request couldn ' t be satisfied with given
* consistency before the timeout expired . This is translated to a { @ lin... | // dummy default values
SearchStatus status = new DefaultSearchStatus ( 1L , 1L , 0L ) ; SearchMetrics metrics = new DefaultSearchMetrics ( 0L , 0L , 0d ) ; return new DefaultAsyncSearchQueryResult ( status , Observable . < SearchQueryRow > error ( new FtsConsistencyTimeoutException ( ) ) , Observable . < FacetResult >... |
public class ProgramControlScreen { /** * Set up all the screen fields . */
public void setupSFields ( ) { } } | BaseField field = this . getMainRecord ( ) . getField ( ProgramControl . PROJECT_NAME ) ; field . setupDefaultView ( this . getNextLocation ( ScreenConstants . NEXT_LOGICAL , ScreenConstants . SET_ANCHOR ) , this , ScreenConstants . DEFAULT_DISPLAY ) ; SCannedBox button = new SCannedBox ( this . getNextLocation ( Scree... |
public class CacheUnitImpl { /** * This is called by ServerCache to start BatchUpdateDaemon ,
* InvalidationAuditDaemon , TimeLimitDaemon and ExternalCacheServices
* These services should only start once for all cache instances
* @ param startTLD this param is false for a third party cache provider */
public void... | synchronized ( this . serviceMonitor ) { // multiple threads can call this concurrently
if ( this . batchUpdateDaemon == null ) { // Initialize BatchUpdateDaemon object
batchUpdateDaemon = new BatchUpdateDaemon ( cacheConfig . batchUpdateInterval ) ; // Initialize InvalidationAuditDaemon object
invalidationAuditDaemon ... |
public class ConstraintAdapter { /** * Searches pathways that contains this conversion for the possible directions . If both
* directions exist , then the result is reversible .
* @ param conv the conversion
* @ return direction inferred from pathway membership */
protected ConversionDirectionType findDirectionIn... | Set < StepDirection > dirs = new HashSet < StepDirection > ( ) ; for ( PathwayStep step : conv . getStepProcessOf ( ) ) { if ( step instanceof BiochemicalPathwayStep ) { StepDirection dir = ( ( BiochemicalPathwayStep ) step ) . getStepDirection ( ) ; if ( dir != null ) dirs . add ( dir ) ; } } if ( dirs . size ( ) > 1 ... |
public class FileSystem { /** * Replies the parts of a path .
* < p > If the input is { @ code " http : / / www . arakhne . org / path / to / file . x . z . z " } , the replied paths
* are : { @ code " " } , { @ code " path " } , { @ code " to " } , and { @ code " file . x . z . z " } .
* < p > If the input is { ... | if ( filename == null ) { return new String [ 0 ] ; } if ( isJarURL ( filename ) ) { return split ( getJarFile ( filename ) ) ; } final String path = filename . getPath ( ) ; String [ ] tab = path . split ( Pattern . quote ( URL_PATH_SEPARATOR ) ) ; if ( tab . length >= 2 && "" . equals ( tab [ 0 ] ) && Pattern . match... |
public class SourceStream { /** * this value straight away and also that we don ' t need to persist it */
public synchronized void initialiseSendWindow ( long sendWindow , long definedSendWindow ) throws SIResourceException { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "initialiseSendWindow" , new Object [ ] { Long . valueOf ( sendWindow ) , Long . valueOf ( definedSendWindow ) } ) ; // Prior to V7 the sendWindow was not persisted unless it was modified due to a change in
// reachab... |
public class EquivalencesDAGImpl { /** * construction : main algorithms ( static generic methods ) */
public static < TT > EquivalencesDAGImpl < TT > getEquivalencesDAG ( DefaultDirectedGraph < TT , DefaultEdge > graph ) { } } | // each set contains vertices which together form a strongly connected
// component within the given graph
GabowSCC < TT , DefaultEdge > inspector = new GabowSCC < > ( graph ) ; List < Equivalences < TT > > equivalenceSets = inspector . stronglyConnectedSets ( ) ; // create the vertex index
ImmutableMap . Builder < TT ... |
public class SpringContextUtils { /** * Get the { @ link IThymeleafRequestContext } from the Thymeleaf context .
* The returned object is a wrapper on the Spring request context that hides the fact of this request
* context corresponding to a Spring WebMVC or Spring WebFlux application .
* This will be done by lo... | if ( context == null ) { return null ; } return ( IThymeleafRequestContext ) context . getVariable ( SpringContextVariableNames . THYMELEAF_REQUEST_CONTEXT ) ; |
public class EglHelper { /** * Initialize EGL for a given configuration spec .
* @ param configSpec */
public void start ( ) { } } | // Log . d ( " EglHelper " + instanceId , " start ( ) " ) ;
if ( mEgl == null ) { // Log . d ( " EglHelper " + instanceId , " getting new EGL " ) ;
/* * Get an EGL instance */
mEgl = ( EGL10 ) EGLContext . getEGL ( ) ; } else { // Log . d ( " EglHelper " + instanceId , " reusing EGL " ) ;
} if ( mEglDisplay == null ) {... |
public class RabbitConnectionFactoryMetricsPostProcessor { /** * Get the name of a ConnectionFactory based on its { @ code beanName } .
* @ param beanName the name of the connection factory bean
* @ return a name for the given connection factory */
private String getConnectionFactoryName ( String beanName ) { } } | if ( beanName . length ( ) > CONNECTION_FACTORY_SUFFIX . length ( ) && StringUtils . endsWithIgnoreCase ( beanName , CONNECTION_FACTORY_SUFFIX ) ) { return beanName . substring ( 0 , beanName . length ( ) - CONNECTION_FACTORY_SUFFIX . length ( ) ) ; } return beanName ; |
public class TangoEventsAdapter { public void addTangoChangeListener ( ITangoChangeListener listener , String attrName , boolean stateless ) throws DevFailed { } } | addTangoChangeListener ( listener , attrName , new String [ 0 ] , stateless ) ; |
public class MapMessage { /** * Formats the Structured data as described in < a href = " https : / / tools . ietf . org / html / rfc5424 " > RFC 5424 < / a > .
* @ param format The format identifier .
* @ return The formatted String . */
public String asString ( final String format ) { } } | try { return format ( EnglishEnums . valueOf ( MapFormat . class , format ) , new StringBuilder ( ) ) . toString ( ) ; } catch ( final IllegalArgumentException ex ) { return asString ( ) ; } |
public class LdapAdapter { /** * Find the LdapEntry mapped to the Certificate .
* @ param certs
* @ param srchCtrl
* @ return
* @ throws WIMException */
@ FFDCIgnore ( { } } | EntityNotFoundException . class , com . ibm . websphere . security . CertificateMapNotSupportedException . class , com . ibm . websphere . security . CertificateMapFailedException . class } ) private LdapEntry mapCertificate ( X509Certificate [ ] certs , LdapSearchControl srchCtrl ) throws WIMException { LdapEntry resu... |
public class TopologyContext { /** * Get component ' s metric from registered metrics by name . Notice : Normally ,
* one component can only register one metric name once . But now registerMetric
* has a bug ( https : / / issues . apache . org / jira / browse / STORM - 254 ) cause the same metric name can register ... | IMetric metric = null ; for ( Map < Integer , Map < String , IMetric > > taskIdToNameToMetric : _registeredMetrics . values ( ) ) { Map < String , IMetric > nameToMetric = taskIdToNameToMetric . get ( _taskId ) ; if ( nameToMetric != null ) { metric = nameToMetric . get ( name ) ; if ( metric != null ) { // we just ret... |
public class RevisionApi { /** * Returns a map of usernames mapped to the timestamps of their contributions .
* Users of certain user groups ( e . g . bots ) can be filtered by providing the unwanted groups in
* the { @ code groupFilter } . Nothing is filtered if the { @ code groupFilter } is { @ code null } or emp... | return getUserContributionMap ( articleID , groupfilter , false ) ; |
public class CmsIdentifiableObjectContainer { /** * Returns the list of objects with the given id . < p >
* @ param id the object id
* @ return the list of objects if found , or < code > null < / code > */
public List < T > getObjectList ( String id ) { } } | if ( m_uniqueIds ) { throw new UnsupportedOperationException ( "Not supported for unique ids" ) ; } return m_objectsListsById . get ( id ) ; |
public class EventSelectorMarshaller { /** * Marshall the given parameter object . */
public void marshall ( EventSelector eventSelector , ProtocolMarshaller protocolMarshaller ) { } } | if ( eventSelector == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( eventSelector . getReadWriteType ( ) , READWRITETYPE_BINDING ) ; protocolMarshaller . marshall ( eventSelector . getIncludeManagementEvents ( ) , INCLUDEMANAGEMENTEVENTS_B... |
public class TreeTraverser { /** * Returns an unmodifiable iterable over the nodes in a tree structure , using breadth - first
* traversal . That is , all the nodes of depth 0 are returned , then depth 1 , then 2 , and so on .
* < p > No guarantees are made about the behavior of the traversal when nodes change whil... | checkNotNull ( root ) ; return new FluentIterable < T > ( ) { @ Override public UnmodifiableIterator < T > iterator ( ) { return new BreadthFirstIterator ( root ) ; } } ; |
public class ConditionEvaluator { /** * Evaluates the error condition . Returns empty if threshold or measure value is not defined . */
private static Optional < EvaluatedCondition > evaluateCondition ( Condition condition , ValueType type , Comparable value ) { } } | Comparable threshold = getThreshold ( condition , type ) ; if ( reachThreshold ( value , threshold , condition ) ) { return of ( new EvaluatedCondition ( condition , EvaluationStatus . ERROR , value . toString ( ) ) ) ; } return Optional . empty ( ) ; |
public class MessageDetail { /** * Get the message properties for this vendor .
* @ param strMessageName The message name .
* @ return A map with the message properties . */
public TrxMessageHeader addMessageProperties ( TrxMessageHeader trxMessageHeader , MessageDetailTarget recMessageDetailTarget , MessageProcess... | try { if ( trxMessageHeader == null ) trxMessageHeader = new TrxMessageHeader ( null , null ) ; ContactType recContactType = ( ContactType ) ( ( ReferenceField ) this . getField ( MessageDetail . CONTACT_TYPE_ID ) ) . getReferenceRecord ( null ) ; recContactType = ( ContactType ) recContactType . getContactType ( ( Rec... |
public class IfConditionImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public void eUnset ( int featureID ) { } } | switch ( featureID ) { case SimpleExpressionsPackage . IF_CONDITION__ELSEIF : setElseif ( ELSEIF_EDEFAULT ) ; return ; case SimpleExpressionsPackage . IF_CONDITION__CONDITION : setCondition ( ( Expression ) null ) ; return ; } super . eUnset ( featureID ) ; |
public class SearchHandler { /** * asciidoctor Documentation - tag : : compareMatches [ ] */
private Category getSelectedCategoryByMatch ( ) { } } | // Strategy : Go from most specific match to most unspecific match
Category firstFilteredSetting = filteredSettingsLst . size ( ) == 0 ? null : settingCategoryMap . get ( filteredSettingsLst . get ( 0 ) ) ; Category firstFilteredGroup = filteredGroupsLst . size ( ) == 0 ? null : groupCategoryMap . get ( filteredGroupsL... |
public class CheckBoxGroup { /** * Release any acquired resources . */
protected void localRelease ( ) { } } | // cleanup the context variables used for binding during repeater
if ( _repeater ) DataAccessProviderStack . removeDataAccessProvider ( pageContext ) ; super . localRelease ( ) ; _defaultSelections = null ; _match = null ; _dynamicAttrs = null ; _saveBody = null ; _defaultSingleton = false ; _defaultSingleValue = false... |
public class MappeableRunContainer { /** * convert to bitmap or array * if needed * */
private MappeableContainer toEfficientContainer ( ) { } } | int sizeAsRunContainer = MappeableRunContainer . serializedSizeInBytes ( this . nbrruns ) ; int sizeAsBitmapContainer = MappeableBitmapContainer . serializedSizeInBytes ( 0 ) ; int card = this . getCardinality ( ) ; int sizeAsArrayContainer = MappeableArrayContainer . serializedSizeInBytes ( card ) ; if ( sizeAsRunCont... |
public class Matrix4d { /** * Apply an orthographic projection transformation for a right - handed coordinate system to this matrix .
* This method is equivalent to calling { @ link # ortho ( double , double , double , double , double , double ) ortho ( ) } with
* < code > zNear = - 1 < / code > and < code > zFar =... | return ortho2D ( left , right , bottom , top , this ) ; |
public class Util { /** * Formats a string and puts the result into a StringBuffer .
* Allows for standard Java backslash escapes and a customized behavior
* for % escapes in the form of a PrintfSpec .
* @ param buf the buffer to append the result to
* @ param formatString the string to format
* @ param print... | for ( int i = 0 ; i < formatString . length ( ) ; ++ i ) { char c = formatString . charAt ( i ) ; if ( ( c == '%' ) && ( i + 1 < formatString . length ( ) ) ) { ++ i ; char code = formatString . charAt ( i ) ; if ( code == '%' ) { buf . append ( '%' ) ; } else { boolean handled = printfSpec . printSpec ( buf , code ) ;... |
public class VetoableASTTransformation { /** * Wrap an existing setter . */
private void wrapSetterMethod ( ClassNode classNode , boolean bindable , String propertyName ) { } } | String getterName = "get" + MetaClassHelper . capitalize ( propertyName ) ; MethodNode setter = classNode . getSetterMethod ( "set" + MetaClassHelper . capitalize ( propertyName ) ) ; if ( setter != null ) { // Get the existing code block
Statement code = setter . getCode ( ) ; Expression oldValue = varX ( "$oldValue" ... |
public class LazyReact { /** * Generate an infinite Stream
* < pre >
* { @ code
* new LazyReact ( ) . generate ( ( ) - > " hello " )
* . limit ( 5)
* . reduce ( SemigroupK . stringConcat ) ;
* Optional [ hellohellohellohellohello ]
* } < / pre >
* @ param generate Supplier that generates stream input
... | return construct ( StreamSupport . < U > stream ( new InfiniteClosingSpliteratorFromSupplier < U > ( Long . MAX_VALUE , generate , new Subscription ( ) ) , false ) ) ; |
public class JemmyDSL { /** * Finds a component and stores it under the given id . The component can later be used on other
* commands using the locator " id = ID _ ASSIGNED " . This method searches both VISIBLE and INVISIBLE
* components .
* @ param locator The locator ( accepted are name ( default ) , title , t... | java . awt . Component component = findComponent ( locator , currentWindow ( ) . getComponent ( ) . getSource ( ) ) ; if ( component == null ) { if ( ! required ) { componentMap . putComponent ( id , null ) ; return null ; } else { throw new JemmyDSLException ( "Component not found" ) ; } } JComponentOperator operator ... |
public class ActiveMQQueueJmxStats { /** * Copy out the values to the given destination .
* @ param other target stats object to receive the values from this one . */
public void copyOut ( ActiveMQQueueJmxStats other ) { } } | other . setCursorPercentUsage ( this . getCursorPercentUsage ( ) ) ; other . setDequeueCount ( this . getDequeueCount ( ) ) ; other . setEnqueueCount ( this . getEnqueueCount ( ) ) ; other . setMemoryPercentUsage ( this . getMemoryPercentUsage ( ) ) ; other . setNumConsumers ( this . getNumConsumers ( ) ) ; other . set... |
public class ExampleColorHistogramLookup { /** * Computes a histogram from the gray scale intensity image alone . Probably the least effective at looking up
* similar images . */
public static List < double [ ] > histogramGray ( List < File > images ) { } } | List < double [ ] > points = new ArrayList < > ( ) ; GrayU8 gray = new GrayU8 ( 1 , 1 ) ; for ( File f : images ) { BufferedImage buffered = UtilImageIO . loadImage ( f . getPath ( ) ) ; if ( buffered == null ) throw new RuntimeException ( "Can't load image!" ) ; gray . reshape ( buffered . getWidth ( ) , buffered . ge... |
public class JdbcSqlAdapter { /** * Invokes the JDBC Query .
* If QueryType is Select , returns a java . sql . ResultSet .
* If QueryType is Update , returns an Integer with the number of rows updated . */
public Object invoke ( Object conn , Object requestData ) throws AdapterException { } } | try { DatabaseAccess dbAccess = ( DatabaseAccess ) conn ; if ( requestData == null ) throw new AdapterException ( "Missing SQL Query" ) ; String query = ( String ) requestData ; QueryType queryType = getQueryType ( ) ; Object queryParams = getQueryParameters ( ) ; if ( queryParams instanceof List < ? > ) { if ( queryTy... |
public class HealthCheckCustomConfigMarshaller { /** * Marshall the given parameter object . */
public void marshall ( HealthCheckCustomConfig healthCheckCustomConfig , ProtocolMarshaller protocolMarshaller ) { } } | if ( healthCheckCustomConfig == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( healthCheckCustomConfig . getFailureThreshold ( ) , FAILURETHRESHOLD_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall req... |
public class NameService { /** * This method will return the state map associated with the Nameable object if the
* object has been stored in the < code > NameService < / code > and something has been stored
* into the < code > Map < / code > . Otherwise this will return null indicating that the map
* is empty . ... | if ( name == null ) throw new IllegalStateException ( "name must not be null" ) ; if ( _nameMap == null ) return null ; TrackingObject to = ( TrackingObject ) _nameMap . get ( name ) ; // The object wasn ' t found
if ( to == null ) return null ; // If the object has been reclaimed , then we remove the named object from... |
public class Monitor { /** * Implemented from runnable */
@ Override public void run ( ) { } } | while ( true ) { if ( countObservers ( ) == 0 ) { try { Thread . sleep ( Long . MAX_VALUE ) ; } catch ( InterruptedException e ) { } } else { startWatching ( ) ; while ( countObservers ( ) > 0 ) { getNewLines ( ) ; try { Thread . sleep ( getDelay ( ) ) ; } catch ( InterruptedException e ) { } } } } |
public class MCMPAdvertiseTask { /** * the messages to send are something like :
* HTTP / 1.0 200 OK
* Date : Thu , 13 Sep 2012 09:24:02 GMT
* Sequence : 5
* Digest : ae8e7feb7cd85be346134657de3b0661
* Server : b58743ba - fd84-11e1 - bd12 - ad866be2b4cc
* X - Manager - Address : 127.0.0.1:6666
* X - Manag... | try { /* * apr _ uuid _ get ( & magd - > suuid ) ;
* magd - > srvid [ 0 ] = ' / ' ;
* apr _ uuid _ format ( & magd - > srvid [ 1 ] , & magd - > suuid ) ;
* In fact we use the srvid on the 2 second byte [ 1] */
final byte [ ] ssalt = this . ssalt ; final String server = container . getServerID ( ) ; final String d... |
public class JobsInner { /** * Gets information about a Job .
* @ param resourceGroupName Name of the resource group to which the resource belongs .
* @ param workspaceName The name of the workspace . Workspace names can only contain a combination of alphanumeric characters along with dash ( - ) and underscore ( _ ... | return getWithServiceResponseAsync ( resourceGroupName , workspaceName , experimentName , jobName ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class ProxyBranchImpl { /** * This callback is called when the remote side has been idle too long while
* establishing the dialog .
* @ throws DispatcherException */
public void onTimeout ( ResponseType responseType ) throws DispatcherException { } } | if ( ! proxy . getAckReceived ( ) ) { this . cancel ( ) ; if ( responseType == ResponseType . FINAL ) { cancel1xxTimer ( ) ; } this . timedOut = true ; if ( originalRequest != null ) { List < ProxyBranchListener > proxyBranchListeners = originalRequest . getSipSession ( ) . getSipApplicationSession ( ) . getSipContext ... |
public class ServerContext { /** * Sets the commit index .
* @ param commitIndex The commit index .
* @ return The Raft context . */
ServerContext setCommitIndex ( long commitIndex ) { } } | Assert . argNot ( commitIndex < 0 , "commit index must be positive" ) ; long previousCommitIndex = this . commitIndex ; if ( commitIndex > previousCommitIndex ) { this . commitIndex = commitIndex ; log . commit ( Math . min ( commitIndex , log . lastIndex ( ) ) ) ; long configurationIndex = cluster . getConfiguration (... |
public class SummaryBottomSheet { /** * Clears all { @ link View } s . */
private void clearViews ( ) { } } | arrivalTimeText . setText ( EMPTY_STRING ) ; timeRemainingText . setText ( EMPTY_STRING ) ; distanceRemainingText . setText ( EMPTY_STRING ) ; |
public class ContainerDirector { /** * prepare the applicaition configure files
* @ param configureFileName */
public synchronized void prepareAppRoot ( String configureFileName ) throws Exception { } } | if ( ! cb . isKernelStartup ( ) ) { cb . registerAppRoot ( configureFileName ) ; logger . info ( configureFileName + " is ready." ) ; } |
public class XARecoveryData { /** * Perform a post - log data check after logging the XARecoveryData prior to the force .
* Use this to log the priority in a separate log unit section to the
* main XARecoveryData serialized wrapper and classpath data . Note : this
* method is not called if we have no logs defined... | if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "postLogData" ) ; // Only log if priority is non - zero to keep compatability with old releases
if ( _priority != JTAResource . DEFAULT_COMMIT_PRIORITY ) { // Let caller catch any exceptions as it is already handling RU / RUS failures
final RecoverableUnitSection section... |
public class PreferencesFxUtils { /** * Filters a list of { @ code categories } by a given { @ code description } .
* @ param categories the list of categories to be filtered
* @ param description to be searched for
* @ return a list of { @ code categories } , containing ( ignoring case ) the given { @ code descr... | return categories . stream ( ) . filter ( category -> containsIgnoreCase ( category . getDescription ( ) , description ) ) . collect ( Collectors . toList ( ) ) ; |
public class ConfigurationImpl { /** * The " die " method forces this key to be set . Otherwise a runtime exception
* will be thrown .
* @ param key the key
* @ return the Integer or a IllegalArgumentException will be thrown . */
@ Override public Integer getIntegerOrDie ( String key ) { } } | Integer value = getInteger ( key ) ; if ( value == null ) { throw new IllegalArgumentException ( String . format ( ERROR_KEYNOTFOUND , key ) ) ; } else { return value ; } |
public class Solo2 { /** * Enter text into a given field resource id
* @ param fieldResource - Resource id of a field ( R . id . * )
* @ param value - value to enter into the given field */
public void enterTextAndWait ( int fieldResource , String value ) { } } | EditText textBox = ( EditText ) this . getView ( fieldResource ) ; this . enterText ( textBox , value ) ; this . waitForText ( value ) ; |
public class ConversionStringUtils { /** * Unescape all delimiter chars in string .
* @ param values Strings
* @ return Decoded strings */
public static String [ ] decodeString ( String [ ] values ) { } } | if ( values == null ) { return null ; } String [ ] decodedValues = new String [ values . length ] ; for ( int i = 0 ; i < values . length ; i ++ ) { decodedValues [ i ] = decodeString ( values [ i ] ) ; } return decodedValues ; |
public class Dependency { /** * Adds the Maven artifact as evidence .
* @ param source The source of the evidence
* @ param mavenArtifact The Maven artifact
* @ param confidence The confidence level of this evidence */
public void addAsEvidence ( String source , MavenArtifact mavenArtifact , Confidence confidence... | if ( mavenArtifact . getGroupId ( ) != null && ! mavenArtifact . getGroupId ( ) . isEmpty ( ) ) { this . addEvidence ( EvidenceType . VENDOR , source , "groupid" , mavenArtifact . getGroupId ( ) , confidence ) ; } if ( mavenArtifact . getArtifactId ( ) != null && ! mavenArtifact . getArtifactId ( ) . isEmpty ( ) ) { th... |
public class MatrixFeatures_DDRM { /** * Checks to see if all the diagonal elements in the matrix are positive .
* @ param a A matrix . Not modified .
* @ return true if all the diagonal elements are positive , false otherwise . */
public static boolean isDiagonalPositive ( DMatrixRMaj a ) { } } | for ( int i = 0 ; i < a . numRows ; i ++ ) { if ( ! ( a . get ( i , i ) >= 0 ) ) return false ; } return true ; |
public class ExampleBase { /** * Converts a response to JSON string
* @ param response { @ link com . basistech . rosette . apimodel . Response Response } from RosetteAPI
* @ return the json string .
* @ throws JsonProcessingException if the Jackson library throws an error serializing . */
protected static String... | ObjectMapper mapper = ApiModelMixinModule . setupObjectMapper ( new ObjectMapper ( ) ) ; mapper . enable ( SerializationFeature . INDENT_OUTPUT ) ; mapper . setSerializationInclusion ( JsonInclude . Include . NON_NULL ) ; return mapper . writeValueAsString ( response ) ; |
public class Check { /** * Ensures that a readable sequence of { @ code char } values is numeric . Numeric arguments consist only of the
* characters 0-9 and may start with 0 ( compared to number arguments , which must be valid numbers - think of a bank
* account number ) .
* We recommend to use the overloaded me... | IllegalNullArgumentException . class , IllegalNumberArgumentException . class } ) public static < T extends CharSequence > T isNumeric ( @ Nonnull final T value ) { return isNumeric ( value , EMPTY_ARGUMENT_NAME ) ; |
public class JolokiaServer { /** * Initialize this JolokiaServer with the given HttpServer . The calle is responsible for managing ( starting / stopping )
* the HttpServer .
* @ param pServer server to use
* @ param pConfig configuration
* @ param pLazy whether the initialization should be done lazy or not */
p... | config = pConfig ; lazy = pLazy ; // Create proper context along with handler
final String contextPath = pConfig . getContextPath ( ) ; jolokiaHttpHandler = new JolokiaHttpHandler ( pConfig . getJolokiaConfig ( ) ) ; HttpContext context = pServer . createContext ( contextPath , jolokiaHttpHandler ) ; // Add authenticat... |
public class ListenerKeysLmlAttribute { /** * Utility .
* @ param parser parses template .
* @ param actor contains the listener .
* @ param rawAttributeData unparsed attribute data .
* @ param keys handled keys set . */
public static void processKeysAttribute ( final LmlParser parser , final Actor actor , fina... | final String [ ] keyNames = parser . parseArray ( rawAttributeData , actor ) ; for ( final String keyName : keyNames ) { final int key = Keys . valueOf ( keyName ) ; if ( key <= Keys . UNKNOWN ) { if ( Strings . isInt ( keyName ) ) { keys . add ( Integer . parseInt ( keyName ) ) ; } else { parser . throwErrorIfStrict (... |
public class SimulatePlanarWorld { /** * Project a point which lies on the 2D planar polygon ' s surface onto the rendered image */
public void computePixel ( int which , double x , double y , Point2D_F64 output ) { } } | SurfaceRect r = scene . get ( which ) ; Point3D_F64 p3 = new Point3D_F64 ( - x , - y , 0 ) ; SePointOps_F64 . transform ( r . rectToCamera , p3 , p3 ) ; // unit sphere
p3 . scale ( 1.0 / p3 . norm ( ) ) ; sphereToPixel . compute ( p3 . x , p3 . y , p3 . z , output ) ; |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Object } { @ code > }
* @ param value
* Java instance representing xml element ' s value .
* @ return
* the new instance of { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ XmlElementDecl... | return new JAXBElement < Object > ( __GenericApplicationPropertyOfAbstractBridge_QNAME , Object . class , null , value ) ; |
public class SrvEntitySyncAccEntry { /** * Synchronize AccountingEntry to invoke
* getSrvBalance ( ) . handleNewAccountEntry .
* @ param pEntity object
* @ param pAddParam additional params
* @ return isNew if entity exist in database ( need update )
* @ throws Exception - an exception */
@ Override public fi... | AccountingEntry entityPb = ( AccountingEntry ) pEntity ; int currDbId = getSrvOrm ( ) . getIdDatabase ( ) ; if ( currDbId == entityPb . getIdDatabaseBirth ( ) ) { throw new ExceptionWithCode ( ExceptionWithCode . SOMETHING_WRONG , "Foreign entity born in this database! {ID, ID BIRTH, DB BIRTH}:" + " {" + entityPb . get... |
public class OutRawH3Impl { /** * string data without length */
@ Override public void writeStringData ( String value , int offset , int length ) { } } | char [ ] cBuf = _charBuffer ; int cBufLength = cBuf . length ; for ( int i = 0 ; i < length ; i += cBufLength ) { int sublen = Math . min ( length - i , cBufLength ) ; value . getChars ( offset + i , offset + i + sublen , cBuf , 0 ) ; writeStringChunk ( cBuf , 0 , sublen ) ; } |
public class AbstractLog { /** * Provide a non - fatal notification , unless suppressed by the - nowarn option .
* @ param noteKey The key for the localized notification message . */
public void note ( DiagnosticPosition pos , Note noteKey ) { } } | report ( diags . note ( source , pos , noteKey ) ) ; |
public class HBeanProperties { /** * Set a string matrix of properties on a particular bean .
* @ param bean Bean to set properties on .
* @ param properties in string matrix form . */
public void setPropertiesOn ( final Bean bean ) { } } | String [ ] [ ] properties = getProperties ( ) ; for ( int i = 0 ; i < properties . length ; i ++ ) { if ( properties [ i ] . length < 2 ) { continue ; } for ( int j = 0 ; j < properties [ i ] . length - 1 ; j ++ ) { bean . addProperty ( properties [ i ] [ 0 ] , properties [ i ] [ j + 1 ] ) ; } } |
public class FrameworkUtil { /** * Stores an arbitrary named attribute in the attribute cache .
* @ param key Attribute name .
* @ param value Attribute value . If null , value is removed from cache .
* @ throws IllegalStateException if AppFramework is not initialized */
public static void setAttribute ( String k... | assertInitialized ( ) ; getAppFramework ( ) . setAttribute ( key , value ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.