signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class CmsSystemConfiguration { /** * Sets the shell server options from the confriguration . < p > * @ param enabled the value of the ' enabled ' attribute * @ param portStr the value of the ' port ' attribute */ public void setShellServerOptions ( String enabled , String portStr ) { } }
int port ; try { port = Integer . parseInt ( portStr ) ; } catch ( NumberFormatException e ) { port = CmsRemoteShellConstants . DEFAULT_PORT ; } m_shellServerOptions = new CmsRemoteShellConfiguration ( Boolean . parseBoolean ( enabled ) , port ) ;
public class AgentSession { /** * Returns the generic metadata of the workgroup the agent belongs to . * @ param con the XMPPConnection to use . * @ param query an optional query object used to tell the server what metadata to retrieve . This can be null . * @ return the settings for the workgroup . * @ throws ...
GenericSettings setting = new GenericSettings ( ) ; setting . setType ( IQ . Type . get ) ; setting . setTo ( workgroupJID ) ; GenericSettings response = connection . createStanzaCollectorAndSend ( setting ) . nextResultOrThrow ( ) ; return response ;
public class DatabaseSupport { /** * Gets every instance of the specified historical entity in the database . * @ param < T > the type of the entity . * @ param historicalEntityCls the class of the specified historical entity . * The entity must be a subtype of { @ link HistoricalEntity } . Cannot be * < code >...
EntityManager entityManager = this . entityManagerProvider . get ( ) ; CriteriaBuilder builder = entityManager . getCriteriaBuilder ( ) ; CriteriaQuery < T > criteriaQuery = builder . createQuery ( historicalEntityCls ) ; Root < T > root = criteriaQuery . from ( historicalEntityCls ) ; criteriaQuery . where ( expiredAt...
public class OmemoService { /** * Decrypt a possible OMEMO encrypted messages in a { @ link MamManager . MamQuery } . * The returned list contains wrappers that either hold an { @ link OmemoMessage } in case the message was decrypted * properly , otherwise it contains the message itself . * @ param managerGuard a...
List < MessageOrOmemoMessage > result = new ArrayList < > ( ) ; for ( Message message : mamQuery . getMessages ( ) ) { if ( OmemoManager . stanzaContainsOmemoElement ( message ) ) { OmemoElement element = message . getExtension ( OmemoElement . NAME_ENCRYPTED , OmemoConstants . OMEMO_NAMESPACE_V_AXOLOTL ) ; // Decrypt ...
public class CryptoUtils { /** * TODO : find something better */ public static boolean areEqual ( @ Nullable SHA256Digest first , @ Nullable SHA256Digest second ) { } }
if ( first == null ) { return second == null ; } if ( second == null ) { return false ; } return Arrays . equals ( first . getEncodedState ( ) , second . getEncodedState ( ) ) ;
public class EmulatedFieldsForDumping { /** * Find and set the Object value of a given field named < code > name < / code > * in the receiver . * @ param name * A String , the name of the field to set * @ param value * New value for the field . */ @ Override public void put ( String name , Object value ) { } ...
emulatedFields . put ( name , value ) ;
public class SDKUtil { /** * 根据signMethod的值 , 提供三种计算签名的方法 * @ param data * 待签名数据Map键值对形式 * @ param encoding * 编码 * @ return 签名是否成功 */ public static boolean sign ( Map < String , String > data , String encoding ) { } }
if ( isEmpty ( encoding ) ) { encoding = "UTF-8" ; } String signMethod = data . get ( param_signMethod ) ; String version = data . get ( SDKConstants . param_version ) ; if ( ! VERSION_1_0_0 . equals ( version ) && ! VERSION_5_0_1 . equals ( version ) && isEmpty ( signMethod ) ) { LogUtil . writeErrorLog ( "signMethod ...
public class RRBudgetV1_0Generator { /** * This method gets ParticipantTraineeSupportCosts details in * BudgetYearDataType such as TuitionFeeHealthInsurance * Stipends , Subsistence , Travel , Other , ParticipantTraineeNumber and TotalCost * based on the BudgetPeriodInfo for the RRBudget . * @ param periodInfo ...
ParticipantTraineeSupportCosts traineeSupportCosts = ParticipantTraineeSupportCosts . Factory . newInstance ( ) ; if ( periodInfo != null ) { traineeSupportCosts . setTuitionFeeHealthInsurance ( periodInfo . getPartTuition ( ) . bigDecimalValue ( ) ) ; traineeSupportCosts . setStipends ( periodInfo . getpartStipendCost...
public class Benchmark { /** * Getting all Benchmarkable methods out of the registered class . * @ return a Set with { @ link BenchmarkMethod } * @ throws PerfidixMethodCheckException */ List < BenchmarkMethod > getBenchmarkMethods ( ) throws PerfidixMethodCheckException { } }
// Generating Set for returnVal final List < BenchmarkMethod > elems = new ArrayList < BenchmarkMethod > ( ) ; // Getting all Methods and testing if its benchmarkable for ( final Class < ? > clazz : clazzes ) { for ( final Method meth : clazz . getDeclaredMethods ( ) ) { // Check if benchmarkable , if so , insert to re...
public class UploadCallable { /** * Initiates a multipart upload and returns the upload id * @ param isUsingEncryption */ private String initiateMultipartUpload ( PutObjectRequest origReq , boolean isUsingEncryption ) { } }
InitiateMultipartUploadRequest req = null ; if ( isUsingEncryption && origReq instanceof EncryptedPutObjectRequest ) { req = new EncryptedInitiateMultipartUploadRequest ( origReq . getBucketName ( ) , origReq . getKey ( ) ) . withCannedACL ( origReq . getCannedAcl ( ) ) . withObjectMetadata ( origReq . getMetadata ( ) ...
public class CxDxServerSessionImpl { /** * / * ( non - Javadoc ) * @ see org . jdiameter . api . cxdx . ServerCxDxSession # sendUserAuthorizationAnswer ( org . jdiameter . api . cxdx . events . JUserAuthorizationAnswer ) */ @ Override public void sendUserAuthorizationAnswer ( JUserAuthorizationAnswer answer ) throws ...
send ( Event . Type . SEND_MESSAGE , null , answer ) ;
public class ListGraphqlApisResult { /** * The < code > GraphqlApi < / code > objects . * @ param graphqlApis * The < code > GraphqlApi < / code > objects . */ public void setGraphqlApis ( java . util . Collection < GraphqlApi > graphqlApis ) { } }
if ( graphqlApis == null ) { this . graphqlApis = null ; return ; } this . graphqlApis = new java . util . ArrayList < GraphqlApi > ( graphqlApis ) ;
public class EnvLoader { /** * Initializes the environment */ public static synchronized void initializeEnvironment ( ) { } }
if ( _isStaticInit ) return ; _isStaticInit = true ; ClassLoader systemLoader = ClassLoader . getSystemClassLoader ( ) ; Thread thread = Thread . currentThread ( ) ; ClassLoader oldLoader = thread . getContextClassLoader ( ) ; try { thread . setContextClassLoader ( systemLoader ) ; if ( "1.8." . compareTo ( System . ge...
public class RESTAuthHelper { /** * Determines whether the given { @ code principal } has specified { @ code permission } on the given { @ code resource } . * @ param authHeader contents of an HTTP Authorization header * @ param resource representation of the resource being accessed * @ param principal the identi...
if ( isAuthEnabled ( ) ) { return pravegaAuthManager . authorize ( resource , principal , parseCredentials ( authHeader ) , permission ) ; } else { // Since auth is disabled , every request is deemed to have been authorized . return true ; }
public class PlayEngine { /** * Send VOD seek control message * @ param msgIn * Message input * @ param position * Playlist item * @ return Out - of - band control message call result or - 1 on failure */ private int sendVODSeekCM ( int position ) { } }
OOBControlMessage oobCtrlMsg = new OOBControlMessage ( ) ; oobCtrlMsg . setTarget ( ISeekableProvider . KEY ) ; oobCtrlMsg . setServiceName ( "seek" ) ; Map < String , Object > paramMap = new HashMap < String , Object > ( 1 ) ; paramMap . put ( "position" , position ) ; oobCtrlMsg . setServiceParamMap ( paramMap ) ; ms...
public class HornSchunckPyramid { /** * Takes the flow from the previous lower resolution layer and uses it to initialize the flow * in the current layer . Adjusts for change in image scale . */ protected void warpImageTaylor ( GrayF32 before , GrayF32 flowX , GrayF32 flowY , GrayF32 after ) { } }
interp . setImage ( before ) ; for ( int y = 0 ; y < before . height ; y ++ ) { int pixelIndex = y * before . width ; for ( int x = 0 ; x < before . width ; x ++ , pixelIndex ++ ) { float u = flowX . data [ pixelIndex ] ; float v = flowY . data [ pixelIndex ] ; float wx = x + u ; float wy = y + v ; if ( wx < 0 || wx > ...
public class ApiOvhMe { /** * Get associated payment method transaction * REST : GET / me / payment / transaction / { transactionId } * @ param transactionId [ required ] Payment method transaction ID * API beta */ public OvhTransaction payment_transaction_transactionId_GET ( Long transactionId ) throws IOExcepti...
String qPath = "/me/payment/transaction/{transactionId}" ; StringBuilder sb = path ( qPath , transactionId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhTransaction . class ) ;
public class DatastoreStorage { /** * Delete resource by id . Deletes both counter shards and counter limit if it exists . * < p > Due to Datastore limitations ( modify max 25 entity groups per transaction ) , * we cannot do everything in one transaction . */ void deleteResource ( String id ) throws IOException { }...
storeWithRetries ( ( ) -> { datastore . delete ( datastore . newKeyFactory ( ) . setKind ( KIND_COUNTER_LIMIT ) . newKey ( id ) ) ; return null ; } ) ; deleteShardsForCounter ( id ) ;
public class DailyVolumeMarshaller { /** * Marshall the given parameter object . */ public void marshall ( DailyVolume dailyVolume , ProtocolMarshaller protocolMarshaller ) { } }
if ( dailyVolume == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( dailyVolume . getStartDate ( ) , STARTDATE_BINDING ) ; protocolMarshaller . marshall ( dailyVolume . getVolumeStatistics ( ) , VOLUMESTATISTICS_BINDING ) ; protocolMarshalle...
public class CmsProjectDriver { /** * Publishes a new file . < p > * @ param dbc the current database context * @ param onlineProject the online project * @ param offlineResource the resource to publish * @ param publishedContentIds contains the UUIDs of already published content records * @ param publishHist...
CmsResourceState resourceState = fixMovedResource ( dbc , onlineProject , offlineResource , publishHistoryId , publishTag ) ; CmsFile newFile ; try { // reset the labeled link flag before writing the online file int flags = offlineResource . getFlags ( ) ; flags &= ~ CmsResource . FLAG_LABELED ; offlineResource . setFl...
public class Hashids { /** * / * Private methods */ private String _encode ( long ... numbers ) { } }
long numberHashInt = 0 ; for ( int i = 0 ; i < numbers . length ; i ++ ) { numberHashInt += ( numbers [ i ] % ( i + 100 ) ) ; } String alphabet = this . alphabet ; final char ret = alphabet . charAt ( ( int ) ( numberHashInt % alphabet . length ( ) ) ) ; long num ; long sepsIndex , guardIndex ; String buffer ; final St...
public class Maze2D { /** * Fill a rectangle defined by points a and b with empty tiles . * @ param a point a of the rectangle . * @ param b point b of the rectangle . */ public void removeObstacleRectangle ( Point a , Point b ) { } }
updateRectangle ( a , b , Symbol . EMPTY ) ;
public class XmpReader { /** * Performs the XMP data extraction , adding found values to the specified instance of { @ link Metadata } . * The extraction is done with Adobe ' s XMPCore library . */ public void extract ( @ NotNull final byte [ ] xmpBytes , @ NotNull Metadata metadata , @ Nullable Directory parentDirec...
extract ( xmpBytes , 0 , xmpBytes . length , metadata , parentDirectory ) ;
public class CommonOps_DDRM { /** * Performs the following operation : < br > * < br > * c = c + a < sup > T < / sup > * b < br > * c < sub > ij < / sub > = c < sub > ij < / sub > + & sum ; < sub > k = 1 : n < / sub > { a < sub > ki < / sub > * b < sub > kj < / sub > } * @ param a The left matrix in the multipl...
if ( b . numCols == 1 ) { if ( a . numCols >= EjmlParameters . MULT_COLUMN_SWITCH ) { MatrixVectorMult_DDRM . multAddTransA_reorder ( a , b , c ) ; } else { MatrixVectorMult_DDRM . multAddTransA_small ( a , b , c ) ; } } else { if ( a . numCols >= EjmlParameters . MULT_COLUMN_SWITCH || b . numCols >= EjmlParameters . M...
public class DescribeTagsRequest { /** * You can filter the list using a < i > key < / i > - < i > value < / i > format . You can separate these items by using logical * operators . Allowed filters include < code > tagKey < / code > , < code > tagValue < / code > , and < code > configurationId < / code > . * @ para...
if ( filters == null ) { this . filters = null ; return ; } this . filters = new java . util . ArrayList < TagFilter > ( filters ) ;
public class ClassInfo { /** * Add this field in the Record ' s field sequence . */ public BaseField setupField ( int iFieldSeq ) { } }
BaseField field = null ; // if ( iFieldSeq = = 0) // field = new CounterField ( this , ID , Constants . DEFAULT _ FIELD _ LENGTH , null , null ) ; // field . setHidden ( true ) ; // if ( iFieldSeq = = 1) // field = new RecordChangedField ( this , LAST _ CHANGED , Constants . DEFAULT _ FIELD _ LENGTH , null , null ) ; /...
public class TIFFImageWriter { /** * TODO : Candidate util method */ private ImageWriteParam copyParams ( final ImageWriteParam param , final ImageWriter writer ) { } }
if ( param == null ) { return null ; } // Always safe ImageWriteParam writeParam = writer . getDefaultWriteParam ( ) ; writeParam . setSourceSubsampling ( param . getSourceXSubsampling ( ) , param . getSourceYSubsampling ( ) , param . getSubsamplingXOffset ( ) , param . getSubsamplingYOffset ( ) ) ; writeParam . setSou...
public class DefaultPropertiesLoader { /** * This method loads default System Properties if : * - the context is not an integration - test , and * - the property is not already set * This method mutates explicitly specified system * Properties only if : * - they represent relative paths in order to * make t...
LOGGER . info ( "Loading properties" ) ; if ( getProperty ( "integration-test" ) == null ) { LOGGER . trace ( "Setting default properties, if necessary." ) ; final String fcrepoHome = getProperty ( "fcrepo.home" ) ; final String baseDir = ( fcrepoHome == null ? getProperty ( "user.dir" ) + SEP + "fcrepo4-data" + SEP : ...
public class Tracer { /** * Create connection listener * @ param poolName The name of the pool * @ param mcp The managed connection pool * @ param cl The connection listener * @ param mc The managed connection * @ param get A GET operation * @ param prefill A PREFILL operation * @ param incrementer An INC...
if ( get ) { log . tracef ( "%s" , new TraceEvent ( poolName , Integer . toHexString ( System . identityHashCode ( mcp ) ) , TraceEvent . CREATE_CONNECTION_LISTENER_GET , Integer . toHexString ( System . identityHashCode ( cl ) ) , Integer . toHexString ( System . identityHashCode ( mc ) ) , ! confidential && callstack...
public class OmemoMessageBuilder { /** * Encrypt the message with the aes key . * Move the AuthTag from the end of the cipherText to the end of the messageKey afterwards . * This prevents an attacker which compromised one recipient device to switch out the cipherText for other recipients . * @ see < a href = " ht...
if ( message == null ) { return ; } // Encrypt message body SecretKey secretKey = new SecretKeySpec ( messageKey , KEYTYPE ) ; IvParameterSpec ivSpec = new IvParameterSpec ( initializationVector ) ; Cipher cipher = Cipher . getInstance ( CIPHERMODE ) ; cipher . init ( Cipher . ENCRYPT_MODE , secretKey , ivSpec ) ; byte...
public class AuthServerLogic { /** * Saves user credentials */ public Credentials userSignUp ( Credentials credentials ) throws DAOException { } }
if ( getUserByEmail ( dao , credentials . getEmailAddress ( ) ) != null ) { throw new DAOException ( HttpStatus . SC_CONFLICT , "User Already Exists" ) ; } ServerCredentials toSave = new ServerCredentials ( credentials ) ; toSave . decryptPassword ( keyManager . getPrivateKey ( ) ) ; // decrypt the password String de =...
public class AsyncMutateInBuilder { /** * Perform several { @ link Mutation mutation } operations inside a single existing { @ link JsonDocument JSON document } * and watch for durability requirements . * The list of mutations and paths to mutate in the JSON is added through builder methods like * { @ link # arra...
return execute ( persistTo , ReplicateTo . NONE , 0 , null ) ;
public class AdaptiveTableLayout { /** * Refresh current row header view holder . * @ param holder current view holder */ private void refreshHeaderRowViewHolder ( ViewHolder holder ) { } }
int top = mManager . getRowsHeight ( 0 , Math . max ( 0 , holder . getRowIndex ( ) ) ) + mManager . getHeaderColumnHeight ( ) ; int left = calculateRowHeadersLeft ( ) ; if ( isRTL ( ) ) { left += mSettings . getCellMargin ( ) ; } View view = holder . getItemView ( ) ; int leftMargin = holder . getColumnIndex ( ) * mSet...
public class CSVConfig { /** * If the ' tls ' option is true , return the TLS parameters packaged in an * { @ link SSLTransportParameters } object . */ public SSLTransportParameters getTLSParams ( ) { } }
if ( tls && sslParams == null ) { sslParams = new SSLTransportParameters ( ) ; sslParams . setKeyStore ( keystore , keystorepassword ) ; sslParams . setTrustStore ( truststore , truststorepassword ) ; } return sslParams ;
public class SavedScriptRunner { /** * Run a script with parameters . * @ param scriptName name of the script to run * @ param parameters parameters for the script * @ return ScriptResult * @ throws UnknownScriptException if scriptName is unknown * @ throws GenerateScriptException , if parameter is missing */...
Script script = dataService . query ( SCRIPT , Script . class ) . eq ( ScriptMetadata . NAME , scriptName ) . findOne ( ) ; if ( script == null ) { throw new UnknownEntityException ( SCRIPT , scriptName ) ; } if ( script . getParameters ( ) != null ) { for ( ScriptParameter param : script . getParameters ( ) ) { if ( !...
public class Model { /** * Sets attribute value as < code > String < / code > . * If there is a { @ link Converter } registered for the attribute that converts from Class < code > S < / code > to Class * < code > java . lang . String < / code > , given the value is an instance of < code > S < / code > , then it wil...
Converter < Object , String > converter = modelRegistryLocal . converterForValue ( attributeName , value , String . class ) ; return setRaw ( attributeName , converter != null ? converter . convert ( value ) : Convert . toString ( value ) ) ;
public class ApplicationTracker { /** * Returns true if the application with the specified name is started , otherwise false . * @ return true if the application with the specified name is started , otherwise false . */ boolean isStarted ( String appName ) { } }
lock . readLock ( ) . lock ( ) ; try { return appStates . get ( appName ) == ApplicationState . STARTED ; } finally { lock . readLock ( ) . unlock ( ) ; }
public class MessageRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( MessageRequest messageRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( messageRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( messageRequest . getAddresses ( ) , ADDRESSES_BINDING ) ; protocolMarshaller . marshall ( messageRequest . getContext ( ) , CONTEXT_BINDING ) ; protocolMarshaller . marsh...
public class StringUtils { /** * Extract the filename from the given Java resource path , e . g . * { @ code " mypath / myfile . txt " - > " myfile . txt " } . * @ param path the file path ( may be { @ code null } ) * @ return the extracted filename , or { @ code null } if none */ @ Nullable public static String ...
if ( path == null ) { return null ; } final int separatorIndex = path . lastIndexOf ( StringUtils . FOLDER_SEPARATOR ) ; return separatorIndex != - 1 ? path . substring ( separatorIndex + 1 ) : path ;
public class LwjgFontFactory { /** * TODO リファクタ */ private void extractCharacterFilesFromDir ( URL urlCharacters ) throws URISyntaxException , IOException { } }
File dir = new File ( urlCharacters . toURI ( ) ) ; String pathMask = urlCharacters . getPath ( ) ; ResourceExtractor resourceExtractor = new ResourceExtractor ( ) ; // Windows 環境では絶対パスの先頭に / がつかないので 、 取り除く if ( ( File . separator . equals ( "\\" ) ) && ( pathMask . startsWith ( "/" ) ) ) { pathMask = pathMask . su...
public class AWSDatabaseMigrationServiceClient { /** * Returns information about replication tasks for your account in the current region . * @ param describeReplicationTasksRequest * @ return Result of the DescribeReplicationTasks operation returned by the service . * @ throws ResourceNotFoundException * The r...
request = beforeClientExecution ( request ) ; return executeDescribeReplicationTasks ( request ) ;
public class SequentialKnowledgeHelper { public Object get ( final Declaration declaration ) { } }
return declaration . getValue ( workingMemory , this . tuple . getObject ( declaration ) ) ;
public class UpdateTagSupport { /** * Private utility methods */ private Connection getConnection ( ) throws JspException , SQLException { } }
// Fix : Add all other mechanisms Connection conn = null ; isPartOfTransaction = false ; TransactionTagSupport parent = ( TransactionTagSupport ) findAncestorWithClass ( this , TransactionTagSupport . class ) ; if ( parent != null ) { if ( dataSourceSpecified ) { throw new JspTagException ( Resources . getMessage ( "ER...
public class JobsInner { /** * List all directories and files inside the given directory of the Job ' s output directory ( if the output directory is on Azure File Share or Azure Storage Container ) . * @ param resourceGroupName Name of the resource group to which the resource belongs . * @ param workspaceName The ...
ServiceResponse < Page < FileInner > > response = listOutputFilesSinglePageAsync ( resourceGroupName , workspaceName , experimentName , jobName , jobsListOutputFilesOptions ) . toBlocking ( ) . single ( ) ; return new PagedList < FileInner > ( response . body ( ) ) { @ Override public Page < FileInner > nextPage ( Stri...
public class ConnectionManagerImpl { /** * Release connection to the { @ link org . apache . ojb . broker . accesslayer . ConnectionFactory } , make * sure that you call the method in either case , it ' s the only way to free the connection . */ public void releaseConnection ( ) { } }
if ( this . con == null ) { return ; } if ( isInLocalTransaction ( ) ) { log . error ( "Release connection: connection is in local transaction, missing 'localCommit' or" + " 'localRollback' call - try to rollback the connection" ) ; localRollback ( ) ; } else { this . connectionFactory . releaseConnection ( this . jcd ...
public class ESHttpUtils { /** * Returns a single node from a given document using xpath . * @ param rootNode * Node to search . * @ param xPath * XPath to use . * @ param expression * XPath expression . * @ return Node or < code > null < / code > if no match was found . */ @ Nullable public static Node f...
Contract . requireArgNotNull ( "rootNode" , rootNode ) ; Contract . requireArgNotNull ( "xPath" , xPath ) ; Contract . requireArgNotNull ( "expression" , expression ) ; try { return ( Node ) xPath . compile ( expression ) . evaluate ( rootNode , XPathConstants . NODE ) ; } catch ( final XPathExpressionException ex ) { ...
public class JQMDataTable { /** * You have to call refreshColumns ( ) to update head and body ( if widget is already loaded ) . */ public void setColumns ( List < ColumnDefEx > cols ) { } }
clearHead ( ) ; datacols . clear ( ) ; if ( ! Empty . is ( cols ) ) datacols . addAll ( cols ) ; // head will be created later in onLoad ( ) or by refreshColumns ( )
public class CertFactory { /** * Factory method for creating a new { @ link X509Certificate } from the given certificate type and * certificate data as byte array . * @ param type * the certificate type * @ param certificateData * the certificate data as byte array * @ return the new { @ link X509Certificat...
final CertificateFactory cf = CertificateFactory . getInstance ( type ) ; final InputStream inputStream = new ByteArrayInputStream ( certificateData ) ; final X509Certificate certificate = ( X509Certificate ) cf . generateCertificate ( inputStream ) ; return certificate ;
public class PixelMath { /** * Bounds image pixels to be between these two values * @ param img Image * @ param min minimum value . * @ param max maximum value . */ public static void boundImage ( GrayS16 img , int min , int max ) { } }
ImplPixelMath . boundImage ( img , min , max ) ;
public class PullFileLoader { /** * Find and load all pull files under a base { @ link Path } recursively in an order sorted by last modified date . * @ param path base { @ link Path } where pull files should be found recursively . * @ param sysProps A { @ link Config } used as fallback . * @ param loadGlobalProp...
return Lists . transform ( this . fetchJobFilesRecursively ( path ) , new Function < Path , Config > ( ) { @ Nullable @ Override public Config apply ( @ Nullable Path jobFile ) { if ( jobFile == null ) { return null ; } try { return PullFileLoader . this . loadPullFile ( jobFile , sysProps , loadGlobalProperties ) ; } ...
public class Win32File { /** * Wraps a { @ code File } object pointing to a Windows symbolic link * ( { @ code . lnk } file ) in a { @ code Win32Lnk } . * If the operating system is not Windows , the * { @ code pPath } parameter is returned unwrapped . * @ param pPath any path , possibly pointing to a Windows s...
if ( pPath == null ) { return null ; } if ( IS_WINDOWS ) { // Don ' t wrap if allready wrapped if ( pPath instanceof Win32File || pPath instanceof Win32Lnk ) { return pPath ; } if ( pPath . exists ( ) && pPath . getName ( ) . endsWith ( ".lnk" ) ) { // If Win32 . lnk , let ' s wrap try { return new Win32Lnk ( pPath ) ;...
public class FileTools { /** * Read a file of properties and notifies all the listeners for each property . * @ param source * the source input stream . * @ param encoding * the encoding of the file . * @ param listeners * a list of any { @ link PropertiesParsingListener } * @ throws IOException * @ thr...
BufferedReader _reader = new BufferedReader ( createReaderForInputStream ( source , encoding ) ) ; LineByLinePropertyParser _parser = new LineByLinePropertyParser ( ) ; for ( PropertiesParsingListener _listener : listeners ) { _parser . addListener ( _listener ) ; } for ( String _line = _reader . readLine ( ) ; _line !...
public class GraphOfTheGodsFactory { /** * Calls { @ link TitanFactory # open ( String ) } , passing the Titan configuration file path * which must be the sole element in the { @ code args } array , then calls * { @ link # load ( com . thinkaurelius . titan . core . TitanGraph ) } on the opened graph , * then cal...
if ( null == args || 1 != args . length ) { System . err . println ( "Usage: GraphOfTheGodsFactory <titan-config-file>" ) ; System . exit ( 1 ) ; } TitanGraph g = TitanFactory . open ( args [ 0 ] ) ; load ( g ) ; g . close ( ) ;
public class SvgGraphicsContext { /** * Set a specific cursor on an element of this < code > GraphicsContext < / code > . * @ param object * the element on which the controller should be set . * @ param cursor * The string representation of the cursor to use . */ public void setCursor ( Object object , String c...
if ( isAttached ( ) ) { helper . setCursor ( object , cursor ) ; }
public class DelaunayTriangulation { /** * Calculates a Voronoi cell for a given neighborhood * in this triangulation . A neighborhood is defined by a triangle * and one of its corner points . * By Udi Schneider * @ param triangle a triangle in the neighborhood * @ param p corner point whose surrounding neigh...
// handle any full triangle if ( ! triangle . isHalfplane ( ) ) { // get all neighbors of given corner point List < Triangle > neighbors = findTriangleNeighborhood ( triangle , p ) ; Iterator < Triangle > itn = neighbors . iterator ( ) ; Vector3 [ ] vertices = new Vector3 [ neighbors . size ( ) ] ; // for each neighbor...
public class CouchbaseSchemaManager { /** * Removes the bucket . * @ param name * the name */ private void removeBucket ( String name ) { } }
try { if ( clusterManager . removeBucket ( name ) ) { LOGGER . info ( "Bucket [" + name + "] is removed!" ) ; } else { LOGGER . error ( "Not able to remove bucket [" + name + "]." ) ; throw new KunderaException ( "Not able to remove bucket [" + name + "]." ) ; } } catch ( CouchbaseException ex ) { LOGGER . error ( "Not...
public class LRImporter { /** * Obtain the path used for a harvest request * @ param requestID the " request _ ID " parameter for the request * @ param byResourceID the " by _ resource _ ID " parameter for the request * @ param byDocID the " by _ doc _ ID " parameter for the request * @ return the string of the...
String path = harvestPath ; if ( requestID != null ) { path += "?" + requestIDParam + "=" + requestID ; } else { // error return null ; } if ( byResourceID ) { path += "&" + byResourceIDParam + "=" + booleanTrueString ; } else { path += "&" + byResourceIDParam + "=" + booleanFalseString ; } if ( byDocID ) { path += "&"...
public class SynchronizedIO { /** * Write binary file data * @ param aFileName * @ param aData * @ throws Exception */ public void writeFile ( String aFileName , URL aData ) throws Exception { } }
Object lock = retrieveLock ( aFileName ) ; synchronized ( lock ) { IO . writeFile ( aFileName , aData ) ; }
public class LongStream { /** * Creates a { @ code LongStream } from { @ code PrimitiveIterator . OfLong } . * @ param iterator the iterator with elements to be passed to stream * @ return the new { @ code LongStream } * @ throws NullPointerException if { @ code iterator } is null */ @ NotNull public static LongS...
Objects . requireNonNull ( iterator ) ; return new LongStream ( iterator ) ;
public class HttpRedirectBindingUtil { /** * Converts an { @ link AggregatedHttpMessage } which is received from the remote entity to * a { @ link SAMLObject } . */ @ SuppressWarnings ( "unchecked" ) static < T extends SAMLObject > MessageContext < T > toSamlObject ( AggregatedHttpMessage msg , String name , Map < St...
requireNonNull ( msg , "msg" ) ; requireNonNull ( name , "name" ) ; requireNonNull ( idpConfigs , "idpConfigs" ) ; final SamlParameters parameters = new SamlParameters ( msg ) ; final T message = ( T ) fromDeflatedBase64 ( parameters . getFirstValue ( name ) ) ; final MessageContext < T > messageContext = new MessageCo...
public class GSAPImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void setQ ( Integer newQ ) { } }
Integer oldQ = q ; q = newQ ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . GSAP__Q , oldQ , q ) ) ;
public class CaseSyntax { /** * Converts to this { @ link CaseSyntax } . The first character will be converted using { @ link # getFirstCase ( ) } . * Characters other than { @ link Character # isLetterOrDigit ( char ) letters or digits } are considered as word separator . * In the most cases , they will be * @ p...
if ( ( string == null ) || ( string . isEmpty ( ) ) ) { return string ; } // fast and simple cases first . . . if ( ( ! hasWordSeparator ( ) ) && ( this . wordStartCase == this . otherCase ) ) { String s = string ; if ( this . wordSeparator == null ) { s = removeSpecialCharacters ( s ) ; } if ( this . firstCase == this...
public class CudaZeroHandler { /** * This method returns set of allocation tracking IDs for specific device * @ param deviceId * @ return */ @ Override public Set < Long > getDeviceTrackingPoints ( Integer deviceId ) { } }
return deviceAllocations . get ( deviceId ) . keySet ( ) ;
public class AbstractBioConnector { /** * THIS IS A BUG IN JAVA , should not need two methods just to capture the type */ protected < F extends ConnectFuture > ConnectFuture connectInternal ( final ResourceAddress remoteAddress , final IoHandler handler , final IoSessionInitializer < F > initializer ) { } }
ConnectFuture future ; final String nextProtocol = remoteAddress . getOption ( ResourceAddress . NEXT_PROTOCOL ) ; ResourceAddress transport = remoteAddress . getTransport ( ) ; if ( transport != null ) { BridgeConnector connector = bridgeServiceFactory . newBridgeConnector ( transport ) ; future = connector . connect ...
public class Table { /** * Starts a BigQuery Job to load data into the current table from the provided source URIs . * Returns the started { @ link Job } object . * < p > Example loading data from a list of Google Cloud Storage files . * < pre > { @ code * String gcsUrl1 = " gs : / / my _ bucket / filename1 . c...
LoadJobConfiguration loadConfig = LoadJobConfiguration . of ( getTableId ( ) , sourceUris , format ) ; return bigquery . create ( JobInfo . of ( loadConfig ) , options ) ;
public class MiniSatStyleSolver { /** * Returns the assigned value of a given literal . * @ param lit the literal * @ return the assigned value of the literal */ protected Tristate value ( int lit ) { } }
return sign ( lit ) ? Tristate . negate ( this . v ( lit ) . assignment ( ) ) : this . v ( lit ) . assignment ( ) ;
public class NBTIO { /** * Reads the root CompoundTag from the given file . * @ param file File to read from . * @ param compressed Whether the NBT file is compressed . * @ param littleEndian Whether the NBT file is little endian . * @ return The read compound tag . * @ throws java . io . IOException If an I ...
InputStream in = new FileInputStream ( file ) ; if ( compressed ) { in = new GZIPInputStream ( in ) ; } Tag tag = readTag ( in , littleEndian ) ; if ( ! ( tag instanceof CompoundTag ) ) { throw new IOException ( "Root tag is not a CompoundTag!" ) ; } return ( CompoundTag ) tag ;
public class SimonConnectionConfiguration { /** * Tests whether URL is a Simon JDBC connection URL . */ public static boolean isSimonUrl ( String url ) { } }
return url != null && url . toLowerCase ( ) . startsWith ( SimonConnectionConfiguration . URL_PREFIX ) ;
public class StyleSheetUpdater { /** * Add the requested post parameters to the Request . * @ param request Request to add post params to */ private void addPostParams ( final Request request ) { } }
if ( styleSheet != null ) { request . addPostParam ( "StyleSheet" , Converter . mapToJson ( styleSheet ) ) ; }
public class LatchedObserver { /** * Create a LatchedObserver with the given indexed callback function ( s ) and a shared latch . */ public static < T > LatchedObserver < T > createIndexed ( Action2 < ? super T , ? super Integer > onNext , CountDownLatch latch ) { } }
return new LatchedObserverIndexedImpl < T > ( onNext , Functionals . emptyThrowable ( ) , Functionals . empty ( ) , latch ) ;
public class AbstractRoller { /** * Invoked by subclasses ; performs actual file roll . Tests to see whether roll * is necessary have already been performed , so just do it . */ final void roll ( final long timeForSuffix ) { } }
final File backupFile = this . prepareBackupFile ( timeForSuffix ) ; // close filename this . getAppender ( ) . closeFile ( ) ; // rename filename on disk to filename + suffix ( + number ) this . doFileRoll ( this . getAppender ( ) . getIoFile ( ) , backupFile ) ; // setup new file ' filename ' this . getAppender ( ) ....
public class GitlabAPI { /** * Get a list of projects of perPage elements accessible by the authenticated user given page offset * @ param user Gitlab User to invoke sudo with * @ param page Page offset * @ param perPage Number of elements to get after page offset * @ return A list of gitlab projects * @ thro...
Pagination pagination = new Pagination ( ) . withPage ( page ) . withPerPage ( perPage ) ; return getProjectsViaSudoWithPagination ( user , pagination ) ;
public class Positions { /** * Get a writable position of type { @ code type # value } . * @ param typed not { @ code null } * @ return Position . Writable */ public static < T > Position . Writable < T > writable ( final Typed < T > typed ) { } }
return writable ( typed , noop ( ) ) ;
public class GVRTextureCapturer { /** * Updates the backing render texture . This method should not * be called when capturing is in progress . * @ param width The width of the backing texture in pixels . * @ param height The height of the backing texture in pixels . * @ param sampleCount The MSAA sample count ...
if ( capturing ) { throw new IllegalStateException ( "Cannot update backing texture while capturing" ) ; } this . width = width ; this . height = height ; if ( sampleCount == 0 ) captureTexture = new GVRRenderTexture ( getGVRContext ( ) , width , height ) ; else captureTexture = new GVRRenderTexture ( getGVRContext ( )...
public class Blob { /** * { @ inheritDoc } * @ throw SQLFeatureNotSupportedException if this BLOB is empty */ public OutputStream setBinaryStream ( final long pos ) throws SQLException { } }
synchronized ( this ) { if ( this . underlying == null ) { if ( pos > 1 ) { throw new SQLException ( "Invalid position: " + pos ) ; } // end of if throw new SQLFeatureNotSupportedException ( "Cannot write to empty BLOB" ) ; } // end of if return this . underlying . setBinaryStream ( pos ) ; } // end of sync
public class TagValue { /** * Gets the bytes . * @ param i the i * @ param j the j * @ return the bytes */ public int getBytesBigEndian ( int i , int j ) { } }
int result = 0 ; for ( int k = i ; k < i + j ; k ++ ) { result += value . get ( k ) . toUint ( ) ; if ( k + 1 < i + j ) result <<= 8 ; } return result ;
public class QueryCreator { /** * Add the requested post parameters to the Request . * @ param request Request to add post params to */ private void addPostParams ( final Request request ) { } }
if ( language != null ) { request . addPostParam ( "Language" , language ) ; } if ( query != null ) { request . addPostParam ( "Query" , query ) ; } if ( tasks != null ) { request . addPostParam ( "Tasks" , tasks ) ; } if ( modelBuild != null ) { request . addPostParam ( "ModelBuild" , modelBuild . toString ( ) ) ; } i...
public class Saml2ClientMetadataController { /** * Gets idp metadata by name . * @ param client the client * @ return the service provider metadata by name */ @ GetMapping ( "/sp/{client}/idp/metadata" ) public ResponseEntity < String > getIdentityProviderMetadataByName ( @ PathVariable ( "client" ) final String cl...
val saml2Client = ( SAML2Client ) builtClients . findClient ( client ) ; if ( saml2Client != null ) { return getSaml2ClientIdentityProviderMetadataResponseEntity ( saml2Client ) ; } return getNotAcceptableResponseEntity ( ) ;
public class AMRDefaultRuleProcessor { /** * Clone processor */ @ Override public Processor newProcessor ( Processor p ) { } }
AMRDefaultRuleProcessor oldProcessor = ( AMRDefaultRuleProcessor ) p ; Builder builder = new Builder ( oldProcessor ) ; AMRDefaultRuleProcessor newProcessor = builder . build ( ) ; newProcessor . resultStream = oldProcessor . resultStream ; newProcessor . ruleStream = oldProcessor . ruleStream ; return newProcessor ;
public class RePairRule { /** * Gets occurrences . * @ return all rule ' s occurrences . */ public int [ ] getOccurrences ( ) { } }
int [ ] res = new int [ this . occurrences . size ( ) ] ; for ( int i = 0 ; i < this . occurrences . size ( ) ; i ++ ) { res [ i ] = this . occurrences . get ( i ) ; } return res ;
public class BracketStage { /** * Parses the threshold to remove the matched braket . * No checks are performed against the passed in string : the object assumes * that the string is correct since the { @ link # canParse ( String ) } method * < b > must < / b > be called < b > before < / b > this method . * @ p...
configure ( tc ) ; return threshold . substring ( 1 ) ;
public class FSNamesystem { /** * dumps the contents of recentInvalidateSets */ void dumpExcessReplicasSets ( PrintWriter out ) { } }
int size = excessReplicateMap . values ( ) . size ( ) ; out . println ( "Metasave: Excess blocks " + excessBlocksCount + " waiting deletion from " + size + " datanodes." ) ; if ( size == 0 ) { return ; } for ( Map . Entry < String , LightWeightHashSet < Block > > entry : excessReplicateMap . entrySet ( ) ) { LightWeigh...
public class InjectionTarget { /** * Set the parent InjectionBinding containing the information for this injection target * @ param injectionBinding */ public void setInjectionBinding ( InjectionBinding < ? > injectionBinding ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "setInjectionBinding : " + injectionBinding ) ; ivInjectionBinding = injectionBinding ;
public class DefaultComposer { /** * ( non - Javadoc ) * @ see org . jsmpp . util . PDUComposer # dataSmResp ( int , java . lang . String , * org . jsmpp . bean . OptionalParameter [ ] ) */ public byte [ ] dataSmResp ( int sequenceNumber , String messageId , OptionalParameter ... optionalParameters ) throws PDUStri...
StringValidator . validateString ( messageId , StringParameter . MESSAGE_ID ) ; PDUByteBuffer buf = new PDUByteBuffer ( SMPPConstant . CID_DATA_SM_RESP , 0 , sequenceNumber ) ; buf . append ( messageId ) ; return buf . toBytes ( ) ;
public class AuditFieldAnnotationAttribute { /** * Gets the all params . * @ param method * the method * @ param arg1 * the arg1 * @ return the all params */ public List < Field > getAllFields ( final Method method , final Object [ ] arg1 ) { } }
final Annotation [ ] [ ] parameterAnnotations = method . getParameterAnnotations ( ) ; List < Field > actionItems = new ArrayList < Field > ( ) ; int i = 0 ; String paramName = null ; String paramValue = null ; Class < ? > paramType ; for ( final Annotation [ ] annotations : parameterAnnotations ) { final Object object...
public class JcrServiceImpl { /** * Reads properties of the given node . * @ param repository the repository name * @ param workspace the workspace name * @ param path the path to the node * @ param node the node instance * @ return list of node ' s properties . * @ throws RepositoryException */ private Col...
ArrayList < PropertyDefinition > names = new ArrayList < > ( ) ; NodeType primaryType = node . getPrimaryNodeType ( ) ; PropertyDefinition [ ] defs = primaryType . getPropertyDefinitions ( ) ; names . addAll ( Arrays . asList ( defs ) ) ; NodeType [ ] mixinType = node . getMixinNodeTypes ( ) ; for ( NodeType type : mix...
public class DatastoreImpl { /** * Find all instances by type in a different collection than what is mapped on the class given skipping some documents and returning a * fixed number of the remaining . * @ param collection The collection use when querying * @ param clazz the class to use for mapping the results ...
final Query < T > query = find ( collection , clazz ) ; if ( ! validate ) { query . disableValidation ( ) ; } query . offset ( offset ) ; query . limit ( size ) ; return query . filter ( property , value ) . enableValidation ( ) ;
public class MPXWriter { /** * This method is called to format a units value . * @ param value numeric value * @ return currency value */ private String formatUnits ( Number value ) { } }
return ( value == null ? null : m_formats . getUnitsDecimalFormat ( ) . format ( value . doubleValue ( ) / 100 ) ) ;
public class RpcWrapper { /** * The base functionality used by all NFS calls , which does basic return * code checking and throws an exception if this does not pass . Verbose * logging is also handled here . This method is not used by Portmap , Mount , * and Unmount calls . * @ param request * The request to ...
LOG . debug ( "server {}, port {}, request {}" , _server , _port , request ) ; callRpcNaked ( request , responseHandler . getNewResponse ( ) , ipAddress ) ; if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "server {}, port {}, response {}" , _server , _port , responseHandler . getResponse ( ) ) ; } responseHandler . che...
public class EQL { /** * Prints the . * @ param _ queryBuilder the query builder * @ return the prints the */ public static Print print ( final Query _queryBuilder ) { } }
return ( Print ) org . efaps . eql2 . EQL2 . print ( _queryBuilder ) ;
public class ScreenAwtAbstract { /** * Link keyboard to the screen ( listening to ) . * @ param mouse The mouse reference . */ private void addMouseListener ( MouseAwt mouse ) { } }
componentForMouse . addMouseListener ( mouse . getClicker ( ) ) ; componentForMouse . addMouseMotionListener ( mouse . getMover ( ) ) ; componentForMouse . requestFocus ( ) ;
public class MessagePacker { /** * Writes header of an Array value . * You will call other packer methods for each element after this method call . * You don ' t have to call anything at the end of iteration . * @ param arraySize number of elements to be written * @ return this * @ throws IOException when und...
if ( arraySize < 0 ) { throw new IllegalArgumentException ( "array size must be >= 0" ) ; } if ( arraySize < ( 1 << 4 ) ) { writeByte ( ( byte ) ( FIXARRAY_PREFIX | arraySize ) ) ; } else if ( arraySize < ( 1 << 16 ) ) { writeByteAndShort ( ARRAY16 , ( short ) arraySize ) ; } else { writeByteAndInt ( ARRAY32 , arraySiz...
public class UidManager { /** * Runs through the tsdb - uid table and removes TSMeta , UIDMeta and TSUID * counter entries from the table * The process is as follows : * < ul > < li > Fetch the max number of Metric UIDs < / li > * < li > Split the # of UIDs amongst worker threads < / li > * < li > Create a de...
final long start_time = System . currentTimeMillis ( ) / 1000 ; final long max_id = CliUtils . getMaxMetricID ( tsdb ) ; // now figure out how many IDs to divy up between the workers final int workers = Runtime . getRuntime ( ) . availableProcessors ( ) * 2 ; final double quotient = ( double ) max_id / ( double ) worke...
public class DefaultTableMetaTSDBFactory { /** * 代理一下tableMetaTSDB的获取 , 使用隔离的spring定义 */ public TableMetaTSDB build ( String destination , String springXml ) { } }
return TableMetaTSDBBuilder . build ( destination , springXml ) ;
public class SARLOperationHelper { /** * Evalute the Pure annotatino adapters . * @ param operation the operation to adapt . * @ param context the context . * @ return { @ code true } if the pure annotation could be associated to the given operation . */ boolean evaluatePureAnnotationAdapters ( org . eclipse . xt...
int index = - 1 ; int i = 0 ; for ( final Adapter adapter : operation . eAdapters ( ) ) { if ( adapter . isAdapterForType ( AnnotationJavaGenerationAdapter . class ) ) { index = i ; break ; } ++ i ; } if ( index >= 0 ) { final AnnotationJavaGenerationAdapter annotationAdapter = ( AnnotationJavaGenerationAdapter ) opera...
public class IsaPog { /** * Write Isabelle theory files to disk for the model and proof obligations * @ param path * Path to the directory to write the files to . Must end with the { @ link File # separatorChar } * @ return true if write is successful * @ throws IOException */ public Boolean writeThyFiles ( Str...
File modelThyFile = new File ( path + modelThyName ) ; FileUtils . writeStringToFile ( modelThyFile , modelThy . getContent ( ) ) ; File posThyFile = new File ( path + posThyName ) ; FileUtils . writeStringToFile ( posThyFile , posThy ) ; return true ;
public class SimplePipelineRev803 { /** * Run a sequence of { @ link AnalysisEngine analysis engines } over a { @ link CAS } . This method * does not { @ link AnalysisEngine # destroy ( ) destroy } the engines or send them other events like * { @ link AnalysisEngine # collectionProcessComplete ( ) } . This is left ...
if ( engines . length == 0 ) { return ; } CasIterator casIter = engines [ 0 ] . processAndOutputNewCASes ( cas ) ; AnalysisEngine [ ] enginesRemains = Arrays . copyOfRange ( engines , 1 , engines . length ) ; while ( casIter . hasNext ( ) ) { CAS nextCas = casIter . next ( ) ; runPipeline ( nextCas , enginesRemains ) ;...
public class DeviceAttribute_3DAODefaultImpl { private void buildAttributeValueObject ( final String name ) { } }
attrval . name = name ; attrval . quality = AttrQuality . ATTR_VALID ; attrval . time = new TimeVal ( ) ; attrval . r_dim = new AttributeDim ( ) ; attrval . w_dim = new AttributeDim ( ) ; attrval . r_dim . dim_x = 1 ; attrval . r_dim . dim_y = 0 ; attrval . w_dim . dim_x = 0 ; attrval . w_dim . dim_y = 0 ; try { attrva...
public class MetricsTags { /** * Generate segment tags ( string array ) on the input fully qualified segment name to be associated with a metric . * @ param qualifiedSegmentName fully qualified segment name . * @ return string array as segment tag of metric . */ public static String [ ] segmentTags ( String qualifi...
Preconditions . checkNotNull ( qualifiedSegmentName ) ; String [ ] tags = { TAG_SCOPE , null , TAG_STREAM , null , TAG_SEGMENT , null , TAG_EPOCH , null } ; if ( qualifiedSegmentName . contains ( TABLE_SEGMENT_DELIMITER ) ) { String [ ] tokens = qualifiedSegmentName . split ( TABLE_SEGMENT_DELIMITER ) ; tags [ 1 ] = to...
public class Config { /** * Sets the map of job tracker configurations , mapped by config name . * The config name may be a pattern with which the configuration will be * obtained in the future . * @ param jobTrackerConfigs the job tracker configuration map to set * @ return this config instance */ public Confi...
this . jobTrackerConfigs . clear ( ) ; this . jobTrackerConfigs . putAll ( jobTrackerConfigs ) ; for ( final Entry < String , JobTrackerConfig > entry : this . jobTrackerConfigs . entrySet ( ) ) { entry . getValue ( ) . setName ( entry . getKey ( ) ) ; } return this ;