signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class JobWaiter { /** * Wait for { @ code JobWaiter # timeout } seconds for BOTH of :
* 1 ) BatchStatus to be one of : STOPPED , FAILED , COMPLETED , ABANDONED
* AND
* 2 ) exitStatus to be non - null
* @ return JobExecution */
public JobExecution waitForFinish ( long executionId ) { } } | logger . fine ( "Entering waitForFinish for executionId = " + executionId ) ; JobExecution jobExecution = null ; long startTime = System . currentTimeMillis ( ) ; while ( true ) { try { logger . finer ( "Sleeping for " + POLL_INTERVAL ) ; long curTime = System . currentTimeMillis ( ) ; timeOutIfExpired ( startTime , cu... |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcSpecularHighlightSelect ( ) { } } | if ( ifcSpecularHighlightSelectEClass == null ) { ifcSpecularHighlightSelectEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 971 ) ; } return ifcSpecularHighlightSelectEClass ; |
public class JDBC4ClientConnectionPool { /** * Generates a hash / key for a connection based on the given list of connection parameters
* @ param servers
* the list of VoltDB servers to connect to in comma separated hostname [ : port ] format .
* @ param user
* the user name to use when connecting to the server... | String clientConnectionKeyBase = user + ":" + password + "@" ; for ( int i = 0 ; i < servers . length ; i ++ ) clientConnectionKeyBase += servers [ i ] . trim ( ) + "," ; clientConnectionKeyBase += "{" + Boolean . toString ( isHeavyWeight ) + ":" + Integer . toString ( maxOutstandingTxns ) + ":" + Boolean . toString ( ... |
public class MatrixVectorWriter { /** * Prints the vector size */
public void printVectorSize ( VectorSize size , VectorInfo info ) { } } | format ( Locale . ENGLISH , "%10d" , size . size ( ) ) ; if ( info . isCoordinate ( ) ) format ( Locale . ENGLISH , " %19d" , size . numEntries ( ) ) ; println ( ) ; |
public class CommercePriceListLocalServiceBaseImpl { /** * Performs a dynamic query on the database and returns the matching rows .
* @ param dynamicQuery the dynamic query
* @ return the matching rows */
@ Override public < T > List < T > dynamicQuery ( DynamicQuery dynamicQuery ) { } } | return commercePriceListPersistence . findWithDynamicQuery ( dynamicQuery ) ; |
public class MessagingSecurityUtility { /** * Create the AuthenticationData from the UserName
* @ param userName
* @ return */
public static AuthenticationData createAuthenticationData ( String userName , UserRegistry userRegistry ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , CLASS_NAME + "createAuthenticationData" , userName ) ; } AuthenticationData authData = new WSAuthenticationData ( ) ; if ( userName == null ) { userName = "" ; } String realm = getDefaultRealm ( userRegistry ) ; authData .... |
public class CmsJspTagContainer { /** * Prints an element error tag to the response out . < p >
* @ param elementSitePath the element site path
* @ param formatterSitePath the formatter site path
* @ param exception the exception causing the error
* @ throws IOException if something goes wrong writing to respon... | if ( m_editableRequest ) { String stacktrace = CmsException . getStackTraceAsString ( exception ) ; if ( CmsStringUtil . isEmptyOrWhitespaceOnly ( stacktrace ) ) { stacktrace = null ; } else { // stacktrace = CmsStringUtil . escapeJavaScript ( stacktrace ) ;
stacktrace = CmsEncoder . escapeXml ( stacktrace ) ; } String... |
public class CacheStatisticManager { /** * Marks the transaction as a write transaction ( instead of a read only transaction )
* @ param local { @ code true } if it is a local transaction . */
public final void markAsWriteTransaction ( GlobalTransaction globalTransaction , boolean local ) { } } | TransactionStatistics txs = getTransactionStatistic ( globalTransaction , local ) ; if ( txs == null ) { log . markUnexistingTransactionAsWriteTransaction ( globalTransaction == null ? "null" : globalTransaction . globalId ( ) ) ; return ; } txs . markAsUpdateTransaction ( ) ; |
public class CXFClientTransport { /** * { @ inheritDoc } */
@ Override public TransportResult doDelete ( URI uri ) { } } | WebClient webClient = instantiateWebClient ( uri ) ; webClient = webClient . replaceQuery ( uri . getQuery ( ) ) ; log . debug ( "DELETE " + webClient . getCurrentURI ( ) ) ; Response cxfResponse = webClient . delete ( ) ; return new CXFClientTransportResult ( cxfResponse ) ; |
public class CSTransformer { /** * Transform a Topic CSNode entity object into a SpecTopic Object that can be added to a Content Specification .
* @ param node The CSNode entity object to be transformed .
* @ param nodes A mapping of node entity ids to their transformed counterparts .
* @ param targetTopics A map... | if ( node . getNodeType ( ) != CommonConstants . CS_NODE_TOPIC ) { throw new IllegalArgumentException ( "The passed node is not a Spec Topic" ) ; } return transformSpecTopicWithoutTypeCheck ( node , nodes , targetTopics , relationshipFromNodes ) ; |
public class ArrayColormap { /** * Set the color at " index " to " color " . Entries are interpolated linearly from
* the existing entries at " firstIndex " and " lastIndex " to the new entry .
* firstIndex < index < lastIndex must hold .
* @ param index the position to set
* @ param firstIndex the position of ... | int firstColor = map [ firstIndex ] ; int lastColor = map [ lastIndex ] ; for ( int i = firstIndex ; i <= index ; i ++ ) map [ i ] = ImageMath . mixColors ( ( float ) ( i - firstIndex ) / ( index - firstIndex ) , firstColor , color ) ; for ( int i = index ; i < lastIndex ; i ++ ) map [ i ] = ImageMath . mixColors ( ( f... |
public class IntNaryTreebank { /** * Reads a list of trees in Penn Treebank format . */
public static IntNaryTreebank readTreesInPtbFormat ( IntObjectBimap < String > lexAlphabet , IntObjectBimap < String > ntAlphabet , Reader reader ) throws IOException { } } | IntNaryTreebank trees = new IntNaryTreebank ( ) ; while ( true ) { IntNaryTree tree = IntNaryTree . readTreeInPtbFormat ( lexAlphabet , ntAlphabet , reader ) ; if ( tree != null ) { trees . add ( tree ) ; } if ( tree == null ) { break ; } } return trees ; |
public class M3UAManagementImpl { /** * Associate { @ link AspImpl } to { @ link AsImpl }
* @ param asName
* @ param aspName
* @ return
* @ throws Exception */
public AspImpl assignAspToAs ( String asName , String aspName ) throws Exception { } } | // check ASP and AS exist with given name
AsImpl asImpl = ( AsImpl ) this . getAs ( asName ) ; if ( asImpl == null ) { throw new Exception ( String . format ( M3UAOAMMessages . NO_AS_FOUND , asName ) ) ; } AspFactoryImpl aspFactroy = this . getAspFactory ( aspName ) ; if ( aspFactroy == null ) { throw new Exception ( S... |
public class GeneratedDConnectionDaoImpl { /** * query - by method for field displayName
* @ param displayName the specified attribute
* @ return an Iterable of DConnections for the specified displayName */
public Iterable < DConnection > queryByDisplayName ( java . lang . String displayName ) { } } | return queryByField ( null , DConnectionMapper . Field . DISPLAYNAME . getFieldName ( ) , displayName ) ; |
public class JITDeploy { /** * d431543 */
public static void validateInterfaceBasics ( Class < ? > remoteHome , Class < ? > remoteInterface , Class < ? > localHome , Class < ? > localInterface , Class < ? > webServiceEndpointInterface , Class < ? > [ ] remoteBusinessInterfaces , Class < ? > [ ] localBusinessInterfaces ... | final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; // d576626
if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "validateInterfaceBasics : " + beanName ) ; if ( remoteHome != null ) { EJBHomeImpl . validateInterfaceBasics ( remoteHome , remoteInterface , REMOTE_HOME , beanName , beanType )... |
public class TemplateDataTenantOperationsListener { /** * The < code > @ Autowired < / code > list will reflect the order in which data types should be
* imported . */
@ Autowired public void setDataTypeImportOrder ( List < IPortalDataType > dataTypeImportOrder ) { } } | final ArrayList < PortalDataKey > dataKeyImportOrder = new ArrayList < > ( dataTypeImportOrder . size ( ) * 2 ) ; for ( final IPortalDataType portalDataType : dataTypeImportOrder ) { final List < PortalDataKey > supportedDataKeys = portalDataType . getDataKeyImportOrder ( ) ; for ( final PortalDataKey portalDataKey : s... |
public class BookKeeperEditLogInputStream { /** * Safely reads the log version from the stream . Logic is exactly the same
* as in the equivalent { @ link EditLogFileInputStream } method .
* @ see EditLogFileInputStream # readLogVersion ( DataInputStream )
* @ return The log version or 0 if stream is empty */
pri... | int logVersion = 0 ; in . mark ( 4 ) ; // See comments in EditLogFileInputStream as to why readLogVersion is
// implemented in this way
boolean available = true ; try { logVersion = in . readByte ( ) ; } catch ( EOFException e ) { available = false ; } if ( available ) { in . reset ( ) ; logVersion = in . readInt ( ) ;... |
public class MixinParentNode { /** * Builds a string that visually shows the subtree rooted at this node ( for debugging ) . Each line
* of the string will be indented by the given indentation amount . You should pass an indentation
* of 0 unless this method is being called as part of building a larger tree string ... | StringBuilder sb = new StringBuilder ( ) ; sb . append ( SPACES , 0 , indent ) . append ( "[" ) . append ( master ) . append ( "]\n" ) ; return sb . toString ( ) ; |
public class TransactionQueue { /** * Enqueues a transaction that will be serviced when a worker is
* available . If the queue is full or cannot accept new transactions , the
* transaction is not enqueued , and false is returned .
* @ return true if enqueued , false if queue is full or cannot accept new
* trans... | mTotalEnqueueAttempts ++ ; if ( transaction == null || mThreadPool . isClosed ( ) ) { return false ; } int queueSize ; if ( ( queueSize = mQueue . size ( ) ) >= mMaxSize ) { if ( mListeners . size ( ) > 0 ) { TransactionQueueEvent event = new TransactionQueueEvent ( this , transaction ) ; Iterator it = mListeners . ite... |
public class Query { /** * Empty list returns null ; */
public String [ ] getArrayFilter ( String key ) { } } | String value = filters . get ( key ) ; if ( value == null ) return null ; String [ ] array = new String [ 0 ] ; if ( value . startsWith ( "[" ) ) { if ( value . length ( ) > 2 ) array = value . substring ( 1 , value . length ( ) - 1 ) . split ( "," ) ; } else if ( value . length ( ) > 1 ) { array = value . split ( "," ... |
public class JCuda { /** * Copies data between host and device .
* < pre >
* cudaError _ t cudaMemcpy2DFromArrayAsync (
* void * dst ,
* size _ t dpitch ,
* cudaArray _ const _ t src ,
* size _ t wOffset ,
* size _ t hOffset ,
* size _ t width ,
* size _ t height ,
* cudaMemcpyKind kind ,
* cudaSt... | return checkResult ( cudaMemcpy2DFromArrayAsyncNative ( dst , dpitch , src , wOffset , hOffset , width , height , cudaMemcpyKind_kind , stream ) ) ; |
public class JcrManagedConnectionFactory { /** * Creates a Connection Factory instance .
* @ param cxManager ConnectionManager to be associated with created EIS connection factory instance
* @ return EIS - specific Connection Factory instance or javax . resource . cci . ConnectionFactory instance
* @ throws Resou... | JcrRepositoryHandle handle = new JcrRepositoryHandle ( this , cxManager ) ; return handle ; |
public class CalligraphyContextWrapper { /** * You only need to call this < b > IF < / b > you call
* { @ link uk . co . chrisjenx . calligraphy . CalligraphyConfig . Builder # disablePrivateFactoryInjection ( ) }
* This will need to be called from the
* { @ link android . app . Activity # onCreateView ( android ... | return get ( activity ) . onActivityCreateView ( parent , view , name , context , attr ) ; |
public class EventSubscriptionsInner { /** * Delete an event subscription .
* Delete an existing event subscription .
* @ param scope The scope of the event subscription . The scope can be a subscription , or a resource group , or a top level resource belonging to a resource provider namespace , or an EventGrid top... | if ( scope == null ) { throw new IllegalArgumentException ( "Parameter scope is required and cannot be null." ) ; } if ( eventSubscriptionName == null ) { throw new IllegalArgumentException ( "Parameter eventSubscriptionName is required and cannot be null." ) ; } if ( this . client . apiVersion ( ) == null ) { throw ne... |
public class AvailableLocalesResource { /** * Gets the requested locale , if it is available in the application .
* @ param localeId locale code
* @ return http status code 200 ( ok ) with the locale or 404 if the locale is not available . */
@ GET @ Path ( "/{localeId}" ) @ Produces ( MediaType . APPLICATION_JSON ... | WebAssertions . assertNotBlank ( localeId , LOCALE_SHOULD_NOT_BE_BLANK ) ; LocaleRepresentation availableLocale = localeFinder . findAvailableLocale ( localeId ) ; if ( availableLocale != null ) { return Response . ok ( availableLocale ) . build ( ) ; } return Response . status ( Response . Status . NOT_FOUND ) . build... |
public class ConsumerDispatcher { /** * ( non - Javadoc )
* @ see com . ibm . ws . sib . processor . impl . interfaces . MessageEventListener # eventPostCommitRemove ( com . ibm . ws . sib . processor . impl . interfaces . SIMPMessage ,
* com . ibm . ws . sib . msgstore . Transaction ) */
protected void eventPostCo... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "eventPostCommitRemove" , new Object [ ] { msg , transaction } ) ; // NB : ideally this would go in afterCompletion but we
// dont have the transaction reference to register for the callback
synchronized ( orderLock ) { // R... |
public class ExtensionActiveScan { /** * Sets the exclude list .
* @ param urls the new exclude list */
public void setExcludeList ( List < String > urls ) { } } | if ( urls == null || urls . isEmpty ( ) ) { excludeList = Collections . emptyList ( ) ; return ; } this . excludeList = urls ; |
public class UASparser { /** * Parse the given user agent string and returns a UserAgentInfo object with the related data
* @ param useragent
* @ throws IOException
* may happen when the retrieval of the data file fails
* @ return */
public UserAgentInfo parse ( String useragent ) throws IOException { } } | UserAgentInfo retObj = new UserAgentInfo ( ) ; if ( useragent == null ) { return retObj ; } useragent = useragent . trim ( ) ; // check that the data maps are up - to - date
checkDataMaps ( ) ; // first check if it ' s a robot
if ( ! processRobot ( useragent , retObj ) ) { // search for a browser on the browser regex p... |
public class ArrayUtils { /** * Deeply copies the given array into a new array of the same { @ link Class type } .
* This function performs a deep copy by { @ literal cloning } each element from the original array .
* @ param < T > { @ link Class type } of the array elements .
* @ param array array to copy .
* ... | Assert . notNull ( array , "Array is required" ) ; return deepCopy ( array , element -> element != null ? ObjectUtils . clone ( element ) : null ) ; |
public class RRDToolWriter { /** * " rrdtool create temperature . rrd - - step 300 \ \ \ n " +
* " DS : temp : GAUGE : 600 : - 273:5000 \ \ \ n " +
* " RRA : AVERAGE : 0.5:1:1200 \ \ \ n " +
* " RRA : MIN : 0.5:12:2400 \ \ \ n " + " RRA : MAX : 0.5:12:2400 \ \ \ n "
* + " RRA : AVERAGE : 0.5:12:2400" */
private... | return "DS:" + def . getDsName ( ) + ":" + def . getDsType ( ) + ":" + def . getHeartbeat ( ) + ":" + formatDouble ( def . getMinValue ( ) ) + ":" + formatDouble ( def . getMaxValue ( ) ) ; |
public class DateUtils { /** * Test to see if a string appears to represent a date range of more than one day .
* @ param eventDate to check
* @ return true if a date range , false otherwise . */
public static boolean isRange ( String eventDate ) { } } | boolean isRange = false ; if ( eventDate != null ) { String [ ] dateBits = eventDate . split ( "/" ) ; if ( dateBits != null && dateBits . length == 2 ) { // probably a range .
DateTimeParser [ ] parsers = { DateTimeFormat . forPattern ( "yyyy-MM" ) . getParser ( ) , DateTimeFormat . forPattern ( "yyyy" ) . getParser (... |
public class DefaultContextFactory { /** * Initializes Default Context Factory instance .
* @ param broker
* parent ServiceBroker */
@ Override public void started ( ServiceBroker broker ) throws Exception { } } | super . started ( broker ) ; // Set components
ServiceBrokerConfig cfg = broker . getConfig ( ) ; serviceInvoker = cfg . getServiceInvoker ( ) ; eventbus = cfg . getEventbus ( ) ; uid = cfg . getUidGenerator ( ) ; |
public class Branch { /** * < p > Generates a shorl url for the given { @ link ServerRequestCreateUrl } object < / p >
* @ param req An instance of { @ link ServerRequestCreateUrl } with parameters create the short link .
* @ return A url created with the given request if the request is synchronous else null .
* ... | if ( ! req . constructError_ && ! req . handleErrors ( context_ ) ) { if ( linkCache_ . containsKey ( req . getLinkPost ( ) ) ) { String url = linkCache_ . get ( req . getLinkPost ( ) ) ; req . onUrlAvailable ( url ) ; return url ; } else { if ( req . isAsync ( ) ) { generateShortLinkAsync ( req ) ; } else { return gen... |
public class QueueContainer { /** * TX Methods Ends */
public long offer ( Data data ) { } } | QueueItem item = new QueueItem ( this , nextId ( ) , null ) ; if ( store . isEnabled ( ) ) { try { store . store ( item . getItemId ( ) , data ) ; } catch ( Exception e ) { throw new HazelcastException ( e ) ; } } if ( ! store . isEnabled ( ) || store . getMemoryLimit ( ) > getItemQueue ( ) . size ( ) ) { item . setDat... |
public class ProviderRest { /** * Creates a new provider
* < pre >
* POST / providers
* Request :
* POST / providers HTTP / 1.1
* Accept : application / xml
* Response :
* { @ code
* < provider >
* < uuid > fc993580-03fe - 41eb - 8a21 - a56709f9370f < / uuid >
* < name > provider - 3 < / name >
* ... | logger . debug ( "StartOf createProvider - REQUEST Insert /providers" ) ; ProviderHelper providerRestService = getProviderHelper ( ) ; String location ; try { location = providerRestService . createProvider ( hh , uriInfo . getAbsolutePath ( ) . toString ( ) , payload ) ; } catch ( HelperException e ) { logger . info (... |
public class HttpRequest { /** * Start a ' HEAD ' request to the given URL along with the query params
* @ param baseUrl
* @ param params
* The query parameters to include as part of the baseUrl
* @ param encode
* true to encode the full URL
* @ see # append ( CharSequence , Map )
* @ see # encode ( CharS... | String url = append ( baseUrl , params ) ; return head ( encode ? encode ( url ) : url ) ; |
public class BrokerInstanceOptionMarshaller { /** * Marshall the given parameter object . */
public void marshall ( BrokerInstanceOption brokerInstanceOption , ProtocolMarshaller protocolMarshaller ) { } } | if ( brokerInstanceOption == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( brokerInstanceOption . getAvailabilityZones ( ) , AVAILABILITYZONES_BINDING ) ; protocolMarshaller . marshall ( brokerInstanceOption . getEngineType ( ) , ENGINETYP... |
public class KeyVaultClientBaseImpl { /** * Permanently deletes the specified secret .
* The purge deleted secret operation removes the secret permanently , without the possibility of recovery . This operation can only be enabled on a soft - delete enabled vault . This operation requires the secrets / purge permissio... | purgeDeletedSecretWithServiceResponseAsync ( vaultBaseUrl , secretName ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class BookmarksApi { /** * List corporation bookmark folders ( asynchronously ) A list of your
* corporation & # 39 ; s bookmark folders - - - This route is cached for up to
* 3600 seconds SSO Scope : esi - bookmarks . read _ corporation _ bookmarks . v1
* @ param corporationId
* An EVE corporation ID ( ... | com . squareup . okhttp . Call call = getCorporationsCorporationIdBookmarksFoldersValidateBeforeCall ( corporationId , datasource , ifNoneMatch , page , token , callback ) ; Type localVarReturnType = new TypeToken < List < CorporationBookmarkFoldersResponse > > ( ) { } . getType ( ) ; apiClient . executeAsync ( call , ... |
public class UserProfileHandlerImpl { /** * Write profile to storage .
* @ param profileNode
* the node which stores profile attributes as properties with
* prefix { @ link # ATTRIBUTE _ PREFIX }
* @ param userProfile
* the profile to store
* @ throws RepositoryException
* if unexpected exception is occur... | for ( Entry < String , String > attribute : userProfile . getUserInfoMap ( ) . entrySet ( ) ) { profileNode . setProperty ( ATTRIBUTE_PREFIX + attribute . getKey ( ) , attribute . getValue ( ) ) ; } |
public class JmesPathEvaluationVisitor { /** * Retrieves the value of the field node
* @ param fieldNode JmesPath field type
* @ param input Input json node whose value is
* retrieved
* @ return Value of the input json node */
@ Override public JsonNode visit ( JmesPathField fieldNode , JsonNode input ) { } } | if ( input . isObject ( ) ) { // TODO : CamelCase will need to change at some point
return input . get ( CamelCaseUtils . toCamelCase ( fieldNode . getValue ( ) ) ) ; } return NullNode . getInstance ( ) ; |
public class Store { /** * Gets the keys of all stored items .
* @ return an iterator of all keys . */
public Iterator < String > list ( ) { } } | try { final Enumeration < String > keys = pathRegistry . keys ( ) ; return new Iterator < String > ( ) { public boolean hasNext ( ) { return keys . hasMoreElements ( ) ; } public String next ( ) { return keys . nextElement ( ) ; } public void remove ( ) { throw new UnsupportedOperationException ( ) ; } } ; } catch ( Lo... |
public class PluginFile { /** * Reads the " instructions . properties " file .
* @ param instance the instance
* @ return a non - null properties object ( potentially empty )
* @ throws PluginException */
Properties readProperties ( Instance instance ) throws PluginException { } } | Properties result = null ; File instanceDirectory = InstanceHelpers . findInstanceDirectoryOnAgent ( instance ) ; File file = new File ( instanceDirectory , FILE_NAME ) ; try { if ( file . exists ( ) ) { result = Utils . readPropertiesFile ( file ) ; } else { this . logger . warning ( file + " does not exist or is inva... |
public class SingleThreadedStepControllerImpl { /** * Useless to have collector without analyzer but let ' s check so we don ' t hang or blow up . */
protected void sendCollectorDataToAnalyzerIfPresent ( Serializable data ) { } } | if ( analyzerStatusQueue != null ) { logger . finer ( "Sending collector partition data: " + data + " to analyzer queue: " + analyzerStatusQueue ) ; PartitionDataWrapper dataWrapper = new PartitionDataWrapper ( ) ; dataWrapper . setCollectorData ( data ) ; dataWrapper . setEventType ( PartitionEventType . ANALYZE_COLLE... |
public class HldTradeEntitiesProcessorNames { /** * < p > Get processor name for create . < / p >
* @ param pClass a Class
* @ return a thing */
protected final String getForCreate ( final Class < ? > pClass ) { } } | if ( this . seEntities . contains ( pClass ) ) { return null ; } return PrcEntityCreate . class . getSimpleName ( ) ; |
public class EnvironmentCheck { /** * Print out report of . jars found in a classpath .
* Takes the information encoded from a checkPathForJars ( )
* call and dumps it out to our PrintWriter .
* @ param container Node to append our report to
* @ param factory Document providing createElement , etc . services
... | if ( ( null == v ) || ( v . size ( ) < 1 ) ) return false ; boolean errors = false ; for ( int i = 0 ; i < v . size ( ) ; i ++ ) { Hashtable subhash = ( Hashtable ) v . elementAt ( i ) ; for ( Enumeration keys = subhash . keys ( ) ; keys . hasMoreElements ( ) ; /* no increment portion */
) { Object key = keys . nextEle... |
public class ExpressionIterator { /** * Fetches the next set of data and computes a value for the expression .
* Make sure to call { @ link # compile ( ) } first .
* And make sure to call { @ link # hasNext ( ) } before calling this .
* @ return A link to the data points for this result set
* @ throws IllegalDa... | // fetch the timestamp ONCE to save some cycles .
// final long timestamp = iterator . nextTimestamp ( ) ;
iterator . next ( ) ; // set aside a couple of addresses for the variables
double val ; double result ; for ( int i = 0 ; i < iterator . getSeriesSize ( ) ; i ++ ) { // this here is why life sucks . there MUST be ... |
public class CommitsApi { /** * Get a Pager of repository commits in a project .
* < pre > < code > GitLab Endpoint : GET / projects / : id / repository / commits < / code > < / pre >
* @ param projectIdOrPath the project in the form of an Integer ( ID ) , String ( path ) , or Project instance
* @ param itemsPerP... | return ( getCommits ( projectIdOrPath , null , null , null , itemsPerPage ) ) ; |
public class DescribeStaleSecurityGroupsResult { /** * Information about the stale security groups .
* @ return Information about the stale security groups . */
public java . util . List < StaleSecurityGroup > getStaleSecurityGroupSet ( ) { } } | if ( staleSecurityGroupSet == null ) { staleSecurityGroupSet = new com . amazonaws . internal . SdkInternalList < StaleSecurityGroup > ( ) ; } return staleSecurityGroupSet ; |
public class MoneyAmountStyle { /** * Returns a copy of this style with the specified negative sign character .
* The standard ASCII symbol is ' - ' .
* @ param negativeCharacter the negative character , null if to be determined by locale
* @ return the new instance for chaining , never null */
public MoneyAmount... | int negativeVal = ( negativeCharacter == null ? - 1 : negativeCharacter ) ; if ( negativeVal == this . negativeCharacter ) { return this ; } return new MoneyAmountStyle ( zeroCharacter , positiveCharacter , negativeVal , decimalPointCharacter , groupingStyle , groupingCharacter , groupingSize , extendedGroupingSize , f... |
public class TaxinvoiceServiceImp { /** * / * ( non - Javadoc )
* @ see com . popbill . api . TaxinvoiceService # send ( java . lang . String , com . popbill . api . taxinvoice . MgtKeyType , java . lang . String , java . lang . String ) */
@ Override public Response send ( String CorpNum , MgtKeyType KeyType , Strin... | return send ( CorpNum , KeyType , MgtKey , Memo , null ) ; |
public class TabbedPaneTabCloseButtonPainter { /** * { @ inheritDoc } */
protected void doPaint ( Graphics2D g , JComponent c , int width , int height , Object [ ] extendedCacheKeys ) { } } | g . setRenderingHint ( RenderingHints . KEY_ANTIALIASING , RenderingHints . VALUE_ANTIALIAS_ON ) ; switch ( state ) { case ENABLED : drawEnabledGraphic ( g , width , height ) ; break ; case MOUSEOVER : drawBorder ( g , width , height , borderMouseOver , 0.4f ) ; drawOverlayGraphic ( g , width , height ) ; break ; case ... |
public class PreferenceActivity { /** * Sets the text of the next button , which is shown , when the activity is used as a wizard .
* @ param text
* The text , which should be set , as an instance of the class { @ link CharSequence } . The
* text may neither be null , nor empty */
public final void setNextButtonT... | Condition . INSTANCE . ensureNotNull ( text , "The text may not be null" ) ; Condition . INSTANCE . ensureNotEmpty ( text , "The text may not be empty" ) ; this . nextButtonText = text ; adaptNextButtonText ( ) ; |
public class Base64Slow { /** * Encode bytes in Base64.
* @ param bytes The data to encode .
* @ param lineBreaks Whether to insert line breaks every 76 characters in the output .
* @ return String with Base64 encoded data .
* @ since ostermillerutils 1.04.00 */
public static String encodeToString ( byte [ ] by... | try { return new String ( encode ( bytes , lineBreaks ) , "ASCII" ) ; } catch ( UnsupportedEncodingException iex ) { // ASCII should be supported
throw new RuntimeException ( iex ) ; } |
public class SshConnectionImpl { /** * Disconnects the connection . */
@ Override public synchronized void disconnect ( ) { } } | if ( connectSession != null ) { logger . debug ( "Disconnecting client connection." ) ; connectSession . disconnect ( ) ; connectSession = null ; } |
public class StatisticsMeter { /** * Aggregate a collection of { @ linkplain StatsData } instances .
* @ param dataSet a collection of { @ linkplain StatsData } instances
* @ return aggregated { @ linkplain StatsData } */
static StatsData aggregateStats ( Collection < StatsData > dataSet ) { } } | StatsData combined = new StatsData ( ) ; for ( StatsData stats : dataSet ) { if ( stats . count == 0 ) { continue ; } if ( combined . total == 0 ) { combined . min = stats . min ; combined . max = stats . max ; } combined . total = combined . total + stats . total ; combined . count = combined . count + stats . count ;... |
public class AnalyzeSpark { /** * Sample the N most frequently occurring values in the specified column
* @ param nMostFrequent Top N values to sample
* @ param columnName Name of the column to sample from
* @ param schema Schema of the data
* @ param data RDD containing the data
* @ return List of the most f... | int columnIdx = schema . getIndexOfColumn ( columnName ) ; JavaPairRDD < Writable , Long > keyedByWritable = data . mapToPair ( new ColumnToKeyPairTransform ( columnIdx ) ) ; JavaPairRDD < Writable , Long > reducedByWritable = keyedByWritable . reduceByKey ( new SumLongsFunction2 ( ) ) ; List < Tuple2 < Writable , Long... |
public class AmazonEC2Client { /** * Modifies the credit option for CPU usage on a running or stopped T2 or T3 instance . The credit options are
* < code > standard < / code > and < code > unlimited < / code > .
* For more information , see < a
* href = " https : / / docs . aws . amazon . com / AWSEC2 / latest / ... | request = beforeClientExecution ( request ) ; return executeModifyInstanceCreditSpecification ( request ) ; |
public class MkCoPTreeIndex { /** * Creates a new leaf entry representing the specified data object in the
* specified subtree .
* @ param object the data object to be represented by the new entry
* @ param parentDistance the distance from the object to the routing object of
* the parent node */
protected MkCoP... | MkCoPLeafEntry leafEntry = new MkCoPLeafEntry ( id , parentDistance , null , null ) ; return leafEntry ; |
public class BundleModel { /** * Creates the list of bundle models based on the bundle currently deployed .
* @ param context the bundle context .
* @ return the list of models */
public static List < BundleModel > bundles ( BundleContext context ) { } } | List < BundleModel > bundles = new ArrayList < > ( ) ; for ( Bundle bundle : context . getBundles ( ) ) { bundles . add ( new BundleModel ( bundle ) ) ; } return bundles ; |
public class ServerRequest { /** * < p > Gets a { @ link JSONObject } containing the post data supplied with the current request as
* key - value pairs appended with the instrumentation data . < / p >
* * @ param instrumentationData { @ link ConcurrentHashMap } with instrumentation values
* @ return A { @ link JS... | JSONObject extendedPost = new JSONObject ( ) ; try { // Add original parameters
if ( params_ != null ) { JSONObject originalParams = new JSONObject ( params_ . toString ( ) ) ; Iterator < String > keys = originalParams . keys ( ) ; while ( keys . hasNext ( ) ) { String key = keys . next ( ) ; extendedPost . put ( key ,... |
public class Sanitizers { /** * Normalizes the input HTML while preserving " safe " tags and the known directionality .
* @ param optionalSafeTags to add to the basic whitelist of formatting safe tags
* @ return the normalized input , in the form of { @ link SanitizedContent } of { @ link
* ContentKind # HTML } *... | value = normalizeNull ( value ) ; Dir valueDir = null ; if ( value instanceof SanitizedContent ) { SanitizedContent sanitizedContent = ( SanitizedContent ) value ; if ( sanitizedContent . getContentKind ( ) == SanitizedContent . ContentKind . HTML ) { return ( SanitizedContent ) value ; } valueDir = sanitizedContent . ... |
public class AnimatedDialog { /** * Set the window attributes for the invite dialog . */
public void setDialogWindowAttributes ( ) { } } | requestWindowFeature ( Window . FEATURE_NO_TITLE ) ; getWindow ( ) . setBackgroundDrawable ( new ColorDrawable ( Color . TRANSPARENT ) ) ; getWindow ( ) . addFlags ( WindowManager . LayoutParams . FLAG_DIM_BEHIND ) ; getWindow ( ) . addFlags ( WindowManager . LayoutParams . FLAG_FULLSCREEN ) ; WindowManager . LayoutPar... |
public class CBLVersion { /** * This is the full library build and environment information . */
public static String getVersionInfo ( ) { } } | String info = versionInfo . get ( ) ; if ( info == null ) { info = String . format ( Locale . ENGLISH , VERSION_INFO , getLibInfo ( ) , getSysInfo ( ) ) ; versionInfo . compareAndSet ( null , info ) ; } return info ; |
public class MatrixIO { /** * Saves a matrix to disk using Java binary serialization .
* @ param A The matrix being saved .
* @ param fileName Name of the file its being saved at .
* @ throws java . io . IOException */
public static void saveBin ( DMatrix A , String fileName ) throws IOException { } } | FileOutputStream fileStream = new FileOutputStream ( fileName ) ; ObjectOutputStream stream = new ObjectOutputStream ( fileStream ) ; try { stream . writeObject ( A ) ; stream . flush ( ) ; } finally { // clean up
try { stream . close ( ) ; } finally { fileStream . close ( ) ; } } |
public class MailApi { /** * Create a mail label Create a mail label - - - SSO Scope :
* esi - mail . organize _ mail . v1
* @ param characterId
* An EVE character ID ( required )
* @ param datasource
* The server name you would like data from ( optional , default to
* tranquility )
* @ param token
* Ac... | com . squareup . okhttp . Call call = postCharactersCharacterIdMailLabelsValidateBeforeCall ( characterId , datasource , token , mailLabelSimple , null ) ; Type localVarReturnType = new TypeToken < Integer > ( ) { } . getType ( ) ; return apiClient . execute ( call , localVarReturnType ) ; |
public class AbstractAliasMappingBuilder { /** * This method will add the given routing as both search & index routing . */
public K addRouting ( String routing ) { } } | this . indexRouting . add ( routing ) ; this . searchRouting . add ( routing ) ; return ( K ) this ; |
public class StatusBar { /** * For example :
* < code >
* setZones ( new String [ ] { " A " , " B " } ,
* new JComponent [ ] { new JLabel ( ) , new JLabel ( ) } ,
* new String [ ] { " 33 % " , " * " } ) ;
* < / code >
* would construct a new status bar with two zones ( two JLabels ) named A and
* B , the ... | removeAll ( ) ; idToZones . clear ( ) ; for ( int i = 0 , c = zones . length ; i < c ; i ++ ) { addZone ( ids [ i ] , zones [ i ] , constraints [ i ] ) ; } |
public class WebApplicationServiceFactory { /** * Build new web application service simple web application service .
* @ param request the request
* @ param serviceToUse the service to use
* @ return the simple web application service */
protected static AbstractWebApplicationService newWebApplicationService ( fi... | val artifactId = request != null ? request . getParameter ( CasProtocolConstants . PARAMETER_TICKET ) : null ; val id = cleanupUrl ( serviceToUse ) ; val newService = new SimpleWebApplicationServiceImpl ( id , serviceToUse , artifactId ) ; determineWebApplicationFormat ( request , newService ) ; val source = getSourceP... |
public class CorrectGeometricConfiguration { /** * Determine the parity ( odd / even ) of the triangle formed by the 3 atoms .
* @ param atoms array of 3 atoms
* @ return the parity of the triangle formed by 3 points , odd = - 1 , even = */
private static int parity ( IAtom [ ] atoms ) { } } | return parity ( atoms [ 0 ] . getPoint2d ( ) , atoms [ 1 ] . getPoint2d ( ) , atoms [ 2 ] . getPoint2d ( ) ) ; |
public class DateExtensions { /** * Returns a new { @ link Date } object from the given Date object and sets the given parameters .
* @ param dateToSet
* the date to set
* @ param hour
* the hour
* @ param minute
* the minute
* @ param second
* the second
* @ param milliSecond
* the mili second
* ... | return setDate ( dateToSet , getYear ( dateToSet ) , getMonth ( dateToSet ) , getDay ( dateToSet ) , hour , minute , second , milliSecond , zone , locale ) ; |
public class Bean { /** * Send a UTF - 8 string to the Bean as a serial message .
* @ param value the message to send as UTF - 8 bytes */
public void sendSerialMessage ( String value ) { } } | Buffer buffer = new Buffer ( ) ; try { buffer . write ( value . getBytes ( "UTF-8" ) ) ; sendMessage ( BeanMessageID . SERIAL_DATA , buffer ) ; } catch ( UnsupportedEncodingException e ) { throw new RuntimeException ( e ) ; } |
public class BaseMessageHeader { /** * Return the state of this object as a properties object .
* @ param strKey The key to return .
* @ return The properties . */
public Object get ( String strKey ) { } } | if ( m_mxProperties != null ) { for ( int i = 0 ; i < m_mxProperties . length ; i ++ ) { if ( strKey != null ) if ( strKey . equalsIgnoreCase ( ( String ) m_mxProperties [ i ] [ MessageConstants . NAME ] ) ) return m_mxProperties [ i ] [ MessageConstants . VALUE ] ; } } return null ; // Not found |
public class RU { /** * / * DATE FORMAT FUNCTIONS */
public static String formatDate ( Date date , String mask ) { } } | if ( date == null ) { return "" ; } if ( mask == null ) { mask = DATE_FORMAT ; } return new SimpleDateFormat ( mask ) . format ( date ) ; |
public class ElementUtil { /** * Tests if this type element is private to it ' s source file . A public type declared
* within a private type is considered private . */
public static boolean isPrivateInnerType ( TypeElement type ) { } } | switch ( type . getNestingKind ( ) ) { case ANONYMOUS : case LOCAL : return true ; case MEMBER : return isPrivate ( type ) || isPrivateInnerType ( ( TypeElement ) type . getEnclosingElement ( ) ) ; case TOP_LEVEL : return isPrivate ( type ) ; } throw new AssertionError ( "Unknown NestingKind" ) ; |
public class StandardURI { /** * Compares the schemes of this URI and a given URI .
* @ param other the other { @ link URI } to compare the scheme
* @ return a negative integer , zero , or a positive integer if this scheme is respectively less
* than , equal to , or greater than the full scheme of the other URI .... | String scheme = getScheme ( ) ; String otherScheme = other . getScheme ( ) ; if ( scheme == null && otherScheme == null ) { return 0 ; } if ( scheme != null ) { if ( otherScheme != null ) { return scheme . compareToIgnoreCase ( otherScheme ) ; } // not null is greater than ' null ' .
return 1 ; } // ' null ' is less th... |
public class Appointment { /** * syntactic sugar */
public Reference addSlot ( ) { } } | Reference t = new Reference ( ) ; if ( this . slot == null ) this . slot = new ArrayList < Reference > ( ) ; this . slot . add ( t ) ; return t ; |
public class DenialOfServiceTaf { /** * for use in Other TAFs , before they attempt backend validation of */
public static Counter isDeniedID ( String identity ) { } } | if ( deniedID != null ) { return deniedID . get ( identity ) ; } return null ; |
public class JarUrlConnection { /** * Setup the < code > InputStream < / code > for URL with nested segments .
* @ throws java . io . IOException If an I / O error occurs . */
protected void setupPathedInputStream ( ) throws IOException { } } | InputStream curIn = getBaseResource ( ) . openStream ( ) ; for ( int i = 0 ; i < this . segments . length ; ++ i ) { curIn = getSegmentInputStream ( curIn , segments [ i ] ) ; } this . in = curIn ; |
public class PersistenceApi { /** * Execute Update Query
* Execute update query with defined criteria and update instructions
* @ param query Query defined with criteria and update instructions ( required )
* @ return Integer
* @ throws ApiException If fail to call the API , e . g . server error or cannot deser... | ApiResponse < Integer > resp = executeUpdatePostWithHttpInfo ( query ) ; return resp . getData ( ) ; |
public class VodClient { /** * Load a media resource from URL to VOD .
* @ param sourceUrl The source url of the media resource
* @ param title The title string of the media resource
* @ param description The description string of the media resource
* @ param transcodingPresetGroupName set transcoding presetgro... | return createMediaResource ( sourceUrl , title , description , transcodingPresetGroupName , priority , null ) ; |
public class QueueBuilder { /** * Sets an amount of time to call { @ link DistributedQueue # flushPuts ( long , TimeUnit ) } when the
* queue is closed . The default is 5 seconds . Pass 0 to turn flushing on close off .
* @ param time time
* @ param unit the unit
* @ return this */
public QueueBuilder < T > fin... | finalFlushMs = ( int ) unit . toMillis ( time ) ; return this ; |
public class CodeGenerator { /** * Gets the size method code .
* @ return the size method code */
private MethodCode getSizeMethodCode ( ) { } } | MethodCode mc = new MethodCode ( ) ; mc . setName ( "size" ) ; mc . setScope ( ClassCode . SCOPE_PUBLIC ) ; mc . setReturnType ( "int" ) ; mc . addParameter ( ClassHelper . getInternalName ( cls . getCanonicalName ( ) ) , "t" ) ; mc . addException ( "IOException" ) ; // add method code
mc . appendLineCode1 ( "int size ... |
public class GeoPackageGeometryData { /** * Get the envelope flag indicator
* 1 for xy , 2 for xyz , 3 for xym , 4 for xyzm ( null would be 0)
* @ param envelope
* geometry envelope
* @ return indicator */
public static int getIndicator ( GeometryEnvelope envelope ) { } } | int indicator = 1 ; if ( envelope . hasZ ( ) ) { indicator ++ ; } if ( envelope . hasM ( ) ) { indicator += 2 ; } return indicator ; |
public class SlideStackModel { /** * Display a slide .
* @ param slide the slide to display
* @ param isReverse indicate the direction ( next or previous slide ) */
@ SuppressWarnings ( "unchecked" ) private void displaySlide ( final Slide slide , final boolean isReverse ) { } } | synchronized ( this ) { try { LOGGER . trace ( "Display slide N°" + slide . getPage ( ) + " reverse=" + isReverse ) ; SlideModel < SlideStep > previousSlideModel = null ; if ( this . selectedSlide != null ) { final Class < Model > previousClass = ( Class < Model > ) ( this . selectedSlide . getModelClass ( ) == null ? ... |
public class FieldSet { /** * Compute the number of bytes needed to encode a particular field . */
public static int computeFieldSize ( final FieldDescriptorLite < ? > descriptor , final Object value ) { } } | WireFormat . FieldType type = descriptor . getLiteType ( ) ; int number = descriptor . getNumber ( ) ; if ( descriptor . isRepeated ( ) ) { if ( descriptor . isPacked ( ) ) { int dataSize = 0 ; for ( final Object element : ( List < ? > ) value ) { dataSize += computeElementSizeNoTag ( type , element ) ; } return dataSi... |
public class GreenPepperServerServiceImpl { /** * { @ inheritDoc } */
public List < Repository > getRepositoriesOfAssociatedProject ( String projectName ) throws GreenPepperServerException { } } | try { sessionService . startSession ( ) ; return repositoryDao . getAll ( projectName ) ; } finally { sessionService . closeSession ( ) ; } |
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getMFC ( ) { } } | if ( mfcEClass == null ) { mfcEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 295 ) ; } return mfcEClass ; |
public class ClusteringKeyMapper { /** * Returns the last possible cell name of those having the same clustering key that the specified cell name .
* @ param cellName A storage engine cell name .
* @ return The first column name of for { @ code clusteringKey } . */
public final Composite end ( CellName cellName ) {... | return start ( cellName ) . withEOC ( Composite . EOC . END ) ; |
public class BosClient { /** * Completes a multipart upload by assembling previously uploaded parts .
* @ param bucketName The name of the bucket containing the multipart upload to complete .
* @ param key The key of the multipart upload to complete .
* @ param uploadId The ID of the multipart upload to complete ... | return this . completeMultipartUpload ( new CompleteMultipartUploadRequest ( bucketName , key , uploadId , partETags ) ) ; |
public class SubFileIntegrityHandler { /** * Called when a change is the record status is about to happen / has happened .
* On an add or lock , makes sure the main key field is set to the current main target field
* so it will be a child of the current main record .
* @ param field If this file change is due to ... | // Read a valid record
int iErrorCode = DBConstants . NORMAL_RETURN ; switch ( iChangeType ) { case DBConstants . DELETE_TYPE : m_recDependent = this . getSubRecord ( ) ; if ( m_recDependent != null ) { try { if ( ! m_bRemoveSubRecords ) { m_recDependent . close ( ) ; if ( m_recDependent . hasNext ( ) ) { // Error - Ca... |
public class AckManagerBusiness { /** * Put a number in black list .
* @ param phoneNumber
* @ param application */
private void putPhoneNumberInBlackList ( final String phoneNumber , final Application application ) { } } | // if phone number is not already in the bl ( it should not append ) put the phone number
// put the phone number in the black list
if ( daoService . isPhoneNumberInBlackList ( phoneNumber ) ) return ; logger . debug ( "Adding to black list : \n" + " - Phone number : " + phoneNumber + "\n" + " - Application id : " + ap... |
public class Matrix { /** * Make a one - dimensional column packed copy of the internal array .
* @ return Matrix elements packed in a one - dimensional array by columns . */
public double [ ] getColumnPackedCopy ( ) { } } | double [ ] vals = new double [ m * n ] ; for ( int i = 0 ; i < m ; i ++ ) { for ( int j = 0 ; j < n ; j ++ ) { vals [ i + j * m ] = A [ i ] [ j ] ; } } return vals ; |
public class QuickSelect { /** * Choose the best pivot for the given rank .
* @ param rank Rank
* @ param m1 Pivot candidate
* @ param m2 Pivot candidate
* @ param m3 Pivot candidate
* @ param m4 Pivot candidate
* @ param m5 Pivot candidate
* @ return Best pivot candidate */
private static final int bestP... | if ( rank < m1 ) { return m1 ; } if ( rank > m5 ) { return m5 ; } if ( rank < m2 ) { return m2 ; } if ( rank > m4 ) { return m4 ; } return m3 ; |
public class ApiOvhXdsl { /** * Get this object properties
* REST : GET / xdsl / { serviceName } / modem / lan / { lanName } / dhcp / { dhcpName }
* @ param serviceName [ required ] The internal name of your XDSL offer
* @ param lanName [ required ] Name of the LAN
* @ param dhcpName [ required ] Name of the DH... | String qPath = "/xdsl/{serviceName}/modem/lan/{lanName}/dhcp/{dhcpName}" ; StringBuilder sb = path ( qPath , serviceName , lanName , dhcpName ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhDHCP . class ) ; |
public class JsonFunctions { /** * The returned Expression unmarshals the JSON constant
* into a N1QL value . The empty string results in MISSING . */
public static Expression decodeJson ( JsonObject json ) { } } | char [ ] encoded = JsonStringEncoder . getInstance ( ) . quoteAsString ( json . toString ( ) ) ; return x ( "DECODE_JSON(\"" + new String ( encoded ) + "\")" ) ; |
public class AbstractCommand { /** * Getter method for instance variable { @ link # targetCreateClassification } .
* @ return value of instance variable { @ link # targetCreateClassification }
* @ throws CacheReloadException on error */
public Set < Classification > getTargetCreateClassification ( ) throws CacheRel... | final Set < Classification > ret = new HashSet < > ( ) ; for ( final Long id : targetCreateClassificationIds ) { ret . add ( Classification . get ( id ) ) ; } return Collections . unmodifiableSet ( ret ) ; |
public class CreateTableRequest { /** * One or more global secondary indexes ( the maximum is 20 ) to be created on the table . Each global secondary index
* in the array includes the following :
* < ul >
* < li >
* < code > IndexName < / code > - The name of the global secondary index . Must be unique only for... | if ( globalSecondaryIndexes == null ) { this . globalSecondaryIndexes = null ; return ; } this . globalSecondaryIndexes = new java . util . ArrayList < GlobalSecondaryIndex > ( globalSecondaryIndexes ) ; |
public class ProjectCalendarDateRanges { /** * Retrieve the date range at the specified index .
* The index is zero based , and this method will return
* null if the requested date range does not exist .
* @ param index range index
* @ return date range instance */
public DateRange getRange ( int index ) { } } | DateRange result ; if ( index >= 0 && index < m_ranges . size ( ) ) { result = m_ranges . get ( index ) ; } else { result = DateRange . EMPTY_RANGE ; } return ( result ) ; |
public class NotificationManager { /** * Update the list of filters for the client / MBean pair */
public void updateClientNotification ( RESTRequest request , int clientID , String objectNameStr , NotificationFilter [ ] filters , JSONConverter converter ) { } } | // Grab the client inbox
ClientNotificationArea clientArea = getInboxIfAvailable ( clientID , null ) ; // Update the filters inside the listener
clientArea . updateClientNotificationListener ( request , objectNameStr , filters , converter ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.