signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class AbstractEJBRuntime { /** * Fully initialize the BeanMetaData . When this method completes
* successfully , bmd . fullyInitialized will be true ; this method must not be
* called if this field is already true . The context class loader must be
* the runtime class loader when calling this method . */
p... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "finishBMDInit: " + bmd . j2eeName ) ; // d640935.1
// First , create the reference context for the bean if we haven ' t already
// done so .
createReferenceContext ( bmd ) ; // F743-29417
ivEJBMDOrchestrator . finishBMDInitWit... |
public class BatchAddFacetToObjectMarshaller { /** * Marshall the given parameter object . */
public void marshall ( BatchAddFacetToObject batchAddFacetToObject , ProtocolMarshaller protocolMarshaller ) { } } | if ( batchAddFacetToObject == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( batchAddFacetToObject . getSchemaFacet ( ) , SCHEMAFACET_BINDING ) ; protocolMarshaller . marshall ( batchAddFacetToObject . getObjectAttributeList ( ) , OBJECTATT... |
public class EventFilterParser { /** * EventFilter . g : 186:1 : time _ millis _ function : ( TIME _ MILLIS _ FUN _ NAME ' ( ' STRING ' , ' STRING ' ) ' - > ^ ( TIME _ MILLIS _ FUN _ NAME STRING STRING ) | ) ; */
public final EventFilterParser . time_millis_function_return time_millis_function ( ) throws RecognitionExc... | EventFilterParser . time_millis_function_return retval = new EventFilterParser . time_millis_function_return ( ) ; retval . start = input . LT ( 1 ) ; CommonTree root_0 = null ; Token TIME_MILLIS_FUN_NAME95 = null ; Token char_literal96 = null ; Token STRING97 = null ; Token char_literal98 = null ; Token STRING99 = nul... |
public class BigtableInstanceAdminClient { /** * Constructs an instance of BigtableInstanceAdminClient with the given ProjectName and stub .
* @ deprecated Please use { @ link # create ( String , BigtableInstanceAdminStub ) } . */
@ Deprecated public static BigtableInstanceAdminClient create ( @ Nonnull com . google ... | return create ( projectName . getProject ( ) , stub ) ; |
public class RelationalOperationsMatrix { /** * with the interior of area B . */
private void interiorAreaInteriorArea_ ( int half_edge , int id_a , int id_b ) { } } | if ( m_matrix [ MatrixPredicate . InteriorInterior ] == 2 ) return ; int faceParentage = m_topo_graph . getHalfEdgeFaceParentage ( half_edge ) ; if ( ( faceParentage & id_a ) != 0 && ( faceParentage & id_b ) != 0 ) m_matrix [ MatrixPredicate . InteriorInterior ] = 2 ; |
public class AbstractWComponent { /** * This is where most of the painting work is normally done . If a layout has been supplied either directly or by
* supplying a velocity template , then painting is delegated to the layout manager . If there is no layout , the
* default behaviour is to paint the child components... | Renderer renderer = UIManager . getRenderer ( this , renderContext ) ; if ( getTemplate ( ) != null || getTemplateMarkUp ( ) != null ) { Renderer templateRenderer = UIManager . getTemplateRenderer ( renderContext ) ; templateRenderer . render ( this , renderContext ) ; } else if ( renderer == null ) { // Default is jux... |
public class CreatorJournalEntry { /** * Process the management method :
* < ul >
* < li > Check the operating mode - if we are in
* { @ link JournalOperatingMode # READ _ ONLY Read - Only } mode , this check will
* throw an exception . < / li >
* < li > Prepare the writer in case we need to initialize a new ... | synchronized ( JournalWriter . SYNCHRONIZER ) { JournalOperatingMode . enforceCurrentMode ( ) ; writer . prepareToWriteJournalEntry ( ) ; Object result = super . getMethod ( ) . invoke ( delegate ) ; writer . writeJournalEntry ( this ) ; return result ; } |
public class CloneUtility { /** * Creates a java . util . Properties map from a com . ibm . jbatch . jsl . model . Properties
* object .
* @ param xmlProperties
* @ return */
public static Properties jslPropertiesToJavaProperties ( final JSLProperties xmlProperties ) { } } | final Properties props = new Properties ( ) ; for ( final Property prop : xmlProperties . getPropertyList ( ) ) { props . setProperty ( prop . getName ( ) , prop . getValue ( ) ) ; } return props ; |
public class UriEscape { /** * Perform am URI path segment < strong > escape < / strong > operation
* on a < tt > Reader < / tt > input , writing results to a < tt > Writer < / tt > .
* The following are the only allowed chars in an URI path segment ( will not be escaped ) :
* < ul >
* < li > < tt > A - Z a - z... | if ( writer == null ) { throw new IllegalArgumentException ( "Argument 'writer' cannot be null" ) ; } if ( encoding == null ) { throw new IllegalArgumentException ( "Argument 'encoding' cannot be null" ) ; } UriEscapeUtil . escape ( reader , writer , UriEscapeUtil . UriEscapeType . PATH_SEGMENT , encoding ) ; |
public class OkCoinTradeServiceRaw { /** * 获取OKEX合约交易历史 ( 非个人 )
* @ param symbol
* @ param since
* @ param date
* @ return
* @ throws IOException */
public OkCoinFuturesTradeHistoryResult [ ] getFuturesTradesHistory ( String symbol , long since , String date ) throws IOException { } } | OkCoinFuturesTradeHistoryResult [ ] futuresHistory = okCoin . getFuturesTradeHistory ( apikey , since , symbol , date , signatureCreator ( ) ) ; return ( futuresHistory ) ; |
public class LoggingDecoratorBuilder { /** * Sets the { @ link Function } to use to sanitize a response cause before logging . You can
* sanitize the stack trace of the exception to remove sensitive information , or prevent from logging
* the stack trace completely by returning { @ code null } in the { @ link Funct... | this . responseCauseSanitizer = requireNonNull ( responseCauseSanitizer , "responseCauseSanitizer" ) ; return self ( ) ; |
public class SubdocHelper { /** * Check whether a { @ link ResponseStatus } is subdocument - level or not . That is to say an error code which ,
* if received in the context of a multi - operation , would not prevent the successful execution of other
* operations in that packet .
* For instance , { @ link Respons... | switch ( responseStatus ) { case SUBDOC_PATH_NOT_FOUND : case SUBDOC_PATH_EXISTS : case SUBDOC_DELTA_RANGE : case SUBDOC_NUM_RANGE : case SUBDOC_VALUE_TOO_DEEP : case SUBDOC_PATH_TOO_BIG : case SUBDOC_PATH_INVALID : case SUBDOC_PATH_MISMATCH : case SUBDOC_VALUE_CANTINSERT : return true ; case SUBDOC_DOC_NOT_JSON : case... |
public class PeekView { /** * Sets the height of the view in PX .
* @ param height the height of the circle in px */
private void setHeight ( int height ) { } } | contentParams . height = options . fullScreenPeek ( ) ? screenHeight : height ; content . setLayoutParams ( contentParams ) ; |
public class ZeroMQNetworkService { /** * Set the reference to the space service .
* @ param service the service . */
@ Inject public void setSpaceService ( ContextSpaceService service ) { } } | if ( this . spaceService != null ) { this . spaceService . removeSpaceRepositoryListener ( this . serviceListener ) ; } this . spaceService = service ; if ( this . spaceService != null ) { this . spaceService . addSpaceRepositoryListener ( this . serviceListener ) ; } |
public class AccountsImpl { /** * Lists all node agent SKUs supported by the Azure Batch service .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the PagedList & lt ; NodeAgentSku & gt ; object wrapped in { @ link ServiceResponseWithHeaders } if successful . */
public Observ... | if ( this . client . batchUrl ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.batchUrl() is required and cannot be null." ) ; } if ( this . client . apiVersion ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.apiVersion() is required and cannot be null." ) ; } fina... |
public class TopologyUtils { /** * Parses the value in Config . TOPOLOGY _ COMPONENT _ DISKMAP ,
* and returns a map containing only component specified .
* Returns a empty map if the Config is not set
* @ param topology the topology def
* @ return a map ( componentName - & gt ; disk required ) */
public static... | Map < String , String > configMap = getComponentConfigMap ( topology , Config . TOPOLOGY_COMPONENT_DISKMAP ) ; Map < String , ByteAmount > diskMap = new HashMap < > ( ) ; for ( Map . Entry < String , String > entry : configMap . entrySet ( ) ) { long requiredDisk = Long . parseLong ( entry . getValue ( ) ) ; diskMap . ... |
public class MockSecurityGroupController { /** * Create the mock SecurityGroup .
* @ param groupName group Name .
* @ param groupDescription group Description .
* @ param vpcId vpc Id for Security Group .
* @ return mock Security Group . */
public MockSecurityGroup createSecurityGroup ( final String groupName ,... | MockSecurityGroup ret = new MockSecurityGroup ( ) ; ret . setGroupName ( groupName ) ; ret . setGroupDescription ( groupDescription ) ; ret . setGroupId ( "sg-" + UUID . randomUUID ( ) . toString ( ) . substring ( 0 , SECURITYGROUP_ID_POSTFIX_LENGTH ) ) ; ret . setVpcId ( vpcId ) ; MockIpPermissionType mockIpPermission... |
public class Matrix4x3f { /** * Set this matrix to a model transformation for a right - handed coordinate system ,
* that translates to the given < code > pos < / code > and aligns the local < code > - z < / code >
* axis with < code > dir < / code > .
* This method is equivalent to calling : < code > translation... | return translationRotateTowards ( pos . x ( ) , pos . y ( ) , pos . z ( ) , dir . x ( ) , dir . y ( ) , dir . z ( ) , up . x ( ) , up . y ( ) , up . z ( ) ) ; |
public class Message { /** * returns the hmac of the data and the annotation chunk values ( except HMAC chunk itself ) */
public byte [ ] hmac ( byte [ ] key ) { } } | try { Key secretKey = new SecretKeySpec ( key , "HmacSHA1" ) ; Mac hmac_algo = Mac . getInstance ( "HmacSHA1" ) ; hmac_algo . init ( secretKey ) ; hmac_algo . update ( this . data ) ; for ( Entry < String , byte [ ] > a : this . annotations . entrySet ( ) ) // this is in a fixed order because it is a SortedMap
{ if ( !... |
public class QueueFile { /** * Writes header atomically . The arguments contain the updated values . The class member fields
* should not have changed yet . This only updates the state in the file . It ' s up to the caller to
* update the class member variables * after * this call succeeds . Assumes segment writes ... | writeInt ( buffer , 0 , fileLength ) ; writeInt ( buffer , 4 , elementCount ) ; writeInt ( buffer , 8 , firstPosition ) ; writeInt ( buffer , 12 , lastPosition ) ; raf . seek ( 0 ) ; raf . write ( buffer ) ; |
public class SimpleEncryptor { /** * { @ inheritDoc } */
@ Override public String encrypt ( final String string ) throws UnsupportedEncodingException , IllegalBlockSizeException , BadPaddingException , InvalidKeyException , NoSuchAlgorithmException , InvalidKeySpecException , NoSuchPaddingException , InvalidAlgorithmPa... | initialize ( ) ; final byte [ ] utf8 = string . getBytes ( StandardCharsets . UTF_8 . name ( ) ) ; final byte [ ] encrypt = this . cipher . doFinal ( utf8 ) ; final String encrypted = Base64 . getEncoder ( ) . encodeToString ( encrypt ) ; return encrypted ; |
public class IotHubResourcesInner { /** * Get the health for routing endpoints .
* Get the health for routing endpoints .
* ServiceResponse < PageImpl < EndpointHealthDataInner > > * @ param nextPageLink The NextLink from the previous successful call to List operation .
* @ throws IllegalArgumentException thrown ... | if ( nextPageLink == null ) { throw new IllegalArgumentException ( "Parameter nextPageLink is required and cannot be null." ) ; } String nextUrl = String . format ( "%s" , nextPageLink ) ; return service . getEndpointHealthNext ( nextUrl , this . client . acceptLanguage ( ) , this . client . userAgent ( ) ) . flatMap (... |
public class StringSetPreference { /** * Set the value for the preference */
@ SuppressLint ( "CommitPrefEdits" ) @ Override public void set ( Set < String > value ) { } } | getPreferences ( ) . edit ( ) . putStringSet ( getKey ( ) , value ) . apply ( ) ; |
public class TransactionSet { /** * Compute a list of queues that were updated in this transaction set */
public synchronized List < LocalQueue > updatedQueues ( List < String > deliveredMessageIDs ) throws FFMQException { } } | int len = deliveredMessageIDs . size ( ) ; List < LocalQueue > updatedQueues = new ArrayList < > ( len ) ; for ( int n = 0 ; n < len ; n ++ ) { String deliveredMessageID = deliveredMessageIDs . get ( len - n - 1 ) ; boolean found = false ; Iterator < TransactionItem > entries = items . iterator ( ) ; while ( entries . ... |
public class SoyFutureValueProvider { /** * Calls Future . get ( ) and then converts the result to SoyValue . Note that this result can never
* return { @ code null } , since null converts to { @ code NullData . INSTANCE } . */
@ Override @ Nonnull protected final SoyValue compute ( ) { } } | try { if ( ! future . isDone ( ) ) { futureBlockCallback . get ( ) . beforeBlock ( ) ; } return SoyValueConverter . INSTANCE . convert ( future . get ( ) ) . resolve ( ) ; } catch ( ExecutionException e ) { throw new SoyFutureException ( e . getCause ( ) ) ; } catch ( Throwable e ) { throw new SoyFutureException ( e ) ... |
public class ButtonBar { /** * Builds and returns { @ link VisTable } containing buttons in platform dependant order . Note that calling this multiple
* times will remove buttons from previous tables . */
public VisTable createTable ( ) { } } | VisTable table = new VisTable ( true ) ; table . left ( ) ; boolean spacingValid = false ; for ( int i = 0 ; i < order . length ( ) ; i ++ ) { char ch = order . charAt ( i ) ; if ( ignoreSpacing == false && ch == ' ' && spacingValid ) { table . add ( ) . width ( sizes . buttonBarSpacing ) ; spacingValid = false ; } But... |
public class TSProcessor { /** * Z - Normalize routine .
* @ param series the input timeseries .
* @ param normalizationThreshold the zNormalization threshold value .
* @ return Z - normalized time - series . */
public double [ ] znorm ( double [ ] series , double normalizationThreshold ) { } } | double [ ] res = new double [ series . length ] ; double sd = stDev ( series ) ; if ( sd < normalizationThreshold ) { // return series . clone ( ) ;
// return array of zeros
return res ; } double mean = mean ( series ) ; for ( int i = 0 ; i < res . length ; i ++ ) { res [ i ] = ( series [ i ] - mean ) / sd ; } return r... |
public class GetParameterHistoryResult { /** * A list of parameters returned by the request .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setParameters ( java . util . Collection ) } or { @ link # withParameters ( java . util . Collection ) } if you want ... | if ( this . parameters == null ) { setParameters ( new com . amazonaws . internal . SdkInternalList < ParameterHistory > ( parameters . length ) ) ; } for ( ParameterHistory ele : parameters ) { this . parameters . add ( ele ) ; } return this ; |
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getOCD ( ) { } } | if ( ocdEClass == null ) { ocdEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 309 ) ; } return ocdEClass ; |
public class N { /** * Mostly it ' s designed for one - step operation to complete the operation in one step .
* < code > java . util . stream . Stream < / code > is preferred for multiple phases operation .
* @ param a
* @ param fromIndex
* @ param toIndex
* @ param func
* @ return */
public static < T , E... | checkFromToIndex ( fromIndex , toIndex , len ( a ) ) ; N . checkArgNotNull ( func ) ; if ( N . isNullOrEmpty ( a ) ) { return new FloatList ( ) ; } final FloatList result = new FloatList ( toIndex - fromIndex ) ; for ( int i = fromIndex ; i < toIndex ; i ++ ) { result . add ( func . applyAsFloat ( a [ i ] ) ) ; } retur... |
public class PaddingLogRecord { /** * Called to perform recovery action during a warm start of the ObjectManager .
* @ param objectManagerState of the ObjectManager performing recovery .
* @ throws ObjectManagerException */
public void performRecovery ( ObjectManagerState objectManagerState ) throws ObjectManagerEx... | if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "performRecovery" , new Object [ ] { objectManagerState } ) ; // Nothing to do .
if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( this , cclass , "performRecovery" ) ; |
public class DataFile { /** * Returns whether the file exists in the Data API
* @ return true iff the file exists
* @ throws APIException if there were any problems communicating with the DataAPI */
public boolean exists ( ) throws APIException { } } | HttpResponse response = client . head ( getUrl ( ) ) ; int status = response . getStatusLine ( ) . getStatusCode ( ) ; if ( status != 200 && status != 404 ) { throw APIException . fromHttpResponse ( response ) ; } return ( 200 == status ) ; |
public class InitStrategy { /** * Obtains the instance to be used . */
public static InitStrategy get ( ClassLoader cl ) throws IOException { } } | Iterator < InitStrategy > it = ServiceLoader . load ( InitStrategy . class , cl ) . iterator ( ) ; if ( ! it . hasNext ( ) ) { return new InitStrategy ( ) ; // default
} InitStrategy s = it . next ( ) ; LOGGER . log ( Level . FINE , "Using {0} as InitStrategy" , s ) ; return s ; |
public class Equation { /** * Checks to see if the token is an integer scalar
* @ return true if integer or false if not */
private static boolean isVariableInteger ( TokenList . Token t ) { } } | if ( t == null ) return false ; return t . getScalarType ( ) == VariableScalar . Type . INTEGER ; |
public class MockMethodDispatcher { /** * Calls { @ code MockMethodAdvice # handle } */
public Callable < ? > handle ( Object instance , Method origin , Object [ ] arguments ) throws Throwable { } } | try { return ( Callable < ? > ) mAdvice . getClass ( ) . getMethod ( "handle" , Object . class , Method . class , Object [ ] . class ) . invoke ( mAdvice , instance , origin , arguments ) ; } catch ( InvocationTargetException e ) { throw e . getCause ( ) ; } |
public class ReconciliationLineItemReportServiceLocator { /** * For the given interface , get the stub implementation .
* If this service has no port for the given interface ,
* then ServiceException is thrown . */
public java . rmi . Remote getPort ( Class serviceEndpointInterface ) throws javax . xml . rpc . Serv... | try { if ( com . google . api . ads . admanager . axis . v201805 . ReconciliationLineItemReportServiceInterface . class . isAssignableFrom ( serviceEndpointInterface ) ) { com . google . api . ads . admanager . axis . v201805 . ReconciliationLineItemReportServiceSoapBindingStub _stub = new com . google . api . ads . ad... |
public class DateTimePicker { /** * Shows the dialog to the user . Make sure to call
* { @ link # setListener ( ) } before calling this . */
public void show ( ) { } } | if ( mListener == null ) { throw new NullPointerException ( "Attempting to bind null listener to SlideDateTimePicker" ) ; } if ( mInitialDate == null ) { setInitialDate ( new Date ( ) ) ; } DateTimeDialogFragment dialogFragment = DateTimeDialogFragment . newInstance ( mListener , mInitialDate , mMinDate , mMaxDate , mI... |
public class MultipleRecommendationRunner { /** * Runs Ranksys - based recommenders .
* @ param paths the input and output paths .
* @ param properties the properties . */
public static void runRanksysRecommenders ( final Set < String > paths , final Properties properties ) { } } | for ( AbstractRunner < Long , Long > rec : instantiateRanksysRecommenders ( paths , properties ) ) { RecommendationRunner . run ( rec ) ; } |
public class ReflectUtils { /** * 得到set方法
* @ param clazz 类
* @ param property 属性
* @ param propertyClazz 属性
* @ return Method 方法对象 */
public static Method getPropertySetterMethod ( Class clazz , String property , Class propertyClazz ) { } } | String methodName = "set" + property . substring ( 0 , 1 ) . toUpperCase ( ) + property . substring ( 1 ) ; try { return clazz . getMethod ( methodName , propertyClazz ) ; } catch ( NoSuchMethodException e ) { throw new SofaRpcRuntimeException ( "No setter method for " + clazz . getName ( ) + "#" + property , e ) ; } |
public class NanoUtils { /** * Adapt { @ code parser } to a { @ link Marshaller } .
* @ since 1.0.0 */
public static < T extends MessageNano > Marshaller < T > marshaller ( MessageNanoFactory < T > factory ) { } } | return new MessageMarshaller < > ( factory ) ; |
public class CommerceCountryPersistenceImpl { /** * Returns the last commerce country in the ordered set where uuid = & # 63 ; .
* @ param uuid the uuid
* @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > )
* @ return the last matching commerce country
* @ throws... | CommerceCountry commerceCountry = fetchByUuid_Last ( uuid , orderByComparator ) ; if ( commerceCountry != null ) { return commerceCountry ; } StringBundler msg = new StringBundler ( 4 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "uuid=" ) ; msg . append ( uuid ) ; msg . append ( "}" ) ; throw new NoSu... |
public class ConfigurationFile { /** * Finds a single file in { @ code searchDir } whose name ends with " { @ code . backupType . xml } "
* and returns its name with { @ code . backupType } removed .
* @ param searchDir the directory to search
* @ param backupType the backup type ; { @ link # LAST } , { @ link # ... | final String suffix = "." + backupType + ".xml" ; File [ ] files = null ; if ( searchDir . exists ( ) && searchDir . isDirectory ( ) ) { files = searchDir . listFiles ( new FilenameFilter ( ) { @ Override public boolean accept ( File dir , String name ) { return name . endsWith ( suffix ) ; } } ) ; } if ( files == null... |
public class PdfContentByte { /** * Appends a straight line segment from the current point < I > ( x , y ) < / I > . The new current
* point is < I > ( x , y ) < / I > .
* @ param x new x - coordinate
* @ param y new y - coordinate */
public void lineTo ( float x , float y ) { } } | content . append ( x ) . append ( ' ' ) . append ( y ) . append ( " l" ) . append_i ( separator ) ; |
public class GitHubClientCacheOps { /** * Removes all not active dirs with old caches .
* This method is invoked after each save of global plugin config
* @ param configs active server configs to exclude caches from cleanup */
public static void clearRedundantCaches ( List < GitHubServerConfig > configs ) { } } | Path baseCacheDir = getBaseCacheDir ( ) ; if ( notExists ( baseCacheDir ) ) { return ; } final Set < String > actualNames = from ( configs ) . filter ( withEnabledCache ( ) ) . transform ( toCacheDir ( ) ) . transform ( cacheToName ( ) ) . toSet ( ) ; try ( DirectoryStream < Path > caches = newDirectoryStream ( baseCac... |
public class LocalTransaction { /** * Calculates the list of nodes to which a commit / rollback needs to be sent based on the nodes to which prepare
* was sent . If the commit / rollback is to be sent in the same topologyId , then the ' recipients ' param is returned back .
* If the current topologyId is different ... | int currentTopologyId = cacheTopology . getTopologyId ( ) ; List < Address > members = cacheTopology . getMembers ( ) ; if ( trace ) log . tracef ( "getCommitNodes recipients=%s, currentTopologyId=%s, members=%s, txTopologyId=%s" , recipients , currentTopologyId , members , getTopologyId ( ) ) ; if ( hasModification ( ... |
public class TBSONProtocol { /** * Push a new write context onto the stack . */
protected void pushContext ( Context c ) { } } | Stack < Context > stack = threadSafeContextStack . get ( ) ; if ( stack == null ) { stack = new Stack < Context > ( ) ; stack . push ( c ) ; threadSafeContextStack . set ( stack ) ; } else { threadSafeContextStack . get ( ) . push ( c ) ; } |
public class StorePackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EEnum getProgressTopicType ( ) { } } | if ( progressTopicTypeEEnum == null ) { progressTopicTypeEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( StorePackage . eNS_URI ) . getEClassifiers ( ) . get ( 89 ) ; } return progressTopicTypeEEnum ; |
public class IdGenerator { /** * Generate Id when given sequence generation strategy .
* @ param m
* @ param client
* @ param keyValue
* @ param e */
private Object onSequenceGenerator ( EntityMetadata m , Client < ? > client , IdDiscriptor keyValue , Object e ) { } } | Object seqgenerator = getAutoGenClazz ( client ) ; if ( seqgenerator instanceof SequenceGenerator ) { Object generatedId = ( ( SequenceGenerator ) seqgenerator ) . generate ( keyValue . getSequenceDiscriptor ( ) , client , m . getIdAttribute ( ) . getJavaType ( ) . getSimpleName ( ) ) ; try { generatedId = PropertyAcce... |
public class OrthologizeTool { /** * Sets the reportable implementation for { @ link System # out } and
* { @ link System # err } . */
private void reportable ( ) { } } | final SimpleOutput reportable = new SimpleOutput ( ) ; reportable . setErrorStream ( System . err ) ; reportable . setOutputStream ( System . out ) ; setReportable ( reportable ) ; |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcWorkTime ( ) { } } | if ( ifcWorkTimeEClass == null ) { ifcWorkTimeEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 774 ) ; } return ifcWorkTimeEClass ; |
public class InternalXbaseParser { /** * InternalXbase . g : 267:1 : ruleXEqualityExpression : ( ( rule _ _ XEqualityExpression _ _ Group _ _ 0 ) ) ; */
public final void ruleXEqualityExpression ( ) throws RecognitionException { } } | int stackSize = keepStackSize ( ) ; try { // InternalXbase . g : 271:2 : ( ( ( rule _ _ XEqualityExpression _ _ Group _ _ 0 ) ) )
// InternalXbase . g : 272:2 : ( ( rule _ _ XEqualityExpression _ _ Group _ _ 0 ) )
{ // InternalXbase . g : 272:2 : ( ( rule _ _ XEqualityExpression _ _ Group _ _ 0 ) )
// InternalXbase . g... |
public class Joiner { /** * Returns a joiner with the same behavior as this one , except automatically substituting { @ code
* nullText } for any provided null elements . */
@ CheckReturnValue public Joiner useForNull ( final String nullText ) { } } | checkNotNull ( nullText ) ; return new Joiner ( this ) { @ Override CharSequence toString ( @ Nullable Object part ) { return ( part == null ) ? nullText : Joiner . this . toString ( part ) ; } @ Override public Joiner useForNull ( String nullText ) { throw new UnsupportedOperationException ( "already specified useForN... |
public class SpiderController { /** * Adds a new seed , if it wasn ' t already processed .
* @ param uri the uri
* @ param method the http method used for fetching the resource */
protected void addSeed ( URI uri , String method ) { } } | // Check if the uri was processed already
String visitedURI ; try { visitedURI = URLCanonicalizer . buildCleanedParametersURIRepresentation ( uri , spider . getSpiderParam ( ) . getHandleParameters ( ) , spider . getSpiderParam ( ) . isHandleODataParametersVisited ( ) ) ; } catch ( URIException e ) { return ; } synchro... |
public class ListItemBox { /** * Draw the list item symbol , number or image depending on list - style - type */
public void drawMarker ( Graphics2D g ) { } } | Shape oldclip = g . getClip ( ) ; if ( clipblock != null ) g . setClip ( applyClip ( oldclip , clipblock . getClippedContentBounds ( ) ) ) ; if ( image != null ) { if ( ! drawImage ( g ) ) drawBullet ( g ) ; } else drawBullet ( g ) ; g . setClip ( oldclip ) ; |
public class ScheduleGenerator { /** * ScheduleFromPeriods generation for given { referenceDate , startDate , maturityDate } . Method using Date instead of LocalDate for backward compatibility .
* Generates a schedule based on some meta data .
* < ul >
* < li > The schedule generation considers short stub periods... | return createScheduleFromConventions ( Instant . ofEpochMilli ( referenceDate . getTime ( ) ) . atZone ( ZoneId . systemDefault ( ) ) . toLocalDate ( ) , Instant . ofEpochMilli ( startDate . getTime ( ) ) . atZone ( ZoneId . systemDefault ( ) ) . toLocalDate ( ) , Instant . ofEpochMilli ( maturityDate . getTime ( ) ) .... |
public class CoreActivity { /** * Prepares a new activity for the Translet Rule by taking
* the results of the process that was created earlier .
* @ param requestName the request name
* @ param requestMethod the request method
* @ param transletRule the translet rule
* @ param parentTranslet the process resu... | try { if ( log . isDebugEnabled ( ) ) { log . debug ( "Translet " + transletRule ) ; } newTranslet ( requestMethod , requestName , transletRule , parentTranslet ) ; if ( parentTranslet == null ) { if ( isIncluded ( ) ) { backupCurrentActivity ( ) ; saveCurrentActivity ( ) ; } else { saveCurrentActivity ( ) ; } adapt ( ... |
public class MtasSolrBaseList { /** * Gets the .
* @ param key
* the key
* @ return the mtas solr status
* @ throws IOException
* Signals that an I / O exception has occurred . */
public final MtasSolrStatus get ( String key ) throws IOException { } } | return index . get ( Objects . requireNonNull ( key , "no key provided" ) ) ; |
public class PHS398FellowshipSupplementalV1_1Generator { /** * This method is used to get FederalStipendRequested XMLObject and set
* additional information data to it . */
private FederalStipendRequested getFederalStipendRequested ( ) { } } | FederalStipendRequested federalStipendRequested = FederalStipendRequested . Factory . newInstance ( ) ; ProposalDevelopmentBudgetExtContract budget = s2SCommonBudgetService . getBudget ( pdDoc . getDevelopmentProposal ( ) ) ; if ( budget == null ) { return federalStipendRequested ; } ScaleTwoDecimal sumOfLineItemCost =... |
public class druidGLexer { /** * $ ANTLR start " OCTAL _ ESC " */
public final void mOCTAL_ESC ( ) throws RecognitionException { } } | try { // druidG . g : 741:5 : ( ' \ \ \ \ ' ( ' 0 ' . . ' 3 ' ) ( ' 0 ' . . ' 7 ' ) ( ' 0 ' . . ' 7 ' ) | ' \ \ \ \ ' ( ' 0 ' . . ' 7 ' ) ( ' 0 ' . . ' 7 ' ) | ' \ \ \ \ ' ( ' 0 ' . . ' 7 ' ) )
int alt46 = 3 ; int LA46_0 = input . LA ( 1 ) ; if ( ( LA46_0 == '\\' ) ) { int LA46_1 = input . LA ( 2 ) ; if ( ( ( LA46_1 >=... |
public class Encoder { /** * Interleave " bits " with corresponding error correction bytes . On success , store the result in
* " result " . The interleave rule is complicated . See 8.6 of JISX0510:2004 ( p . 37 ) for details . */
static BitArray interleaveWithECBytes ( BitArray bits , int numTotalBytes , int numData... | // " bits " must have " getNumDataBytes " bytes of data .
if ( bits . getSizeInBytes ( ) != numDataBytes ) { throw new WriterException ( "Number of bits and data bytes does not match" ) ; } // Step 1 . Divide data bytes into blocks and generate error correction bytes for them . We ' ll
// store the divided data bytes b... |
public class TypeConverter { /** * Converts value into an object type specified by Type Code or returns null
* when conversion is not possible .
* @ param type the Class type for the data type .
* @ param value the value to convert .
* @ return object value of type corresponding to TypeCode , or null when
* c... | TypeCode resultType = toTypeCode ( type ) ; if ( value == null ) return null ; if ( type . isInstance ( value ) ) return ( T ) value ; // Convert to known types
if ( resultType == TypeCode . String ) return type . cast ( StringConverter . toNullableString ( value ) ) ; else if ( resultType == TypeCode . Integer ) retur... |
public class CassandraCpoAdapter { /** * DOCUMENT ME !
* @ param obj DOCUMENT ME !
* @ param type DOCUMENT ME !
* @ param name DOCUMENT ME !
* @ param session DOCUMENT ME !
* @ return DOCUMENT ME !
* @ throws CpoException DOCUMENT ME ! */
protected < T > String getGroupType ( T obj , String type , String na... | String retType = type ; long objCount ; if ( CpoAdapter . PERSIST_GROUP . equals ( retType ) ) { objCount = existsObject ( name , obj , session , null ) ; if ( objCount == 0 ) { retType = CpoAdapter . CREATE_GROUP ; } else if ( objCount == 1 ) { retType = CpoAdapter . UPDATE_GROUP ; } else { throw new CpoException ( "P... |
public class Tree { /** * Return ( depth < < 32 ) | ( leaves ) , in 1 pass . */
public static long depth_leaves ( AutoBuffer tbits , boolean regression ) { } } | return new TreeVisitor < RuntimeException > ( tbits , regression ) { int _maxdepth , _depth , _leaves ; @ Override protected TreeVisitor leafFloat ( float fl ) { _leaves ++ ; if ( _depth > _maxdepth ) _maxdepth = _depth ; return this ; } @ Override protected TreeVisitor leaf ( int tclass ) { _leaves ++ ; if ( _depth > ... |
public class CrtAuthServer { /** * Get the public key for a user by iterating through all key providers . The first
* matching key will be returned .
* @ param userName the username to get the key for
* @ return the first RSAPublicKey found for the user
* @ throws KeyNotFoundException */
private RSAPublicKey ge... | RSAPublicKey key = null ; for ( final KeyProvider keyProvider : keyProviders ) { try { key = keyProvider . getKey ( userName ) ; break ; } catch ( KeyNotFoundException e ) { // that ' s fine , try the next provider
} } if ( key == null ) { throw new KeyNotFoundException ( ) ; } return key ; |
public class BigIntStringChecksum { /** * Routine to construct an instance that allows you to print the hex strings .
* Such as
* String s = BigIntStringChecksum create ( biginteger ) . toString ( ) ;
* s . equals ( " bigintcs : 00f3ea - CBA3D0 " ) ;
* @ param in the big integer to hexify and md5 check sum
* ... | if ( in == null ) { throw new SecretShareException ( "Input BigInteger cannot be null" ) ; } final String inHex = in . toString ( HEX_RADIX ) ; final String inAsHex = pad ( inHex ) ; String md5checksum = computeMd5ChecksumLimit6 ( inAsHex ) ; return new BigIntStringChecksum ( inAsHex , md5checksum ) ; |
public class ConfigClient { /** * Gets a sink .
* < p > Sample code :
* < pre > < code >
* try ( ConfigClient configClient = ConfigClient . create ( ) ) {
* SinkName sinkName = ProjectSinkName . of ( " [ PROJECT ] " , " [ SINK ] " ) ;
* LogSink response = configClient . getSink ( sinkName . toString ( ) ) ;
... | GetSinkRequest request = GetSinkRequest . newBuilder ( ) . setSinkName ( sinkName ) . build ( ) ; return getSink ( request ) ; |
public class FactoryDenoiseWaveletAlg { /** * Returns { @ link DenoiseBayesShrink _ F32 Bayes shrink } wavelet based image denoiser .
* @ param rule Shrinkage rule . If null then a { @ link ShrinkThresholdSoft _ F32 soft threshold } rule will be used .
* @ param imageType Type of image it will process .
* @ retur... | if ( rule == null ) { rule = ( ShrinkThresholdRule < T > ) new ShrinkThresholdSoft_F32 ( ) ; } if ( imageType == GrayF32 . class ) { return ( DenoiseWavelet < T > ) new DenoiseBayesShrink_F32 ( ( ShrinkThresholdRule < GrayF32 > ) rule ) ; } else { throw new IllegalArgumentException ( "Unsupported image type " + imageTy... |
public class ORTO { /** * region - - - Option tree methods */
protected Node findWorstOption ( ) { } } | Stack < Node > stack = new Stack < Node > ( ) ; stack . add ( treeRoot ) ; double ratio = Double . MIN_VALUE ; Node out = null ; while ( ! stack . empty ( ) ) { Node node = stack . pop ( ) ; if ( node . getParent ( ) instanceof OptionNode ) { OptionNode myParent = ( OptionNode ) node . getParent ( ) ; int nodeIndex = m... |
public class VirtualMachineScaleSetsInner { /** * Upgrades one or more virtual machines to the latest SKU set in the VM scale set model .
* @ param resourceGroupName The name of the resource group .
* @ param vmScaleSetName The name of the VM scale set .
* @ param instanceIds The virtual machine scale set instanc... | return updateInstancesWithServiceResponseAsync ( resourceGroupName , vmScaleSetName , instanceIds ) . toBlocking ( ) . last ( ) . body ( ) ; |
public class SnowflakeConnectionV1 { /** * Method to put data from a stream at a stage location . The data will be
* uploaded as one file . No splitting is done in this method .
* Stream size must match the total size of data in the input stream unless
* compressData parameter is set to true .
* caller is respo... | uploadStreamInternal ( stageName , destPrefix , inputStream , destFileName , false ) ; |
public class Transmitter { /** * Sets the base address for this transmitter .
* @ param baseId
* the base address for this transmitter . */
public void setBaseId ( byte [ ] baseId ) { } } | if ( baseId == null ) { throw new IllegalArgumentException ( "Transmitter base ID cannot be null." ) ; } if ( baseId . length != TRANSMITTER_ID_SIZE ) { throw new IllegalArgumentException ( String . format ( "Transmitter base ID must be %d bytes long." , Integer . valueOf ( TRANSMITTER_ID_SIZE ) ) ) ; } this . baseId =... |
public class Annotations { /** * Process : @ ConnectionDefinition
* @ param annotationRepository The annotation repository
* @ param classLoader The class loader
* @ param configProperty The config properties
* @ param plainConfigProperty The plain config properties
* @ return The updated metadata
* @ excep... | ArrayList < ConnectionDefinition > connectionDefinitions = null ; Collection < Annotation > values = annotationRepository . getAnnotation ( javax . resource . spi . ConnectionDefinition . class ) ; if ( values != null ) { connectionDefinitions = new ArrayList < ConnectionDefinition > ( values . size ( ) ) ; for ( Annot... |
public class IntegrationAccountBatchConfigurationsInner { /** * List the batch configurations for an integration account .
* @ param resourceGroupName The resource group name .
* @ param integrationAccountName The integration account name .
* @ throws IllegalArgumentException thrown if parameters fail the validat... | return listWithServiceResponseAsync ( resourceGroupName , integrationAccountName ) . map ( new Func1 < ServiceResponse < List < BatchConfigurationInner > > , List < BatchConfigurationInner > > ( ) { @ Override public List < BatchConfigurationInner > call ( ServiceResponse < List < BatchConfigurationInner > > response )... |
public class RepositoryTags { /** * returns the opening xml - tag associated with the repository element with
* id < code > elementId < / code > .
* @ return the resulting tag */
public String getCompleteTagById ( int elementId , String characters ) { } } | String result = getOpeningTagById ( elementId ) ; result += characters ; result += getClosingTagById ( elementId ) ; return result ; |
public class Swipe { /** * Called to process touch screen events .
* @ param event MotionEvent */
public boolean dispatchTouchEvent ( final MotionEvent event ) { } } | checkNotNull ( event , "event == null" ) ; boolean isEventConsumed = false ; switch ( event . getAction ( ) ) { case MotionEvent . ACTION_DOWN : // user started touching the screen
onActionDown ( event ) ; break ; case MotionEvent . ACTION_UP : // user stopped touching the screen
isEventConsumed = onActionUp ( event ) ... |
public class hanode_routemonitor_binding { /** * Use this API to fetch hanode _ routemonitor _ binding resources of given name . */
public static hanode_routemonitor_binding [ ] get ( nitro_service service , Long id ) throws Exception { } } | hanode_routemonitor_binding obj = new hanode_routemonitor_binding ( ) ; obj . set_id ( id ) ; hanode_routemonitor_binding response [ ] = ( hanode_routemonitor_binding [ ] ) obj . get_resources ( service ) ; return response ; |
public class AbstractManagerFactory { /** * Provide the statically computed table name with keyspace ( if defined ) for a given entity class
* @ param entityClass given entity class
* @ return statically computed table name with keyspace ( if define ) */
public Optional < String > staticTableNameFor ( Class < ? > e... | final Optional < String > tableName = entityProperties . stream ( ) . filter ( x -> x . entityClass . equals ( entityClass ) ) . map ( x -> x . getKeyspace ( ) . map ( ks -> ks + "." + x . getTableOrViewName ( ) ) . orElseGet ( x :: getTableOrViewName ) ) . findFirst ( ) ; if ( LOGGER . isTraceEnabled ( ) ) { LOGGER . ... |
public class ZLIBCodec { /** * Compress / encode the data provided using the ZLIB format .
* @ param data data to compress
* @ return compressed data
* @ throws IOException on compression failure */
public static byte [ ] encode ( final byte [ ] data ) throws IOException { } } | ByteArrayOutputStream byteOut = new ByteArrayOutputStream ( ) ; DeflaterOutputStream deflateOut = null ; try { deflateOut = new DeflaterOutputStream ( byteOut ) ; deflateOut . write ( data ) ; deflateOut . close ( ) ; byteOut . close ( ) ; return byteOut . toByteArray ( ) ; } finally { deflateOut . close ( ) ; byteOut ... |
public class P3Parse { /** * Gets an expression that evaluates to the denotation of
* this parse . The expression will not re - evaluate any
* already evaluated subexpressions of this parse . { @ code env }
* may be extended with additional variable bindings to
* capture denotations of already - evaluated subpa... | List < String > newBindings = Lists . newArrayList ( ) ; return getUnevaluatedLogicalForm ( env , symbolTable , newBindings ) ; |
public class SpScheduler { /** * update the duplicated counters after the host failure . */
public void updateReplicasFromMigrationLeaderFailedHost ( int failedHostId ) { } } | List < Long > replicas = new ArrayList < > ( ) ; for ( long hsid : m_replicaHSIds ) { if ( failedHostId != CoreUtils . getHostIdFromHSId ( hsid ) ) { replicas . add ( hsid ) ; } } ( ( InitiatorMailbox ) m_mailbox ) . updateReplicas ( replicas , null ) ; |
public class TrafficCounter { /** * Returns the time to wait ( if any ) for the given length message , using the given limitTraffic and
* the max wait time .
* @ param size
* the write size
* @ param limitTraffic
* the traffic limit in bytes per second .
* @ param maxTime
* the max time in ms to wait in c... | bytesWriteFlowControl ( size ) ; if ( size == 0 || limitTraffic == 0 ) { return 0 ; } final long lastTimeCheck = lastTime . get ( ) ; long sum = currentWrittenBytes . get ( ) ; long lastWB = lastWrittenBytes ; long localWritingTime = writingTime ; long pastDelay = Math . max ( lastWritingTime - lastTimeCheck , 0 ) ; fi... |
public class Sets { /** * Cartesian product of A and B , denoted A × B , is the set whose members are
* all possible ordered pairs ( a , b ) where a is a member of A and b is a
* member of B .
* @ param < A >
* @ param < B >
* @ param a
* @ param b
* @ return */
public static final < A , B > Set < Ordered... | Set < OrderedPair < A , B > > set = new HashSet < > ( ) ; for ( A t : a ) { for ( B v : b ) { set . add ( new OrderedPair ( t , v ) ) ; } } return set ; |
public class Resource { /** * Returns a { @ link Resource } .
* @ param type the type identifier for the resource .
* @ param labels a map of labels that describe the resource .
* @ return a { @ code Resource } .
* @ throws NullPointerException if { @ code labels } is null .
* @ throws IllegalArgumentExceptio... | return createInternal ( type , Collections . unmodifiableMap ( new LinkedHashMap < String , String > ( Utils . checkNotNull ( labels , "labels" ) ) ) ) ; |
public class HttpServletRequestDummy { /** * add a new header value
* @ param name name of the new value
* @ param value header value */
public void addHeader ( String name , String value ) { } } | headers = ReqRspUtil . add ( headers , name , value ) ; |
public class ContentExtractor { /** * / * 输入URL , 获取正文所在Element */
public static Element getContentElementByUrl ( String url ) throws Exception { } } | // HttpRequest request = new HttpRequest ( url ) ;
String html = okHttpRequester . getResponse ( url ) . html ( ) ; return getContentElementByHtml ( html , url ) ; |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < }
* { @ link EnumUnfileObject } { @ code > } */
@ XmlElementDecl ( namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/" , name = "unfileObjects" , scope = DeleteTree . class ) public JAXBElement < EnumUnfileObject... | return new JAXBElement < EnumUnfileObject > ( _DeleteTreeUnfileObjects_QNAME , EnumUnfileObject . class , DeleteTree . class , value ) ; |
public class DefaultAnnotationProvider { /** * < p > Return a list of the classes defined under the
* < code > / WEB - INF / classes < / code > directory of this web
* application . If there are no such classes , a zero - length list
* will be returned . < / p >
* @ param externalContext < code > ExternalContex... | List < Class < ? > > list = new ArrayList < Class < ? > > ( ) ; webClasses ( externalContext , WEB_CLASSES_PREFIX , list ) ; return list ; |
public class JaxRsEJBModuleInfoBuilder { /** * getEJBWithProviderClasses
* @ param classes
* @ param ejb
* @ param ejbInterfaceName
* @ param appClassloader */
private void getEJBWithProviderClasses ( Set < String > classeNames , EJBEndpoint ejb , String ejbInterfaceName , ClassLoader appClassloader ) { } } | final String methodName = "getEJBWithProviderClasses" ; if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , methodName , classeNames , ejb , ejbInterfaceName ) ; if ( classeNames == null ) { if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , methodName , Collections . emptySet ( ) ) ; return ; } Class < Provider > providerCl... |
public class ApiOvhXdsl { /** * Switch this access to total deconsolidation
* REST : POST / xdsl / { serviceName } / requestTotalDeconsolidation
* @ param noPortability [ required ] Do not port the number
* @ param rio [ required ] A token to prove the ownership of the line number , needed to port the number
* ... | String qPath = "/xdsl/{serviceName}/requestTotalDeconsolidation" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "noPortability" , noPortability ) ; addBody ( o , "rio" , rio ) ; String resp = exec ( qPath , "POST" , sb . toString (... |
public class AwsSecurityFindingFilters { /** * The text of a note .
* @ param noteText
* The text of a note . */
public void setNoteText ( java . util . Collection < StringFilter > noteText ) { } } | if ( noteText == null ) { this . noteText = null ; return ; } this . noteText = new java . util . ArrayList < StringFilter > ( noteText ) ; |
public class aaauser_vpnsessionpolicy_binding { /** * Use this API to fetch aaauser _ vpnsessionpolicy _ binding resources of given name . */
public static aaauser_vpnsessionpolicy_binding [ ] get ( nitro_service service , String username ) throws Exception { } } | aaauser_vpnsessionpolicy_binding obj = new aaauser_vpnsessionpolicy_binding ( ) ; obj . set_username ( username ) ; aaauser_vpnsessionpolicy_binding response [ ] = ( aaauser_vpnsessionpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; |
public class ping { /** * < pre >
* Performs generic data validation for the operation to be performed
* < / pre > */
protected void validate ( String operationType ) throws Exception { } } | super . validate ( operationType ) ; MPSIPAddress device_ipaddress_validator = new MPSIPAddress ( ) ; device_ipaddress_validator . validate ( operationType , device_ipaddress , "\"device_ipaddress\"" ) ; MPSString ping_status_validator = new MPSString ( ) ; ping_status_validator . setConstraintMaxStrLen ( MPSConstants ... |
public class TarEntry { /** * Determine if the given entry is a descendant of this entry . Descendancy is determined by the name of the
* descendant starting with this entry ' s name .
* @ param desc
* Entry to be checked as a descendent of this .
* @ return True if entry is a descendant of this . */
public boo... | return desc . header . name . toString ( ) . startsWith ( this . header . name . toString ( ) ) ; |
public class CreateOrganizationRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( CreateOrganizationRequest createOrganizationRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( createOrganizationRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( createOrganizationRequest . getFeatureSet ( ) , FEATURESET_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to ... |
public class AbstractThymeleafView { /** * Sets a set of static variables , which will be available at the context
* when this view is processed .
* This method < b > does not overwrite < / b > the existing static variables , it
* simply adds the ones specify to any variables already registered .
* These static... | if ( variables != null ) { if ( this . staticVariables == null ) { this . staticVariables = new HashMap < String , Object > ( 3 , 1.0f ) ; } this . staticVariables . putAll ( variables ) ; } |
public class AABBUtils { /** * Reads a { @ link AxisAlignedBB } from { @ link NBTTagCompound } with the specified prefix .
* @ param tag the tag
* @ param prefix the prefix
* @ return the axis aligned bb */
public static AxisAlignedBB readFromNBT ( NBTTagCompound tag , String prefix ) { } } | prefix = prefix == null ? "" : prefix + "." ; return tag != null ? new AxisAlignedBB ( tag . getDouble ( prefix + "minX" ) , tag . getDouble ( prefix + "minY" ) , tag . getDouble ( prefix + "minZ" ) , tag . getDouble ( prefix + "maxX" ) , tag . getDouble ( prefix + "maxY" ) , tag . getDouble ( prefix + "maxZ" ) ) : nul... |
public class GregorianCalendar { /** * Returns this object if it ' s normalized ( all fields and time are
* in sync ) . Otherwise , a cloned object is returned after calling
* complete ( ) in lenient mode . */
private GregorianCalendar getNormalizedCalendar ( ) { } } | GregorianCalendar gc ; if ( isFullyNormalized ( ) ) { gc = this ; } else { // Create a clone and normalize the calendar fields
gc = ( GregorianCalendar ) this . clone ( ) ; gc . setLenient ( true ) ; gc . complete ( ) ; } return gc ; |
public class CmsCopyMoveDialog { /** * Submits the dialog action . < p >
* @ param overwrite to forcefully overwrite existing files
* @ param makroMap map of key - value pairs to be resolved as macro . if null or empty , then ignored */
void submit ( boolean overwrite , Map < String , String > makroMap ) { } } | try { CmsResource targetFolder = null ; String targetName = null ; String target = m_targetPath . getValue ( ) ; boolean isSingleResource = m_context . getResources ( ) . size ( ) == 1 ; // resolve relative paths
target = CmsLinkManager . getAbsoluteUri ( target , CmsResource . getParentFolder ( getCms ( ) . getSitePat... |
public class InstanceTypeDescriptionFactory { /** * Constructs a new { @ link InstaceTypeDescription } object .
* @ param instanceType
* the instance type
* @ param hardwareDescription
* the hardware description as created by the { @ link InstanceManager }
* @ param numberOfAvailableInstances
* the number o... | return new InstanceTypeDescription ( instanceType , hardwareDescription , numberOfAvailableInstances ) ; |
public class Hasher { /** * Computes the hash value for the file bytes from offset < code > from < / code >
* until offset < code > until < / code > , using the hash instance as defined by
* the hash type .
* @ param file
* the file to compute the hash from
* @ param digest
* the message digest instance
*... | Preconditions . checkArgument ( from >= 0 , "negative offset" ) ; Preconditions . checkArgument ( until > from , "end offset is smaller or equal to start offset" ) ; Preconditions . checkArgument ( until <= file . length ( ) , "end offset is greater than file length" ) ; try ( RandomAccessFile raf = new RandomAccessFil... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.