signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class ChannelFlushPromiseNotifier { /** * Add a { @ link ChannelPromise } to this { @ link ChannelFlushPromiseNotifier } which will be notified after the given
* { @ code pendingDataSize } was reached . */
public ChannelFlushPromiseNotifier add ( ChannelPromise promise , long pendingDataSize ) { } } | if ( promise == null ) { throw new NullPointerException ( "promise" ) ; } checkPositiveOrZero ( pendingDataSize , "pendingDataSize" ) ; long checkpoint = writeCounter + pendingDataSize ; if ( promise instanceof FlushCheckpoint ) { FlushCheckpoint cp = ( FlushCheckpoint ) promise ; cp . flushCheckpoint ( checkpoint ) ; ... |
public class CheckAccessControls { /** * Returns the deprecation reason for the property if it is marked
* as being deprecated . Returns empty string if the property is deprecated
* but no reason was given . Returns null if the property is not deprecated . */
@ Nullable private static String getPropertyDeprecationI... | String depReason = getDeprecationReason ( type . getOwnPropertyJSDocInfo ( prop ) ) ; if ( depReason != null ) { return depReason ; } ObjectType implicitProto = type . getImplicitPrototype ( ) ; if ( implicitProto != null ) { return getPropertyDeprecationInfo ( implicitProto , prop ) ; } return null ; |
public class PackageIndexFrameWriter { /** * Generate the package index file named " overview - frame . html " .
* @ throws DocletAbortException */
public static void generate ( ConfigurationImpl configuration ) { } } | PackageIndexFrameWriter packgen ; DocPath filename = DocPaths . OVERVIEW_FRAME ; try { packgen = new PackageIndexFrameWriter ( configuration , filename ) ; packgen . buildPackageIndexFile ( "doclet.Window_Overview" , false ) ; packgen . close ( ) ; } catch ( IOException exc ) { configuration . standardmessage . error (... |
public class Util { /** * Given a weekday number , such as { @ code - 1SU } , this method calculates the
* day of the month that it falls on . The weekday number may be refer to a
* week in the current month in some contexts , or a week in the current year
* in other contexts .
* @ param dow0 the day of week of... | // if dow is wednesday , then this is the date of the first wednesday
int firstDateOfGivenDow = 1 + ( ( 7 + dow . getCalendarConstant ( ) - dow0 . getCalendarConstant ( ) ) % 7 ) ; int date ; if ( weekNum > 0 ) { date = ( ( weekNum - 1 ) * 7 ) + firstDateOfGivenDow - d0 ; } else { // count weeks from end of month
// ca... |
public class PrefixedProperties { /** * ( non - Javadoc )
* @ see java . util . Hashtable # entrySet ( ) */
@ Override public Set < Entry < Object , Object > > entrySet ( ) { } } | final Set < Entry < Object , Object > > entrySet = new HashSet < Entry < Object , Object > > ( ) ; lock . readLock ( ) . lock ( ) ; try { final boolean useLocalPrefixes = ! mixDefaultAndLocalPrefixes && hasLocalPrefixConfigurations ( ) ; for ( final Map . Entry < Object , Object > keyEntry : getKeyMap ( false ) . entry... |
public class DateUtils { /** * 添加小时
* @ param date 日期
* @ param amount 数量
* @ return 添加后的日期
* @ throws ParseException 异常 */
public static Date addHour ( String date , int amount ) throws ParseException { } } | return add ( date , Calendar . HOUR , amount ) ; |
public class SQSMessagingClientThreadFactory { /** * Constructs a new Thread . Initializes name , daemon status , and ThreadGroup
* if there is any .
* @ param r
* A runnable to be executed by new thread instance
* @ return The constructed thread */
public Thread newThread ( Runnable r ) { } } | Thread t ; if ( threadGroup == null ) { t = new Thread ( r , threadBaseName + threadCounter . incrementAndGet ( ) ) ; t . setDaemon ( isDaemon ) ; } else { t = new Thread ( threadGroup , r , threadBaseName + threadCounter . incrementAndGet ( ) ) ; t . setDaemon ( isDaemon ) ; } return t ; |
public class PhotoUtils { /** * Transfer the Information of a photo from a DOM - object to a Photo - object .
* @ param photoElement
* @ param defaultElement
* @ return Photo */
public static final Photo createPhoto ( Element photoElement , Element defaultElement ) { } } | Photo photo = new Photo ( ) ; photo . setId ( photoElement . getAttribute ( "id" ) ) ; photo . setPlaceId ( photoElement . getAttribute ( "place_id" ) ) ; photo . setSecret ( photoElement . getAttribute ( "secret" ) ) ; photo . setServer ( photoElement . getAttribute ( "server" ) ) ; photo . setFarm ( photoElement . ge... |
public class VideoSelectorMarshaller { /** * Marshall the given parameter object . */
public void marshall ( VideoSelector videoSelector , ProtocolMarshaller protocolMarshaller ) { } } | if ( videoSelector == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( videoSelector . getColorSpace ( ) , COLORSPACE_BINDING ) ; protocolMarshaller . marshall ( videoSelector . getColorSpaceUsage ( ) , COLORSPACEUSAGE_BINDING ) ; protocolMar... |
public class nspbr6 { /** * Use this API to renumber nspbr6 resources . */
public static base_responses renumber ( nitro_service client , nspbr6 resources [ ] ) throws Exception { } } | base_responses result = null ; if ( resources != null && resources . length > 0 ) { nspbr6 renumberresources [ ] = new nspbr6 [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { renumberresources [ i ] = new nspbr6 ( ) ; } result = perform_operation_bulk_request ( client , renumberresources , "... |
public class DFSClient { /** * Get the checksum of a file .
* @ param src The file path
* @ return The checksum
* @ see DistributedFileSystem # getFileChecksum ( Path ) */
MD5MD5CRC32FileChecksum getFileChecksum ( String src ) throws IOException { } } | checkOpen ( ) ; return getFileChecksum ( dataTransferVersion , src , namenode , namenodeProtocolProxy , socketFactory , socketTimeout ) ; |
public class MapFile { /** * Reads only labels for tile .
* @ param tile tile for which data is requested .
* @ return label data for the tile . */
@ Override public MapReadResult readLabels ( Tile tile ) { } } | return readMapData ( tile , tile , Selector . LABELS ) ; |
public class FileTransferable { /** * { @ inheritDoc } */
@ Override public boolean isDataFlavorSupported ( DataFlavor flavor ) { } } | return flavor . equals ( FLAVORS [ FILE ] ) || flavor . equals ( FLAVORS [ STRING ] ) ; |
public class InputElement { /** * getter for dataset - gets
* @ generated */
public String getDataset ( ) { } } | if ( InputElement_Type . featOkTst && ( ( InputElement_Type ) jcasType ) . casFeat_dataset == null ) jcasType . jcas . throwFeatMissing ( "dataset" , "edu.cmu.lti.oaqa.framework.types.InputElement" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( InputElement_Type ) jcasType ) . casFeatCode_dataset ) ; |
public class JobAgentsInner { /** * Updates a job agent .
* @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal .
* @ param serverName The name of the server .
* @ param jobAgentName The name of the job a... | if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( serverName == null ) { throw new IllegalArgumentException ( "Parameter serverName is required and cannot be null." ) ; } if ( jobAgentName == null ) { throw new IllegalArgumen... |
public class Thin { /** * Takes an image and a kernel and thins it once .
* @ param b the BinaryFast input image
* @ param kernel the thinning kernel
* @ return the thinned BinaryFast image */
private BinaryFast thinBinaryRep ( BinaryFast b , int [ ] kernel ) { } } | Point p ; HashSet < Point > inputHashSet = new HashSet < Point > ( ) ; int [ ] [ ] pixels = b . getPixels ( ) ; if ( kernelNo0s ( kernel ) ) { for ( int j = 0 ; j < b . getHeight ( ) ; ++ j ) { for ( int i = 0 ; i < b . getWidth ( ) ; ++ i ) { if ( pixels [ i ] [ j ] == BinaryFast . FOREGROUND ) { inputHashSet . add ( ... |
public class SmartsheetImpl { /** * Sets the max retry time if the HttpClient is an instance of DefaultHttpClient
* @ param maxRetryTimeMillis max retry time */
public void setMaxRetryTimeMillis ( long maxRetryTimeMillis ) { } } | if ( this . httpClient instanceof DefaultHttpClient ) { ( ( DefaultHttpClient ) this . httpClient ) . setMaxRetryTimeMillis ( maxRetryTimeMillis ) ; } else throw new UnsupportedOperationException ( "Invalid operation for class " + this . httpClient . getClass ( ) ) ; |
public class HttpPredicate { /** * An alias for { @ link HttpPredicate # http } .
* Creates a { @ link Predicate } based on a URI template filtering .
* This will listen for DELETE Method .
* @ param uri The string to compile into a URI template and use for matching
* @ return The new { @ link Predicate } .
*... | return http ( uri , null , HttpMethod . DELETE ) ; |
public class AdventureFrame { public void handleRequestGive ( ) { } } | final JOptionPane pane = new JOptionPane ( "xxx msg" ) ; pane . setWantsInput ( true ) ; pane . setInputValue ( "" ) ; pane . setOptions ( new String [ ] { "Yes" , "No" } ) ; JInternalFrame internalFrame = pane . createInternalFrame ( contentPane , "xxx title" ) ; internalFrame . setVisible ( true ) ; pane . show ( ) ;... |
public class FullscreenVideoView { /** * Initializes all objects FullscreenVideoView depends on
* It does not interfere with configuration properties
* because it is supposed to be called when this Object
* still exists */
protected void initObjects ( ) { } } | Log . d ( TAG , "initObjects" ) ; if ( this . mediaPlayer == null ) { this . mediaPlayer = new MediaPlayer ( ) ; this . mediaPlayer . setOnInfoListener ( this ) ; this . mediaPlayer . setOnErrorListener ( this ) ; this . mediaPlayer . setOnPreparedListener ( this ) ; this . mediaPlayer . setOnCompletionListener ( this ... |
public class Stream { /** * Returns a stream consisting of the results of applying the given function to the elements of this stream .
* @ param mapper function to apply to each element
* @ param < R > The element type of the new stream
* @ return the new stream */
public < R > Stream < R > map ( Function < ? sup... | List < R > list = new ArrayList < R > ( ) ; while ( iterator . hasNext ( ) ) { list . add ( mapper . apply ( iterator . next ( ) ) ) ; } return Stream . of ( list ) ; |
public class ConciseSet { /** * { @ inheritDoc } */
@ Override public boolean addAll ( IntSet c ) { } } | modCount ++ ; if ( c == null || c . isEmpty ( ) || this == c ) { return false ; } ConciseSet other = convert ( c ) ; if ( other . size == 1 ) { return add ( other . last ) ; } return replaceWith ( performOperation ( convert ( c ) , Operator . OR ) ) ; |
public class DefaultFileCopierUtil { /** * Copy a script file , script source stream , or script string into a temp file , and replace \
* embedded tokens with values from the dataContext for the latter two . Marks the file as
* executable and delete - on - exit . This will not rewrite any content if the input is o... | return writeScriptTempFile ( context , original , input , script , node , null , expandTokens ) ; |
public class Criteria { /** * Creates new { @ link Predicate } for { @ code ! geodist }
* @ param location { @ link Point } in degrees
* @ param distance
* @ return */
public Criteria within ( Point location , @ Nullable Distance distance ) { } } | Assert . notNull ( location , "Location must not be null!" ) ; assertPositiveDistanceValue ( distance ) ; predicates . add ( new Predicate ( OperationKey . WITHIN , new Object [ ] { location , distance != null ? distance : new Distance ( 0 ) } ) ) ; return this ; |
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 GrayF64 transform ( GrayF64 input , GrayF64 tr... | transformed = InputSanityCheck . checkDeclare ( input , transformed ) ; ImplIntegralImageOps . transform ( input , transformed ) ; return transformed ; |
public class ZipUtils { /** * Add the content of a folder to the zip .
* If this folder also contains folder ( s ) , this function is called recursively .
* @ param folder
* @ param zipOutput
* @ param folderFromRoot relative path ( from archive root ) of this folder .
* @ return */
private static boolean add... | FileInputStream fileInput ; try { for ( File currFile : folder . listFiles ( ) ) { ZipArchiveEntry entry = null ; if ( currFile . isDirectory ( ) ) { // as defined by ZipArchiveEntry :
// Assumes the entry represents a directory if and only if the name ends with a forward slash " / " .
entry = new ZipArchiveEntry ( fol... |
public class Output { /** * Use the specialized BYTEARRAY type . */
private void writePrimitiveByteArray ( byte [ ] bytes ) { } } | writeAMF3 ( ) ; this . buf . put ( AMF3 . TYPE_BYTEARRAY ) ; if ( hasReference ( bytes ) ) { putInteger ( getReferenceId ( bytes ) << 1 ) ; return ; } storeReference ( bytes ) ; int length = bytes . length ; putInteger ( length << 1 | 0x1 ) ; this . buf . put ( bytes ) ; |
public class FailoverWatcher { /** * Deal with connection event , exit current process if auth fails or session expires .
* @ param event the ZooKeeper event */
protected void processConnection ( WatchedEvent event ) { } } | switch ( event . getState ( ) ) { case SyncConnected : LOG . info ( hostPort . getHostPort ( ) + " sync connect from ZooKeeper" ) ; try { waitToInitZooKeeper ( 2000 ) ; // init zookeeper in another thread , wait for a while
} catch ( Exception e ) { LOG . fatal ( "Error to init ZooKeeper object after sleeping 2000 ms, ... |
public class CalendarDateFormatFactory { /** * Returns DateFormat objects optimized for common iCalendar date patterns . The DateFormats are * not * thread safe .
* Attempts to get or set the Calendar or NumberFormat of an optimized DateFormat will result in an
* UnsupportedOperation exception being thrown .
* @ ... | java . text . DateFormat instance ; // if ( true ) {
// return new SimpleDateFormat ( pattern ) ;
if ( pattern . equals ( DATETIME_PATTERN ) || pattern . equals ( DATETIME_UTC_PATTERN ) ) { instance = new DateTimeFormat ( pattern ) ; } else if ( pattern . equals ( DATE_PATTERN ) ) { instance = new DateFormat ( pattern ... |
public class Logger { /** * This method logs a message at the SEVERE level .
* @ param mesg The message
* @ param t exception to log */
public void severe ( String mesg , Throwable t ) { } } | log ( Level . SEVERE , mesg , t ) ; |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcTextStyleFontModel ( ) { } } | if ( ifcTextStyleFontModelEClass == null ) { ifcTextStyleFontModelEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 604 ) ; } return ifcTextStyleFontModelEClass ; |
public class PreferenceFragment { /** * Initializes the preference , which allows to show a bottom sheet with custom content . */
private void initializeShowCustomBottomSheetPreference ( ) { } } | Preference showCustomBottomSheetPreference = findPreference ( getString ( R . string . show_custom_bottom_sheet_preference_key ) ) ; showCustomBottomSheetPreference . setOnPreferenceClickListener ( new OnPreferenceClickListener ( ) { @ Override public boolean onPreferenceClick ( final Preference preference ) { initiali... |
public class SinkJoinerPlanNode { public void setCosts ( Costs nodeCosts ) { } } | // the plan enumeration logic works as for regular two - input - operators , which is important
// because of the branch handling logic . it does pick redistributing network channels
// between the sink and the sink joiner , because sinks joiner has a different DOP than the sink .
// we discard any cost and simply use ... |
public class SipServletRequestImpl { /** * ( non - Javadoc )
* @ see org . mobicents . servlet . sip . message . SipServletMessageImpl # send ( ) */
@ Override public void send ( ) throws IOException { } } | if ( logger . isDebugEnabled ( ) ) { logger . debug ( "send - method=" + this . getMethod ( ) ) ; } checkReadOnly ( ) ; // Cope with com . bea . sipservlet . tck . agents . api . javax _ servlet _ sip . SipServletMessageTest . testSend101
// make sure a message received cannot be sent out
checkMessageState ( ) ; final ... |
public class StreamSourceProcessor { /** * Send instances .
* @ param inputStream the input stream
* @ param numberInstances the number instances
* @ param isTraining the is training */
public void sendInstances ( Stream inputStream , int numberInstances , boolean isTraining , boolean isTesting ) { } } | int numberSamples = 0 ; while ( streamSource . hasMoreInstances ( ) && numberSamples < numberInstances ) { numberSamples ++ ; numberInstancesSent ++ ; InstanceContentEvent instanceContentEvent = new InstanceContentEvent ( numberInstancesSent , nextInstance ( ) , isTraining , isTesting ) ; inputStream . put ( instanceCo... |
public class CylinderToEquirectangular_F32 { /** * Configures the rendered cylinder
* @ param width Cylinder width in pixels
* @ param height Cylinder height in pixels
* @ param vfov vertical FOV in radians */
public void configure ( int width , int height , float vfov ) { } } | declareVectors ( width , height ) ; float r = ( float ) Math . tan ( vfov / 2.0f ) ; for ( int pixelY = 0 ; pixelY < height ; pixelY ++ ) { float z = 2 * r * pixelY / ( height - 1 ) - r ; for ( int pixelX = 0 ; pixelX < width ; pixelX ++ ) { float theta = GrlConstants . F_PI2 * pixelX / width - GrlConstants . F_PI ; fl... |
public class WAjaxControl { /** * Get the target WComponents as an array .
* When the AJAX request is triggered only the target component ( s ) will be re - painted . If no targets have been
* registered then an empty array is returned .
* @ return an array of AJAX target components */
public WComponent [ ] getTa... | List < AjaxTarget > targets = getTargets ( ) ; return targets . toArray ( new WComponent [ targets . size ( ) ] ) ; |
public class UIInput { /** * < p > < span class = " changed _ modified _ 2_0 " > Perform < / span >
* the following algorithm to update the model data
* associated with this { @ link UIInput } , if any , as appropriate . < / p >
* < ul >
* < li > If the < code > valid < / code > property of this component is
... | if ( context == null ) { throw new NullPointerException ( ) ; } if ( ! isValid ( ) || ! isLocalValueSet ( ) ) { return ; } ValueExpression ve = getValueExpression ( "value" ) ; if ( ve != null ) { Throwable caught = null ; FacesMessage message = null ; try { ve . setValue ( context . getELContext ( ) , getLocalValue ( ... |
public class AssociateRouteTableRequest { /** * This method is intended for internal use only . Returns the marshaled request configured with additional
* parameters to enable operation dry - run . */
@ Override public Request < AssociateRouteTableRequest > getDryRunRequest ( ) { } } | Request < AssociateRouteTableRequest > request = new AssociateRouteTableRequestMarshaller ( ) . marshall ( this ) ; request . addParameter ( "DryRun" , Boolean . toString ( true ) ) ; return request ; |
public class Parser { /** * A { @ link Parser } that runs { @ code this } for 1 ore more times separated and optionally terminated by { @ code
* delim } . For example : { @ code " foo ; foo ; foo " } and { @ code " foo ; foo ; " } both matches { @ code foo . sepEndBy1 ( semicolon ) } .
* < p > The return values are... | return next ( first -> new DelimitedParser < T > ( this , delim , ListFactory . arrayListFactoryWithFirstElement ( first ) ) ) ; |
public class DistributedCache { public static void writeFileInfoToConfig ( String name , DistributedCacheEntry e , Configuration conf ) { } } | int num = conf . getInteger ( CACHE_FILE_NUM , 0 ) + 1 ; conf . setInteger ( CACHE_FILE_NUM , num ) ; conf . setString ( CACHE_FILE_NAME + num , name ) ; conf . setString ( CACHE_FILE_PATH + num , e . filePath ) ; conf . setBoolean ( CACHE_FILE_EXE + num , e . isExecutable || new File ( e . filePath ) . canExecute ( ) ... |
public class HAProxy { /** * TODO cleanup this . . . */
public void generateConfig ( File configFile , ContainerRoot model ) throws IOException { } } | StringBuilder buffer = new StringBuilder ( ) ; buffer . append ( OSHelper . read ( this . getClass ( ) . getClassLoader ( ) . getResourceAsStream ( "base.cfg" ) ) ) ; buffer . append ( "\n" ) ; HashMap < String , Backend > backends = new HashMap < String , Backend > ( ) ; for ( ContainerNode node : model . getNodes ( )... |
public class JavaAgent { /** * Parse the Java Agent configuration . The arguments are typically specified to the JVM as a javaagent as
* { @ code - javaagent : / path / to / agent . jar = < CONFIG > } . This method parses the { @ code < CONFIG > } portion .
* @ param args provided agent args
* @ param ifc default... | Pattern pattern = Pattern . compile ( "^(?:((?:[\\w.]+)|(?:\\[.+])):)?" + // host name , or ipv4 , or ipv6 address in brackets
"(\\d{1,5}):" + // port
"(.+)" ) ; // config file
Matcher matcher = pattern . matcher ( args ) ; if ( ! matcher . matches ( ) ) { throw new IllegalArgumentException ( "Malformed arguments - " +... |
public class FacebookRestClient { /** * Publish the notification of an action taken by a user to newsfeed .
* @ param title the title of the feed story ( up to 60 characters , excluding tags )
* @ param body ( optional ) the body of the feed story ( up to 200 characters , excluding tags )
* @ return whether the s... | return feed_publishActionOfUser ( title , body , null ) ; |
public class ComapiChatClient { /** * Removes listener for changes in profile details .
* @ param profileListener Listener for changes in in profile details . */
public void removeListener ( final ProfileListener profileListener ) { } } | com . comapi . ProfileListener foundationListener = profileListeners . get ( profileListener ) ; if ( foundationListener != null ) { client . removeListener ( foundationListener ) ; profileListeners . remove ( profileListener ) ; } |
public class PersistentExecutorImpl { /** * { @ inheritDoc } */
@ Override public < T > TaskStatus < T > submit ( Runnable runnable , T result ) { } } | TaskInfo taskInfo = new TaskInfo ( false ) ; taskInfo . initForOneShotTask ( 0l ) ; // run immediately
return newTask ( runnable , taskInfo , null , result ) ; |
public class DisconnectHandler { /** * ( non - Javadoc )
* @ see org . restcomm . ss7 . management . console . CommandHandler # handle ( org . mobicents . ss7 . management . console . CommandContext ,
* java . lang . String ) */
@ Override public void handle ( CommandContext ctx , String commandLine ) { } } | if ( commandLine . contains ( "--help" ) ) { this . printHelp ( commandLine , ctx ) ; return ; } String [ ] commands = commandLine . split ( " " ) ; if ( commands . length == 1 ) { ctx . sendMessage ( "disconnect" ) ; ctx . disconnectController ( ) ; } else if ( commands . length == 2 ) { if ( commandLine . contains ( ... |
public class ImageRetinaApiImpl { /** * { @ inheritDoc } */
@ Override public ByteArrayInputStream compare ( Integer scalar , ImagePlotShape shape , ImageEncoding imageEncoding , String jsonModel ) throws JsonProcessingException , ApiException { } } | LOG . debug ( "Retrieve image for expression: model: " + jsonModel + " scalar: " + scalar + " shape: " + name ( shape ) + " image encoding: " + name ( imageEncoding ) ) ; String shapeString = null ; if ( shape != null ) { shapeString = shape . name ( ) . toLowerCase ( ) ; } String encodingString = null ; if ( imageE... |
public class LRUHashMap { /** * documentation inherited from interface */
public V get ( Object key ) { } } | V result = _delegate . get ( key ) ; if ( _tracking ) { if ( result == null ) { if ( _seenKeys . contains ( key ) ) { // only count a miss if we ' ve seen the key before
_misses ++ ; } } else { _hits ++ ; } } return result ; |
public class AuthenticationApi { /** * Perform form - based authentication . ( asynchronously )
* Perform form - based authentication by submitting an agent & # 39 ; s username and password .
* @ param username The agent & # 39 ; s username , formatted as & # 39 ; tenant \ \ username & # 39 ; . ( required )
* @ p... | ProgressResponseBody . ProgressListener progressListener = null ; ProgressRequestBody . ProgressRequestListener progressRequestListener = null ; if ( callback != null ) { progressListener = new ProgressResponseBody . ProgressListener ( ) { @ Override public void update ( long bytesRead , long contentLength , boolean do... |
public class PermissionAwareCrudService { /** * This method removes ( user ) permissions from the passed entity and persists ( ! )
* the permission collection !
* @ param entity The secured entity
* @ param user The user from which the permissions for the entity will be removed
* @ param permissions The permiss... | if ( entity == null ) { LOG . error ( "Could not remove permissions: The passed entity is NULL." ) ; return ; } // create a set from the passed array
final HashSet < Permission > permissionsSet = new HashSet < Permission > ( Arrays . asList ( permissions ) ) ; if ( permissionsSet == null || permissionsSet . isEmpty ( )... |
public class DRL6StrictParser { /** * fromWindow : = WINDOW ID
* @ param pattern
* @ throws org . antlr . runtime . RecognitionException */
private void fromWindow ( PatternDescrBuilder < ? > pattern ) throws RecognitionException { } } | String window = "" ; match ( input , DRL6Lexer . ID , DroolsSoftKeywords . WINDOW , null , DroolsEditorType . KEYWORD ) ; if ( state . failed ) return ; Token id = match ( input , DRL6Lexer . ID , null , null , DroolsEditorType . IDENTIFIER ) ; if ( state . failed ) return ; window = id . getText ( ) ; if ( state . bac... |
public class NoteUpdateMarshaller { /** * Marshall the given parameter object . */
public void marshall ( NoteUpdate noteUpdate , ProtocolMarshaller protocolMarshaller ) { } } | if ( noteUpdate == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( noteUpdate . getText ( ) , TEXT_BINDING ) ; protocolMarshaller . marshall ( noteUpdate . getUpdatedBy ( ) , UPDATEDBY_BINDING ) ; } catch ( Exception e ) { throw new SdkClien... |
public class SMPPOutboundServerSession { /** * Bind immediately .
* @ param bindParam is the bind parameters .
* @ param timeout is the timeout .
* @ return the SMSC system id .
* @ throws IOException if there is an IO error found . */
public String bind ( BindParameter bindParam , long timeout ) throws IOExcep... | try { String smscSystemId = sendBind ( bindParam . getBindType ( ) , bindParam . getSystemId ( ) , bindParam . getPassword ( ) , bindParam . getSystemType ( ) , bindParam . getInterfaceVersion ( ) , bindParam . getAddrTon ( ) , bindParam . getAddrNpi ( ) , bindParam . getAddressRange ( ) , timeout ) ; sessionContext . ... |
public class MessageDigests { /** * Generates an MD5 hash hex string for the input string
* @ param input The input string
* @ return MD5 hash hex string */
public static String md5Hex ( final String input ) { } } | if ( input == null ) { throw new NullPointerException ( "String is null" ) ; } MessageDigest digest = null ; try { digest = MessageDigest . getInstance ( "MD5" ) ; } catch ( NoSuchAlgorithmException e ) { // this should never happen
throw new RuntimeException ( e ) ; } byte [ ] hash = digest . digest ( input . getBytes... |
public class AbstractMappedClassFieldObserver { /** * Notification about custom field .
* @ param obj the object instance , must not be null
* @ param field the custom field , must not be null
* @ param annotation the annotation for the field , must not be null
* @ param customFieldProcessor processor for custo... | |
public class QuartzScheduler { /** * Trigger the identified < code > { @ link org . quartz . jobs . Job } < / code > ( execute it now ) - with a
* non - volatile trigger . */
@ Override public void triggerJob ( String jobKey , JobDataMap data ) throws SchedulerException { } } | validateState ( ) ; OperableTrigger operableTrigger = simpleTriggerBuilder ( ) . withIdentity ( jobKey + "-trigger" ) . forJob ( jobKey ) . startAt ( new Date ( ) ) . build ( ) ; // OperableTrigger operableTrigger = TriggerBuilder . newTriggerBuilder ( ) . withIdentity ( jobKey +
// " - trigger " ) . forJob ( jobKey )
... |
public class AbstractLabel { /** * remove a given index that was on this label
* @ param idx the index
* @ param preserveData should we keep the SQL data */
void removeIndex ( Index idx , boolean preserveData ) { } } | this . getSchema ( ) . getTopology ( ) . lock ( ) ; if ( ! uncommittedRemovedIndexes . contains ( idx . getName ( ) ) ) { uncommittedRemovedIndexes . add ( idx . getName ( ) ) ; TopologyManager . removeIndex ( this . sqlgGraph , idx ) ; if ( ! preserveData ) { idx . delete ( sqlgGraph ) ; } this . getSchema ( ) . getTo... |
public class Matchers { /** * Matches a compound assignment operator AST node which matches a given left - operand matcher , a
* given right - operand matcher , and is one of a set of compound assignment operators . Does not
* match compound assignment operators .
* @ param operators Which compound assignment ope... | return new CompoundAssignment ( operators , receiverMatcher , expressionMatcher ) ; |
public class ApiOvhSupport { /** * Checks whether ticket can be scored
* REST : GET / support / tickets / { ticketId } / canBeScored
* @ param ticketId [ required ] internal ticket identifier */
public Boolean tickets_ticketId_canBeScored_GET ( Long ticketId ) throws IOException { } } | String qPath = "/support/tickets/{ticketId}/canBeScored" ; StringBuilder sb = path ( qPath , ticketId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , Boolean . class ) ; |
public class CommerceNotificationQueueEntryPersistenceImpl { /** * Removes all the commerce notification queue entries where groupId = & # 63 ; from the database .
* @ param groupId the group ID */
@ Override public void removeByGroupId ( long groupId ) { } } | for ( CommerceNotificationQueueEntry commerceNotificationQueueEntry : findByGroupId ( groupId , QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ) { remove ( commerceNotificationQueueEntry ) ; } |
public class JSONTokener { /** * 将标记回退到第一个字符 , 重新开始解析新的JSON */
public void back ( ) throws JSONException { } } | if ( this . usePrevious || this . index <= 0 ) { throw new JSONException ( "Stepping back two steps is not supported" ) ; } this . index -= 1 ; this . character -= 1 ; this . usePrevious = true ; this . eof = false ; |
public class LdapHelper { /** * Deletes a LDAP - Group .
* @ param node of the LDAP - Group to be deleted .
* @ return true if Group was deleted , otherwise false . */
@ Override public boolean rmGroup ( Node node ) { } } | LdapGroup group = ( LdapGroup ) node ; try { deletionCount ++ ; ctx . unbind ( getOuForNode ( group ) ) ; } catch ( NamingException ex ) { handleNamingException ( group , ex ) ; } Node ldapGroup = getGroup ( group . getCn ( ) ) ; return ldapGroup . isEmpty ( ) ; |
public class ManagedObject { /** * Get multiple properties by their paths
* @ param propPaths an array of strings for property path
* @ return a Hashtable holding with the property path as key , and the value .
* @ throws InvalidProperty
* @ throws RuntimeFault
* @ throws RemoteException */
public Hashtable g... | Hashtable [ ] pht = PropertyCollectorUtil . retrieveProperties ( new ManagedObject [ ] { this } , getMOR ( ) . getType ( ) , propPaths ) ; if ( pht . length != 0 ) { return pht [ 0 ] ; } else { return null ; } |
public class RedmineJSONBuilder { /** * Writes a " create project " request .
* @ param writer
* project writer .
* @ param project
* project to create .
* @ throws IllegalArgumentException
* if some project fields are not configured .
* @ throws JSONException
* if IO error occurs . */
public static voi... | /* Validate project */
if ( project . getName ( ) == null ) throw new IllegalArgumentException ( "Project name must be set to create a new project" ) ; if ( project . getIdentifier ( ) == null ) throw new IllegalArgumentException ( "Project identifier must be set to create a new project" ) ; writeProject ( project , wr... |
public class StringValueArrayComparator { /** * Read the next character from the serialized { @ code StringValue } .
* @ param source the input view containing the record
* @ return the next { @ code char } of the current serialized { @ code StringValue }
* @ throws IOException if the input view raised an excepti... | int c = source . readByte ( ) & 0xFF ; if ( c >= HIGH_BIT ) { int shift = 7 ; int curr ; c = c & 0x7F ; while ( ( curr = source . readByte ( ) & 0xFF ) >= HIGH_BIT ) { c |= ( curr & 0x7F ) << shift ; shift += 7 ; } c |= curr << shift ; } return ( char ) c ; |
public class UserInfoBaseScreen { /** * Add all the screen listeners . */
public void addListeners ( ) { } } | super . addListeners ( ) ; this . addMainKeyBehavior ( ) ; this . getMainRecord ( ) . getField ( UserInfo . USER_GROUP_ID ) . addListener ( new InitFieldHandler ( this . getRecord ( UserControl . USER_CONTROL_FILE ) . getField ( UserControl . ANON_USER_GROUP_ID ) ) ) ; ( ( UserInfo ) this . getMainRecord ( ) ) . addPro... |
public class MtasSolrCollectionCache { /** * Gets the automaton by id .
* @ param id the id
* @ return the automaton by id
* @ throws IOException Signals that an I / O exception has occurred . */
public Automaton getAutomatonById ( String id ) throws IOException { } } | if ( idToVersion . containsKey ( id ) ) { List < BytesRef > bytesArray = new ArrayList < > ( ) ; Set < String > data = get ( id ) ; if ( data != null ) { Term term ; for ( String item : data ) { term = new Term ( "dummy" , item ) ; bytesArray . add ( term . bytes ( ) ) ; } Collections . sort ( bytesArray ) ; return Aut... |
public class MiniCluster { /** * Shuts down the mini cluster , failing all currently executing jobs .
* The mini cluster can be started again by calling the { @ link # start ( ) } method again .
* < p > This method shuts down all started services and components ,
* even if an exception occurs in the process of sh... | synchronized ( lock ) { if ( running ) { LOG . info ( "Shutting down Flink Mini Cluster" ) ; try { final long shutdownTimeoutMillis = miniClusterConfiguration . getConfiguration ( ) . getLong ( ClusterOptions . CLUSTER_SERVICES_SHUTDOWN_TIMEOUT ) ; final int numComponents = 2 + miniClusterConfiguration . getNumTaskMana... |
public class ExpressRouteCrossConnectionsInner { /** * Update the specified ExpressRouteCrossConnection .
* @ param resourceGroupName The name of the resource group .
* @ param crossConnectionName The name of the ExpressRouteCrossConnection .
* @ param parameters Parameters supplied to the update express route cr... | return createOrUpdateWithServiceResponseAsync ( resourceGroupName , crossConnectionName , parameters ) . map ( new Func1 < ServiceResponse < ExpressRouteCrossConnectionInner > , ExpressRouteCrossConnectionInner > ( ) { @ Override public ExpressRouteCrossConnectionInner call ( ServiceResponse < ExpressRouteCrossConnecti... |
public class WsFrameDecoder { /** * Validates opcode w . r . t FIN bit */
private void validateOpcodeUsingFin ( Opcode opcode , boolean fin ) throws ProtocolDecoderException { } } | switch ( opcode ) { case CONTINUATION : if ( prevDataFin ) { throw new ProtocolDecoderException ( "Not expecting CONTINUATION frame" ) ; } break ; case TEXT : case BINARY : if ( ! prevDataFin ) { throw new ProtocolDecoderException ( "Expecting CONTINUATION frame, but got " + opcode + " frame" ) ; } break ; case PING : ... |
public class FpUtils { /** * Returns unbiased exponent of a { @ code double } ; for
* subnormal values , the number is treated as if it were
* normalized . That is for all finite , non - zero , positive numbers
* < i > x < / i > , < code > scalb ( < i > x < / i > , - ilogb ( < i > x < / i > ) ) < / code > is
* ... | int exponent = getExponent ( d ) ; switch ( exponent ) { case DoubleConsts . MAX_EXPONENT + 1 : // NaN or infinity
if ( isNaN ( d ) ) return ( 1 << 30 ) ; // 2 ^ 30
else // infinite value
return ( 1 << 28 ) ; // 2 ^ 28
case DoubleConsts . MIN_EXPONENT - 1 : // zero or subnormal
if ( d == 0.0 ) { return - ( 1 << 28 ) ; ... |
public class SimpleNamespaceResolver { /** * { @ inheritDoc } */
public String getPrefix ( final String namespaceURI ) { } } | if ( namespaceURI == null ) { // Be compliant with the JAXB contract for NamespaceResolver .
throw new IllegalArgumentException ( "Cannot acquire prefix for null namespaceURI." ) ; } return uri2Prefix . get ( namespaceURI ) ; |
public class Step { /** * Save value in memory .
* @ param field
* is name of the field to retrieve .
* @ param targetKey
* is the key to save value to
* @ param page
* is target page .
* @ throws TechnicalException
* is thrown if you have a technical error ( format , configuration , datas , . . . ) in ... | logger . debug ( "saveValueInStep: {} to {} in {}." , field , targetKey , page . getApplication ( ) ) ; String txt = "" ; try { final WebElement elem = Utilities . findElement ( page , field ) ; txt = elem . getAttribute ( VALUE ) != null ? elem . getAttribute ( VALUE ) : elem . getText ( ) ; } catch ( final Exception ... |
public class OpenTSDBMain { /** * Reloads the logback configuration to an external file
* @ param fileName The logback configuration file */
protected static void setLogbackExternal ( final String fileName ) { } } | try { final ObjectName logbackObjectName = new ObjectName ( "ch.qos.logback.classic:Name=default,Type=ch.qos.logback.classic.jmx.JMXConfigurator" ) ; ManagementFactory . getPlatformMBeanServer ( ) . invoke ( logbackObjectName , "reloadByFileName" , new Object [ ] { fileName } , new String [ ] { String . class . getName... |
public class DefaultAuthenticationTransaction { /** * Sanitize credentials set . It ' s important to keep the order of
* the credentials in the final set as they were presented .
* @ param credentials the credentials
* @ return the set */
private static Set < Credential > sanitizeCredentials ( final Credential [ ... | if ( credentials != null && credentials . length > 0 ) { return Arrays . stream ( credentials ) . filter ( Objects :: nonNull ) . collect ( Collectors . toCollection ( LinkedHashSet :: new ) ) ; } return new HashSet < > ( 0 ) ; |
public class NotificationManager { /** * Cleanup specified clientID */
public void cleanUp ( RESTRequest request , int clientID ) { } } | ClientNotificationArea inbox = inboxes . get ( clientID ) ; // If somehow the inbox timed out before we came here , then just exit , because the end result is the same .
if ( inbox != null ) { inbox . cleanUp ( request ) ; inboxes . remove ( clientID ) ; } |
public class JaxRsFactoryImplicitBeanCDICustomizer { /** * ( non - Javadoc )
* @ see com . ibm . ws . jaxrs20 . api . JaxRsFactoryBeanCustomizer # isCustomizableBean ( java . lang . Class , java . lang . Object ) */
@ Override public boolean isCustomizableBean ( Class < ? > clazz , Object context ) { } } | if ( context == null ) { return false ; } @ SuppressWarnings ( "unchecked" ) Map < Class < ? > , ManagedObject < ? > > newContext = ( Map < Class < ? > , ManagedObject < ? > > ) ( context ) ; if ( newContext . isEmpty ( ) ) { return false ; } if ( newContext . containsKey ( clazz ) ) { return true ; } return false ; |
public class Graphics { /** * Draw a section of an image at a particular location and scale on the
* screen
* @ param image
* The image to draw a section of
* @ param x
* The x position to draw the image
* @ param y
* The y position to draw the image
* @ param srcx
* The x position of the rectangle to... | drawImage ( image , x , y , x + image . getWidth ( ) , y + image . getHeight ( ) , srcx , srcy , srcx2 , srcy2 , col ) ; |
public class IRFactory { /** * Set the length on the node if we ' re in IDE mode . */
void setLength ( Node node , SourcePosition start , SourcePosition end ) { } } | node . setLength ( end . offset - start . offset ) ; |
public class ContainerDefinition { /** * A list of namespaced kernel parameters to set in the container . This parameter maps to < code > Sysctls < / code > in
* the < a href = " https : / / docs . docker . com / engine / api / v1.35 / # operation / ContainerCreate " > Create a container < / a > section
* of the < ... | if ( systemControls == null ) { this . systemControls = null ; return ; } this . systemControls = new com . amazonaws . internal . SdkInternalList < SystemControl > ( systemControls ) ; |
public class CodedInput { /** * Reads a varint from the input one byte at a time from a { @ link DataInput } , so that it does not read any bytes
* after the end of the varint . */
static int readRawVarint32 ( final DataInput input , final byte firstByte ) throws IOException { } } | int result = firstByte & 0x7f ; int offset = 7 ; for ( ; offset < 32 ; offset += 7 ) { final byte b = input . readByte ( ) ; result |= ( b & 0x7f ) << offset ; if ( ( b & 0x80 ) == 0 ) { return result ; } } // Keep reading up to 64 bits .
for ( ; offset < 64 ; offset += 7 ) { final byte b = input . readByte ( ) ; if ( ... |
public class CompositeRequestParser { /** * / * ( non - Javadoc )
* @ see org . archive . wayback . RequestParser # parse ( javax . servlet . http . HttpServletRequest ) */
public WaybackRequest parse ( HttpServletRequest httpRequest , AccessPoint wbContext ) throws BadQueryException , BetterRequestException { } } | WaybackRequest wbRequest = null ; for ( int i = 0 ; i < parsers . length ; i ++ ) { wbRequest = parsers [ i ] . parse ( httpRequest , wbContext ) ; if ( wbRequest != null ) { break ; } } return wbRequest ; |
public class PurgeJmsQueuesAction { /** * Create queue session .
* @ param connection
* @ return
* @ throws JMSException */
protected Session createSession ( Connection connection ) throws JMSException { } } | if ( connection instanceof QueueConnection ) { return ( ( QueueConnection ) connection ) . createQueueSession ( false , Session . AUTO_ACKNOWLEDGE ) ; } return connection . createSession ( false , Session . AUTO_ACKNOWLEDGE ) ; |
public class ReportService { /** * Gets a unique filename ( that has not been used before in the output folder ) for this report and sets it on the report model . */
public void setUniqueFilename ( ReportModel model , String baseFilename , String extension ) { } } | model . setReportFilename ( this . getUniqueFilename ( baseFilename , extension , true , null ) ) ; |
public class JunitNotifier { /** * ( non - Javadoc )
* @ see com . technophobia . substeps . runner . AbstractBaseNotifier #
* handleNotifyNodeFinished
* ( com . technophobia . substeps . execution . ExecutionNode ) */
public void onNodeFinished ( final IExecutionNode node ) { } } | final Description description = descriptionMap . get ( Long . valueOf ( node . getId ( ) ) ) ; notifyTestFinished ( description ) ; |
public class CommerceWishListItemPersistenceImpl { /** * Returns the commerce wish list items before and after the current commerce wish list item in the ordered set where CProductId = & # 63 ; .
* @ param commerceWishListItemId the primary key of the current commerce wish list item
* @ param CProductId the c produ... | CommerceWishListItem commerceWishListItem = findByPrimaryKey ( commerceWishListItemId ) ; Session session = null ; try { session = openSession ( ) ; CommerceWishListItem [ ] array = new CommerceWishListItemImpl [ 3 ] ; array [ 0 ] = getByCProductId_PrevAndNext ( session , commerceWishListItem , CProductId , orderByComp... |
public class ProcessEngineConfigurationImpl { /** * batch / / / / / */
protected void initBatchHandlers ( ) { } } | if ( batchHandlers == null ) { batchHandlers = new HashMap < String , BatchJobHandler < ? > > ( ) ; MigrationBatchJobHandler migrationHandler = new MigrationBatchJobHandler ( ) ; batchHandlers . put ( migrationHandler . getType ( ) , migrationHandler ) ; ModificationBatchJobHandler modificationHandler = new Modificatio... |
public class Roster { /** * Removes a roster entry from the roster . The roster entry will also be removed from the
* unfiled entries or from any roster group where it could belong and will no longer be part
* of the roster . Note that this is a synchronous call - - Smack must wait for the server
* to send an upd... | final XMPPConnection connection = getAuthenticatedConnectionOrThrow ( ) ; // Only remove the entry if it ' s in the entry list .
// The actual removal logic takes place in RosterPacketListenerProcess > > Packet ( Packet )
if ( ! entries . containsKey ( entry . getJid ( ) ) ) { return ; } RosterPacket packet = new Roste... |
public class FunctionType { /** * Gets the { @ code prototype } property of this function type . This is equivalent to { @ code
* ( ObjectType ) getPropertyType ( " prototype " ) } . */
public final ObjectType getPrototype ( ) { } } | // lazy initialization of the prototype field
if ( prototypeSlot == null ) { String refName = getReferenceName ( ) ; if ( refName == null ) { // Someone is trying to access the prototype of a structural function .
// We don ' t want to give real properties to this prototype , because
// then it would propagate to all s... |
public class CassandraSchemaManager { /** * Sets the properties .
* @ param ksDef
* the ks def
* @ param strategy _ options
* the strategy _ options */
private void setProperties ( KsDef ksDef , Map < String , String > strategy_options ) { } } | Schema schema = CassandraPropertyReader . csmd . getSchema ( databaseName ) ; if ( schema != null && schema . getName ( ) != null && schema . getName ( ) . equalsIgnoreCase ( databaseName ) && schema . getSchemaProperties ( ) != null ) { setKeyspaceProperties ( ksDef , schema . getSchemaProperties ( ) , strategy_option... |
public class BDecoder { /** * 解析重点 */
private static Object decodeInputStream ( InputStream bais , int nesting ) throws IOException { } } | if ( ! bais . markSupported ( ) ) { throw new IOException ( "InputStream must support the mark() method" ) ; } // set a mark
bais . mark ( Integer . MAX_VALUE ) ; // read a byte
int tempByte = bais . read ( ) ; // decide what to do
switch ( tempByte ) { case 'd' : // create a new dictionary object
Map < String , Object... |
public class BitSetBloomFilter { /** * 将字符串的字节表示进行多哈希编码 .
* @ param str 待添加进过滤器的字符串字节表示 .
* @ param hashNumber 要经过的哈希个数 .
* @ return 各个哈希的结果数组 . */
public static int [ ] createHashes ( String str , int hashNumber ) { } } | int [ ] result = new int [ hashNumber ] ; for ( int i = 0 ; i < hashNumber ; i ++ ) { result [ i ] = hash ( str , i ) ; } return result ; |
public class SpringCamelContextFactory { /** * Create a { @ link SpringCamelContext } list from the given bytes */
public static List < SpringCamelContext > createCamelContextList ( byte [ ] bytes , ClassLoader classsLoader ) throws Exception { } } | SpringCamelContextBootstrap bootstrap = new SpringCamelContextBootstrap ( bytes , classsLoader ) ; return bootstrap . createSpringCamelContexts ( ) ; |
public class TaggedLogger { /** * Checks if a given tag and severity level is covered by the logging provider ' s minimum level .
* @ param tag
* Tag to check
* @ param level
* Severity level to check
* @ return { @ code true } if given severity level is covered , otherwise { @ code false } */
private static ... | return provider . getMinimumLevel ( tag ) . ordinal ( ) <= level . ordinal ( ) ; |
public class PyExpressionGenerator { /** * Generate the given object .
* @ param literal the literal .
* @ param it the target for the generated content .
* @ param context the context .
* @ return the literal . */
@ SuppressWarnings ( "static-method" ) protected XExpression _generate ( XNumberLiteral literal ,... | appendReturnIfExpectedReturnedExpression ( it , context ) ; it . append ( literal . getValue ( ) ) ; return literal ; |
public class BasicWorkUnitStream { /** * Apply a filtering function to this stream . */
public WorkUnitStream filter ( Predicate < WorkUnit > predicate ) { } } | if ( this . materializedWorkUnits == null ) { return new BasicWorkUnitStream ( this , Iterators . filter ( this . workUnits , predicate ) , null ) ; } else { return new BasicWorkUnitStream ( this , null , Lists . newArrayList ( Iterables . filter ( this . materializedWorkUnits , predicate ) ) ) ; } |
public class WebsocketUtil { /** * The binary version of createTextHandler */
static public MessageHandler . Whole < byte [ ] > createBinaryHandler ( final MessageHandler . Whole proxy ) { } } | return new MessageHandler . Whole < byte [ ] > ( ) { public void onMessage ( byte [ ] msg ) { proxy . onMessage ( msg ) ; } } ; |
public class MinioClient { /** * Lists object information as { @ code Iterable < Result > < Item > } in given bucket , prefix and recursive flag .
* < / p > < b > Example : < / b > < br >
* < pre > { @ code Iterable < Result < Item > > myObjects = minioClient . listObjects ( " my - bucketname " ) ;
* for ( Result... | return listObjects ( bucketName , prefix , recursive , false ) ; |
public class MorphShape { /** * Check if the shape ' s points are all equal
* @ param a The first shape to compare
* @ param b The second shape to compare
* @ return True if the shapes are equal */
private boolean equalShapes ( Shape a , Shape b ) { } } | a . checkPoints ( ) ; b . checkPoints ( ) ; for ( int i = 0 ; i < a . points . length ; i ++ ) { if ( a . points [ i ] != b . points [ i ] ) { return false ; } } return true ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.