signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class CnvBnRsToString { /** * < p > Convert parameter with using name . < / p >
* @ param pAddParam additional params , e . g . entity class UserRoleTomcat
* to reveal derived columns for its composite ID , or field Enum class
* to reveal Enum value by index .
* @ param pFrom from a bean
* @ param pNam... | return pFrom . getString ( pName ) ; |
public class AccountsInner { /** * Gets the specified Data Lake Store firewall rule .
* @ param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account .
* @ param accountName The name of the Data Lake Store account from which to get the firewall rule .
* @ param firewallR... | return getFirewallRuleWithServiceResponseAsync ( resourceGroupName , accountName , firewallRuleName ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class ImplicitObjectUtil { /** * Load the global app into the request
* @ param request the request
* @ param globalApp the global app */
public static void loadGlobalApp ( ServletRequest request , GlobalApp globalApp ) { } } | if ( globalApp != null ) request . setAttribute ( GLOBAL_APP_IMPLICIT_OBJECT_KEY , globalApp ) ; |
public class SelectBase { /** * When set to < code > true < / code > , adds a search box to the
* top of the select picker drop - down . < br >
* < br >
* Defaults to < code > false < / code > .
* @ param liveSearch */
public void setLiveSearch ( final boolean liveSearch ) { } } | if ( liveSearch ) attrMixin . setAttribute ( LIVE_SEARCH , Boolean . toString ( true ) ) ; else attrMixin . removeAttribute ( LIVE_SEARCH ) ; |
public class JobControllerClient { /** * Starts a job cancellation request . To access the job resource after cancellation , call
* [ regions / { region } / jobs . list ] ( / dataproc / docs / reference / rest / v1 / projects . regions . jobs / list ) or
* [ regions / { region } / jobs . get ] ( / dataproc / docs /... | CancelJobRequest request = CancelJobRequest . newBuilder ( ) . setProjectId ( projectId ) . setRegion ( region ) . setJobId ( jobId ) . build ( ) ; return cancelJob ( request ) ; |
public class GeoLocation { /** * Converts DMS ( degrees - minutes - seconds ) rational values , as given in { @ link com . drew . metadata . exif . GpsDirectory } ,
* into a single value in degrees , as a double . */
@ Nullable public static Double degreesMinutesSecondsToDecimal ( @ NotNull final Rational degs , @ No... | double decimal = Math . abs ( degs . doubleValue ( ) ) + mins . doubleValue ( ) / 60.0d + secs . doubleValue ( ) / 3600.0d ; if ( Double . isNaN ( decimal ) ) return null ; if ( isNegative ) decimal *= - 1 ; return decimal ; |
public class LinkedList { /** * Retrieves , but does not remove , the first element of this list ,
* or returns { @ code null } if this list is empty .
* @ return the first element of this list , or { @ code null }
* if this list is empty
* @ since 1.6 */
public E peekFirst ( ) { } } | final Node < E > f = first ; return ( f == null ) ? null : f . item ; |
public class Disruptor { /** * < p > Specify an exception handler to be used for event handlers and worker pools created by this Disruptor . < / p >
* < p > The exception handler will be used by existing and future event handlers and worker pools created by this Disruptor instance . < / p >
* @ param exceptionHandl... | checkNotStarted ( ) ; if ( ! ( this . exceptionHandler instanceof ExceptionHandlerWrapper ) ) { throw new IllegalStateException ( "setDefaultExceptionHandler can not be used after handleExceptionsWith" ) ; } ( ( ExceptionHandlerWrapper < T > ) this . exceptionHandler ) . switchTo ( exceptionHandler ) ; |
public class NeedlessMemberCollectionSynchronization { /** * removes collection fields that are passed to other methods as arguments */
private void removeCollectionParameters ( ) { } } | int parmCount = SignatureUtils . getNumParameters ( getSigConstantOperand ( ) ) ; if ( stack . getStackDepth ( ) >= parmCount ) { for ( int i = 0 ; i < parmCount ; i ++ ) { OpcodeStack . Item item = stack . getStackItem ( i ) ; XField field = item . getXField ( ) ; if ( field != null ) { collectionFields . remove ( fie... |
public class EncryptionConfigurationMarshaller { /** * Marshall the given parameter object . */
public void marshall ( EncryptionConfiguration encryptionConfiguration , ProtocolMarshaller protocolMarshaller ) { } } | if ( encryptionConfiguration == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( encryptionConfiguration . getNoEncryptionConfig ( ) , NOENCRYPTIONCONFIG_BINDING ) ; protocolMarshaller . marshall ( encryptionConfiguration . getKMSEncryptionCo... |
public class CollectorManagerPipelineConfigurator { /** * Search for and add any LogHandler ServiceReferences that were already started
* by the time we registered our ServiceListener . */
@ SuppressWarnings ( "unchecked" ) protected void processInitialCollectorManagerServices ( ) throws InvalidSyntaxException { } } | ServiceReference < CollectorManager > [ ] servRefs = ( ServiceReference < CollectorManager > [ ] ) bundleContext . getServiceReferences ( CollectorManager . class . getName ( ) , null ) ; if ( servRefs != null ) { for ( ServiceReference < CollectorManager > servRef : servRefs ) { setCollectorManagerPipeline ( servRef )... |
public class WampSession { /** * Register a callback to execute on destruction of the specified attribute . The
* callback is executed when the session is closed .
* @ param name the name of the attribute to register the callback for
* @ param callback the destruction callback to be executed */
public void regist... | synchronized ( getSessionMutex ( ) ) { if ( isSessionCompleted ( ) ) { throw new IllegalStateException ( "Session id=" + getWebSocketSessionId ( ) + " already completed" ) ; } setAttribute ( DESTRUCTION_CALLBACK_NAME_PREFIX + name , callback ) ; } |
public class CliUtils { /** * Prints information of the test result .
* @ param pass the test result */
public static void printPassInfo ( boolean pass ) { } } | if ( pass ) { System . out . println ( Constants . ANSI_GREEN + "Passed the test!" + Constants . ANSI_RESET ) ; } else { System . out . println ( Constants . ANSI_RED + "Failed the test!" + Constants . ANSI_RESET ) ; } |
public class FilePublisher { /** * Notifies all default file subscribers , that is those that will all be notified no matter what . */
public synchronized void notifyDefaultFileSubscribers ( ) { } } | for ( FileSubscriber sub : defaultFileSubscribers ) { CompletableFuture . runAsync ( sub :: update , main . getThreadPoolManager ( ) . getAddOnsThreadPool ( ) ) ; } |
public class ListBackupPlansRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( ListBackupPlansRequest listBackupPlansRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( listBackupPlansRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( listBackupPlansRequest . getNextToken ( ) , NEXTTOKEN_BINDING ) ; protocolMarshaller . marshall ( listBackupPlansRequest . getMaxResults ( ) , MAXRESULTS_BINDING ... |
public class AbstractManagedType { /** * Gets the singular attribute .
* @ param paramString
* the param string
* @ param checkValidity
* the check validity
* @ return the singular attribute */
private SingularAttribute < ? super X , ? > getSingularAttribute ( String paramString , boolean checkValidity ) { } ... | SingularAttribute < ? super X , ? > attribute = getDeclaredSingularAttribute ( paramString , false ) ; try { if ( attribute == null && superClazzType != null ) { attribute = superClazzType . getSingularAttribute ( paramString ) ; } } catch ( IllegalArgumentException iaex ) { attribute = null ; onValidity ( paramString ... |
public class DiagnosticsInner { /** * List Site Detector Responses .
* List Site Detector Responses .
* @ param nextPageLink The NextLink from the previous successful call to List operation .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the observable to the PagedList ... | return listSiteDetectorResponsesNextWithServiceResponseAsync ( nextPageLink ) . map ( new Func1 < ServiceResponse < Page < DetectorResponseInner > > , Page < DetectorResponseInner > > ( ) { @ Override public Page < DetectorResponseInner > call ( ServiceResponse < Page < DetectorResponseInner > > response ) { return res... |
public class GuiceDailyDaemon { /** * Overrides the default time set in the constructor with the value from the application config ( if set )
* @ param config
* @ throws java . time . format . DateTimeParseException
* if the LocalTime stored in config is invalid */
@ Inject public void setTimeFromConfigIfSet ( Gu... | final String str = config . get ( "daemon." + getName ( ) + ".time" , null ) ; if ( StringUtils . isNotEmpty ( str ) ) { this . _time = LocalTime . parse ( str ) ; } |
public class AmazonInspectorClient { /** * Describes the findings that are specified by the ARNs of the findings .
* @ param describeFindingsRequest
* @ return Result of the DescribeFindings operation returned by the service .
* @ throws InternalException
* Internal server error .
* @ throws InvalidInputExcep... | request = beforeClientExecution ( request ) ; return executeDescribeFindings ( request ) ; |
public class CmsImageCacheHelper { /** * Reads all cached images . < p >
* @ param cms the cms context
* @ param withVariations if also variations should be read
* @ param showSize if it is needed to compute the image size
* @ param statsOnly if only statistical information should be retrieved */
private void i... | File basedir = new File ( CmsImageLoader . getImageRepositoryPath ( ) ) ; try { CmsObject clonedCms = getClonedCmsObject ( cms ) ; visitImages ( clonedCms , basedir , withVariations , showSize , statsOnly ) ; } catch ( CmsException e ) { // should never happen
} m_variations = Collections . unmodifiableMap ( m_variatio... |
public class AmazonSimpleEmailServiceClient { /** * Updates an existing custom verification email template .
* For more information about custom verification email templates , see < a
* href = " http : / / docs . aws . amazon . com / ses / latest / DeveloperGuide / custom - verification - emails . html " > Using Cu... | request = beforeClientExecution ( request ) ; return executeUpdateCustomVerificationEmailTemplate ( request ) ; |
public class NFBuildGraph { /** * Returns the { @ link NFPropertySpec } associated with the supplied node type and property name . */
public NFPropertySpec getPropertySpec ( String nodeType , String propertyName ) { } } | NFNodeSpec nodeSpec = graphSpec . getNodeSpec ( nodeType ) ; NFPropertySpec propertySpec = nodeSpec . getPropertySpec ( propertyName ) ; return propertySpec ; |
public class JSLocalConsumerPoint { /** * Run the asynch consumer once only when the session is stopped .
* registered or if the session is not stopped
* @ throws SIResourceException thrown if there is a problem in the message store */
@ Override public void runIsolatedAsynch ( boolean deliverImmediately ) throws S... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "runIsolatedAsynch" , new Object [ ] { this , Boolean . valueOf ( deliverImmediately ) } ) ; synchronized ( _asynchConsumerBusyLock ) { // Lock the consumer session while we check that it is in a valid
// state
this . lock (... |
public class SessionManager { /** * Creates a session id and adds the corresponding cookie to the
* response .
* @ param response the response
* @ return the session id */
protected String createSessionId ( HttpResponse response ) { } } | StringBuilder sessionIdBuilder = new StringBuilder ( ) ; byte [ ] bytes = new byte [ 16 ] ; secureRandom . nextBytes ( bytes ) ; for ( byte b : bytes ) { sessionIdBuilder . append ( Integer . toHexString ( b & 0xff ) ) ; } String sessionId = sessionIdBuilder . toString ( ) ; HttpCookie sessionCookie = new HttpCookie ( ... |
public class MapUtils { /** * Returns an immutable copy of the given map whose iteration order has keys sorted by the key
* type ' s natural ordering . No map keys or values may be { @ code null } .
* @ deprecated Prefer { @ link com . google . common . collect . ImmutableSortedMap # copyOf ( Map ) } . */
@ Depreca... | return ImmutableSortedMap . copyOf ( map ) ; |
public class GoogleCloudStorageImpl { /** * See { @ link GoogleCloudStorage # deleteBuckets ( List ) } for details about expected behavior . */
@ Override public void deleteBuckets ( List < String > bucketNames ) throws IOException { } } | logger . atFine ( ) . log ( "deleteBuckets(%s)" , bucketNames ) ; // Validate all the inputs first .
for ( String bucketName : bucketNames ) { Preconditions . checkArgument ( ! Strings . isNullOrEmpty ( bucketName ) , "bucketName must not be null or empty" ) ; } // Gather exceptions to wrap in a composite exception at ... |
public class JNRPEClient { /** * Configures the command line parser .
* @ return The command line parser configuration */
private static Group configureCommandLine ( ) { } } | DefaultOptionBuilder oBuilder = new DefaultOptionBuilder ( ) ; ArgumentBuilder aBuilder = new ArgumentBuilder ( ) ; GroupBuilder gBuilder = new GroupBuilder ( ) ; DefaultOption nosslOption = oBuilder . withLongName ( "nossl" ) . withShortName ( "n" ) . withDescription ( "Do no use SSL" ) . create ( ) ; DefaultOption we... |
public class BaseHlsTaskRunner { /** * Determines if a streaming distribution already exists for a given bucket */
protected List < DistributionSummary > getAllExistingWebDistributions ( String bucketName ) { } } | List < DistributionSummary > distListForBucket = new ArrayList < > ( ) ; DistributionList distList = cfClient . listDistributions ( new ListDistributionsRequest ( ) ) . getDistributionList ( ) ; List < DistributionSummary > webDistList = distList . getItems ( ) ; while ( distList . isTruncated ( ) ) { distList = cfClie... |
public class InternalService { /** * Query user profiles on the services .
* @ param queryString Query string . See https : / / www . npmjs . com / package / mongo - querystring for query syntax . You can use { @ link QueryBuilder } helper class to construct valid query string .
* @ return Profiles detail from the ... | final String token = getToken ( ) ; if ( sessionController . isCreatingSession ( ) ) { return getTaskQueue ( ) . queueQueryProfiles ( queryString ) ; } else if ( TextUtils . isEmpty ( token ) ) { return Observable . error ( getSessionStateErrorDescription ( ) ) ; } else { return doQueryProfiles ( token , queryString ) ... |
public class CommerceTierPriceEntryLocalServiceWrapper { /** * Returns the commerce tier price entry matching the UUID and group .
* @ param uuid the commerce tier price entry ' s UUID
* @ param groupId the primary key of the group
* @ return the matching commerce tier price entry
* @ throws PortalException if ... | return _commerceTierPriceEntryLocalService . getCommerceTierPriceEntryByUuidAndGroupId ( uuid , groupId ) ; |
public class Utils { /** * Formats the date for today , in a specific format .
* @ param format the date format
* @ param loc the locale instance
* @ return today ' s date formatted */
public static String formatDate ( String format , Locale loc ) { } } | return formatDate ( timestamp ( ) , format , loc ) ; |
public class ListLicenseConfigurationsRequest { /** * An array of ARNs for the calling account ’ s license configurations .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setLicenseConfigurationArns ( java . util . Collection ) } or
* { @ link # withLicens... | if ( this . licenseConfigurationArns == null ) { setLicenseConfigurationArns ( new java . util . ArrayList < String > ( licenseConfigurationArns . length ) ) ; } for ( String ele : licenseConfigurationArns ) { this . licenseConfigurationArns . add ( ele ) ; } return this ; |
public class Generics { /** * Returns the erasure of the given type . */
public static Class < ? > erase ( Type type ) { } } | if ( type instanceof Class < ? > ) { return ( Class < ? > ) type ; } else if ( type instanceof ParameterizedType ) { return ( Class < ? > ) ( ( ParameterizedType ) type ) . getRawType ( ) ; } else if ( type instanceof TypeVariable < ? > ) { TypeVariable < ? > tv = ( TypeVariable < ? > ) type ; if ( tv . getBounds ( ) .... |
public class ServiceLocator { /** * Locates a service given its JNDI name and automatically casts its reference
* to the appropriate class , as specified by the caller .
* @ param name
* the JNDI name of the resource to lookup .
* @ param clazz
* the type to be used for casting the reference .
* @ return
... | Object object = SingletonHolder . locator . context . lookup ( name ) ; if ( object != null ) { return clazz . cast ( object ) ; } return null ; |
public class QuadrigaCxUtils { /** * Format a date String for QuadrigaCx
* @ param dateString
* @ return */
public static Date parseDate ( String dateString ) { } } | try { return DATE_FORMAT . parse ( dateString ) ; } catch ( ParseException e ) { throw new ExchangeException ( "Illegal date/time format" , e ) ; } |
public class EnvironmentsInner { /** * Starts an environment by starting all resources inside the environment . This operation can take a while to complete .
* @ param resourceGroupName The name of the resource group .
* @ param labAccountName The name of the lab Account .
* @ param labName The name of the lab . ... | return beginStartWithServiceResponseAsync ( resourceGroupName , labAccountName , labName , environmentSettingName , environmentName ) . map ( new Func1 < ServiceResponse < Void > , Void > ( ) { @ Override public Void call ( ServiceResponse < Void > response ) { return response . body ( ) ; } } ) ; |
public class ScenarioPortrayal { /** * Add a ScatterPlot to the simulation
* @ param scatterID - An ID for the ScatterPlot
* @ param xAxisLabel - The name of the x axis
* @ param yAxisLabel - The name of the y axis
* @ throws ShanksException */
public void addScatterPlot ( String scatterID , String xAxisLabel ,... | if ( ! this . timeCharts . containsKey ( scatterID ) ) { ScatterPlotGenerator scatter = new ScatterPlotGenerator ( ) ; scatter . setTitle ( scatterID ) ; scatter . setXAxisLabel ( xAxisLabel ) ; scatter . setYAxisLabel ( yAxisLabel ) ; this . scatterPlots . put ( scatterID , scatter ) ; } else { throw new DuplicatedCha... |
public class RuleCharacterIterator { /** * Returns the next character using the given options , or DONE if there
* are no more characters , and advance the position to the next
* character .
* @ param options one or more of the following options , bitwise - OR - ed
* together : PARSE _ VARIABLES , PARSE _ ESCAP... | int c = DONE ; isEscaped = false ; for ( ; ; ) { c = _current ( ) ; _advance ( UTF16 . getCharCount ( c ) ) ; if ( c == SymbolTable . SYMBOL_REF && buf == null && ( options & PARSE_VARIABLES ) != 0 && sym != null ) { String name = sym . parseReference ( text , pos , text . length ( ) ) ; // If name = = null there was a... |
public class DecimalUtils { /** * Extracts the seconds and nanoseconds component of { @ code seconds } as { @ code long } and { @ code int }
* values , passing them to the given converter . The implementation avoids latency issues present
* on some JRE releases .
* @ since 2.9.8 */
public static < T > T extractSe... | // Complexity is here to workaround unbounded latency in some BigDecimal operations .
// https : / / github . com / FasterXML / jackson - databind / issues / 2141
long secondsOnly ; int nanosOnly ; BigDecimal nanoseconds = seconds . scaleByPowerOfTen ( 9 ) ; if ( nanoseconds . precision ( ) - nanoseconds . scale ( ) <=... |
public class UtilFile { /** * Normalize the file extension by ensuring it has the required one .
* @ param file The original file name ( must not be < code > null < / code > ) .
* @ param extension The desired extension , will replace the other one if has ( must not be < code > null < / code > ) .
* @ return The ... | Check . notNull ( file ) ; Check . notNull ( extension ) ; final int length = file . length ( ) + Constant . DOT . length ( ) + extension . length ( ) ; final StringBuilder builder = new StringBuilder ( length ) . append ( removeExtension ( file ) ) . append ( Constant . DOT ) ; if ( extension . startsWith ( Constant .... |
public class AbstractThriftBase { /** * 读取操作 */
@ Override public void read ( TProtocol iprot ) throws TException { } } | if ( ! "org.apache.thrift.scheme.StandardScheme" . equals ( iprot . getScheme ( ) . getName ( ) ) ) throw new TApplicationException ( "Service scheme must be 'org.apache.thrift.scheme.StandardScheme' !" ) ; TField schemeField ; iprot . readStructBegin ( ) ; while ( Boolean . TRUE ) { schemeField = iprot . readFieldBegi... |
public class DescribeClassicLinkInstancesRequest { /** * This method is intended for internal use only . Returns the marshaled request configured with additional
* parameters to enable operation dry - run . */
@ Override public Request < DescribeClassicLinkInstancesRequest > getDryRunRequest ( ) { } } | Request < DescribeClassicLinkInstancesRequest > request = new DescribeClassicLinkInstancesRequestMarshaller ( ) . marshall ( this ) ; request . addParameter ( "DryRun" , Boolean . toString ( true ) ) ; return request ; |
public class StructureTools { /** * Returns the set of inter - chain contacts between the two given chains for
* the given atom names . Uses a geometric hashing algorithm that speeds up
* the calculation without need of full distance matrix . The parsing mode
* { @ link FileParsingParameters # setAlignSeqRes ( bo... | Grid grid = new Grid ( cutoff ) ; Atom [ ] atoms1 = null ; Atom [ ] atoms2 = null ; if ( atomNames == null ) { atoms1 = getAllNonHAtomArray ( chain1 , hetAtoms ) ; atoms2 = getAllNonHAtomArray ( chain2 , hetAtoms ) ; } else { atoms1 = getAtomArray ( chain1 , atomNames ) ; atoms2 = getAtomArray ( chain2 , atomNames ) ; ... |
public class Symbol { /** * A Java source description of the location of this symbol ; used for
* error reporting .
* @ return null if the symbol is a package or a toplevel class defined in
* the default package ; otherwise , the owner symbol is returned */
public Symbol location ( ) { } } | if ( owner . name == null || ( owner . name . isEmpty ( ) && ( owner . flags ( ) & BLOCK ) == 0 && owner . kind != PCK && owner . kind != TYP ) ) { return null ; } return owner ; |
public class AppEventsLogger { /** * Build an AppEventsLogger instance to log events through .
* @ param context Used to access the attributionId for non - authenticated users .
* @ param applicationId Explicitly specified Facebook applicationId to log events against . If null , the default
* app ID specified in ... | return new AppEventsLogger ( context , applicationId , session ) ; |
public class ParseUtils { /** * read encoding len .
* see Stringpool . cpp ENCODE _ LENGTH */
private static int readLen16 ( ByteBuffer buffer ) { } } | int len = 0 ; int i = Buffers . readUShort ( buffer ) ; if ( ( i & 0x8000 ) != 0 ) { len |= ( i & 0x7fff ) << 16 ; len += Buffers . readUShort ( buffer ) ; } else { len = i ; } return len ; |
public class OfflinePlugin { /** * Cancel an ongoing download .
* @ param offlineDownload the offline download
* @ since 0.1.0 */
public void cancelDownload ( OfflineDownloadOptions offlineDownload ) { } } | Intent intent = new Intent ( context , OfflineDownloadService . class ) ; intent . setAction ( OfflineConstants . ACTION_CANCEL_DOWNLOAD ) ; intent . putExtra ( KEY_BUNDLE , offlineDownload ) ; context . startService ( intent ) ; |
public class BasicHttpClient { /** * Once the client executes the http call , then it receives the http response . This method takes care of handling
* that . In case you need to handle it differently you can override this method .
* @ param httpResponse : Received Apache http response from the server
* @ return ... | Response serverResponse = createCharsetResponse ( httpResponse ) ; Header [ ] allHeaders = httpResponse . getAllHeaders ( ) ; Response . ResponseBuilder responseBuilder = Response . fromResponse ( serverResponse ) ; for ( Header thisHeader : allHeaders ) { String headerKey = thisHeader . getName ( ) ; responseBuilder =... |
public class SimpleAttachable { /** * { @ inheritDoc } */
public synchronized < T > T removeAttachment ( final AttachmentKey < T > key ) { } } | if ( key == null ) { return null ; } return key . cast ( attachments . remove ( key ) ) ; |
public class Ifc2x3tc1FactoryImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public String convertIfcDistributionChamberElementTypeEnumToString ( EDataType eDataType , Object instanceValue ) { } } | return instanceValue == null ? null : instanceValue . toString ( ) ; |
public class MBTilesHelper { /** * Get a Tile image from the database .
* @ param x
* @ param y
* @ param z
* @ return
* @ throws Exception */
public BufferedImage getTile ( int x , int y , int z ) throws Exception { } } | try ( PreparedStatement statement = connection . prepareStatement ( SELECTQUERY ) ) { statement . setInt ( 1 , z ) ; statement . setInt ( 2 , x ) ; statement . setInt ( 3 , y ) ; ResultSet resultSet = statement . executeQuery ( ) ; if ( resultSet . next ( ) ) { byte [ ] imageBytes = resultSet . getBytes ( 1 ) ; boolean... |
public class ApplicationTypeImpl { /** * If not already created , a new < code > module < / code > element will be created and returned .
* Otherwise , the first existing < code > module < / code > element will be returned .
* @ return the instance defined for the element < code > module < / code > */
public Module... | List < Node > nodeList = childNode . get ( "module" ) ; if ( nodeList != null && nodeList . size ( ) > 0 ) { return new ModuleTypeImpl < ApplicationType < T > > ( this , "module" , childNode , nodeList . get ( 0 ) ) ; } return createModule ( ) ; |
public class MetricsProtoUtils { /** * MetricDescriptors . */
static Metric toMetricProto ( io . opencensus . metrics . export . Metric metric , @ Nullable io . opencensus . resource . Resource resource ) { } } | Metric . Builder builder = Metric . newBuilder ( ) ; builder . setMetricDescriptor ( toMetricDescriptorProto ( metric . getMetricDescriptor ( ) ) ) ; for ( io . opencensus . metrics . export . TimeSeries timeSeries : metric . getTimeSeriesList ( ) ) { builder . addTimeseries ( toTimeSeriesProto ( timeSeries ) ) ; } if ... |
public class ImageHandlerBuilder { /** * Crop the image to the given width and height , using ( x , y ) as coordinates for upper left corner
* @ param x
* @ param y
* @ param width
* @ param height
* @ return */
public ImageHandlerBuilder crop ( int x , int y , int width , int height ) { } } | height = Math . min ( height , image . getHeight ( ) - y ) ; width = Math . min ( width , image . getWidth ( ) - x ) ; BufferedImage crop = Scalr . crop ( image , x , y , width , height ) ; image . flush ( ) ; // cannot throw
image = crop ; return this ; |
public class IfcObjectImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ SuppressWarnings ( "unchecked" ) @ Override public EList < IfcRelDefinesByProperties > getIsDefinedBy ( ) { } } | return ( EList < IfcRelDefinesByProperties > ) eGet ( Ifc4Package . Literals . IFC_OBJECT__IS_DEFINED_BY , true ) ; |
public class Buffers { /** * Wrap an observable and free a reference counted item if unsubscribed in the meantime .
* This can and should be used if a hot observable is used as the source but it is not guaranteed that
* there will always be a subscriber that consumes the reference counted item . If an item is emitt... | return Observable . create ( new Observable . OnSubscribe < T > ( ) { @ Override public void call ( final Subscriber < ? super T > subscriber ) { source . subscribe ( new Subscriber < T > ( ) { @ Override public void onCompleted ( ) { if ( ! subscriber . isUnsubscribed ( ) ) { subscriber . onCompleted ( ) ; } } @ Overr... |
public class JKConfig { /** * Gets the string .
* @ param name the name
* @ param defaultValue the default value
* @ return the string */
public String getString ( String name , String defaultValue ) { } } | return config . getString ( name , defaultValue ) ; |
public class JMSManager { /** * Stops producers and consumers on a given destination .
* This has no effect on durable subscriptions .
* @ param destName
* @ throws MessagingException */
public void stop ( String destName ) throws MessagingException { } } | try { // Look for an existing destination for the given destination
JMSDestination jmsDest = jmsDestinations . get ( destName ) ; if ( jmsDest != null ) { // Close out all JMS related state
if ( jmsDest . producer != null ) { jmsDest . producer . close ( ) ; logger . debug ( "Closed producer for " + destName ) ; } if (... |
public class Vpc { /** * Information about the IPv6 CIDR blocks associated with the VPC .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setIpv6CidrBlockAssociationSet ( java . util . Collection ) } or
* { @ link # withIpv6CidrBlockAssociationSet ( java . ... | if ( this . ipv6CidrBlockAssociationSet == null ) { setIpv6CidrBlockAssociationSet ( new com . amazonaws . internal . SdkInternalList < VpcIpv6CidrBlockAssociation > ( ipv6CidrBlockAssociationSet . length ) ) ; } for ( VpcIpv6CidrBlockAssociation ele : ipv6CidrBlockAssociationSet ) { this . ipv6CidrBlockAssociationSet ... |
public class NonSnarlIdpMetadataManager { /** * { @ inheritDoc } */
public List < RoleDescriptor > getRole ( String entityID , QName roleName ) throws MetadataProviderException { } } | List < RoleDescriptor > roleDescriptors = null ; for ( MetadataProvider provider : getProviders ( ) ) { log . debug ( "Checking child metadata provider for entity descriptor with entity ID: {}" , entityID ) ; try { roleDescriptors = provider . getRole ( entityID , roleName ) ; if ( roleDescriptors != null && ! roleDesc... |
public class CmsDefaultXmlContentHandler { /** * Returns the validation message to be displayed if a certain rule was violated . < p >
* @ param cms the current users OpenCms context
* @ param value the value to validate
* @ param regex the rule that was violated
* @ param valueStr the string value of the given... | String message = null ; if ( isWarning ) { message = m_validationWarningMessages . get ( value . getName ( ) ) ; } else { message = m_validationErrorMessages . get ( value . getName ( ) ) ; } if ( message == null ) { if ( isWarning ) { message = MESSAGE_VALIDATION_DEFAULT_WARNING ; } else { message = MESSAGE_VALIDATION... |
public class SlideOut { /** * { @ inheritDoc } */
@ Override public void queueEvent ( final FacesEvent event ) { } } | final FacesContext fc = FacesContext . getCurrentInstance ( ) ; if ( isSelfRequest ( fc ) && event instanceof AjaxBehaviorEvent ) { final Map < String , String > params = fc . getExternalContext ( ) . getRequestParameterMap ( ) ; final String eventName = params . get ( Constants . RequestParams . PARTIAL_BEHAVIOR_EVENT... |
public class StringUtils { /** * Merges all occurrences of multiple slashes into a single slash ( e . g . " a / / / b / / c / d " becomes " a / b / c / d " )
* @ param url The string to process
* @ return The resulting string with merged slashes . */
public static String mergeSlashesInUrl ( String url ) { } } | StringBuilder builder = new StringBuilder ( ) ; boolean prevIsColon = false ; boolean inMerge = false ; for ( int i = 0 ; i < url . length ( ) ; i ++ ) { char c = url . charAt ( i ) ; if ( c == ':' ) { prevIsColon = true ; builder . append ( c ) ; } else { if ( c == '/' ) { if ( prevIsColon ) { builder . append ( c ) ;... |
public class LogManager { /** * Sets the formatter to use for all handlers .
* @ param formatter the formatter to use */
public synchronized static void setFormatter ( Formatter formatter ) { } } | java . util . logging . Logger root = java . util . logging . LogManager . getLogManager ( ) . getLogger ( StringUtils . EMPTY ) ; for ( Handler h : root . getHandlers ( ) ) { h . setFormatter ( formatter ) ; } |
public class HttpHealthCheckClient { /** * Retrieves the list of HttpHealthCheck resources available to the specified project .
* < p > Sample code :
* < pre > < code >
* try ( HttpHealthCheckClient httpHealthCheckClient = HttpHealthCheckClient . create ( ) ) {
* ProjectName project = ProjectName . of ( " [ PRO... | ListHttpHealthChecksHttpRequest request = ListHttpHealthChecksHttpRequest . newBuilder ( ) . setProject ( project == null ? null : project . toString ( ) ) . build ( ) ; return listHttpHealthChecks ( request ) ; |
public class JettyHttpServer { /** * this should only be used as an estimate */
public int getMaxQueuedConnections ( ) { } } | return getThreadPool ( ) == null ? - 1 : ( ( getThreadPool ( ) . getQueue ( ) instanceof ArrayBlockingQueue ) ? ( ( ArrayBlockingQueue ) getThreadPool ( ) . getQueue ( ) ) . size ( ) + ( ( ArrayBlockingQueue ) getThreadPool ( ) . getQueue ( ) ) . remainingCapacity ( ) : - 1 ) ; |
public class xen_health_ftw { /** * < pre >
* Use this operation to get FTW Status .
* < / pre > */
public static xen_health_ftw [ ] get ( nitro_service client ) throws Exception { } } | xen_health_ftw resource = new xen_health_ftw ( ) ; resource . validate ( "get" ) ; return ( xen_health_ftw [ ] ) resource . get_resources ( client ) ; |
public class SetValueRecord { /** * Replaces the specified data value with the value saved in the log record .
* The method pins a buffer to the specified block , calls setInt to restore
* the saved value ( using a dummy LSN ) , and unpins the buffer .
* @ see LogRecord # undo ( Transaction ) */
@ Override public... | Buffer buff = tx . bufferMgr ( ) . pin ( blk ) ; LogSeqNum lsn = tx . recoveryMgr ( ) . logSetValClr ( this . txNum , buff , offset , val , this . lsn ) ; VanillaDb . logMgr ( ) . flush ( lsn ) ; buff . setVal ( offset , val , tx . getTransactionNumber ( ) , null ) ; tx . bufferMgr ( ) . unpin ( buff ) ; // Note that U... |
public class RegistriesInner { /** * Creates a container registry with the specified parameters .
* @ param resourceGroupName The name of the resource group to which the container registry belongs .
* @ param registryName The name of the container registry .
* @ param registryCreateParameters The parameters for c... | return ServiceFuture . fromResponse ( beginCreateWithServiceResponseAsync ( resourceGroupName , registryName , registryCreateParameters ) , serviceCallback ) ; |
public class ColorPixel { /** * Sets this RGB vector to the result of the cross product of this RGB vector with
* the specified vector . Alpha is preserved .
* See { @ link # cross _ ( double , double , double ) } for cross product with swapped arguments . < br >
* Pseudo code :
* < pre >
* a = this
* b = s... | return setRGB_fromDouble_preserveAlpha ( ( g_asDouble ( ) * b ) - ( g * b_asDouble ( ) ) , ( b_asDouble ( ) * r ) - ( b * r_asDouble ( ) ) , ( r_asDouble ( ) * g ) - ( r * g_asDouble ( ) ) ) ; |
public class SQLLexer { /** * / * to match tokens like ' CASE ' , ' BEGIN ' , ' END '
* the tokens should not be embedded in identifiers , like column names or table names
* the tokens can be followed by operators with / without whitespaces
* eg : emptycase , caseofbeer , suitcaseofbeer ,
* ( id + 0 ) end + 100... | final int tokLength = token . length ( ) ; final int bufLength = buffer . length ( ) ; final char firstLo = Character . toLowerCase ( token . charAt ( 0 ) ) ; final char firstUp = Character . toUpperCase ( token . charAt ( 0 ) ) ; if ( // character before token is non alphanumeric i . e . , token is not embedded in an ... |
public class AssetsSingleton { /** * Serves the asset list page , or a JSON form depending on the { @ literal ACCEPT } header .
* @ return the page , the json form or a bad request . Bad request are returned in " PROD " mode . */
@ Route ( method = HttpMethod . GET , uri = "/assets" ) public Result index ( ) { } } | if ( configuration . isProd ( ) ) { // Dumping assets is not enabled in PROD mode ,
// returning a bad request result
return badRequest ( "Sorry, no asset dump in PROD mode." ) ; } if ( cache . isEmpty ( ) || NOCACHE_VALUE . equalsIgnoreCase ( context ( ) . header ( CACHE_CONTROL ) ) ) { // Refresh the cache .
all ( ) ... |
public class SeaGlassStyle { /** * < p > Gets the RuntimeState that most closely matches the state in the given
* context , but is less specific than the given " lastState " . Essentially ,
* this allows you to search for the next best state . < / p >
* < p > For example , if you had the following three states : ... | // Use the StateInfo with the most bits that matches that of state .
// If there are none , then fallback to
// the StateInfo with a state of 0 , indicating it ' ll match anything .
// Consider if we have 3 StateInfos a , b and c with states :
// SELECTED , SELECTED | ENABLED , 0
// Input Return Value
// SELECTED a
// ... |
public class DenseMatrix { /** * Creates a random { @ link DenseMatrix } of the given shape :
* { @ code rows } x { @ code columns } . */
public static DenseMatrix random ( int rows , int columns , Random random ) { } } | return Basic2DMatrix . random ( rows , columns , random ) ; |
public class HttpURLConnection { /** * Returns an input stream that reads from this open connection .
* @ return an input stream that reads from this open connection .
* @ throws IOException if an I / O error occurs while
* creating the input stream . */
public synchronized InputStream getInputStream ( ) throws I... | if ( ! connected ) { connect ( ) ; } // Nothing to return
if ( responseCode == HTTP_NOT_FOUND ) { throw new FileNotFoundException ( url . toString ( ) ) ; } int length ; if ( inputStream == null ) { return null ; } // " De - chunk " the output stream
else if ( "chunked" . equalsIgnoreCase ( getHeaderField ( "Transfer-E... |
public class HomographyDirectLinearTransform { /** * < p > Adds the 9x9 matrix constraint for each pair of conics . To avoid O ( N ^ 2 ) growth the default option only
* adds O ( N ) pairs . if only conics are used then a minimum of 3 is required . See [ 2 ] . < / p >
* inv ( C [ 1 ] ' ) * ( C [ 2 ] ' ) * H - H * i... | if ( exhaustiveConics ) { // adds an exhaustive set of linear conics
for ( int i = 0 ; i < points . size ( ) ; i ++ ) { for ( int j = i + 1 ; j < points . size ( ) ; j ++ ) { rows = addConicPairConstraints ( points . get ( i ) , points . get ( j ) , A , rows ) ; } } } else { // adds pairs and has linear time complexity... |
public class vrid { /** * Use this API to add vrid resources . */
public static base_responses add ( nitro_service client , vrid resources [ ] ) throws Exception { } } | base_responses result = null ; if ( resources != null && resources . length > 0 ) { vrid addresources [ ] = new vrid [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new vrid ( ) ; addresources [ i ] . id = resources [ i ] . id ; addresources [ i ] . priority = resources... |
public class ProxyGeneratorAdapter { /** * Ensures that the provided object is wrapped into a closure if it ' s not
* a closure .
* Do not trust IDEs , this method is used in bytecode . */
@ SuppressWarnings ( "unchecked" ) public static Closure ensureClosure ( Object o ) { } } | if ( o == null ) throw new UnsupportedOperationException ( ) ; if ( o instanceof Closure ) return ( Closure ) o ; return new ReturnValueWrappingClosure ( o ) ; |
public class XmlInputFactory { /** * Creates a { @ link XmlReader } to read the XML resource located by the specified identifier .
* On closing the created XML reader , the { @ link Reader } set as input for the XML reader will
* get closed as well .
* @ param baseUri location identifier of the XML resource
* @... | final XmlResolver res = new XmlResolver ( ) ; final InputStream is = ( InputStream ) res . resolveEntity ( null , null , baseUri , null ) ; return create ( res , is ) ; |
public class AbstractKubernetesCommand { /** * Adds command parameter to current command .
* @ param name
* @ param value
* @ return */
public T withParam ( String name , String value ) { } } | parameters . put ( name , value ) ; return self ; |
public class LoopExtensions { /** * Iterates elements and execute the procedure .
* A prefix , a separator and a suffix can be initialized with the loopInitializer lambda . */
public < T extends Object > void forEach ( final ITreeAppendable appendable , final Iterable < T > elements , final Procedure1 < ? super LoopP... | boolean _isEmpty = IterableExtensions . isEmpty ( elements ) ; if ( _isEmpty ) { return ; } LoopParams _loopParams = new LoopParams ( ) ; final LoopParams params = ObjectExtensions . < LoopParams > operator_doubleArrow ( _loopParams , loopInitializer ) ; params . appendPrefix ( appendable ) ; T _head = IterableExtensio... |
public class SQLService { /** * Converts the given string to a clob object
* @ param stringName string name to clob
* @ param sqlConnection Connection object
* @ return Clob object or NULL */
public Clob toClob ( String stringName , Connection sqlConnection ) { } } | Clob clobName = null ; try { clobName = sqlConnection . createClob ( ) ; clobName . setString ( 1 , stringName ) ; } catch ( SQLException e ) { // TODO Auto - generated catch block
logger . info ( "Unable to create clob object" ) ; e . printStackTrace ( ) ; } return clobName ; |
public class ProcessAssert { /** * Asserts the process instance with the provided id is active and in ( at lease ) an activity with the provided id .
* @ param processInstanceId
* the process instance ' s id to check for . May not be < code > null < / code >
* @ param activityId
* the activity ' s id to check f... | Validate . notNull ( processInstanceId ) ; Validate . notNull ( activityId ) ; apiCallback . debug ( LogMessage . PROCESS_15 , processInstanceId , activityId ) ; try { getProcessInstanceAssertable ( ) . processIsInActivity ( processInstanceId , activityId ) ; } catch ( final AssertionError ae ) { apiCallback . fail ( a... |
public class Vectors { /** * Returns a subview for the given { @ code Vector } with a specified offset
* and length . { @ code Vector } instances that are not instances of either
* { @ link DoubleVector } or { @ link IntegerVector } will be returned as
* instances of { @ link DoubleVector } .
* @ param vector t... | if ( vector instanceof IntegerVector ) return subview ( ( IntegerVector ) vector , offset , length ) ; else return subview ( asDouble ( vector ) , offset , length ) ; |
public class JCGLBufferUpdates { /** * Construct an update that will replace all of the data in { @ code buffer } .
* @ param buffer The buffer
* @ param < T > The precise type of buffer
* @ return An update */
public static < T extends JCGLBufferWritableType > JCGLBufferUpdateType < T > newUpdateReplacingAll ( f... | NullCheck . notNull ( buffer , "Buffer" ) ; return newUpdateReplacingRange ( buffer , buffer . byteRange ( ) ) ; |
public class FileUtils { /** * Copy file metadata into the supplied file element .
* @ param aFile A file to extract metadata from
* @ param aElement A destination element for the file metadata */
private static void copyMetadata ( final File aFile , final Element aElement ) { } } | final SimpleDateFormat formatter = new SimpleDateFormat ( DATE_FORMAT , Locale . US ) ; final StringBuilder permissions = new StringBuilder ( ) ; final Date date = new Date ( aFile . lastModified ( ) ) ; aElement . setAttribute ( FILE_PATH , aFile . getAbsolutePath ( ) ) ; aElement . setAttribute ( MODIFIED , formatter... |
public class ModelsImpl { /** * Create an entity role for an entity in the application .
* @ param appId The application ID .
* @ param versionId The version ID .
* @ param entityId The entity model ID .
* @ param createEntityRoleOptionalParameter the object representing the optional parameters to be set before... | return createEntityRoleWithServiceResponseAsync ( appId , versionId , entityId , createEntityRoleOptionalParameter ) . map ( new Func1 < ServiceResponse < UUID > , UUID > ( ) { @ Override public UUID call ( ServiceResponse < UUID > response ) { return response . body ( ) ; } } ) ; |
public class Resource { /** * Set a date value .
* @ param index date index ( 1-10)
* @ param value date value */
public void setDate ( int index , Date value ) { } } | set ( selectField ( ResourceFieldLists . CUSTOM_DATE , index ) , value ) ; |
public class PairtreeUtils { /** * Removes the supplied Pairtree prefix from the supplied ID .
* @ param aPrefix A Pairtree prefix
* @ param aID An ID
* @ return The ID without the Pairtree prefix prepended to it
* @ throws PairtreeRuntimeException If the supplied prefix or ID is null */
public static String re... | Objects . requireNonNull ( aPrefix , LOGGER . getMessage ( MessageCodes . PT_006 ) ) ; Objects . requireNonNull ( aID , LOGGER . getMessage ( MessageCodes . PT_004 ) ) ; final String id ; if ( aID . indexOf ( aPrefix ) == 0 ) { id = aID . substring ( aPrefix . length ( ) ) ; } else { id = aID ; } return id ; |
public class ADrawItemEntry { /** * < p > Setter for itsDate . < / p >
* @ param pItsDate reference */
public final void setItsDate ( final Date pItsDate ) { } } | if ( pItsDate == null ) { this . itsDate = null ; } else { this . itsDate = new Date ( pItsDate . getTime ( ) ) ; } |
public class AbstractGenericMojo { /** * Utility method to use the clean plugin in the cleanup methods
* @ param elements Elements to configure the clean plugin
* @ throws MojoExecutionException Throws when error occurred in the clean plugin */
protected void useCleanPlugin ( Element ... elements ) throws MojoExecu... | List < Element > tempElems = new ArrayList < > ( Arrays . asList ( elements ) ) ; tempElems . add ( new Element ( "excludeDefaultDirectories" , "true" ) ) ; // Configure the Maven Clean Plugin to clean working files
executeMojo ( plugin ( groupId ( "org.apache.maven.plugins" ) , artifactId ( "maven-clean-plugin" ) , ve... |
public class DerInputBuffer { /** * Returns the Generalized Time value that takes up the specified
* number of bytes in this buffer .
* @ param len the number of bytes to use */
public Date getGeneralizedTime ( int len ) throws IOException { } } | if ( len > available ( ) ) throw new IOException ( "short read of DER Generalized Time" ) ; if ( len < 13 || len > 23 ) throw new IOException ( "DER Generalized Time length error" ) ; return getTime ( len , true ) ; |
public class Repository { /** * < p > removeRequirement . < / p >
* @ param requirement a { @ link com . greenpepper . server . domain . Requirement } object .
* @ throws com . greenpepper . server . GreenPepperServerException if any . */
public void removeRequirement ( Requirement requirement ) throws GreenPepperS... | if ( ! requirements . contains ( requirement ) ) throw new GreenPepperServerException ( GreenPepperServerErrorKey . REQUIREMENT_NOT_FOUND , "Requirement not found" ) ; requirements . remove ( requirement ) ; requirement . setRepository ( null ) ; |
public class ApplicationManifestUtils { /** * Write { @ link ApplicationManifest } s to an { @ link OutputStream }
* @ param out the { @ link OutputStream } to write to
* @ param applicationManifests the manifests to write */
public static void write ( OutputStream out , List < ApplicationManifest > applicationMani... | try ( Writer writer = new OutputStreamWriter ( out ) ) { YAML . dump ( Collections . singletonMap ( "applications" , applicationManifests . stream ( ) . map ( ApplicationManifestUtils :: toYaml ) . collect ( Collectors . toList ( ) ) ) , writer ) ; } catch ( IOException e ) { throw Exceptions . propagate ( e ) ; } |
public class StringHelper { /** * Replaces all the from tokens in the given input string .
* This implementation is not recursive , not does it check for tokens in the replacement string .
* @ param input the input string
* @ param from the from string , must < b > not < / b > be < tt > null < / tt > or empty
*... | if ( input == null || input . isEmpty ( ) ) { return input ; } if ( from == null ) { throw new IllegalArgumentException ( "from cannot be null" ) ; } if ( to == null ) { // to can be empty , so only check for null
throw new IllegalArgumentException ( "to cannot be null" ) ; } // fast check if there is any from at all
i... |
public class PageSourceImpl { /** * return file object , based on physical path and realpath
* @ return file Object */
@ Override public Resource getPhyscalFile ( ) { } } | if ( physcalSource == null ) { if ( ! mapping . hasPhysical ( ) ) { return null ; } Resource tmp = mapping . getPhysical ( ) . getRealResource ( relPath ) ; physcalSource = ResourceUtil . toExactResource ( tmp ) ; // fix if the case not match
if ( ! tmp . getAbsolutePath ( ) . equals ( physcalSource . getAbsolutePath (... |
public class AbstractTTTLearner { /** * Chooses a block root , and finalizes the corresponding discriminator .
* @ return { @ code true } if a splittable block root was found , { @ code false } otherwise . */
protected boolean finalizeAny ( ) { } } | GlobalSplitter < I , D > splitter = findSplitterGlobal ( ) ; if ( splitter != null ) { finalizeDiscriminator ( splitter . blockRoot , splitter . localSplitter ) ; return true ; } return false ; |
public class Stapler { /** * Try to dispatch the request against the given node , and if it fails , report an error to the client . */
void invoke ( RequestImpl req , ResponseImpl rsp , Object node ) throws IOException , ServletException { } } | if ( node == null ) { // node is null
if ( ! Dispatcher . isTraceEnabled ( req ) ) { rsp . sendError ( SC_NOT_FOUND ) ; } else { // show error page
rsp . setStatus ( SC_NOT_FOUND ) ; rsp . setContentType ( "text/html;charset=UTF-8" ) ; PrintWriter w = rsp . getWriter ( ) ; w . println ( "<html><body>" ) ; w . println (... |
public class RecordReaderDataSetIterator { /** * Load a multiple examples to a DataSet , using the provided RecordMetaData instances .
* @ param list List of RecordMetaData instances to load from . Should have been produced by the record reader provided
* to the RecordReaderDataSetIterator constructor
* @ return ... | if ( underlying == null ) { Record r = recordReader . loadFromMetaData ( list . get ( 0 ) ) ; initializeUnderlying ( r ) ; } // Convert back to composable :
List < RecordMetaData > l = new ArrayList < > ( list . size ( ) ) ; for ( RecordMetaData m : list ) { l . add ( new RecordMetaDataComposableMap ( Collections . sin... |
public class ListVolumeRecoveryPointsResult { /** * An array of < a > VolumeRecoveryPointInfo < / a > objects .
* @ return An array of < a > VolumeRecoveryPointInfo < / a > objects . */
public java . util . List < VolumeRecoveryPointInfo > getVolumeRecoveryPointInfos ( ) { } } | if ( volumeRecoveryPointInfos == null ) { volumeRecoveryPointInfos = new com . amazonaws . internal . SdkInternalList < VolumeRecoveryPointInfo > ( ) ; } return volumeRecoveryPointInfos ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.