signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class ICUHumanize { /** * Formats the given date with the specified style . * @ param style * DateFormat style * @ param value * Date to be formatted * @ return String representation of the date */ public static String formatDate ( final int style , final Date value ) { } }
return context . get ( ) . formatDate ( style , value ) ;
public class QuartzScheduler { /** * Only cron schedule register is supported . Since register might be called when * concurrently uploading projects , so synchronized is added to ensure thread safety . * @ param cronExpression the cron schedule for this job * @ param jobDescription Regarding QuartzJobDescription...
requireNonNull ( jobDescription , "jobDescription is null" ) ; if ( ifJobExist ( jobDescription . getJobName ( ) , jobDescription . getGroupName ( ) ) ) { logger . warn ( String . format ( "can not register existing job with job name: " + "%s and group name: %s" , jobDescription . getJobName ( ) , jobDescription . getG...
public class EnvironmentStream { /** * Logs a message to the original stderr in cases where java . util . logging * is dangerous , e . g . in the logging code itself . */ public static void logStderr ( String msg , Throwable e ) { } }
try { long now = CurrentTime . currentTime ( ) ; // msg = QDate . formatLocal ( now , " [ % Y - % m - % d % H : % M : % S ] " ) + msg ; _origSystemErr . println ( msg ) ; // e . printStackTrace ( _ origSystemErr . getPrintWriter ( ) ) ; _origSystemErr . flush ( ) ; } catch ( Throwable e1 ) { }
public class AsaCalculator { /** * Gets the van der Waals radius of the given atom following the values defined by * Chothia ( 1976 ) J . Mol . Biol . 105,1-14 * NOTE : the vdw values defined by the paper assume no Hydrogens and thus " inflates " * slightly the heavy atoms to account for Hydrogens . Thus this met...
if ( atom . getElement ( ) == null ) { logger . warn ( "Unrecognised atom " + atom . getName ( ) + " with serial " + atom . getPDBserial ( ) + ", assigning the default vdw radius (Nitrogen vdw radius)." ) ; return Element . N . getVDWRadius ( ) ; } Group res = atom . getGroup ( ) ; if ( res == null ) { logger . warn ( ...
public class TrivialClassCreationBenchmark { /** * Performs a benchmark for a trivial class creation using javassist proxies . * @ return The created instance , in order to avoid JIT removal . */ @ Benchmark public Class < ? > benchmarkJavassist ( ) { } }
ProxyFactory proxyFactory = new ProxyFactory ( ) { protected ClassLoader getClassLoader ( ) { return newClassLoader ( ) ; } } ; proxyFactory . setUseCache ( false ) ; proxyFactory . setUseWriteReplace ( false ) ; proxyFactory . setSuperclass ( baseClass ) ; proxyFactory . setFilter ( new MethodFilter ( ) { public boole...
public class BulkIterationNode { /** * Sets the nextPartialSolution for this BulkIterationNode . * @ param nextPartialSolution The nextPartialSolution to set . */ public void setNextPartialSolution ( OptimizerNode nextPartialSolution , OptimizerNode terminationCriterion ) { } }
// check if the root of the step function has the same parallelism as the iteration // or if the step function has any operator at all if ( nextPartialSolution . getParallelism ( ) != getParallelism ( ) || nextPartialSolution == partialSolution || nextPartialSolution instanceof BinaryUnionNode ) { // add a no - op to t...
public class CobolStringType { /** * { @ inheritDoc } */ public boolean isValid ( Class < T > javaClass , CobolContext cobolContext , byte [ ] hostData , int start ) { } }
int hostBytesLen = getBytesLen ( charNum ) ; // Is buffer large enough to contain this type ? // TODO last field in a record might be truncated if all low - values or // spaces if ( hostData . length < start + hostBytesLen ) { return false ; } if ( javaClass . equals ( String . class ) ) { return isValidString ( cobolC...
public class ComputeKNNOutlierScores { /** * Iterate over the k range . * @ param prefix Prefix string * @ param mink Minimum value of k for this method * @ param maxk Maximum value of k for this method * @ param runner Runner to run * @ param out Output function */ private void runForEachK ( String prefix , ...
if ( isDisabled ( prefix ) ) { LOG . verbose ( "Skipping (disabled): " + prefix ) ; return ; // Disabled } LOG . verbose ( "Running " + prefix ) ; final int digits = ( int ) FastMath . ceil ( FastMath . log10 ( krange . getMax ( ) + 1 ) ) ; final String format = "%s-%0" + digits + "d" ; krange . forEach ( k -> { if ( k...
public class ClassLoaderUtil { /** * Load all resources with a given name , potentially aggregating all results * from the searched classloaders . If no results are found , the resource * name is prepended by ' / ' and tried again . * This method will try to load the resources using the following methods * ( in...
AggregateIterator < URL > iterator = new AggregateIterator < URL > ( ) ; iterator . addEnumeration ( Thread . currentThread ( ) . getContextClassLoader ( ) . getResources ( resourceName ) ) ; if ( ! iterator . hasNext ( ) || aggregate ) { iterator . addEnumeration ( ClassLoaderUtil . class . getClassLoader ( ) . getRes...
public class WebDriverTool { /** * Delegates to { @ link # findElement ( By ) } and then calls * { @ link WebElement # getCssValue ( String ) getAttribute ( String ) } on the returned element . * @ param by * the { @ link By } used to locate the element * @ param propertyName * the name of the CSS property ...
WebElement element = findElement ( by ) ; return element . getCssValue ( propertyName ) ;
public class EsMarshalling { /** * Unmarshals the given map source into a bean . * @ param source the source * @ return the plan version summary */ public static PlanVersionSummaryBean unmarshallPlanVersionSummary ( Map < String , Object > source ) { } }
if ( source == null ) { return null ; } PlanVersionSummaryBean bean = new PlanVersionSummaryBean ( ) ; bean . setDescription ( asString ( source . get ( "planDescription" ) ) ) ; bean . setId ( asString ( source . get ( "planId" ) ) ) ; bean . setName ( asString ( source . get ( "planName" ) ) ) ; bean . setOrganizatio...
public class RegistrationManagerImpl { /** * { @ inheritDoc } */ @ Override public void updateService ( ProvidedServiceInstance serviceInstance ) throws ServiceException { } }
if ( ! isStarted ) { ServiceDirectoryError error = new ServiceDirectoryError ( ErrorCode . SERVICE_DIRECTORY_MANAGER_FACTORY_CLOSED ) ; throw new ServiceException ( error ) ; } if ( serviceInstance == null ) { throw new IllegalArgumentException ( "The ServiceInstance can not be null." ) ; } ErrorCode code = ServiceInst...
public class AponReader { /** * Converts to a Parameters object from a file . * @ param file the file to parse * @ param encoding the character encoding * @ return the Parameters object * @ throws AponParseException if reading APON format document fails */ public static Parameters parse ( File file , String enc...
if ( file == null ) { throw new IllegalArgumentException ( "file must not be null" ) ; } Parameters parameters = new VariableParameters ( ) ; return parse ( file , encoding , parameters ) ;
public class gslbvserver { /** * Use this API to update gslbvserver resources . */ public static base_responses update ( nitro_service client , gslbvserver resources [ ] ) throws Exception { } }
base_responses result = null ; if ( resources != null && resources . length > 0 ) { gslbvserver updateresources [ ] = new gslbvserver [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new gslbvserver ( ) ; updateresources [ i ] . name = resources [ i ] . name ; updater...
public class AipEasyDL { /** * easyDL通用请求方法 * @ param url 服务的url * @ param image 图片二进制数据 * @ param options 可选参数 * @ return Json返回 */ public JSONObject sendImageRequest ( String url , byte [ ] image , HashMap < String , Object > options ) { } }
AipRequest request = new AipRequest ( ) ; preOperation ( request ) ; String content = Base64Util . encode ( image ) ; request . addBody ( "image" , content ) ; if ( options != null ) { request . addBody ( options ) ; } request . setUri ( url ) ; request . addHeader ( Headers . CONTENT_ENCODING , HttpCharacterEncoding ....
public class MP3FileID3Controller { /** * Returns the track of this mp3 if set and the empty string if not . * @ return the track of this mp3 * @ exception ID3v2FormatException if the data of this field is incorrect */ public String getTrack ( int type ) { } }
if ( allow ( type & ID3V1 ) ) { return Integer . toString ( id3v1 . getTrack ( ) ) ; } if ( allow ( type & ID3V2 ) ) { return id3v2 . getFrameDataString ( ID3v2Frames . TRACK_NUMBER ) ; } return null ;
public class XmlParserBase { /** * Parse content that is known to be a resource */ @ Override public Resource parse ( InputStream input ) throws IOException , FHIRFormatError { } }
try { XmlPullParser xpp = loadXml ( input ) ; return parse ( xpp ) ; } catch ( XmlPullParserException e ) { throw new FHIRFormatError ( e . getMessage ( ) , e ) ; }
public class HttpSupport { /** * Sends long to live cookie to browse with response . This cookie will be asked to live for 20 years . * @ param name name of cookie * @ param value value of cookie . */ public void sendPermanentCookie ( String name , String value ) { } }
Cookie cookie = new Cookie ( name , value ) ; cookie . setMaxAge ( 60 * 60 * 24 * 365 * 20 ) ; RequestContext . getHttpResponse ( ) . addCookie ( Cookie . toServletCookie ( cookie ) ) ;
public class VatIdValidator { /** * check the VAT identification number , country version for Sweden . * @ param pvatId vat id to check * @ return true if checksum is ok */ private boolean checkSeVatId ( final String pvatId ) { } }
final int checkSum = pvatId . charAt ( 11 ) - '0' ; final int sum = squareSum ( ( pvatId . charAt ( 2 ) - '0' ) * 2 ) + pvatId . charAt ( 3 ) - '0' + squareSum ( ( pvatId . charAt ( 4 ) - '0' ) * 2 ) + pvatId . charAt ( 5 ) - '0' + squareSum ( ( pvatId . charAt ( 6 ) - '0' ) * 2 ) + pvatId . charAt ( 7 ) - '0' + square...
public class AbstractDestinationHandler { /** * / * ( non - Javadoc ) * @ see com . ibm . ws . sib . processor . impl . interfaces . DestinationHandler # getDestinationManager ( ) */ public DestinationManager getDestinationManager ( ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getDestinationManager" ) ; SibTr . exit ( tc , "getDestinationManager" , destinationManager ) ; } return destinationManager ;
public class MultiIndex { /** * Create index . * @ param iterator * the NodeDataIndexing iterator * @ param rootNode * the root node of the index * @ param count * the number of nodes already indexed . * @ throws IOException * if an error occurs while writing to the index . * @ throws RepositoryExcept...
for ( NodeDataIndexing node : iterator . next ( ) ) { processed . incrementAndGet ( ) ; if ( stopped . get ( ) || Thread . interrupted ( ) ) { throw new InterruptedException ( ) ; } if ( indexingTree . isExcluded ( node ) ) { continue ; } if ( ! node . getQPath ( ) . isDescendantOf ( rootNode . getQPath ( ) ) && ! node...
public class GapStatistic { /** * { @ inheritDoc } */ public Assignments cluster ( Matrix matrix , Properties props ) { } }
return cluster ( matrix , Integer . MAX_VALUE , props ) ;
public class UserInfo { /** * Is this a valid user property ? . */ public boolean validUserProperty ( String strProperty ) { } }
if ( DBParams . FRAMES . equalsIgnoreCase ( strProperty ) ) return true ; if ( DBParams . MENUBARS . equalsIgnoreCase ( strProperty ) ) return true ; if ( DBParams . NAVMENUS . equalsIgnoreCase ( strProperty ) ) return true ; if ( DBParams . JAVA . equalsIgnoreCase ( strProperty ) ) return true ; if ( DBParams . BANNER...
public class DynamicPooledExecutor { /** * Executes a set of commands and waits until all commands have been * executed . The results of the commands are returned in the same order as * the commands . * @ param commands the commands to execute . * @ return the results . */ public Result [ ] executeAndWait ( Com...
Result [ ] results = new Result [ commands . length ] ; if ( numProcessors == 1 ) { // optimize for one processor for ( int i = 0 ; i < commands . length ; i ++ ) { Object obj = null ; InvocationTargetException ex = null ; try { obj = commands [ i ] . call ( ) ; } catch ( Exception e ) { ex = new InvocationTargetExcept...
public class KltTracker { /** * Returns true if the features is entirely enclosed inside of the image . */ public boolean isFullyInside ( float x , float y ) { } }
if ( x < allowedLeft || x > allowedRight ) return false ; if ( y < allowedTop || y > allowedBottom ) return false ; return true ;
public class RetireJSDataSource { /** * Downloads the current RetireJS data source . * @ return returns false as no updates are made to the database that would * require compaction * @ throws UpdateException thrown if the update failed */ @ Override public boolean update ( Engine engine ) throws UpdateException {...
this . settings = engine . getSettings ( ) ; String url = null ; try { final boolean autoupdate = settings . getBoolean ( Settings . KEYS . AUTO_UPDATE , true ) ; final boolean enabled = settings . getBoolean ( Settings . KEYS . ANALYZER_RETIREJS_ENABLED , true ) ; final File repoFile = new File ( settings . getDataDir...
public class UpdateBranchRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( UpdateBranchRequest updateBranchRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( updateBranchRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( updateBranchRequest . getAppId ( ) , APPID_BINDING ) ; protocolMarshaller . marshall ( updateBranchRequest . getBranchName ( ) , BRANCHNAME_BINDING ) ; protocolMarsh...
public class GZIPChannel { /** * Changes uncompressed position . Only forward direction is allowed with * small skips . This method is for alignment purposes mostly . * @ param newPosition * @ return * @ throws IOException */ @ Override public GZIPChannel position ( long newPosition ) throws IOException { } }
int skip = ( int ) ( newPosition - position ( ) ) ; if ( skip < 0 ) { throw new UnsupportedOperationException ( "backwards position not supported" ) ; } if ( skip > skipBuffer . capacity ( ) ) { throw new UnsupportedOperationException ( skip + " skip not supported maxSkipSize=" + maxSkipSize ) ; } if ( skip > 0 ) { if ...
public class SecurityUtils { /** * Sets the authentication attribute in the current request . * @ param authentication the authentication object to set as request attribute */ public static void setCurrentAuthentication ( Authentication authentication ) { } }
RequestContext context = RequestContext . getCurrent ( ) ; if ( context != null ) { setAuthentication ( context . getRequest ( ) , authentication ) ; }
public class StringFixture { /** * Determines length of string . * @ param value value to determine length of * @ return length of value */ public int lengthOf ( String value ) { } }
int length = 0 ; if ( value != null ) { length = value . length ( ) ; } return length ;
public class ConstructorWriterImpl { /** * { @ inheritDoc } */ @ Override public Content getConstructorDetails ( Content constructorDetailsTree ) { } }
if ( configuration . allowTag ( HtmlTag . SECTION ) ) { HtmlTree htmlTree = HtmlTree . SECTION ( getMemberTree ( constructorDetailsTree ) ) ; return htmlTree ; } return getMemberTree ( constructorDetailsTree ) ;
public class RLSSuspendTokenManager { /** * Registers that a suspend call has been made on the RecoveryLogService and generates * a unique RLSSuspendToken which must be passed in to registerResume to cancel this * suspend operation * @ param timeout the value in seconds in which a corresponding resume call is exp...
if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "registerSuspend" , new Integer ( timeout ) ) ; // Generate the suspend token // RLSSuspendToken token = new RLSSuspendTokenImpl ( ) ; RLSSuspendToken token = Configuration . getRecoveryLogComponent ( ) . createRLSSuspendToken ( null ) ; // Alarm reference Alarm alarm = ...
public class CompositeResourceBundle { /** * ( non - Javadoc ) * @ see net . jawr . web . resource . bundle . JoinableResourceBundleImpl # * createBundlePathMappingBuilder ( java . lang . String , * net . jawr . web . resource . handler . reader . ResourceReaderHandler , * net . jawr . web . resource . bundle ....
return new CompositeBundlePathMappingBuilder ( this , fileExtension , generatorRegistry , resourceReaderHandler ) ;
public class CommerceAccountOrganizationRelPersistenceImpl { /** * Returns the commerce account organization rels before and after the current commerce account organization rel in the ordered set where commerceAccountId = & # 63 ; . * @ param commerceAccountOrganizationRelPK the primary key of the current commerce ac...
CommerceAccountOrganizationRel commerceAccountOrganizationRel = findByPrimaryKey ( commerceAccountOrganizationRelPK ) ; Session session = null ; try { session = openSession ( ) ; CommerceAccountOrganizationRel [ ] array = new CommerceAccountOrganizationRelImpl [ 3 ] ; array [ 0 ] = getByCommerceAccountId_PrevAndNext ( ...
public class AbstractBean { /** * Creates a new instance of the PropertyChangeEvent initialized with this Bean as the source as well as the * name of the property that is changing along with the property ' s old and new values . A PropertyChangeEvent * will be created only if event dispatching to registered listene...
if ( isEventDispatchEnabled ( ) ) { if ( vetoableChangeSupport . hasListeners ( propertyName ) || propertyChangeSupport . hasListeners ( propertyName ) ) { return new PropertyChangeEvent ( this , propertyName , oldValue , newValue ) ; } } return this . propertyChangeEvent ;
public class FeaturableModel { /** * Get all with that require an injected service . * @ param object The object which requires injected services . * @ return The field requiring injected services . */ private static List < Field > getServiceFields ( Object object ) { } }
final List < Field > toInject = new ArrayList < > ( ) ; Class < ? > clazz = object . getClass ( ) ; while ( clazz != null ) { final Field [ ] fields = clazz . getDeclaredFields ( ) ; final int length = fields . length ; for ( int i = 0 ; i < length ; i ++ ) { final Field field = fields [ i ] ; if ( field . isAnnotation...
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EClass getBandImageRG ( ) { } }
if ( bandImageRGEClass == null ) { bandImageRGEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 426 ) ; } return bandImageRGEClass ;
public class StaticIntGenerator { /** * Compute the minimum and maximum . */ private void updateMinMax ( ) { } }
if ( values . length == 0 ) { return ; // Keep invalid . } min = max = values [ 0 ] ; for ( int i = 1 ; i < values . length ; i ++ ) { int v = values [ i ] ; min = min < v ? min : v ; max = max > v ? max : v ; }
public class Purge { /** * Takes the properties supplied and updates the dependency - check settings . * Additionally , this sets the system properties required to change the * proxy server , port , and connection timeout . * @ throws BuildException thrown if the properties file cannot be read . */ protected void...
settings = new Settings ( ) ; try ( InputStream taskProperties = this . getClass ( ) . getClassLoader ( ) . getResourceAsStream ( PROPERTIES_FILE ) ) { settings . mergeProperties ( taskProperties ) ; } catch ( IOException ex ) { final String msg = "Unable to load the dependency-check ant task.properties file." ; if ( t...
public class AmazonRoute53Client { /** * Returns the current status of a change batch request . The status is one of the following values : * < ul > * < li > * < code > PENDING < / code > indicates that the changes in this request have not propagated to all Amazon Route 53 DNS * servers . This is the initial st...
request = beforeClientExecution ( request ) ; return executeGetChange ( request ) ;
public class SynchronizationPoint { /** * Send the given top level stream element and wait for a response . * @ param request the plain stream element to send . * @ throws NoResponseException if no response was received . * @ throws NotConnectedException if the connection is not connected . * @ throws Interrupt...
assert ( state == State . Initial ) ; connectionLock . lock ( ) ; try { if ( request != null ) { if ( request instanceof Stanza ) { connection . sendStanza ( ( Stanza ) request ) ; } else if ( request instanceof Nonza ) { connection . sendNonza ( ( Nonza ) request ) ; } else { throw new IllegalStateException ( "Unsuppo...
public class DefaultWhenVertx { /** * Deploy a verticle programmatically * @ param name The verticle identifier * @ return A promise for the deployment id */ @ Override public Promise < String > deployVerticle ( String name ) { } }
return adapter . toPromise ( handler -> vertx . deployVerticle ( name , handler ) ) ;
public class Widget { /** * Execute a { @ link Runnable } on the GL thread . If this method is called * from the GL thread , the { @ code Runnable } is executed immediately ; * otherwise , the { @ code Runnable } will be executed in the next frame . * This differs from { @ link GVRContext # runOnGlThread ( Runnab...
getGVRContext ( ) . runOnGlThread ( new Runnable ( ) { public void run ( ) { FPSCounter . timeCheck ( "runOnGlThread <START>: " + r ) ; r . run ( ) ; FPSCounter . timeCheck ( "runOnGlThread <END>: " + r ) ; } } ) ;
public class PresetSettingsMarshaller { /** * Marshall the given parameter object . */ public void marshall ( PresetSettings presetSettings , ProtocolMarshaller protocolMarshaller ) { } }
if ( presetSettings == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( presetSettings . getAudioDescriptions ( ) , AUDIODESCRIPTIONS_BINDING ) ; protocolMarshaller . marshall ( presetSettings . getCaptionDescriptions ( ) , CAPTIONDESCRIPTION...
public class AwsJobExecutionsRolloutConfigMarshaller { /** * Marshall the given parameter object . */ public void marshall ( AwsJobExecutionsRolloutConfig awsJobExecutionsRolloutConfig , ProtocolMarshaller protocolMarshaller ) { } }
if ( awsJobExecutionsRolloutConfig == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( awsJobExecutionsRolloutConfig . getMaximumPerMinute ( ) , MAXIMUMPERMINUTE_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to ...
public class JSType { /** * Returns the template type argument in this type ' s map corresponding to the supertype ' s template * parameter , or the UNKNOWN _ TYPE if the supertype template key is not present . * < p > Note : this only supports arguments that have a singleton list of template keys , and will * th...
TemplateType templateType = Iterables . getOnlyElement ( supertype . getTemplateTypeMap ( ) . getTemplateKeys ( ) ) ; return getTemplateTypeMap ( ) . getResolvedTemplateType ( templateType ) ;
public class Jpa20BeanManager { /** * Get a specific instance of a particular schema type with its basic properties initialized . * The direct , but no further , successors that references this bean will also be * fetched and initalized with their direct , but no further , predecessors . * Fetching 1.1.2 in the e...
try { if ( ! begin ( ) ) { return new HashMap < > ( ) ; } Set < BeanId > ids = new HashSet < > ( ) ; for ( Bean bean : beans ) { ids . add ( bean . getId ( ) ) ; } Set < Bean > beansToValidate = JpaBean . getBeanToValidate ( ids ) ; commit ( ) ; return uniqueIndex ( beansToValidate ) ; } catch ( AbortRuntimeException e...
public class TransactionalProtocolOperationHandler { /** * Send an operation response . * @ param context the request context * @ param responseType the response type * @ param response the operation response * @ throws java . io . IOException for any error */ static void sendResponse ( final ManagementRequestC...
// WFLY - 3090 Protect the communication channel from getting closed due to administrative // cancellation of the management op by using a separate thread to send final CountDownLatch latch = new CountDownLatch ( 1 ) ; final IOExceptionHolder exceptionHolder = new IOExceptionHolder ( ) ; boolean accepted = context . ex...
public class ResponseOf { /** * Apply to servlet response . * @ param sresp Servlet response * @ throws IOException If fails */ public void applyTo ( final HttpServletResponse sresp ) throws IOException { } }
final Iterator < String > head = this . rsp . head ( ) . iterator ( ) ; final Matcher matcher = ResponseOf . HTTP_MATCHER . matcher ( head . next ( ) ) ; if ( matcher . matches ( ) ) { sresp . setStatus ( Integer . parseInt ( matcher . group ( 1 ) ) ) ; while ( head . hasNext ( ) ) { ResponseOf . applyHeader ( sresp , ...
public class Normalize { /** * Normalize the values of the { @ code Matrix } by using the Pearson * correlation . This will give values between - 1 and 1 . If { @ code * saveNegatives } is is { @ code true } , negative correlations will be saved , * and otherwise they are reduced to zero . * @ param m The { @ c...
double totalSum = 0 ; // Generate the total value in each row and column . double [ ] rowSums = new double [ m . rows ( ) ] ; double [ ] colSums = new double [ m . columns ( ) ] ; for ( int i = 0 ; i < m . rows ( ) ; ++ i ) { for ( int j = 0 ; j < m . columns ( ) ; ++ j ) { totalSum += m . get ( i , j ) ; colSums [ j ]...
public class RtfFont { /** * Sets the RtfDocument this RtfFont belongs to * @ param doc The RtfDocument to use */ public void setRtfDocument ( RtfDocument doc ) { } }
this . document = doc ; if ( document != null ) { this . fontNumber = document . getDocumentHeader ( ) . getFontNumber ( this ) ; } if ( this . color != null ) { this . color . setRtfDocument ( this . document ) ; }
public class AnnotationGroupConverter { /** * { @ inheritDoc } */ @ Override public XBELAnnotationGroup convert ( AnnotationGroup source ) { } }
if ( source == null ) return null ; List < Annotation > annotations = source . getAnnotations ( ) ; Citation citation = source . getCitation ( ) ; Evidence evidence = source . getEvidence ( ) ; XBELAnnotationGroup xag = new XBELAnnotationGroup ( ) ; List < Object > list = xag . getAnnotationOrEvidenceOrCitation ( ) ; i...
public class ApiUrl { /** * Create the ID based URL portion * @ param params The parameters for the method * @ return Builder object */ private StringBuilder idProcessing ( final TmdbParameters params ) { } }
StringBuilder urlString = new StringBuilder ( ) ; // Append the ID if ( params . has ( Param . ID ) ) { urlString . append ( "/" ) . append ( params . get ( Param . ID ) ) ; } if ( params . has ( Param . SEASON_NUMBER ) ) { urlString . append ( "/season/" ) . append ( params . get ( Param . SEASON_NUMBER ) ) ; } if ( p...
public class Slf4jLoggerBackend { /** * Adapts the JUL level to SLF4J level per the below mapping : * < table > * < tr > * < th > JUL < / th > * < th > SLF4J < / th > * < / tr > * < tr > * < td > FINEST < / td > < td > TRACE < / td > * < / tr > < tr > * < td > FINER < / td > < td > TRACE < / td > * ...
// Performance consideration : mapToSlf4jLogLevel is a very hot method , called even when // logging is disabled . Allocations ( and other latency - introducing constructs ) should be avoided int requestedLevel = level . intValue ( ) ; // Flogger shouldn ' t allow ALL or OFF to be used for logging // if Flogger does ad...
public class JmsJMSContextImpl { /** * ( non - Javadoc ) * @ see javax . jms . JMSContext # acknowledge ( ) */ @ Override public void acknowledge ( ) throws IllegalStateRuntimeException , JMSRuntimeException { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "acknowledge" ) ; try { if ( jmsSession == null ) { IllegalStateException ise = ( javax . jms . IllegalStateException ) JmsErrorUtils . newThrowable ( javax . jms . IllegalStateException . class , "INVALID_FOR_UNCONSU...
public class ProcessingConfiguration { /** * The data processors . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setProcessors ( java . util . Collection ) } or { @ link # withProcessors ( java . util . Collection ) } if you want to * override the existin...
if ( this . processors == null ) { setProcessors ( new java . util . ArrayList < Processor > ( processors . length ) ) ; } for ( Processor ele : processors ) { this . processors . add ( ele ) ; } return this ;
public class Widget { /** * Set the ( optional ) name of the { @ link Widget } . { @ code Widget } names are * not needed : they are only for the application ' s convenience . */ public void setName ( String name ) { } }
mName = name ; if ( mSceneObject != null ) { mSceneObject . setName ( name ) ; }
public class OracleNoSQLClient { /** * Execute . * @ param batches * the batches */ private void execute ( Map < Key , List < TableOperation > > batches ) { } }
if ( batches != null && ! batches . isEmpty ( ) ) { try { for ( List < TableOperation > batch : batches . values ( ) ) { tableAPI . execute ( batch , null ) ; } } catch ( DurabilityException e ) { log . error ( "Error while executing operations in OracleNOSQL, Caused by:" + e + "." ) ; throw new PersistenceException ( ...
public class ConnectionMonitorsInner { /** * Create or update a connection monitor . * @ param resourceGroupName The name of the resource group containing Network Watcher . * @ param networkWatcherName The name of the Network Watcher resource . * @ param connectionMonitorName The name of the connection monitor . ...
return beginCreateOrUpdateWithServiceResponseAsync ( resourceGroupName , networkWatcherName , connectionMonitorName , parameters ) . map ( new Func1 < ServiceResponse < ConnectionMonitorResultInner > , ConnectionMonitorResultInner > ( ) { @ Override public ConnectionMonitorResultInner call ( ServiceResponse < Connectio...
public class ApiImplementor { /** * Tells whether or not the given { @ code method } should be ignored , thus not included in the ZAP API . * Checks if the given { @ code method } has been annotated with { @ code ZapApiIgnore } or if it ' s not public , if any of the * conditions is { @ code true } the { @ code met...
return method . getAnnotation ( ZapApiIgnore . class ) != null || ! Modifier . isPublic ( method . getModifiers ( ) ) ;
public class ProvFactory { /** * A factory method to create an instance of a start { @ link WasStartedBy } * @ param id * @ return an instance of { @ link WasStartedBy } */ public WasStartedBy newWasStartedBy ( QualifiedName id ) { } }
WasStartedBy res = of . createWasStartedBy ( ) ; res . setId ( id ) ; return res ;
public class GlobalSecondaryIndexMarshaller { /** * Marshall the given parameter object . */ public void marshall ( GlobalSecondaryIndex globalSecondaryIndex , ProtocolMarshaller protocolMarshaller ) { } }
if ( globalSecondaryIndex == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( globalSecondaryIndex . getIndexName ( ) , INDEXNAME_BINDING ) ; protocolMarshaller . marshall ( globalSecondaryIndex . getKeySchema ( ) , KEYSCHEMA_BINDING ) ; prot...
public class SoftHashSet { /** * Rehashes the contents of this map into a new < tt > HashMap < / tt > instance * with a larger capacity . This method is called automatically when the * number of keys in this map exceeds its capacity and load factor . */ private void rehash ( ) { } }
int oldCapacity = mTable . length ; Entry oldSet [ ] = mTable ; int newCapacity = oldCapacity * 2 + 1 ; Entry newSet [ ] = new Entry [ newCapacity ] ; mModCount ++ ; mThreshold = ( int ) ( newCapacity * mLoadFactor ) ; mTable = newSet ; for ( int i = oldCapacity ; i -- > 0 ; ) { for ( Entry old = oldSet [ i ] ; old != ...
public class HBaseQueueClientFactory { /** * Helper method to select the queue or stream admin , and to ensure it ' s table exists . * @ param queueName name of the queue to be opened . * @ return the queue admin for that queue . * @ throws java . io . IOException */ private HBaseQueueAdmin ensureTableExists ( Qu...
HBaseQueueAdmin admin = queueAdmin ; try { if ( ! admin . exists ( queueName ) ) { admin . create ( queueName ) ; } } catch ( Exception e ) { throw new IOException ( "Failed to open table " + admin . getActualTableName ( queueName ) , e ) ; } return admin ;
public class DevAppServerArgs { /** * Returns { @ code [ - - name = value1 , - - name = value2 , . . . ] } or { @ code [ ] } if value = null . */ public static List < String > get ( String name , @ Nullable List < String > values ) { } }
return Args . stringsWithEq ( name , values ) ;
public class WebHookManager { /** * Fire the event to the registered listeners . * @ param event the Event instance to fire to the registered event listeners * @ throws GitLabApiException if the event is not supported */ public void fireEvent ( Event event ) throws GitLabApiException { } }
switch ( event . getObjectKind ( ) ) { case BuildEvent . OBJECT_KIND : fireBuildEvent ( ( BuildEvent ) event ) ; break ; case IssueEvent . OBJECT_KIND : fireIssueEvent ( ( IssueEvent ) event ) ; break ; case MergeRequestEvent . OBJECT_KIND : fireMergeRequestEvent ( ( MergeRequestEvent ) event ) ; break ; case NoteEvent...
public class KratiDataStore { /** * java - Xmx4G krati . examples . KratiDataStore homeDir initialCapacity */ public static void main ( String [ ] args ) { } }
try { // Parse arguments : homeDir keyCount File homeDir = new File ( args [ 0 ] ) ; int initialCapacity = Integer . parseInt ( args [ 1 ] ) ; // Create an instance of Krati DataStore KratiDataStore store = new KratiDataStore ( homeDir , initialCapacity ) ; // Populate data store store . populate ( ) ; // Perform some ...
public class ProxyBranchImpl { /** * ( non - Javadoc ) * @ see javax . servlet . sip . ProxyBranch # cancel ( java . lang . String [ ] , int [ ] , java . lang . String [ ] ) */ public void cancel ( String [ ] protocol , int [ ] reasonCode , String [ ] reasonText ) { } }
if ( proxy . getAckReceived ( ) ) throw new IllegalStateException ( "There has been an ACK received on this branch. Can not cancel." ) ; try { cancelTimer ( ) ; if ( this . isStarted ( ) && ! canceled && ! timedOut && ( outgoingRequest . getMethod ( ) . equalsIgnoreCase ( Request . INVITE ) || // https : / / code . goo...
public class AbstractMappingStrategy { /** * Creates a new instance of an AGI script . * @ param className Class name of the AGI script . The class must implement * { @ link AgiScript } . * @ return the created instance of the AGI script class . If the instance * can ' t be created an error is logged and < code...
Class < ? > tmpClass ; Class < AgiScript > agiScriptClass ; Constructor < AgiScript > constructor ; AgiScript agiScript ; agiScript = null ; try { tmpClass = getClassLoader ( ) . loadClass ( className ) ; } catch ( ClassNotFoundException e1 ) { logger . debug ( "Unable to create AgiScript instance of type " + className...
public class AccessBallCommand { /** * { @ inheritDoc } */ @ Override public void perform ( final Wave wave ) { } }
final JRebirthEvent event = wave . get ( EditorWaves . EVENT ) ; final BallModel targetBallModel = getModel ( BallModel . class , event ) ; targetBallModel . access ( ) ; // getModel ( EditorModel . class ) . unregisterBall ( targetBallModel ) ;
public class SOD { /** * Performs the SOD algorithm on the given database . * @ param relation Data relation to process * @ return Outlier result */ public OutlierResult run ( Relation < V > relation ) { } }
SimilarityQuery < V > snnInstance = similarityFunction . instantiate ( relation ) ; FiniteProgress progress = LOG . isVerbose ( ) ? new FiniteProgress ( "Assigning Subspace Outlier Degree" , relation . size ( ) , LOG ) : null ; WritableDoubleDataStore sod_scores = DataStoreUtil . makeDoubleStorage ( relation . getDBIDs...
public class AbstractServerDetector { /** * Check for the existence of a certain MBean . All known MBeanServers are queried * @ param pMBeanServerExecutor mbean servers to query for * @ param pMbeanPattern MBean name pattern for MBeans to check for * @ return set of { @ link ObjectName } s if the pattern matches ...
try { ObjectName oName = new ObjectName ( pMbeanPattern ) ; return pMBeanServerExecutor . queryNames ( oName ) ; } catch ( MalformedObjectNameException e ) { return new HashSet < ObjectName > ( ) ; } catch ( IOException e ) { return new HashSet < ObjectName > ( ) ; }
public class Async { /** * Pauses a queue . A paused queue stops delivering commands to listeners . It still can accumulate commands . * @ param queueName queue name . */ public void pause ( String queueName ) { } }
try { getQueueControl ( queueName ) . pause ( ) ; } catch ( Exception e ) { throw new AsyncException ( e ) ; }
public class ClipBuffer { /** * Frees up the internal audio buffers associated with this clip . */ public void dispose ( ) { } }
if ( _buffer != null ) { // if there are sources bound to this buffer , we must wait // for them to be unbound if ( _bound > 0 ) { _state = UNLOADING ; return ; } // free up our buffer _buffer . delete ( ) ; _buffer = null ; _state = UNLOADED ; }
public class CmsSolrIndexWriter { /** * Adds Solr documents to the index for the { @ link I _ CmsSearchDocument } . * Documents for serial dates are added for each occurrence once with the date of the respective occurrence . * @ param document the document for the indexed resource * @ throws SolrServerException t...
List < String > serialDates = document . getMultivaluedFieldAsStringList ( CmsSearchField . FIELD_SERIESDATES ) ; SolrInputDocument inputDoc = ( SolrInputDocument ) document . getDocument ( ) ; String id = inputDoc . getFieldValue ( CmsSearchField . FIELD_ID ) . toString ( ) ; if ( null != serialDates ) { // NOTE : We ...
public class ClassWriter { /** * Returns the equivalent of the given class file , with the ASM specific instructions replaced * with standard ones . This is done with a ClassReader - & gt ; ClassWriter round trip . * @ param classFile a class file containing ASM specific instructions , generated by this * ClassWr...
Attribute [ ] attributes = getAttributePrototypes ( ) ; firstField = null ; lastField = null ; firstMethod = null ; lastMethod = null ; firstAttribute = null ; compute = hasFrames ? MethodWriter . COMPUTE_INSERTED_FRAMES : MethodWriter . COMPUTE_NOTHING ; return toByteArray ( ) ;
public class ApacheHTTPSender { /** * { @ inheritDoc } */ @ SuppressWarnings ( "deprecation" ) public void destroy ( ) { } }
lock . lock ( ) ; try { if ( httpClient != null ) { httpClient . getConnectionManager ( ) . shutdown ( ) ; } } finally { cfg = null ; httpClient = null ; lock . unlock ( ) ; }
public class ValidateAccessToken { /** * query for access token info and set it into the request context * and return the scope of current token . * @ return the scope of the request or empty * if no token string is provided . */ private static Single < Optional < String > > fetchAccessTokenAndReturnScope ( UnitR...
LOG . info ( "fetchAccessTokenAndReturnScope" ) ; String ip = request . getContext ( ) . getIp ( ) ; if ( StringUtil . isEmpty ( ip ) ) { throw new IllegalArgumentException ( "Client's ip is empty, please check!" ) ; } if ( isWhiteIp ( ip ) ) { LOG . info ( new JSONObject ( ) . fluentPut ( "type" , LogTypeGateway . whi...
public class Database { public void deleteClassPipe ( String className , String pipeName ) throws DevFailed { } }
databaseDAO . deleteClassPipe ( this , className , pipeName ) ;
public class ScreenIn { /** * Set up the key areas . */ public void setupKeys ( ) { } }
KeyAreaInfo keyArea = null ; keyArea = new KeyAreaInfo ( this , Constants . UNIQUE , ID_KEY ) ; keyArea . addKeyField ( ID , Constants . ASCENDING ) ; keyArea = new KeyAreaInfo ( this , Constants . NOT_UNIQUE , SCREEN_IN_PROG_NAME_KEY ) ; keyArea . addKeyField ( SCREEN_IN_PROG_NAME , Constants . ASCENDING ) ; keyArea ....
public class ComponentDocumentationBuilder { /** * Used to convert an image object to buffered image . Used in * { @ link ComponentDocumentationWrapper # getIconSrc ( int ) } * @ param image * @ return buffered image */ public static BufferedImage toBufferedImage ( final Image image ) { } }
if ( image instanceof BufferedImage ) { return ( BufferedImage ) image ; } // Create a buffered image with transparency final BufferedImage bufferedImage = new BufferedImage ( image . getWidth ( null ) , image . getHeight ( null ) , BufferedImage . TYPE_INT_ARGB ) ; final Graphics2D bufferedGraphics = bufferedImage . c...
public class CPRuleUserSegmentRelLocalServiceUtil { /** * Creates a new cp rule user segment rel with the primary key . Does not add the cp rule user segment rel to the database . * @ param CPRuleUserSegmentRelId the primary key for the new cp rule user segment rel * @ return the new cp rule user segment rel */ pub...
return getService ( ) . createCPRuleUserSegmentRel ( CPRuleUserSegmentRelId ) ;
public class DateTimeFormatter { /** * Returns a copy of this formatter with a new set of resolver fields . * This returns a formatter with similar state to this formatter but with * the resolver fields set . By default , a formatter has no resolver fields . * Changing the resolver fields only has an effect durin...
Set < TemporalField > fields = null ; if ( resolverFields != null ) { fields = Collections . unmodifiableSet ( new HashSet < > ( Arrays . asList ( resolverFields ) ) ) ; } if ( Objects . equals ( this . resolverFields , fields ) ) { return this ; } return new DateTimeFormatter ( printerParser , locale , decimalStyle , ...
public class RangeSelectorHelper { /** * restore the index of the last long pressed index * IMPORTANT ! Call this method only after all items where added to the adapters again . Otherwise it may select wrong items ! * @ param savedInstanceState If the activity is being re - initialized after * previously being sh...
if ( savedInstanceState != null && savedInstanceState . containsKey ( BUNDLE_LAST_LONG_PRESS + prefix ) ) mLastLongPressIndex = savedInstanceState . getInt ( BUNDLE_LAST_LONG_PRESS + prefix ) ; return this ;
public class CharSequenceScanner { /** * This method gets the tail of this scanner without changing the state . * @ return the tail of this scanner . */ protected String getTail ( ) { } }
String tail = "" ; if ( this . offset < this . limit ) { tail = new String ( this . buffer , this . offset , this . limit - this . offset + 1 ) ; } return tail ;
public class LabelBuilder { /** * Handle composite named links . * @ param tagString Full tag name and value */ private void tryHandleNamedLink ( final String tagString ) { } }
final String namedLinkPatternString = PLAIN_LINK + "\\.(\\w+-?)+=(\\w+(-|_)?)+" ; final Pattern namedLinkPattern = Pattern . compile ( namedLinkPatternString , Pattern . CASE_INSENSITIVE ) ; if ( namedLinkPattern . matcher ( tagString ) . matches ( ) ) { final String type = tagString . split ( COMPOSITE_TAG_DELIMITER )...
public class LogManager { /** * Returns a LoggerContext . * @ param loader The ClassLoader for the context . If null the context will attempt to determine the appropriate * ClassLoader . * @ param currentContext if false the LoggerContext appropriate for the caller of this method is returned . For * example , i...
try { return factory . getContext ( FQCN , loader , null , currentContext ) ; } catch ( final IllegalStateException ex ) { LOGGER . warn ( ex . getMessage ( ) + " Using SimpleLogger" ) ; return new SimpleLoggerContextFactory ( ) . getContext ( FQCN , loader , null , currentContext ) ; }
public class ExceptionSet { /** * Add all exceptions in the given set . * @ param other * the set */ public void addAll ( ExceptionSet other ) { } }
exceptionSet . or ( other . exceptionSet ) ; explicitSet . or ( other . explicitSet ) ; size = countBits ( exceptionSet ) ; commonSupertype = null ;
public class SubscriptionMessageImpl { /** * Set the value of the SubscriptionMessageType field in the message . * Javadoc description supplied by SubscriptionMessage interface . */ public final void setSubscriptionMessageType ( SubscriptionMessageType value ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "setSubscriptionMessageType to " + value ) ; /* Get the int value of the SubscriptionMessageType and set that into the subtype */ setSubtype ( value . toInt ( ) ) ;
public class CompanyBS { /** * Listar usuários da instituição do domínio acessado . * @ param page Número da página . * @ param pageSize Tamanho da página * @ return PaginatedList Lista de usuários . */ public PaginatedList < User > listFromCurrentCompany ( Integer page , Integer pageSize ) { } }
if ( page == null || page < 1 ) { page = 1 ; } if ( pageSize == null ) { pageSize = PAGESIZE ; } PaginatedList < User > results = new PaginatedList < User > ( ) ; if ( this . domain == null ) { Criteria criteria = this . dao . newCriteria ( User . class ) . setFirstResult ( ( page - 1 ) * pageSize ) . setMaxResults ( p...
public class ScalarizationUtils { /** * Objective values are multiplied by weights and summed . Weights should * always be positive . * @ param solutionsList A list of solutions . * @ param weights Positive constants by which objectives are summed . */ public static < S extends Solution < ? > > void weightedSum (...
for ( S solution : solutionsList ) { double sum = weights [ 0 ] * solution . getObjective ( 0 ) ; for ( int i = 1 ; i < solution . getNumberOfObjectives ( ) ; i ++ ) { sum += weights [ i ] * solution . getObjective ( i ) ; } setScalarizationValue ( solution , sum ) ; }
public class CommerceCountryLocalServiceBaseImpl { /** * Deletes the commerce country with the primary key from the database . Also notifies the appropriate model listeners . * @ param commerceCountryId the primary key of the commerce country * @ return the commerce country that was removed * @ throws PortalExcep...
return commerceCountryPersistence . remove ( commerceCountryId ) ;
public class clusterinstance { /** * Use this API to fetch clusterinstance resource of given name . */ public static clusterinstance get ( nitro_service service , Long clid ) throws Exception { } }
clusterinstance obj = new clusterinstance ( ) ; obj . set_clid ( clid ) ; clusterinstance response = ( clusterinstance ) obj . get_resource ( service ) ; return response ;
public class JarafeMEDecoder { /** * @ param features - A list of string - double pairs representing the valued features for a classification instance * @ return label - A string representing the predicted label according to the decoder */ public String classifyValuedInstance ( List < StringDoublePair > features ) { ...
List < scala . Tuple2 < String , Double > > nfs = new ArrayList < scala . Tuple2 < String , Double > > ( ) ; for ( StringDoublePair el : features ) { nfs . add ( new scala . Tuple2 < String , Double > ( el . getString ( ) , el . getDouble ( ) ) ) ; } return maxEnt . decodeValuedInstance ( nfs ) ;
public class Beans { /** * A slightly optimized way to get the bean identifier - there is not need to call ContextualStore . putIfAbsent ( ) for passivation capable beans because it ' s * already called during bootstrap . See also { @ link BeanManagerImpl # addBean ( Bean ) } . * @ param contextual * @ param cont...
if ( contextual instanceof RIBean < ? > ) { return ( ( RIBean < ? > ) contextual ) . getIdentifier ( ) ; } if ( contextualStore == null ) { contextualStore = serviceRegistry . get ( ContextualStore . class ) ; } return contextualStore . putIfAbsent ( contextual ) ;
public class JDBCDatabaseMetaData { /** * Retrieves " SELECT * FROM INFORMATION _ SCHEMA . & lt ; table & gt ; WHERE 1 = 1 " in string * buffer form . < p > * This is a convenience method provided because , for most * < code > DatabaseMetaData < / code > queries , this is the most suitable * thing upon which to...
StringBuffer sb = new StringBuffer ( 255 ) ; return sb . append ( selstar ) . append ( t ) . append ( whereTrue ) ;
public class PHS398FellowshipSupplementalV1_1Generator { /** * This method is used to get AttachmentGroupMin0Max100DataType xmlObject * and set data to it based on narrative type code */ private AttachmentGroupMin0Max100DataType getAppendix ( ) { } }
AttachmentGroupMin0Max100DataType attachmentGroupType = AttachmentGroupMin0Max100DataType . Factory . newInstance ( ) ; List < AttachedFileDataType > attachedFileDataTypeList = new ArrayList < > ( ) ; AttachedFileDataType attachedFileDataType = null ; for ( NarrativeContract narrative : pdDoc . getDevelopmentProposal (...
public class InternalXtypeParser { /** * InternalXtype . g : 242:1 : ruleJvmUpperBoundAnded : ( ( rule _ _ JvmUpperBoundAnded _ _ Group _ _ 0 ) ) ; */ public final void ruleJvmUpperBoundAnded ( ) throws RecognitionException { } }
int stackSize = keepStackSize ( ) ; try { // InternalXtype . g : 246:2 : ( ( ( rule _ _ JvmUpperBoundAnded _ _ Group _ _ 0 ) ) ) // InternalXtype . g : 247:2 : ( ( rule _ _ JvmUpperBoundAnded _ _ Group _ _ 0 ) ) { // InternalXtype . g : 247:2 : ( ( rule _ _ JvmUpperBoundAnded _ _ Group _ _ 0 ) ) // InternalXtype . g : ...
public class ComputeEnvironmentDetailMarshaller { /** * Marshall the given parameter object . */ public void marshall ( ComputeEnvironmentDetail computeEnvironmentDetail , ProtocolMarshaller protocolMarshaller ) { } }
if ( computeEnvironmentDetail == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( computeEnvironmentDetail . getComputeEnvironmentName ( ) , COMPUTEENVIRONMENTNAME_BINDING ) ; protocolMarshaller . marshall ( computeEnvironmentDetail . getComp...
public class TSIG { /** * Verifies the data ( computes the secure hash and compares it to the input ) * @ param mac The HMAC generator * @ param signature The signature to compare against * @ param truncation _ ok If true , the signature may be truncated ; only the * number of bytes in the provided signature ar...
byte [ ] expected = mac . doFinal ( ) ; if ( truncation_ok && signature . length < expected . length ) { byte [ ] truncated = new byte [ signature . length ] ; System . arraycopy ( expected , 0 , truncated , 0 , truncated . length ) ; expected = truncated ; } return Arrays . equals ( signature , expected ) ;