signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class Observation { /** * Returns the number of occurrences of the given value .
* @ param value The value for which the number of occurrences is desired
* @ return The number of occurrences of the given value
* @ throws IllegalArgumentException if there are no occurrences of < code > value < / code > */
p... | if ( ! insertStat . containsKey ( value ) ) throw new IllegalArgumentException ( "No occurrences of value \"" + value + "\"" ) ; return insertStat . get ( value ) ; |
public class ListJobsByPipelineRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( ListJobsByPipelineRequest listJobsByPipelineRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( listJobsByPipelineRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( listJobsByPipelineRequest . getPipelineId ( ) , PIPELINEID_BINDING ) ; protocolMarshaller . marshall ( listJobsByPipelineRequest . getAscending ( ) , ASCENDING... |
public class MariaDbStatement { /** * Releases this < code > Statement < / code > object ' s database and JDBC resources immediately instead
* of waiting for this to happen when it is automatically closed . It is generally good practice to
* release resources as soon as you are finished with them to avoid tying up ... | lock . lock ( ) ; try { closed = true ; if ( results != null ) { if ( results . getFetchSize ( ) != 0 ) { skipMoreResults ( ) ; } results . close ( ) ; } protocol = null ; if ( connection == null || connection . pooledConnection == null || connection . pooledConnection . noStmtEventListeners ( ) ) { return ; } connecti... |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcCondenserType ( ) { } } | if ( ifcCondenserTypeEClass == null ) { ifcCondenserTypeEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 118 ) ; } return ifcCondenserTypeEClass ; |
public class ProtoClient { /** * TODO : Document this somewhere proper . */
private byte [ ] encode ( Message msg , String apiVersion , String kind ) { } } | // It is unfortunate that we have to include apiVersion and kind ,
// since we should be able to extract it from the Message , but
// for now at least , those fields are missing from the proto - buffer .
Unknown u = Unknown . newBuilder ( ) . setTypeMeta ( TypeMeta . newBuilder ( ) . setApiVersion ( apiVersion ) . setK... |
public class RemoteAdministrationThread { /** * Ask the thread to stop */
public void pleaseStop ( ) { } } | if ( stopRequired ) return ; stopRequired = true ; try { if ( receiver != null ) receiver . close ( ) ; } catch ( JMSException e ) { ErrorTools . log ( e , log ) ; } |
public class DefaultPlaceholderId { /** * Creates a new dynamic id based on the factories associated with this id
* and whatever additions are made by the specified consumer .
* @ param consumer
* lambda that can update the sorter with additional tag factories
* @ return
* the newly created id */
private Defa... | FactorySorterAndDeduplicator sorter = new FactorySorterAndDeduplicator ( tagFactories ) ; consumer . accept ( sorter ) ; return new DefaultPlaceholderId ( name , sorter . asCollection ( ) , registry ) ; |
public class ArrayUtil { /** * sum of all values of a array , only work when all values are numeric
* @ param array Array
* @ return sum of all values
* @ throws ExpressionException */
public static double sum ( Array array ) throws ExpressionException { } } | if ( array . getDimension ( ) > 1 ) throw new ExpressionException ( "can only get sum/avg from 1 dimensional arrays" ) ; double rtn = 0 ; int len = array . size ( ) ; // try {
for ( int i = 1 ; i <= len ; i ++ ) { rtn += _toDoubleValue ( array , i ) ; } /* * } catch ( PageException e ) { throw new
* ExpressionExcepti... |
public class MultiChoiceListPreference { /** * Sets the current values of the preference . By setting values , they will be persisted .
* @ param values
* A set , which contains the values , which should be set , as an instance of the type
* { @ link Set } */
public final void setValues ( @ Nullable final Set < S... | if ( values != null && ! values . equals ( this . values ) ) { this . values = values ; persistSet ( this . values ) ; notifyChanged ( ) ; } |
public class ParameterUtil { /** * Fetches the supplied parameter from the request . If the parameter does not exist ,
* < code > defval < / code > is returned . */
public static String getParameter ( HttpServletRequest req , String name , String defval ) { } } | String value = req . getParameter ( name ) ; return StringUtil . isBlank ( value ) ? defval : value . trim ( ) ; |
public class DirectoryScanner { /** * Add a pattern to the default excludes unless it is already a
* default exclude .
* @ param s A string to add as an exclude pattern .
* @ return < code > true < / code > if the string was added ;
* < code > false < / code > if it already existed .
* @ since Ant 1.6 */
publ... | if ( defaultExcludes . indexOf ( s ) == - 1 ) { defaultExcludes . add ( s ) ; return true ; } return false ; |
public class ServerContentHelper { /** * Builds a list of server content and publishes a service to let the launcher obtain them . .
* < em > ONLY < / em > takes effect if the Launcher has set the magic server content property */
void processServerContentRequest ( ) { } } | File installRoot = new File ( locationService . resolveString ( "${wlp.install.dir}" ) ) ; final Set < String > absPathsForLibertyContent = new HashSet < String > ( ) ; final Map < String , List < String > > specificPlatformPathsByPlatform = new HashMap < String , List < String > > ( ) ; Set < String > discoveredFeatur... |
public class AbstractProjectWriter { /** * { @ inheritDoc } */
@ Override public void write ( ProjectFile projectFile , String fileName ) throws IOException { } } | FileOutputStream fos = new FileOutputStream ( fileName ) ; write ( projectFile , fos ) ; fos . flush ( ) ; fos . close ( ) ; |
public class ContextUtils { /** * < p > Takes the generic { @ link Object } of a context and discovers
* the actual { @ link Context } instance . It takes an additional set
* of { @ link Class } and limits context discovery to those .
* @ param context
* the { @ link Object } whose { @ link Context } instance i... | Set < Class < ? > > contextSubset = ( subset == null || subset . length == 0 ) ? contexts . keySet ( ) : new HashSet < Class < ? > > ( Arrays . asList ( subset ) ) ; Set < Class < ? > > contextClasses = contexts . keySet ( ) ; for ( Class < ? > contextClass : contextClasses ) { if ( ! contextSubset . contains ( context... |
public class CommerceOrderPaymentLocalServiceBaseImpl { /** * Returns the number of rows matching the dynamic query .
* @ param dynamicQuery the dynamic query
* @ param projection the projection to apply to the query
* @ return the number of rows matching the dynamic query */
@ Override public long dynamicQueryCo... | return commerceOrderPaymentPersistence . countWithDynamicQuery ( dynamicQuery , projection ) ; |
public class WSJdbcTracer { /** * Returns the underlying object .
* @ param obj an object that might be a proxy .
* @ return the underlying object , or , if not a proxy , then the original object . */
public static final Object getImpl ( Object obj ) { } } | InvocationHandler handler ; return Proxy . isProxyClass ( obj . getClass ( ) ) && ( handler = Proxy . getInvocationHandler ( obj ) ) instanceof WSJdbcTracer ? ( ( WSJdbcTracer ) handler ) . impl : obj ; |
public class CredentialsMarshaller { /** * Marshall the given parameter object . */
public void marshall ( Credentials credentials , ProtocolMarshaller protocolMarshaller ) { } } | if ( credentials == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( credentials . getAccessKeyId ( ) , ACCESSKEYID_BINDING ) ; protocolMarshaller . marshall ( credentials . getSecretKey ( ) , SECRETKEY_BINDING ) ; protocolMarshaller . marsha... |
public class DaoUnit { /** * judge whether we need to begin the transaction .
* If there are more than one non - query sql actions in this dao unit , a new transaction will be begun .
* if a transaction is already begun , a nested transaction will be begun .
* Else no transaction will be begun .
* @ return true... | int count = 0 ; for ( SqlAction sqlAction : sqlActions ) { if ( ! ( sqlAction instanceof ISelect ) ) { count ++ ; } } return count > 1 || transaction . isBegun ( ) ; |
public class StringPath { /** * Method to construct the not equals expression for string
* @ param value the string value
* @ return Expression */
public Expression < String > neq ( String value ) { } } | String valueString = "'" + value + "'" ; return new Expression < String > ( this , Operation . neq , valueString ) ; |
public class BugsnagAppender { /** * Checks to see if a stack trace came from the Bugsnag library
* ( prevent possible infinite reporting loops )
* @ param throwable the exception to check
* @ return true if the stacktrace contains a frame from the Bugsnag library */
private boolean detectLogFromBugsnag ( Throwab... | // Check all places that LOGGER is called with an exception in the Bugsnag library
for ( StackTraceElement element : throwable . getStackTrace ( ) ) { for ( String excludedClass : EXCLUDED_CLASSES ) { if ( element . getClassName ( ) . startsWith ( excludedClass ) ) { return true ; } } } return false ; |
public class WebDriverTool { /** * Asserts that the element is not covered by any other element .
* @ param by
* the { @ link By } used to locate the element .
* @ throws WebElementException
* if the element cannot be located or moved into the viewport .
* @ throws AssertionError
* if the element is covered... | if ( ! isTopmostElementCheckApplicable ( by ) ) { LOGGER . warn ( "The element identified by '{}' is not a leaf node in the " + "document tree. Thus, it cannot be checked if the element is topmost. " + "The topmost element check cannot be performed and is skipped." , by ) ; return ; } LOGGER . info ( "Checking whether ... |
public class SipContextConfig { /** * Adjust docBase . */
protected void fixDocBase ( ) throws IOException { } } | Host host = ( Host ) context . getParent ( ) ; File appBase = host . getAppBaseFile ( ) ; String docBase = context . getDocBase ( ) ; if ( docBase == null ) { // Trying to guess the docBase according to the path
String path = context . getPath ( ) ; if ( path == null ) { return ; } ContextName cn = new ContextName ( pa... |
public class AppServiceEnvironmentsInner { /** * Get all worker pools of an App Service Environment .
* Get all worker pools of an App Service Environment .
* @ param resourceGroupName Name of the resource group to which the resource belongs .
* @ param name Name of the App Service Environment .
* @ param servi... | return AzureServiceFuture . fromPageResponse ( listWorkerPoolsSinglePageAsync ( resourceGroupName , name ) , new Func1 < String , Observable < ServiceResponse < Page < WorkerPoolResourceInner > > > > ( ) { @ Override public Observable < ServiceResponse < Page < WorkerPoolResourceInner > > > call ( String nextPageLink )... |
public class AbstractPathFinder { /** * Concatenate arrays { @ code nodes1 } and { @ code nodes2 } .
* @ param nodes1 KAM nodes
* @ param nodes2 KAM nodes
* @ return KamNode [ ] */
KamNode [ ] concat ( KamNode [ ] nodes1 , KamNode [ ] nodes2 ) { } } | KamNode [ ] ret = new KamNode [ nodes1 . length + nodes2 . length ] ; arraycopy ( nodes1 , 0 , ret , 0 , nodes1 . length ) ; arraycopy ( nodes2 , 0 , ret , nodes1 . length , nodes2 . length ) ; return ret ; |
public class MappingServiceController { /** * Creates the integrated entity for a mapping project ' s target
* @ param mappingProjectId ID of the mapping project
* @ param targetEntityTypeId ID of the target entity to create or update
* @ param label label of the target entity to create
* @ param packageId ID o... | if ( label != null && label . trim ( ) . isEmpty ( ) ) { label = null ; } String mappingJobExecutionHref = submitMappingJob ( mappingProjectId , targetEntityTypeId , addSourceAttribute , packageId , label ) . getBody ( ) ; return format ( "redirect:{0}" , jobsController . createJobExecutionViewHref ( mappingJobExecutio... |
public class ReflectionUtil { /** * Create an MetricCollector from its fully qualified class name .
* The class passed in by name must be assignable to MetricCollector .
* See the secor . monitoring . metrics . collector . class config option .
* @ param className The class name of a subclass of MetricCollector
... | Class < ? > clazz = Class . forName ( className ) ; if ( ! MetricCollector . class . isAssignableFrom ( clazz ) ) { throw new IllegalArgumentException ( String . format ( "The class '%s' is not assignable to '%s'." , className , MetricCollector . class . getName ( ) ) ) ; } return ( MetricCollector ) clazz . newInstanc... |
public class CreateMapProcessor { /** * If requested , adjust the bounds to the nearest scale and the map size .
* @ param mapValues Map parameters .
* @ param paintArea The size of the painting area .
* @ param bounds The map bounds .
* @ param dpi the DPI . */
public static MapBounds adjustBoundsToScaleAndMap... | MapBounds newBounds = bounds ; if ( mapValues . isUseNearestScale ( ) ) { newBounds = newBounds . adjustBoundsToNearestScale ( mapValues . getZoomLevels ( ) , mapValues . getZoomSnapTolerance ( ) , mapValues . getZoomLevelSnapStrategy ( ) , mapValues . getZoomSnapGeodetic ( ) , paintArea , dpi ) ; } newBounds = new BBo... |
public class Node { /** * Add ' child ' after ' node ' . */
public void addChildAfter ( Node newChild , Node node ) { } } | if ( newChild . next != null ) throw new RuntimeException ( "newChild had siblings in addChildAfter" ) ; newChild . next = node . next ; node . next = newChild ; if ( last == node ) last = newChild ; |
public class UserSearchManager { /** * Returns the form to fill out to perform a search .
* @ param searchService the search service to query .
* @ return the form to fill out to perform a search .
* @ throws XMPPErrorException
* @ throws NoResponseException
* @ throws NotConnectedException
* @ throws Inter... | return userSearch . getSearchForm ( con , searchService ) ; |
public class FullscreenVideoView { /** * VideoView method ( setVideoPath ) */
public void setVideoPath ( String path ) throws IOException , IllegalStateException , SecurityException , IllegalArgumentException , RuntimeException { } } | Log . d ( TAG , "setVideoPath" ) ; if ( mediaPlayer != null ) { if ( currentState != State . IDLE ) throw new IllegalStateException ( "FullscreenVideoView Invalid State: " + currentState ) ; this . videoPath = path ; this . videoUri = null ; this . mediaPlayer . setDataSource ( path ) ; this . currentState = State . IN... |
public class Node { /** * 函数具体逻辑
* @ param scope 上下文
* @ return 计算好的节点 */
@ Override public XValue call ( Scope scope ) { } } | Elements context = new Elements ( ) ; for ( Element el : scope . context ( ) ) { context . addAll ( el . children ( ) ) ; String txt = el . ownText ( ) ; if ( StringUtils . isNotBlank ( txt ) ) { Element et = new Element ( "" ) ; et . appendText ( txt ) ; context . add ( et ) ; } } return XValue . create ( context ) ; |
public class FieldInfo { /** * Maximum string length .
* @ return The max field length . */
public int getMaxLength ( ) { } } | if ( m_iMaxLength == Constants . DEFAULT_FIELD_LENGTH ) { m_iMaxLength = 20 ; if ( m_classData == Short . class ) m_iMaxLength = 4 ; else if ( m_classData == Integer . class ) m_iMaxLength = 8 ; else if ( m_classData == Float . class ) m_iMaxLength = 8 ; else if ( m_classData == Double . class ) m_iMaxLength = 15 ; els... |
public class IntegralImageOps { /** * Converts a regular image into an integral image .
* @ param input Regular image . Not modified .
* @ param transformed Integral image . If null a new image will be created . Modified .
* @ return Integral image . */
public static GrayS32 transform ( GrayU8 input , GrayS32 tra... | transformed = InputSanityCheck . checkDeclare ( input , transformed , GrayS32 . class ) ; ImplIntegralImageOps . transform ( input , transformed ) ; return transformed ; |
public class TextBuilder { /** * Create a link in the current paragraph .
* @ param text the text
* @ param ref the destination
* @ return this for fluent style */
public TextBuilder link ( final String text , final String ref ) { } } | this . curParagraphBuilder . link ( text , ref ) ; return this ; |
public class StatelessBeanO { /** * Destroy this < code > BeanO < / code > instance . Note , the discard method
* must be called instead of this method if bean needs to be destroyed
* as a result of a unchecked or system exception . The discard method
* ensures that no lifecycle callbacks will occur on the bean i... | final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) // d367572.4
{ Tr . entry ( tc , "destroy" ) ; } if ( state == DESTROYED ) { return ; } // For Stateless , ' destroy ' is where the bean is removed and destroyed .
// Remove time should include calling any l... |
public class JsonModelCoder { /** * Attempts to parse the given data as { @ link List } of objects .
* Accepts { @ link OnJsonObjectAddListener } ; allows you to peek various intermittent instances as parsing goes .
* @ param stream JSON - formatted data
* @ param listener { @ link OnJsonObjectAddListener } to no... | JsonPullParser parser = JsonPullParser . newParser ( stream ) ; return getList ( parser , listener ) ; |
public class VersionUtilImpl { /** * @ see # createFormatter ( String , boolean )
* @ param scanner is the { @ link CharSequenceScanner } .
* @ param formatPattern is the format pattern .
* @ param infixBuffer is a { @ link StringBuilder } containing the current infix .
* @ param status is the { @ link FormatPa... | char c = scanner . next ( ) ; if ( c == 'V' ) { char segment = scanner . forceNext ( ) ; if ( segment == '\0' ) { throw new IllegalStateException ( formatPattern + "<separator>" ) ; } String segmentSeparator = Character . toString ( segment ) ; int minimumSegmentCount = 0 ; int maximumSegmentCount = Integer . MAX_VALUE... |
public class NonVoltDBBackend { /** * Returns all primary key column names for the specified table , in the
* order defined in the DDL . */
protected List < String > getPrimaryKeys ( String tableName ) { } } | List < String > pkCols = new ArrayList < String > ( ) ; try { // Lower - case table names are required for PostgreSQL ; we might need to
// alter this if we use another comparison database ( besides HSQL ) someday
ResultSet rs = dbconn . getMetaData ( ) . getPrimaryKeys ( null , null , tableName . toLowerCase ( ) ) ; w... |
public class MovingAverage { /** * * * * * * Methods * * * * * */
public void addData ( final Data DATA ) { } } | sum += DATA . getValue ( ) ; window . add ( DATA ) ; if ( window . size ( ) > numberPeriod ) { sum -= window . remove ( ) . getValue ( ) ; } |
public class Step { /** * Display message ( list of elements ) at the beginning of method in logs .
* @ param methodName
* is name of java method
* @ param concernedElements
* is a list of concerned elements ( example : authorized activities ) */
protected void displayConcernedElementsAtTheBeginningOfMethod ( S... | logger . debug ( "{}: with {} concernedElements" , methodName , concernedElements . size ( ) ) ; int i = 0 ; for ( final String element : concernedElements ) { i ++ ; logger . debug ( " element N°{}={}" , i , element ) ; } |
public class MapEntryLite { /** * Serializes the provided key and value as though they were wrapped by a { @ link MapEntryLite } to the output stream .
* This helper method avoids allocation of a { @ link MapEntryLite } built with a key and value and is called from
* generated code directly .
* @ param output the... | output . writeTag ( fieldNumber , WireFormat . WIRETYPE_LENGTH_DELIMITED ) ; output . writeUInt32NoTag ( computeSerializedSize ( metadata , key , value ) ) ; writeTo ( output , metadata , key , value ) ; |
public class EncodingUtils { /** * Generates an appsecret _ proof for facebook .
* See https : / / developers . facebook . com / docs / graph - api / securing - requests for more info
* @ param appSecret
* The facebook application secret
* @ param accessToken
* The facebook access token
* @ return A Hex enc... | try { byte [ ] key = appSecret . getBytes ( StandardCharsets . UTF_8 ) ; SecretKeySpec signingKey = new SecretKeySpec ( key , "HmacSHA256" ) ; Mac mac = Mac . getInstance ( "HmacSHA256" ) ; mac . init ( signingKey ) ; byte [ ] raw = mac . doFinal ( accessToken . getBytes ( ) ) ; byte [ ] hex = encodeHex ( raw ) ; retur... |
public class ClassLoaders { /** * Find the classpath that contains the given resource . */
private static URL getClassPathURL ( String resourceName , URL resourceURL ) { } } | try { if ( "file" . equals ( resourceURL . getProtocol ( ) ) ) { String path = resourceURL . getFile ( ) ; // Compute the directory container the class .
int endIdx = path . length ( ) - resourceName . length ( ) ; if ( endIdx > 1 ) { // If it is not the root directory , return the end index to remove the trailing ' / ... |
public class HexDecoder { /** * Encodes given sequence of nibbles into a sequence of octets .
* @ param input the nibbles to decode .
* @ return the decoded octets . */
public static byte [ ] decodeMultiple ( final byte [ ] input ) { } } | if ( input == null ) { throw new NullPointerException ( "input" ) ; } final byte [ ] output = new byte [ input . length >> 1 ] ; decodeMultiple ( input , 0 , output , 0 , output . length ) ; return output ; |
public class FessMessages { /** * Add the created action message for the key ' success . crud _ delete _ crud _ table ' with parameters .
* < pre >
* message : Deleted data .
* < / pre >
* @ param property The property name for the message . ( NotNull )
* @ return this . ( NotNull ) */
public FessMessages add... | assertPropertyNotNull ( property ) ; add ( property , new UserMessage ( SUCCESS_crud_delete_crud_table ) ) ; return this ; |
public class AeronNDArrayResponder { /** * Launch a background thread
* that subscribes to the aeron context
* @ throws Exception */
public void launch ( ) throws Exception { } } | if ( init . get ( ) ) return ; // Register a SIGINT handler for graceful shutdown .
if ( ! init . get ( ) ) init ( ) ; log . info ( "Subscribing to " + channel + " on stream Id " + streamId ) ; // Register a SIGINT handler for graceful shutdown .
SigInt . register ( ( ) -> running . set ( false ) ) ; // Create an Aeron... |
public class WhitelistingApi { /** * Get the status of a uploaded CSV file .
* Get the status of a uploaded CSV file .
* @ param dtid Device type id related to the uploaded CSV file . ( required )
* @ param uploadId Upload id related to the uploaded CSV file . ( required )
* @ return ApiResponse & lt ; UploadSt... | com . squareup . okhttp . Call call = getUploadStatusValidateBeforeCall ( dtid , uploadId , null , null ) ; Type localVarReturnType = new TypeToken < UploadStatusEnvelope > ( ) { } . getType ( ) ; return apiClient . execute ( call , localVarReturnType ) ; |
public class Instant { /** * Returns a copy of this instant with the specified duration added .
* This instance is immutable and unaffected by this method call .
* @ param secondsToAdd the seconds to add , positive or negative
* @ param nanosToAdd the nanos to add , positive or negative
* @ return an { @ code I... | if ( ( secondsToAdd | nanosToAdd ) == 0 ) { return this ; } long epochSec = Math . addExact ( seconds , secondsToAdd ) ; epochSec = Math . addExact ( epochSec , nanosToAdd / NANOS_PER_SECOND ) ; nanosToAdd = nanosToAdd % NANOS_PER_SECOND ; long nanoAdjustment = nanos + nanosToAdd ; // safe int + NANOS _ PER _ SECOND
re... |
public class DeltaFIFO { /** * Pop deltas .
* @ param func the func
* @ return the deltas
* @ throws Exception the exception */
public Deque < MutablePair < DeltaType , Object > > pop ( Consumer < Deque < MutablePair < DeltaType , Object > > > func ) throws InterruptedException { } } | lock . writeLock ( ) . lock ( ) ; try { while ( true ) { while ( queue . isEmpty ( ) ) { notEmpty . await ( ) ; } // there should have data now
String id = this . queue . removeFirst ( ) ; if ( this . initialPopulationCount > 0 ) { this . initialPopulationCount -- ; } if ( ! this . items . containsKey ( id ) ) { // Ite... |
public class AccountsInner { /** * Lists the Data Lake Store accounts within a specific resource group . The response includes a link to the next page of results , if any .
* @ param resourceGroupName The name of the Azure resource group .
* @ throws IllegalArgumentException thrown if parameters fail the validation... | return listByResourceGroupWithServiceResponseAsync ( resourceGroupName ) . map ( new Func1 < ServiceResponse < Page < DataLakeStoreAccountBasicInner > > , Page < DataLakeStoreAccountBasicInner > > ( ) { @ Override public Page < DataLakeStoreAccountBasicInner > call ( ServiceResponse < Page < DataLakeStoreAccountBasicIn... |
public class HyperParameterTuningJobSummaryMarshaller { /** * Marshall the given parameter object . */
public void marshall ( HyperParameterTuningJobSummary hyperParameterTuningJobSummary , ProtocolMarshaller protocolMarshaller ) { } } | if ( hyperParameterTuningJobSummary == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( hyperParameterTuningJobSummary . getHyperParameterTuningJobName ( ) , HYPERPARAMETERTUNINGJOBNAME_BINDING ) ; protocolMarshaller . marshall ( hyperParamet... |
public class AreaSizeConversions { /** * Convert an area size .
* @ param a The area size
* @ param < S > A phantom type parameter indicating the coordinate space of the
* area size
* @ return An area size */
public static < S > PAreaSizeBD < S > toPAreaSizeBD ( final AreaSizeBD a ) { } } | Objects . requireNonNull ( a , "area size" ) ; return PAreaSizeBD . of ( a . sizeX ( ) , a . sizeY ( ) ) ; |
public class TexturedButtonPainter { /** * { @ inheritDoc } */
public Paint getCommonInteriorPaint ( Shape s , CommonControlState type ) { } } | TwoColors colors = getTexturedButtonInteriorColors ( type ) ; return createVerticalGradient ( s , new TwoColors ( colors . top , colors . bottom ) ) ; |
public class NodeManager { /** * Find allocation for a resource type .
* @ param type The resource type .
* @ return The allocation . */
public int getAllocatedCpuForType ( ResourceType type ) { } } | int total = 0 ; for ( ClusterNode node : nameToNode . values ( ) ) { synchronized ( node ) { if ( node . deleted ) { continue ; } total += node . getAllocatedCpuForType ( type ) ; } } return total ; |
public class Font { /** * Gets the familyname as a String .
* @ return the familyname */
public String getFamilyname ( ) { } } | String tmp = "unknown" ; switch ( getFamily ( ) ) { case Font . COURIER : return FontFactory . COURIER ; case Font . HELVETICA : return FontFactory . HELVETICA ; case Font . TIMES_ROMAN : return FontFactory . TIMES_ROMAN ; case Font . SYMBOL : return FontFactory . SYMBOL ; case Font . ZAPFDINGBATS : return FontFactory ... |
public class MiniJPEContentHandler { /** * { @ inheritDoc } */
public Object addFeatureToCollection ( Object featureCollection , Object feature ) { } } | JTSFeature feat = ( JTSFeature ) feature ; try { if ( feat . getGeometry ( ) . getGeometry ( ) . getCoordinate ( ) . x == 0 && feat . getGeometry ( ) . getGeometry ( ) . getCoordinate ( ) . y == 0 ) { // return featureCollection ;
} } catch ( BaseException e ) { e . printStackTrace ( ) ; return featureCollection ; } ( ... |
public class ConsumerLogMessages { /** * Logs the status of the consumer .
* @ param logger
* reference to the logger
* @ param startTime
* start time
* @ param sleepingTime
* time the consumer has slept
* @ param workingTime
* time the consumer was working */
public static void logStatus ( final Logger... | logger . logMessage ( Level . DEBUG , "Consumer-Status-Report [" + Time . toClock ( System . currentTimeMillis ( ) - startTime ) + "]" + "\tEFFICIENCY\t " + MathUtilities . percentPlus ( workingTime , sleepingTime ) + "\tWORK [" + Time . toClock ( workingTime ) + "]" + "\tSLEEP [" + Time . toClock ( sleepingTime ) + "... |
public class DFACaches { /** * Creates a prefix - closed cache oracle for a DFA learning setup , using a tree for internal cache organization .
* @ param alphabet
* the alphabet containing the symbols of possible queries
* @ param mqOracle
* the oracle to delegate queries to , in case of a cache - miss .
* @ ... | return DFACacheOracle . createTreePCCacheOracle ( alphabet , mqOracle ) ; |
public class QuickDrawContext { /** * Drawing Ovals : */
private static Ellipse2D . Double toOval ( final Rectangle2D pRectangle ) { } } | Ellipse2D . Double ellipse = new Ellipse2D . Double ( ) ; ellipse . setFrame ( pRectangle ) ; return ellipse ; |
public class Analysis { /** * Get the number of additional burn - in runs that will be performed for the search with the given ID .
* If no specific number of burn - in runs has been set for this search using { @ link # setNumBurnIn ( String , int ) } ,
* the global value obtained from { @ link # getNumBurnIn ( ) }... | if ( ! searches . containsKey ( searchID ) ) { throw new UnknownIDException ( "No search with ID " + searchID + " has been added." ) ; } return searchNumBurnIn . getOrDefault ( searchID , getNumBurnIn ( ) ) ; |
public class EntityJsonParser { /** * / * package */
IEntityJsonSchemaContext validate ( URL schemaUrl , Object instanceSource , Reader in ) throws SchemaValidationException , InvalidInstanceException , NoSchemaException , InvalidSchemaException { } } | IEntityJsonContext context = EntityJsonContext . newInstance ( ) ; return validate ( context . withInstance ( instanceSource , getInstanceJsonNode ( context , in ) ) . withSchema ( schemaUrl , getSchemaJsonNode ( context , schemaUrl ) ) ) ; |
public class SearchParamExtractorDstu2 { /** * ( non - Javadoc )
* @ see ca . uhn . fhir . jpa . dao . ISearchParamExtractor # extractSearchParamNumber ( ca . uhn . fhir . jpa . entity . ResourceTable ,
* ca . uhn . fhir . model . api . IResource ) */
@ Override public HashSet < ResourceIndexedSearchParamNumber > e... | HashSet < ResourceIndexedSearchParamNumber > retVal = new HashSet < ResourceIndexedSearchParamNumber > ( ) ; Collection < RuntimeSearchParam > searchParams = getSearchParams ( theResource ) ; for ( RuntimeSearchParam nextSpDef : searchParams ) { if ( nextSpDef . getParamType ( ) != RestSearchParameterTypeEnum . NUMBER ... |
public class PropertiesEscape { /** * Perform a Java Properties Value level 2 ( basic set and all non - ASCII chars ) < strong > escape < / strong > operation
* on a < tt > String < / tt > input , writing results to a < tt > Writer < / tt > .
* < em > Level 2 < / em > means this method will escape :
* < ul >
* ... | escapePropertiesValue ( text , writer , PropertiesValueEscapeLevel . LEVEL_2_ALL_NON_ASCII_PLUS_BASIC_ESCAPE_SET ) ; |
public class Gauge { /** * Sets the sections to the given list of Section objects . The
* sections will be used to colorize areas with a special
* meaning such as the red area in a rpm gauge .
* Areas in the Medusa library usually are more
* eye - catching than Sections .
* @ param AREAS */
public void setAre... | areas . setAll ( AREAS ) ; Collections . sort ( areas , new SectionComparator ( ) ) ; fireUpdateEvent ( SECTION_EVENT ) ; |
public class ExcelUtils { /** * 读取Excel操作基于注解映射成绑定的java对象
* @ param excelPath 待导出Excel的路径
* @ param clazz 待绑定的类 ( 绑定属性注解 { @ link com . github . crab2died . annotation . ExcelField } )
* @ param offsetLine Excel表头行 ( 默认是0)
* @ param limitLine 最大读取行数 ( 默认表尾 )
* @ param sheetIndex Sheet索引 ( 默认0)
* @ param < T... | try ( Workbook workbook = WorkbookFactory . create ( new FileInputStream ( new File ( excelPath ) ) ) ) { return readExcel2ObjectsHandler ( workbook , clazz , offsetLine , limitLine , sheetIndex ) ; } |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcEquipmentStandard ( ) { } } | if ( ifcEquipmentStandardEClass == null ) { ifcEquipmentStandardEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 210 ) ; } return ifcEquipmentStandardEClass ; |
public class AbstractItem { /** * Request that the receiver prints its xml representation
* ( recursively ) onto the given writer ) .
* @ param writer
* @ throws IOException
* @ throws NotInMessageStore */
public final void xmlRequestWriteOn ( FormattedWriter writer ) throws IOException , NotInMessageStore { } ... | Membership membership = _getMembership ( ) ; if ( null == membership ) { throw new NotInMessageStore ( ) ; } if ( null != membership ) { membership . requestXmlWriteOn ( writer ) ; writer . flush ( ) ; } |
public class Parsys { /** * Checks if the given paragraph is valid .
* @ param resource Resource
* @ return if the return value is empty there is no model associated with this resource , or
* it does not support validation via { @ link ParsysItem } interface . Otherwise it contains the valid status . */
private O... | // use reflection to access the method " getModelFromResource " from ModelFactory , as it is not present in earlier version
// but we want still to support earlier versions of AEM as well which do not contain this method
// validation is disabled in this case
Method getModelFromResourceMethod ; try { getModelFromResour... |
public class CLI { /** * Create the parameters available for evaluation . */
private void loadDocevalParameters ( ) { } } | this . docevalParser . addArgument ( "-m" , "--model" ) . required ( false ) . setDefault ( Flags . DEFAULT_EVALUATE_MODEL ) . help ( "Pass the model to evaluate as a parameter.\n" ) ; this . docevalParser . addArgument ( "-t" , "--testset" ) . required ( true ) . help ( "The test or reference corpus.\n" ) ; this . doc... |
public class IntentsClient { /** * Deletes intents in the specified agent .
* < p > Operation & lt ; response : [ google . protobuf . Empty ] [ google . protobuf . Empty ] & gt ;
* < p > Sample code :
* < pre > < code >
* try ( IntentsClient intentsClient = IntentsClient . create ( ) ) {
* ProjectAgentName pa... | BatchDeleteIntentsRequest request = BatchDeleteIntentsRequest . newBuilder ( ) . setParent ( parent ) . addAllIntents ( intents ) . build ( ) ; return batchDeleteIntentsAsync ( request ) ; |
public class IteratorExecutor { /** * Log failures in the output of { @ link # executeAndGetResults ( ) } .
* @ param results output of { @ link # executeAndGetResults ( ) }
* @ param useLogger logger to log the messages into .
* @ param atMost will log at most this many errors . */
public static < T > void logFa... | Logger actualLogger = useLogger == null ? log : useLogger ; Iterator < Either < T , ExecutionException > > it = results . iterator ( ) ; int printed = 0 ; while ( it . hasNext ( ) ) { Either < T , ExecutionException > nextResult = it . next ( ) ; if ( nextResult instanceof Either . Right ) { ExecutionException exc = ( ... |
public class TypesREST { /** * Get the relationship definition by it ' s name ( unique )
* @ param name relationship name
* @ return relationship definition
* @ throws AtlasBaseException
* @ HTTP 200 On successful lookup of the the relationship definition by it ' s name
* @ HTTP 404 On Failed lookup for the g... | AtlasRelationshipDef ret = typeDefStore . getRelationshipDefByName ( name ) ; return ret ; |
public class Calendar { /** * Converts the current field values in < code > fields [ ] < / code > to the
* millisecond time value < code > time < / code > . */
protected void computeTime ( ) { } } | if ( ! isLenient ( ) ) { validateFields ( ) ; } // Compute the Julian day
int julianDay = computeJulianDay ( ) ; long millis = julianDayToMillis ( julianDay ) ; int millisInDay ; // We only use MILLISECONDS _ IN _ DAY if it has been set by the user .
// This makes it possible for the caller to set the calendar to a
// ... |
public class Fraction { /** * < p > Reduce the fraction to the smallest values for the numerator and
* denominator , returning the result . < / p >
* < p > For example , if this fraction represents 2/4 , then the result
* will be 1/2 . < / p >
* @ return a new reduced fraction instance , or this if no simplific... | if ( numerator == 0 ) { return equals ( ZERO ) ? this : ZERO ; } final int gcd = greatestCommonDivisor ( Math . abs ( numerator ) , denominator ) ; if ( gcd == 1 ) { return this ; } return Fraction . getFraction ( numerator / gcd , denominator / gcd ) ; |
public class AtlasHook { /** * Returns the user . Order of preference :
* 1 . Given userName
* 2 . ugi . getShortUserName ( )
* 3 . UserGroupInformation . getCurrentUser ( ) . getShortUserName ( )
* 4 . System . getProperty ( " user . name " ) */
public static String getUser ( String userName , UserGroupInforma... | if ( StringUtils . isNotEmpty ( userName ) ) { if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "Returning userName {}" , userName ) ; } return userName ; } if ( ugi != null && StringUtils . isNotEmpty ( ugi . getShortUserName ( ) ) ) { if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "Returning ugi.getShortUserName {}" ... |
public class ODataLocalHole { /** * Fills the holes information into OPhysicalPosition object given as parameter .
* @ return true , if it ' s a valid hole , otherwise false
* @ throws IOException */
public synchronized ODataHoleInfo getHole ( final int iPosition ) { } } | final ODataHoleInfo hole = availableHolesList . get ( iPosition ) ; if ( hole . dataOffset == - 1 ) return null ; return hole ; |
public class ApiOvhIpLoadbalancing { /** * Get this object properties
* REST : GET / ipLoadbalancing / { serviceName } / vrack / network / { vrackNetworkId }
* @ param serviceName [ required ] The internal name of your IP load balancing
* @ param vrackNetworkId [ required ] Internal Load Balancer identifier of th... | String qPath = "/ipLoadbalancing/{serviceName}/vrack/network/{vrackNetworkId}" ; StringBuilder sb = path ( qPath , serviceName , vrackNetworkId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhVrackNetwork . class ) ; |
public class IoUtil { /** * Reads the contents characters from the file .
* @ param file
* the input file .
* @ return
* the read string .
* @ throws IOException */
public static String readCharacters ( final File file ) throws IOException { } } | Reader reader = new BufferedReader ( new InputStreamReader ( new FileInputStream ( file ) , Charset . forName ( "UTF-8" ) ) ) ; // Note :
// The character set should be specified to parse XML
// containing Japanese characters .
StringWriter sw = new StringWriter ( ) ; Writer writer = new BufferedWriter ( sw ) ; copy ( ... |
public class HiveAvroORCQueryGenerator { /** * Check if the Avro Schema is of type OPTION
* ie . [ null , TYPE ] or [ TYPE , null ]
* @ param schema Avro Schema to check
* @ return Optional Avro Typed data if schema is of type OPTION */
private static Optional < Schema > isOfOptionType ( Schema schema ) { } } | Preconditions . checkNotNull ( schema ) ; // If not of type UNION , cant be an OPTION
if ( ! Schema . Type . UNION . equals ( schema . getType ( ) ) ) { return Optional . < Schema > absent ( ) ; } // If has more than two members , can ' t be an OPTION
List < Schema > types = schema . getTypes ( ) ; if ( null != types &... |
public class CertificatePathValidator { /** * Here revocation status checking is started from one below the root certificate in the chain ( certChain ) .
* Since ssl implementation ensures that at least one certificate in the chain is trusted ,
* we can logically say that the root is trusted . */
private void init ... | X509Certificate [ ] partCertChainArray = new X509Certificate [ certChainArray . length - 1 ] ; System . arraycopy ( certChainArray , 0 , partCertChainArray , 0 , partCertChainArray . length ) ; certChain = Arrays . asList ( partCertChainArray ) ; fullCertChain = Arrays . asList ( certChainArray ) ; |
public class Utils { /** * Sorts the given list using the given comparator . The algorithm is
* stable which means equal elements don ' t get reordered .
* @ throws ClassCastException if any element does not implement { @ code Comparable } ,
* or if { @ code compareTo } throws for any pair of elements . */
@ Supp... | List < T > result = new ArrayList < > ( list ) ; Collections . sort ( result , comparator ) ; return result ; |
public class ColumnarBatch { /** * Returns an iterator over the rows in this batch . */
public Iterator < InternalRow > rowIterator ( ) { } } | final int maxRows = numRows ; final MutableColumnarRow row = new MutableColumnarRow ( columns ) ; return new Iterator < InternalRow > ( ) { int rowId = 0 ; @ Override public boolean hasNext ( ) { return rowId < maxRows ; } @ Override public InternalRow next ( ) { if ( rowId >= maxRows ) { throw new NoSuchElementExcepti... |
public class DefaultJiraClient { /** * / / / / / Helper Methods / / / / / */
private ResponseEntity < String > makeRestCall ( String url ) throws HygieiaException { } } | String jiraAccess = featureSettings . getJiraCredentials ( ) ; if ( StringUtils . isEmpty ( jiraAccess ) ) { return restOperations . exchange ( url , HttpMethod . GET , null , String . class ) ; } else { String jiraAccessBase64 = new String ( Base64 . decodeBase64 ( jiraAccess ) ) ; String [ ] parts = jiraAccessBase64 ... |
public class AuthGUI { /** * Start up AuthzAPI as DME2 Service
* @ param env
* @ param props
* @ throws DME2Exception
* @ throws CadiException */
public void startDME2 ( Properties props ) throws DME2Exception , CadiException { } } | DME2Manager dme2 = new DME2Manager ( "AAF GUI DME2Manager" , props ) ; DME2ServiceHolder svcHolder ; List < DME2ServletHolder > slist = new ArrayList < DME2ServletHolder > ( ) ; svcHolder = new DME2ServiceHolder ( ) ; String serviceName = env . getProperty ( "DMEServiceName" , null ) ; if ( serviceName != null ) { svcH... |
public class TagTypeSet { /** * Gets all of the tags matching the specified type .
* @ param type
* Type of tag .
* @ return All tags of that type or an empty set if none are found . */
@ SuppressWarnings ( "unchecked" ) public < T extends Tag > Set < T > getOfType ( final Class < T > type ) { } } | read . lock ( ) ; try { final Set < T > tagsOfType = ( Set < T > ) tags . get ( type ) ; return tagsOfType != null ? Collections . unmodifiableSet ( tagsOfType ) : Collections . emptySet ( ) ; } finally { read . unlock ( ) ; } |
public class FileOutputCollector { /** * Write to the output collector
* @ param output data to write
* @ exception MapReduceException map reduce exception */
@ Override public void write ( String output ) throws MapReduceException { } } | try { writer . write ( output + DataUtilDefaults . lineTerminator ) ; } catch ( IOException e ) { throw new MapReduceException ( "Failed to write to the output collector" , e ) ; } |
public class AccountClient { /** * Update an entity remotely
* @ param entity
* class
* @ param entity
* id
* @ param entity
* attributes to update
* @ return updated entity
* @ throws AuthenticationException
* @ throws ApiException
* @ throws InvalidRequestException */
public T update ( String enti... | return update ( entityId , hash , getAuthenticatedClient ( ) ) ; |
public class DefaultQueryParamsParser { /** * < strong > Important ! < / strong > Katharsis implementation differs form JSON API
* < a href = " http : / / jsonapi . org / format / # fetching - includes " > definition of includes < / a >
* in order to fit standard query parameter serializing strategy and maximize ef... | String includeKey = RestrictedQueryParamsMembers . include . name ( ) ; Map < String , Set < String > > inclusions = filterQueryParamsByKey ( context , includeKey ) ; Map < String , Set < Inclusion > > temporaryInclusionsMap = new LinkedHashMap < > ( ) ; for ( Map . Entry < String , Set < String > > entry : inclusions ... |
public class CmsSearchResourcesCollector { /** * Returns a new search parameters object from the request parameters . < p >
* @ param params the parameter map
* @ return a search parameters object */
private CmsSearchParameters getSearchParameters ( Map < String , String > params ) { } } | CmsSearchParameters searchParams = new CmsSearchParameters ( ) ; searchParams . setQuery ( params . get ( PARAM_QUERY ) ) ; if ( CmsStringUtil . isNotEmptyOrWhitespaceOnly ( params . get ( PARAM_SORT ) ) ) { searchParams . setSortName ( params . get ( PARAM_SORT ) ) ; } if ( CmsStringUtil . isNotEmptyOrWhitespaceOnly (... |
public class CharacterCaseUtil { /** * Of the characters in the string that have an uppercase form , how many are uppercased ?
* @ param input Input string .
* @ return The fraction of uppercased characters , with { @ code 0.0d } meaning that all uppercasable characters are in
* lowercase and { @ code 1.0d } that... | if ( input == null ) { return 0 ; } double upperCasableCharacters = 0 ; double upperCount = 0 ; for ( int i = 0 ; i < input . length ( ) ; i ++ ) { char c = input . charAt ( i ) ; char uc = Character . toUpperCase ( c ) ; char lc = Character . toLowerCase ( c ) ; // If both the upper and lowercase version of a characte... |
public class Template { /** * Reflectively instantiate the package - private { @ code MethodResolutionPhase } enum . */
private static Object newMethodResolutionPhase ( boolean autoboxing ) { } } | for ( Class < ? > c : Resolve . class . getDeclaredClasses ( ) ) { if ( ! c . getName ( ) . equals ( "com.sun.tools.javac.comp.Resolve$MethodResolutionPhase" ) ) { continue ; } for ( Object e : c . getEnumConstants ( ) ) { if ( e . toString ( ) . equals ( autoboxing ? "BOX" : "BASIC" ) ) { return e ; } } } return null ... |
public class ServicesInner { /** * Stop service .
* The services resource is the top - level resource that represents the Data Migration Service . This action stops the service and the service cannot be used for data migration . The service owner won ' t be billed when the service is stopped .
* @ param groupName N... | return stopWithServiceResponseAsync ( groupName , serviceName ) . map ( new Func1 < ServiceResponse < Void > , Void > ( ) { @ Override public Void call ( ServiceResponse < Void > response ) { return response . body ( ) ; } } ) ; |
public class GroupOf { /** * Sets this group ' s shear
* @ param offset
* @ return T */
@ Override public C setShear ( final double x , final double y ) { } } | getAttributes ( ) . setShear ( x , y ) ; return cast ( ) ; |
public class xen_hotfix { /** * < pre >
* Use this operation to get xen hotfix .
* < / pre > */
public static xen_hotfix [ ] get ( nitro_service client ) throws Exception { } } | xen_hotfix resource = new xen_hotfix ( ) ; resource . validate ( "get" ) ; return ( xen_hotfix [ ] ) resource . get_resources ( client ) ; |
public class LoggingFraction { /** * Add a new PatternFormatter to this Logger
* @ param name the name of the formatter
* @ param pattern the pattern string
* @ return This fraction . */
public LoggingFraction formatter ( String name , String pattern ) { } } | patternFormatter ( new PatternFormatter ( name ) . pattern ( pattern ) ) ; return this ; |
public class Types { /** * Types that accept precision params in column definition or casts .
* CHAR , VARCHAR and VARCHAR _ IGNORECASE params
* are ignored when the sql . enforce _ strict _ types is false . */
public static boolean acceptsPrecision ( int type ) { } } | switch ( type ) { case Types . SQL_BINARY : case Types . SQL_BIT : case Types . SQL_BIT_VARYING : case Types . SQL_BLOB : case Types . SQL_CHAR : case Types . SQL_NCHAR : case Types . SQL_CLOB : case Types . NCLOB : case Types . SQL_VARBINARY : case Types . SQL_VARCHAR : case Types . SQL_NVARCHAR : case Types . VARCHAR... |
public class SqlExecutor { /** * 批量执行非查询语句 < br >
* 语句包括 插入 、 更新 、 删除 < br >
* 此方法不会关闭Connection
* @ param conn 数据库连接对象
* @ param sql SQL
* @ param paramsBatch 批量的参数
* @ return 每个SQL执行影响的行数
* @ throws SQLException SQL执行异常 */
public static int [ ] executeBatch ( Connection conn , String sql , Object [ ] ..... | return executeBatch ( conn , sql , new ArrayIter < Object [ ] > ( paramsBatch ) ) ; |
public class PyExpressionGenerator { /** * Generate the given object .
* @ param block the block expression .
* @ param it the target for the generated content .
* @ param context the context .
* @ return the last expression in the block or { @ code null } . */
protected XExpression _generate ( XBlockExpression... | XExpression last = block ; if ( block . getExpressions ( ) . isEmpty ( ) ) { it . append ( "pass" ) ; // $ NON - NLS - 1 $
} else { it . openScope ( ) ; if ( context . getExpectedExpressionType ( ) == null ) { boolean first = true ; for ( final XExpression expression : block . getExpressions ( ) ) { if ( first ) { firs... |
public class HlsCdnSettingsMarshaller { /** * Marshall the given parameter object . */
public void marshall ( HlsCdnSettings hlsCdnSettings , ProtocolMarshaller protocolMarshaller ) { } } | if ( hlsCdnSettings == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( hlsCdnSettings . getHlsAkamaiSettings ( ) , HLSAKAMAISETTINGS_BINDING ) ; protocolMarshaller . marshall ( hlsCdnSettings . getHlsBasicPutSettings ( ) , HLSBASICPUTSETTING... |
public class UriUtils { /** * Uri Encode a Query Fragment .
* @ param query containing the query fragment
* @ param charset to use .
* @ return the encoded query fragment . */
public static String queryEncode ( String query , Charset charset ) { } } | return encodeReserved ( query , FragmentType . QUERY , charset ) ; /* spaces will be encoded as ' plus ' symbols here , we want them pct - encoded */
// return encoded . replaceAll ( " \ \ + " , " % 20 " ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.