signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class StorageAccountsInner { /** * Sets the data policy rules associated with the specified storage account . * @ param resourceGroupName The name of the resource group within the user ' s subscription . The name is case insensitive . * @ param accountName The name of the storage account within the specified...
return createOrUpdateManagementPoliciesWithServiceResponseAsync ( resourceGroupName , accountName , policy ) . map ( new Func1 < ServiceResponse < StorageAccountManagementPoliciesInner > , StorageAccountManagementPoliciesInner > ( ) { @ Override public StorageAccountManagementPoliciesInner call ( ServiceResponse < Stor...
public class JCuda { /** * Copies data between host and device . * < pre > * cudaError _ t cudaMemcpyFromArrayAsync ( * void * dst , * cudaArray _ const _ t src , * size _ t wOffset , * size _ t hOffset , * size _ t count , * cudaMemcpyKind kind , * cudaStream _ t stream = 0 ) * < / pre > * < div ...
return checkResult ( cudaMemcpyFromArrayAsyncNative ( dst , src , wOffset , hOffset , count , cudaMemcpyKind_kind , stream ) ) ;
public class FlashRedirectOverlayCreative { /** * Gets the flashAssetSize value for this FlashRedirectOverlayCreative . * @ return flashAssetSize * The size of the flash asset . Note that this may differ from * { @ link # size } * if the asset is not expected to fill the entire * video player . This attribute ...
return flashAssetSize ;
public class CorsFilter { /** * Parses each param - value and populates configuration variables . If a param is provided , it * overrides the default . * @ param allowedOrigins A { @ link String } of comma separated origins . * @ param allowedHttpMethods A { @ link String } of comma separated HTTP methods . * @...
setAllowedOrigins ( allowedOrigins ) ; setAllowedHttpMethods ( allowedHttpMethods ) ; setAllowedHttpHeaders ( allowedHttpHeaders ) ; setExposedHeaders ( exposedHeaders ) ; setSupportsCredentials ( supportsCredentials ) ; setPreflightMaxAge ( preflightMaxAge ) ; setDecorateRequest ( decorateRequest ) ;
public class TriangularDistributionTypeImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void unsetMin ( ) { } }
double oldMin = min ; boolean oldMinESet = minESet ; min = MIN_EDEFAULT ; minESet = false ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . UNSET , BpsimPackage . TRIANGULAR_DISTRIBUTION_TYPE__MIN , oldMin , MIN_EDEFAULT , oldMinESet ) ) ;
public class CmsContainerpageService { /** * Creates a new container element bean from an existing one , but changes some of the individual settings in the copy . < p > * @ param element the original container element * @ param settingsToOverride the map of settings to change * @ return the new container element ...
Map < String , String > settings = Maps . newHashMap ( element . getIndividualSettings ( ) ) ; settings . putAll ( settingsToOverride ) ; CmsContainerElementBean result = new CmsContainerElementBean ( element . getId ( ) , element . getFormatterId ( ) , settings , element . isCreateNew ( ) ) ; return result ;
public class MmtfStructureReader { /** * Get the type of group ( 0,1 or 2 ) depending on whether it is an amino aicd ( 1 ) , nucleic acid ( 2 ) or ligand ( 0) * @ param polymerType * @ return The type of group . ( 0,1 or 2 ) depending on whether it is an amino aicd ( 1 ) , nucleic acid ( 2 ) or ligand ( 0) */ priva...
if ( PolymerType . PROTEIN_ONLY . contains ( polymerType ) ) { return 1 ; } if ( PolymerType . POLYNUCLEOTIDE_ONLY . contains ( polymerType ) ) { return 2 ; } return 0 ;
public class JDKLogger { /** * Log the message at the specified level with the specified throwable if any . * This method creates a LogRecord and fills in caller date before calling * this instance ' s JDK14 logger . * See bug report # 13 for more details . * @ param level * @ param msg * @ param t */ priva...
// millis and thread are filled by the constructor LogRecord record = new LogRecord ( level , msg ) ; record . setLoggerName ( getName ( ) ) ; record . setThrown ( t ) ; // Note : parameters in record are not set because SLF4J only // supports a single formatting style fillCallerData ( callerFQCN , record ) ; loggerImp...
public class UIComponent { /** * < p > If this component * returns < code > true < / code > from { @ link # isRendered } , take the * following action . < / p > * < p > Render this component and all its children that return * < code > true < / code > from < code > isRendered ( ) < / code > , regardless of * t...
if ( context == null ) { throw new NullPointerException ( ) ; } if ( ! isRendered ( ) ) { return ; } encodeBegin ( context ) ; if ( getRendersChildren ( ) ) { encodeChildren ( context ) ; } else if ( this . getChildCount ( ) > 0 ) { for ( UIComponent kid : getChildren ( ) ) { kid . encodeAll ( context ) ; } } encodeEnd...
public class AfplibFactoryImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public FNCXftUnits createFNCXftUnitsFromString ( EDataType eDataType , String initialValue ) { } }
FNCXftUnits result = FNCXftUnits . get ( initialValue ) ; if ( result == null ) throw new IllegalArgumentException ( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType . getName ( ) + "'" ) ; return result ;
public class ControllerRegistry { /** * Recursively builds the paths for the controller class . * @ param controllerClass * @ return the paths for the controller */ private Set < String > getControllerPaths ( Class < ? > controllerClass ) { } }
Set < String > parentPaths = Collections . emptySet ( ) ; if ( controllerClass . getSuperclass ( ) != null ) { parentPaths = getControllerPaths ( controllerClass . getSuperclass ( ) ) ; } Set < String > paths = new LinkedHashSet < > ( ) ; Path controllerPath = controllerClass . getAnnotation ( Path . class ) ; if ( con...
public class JsonIntermediateToAvroConverter { /** * Generate new avro schema by nullifying fields that previously existed but not in the current schema . * @ param workUnitState work unit state * @ param currentAvroSchema current schema * @ return merged schema with previous fields nullified . * @ throws Schem...
Configuration conf = new Configuration ( ) ; for ( String key : workUnitState . getPropertyNames ( ) ) { conf . set ( key , workUnitState . getProp ( key ) ) ; } // Get the original schema for merging . Path originalSchemaPath = null ; if ( workUnitState . contains ( CONVERTER_AVRO_NULLIFY_FIELDS_ORIGINAL_SCHEMA_PATH )...
public class FlinkKeyStoreManager { /** * Opens a keystore on any Hadoop compatible filesystem * @ param path path to key store , if null then a new keystore is created * @ param keyStoreType * @ param keyStorePassword * @ throws IOException * @ throws NoSuchAlgorithmException * @ throws CertificateExceptio...
this . keystore = KeyStore . getInstance ( keyStoreType ) ; if ( path != null ) { InputStream keyStoreInputStream = ffr . openFile ( path ) ; this . keystore . load ( keyStoreInputStream , keyStorePassword . toCharArray ( ) ) ; } else { this . keystore . load ( null , keyStorePassword . toCharArray ( ) ) ; }
public class BlockingLimiter { /** * Wrap a limiter such that acquire will block up to { @ link BlockingLimiter # MAX _ TIMEOUT } if the limit was reached * instead of return an empty listener immediately * @ param delegate Non - blocking limiter to wrap * @ return Wrapped limiter */ public static < ContextT > Bl...
return new BlockingLimiter < > ( delegate , MAX_TIMEOUT ) ;
public class dnssrvrec { /** * Use this API to update dnssrvrec . */ public static base_response update ( nitro_service client , dnssrvrec resource ) throws Exception { } }
dnssrvrec updateresource = new dnssrvrec ( ) ; updateresource . domain = resource . domain ; updateresource . target = resource . target ; updateresource . priority = resource . priority ; updateresource . weight = resource . weight ; updateresource . port = resource . port ; updateresource . ttl = resource . ttl ; ret...
public class RpcWrapper { /** * Make the call using the Request ip key to determine the IP address for * communication . * @ param request * The request to send . * @ param response * A response to hold the returned data . * @ throws IOException */ public void callRpcNaked ( S request , T response ) throws ...
callRpcNaked ( request , response , chooseIP ( request . getIpKey ( ) ) ) ;
public class PendingCheckpoint { /** * Sets the handle for the canceller to this pending checkpoint . This method fails * with an exception if a handle has already been set . * @ return true , if the handle was set , false , if the checkpoint is already disposed ; */ public boolean setCancellerHandle ( ScheduledFut...
synchronized ( lock ) { if ( this . cancellerHandle == null ) { if ( ! discarded ) { this . cancellerHandle = cancellerHandle ; return true ; } else { return false ; } } else { throw new IllegalStateException ( "A canceller handle was already set" ) ; } }
public class SimpleAsyncManager { @ Override public void parallel ( ConcurrentParallelCall runnerLambda , ConcurrentParallelOpCall opLambda ) { } }
final ConcurrentParallelOption option = createConcurrentParallelOption ( opLambda ) ; try { readyGo ( runnerLambda , option ) ; } catch ( LaCountdownRaceExecutionException e ) { throwConcurrentParallelRunnerException ( option , e ) ; }
public class FragmentTaskMessage { /** * Convenience factory method to replace constructor that includes arrays of stuff . * @ param initiatorHSId * @ param coordinatorHSId * @ param txnId * @ param isReadOnly * @ param fragmentId * @ param outputDepId * @ param parameterSet * @ param isFinal * @ retu...
ByteBuffer parambytes = null ; if ( params != null ) { parambytes = ByteBuffer . allocate ( params . getSerializedSize ( ) ) ; try { params . flattenToBuffer ( parambytes ) ; parambytes . flip ( ) ; } catch ( IOException e ) { VoltDB . crashLocalVoltDB ( "Failed to serialize parameter for fragment: " + params . toStrin...
public class TLVElement { /** * Sets the value to TLV element content . * @ param content * value to set . * @ throws TLVParserException */ public void setContent ( byte [ ] content ) throws TLVParserException { } }
Util . notNull ( content , "Content" ) ; assertActualContentLengthIsInTLVLimits ( content . length ) ; this . content = content ;
public class WxPayApi { /** * 下载对账单 * 服务商模式接入文档 : https : / / pay . weixin . qq . com / wiki / doc / api / micropay _ sl . php ? chapter = 9_6 * 商户模式接入文档 : https : / / pay . weixin . qq . com / wiki / doc / api / micropay . php ? chapter = 9_6 * @ param isSandbox * 是否是沙盒环境 * @ param params * 请求参数 * @ retu...
if ( isSandbox ) return doPost ( DOWNLOADBILLY_SANDBOXNEW_URL , params ) ; return doPost ( DOWNLOADBILLY_URL , params ) ;
public class PersonGroupPersonsImpl { /** * Add a representative face to a person for identification . The input face is specified as an image with a targetFace rectangle . * @ param personGroupId Id referencing a particular person group . * @ param personId Id referencing a particular person . * @ param url Publ...
return addPersonFaceFromUrlWithServiceResponseAsync ( personGroupId , personId , url , addPersonFaceFromUrlOptionalParameter ) . toBlocking ( ) . single ( ) . body ( ) ;
public class JvmCharAnnotationValueImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public void eUnset ( int featureID ) { } }
switch ( featureID ) { case TypesPackage . JVM_CHAR_ANNOTATION_VALUE__VALUES : getValues ( ) . clear ( ) ; return ; } super . eUnset ( featureID ) ;
public class Group { /** * Returns the member id given a node path . */ public String getMemberId ( String nodePath ) { } }
MorePreconditions . checkNotBlank ( nodePath ) ; if ( ! nodePath . startsWith ( path + "/" ) ) { throw new IllegalArgumentException ( String . format ( "Not a member of this group[%s]: %s" , path , nodePath ) ) ; } String memberId = StringUtils . substringAfterLast ( nodePath , "/" ) ; if ( ! nodeScheme . isMember ( me...
public class ListJobExecutionsForJobResult { /** * A list of job execution summaries . * @ param executionSummaries * A list of job execution summaries . */ public void setExecutionSummaries ( java . util . Collection < JobExecutionSummaryForJob > executionSummaries ) { } }
if ( executionSummaries == null ) { this . executionSummaries = null ; return ; } this . executionSummaries = new java . util . ArrayList < JobExecutionSummaryForJob > ( executionSummaries ) ;
public class PropertiesUtils { /** * Read a file and return the list of lines in an array of strings . * @ param listFile the url to read from * @ return the lines * @ throws IOException if a read error occurs */ public static String [ ] readListFile ( URL listFile ) throws IOException { } }
ArrayList < String > list = new ArrayList < String > ( ) ; InputStream stream = listFile . openStream ( ) ; try { InputStreamReader isr = new InputStreamReader ( stream , "UTF-8" ) ; BufferedReader reader = new BufferedReader ( isr ) ; String line = reader . readLine ( ) ; while ( line != null ) { list . add ( line ) ;...
public class DeleteVpcEndpointConnectionNotificationsRequest { /** * One or more notification IDs . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setConnectionNotificationIds ( java . util . Collection ) } or * { @ link # withConnectionNotificationIds ( j...
if ( this . connectionNotificationIds == null ) { setConnectionNotificationIds ( new com . amazonaws . internal . SdkInternalList < String > ( connectionNotificationIds . length ) ) ; } for ( String ele : connectionNotificationIds ) { this . connectionNotificationIds . add ( ele ) ; } return this ;
public class AwsEc2InstanceDetails { /** * The IPv4 addresses associated with the instance . * @ param ipV4Addresses * The IPv4 addresses associated with the instance . */ public void setIpV4Addresses ( java . util . Collection < String > ipV4Addresses ) { } }
if ( ipV4Addresses == null ) { this . ipV4Addresses = null ; return ; } this . ipV4Addresses = new java . util . ArrayList < String > ( ipV4Addresses ) ;
public class ListPipelinesResult { /** * A list of " PipelineSummary " objects . * @ param pipelineSummaries * A list of " PipelineSummary " objects . */ public void setPipelineSummaries ( java . util . Collection < PipelineSummary > pipelineSummaries ) { } }
if ( pipelineSummaries == null ) { this . pipelineSummaries = null ; return ; } this . pipelineSummaries = new java . util . ArrayList < PipelineSummary > ( pipelineSummaries ) ;
public class BitOutputStream { /** * Write zero bits . * @ param bits The number of zero bits to write * @ throws IOException On write error */ public void writeZeroes ( int bits ) throws IOException { } }
if ( bits == 0 ) return ; if ( ! ensureSize ( bits ) ) throw new IOException ( "Memory Allocation Error" ) ; totalBits += bits ; while ( bits > 0 ) { int n = Math . min ( BITS_PER_BLURB - outBits , bits ) ; buffer [ outBlurbs ] <<= n ; bits -= n ; outBits += n ; if ( outBits == BITS_PER_BLURB ) { outBlurbs ++ ; outBits...
public class XorOnlyAttribute { /** * Returns a binary representation of this attribute . * @ return a binary representation of this attribute . */ public byte [ ] encode ( ) { } }
char type = getAttributeType ( ) ; byte binValue [ ] = new byte [ HEADER_LENGTH + getDataLength ( ) ] ; // Type binValue [ 0 ] = ( byte ) ( type >> 8 ) ; binValue [ 1 ] = ( byte ) ( type & 0x00FF ) ; // Length binValue [ 2 ] = ( byte ) ( getDataLength ( ) >> 8 ) ; binValue [ 3 ] = ( byte ) ( getDataLength ( ) & 0x00FF ...
public class RemoteService { /** * Calls a remote service with a list of " name = value " string values as arguments . */ public static Response call ( String server , String service , String ... params ) { } }
return call ( server , service , false , params ) ;
public class TableFunctions { /** * Create an anchor with the title and the pubMedId * In the config file use : * fieldName = " func ( PUBMED _ URL ( title , pubMedID ) ) " */ private String pubMedURL ( int rowIndex ) { } }
if ( params . length != 2 ) { throw new IllegalArgumentException ( "Wrong number of Parameters for limit string expression" ) ; } final RecordList . Record currentRecord = recordList . getRecords ( ) . get ( rowIndex ) ; final String title = currentRecord . getValueByFieldName ( params [ 0 ] ) ; String pubMedId = curre...
public class StreamUtils { /** * Split a stream into a map with true and false . * @ param stream the stream to collect . * @ param predicate the predicate to use to define true or false , ex . e - > e . getValue ( ) . equals ( " test " ) * @ return the map of lists . */ public static < T > Map < Boolean , List <...
return stream . collect ( Collectors . partitioningBy ( predicate ) ) ;
public class ConnectionManager { /** * Starts a thread which checks periodically for dead connections and force them to re - connect . * IF AND ONLY IF a thread isn ' t already running to do this */ public static void detectDeadConnections ( ) { } }
if ( CONNECTION_DETECTOR_RUNNING ) { return ; } final Logger log = LoggerFactory . getLogger ( ConnectionManager . class ) ; Thread deadConnThread = new Thread ( new Runnable ( ) { public void run ( ) { CONNECTION_DETECTOR_RUNNING = true ; try { log . debug ( "Starting dead connection detection thread" ) ; while ( dete...
public class ColumnSlice { /** * Helper method for intersects ( ) */ private int compare ( Composite sliceBounds , List < ByteBuffer > sstableBounds , CellNameType comparator , boolean isSliceStart ) { } }
for ( int i = 0 ; i < sstableBounds . size ( ) ; i ++ ) { if ( i >= sliceBounds . size ( ) ) { // When isSliceStart is true , we ' re comparing the end of the slice against the min cell name for the sstable , // so the slice is something like [ ( 1 , 0 ) , ( 1 , 0 ) ] , and the sstable max is something like ( 1 , 0 , 1...
public class AttributeListHelper { /** * Add the attributes if they match the given type . * @ param apiParent the parent attribute * @ param string the type we want to match */ private void addByType ( final ApiAttribute apiParent , final String string ) { } }
for ( final ApiAttribute object : apiParent . getAttributes ( ) ) { if ( object . isType ( string ) ) { final ApiModelToGedObjectVisitor visitor = createVisitor ( ) ; object . accept ( visitor ) ; } }
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public EClass getIfcCircleHollowProfileDef ( ) { } }
if ( ifcCircleHollowProfileDefEClass == null ) { ifcCircleHollowProfileDefEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 92 ) ; } return ifcCircleHollowProfileDefEClass ;
public class AbstractValidate { /** * < p > Validate that the specified argument object fall between the two inclusive values specified ; otherwise , throws an exception . < / p > * < pre > Validate . inclusiveBetween ( 0 , 2 , 1 ) ; < / pre > * @ param < T > * the type of the start and end values * @ param < V...
if ( value . compareTo ( start ) < 0 || value . compareTo ( end ) > 0 ) { fail ( String . format ( DEFAULT_INCLUSIVE_BETWEEN_EX_MESSAGE , value , start , end ) ) ; } return value ;
public class RiffFile { /** * Expect NumBytes data . */ public int expect ( String Data , int NumBytes ) { } }
byte target = 0 ; int cnt = 0 ; try { while ( ( NumBytes -- ) != 0 ) { target = file . readByte ( ) ; if ( target != Data . charAt ( cnt ++ ) ) return DDC_FILE_ERROR ; } } catch ( IOException ioe ) { return DDC_FILE_ERROR ; } return DDC_SUCCESS ;
public class LDLTPermutedFactorization { /** * Diagonal pivoting method with the partial pivoting strategy of Bunch and Kaufman . * @ see " STABILITY OF THE DIAGONAL PIVOTING METHOD WITH PARTIAL PIVOTING " 1.1 and Algorithm 1 */ private void pldltptBK ( ) throws Exception { } }
// matrix S will be changed by the factorization , ad we do not want to change the matrix passed in by the client DoubleMatrix2D S = ( rescaler == null ) ? this . Q . copy ( ) : this . Q ; int n = S . rows ( ) ; DoubleMatrix2D A = S . copy ( ) ; this . P = DoubleFactory2D . sparse . identity ( n ) ; this . D = DoubleFa...
public class LocaleUtils { /** * Finds and returns a localised resource , using the given { @ code function } to validate it . * The function is called for each resource until a non - { @ code null } resource is returned or all resources are consumed . The * resource name is built using the parameters { @ code file...
return findResource ( control , fileName , fileExtension , "" , locale , function ) ;
public class EvaluatorManagerFactory { /** * Helper method to create a new EvaluatorManager instance . * @ param id identifier of the Evaluator * @ param desc NodeDescriptor on which the Evaluator executes . * @ return a new EvaluatorManager instance . */ private EvaluatorManager getNewEvaluatorManagerInstance ( ...
LOG . log ( Level . FINEST , "Creating Evaluator Manager for Evaluator ID {0}" , id ) ; final Injector child = this . injector . forkInjector ( ) ; try { child . bindVolatileParameter ( EvaluatorManager . EvaluatorIdentifier . class , id ) ; child . bindVolatileParameter ( EvaluatorManager . EvaluatorDescriptorName . c...
public class StatefulBeanReaper { /** * This method is invoked just before container termination to clean * up stateful beans which have been passivated . */ public void finalSweep ( StatefulPassivator passivator ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "finalSweep : Stateful Beans = " + ivStatefulBeanList . size ( ) ) ; for ( Enumeration < TimeoutElement > e = ivStatefulBeanList . elements ( ) ; e . hasMoreElements ( ) ; ) { TimeoutElement elt = e . nextElement ( ) ; if ( elt...
public class HttpBuilder { /** * Executes an asynchronous HEAD request on the configured URI ( asynchronous alias to ` head ( Consumer ) ` ) , with additional configuration provided by the * configuration function . * This method is generally used for Java - specific configuration . * [ source , java ] * HttpBu...
return CompletableFuture . supplyAsync ( ( ) -> head ( configuration ) , getExecutor ( ) ) ;
public class PlaceBuilder { /** * Returns a Google formatted JSON object to be sent to Google ' s servers . * @ return Google formatted JSON */ public JSONObject toJson ( ) { } }
JSONObject obj = new JSONObject ( ) . put ( OBJECT_LOCATION , new JSONObject ( ) . put ( "lat" , lat ) . put ( "lng" , lng ) ) . put ( STRING_NAME , name ) . put ( STRING_TYPES , new JSONArray ( types ) ) ; if ( accuracy != - 1 ) obj . put ( INTEGER_ACCURACY , accuracy ) ; if ( phoneNumber != null ) obj . put ( STRING_...
public class SQLiteConnectionPool { /** * Might throw . */ private SQLiteConnection tryAcquirePrimaryConnectionLocked ( int connectionFlags ) { } }
// If the primary connection is available , acquire it now . SQLiteConnection connection = mAvailablePrimaryConnection ; if ( connection != null ) { mAvailablePrimaryConnection = null ; finishAcquireConnectionLocked ( connection , connectionFlags ) ; // might throw return connection ; } // Make sure that the primary co...
public class DefaultAnnotationMetadata { /** * Adds a repeatable stereotype value . If a value already exists will be added * @ param parents The parent annotations * @ param stereotype The annotation name * @ param annotationValue The annotation value */ protected void addRepeatableStereotype ( List < String > p...
Map < String , Map < CharSequence , Object > > allStereotypes = getAllStereotypes ( ) ; List < String > annotationList = getAnnotationsByStereotypeInternal ( stereotype ) ; for ( String parentAnnotation : parents ) { if ( ! annotationList . contains ( parentAnnotation ) ) { annotationList . add ( parentAnnotation ) ; }...
public class GenericDao { /** * 根据查询条件获取结果集列表 * @ param matches * @ param order * @ param curPage * @ param pageSize * @ return */ public List < ENTITY > page ( List < Match > matches , List < Order > order , int curPage , int pageSize ) { } }
if ( curPage < 0 || pageSize < 0 ) { return find ( matches , order ) ; } int offset = ( curPage ) * pageSize ; int limit = pageSize ; return find ( matches , order , offset , limit ) ;
public class Line { /** * Reads an XML comment . Sets < code > xmlEndLine < / code > . * @ param firstLine * The Line to start reading from . * @ param start * The starting position . * @ return The new position or - 1 if it is no valid comment . */ private int _readXMLComment ( final Line firstLine , final i...
Line line = firstLine ; if ( start + 3 < line . m_sValue . length ( ) ) { if ( line . m_sValue . charAt ( 2 ) == '-' && line . m_sValue . charAt ( 3 ) == '-' ) { int pos = start + 4 ; while ( line != null ) { while ( pos < line . m_sValue . length ( ) && line . m_sValue . charAt ( pos ) != '-' ) { pos ++ ; } if ( pos =...
public class ControllerHandler { /** * Specify the Response content - type by . . . * < ol > * < li > setting the first Produces content type < / li > * < li > negotiating with the Request if multiple content - types are specified in Produces < / li > * < / ol > * @ param context */ protected void specifyCont...
if ( ! declaredProduces . isEmpty ( ) ) { // Specify first Produces content - type String defaultContentType = declaredProduces . get ( 0 ) ; context . getResponse ( ) . contentType ( defaultContentType ) ; if ( declaredProduces . size ( ) > 1 ) { // negotiate content - type from Request Accept / Content - Type context...
public class LinkedList { /** * Move the availableHead past any ToBeDeleted links . * Caller must be synchronized on LinkedList . * @ throws ObjectManagerException */ protected void skipToBeDeleted ( ) throws ObjectManagerException { } }
if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "skipToBeDeleted" ) ; Token nextToken = availableHead ; // Move forward past any links that are to be deleted . These might be there // because other links ahead of them have now been removed , or because a // delete ...
public class WSJdbcWrapper { /** * Return a class that implements the requested interface , if possible . * @ param interfaceClass the interface to unwrap . * @ throws SQLException if this wrapper does not wrap any instances of the requested * interface . */ @ SuppressWarnings ( "unchecked" ) public < T > T unwra...
TraceComponent tc = getTracer ( ) ; if ( tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "unwrap" , interfaceClass ) ; activate ( ) ; Object result ; // Return the current wrapper if it already implements the interface . if ( interfaceClass . isInstance ( this ) ) result = this ; // Return an existing dynamic wrappe...
public class ProfileAspect { /** * Formats the given < code > fullyQualifiedName < / code > according to the given * < code > classNameStyle < / code > . * Samples with < code > java . lang . String < / code > : * < ul > * < li > { @ link ClassNameStyle # FULLY _ QUALIFIED _ NAME } : * < code > java . lang . ...
StringBuilder fullyQualifiedMethodName = new StringBuilder ( fullyQualifiedClassName . length ( ) + methodName . length ( ) + 1 ) ; switch ( classNameStyle ) { case FULLY_QUALIFIED_NAME : fullyQualifiedMethodName . append ( fullyQualifiedClassName ) ; break ; case COMPACT_FULLY_QUALIFIED_NAME : String [ ] splittedFully...
public class DataListRenderer { /** * Renders items with no strict markup * @ param context FacesContext instance * @ param list DataList component * @ throws IOException */ protected void encodeFreeList ( FacesContext context , DataList list ) throws IOException { } }
int first = list . getFirst ( ) ; int rows = list . getRows ( ) == 0 ? list . getRowCount ( ) : list . getRows ( ) ; int pageSize = first + rows ; int rowCount = list . getRowCount ( ) ; String rowIndexVar = list . getRowIndexVar ( ) ; String varStatus = list . getVarStatus ( ) ; Map < String , Object > requestMap = co...
public class CommercePaymentMethodGroupRelModelImpl { /** * Converts the soap model instances into normal model instances . * @ param soapModels the soap model instances to convert * @ return the normal model instances */ public static List < CommercePaymentMethodGroupRel > toModels ( CommercePaymentMethodGroupRelS...
if ( soapModels == null ) { return null ; } List < CommercePaymentMethodGroupRel > models = new ArrayList < CommercePaymentMethodGroupRel > ( soapModels . length ) ; for ( CommercePaymentMethodGroupRelSoap soapModel : soapModels ) { models . add ( toModel ( soapModel ) ) ; } return models ;
public class DisplayManagerCollector { /** * Some fields contain multiple value types which can be isolated by * applying a bitmask . That method returns the concatenation of active * values . * @ param bitfield The bitfield to inspect . * @ return The names of the different values contained in the bitfield , ...
final StringBuilder result = new StringBuilder ( ) ; // Look for masks , apply it an retrieve the masked value for ( int i = 0 ; i < flagNames . size ( ) ; i ++ ) { final int maskValue = flagNames . keyAt ( i ) ; final int value = bitfield & maskValue ; if ( value > 0 ) { if ( result . length ( ) > 0 ) { result . appen...
public class XMLConfiguration { public void configureWebApp ( ) throws Exception { } }
// cannot configure if the context is already started if ( _context . isStarted ( ) ) { if ( log . isDebugEnabled ( ) ) { log . debug ( "Cannot configure webapp after it is started" ) ; } ; return ; } Resource webInf = getWebApplicationContext ( ) . getWebInf ( ) ; // handle any WEB - INF descriptors if ( webInf != nul...
public class MultiBufferProductScan { /** * Moves to the next record in the current scan . If there are no more * records in the current chunk , then move to the next LHS record and the * beginning of that chunk . If there are no more LHS records , then move to * the next chunk and begin again . * @ see Scan # ...
if ( prodScan == null ) return false ; while ( ! prodScan . next ( ) ) if ( ! useNextChunk ( ) ) return false ; return true ;
public class SAXRule { /** * Original getRules ( ) method . Prints out rules . Killing it will brake tests . * @ return the formatted rules string . */ public static String printRules ( ) { } }
theRules . get ( 0 ) . getSAXRules ( ) ; expandRules ( ) ; Vector < SAXRule > rules = new Vector < SAXRule > ( numRules . intValue ( ) ) ; SAXRule currentRule ; SAXRule referedTo ; SAXSymbol sym ; int index ; int processedRules = 0 ; StringBuilder text = new StringBuilder ( ) ; text . append ( "Number\tName\tLevel\tOcc...
public class Log { /** * report a warning : */ public void rawWarning ( int pos , String msg ) { } }
if ( nwarnings < MaxWarnings && emitWarnings ) { printRawError ( pos , "warning: " + msg ) ; } prompt ( ) ; nwarnings ++ ; errWriter . flush ( ) ;
public class BatterySkin { /** * * * * * * Initialization * * * * * */ private void initGraphics ( ) { } }
// Set initial size if ( Double . compare ( gauge . getPrefWidth ( ) , 0.0 ) <= 0 || Double . compare ( gauge . getPrefHeight ( ) , 0.0 ) <= 0 || Double . compare ( gauge . getWidth ( ) , 0.0 ) <= 0 || Double . compare ( gauge . getHeight ( ) , 0.0 ) <= 0 ) { if ( gauge . getPrefWidth ( ) > 0 && gauge . getPrefHeight (...
public class CssFormatter { /** * Add the scope of a mixin to the stack . * @ param mixin the mixin * @ param parameters the calling parameters * @ param variables the variables of the mixin */ void addMixin ( Rule mixin , Map < String , Expression > parameters , Map < String , Expression > variables ) { } }
int idx = state . stackIdx ++ ; Scope scope ; if ( state . stack . size ( ) <= idx ) { scope = new Scope ( ) ; state . stack . add ( scope ) ; } else { scope = state . stack . get ( idx ) ; scope . returns . clear ( ) ; } scope . mixin = mixin ; scope . parameters = parameters ; scope . variables = variables ;
public class RESTAuthHelper { /** * Ensures that the subject represented by the given { @ code authHeader } is authenticated and that the subject is * authorized for the specified { @ code permission } on the given { @ code resource } . * @ param authHeader contents of an HTTP Authorization header * @ param resou...
if ( isAuthEnabled ( ) ) { String credentials = parseCredentials ( authHeader ) ; if ( ! pravegaAuthManager . authenticateAndAuthorize ( resource , credentials , permission ) ) { throw new AuthException ( String . format ( "Failed to authenticate or authorize for resource [%s]" , resource ) , Response . Status . FORBID...
public class SegmentSlic { /** * Selects which region each pixel belongs to based on which cluster it is the closest to */ public void assignLabelsToPixels ( GrayS32 pixelToRegions , GrowQueue_I32 regionMemberCount , FastQueue < float [ ] > regionColor ) { } }
regionColor . reset ( ) ; for ( int i = 0 ; i < clusters . size ( ) ; i ++ ) { float [ ] r = regionColor . grow ( ) ; float [ ] c = clusters . get ( i ) . color ; for ( int j = 0 ; j < numBands ; j ++ ) { r [ j ] = c [ j ] ; } } regionMemberCount . resize ( clusters . size ( ) ) ; regionMemberCount . fill ( 0 ) ; int i...
public class Encoding { /** * Returns the SHA hash of a String . * @ param str Description of the Parameter * @ return Description of the Return Value */ public static String hashSHA ( String str ) { } }
byte [ ] b = str . getBytes ( ) ; MessageDigest md = null ; try { md = MessageDigest . getInstance ( "SHA1" ) ; md . update ( b ) ; } catch ( NoSuchAlgorithmException e ) { e . printStackTrace ( ) ; // it ' s got to be there } return toHexString ( md . digest ( ) ) ;
public class StorageAccountsDocumentBinding { /** * Converts the provided DuraStore acct configuration into an Xml element , * to be included in a larger Xml document ( likely DuraStore config ) * @ param accts * @ return */ public Element createDocumentFrom ( Collection < StorageAccount > accts , boolean include...
Element storageProviderAccounts = new Element ( "storageProviderAccounts" ) ; if ( null != accts && accts . size ( ) > 0 ) { for ( StorageAccount acct : accts ) { StorageAccountProviderBinding providerBinding = providerBindings . get ( acct . getType ( ) ) ; if ( null != providerBinding ) { storageProviderAccounts . ad...
public class RevisionApi { /** * This method maps the chronological order to the revisionCounter . * @ param articleID * ID of the article * @ param revisionCounter * chronological position * @ return position in the chronological order * @ throws SQLException * if an error occurs while accesing the datab...
PreparedStatement statement = null ; ResultSet result = null ; // Check for the correct revisionCounter mapping try { statement = this . connection . prepareStatement ( "SELECT Mapping " + "FROM index_chronological " + "WHERE ArticleID=? LIMIT 1" ) ; statement . setInt ( 1 , articleID ) ; result = statement . executeQu...
public class CmsADESessionCache { /** * Set cached value for the attribute . Used for dynamically loaded values in the Acacia content editor . * @ param attribute the attribute for which the value should be cached * @ param value the value to cache */ public void setDynamicValue ( String attribute , String value ) ...
if ( null == m_dynamicValues ) { m_dynamicValues = new ConcurrentHashMap < String , String > ( ) ; } m_dynamicValues . put ( attribute , value ) ;
public class AbstractActionPanel { /** * Factory method for creating the new Label . This method is invoked in the constructor from the * derived classes and can be overridden so users can provide their own version of a new Label . * @ param id * the id * @ param model * the model * @ return the label */ pr...
final Label label = ComponentFactory . newLabel ( id , model ) ; return label ;
public class EurekaClinicalProperties { /** * Utility method to get an int from the properties file . * @ param propertyName The name of the property . * @ param defaultValue The default value to return , if the property is not * found , or is malformed . * @ return The property value , as an int . */ protected...
int result ; String property = this . properties . getProperty ( propertyName ) ; try { result = Integer . parseInt ( property ) ; } catch ( NumberFormatException e ) { LOGGER . warn ( "Invalid integer property in configuration: {}" , propertyName ) ; result = defaultValue ; } return result ;
public class PageFlowUtils { /** * Make a set of form beans available as attributets in the request / session ( as appropriate ) . * @ param mapping the ActionMapping for the current Struts action being processed . * @ param outputForms an array of ActionForm instances to be made available in the * request / sess...
setOutputForms ( mapping , outputForms , request , true ) ;
public class StreamGobblerImpl { /** * < p > run . < / p > */ public void run ( ) { } }
try { OutputStream sysoutOutputStream = null ; if ( stdoutFile != null ) { sysoutOutputStream = openOutputStream ( new File ( stdoutFile ) ) ; } OutputStream stderrOutputStream = null ; if ( stderrFile != null ) { stderrOutputStream = openOutputStream ( new File ( stderrFile ) ) ; } if ( ! dontShowStdOut ) { LogOutputS...
public class MockVolumeController { /** * Delete Mock Volume . * @ param volumeId * volumeId to be deleted * @ return Mock volume . */ public MockVolume deleteVolume ( final String volumeId ) { } }
if ( volumeId != null && allMockVolumes . containsKey ( volumeId ) ) { return allMockVolumes . remove ( volumeId ) ; } return null ;
public class MediaApi { /** * Set the agent state to Not Ready * Set the current agent & # 39 ; s state to Not Ready on all media channels . * @ param notReadyForAgentData ( required ) * @ return ApiResponse & lt ; ApiSuccessResponse & gt ; * @ throws ApiException If fail to call the API , e . g . server error ...
com . squareup . okhttp . Call call = notReadyAgentStateValidateBeforeCall ( notReadyForAgentData , null , null ) ; Type localVarReturnType = new TypeToken < ApiSuccessResponse > ( ) { } . getType ( ) ; return apiClient . execute ( call , localVarReturnType ) ;
public class QueryParser { /** * src / riemann / Query . g : 35:1 : primary : ( ( ' ( ' or ' ) ' ) - > ^ ( or ) | simple - > simple ) ; */ public final QueryParser . primary_return primary ( ) throws RecognitionException { } }
QueryParser . primary_return retval = new QueryParser . primary_return ( ) ; retval . start = input . LT ( 1 ) ; CommonTree root_0 = null ; Token char_literal19 = null ; Token char_literal21 = null ; QueryParser . or_return or20 = null ; QueryParser . simple_return simple22 = null ; CommonTree char_literal19_tree = nul...
public class GetMetricStatisticsRequest { /** * The metric statistics , other than percentile . For percentile statistics , use < code > ExtendedStatistics < / code > . * When calling < code > GetMetricStatistics < / code > , you must specify either < code > Statistics < / code > or * < code > ExtendedStatistics < ...
com . amazonaws . internal . SdkInternalList < String > statisticsCopy = new com . amazonaws . internal . SdkInternalList < String > ( statistics . length ) ; for ( Statistic value : statistics ) { statisticsCopy . add ( value . toString ( ) ) ; } if ( getStatistics ( ) == null ) { setStatistics ( statisticsCopy ) ; } ...
public class Where { /** * Add a ' = ' clause so the column must be equal to the value . */ public Where < T , ID > eq ( String columnName , Object value ) throws SQLException { } }
addClause ( new SimpleComparison ( columnName , findColumnFieldType ( columnName ) , value , SimpleComparison . EQUAL_TO_OPERATION ) ) ; return this ;
public class ServerDnsAliasesInner { /** * Acquires server DNS alias from another server . * @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal . * @ param serverName The name of the server that the alias ...
acquireWithServiceResponseAsync ( resourceGroupName , serverName , dnsAliasName ) . toBlocking ( ) . last ( ) . body ( ) ;
public class CmsSerialDateController { /** * Toggle between single events and series . * @ param isSeries flag , indicating if we want a series of events . */ public void setIsSeries ( Boolean isSeries ) { } }
if ( null != isSeries ) { final boolean series = isSeries . booleanValue ( ) ; if ( ( null != m_model . getParentSeriesId ( ) ) && series ) { m_removeSeriesBindingConfirmDialog . show ( new Command ( ) { public void execute ( ) { m_model . setParentSeriesId ( null ) ; setPattern ( PatternType . DAILY . toString ( ) ) ;...
public class ParametricFactorGraph { /** * { @ inheritDoc } * The returned statistics have names corresponding to the * parametric factors in this . That is , the parameters for a * particular parametric factor in this factor graph can be * retrieved using * { @ link ListSufficientStatistics # getStatisticByN...
List < SufficientStatistics > sufficientStatistics = Lists . newArrayList ( ) ; for ( ParametricFactor factor : getParametricFactors ( ) ) { sufficientStatistics . add ( factor . getNewSufficientStatistics ( ) ) ; } return new ListSufficientStatistics ( factorNames . items ( ) , sufficientStatistics ) ;
public class ServletContextResourceReaderHandler { /** * ( non - Javadoc ) * @ see * net . jawr . web . resource . handler . reader . ResourceReaderHandler # getResource ( * net . jawr . web . resource . bundle . JoinableResourceBundle , java . lang . String , * boolean , java . util . List ) */ @ Override publ...
if ( ThreadLocalJawrContext . isInterruptingProcessingBundle ( ) ) { throw new InterruptBundlingProcessException ( ) ; } Reader rd = null ; String resourceExtension = FileNameUtils . getExtension ( resourceName ) ; boolean generatedPath = generatorRegistry . isPathGenerated ( resourceName ) ; if ( generatedPath || allo...
public class Eclat { /** * Run the Eclat algorithm * @ param db Database to process * @ param relation Bit vector relation * @ return Frequent patterns found */ public FrequentItemsetsResult run ( Database db , final Relation < BitVector > relation ) { } }
// TODO : implement with resizable arrays , to not need dim . final int dim = RelationUtil . dimensionality ( relation ) ; final VectorFieldTypeInformation < BitVector > meta = RelationUtil . assumeVectorField ( relation ) ; // Compute absolute minsupport final int minsupp = getMinimumSupport ( relation . size ( ) ) ; ...
public class CmsToolbarChooseEditorModeButton { /** * Creates the menu widget for this button . < p > * @ return the menu widget */ public CmsContextMenu createContextMenu ( ) { } }
m_entries = new ArrayList < I_CmsContextMenuEntry > ( ) ; m_entries . add ( new EditorModeEntry ( Messages . get ( ) . key ( Messages . GUI_ONLY_NAVIGATION_BUTTON_TITLE_0 ) , EditorMode . navigation ) ) ; m_entries . add ( new EditorModeEntry ( Messages . get ( ) . key ( Messages . GUI_NON_NAVIGATION_BUTTON_TITLE_0 ) ,...
public class MeterValue { /** * Return a new { @ link MeterValue } instance for the given String value . The value may * contain a simple number , or a { @ link DurationStyle duration style string } . * @ param value the source value * @ return a { @ link MeterValue } instance */ public static MeterValue valueOf ...
if ( isNumber ( value ) ) { return new MeterValue ( Long . parseLong ( value ) ) ; } return new MeterValue ( DurationStyle . detectAndParse ( value ) ) ;
public class ReportingApi { /** * Get the statistics for the specified subscription ID . * @ param subscriptionId The unique ID of the subscription . */ public List < StatisticValue > peek ( String subscriptionId ) throws WorkspaceApiException { } }
try { InlineResponse2002 resp = api . peek ( subscriptionId ) ; Util . throwIfNotOk ( resp . getStatus ( ) ) ; InlineResponse2002Data data = resp . getData ( ) ; if ( data == null ) { throw new WorkspaceApiException ( "Response data is empty" ) ; } return data . getStatistics ( ) ; } catch ( ApiException ex ) { throw n...
public class PersistentStreamBase { /** * Update configuration at configurationPath . * @ param newConfiguration new stream configuration . * @ return future of operation . */ @ Override public CompletableFuture < Void > startUpdateConfiguration ( final StreamConfiguration newConfiguration ) { } }
return getVersionedConfigurationRecord ( ) . thenCompose ( configRecord -> { Preconditions . checkArgument ( ! configRecord . getObject ( ) . isUpdating ( ) ) ; StreamConfigurationRecord update = StreamConfigurationRecord . update ( scope , name , newConfiguration ) ; return Futures . toVoid ( setConfigurationData ( ne...
public class CsvExceptionConverter { /** * 例外をエラーオブジェクトに変換し 、 さらに 、 エラーオブジェジェクトをメッセージにフォーマットする 。 * @ param exception 変換するSuperCsvの例外 。 * @ param beanMapping Beanの定義情報 * @ return フォーマットされたメッセージ 。 * @ throws NullPointerException { @ literal exception or beanMapping is null . } */ public List < String > con...
return convert ( exception , beanMapping ) . stream ( ) . map ( error -> error . format ( messageResolver , messageInterpolator ) ) . collect ( Collectors . toList ( ) ) ;
public class AbstractReadWriteAccessStrategy { /** * Handle the timeout of a previous lock mapped to this key */ protected void handleLockExpiry ( SharedSessionContractImplementor session , Object key , Lockable lock ) { } }
long ts = region . nextTimestamp ( ) + region . getTimeout ( ) ; // create new lock that times out immediately Lock newLock = new Lock ( ts , uuid , nextLockId . getAndIncrement ( ) , null ) ; newLock . unlock ( ts ) ; region . put ( session , key , newLock ) ;
public class BaseField { /** * Write the physical data in this field to a stream file . * @ param daOut Output stream to add this field to . * @ param bFixedLength If false ( default ) be sure to get the length from the stream . * @ return boolean Success ? */ public boolean write ( DataOutputStream daOut , boole...
try { String string = this . toString ( ) ; if ( bFixedLength ) { // Write out exactly this . getMaxLength ( ) bytes daOut . writeBytes ( string ) ; for ( int i = string . length ( ) ; i < this . getMaxLength ( ) ; i ++ ) { // Zero delimited daOut . writeByte ( ( byte ) 0 ) ; } } else daOut . writeUTF ( string ) ; retu...
public class JournalSet { /** * Add sync times to the buffer . */ String getSyncTimes ( ) { } }
StringBuilder buf = new StringBuilder ( ) ; for ( JournalAndStream jas : journals ) { if ( jas . isActive ( ) ) { buf . append ( jas . getCurrentStream ( ) . getTotalSyncTime ( ) ) ; buf . append ( " " ) ; } } return buf . toString ( ) ;
public class DisksInner { /** * Lists all the disks under a resource group . * @ param resourceGroupName The name of the resource group . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ return the observable to the PagedList & lt ; DiskInner & gt ; object */ public Observable < Pa...
return listByResourceGroupWithServiceResponseAsync ( resourceGroupName ) . map ( new Func1 < ServiceResponse < Page < DiskInner > > , Page < DiskInner > > ( ) { @ Override public Page < DiskInner > call ( ServiceResponse < Page < DiskInner > > response ) { return response . body ( ) ; } } ) ;
public class OpenIntDoubleHashMap { /** * Returns the first key the given value is associated with . * It is often a good idea to first check with { @ link # containsValue ( double ) } whether there exists an association from a key to this value . * Search order is guaranteed to be < i > identical < / i > to the or...
// returns the first key found ; there may be more matching keys , however . int i = indexOfValue ( value ) ; if ( i < 0 ) return Integer . MIN_VALUE ; return table [ i ] ;
public class HistoryReferenceTableModel { /** * Removes the scan result for a particular uri and method . Method is synchronized internally . * @ param href the history reference */ public void remove ( HistoryReference href ) { } }
synchronized ( hrefList ) { int index = hrefList . indexOf ( href ) ; if ( index >= 0 ) { hrefList . remove ( index ) ; fireTableRowsDeleted ( index , index ) ; } }
public class OptimalCECPMain { /** * Aligns ca1 with ca2 permuted by < i > cp < / i > residues . * < p > < strong > WARNING : < / strong > Modifies ca2 during the permutation . Be sure * to make a copy before calling this method . * @ param ca1 * @ param ca2 * @ param param * @ param cp * @ return * @ t...
// initial permutation permuteArray ( ca2 , cp ) ; // perform alignment AFPChain afpChain = super . align ( ca1 , ca2 , param ) ; // un - permute alignment permuteAFPChain ( afpChain , - cp ) ; if ( afpChain . getName2 ( ) != null ) { afpChain . setName2 ( afpChain . getName2 ( ) + " CP=" + cp ) ; } // Specify the perm...
public class SelectManagerJni { /** * Starts the manager . */ @ Override public boolean start ( ) { } }
if ( ! _lifecycle . toStarting ( ) ) { return false ; } _fd = createNative ( ) ; if ( _fd == 0 ) { _lifecycle . toDestroy ( ) ; log . finer ( this + " is not available on this system." ) ; return false ; } String name = "resin-select-manager-" + _gId ++ ; _thread = new Thread ( new SelectTask ( ) , name ) ; _thread . s...
public class StylesheetDescriptorImporterExporter { /** * / * ( non - Javadoc ) * @ see org . apereo . portal . io . xml . IDataImporterExporter # importData ( java . lang . Object ) */ @ Transactional @ Override public void importData ( ExternalStylesheetDescriptor data ) { } }
final String stylesheetName = data . getName ( ) ; final String uri = data . getUri ( ) ; IStylesheetDescriptor stylesheetDescriptor = this . stylesheetDescriptorDao . getStylesheetDescriptorByName ( stylesheetName ) ; if ( stylesheetDescriptor == null ) { stylesheetDescriptor = this . stylesheetDescriptorDao . createS...
public class DescribeHostReservationsRequest { /** * This method is intended for internal use only . Returns the marshaled request configured with additional * parameters to enable operation dry - run . */ @ Override public Request < DescribeHostReservationsRequest > getDryRunRequest ( ) { } }
Request < DescribeHostReservationsRequest > request = new DescribeHostReservationsRequestMarshaller ( ) . marshall ( this ) ; request . addParameter ( "DryRun" , Boolean . toString ( true ) ) ; return request ;
public class QuerySelectOnSubscribe { /** * Obtains connection , creates prepared statement and assigns parameters to * the prepared statement . * @ param subscriber * @ param state * @ throws SQLException */ private void connectAndPrepareStatement ( Subscriber < ? super T > subscriber , State state ) throws SQ...
log . debug ( "connectionProvider={}" , query . context ( ) . connectionProvider ( ) ) ; if ( ! subscriber . isUnsubscribed ( ) ) { log . debug ( "getting connection" ) ; state . con = query . context ( ) . connectionProvider ( ) . get ( ) ; log . debug ( "preparing statement,sql={}" , query . sql ( ) ) ; state . ps = ...
public class GetAssignmentGroupOptions { /** * Additional objects to include with the requested group . * Note that all the optional includes depend on " assignments " also being included . * @ param includes List of included objects to return * @ return this object to continue building options */ public GetAssig...
List < Include > assignmentDependents = Arrays . asList ( Include . DISCUSSION_TOPIC , Include . ASSIGNMENT_VISIBILITY , Include . SUBMISSION ) ; if ( includes . stream ( ) . anyMatch ( assignmentDependents :: contains ) && ! includes . contains ( Include . ASSIGNMENTS ) ) { throw new IllegalArgumentException ( "Includ...