signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class PermissionUtil { /** * Check whether the provided { @ link net . dv8tion . jda . core . entities . Member Member } can use the specified { @ link net . dv8tion . jda . core . entities . Emote Emote } .
* < p > If the specified Member is not in the emote ' s guild or the emote provided is fake this will r... | Checks . notNull ( issuer , "Issuer Member" ) ; Checks . notNull ( emote , "Target Emote" ) ; if ( ! issuer . getGuild ( ) . equals ( emote . getGuild ( ) ) ) throw new IllegalArgumentException ( "The issuer and target are not in the same Guild" ) ; // We don ' t need to check based on the fact it is animated if it ' s... |
public class Set { /** * < div color = ' red ' style = " font - size : 24px ; color : red " > < b > < i > JCYPHER LANGUAGE ELEMENT < / i > < / b > < / div >
* < div color = ' red ' style = " font - size : 18px ; color : red " > < i > set to a primitive value like a String or a Number < / i > < / div >
* < br / > */... | ModifyExpression mx = ( ModifyExpression ) this . astNode ; mx . setValue ( value ) ; return this . connector ; |
public class KNXNetworkLinkIP { /** * { @ inheritDoc } When communicating with a KNX network which uses open medium ,
* messages are broadcasted within domain ( as opposite to system broadcast ) by
* default . Specify < code > dst null < / code > for system broadcast . */
public void sendRequest ( KNXAddress dst , ... | send ( dst , p , nsdu , false ) ; |
public class RtfTable { /** * Imports the rows and settings from the Table into this
* RtfTable .
* @ param table The source PdfPTable
* @ since 2.1.3 */
private void importTable ( PdfPTable table ) { } } | this . rows = new ArrayList ( ) ; this . tableWidthPercent = table . getWidthPercentage ( ) ; // this . tableWidthPercent = table . getWidth ( ) ;
this . proportionalWidths = table . getAbsoluteWidths ( ) ; // this . proportionalWidths = table . getProportionalWidths ( ) ;
this . cellPadding = ( float ) ( table . spaci... |
public class HttpRpcPluginQuery { /** * Return the base route with no plugin prefix in it . This is matched with
* values returned by { @ link HttpRpcPlugin # getPath ( ) } .
* @ return the base route path ( no query parameters , etc . ) */
@ Override public String getQueryBaseRoute ( ) { } } | final String [ ] parts = explodePath ( ) ; if ( parts . length < 2 ) { // Must be at least something like : / plugin / blah
throw new BadRequestException ( "Invalid plugin request path: " + getQueryPath ( ) ) ; } return parts [ 1 ] ; |
public class ElasticSearchIndex { /** * Configure ElasticSearchIndex ' s ES client according to semantics introduced in
* 0.5.1 . Allows greater flexibility than the previous config semantics . See
* { @ link com . thinkaurelius . titan . diskstorage . es . ElasticSearchSetup } for more
* information .
* This i... | ElasticSearchSetup clientMode = ConfigOption . getEnumValue ( config . get ( INTERFACE ) , ElasticSearchSetup . class ) ; try { return clientMode . connect ( config ) ; } catch ( IOException e ) { throw new TitanException ( e ) ; } |
public class BitOutputStream { /** * Write .
* @ param bits the bits
* @ throws IOException the io exception */
public synchronized void write ( final Bits bits ) throws IOException { } } | Bits newRemainder = this . remainder . concatenate ( bits ) ; final int newRemainingBits = newRemainder . bitLength % 8 ; int bitsToWrite = newRemainder . bitLength - newRemainingBits ; if ( bitsToWrite > 0 ) { assert ( 0 == bitsToWrite % 8 ) ; final Bits toWrite = newRemainder . range ( 0 , bitsToWrite ) ; this . inne... |
public class AddressDivisionGrouping { /** * Returns whether the values of this division grouping contain the prefix block for the given prefix length
* @ param prefixLength
* @ return */
@ Override public boolean containsPrefixBlock ( int prefixLength ) { } } | checkSubnet ( this , prefixLength ) ; int divisionCount = getDivisionCount ( ) ; int prevBitCount = 0 ; for ( int i = 0 ; i < divisionCount ; i ++ ) { AddressDivision division = getDivision ( i ) ; int bitCount = division . getBitCount ( ) ; int totalBitCount = bitCount + prevBitCount ; if ( prefixLength < totalBitCoun... |
public class SCharsStemmer { /** * Removes ending s of words longer than 3 chars */
@ Override public String stem ( String token ) { } } | if ( token != null && token . length ( ) > 3 && token . endsWith ( "s" ) ) { return token . substring ( 0 , token . length ( ) - 1 ) ; } return token ; |
public class JCRSQLQueryBuilder { /** * Creates < code > LocationStepQueryNode < / code > s from a < code > path < / code > .
* @ param path the path pattern
* @ param operation the type of the parent node */
private void createPathQuery ( String path , int operation ) { } } | MergingPathQueryNode pathNode = new MergingPathQueryNode ( operation , factory . createPathQueryNode ( null ) . getValidJcrSystemNodeTypeNames ( ) ) ; pathNode . setAbsolute ( true ) ; if ( path . equals ( "/" ) ) { pathNode . addPathStep ( factory . createLocationStepQueryNode ( pathNode ) ) ; pathConstraints . add ( ... |
public class XMLWikiPrinter { /** * Print the xml element . In the form { @ code < name att1 = " value1 " att2 = " value2 " / > } .
* @ param name the xml element to print
* @ param attributes the xml attributes of the element to print */
public void printXMLElement ( String name , String [ ] [ ] attributes ) { } } | Element element = new DefaultElement ( name ) ; if ( attributes != null && attributes . length > 0 ) { for ( String [ ] entry : attributes ) { element . addAttribute ( entry [ 0 ] , entry [ 1 ] ) ; } } try { this . xmlWriter . write ( element ) ; } catch ( IOException e ) { // TODO : add error log here
} |
public class SubItemUtil { /** * retrieves a flat list of the items in the adapter , respecting subitems regardless of there current visibility
* @ param adapter the adapter instance
* @ param predicate predicate against which each item will be checked before adding it to the result
* @ return list of items in th... | return getAllItems ( adapter . getAdapterItems ( ) , true , false , predicate ) ; |
public class ClassUtility { /** * Convert aStringUnderscored into A _ STRING _ UNDESCORED .
* @ param camelCaseString the string to convert
* @ return the underscored string */
public static String camelCaseToUnderscore ( final String camelCaseString ) { } } | final StringBuilder sb = new StringBuilder ( ) ; for ( final String camelPart : camelCaseString . split ( "(?<!(^|[A-Z]))(?=[A-Z])|(?<!^)(?=[A-Z][a-z])" ) ) { if ( sb . length ( ) > 0 ) { sb . append ( CASE_SEPARATOR ) ; } sb . append ( camelPart . toUpperCase ( Locale . getDefault ( ) ) ) ; } return sb . toString ( ) ... |
public class ColumnText { /** * Finds the intersection between the < CODE > yLine < / CODE > and the two
* column bounds . It will set the < CODE > lineStatus < / CODE > appropriately .
* @ return a < CODE > float [ 2 ] < / CODE > with the x coordinates of the intersection */
protected float [ ] findLimitsOneLine (... | float x1 = findLimitsPoint ( leftWall ) ; if ( lineStatus == LINE_STATUS_OFFLIMITS || lineStatus == LINE_STATUS_NOLINE ) return null ; float x2 = findLimitsPoint ( rightWall ) ; if ( lineStatus == LINE_STATUS_NOLINE ) return null ; return new float [ ] { x1 , x2 } ; |
public class CmsGalleryController { /** * Gets the filtered list of categories . < p >
* @ param filter the search string to use for filtering
* @ return the filtered category beans */
private List < CmsCategoryBean > getFilteredCategories ( String filter ) { } } | List < CmsCategoryBean > result ; if ( CmsStringUtil . isNotEmptyOrWhitespaceOnly ( filter ) ) { result = new ArrayList < CmsCategoryBean > ( ) ; for ( CmsCategoryBean category : getCategoryList ( ) ) { if ( category . matchesFilter ( filter ) ) { result . add ( category ) ; } } } else { result = getCategoryList ( ) ; ... |
public class OpenTracingPlugin { /** * Creates a new { @ link OpenTracingPlugin plugin } by < strong > combining < / strong > the { @ link SpanDecorator decorator ( s ) } of
* { @ code this } plugin with the supplied ones .
* @ param first first decorator
* @ param decorators optional , remaining decorators
* @... | return withSpanDecorators ( decorator , SpanDecorator . composite ( first , decorators ) ) ; |
public class NodeModelBuilder { /** * Generate a { @ link NodeModel } for use in parsing , based on the selectors
* and handlers attached to this builder .
* This will also trigger a cascade < code > build ( ) < / code > calls on any attached
* < code > ElementHandler < / code > instances .
* @ return < code > ... | for ( Map . Entry < NodeState < T > , List < ElementHandler < T > > > e : statesWithHandlers . entrySet ( ) ) { NodeState < T > state = e . getKey ( ) ; // Run a sub - builder rooted here for each handler
// Inject into model
NodeModel < T > subModel = new NodeModel < T > ( state ) ; NodeModelBuilder < T > subBuilder =... |
public class InjectionPointFactory { /** * Build a InjectionPoint directly from the given ASTType
* @ param astType required type
* @ param context analysis context
* @ return Injection Node */
public InjectionNode buildInjectionNode ( ASTType astType , AnalysisContext context ) { } } | return buildInjectionNode ( Collections . EMPTY_LIST , astType , astType , context ) ; |
public class AWSMediaConnectClient { /** * Displays a list of all entitlements that have been granted to this account . This request returns 20 results per
* page .
* @ param listEntitlementsRequest
* @ return Result of the ListEntitlements operation returned by the service .
* @ throws ServiceUnavailableExcept... | request = beforeClientExecution ( request ) ; return executeListEntitlements ( request ) ; |
public class CommonModelFactory { /** * Resolve a { @ link String } against the string pool to obtain the canonical
* instance of the string .
* @ param value { @ link String } the string to obtain canonical reference for
* @ return { @ link String } the canonical reference for the string */
public String resolve... | if ( value == null ) { return null ; } final String sharedValue = valuePool . get ( value ) ; if ( sharedValue != null ) { return sharedValue ; } valuePool . put ( value , value ) ; return value ; |
public class AuditUtils { /** * Creates an audit entry for the ' membership granted ' even .
* @ param organizationId the organization id
* @ param data the membership data
* @ param securityContext the security context
* @ return the audit entry */
public static AuditEntryBean membershipGranted ( String organi... | AuditEntryBean entry = newEntry ( organizationId , AuditEntityType . Organization , securityContext ) ; entry . setEntityId ( null ) ; entry . setEntityVersion ( null ) ; entry . setWhat ( AuditEntryType . Grant ) ; entry . setData ( toJSON ( data ) ) ; return entry ; |
public class FilterListSlowStr { /** * convert an address to a string array , where each level in the array
* represent a substring between two periods ( " . " ) of the address .
* The rightmost substring will be at index 0 , and so on .
* @ param newAddress
* the address to convert
* @ return the String arra... | int start = 0 ; String sub ; List < String > addressWords = new ArrayList < String > ( ) ; String addr = newAddress ; while ( true ) { // fill address from back to front
start = addr . lastIndexOf ( '.' ) ; if ( start != - 1 ) { sub = addr . substring ( start + 1 ) ; addressWords . add ( sub ) ; } else { addressWords .... |
public class AbstractRuleImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public boolean eIsSet ( int featureID ) { } } | switch ( featureID ) { case XtextPackage . ABSTRACT_RULE__NAME : return NAME_EDEFAULT == null ? name != null : ! NAME_EDEFAULT . equals ( name ) ; case XtextPackage . ABSTRACT_RULE__TYPE : return type != null ; case XtextPackage . ABSTRACT_RULE__ALTERNATIVES : return alternatives != null ; case XtextPackage . ABSTRACT_... |
public class ContentSpecUtilities { /** * Get the prefix to use for level container fixed urls .
* @ param level The level to get the prefix for .
* @ return The levels prefix to be used in a fixed url . */
public static String getLevelPrefix ( final Level level ) { } } | // Get the pre link string
switch ( level . getLevelType ( ) ) { case APPENDIX : return "appe-" ; case SECTION : return "sect-" ; case PROCESS : return "proc-" ; case CHAPTER : return "chap-" ; case PART : return "part-" ; case PREFACE : return "pref-" ; default : return "" ; } |
public class Waiter { /** * Waits for a text to be shown .
* @ param classToFilterBy the class to filter by
* @ param text the text that needs to be shown , specified as a regular expression .
* @ param expectedMinimumNumberOfMatches the minimum number of matches of text that must be shown . { @ code 0 } means an... | final long endTime = SystemClock . uptimeMillis ( ) + timeout ; while ( true ) { final boolean timedOut = SystemClock . uptimeMillis ( ) > endTime ; if ( timedOut ) { return null ; } sleeper . sleep ( ) ; if ( ! hardStoppage ) timeout = 0 ; final T textViewToReturn = searcher . searchFor ( classToFilterBy , text , expe... |
public class GJChronology { /** * Factory method returns instances of the GJ cutover chronology . Any
* cutover date may be specified .
* @ param zone the time zone to use , null is default
* @ param gregorianCutover the cutover to use , null means default
* @ param minDaysInFirstWeek minimum number of days in ... | zone = DateTimeUtils . getZone ( zone ) ; Instant cutoverInstant ; if ( gregorianCutover == null ) { cutoverInstant = DEFAULT_CUTOVER ; } else { cutoverInstant = gregorianCutover . toInstant ( ) ; LocalDate cutoverDate = new LocalDate ( cutoverInstant . getMillis ( ) , GregorianChronology . getInstance ( zone ) ) ; if ... |
public class Template { /** * Expand the template .
* @ param variables containing the values for expansion .
* @ return a fully qualified URI with the variables expanded . */
public String expand ( Map < String , ? > variables ) { } } | if ( variables == null ) { throw new IllegalArgumentException ( "variable map is required." ) ; } /* resolve all expressions within the template */
StringBuilder resolved = new StringBuilder ( ) ; for ( TemplateChunk chunk : this . templateChunks ) { if ( chunk instanceof Expression ) { String resolvedExpression = this... |
public class StringUtils { /** * Parses command line arguments into a Map . Arguments of the form
* - flag1 arg1a arg1b . . . arg1m - flag2 - flag3 arg3a . . . arg3n
* will be parsed so that the flag is a key in the Map ( including
* the hyphen ) and its value will be a { @ link String } [ ] containing
* the op... | Map < String , String [ ] > result = new HashMap < String , String [ ] > ( ) ; List < String > remainingArgs = new ArrayList < String > ( ) ; for ( int i = 0 ; i < args . length ; i ++ ) { String key = args [ i ] ; if ( key . charAt ( 0 ) == '-' ) { // found a flag
Integer maxFlagArgs = flagsToNumArgs . get ( key ) ; i... |
public class DateTimeUtil { /** * 获取季度已过的天数
* @ param date 时间 ( { @ link Date } )
* @ return 天数 , 如果date is null , 将返回null */
public static Integer getDayOfSeason ( Date date ) { } } | if ( date == null ) return null ; int day = 0 ; Date [ ] seasonDates = getSeasonDate ( date ) ; Calendar c = Calendar . getInstance ( ) ; c . setTime ( date ) ; int month = c . get ( Calendar . MONTH ) ; if ( month == Calendar . JANUARY || month == Calendar . APRIL || month == Calendar . JULY || month == Calendar . OCT... |
public class Maestrano { /** * load Properties from a filePath , in the classPath or absolute
* @ param filePath
* @ return
* @ throws MnoConfigurationException */
public static Properties loadProperties ( String filePath ) throws MnoConfigurationException { } } | Properties properties = new Properties ( ) ; InputStream input = getInputStreamFromClassPathOrFile ( filePath ) ; try { properties . load ( input ) ; } catch ( IOException e ) { throw new MnoConfigurationException ( "Could not load properties file: " + filePath , e ) ; } finally { IOUtils . closeQuietly ( input ) ; } r... |
public class IndexScanPlanNode { /** * added for reverse scan purpose only */
public boolean isPredicatesOptimizableForAggregate ( ) { } } | // for reverse scan , need to examine " added " predicates
List < AbstractExpression > predicates = ExpressionUtil . uncombinePredicate ( m_predicate ) ; // if the size of predicates doesn ' t equal 1 , can ' t be our added artifact predicates
if ( predicates . size ( ) != 1 ) { return false ; } // examin the possible ... |
public class Smb2ReadResponse { /** * { @ inheritDoc }
* @ see jcifs . internal . smb2 . ServerMessageBlock2 # readBytesWireFormat ( byte [ ] , int ) */
@ Override protected int readBytesWireFormat ( byte [ ] buffer , int bufferIndex ) throws SMBProtocolDecodingException { } } | int start = bufferIndex ; int structureSize = SMBUtil . readInt2 ( buffer , bufferIndex ) ; if ( structureSize == 9 ) { return this . readErrorResponse ( buffer , bufferIndex ) ; } else if ( structureSize != 17 ) { throw new SMBProtocolDecodingException ( "Expected structureSize = 17" ) ; } short dataOffset = buffer [ ... |
public class DefaultShardManagerBuilder { /** * Sets the range of shards the { @ link DefaultShardManager DefaultShardManager } should contain .
* This is useful if you want to split your shards between multiple JVMs or servers .
* < p > < b > This does not have any effect if the total shard count is set to { @ cod... | Checks . notNegative ( minShardId , "minShardId" ) ; Checks . check ( maxShardId < this . shardsTotal , "maxShardId must be lower than shardsTotal" ) ; Checks . check ( minShardId <= maxShardId , "minShardId must be lower than or equal to maxShardId" ) ; List < Integer > shards = new ArrayList < > ( maxShardId - minSha... |
public class CoinbaseAccountServiceRaw { /** * Authenticated resource that creates a payment button , page , or iFrame to accept Bitcoin on your
* website . This can be used to accept Bitcoin for an individual item or to integrate with your
* existing shopping cart solution . For example , you could create a new pa... | final CoinbaseButton createdButton = coinbase . createButton ( button , exchange . getExchangeSpecification ( ) . getApiKey ( ) , signatureCreator , exchange . getNonceFactory ( ) ) ; return handleResponse ( createdButton ) ; |
public class BatchListObjectAttributesResponseMarshaller { /** * Marshall the given parameter object . */
public void marshall ( BatchListObjectAttributesResponse batchListObjectAttributesResponse , ProtocolMarshaller protocolMarshaller ) { } } | if ( batchListObjectAttributesResponse == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( batchListObjectAttributesResponse . getAttributes ( ) , ATTRIBUTES_BINDING ) ; protocolMarshaller . marshall ( batchListObjectAttributesResponse . getN... |
public class BeanInfoManager { /** * Returns the BeanInfoProperty for the specified property in the
* given class , or null if not found . */
public static BeanInfoProperty getBeanInfoProperty ( Class pClass , String pPropertyName , Logger pLogger ) throws ELException { } } | return getBeanInfoManager ( pClass ) . getProperty ( pPropertyName , pLogger ) ; |
public class ApiOvhCloud { /** * Get the detail of a group
* REST : GET / cloud / project / { serviceName } / instance / group
* @ param region [ required ] Instance region
* @ param serviceName [ required ] Project id */
public ArrayList < OvhInstanceGroup > project_serviceName_instance_group_GET ( String servic... | String qPath = "/cloud/project/{serviceName}/instance/group" ; StringBuilder sb = path ( qPath , serviceName ) ; query ( sb , "region" , region ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t23 ) ; |
public class DRL5Expressions { /** * src / main / resources / org / drools / compiler / lang / DRL5Expressions . g : 450:1 : shiftOp : ( LESS LESS | GREATER GREATER GREATER | GREATER GREATER ) ; */
public final void shiftOp ( ) throws RecognitionException { } } | try { // src / main / resources / org / drools / compiler / lang / DRL5Expressions . g : 451:5 : ( ( LESS LESS | GREATER GREATER GREATER | GREATER GREATER ) )
// src / main / resources / org / drools / compiler / lang / DRL5Expressions . g : 451:7 : ( LESS LESS | GREATER GREATER GREATER | GREATER GREATER )
{ // src / m... |
public class AccentResources { /** * Get a reference to a resource that is equivalent to the one requested ,
* but changing the tint from the original red to the given color . */
private InputStream getTintTransformationResourceStream ( int id , TypedValue value , int color ) { } } | Bitmap bitmap = getBitmapFromResource ( id , value ) ; bitmap = BitmapUtils . processTintTransformationMap ( bitmap , color ) ; return getStreamFromBitmap ( bitmap ) ; |
public class ConcurrentServiceReferenceMap { /** * Associates the reference with the key .
* @ param key Key associated with this reference
* @ param reference ServiceReference for the target service
* @ return true if this is replacing a previous ( non - null ) service reference */
public boolean putReference ( ... | if ( key == null || reference == null ) return false ; ConcurrentServiceReferenceElement < V > element = new ConcurrentServiceReferenceElement < V > ( referenceName , reference ) ; return ( elementMap . put ( key , element ) != null ) ; |
public class ClientFactory { /** * Creates a message sender asynchronously to the entity using the client settings .
* @ param namespaceName namespace name of entity
* @ param entityPath path of entity
* @ param clientSettings client settings
* @ return a CompletableFuture representing the pending creating of I... | Utils . assertNonNull ( "namespaceName" , namespaceName ) ; Utils . assertNonNull ( "entityPath" , entityPath ) ; return createMessageSenderFromEntityPathAsync ( Util . convertNamespaceToEndPointURI ( namespaceName ) , entityPath , clientSettings ) ; |
public class Slf4jLogger { /** * Log an info message . Calls SLF4J { @ link Logger # info ( String ) } .
* @ param message The message to log . */
@ Override public void info ( String message ) { } } | if ( this . logger . isInfoEnabled ( ) ) { this . logger . info ( buildMessage ( message ) ) ; } |
public class JsonWriter { /** * Write a list of entities ( feed ) to the JSON stream .
* @ param entities The list of entities to fill in the JSON stream .
* @ param contextUrl The ' Context URL ' to write .
* @ param meta Additional metadata for the writer .
* @ return the rendered feed .
* @ throws ODataRen... | this . contextURL = checkNotNull ( contextUrl ) ; try { return writeJson ( entities , meta ) ; } catch ( IOException | IllegalAccessException | NoSuchFieldException | ODataEdmException | ODataRenderException e ) { LOG . error ( "Not possible to marshall feed stream JSON" ) ; throw new ODataRenderException ( "Not possib... |
public class DefaultClusterManager { /** * Selects a group in the cluster . */
private void selectGroup ( final Object key , final Handler < AsyncResult < String > > doneHandler ) { } } | context . execute ( new Action < String > ( ) { @ Override public String perform ( ) { String address = groupSelectors . get ( key ) ; if ( address != null ) { return address ; } Set < String > groups = DefaultClusterManager . this . groups . keySet ( ) ; int index = new Random ( ) . nextInt ( groups . size ( ) ) ; int... |
public class MultiVertexGeometryImpl { /** * Checked vs . Jan 11 , 2011 */
@ Override public void setAttribute ( int semantics , int offset , int ordinate , double value ) { } } | if ( offset < 0 || offset >= m_pointCount ) throw new IndexOutOfBoundsException ( ) ; int ncomps = VertexDescription . getComponentCount ( semantics ) ; if ( ordinate >= ncomps ) throw new IndexOutOfBoundsException ( ) ; addAttribute ( semantics ) ; _verifyAllStreams ( ) ; int attributeIndex = m_description . getAttrib... |
public class NBAcceptChannelSelector { /** * @ see com . ibm . ws . tcpchannel . internal . ChannelSelector # performRequest ( ) */
@ Override protected boolean performRequest ( ) { } } | SocketChannel sc = null ; boolean closeOnError = false ; // If we were woken up because we have work to do , do it .
Set < SelectionKey > keySet = this . selector . selectedKeys ( ) ; Iterator < SelectionKey > keyIterator = keySet . iterator ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( )... |
public class ServiceExtensionLoader { /** * { @ inheritDoc }
* @ see org . jboss . shrinkwrap . api . ExtensionLoader # getArchiveFormatFromExtensionMapping ( java . lang . Class ) */
public < T extends Archive < T > > ArchiveFormat getArchiveFormatFromExtensionMapping ( final Class < T > type ) { } } | ExtensionWrapper extensionWrapper = extensionMappings . get ( type ) ; if ( extensionWrapper == null ) { loadExtensionMapping ( type ) ; } extensionWrapper = extensionMappings . get ( type ) ; if ( extensionWrapper == null ) { throw UnknownExtensionTypeExceptionDelegator . newExceptionInstance ( type ) ; } String archi... |
public class Request { /** * Creates a new Request configured to post a status update to a user ' s feed .
* @ param session
* the Session to use , or null ; if non - null , the session must be in an opened state
* @ param message
* the text of the status update
* @ param place
* an optional place to associ... | List < String > tagIds = null ; if ( tags != null ) { tagIds = new ArrayList < String > ( tags . size ( ) ) ; for ( GraphUser tag : tags ) { tagIds . add ( tag . getId ( ) ) ; } } String placeId = place == null ? null : place . getId ( ) ; return newStatusUpdateRequest ( session , message , placeId , tagIds , callback ... |
public class FutureStreamUtils { /** * Perform a forEach operation over the Stream without closing it , capturing any elements and errors in the supplied consumers , but only consuming
* the specified number of elements from the Stream , at this time . More elements can be consumed later , by called request on the re... | final CompletableFuture < Boolean > streamCompleted = new CompletableFuture < > ( ) ; final Subscription s = new Subscription ( ) { Iterator < T > it = stream . iterator ( ) ; volatile boolean running = true ; @ Override public void request ( final long n ) { for ( int i = 0 ; i < n && running ; i ++ ) { try { if ( it ... |
public class FlowTypeCheck { /** * Check that a given variable declaration is not empty . That is , the declared
* type is not equivalent to void . This is an important sanity check .
* @ param d */
private void checkNonEmpty ( Decl . Variable d , LifetimeRelation lifetimes ) { } } | if ( relaxedSubtypeOperator . isVoid ( d . getType ( ) , lifetimes ) ) { syntaxError ( d . getType ( ) , EMPTY_TYPE ) ; } |
public class Grid { /** * Retrieves the grid instance , as defined in the given configuration file .
* @ param configFile The name of the configuration file containing the grid definition .
* @ param properties A { @ link Properties Properties } object containing the grid ' s properties to be injected into placehol... | return getInstance ( configFile == null ? null : new FileSystemResource ( configFile ) , ( Object ) properties ) ; |
public class Introspector { /** * Method which attempts to instantiate a BeanInfo object of the supplied
* classname
* @ param theBeanInfoClassName -
* the Class Name of the class of which the BeanInfo is an
* instance
* @ param classLoader
* @ return A BeanInfo object which is an instance of the Class name... | try { ClassLoader cl = beanClass . getClassLoader ( ) ; if ( cl != null ) { return ( BeanInfo ) Class . forName ( beanInfoClassName , true , beanClass . getClassLoader ( ) ) . newInstance ( ) ; } } catch ( Exception e ) { // fall through
} try { return ( BeanInfo ) Class . forName ( beanInfoClassName , true , ClassLoad... |
public class PyGenerator { /** * Generate the given object .
* @ param event the event .
* @ param context the context . */
protected void _generate ( SarlEvent event , IExtraLanguageGeneratorContext context ) { } } | final JvmDeclaredType jvmType = getJvmModelAssociations ( ) . getInferredType ( event ) ; final PyAppendable appendable = createAppendable ( jvmType , context ) ; final List < JvmTypeReference > superTypes ; if ( event . getExtends ( ) != null ) { superTypes = Collections . singletonList ( event . getExtends ( ) ) ; } ... |
public class LineReader { /** * Line and column starts at 1 */
public int positionFor ( int line , int column ) { } } | if ( lines . size ( ) < line ) return - 1 ; return lines . get ( line - 1 ) + column - 1 ; |
public class DrizzleConnection { /** * Undoes all changes made after the given < code > Savepoint < / code > object was set .
* This method should be used only when auto - commit has been disabled .
* @ param savepoint the < code > Savepoint < / code > object to roll back to
* @ throws java . sql . SQLException i... | try { protocol . rollback ( savepoint . toString ( ) ) ; } catch ( QueryException e ) { throw SQLExceptionMapper . get ( e ) ; } |
public class AbstractX509PrincipalResolver { /** * Get alternate principal if alternate attribute configured .
* @ param certificate X509 Certificate of user
* @ return principal using alternate attribute or null if none configured */
protected String getAlternatePrincipal ( final X509Certificate certificate ) { } ... | if ( alternatePrincipalAttribute == null ) { return null ; } val attributes = extractPersonAttributes ( certificate ) ; val attribute = attributes . get ( alternatePrincipalAttribute ) ; if ( attribute == null ) { LOGGER . debug ( "Attempt to get alternate principal with attribute [{}] was unsuccessful." , alternatePri... |
public class Page { /** * Checks the dates for consistency . */
private void checkDates ( ) { } } | DateTime created = this . dateCreated ; DateTime published = this . datePublished ; DateTime modified = this . dateModified ; DateTime reviewed = this . dateReviewed ; if ( created != null && published != null && published . compareTo ( created ) < 0 ) throw new IllegalArgumentException ( "published may not be before c... |
public class InstanceGroupManagerClient { /** * Retrieves the list of managed instance groups and groups them by zone .
* < p > Sample code :
* < pre > < code >
* try ( InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient . create ( ) ) {
* ProjectName project = ProjectName . of ( ... | AggregatedListInstanceGroupManagersHttpRequest request = AggregatedListInstanceGroupManagersHttpRequest . newBuilder ( ) . setProject ( project ) . build ( ) ; return aggregatedListInstanceGroupManagers ( request ) ; |
public class RandomDateUtils { /** * Returns a random { @ link LocalDateTime } that is after the given { @ link LocalDateTime } .
* @ param after the value that returned { @ link LocalDateTime } must be after
* @ return the random { @ link LocalDateTime }
* @ throws IllegalArgumentException if after is null or if... | checkArgument ( after != null , "After must be non-null" ) ; Instant instant = randomInstantAfter ( after . toInstant ( UTC_OFFSET ) ) ; return LocalDateTime . ofInstant ( instant , UTC ) ; |
public class TrainingsImpl { /** * Get images by id for a given project iteration .
* This API will return a set of Images for the specified tags and optionally iteration . If no iteration is specified the
* current workspace is used .
* @ param projectId The project id
* @ param imageIds The list of image ids ... | if ( projectId == null ) { throw new IllegalArgumentException ( "Parameter projectId is required and cannot be null." ) ; } if ( this . client . apiKey ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.apiKey() is required and cannot be null." ) ; } Validator . validate ( imageIds ) ; String i... |
public class ApiOvhDomain { /** * Enable Dnssec
* REST : POST / domain / zone / { zoneName } / dnssec
* @ param zoneName [ required ] The internal name of your zone */
public void zone_zoneName_dnssec_POST ( String zoneName ) throws IOException { } } | String qPath = "/domain/zone/{zoneName}/dnssec" ; StringBuilder sb = path ( qPath , zoneName ) ; exec ( qPath , "POST" , sb . toString ( ) , null ) ; |
public class JdbcExtractor { /** * If input query is null or ' * ' in the select list , consider all columns .
* @ return true , to select all colums . else , false . */
private boolean isSelectAllColumns ( ) { } } | String columnProjection = this . getInputColumnProjection ( ) ; if ( columnProjection == null || columnProjection . trim ( ) . equals ( "*" ) || columnProjection . contains ( ".*" ) ) { return true ; } return false ; |
public class DistributedAnalysisRunner { /** * Finds a source column which is appropriate for an ORDER BY clause in the
* generated paginated queries
* @ param jobBuilder
* @ return */
private InputColumn < ? > findOrderByColumn ( final AnalysisJobBuilder jobBuilder ) { } } | final Table sourceTable = jobBuilder . getSourceTables ( ) . get ( 0 ) ; // preferred strategy : Use the primary key
final List < Column > primaryKeys = sourceTable . getPrimaryKeys ( ) ; if ( primaryKeys . size ( ) == 1 ) { final Column primaryKey = primaryKeys . get ( 0 ) ; final InputColumn < ? > sourceColumn = jobB... |
public class AmazonWebServiceRequest { /** * Sets the amount of time ( in milliseconds ) to allow the client to complete the execution of
* an API call . This timeout covers the entire client execution except for marshalling . This
* includes request handler execution , all HTTP request including retries , unmarsha... | setSdkClientExecutionTimeout ( sdkClientExecutionTimeout ) ; @ SuppressWarnings ( "unchecked" ) T t = ( T ) this ; return t ; |
public class UpdateElasticsearchDomainConfigRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( UpdateElasticsearchDomainConfigRequest updateElasticsearchDomainConfigRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( updateElasticsearchDomainConfigRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( updateElasticsearchDomainConfigRequest . getDomainName ( ) , DOMAINNAME_BINDING ) ; protocolMarshaller . marshall ( updateElasticsearchDomainConfi... |
public class Util { /** * Ensure a collection is unmodifiable , but cope with < code > null < / code > too */
static < T > Collection < T > freeze ( Collection < T > coll ) { } } | return coll == null ? null : Collections . unmodifiableCollection ( coll ) ; |
public class CharOperation { /** * Answers true if a sub - pattern matches the subpart of the given name , false otherwise . char [ ] pattern matching ,
* accepting wild - cards ' * ' and ' ? ' . Can match only subset of name / pattern . end positions are non - inclusive . The
* subpattern is defined by the pattern... | if ( name == null ) { return false ; // null name cannot match
} if ( pattern == null ) { return true ; // null pattern is equivalent to ' * '
} int iPattern = patternStart ; int iName = nameStart ; if ( patternEnd < 0 ) { patternEnd = pattern . length ; } if ( nameEnd < 0 ) { nameEnd = name . length ; } /* check first... |
public class CssScanner { /** * Builds a UNICODE _ RANGE token . */
private void _urange ( ) throws IOException , CssException { } } | if ( debug ) { checkArgument ( ( reader . curChar == 'U' || reader . curChar == 'u' ) && reader . peek ( ) == '+' ) ; } builder . type = Type . URANGE ; reader . next ( ) ; List < Integer > cbuf = Lists . newArrayList ( ) ; int count = 0 ; while ( true ) { Mark mark = reader . mark ( ) ; int ch = reader . next ( ) ; if... |
public class LeaderState { /** * Appends initial entries to the log to take leadership . */
private void appendInitialEntries ( ) { } } | final long term = context . getTerm ( ) ; // Append a no - op entry to reset session timeouts and commit entries from prior terms .
try ( InitializeEntry entry = context . getLog ( ) . create ( InitializeEntry . class ) ) { entry . setTerm ( term ) . setTimestamp ( appender . time ( ) ) ; Assert . state ( context . get... |
public class hqlLexer { /** * $ ANTLR start " THEN " */
public final void mTHEN ( ) throws RecognitionException { } } | try { int _type = THEN ; int _channel = DEFAULT_TOKEN_CHANNEL ; // hql . g : 64:6 : ( ' then ' )
// hql . g : 64:8 : ' then '
{ match ( "then" ) ; if ( state . failed ) return ; } state . type = _type ; state . channel = _channel ; } finally { // do for sure before leaving
} |
public class SQLPPMapping2DatalogConverter { /** * Returns a new function by renaming variables occurring in the { @ code function }
* according to the { @ code attributes } lookup table */
private Function renameVariables ( Function function , ImmutableMap < QualifiedAttributeID , Term > attributes , QuotedIDFactory... | List < Term > terms = function . getTerms ( ) ; List < Term > newTerms = new ArrayList < > ( terms . size ( ) ) ; for ( Term term : terms ) { Term newTerm ; if ( term instanceof Variable ) { Variable var = ( Variable ) term ; QuotedID attribute = idfac . createAttributeID ( var . getName ( ) ) ; newTerm = attributes . ... |
public class GVRDirectLight { /** * Enables or disabled shadow casting for a direct light .
* Enabling shadows attaches a GVRShadowMap component to the
* GVRSceneObject which owns the light and provides the
* component with an orthographic camera for shadow casting .
* @ param enableFlag true to enable shadow c... | GVRSceneObject owner = getOwnerObject ( ) ; if ( owner != null ) { GVRShadowMap shadowMap = ( GVRShadowMap ) getComponent ( GVRRenderTarget . getComponentType ( ) ) ; if ( enableFlag ) { if ( shadowMap != null ) { shadowMap . setEnable ( true ) ; } else { GVRCamera shadowCam = GVRShadowMap . makeOrthoShadowCamera ( get... |
public class AbstractCloseableRegistry { /** * Registers a { @ link Closeable } with the registry . In case the registry is already closed , this method throws an
* { @ link IllegalStateException } and closes the passed { @ link Closeable } .
* @ param closeable Closeable tor register
* @ throws IOException excep... | if ( null == closeable ) { return ; } synchronized ( getSynchronizationLock ( ) ) { if ( ! closed ) { doRegister ( closeable , closeableToRef ) ; return ; } } IOUtils . closeQuietly ( closeable ) ; throw new IOException ( "Cannot register Closeable, registry is already closed. Closing argument." ) ; |
public class KafkaExtractor { /** * Record the avg time per record for the current partition , then increment this . currentPartitionIdx ,
* and switch metric context to the new partition . */
private void moveToNextPartition ( ) { } } | if ( this . currentPartitionIdx == INITIAL_PARTITION_IDX ) { LOG . info ( "Pulling topic " + this . topicName ) ; this . currentPartitionIdx = 0 ; } else { updateStatisticsForCurrentPartition ( ) ; this . currentPartitionIdx ++ ; this . currentPartitionRecordCount = 0 ; this . currentPartitionTotalSize = 0 ; this . cur... |
public class AgentManager { /** * Updates state of agent , if the call in a queue was redirect to the next
* agent because the ringed agent doesn ' t answer the call . After reset
* state , put the next agent in charge .
* @ param channelCalling
* @ param agent */
private void updateRingingAgents ( String chann... | synchronized ( ringingAgents ) { if ( ringingAgents . containsKey ( channelCalling ) ) { updateAgentState ( ringingAgents . get ( channelCalling ) , AgentState . AGENT_IDLE ) ; } ringingAgents . put ( channelCalling , agent ) ; } |
public class CmsGroupsOfUserTable { /** * Init method . < p >
* @ param app the app instance
* @ param cms CmsObject
* @ param user CmsUser
* @ param groups list of groups */
public void init ( CmsAccountsApp app , CmsObject cms , CmsUser user , List < CmsGroup > groups ) { } } | m_app = app ; if ( m_container == null ) { m_container = new IndexedContainer ( ) ; for ( TableProperty prop : TableProperty . values ( ) ) { m_container . addContainerProperty ( prop , prop . getType ( ) , prop . getDefault ( ) ) ; setColumnHeader ( prop , prop . getName ( ) ) ; } m_app . addGroupContainerProperties (... |
public class PowerIteration { /** * Returns the largest eigen pair of matrix with the power iteration
* under the assumptions A has an eigenvalue that is strictly greater
* in magnitude than its other eigenvalues and the starting
* vector has a nonzero component in the direction of an eigenvector
* associated w... | return eigen ( A , v , 0.0 , tol , maxIter ) ; |
public class TargetSslProxyClient { /** * Changes SslCertificates for TargetSslProxy .
* < p > Sample code :
* < pre > < code >
* try ( TargetSslProxyClient targetSslProxyClient = TargetSslProxyClient . create ( ) ) {
* ProjectGlobalTargetSslProxyName targetSslProxy = ProjectGlobalTargetSslProxyName . of ( " [ ... | SetSslCertificatesTargetSslProxyHttpRequest request = SetSslCertificatesTargetSslProxyHttpRequest . newBuilder ( ) . setTargetSslProxy ( targetSslProxy ) . setTargetSslProxiesSetSslCertificatesRequestResource ( targetSslProxiesSetSslCertificatesRequestResource ) . build ( ) ; return setSslCertificatesTargetSslProxy ( r... |
public class JsMessageHandleFactory { /** * Create the singleton Factory instance . */
private static void createFactoryInstance ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createFactoryInstance" ) ; try { Class cls = Class . forName ( JS_MESSAGE_HANDLE_FACTORY_CLASS ) ; instance = ( JsMessageHandleFactory ) cls . newInstance ( ) ; } catch ( Exception e ) { FFDCFilter . processException ( e , ... |
public class DeleteOnExit { /** * Does the actual work . Note we ( a ) first sort the files lexicographically
* and then ( b ) delete them in reverse order . This is to make sure files
* get deleted before their parent directories . */
@ Override public void run ( ) { } } | Collections . sort ( files ) ; for ( int i = files . size ( ) - 1 ; i >= 0 ; i -- ) { new File ( files . get ( i ) ) . delete ( ) ; } |
public class ProposalResponse { /** * Verifies that a Proposal response is properly signed . The payload is the
* concatenation of the response payload byte string and the endorsement The
* certificate ( public key ) is gotten from the Endorsement . Endorser . IdBytes
* field
* @ param crypto the CryptoPrimitiv... | logger . trace ( format ( "%s verifying transaction: %s endorsement." , peer , getTransactionID ( ) ) ) ; if ( hasBeenVerified ) { // check if this proposalResponse was already verified by client code
logger . trace ( format ( "%s transaction: %s was already verified returned %b" , peer , getTransactionID ( ) , isVerif... |
public class ArgsParser { private static String formatValue ( String value ) { } } | if ( value == null ) return "" ; value = value . trim ( ) ; if ( value . startsWith ( "\"" ) || value . startsWith ( "'" ) ) value = value . substring ( 1 ) ; if ( value . endsWith ( "\"" ) || value . endsWith ( "'" ) ) value = value . substring ( 0 , value . length ( ) - 1 ) ; return value ; |
public class JobGetOptions { /** * 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 JobGetOptions object itself . */
public JobGetOptions... | if ( ocpDate == null ) { this . ocpDate = null ; } else { this . ocpDate = new DateTimeRfc1123 ( ocpDate ) ; } return this ; |
public class MemoryFS { @ Override public void move ( EightyPath source , EightyPath target ) { } } | MemoryFS targetFS = ( MemoryFS ) ( target . _getFileSystem ( ) ) . get80 ( ) ; // todo different filestore ?
getStore ( source ) . getData ( ) . move ( source , targetFS . getStore ( target ) . getData ( ) , target ) ; // todo tested ?
// watcher . signal ( source , ENTRY _ DELETE ) ;
// targetFS . watcher . signal ( t... |
public class sslpolicylabel_binding { /** * Use this API to fetch sslpolicylabel _ binding resource of given name . */
public static sslpolicylabel_binding get ( nitro_service service , String labelname ) throws Exception { } } | sslpolicylabel_binding obj = new sslpolicylabel_binding ( ) ; obj . set_labelname ( labelname ) ; sslpolicylabel_binding response = ( sslpolicylabel_binding ) obj . get_resource ( service ) ; return response ; |
public class AbilityUtils { /** * Fetches the user who caused the update .
* @ param update a Telegram { @ link Update }
* @ return the originating user
* @ throws IllegalStateException if the user could not be found */
public static User getUser ( Update update ) { } } | if ( MESSAGE . test ( update ) ) { return update . getMessage ( ) . getFrom ( ) ; } else if ( CALLBACK_QUERY . test ( update ) ) { return update . getCallbackQuery ( ) . getFrom ( ) ; } else if ( INLINE_QUERY . test ( update ) ) { return update . getInlineQuery ( ) . getFrom ( ) ; } else if ( CHANNEL_POST . test ( upda... |
public class CmsSolrDocumentXmlContent { /** * Extracts the content of a single XML content resource . < p >
* @ param cms the cms context
* @ param resource the resource
* @ param index the used index
* @ param forceLocale if set , only the content values for the given locale will be extracted
* @ return the... | // un - marshal the content
CmsFile file = cms . readFile ( resource ) ; if ( file . getLength ( ) <= 0 ) { throw new CmsIndexNoContentException ( Messages . get ( ) . container ( Messages . ERR_NO_CONTENT_1 , resource . getRootPath ( ) ) ) ; } A_CmsXmlDocument xmlContent = CmsXmlContentFactory . unmarshal ( cms , file... |
public class GridGenerator { /** * Method transforms the grid into pmesh format . */
public void writeGridInPmeshFormat ( String outPutFileName ) throws IOException { } } | BufferedWriter writer = new BufferedWriter ( new FileWriter ( outPutFileName + ".pmesh" ) ) ; int numberOfGridPoints = grid . length * grid [ 0 ] . length * grid [ 0 ] [ 0 ] . length ; writer . write ( numberOfGridPoints + "\n" ) ; for ( int z = 0 ; z < grid [ 0 ] [ 0 ] . length ; z ++ ) { for ( int y = 0 ; y < grid [ ... |
public class MarkLogicRepositoryConnection { /** * private utility for merging Resource varargs
* @ param o
* @ param arr
* @ return */
private static Resource [ ] mergeResource ( Resource o , Resource ... arr ) { } } | if ( o != null ) { Resource [ ] newArray = new Resource [ arr . length + 1 ] ; newArray [ 0 ] = o ; System . arraycopy ( arr , 0 , newArray , 1 , arr . length ) ; return newArray ; } else { return arr ; } |
public class EJBMDOrchestrator { /** * F743-25855 */
private void findAnnotatedSessionSynchMethods ( BeanMetaData bmd ) throws EJBConfigurationException { } } | final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; boolean lookForAfterBegin = ( bmd . ivAfterBegin == null ) ; boolean lookForBeforeCompletion = ( bmd . ivBeforeCompletion == null ) ; boolean lookForAfterCompletion = ( bmd . ivAfterCompletion == null ) ; for ( MethodMap . MethodInfo methodInfo : Meth... |
public class KeyChainGroup { /** * Mark the DeterministicKeys as used , if they match the pubkey
* See { @ link DeterministicKeyChain # markKeyAsUsed ( DeterministicKey ) } for more info on this . */
public void markPubKeyAsUsed ( byte [ ] pubkey ) { } } | if ( chains != null ) { for ( DeterministicKeyChain chain : chains ) { DeterministicKey key ; if ( ( key = chain . markPubKeyAsUsed ( pubkey ) ) != null ) { maybeMarkCurrentKeyAsUsed ( key ) ; return ; } } } |
public class BackupManagerImpl { /** * isCurrentRepositoryBackup .
* @ param log
* File , the log to backup
* @ return boolean return the ' true ' if this log is current backup . */
private boolean isCurrentRepositoryBackup ( File log ) { } } | for ( RepositoryBackupChain chain : currentRepositoryBackups ) { if ( log . getName ( ) . equals ( new File ( chain . getLogFilePath ( ) ) . getName ( ) ) ) { return true ; } } return false ; |
public class ControllerLookup { /** * Returns a controller instance with the given ID .
* @ param id
* The string ID of the controller as returned by
* { @ link IdentifiableController # getId ( ) }
* @ return
* The controller with the given ID that has just been
* looked up .
* @ throws IllegalArgumentExc... | for ( final IdentifiableController controller : identifiables ) { if ( controller . getId ( ) . equals ( id ) ) { return ( T ) controller ; } } throw new IllegalArgumentException ( "Could not find a controller with the ID '" + id + "'" ) ; |
public class BoundingBox { /** * Creates a BoundingBox extended up to coordinates ( but does not cross date line / poles ) .
* @ param latitude up to the extension
* @ param longitude up to the extension
* @ return an extended BoundingBox or this ( if contains coordinates ) */
public BoundingBox extendCoordinates... | if ( contains ( latitude , longitude ) ) { return this ; } double minLat = Math . max ( MercatorProjection . LATITUDE_MIN , Math . min ( this . minLatitude , latitude ) ) ; double minLon = Math . max ( - 180 , Math . min ( this . minLongitude , longitude ) ) ; double maxLat = Math . min ( MercatorProjection . LATITUDE_... |
public class XmlDataHandler { /** * Transfers all characters of a specific tag to the corresponding builder and resets the string buffer . */
private void transferToSpecificBuilderAndReset ( ) { } } | // version
if ( currentTag == Tag . VERSION ) { dataBuilder . setVersion ( buffer . toString ( ) ) ; } // robot browser
addToRobotBuilder ( ) ; // build browser
addToBrowserBuilder ( ) ; // build operating system
addToOperatingSystemBuilder ( ) ; // build browser pattern
addToBrowserPatternBuilder ( ) ; // build browse... |
public class FieldDescriptor { /** * Sets the fieldConversion .
* @ param fieldConversionClassName The fieldConversion to set */
public void setFieldConversionClassName ( String fieldConversionClassName ) { } } | try { this . fieldConversion = ( FieldConversion ) ClassHelper . newInstance ( fieldConversionClassName ) ; } catch ( Exception e ) { throw new MetadataException ( "Could not instantiate FieldConversion class using default constructor" , e ) ; } |
public class NmeaStreamProcessor { /** * Returns the list of those indexes that can be removed from the buffer
* because they have a timestamp more than
* MAXIMUM _ ARRIVAL _ TIME _ DIFFERENCE _ MS from the arrival time of the given
* index .
* @ param index
* @ return */
private Set < Integer > findExpiredIn... | long indexTime = getLineTime ( index ) ; Set < Integer > removeThese = Sets . newHashSet ( ) ; for ( int i = index - 1 ; i >= 0 ; i -- ) { if ( indexTime - getLineTime ( i ) > MAXIMUM_ARRIVAL_TIME_DIFFERENCE_MS ) { listener . timestampNotFound ( getLine ( i ) , getLineTime ( i ) ) ; removeThese . add ( i ) ; } } return... |
public class HybridRunbookWorkerGroupsInner { /** * Retrieve a hybrid runbook worker group .
* @ param resourceGroupName Name of an Azure Resource group .
* @ param automationAccountName The name of the automation account .
* @ param hybridRunbookWorkerGroupName The hybrid runbook worker group name
* @ throws I... | return getWithServiceResponseAsync ( resourceGroupName , automationAccountName , hybridRunbookWorkerGroupName ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class AAFConHttp { /** * / * ( non - Javadoc )
* @ see com . att . cadi . aaf . v2_0 . AAFCon # basicAuthSS ( java . security . Principal ) */
@ Override public SecuritySetter < HttpURLConnection > basicAuthSS ( BasicPrincipal principal ) throws CadiException { } } | try { return new HBasicAuthSS ( principal , si ) ; } catch ( IOException e ) { throw new CadiException ( "Error creating HBasicAuthSS" , e ) ; } |
public class ManagedThreadFactoryService { /** * DS method to deactivate this component .
* Best practice : this should be a protected method , not public or private
* @ param componentContext DeclarativeService defined / populated component context */
protected void deactivate ( ComponentContext componentContext )... | isShutdown . set ( true ) ; contextSvcRef . deactivate ( componentContext ) ; threadGroupTracker . threadFactoryDestroyed ( name , threadGroup ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.