signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class ScanAdapter { /** * { @ inheritDoc } */ @ Override public void adapt ( Scan scan , ReadHooks readHooks , Query query ) { } }
throwIfUnsupportedScan ( scan ) ; toByteStringRange ( scan , query ) ; query . filter ( buildFilter ( scan , readHooks ) ) ; if ( LIMIT_AVAILABLE && scan . getLimit ( ) > 0 ) { query . limit ( scan . getLimit ( ) ) ; }
public class ItemizedOverlayControlView { private void initViewListeners ( ) { } }
this . mNextButton . setOnClickListener ( new OnClickListener ( ) { @ Override public void onClick ( final View v ) { if ( ItemizedOverlayControlView . this . mLis != null ) ItemizedOverlayControlView . this . mLis . onNext ( ) ; } } ) ; this . mPreviousButton . setOnClickListener ( new OnClickListener ( ) { @ Override...
public class Dependencies { /** * Visit the api of a class and construct a pubapi string and * store it into the pubapi _ perclass map . */ public void visitPubapi ( Element e ) { } }
Name n = ( ( ClassSymbol ) e ) . fullname ; Name p = ( ( ClassSymbol ) e ) . packge ( ) . fullname ; StringBuffer sb = publicApiPerClass . get ( n ) ; assert ( sb == null ) ; sb = new StringBuffer ( ) ; PubapiVisitor v = new PubapiVisitor ( sb ) ; v . visit ( e ) ; if ( sb . length ( ) > 0 ) { publicApiPerClass . put (...
public class InjectionBinding { /** * Merges the value of an integer annotation value . * < p > If an error occurs , { @ link # mergeError } will be called , which * requires { @ link # getJNDIEnvironmentRefType } to be defined . * @ param oldValue the old value * @ param oldValueXML true if the old value was s...
if ( newValue == defaultValue ) { return oldValue ; } if ( oldValueXML ) { return oldValue ; } if ( oldValue == null ? isComplete ( ) : ! oldValue . equals ( newValue ) ) { Object oldValueName = valueNames == null ? oldValue : valueNames . get ( oldValue ) ; Object newValueName = valueNames == null ? newValue : valueNa...
public class Neighbours { /** * Creates a BusGroup with the given name . * As this is a new Bus , the current subscription state in * the MatchSpace is read and assigned to the Bus as active * subscriptions . * @ param busId The name of the Busgroup * @ return The new BusGroup object representing the bus . */...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createBus" , busId ) ; // Create a new group and add it to the list . boolean isLocalBus = busId . equals ( _localBusName ) ; final BusGroup group = new BusGroup ( busId , _proxyHandler , isLocalBus ) ; final BusGroup [ ] t...
public class BinderParamBuilder { /** * Returns the { @ link ClassName } for the Stub */ private ClassName getStubClassName ( TypeMirror param ) { } }
Element element = getBindingManager ( ) . getElement ( param . toString ( ) ) ; return ClassName . get ( getPackage ( element ) . getQualifiedName ( ) . toString ( ) , element . getSimpleName ( ) + ClassBuilder . STUB_SUFFIX ) ;
public class TopologyBuilder { /** * Define a new bolt in this topology . This defines a windowed bolt , intended * for windowing operations . The { @ link IWindowedBolt # execute ( TupleWindow ) } method * is triggered for each window interval with the list of current events in the window . * @ param id the id o...
return setBolt ( id , new backtype . storm . topology . WindowedBoltExecutor ( bolt ) , parallelism_hint ) ;
public class InternalSimpleExpressionsLexer { /** * $ ANTLR start " RULE _ INT " */ public final void mRULE_INT ( ) throws RecognitionException { } }
try { int _type = RULE_INT ; int _channel = DEFAULT_TOKEN_CHANNEL ; // InternalSimpleExpressions . g : 802:10 : ( ( ' 0 ' . . ' 9 ' ) + ) // InternalSimpleExpressions . g : 802:12 : ( ' 0 ' . . ' 9 ' ) + { // InternalSimpleExpressions . g : 802:12 : ( ' 0 ' . . ' 9 ' ) + int cnt3 = 0 ; loop3 : do { int alt3 = 2 ; int L...
public class PdfContentReaderTool { /** * Shows the detail of a dictionary . * @ param dicthe dictionary of which you want the detail * @ param depththe depth of the current dictionary ( for nested dictionaries ) * @ returna String representation of the dictionary */ static public String getDictionaryDetail ( Pdf...
StringBuffer builder = new StringBuffer ( ) ; builder . append ( '(' ) ; List subDictionaries = new ArrayList ( ) ; for ( Iterator i = dic . getKeys ( ) . iterator ( ) ; i . hasNext ( ) ; ) { PdfName key = ( PdfName ) i . next ( ) ; PdfObject val = dic . getDirectObject ( key ) ; if ( val . isDictionary ( ) ) subDictio...
public class JdbcTarget { /** * Construct insert query using property names and database table name . * @ return insert query */ private String createInsertQuery ( ) { } }
StringBuilder query = new StringBuilder ( ) ; query . append ( "insert into " ) . append ( m_tableName ) . append ( "(" ) . append ( m_propertyNames [ 0 ] ) ; for ( int i = 1 ; i < m_propertyNames . length ; i ++ ) { query . append ( "," ) . append ( m_propertyNames [ i ] ) ; } query . append ( ") values (?" ) ; for ( ...
public class EurekaBootStrap { /** * Handles Eureka cleanup , including shutting down all monitors and yielding all EIPs . * @ see javax . servlet . ServletContextListener # contextDestroyed ( javax . servlet . ServletContextEvent ) */ @ Override public void contextDestroyed ( ServletContextEvent event ) { } }
try { logger . info ( "{} Shutting down Eureka Server.." , new Date ( ) ) ; ServletContext sc = event . getServletContext ( ) ; sc . removeAttribute ( EurekaServerContext . class . getName ( ) ) ; destroyEurekaServerContext ( ) ; destroyEurekaEnvironment ( ) ; } catch ( Throwable e ) { logger . error ( "Error shutting ...
public class SignalRsInner { /** * Handles requests to list all resources in a resource group . * @ 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 . * @ throws IllegalArgumentException thrown if paramete...
return listByResourceGroupWithServiceResponseAsync ( resourceGroupName ) . map ( new Func1 < ServiceResponse < Page < SignalRResourceInner > > , Page < SignalRResourceInner > > ( ) { @ Override public Page < SignalRResourceInner > call ( ServiceResponse < Page < SignalRResourceInner > > response ) { return response . b...
public class ConnecClient { /** * Update an entity remotely * @ param entity * name * @ param groupId * customer group id * @ param entityId * id of the entity to retrieve * @ param jsonStr * entity attributes to update * @ param httpClient * @ return updated entity * @ throws AuthenticationExcept...
String jsonBody = httpClient . put ( getInstanceUrl ( entityName , groupId , entityId ) , jsonStr ) ; Type typeOfHashMap = HashMap . class ; return GSON . fromJson ( jsonBody , typeOfHashMap ) ;
public class RulesApplier { /** * A recursive method that iterates the sentence given a base token group ( sentence or chunk ) . Used to * match general and phrase local rules . * @ param mistakes * a list of mistakes found in the process of checking the sentence * @ param currentStates * the applier will che...
int offset = 0 ; if ( tokenGroup instanceof Chunk ) { offset = ( ( Chunk ) tokenGroup ) . getFirstToken ( ) ; } for ( State state : currentStates ) { PatternElement patternElement = state . getElement ( ) ; Token token = tokenGroup . getTokens ( ) . get ( currentTokenIndex ) ; boolean tokenAndElementMatched = this . ma...
public class AddTask { /** * / * ( non - Javadoc ) * @ see com . ibm . ws . sib . msgstore . cache . xalist . Task # commitStage1 ( com . ibm . ws . sib . msgstore . Transaction ) */ public final void commitInternal ( final PersistentTransaction transaction ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "commitInternal" , transaction ) ; getLink ( ) . internalCommitAdd ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "commitInternal" ) ;
public class KinesisDataFetcher { /** * Utility function to convert { @ link StreamShardMetadata } into { @ link StreamShardHandle } . * @ param streamShardMetadata the { @ link StreamShardMetadata } to be converted * @ return a { @ link StreamShardHandle } object */ public static StreamShardHandle convertToStreamS...
Shard shard = new Shard ( ) ; shard . withShardId ( streamShardMetadata . getShardId ( ) ) ; shard . withParentShardId ( streamShardMetadata . getParentShardId ( ) ) ; shard . withAdjacentParentShardId ( streamShardMetadata . getAdjacentParentShardId ( ) ) ; HashKeyRange hashKeyRange = new HashKeyRange ( ) ; hashKeyRan...
public class TruncatableThrowable { /** * Unfortunately , toString ( ) isn ' t good enough since we may have elements in the stack representing * internal classes , and they don ' t toString ( ) well . */ public static String printStackTraceElement ( StackTraceElement stackTraceElement ) { } }
final String toString ; if ( stackTraceElement == null ) { toString = "at null" ; } // Look for our eyecatcher representing a truncation else if ( TRIMMED_STACK_TRACE_ELEMENT . equals ( stackTraceElement ) ) { // Use only the class name , which is actually [ internal classes ] toString = "at " + stackTraceElement . get...
public class InternalSARLLexer { /** * $ ANTLR start " T _ _ 108" */ public final void mT__108 ( ) throws RecognitionException { } }
try { int _type = T__108 ; int _channel = DEFAULT_TOKEN_CHANNEL ; // InternalSARL . g : 94:8 : ( ' - = ' ) // InternalSARL . g : 94:10 : ' - = ' { match ( "-=" ) ; } state . type = _type ; state . channel = _channel ; } finally { }
public class RestRequestValidator { /** * Prints a debug log message that details the time taken for the Http * request to be parsed by the coordinator * @ param operationType * @ param receivedTimeInMs */ protected void debugLog ( String operationType , Long receivedTimeInMs ) { } }
long durationInMs = receivedTimeInMs - ( this . parsedRequestOriginTimeInMs ) ; int numVectorClockEntries = ( this . parsedVectorClock == null ? 0 : this . parsedVectorClock . getVersionMap ( ) . size ( ) ) ; logger . debug ( "Received a new request. Operation type: " + operationType + " , Key(s): " + keysHexString ( t...
public class VNode { /** * Chooses a proper bound for this VNode according to its class . */ public void setSizeAccordingToClass ( ) { } }
String glyphClass = this . glyph . getClazz ( ) ; // If glyph class is not specified return here if ( glyphClass . equalsIgnoreCase ( NONE ) ) return ; if ( glyphClass . equalsIgnoreCase ( SOURCE_AND_SINK ) ) { setBounds ( SOURCE_AND_SINK_BOUND . getWidth ( ) , SOURCE_AND_SINK_BOUND . getHeight ( ) ) ; } else if ( glyp...
public class RegExpImpl { /** * Analog of match _ glob ( ) in jsstr . c */ private static void match_glob ( GlobData mdata , Context cx , Scriptable scope , int count , RegExpImpl reImpl ) { } }
if ( mdata . arrayobj == null ) { mdata . arrayobj = cx . newArray ( scope , 0 ) ; } SubString matchsub = reImpl . lastMatch ; String matchstr = matchsub . toString ( ) ; mdata . arrayobj . put ( count , mdata . arrayobj , matchstr ) ;
public class Conjunction { /** * Appends another conjunction to this conjunction . */ public Conjunction append ( IConjunct conjunct ) { } }
for ( Iterator < IDisjunct > disjuncts = conjunct . getDisjuncts ( ) ; disjuncts . hasNext ( ) ; add ( disjuncts . next ( ) ) ) ; return this ;
public class Vector2dfx { /** * Replies the property that represents the length of the vector . * @ return the length property */ public ReadOnlyDoubleProperty lengthSquaredProperty ( ) { } }
if ( this . lengthSquareProperty == null ) { this . lengthSquareProperty = new ReadOnlyDoubleWrapper ( this , MathFXAttributeNames . LENGTH_SQUARED ) ; this . lengthSquareProperty . bind ( Bindings . createDoubleBinding ( ( ) -> Vector2dfx . this . x . doubleValue ( ) * Vector2dfx . this . x . doubleValue ( ) + Vector2...
public class BuzzHash { /** * are the same . */ public static final long computeHashCode ( String str , boolean modifyAlgorithm ) { } }
// d179573 Ends // to avoid EBCDIC / ASCII / Unicdoe encoding difference ( i . e . z / OS390) // uses toCharArray ( ) instead of getBytes ( ) . char chars [ ] = str . toCharArray ( ) ; // Corrected the algorithm to more closely match the ' buzHash ' // algorithm it is patterned from and produce both a 64 and 32 // bit ...
public class WorkspacePersistentDataManager { /** * { @ inheritDoc } */ public List < PropertyData > getReferencesData ( final String identifier , boolean skipVersionStorage ) throws RepositoryException { } }
final WorkspaceStorageConnection con = dataContainer . openConnection ( ) ; try { final List < PropertyData > allRefs = con . getReferencesData ( identifier ) ; final List < PropertyData > refProps = new ArrayList < PropertyData > ( ) ; for ( int i = 0 ; i < allRefs . size ( ) ; i ++ ) { PropertyData ref = allRefs . ge...
public class LineInput { public synchronized int read ( ) throws IOException { } }
int b ; if ( _pos >= _avail ) fill ( ) ; if ( _pos >= _avail ) b = - 1 ; else b = _buf [ _pos ++ ] & 255 ; return b ;
public class FTPUploader { /** * Upload directory to specified FTP server with retries . * @ param ftpServer * @ param username * @ param password * @ param sourceDirectory * @ param targetDirectory * @ param maxRetryCount * @ throws MojoExecutionException */ public void uploadDirectoryWithRetries ( final...
int retryCount = 0 ; while ( retryCount < maxRetryCount ) { retryCount ++ ; log . info ( UPLOAD_START + ftpServer ) ; if ( uploadDirectory ( ftpServer , username , password , sourceDirectory , targetDirectory ) ) { log . info ( UPLOAD_SUCCESS + ftpServer ) ; return ; } else { log . warn ( String . format ( UPLOAD_FAILU...
public class JsHdrsImpl { /** * Set the identity of the destination definition ( not localisation ) * Javadoc description supplied by CommonMessageHeaders interface . */ public final void setGuaranteedTargetDestinationDefinitionUUID ( SIBUuid12 value ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setGuaranteedTargetDestinationDefinitionUUID" , value ) ; if ( value != null ) getHdr2 ( ) . setField ( JsHdr2Access . GUARANTEED_SET_TARGETDESTDEFUUID , value . toByteArray ( ) ) ; else getHdr2 ( ) . setField ( JsHd...
public class Collections { /** * Returns a synchronized ( thread - safe ) list backed by the specified * list . In order to guarantee serial access , it is critical that * < strong > all < / strong > access to the backing list is accomplished * through the returned list . < p > * It is imperative that the user ...
return ( list instanceof RandomAccess ? new SynchronizedRandomAccessList < > ( list ) : new SynchronizedList < > ( list ) ) ;
public class StringUtils { /** * < p > Returns either the passed in CharSequence , or if the CharSequence is * empty or { @ code null } , the value of { @ code defaultStr } . < / p > * < pre > * StringUtils . defaultIfEmpty ( null , " NULL " ) = " NULL " * StringUtils . defaultIfEmpty ( " " , " NULL " ) = " NUL...
return isEmpty ( str ) ? defaultStr : str ;
public class FNNRGImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public boolean eIsSet ( int featureID ) { } }
switch ( featureID ) { case AfplibPackage . FNNRG__GCGID : return GCGID_EDEFAULT == null ? gcgid != null : ! GCGID_EDEFAULT . equals ( gcgid ) ; case AfplibPackage . FNNRG__TS_OFFSET : return TS_OFFSET_EDEFAULT == null ? tsOffset != null : ! TS_OFFSET_EDEFAULT . equals ( tsOffset ) ; } return super . eIsSet ( featureID...
public class PhaseApplication { /** * Directs phase application lifecycle . * @ param phase Phase application */ protected static void harness ( PhaseApplication phase ) { } }
try { phase . start ( ) ; phase . stop ( ) ; phase . end ( ) ; } catch ( BELRuntimeException bre ) { err . println ( bre . getUserFacingMessage ( ) ) ; systemExit ( bre . getExitCode ( ) ) ; } catch ( OutOfMemoryError oom ) { err . println ( ) ; oom . printStackTrace ( ) ; long upperlimit = getRuntime ( ) . maxMemory (...
public class ProjectClient { /** * Disable this project as a shared VPC host project . * < p > Sample code : * < pre > < code > * try ( ProjectClient projectClient = ProjectClient . create ( ) ) { * ProjectName project = ProjectName . of ( " [ PROJECT ] " ) ; * Operation response = projectClient . disableXpnH...
DisableXpnHostProjectHttpRequest request = DisableXpnHostProjectHttpRequest . newBuilder ( ) . setProject ( project == null ? null : project . toString ( ) ) . build ( ) ; return disableXpnHostProject ( request ) ;
public class CmsRootHandler { /** * Returns the handler for the given id . < p > * @ param entityId the entity id * @ param attributeName the attribute name * @ return the handler */ public CmsAttributeHandler getHandlerById ( String entityId , String attributeName ) { } }
return m_handlerById . get ( entityId + "/" + attributeName ) ;
public class FieldsInner { /** * Retrieve a list of fields of a given type identified by module name . * @ param resourceGroupName Name of an Azure Resource group . * @ param automationAccountName The name of the automation account . * @ param moduleName The name of module . * @ param typeName The name of type ...
return ServiceFuture . fromResponse ( listByTypeWithServiceResponseAsync ( resourceGroupName , automationAccountName , moduleName , typeName ) , serviceCallback ) ;
public class DiscordApiImpl { /** * Adds the given server to the cache . * @ param server The server to add . */ public void addServerToCache ( ServerImpl server ) { } }
// Remove in case , there ' s an old instance in cache removeServerFromCache ( server . getId ( ) ) ; nonReadyServers . put ( server . getId ( ) , server ) ; server . addServerReadyConsumer ( s -> { nonReadyServers . remove ( s . getId ( ) ) ; removeUnavailableServerFromCache ( s . getId ( ) ) ; servers . put ( s . get...
public class LinearSearch { /** * Search for the value in the list and return the index of the first occurrence from the * beginning of the list . The run time of this algorithm depends on the * implementation of the list . It is advised to use an array based implementation * to achieve O ( n ) runtime . * @ pa...
return LinearSearch . search ( list , value , 1 ) ;
public class PriorityScheduler { /** * Adds the { @ code schedulable } to the list using the given { @ code frequency } , { @ code phase } and priority . * @ param schedulable the task to schedule * @ param frequency the frequency * @ param phase the phase * @ param priority the priority */ public void add ( Sc...
// Compile the record and add it to the list schedulableRecords . add ( new PrioritySchedulableRecord ( schedulable , frequency , phase , priority ) ) ;
public class XMLSecurityDescriptor { /** * ( non - Javadoc ) * @ see net . timewalker . ffmq4 . utils . Checkable # check ( ) */ @ Override public void check ( ) throws JMSException { } }
Iterator < User > users = userMap . values ( ) . iterator ( ) ; while ( users . hasNext ( ) ) { User user = users . next ( ) ; user . check ( ) ; }
public class SetBiLevelImageColorImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void setNAMECOLR ( Integer newNAMECOLR ) { } }
Integer oldNAMECOLR = namecolr ; namecolr = newNAMECOLR ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . SET_BI_LEVEL_IMAGE_COLOR__NAMECOLR , oldNAMECOLR , namecolr ) ) ;
public class SessionListener { /** * { @ inheritDoc } */ @ Override public void contextDestroyed ( ServletContextEvent event ) { } }
if ( ! instanceEnabled ) { return ; } // nettoyage avant le retrait de la webapp au cas où celui - ci ne suffise pas SESSION_MAP_BY_ID . clear ( ) ; SESSION_COUNT . set ( 0 ) ; // issue 665 : in WildFly 10.1.0 , the MonitoringFilter may never be initialized neither destroyed . // For this case , it is needed to stop h...
public class Util { /** * helper method to convert a ' delimiter ' separated string to a list . * This is a VERY basic parsing / creation of CSV , if you seen anything superior then use < a href = " http : / / flatpack . sf . net " > FlatPack < / a > . * @ param str * the ' delimiter ' separated string * @ para...
if ( str == null ) { return Collections . emptyList ( ) ; } final StringTokenizer tok = new StringTokenizer ( str , delimiter ) ; final List < String > list = new ArrayList < > ( ) ; while ( tok . hasMoreElements ( ) ) { list . add ( StringUtil . trim ( tok . nextToken ( ) ) ) ; } return list ;
public class TypeResolver { /** * Works like { @ link # resolveRawClass ( Type , Class , Class ) } but does not stop at raw classes . Instead , traverses * referenced types . * @ param cache contains a mapping of generic types to reified types . A value of { @ code null } inside a * { @ link ReifiedParameterizedT...
// Terminal case . if ( genericType instanceof Class < ? > ) return genericType ; // For cycles of length larger than one , find its last element by chasing through cache . while ( cache . containsKey ( genericType ) ) { genericType = cache . get ( genericType ) ; } // Recursive cases . if ( genericType instanceof Para...
public class CmsFlexCacheEntry { /** * Sets the expiration date of this Flex cache entry exactly to the * given time . < p > * @ param dateExpires the time to expire this cache entry */ public void setDateExpires ( long dateExpires ) { } }
m_dateExpires = dateExpires ; if ( LOG . isDebugEnabled ( ) ) { long now = System . currentTimeMillis ( ) ; LOG . debug ( Messages . get ( ) . getBundle ( ) . key ( Messages . LOG_FLEXCACHEENTRY_SET_EXPIRATION_DATE_3 , new Long ( m_dateExpires ) , new Long ( now ) , new Long ( m_dateExpires - now ) ) ) ; }
public class SimpleDataModel { /** * Updates the specified item if found in the model , prepends it otherwise . */ public void updateItem ( T item ) { } }
if ( _items == null ) { return ; } int idx = _items . indexOf ( item ) ; if ( idx == - 1 ) { _items . add ( 0 , item ) ; } else { _items . set ( idx , item ) ; }
public class Cache { /** * Looks up Records in the Cache ( a wrapper around lookupRecords ) . Unlike * lookupRecords , this given no indication of why failure occurred . * @ param name The name to look up * @ param type The type to look up * @ return An array of RRsets , or null * @ see Credibility */ public ...
return findRecords ( name , type , Credibility . GLUE ) ;
public class InvocationsFinder { /** * some examples how it works : * Given invocations sequence : * 1,1,2,1 * if wanted is 1 and mode is times ( 2 ) then returns * 1,1 * if wanted is 1 and mode is atLeast ( ) then returns * 1,1,1 * if wanted is 1 and mode is times ( x ) , where x ! = 2 then returns * 1...
List < Invocation > unverified = removeVerifiedInOrder ( invocations , context ) ; List < Invocation > firstChunk = getFirstMatchingChunk ( wanted , unverified ) ; if ( wantedCount != firstChunk . size ( ) ) { return findAllMatchingUnverifiedChunks ( invocations , wanted , context ) ; } else { return firstChunk ; }
public class bioSourceImpl { /** * - - - - - Interface BioPAXElement - - - - - */ protected boolean semanticallyEquivalent ( BioPAXElement element ) { } }
final bioSource bioSource = ( bioSource ) element ; return ( CELLTYPE != null ? CELLTYPE . equals ( bioSource . getCELLTYPE ( ) ) : bioSource . getCELLTYPE ( ) == null ) && ( TAXON_XREF != null ? TAXON_XREF . equals ( bioSource . getTAXON_XREF ( ) ) : bioSource . getTAXON_XREF ( ) == null ) && ( TISSUE != null ? ! TISS...
public class UBL22ReaderBuilder { /** * Create a new reader builder . * @ param aClass * The UBL class to be read . May not be < code > null < / code > . * @ return The new reader builder . Never < code > null < / code > . * @ param < T > * The UBL 2.2 document implementation type */ @ Nonnull public static <...
return new UBL22ReaderBuilder < > ( aClass ) ;
public class CipherLite { /** * Returns the inverse of the current { @ link CipherLite } . */ CipherLite createInverse ( ) throws InvalidKeyException , NoSuchAlgorithmException , NoSuchProviderException , NoSuchPaddingException , InvalidAlgorithmParameterException { } }
int inversedMode ; if ( cipherMode == Cipher . DECRYPT_MODE ) inversedMode = Cipher . ENCRYPT_MODE ; else if ( cipherMode == Cipher . ENCRYPT_MODE ) inversedMode = Cipher . DECRYPT_MODE ; else throw new UnsupportedOperationException ( ) ; return scheme . createCipherLite ( secreteKey , cipher . getIV ( ) , inversedMode...
public class PdfBoxGraphics2DFontTextDrawerDefaultFonts { /** * Find a PDFont for the given font object , which does not need to be embedded . * @ param font * font for which to find a suitable default font * @ return null if no default font is found or a default font which does not * need to be embedded . */ p...
/* * Map default font names to the matching families . */ if ( fontNameEqualsAnyOf ( font , Font . SANS_SERIF , Font . DIALOG , Font . DIALOG_INPUT , "Arial" , "Helvetica" ) ) return chooseMatchingHelvetica ( font ) ; if ( fontNameEqualsAnyOf ( font , Font . MONOSPACED , "courier" , "courier new" ) ) return chooseMatch...
public class MultinomialDPMM { /** * { @ inheritDoc } */ @ Override protected Cluster createNewCluster ( Integer clusterId ) { } }
ModelParameters modelParameters = knowledgeBase . getModelParameters ( ) ; TrainingParameters trainingParameters = knowledgeBase . getTrainingParameters ( ) ; Cluster c = new Cluster ( clusterId , modelParameters . getD ( ) , trainingParameters . getAlphaWords ( ) ) ; c . setFeatureIds ( modelParameters . getFeatureIds...
public class JvmTypesBuilder { /** * / * @ Nullable */ @ Deprecated public JvmAnnotationReference toAnnotation ( /* @ Nullable */ EObject sourceElement , /* @ Nullable */ String annotationTypeName , /* @ Nullable */ Object value ) { } }
JvmAnnotationReference result = typesFactory . createJvmAnnotationReference ( ) ; JvmType jvmType = references . findDeclaredType ( annotationTypeName , sourceElement ) ; if ( jvmType == null ) { throw new IllegalArgumentException ( "The type " + annotationTypeName + " is not on the classpath." ) ; } if ( ! ( jvmType i...
public class ResolvableType { /** * Return a { @ link ResolvableType } for the specified { @ link Field } with a given * implementation . * < p > Use this variant when the class that declares the field includes generic * parameter variables that are satisfied by the implementation class . * @ param field the so...
Assert . notNull ( field , "Field must not be null" ) ; ResolvableType owner = forType ( implementationClass ) . as ( field . getDeclaringClass ( ) ) ; return forType ( null , new FieldTypeProvider ( field ) , owner . asVariableResolver ( ) ) ;
public class UserDetail { /** * A list of the inline policies embedded in the user . * @ return A list of the inline policies embedded in the user . */ public java . util . List < PolicyDetail > getUserPolicyList ( ) { } }
if ( userPolicyList == null ) { userPolicyList = new com . amazonaws . internal . SdkInternalList < PolicyDetail > ( ) ; } return userPolicyList ;
public class NavigationTreeTag { /** * Creates the nested & lt ; ul & gt ; and & lt ; li & gt ; tags used by TreeView . * The first level is expanded . * < a href = " http : / / developer . yahoo . com / yui / treeview / # start " > http : / / developer . yahoo . com / yui / treeview / # start < / a > */ @ Override...
try { final PageContext pageContext = ( PageContext ) getJspContext ( ) ; NavigationTreeRenderer . writeNavigationTree ( pageContext . getServletContext ( ) , pageContext . getELContext ( ) , ( HttpServletRequest ) pageContext . getRequest ( ) , ( HttpServletResponse ) pageContext . getResponse ( ) , pageContext . getO...
public class VersioningConfigurationMarshaller { /** * Marshall the given parameter object . */ public void marshall ( VersioningConfiguration versioningConfiguration , ProtocolMarshaller protocolMarshaller ) { } }
if ( versioningConfiguration == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( versioningConfiguration . getUnlimited ( ) , UNLIMITED_BINDING ) ; protocolMarshaller . marshall ( versioningConfiguration . getMaxVersions ( ) , MAXVERSIONS_BIN...
public class CRLDistPoint { /** * Return the distribution points making up the sequence . * @ return DistributionPoint [ ] */ public DistributionPoint [ ] getDistributionPoints ( ) { } }
DistributionPoint [ ] dp = new DistributionPoint [ seq . size ( ) ] ; for ( int i = 0 ; i != seq . size ( ) ; i ++ ) { dp [ i ] = DistributionPoint . getInstance ( seq . getObjectAt ( i ) ) ; } return dp ;
public class GenericDraweeHierarchy { /** * Applies scale type and rounding ( both if specified ) . */ @ Nullable private Drawable buildBranch ( @ Nullable Drawable drawable , @ Nullable ScalingUtils . ScaleType scaleType ) { } }
drawable = WrappingUtils . maybeApplyLeafRounding ( drawable , mRoundingParams , mResources ) ; drawable = WrappingUtils . maybeWrapWithScaleType ( drawable , scaleType ) ; return drawable ;
public class VersionUtility { /** * Convert a string into a VersionRange , reusing common VersionRange * objects if we can . * @ param str String to convert to a VersionRange * @ return VersionRange */ public static final VersionRange stringToVersionRange ( String str ) { } }
if ( str == null || str . isEmpty ( ) || "0" . equals ( str ) ) return EMPTY_RANGE ; if ( "[1,1.0.100)" . equals ( str ) || "[1.0,1.0.100)" . equals ( str ) || "[1.0.0,1.0.100)" . equals ( str ) ) return INITIAL_RANGE ; return new VersionRange ( str ) ;
public class AssetsApi { /** * Get corporation asset locations ( asynchronously ) Return locations for a * set of item ids , which you can get from corporation assets endpoint . * Coordinates for items in hangars or stations are set to ( 0,0,0 ) - - - * Requires one of the following EVE corporation role ( s ) : D...
com . squareup . okhttp . Call call = postCorporationsCorporationIdAssetsLocationsValidateBeforeCall ( corporationId , requestBody , datasource , token , callback ) ; Type localVarReturnType = new TypeToken < List < CorporationAssetsLocationsResponse > > ( ) { } . getType ( ) ; apiClient . executeAsync ( call , localVa...
public class HelpModule { /** * Adds locale information to a help module id . * @ param id Help module id . * @ param locale Locale ( may be null ) . * @ return The id with locale information appended . */ public static String getLocalizedId ( String id , Locale locale ) { } }
String locstr = locale == null ? "" : ( "_" + locale . toString ( ) ) ; return id + locstr ;
public class FileUtils { /** * Returns a { @ link List } consisting of the lines of the provided { @ link CharSource } in the * order given . */ public static ImmutableList < String > loadStringList ( final CharSource source ) throws IOException { } }
return FluentIterable . from ( source . readLines ( ) ) . filter ( not ( IsCommentLine . INSTANCE ) ) . toList ( ) ;
public class Error { /** * Thrown when the xml configuration doesn ' t contains the classes configuration . * @ param destination destination class name * @ param source source class name * @ param xml xml path */ public static void configNotPresent ( Class < ? > destination , Class < ? > source , XML xml ) { } }
throw new MappingNotFoundException ( MSG . INSTANCE . message ( Constants . mappingNotFoundException2path , destination . getSimpleName ( ) , source . getSimpleName ( ) , xml . getXmlPath ( ) ) ) ;
public class PersistentExecutorImpl { /** * { @ inheritDoc } */ @ Override public < T > TimerStatus < T > getTimerStatus ( long taskId ) throws Exception { } }
TransactionController tranController = new TransactionController ( ) ; TaskRecord taskRecord = null ; try { tranController . preInvoke ( ) ; taskRecord = taskStore . findById ( taskId , null , true ) ; } catch ( Throwable x ) { tranController . setFailure ( x ) ; } finally { Exception x = tranController . postInvoke ( ...
public class Continuation { /** * Do not use - - for internal use only . */ public void successExecutionCycle ( ) { } }
// FOR A PRIMER ON WHAT WE ' RE DOING HERE , SEE LARGE BLOCK OF COMMENT AT BEGINNING OF CLASS if ( nextUnloadPointer != null ) { nextUnloadPointer . setNext ( firstCutpointPointer ) ; } else { firstPointer = firstCutpointPointer ; } nextLoadPointer = firstPointer ; // reset next load pointer so we load from the beginni...
public class NormalisedOntology { /** * Normalises and loads a set of axioms . * @ param inclusions */ public void loadAxioms ( final Set < ? extends Axiom > inclusions ) { } }
long start = System . currentTimeMillis ( ) ; if ( log . isInfoEnabled ( ) ) log . info ( "Loading " + inclusions . size ( ) + " axioms" ) ; Set < Inclusion > normInclusions = normalise ( inclusions ) ; if ( log . isInfoEnabled ( ) ) log . info ( "Processing " + normInclusions . size ( ) + " normalised axioms" ) ; Stat...
public class ApacheHttpRequestFactory { /** * Update the provided request configuration builder to specify the proxy authentication schemes that should be used when * authenticating against the HTTP proxy . * @ see ClientConfiguration # setProxyAuthenticationMethods ( List ) */ private void addProxyConfig ( Request...
if ( settings . isProxyEnabled ( ) && settings . isAuthenticatedProxy ( ) && settings . getProxyAuthenticationMethods ( ) != null ) { List < String > apacheAuthenticationSchemes = new ArrayList < String > ( ) ; for ( ProxyAuthenticationMethod authenticationMethod : settings . getProxyAuthenticationMethods ( ) ) { apach...
public class StringUtils { /** * 进行分割 , 不支持正则式 . * @ param source * @ param separator * @ param removeEmpty * @ return */ public static ArrayList < String > split ( String source , String separator , boolean removeEmpty ) { } }
if ( source == null || source . isEmpty ( ) ) return null ; ArrayList < String > values = new ArrayList < String > ( ) ; if ( separator == null || separator . isEmpty ( ) ) { values . add ( source ) ; return values ; } String tmpStr = new String ( source ) ; int idx = 0 ; String tt ; while ( true ) { int tmp = tmpStr ....
public class AbstractLifecycleProvider { /** * Add a lifecycle Action to this provider . The action will called back when the lifecycle stage is * hit and contain an object that was created by the provider . */ @ Override public void addAction ( final LifecycleStage stage , final LifecycleAction < T > action ) { } }
stageEvents . add ( new StageEvent ( stage , action ) ) ;
public class XcodeProjectWriter { /** * Add file reference of product to map of objects . * @ param objects * object map . * @ param linkTarget * build description for executable or shared library . * @ return file reference to generated executable or shared library . */ private PBXObjectRef addProduct ( fina...
// create file reference for executable file // forget Ant ' s location , just place in XCode ' s default location final PBXObjectRef executable = createPBXFileReference ( "BUILD_PRODUCTS_DIR" , linkTarget . getOutput ( ) . getParent ( ) , linkTarget . getOutput ( ) ) ; final Map executableProperties = executable . get...
public class ListTagsResult { /** * A list of resource tags . * @ return A list of resource tags . */ public java . util . List < ResourceTag > getResourceTagList ( ) { } }
if ( resourceTagList == null ) { resourceTagList = new com . amazonaws . internal . SdkInternalList < ResourceTag > ( ) ; } return resourceTagList ;
public class CoinbaseAccountServiceRaw { /** * Authenticated resource which returns order details for a specific order id or merchant custom . * @ param orderIdOrCustom * @ return * @ throws IOException * @ see < a * href = " https : / / coinbase . com / api / doc / 1.0 / orders / show . html " > coinbase . c...
final CoinbaseOrder order = coinbase . getOrder ( orderIdOrCustom , exchange . getExchangeSpecification ( ) . getApiKey ( ) , signatureCreator , exchange . getNonceFactory ( ) ) ; return handleResponse ( order ) ;
public class ListOrderItemsByNextTokenResult { /** * Read members from a MwsReader . * @ param r * The reader to read from . */ @ Override public void readFragmentFrom ( MwsReader r ) { } }
nextToken = r . read ( "NextToken" , String . class ) ; amazonOrderId = r . read ( "AmazonOrderId" , String . class ) ; orderItems = r . readList ( "OrderItems" , "OrderItem" , OrderItem . class ) ;
public class EventRepository { /** * Retrive all { @ link Event } s from the DB * @ return { @ link Collection } of { @ link Event } s from the DB */ @ Transactional ( readOnly = true ) public Collection < Event > find ( SearchCriteria searchCriteria ) { } }
// if user exists , compare on [ username ] // if detection point exists , compare on [ category , label , threshold count , threshold interval ] // if detection system ids exist , do an " in " // if earliest exists , compare on [ event date > earliest ] CriteriaBuilder criteriaBuilder = em . getCriteriaBuilder ( ) ; C...
public class StepFunctionsActionMarshaller { /** * Marshall the given parameter object . */ public void marshall ( StepFunctionsAction stepFunctionsAction , ProtocolMarshaller protocolMarshaller ) { } }
if ( stepFunctionsAction == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( stepFunctionsAction . getExecutionNamePrefix ( ) , EXECUTIONNAMEPREFIX_BINDING ) ; protocolMarshaller . marshall ( stepFunctionsAction . getStateMachineName ( ) , ST...
public class ApiOvhMe { /** * Change xdsl settings linked to the nichandle * REST : POST / me / xdsl / setting * @ param resellerModemBasicConfig [ required ] Let the modem with vendor configuration . It prevent to apply the config managed by ovh manager * @ param resellerFastModemShipping [ required ] Send the m...
String qPath = "/me/xdsl/setting" ; StringBuilder sb = path ( qPath ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "resellerFastModemShipping" , resellerFastModemShipping ) ; addBody ( o , "resellerModemBasicConfig" , resellerModemBasicConfig ) ; exec ( qPath , "POST" , sb . toS...
public class CmsContainerpageController { /** * Initializes the controller . < p > * @ param handler the container - page handler * @ param dndHandler the drag and drop handler * @ param contentEditorHandler the XML content editor handler * @ param containerpageUtil the container - page utility */ public void i...
Window . addResizeHandler ( new ResizeHandler ( ) { public void onResize ( ResizeEvent event ) { CmsContainerpageController . this . onResize ( ) ; } } ) ; m_containerpageUtil = containerpageUtil ; m_handler = handler ; m_contentEditorHandler = contentEditorHandler ; m_dndHandler = dndHandler ; m_cntDndController = m_d...
public class TableRenderer { /** * Table Row Rendering */ public final void openHeaderRow ( TrTag . State state , AbstractRenderAppender appender ) { } }
if ( state == null ) state = TR_STATE ; appender . append ( LINE_BREAK ) ; _trRenderer . doStartTag ( appender , state ) ;
public class Aromaticity { /** * Find the bonds of a { @ code molecule } which this model determined were * aromatic . * < blockquote > < pre > { @ code * Aromaticity aromaticity = new Aromaticity ( ElectronDonation . cdk ( ) , * Cycles . all ( ) ) ; * IAtomContainer container = . . . ; * try { * Set < IB...
// build graph data - structures for fast cycle perception final EdgeToBondMap bondMap = EdgeToBondMap . withSpaceFor ( molecule ) ; final int [ ] [ ] graph = GraphUtil . toAdjList ( molecule , bondMap ) ; // initial ring / cycle search and get the contribution from each atom final RingSearch ringSearch = new RingSearc...
public class MapperTemplate { /** * 是否支持该通用方法 * @ param msId * @ return */ public boolean supportMethod ( String msId ) { } }
Class < ? > mapperClass = getMapperClass ( msId ) ; if ( mapperClass != null && this . mapperClass . isAssignableFrom ( mapperClass ) ) { String methodName = getMethodName ( msId ) ; return methodMap . get ( methodName ) != null ; } return false ;
public class Config { /** * Set the default base template path and devMode by JFinal before configEngine ( engine ) invoked * They can be reconfigured in configEngine ( engine ) */ private static void initEngine ( ) { } }
engine . setDevMode ( constants . getDevMode ( ) ) ; // 避免在某些环境下 webRootPath 值为 blank 时无法启动项目 if ( StrKit . notBlank ( PathKit . getWebRootPath ( ) ) ) { engine . setBaseTemplatePath ( PathKit . getWebRootPath ( ) ) ; }
public class Linkage { /** * Initialize the linkage with the lower triangular proximity matrix . */ void init ( double [ ] [ ] proximity ) { } }
size = proximity . length ; this . proximity = new float [ size * ( size + 1 ) / 2 ] ; // row wise /* for ( int i = 0 , k = 0 ; i < size ; i + + ) { double [ ] pi = proximity [ i ] ; for ( int j = 0 ; j < = i ; j + + , k + + ) { this . proximity [ k ] = ( float ) pi [ j ] ; */ // column wise for ( int j = 0 , k =...
public class LicenseClient { /** * Retrieves the list of licenses available in the specified project . This method does not get any * licenses that belong to other projects , including licenses attached to publicly - available * images , like Debian 9 . If you want to get a list of publicly - available licenses , u...
ListLicensesHttpRequest request = ListLicensesHttpRequest . newBuilder ( ) . setProject ( project == null ? null : project . toString ( ) ) . build ( ) ; return listLicenses ( request ) ;
public class ESigService { /** * Registers a new esig type . If a type with the same mnemonic id is already registered , an * exception is thrown . * @ param eSigType The new type to register . */ @ Override public void register ( IESigType eSigType ) throws Exception { } }
if ( typeRegistry . get ( eSigType . getESigTypeId ( ) ) != null ) { throw new Exception ( "Duplicate esig type identifier: " + eSigType . getESigTypeId ( ) ) ; } typeRegistry . put ( eSigType . getESigTypeId ( ) , eSigType ) ; init ( eSigType ) ;
public class SeverityMarshaller { /** * Marshall the given parameter object . */ public void marshall ( Severity severity , ProtocolMarshaller protocolMarshaller ) { } }
if ( severity == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( severity . getProduct ( ) , PRODUCT_BINDING ) ; protocolMarshaller . marshall ( severity . getNormalized ( ) , NORMALIZED_BINDING ) ; } catch ( Exception e ) { throw new SdkCli...
public class DateTimeFormatterBuilder { /** * Gets the formatting pattern for date and time styles for a locale and chronology . * The locale and chronology are used to lookup the locale specific format * for the requested dateStyle and / or timeStyle . * @ param dateStyle the FormatStyle for the date * @ param...
Jdk8Methods . requireNonNull ( locale , "locale" ) ; Jdk8Methods . requireNonNull ( chrono , "chrono" ) ; if ( dateStyle == null && timeStyle == null ) { throw new IllegalArgumentException ( "Either dateStyle or timeStyle must be non-null" ) ; } DateFormat dateFormat ; if ( dateStyle != null ) { if ( timeStyle != null ...
public class ApiClient { /** * Helper method to set API key prefix for the first API key authentication . * @ param apiKeyPrefix API key prefix */ public void setApiKeyPrefix ( String apiKeyPrefix ) { } }
for ( Authentication auth : authentications . values ( ) ) { if ( auth instanceof ApiKeyAuth ) { ( ( ApiKeyAuth ) auth ) . setApiKeyPrefix ( apiKeyPrefix ) ; return ; } } throw new RuntimeException ( "No API key authentication configured!" ) ;
public class AbstractPluginBeanValidation { /** * XS : Element */ private void _processElement ( @ Nonnull final CElementPropertyInfo aElement , @ Nonnull final ClassOutline aClassOutline ) { } }
final ParticleImpl aParticle = ( ParticleImpl ) aElement . getSchemaComponent ( ) ; final BigInteger aMinOccurs = aParticle . getMinOccurs ( ) ; final BigInteger aMaxOccurs = aParticle . getMaxOccurs ( ) ; final JFieldVar aField = aClassOutline . implClass . fields ( ) . get ( aElement . getName ( false ) ) ; // workar...
public class ControlBar { /** * Add new control at the end of control bar with specified touch listener , control label and resource . * Size of control bar is updated based on new number of controls . * @ param name name of the control to remove * @ param resId the control face * @ param label the control labe...
return addControl ( name , resId , label , listener , - 1 ) ;
public class GreenPepperServerServiceImpl { /** * { @ inheritDoc } */ public void removeRequirement ( Requirement requirement ) throws GreenPepperServerException { } }
try { sessionService . startSession ( ) ; sessionService . beginTransaction ( ) ; documentDao . removeRequirement ( requirement ) ; sessionService . commitTransaction ( ) ; log . debug ( "Removed Requirement: " + requirement . getName ( ) ) ; } catch ( Exception ex ) { sessionService . rollbackTransaction ( ) ; throw h...
public class VaultsInner { /** * Creates or updates a Recovery Services vault . * @ param resourceGroupName The name of the resource group where the recovery services vault is present . * @ param vaultName The name of the recovery services vault . * @ param vault Recovery Services Vault to be created . * @ para...
return ServiceFuture . fromResponse ( createOrUpdateWithServiceResponseAsync ( resourceGroupName , vaultName , vault ) , serviceCallback ) ;
public class AbstractVFState { /** * { @ inheritDoc } */ @ Override final boolean add ( int n , int m ) { } }
if ( ! feasible ( n , m ) ) return false ; m1 [ n ] = m ; m2 [ m ] = n ; size = size + 1 ; for ( int w : g1 [ n ] ) if ( t1 [ w ] == 0 ) t1 [ w ] = size ; for ( int w : g2 [ m ] ) if ( t2 [ w ] == 0 ) t2 [ w ] = size ; return true ;
public class DocBookBuilder { /** * Checks if the conditional pass should be performed . * @ param buildData Information and data structures for the build . * @ param specTopic The spec topic the conditions should be processed for , * @ param doc The DOM Document to process the conditions against . */ protected v...
final String condition = specTopic . getConditionStatement ( true ) ; DocBookUtilities . processConditions ( condition , doc , BuilderConstants . DEFAULT_CONDITION ) ;
public class PaxChronology { @ Override public ValueRange range ( ChronoField field ) { } }
switch ( field ) { case ALIGNED_WEEK_OF_MONTH : return ALIGNED_WEEK_OF_MONTH_RANGE ; case ALIGNED_WEEK_OF_YEAR : return ALIGNED_WEEK_OF_YEAR_RANGE ; case DAY_OF_MONTH : return DAY_OF_MONTH_RANGE ; case DAY_OF_YEAR : return DAY_OF_YEAR_RANGE ; case MONTH_OF_YEAR : return MONTH_OF_YEAR_RANGE ; default : return field . ra...
public class Collections3 { /** * 提取集合中的对象的一个属性 ( 通过 Getter 函数 ) , 组合成由分割符分隔的字符串 。 * @ param collection * 来源集合 * @ param propertyName * 要提取的属性名 * @ param separator * 分隔符 * @ return 组合字符串 */ public static String extractToString ( final Collection collection , final String propertyName , final String separa...
List list = extractToList ( collection , propertyName ) ; return StringUtils . join ( list , separator ) ;
public class ShutdownHook { /** * Write script file to clean up extraction directory . * The reason a script is required , rather than a Java * file delete method or a simple Runtime . exec of an OS * delete command is because neither work reliably . Even * after the ' server run process ' has ended , Java meth...
String fileSuffix = ".sh" ; if ( platformType == SelfExtractUtils . PlatformType_WINDOWS ) { fileSuffix = ".bat" ; } File file = File . createTempFile ( "wlpDelete" , fileSuffix ) ; if ( ! file . exists ( ) ) { boolean success = file . createNewFile ( ) ; if ( ! success ) { throw new IOException ( "Failed to create fil...
public class TrustRegionUpdateDogleg_F64 { /** * Computes the Cauchy step , This is only called if the Cauchy point lies after or on the trust region * @ param regionRadius ( Input ) Trust region size * @ param step ( Output ) The step */ protected void cauchyStep ( double regionRadius , DMatrixRMaj step ) { } }
CommonOps_DDRM . scale ( - regionRadius , direction , step ) ; stepLength = regionRadius ; // it touches the trust region predictedReduction = regionRadius * ( owner . gradientNorm - 0.5 * regionRadius * gBg ) ;
public class IntMap { /** * Associates values of another primitive map * @ param m */ public void putAll ( IntMap < K > m ) { } }
m . entrySet ( ) . stream ( ) . forEach ( ( e ) -> { put ( e . getKey ( ) , e . getValue ( ) . value ) ;
public class JSONObject { /** * Write a Key : value entry to a stream */ public static void writeJSONKV ( String key , Object value , Appendable out , JSONStyle compression ) throws IOException { } }
if ( key == null ) out . append ( "null" ) ; else if ( ! compression . mustProtectKey ( key ) ) out . append ( key ) ; else { out . append ( '"' ) ; JSONValue . escape ( key , out , compression ) ; out . append ( '"' ) ; } out . append ( ':' ) ; if ( value instanceof String ) compression . writeString ( out , ( String ...