signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class Application { /** * < code > null < / code > is returned , of the version file could not be opened
* and read .
* @ param _ versionUrl URL of the version file which defines the application
* @ param _ rootUrl root URL where the source files are located ( for local
* files ) ; URL of the class file ... | Application appl = null ; try { final DigesterLoader loader = DigesterLoader . newLoader ( new FromAnnotationsRuleModule ( ) { @ Override protected void configureRules ( ) { bindRulesFrom ( Application . class ) ; } } ) ; final Digester digester = loader . newDigester ( ) ; appl = ( Application ) digester . parse ( _ve... |
public class Rect { /** * Resets the limits . */
public void reset ( ) { } } | xMin = Double . NaN ; xMax = Double . NaN ; yMin = Double . NaN ; yMax = Double . NaN ; |
public class SibRaConnectionFactory { /** * Creates a connection via the connection manager .
* @ param requestInfo
* the request information
* @ return the new connection
* @ throws SIResourceException
* if an exception relating to the JCA processing occurs
* @ throws SINotPossibleInCurrentConfigurationExc... | if ( TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "createConnection" , requestInfo ) ; } SibRaConnection result = null ; boolean tryAgain = true ; do { try { // Obtain connection via connection manager
final Object connection = _connectionManager . allocateConnection ( _managedConnectionFactory , reque... |
public class DefaultJobProgress { /** * Called when a { @ link PopLevelProgressEvent } is fired . */
private void onPopLevelProgress ( Object source ) { } } | DefaultJobProgressStep parent = this . currentStep . getParent ( ) ; if ( parent == null ) { LOGGER . warn ( "PopLevelProgressEvent was fired too many times. Don't forget " + "to match each PopLevelProgressEvent with a PushLevelProgressEvent." ) ; return ; } // Try to find the right level based on the source
DefaultJob... |
public class CronEntry { /** * - - - - - private methods - - - - - */
private static CronField parseField ( String field , int minValue , int maxValue ) { } } | // asterisk : *
if ( "*" . equals ( field ) ) { return new CronField ( minValue , maxValue , 1 , true ) ; } // asterisk with step : * / 3
if ( field . startsWith ( "*/" ) ) { int step = Integer . parseInt ( field . substring ( 2 ) ) ; if ( step > 0 & step <= maxValue ) { return new CronField ( minValue , maxValue , ste... |
public class URLUtils { /** * Constructs URL for in service requests ( e . g . calls for endpoint of this application ) */
public static String getInServiceURL ( HttpServletRequest request , String path ) { } } | String contextPath = ( ( Request ) request ) . getContext ( ) . getContextPath ( ) ; int port = request . getServerPort ( ) ; return getInServiceURL ( port , contextPath , path ) ; |
public class DatabaseSpec { /** * Insert data in a MongoDB table .
* @ param dataBase Mongo database
* @ param tabName Mongo table
* @ param table Datatable used for insert elements */
@ Given ( "^I insert into a MongoDB database '(.+?)' and table '(.+?)' this values:$" ) public void insertOnMongoTable ( String d... | commonspec . getMongoDBClient ( ) . connectToMongoDBDataBase ( dataBase ) ; commonspec . getMongoDBClient ( ) . insertIntoMongoDBCollection ( tabName , table ) ; |
public class AbstractConverter { /** * 不抛异常转换 < br >
* 当转换失败时返回默认值
* @ param value 被转换的值
* @ param defaultValue 默认值
* @ return 转换后的值
* @ since 4.5.7 */
public T convertQuietly ( Object value , T defaultValue ) { } } | try { return convert ( value , defaultValue ) ; } catch ( Exception e ) { return defaultValue ; } |
public class DefaultComparisonFormatter { /** * Create a default Transformer to format a XML - Node to a String .
* @ param numberOfBlanksToIndent the number of spaces which is used for indent the XML - structure
* @ return the transformer
* @ since XMLUnit 2.4.0 */
protected Transformer createXmlTransformer ( in... | TransformerFactoryConfigurer . Builder b = TransformerFactoryConfigurer . builder ( ) . withExternalStylesheetLoadingDisabled ( ) . withDTDLoadingDisabled ( ) ; if ( numberOfBlanksToIndent >= 0 ) { // not all TransformerFactories support this feature
b = b . withSafeAttribute ( "indent-number" , numberOfBlanksToIndent ... |
public class SelfCalibrationLinearDualQuadratic { /** * Computes the calibration for each view . . */
private void computeSolutions ( DMatrix4x4 Q ) { } } | DMatrixRMaj w_i = new DMatrixRMaj ( 3 , 3 ) ; for ( int i = 0 ; i < cameras . size ; i ++ ) { computeW ( cameras . get ( i ) , Q , w_i ) ; Intrinsic calib = solveForCalibration ( w_i ) ; if ( sanityCheck ( calib ) ) { solutions . add ( calib ) ; } } |
public class ReturnTypeAddModification { /** * Create the quick fix if needed .
* < p > User data contains the name of the expected type .
* @ param provider the quick fix provider .
* @ param issue the issue to fix .
* @ param acceptor the quick fix acceptor . */
public static void accept ( SARLQuickfixProvide... | final String [ ] data = issue . getData ( ) ; if ( data != null && data . length > 0 ) { final String expectedType = data [ 0 ] ; final ReturnTypeAddModification modification = new ReturnTypeAddModification ( expectedType ) ; modification . setIssue ( issue ) ; modification . setTools ( provider ) ; acceptor . accept (... |
public class DescribeNotebookInstanceLifecycleConfigResult { /** * The shell script that runs every time you start a notebook instance , including when you create the notebook
* instance .
* @ param onStart
* The shell script that runs every time you start a notebook instance , including when you create the
* n... | if ( onStart == null ) { this . onStart = null ; return ; } this . onStart = new java . util . ArrayList < NotebookInstanceLifecycleHook > ( onStart ) ; |
public class DefaultClusterManager { /** * Deploys a module */
private void doDeployModule ( final Message < JsonObject > message ) { } } | String moduleName = message . body ( ) . getString ( "module" ) ; if ( moduleName == null ) { message . reply ( new JsonObject ( ) . putString ( "status" , "error" ) . putString ( "message" , "No module name specified." ) ) ; return ; } JsonObject config = message . body ( ) . getObject ( "config" ) ; if ( config == nu... |
public class ProtectionContainersInner { /** * Lists the containers registered to the Recovery Services vault .
* @ param vaultName The name of the Recovery Services vault .
* @ param resourceGroupName The name of the resource group associated with the Recovery Services vault .
* @ param filter The following equa... | return ServiceFuture . fromResponse ( listWithServiceResponseAsync ( vaultName , resourceGroupName , filter ) , serviceCallback ) ; |
public class RaspiPin { /** * SDC . 0 pin has a physical pull - up resistor */
protected static Pin createDigitalPinNoPullDown ( int address , String name ) { } } | return createDigitalPin ( RaspiGpioProvider . NAME , address , name , EnumSet . of ( PinPullResistance . OFF , PinPullResistance . PULL_UP ) , PinEdge . all ( ) ) ; |
public class AWSCodeBuildClient { /** * Gets information about builds .
* @ param batchGetBuildsRequest
* @ return Result of the BatchGetBuilds operation returned by the service .
* @ throws InvalidInputException
* The input value that was provided is not valid .
* @ sample AWSCodeBuild . BatchGetBuilds
* @... | request = beforeClientExecution ( request ) ; return executeBatchGetBuilds ( request ) ; |
public class Collectors { /** * Returns a { @ code Collector } that reduces input elements .
* @ param < T > the type of the input elements
* @ param identity the initial value
* @ param op the operator to reduce elements
* @ return a { @ code Collector }
* @ see # reducing ( java . lang . Object , com . anni... | return new CollectorsImpl < T , Tuple1 < T > , T > ( new Supplier < Tuple1 < T > > ( ) { @ NotNull @ Override public Tuple1 < T > get ( ) { return new Tuple1 < T > ( identity ) ; } } , new BiConsumer < Tuple1 < T > , T > ( ) { @ Override public void accept ( @ NotNull Tuple1 < T > tuple , T value ) { tuple . a = op . a... |
public class CmsFavoriteDAO { /** * Validates a favorite entry .
* < p > If the favorite entry references a resource or project that can ' t be read , this will return false .
* @ param entry the favorite entry
* @ return the */
private boolean validate ( CmsFavoriteEntry entry ) { } } | try { String siteRoot = entry . getSiteRoot ( ) ; if ( ! m_okSiteRoots . contains ( siteRoot ) ) { m_rootCms . readResource ( siteRoot ) ; m_okSiteRoots . add ( siteRoot ) ; } CmsUUID project = entry . getProjectId ( ) ; if ( ! m_okProjects . contains ( project ) ) { m_cms . readProject ( project ) ; m_okProjects . add... |
public class Stream { /** * Intermediate operation returning a Stream with the elements obtained by applying an
* optional < i > navigation path < / i > and conversion to a certain type to the elements of this
* Stream . The path is a sequence of keys ( { @ code String } s , { @ code URI } s , generic objects )
*... | synchronized ( this . state ) { checkState ( ) ; return concat ( new TransformPathStream < T , R > ( this , type , lenient , path ) ) ; } |
public class JsonApiResponseFilter { /** * Determines whether the given response entity is either a Crnk
* resource or a list of resource ; */
private Optional < RegistryEntry > getRegistryEntry ( Object response ) { } } | if ( response != null ) { Class responseClass = response . getClass ( ) ; boolean resourceList = ResourceList . class . isAssignableFrom ( responseClass ) ; if ( resourceList ) { ResourceList responseList = ( ResourceList ) response ; if ( responseList . isEmpty ( ) ) { return Optional . empty ( ) ; } // get common sup... |
public class ByteBufPool { /** * Appends byte array to ByteBuf . If ByteBuf can ' t accommodate the
* byte array , a new ByteBuf is created which contains all data from
* the original ByteBuf and has enough capacity to accommodate the
* byte array .
* ByteBuf must be not recycled before the operation .
* @ pa... | assert ! to . isRecycled ( ) ; to = ensureWriteRemaining ( to , length ) ; to . put ( from , offset , length ) ; return to ; |
public class DefaultOptionParser { /** * Parse the arguments according to the specified options and properties .
* @ param options the specified Options
* @ param args the command line arguments
* @ param properties command line option name - value pairs
* @ return the list of atomic option and value tokens
*... | return parse ( options , args , properties , false ) ; |
public class AWSCloud9Client { /** * Deletes an environment member from an AWS Cloud9 development environment .
* @ param deleteEnvironmentMembershipRequest
* @ return Result of the DeleteEnvironmentMembership operation returned by the service .
* @ throws BadRequestException
* The target request is invalid .
... | request = beforeClientExecution ( request ) ; return executeDeleteEnvironmentMembership ( request ) ; |
public class SqlServerDialect { /** * sql . replaceFirst ( " ( ? i ) select " , " " ) 正则中带有 " ( ? i ) " 前缀 , 指定在匹配时不区分大小写 */
public String forPaginate ( int pageNumber , int pageSize , StringBuilder findSql ) { } } | int end = pageNumber * pageSize ; if ( end <= 0 ) { end = pageSize ; } int begin = ( pageNumber - 1 ) * pageSize ; if ( begin < 0 ) { begin = 0 ; } StringBuilder ret = new StringBuilder ( ) ; ret . append ( "SELECT * FROM ( SELECT row_number() over (order by tempcolumn) temprownumber, * FROM " ) ; ret . append ( " ( SE... |
public class Metadata { /** * Attempts to parse a MANIFEST . MF file from an input stream .
* @ param is
* An input stream containing the extracted manifest file .
* @ return HashMap of the type { atribute name : attribute value } . */
public static Metadata fromManifest ( InputStream is ) { } } | try { Manifest mf = new Manifest ( is ) ; return fromManifest ( mf ) ; } catch ( IOException e ) { // Problems ? Too bad !
} return new Metadata ( ) ; |
public class Router { /** * Add route .
* < p > A path pattern can only point to one target . This method does nothing if the pattern
* has already been added . */
public Router < T > addRoute ( HttpMethod method , String pathPattern , T target ) { } } | getMethodlessRouter ( method ) . addRoute ( pathPattern , target ) ; return this ; |
public class AtlasTypeDefGraphStoreV1 { /** * increment the version value for this vertex */
private void markVertexUpdated ( AtlasVertex vertex ) { } } | Date now = new Date ( ) ; Number currVersion = vertex . getProperty ( Constants . VERSION_PROPERTY_KEY , Number . class ) ; long newVersion = currVersion == null ? 1 : ( currVersion . longValue ( ) + 1 ) ; vertex . setProperty ( Constants . MODIFICATION_TIMESTAMP_PROPERTY_KEY , now . getTime ( ) ) ; vertex . setPropert... |
public class OnWorkspaceInconsistency { /** * Returns the { @ link OnWorkspaceInconsistency } with the given
* < code > name < / code > .
* @ param name the name of a { @ link OnWorkspaceInconsistency } .
* @ return the { @ link OnWorkspaceInconsistency } with the given
* < code > name < / code > .
* @ throws... | OnWorkspaceInconsistency handler = INSTANCES . get ( name . toLowerCase ( ) ) ; if ( handler == null ) { throw new IllegalArgumentException ( "Unknown name: " + name ) ; } else { return handler ; } |
public class ArrayUtil { /** * public static void copyColumnValues ( int [ ] row , int [ ] colindex ,
* int [ ] colobject ) {
* for ( int i = 0 ; i < colindex . length ; i + + ) {
* colobject [ i ] = row [ colindex [ i ] ] ;
* public static void copyColumnValues ( boolean [ ] row , int [ ] colindex ,
* boolea... | for ( int i = 0 ; i < subMap . length ; i ++ ) { for ( int j = 0 ; j < mainMap . length ; j ++ ) { if ( subMap [ i ] == mainMap [ j ] ) { newSubMap [ i ] = j ; break ; } } } |
public class GeneIDGFF2Reader { /** * Read a file into a FeatureList . Each line of the file becomes one Feature object .
* @ param filename The path to the GFF file .
* @ return A FeatureList .
* @ throws IOException Something went wrong - - check exception detail message . */
public static FeatureList read ( St... | logger . info ( "Reading: {}" , filename ) ; FeatureList features = new FeatureList ( ) ; BufferedReader br = new BufferedReader ( new FileReader ( filename ) ) ; String s ; for ( s = br . readLine ( ) ; null != s ; s = br . readLine ( ) ) { s = s . trim ( ) ; if ( s . length ( ) > 0 ) { if ( s . charAt ( 0 ) == '#' ) ... |
public class SkewGeneralizedNormalDistribution { /** * Probability density function of the skewed normal distribution .
* @ param x The value .
* @ param mu The mean .
* @ param sigma The standard deviation .
* @ return PDF of the given normal distribution at x . */
public static double pdf ( double x , double ... | if ( x != x ) { return Double . NaN ; } x = ( x - mu ) / sigma ; // Scale
if ( skew == 0. ) { return MathUtil . ONE_BY_SQRTTWOPI / sigma * FastMath . exp ( - .5 * x * x ) ; } final double y = - FastMath . log1p ( - skew * x ) / skew ; if ( y != y || y == Double . POSITIVE_INFINITY || y == Double . NEGATIVE_INFINITY ) {... |
public class InterceptorMetaDataFactory { /** * d457352 - added entire method */
public static final String normalizeSignature ( String deplDescriptorSignature ) { } } | StringBuilder theSignature = new StringBuilder ( deplDescriptorSignature ) ; int scanIndex = 0 ; while ( scanIndex < theSignature . length ( ) ) { if ( theSignature . charAt ( scanIndex ) == ' ' ) { char next = theSignature . charAt ( scanIndex + 1 ) ; if ( next == ' ' | next == '[' | next == ']' ) { theSignature . del... |
public class DefaultPlatformManager { /** * Parses an includes string . */
private String [ ] parseIncludes ( String sincludes ) { } } | sincludes = sincludes . trim ( ) ; if ( "" . equals ( sincludes ) ) { return null ; } String [ ] arr = sincludes . split ( "," ) ; if ( arr != null ) { for ( int i = 0 ; i < arr . length ; i ++ ) { arr [ i ] = arr [ i ] . trim ( ) ; } } return arr ; |
public class SSLHandshakeIOCallback { /** * @ see com . ibm . wsspi . tcpchannel . TCPReadCompletedCallback # error ( com . ibm . wsspi . channelfw . VirtualConnection , com . ibm . wsspi . tcpchannel . TCPReadRequestContext , java . io . IOException ) */
public void error ( VirtualConnection vc , TCPReadRequestContext... | // Alert the handshake completed callback . Buffers used in the handshake will be freed there .
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Error occured during a read, exception:" + ioe ) ; } this . callback . error ( ioe ) ; |
public class MultifactorAuthenticationTrustUtils { /** * Generate geography .
* @ return the geography */
public static String generateGeography ( ) { } } | val clientInfo = ClientInfoHolder . getClientInfo ( ) ; return clientInfo . getClientIpAddress ( ) . concat ( "@" ) . concat ( WebUtils . getHttpServletRequestUserAgentFromRequestContext ( ) ) ; |
public class CmsJspTagSecureParams { /** * Static method which provides the actual functionality of this tag . < p >
* @ param request the request for which the parameters should be escaped
* @ param allowXml the comma - separated list of parameters for which XML characters will not be escaped
* @ param allowHtml... | if ( request instanceof CmsFlexRequest ) { CmsFlexRequest flexRequest = ( CmsFlexRequest ) request ; CmsObject cms = CmsFlexController . getCmsObject ( flexRequest ) ; List < String > exceptions = Collections . emptyList ( ) ; if ( allowXml != null ) { exceptions = CmsStringUtil . splitAsList ( allowXml , "," ) ; } fle... |
public class ShortBuffer { /** * Returns a duplicated buffer that shares its content with this buffer .
* < p > The duplicated buffer ' s position , limit , capacity and mark are the same as this buffer .
* The duplicated buffer ' s read - only property and byte order are the same as this buffer ' s .
* < p > The... | ShortBuffer buf = new ShortBuffer ( ( ByteBuffer ) byteBuffer . duplicate ( ) ) ; buf . limit = limit ; buf . position = position ; buf . mark = mark ; return buf ; |
public class BrowserHelperFilter { /** * Sets the accept - mappings for this filter
* @ param pPropertiesFile name of accept - mappings properties files
* @ throws ServletConfigException if the accept - mappings properties
* file cannot be read . */
@ InitParam ( name = "accept-mappings-file" ) public void setAcc... | // NOTE : Format is :
// < agent - name > = < reg - exp >
// < agent - name > . accept = < http - accept - header >
Properties mappings = new Properties ( ) ; try { log ( "Reading Accept-mappings properties file: " + pPropertiesFile ) ; mappings . load ( getServletContext ( ) . getResourceAsStream ( pPropertiesFile ) )... |
public class Futures { /** * Create a { @ link CompletableFuture } that is completed exceptionally with { @ code throwable } .
* @ param throwable must not be { @ literal null } .
* @ return the exceptionally completed { @ link CompletableFuture } . */
public static < T > CompletableFuture < T > failed ( Throwable ... | LettuceAssert . notNull ( throwable , "Throwable must not be null" ) ; CompletableFuture < T > future = new CompletableFuture < > ( ) ; future . completeExceptionally ( throwable ) ; return future ; |
public class SourceNode { /** * Call String . prototype . replace on the very right - most source snippet . Useful for trimming whitespace from the end of a source node , etc .
* @ param aPattern
* The pattern to replace .
* @ param aReplacement
* The thing to replace the pattern with . */
public void replaceRi... | Object lastChild = this . children . get ( this . children . size ( ) - 1 ) ; if ( lastChild instanceof SourceNode ) { ( ( SourceNode ) lastChild ) . replaceRight ( aPattern , aReplacement ) ; } else if ( lastChild instanceof String ) { this . children . set ( this . children . size ( ) - 1 , aPattern . matcher ( ( ( S... |
public class FnJodaTimeUtils { /** * It creates an { @ link Interval } from the input { @ link Date } elements .
* The { @ link Interval } will be created with the given { @ link Chronology }
* @ param chronology { @ link Chronology } to be used
* @ return the { @ link Interval } created from the input and argume... | return FnInterval . dateFieldArrayToInterval ( chronology ) ; |
public class DatabaseConnection { /** * Connection to the specified data source . */
boolean connect ( ) throws SQLException { } } | try { if ( driver != null && driver . length ( ) != 0 ) { Class . forName ( driver ) ; } } catch ( ClassNotFoundException cnfe ) { return sqlLine . error ( cnfe ) ; } boolean foundDriver = false ; Driver theDriver = null ; try { theDriver = DriverManager . getDriver ( url ) ; foundDriver = theDriver != null ; } catch (... |
public class DistributionSetInfoPanel { /** * Create Label for SW Module .
* @ param labelName
* as Name
* @ param swModule
* as Module ( JVM | OS | AH )
* @ return Label as UI */
private Label getSWModlabel ( final String labelName , final SoftwareModule swModule ) { } } | return SPUIComponentProvider . createNameValueLabel ( labelName + " : " , swModule . getName ( ) , swModule . getVersion ( ) ) ; |
public class NotifierBase { /** * Call dynamically a command .
* According to its runIntoType the command will be run into JAT , JIT or a Thread Pool
* Each time a new fresh command will be retrieved .
* This method is called from the JIT ( JRebirth Internal Thread ) < br >
* @ param wave the wave that contains... | // Use the Wave UID to guarantee that a new fresh command is built and used !
final Command command = wave . contains ( JRebirthWaves . REUSE_COMMAND ) && wave . get ( JRebirthWaves . REUSE_COMMAND ) ? globalFacade ( ) . commandFacade ( ) . retrieve ( ( Class < Command > ) wave . componentClass ( ) ) : globalFacade ( )... |
public class ClusterCacheStatus { /** * Helpers for working with immutable lists */
private < T > List < T > immutableAdd ( List < T > list , T element ) { } } | List < T > result = new ArrayList < T > ( list ) ; result . add ( element ) ; return Collections . unmodifiableList ( result ) ; |
public class Tensor { /** * Divide each value by lambda . */
public void divide ( double val ) { } } | for ( int c = 0 ; c < this . values . length ; c ++ ) { divideValue ( c , val ) ; } |
public class Application { /** * Sets the application of this vm . Can only be called once ( except a second
* time with the same application ) . This method should only be called by a
* frontend or a backend main class .
* @ param application normally the created by createApplication method */
public static void... | if ( application == Application . instance ) { return ; } if ( Application . instance != null ) { throw new IllegalStateException ( "Application cannot be changed" ) ; } if ( application == null ) { throw new IllegalArgumentException ( "Application cannot be null" ) ; } Application . instance = application ; |
public class StreamGraphGenerator { /** * Transforms a { @ code SideOutputTransformation } .
* < p > For this we create a virtual node in the { @ code StreamGraph } that holds the side - output
* { @ link org . apache . flink . util . OutputTag } .
* @ see org . apache . flink . streaming . api . graph . StreamGr... | StreamTransformation < ? > input = sideOutput . getInput ( ) ; Collection < Integer > resultIds = transform ( input ) ; // the recursive transform might have already transformed this
if ( alreadyTransformed . containsKey ( sideOutput ) ) { return alreadyTransformed . get ( sideOutput ) ; } List < Integer > virtualResul... |
public class MinkowskiDistance { /** * Minkowski distance between the two arrays of type integer . */
public double d ( int [ ] x , int [ ] y ) { } } | if ( x . length != y . length ) throw new IllegalArgumentException ( String . format ( "Arrays have different length: x[%d], y[%d]" , x . length , y . length ) ) ; double dist = 0.0 ; if ( weight == null ) { for ( int i = 0 ; i < x . length ; i ++ ) { double d = Math . abs ( x [ i ] - y [ i ] ) ; dist += Math . pow ( d... |
public class IoUtil { /** * 获得一个Writer
* @ param out 输入流
* @ param charset 字符集
* @ return OutputStreamWriter对象 */
public static OutputStreamWriter getWriter ( OutputStream out , Charset charset ) { } } | if ( null == out ) { return null ; } if ( null == charset ) { return new OutputStreamWriter ( out ) ; } else { return new OutputStreamWriter ( out , charset ) ; } |
public class Trie2Writable { /** * Uncompact a compacted Trie2Writable .
* This is needed if a the WritableTrie2 was compacted in preparation for creating a read - only
* Trie2 , and then is subsequently altered .
* The structure is a bit awkward - it would be cleaner to leave the original
* Trie2 unaltered - b... | Trie2Writable tempTrie = new Trie2Writable ( this ) ; // Members from Trie2Writable
this . index1 = tempTrie . index1 ; this . index2 = tempTrie . index2 ; this . data = tempTrie . data ; this . index2Length = tempTrie . index2Length ; this . dataCapacity = tempTrie . dataCapacity ; this . isCompacted = tempTrie . isCo... |
public class GuiceComponentProvider { /** * Get service locator { @ link DynamicConfiguration dynamic configuration } .
* @ param locator HK2 service locator .
* @ return dynamic configuration for a given service locator . */
private static DynamicConfiguration getConfiguration ( final ServiceLocator locator ) { } ... | final DynamicConfigurationService dcs = locator . getService ( DynamicConfigurationService . class ) ; return dcs . createDynamicConfiguration ( ) ; |
public class VectorMath { /** * Subtracts the second { @ code Vector } fromt the first { @ code Vector } and
* returns the result .
* @ param vector1 The destination vector to be subtracted from .
* @ param vector2 The source vector to subtract .
* @ return The subtraction of { code vector2 } from { @ code vect... | if ( vector2 . length ( ) != vector1 . length ( ) ) throw new IllegalArgumentException ( "Vectors of different sizes cannot be added" ) ; if ( vector2 instanceof IntegerVector && vector1 instanceof DoubleVector ) return subtract ( vector1 , Vectors . asDouble ( vector2 ) ) ; if ( vector2 instanceof SparseVector ) subtr... |
public class Stripe { /** * Retrieve an existing { @ link Source } from the Stripe API . Note that this is a
* synchronous method , and cannot be called on the main thread . Doing so will cause your app
* to crash .
* @ param sourceId the { @ link Source # mId } field of the desired Source object
* @ param clie... | String apiKey = publishableKey == null ? mDefaultPublishableKey : publishableKey ; if ( apiKey == null ) { return null ; } return mApiHandler . retrieveSource ( sourceId , clientSecret , apiKey , mStripeAccount ) ; |
public class JSONArray { /** * Get the boolean value associated with an index . < p >
* The string values " true " and " false " are converted to boolean . < p >
* @ param index the index must be between 0 and length ( ) - 1
* @ return the truth
* @ throws JSONException if there is no value for the index or if ... | Object o = get ( index ) ; if ( o . equals ( Boolean . FALSE ) || ( ( o instanceof String ) && ( ( String ) o ) . equalsIgnoreCase ( "false" ) ) ) { return false ; } else if ( o . equals ( Boolean . TRUE ) || ( ( o instanceof String ) && ( ( String ) o ) . equalsIgnoreCase ( "true" ) ) ) { return true ; } throw new JSO... |
public class StreamNanoHTTPD { /** * Add session handler function .
* @ param path the path
* @ param value the value
* @ return the function */
public Function < IHTTPSession , Response > addSessionHandler ( final String path , final Function < IHTTPSession , Response > value ) { } } | return customHandlers . put ( path , value ) ; |
public class JCasUtil2 { /** * Returns the JCas of this annotation .
* The method converts the potentially thrown { @ link CASException } to an
* unchecked { @ link IllegalArgumentException } .
* @ param annotation the annotation
* @ return the extracted JCas */
public static JCas getJCas ( final Annotation ann... | JCas result = null ; try { result = annotation . getCAS ( ) . getJCas ( ) ; } catch ( final CASException e ) { throw new IllegalArgumentException ( e ) ; } return result ; |
public class AuthorizationDao { /** * Loads all the permissions granted to anonymous user for the specified organization */
public Set < String > selectOrganizationPermissionsOfAnonymous ( DbSession dbSession , String organizationUuid ) { } } | return mapper ( dbSession ) . selectOrganizationPermissionsOfAnonymous ( organizationUuid ) ; |
public class UniversalDateAndTimeStampImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public void setSecond ( Integer newSecond ) { } } | Integer oldSecond = second ; second = newSecond ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . UNIVERSAL_DATE_AND_TIME_STAMP__SECOND , oldSecond , second ) ) ; |
public class JSLocalConsumerPoint { /** * ( non - Javadoc )
* If the maxSequentialFailures value less than 1 then the consumer is deemed non stoppable
* @ see com . ibm . ws . sib . processor . impl . interfaces . LocalConsumerPoint # registerStoppableAsynchConsumer ( com . ibm . wsspi . sib . core . StoppableAsync... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "registerStoppableAsynchConsumer" , new Object [ ] { this , callback , Integer . valueOf ( maxActiveMessages ) , Long . valueOf ( messageLockExpiry ) , Integer . valueOf ( maxBatchSize ) , unrecoverableReliability , Boolean ... |
public class NodeTraversal { /** * Traverse a function out - of - band of normal traversal .
* @ param node The function node .
* @ param scope The scope the function is contained in . Does not fire enter / exit
* callback events for this scope . */
public void traverseFunctionOutOfBand ( Node node , AbstractScop... | checkNotNull ( scope ) ; checkState ( node . isFunction ( ) , node ) ; checkNotNull ( scope . getRootNode ( ) ) ; initTraversal ( node ) ; curNode = node . getParent ( ) ; pushScope ( scope , true /* quietly */
) ; traverseBranch ( node , curNode ) ; popScope ( true /* quietly */
) ; |
public class BytesMessageImpl { /** * ( non - Javadoc )
* @ see javax . jms . BytesMessage # writeBoolean ( boolean ) */
@ Override public void writeBoolean ( boolean value ) throws JMSException { } } | try { getOutput ( ) . writeBoolean ( value ) ; } catch ( IOException e ) { throw new FFMQException ( "Cannot write message body" , "IO_ERROR" , e ) ; } |
public class BeanDesc { /** * 根据字段创建属性描述 < br >
* 查找Getter和Setter方法时会 :
* < pre >
* 1 . 忽略字段和方法名的大小写
* 2 . Getter查找getXXX 、 isXXX 、 getIsXXX
* 3 . Setter查找setXXX 、 setIsXXX
* 4 . Setter忽略参数值与字段值不匹配的情况 , 因此有多个参数类型的重载时 , 会调用首次匹配的
* < / pre >
* @ param field 字段
* @ return { @ link PropDesc }
* @ since ... | final String fieldName = field . getName ( ) ; final Class < ? > fieldType = field . getType ( ) ; final boolean isBooeanField = BooleanUtil . isBoolean ( fieldType ) ; Method getter = null ; Method setter = null ; String methodName ; Class < ? > [ ] parameterTypes ; for ( Method method : ReflectUtil . getMethods ( thi... |
public class CredentialListMapping { /** * Create a CredentialListMappingCreator to execute create .
* @ param pathAccountSid The unique sid that identifies this account
* @ param pathDomainSid A string that identifies the SIP Domain for which the
* CredentialList resource will be mapped
* @ param credentialLis... | return new CredentialListMappingCreator ( pathAccountSid , pathDomainSid , credentialListSid ) ; |
public class RandomAccessStream { /** * Writes data to the file . */
public boolean writeToStream ( SendfileOutputStream os , long offset , long length , long [ ] blockAddresses , long blockLength ) throws IOException { } } | throw new UnsupportedOperationException ( getClass ( ) . getName ( ) ) ; |
public class Types { /** * Determines whether the given type is an array type .
* @ param type the given type
* @ return true if the given type is a subclass of java . lang . Class or implements GenericArrayType */
public static boolean isArray ( Type type ) { } } | return ( type instanceof GenericArrayType ) || ( type instanceof Class < ? > && ( ( Class < ? > ) type ) . isArray ( ) ) ; |
public class AFactoryAppBeans { /** * < p > Get HolderRapiGetters in lazy mode . < / p >
* @ return HolderRapiGetters - HolderRapiGetters
* @ throws Exception - an exception */
public final HolderRapiGetters lazyGetHolderRapiGetters ( ) throws Exception { } } | String beanName = getHolderRapiGettersName ( ) ; HolderRapiGetters holderRapiGetters = ( HolderRapiGetters ) this . beansMap . get ( beanName ) ; if ( holderRapiGetters == null ) { holderRapiGetters = new HolderRapiGetters ( ) ; holderRapiGetters . setUtlReflection ( lazyGetUtlReflection ( ) ) ; this . beansMap . put (... |
public class ChartComputator { /** * Computes the current scrollable surface size , in pixels . For example , if the entire chart area is visible , this
* is simply the current size of { @ link # contentRectMinusAllMargins } . If the chart is zoomed in 200 % in both
* directions , the
* returned size will be twic... | out . set ( ( int ) ( maxViewport . width ( ) * contentRectMinusAllMargins . width ( ) / currentViewport . width ( ) ) , ( int ) ( maxViewport . height ( ) * contentRectMinusAllMargins . height ( ) / currentViewport . height ( ) ) ) ; |
public class ReflectionUtils { /** * Calls the method with the specified name on the given object , casting the method ' s return value
* to the desired class type . This method assumes the " method " to invoke is an instance ( object ) member method .
* @ param < T > the desired return type in which the method ' s... | return invoke ( obj , methodName , null , null , returnType ) ; |
public class FLV { /** * { @ inheritDoc } */
@ Override public ITagWriter getAppendWriter ( ) throws IOException { } } | log . info ( "getAppendWriter: {}" , file ) ; return new FLVWriter ( file . toPath ( ) , true ) ; |
public class RemoveWatersheds { /** * Removes watersheds from the segmented image . The input image must be the entire original
* segmented image and assumes the outside border is filled with values < 0 . To access
* this image call { @ link boofcv . alg . segmentation . watershed . WatershedVincentSoille1991 # get... | // very quick sanity check
if ( segmented . get ( 0 , 0 ) >= 0 ) throw new IllegalArgumentException ( "The segmented image must contain a border of -1 valued pixels. See" + " JavaDoc for important details you didn't bother to read about." ) ; open . reset ( ) ; connect [ 0 ] = - 1 ; connect [ 1 ] = 1 ; connect [ 2 ] =... |
public class EvaluateRetrievalPerformance { /** * Test whether two relation agree .
* @ param ref Reference object
* @ param test Test object
* @ return { @ code true } if the objects match */
protected static boolean match ( Object ref , Object test ) { } } | if ( ref == null ) { return false ; } // Cheap and fast , may hold for class labels !
if ( ref == test ) { return true ; } if ( ref instanceof LabelList && test instanceof LabelList ) { final LabelList lref = ( LabelList ) ref ; final LabelList ltest = ( LabelList ) test ; final int s1 = lref . size ( ) , s2 = ltest . ... |
public class AccountFiltersInner { /** * Get an Account Filter .
* Get the details of an Account Filter in the Media Services account .
* @ param resourceGroupName The name of the resource group within the Azure subscription .
* @ param accountName The Media Services account name .
* @ param filterName The Acco... | return getWithServiceResponseAsync ( resourceGroupName , accountName , filterName ) . map ( new Func1 < ServiceResponse < AccountFilterInner > , AccountFilterInner > ( ) { @ Override public AccountFilterInner call ( ServiceResponse < AccountFilterInner > response ) { return response . body ( ) ; } } ) ; |
public class HttpQuery { /** * Send a file ( with zero - copy ) to the client with a 200 OK status .
* This method doesn ' t provide any security guarantee . The caller is
* responsible for the argument they pass in .
* @ param path The path to the file to send to the client .
* @ param max _ age The expiration... | sendFile ( HttpResponseStatus . OK , path , max_age ) ; |
public class AbstractConfiguration { /** * Reads the configuration property as an optional value , so it is not required to have a value for the key / propertyName , and
* returns the < code > defaultValue < / code > when the value isn ' t defined .
* @ param < T > the property type
* @ param propertyName The con... | T result = ConfigOptionalValue . getValue ( propertyName , propertyType ) ; if ( result == null ) { result = defaultValue ; } return result ; |
public class ServerSocket { /** * Enable / disable SO _ TIMEOUT with the specified timeout , in
* milliseconds . With this option set to a non - zero timeout ,
* a call to accept ( ) for this ServerSocket
* will block for only this amount of time . If the timeout expires ,
* a < B > java . net . SocketTimeoutEx... | if ( isClosed ( ) ) throw new SocketException ( "Socket is closed" ) ; getImpl ( ) . setOption ( SocketOptions . SO_TIMEOUT , new Integer ( timeout ) ) ; |
public class Datatype_Builder { /** * Replaces the value to be returned by { @ link Datatype # getPartialType ( ) } by applying { @ code
* mapper } to it and using the result .
* @ return this { @ code Builder } object
* @ throws NullPointerException if { @ code mapper } is null or returns null
* @ throws Illeg... | Objects . requireNonNull ( mapper ) ; return setPartialType ( mapper . apply ( getPartialType ( ) ) ) ; |
public class Util { /** * Returns a List of all of the values in the Map whose key matches an entry in the nameMapping array .
* @ param map
* the map
* @ param nameMapping
* the keys of the Map values to add to the List
* @ return a List of all of the values in the Map whose key matches an entry in the nameM... | if ( map == null ) { throw new NullPointerException ( "map should not be null" ) ; } else if ( nameMapping == null ) { throw new NullPointerException ( "nameMapping should not be null" ) ; } final List < Object > result = new ArrayList < Object > ( nameMapping . length ) ; for ( final String key : nameMapping ) { resul... |
public class StrKit { /** * 字符串为 null 或者内部字符全部为 ' ' ' \ t ' ' \ n ' ' \ r ' 这四类字符时返回 true */
public static boolean isBlank ( String str ) { } } | if ( str == null ) { return true ; } int len = str . length ( ) ; if ( len == 0 ) { return true ; } for ( int i = 0 ; i < len ; i ++ ) { switch ( str . charAt ( i ) ) { case ' ' : case '\t' : case '\n' : case '\r' : // case ' \ b ' :
// case ' \ f ' :
break ; default : return false ; } } return true ; |
public class HttpParameter { /** * / * package */
static boolean containsFile ( List < HttpParameter > params ) { } } | boolean containsFile = false ; for ( HttpParameter param : params ) { if ( param . isFile ( ) ) { containsFile = true ; break ; } } return containsFile ; |
public class RoleAssignmentsInner { /** * Gets role assignments for a resource group .
* @ param resourceGroupName The name of the resource group .
* @ param filter The filter to apply on the operation . Use $ filter = atScope ( ) to return all role assignments at or above the scope . Use $ filter = principalId eq ... | return listByResourceGroupWithServiceResponseAsync ( resourceGroupName , filter ) . map ( new Func1 < ServiceResponse < Page < RoleAssignmentInner > > , Page < RoleAssignmentInner > > ( ) { @ Override public Page < RoleAssignmentInner > call ( ServiceResponse < Page < RoleAssignmentInner > > response ) { return respons... |
public class QueryUtil { /** * Get a range query object for the given distance function for radius - based
* neighbor search . ( Range queries in ELKI refers to radius - based ranges , not
* rectangular query windows . )
* An index is used when possible , but it may fall back to a linear scan .
* Hints include ... | final Relation < O > relation = database . getRelation ( distanceFunction . getInputTypeRestriction ( ) , hints ) ; final DistanceQuery < O > distanceQuery = relation . getDistanceQuery ( distanceFunction , hints ) ; return relation . getRangeQuery ( distanceQuery , hints ) ; |
public class JsJmsMessageImpl { /** * ( non - Javadoc )
* @ see com . ibm . ws . sib . mfp . JsJmsMessage # setJmsDeliveryTime ( long ) */
@ Override public void setJmsDeliveryTime ( long value ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setJmsDeliveryTime" , Long . valueOf ( value ) ) ; getHdr2 ( ) . setField ( JsHdr2Access . JMSDELIVERYTIME_DATA , Long . valueOf ( value ) ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ... |
public class HbaseSyncService { /** * 根据对应的类型进行转换
* @ param columnItem 列项配置
* @ param hbaseMapping hbase映射配置
* @ param value 值
* @ return 复合字段rowKey */
private static byte [ ] typeConvert ( MappingConfig . ColumnItem columnItem , MappingConfig . HbaseMapping hbaseMapping , Object value ) { } } | if ( value == null ) { return null ; } byte [ ] bytes = null ; if ( columnItem == null || columnItem . getType ( ) == null || "" . equals ( columnItem . getType ( ) ) ) { if ( MappingConfig . Mode . STRING == hbaseMapping . getMode ( ) ) { bytes = Bytes . toBytes ( value . toString ( ) ) ; } else if ( MappingConfig . M... |
public class BackupShortTermRetentionPoliciesInner { /** * Gets a database ' s short term retention policy .
* @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal .
* @ param serverName The name of the serv... | return getWithServiceResponseAsync ( resourceGroupName , serverName , databaseName ) . map ( new Func1 < ServiceResponse < BackupShortTermRetentionPolicyInner > , BackupShortTermRetentionPolicyInner > ( ) { @ Override public BackupShortTermRetentionPolicyInner call ( ServiceResponse < BackupShortTermRetentionPolicyInne... |
public class WishlistItemUrl { /** * Get Resource Url for GetWishlistItemsByWishlistName
* @ param customerAccountId The unique identifier of the customer account for which to retrieve wish lists .
* @ param filter A set of filter expressions representing the search parameters for a query . This parameter is option... | UrlFormatter formatter = new UrlFormatter ( "/api/commerce/wishlists/customers/{customerAccountId}/{wishlistName}/items?startIndex={startIndex}&pageSize={pageSize}&sortBy={sortBy}&filter={filter}&responseFields={responseFields}" ) ; formatter . formatUrl ( "customerAccountId" , customerAccountId ) ; formatter . formatU... |
public class Graphics { /** * Set clipping that controls which areas of the world will be drawn to .
* Note that world clip is different from standard screen clip in that it ' s
* defined in the space of the current world coordinate - i . e . it ' s affected
* by translate , rotate , scale etc .
* @ param x
*... | predraw ( ) ; worldClipRecord = new Rectangle ( x , y , width , height ) ; GL . glEnable ( SGL . GL_CLIP_PLANE0 ) ; worldClip . put ( 1 ) . put ( 0 ) . put ( 0 ) . put ( - x ) . flip ( ) ; GL . glClipPlane ( SGL . GL_CLIP_PLANE0 , worldClip ) ; GL . glEnable ( SGL . GL_CLIP_PLANE1 ) ; worldClip . put ( - 1 ) . put ( 0 ... |
public class SessionContextRegistryImpl { /** * Get the SessionContext for the specified webmodule config
* Calls initialize the first time .
* Will create if it doesn ' t already exist */
public IHttpSessionContext getSessionContext ( DeployedModule webModuleConfig , WebApp ctx , String vhostName , ArrayList sessi... | if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && LoggingUtil . SESSION_LOGGER_CORE . isLoggable ( Level . FINE ) ) { LoggingUtil . SESSION_LOGGER_CORE . entering ( methodClassName , methodNames [ GET_SESSION_CONTEXT ] ) ; } if ( ! initialized ) initialize ( ) ; boolean sessionSharing = getSharin... |
public class CassandraCellExtractor { /** * { @ inheritDoc } */
@ SuppressWarnings ( "unchecked" ) @ Override public Cells transformElement ( Pair < Map < String , ByteBuffer > , Map < String , ByteBuffer > > elem , CassandraDeepJobConfig < Cells > config ) { } } | Cells cells = new Cells ( config . getNameSpace ( ) ) ; Map < String , Cell > columnDefinitions = config . columnDefinitions ( ) ; for ( Map . Entry < String , ByteBuffer > entry : elem . left . entrySet ( ) ) { Cell cd = columnDefinitions . get ( entry . getKey ( ) ) ; cells . add ( CassandraUtils . createFromByteBuff... |
public class Pool { public void put ( PondLife pl ) throws InterruptedException { } } | int id = pl . getID ( ) ; synchronized ( this ) { if ( _running == 0 ) stopPondLife ( id ) ; else if ( _pondLife [ id ] != null ) { _index [ _available ++ ] = id ; notify ( ) ; } } |
public class MethodUtils { /** * Returns a public Method object that reflects the specified public member
* method of the class or interface represented by given class . < br >
* Returns null if not find .
* @ param clazz
* the method belong to .
* @ param methodName
* the name of the method which you want ... | try { return clazz . getMethod ( methodName , parameterTypes ) ; } catch ( Exception e ) { Class < ? > superclass = clazz . getSuperclass ( ) ; if ( superclass != null ) { return findPublicMethod ( superclass , methodName , parameterTypes ) ; } } return null ; |
public class InjectableRegisterableItemsFactory { /** * Allows us to create instance of this class dynamically via < code > BeanManager < / code > . This is useful in case multiple
* independent instances are required on runtime and that need cannot be satisfied with regular CDI practices .
* @ param beanManager - ... | InjectableRegisterableItemsFactory instance = getInstanceByType ( beanManager , InjectableRegisterableItemsFactory . class , new Annotation [ ] { } ) ; instance . setAuditlogger ( auditlogger ) ; instance . setKieContainer ( kieContainer ) ; instance . setKsessionName ( ksessionName ) ; return instance ; |
public class MessageItem { /** * Sets the previous hop Bus name
* @ param busName */
private void setOriginatingBus ( String busName ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setOriginatingBus" , busName ) ; _busName = busName ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "setOriginatingBus" ) ; |
public class Streams { /** * A stream that reads byte data from a fixed sequence of underlying
* streams .
* This is a multi - stream analogue of { @ link ReadStream # andThen ( ReadStream ) }
* or { @ link ReadStream # butFirst ( ReadStream ) } methods . Each stream is closed
* after it has been exhausted , wi... | if ( streams == null ) throw new IllegalArgumentException ( "null streams" ) ; for ( ReadStream stream : streams ) { if ( stream == null ) throw new IllegalArgumentException ( "null stream" ) ; } return new SeqReadStream ( StreamCloser . closeStream ( ) , streams ) ; |
public class AttributeValue { /** * Returns the value in the given environment . If no value is found for a specific environment the code will fallback to a less complex environment ( reduced form of the environment )
* unless a value is found or the environment is not further reduceable .
* @ param in environment ... | while ( true ) { if ( log . isDebugEnabled ( ) ) log . debug ( "looking up in " + in + '(' + in . expandedStringForm ( ) + ')' ) ; final Value retValue = values . get ( in . expandedStringForm ( ) ) ; if ( retValue != null ) return retValue ; if ( ! in . isReduceable ( ) ) return null ; in = in . reduce ( ) ; } |
public class RolloverFileOutputStream { private void removeOldFiles ( ) { } } | if ( _retainDays > 0 ) { Calendar retainDate = Calendar . getInstance ( ) ; retainDate . add ( Calendar . DATE , - _retainDays ) ; int borderYear = retainDate . get ( java . util . Calendar . YEAR ) ; int borderMonth = retainDate . get ( java . util . Calendar . MONTH ) + 1 ; int borderDay = retainDate . get ( java . u... |
public class AbcGrammar { /** * ifield - transcription : : = % 5B . % 5A . % 3A * WSP tex - text - ifield % 5D < p >
* < tt > [ Z : . . ] < / tt > */
Rule IfieldTranscription ( ) { } } | return Sequence ( String ( "[Z:" ) , ZeroOrMore ( WSP ( ) ) . suppressNode ( ) , TexTextIfield ( ) , String ( "]" ) ) . label ( IfieldTranscription ) ; |
public class ByteUtil { /** * Converts a long value into a byte array .
* @ param val
* - long value to convert
* @ return decimal value with leading byte that are zeroes striped */
public static byte [ ] longToBytesNoLeadZeroes ( long val ) { } } | // todo : improve performance by while strip numbers until ( long > > 8 = = 0)
if ( val == 0 ) return EMPTY_BYTE_ARRAY ; byte [ ] data = ByteBuffer . allocate ( 8 ) . putLong ( val ) . array ( ) ; return stripLeadingZeroes ( data ) ; |
public class EndpointService { /** * Works only before { @ link # start ( ) } or after { @ link # stop ( ) } .
* @ param listener to remove */
public void removeInventoryListener ( InventoryListener listener ) { } } | this . inventoryListenerSupport . inventoryListenerRWLock . writeLock ( ) . lock ( ) ; try { status . assertInitialOrStopped ( getClass ( ) , "removeInventoryListener()" ) ; this . inventoryListenerSupport . inventoryListeners . remove ( listener ) ; LOG . debugf ( "Removed inventory listener [%s] for endpoint [%s]" , ... |
public class Utils { private static void initIdGenerator ( ) { } } | String workerID = Config . WORKER_ID ; workerId = NumberUtils . toLong ( workerID , 1 ) ; if ( workerId > MAX_WORKER_ID || workerId < 0 ) { workerId = new Random ( ) . nextInt ( ( int ) MAX_WORKER_ID + 1 ) ; } if ( dataCenterId > MAX_DATACENTER_ID || dataCenterId < 0 ) { dataCenterId = new Random ( ) . nextInt ( ( int ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.