signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class FastMath { /** * Cosine function .
* @ param x Argument .
* @ return cos ( x ) */
public static double cos ( double x ) { } } | int quadrant = 0 ; /* Take absolute value of the input */
double xa = x ; if ( x < 0 ) { xa = - xa ; } if ( xa != xa || xa == Double . POSITIVE_INFINITY ) { return Double . NaN ; } /* Perform any argument reduction */
double xb = 0 ; if ( xa > 3294198.0 ) { // PI * ( 2 * * 20)
// Argument too big for CodyWaite reductio... |
public class SARLLabelProvider { /** * Invoked when an image descriptor cannot be found .
* @ param params the parameters given to the method polymorphic dispatcher .
* @ param exception the cause of the error .
* @ return the image descriptor for the error . */
protected ImageDescriptor handleImageDescriptorErro... | if ( exception instanceof NullPointerException ) { final Object defaultImage = getDefaultImage ( ) ; if ( defaultImage instanceof ImageDescriptor ) { return ( ImageDescriptor ) defaultImage ; } if ( defaultImage instanceof Image ) { return ImageDescriptor . createFromImage ( ( Image ) defaultImage ) ; } return super . ... |
public class LdapIdentityStoreDefinitionWrapper { /** * Evaluate and return the maxResults .
* @ param immediateOnly If true , only return a non - null value if the setting is either an
* immediate EL expression or not set by an EL expression . If false , return the
* value regardless of where it is evaluated .
... | try { return elHelper . processInt ( "maxResultsExpression" , this . idStoreDefinition . maxResultsExpression ( ) , this . idStoreDefinition . maxResults ( ) , immediateOnly ) ; } catch ( IllegalArgumentException e ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isWarningEnabled ( ) ) { Tr . warning ( tc , "J... |
public class CustomerSession { /** * Set the shipping information on the current customer object .
* @ param shippingInformation the data to be set */
public void setCustomerShippingInformation ( @ NonNull ShippingInformation shippingInformation ) { } } | final Map < String , Object > arguments = new HashMap < > ( ) ; arguments . put ( KEY_SHIPPING_INFO , shippingInformation ) ; mEphemeralKeyManager . retrieveEphemeralKey ( null , ACTION_SET_CUSTOMER_SHIPPING_INFO , arguments ) ; |
public class ClientSessionSubmitter { /** * Resubmits commands starting after the given sequence number .
* The sequence number from which to resend commands is the < em > request < / em > sequence number ,
* not the client - side sequence number . We resend only commands since queries cannot be reliably
* resent... | // If the client ' s response sequence number is greater than the given command sequence number ,
// the cluster likely has a new leader , and we need to reset the sequencing in the leader by
// sending a keep - alive request .
// Ensure that the client doesn ' t resubmit many concurrent KeepAliveRequests by tracking t... |
public class Utils { /** * Returns true if a type implements Parcelable */
static boolean isParcelable ( Elements elements , Types types , TypeMirror type ) { } } | TypeMirror parcelableType = elements . getTypeElement ( PARCELABLE_CLASS_NAME ) . asType ( ) ; return types . isAssignable ( type , parcelableType ) ; |
public class MonitoringDataSource { /** * Delegates the call to the wrapped data source , wraps the returned
* connection and counts the connections returned .
* @ return a database < code > Connection < / code >
* @ throws java . sql . SQLException
* as a result of the delegation */
@ Override public Connectio... | return getConnection ( new Callable < Connection > ( ) { @ Override public Connection call ( ) throws SQLException { return MonitoringDataSource . this . original . getConnection ( ) ; } } , ".getConnection" ) ; |
public class LiveOutputsInner { /** * Create Live Output .
* Creates a Live Output .
* @ param resourceGroupName The name of the resource group within the Azure subscription .
* @ param accountName The Media Services account name .
* @ param liveEventName The name of the Live Event .
* @ param liveOutputName ... | return createWithServiceResponseAsync ( resourceGroupName , accountName , liveEventName , liveOutputName , parameters ) . toBlocking ( ) . last ( ) . body ( ) ; |
public class InternalSimpleExpressionsParser { /** * InternalSimpleExpressions . g : 640:1 : ruleMethodCallLiteral returns [ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken ( ) ] : ( this _ FQN _ 0 = ruleFQN ( kw = ' ( ' ( this _ Argument _ 2 = ruleArgument ( kw = ' , ' this _ Argument _ 4 = ruleArgument ) ... | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken ( ) ; Token kw = null ; AntlrDatatypeRuleToken this_FQN_0 = null ; AntlrDatatypeRuleToken this_Argument_2 = null ; AntlrDatatypeRuleToken this_Argument_4 = null ; AntlrDatatypeRuleToken this_MethodCallLiteral_7 = null ; enterRule ( ) ; try { // InternalSimpleE... |
public class ColorYuv { /** * Conversion from RGB to YCbCr . See [ Jack07 ] .
* @ param r Red [ 0 to 255]
* @ param g Green [ 0 to 255]
* @ param b Blue [ 0 to 255] */
public static void rgbToYCbCr ( int r , int g , int b , byte yuv [ ] ) { } } | // multiply coefficients in book by 1024 , which is 2 ^ 10
yuv [ 0 ] = ( byte ) ( ( ( 187 * r + 629 * g + 63 * b ) >> 10 ) + 16 ) ; yuv [ 1 ] = ( byte ) ( ( ( - 103 * r - 346 * g + 450 * b ) >> 10 ) + 128 ) ; yuv [ 2 ] = ( byte ) ( ( ( 450 * r - 409 * g - 41 * b ) >> 10 ) + 128 ) ; |
public class DemoActivity { /** * CHECKSTYLE : ON */
@ Override protected void onCreate ( Bundle savedInstanceState ) { } } | super . onCreate ( savedInstanceState ) ; setContentView ( R . layout . activity_demo ) ; ButterKnife . bind ( this ) ; mCacheId = getIntent ( ) . getStringExtra ( EXTRA_ID_CACHE ) ; mDiskCacheSize = getIntent ( ) . getIntExtra ( EXTRA_DISK_CACHE_SIZE , 100 ) ; mRamCacheSize = getIntent ( ) . getIntExtra ( EXTRA_RAM_CA... |
public class JBBPTextWriter { /** * Print a value represented by its string .
* @ param value the value to be printed , must not be null
* @ throws IOException it will be thrown for transport errors */
private void printValueString ( final String value ) throws IOException { } } | if ( this . valuesLineCounter > 0 && this . valueSeparator . length ( ) > 0 ) { this . write ( this . valueSeparator ) ; } if ( this . prefixValue . length ( ) > 0 ) { this . write ( this . prefixValue ) ; } this . write ( value ) ; if ( this . postfixValue . length ( ) > 0 ) { this . write ( this . postfixValue ) ; } ... |
public class HpelBasicFormatter { /** * Generates the basic format event header information that is common to all subclasses of RasEvent starting at
* position 0 of the specified StringBuffer .
* Basic format specifies that the header information will include a formatted timestamp followed by an 8 ( hex )
* digit... | if ( null == record ) { throw new IllegalArgumentException ( "Record cannot be null" ) ; } if ( null == buffer ) { throw new IllegalArgumentException ( "Buffer cannot be null" ) ; } // Create the time stamp
createEventTimeStamp ( record , buffer ) ; // Add the formatted threadID
formatThreadID ( record , buffer ) ; // ... |
public class PolicyExecutorImpl { /** * Releases a permit against maxConcurrency or transfers it to a worker task that runs on the global thread pool . */
@ Trivial private void transferOrReleasePermit ( ) { } } | maxConcurrencyConstraint . release ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( this , tc , "expedites/maxConcurrency available" , expeditesAvailable , maxConcurrencyConstraint . availablePermits ( ) ) ; // The permit might be needed to run tasks on the global executor ,... |
public class CirculantTracker { /** * Computes the weights used in the gaussian kernel
* This isn ' t actually symmetric for even widths . These weights are used has label in the learning phase . Closer
* to one the more likely it is the true target . It should be a peak in the image center . If it is not then
* ... | // desired output ( gaussian shaped ) , bandwidth proportional to target size
double output_sigma = Math . sqrt ( width * width ) * output_sigma_factor ; double left = - 0.5 / ( output_sigma * output_sigma ) ; int radius = width / 2 ; for ( int y = 0 ; y < gaussianWeight . height ; y ++ ) { int index = gaussianWeight .... |
public class SarlExampleInstallerWizard { /** * Close the welcome page . */
protected static void closeWelcomePage ( ) { } } | final IIntroManager introManager = PlatformUI . getWorkbench ( ) . getIntroManager ( ) ; if ( introManager != null ) { final IIntroPart intro = introManager . getIntro ( ) ; if ( intro != null ) { introManager . closeIntro ( intro ) ; } } |
public class JobTrackerMetricsInst { /** * Since this object is a registered updater , this method will be called
* periodically , e . g . every 5 seconds . */
public void doUpdates ( MetricsContext unused ) { } } | // In case of running in LocalMode tracker = = null
if ( tracker != null ) { synchronized ( tracker ) { synchronized ( this ) { numRunningMaps = 0 ; numRunningReduces = 0 ; numWaitingMaps = 0 ; numWaitingReduces = 0 ; numTasksInMemory = 0 ; List < JobInProgress > jobs = tracker . getRunningJobs ( ) ; for ( JobInProgres... |
public class SuperPositions { /** * Use the { @ link SuperPosition # getRmsd ( Point3d [ ] , Point3d [ ] ) } method of the
* default static SuperPosition algorithm contained in this Class , assuming
* that the point arrays are centered at the origin . */
public static double getRmsdAtOrigin ( Point3d [ ] fixed , Po... | superposer . setCentered ( true ) ; return superposer . getRmsd ( fixed , moved ) ; |
public class UtilIO { /** * Looks for file names which match the regex in the directory .
* Example : < br >
* BoofMiscOps . findMatches ( new File ( " / path / to / directory " ) , " . + jpg " ) ;
* @ param directory directory
* @ param regex file name regex
* @ return array of matching files */
public stati... | final Pattern p = Pattern . compile ( regex ) ; // careful : could also throw an exception !
return directory . listFiles ( file -> p . matcher ( file . getName ( ) ) . matches ( ) ) ; |
public class CmsContentTypeVisitor { /** * Reads the default value for the given type . < p >
* @ param schemaType the schema type
* @ param path the element path
* @ return the default value */
private String readDefaultValue ( I_CmsXmlSchemaType schemaType , String path ) { } } | return m_contentHandler . getDefault ( getCmsObject ( ) , m_file , schemaType , path , m_locale ) ; |
public class AerospikeDeepJobConfig { /** * { @ inheritDoc } */
@ Override public AerospikeDeepJobConfig < T > initialize ( ) { } } | validate ( ) ; configHadoop = new JobConf ( ) ; configHadoop = new Configuration ( ) ; configHadoop . set ( AerospikeConfigUtil . INPUT_HOST , getHost ( ) ) ; configHadoop . set ( AerospikeConfigUtil . INPUT_PORT , Integer . toString ( getAerospikePort ( ) ) ) ; configHadoop . set ( AerospikeConfigUtil . INPUT_NAMESPAC... |
public class UserInterfaceApi { /** * Open Information Window Open the information window for a character ,
* corporation or alliance inside the client - - - SSO Scope :
* esi - ui . open _ window . v1
* @ param targetId
* The target to open ( required )
* @ param datasource
* The server name you would like... | com . squareup . okhttp . Call call = postUiOpenwindowInformationValidateBeforeCall ( targetId , datasource , token , null ) ; return apiClient . execute ( call ) ; |
public class PersistentFactory { /** * Retrieves the object uniquely identified by the value for the specified ID field .
* @ param id the ID field identifying the object
* @ param val the value that uniquely identifies the desired object
* @ return the object matching the query criterion
* @ throws Persistence... | logger . debug ( "enter - get(String,Object)" ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "For: " + cache . getTarget ( ) . getName ( ) + "/" + id + "/" + val ) ; } try { Class < ? extends Execution > cls ; CacheLoader < T > loader ; loader = new CacheLoader < T > ( ) { public T load ( Object ... args ) {... |
public class CLI { /** * / * package */
static void verifyJenkinsConnection ( URLConnection c ) throws IOException { } } | if ( c . getHeaderField ( "X-Hudson" ) == null && c . getHeaderField ( "X-Jenkins" ) == null ) throw new NotTalkingToJenkinsException ( c ) ; |
public class StaticCATXATransaction { /** * Calls start ( ) on the SIXAResource .
* Fields :
* BIT16 XAResourceId
* The XID Structure
* BIT32 Flags
* @ param request
* @ param conversation
* @ param requestNumber
* @ param allocatedFromBufferPool
* @ param partOfExchange */
public static void rcvXASta... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "rcvXAStart" , new Object [ ] { request , conversation , "" + requestNumber , "" + allocatedFromBufferPool , "" + partOfExchange } ) ; ConversationState convState = ( ConversationState ) conversation . getAttachment ( ) ; tr... |
public class UIUtil { /** * Show keyboard and focus to given EditText .
* Use this method if target EditText is in Dialog .
* @ param dialog Dialog
* @ param target EditText to focus */
public static void showKeyboardInDialog ( Dialog dialog , EditText target ) { } } | if ( dialog == null || target == null ) { return ; } dialog . getWindow ( ) . setSoftInputMode ( WindowManager . LayoutParams . SOFT_INPUT_STATE_VISIBLE ) ; target . requestFocus ( ) ; |
public class Graphics { /** * Sets the specular color for No . i light . */
public void setLightSpecular ( int i , Color color ) { } } | float [ ] tmpColor = { ( float ) color . getRed ( ) , ( float ) color . getGreen ( ) , ( float ) color . getBlue ( ) , ( float ) color . getAlpha ( ) } ; gl . glLightfv ( GL2 . GL_LIGHT0 + i , GL2 . GL_SPECULAR , tmpColor , 0 ) ; |
public class MultipointMotionDetectionExample { /** * Gets the motion points from the motion detector and adds it to the HashMap */
@ Override public void motionDetected ( WebcamMotionEvent wme ) { } } | for ( Point p : wme . getPoints ( ) ) { motionPoints . put ( p , 0 ) ; } |
public class CommerceRegionPersistenceImpl { /** * Returns the number of commerce regions where commerceCountryId = & # 63 ; .
* @ param commerceCountryId the commerce country ID
* @ return the number of matching commerce regions */
@ Override public int countByCommerceCountryId ( long commerceCountryId ) { } } | FinderPath finderPath = FINDER_PATH_COUNT_BY_COMMERCECOUNTRYID ; Object [ ] finderArgs = new Object [ ] { commerceCountryId } ; Long count = ( Long ) finderCache . getResult ( finderPath , finderArgs , this ) ; if ( count == null ) { StringBundler query = new StringBundler ( 2 ) ; query . append ( _SQL_COUNT_COMMERCERE... |
public class DAOValidatorMethodExpressionExecutor { /** * Methode d ' obtention du nom de la classe d ' un Object
* @ param objectObjet dont on recherche le nom de classe
* @ returnNom de la classe de l ' Objet */
public String ctxClassName ( Object object ) { } } | // Si le nom est null
if ( object == null ) return Object . class . getName ( ) ; // On retourne le nom de la classe
return object . getClass ( ) . getName ( ) ; |
public class Transformation2D { /** * Returns TRUE if this transformation is a shift transformation within the
* given tolerance .
* @ param tol
* The tolerance value . */
public boolean isShift ( double tol ) { } } | Point2D pt = transformWithoutShift ( Point2D . construct ( 0.0 , 1.0 ) ) ; pt . y -= 1.0 ; if ( pt . sqrLength ( ) > tol * tol ) return false ; pt = transformWithoutShift ( Point2D . construct ( 1.0 , 0.0 ) ) ; pt . x -= 1.0 ; return pt . sqrLength ( ) <= tol * tol ; |
public class TransformerJobBuilder { /** * Gets an output column by name .
* @ see # getOutputColumns ( )
* @ param name
* @ return */
public MutableInputColumn < ? > getOutputColumnByName ( String name ) { } } | if ( StringUtils . isNullOrEmpty ( name ) ) { return null ; } final List < MutableInputColumn < ? > > outputColumns = getOutputColumns ( ) ; for ( MutableInputColumn < ? > inputColumn : outputColumns ) { if ( name . equals ( inputColumn . getName ( ) ) ) { return inputColumn ; } } return null ; |
public class ImplicitObjectELResolver { /** * If the base object is < code > null < / code > , and the property matches
* the name of a JSP implicit object , returns the implicit object .
* < p > The < code > propertyResolved < / code > property of the
* < code > ELContext < / code > object must be set to < code ... | if ( context == null ) { throw new NullPointerException ( ) ; } if ( base != null ) { return null ; } PageContext ctxt = ( PageContext ) context . getContext ( JspContext . class ) ; if ( "pageContext" . equals ( property ) ) { context . setPropertyResolved ( true ) ; return ctxt ; } ImplicitObjects implicitObjects = I... |
public class MediaTypeSet { /** * Finds the { @ link MediaType } in this { @ link List } that matches one of the media ranges specified in the
* specified string .
* @ param acceptHeaders the values of the { @ code " accept " } header , as defined in
* < a href = " https : / / www . w3 . org / Protocols / rfc2616... | requireNonNull ( acceptHeaders , "acceptHeaders" ) ; final List < MediaType > ranges = new ArrayList < > ( 4 ) ; for ( CharSequence acceptHeader : acceptHeaders ) { addRanges ( ranges , acceptHeader ) ; } return match ( ranges ) ; |
public class ArrayUtils { /** * Concatenates two arrays into one . If arr1 is null or empty , returns arr2.
* If arr2 is null or empty , returns arr1 . May return null if both arrays are null ,
* or one is empty and the other null . < br >
* The concatenated array has componentType which is compatible with both i... | int len1 = ( arr1 == null ) ? ( - 1 ) : Array . getLength ( arr1 ) ; if ( len1 <= 0 ) { return arr2 ; } int len2 = ( arr2 == null ) ? ( - 1 ) : Array . getLength ( arr2 ) ; if ( len2 <= 0 ) { return arr1 ; } Class commonComponentType = commonClass ( arr1 . getClass ( ) . getComponentType ( ) , arr2 . getClass ( ) . get... |
public class KTypeArrayDeque { /** * Return the index of the first ( counting from head ) element equal to
* < code > e1 < / code > . The index points to the { @ link # buffer } array .
* @ param e1
* The element to look for .
* @ return Returns the index of the first element equal to < code > e1 < / code > or ... | final int last = tail ; final int bufLen = buffer . length ; for ( int i = head ; i != last ; i = oneRight ( i , bufLen ) ) { if ( Intrinsics . equals ( this , e1 , buffer [ i ] ) ) { return i ; } } return - 1 ; |
public class DiagnosticsInner { /** * Get Detectors .
* Get Detectors .
* @ param nextPageLink The NextLink from the previous successful call to List operation .
* @ param serviceFuture the ServiceFuture object tracking the Retrofit calls
* @ param serviceCallback the async ServiceCallback to handle successful ... | return AzureServiceFuture . fromPageResponse ( listSiteDetectorsNextSinglePageAsync ( nextPageLink ) , new Func1 < String , Observable < ServiceResponse < Page < DetectorDefinitionInner > > > > ( ) { @ Override public Observable < ServiceResponse < Page < DetectorDefinitionInner > > > call ( String nextPageLink ) { ret... |
public class OperatorUtil { /** * Returns the number of inputs for the given { @ link Operator } type . < br >
* Currently , it can be 0 , 1 , or 2.
* @ param contractType
* the type of the Operator
* @ return the number of input contracts */
public static int getNumInputs ( final Class < ? extends Operator < ?... | if ( GenericDataSourceBase . class . isAssignableFrom ( contractType ) ) { return 0 ; } if ( GenericDataSinkBase . class . isAssignableFrom ( contractType ) || SingleInputOperator . class . isAssignableFrom ( contractType ) ) { return 1 ; } if ( DualInputOperator . class . isAssignableFrom ( contractType ) ) { return 2... |
public class ProviderFactory { /** * Add the result to cache before return */
private static Type [ ] getGenericInterfaces ( Class < ? > cls , Class < ? > expectedClass , Class < ? > commonBaseCls ) { } } | if ( Object . class == cls ) { return emptyType ; } Type [ ] cachedTypes = getTypes ( cls , expectedClass , commonBaseCls ) ; if ( cachedTypes != null ) return cachedTypes ; if ( expectedClass != null ) { Type genericSuperType = cls . getGenericSuperclass ( ) ; if ( genericSuperType instanceof ParameterizedType ) { Cla... |
public class RegisteredService { /** * Construct a new immutable { @ code RegisteredService } instance .
* @ param name The value for the { @ code name } attribute
* @ param url The value for the { @ code url } attribute
* @ return An immutable RegisteredService instance */
public static RegisteredService of ( St... | return new RegisteredService ( name , url , portName ) ; |
public class GitLabApi { /** * Enable the logging of the requests to and the responses from the GitLab server API using the
* GitLab4J shared Logger instance .
* @ param level the logging level ( SEVERE , WARNING , INFO , CONFIG , FINE , FINER , FINEST )
* @ param maxEntitySize maximum number of entity bytes to b... | apiClient . enableRequestResponseLogging ( LOGGER , level , maxEntitySize , maskedHeaderNames ) ; |
public class NumberUtils { /** * makes a hash out of an int */
static int hash ( int n ) { } } | int hash = 5381 ; hash = ( ( hash << 5 ) + hash ) + ( n & 0xFF ) ; /* hash * 33 + c */
hash = ( ( hash << 5 ) + hash ) + ( ( n >> 8 ) & 0xFF ) ; hash = ( ( hash << 5 ) + hash ) + ( ( n >> 16 ) & 0xFF ) ; hash = ( ( hash << 5 ) + hash ) + ( ( n >> 24 ) & 0xFF ) ; hash &= 0x7FFFFFFF ; return hash ; |
public class ChatGlyph { /** * Attempt to translate this glyph . */
public void translate ( int dx , int dy ) { } } | setLocation ( _bounds . x + dx , _bounds . y + dy ) ; |
public class CPAttachmentFileEntryUtil { /** * Returns the number of cp attachment file entries where classNameId = & # 63 ; and classPK = & # 63 ; and displayDate & lt ; & # 63 ; and status = & # 63 ; .
* @ param classNameId the class name ID
* @ param classPK the class pk
* @ param displayDate the display date ... | return getPersistence ( ) . countByC_C_LtD_S ( classNameId , classPK , displayDate , status ) ; |
public class NamespaceNotifierClient { /** * Removes a previously placed watch for a particular event type from the
* given path . If the watch is not actually present at that path before
* calling the method , nothing will happen .
* To remove the watch for all event types at this path , use
* { @ link # remov... | NamespaceEvent event = new NamespaceEvent ( path , watchType . getByteValue ( ) ) ; NamespaceEventKey eventKey = new NamespaceEventKey ( path , watchType ) ; Object connectionLock = connectionManager . getConnectionLock ( ) ; ServerHandler . Client server ; LOG . info ( listeningPort + ": removeWatch: Removing watch fr... |
public class BuiltInErrorProducer { /** * Helper method to create a accumulator definiton .
* @ param name name of the accumulator .
* @ param valueName name of the value ( initial or total ) .
* @ param statName name of the stat ( exception name or ' cumulated ' ) .
* @ return */
private AccumulatorDefinition ... | AccumulatorDefinition definition = new AccumulatorDefinition ( ) ; definition . setName ( name ) ; definition . setProducerName ( getProducerId ( ) ) ; definition . setStatName ( statName ) ; definition . setValueName ( valueName ) ; definition . setIntervalName ( MoskitoConfigurationHolder . getConfiguration ( ) . get... |
public class Dialog { /** * Set the margin between content view and Dialog border .
* @ param left The left margin size in pixels .
* @ param top The top margin size in pixels .
* @ param right The right margin size in pixels .
* @ param bottom The bottom margin size in pixels .
* @ return The Dialog for chai... | mCardView . setContentMargin ( left , top , right , bottom ) ; return this ; |
public class ApiApp { /** * Set the signer page text 2 color .
* @ param color String hex color code
* @ throws HelloSignException thrown if the color string is an invalid hex
* string */
public void setTextColor2 ( String color ) throws HelloSignException { } } | if ( white_labeling_options == null ) { white_labeling_options = new WhiteLabelingOptions ( ) ; } white_labeling_options . setTextColor2 ( color ) ; |
public class HpackEncoder { /** * Set the maximum table size . */
public void setMaxHeaderTableSize ( ByteBuf out , long maxHeaderTableSize ) throws Http2Exception { } } | if ( maxHeaderTableSize < MIN_HEADER_TABLE_SIZE || maxHeaderTableSize > MAX_HEADER_TABLE_SIZE ) { throw connectionError ( PROTOCOL_ERROR , "Header Table Size must be >= %d and <= %d but was %d" , MIN_HEADER_TABLE_SIZE , MAX_HEADER_TABLE_SIZE , maxHeaderTableSize ) ; } if ( this . maxHeaderTableSize == maxHeaderTableSiz... |
public class Menu { /** * Returns for given parameter < i > UUID < / i > the instance of class
* { @ link Menu } .
* @ param _ uuid UUID to search in the cache
* @ return instance of class { @ link Menu }
* @ throws CacheReloadException on error */
public static Menu get ( final UUID _uuid ) throws CacheReloadE... | return AbstractUserInterfaceObject . < Menu > get ( _uuid , Menu . class , CIAdminUserInterface . Menu . getType ( ) ) ; |
public class AnnotationUtility { /** * Estract from an annotation of a property the attribute value specified .
* @ param item the item
* @ param annotationClass annotation to analyze
* @ param attribute the attribute
* @ return attribute value as list of string */
public static String extractAsEnumerationValue... | final Elements elementUtils = BindDataSourceSubProcessor . elementUtils ; final One < String > result = new One < String > ( ) ; extractAttributeValue ( elementUtils , item , annotationClass . getName ( ) , attribute , new OnAttributeFoundListener ( ) { @ Override public void onFound ( String value ) { if ( value . ind... |
public class SARLValidator { /** * Check the type of the behavior unit ' s guard .
* @ param behaviorUnit the behavior unit . */
@ Check ( CheckType . FAST ) public void checkBehaviorUnitGuardType ( SarlBehaviorUnit behaviorUnit ) { } } | final XExpression guard = behaviorUnit . getGuard ( ) ; if ( guard != null ) { if ( this . operationHelper . hasSideEffects ( null , guard ) ) { error ( Messages . SARLValidator_53 , guard , null , ValidationMessageAcceptor . INSIGNIFICANT_INDEX , INVALID_INNER_EXPRESSION ) ; return ; } if ( guard instanceof XBooleanLi... |
public class CachedCounters { /** * Configures component by passing configuration parameters .
* @ param config configuration parameters to be set . */
public void configure ( ConfigParams config ) { } } | _interval = config . getAsLongWithDefault ( "interval" , _defaultInterval ) ; _resetTimeout = config . getAsLongWithDefault ( "reset_timeout" , _resetTimeout ) ; |
public class ScriptContext { /** * Copies a { @ link DataSet } entry from one { @ link DataSet } to another .
* @ param srcDataSetKey
* the source data set key
* @ param srcKey
* the source entry key
* @ param destDataSetKey
* the destination data set key
* @ param destKey
* the destination entry key */... | Map < String , DataSet > currentDataSets = dataSourceProvider . get ( ) . getCurrentDataSets ( ) ; DataSet srcDataSet = currentDataSets . get ( srcDataSetKey ) ; DataSet destDataSet = currentDataSets . get ( destDataSetKey ) ; destDataSet . setFixedValue ( destKey , srcDataSet . getValue ( srcKey ) ) ; |
public class IPAddressSeqRange { /** * This iterator is used for the case where the range is non - multiple */
protected static < T extends Address , S extends AddressSegment > Iterator < T > iterator ( T original , AddressCreator < T , ? , ? , S > creator ) { } } | return IPAddressSection . iterator ( original , creator , null ) ; |
public class SimpleDataSet { /** * Converts this dataset into one meant for classification problems . The
* given categorical feature index is removed from the data and made the
* target variable for the classification problem .
* @ param index the classification variable index , should be in the range
* [ 0 , ... | if ( index < 0 ) throw new IllegalArgumentException ( "Index must be a non-negative value" ) ; else if ( getNumCategoricalVars ( ) == 0 ) throw new IllegalArgumentException ( "Dataset has no categorical variables, can not create classification dataset" ) ; else if ( index >= getNumCategoricalVars ( ) ) throw new Illega... |
public class UUIDMapper { /** * Returns the { @ link String } representation of the specified { @ link UUID } . The returned value has the same
* collation as { @ link UUIDType } .
* @ param uuid the { @ link UUID } to be serialized
* @ return the { @ link String } representation of the specified { @ link UUID } ... | StringBuilder sb = new StringBuilder ( ) ; // Get UUID type version
ByteBuffer bb = UUIDType . instance . decompose ( uuid ) ; int version = ( bb . get ( bb . position ( ) + 6 ) >> 4 ) & 0x0f ; // Add version at the beginning
sb . append ( ByteBufferUtils . toHex ( ( byte ) version ) ) ; // If it ' s a time based UUID ... |
public class CommandArgs { /** * Add a map ( hash ) argument .
* @ param map the map , must not be { @ literal null } .
* @ return the command args . */
public CommandArgs < K , V > add ( Map < K , V > map ) { } } | LettuceAssert . notNull ( map , "Map must not be null" ) ; for ( Map . Entry < K , V > entry : map . entrySet ( ) ) { addKey ( entry . getKey ( ) ) . addValue ( entry . getValue ( ) ) ; } return this ; |
public class StandardBeanInfo { /** * Introspects the supplied class and returns a list of the Properties of
* the class
* @ param stopClass -
* the to introspecting at
* @ return The list of Properties as an array of PropertyDescriptors
* @ throws IntrospectionException */
@ SuppressWarnings ( "unchecked" ) ... | // Get descriptors for the public methods
MethodDescriptor [ ] methodDescriptors = introspectMethods ( ) ; if ( methodDescriptors == null ) { return null ; } ArrayList < MethodDescriptor > methodList = new ArrayList < MethodDescriptor > ( ) ; // Loop over the methods found , looking for public non - static methods
for ... |
public class PrcSalesInvoiceSave { /** * < p > Make save preparations before insert / update block if it ' s need . < / p >
* @ param pReqVars additional param
* @ param pEntity entity
* @ param pRequestData Request Data
* @ throws Exception - an exception */
@ Override public final void makeFirstPrepareForSave... | if ( pEntity . getPrepaymentFrom ( ) != null ) { pEntity . setPrepaymentFrom ( getSrvOrm ( ) . retrieveEntity ( pReqVars , pEntity . getPrepaymentFrom ( ) ) ) ; if ( pEntity . getReversedId ( ) == null && pEntity . getPrepaymentFrom ( ) . getSalesInvoiceId ( ) != null && ! pEntity . getHasMadeAccEntries ( ) ) { throw n... |
public class TreeNode { /** * Freezes the current tree node to make it the latest child of its parent
* ( discarding nodes that have been tacked on after it in the same hierarchy level ) ; and
* recursively apply to all of its ancestors .
* < p > This is because it ' s only called at time of error . If an ancesto... | TreeNode node = this ; node . setEndIndex ( index ) ; while ( node . parent != null ) { node . parent . latestChild = node ; node = node . parent ; node . setEndIndex ( index ) ; } return node ; |
public class ProfileActivationInitializer { /** * This method does two things during the initialization stage of Spring context :
* 1 ) If there is no active or default profile , activate one or more according to the hostname of the computer it is running on ;
* 2 ) Makes the first active profile name available as ... | ConfigurableEnvironment env = context . getEnvironment ( ) ; String [ ] activeProfiles = env . getActiveProfiles ( ) ; if ( activeProfiles == null || activeProfiles . length == 0 ) { // don ' t override settings in configuration files and command line argument
activeProfiles = chooser . getActiveProfiles ( ) ; if ( act... |
public class BccClient { /** * Rollback the volume with the specified volume snapshot .
* You can rollback the specified volume only when the volume is Available ,
* otherwise , it ' s will get < code > 409 < / code > errorCode .
* The snapshot used to rollback must be created by the volume ,
* otherwise , it '... | checkNotNull ( request , "request should not be null." ) ; checkStringNotEmpty ( request . getVolumeId ( ) , "request volumeId should not be empty." ) ; checkStringNotEmpty ( request . getSnapshotId ( ) , "request snapshotId should not be empty." ) ; InternalRequest internalRequest = this . createRequest ( request , Ht... |
public class XMLUtils { /** * Transform file with XML filters .
* @ param inputFile file to transform and replace
* @ param filters XML filters to transform file with , may be an empty list */
public void transform ( final File inputFile , final List < XMLFilter > filters ) throws DITAOTException { } } | final File outputFile = new File ( inputFile . getAbsolutePath ( ) + FILE_EXTENSION_TEMP ) ; transformFile ( inputFile , outputFile , filters ) ; try { deleteQuietly ( inputFile ) ; moveFile ( outputFile , inputFile ) ; } catch ( final RuntimeException e ) { throw e ; } catch ( final Exception e ) { throw new DITAOTExc... |
public class AuthServerLogic { /** * Validate a user account
* @ param token */
public boolean validateAccount ( String token ) throws DAOException { } } | Query q = new QueryBuilder ( ) . select ( ) . from ( Credentials . class ) . where ( "validation" , OPERAND . EQ , token ) . build ( ) ; TransientObject to = ObjectUtils . get1stOrNull ( dao . query ( q ) ) ; if ( to != null ) { ServerCredentials creds = new ServerCredentials ( to ) ; creds . setValidation ( "1" ) ; da... |
public class JDBCConnection { /** * # ifdef JAVA4 */
public synchronized Savepoint setSavepoint ( String name ) throws SQLException { } } | checkClosed ( ) ; if ( JDBCDatabaseMetaData . JDBC_MAJOR >= 4 && getAutoCommit ( ) ) { throw Util . sqlException ( ErrorCode . X_3B001 ) ; } if ( name == null ) { throw Util . nullArgument ( ) ; } if ( "SYSTEM_SAVEPOINT" . equals ( name ) ) { throw Util . invalidArgument ( ) ; } try { sessionProxy . savepoint ( name ) ... |
public class SpectatorContext { /** * Create a gauge based on the config . */
public static LazyGauge gauge ( MonitorConfig config ) { } } | return new LazyGauge ( Registry :: gauge , registry , createId ( config ) ) ; |
public class GroovyRuntimeUtil { /** * Note : This method may throw checked exceptions although it doesn ' t say so . */
@ SuppressWarnings ( "unchecked" ) public static < T > T invokeClosure ( Closure < T > closure , Object ... args ) { } } | try { return closure . call ( args ) ; } catch ( InvokerInvocationException e ) { ExceptionUtil . sneakyThrow ( e . getCause ( ) ) ; return null ; // never reached
} |
public class DistributedTreeUtil { /** * Returns an { @ link Iterable } over a node ' s path components .
* @ param node A tree - node ' s full path .
* @ return An { @ link Iterable } over a node ' s path components . */
public static Iterable < String > iterate ( final String node ) { } } | return new Iterable < String > ( ) { @ Override public Iterator < String > iterator ( ) { return new Scanner ( node ) . useDelimiter ( "/" ) ; } } ; |
public class Covers { /** * Computes an incremental transition cover for a given automaton , i . e . a cover that only contains the missing
* sequences for obtaining a complete transition cover .
* @ param automaton
* the automaton for which the cover should be computed
* @ param inputs
* the set of input sym... | final int oldTransSize = newTransCover . size ( ) ; incrementalCover ( automaton , inputs , Collections . emptySet ( ) , oldTransCover , w -> { } , newTransCover :: add ) ; return oldTransSize < newTransCover . size ( ) ; |
public class GVRAvatar { /** * Load a model to attach to the avatar
* @ param avatarResource resource with avatar model
* @ param attachBone name of bone to attach model to */
public void loadModel ( GVRAndroidResource avatarResource , String attachBone ) { } } | EnumSet < GVRImportSettings > settings = GVRImportSettings . getRecommendedSettingsWith ( EnumSet . of ( GVRImportSettings . OPTIMIZE_GRAPH , GVRImportSettings . NO_ANIMATION ) ) ; GVRContext ctx = mAvatarRoot . getGVRContext ( ) ; GVRResourceVolume volume = new GVRResourceVolume ( ctx , avatarResource ) ; GVRSceneObje... |
public class LineItemActivityAssociation { /** * Sets the clickThroughConversionCost value for this LineItemActivityAssociation .
* @ param clickThroughConversionCost * The amount of money to attribute per click through conversion .
* This attribute is
* required for creating a { @ code LineItemActivityAssociatio... | this . clickThroughConversionCost = clickThroughConversionCost ; |
public class ExecutableFlowPriorityComparator { /** * < pre >
* Sorting order is determined by : -
* 1 . descending order of priority
* 2 . if same priority , ascending order of update time
* 3 . if same priority and updateTime , ascending order of execution id
* < / pre >
* { @ inheritDoc }
* @ see java ... | ExecutableFlow exflow1 = null , exflow2 = null ; if ( pair1 != null && pair1 . getSecond ( ) != null ) { exflow1 = pair1 . getSecond ( ) ; } if ( pair2 != null && pair2 . getSecond ( ) != null ) { exflow2 = pair2 . getSecond ( ) ; } if ( exflow1 == null && exflow2 == null ) { return 0 ; } else if ( exflow1 == null ) { ... |
public class X509Extensions { /** * < pre >
* Extensions : : = SEQUENCE SIZE ( 1 . . MAX ) OF Extension
* Extension : : = SEQUENCE {
* extnId EXTENSION . & id ( { ExtensionSet } ) ,
* critical BOOLEAN DEFAULT FALSE ,
* extnValue OCTET STRING }
* < / pre > */
public DERObject toASN1Object ( ) { } } | ASN1EncodableVector vec = new ASN1EncodableVector ( ) ; Enumeration e = ordering . elements ( ) ; while ( e . hasMoreElements ( ) ) { DERObjectIdentifier oid = ( DERObjectIdentifier ) e . nextElement ( ) ; X509Extension ext = ( X509Extension ) extensions . get ( oid ) ; ASN1EncodableVector v = new ASN1EncodableVector (... |
public class JPAComponentImpl { /** * Locates and processes persistence . xml file in an EJB module . < p >
* @ param applInfo the application archive information
* @ param module the EJB module archive information */
private void processEJBModulePersistenceXml ( JPAApplInfo applInfo , ContainerInfo module , ClassL... | final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "processEJBModulePersistenceXml : " + applInfo . getApplName ( ) + "#" + module . getName ( ) ) ; String archiveName = module . getName ( ) ; Container ejbContainer = module . getContainer ... |
public class ClientJFapCommunicator { /** * Sets the SICoreConnection reference on the server
* @ param connection */
protected void setSICoreConnection ( SICoreConnection connection ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setSICoreConnection" , connection ) ; // Retrieve Client Conversation State if necessary
validateConversationState ( ) ; cConState . setSICoreConnection ( connection ) ; if ( TraceComponent . isAnyTracingEnabled ( ) ... |
public class BinaryJedis { /** * Move the specified member from the set at srckey to the set at dstkey . This operation is
* atomic , in every given moment the element will appear to be in the source or destination set
* for accessing clients .
* If the source set does not exist or does not contain the specified ... | checkIsInMultiOrPipeline ( ) ; client . smove ( srckey , dstkey , member ) ; return client . getIntegerReply ( ) ; |
public class Metadata { /** * Remove all values for the given key . If there were no values , { @ code null } is returned . */
public < T > Iterable < T > removeAll ( Key < T > key ) { } } | if ( isEmpty ( ) ) { return null ; } int writeIdx = 0 ; int readIdx = 0 ; List < T > ret = null ; for ( ; readIdx < size ; readIdx ++ ) { if ( bytesEqual ( key . asciiName ( ) , name ( readIdx ) ) ) { ret = ret != null ? ret : new ArrayList < T > ( ) ; ret . add ( key . parseBytes ( value ( readIdx ) ) ) ; continue ; }... |
public class Convolution { /** * Implement column formatted images
* @ param img the image to process
* @ param kh the kernel height
* @ param kw the kernel width
* @ param sy the stride along y
* @ param sx the stride along x
* @ param ph the padding width
* @ param pw the padding height
* @ param isSa... | return im2col ( img , kh , kw , sy , sx , ph , pw , 1 , 1 , isSameMode ) ; |
public class CmsCmisResourceHelper { /** * Deletes a CMIS object . < p >
* @ param context the call context
* @ param objectId the id of the object to delete
* @ param allVersions flag to delete all version */
public synchronized void deleteObject ( CmsCmisCallContext context , String objectId , boolean allVersio... | try { CmsObject cms = m_repository . getCmsObject ( context ) ; CmsUUID structureId = new CmsUUID ( objectId ) ; CmsResource resource = cms . readResource ( structureId ) ; if ( resource . isFolder ( ) ) { boolean isLeaf = ! hasChildren ( cms , resource ) ; if ( ! isLeaf ) { throw new CmisConstraintException ( "Only le... |
public class ContentHandlerImporter { /** * ( non - Javadoc )
* @ see org . xml . sax . ContentHandler # characters ( char [ ] , int , int ) */
public void characters ( char ch [ ] , int start , int length ) throws SAXException { } } | try { importer . characters ( ch , start , length ) ; } catch ( RepositoryException e ) { throw new SAXException ( e ) ; } |
public class DB { /** * Resolves user , author , terms and meta for a post .
* @ param post The post builder .
* @ return The builder with resolved items .
* @ throws SQLException on database error . */
public Post . Builder resolve ( final Post . Builder post ) throws SQLException { } } | Timer . Context ctx = metrics . resolvePostTimer . time ( ) ; try { User author = resolveUser ( post . getAuthorId ( ) ) ; if ( author != null ) { List < Meta > meta = userMetadata ( post . getAuthorId ( ) ) ; if ( meta . size ( ) > 0 ) { author = author . withMetadata ( meta ) ; } post . setAuthor ( author ) ; } List ... |
public class KeyValuePairMarshaller { /** * Marshall the given parameter object . */
public void marshall ( KeyValuePair keyValuePair , ProtocolMarshaller protocolMarshaller ) { } } | if ( keyValuePair == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( keyValuePair . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( keyValuePair . getValue ( ) , VALUE_BINDING ) ; } catch ( Exception e ) { throw new SdkClientE... |
public class HTTPRequest { /** * A complex type that contains two values for each header in the sampled web request : the name of the header and
* the value of the header .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setHeaders ( java . util . Collectio... | if ( this . headers == null ) { setHeaders ( new java . util . ArrayList < HTTPHeader > ( headers . length ) ) ; } for ( HTTPHeader ele : headers ) { this . headers . add ( ele ) ; } return this ; |
public class AmazonSageMakerClient { /** * Gets information about a work team provided by a vendor . It returns details about the subscription with a vendor
* in the AWS Marketplace .
* @ param describeSubscribedWorkteamRequest
* @ return Result of the DescribeSubscribedWorkteam operation returned by the service ... | request = beforeClientExecution ( request ) ; return executeDescribeSubscribedWorkteam ( request ) ; |
public class BlockSort { /** * swaps two values in fmap */
private void fswap ( int [ ] fmap , int zz1 , int zz2 ) { } } | int zztmp = fmap [ zz1 ] ; fmap [ zz1 ] = fmap [ zz2 ] ; fmap [ zz2 ] = zztmp ; |
public class VdmBreakpointPropertyPage { /** * Store the breakpoint properties .
* @ see org . eclipse . jface . preference . IPreferencePage # performOk ( ) */
public boolean performOk ( ) { } } | IWorkspaceRunnable wr = new IWorkspaceRunnable ( ) { public void run ( IProgressMonitor monitor ) throws CoreException { IVdmBreakpoint breakpoint = getBreakpoint ( ) ; boolean delOnCancel = breakpoint . getMarker ( ) . getAttribute ( ATTR_DELETE_ON_CANCEL ) != null ; if ( delOnCancel ) { // if this breakpoint is being... |
public class HashCalculator { /** * Removes all whitespaces from the text - the same way that Shir is doing for source files .
* @ param data - byte array
* @ return file as string */
private byte [ ] stripWhiteSpaces ( byte [ ] data ) { } } | ByteArrayOutputStream bos = new ByteArrayOutputStream ( ) ; for ( byte b : data ) { if ( ! WHITESPACES . contains ( b ) ) { bos . write ( b ) ; } } return bos . toByteArray ( ) ; |
public class Pattern { /** * Returns a matcher taking a text stream as target .
* < b > Note that this is not a true POSIX - style stream matching < / b > , i . e . the whole length of the text is preliminary read and stored in a char array .
* @ param text a text stream
* @ param length the length to read from a... | Matcher m = new Matcher ( this ) ; m . setTarget ( text , length ) ; return m ; |
public class TableManipulationConfigurationBuilder { /** * The type of the database column used to store the entries */
public S dataColumnType ( String dataColumnType ) { } } | attributes . attribute ( DATA_COLUMN_TYPE ) . set ( dataColumnType ) ; return self ( ) ; |
public class DatePickerBase { /** * { @ inheritDoc } */
@ Override protected void onLoad ( ) { } } | super . onLoad ( ) ; configure ( ) ; // With the new update the parent must have position : relative for positioning to work
if ( getElement ( ) . getParentElement ( ) != null ) { getElement ( ) . getParentElement ( ) . getStyle ( ) . setPosition ( Style . Position . RELATIVE ) ; } |
public class BpmnParse { /** * Parses a manual task . */
public ActivityImpl parseManualTask ( Element manualTaskElement , ScopeImpl scope ) { } } | ActivityImpl activity = createActivityOnScope ( manualTaskElement , scope ) ; activity . setActivityBehavior ( new ManualTaskActivityBehavior ( ) ) ; parseAsynchronousContinuationForActivity ( manualTaskElement , activity ) ; parseExecutionListenersOnScope ( manualTaskElement , activity ) ; for ( BpmnParseListener pars... |
public class DeploymentResourceSupport { /** * Checks to see if a resource has already been registered for the specified address on the subsystem .
* @ param subsystemName the name of the subsystem
* @ param address the address to check
* @ return { @ code true } if the address exists on the subsystem otherwise {... | final Resource root = deploymentUnit . getAttachment ( DEPLOYMENT_RESOURCE ) ; final PathElement subsystem = PathElement . pathElement ( SUBSYSTEM , subsystemName ) ; boolean found = false ; if ( root . hasChild ( subsystem ) ) { if ( address == PathAddress . EMPTY_ADDRESS ) { return true ; } Resource parent = root . g... |
public class CostGraphDef { /** * < code > repeated . tensorflow . CostGraphDef . Node node = 1 ; < / code > */
public java . util . List < ? extends org . tensorflow . framework . CostGraphDef . NodeOrBuilder > getNodeOrBuilderList ( ) { } } | return node_ ; |
public class EObjects { /** * Creates a map entry of type string , string .
* @ param key of entry
* @ param value of entry
* @ return entry */
@ SuppressWarnings ( "unchecked" ) public static EObject createEntry ( String key , Object value , EClass type ) { } } | if ( type == EcorePackage . Literals . ESTRING_TO_STRING_MAP_ENTRY ) { final EObject entry = EcoreUtil . create ( EcorePackage . Literals . ESTRING_TO_STRING_MAP_ENTRY ) ; entry . eSet ( EcorePackage . Literals . ESTRING_TO_STRING_MAP_ENTRY__KEY , key ) ; entry . eSet ( EcorePackage . Literals . ESTRING_TO_STRING_MAP_E... |
public class MacroCallTransformingVisitor { /** * Finds all extension methods of { @ link MacroContext } for given methodName
* with @ { @ link org . codehaus . groovy . macro . runtime . Macro } annotation . */
private List < MethodNode > findMacroMethods ( String methodName , List < Expression > callArguments ) { }... | List < MethodNode > methods = MacroMethodsCache . get ( classLoader ) . get ( methodName ) ; if ( methods == null ) { // Not a macro call
return Collections . emptyList ( ) ; } ClassNode [ ] argumentsList = new ClassNode [ callArguments . size ( ) ] ; for ( int i = 0 ; i < callArguments . size ( ) ; i ++ ) { argumentsL... |
public class Alerts { /** * 弹窗 , modality默认为 { @ link Modality # NONE } , window默认为null , style默认为 { @ link StageStyle # DECORATED }
* @ param title 标题
* @ param header 信息头
* @ param content 内容
* @ param alertType { @ link AlertType }
* @ return { @ link ButtonType } */
public static Optional < ButtonType > a... | return alert ( title , header , content , alertType , Modality . NONE , null , StageStyle . DECORATED ) ; |
public class ImageIOGreyScale { /** * Determines whether the caller has write access to the cache directory , stores the result in the
* < code > CacheInfo < / code > object , and returns the decision . This method helps to prevent mysterious
* SecurityExceptions to be thrown when this convenience class is used in ... | Boolean hasPermission = getCacheInfo ( ) . getHasPermission ( ) ; if ( hasPermission != null ) { return hasPermission . booleanValue ( ) ; } else { try { SecurityManager security = System . getSecurityManager ( ) ; if ( security != null ) { File cachedir = getCacheDirectory ( ) ; String cachepath ; if ( cachedir != nul... |
public class StatementDMQL { /** * Return a list of the display columns for the left most statement from a set op
* @ returnn */
private static List < Expression > getDisplayColumnsForSetOp ( QueryExpression queryExpr ) { } } | assert ( queryExpr != null ) ; if ( queryExpr . getLeftQueryExpression ( ) == null ) { // end of recursion . This is a QuerySpecification
assert ( queryExpr instanceof QuerySpecification ) ; QuerySpecification select = ( QuerySpecification ) queryExpr ; return select . displayCols ; } else { // recurse
return getDispla... |
public class StateParser { /** * Returns the string which was actually parsed with all the substitutions performed */
protected static SubstitutedLine doParse ( String str , ParsingStateCallbackHandler callbackHandler , ParsingState initialState , boolean strict , boolean disableResolutionException , CommandContext cmd... | if ( str == null || str . isEmpty ( ) ) { return new SubstitutedLine ( str ) ; } ParsingContextImpl ctx = new ParsingContextImpl ( ) ; ctx . initialState = initialState ; ctx . callbackHandler = callbackHandler ; ctx . input = str ; ctx . strict = strict ; ctx . cmdCtx = cmdCtx ; ctx . disableResolutionException = disa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.