signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class TimestampDataPublisher { /** * Update destination path to put db and table name in format " dbname . tablename " using { @ link # getDbTableName ( String ) }
* and include timestamp
* Input dst format : { finaldir } / { schemaName }
* Output dst format : { finaldir } / { dbname . tablename } / { curr... | String outputDir = dst . getParent ( ) . toString ( ) ; String schemaName = dst . getName ( ) ; Path newDst = new Path ( new Path ( outputDir , getDbTableName ( schemaName ) ) , timestamp ) ; if ( ! this . publisherFileSystemByBranches . get ( branchId ) . exists ( newDst ) ) { WriterUtils . mkdirsWithRecursivePermissi... |
public class RfLocalSessionDataFactory { /** * / * ( non - Javadoc )
* @ see org . jdiameter . common . api . app . IAppSessionDataFactory # getAppSessionData ( java . lang . Class , java . lang . String ) */
@ Override public IRfSessionData getAppSessionData ( Class < ? extends AppSession > clazz , String sessionId ... | if ( clazz . equals ( ClientRfSession . class ) ) { ClientRfSessionDataLocalImpl data = new ClientRfSessionDataLocalImpl ( ) ; data . setSessionId ( sessionId ) ; return data ; } else if ( clazz . equals ( ServerRfSession . class ) ) { ServerRfSessionDataLocalImpl data = new ServerRfSessionDataLocalImpl ( ) ; data . se... |
public class DatabaseInformationFull { /** * Retrieves the system table corresponding to the specified index . < p >
* @ param tableIndex index identifying the system table to generate
* @ return the system table corresponding to the specified index */
protected Table generateTable ( int tableIndex ) { } } | switch ( tableIndex ) { case SYSTEM_UDTS : return SYSTEM_UDTS ( ) ; case SYSTEM_VERSIONCOLUMNS : return SYSTEM_VERSIONCOLUMNS ( ) ; // HSQLDB - specific
case SYSTEM_CACHEINFO : return SYSTEM_CACHEINFO ( ) ; case SYSTEM_SESSIONINFO : return SYSTEM_SESSIONINFO ( ) ; case SYSTEM_PROPERTIES : return SYSTEM_PROPERTIES ( ) ;... |
public class EntryStream { /** * Returns a stream consisting of the elements of this stream which keys are
* instances of given class .
* This is an < a href = " package - summary . html # StreamOps " > intermediate < / a >
* operation .
* @ param < KK > a type of keys to select .
* @ param clazz a class to f... | "unchecked" } ) public < KK > EntryStream < KK , V > selectKeys ( Class < KK > clazz ) { return ( EntryStream < KK , V > ) filter ( e -> clazz . isInstance ( e . getKey ( ) ) ) ; |
public class ContextEntry { /** * The value ( or values , if the condition context key supports multiple values ) to provide to the simulation when
* the key is referenced by a < code > Condition < / code > element in an input policy .
* @ return The value ( or values , if the condition context key supports multipl... | if ( contextKeyValues == null ) { contextKeyValues = new com . amazonaws . internal . SdkInternalList < String > ( ) ; } return contextKeyValues ; |
public class KamSummarizer { /** * returns number unique gene reference
* @ param edges
* @ return */
private int getUniqueGeneReference ( Collection < KamNode > nodes ) { } } | // count all protienAbundance reference
Set < String > uniqueLabels = new HashSet < String > ( ) ; for ( KamNode node : nodes ) { if ( node . getFunctionType ( ) == FunctionEnum . PROTEIN_ABUNDANCE && StringUtils . countMatches ( node . getLabel ( ) , "(" ) == 1 && StringUtils . countMatches ( node . getLabel ( ) , ")"... |
public class MetaMasterSync { /** * Heartbeats to the leader master node . */
@ Override public void heartbeat ( ) { } } | MetaCommand command = null ; try { if ( mMasterId . get ( ) == UNINITIALIZED_MASTER_ID ) { setIdAndRegister ( ) ; } command = mMasterClient . heartbeat ( mMasterId . get ( ) ) ; handleCommand ( command ) ; } catch ( IOException e ) { // An error occurred , log and ignore it or error if heartbeat timeout is reached
if (... |
public class Alternatives { /** * Returns the first object that is not null
* @ param objects The objects to process
* @ return The first value that is not null . null when there is no not - null value */
public static < T > T firstNotNull ( final T ... objects ) { } } | for ( final T object : objects ) { if ( object != null ) { return object ; } } return null ; |
public class FavoritesInner { /** * Gets a list of favorites defined within an Application Insights component .
* @ param resourceGroupName The name of the resource group .
* @ param resourceName The name of the Application Insights component resource .
* @ throws IllegalArgumentException thrown if parameters fai... | return listWithServiceResponseAsync ( resourceGroupName , resourceName ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class BitemporalCondition { /** * { @ inheritDoc } */
@ Override public MoreObjects . ToStringHelper toStringHelper ( ) { } } | return toStringHelper ( this ) . add ( "vtFrom" , vtFrom ) . add ( "vtTo" , vtTo ) . add ( "ttFrom" , ttFrom ) . add ( "ttTo" , ttTo ) ; |
public class CCBAPIClient { /** * Build the URI for a particular service call .
* @ param service The CCB API service to call ( i . e . the srv query parameter ) .
* @ param parameters A map of query parameters to include on the URI .
* @ return The apiBaseUri with the additional query parameters appended . */
pr... | try { StringBuilder queryStringBuilder = new StringBuilder ( ) ; if ( apiBaseUri . getQuery ( ) != null ) { queryStringBuilder . append ( apiBaseUri . getQuery ( ) ) . append ( "&" ) ; } queryStringBuilder . append ( "srv=" ) . append ( service ) ; for ( Map . Entry < String , String > entry : parameters . entrySet ( )... |
public class LMCLUS { /** * Deviation from a manifold described by beta .
* @ param delta Delta from origin vector
* @ param beta Manifold
* @ return Deviation score */
private double deviation ( double [ ] delta , double [ ] [ ] beta ) { } } | final double a = squareSum ( delta ) ; final double b = squareSum ( transposeTimes ( beta , delta ) ) ; return ( a > b ) ? FastMath . sqrt ( a - b ) : 0. ; |
public class RingBuffer { /** * Shutdown this ring buffer by preventing any further entries , but allowing all existing entries to be processed by all
* consumers . */
public void shutdown ( ) { } } | // Prevent new entries from being added . . .
this . addEntries . set ( false ) ; // Mark the cursor as being finished ; this will stop all consumers from waiting for a batch . . .
this . cursor . complete ( ) ; // Each of the consumer threads will complete the batch they ' re working on , but will then terminate . . .... |
public class FileUtils { /** * Deletes the path if it is empty . A path can only be empty if it is a directory which does
* not contain any other directories / files .
* @ param fileSystem to use
* @ param path to be deleted if empty
* @ return true if the path could be deleted ; otherwise false
* @ throws IO... | final FileStatus [ ] fileStatuses ; try { fileStatuses = fileSystem . listStatus ( path ) ; } catch ( FileNotFoundException e ) { // path already deleted
return true ; } catch ( Exception e ) { // could not access directory , cannot delete
return false ; } // if there are no more files or if we couldn ' t list the file... |
public class GosuParser { public ArrayList < ISymbol > parseParameterDeclarationList ( IParsedElement element , boolean bStatic , List < IType > inferredArgumentTypes ) { } } | return parseParameterDeclarationList ( element , bStatic , inferredArgumentTypes , false , false , false , false ) ; |
public class GoogleCloudStorageImpl { /** * Helper for converting from a Map & lt ; String , byte [ ] & gt ; metadata map that may be in a
* StorageObject into a Map & lt ; String , String & gt ; suitable for placement inside a
* GoogleCloudStorageItemInfo . */
@ VisibleForTesting static Map < String , String > enc... | return Maps . transformValues ( metadata , ENCODE_METADATA_VALUES ) ; |
public class JsonEscape { /** * Perform a JSON < strong > unescape < / strong > operation on a < tt > String < / tt > input , writing
* results to a < tt > Writer < / tt > .
* No additional configuration arguments are required . Unescape operations
* will always perform < em > complete < / em > JSON unescape of S... | if ( writer == null ) { throw new IllegalArgumentException ( "Argument 'writer' cannot be null" ) ; } if ( text == null ) { return ; } if ( text . indexOf ( '\\' ) < 0 ) { // Fail fast , avoid more complex ( and less JIT - table ) method to execute if not needed
writer . write ( text ) ; return ; } JsonEscapeUtil . une... |
public class MapLayer { /** * Replies if the specified point ( < var > x < / var > , < var > y < / var > )
* was inside the figure of this MapElement .
* < p > If this MapElement has no associated figure , this method
* always returns < code > false < / code > .
* @ param point is a geo - referenced coordinate ... | final Rectangle2d bounds = getBoundingBox ( ) ; if ( bounds == null ) { return false ; } double dlt = delta ; if ( dlt < 0 ) { dlt = - dlt ; } if ( dlt == 0 ) { return bounds . contains ( point ) ; } return Circle2afp . intersectsCircleRectangle ( point . getX ( ) , point . getY ( ) , dlt , bounds . getMinX ( ) , bound... |
public class Boolean2IntFieldConversion { /** * @ see FieldConversion # sqlToJava ( Object ) */
public Object sqlToJava ( Object source ) { } } | if ( source instanceof Integer ) { if ( source . equals ( I_TRUE ) ) { return Boolean . TRUE ; } else { return Boolean . FALSE ; } } else { return source ; } |
public class MainLogRepositoryBrowserImpl { /** * ( non - Javadoc )
* @ see com . ibm . ws . logging . hpel . LogInstanceBrowser # findNext ( com . ibm . ws . logging . hpel . impl . RepositoryPointerImpl , long ) */
@ Override public LogRepositoryBrowser findNext ( RepositoryPointerImpl location , long timelimit ) {... | String [ ] instanceIds = location . getInstanceIds ( ) ; if ( instanceIds . length == 0 ) { logger . logp ( Level . SEVERE , className , "findNext" , "HPEL_NotRepositoryLocation" ) ; return null ; } return findNext ( parseTimeStamp ( instanceIds [ 0 ] ) , timelimit ) ; |
public class JKTypeMapping { /** * Gets the type .
* @ param typeNumber the type number
* @ return the type */
public static JKType getType ( int typeNumber ) { } } | JKType sqlDataType = codeToJKTypeMapping . get ( typeNumber ) ; if ( sqlDataType == null ) { logger . debug ( "No mapping found for datatype , default mapping will return " + typeNumber ) ; return DEFAULT_MAPPING ; } return sqlDataType ; |
public class AuthorizationRequestUrl { /** * Sets the < a href = " http : / / tools . ietf . org / html / rfc6749 # section - 3.1.1 " > response type < / a > , which
* must be { @ code " code " } for requesting an authorization code , { @ code " token " } for requesting an
* access token ( implicit grant ) , or a l... | this . responseTypes = Joiner . on ( ' ' ) . join ( responseTypes ) ; return this ; |
public class syslog_snmp { /** * < pre >
* Report for snmp syslog message received by this collector . .
* < / pre > */
public static syslog_snmp [ ] get ( nitro_service client ) throws Exception { } } | syslog_snmp resource = new syslog_snmp ( ) ; resource . validate ( "get" ) ; return ( syslog_snmp [ ] ) resource . get_resources ( client ) ; |
public class Mp4SettingsMarshaller { /** * Marshall the given parameter object . */
public void marshall ( Mp4Settings mp4Settings , ProtocolMarshaller protocolMarshaller ) { } } | if ( mp4Settings == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( mp4Settings . getCslgAtom ( ) , CSLGATOM_BINDING ) ; protocolMarshaller . marshall ( mp4Settings . getFreeSpaceBox ( ) , FREESPACEBOX_BINDING ) ; protocolMarshaller . marsha... |
public class StringUtils { /** * Case insensitive removal of a substring if it is at the begining of a
* source string , otherwise returns the source string .
* A < code > null < / code > source string will return < code > null < / code > . An empty
* ( " " ) source string will return the empty string . A < code ... | if ( isEmpty ( str ) || isEmpty ( remove ) ) { return str ; } if ( startsWithIgnoreCase ( str , remove ) ) { return str . substring ( remove . length ( ) ) ; } return str ; |
public class HeaderValidator { /** * { @ inheritDoc } */
@ Override public void validate ( ValidationHelper helper , Context context , String key , Header t ) { } } | if ( t != null ) { String reference = t . getRef ( ) ; if ( reference != null && ! reference . isEmpty ( ) ) { ValidatorUtils . referenceValidatorHelper ( reference , t , helper , context , key ) ; return ; } // The examples object is mutually exclusive of the example object .
if ( ( t . getExample ( ) != null ) && ( t... |
public class LocalityPreservingProjection { /** * Executes the LPP script , thereby computing the locality preserving
* projection of the data matrix to the specified number of dimension , using
* the affinity matrix to determine locality . The result is written to the
* output file .
* @ param dataMatrixFile a... | // Decide whether to use Matlab or Octave
if ( isMatlabAvailable ( ) ) invokeMatlab ( dataMatrixFile , affMatrixFile , dims , outputMatrix ) ; // Ensure that if Matlab isn ' t present that we can at least use Octave
else if ( isOctaveAvailable ( ) ) invokeOctave ( dataMatrixFile , affMatrixFile , dims , outputMatrix ) ... |
public class PlaylistSubscriberStream { /** * { @ inheritDoc } */
public void receiveAudio ( boolean receive ) { } } | if ( engine != null ) { // check if engine currently receives audio , returns previous value
boolean receiveAudio = engine . receiveAudio ( receive ) ; if ( receiveAudio && ! receive ) { // send a blank audio packet to reset the player
engine . sendBlankAudio ( true ) ; } else if ( ! receiveAudio && receive ) { // do a... |
public class JsGeometryIndexStateService { /** * Get the current selection . Do not make changes on this list !
* @ return The current selection ( vertices / edges / sub - geometries ) . */
GeometryIndex [ ] getSelection ( ) { } } | List < GeometryIndex > indices = delegate . getSelection ( ) ; return indices . toArray ( new GeometryIndex [ indices . size ( ) ] ) ; |
public class Dispatcher { /** * Sets the current - thread dispatched page . */
public static void setDispatchedPage ( ServletRequest request , String dispatchedPage ) { } } | if ( logger . isLoggable ( Level . FINE ) ) logger . log ( Level . FINE , "request={0}, dispatchedPage={1}" , new Object [ ] { request , dispatchedPage } ) ; request . setAttribute ( DISPATCHED_PAGE_REQUEST_ATTRIBUTE , dispatchedPage ) ; |
public class Http2ClientStreamTransportState { /** * Called by subclasses whenever a data frame is received from the transport .
* @ param frame the received data frame
* @ param endOfStream { @ code true } if there will be no more data received for this stream */
protected void transportDataReceived ( ReadableBuff... | if ( transportError != null ) { // We ' ve already detected a transport error and now we ' re just accumulating more detail
// for it .
transportError = transportError . augmentDescription ( "DATA-----------------------------\n" + ReadableBuffers . readAsString ( frame , errorCharset ) ) ; frame . close ( ) ; if ( tran... |
public class HealthStatus { /** * Create an instance with the given message , status code , and exception . */
public static HealthStatus create ( int status , String message , Throwable exception ) { } } | return new AutoValue_HealthStatus ( message , status , Optional . ofNullable ( exception ) ) ; |
public class ClientSharedObject { /** * Connect the shared object using the passed connection .
* @ param conn
* Attach SO to given connection */
public void connect ( IConnection conn ) { } } | if ( conn instanceof RTMPConnection ) { if ( ! isConnected ( ) ) { source = conn ; SharedObjectMessage msg = new SharedObjectMessage ( name , 0 , isPersistent ( ) ) ; msg . addEvent ( new SharedObjectEvent ( Type . SERVER_CONNECT , null , null ) ) ; Channel c = ( ( RTMPConnection ) conn ) . getChannel ( 3 ) ; c . write... |
public class Generic2AggPooledTopNScannerPrototype { /** * Any changes to this method should be coordinated with { @ link TopNUtils } , { @ link
* PooledTopNAlgorithm # computeSpecializedScanAndAggregateImplementations } and downstream methods .
* It should be checked with a tool like https : / / github . com / Ado... | int totalAggregatorsSize = aggregator1Size + aggregator2Size ; long processedRows = 0 ; int positionToAllocate = 0 ; while ( ! cursor . isDoneOrInterrupted ( ) ) { final IndexedInts dimValues = dimensionSelector . getRow ( ) ; final int dimSize = dimValues . size ( ) ; for ( int i = 0 ; i < dimSize ; i ++ ) { int dimIn... |
public class MarkovGenerator { /** * Returns a sentence guaranteed to not be any loner than the specified
* number of characters . Will generate a complete sentence - if the
* generator is not able to generate a complete sentence under the limit
* after a number of attempts it will throw an { @ link IllegalArgume... | for ( int i = 0 ; i < 1000 ; i ++ ) { String sentence = nextSentence ( ) ; if ( sentence . length ( ) <= maxChars ) { return sentence ; } } throw new IllegalArgumentException ( "Unable to generate sentence smaller than " + maxChars + "characters. Try setting it higher." ) ; |
public class PortablePositionNavigator { /** * token with [ any ] quantifier */
private static PortablePosition navigateToPathTokenWithAnyQuantifier ( PortableNavigatorContext ctx , PortablePathCursor path , NavigationFrame frame ) throws IOException { } } | // check if the underlying field is of array type
validateArrayType ( ctx . getCurrentClassDefinition ( ) , ctx . getCurrentFieldDefinition ( ) , path . path ( ) ) ; if ( ctx . isCurrentFieldOfType ( FieldType . PORTABLE_ARRAY ) ) { // the result will be returned if it was the last token of the path , otherwise it has ... |
public class DoubleSummary { /** * Return a new value object of the statistical summary , currently
* represented by the { @ code statistics } object .
* @ param statistics the creating ( mutable ) statistics class
* @ return the statistical moments */
public static DoubleSummary of ( final DoubleSummaryStatistic... | return new DoubleSummary ( statistics . getCount ( ) , statistics . getMin ( ) , statistics . getMax ( ) , statistics . getSum ( ) , statistics . getAverage ( ) ) ; |
public class RegistryService { /** * Defines the configuration of the service thanks to the provided plugin if and
* only if the plugin is of type { @ link RegistryInitializationEntryPlugin }
* @ param plugin the plugin from which we extract the configuration that is expected
* to be of type { @ link RegistryInit... | if ( RegistryInitializationEntryPlugin . class . isAssignableFrom ( plugin . getClass ( ) ) ) { RegistryInitializationEntryPlugin registryPlugin = ( RegistryInitializationEntryPlugin ) plugin ; appConfigurations = registryPlugin . getAppConfiguration ( ) ; entryLocation = registryPlugin . getLocation ( ) ; if ( entryLo... |
public class RotationAxis { /** * Find a segment of the axis that covers the specified set of atoms .
* Projects the input atoms onto the rotation axis and returns the bounding
* points .
* In the case of a pure translational axis , the axis location is undefined
* so the center of mass will be used instead .
... | // Project each Atom onto the rotation axis to determine limits
double min , max ; min = max = Calc . scalarProduct ( rotationAxis , atoms [ 0 ] ) ; for ( int i = 1 ; i < atoms . length ; i ++ ) { double prod = Calc . scalarProduct ( rotationAxis , atoms [ i ] ) ; if ( prod < min ) min = prod ; if ( prod > max ) max = ... |
public class VoltDecimalHelper { /** * Converts BigInteger ' s byte representation containing a scaled magnitude to a fixed size 16 byte array
* and set the sign in the most significant byte ' s most significant bit .
* @ param scaledValue Scaled twos complement representation of the decimal
* @ param isNegative ... | if ( scaledValue . length == 16 ) { return scaledValue ; } byte replacement [ ] = new byte [ 16 ] ; if ( isNegative ) { Arrays . fill ( replacement , ( byte ) - 1 ) ; } int shift = ( 16 - scaledValue . length ) ; for ( int ii = 0 ; ii < scaledValue . length ; ++ ii ) { replacement [ ii + shift ] = scaledValue [ ii ] ; ... |
public class CollectHelper { /** * Checks in a doCall back . It also wraps up the group if all the callbacks have checked in . */
void add ( final byte type , final Object value ) { } } | final int w = write . getAndIncrement ( ) ; if ( w < size ) { writeAt ( w , type , value ) ; } // countdown could wrap around , however we check the state of finished in here .
// MUST be called after write to make sure that results and states are synchronized .
final int c = countdown . decrementAndGet ( ) ; if ( c < ... |
public class CborDecoder { /** * Streaming decoding of an input stream . On each decoded DataItem , the
* callback listener is invoked .
* @ param dataItemListener
* the callback listener
* @ throws CborException
* if decoding failed */
public void decode ( DataItemListener dataItemListener ) throws CborExcep... | Objects . requireNonNull ( dataItemListener ) ; DataItem dataItem = decodeNext ( ) ; while ( dataItem != null ) { dataItemListener . onDataItem ( dataItem ) ; dataItem = decodeNext ( ) ; } |
public class JwtAuthenticationService { /** * Returns the token ( as a String ) , if it exists , otherwise returns null .
* @ param headers the HttpHeader to inspect to find the Authorization - Token
* cookie or Authorization Bearer header
* @ return the token if found , otherwise null
* @ since 1.0.0 */
privat... | if ( headers . getCookies ( ) != null ) { for ( Map . Entry < String , Cookie > entry : headers . getCookies ( ) . entrySet ( ) ) { if ( AuthorizationTokenCookie . COOKIE_NAME . equals ( entry . getValue ( ) . getName ( ) ) ) { return entry . getValue ( ) . getValue ( ) ; } } } final List < String > header = headers . ... |
public class DeleteListener { /** * When a batch fails or a callback throws an Exception , run this listener
* code . Multiple listeners can be registered with this method .
* @ param listener the code to run when a failure occurs
* @ return this instance for method chaining
* @ deprecated use { @ link # onFail... | failureListeners . add ( listener ) ; return this ; |
public class XpathUtils { /** * Same as { @ link # asDouble ( String , Node ) } but allows an xpath to be passed
* in explicitly for reuse . */
public static Double asDouble ( String expression , Node node , XPath xpath ) throws XPathExpressionException { } } | String doubleString = evaluateAsString ( expression , node , xpath ) ; return ( isEmptyString ( doubleString ) ) ? null : Double . parseDouble ( doubleString ) ; |
public class GeographyPointValue { /** * Create a GeographyPointValue from a well - known text string .
* @ param param A well - known text string .
* @ return A new instance of GeographyPointValue . */
public static GeographyPointValue fromWKT ( String param ) { } } | if ( param == null ) { throw new IllegalArgumentException ( "Null well known text argument to GeographyPointValue constructor." ) ; } Matcher m = wktPattern . matcher ( param ) ; if ( m . find ( ) ) { // Add 0.0 to avoid - 0.0.
double longitude = toDouble ( m . group ( 1 ) , m . group ( 2 ) ) + 0.0 ; double latitude = ... |
public class TargetStreamSetControl { /** * / * ( non - Javadoc )
* @ see com . ibm . ws . sib . processor . runtime . SIMPControllable # getId ( ) */
public String getId ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getId" ) ; String returnString = streamID . toString ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "getId" , returnString ) ; return returnString ; |
public class SmtpRequests { /** * Creates a { @ code VRFY } request . */
public static SmtpRequest vrfy ( CharSequence user ) { } } | return new DefaultSmtpRequest ( SmtpCommand . VRFY , ObjectUtil . checkNotNull ( user , "user" ) ) ; |
public class ThreadPoolManager { /** * 监控api */
public static int queueSize ( ) { } } | int queueSize = 0 ; for ( ExecutorService pool : EXECUTORS ) { if ( pool instanceof ThreadPoolExecutor ) { queueSize += ( ( ThreadPoolExecutor ) pool ) . getQueue ( ) . size ( ) ; } } for ( ExecutorService pool : EXPLICIT_EXECUTORS ) { if ( pool instanceof ThreadPoolExecutor ) { queueSize += ( ( ThreadPoolExecutor ) po... |
public class SegmentManager { /** * Returns a map of dataSource to the total byte size of segments managed by this segmentManager . This method should
* be used carefully because the returned map might be different from the actual data source states .
* @ return a map of dataSources and their total byte sizes */
pu... | return dataSources . entrySet ( ) . stream ( ) . collect ( Collectors . toMap ( Entry :: getKey , entry -> entry . getValue ( ) . getTotalSegmentSize ( ) ) ) ; |
public class ESHttpUtils { /** * Returns an string from a node ' s content .
* @ 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 String findContentTe... | final Node node = findNode ( rootNode , xPath , expression ) ; if ( node == null ) { return null ; } return node . getTextContent ( ) ; |
public class Settings { /** * Returns boolean flag
* @ param name of flag
* @ return true or false
* @ throws IllegalArgumentException in case setting is not a boolean setting */
public boolean getBool ( String name ) { } } | Object value = super . get ( name ) ; if ( value instanceof Boolean ) { return ( Boolean ) value ; } if ( value instanceof String ) { String txt = ( String ) value ; txt = txt . trim ( ) . toLowerCase ( ) ; if ( "yes" . equals ( txt ) || "y" . equals ( txt ) || "1" . equals ( txt ) || "true" . equals ( txt ) || "t" . e... |
public class TableSliceGroup { /** * Applies the given aggregation to the given column .
* The apply and combine steps of a split - apply - combine . */
public Table aggregate ( String colName1 , AggregateFunction < ? , ? > ... functions ) { } } | ArrayListMultimap < String , AggregateFunction < ? , ? > > columnFunctionMap = ArrayListMultimap . create ( ) ; columnFunctionMap . putAll ( colName1 , Lists . newArrayList ( functions ) ) ; return aggregate ( columnFunctionMap ) ; |
public class StorageObjectSummary { /** * Contructs a StorageObjectSummary object from the S3 equivalent S3ObjectSummary
* @ param objSummary the AWS S3 ObjectSummary object to copy from
* @ return the ObjectSummary object created */
public static StorageObjectSummary createFromS3ObjectSummary ( S3ObjectSummary obj... | return new StorageObjectSummary ( objSummary . getBucketName ( ) , objSummary . getKey ( ) , // S3 ETag is not always MD5 , but since this code path is only
// used in skip duplicate files in PUT command , It ' s not
// critical to guarantee that it ' s MD5
objSummary . getETag ( ) , objSummary . getSize ( ) ) ; |
public class Node { /** * syck _ seq _ assign */
public void seqAssign ( int idx , Object id ) { } } | ( ( Data . Seq ) data ) . items [ idx ] = id ; |
public class CmsSystemConfiguration { /** * Adds a new instance of a resource init handler class . < p >
* @ param clazz the class name of the resource init handler to instantiate and add */
public void addResourceInitHandler ( String clazz ) { } } | Object initClass ; try { initClass = Class . forName ( clazz ) . newInstance ( ) ; } catch ( Throwable t ) { LOG . error ( Messages . get ( ) . getBundle ( ) . key ( Messages . LOG_RESOURCE_INIT_CLASS_INVALID_1 , clazz ) , t ) ; return ; } if ( initClass instanceof I_CmsResourceInit ) { m_resourceInitHandlers . add ( (... |
public class IndexTerm { /** * Get the full term , with any prefix .
* @ return full term with prefix */
public String getTermFullName ( ) { } } | if ( termPrefix == null ) { return termName ; } else { if ( termLocale == null ) { return termPrefix . message + STRING_BLANK + termName ; } else { final String key = "IndexTerm." + termPrefix . message . toLowerCase ( ) . trim ( ) . replace ( ' ' , '-' ) ; final String msg = Messages . getString ( key , termLocale ) ;... |
public class DateAndTimeBenchmark { /** * Formats a legacy { @ link Date } by using { @ link SimpleDateFormat } .
* @ return Formatted date */
@ Benchmark @ BenchmarkMode ( Mode . Throughput ) public String formatDate ( ) { } } | synchronized ( SIMPLE_DATE_FORMAT ) { return SIMPLE_DATE_FORMAT . format ( DATE ) ; } |
public class TextUtils { /** * Searches the specified array of texts ( { @ code values } ) for the specified text & mdash ; or a fragment , using an
* ( offset , len ) specification & mdash ; using the binary search algorithm .
* Note the specified { @ code values } parameter < strong > must be lexicographically or... | if ( values == null ) { throw new IllegalArgumentException ( "Values array cannot be null" ) ; } if ( text == null ) { throw new IllegalArgumentException ( "Text cannot be null" ) ; } int low = valuesOffset ; int high = ( valuesOffset + valuesLen ) - 1 ; int mid , cmp ; char [ ] midVal ; while ( low <= high ) { mid = (... |
public class Session { /** * Retrieves the result of inserting , updating or deleting a row
* from an updatable result .
* @ return the result of executing the statement */
private Result executeResultUpdate ( Result cmd ) { } } | long id = cmd . getResultId ( ) ; int actionType = cmd . getActionType ( ) ; Result result = sessionData . getDataResult ( id ) ; if ( result == null ) { return Result . newErrorResult ( Error . error ( ErrorCode . X_24501 ) ) ; } Object [ ] pvals = cmd . getParameterData ( ) ; Type [ ] types = cmd . metaData . columnT... |
public class AbstractRunMojo { /** * Get the Tomcat port . By default the port is changed by using the maven . alfresco . tomcat . port property
* but for legacy and external configuration purposes maven . tomcat . port will override if defined
* @ return the Tomcat port */
protected String getPort ( ) { } } | String port = tomcatPort ; if ( mavenTomcatPort != null ) { port = mavenTomcatPort ; getLog ( ) . info ( "Tomcat Port overridden by property maven.tomcat.port" ) ; } return port ; |
public class GregorianMath { /** * / * [ deutsch ]
* < p > Liefert den Tag des Woche f & uuml ; r das angegebene Datum . < / p >
* < p > Diese Methode setzt gem & auml ; & szlig ; dem ISO - 8601 - Standard den
* Montag als ersten Tag der Woche voraus . < / p >
* @ param year proleptic iso year
* @ param month... | if ( ( dayOfMonth < 1 ) || ( dayOfMonth > 31 ) ) { throw new IllegalArgumentException ( "Day out of range: " + dayOfMonth ) ; } else if ( dayOfMonth > getLengthOfMonth ( year , month ) ) { throw new IllegalArgumentException ( "Day exceeds month length: " + toString ( year , month , dayOfMonth ) ) ; } int m = gaussianWe... |
public class GroovyCollections { /** * Selects the minimum value found in an Iterable of items .
* @ param items an Iterable
* @ return the minimum value
* @ since 2.2.0 */
public static < T > T min ( Iterable < T > items ) { } } | T answer = null ; for ( T value : items ) { if ( value != null ) { if ( answer == null || ScriptBytecodeAdapter . compareLessThan ( value , answer ) ) { answer = value ; } } } return answer ; |
public class JesqueUtils { /** * This is needed because Throwable doesn ' t override equals ( ) and object
* equality is not what we want to test .
* @ param ex1
* first Throwable
* @ param ex2
* second Throwable
* @ return true if the two arguments are equal , as we define it . */
public static boolean equ... | if ( ex1 == ex2 ) { return true ; } if ( ex1 == null ) { if ( ex2 != null ) { return false ; } } else if ( ex2 == null ) { if ( ex1 != null ) { return false ; } } else { if ( ex1 . getClass ( ) != ex2 . getClass ( ) ) { return false ; } if ( ex1 . getMessage ( ) == null ) { if ( ex2 . getMessage ( ) != null ) { return ... |
public class CompactionAuditCountVerifier { /** * Compare record count between { @ link CompactionAuditCountVerifier # gobblinTier } and { @ link CompactionAuditCountVerifier # referenceTiers } .
* @ param datasetName the name of dataset
* @ param countsByTier the tier - to - count mapping retrieved by { @ link Aud... | if ( ! countsByTier . containsKey ( this . gobblinTier ) ) { log . info ( "Missing entry for dataset: " + datasetName + " in gobblin tier: " + this . gobblinTier + "; setting count to 0." ) ; } if ( ! countsByTier . containsKey ( referenceTier ) ) { log . info ( "Missing entry for dataset: " + datasetName + " in refere... |
public class DefaultMongoDBDataHandler { /** * Gets the lob from GFS entity .
* @ param gfs
* the gfs
* @ param m
* the m
* @ param entity
* the entity
* @ param kunderaMetadata
* the kundera metadata
* @ return the lob from gfs entity */
public Object getLobFromGFSEntity ( GridFS gfs , EntityMetadata... | MetamodelImpl metaModel = ( MetamodelImpl ) kunderaMetadata . getApplicationMetadata ( ) . getMetamodel ( m . getPersistenceUnit ( ) ) ; EntityType entityType = metaModel . entity ( m . getEntityClazz ( ) ) ; Set < Attribute > columns = entityType . getAttributes ( ) ; for ( Attribute column : columns ) { boolean isLob... |
public class JsonUtils { /** * Utility for test classes , so that they can inline json in a test class .
* Does a character level replacement of apostrophe ( ' ) with double quote ( " ) .
* This means you can express a snippit of JSON without having to forward
* slash escape everything .
* This is character bas... | String json = javason . replace ( '\'' , '"' ) ; return jsonToMap ( new ByteArrayInputStream ( json . getBytes ( ) ) ) ; |
public class JobDataMarshaller { /** * Marshall the given parameter object . */
public void marshall ( JobData jobData , ProtocolMarshaller protocolMarshaller ) { } } | if ( jobData == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( jobData . getActionTypeId ( ) , ACTIONTYPEID_BINDING ) ; protocolMarshaller . marshall ( jobData . getActionConfiguration ( ) , ACTIONCONFIGURATION_BINDING ) ; protocolMarshalle... |
public class JobWorkerIdRegistry { /** * Registers with { @ link JobMaster } to get a new job worker id .
* @ param jobMasterClient the job master client to be used for RPC
* @ param workerAddress current worker address
* @ throws IOException when fails to get a new worker id
* @ throws ConnectionFailedExceptio... | sWorkerId . set ( jobMasterClient . registerWorker ( workerAddress ) ) ; |
public class AOStream { /** * Helper method .
* Called from withing a synchronized ( this ) block .
* @ param discriminators
* @ param selectorDomains
* @ param selectors
* @ return */
private final JSRemoteConsumerPoint findOrCreateJSRemoteConsumerPoint ( String [ ] discriminators , int [ ] selectorDomains ,... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "findOrCreateJSRemoteConsumerPoint" , new Object [ ] { Arrays . toString ( discriminators ) , Arrays . toString ( selectorDomains ) , Arrays . toString ( selectors ) } ) ; String selectionCriteriasAsString = parent . convert... |
public class GroovyResultSetExtension { /** * Supports integer based subscript operators for updating the values of numbered columns
* starting at zero . Negative indices are supported , they will count from the last column backwards .
* @ param index is the number of the column to look at starting at 1
* @ param... | index = normalizeIndex ( index ) ; getResultSet ( ) . updateObject ( index , newValue ) ; |
public class RequestType { /** * Get the table name . */
public String getTableNames ( boolean bAddQuotes ) { } } | return ( m_tableName == null ) ? Record . formatTableNames ( REQUEST_TYPE_FILE , bAddQuotes ) : super . getTableNames ( bAddQuotes ) ; |
public class SampleSummaryStatistics { /** * Return a { @ code Collector } which applies an double - producing mapping
* function to each input element , and returns moments - statistics for the
* resulting values .
* < pre > { @ code
* final Stream < Sample > stream = . . .
* final SampleSummaryStatistics st... | require . positive ( parameterCount ) ; return Collector . of ( ( ) -> new SampleSummaryStatistics ( parameterCount ) , SampleSummaryStatistics :: accept , SampleSummaryStatistics :: combine ) ; |
public class CryptoKey { /** * < code > . google . privacy . dlp . v2 . TransientCryptoKey transient = 1 ; < / code > */
public com . google . privacy . dlp . v2 . TransientCryptoKeyOrBuilder getTransientOrBuilder ( ) { } } | if ( sourceCase_ == 1 ) { return ( com . google . privacy . dlp . v2 . TransientCryptoKey ) source_ ; } return com . google . privacy . dlp . v2 . TransientCryptoKey . getDefaultInstance ( ) ; |
public class BitVector { /** * 1的数量
* @ param unit
* @ return */
private static int popCount ( int unit ) { } } | unit = ( ( unit & 0xAAAAAAAA ) >>> 1 ) + ( unit & 0x55555555 ) ; unit = ( ( unit & 0xCCCCCCCC ) >>> 2 ) + ( unit & 0x33333333 ) ; unit = ( ( unit >>> 4 ) + unit ) & 0x0F0F0F0F ; unit += unit >>> 8 ; unit += unit >>> 16 ; return unit & 0xFF ; |
public class ClassUtils { /** * Checks if given class is present .
* @ param className
* @ return */
static boolean isClassPresent ( String className ) { } } | try { ClassUtils . class . getClassLoader ( ) . loadClass ( className ) ; return true ; } catch ( Throwable e ) { return false ; } |
public class ColorHelper { /** * Method to transform from HSV to RGB ( this method sets alpha as 0xff )
* @ param h - hue
* @ param s - saturation
* @ param v - brightness
* @ return rgb color */
public static int fromHSV ( float h , float s , float v ) { } } | int a = MAX_INT ; return fromHSV ( h , s , v , a ) ; |
public class PrintUtilities { /** * Print data from a matrix .
* @ param matrix
* the matrix . */
public static void printMatrixData ( double [ ] [ ] matrix ) { } } | int cols = matrix [ 0 ] . length ; int rows = matrix . length ; for ( int r = 0 ; r < rows ; r ++ ) { for ( int c = 0 ; c < cols ; c ++ ) { printer . print ( matrix [ r ] [ c ] ) ; printer . print ( separator ) ; } printer . println ( ) ; } |
public class UpdateDataSourceRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( UpdateDataSourceRequest updateDataSourceRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( updateDataSourceRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( updateDataSourceRequest . getDataSourceId ( ) , DATASOURCEID_BINDING ) ; protocolMarshaller . marshall ( updateDataSourceRequest . getDataSourceName ( ) , DATASO... |
public class RangeToken { /** * for RANGE or NRANGE */
protected void addRange ( int start , int end ) { } } | this . icaseCache = null ; // System . err . println ( " Token # addRange ( ) : " + start + " " + end ) ;
int r1 , r2 ; if ( start <= end ) { r1 = start ; r2 = end ; } else { r1 = end ; r2 = start ; } int pos = 0 ; if ( this . ranges == null ) { this . ranges = new int [ 2 ] ; this . ranges [ 0 ] = r1 ; this . ranges [... |
public class JobsInner { /** * Retrieve the job output identified by job id .
* @ param resourceGroupName Name of an Azure Resource group .
* @ param automationAccountName The name of the automation account .
* @ param jobId The job id .
* @ throws IllegalArgumentException thrown if parameters fail the validati... | return getOutputWithServiceResponseAsync ( resourceGroupName , automationAccountName , jobId ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class ConfigUtil { /** * Tries to discover user proxy location .
* If a UID system property is set , and running on a Unix machine it
* returns / tmp / x509up _ u $ { UID } . If any other machine then Unix , it returns
* $ { tempdir } / x509up _ u $ { UID } , where tempdir is a platform - specific
* temp... | String dir = null ; if ( getOS ( ) == UNIX_OS ) { dir = "/tmp/" ; } else { String tmpDir = System . getProperty ( "java.io.tmpdir" ) ; dir = ( tmpDir == null ) ? globus_dir : tmpDir ; } String uid = System . getProperty ( "UID" ) ; if ( uid != null ) { return getLocation ( dir , PROXY_NAME + uid ) ; } else if ( getOS (... |
public class AssertMessages { /** * Parameter A must be lower than or equal to Parameter B .
* @ param aindex the index of the parameter A .
* @ param avalue the value of the parameter A .
* @ param bindex the index of the parameter B .
* @ param bvalue the value of the parameter B .
* @ return the error mess... | return msg ( "A3" , aindex , avalue , bindex , bvalue ) ; // $ NON - NLS - 1 $ |
public class ExceptionQueuedEventContext { /** * < p class = " changed _ added _ 2_0 " > Return a < code > List < / code > that
* contains a single entry , the { @ link
* javax . faces . context . ExceptionHandler } for the current
* request . < / p > */
public List < SystemEventListener > getListenersForEventCla... | if ( null == listener ) { List < SystemEventListener > list = new ArrayList < SystemEventListener > ( 1 ) ; list . add ( context . getExceptionHandler ( ) ) ; listener = Collections . unmodifiableList ( list ) ; } return listener ; |
public class MediaTypeUtils { /** * Returns true if the given extension is considered " safe " ; e . g . is not associated with
* executable or scripting files
* @ param extension
* file extension
* @ return true if given extension is not associated with executable code */
public static boolean isSafeExtension ... | return extension != null && VALID_EXTENSION . matcher ( extension ) . matches ( ) && ! DANGEROUS_EXTENSIONS . contains ( extension ) ; |
public class ChannelzService { /** * Returns a top level channel aka { @ link io . grpc . ManagedChannel } . */
@ Override public void getChannel ( GetChannelRequest request , StreamObserver < GetChannelResponse > responseObserver ) { } } | InternalInstrumented < ChannelStats > s = channelz . getRootChannel ( request . getChannelId ( ) ) ; if ( s == null ) { responseObserver . onError ( Status . NOT_FOUND . withDescription ( "Can't find channel " + request . getChannelId ( ) ) . asRuntimeException ( ) ) ; return ; } GetChannelResponse resp ; try { resp = ... |
public class TimePickerDialog { /** * Create a tree for deciding what keys can legally be typed . */
private void generateLegalTimesTree ( ) { } } | // Create a quick cache of numbers to their keycodes .
int k0 = KeyEvent . KEYCODE_0 ; int k1 = KeyEvent . KEYCODE_1 ; int k2 = KeyEvent . KEYCODE_2 ; int k3 = KeyEvent . KEYCODE_3 ; int k4 = KeyEvent . KEYCODE_4 ; int k5 = KeyEvent . KEYCODE_5 ; int k6 = KeyEvent . KEYCODE_6 ; int k7 = KeyEvent . KEYCODE_7 ; int k8 = ... |
public class ICalendar { /** * Sets the type of < a href = " http : / / tools . ietf . org / html / rfc5546 " > iTIP < / a >
* request that this iCalendar object represents , or the value of the
* " Content - Type " header ' s " method " parameter if the iCalendar object is
* defined as a MIME message entity .
... | Method property = ( method == null ) ? null : new Method ( method ) ; setMethod ( property ) ; return property ; |
public class EmbedBuilder { /** * Sets the image of the embed .
* @ param image The image .
* @ param fileType The type of the file , e . g . " png " or " gif " .
* @ return The current instance in order to chain call methods . */
public EmbedBuilder setImage ( BufferedImage image , String fileType ) { } } | delegate . setImage ( image , fileType ) ; return this ; |
public class ImmutableValueMap { /** * Returns an immutable map containing the same entries as { @ code map } . If { @ code map } somehow contains entries with
* duplicate keys ( for example , if
* it is a { @ code SortedMap } whose comparator is not < i > consistent with
* equals < / i > ) , the results of this ... | if ( map instanceof ValueMap ) { return new ImmutableValueMap ( ( ValueMap ) map ) ; } else { return new ImmutableValueMap ( map ) ; } |
public class ApprovalDAO { /** * Log Modification statements to History
* @ param modified which CRUD action was done
* @ param data entity data that needs a log entry
* @ param overrideMessage if this is specified , we use it rather than crafting a history message based on data */
@ Override protected void wasMo... | boolean memo = override . length > 0 && override [ 0 ] != null ; boolean subject = override . length > 1 && override [ 1 ] != null ; HistoryDAO . Data hd = HistoryDAO . newInitedData ( ) ; hd . user = trans . user ( ) ; hd . action = modified . name ( ) ; hd . target = TABLE ; hd . subject = subject ? override [ 1 ] : ... |
public class LocalDirAllocator { /** * Get a path from the local FS . Pass size as - 1 if not known apriori . We
* round - robin over the set of disks ( via the configured dirs ) and return
* the first complete path which has enough space
* @ param pathStr the requested path ( this will be created on the first
... | AllocatorPerContext context = obtainContext ( contextCfgItemName ) ; return context . getLocalPathForWrite ( pathStr , size , conf ) ; |
public class ScatterGatherIteration { /** * Creates the operator that represents this scatter - gather graph computation for a vertex with in
* and out degrees added to the vertex value .
* @ param graph
* @ param messagingDirection
* @ param messageTypeInfo
* @ param numberOfVertices
* @ return the operato... | DataSet < Tuple2 < K , Message > > messages ; this . gatherFunction . setOptDegrees ( this . configuration . isOptDegrees ( ) ) ; DataSet < Tuple2 < K , LongValue > > inDegrees = graph . inDegrees ( ) ; DataSet < Tuple2 < K , LongValue > > outDegrees = graph . outDegrees ( ) ; DataSet < Tuple3 < K , LongValue , LongVal... |
public class systembackup { /** * Use this API to create systembackup resources . */
public static base_responses create ( nitro_service client , systembackup resources [ ] ) throws Exception { } } | base_responses result = null ; if ( resources != null && resources . length > 0 ) { systembackup createresources [ ] = new systembackup [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { createresources [ i ] = new systembackup ( ) ; createresources [ i ] . filename = resources [ i ] . filenam... |
public class FlinkAggregateExpandDistinctAggregatesRule { /** * Converts all distinct aggregate calls to a given set of arguments .
* < p > This method is called several times , one for each set of arguments .
* Each time it is called , it generates a JOIN to a new SELECT DISTINCT
* relational expression , and mo... | final RexBuilder rexBuilder = aggregate . getCluster ( ) . getRexBuilder ( ) ; final List < RelDataTypeField > leftFields ; if ( n == 0 ) { leftFields = null ; } else { leftFields = relBuilder . peek ( ) . getRowType ( ) . getFieldList ( ) ; } // Aggregate (
// child ,
// { COUNT ( DISTINCT 1 ) , SUM ( DISTINCT 1 ) , S... |
public class DataSlice { /** * This is a CUSTOM serialisation method for the DataSlice
* object .
* We only need to write the bytes that are part of the payload .
* Any bytes that are not contained by the section defined by
* the offset and length values are not stored to disk . The
* length is also written f... | out . writeInt ( _length ) ; out . write ( _bytes , _offset , _length ) ; |
public class AResource { /** * Returns a result , depending on the query parameters .
* @ param impl
* implementation
* @ param path
* path info
* @ return parameter map */
Response createResponse ( final JaxRx impl , final ResourcePath path ) { } } | final StreamingOutput out = createOutput ( impl , path ) ; // change media type , dependent on WRAP value
final boolean wrap = path . getValue ( QueryParameter . WRAP ) == null || path . getValue ( QueryParameter . WRAP ) . equals ( "yes" ) ; String type = wrap ? MediaType . APPLICATION_XML : MediaType . TEXT_PLAIN ; /... |
public class JDBCStorableGenerator { /** * Generates code which emulates this :
* / / May throw FetchException
* JDBCConnectionCapability . yieldConnection ( con ) ;
* @ param capVar required reference to JDBCConnectionCapability
* @ param conVar optional connection to yield */
private void yieldConnection ( Co... | if ( conVar != null ) { b . loadLocal ( capVar ) ; b . loadLocal ( conVar ) ; b . invokeInterface ( TypeDesc . forClass ( JDBCConnectionCapability . class ) , "yieldConnection" , null , new TypeDesc [ ] { TypeDesc . forClass ( Connection . class ) } ) ; } |
public class FastMath { /** * Compute the hyperbolic sine of a number .
* @ param x number on which evaluation is done
* @ return hyperbolic sine of x */
public static double sinh ( double x ) { } } | boolean negate = false ; if ( x != x ) { return x ; } // sinh [ z ] = ( exp ( z ) - exp ( - z ) / 2
// for values of z larger than about 20,
// exp ( - z ) can be ignored in comparison with exp ( z )
if ( x > 20 ) { if ( x >= LOG_MAX_VALUE ) { // Avoid overflow ( MATH - 905 ) .
final double t = exp ( 0.5 * x ) ; return... |
public class BeanCopierFactory { /** * 构建方法体实现 */
private static String getMethodImplCode ( Integer sequence , Class < ? > sourceClass , Class < ? > targetClass , boolean deepCopy , final Map < String , PropConverter < ? , ? > > propCvtMap ) throws Exception { } } | StringBuilder methodCode = new StringBuilder ( ) ; methodCode . append ( "public void copyProps(" ) . append ( Object . class . getName ( ) ) . append ( " sourceObj, " ) . append ( Object . class . getName ( ) ) . append ( " targetObj){\n" ) ; methodCode . append ( sourceClass . getName ( ) ) . append ( " source = " ) ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.