signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class TextClockSkin { /** * * * * * * Initialization * * * * * */
@ Override protected void initGraphics ( ) { } } | // Set initial size
if ( Double . compare ( clock . getPrefWidth ( ) , 0.0 ) <= 0 || Double . compare ( clock . getPrefHeight ( ) , 0.0 ) <= 0 || Double . compare ( clock . getWidth ( ) , 0.0 ) <= 0 || Double . compare ( clock . getHeight ( ) , 0.0 ) <= 0 ) { if ( clock . getPrefWidth ( ) > 0 && clock . getPrefHeight (... |
public class Usage { /** * < pre >
* The full resource name of a channel used for sending notifications to the
* service producer .
* Google Service Management currently only supports
* [ Google Cloud Pub / Sub ] ( https : / / cloud . google . com / pubsub ) as a notification
* channel . To use Google Cloud P... | java . lang . Object ref = producerNotificationChannel_ ; if ( ref instanceof java . lang . String ) { return ( java . lang . String ) ref ; } else { com . google . protobuf . ByteString bs = ( com . google . protobuf . ByteString ) ref ; java . lang . String s = bs . toStringUtf8 ( ) ; producerNotificationChannel_ = s... |
public class SimpleDOReader { /** * { @ inheritDoc } */
@ Override public String [ ] getObjectHistory ( String PID ) { } } | String [ ] dsIDs = ListDatastreamIDs ( null ) ; TreeSet < String > modDates = new TreeSet < String > ( ) ; for ( String element : dsIDs ) { Date [ ] dsDates = getDatastreamVersions ( element ) ; for ( Date element2 : dsDates ) { modDates . add ( DateUtility . convertDateToString ( element2 ) ) ; } } return modDates . t... |
public class Util { /** * Fills the provided buffer it with bytes from the
* provided channel . The amount of data to read is
* dependant on the available space in the provided
* buffer .
* @ param in the channel to read from
* @ param buffer the buffer to read into
* @ return the provided buffer
* @ thro... | while ( buffer . hasRemaining ( ) ) if ( in . read ( buffer ) == - 1 ) throw new BufferUnderflowException ( ) ; buffer . flip ( ) ; return buffer ; |
public class Promises { /** * Repeats the operations of provided { @ code supplier } infinitely ,
* until one of the { @ code Promise } s completes exceptionally . */
@ NotNull public static Promise < Void > repeat ( @ NotNull Supplier < Promise < Void > > supplier ) { } } | return Promise . ofCallback ( cb -> repeatImpl ( supplier , cb ) ) ; |
public class ABITrace { /** * Fetch the basecalls from the trace data . */
private void setBasecalls ( ) { } } | baseCalls = new int [ seqLength ] ; byte [ ] qq = new byte [ seqLength * 2 ] ; getSubArray ( qq , PLOC ) ; DataInputStream dis = new DataInputStream ( new ByteArrayInputStream ( qq ) ) ; for ( int i = 0 ; i <= seqLength - 1 ; ++ i ) { try { baseCalls [ i ] = ( int ) dis . readShort ( ) ; } catch ( IOException e ) // Th... |
public class ErrorCollector { /** * Create { @ link DeploymentException } with message concatenated from collected exceptions .
* @ return comprehensive exception . */
public DeploymentException composeComprehensiveException ( ) { } } | StringBuilder sb = new StringBuilder ( ) ; for ( Exception exception : exceptionsToPublish ) { sb . append ( exception . getMessage ( ) ) ; sb . append ( "\n" ) ; } return new DeploymentException ( sb . toString ( ) ) ; |
public class DefaultNexusIQClient { /** * Get report links for a given application .
* @ param application nexus application
* @ return a list of report links */
@ Override public List < LibraryPolicyReport > getApplicationReport ( NexusIQApplication application ) { } } | List < LibraryPolicyReport > applicationReports = new ArrayList < > ( ) ; String appReportLinkUrl = String . format ( application . getInstanceUrl ( ) + API_V2_REPORTS_LINKS , application . getApplicationId ( ) ) ; try { JSONArray reports = parseAsArray ( appReportLinkUrl ) ; if ( ( reports == null ) || ( reports . isE... |
public class UidFactory { /** * serverId ( 16位 ) - sec ( 32位 ) - seq ( 16位 )
* @ param serverId 支持65535个服务器
* @ return */
public static long getId ( int serverId ) { } } | synchronized ( seq ) { long second = System . currentTimeMillis ( ) / 1000 ; System . out . println ( "second:" + second ) ; int inc = seq . incrementAndGet ( ) ; System . out . println ( "inc:" + inc ) ; return ( ( long ) ( serverId & 0xFFFF ) ) << 48 | ( ( second & 0x00000000FFFFFFFF ) << 16 ) | ( inc & 0x0000FFFF ) ... |
public class PtoPOutputHandler { /** * This method checks to see if rollback is required
* @ param transaction The transaction to rollback . */
protected void handleRollback ( LocalTransaction transaction ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "handleRollback" , transaction ) ; // Roll back the transaction if we created it .
if ( transaction != null ) { try { transaction . rollback ( ) ; } catch ( SIException e ) { // FFDC
FFDCFilter . processException ( e , "com.... |
public class ns_configtemplate { /** * < pre >
* Converts API response of bulk operation into object and returns the object array in case of get request .
* < / pre > */
protected base_resource [ ] get_nitro_bulk_response ( nitro_service service , String response ) throws Exception { } } | ns_configtemplate_responses result = ( ns_configtemplate_responses ) service . get_payload_formatter ( ) . string_to_resource ( ns_configtemplate_responses . class , response ) ; if ( result . errorcode != 0 ) { if ( result . errorcode == SESSION_NOT_EXISTS ) service . clear_session ( ) ; throw new nitro_exception ( re... |
public class CmsEntityObserver { /** * Calls an entity change listener , catching any errors . < p >
* @ param entity the entity with which the change listener should be called
* @ param listener the change listener */
protected void safeExecuteChangeListener ( CmsEntity entity , I_CmsEntityChangeListener listener ... | try { listener . onEntityChange ( entity ) ; } catch ( Exception e ) { String stack = CmsClientStringUtil . getStackTrace ( e , "<br />" ) ; CmsDebugLog . getInstance ( ) . printLine ( "<br />" + e . getMessage ( ) + "<br />" + stack ) ; } |
public class AuthenticationGuard { /** * Obtains a reentrant lock for the given authentication data .
* @ param authenticationData
* @ return the reentrant lock assigned to the given authentication data . */
public synchronized ReentrantLock requestAccess ( AuthenticationData authenticationData ) { } } | ReentrantLock currentLock = null ; currentLock = authenticationDataLocks . get ( authenticationData ) ; if ( currentLock == null ) { currentLock = new ReentrantLock ( ) ; authenticationDataLocks . put ( authenticationData , currentLock ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { T... |
public class hqlParser { /** * hql . g : 491:1 : betweenList : concatenation AND ! concatenation ; */
public final hqlParser . betweenList_return betweenList ( ) throws RecognitionException { } } | hqlParser . betweenList_return retval = new hqlParser . betweenList_return ( ) ; retval . start = input . LT ( 1 ) ; CommonTree root_0 = null ; Token AND182 = null ; ParserRuleReturnScope concatenation181 = null ; ParserRuleReturnScope concatenation183 = null ; CommonTree AND182_tree = null ; try { // hql . g : 492:2 :... |
public class ISO8601Utils { /** * Check if the expected character exist at the given offset in the value .
* @ param value the string to check at the specified offset
* @ param offset the offset to look for the expected character
* @ param expected the expected character
* @ return true if the expected characte... | return ( offset < value . length ( ) ) && ( value . charAt ( offset ) == expected ) ; |
public class WriteBuffer { /** * Resets the write buffer to a particular point . */
public void truncate ( final long position ) { } } | final int index = index ( position ) ; final int offset = offset ( position ) ; final Block block = blocks . get ( index ) ; this . index = index ; block . limit = offset ; current = block ; |
public class StreamAppenderatorDriver { /** * Persist all data indexed through this driver so far . Blocks until complete .
* Should be called after all data has been added through { @ link # add ( InputRow , String , Supplier , boolean , boolean ) } .
* @ param committer committer representing all data that has be... | try { log . info ( "Persisting data." ) ; final long start = System . currentTimeMillis ( ) ; final Object commitMetadata = appenderator . persistAll ( wrapCommitter ( committer ) ) . get ( ) ; log . info ( "Persisted pending data in %,dms." , System . currentTimeMillis ( ) - start ) ; return commitMetadata ; } catch (... |
public class Animation { /** * Create a copy of this animation . Note that the frames
* are not duplicated but shared with the original
* @ return A copy of this animation */
public Animation copy ( ) { } } | Animation copy = new Animation ( ) ; copy . spriteSheet = spriteSheet ; copy . frames = frames ; copy . autoUpdate = autoUpdate ; copy . direction = direction ; copy . loop = loop ; copy . pingPong = pingPong ; copy . speed = speed ; return copy ; |
public class DefaultRallyClient { /** * Helper method to find the remaining days */
public int getRemainingDays ( String startDate , String endDate , Date currentDate ) throws java . text . ParseException { } } | DateFormat dateFormat = new SimpleDateFormat ( "yyyy-MM-dd" ) ; Calendar iterationEndDate = Calendar . getInstance ( ) ; iterationEndDate . setTime ( dateFormat . parse ( endDate ) ) ; Calendar iterationStartDate = Calendar . getInstance ( ) ; iterationStartDate . setTime ( dateFormat . parse ( startDate ) ) ; Calendar... |
public class Utils { /** * Logs an exception with the given logger and the given level .
* Writing a stack trace may be time - consuming in some environments .
* To prevent useless computing , this method checks the current log level
* before trying to log anything .
* @ param logger the logger
* @ param t an... | if ( logger . isLoggable ( logLevel ) ) { StringBuilder sb = new StringBuilder ( ) ; if ( message != null ) { sb . append ( message ) ; sb . append ( "\n" ) ; } sb . append ( writeExceptionButDoNotUseItForLogging ( t ) ) ; logger . log ( logLevel , sb . toString ( ) ) ; } |
public class ImageUtils { /** * 扭曲图片
* @ param srcBmp
* @ param bXDir
* @ return */
public static BufferedImage twistImage ( BufferedImage srcBmp , int width , int height , boolean bXDir ) { } } | double dMultValue = getRandomDouble ( 1 , 3 ) ; double dPhase = getRandomDouble ( 0 , PI2 ) ; if ( width > srcBmp . getWidth ( ) ) width = srcBmp . getWidth ( ) ; if ( height > srcBmp . getHeight ( ) ) height = srcBmp . getHeight ( ) ; BufferedImage destBmp = new BufferedImage ( width , height , BufferedImage . TYPE_IN... |
public class JsonParser { /** * Parse a JSON Array from the given JSON parser ( which is closed after parsing completes ) into
* the given destination collection .
* @ param destinationCollectionClass class of destination collection ( must have a public default
* constructor )
* @ param destinationItemClass cla... | return parseArrayAndClose ( destinationCollectionClass , destinationItemClass , null ) ; |
public class ThreadSafety { /** * Gets the possibly inherited marker annotation on the given symbol , and reverse - propagates
* containerOf spec ' s from super - classes . */
public AnnotationInfo getInheritedAnnotation ( Symbol sym , VisitorState state ) { } } | return getAnnotation ( sym , markerAnnotations , state ) ; |
public class SplunkAppender { /** * Create appender .
* @ param name the name
* @ param appenderRef the appender ref
* @ param config the config
* @ return the appender */
@ PluginFactory public static SplunkAppender build ( @ PluginAttribute ( "name" ) final String name , @ PluginElement ( "AppenderRef" ) fina... | return new SplunkAppender ( name , config , appenderRef ) ; |
public class HttpConnection { /** * 初始化http或https请求参数 < br >
* 有些时候htts请求会出现com . sun . net . ssl . internal . www . protocol . https . HttpsURLConnectionOldImpl的实现 , 此为sun内部api , 按照普通http请求处理
* @ param hostnameVerifier 域名验证器 , 非https传入null
* @ param ssf SSLSocketFactory , 非https传入null
* @ return { @ link HttpU... | final URLConnection conn = openConnection ( ) ; if ( false == conn instanceof HttpURLConnection ) { // 防止其它协议造成的转换异常
throw new HttpException ( "'{}' is not a http connection, make sure URL is format for http." , conn . getClass ( ) . getName ( ) ) ; } return ( HttpURLConnection ) conn ; |
public class DefaultExamSystem { /** * Creates a fresh ExamSystem . Your options will be combined with internal defaults . If you need
* to change the system after it has been created , you fork ( ) it . Forking will not add default
* options again .
* @ param options
* options to be used to define the new syst... | LOG . info ( "Pax Exam System (Version: " + Info . getPaxExamVersion ( ) + ") created." ) ; return new DefaultExamSystem ( options ) ; |
public class LineageInfo { /** * Load all lineage information from { @ link State } s of a dataset
* @ param states All states which belong to the same dataset
* @ return A collection of { @ link LineageEventBuilder } s put in the state */
public static Collection < LineageEventBuilder > load ( Collection < ? exten... | Preconditions . checkArgument ( states != null && ! states . isEmpty ( ) ) ; Set < LineageEventBuilder > allEvents = Sets . newHashSet ( ) ; for ( State state : states ) { Map < String , Set < LineageEventBuilder > > branchedEvents = load ( state ) ; branchedEvents . values ( ) . forEach ( allEvents :: addAll ) ; } ret... |
public class MessageMD5ChecksumHandler { /** * Throw an exception if the MD5 checksums returned in the SendMessageBatchResult do not match
* the client - side calculation based on the original messages in the SendMessageBatchRequest . */
private static void sendMessageBatchOperationMd5Check ( SendMessageBatchRequest ... | Map < String , SendMessageBatchRequestEntry > idToRequestEntryMap = new HashMap < String , SendMessageBatchRequestEntry > ( ) ; if ( sendMessageBatchRequest . getEntries ( ) != null ) { for ( SendMessageBatchRequestEntry entry : sendMessageBatchRequest . getEntries ( ) ) { idToRequestEntryMap . put ( entry . getId ( ) ... |
public class BatchEditLineHandler { /** * / * ( non - Javadoc )
* @ see org . jboss . as . cli . handlers . CommandHandlerWithHelp # doHandle ( org . jboss . as . cli . CommandContext ) */
@ Override protected void doHandle ( CommandContext ctx ) throws CommandFormatException { } } | BatchManager batchManager = ctx . getBatchManager ( ) ; if ( ! batchManager . isBatchActive ( ) ) { throw new CommandFormatException ( "No active batch." ) ; } Batch batch = batchManager . getActiveBatch ( ) ; final int batchSize = batch . size ( ) ; if ( batchSize == 0 ) { throw new CommandFormatException ( "The batch... |
public class AbstractConverterSet { /** * - - - UTILITY METHODS - - - */
protected static final UUID byteArrayToUUID ( byte [ ] from ) { } } | ByteBuffer b12 ; if ( from . length != 16 ) { b12 = ByteBuffer . wrap ( Arrays . copyOf ( from , 16 ) ) ; } else { b12 = ByteBuffer . wrap ( from ) ; } long msb = b12 . getLong ( ) ; long lsb = b12 . getLong ( ) ; return new UUID ( msb , lsb ) ; |
public class PropertyBuilder { /** * Build the comments for the property . Do nothing if
* { @ link Configuration # nocomment } is set to true .
* @ param node the XML element that specifies which components to document
* @ param propertyDocTree the content tree to which the documentation will be added */
public ... | if ( ! configuration . nocomment ) { writer . addComments ( currentProperty , propertyDocTree ) ; } |
public class CompressFilterSettings { /** * Enable or disable Deflate compression . This only has an effect if
* { @ link # isResponseCompressionEnabled ( ) } is < code > true < / code >
* @ param bResponseDeflateEnabled
* < code > true < / code > to enable it , < code > false < / code > to disable it
* @ retur... | return s_aRWLock . writeLocked ( ( ) -> { if ( s_bResponseDeflateEnabled == bResponseDeflateEnabled ) return EChange . UNCHANGED ; s_bResponseDeflateEnabled = bResponseDeflateEnabled ; LOGGER . info ( "CompressFilter responseDeflateEnabled=" + bResponseDeflateEnabled ) ; return EChange . CHANGED ; } ) ; |
public class CommonOps_DDRM { /** * This computes the trace of the matrix : < br >
* < br >
* trace = & sum ; < sub > i = 1 : n < / sub > { a < sub > ii < / sub > } < br >
* where n = min ( numRows , numCols )
* @ param a A square matrix . Not modified . */
public static double trace ( DMatrix1Row a ) { } } | int N = Math . min ( a . numRows , a . numCols ) ; double sum = 0 ; int index = 0 ; for ( int i = 0 ; i < N ; i ++ ) { sum += a . get ( index ) ; index += 1 + a . numCols ; } return sum ; |
public class Targeting { /** * Gets the customTargeting value for this Targeting .
* @ return customTargeting * Specifies the collection of custom criteria that is targeted
* by the
* { @ link LineItem } .
* Once the { @ link LineItem } is updated or modified with
* custom targeting , the
* server may retur... | return customTargeting ; |
public class MutableInterval { /** * Sets the period of this time interval , preserving the start instant
* and using the ISOChronology in the default zone for calculations .
* @ param period new period for interval , null means zero length
* @ throws IllegalArgumentException if the end is before the start
* @ ... | if ( period == null ) { setEndMillis ( getStartMillis ( ) ) ; } else { setEndMillis ( getChronology ( ) . add ( period , getStartMillis ( ) , 1 ) ) ; } |
public class DescribeInstancesResult { /** * Information about the reservations .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setReservations ( java . util . Collection ) } or { @ link # withReservations ( java . util . Collection ) } if you want to
* o... | if ( this . reservations == null ) { setReservations ( new com . amazonaws . internal . SdkInternalList < Reservation > ( reservations . length ) ) ; } for ( Reservation ele : reservations ) { this . reservations . add ( ele ) ; } return this ; |
public class Matrix { /** * Outer product */
public Frame outerProd ( ) { } } | int xrows = ( int ) _x . numRows ( ) ; int xcols = _x . numCols ( ) ; Vec [ ] x_vecs = _x . vecs ( ) ; for ( int j = 0 ; j < xcols ; j ++ ) { if ( x_vecs [ j ] . isEnum ( ) ) throw new IllegalArgumentException ( "Multiplication not meaningful for factor column " + j ) ; } Vec [ ] output = new Vec [ xrows ] ; String [ ]... |
public class ModuleConfigurationProvider { /** * From root to given project */
static List < ProjectDefinition > getTopDownParentProjects ( ProjectDefinition project ) { } } | List < ProjectDefinition > result = new ArrayList < > ( ) ; ProjectDefinition p = project ; while ( p != null ) { result . add ( 0 , p ) ; p = p . getParent ( ) ; } return result ; |
public class Moment { /** * < p > Pr & uuml ; ft , ob eine negative Schaltsekunde vorliegt . < / p >
* @ param posixTime UNIX - time in seconds
* @ param ts local timestamp used for error message
* @ throws ChronoException if a negative leap second is touched */
static void checkNegativeLS ( long posixTime , Plai... | LeapSeconds ls = LeapSeconds . getInstance ( ) ; if ( ls . supportsNegativeLS ( ) && ( ls . strip ( ls . enhance ( posixTime ) ) > posixTime ) ) { throw new ChronoException ( "Illegal local timestamp due to " + "negative leap second: " + ts ) ; } |
public class AbstractProxySessionManager { /** * Returns id of the session opened for the given Raft group .
* Returns { @ link # NO _ SESSION _ ID } if no session exists . */
public final long getSession ( RaftGroupId groupId ) { } } | SessionState session = sessions . get ( groupId ) ; return session != null ? session . id : NO_SESSION_ID ; |
public class CloudSpannerConnectionPoolDataSource { /** * Gets a connection which may be pooled by the app server or middleware implementation of
* DataSource .
* @ throws java . sql . SQLException Occurs when the physical database connection cannot be
* established . */
@ Override public CloudSpannerPooledConnec... | return new CloudSpannerPooledConnection ( getConnection ( user , password ) , defaultAutoCommit ) ; |
public class JIT_Tie { /** * Adds the _ invoke method inherited by Tie from InvokeHandler . < p >
* The _ invoke method of org . omg . CORBA . portable . InvokeHandler is
* invoked by the ORB to dispatch a request to the servant ( wrapper ) .
* The genarated implementation must determine which method is being
*... | GeneratorAdapter mg ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , INDENT + "adding method : _invoke " + "(Ljava/lang/String;Lorg/omg/CORBA/portable/InputStream;" + "Lorg/omg/CORBA/portable/ResponseHandler;)" + "Lorg/omg/CORBA/portable/OutputStream;" ) ; // public OutputS... |
public class StorageAccountsInner { /** * List SAS credentials of a storage account .
* @ param resourceGroupName The name of the resource group within the user ' s subscription . The name is case insensitive .
* @ param accountName The name of the storage account within the specified resource group . Storage accou... | return ServiceFuture . fromResponse ( listAccountSASWithServiceResponseAsync ( resourceGroupName , accountName , parameters ) , serviceCallback ) ; |
public class CmsSolrSpellchecker { /** * Perform a security check against OpenCms .
* @ param cms The OpenCms object .
* @ throws CmsPermissionViolationException in case of the anonymous guest user */
private void performPermissionCheck ( CmsObject cms ) throws CmsPermissionViolationException { } } | if ( cms . getRequestContext ( ) . getCurrentUser ( ) . isGuestUser ( ) ) { throw new CmsPermissionViolationException ( null ) ; } |
public class JpaBaseRepository { /** * Determines the ID for the entity
* @ param entity The entity to retrieve the ID for
* @ return The ID */
@ SuppressWarnings ( "deprecation" ) // No good alternative in the Hibernate API yet
protected ID extractId ( T entity ) { } } | final Class < ? > entityClass = TypeHelper . getTypeArguments ( JpaBaseRepository . class , this . getClass ( ) ) . get ( 0 ) ; final SessionFactory sf = ( SessionFactory ) ( getEntityManager ( ) . getEntityManagerFactory ( ) ) ; final ClassMetadata cmd = sf . getClassMetadata ( entityClass ) ; final SessionImplementor... |
public class RaftLog { /** * Returns the log entry stored at { @ code entryIndex } . Entry is retrieved
* only from the current log , not from the snapshot entry .
* If no entry available at this index , then { @ code null } is returned .
* Important : Log entry indices start from 1 , not 0. */
public LogEntry ge... | if ( entryIndex < 1 ) { throw new IllegalArgumentException ( "Illegal index: " + entryIndex + ". Index starts from 1." ) ; } if ( ! containsLogEntry ( entryIndex ) ) { return null ; } LogEntry logEntry = logs . read ( toSequence ( entryIndex ) ) ; assert logEntry . index ( ) == entryIndex : "Expected: " + entryIndex + ... |
public class HttpMethodBase { /** * Tests if the this method is ready to be executed .
* @ param state the { @ link HttpState state } information associated with this method
* @ param conn the { @ link HttpConnection connection } to be used
* @ throws HttpException If the method is in invalid state . */
private v... | if ( state == null ) { throw new IllegalArgumentException ( "HttpState parameter may not be null" ) ; } if ( conn == null ) { throw new IllegalArgumentException ( "HttpConnection parameter may not be null" ) ; } if ( this . aborted ) { throw new IllegalStateException ( "Method has been aborted" ) ; } if ( ! validate ( ... |
public class Setting { /** * 转换为Properties对象 , 原分组变为前缀
* @ return Properties对象 */
public Properties toProperties ( ) { } } | final Properties properties = new Properties ( ) ; String group ; for ( Entry < String , LinkedHashMap < String , String > > groupEntry : this . groupedMap . entrySet ( ) ) { group = groupEntry . getKey ( ) ; for ( Entry < String , String > entry : groupEntry . getValue ( ) . entrySet ( ) ) { properties . setProperty (... |
public class ScriptRuntime { /** * Escapes the reserved characters in a value of an attribute
* @ param value Unescaped text
* @ return The escaped text */
public static String escapeAttributeValue ( Object value , Context cx ) { } } | XMLLib xmlLib = currentXMLLib ( cx ) ; return xmlLib . escapeAttributeValue ( value ) ; |
public class JawrSassResolver { /** * Adds a path to the linked resource
* @ param path
* the resource path */
protected void addLinkedResource ( String path ) { } } | FilePathMapping linkedResource = getFilePathMapping ( path ) ; if ( linkedResource != null ) { addLinkedResource ( linkedResource ) ; if ( bundle != null ) { bundle . getLinkedFilePathMappings ( ) . add ( new FilePathMapping ( bundle , linkedResource . getPath ( ) , linkedResource . getLastModified ( ) ) ) ; } } |
public class MultiHybridSerializerStrategy { /** * Serialize a MultiNormalizerHybrid to a output stream
* @ param normalizer the normalizer
* @ param stream the output stream to write to
* @ throws IOException */
public void write ( @ NonNull MultiNormalizerHybrid normalizer , @ NonNull OutputStream stream ) thro... | try ( DataOutputStream dos = new DataOutputStream ( stream ) ) { writeStatsMap ( normalizer . getInputStats ( ) , dos ) ; writeStatsMap ( normalizer . getOutputStats ( ) , dos ) ; writeStrategy ( normalizer . getGlobalInputStrategy ( ) , dos ) ; writeStrategy ( normalizer . getGlobalOutputStrategy ( ) , dos ) ; writeSt... |
public class DeviceImpl { /** * get Status
* @ return status */
@ Override public String status ( ) { } } | MDC . setContextMap ( contextMap ) ; xlogger . entry ( ) ; try { status = getStatus ( ) ; } catch ( final DevFailed e ) { try { stateImpl . stateMachine ( DeviceState . UNKNOWN ) ; statusImpl . statusMachine ( DevFailedUtils . toString ( e ) , DeviceState . UNKNOWN ) ; status = DevFailedUtils . toString ( e ) ; } catch... |
public class Geometry { /** * Canvas arcTo ' s have a variable center , as points a , b and c form two lines from the same point at a tangent to the arc ' s cirlce .
* This returns the arcTo arc start , center and end points .
* @ param p0
* @ param p1
* @ param r
* @ return */
public static final Point2DArra... | // see tangents drawn from same point to a circle
// http : / / www . mathcaptain . com / geometry / tangent - of - a - circle . html
final double a0 = getAngleBetweenTwoLines ( p0 , p1 , p2 ) / 2 ; final double ln = getLengthFromASA ( RADIANS_90 - a0 , r , a0 ) ; Point2D dv = p1 . sub ( p0 ) ; Point2D dx = dv . unit (... |
public class ValueEnforcer { /** * Check that the passed String is neither < code > null < / code > nor empty .
* @ param < T >
* Type to be checked and returned
* @ param aValue
* The String to check .
* @ param aName
* The name of the value ( e . g . the parameter name )
* @ return The passed value .
... | notNull ( aValue , aName ) ; if ( isEnabled ( ) ) if ( aValue . length ( ) == 0 ) throw new IllegalArgumentException ( "The value of the string '" + aName . get ( ) + "' may not be empty!" ) ; return aValue ; |
public class MwsConnection { /** * Sets UserAgent property
* @ param applicationName
* @ param applicationVersion
* @ param programmingLanguage
* @ param additionalNameValuePairs */
public synchronized void setUserAgent ( String applicationName , String applicationVersion , String programmingLanguage , String .... | checkUpdatable ( ) ; StringBuilder b = new StringBuilder ( ) ; b . append ( applicationName ) ; b . append ( "/" ) ; b . append ( applicationVersion ) ; b . append ( " (Language=" ) ; b . append ( programmingLanguage ) ; int i = 0 ; while ( i < additionalNameValuePairs . length ) { String name = additionalNameValuePair... |
public class AbstractLexicalAnalyzer { /** * 丑陋的规则系统
* @ param sentence
* @ param normalized
* @ param wordList */
protected void segmentAfterRule ( String sentence , String normalized , List < String > wordList ) { } } | if ( ! enableRuleBasedSegment ) { segmenter . segment ( sentence , normalized , wordList ) ; return ; } int start = 0 ; int end = start ; byte preType = typeTable [ normalized . charAt ( end ) ] ; byte curType ; while ( ++ end < normalized . length ( ) ) { curType = typeTable [ normalized . charAt ( end ) ] ; if ( curT... |
public class Discovery { /** * Query system notices .
* Queries for notices ( errors or warnings ) that might have been generated by the system . Notices are generated when
* ingesting documents and performing relevance training . See the [ Discovery service
* documentation ] ( https : / / cloud . ibm . com / doc... | Validator . notNull ( queryNoticesOptions , "queryNoticesOptions cannot be null" ) ; String [ ] pathSegments = { "v1/environments" , "collections" , "notices" } ; String [ ] pathParameters = { queryNoticesOptions . environmentId ( ) , queryNoticesOptions . collectionId ( ) } ; RequestBuilder builder = RequestBuilder . ... |
public class ProjectiveDependencyParser { /** * Runs the parsing algorithm of ( Eisner , 2000 ) as described in McDonald ( 2006 ) .
* @ param scores Input : The edge weights .
* @ param inChart Output : The parse chart . */
private static void insideAlgorithm ( final double [ ] [ ] scores , final ProjTreeChart inCh... | final int n = scores . length ; final int startIdx = singleRoot ? 1 : 0 ; // Initialize .
for ( int s = 0 ; s < n ; s ++ ) { inChart . setScore ( s , s , RIGHT , COMPLETE , 0.0 ) ; inChart . setScore ( s , s , LEFT , COMPLETE , 0.0 ) ; } // Parse .
for ( int width = 1 ; width < n ; width ++ ) { for ( int s = startIdx ;... |
public class Iconics { /** * Creates a new SpannableStringBuilder and will iterate over the textSpanned once and copy over
* all characters , it will also directly replace icon font placeholders with the correct mapping .
* Afterwards it will apply the styles */
@ NonNull public static Spanned style ( @ NonNull Con... | fonts = init ( ctx , fonts ) ; // find all icons which should be replaced with the iconFont
TextStyleContainer textStyleContainer = IconicsUtils . findIcons ( textSpanned , fonts ) ; // create spannableString to set the spans on
SpannableString sb = SpannableString . valueOf ( textStyleContainer . spannableStringBuilde... |
public class SipServletMessageImpl { /** * ( non - Javadoc )
* @ see javax . servlet . sip . SipServletMessage # getParameterableHeader ( java . lang . String ) */
public Parameterable getParameterableHeader ( String name ) throws ServletParseException { } } | if ( logger . isDebugEnabled ( ) ) { logger . debug ( "getParameterableHeader - name=" + name ) ; } if ( name == null ) throw new NullPointerException ( "Parametrable header name cant be null!!!" ) ; String nameToSearch = getCorrectHeaderName ( name ) ; Header h = this . message . getHeader ( nameToSearch ) ; if ( ! is... |
public class ConverterUtil { /** * Splits a string into a numeric part and a character part . The input string should conform to the format
* < code > [ numeric _ part ] [ char _ part ] < / code > with an optional whitespace between the two parts .
* The < code > char _ part < / code > should only contain letters a... | // ATTN : String . trim ( ) may not trim all UTF - 8 whitespace characters properly .
// The original implementation used its own unicodeTrim ( ) method that I decided not to include until the need
// arises . For more information , see :
// https : / / github . com / typesafehub / config / blob / v1.3.0 / config / src... |
public class ApiBuilder { /** * Create the URL
* @ param properties
* @ return
* @ throws RottenTomatoesException */
public static String create ( Map < String , String > properties ) throws RottenTomatoesException { } } | if ( StringUtils . isBlank ( apiKey ) ) { throw new RottenTomatoesException ( ApiExceptionType . INVALID_URL , "Missing API Key" ) ; } StringBuilder urlBuilder = new StringBuilder ( API_SITE ) ; urlBuilder . append ( API_VERSION ) ; urlBuilder . append ( getUrlFromProps ( properties ) ) ; urlBuilder . append ( API_PREF... |
public class RPCRecordDecoder { /** * / * ( non - Javadoc )
* @ see org . jboss . netty . handler . codec . frame . FrameDecoder # decode ( org . jboss . netty . channel . ChannelHandlerContext , org . jboss . netty . channel . Channel , org . jboss . netty . buffer . ChannelBuffer ) */
protected Object decode ( Chan... | // Wait until the length prefix is available .
if ( channelBuffer . readableBytes ( ) < 4 ) { // If null is returned , it means there is not enough data yet .
// FrameDecoder will call again when there is a sufficient amount of data available .
return null ; } // marking the current reading position
channelBuffer . mar... |
public class Window { /** * Gets the a future by its key .
* @ param key The key for the request
* @ return The future or null if it doesn ' t exist . */
public WindowFuture < K , R , P > get ( K key ) { } } | return this . futures . get ( key ) ; |
public class BTreeLeaf { /** * Positions the current slot right before the first index record that matches
* the specified search range . */
private void moveSlotBefore ( ) { } } | /* * int slot = 0 ; while ( slot < currentPage . getNumRecords ( ) & &
* searchRange . largerThan ( getKey ( currentPage , slot ) ) ) slot + + ;
* currentSlot = slot - 1; */
// Optimization : Use binary search rather than sequential search
int startSlot = 0 , endSlot = currentPage . getNumRecords ( ) - 1 ; int midd... |
public class TaskDefinition { /** * The launch type to use with your task . For more information , see < a
* href = " https : / / docs . aws . amazon . com / AmazonECS / latest / developerguide / launch _ types . html " > Amazon ECS Launch Types < / a >
* in the < i > Amazon Elastic Container Service Developer Guid... | com . amazonaws . internal . SdkInternalList < String > compatibilitiesCopy = new com . amazonaws . internal . SdkInternalList < String > ( compatibilities . length ) ; for ( Compatibility value : compatibilities ) { compatibilitiesCopy . add ( value . toString ( ) ) ; } if ( getCompatibilities ( ) == null ) { setCompa... |
public class MigrateArgs { /** * Migrate one or more { @ code keys } .
* @ param keys must not be { @ literal null } .
* @ return { @ code this } { @ link MigrateArgs } . */
@ SafeVarargs public final MigrateArgs < K > keys ( K ... keys ) { } } | LettuceAssert . notEmpty ( keys , "Keys must not be empty" ) ; this . keys . addAll ( Arrays . asList ( keys ) ) ; return this ; |
public class BaseGraphMapper { /** * This method converts given TF
* @ param tfGraph
* @ return */
@ Override public SameDiff importGraph ( GRAPH_TYPE tfGraph ) { } } | return importGraph ( tfGraph , Collections . < String , OpImportOverride < GRAPH_TYPE , NODE_TYPE , ATTR_TYPE > > emptyMap ( ) , null ) ; |
public class DialogPlus { /** * It is called when the show ( ) method is called
* @ param view is the dialog plus view */
private void onAttached ( View view ) { } } | decorView . addView ( view ) ; contentContainer . startAnimation ( inAnim ) ; contentContainer . requestFocus ( ) ; holder . setOnKeyListener ( new View . OnKeyListener ( ) { @ Override public boolean onKey ( View v , int keyCode , KeyEvent event ) { switch ( event . getAction ( ) ) { case KeyEvent . ACTION_UP : if ( k... |
public class GenericRepository { /** * Merge the state of the given entity into the current persistence context . */
@ Transactional public E merge ( E entity ) { } } | System . out . println ( "merge: " + entity . entityClassName ( ) + ": " + entity + ": " + entity . getId ( ) ) ; return entityManager . merge ( entity ) ; |
public class Cob2XsdMain { /** * Check the input parameter and keep it only if it is valid .
* @ param input a file or folder name ( relative or absolute ) */
public void setInput ( final String input ) { } } | if ( input == null ) { throw ( new IllegalArgumentException ( "You must provide a COBOL source folder or file" ) ) ; } File file = new File ( input ) ; if ( file . exists ( ) ) { if ( file . isDirectory ( ) && file . list ( ) . length == 0 ) { throw new IllegalArgumentException ( "Folder " + input + " is empty" ) ; } }... |
public class QuotaLimitingStore { /** * Ensure the current throughput levels for the tracked operation does not
* exceed set quota limits . Throws an exception if exceeded quota .
* @ param quotaKey
* @ param trackedOp */
private void checkRateLimit ( String quotaKey , Tracked trackedOp ) { } } | String quotaValue = null ; try { if ( ! metadataStore . getQuotaEnforcingEnabledUnlocked ( ) ) { return ; } quotaValue = quotaStore . cacheGet ( quotaKey ) ; // Store may not have any quotas
if ( quotaValue == null ) { return ; } // But , if it does
float currentRate = getThroughput ( trackedOp ) ; float allowedRate = ... |
public class MethodAnnotation { /** * Factory method to create the MethodAnnotation from the classname , method
* name , signature , etc . The method tries to look up source line information
* for the method .
* @ param className
* name of the class containing the method
* @ param methodName
* name of the m... | className = ClassName . toDottedClassName ( className ) ; // Create MethodAnnotation .
// It won ' t have source lines yet .
MethodAnnotation methodAnnotation = new MethodAnnotation ( className , methodName , methodSig , ( accessFlags & Const . ACC_STATIC ) != 0 ) ; SourceLineAnnotation sourceLines = SourceLineAnnotati... |
public class ParseBool { /** * Checks the preconditions for constructing a new ParseBool processor .
* @ param trueValues
* the array of Strings which represent true
* @ param falseValues
* the array of Strings which represent false
* @ throws IllegalArgumentException
* if trueValues or falseValues is empty... | if ( trueValues == null ) { throw new NullPointerException ( "trueValues should not be null" ) ; } else if ( trueValues . length == 0 ) { throw new IllegalArgumentException ( "trueValues should not be empty" ) ; } if ( falseValues == null ) { throw new NullPointerException ( "falseValues should not be null" ) ; } else ... |
public class ManagedClustersInner { /** * Reset AAD Profile of a managed cluster .
* Update the AAD Profile for a managed cluster .
* @ param resourceGroupName The name of the resource group .
* @ param resourceName The name of the managed cluster resource .
* @ param parameters Parameters supplied to the Reset... | if ( this . client . subscriptionId ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.subscriptionId() is required and cannot be null." ) ; } if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( resourc... |
public class FileChannelJournalSegmentReader { /** * Reads the next entry in the segment . */
@ SuppressWarnings ( "unchecked" ) private void readNext ( ) { } } | // Compute the index of the next entry in the segment .
final long index = getNextIndex ( ) ; try { // Read more bytes from the segment if necessary .
if ( memory . remaining ( ) < maxEntrySize ) { long position = channel . position ( ) + memory . position ( ) ; channel . position ( position ) ; memory . clear ( ) ; ch... |
public class StreamService { /** * { @ inheritDoc } */
public void deleteStream ( IStreamCapableConnection conn , Number streamId ) { } } | IClientStream stream = conn . getStreamById ( streamId ) ; if ( stream != null ) { if ( stream instanceof IClientBroadcastStream ) { IClientBroadcastStream bs = ( IClientBroadcastStream ) stream ; IBroadcastScope bsScope = getBroadcastScope ( conn . getScope ( ) , bs . getPublishedName ( ) ) ; if ( bsScope != null && c... |
public class EligibilityResponse { /** * syntactic sugar */
public ErrorsComponent addError ( ) { } } | ErrorsComponent t = new ErrorsComponent ( ) ; if ( this . error == null ) this . error = new ArrayList < ErrorsComponent > ( ) ; this . error . add ( t ) ; return t ; |
public class ConsoleBuilder { /** * Print columns to console
* @ param columns Collections of CharSequences to print */
public static void print ( final Collection < ? extends CharSequence > columns ) { } } | print ( new Applyable < ConsoleReaderWrapper > ( ) { public void apply ( ConsoleReaderWrapper consoleReaderWrapper ) { consoleReaderWrapper . print ( columns ) ; } } ) ; |
public class GoogleCalendarService { /** * Performs an immediate delete request on the google calendar api .
* @ param calendar The calendar to be removed .
* @ throws IOException For unexpected errors */
public void deleteCalendar ( GoogleCalendar calendar ) throws IOException { } } | dao . calendars ( ) . delete ( calendar . getId ( ) ) . execute ( ) ; |
public class LossMixtureDensity { /** * This method returns the score for each of the given outputs against the
* given set of labels . For a mixture density network , this is done by
* extracting the " alpha " , " mu " , and " sigma " components of each gaussian
* and computing the negative log likelihood that t... | labels = labels . castTo ( preOutput . dataType ( ) ) ; // No - op if already correct dtype
INDArray output = activationFn . getActivation ( preOutput . dup ( ) , false ) ; MixtureDensityComponents mdc = extractComponents ( output ) ; INDArray scoreArr = negativeLogLikelihood ( labels , mdc . alpha , mdc . mu , mdc . s... |
public class EntityNameFinderService { /** * Gets all the entity types and tries to instantiate and cache a finder for each one . There
* needn ' t be a finder for every entity type , so if there ' s no entry in the portal . properties ,
* we just log the fact and continue . */
private synchronized void initialize ... | Iterator types = EntityTypesLocator . getEntityTypes ( ) . getAllEntityTypes ( ) ; String factoryName = null ; while ( types . hasNext ( ) ) { Class type = ( Class ) types . next ( ) ; if ( type != Object . class ) { String factoryKey = "org.apereo.portal.services.EntityNameFinderService.NameFinderFactory.implementatio... |
public class CouchClient { /** * Get document along with its revision history , and the result is converted to a
* < code > DocumentRevs < / code > object .
* @ see < code > DocumentRevs < / code > */
public DocumentRevs getDocRevisions ( String id , String rev ) { } } | return getDocRevisions ( id , rev , new CouchClientTypeReference < DocumentRevs > ( DocumentRevs . class ) ) ; |
public class ComputerVisionManager { /** * Initializes an instance of Computer Vision API client .
* @ param credentials the management credentials for Azure
* @ param endpoint Supported Cognitive Services endpoints .
* @ return the Computer Vision API client */
public static ComputerVisionClient authenticate ( S... | return authenticate ( "https://{endpoint}/vision/v2.0/" , credentials ) . withEndpoint ( endpoint ) ; |
public class NFastArrayList { /** * Add a value to the List
* @ param value */
public final NFastArrayList < M > set ( final int i , final M value ) { } } | m_jso . set ( i , value ) ; return this ; |
public class OpenAPIModelFilterAdapter { /** * { @ inheritDoc } */
@ Override public Discriminator visitDiscriminator ( Context context , Discriminator d ) { } } | visitor . visitDiscriminator ( context , d ) ; return d ; |
public class ByteBufferUtils { /** * NB : while Druid no longer support Java 7 , this method would still work with that version as well . */
private static MethodHandle unmapJava7Or8 ( MethodHandles . Lookup lookup ) throws ReflectiveOperationException { } } | // " Compile " a MethodHandle that is roughly equivalent to the following lambda :
// ( ByteBuffer buffer ) - > {
// sun . misc . Cleaner cleaner = ( ( java . nio . DirectByteBuffer ) byteBuffer ) . cleaner ( ) ;
// if ( nonNull ( cleaner ) )
// cleaner . clean ( ) ;
// else
// noop ( cleaner ) ; / / the noop is needed... |
public class ClassLoaderWithRegistry { /** * Add a package name which should be loaded with this classloader .
* @ param _ packageName name of the package , has to end with ' . ' */
public void addIncludedPackageNames ( String _packageName ) { } } | if ( _packageName . endsWith ( "." ) ) { includePackageNames . add ( _packageName ) ; ComponentRegistry . getInstance ( ) . addPackageToIncludeList ( _packageName ) ; } |
public class ChargeSkin { /** * * * * * * Initialization * * * * * */
private void initGraphics ( ) { } } | // Set initial size
if ( Double . compare ( gauge . getPrefWidth ( ) , 0.0 ) <= 0 || Double . compare ( gauge . getPrefHeight ( ) , 0.0 ) <= 0 || Double . compare ( gauge . getWidth ( ) , 0.0 ) <= 0 || Double . compare ( gauge . getHeight ( ) , 0.0 ) <= 0 ) { if ( gauge . getPrefWidth ( ) > 0 && gauge . getPrefHeight (... |
public class Rational { /** * Add the specified value to this value and return the result as a new object
* ( also a rational ) . If the two values have different denominators , they will
* first be converted so that they have common denominators .
* @ param value The value to add to this rational .
* @ return ... | if ( denominator == value . getDenominator ( ) ) { return new Rational ( numerator + value . getNumerator ( ) , denominator ) ; } else { return new Rational ( numerator * value . getDenominator ( ) + value . getNumerator ( ) * denominator , denominator * value . getDenominator ( ) ) ; } |
public class EntityDocumentBuilder { /** * Adds an additional alias to the constructed document .
* @ param text
* the text of the alias
* @ param languageCode
* the language code of the alias
* @ return builder object to continue construction */
public T withAlias ( String text , String languageCode ) { } } | withAlias ( factory . getMonolingualTextValue ( text , languageCode ) ) ; return getThis ( ) ; |
public class JnlpFileHandler { /** * / * Main method to lookup an entry ( NEW for JavaWebStart 1.5 + ) */
public synchronized DownloadResponse getJnlpFileEx ( JnlpResource jnlpres , DownloadRequest dreq ) throws IOException { } } | String path = jnlpres . getPath ( ) ; URL resource = jnlpres . getResource ( ) ; long lastModified = jnlpres . getLastModified ( ) ; _log . addDebug ( "lastModified: " + lastModified + " " + new Date ( lastModified ) ) ; if ( lastModified == 0 ) { _log . addWarning ( "servlet.log.warning.nolastmodified" , path ) ; } //... |
public class Main { /** * Attempts to sign in or register the account specified by the login form .
* If there are form errors ( invalid email , missing fields , etc . ) , the
* errors are presented and no actual login attempt is made . */
public void attemptLogin ( ) { } } | // Reset errors .
mEmail . setError ( null ) ; mPassword . setError ( null ) ; // Check for a valid email address .
if ( TextUtils . isEmpty ( mEmail . getText ( ) ) ) { mEmail . setError ( getString ( R . string . error_field_required ) ) ; return ; } q . task ( new CocoTask < String > ( ) { @ Override public String b... |
public class PropertyLoader { /** * This will realise the set of resources returned from @ see constructResourcesList and
* as a fully populated properties object , including System properties
* @ return returns a fully populated Properties object with values from the config , the override and the System ( in that ... | // Cannot use the spring classes here because they a ) use the logger early , which
// scuppers log4j and b ) they ' re designed to do bean value overriding - not to be
// used directly in this fashion
Properties properties = new Properties ( ) ; // Read them from the list of resources then mix in System
for ( Resource... |
public class CurrentInProgressMetadata { /** * Clear out the data in the ZNode specified in the constructor to indicate
* that no segment is currently in progress . This does not delete the
* actual ZNode .
* @ throws IOException If there is an unrecoverable error talking to
* ZooKeeper */
public void clear ( )... | try { zooKeeper . setData ( fullyQualifiedZNode , null , expectedZNodeVersion . get ( ) ) ; } catch ( KeeperException . BadVersionException e ) { LOG . error ( fullyQualifiedZNode + " has been updated by another process" , e ) ; throw new StaleVersionException ( fullyQualifiedZNode + "has been updated by another proces... |
public class GrpcUtils { /** * Converts a proto type to a wire type .
* @ param localityPTier the proto type to convert
* @ return the converted wire type */
public static TieredIdentity . LocalityTier fromProto ( alluxio . grpc . LocalityTier localityPTier ) { } } | return new TieredIdentity . LocalityTier ( localityPTier . getTierName ( ) , localityPTier . hasValue ( ) ? localityPTier . getValue ( ) : null ) ; |
public class RelsValidator { /** * validate the value against the xsd definition
* NCName : : = ( Letter | ' _ ' ) ( NCNameChar ) * NCNameChar : : = Letter | Digit | ' . ' | ' - ' | ' _ ' |
* CombiningChar | Extender */
private static boolean isValid ( String stValue ) { } } | int scan ; boolean bValid = true ; for ( scan = 0 ; scan < stValue . length ( ) ; scan ++ ) { if ( scan == 0 ) bValid = XMLChar . isNCNameStart ( stValue . charAt ( scan ) ) ; else bValid = XMLChar . isNCName ( stValue . charAt ( scan ) ) ; if ( ! bValid ) break ; } return bValid ; |
public class EngineDataAccessCache { /** * changed to append in all cases */
public synchronized void setActivityInstanceStatus ( ActivityInstance actInst , Integer status , String statusMessage ) throws SQLException { } } | if ( cache_activity_transition == CACHE_ONLY ) { actInst . setStatusCode ( status ) ; actInst . setMessage ( statusMessage ) ; } else { edadb . setActivityInstanceStatus ( actInst , status , statusMessage ) ; } |
public class ListVolumeInitiatorsResult { /** * The host names and port numbers of all iSCSI initiators that are connected to the gateway .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setInitiators ( java . util . Collection ) } or { @ link # withInitiato... | if ( this . initiators == null ) { setInitiators ( new com . amazonaws . internal . SdkInternalList < String > ( initiators . length ) ) ; } for ( String ele : initiators ) { this . initiators . add ( ele ) ; } return this ; |
public class ParentBinding { /** * The getter must be placed in the same package as the parent getter , to ensure that its return
* type is visible . */
public String getGetterMethodPackage ( ) { } } | Binding parentBinding = parentBindings . getBinding ( key ) ; if ( parentBinding == null ) { // The parent binding should exist by the time this is called .
errorManager . logError ( "No parent binding found in %s for %s." , parentBindings , key ) ; return "" ; } else { return parentBinding . getGetterMethodPackage ( )... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.