signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class QueryDocumentSnapshot { /** * Returns the fields of the document as a Map . Field values will be converted to their native
* Java representation .
* @ return The fields of the document as a Map . */
@ Nonnull @ Override public Map < String , Object > getData ( ) { } } | Map < String , Object > result = super . getData ( ) ; Preconditions . checkNotNull ( result , "Data in a QueryDocumentSnapshot should be non-null" ) ; return result ; |
public class Server { /** * Stops the running server . */
public synchronized void stop ( ) { } } | running = false ; pool . shutdown ( ) ; try { if ( ! pool . awaitTermination ( 60 , TimeUnit . SECONDS ) ) pool . shutdownNow ( ) ; if ( ! serverSocket . isClosed ( ) ) this . serverSocket . close ( ) ; } catch ( IOException e ) { DBP . printerror ( "Error closing Socket." ) ; DBP . printException ( e ) ; } catch ( Int... |
public class MultiMEProxyHandler { /** * When a link is deleted we need to clean up any neighbours that won ` t
* be deleted at restart time .
* @ param String The name of the foreign bus */
public void cleanupLinkNeighbour ( String busName ) throws SIRollbackException , SIConnectionLostException , SIIncorrectCallE... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "cleanupLinkNeighbour" ) ; Neighbour neighbour = _neighbours . getBusNeighbour ( busName ) ; if ( neighbour != null ) { LocalTransaction tran = _messageProcessor . getTXManager ( ) . createLocalTransaction ( true ) ; deleteN... |
public class CheckpointStatsHistory { /** * Searches for the in progress checkpoint with the given ID and replaces
* it with the given completed or failed checkpoint .
* < p > This is bounded by the maximum number of concurrent in progress
* checkpointsArray , which means that the runtime of this is constant .
... | checkArgument ( ! completedOrFailed . getStatus ( ) . isInProgress ( ) , "Not allowed to replace with in progress checkpoints." ) ; if ( readOnly ) { throw new UnsupportedOperationException ( "Can't create a snapshot of a read-only history." ) ; } // Update the latest checkpoint stats
if ( completedOrFailed . getStatus... |
public class Call { /** * Gets the gather DTMF parameters and results .
* @ param gatherId gather id
* @ return gather DTMF parameters and results
* @ throws IOException unexpected error . */
public Gather getGather ( final String gatherId ) throws Exception { } } | final String gatherPath = StringUtils . join ( new String [ ] { getUri ( ) , "gather" , gatherId } , '/' ) ; final JSONObject jsonObject = toJSONObject ( client . get ( gatherPath , null ) ) ; return new Gather ( client , jsonObject ) ; |
public class AiMatrix4f { /** * Stores the matrix in a new direct ByteBuffer with native byte order .
* The returned buffer can be passed to rendering APIs such as LWJGL , e . g . ,
* as parameter for < code > GL20 . glUniformMatrix4 ( ) < / code > . Be sure to set
* < code > transpose < / code > to < code > true... | ByteBuffer bbuf = ByteBuffer . allocateDirect ( 16 * 4 ) ; bbuf . order ( ByteOrder . nativeOrder ( ) ) ; FloatBuffer fbuf = bbuf . asFloatBuffer ( ) ; fbuf . put ( m_data ) ; fbuf . flip ( ) ; return fbuf ; |
public class GISCoordinates { /** * This function convert France Lambert 93 coordinate to
* France Lambert IV coordinate .
* @ param x is the coordinate in France Lambert 93
* @ param y is the coordinate in France Lambert 93
* @ return the France Lambert IV coordinate . */
@ Pure public static Point2d L93_L4 ( ... | final Point2d ntfLambdaPhi = NTFLambert_NTFLambdaPhi ( x , y , LAMBERT_93_N , LAMBERT_93_C , LAMBERT_93_XS , LAMBERT_93_YS ) ; return NTFLambdaPhi_NTFLambert ( ntfLambdaPhi . getX ( ) , ntfLambdaPhi . getY ( ) , LAMBERT_4_N , LAMBERT_4_C , LAMBERT_4_XS , LAMBERT_4_YS ) ; |
public class ProjectApi { /** * Get a list of variables for the specified project in the specified page range .
* < pre > < code > GitLab Endpoint : GET / projects / : id / variables < / code > < / pre >
* @ param projectIdOrPath projectIdOrPath the project in the form of an Integer ( ID ) , String ( path ) , or Pr... | Response response = get ( Response . Status . OK , getPageQueryParams ( page , perPage ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "variables" ) ; return ( response . readEntity ( new GenericType < List < Variable > > ( ) { } ) ) ; |
public class NodeUtil { /** * This method checks whether a URI template has been defined . If so , then it will
* extract the relevant properties from the URI and rewrite the URI to be the template .
* This results in the URI being a stable / consistent value ( for aggregation purposes )
* while retaining the par... | boolean processed = false ; // Check if URI and template has been defined
if ( node . getUri ( ) != null && node . hasProperty ( Constants . PROP_HTTP_URL_TEMPLATE ) ) { List < String > queryParameters = new ArrayList < String > ( ) ; String template = node . getProperties ( Constants . PROP_HTTP_URL_TEMPLATE ) . itera... |
public class PlatformIndependentMOTD { /** * Returns the file name to be used for serializing a new { @ code MOTD }
* @ return The file name to be used for serializing a new { @ code MOTD } */
private static String getNextSerializationFileName ( ) { } } | List < Integer > usedIndexes = getUsedIndexes ( ) ; int maxUsedIndex ; try { maxUsedIndex = Collections . max ( usedIndexes ) ; } catch ( Exception e ) { maxUsedIndex = - 1 ; } return latestMOTDSerializedFileName . replace ( "{index}" , Integer . toString ( maxUsedIndex + 1 ) ) ; |
public class Tile { /** * Defines the alignment that will be used to align the text
* in the Tile . Keep in mind that this property will not be used
* by every skin .
* @ param ALIGNMENT */
public void setTextAlignment ( final TextAlignment ALIGNMENT ) { } } | if ( null == textAlignment ) { _textAlignment = ALIGNMENT ; fireTileEvent ( RESIZE_EVENT ) ; } else { textAlignment . set ( ALIGNMENT ) ; } |
public class ServiceLocalCache { /** * Prepare to build cache
* @ throws InterruptedException */
public static void prepare ( ) throws InterruptedException { } } | semaphore . acquire ( ) ; if ( cacheReference == masterCache ) { slaveCache . clear ( ) ; } else { masterCache . clear ( ) ; } |
public class AbstractCommand { /** * Detach the button from the { @ link CommandFaceButtonManager } .
* @ param button the button to detach . */
public void detach ( AbstractButton button ) { } } | if ( getDefaultButtonManager ( ) . isAttachedTo ( button ) ) { getDefaultButtonManager ( ) . detach ( button ) ; onButtonDetached ( ) ; } |
import java . lang . Math ; class ComputeSeriesSum { /** * Computes the sum of the series : 13 + 23 + 33 + . . . + n3.
* The formula to calculate the sum of the series uses the square of the sum
* of the first n natural numbers : ( ( n * ( n + 1 ) ) / 2 ) ^ 2.
* Args :
* n : The number of terms in the series . ... | double sum_of_terms = ( ( n * ( n + 1 ) ) / 2.0 ) ; double series_sum = Math . pow ( sum_of_terms , 2 ) ; return series_sum ; |
public class InternalXbaseParser { /** * InternalXbase . g : 5829:1 : ruleJvmWildcardTypeReference returns [ EObject current = null ] : ( ( ) otherlv _ 1 = ' ? ' ( ( ( ( lv _ constraints _ 2_0 = ruleJvmUpperBound ) ) ( ( lv _ constraints _ 3_0 = ruleJvmUpperBoundAnded ) ) * ) | ( ( ( lv _ constraints _ 4_0 = ruleJvmLow... | EObject current = null ; Token otherlv_1 = null ; EObject lv_constraints_2_0 = null ; EObject lv_constraints_3_0 = null ; EObject lv_constraints_4_0 = null ; EObject lv_constraints_5_0 = null ; enterRule ( ) ; try { // InternalXbase . g : 5835:2 : ( ( ( ) otherlv _ 1 = ' ? ' ( ( ( ( lv _ constraints _ 2_0 = ruleJvmUppe... |
public class Headers { /** * Returns headers for the header names and values in the { @ link Map } . */
public static Headers of ( Map < String , String > headers ) { } } | if ( headers == null ) throw new NullPointerException ( "headers == null" ) ; // Make a defensive copy and clean it up .
String [ ] namesAndValues = new String [ headers . size ( ) * 2 ] ; int i = 0 ; for ( Map . Entry < String , String > header : headers . entrySet ( ) ) { if ( header . getKey ( ) == null || header . ... |
public class HeaderUtil { /** * Create headers from a string .
* @ param headersAndValues by the header1 : value1 , header2 : value2 . . .
* @ return the Headers as a Set */
public Map < String , String > createHeadersFromString ( String headersAndValues ) { } } | if ( headersAndValues == null || headersAndValues . isEmpty ( ) ) return Collections . emptyMap ( ) ; final StringTokenizer token = new StringTokenizer ( headersAndValues , "@" ) ; final Map < String , String > theHeaders = new HashMap < String , String > ( token . countTokens ( ) ) ; while ( token . hasMoreTokens ( ) ... |
public class WOrientConf { /** * Extract all WOrientConf configuration with the given prefix from the parent wisdom configuration .
* If the prefix is < code > " orientdb " < / code > and the configuration is : < br / >
* < code >
* orientdb . default . url = " plocal : / home / wisdom / db "
* orientdb . test ... | Configuration orient = config . getConfiguration ( prefix ) ; if ( orient == null ) { return Collections . EMPTY_SET ; } Set < String > subkeys = new HashSet < > ( ) ; for ( String key : orient . asMap ( ) . keySet ( ) ) { subkeys . add ( key ) ; } Collection < WOrientConf > subconfs = new ArrayList < > ( subkeys . siz... |
public class PoolablePreparedStatement { /** * Method setNClob .
* @ param parameterIndex
* @ param reader
* @ throws SQLException
* @ see java . sql . PreparedStatement # setNClob ( int , Reader ) */
@ Override public void setNClob ( int parameterIndex , Reader reader ) throws SQLException { } } | internalStmt . setNClob ( parameterIndex , reader ) ; |
public class ComponentTag { /** * Create the requested component instance */
protected SlingBean createComponent ( ) throws ClassNotFoundException , IllegalAccessException , InstantiationException { } } | SlingBean component = null ; Class < ? extends SlingBean > type = getComponentType ( ) ; if ( type != null ) { BeanFactory factoryRule = type . getAnnotation ( BeanFactory . class ) ; if ( factoryRule != null ) { SlingBeanFactory factory = context . getService ( factoryRule . serviceClass ( ) ) ; if ( factory != null )... |
public class UpdateCenter { /** * Called to determine if there was an incomplete installation , what the statuses of the plugins are */
@ Restricted ( DoNotUse . class ) // WebOnly
public HttpResponse doIncompleteInstallStatus ( ) { } } | try { Map < String , String > jobs = InstallUtil . getPersistedInstallStatus ( ) ; if ( jobs == null ) { jobs = Collections . emptyMap ( ) ; } return HttpResponses . okJSON ( jobs ) ; } catch ( Exception e ) { return HttpResponses . errorJSON ( String . format ( "ERROR: %s" , e . getMessage ( ) ) ) ; } |
public class DeviceManager { /** * Push a PIPE EVENT event if some client had registered it
* @ param pipeName The pipe name
* @ param blob The pipe data
* @ throws DevFailed */
public void pushPipeEvent ( final String pipeName , final PipeValue blob ) throws DevFailed { } } | // set attribute value
final PipeImpl pipe = DeviceImpl . getPipe ( pipeName , device . getPipeList ( ) ) ; try { pipe . updateValue ( blob ) ; // push the event
EventManager . getInstance ( ) . pushPipeEvent ( name , pipeName , blob ) ; } catch ( final DevFailed e ) { EventManager . getInstance ( ) . pushPipeEvent ( n... |
public class AssertKripton { /** * Assert true or unknown param in JQL exception .
* @ param expression
* the expression
* @ param method
* the method
* @ param paramName
* the param name */
public static void assertTrueOrUnknownParamInJQLException ( boolean expression , SQLiteModelMethod method , String pa... | if ( ! expression ) { throw ( new UnknownParamUsedInJQLException ( method , paramName ) ) ; } |
public class BiddableAdGroupCriterion { /** * Sets the biddingStrategyConfiguration value for this BiddableAdGroupCriterion .
* @ param biddingStrategyConfiguration * Bidding configuration for this ad group criterion . To set the
* bids on the ad groups
* use { @ link BiddingStrategyConfiguration # bids } .
* M... | this . biddingStrategyConfiguration = biddingStrategyConfiguration ; |
public class ItemTouchHelper { /** * Checks if we should swap w / another view holder . */
void moveIfNecessary ( ViewHolder viewHolder ) { } } | if ( mRecyclerView . isLayoutRequested ( ) ) { return ; } if ( mActionState != ACTION_STATE_DRAG ) { return ; } final float threshold = mCallback . getMoveThreshold ( viewHolder ) ; final int x = ( int ) ( mSelectedStartX + mDx ) ; final int y = ( int ) ( mSelectedStartY + mDy ) ; if ( Math . abs ( y - viewHolder . ite... |
public class PersistenceBrokerImpl { /** * Check if the references of the specified object have enabled
* the < em > refresh < / em > attribute and refresh the reference if set < em > true < / em > .
* @ throws PersistenceBrokerException if there is a error refreshing collections or references
* @ param obj The o... | Iterator iter ; CollectionDescriptor cds ; ObjectReferenceDescriptor rds ; // to avoid problems with circular references , locally cache the current object instance
Object tmp = getInternalCache ( ) . doLocalLookup ( oid ) ; if ( tmp != null && getInternalCache ( ) . isEnabledMaterialisationCache ( ) ) { /* arminw : Th... |
public class SmartTypeResolver { /** * / * ( non - Javadoc ) */
@ Override public Class resolveType ( Object obj ) { } } | if ( obj instanceof Number ) { Number value = ( Number ) obj ; if ( isDecimal ( value ) ) { return ( isFloat ( value ) ? Float . class : Double . class ) ; } else { return ( isByte ( value ) ? Byte . class : ( isShort ( value ) ? Short . class : ( isInteger ( value ) ? Integer . class : Long . class ) ) ) ; } } return ... |
public class Element { /** * Change the tag of this element . For example , convert a { @ code < span > } to a { @ code < div > } with
* { @ code el . tagName ( " div " ) ; } .
* @ param tagName new tag name for this element
* @ return this element , for chaining */
public Element tagName ( String tagName ) { } } | Validate . notEmpty ( tagName , "Tag name must not be empty." ) ; tag = Tag . valueOf ( tagName , NodeUtils . parser ( this ) . settings ( ) ) ; // maintains the case option of the original parse
return this ; |
public class PrefixedPropertyOverrideConfigurer { /** * ( non - Javadoc )
* @ see org . springframework . core . io . support . PropertiesLoaderSupport #
* mergeProperties ( ) */
@ Override protected Properties mergeProperties ( ) throws IOException { } } | final PrefixedProperties myProperties = createProperties ( ) ; if ( localOverride ) { loadProperties ( myProperties ) ; } if ( localProperties != null ) { for ( int i = 0 ; i < localProperties . length ; i ++ ) { CollectionUtils . mergePropertiesIntoMap ( localProperties [ i ] , myProperties ) ; } } if ( ! localOverrid... |
public class BuildRetentionFactory { /** * Create a Build retention object out of the build
* @ param build The build to create the build retention out of
* @ param discardOldArtifacts Flag whether to discard artifacts of those builds that are to be discarded .
* @ return a new Build retention */
public static Bu... | BuildRetention buildRetention = new BuildRetention ( discardOldArtifacts ) ; LogRotator rotator = null ; BuildDiscarder buildDiscarder = build . getParent ( ) . getBuildDiscarder ( ) ; if ( buildDiscarder != null && buildDiscarder instanceof LogRotator ) { rotator = ( LogRotator ) buildDiscarder ; } if ( rotator == nul... |
public class RoaringBitmap { /** * Create a new Roaring bitmap containing at most maxcardinality integers .
* @ param maxcardinality maximal cardinality
* @ return a new bitmap with cardinality no more than maxcardinality */
@ Override public RoaringBitmap limit ( int maxcardinality ) { } } | RoaringBitmap answer = new RoaringBitmap ( ) ; int currentcardinality = 0 ; for ( int i = 0 ; ( currentcardinality < maxcardinality ) && ( i < this . highLowContainer . size ( ) ) ; i ++ ) { Container c = this . highLowContainer . getContainerAtIndex ( i ) ; if ( c . getCardinality ( ) + currentcardinality <= maxcardin... |
public class Table { /** * Returns the Index List that represent unique constraints . */
public List < IndexHolder > getUniqueIndexHolders ( ) { } } | List < IndexHolder > result = newArrayList ( ) ; for ( IndexHolder ih : indexHoldersByName . values ( ) ) { if ( ih . isUnique ( ) ) { result . add ( ih ) ; } } return result ; |
public class RelationalOperationsMatrix { /** * with the exterior of Line B . */
private void boundaryAreaExteriorLine_ ( int half_edge , int id_a , int id_b ) { } } | if ( m_matrix [ MatrixPredicate . BoundaryExterior ] == 1 ) return ; int parentage = m_topo_graph . getHalfEdgeParentage ( half_edge ) ; if ( ( parentage & id_a ) != 0 && ( parentage & id_b ) == 0 ) m_matrix [ MatrixPredicate . BoundaryExterior ] = 1 ; |
public class Node { /** * Returns the neareast < code > Entry < / code > to the given < code > Cluster < / code > .
* The distance is minimized over < code > Entry . calcDistance ( Cluster ) < / code > .
* @ param buffer The cluster to which the distance has to be compared .
* @ return The < code > Entry < / code... | // TODO : ( Fernando ) Adapt the nearestEntry ( . . . ) function to the new algorithmn .
Entry res = entries [ 0 ] ; double min = res . calcDistance ( buffer ) ; for ( int i = 1 ; i < entries . length ; i ++ ) { Entry entry = entries [ i ] ; if ( entry . isEmpty ( ) ) { break ; } double distance = entry . calcDistance ... |
public class StartExecutionRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( StartExecutionRequest startExecutionRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( startExecutionRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( startExecutionRequest . getStateMachineArn ( ) , STATEMACHINEARN_BINDING ) ; protocolMarshaller . marshall ( startExecutionRequest . getName ( ) , NAME_BINDING ) ;... |
public class SystemPublicMetrics { /** * Add metrics from ManagementFactory if possible . Note that ManagementFactory is not available on Google App Engine .
* @ param result the result */
private void addManagementMetrics ( Collection < Metric < ? > > result ) { } } | try { // Add JVM up time in ms
result . add ( new Metric < > ( "uptime" , ManagementFactory . getRuntimeMXBean ( ) . getUptime ( ) ) ) ; result . add ( new Metric < > ( "systemload.average" , ManagementFactory . getOperatingSystemMXBean ( ) . getSystemLoadAverage ( ) ) ) ; this . addHeapMetrics ( result ) ; addNonHeapM... |
public class appflowparam { /** * Use this API to fetch all the appflowparam resources that are configured on netscaler . */
public static appflowparam get ( nitro_service service ) throws Exception { } } | appflowparam obj = new appflowparam ( ) ; appflowparam [ ] response = ( appflowparam [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; |
public class ScanResult { /** * Returns an ordered list of unique classpath element and module URIs .
* @ return The unique classpath element and module URIs . */
public List < URI > getClasspathURIs ( ) { } } | if ( closed . get ( ) ) { throw new IllegalArgumentException ( "Cannot use a ScanResult after it has been closed" ) ; } final List < URI > classpathElementOrderURIs = new ArrayList < > ( ) ; for ( final ClasspathElement classpathElement : classpathOrder ) { try { final URI uri = classpathElement . getURI ( ) ; if ( uri... |
public class GitlabAPI { /** * Get raw file content
* @ param project The Project
* @ param sha The commit or branch name
* @ param filepath The path of the file
* @ throws IOException on gitlab api call error */
public byte [ ] getRawFileContent ( GitlabProject project , String sha , String filepath ) throws I... | return getRawFileContent ( project . getId ( ) , sha , filepath ) ; |
public class AbstractColorPickerPreference { /** * Obtains the border color of the preview of the preference ' s color from a specific typed
* array .
* @ param typedArray
* The typed array , the border color should be obtained from , as an instance of the
* class { @ link TypedArray } . The typed array may not... | int defaultValue = ContextCompat . getColor ( getContext ( ) , R . color . color_picker_preference_default_preview_border_color ) ; setPreviewBorderColor ( typedArray . getColor ( R . styleable . AbstractColorPickerPreference_previewBorderColor , defaultValue ) ) ; |
public class Index { /** * Custom batch
* @ param actions the array of actions */
public JSONObject batch ( List < JSONObject > actions ) throws AlgoliaException { } } | return postBatch ( actions , RequestOptions . empty ) ; |
public class UnicodeRegex { /** * Utility for loading lines from a file .
* @ param result The result of the appended lines .
* @ param file The file to have an input stream .
* @ param encoding if null , then UTF - 8
* @ return filled list
* @ throws IOException If there were problems opening the file for in... | InputStream is = new FileInputStream ( file ) ; try { return appendLines ( result , is , encoding ) ; } finally { is . close ( ) ; } |
public class LifeTimeConnectionWrapper { /** * Rolls the connection back , resets the connection back to defaults , clears warnings ,
* resets the connection on the server side , and returns the connection to the pool .
* @ throws SQLException */
public void close ( ) throws SQLException { } } | validate ( ) ; try { this . connection . rollback ( ) ; this . connection . clearWarnings ( ) ; this . connectionDefaults . setDefaults ( this . connection ) ; this . connection . reset ( ) ; fireCloseEvent ( ) ; } catch ( SQLException e ) { fireSqlExceptionEvent ( e ) ; throw e ; } |
public class OIDType { /** * The oid ( object id ) is the type id , than a point and the id itself . If in
* the attribute the attribute has no defined type id SQL column name , the
* type from the attribute is used ( this means , the type itself is not
* derived and has no childs ) .
* @ param _ attribute rela... | final List < String > ret = new ArrayList < String > ( ) ; for ( final Object object : _objectList ) { final StringBuilder oid = new StringBuilder ( ) ; if ( object instanceof Object [ ] ) { final Object [ ] temp = ( Object [ ] ) object ; oid . append ( temp [ 0 ] ) . append ( "." ) . append ( temp [ 1 ] ) ; } else { o... |
public class ErrorUtils { /** * Prints an error message showing a location in the given InputBuffer .
* @ param format the format string , must include three placeholders for a string
* ( the error message ) and two integers ( the error line / column respectively )
* @ param errorMessage the error message
* @ p... | checkArgNotNull ( inputBuffer , "inputBuffer" ) ; return printErrorMessage ( format , errorMessage , errorIndex , errorIndex + 1 , inputBuffer ) ; |
public class Driver { /** * { @ inheritDoc }
* @ throws IllegalArgumentException if | info | doesn ' t contain handler
* ( ConnectionHandler ) for property " connection . handler " . */
public acolyte . jdbc . Connection connect ( final String url , final Properties info ) throws SQLException { } } | if ( ! acceptsURL ( url ) ) { return null ; } // end of if
final String [ ] parts = url . substring ( url . lastIndexOf ( "?" ) + 1 ) . split ( "&" ) ; String h = null ; for ( final String p : parts ) { if ( p . startsWith ( "handler=" ) ) { h = p . substring ( 8 ) ; break ; } // end of if
} // end of for
if ( h == nul... |
public class ProcessContext { /** * Returns the usage of the given data attribute by the given
* activity . < br >
* If the given attribute is not used as input by the given activity ,
* the returned set contains no elements . The given activity / attribute
* have to be known by the context , i . e . be contain... | validateActivity ( activity ) ; validateAttribute ( attribute ) ; if ( activityDataUsage . get ( activity ) == null ) { return new HashSet < > ( ) ; // No input data elements for this activity
} if ( activityDataUsage . get ( activity ) . get ( attribute ) == null ) { return new HashSet < > ( ) ; // Attribute not used ... |
public class BaseMessagingEngineImpl { /** * Pass the request to delete a localization point onto the localizer object .
* @ param lp localization point definition */
final void deleteLocalizationPoint ( JsBus bus , LWMConfig dest ) { } } | String thisMethodName = "deleteLocalizationPoint" ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , thisMethodName , dest ) ; } try { _localizer . deleteLocalizationPoint ( bus , dest ) ; } catch ( SIBExceptionBase ex ) { SibTr . exception ( tc , ex ) ; } catch ( SIExce... |
public class CmsSearchIndexTable { /** * Returns the available menu entries . < p >
* @ return the menu entries */
List < I_CmsSimpleContextMenuEntry < Set < String > > > getMenuEntries ( ) { } } | if ( m_menuEntries == null ) { m_menuEntries = new ArrayList < I_CmsSimpleContextMenuEntry < Set < String > > > ( ) ; m_menuEntries . add ( new EntrySources ( ) ) ; // Option for show Sources of index
m_menuEntries . add ( new EntryRebuild ( ) ) ; } return m_menuEntries ; |
public class WSJobRepositoryImpl { /** * { @ inheritDoc } */
@ Override public WSStepThreadExecutionAggregate getStepExecutionAggregate ( long topLevelStepExecutionId ) throws IllegalArgumentException , JobSecurityException { } } | if ( authService != null ) { authService . authorizedStepExecutionRead ( topLevelStepExecutionId ) ; } return persistenceManagerService . getStepExecutionAggregate ( topLevelStepExecutionId ) ; |
public class QueueProcessor { /** * This method is overridden over parent class so that one piece of data is taken
* from the queue and { @ link # process ( Object ) } is invoked . < br >
* 这个方法被重载了 , 从而队列中的一份数据会被取出并调用 { @ link # process ( Object ) } 方法 。 */
@ Override protected void consume ( ) { } } | E obj = null ; try { obj = queue . take ( ) ; } catch ( InterruptedException e ) { // thread . isInterrupted ( ) ;
return ; } process ( obj ) ; |
public class NearestEdgeSnapAlgorithm { /** * Set the full list of target geometries . These are the geometries where to this snapping algorithm can snap .
* @ param geometries The list of target geometries . */
public void setGeometries ( Geometry [ ] geometries ) { } } | coordinates . clear ( ) ; for ( Geometry geometry : geometries ) { addCoordinateArrays ( geometry , coordinates ) ; } |
public class Weighers { /** * A weigher where an entry has a weight of < tt > 1 < / tt > . A map bounded with
* this weigher will evict when the number of key - value pairs exceeds the
* capacity .
* @ param < K > The key type
* @ param < V > The value type
* @ return A weigher where a value takes one unit of... | "cast" , "unchecked" } ) public static < K , V > EntryWeigher < K , V > entrySingleton ( ) { return ( EntryWeigher < K , V > ) SingletonEntryWeigher . INSTANCE ; |
public class Nucleotide { /** * return the phosphate monomer of this nucleotide
* @ return phosphate monomer */
public Monomer getPhosphateMonomer ( ) { } } | MonomerFactory factory = null ; try { factory = MonomerFactory . getInstance ( ) ; } catch ( Exception ex ) { Logger . getLogger ( Nucleotide . class . getName ( ) ) . log ( Level . SEVERE , "Unable to initialize monomer factory" , ex ) ; } return getPhosphateMonomer ( factory . getMonomerStore ( ) ) ; |
public class Util { /** * A utility method that creates a deep clone of the specified object .
* There is no other way of doing this reliably .
* @ param fromBean java bean to be cloned .
* @ return a new java bean cloned from fromBean . */
protected static Object deepCopy ( Object fromBean ) { } } | ByteArrayOutputStream bos = new ByteArrayOutputStream ( ) ; XMLEncoder out = new XMLEncoder ( bos ) ; out . writeObject ( fromBean ) ; out . close ( ) ; ByteArrayInputStream bis = new ByteArrayInputStream ( bos . toByteArray ( ) ) ; XMLDecoder in = new XMLDecoder ( bis , null , null , JsonDBTemplate . class . getClassL... |
public class Util { /** * / * Use alpha channel to compute percentage RGB share in blending .
* * Background color may be visible only if foreground alpha is smaller than 100% */
public static int alphaMixColors ( int backgroundColor , int foregroundColor ) { } } | final byte ALPHA_CHANNEL = 24 ; final byte RED_CHANNEL = 16 ; final byte GREEN_CHANNEL = 8 ; final byte BLUE_CHANNEL = 0 ; final double ap1 = ( double ) ( backgroundColor >> ALPHA_CHANNEL & 0xff ) / 255d ; final double ap2 = ( double ) ( foregroundColor >> ALPHA_CHANNEL & 0xff ) / 255d ; final double ap = ap2 + ( ap1 *... |
public class Metrics { /** * if metrics is not null returns a Counter instance for a given component and method name .
* @ param metrics factory instance to get timer .
* @ param component name for the requested timer .
* @ param methodName for the requested timer .
* @ return counter instance . */
public stati... | if ( metrics != null ) { return metrics . getCounter ( component , methodName ) ; } else { return null ; } |
public class SortedGrouping { /** * Uses a custom partitioner for the grouping .
* @ param partitioner The custom partitioner .
* @ return The grouping object itself , to allow for method chaining . */
public SortedGrouping < T > withPartitioner ( Partitioner < ? > partitioner ) { } } | Preconditions . checkNotNull ( partitioner ) ; getKeys ( ) . validateCustomPartitioner ( partitioner , null ) ; this . customPartitioner = partitioner ; return this ; |
public class RubyIO { /** * Reads the content of a file .
* @ return String
* @ throws IllegalStateException
* if file is not readable */
public String read ( ) { } } | if ( mode . isReadable ( ) == false ) throw new IllegalStateException ( "IOError: not opened for reading" ) ; StringBuilder sb = new StringBuilder ( ) ; try { BufferedReader reader = new BufferedReader ( new FileReader ( file ) ) ; char [ ] buf = new char [ 1024 ] ; int numOfChars = 0 ; while ( ( numOfChars = reader . ... |
public class BaasACL { /** * Returns the roles that have the specified { @ code grant }
* @ param grant a { @ link com . baasbox . android . Grant }
* @ return */
public Set < String > rolesWithGrant ( Grant grant ) { } } | if ( grant == null ) throw new IllegalArgumentException ( "grant cannot be null" ) ; return rolesGrants . get ( grant ) ; |
public class policydataset { /** * Use this API to add policydataset . */
public static base_response add ( nitro_service client , policydataset resource ) throws Exception { } } | policydataset addresource = new policydataset ( ) ; addresource . name = resource . name ; addresource . type = resource . type ; addresource . indextype = resource . indextype ; return addresource . add_resource ( client ) ; |
public class OkCoinTradeServiceRaw { /** * 下单交易
* @ param symbol
* @ param type
* @ param price
* @ param amount ( 只能是整数 )
* @ return
* @ throws IOException */
public OkCoinTradeResult trade ( String symbol , String type , String price , String amount ) throws IOException { } } | OkCoinTradeResult tradeResult = okCoin . trade ( apikey , symbol , type , price , amount , signatureCreator ( ) ) ; return returnOrThrow ( tradeResult ) ; |
public class LocIterator { /** * Get portion of bounding location that has not yet been retrieved by next ( ) method .
* @ return The location not yet retrieved . */
public Location remainder ( ) { } } | Location remainder = null ; if ( mPosition == 0 ) { remainder = mBounds ; } else { if ( mIncrement > 0 ) { remainder = mBounds . suffix ( mPosition ) ; } else { remainder = mBounds . prefix ( mPosition ) ; } } return remainder ; |
public class CanvasOverlay { /** * Get a { @ link VerticalLine } instance
* @ return VerticalLine */
public VerticalLine verticalLineInstance ( ) { } } | LineObject lineObject = new LineObject ( ) ; VerticalLine verticalLine = lineObject . verticalLineInstance ( ) ; objectsInstance ( ) . add ( lineObject ) ; return verticalLine ; |
public class AbstractBinaryMemcacheDecoder { /** * Helper method to create a message indicating a invalid decoding result .
* @ param cause the cause of the decoding failure .
* @ return a valid message indicating failure . */
private M invalidMessage ( Exception cause ) { } } | state = State . BAD_MESSAGE ; M message = buildInvalidMessage ( ) ; message . setDecoderResult ( DecoderResult . failure ( cause ) ) ; return message ; |
public class AnimaQuery { /** * generate " < " statement , simultaneous setting value
* @ param column table column name [ sql ]
* @ param value column value
* @ return AnimaQuery */
public AnimaQuery < T > lt ( String column , Object value ) { } } | conditionSQL . append ( " AND " ) . append ( column ) . append ( " < ?" ) ; paramValues . add ( value ) ; return this ; |
public class GeomUtil { /** * Combine two shapes
* @ param target The target shape
* @ param missing The second shape to apply
* @ param subtract True if we should subtract missing from target , otherwise union
* @ param start The point to start at
* @ return The newly created shape */
private Shape combineSi... | Shape current = target ; Shape other = missing ; int point = start ; int dir = 1 ; Polygon poly = new Polygon ( ) ; boolean first = true ; int loop = 0 ; // while we ' ve not reached the same point
float px = current . getPoint ( point ) [ 0 ] ; float py = current . getPoint ( point ) [ 1 ] ; while ( ! poly . hasVertex... |
public class RepositoryManagerImpl { /** * Returns the { @ link javax . jcr . Repository } instance with the given name .
* @ param repositoryName a { @ code non - null } string
* @ return a { @ link javax . jcr . Repository } instance , never { @ code null }
* @ throws org . wisdom . jcr . modeshape . api . NoSu... | Repository repository = null ; try { Map < String , String > map = new HashMap < > ( ) ; map . put ( org . modeshape . jcr . api . RepositoryFactory . REPOSITORY_NAME , repositoryName ) ; repository = repositoryFactory . getRepository ( map ) ; } catch ( RepositoryException e ) { throw new NoSuchRepositoryException ( W... |
public class PgResultSet { /** * # if mvn . project . property . postgresql . jdbc . spec > = " JDBC4.2" */
private LocalDateTime getLocalDateTime ( int i ) throws SQLException { } } | checkResultSet ( i ) ; if ( wasNullFlag ) { return null ; } int col = i - 1 ; int oid = fields [ col ] . getOID ( ) ; if ( oid != Oid . TIMESTAMP ) { throw new PSQLException ( GT . tr ( "Cannot convert the column of type {0} to requested type {1}." , Oid . toString ( oid ) , "timestamp" ) , PSQLState . DATA_TYPE_MISMAT... |
public class TransactionIntegrationImpl { /** * { @ inheritDoc } */
public boolean isFirstResource ( ManagedConnection mc ) { } } | return mc != null && mc instanceof org . ironjacamar . core . spi . transaction . FirstResource ; |
public class RecastMesh { /** * diagonal of P . */
private static boolean diagonal ( int i , int j , int n , int [ ] verts , int [ ] indices ) { } } | return inCone ( i , j , n , verts , indices ) && diagonalie ( i , j , n , verts , indices ) ; |
public class Vector3f { /** * / * ( non - Javadoc )
* @ see org . joml . Vector3fc # distanceSquared ( org . joml . Vector3fc ) */
public float distanceSquared ( Vector3fc v ) { } } | return distanceSquared ( v . x ( ) , v . y ( ) , v . z ( ) ) ; |
public class TldDetection { /** * Detects the object inside the image . Eliminates candidate regions using a cascade of tests */
protected void detectionCascade ( FastQueue < ImageRectangle > cascadeRegions ) { } } | // initialize data structures
success = false ; ambiguous = false ; best = null ; candidateDetections . reset ( ) ; localMaximums . reset ( ) ; ambiguousRegions . clear ( ) ; storageMetric . reset ( ) ; storageIndexes . reset ( ) ; storageRect . clear ( ) ; fernRegions . clear ( ) ; fernInfo . reset ( ) ; int totalP = ... |
public class FontLoader { /** * Apply a typeface to a given view by id
* @ param activity the activity in which the textview resides
* @ param viewId the id of the textview you want to style
* @ param type the typeface code to apply */
public static void apply ( Activity activity , int viewId , Face type ) { } } | TextView text = ( TextView ) activity . findViewById ( viewId ) ; if ( text != null ) apply ( text , type ) ; |
public class WpsProcessExecuteService { /** * Removes the passed WpsProcessExecute from all WpsPlugins and afterwards
* deletes the WpsProcessExecute itself . This overrides the generic method
* to delete { @ link AbstractCrudService # delete ( de . terrestris . shoguncore . model . PersistentObject ) } .
* @ par... | if ( wpsPluginService == null ) { LOG . error ( "WPSProcessExecute cannot be deleted, failed to autowire WpsPluginService" ) ; return ; } WpsPluginDao < WpsPlugin > wpsPluginDao = wpsPluginService . getDao ( ) ; SimpleExpression eqProcess = Restrictions . eq ( "process" , wpsProcessExecute ) ; List < WpsPlugin > wpsPlu... |
public class NeuralNetworkParser { /** * 获取某个状态的上下文
* @ param s 状态
* @ param ctx 上下文 */
void get_context ( final State s , Context ctx ) { } } | ctx . S0 = ( s . stack . size ( ) > 0 ? s . stack . get ( s . stack . size ( ) - 1 ) : - 1 ) ; ctx . S1 = ( s . stack . size ( ) > 1 ? s . stack . get ( s . stack . size ( ) - 2 ) : - 1 ) ; ctx . S2 = ( s . stack . size ( ) > 2 ? s . stack . get ( s . stack . size ( ) - 3 ) : - 1 ) ; ctx . N0 = ( s . buffer < s . ref .... |
public class CmsXmlUtils { /** * Removes the last Xpath index from the given path . < p >
* Examples : < br >
* < code > title < / code > is left untouched < br >
* < code > title [ 1 ] < / code > becomes < code > title < / code > < br >
* < code > title / subtitle < / code > is left untouched < br >
* < code... | int pos1 = path . lastIndexOf ( '/' ) ; int pos2 = path . lastIndexOf ( '[' ) ; if ( ( pos2 < 0 ) || ( pos1 > pos2 ) ) { return path ; } return path . substring ( 0 , pos2 ) ; |
public class Version { /** * < pre >
* Environment variables available to the application .
* Only returned in ` GET ` requests if ` view = FULL ` is set .
* < / pre >
* < code > map & lt ; string , string & gt ; env _ variables = 104 ; < / code > */
public boolean containsEnvVariables ( java . lang . String ke... | if ( key == null ) { throw new java . lang . NullPointerException ( ) ; } return internalGetEnvVariables ( ) . getMap ( ) . containsKey ( key ) ; |
public class Session { /** * { @ inheritDoc } */
@ Override public void waitForRunningCommit ( ) throws TTIOException { } } | if ( mCommitRunning != null ) { try { // long time = System . currentTimeMillis ( ) ;
mCommitRunning . get ( ) ; // System . out . println ( System . currentTimeMillis ( ) - time ) ;
mCommitRunning = null ; } catch ( InterruptedException | ExecutionException exc ) { throw new TTIOException ( exc ) ; } } |
public class GetSMSAttributesRequest { /** * A list of the individual attribute names , such as < code > MonthlySpendLimit < / code > , for which you want values .
* For all attribute names , see < a
* href = " https : / / docs . aws . amazon . com / sns / latest / api / API _ SetSMSAttributes . html " > SetSMSAttr... | if ( this . attributes == null ) { setAttributes ( new com . amazonaws . internal . SdkInternalList < String > ( attributes . length ) ) ; } for ( String ele : attributes ) { this . attributes . add ( ele ) ; } return this ; |
public class JarXtractor { /** * Extract class names from the given jar . This method is for debugging
* purpose .
* @ param jarName
* path to jar file
* @ throws IOException
* in case file is not found */
private static List < String > extractClassNames ( String jarName ) throws IOException { } } | List < String > classes = new LinkedList < String > ( ) ; ZipInputStream orig = new ZipInputStream ( new FileInputStream ( jarName ) ) ; for ( ZipEntry entry = orig . getNextEntry ( ) ; entry != null ; entry = orig . getNextEntry ( ) ) { String fullName = entry . getName ( ) . replaceAll ( "/" , "." ) . replace ( ".cla... |
public class Configuration { /** * Used in erb */
public Map < String , Map < String , Object > > getPropertyMetadataAndValuesAsMap ( ) { } } | Map < String , Map < String , Object > > configMap = new HashMap < > ( ) ; for ( ConfigurationProperty property : this ) { Map < String , Object > mapValue = new HashMap < > ( ) ; mapValue . put ( "isSecure" , property . isSecure ( ) ) ; if ( property . isSecure ( ) ) { mapValue . put ( VALUE_KEY , property . getEncryp... |
public class MessageProcessor { /** * Starts a new thread from the MP Consumers Thread Pool Only consumer
* threads should use this thread pool .
* @ param runnable
* @ throws InterruptedException */
public void startNewThread ( Runnable runnable ) throws InterruptedException { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "startNewThread" ) ; if ( _consumerThreadPool == null ) { createConsumerThreadPool ( ) ; } try { _consumerThreadPool . execute ( runnable , ThreadPool . EXPAND_WHEN_QUEUE_IS_FULL_WAIT_AT_LIMIT ) ; } catch ( ThreadPoolQueueIs... |
public class ClientImpl { /** * Asynchronously invoke a procedure call .
* @ param callback TransactionCallback that will be invoked with procedure results .
* @ param batchTimeout procedure invocation batch timeout .
* @ param procName class name ( not qualified by package ) of the procedure to execute .
* @ p... | if ( callback instanceof ProcedureArgumentCacher ) { ( ( ProcedureArgumentCacher ) callback ) . setArgs ( parameters ) ; } long handle = m_handle . getAndIncrement ( ) ; ProcedureInvocation invocation = new ProcedureInvocation ( handle , batchTimeout , allPartition , procName , parameters ) ; if ( m_isShutdown ) { retu... |
public class AWSIotClient { /** * Lists OTA updates .
* @ param listOTAUpdatesRequest
* @ return Result of the ListOTAUpdates operation returned by the service .
* @ throws InvalidRequestException
* The request is not valid .
* @ throws ThrottlingException
* The rate exceeds the limit .
* @ throws Unautho... | request = beforeClientExecution ( request ) ; return executeListOTAUpdates ( request ) ; |
public class AbstractTextFileConverter { /** * Initializes the resource storing the MIME encoding names and its mapping to classic < code > java . io < / code > encoding names . */
private static void initEncodingResource ( ) { } } | try { theEncodingResource = ResourceBundle . getBundle ( RB_PREXIX + RB_ENCODING ) ; } // try
catch ( MissingResourceException _exception ) { _exception . printStackTrace ( ) ; } // catch ( MissingResourceException _ exception ) |
public class Trie { /** * 建立failure表 */
private void constructFailureStates ( ) { } } | Queue < State > queue = new LinkedBlockingDeque < State > ( ) ; // 第一步 , 将深度为1的节点的failure设为根节点
for ( State depthOneState : this . rootState . getStates ( ) ) { depthOneState . setFailure ( this . rootState ) ; queue . add ( depthOneState ) ; } this . failureStatesConstructed = true ; // 第二步 , 为深度 > 1 的节点建立failure表 , 这是... |
public class HttpResponseImpl { /** * @ see com . ibm . websphere . http . HttpResponse # setContentLength ( long ) */
@ Override public void setContentLength ( long length ) { } } | this . message . setContentLength ( length ) ; if ( this . body != null ) { this . body . setContentLength ( length ) ; } |
public class ClassUtil { /** * 获得指定类过滤后的Public方法列表
* @ param clazz 查找方法的类
* @ param filter 过滤器
* @ return 过滤后的方法列表 */
public static List < Method > getPublicMethods ( Class < ? > clazz , Filter < Method > filter ) { } } | return ReflectUtil . getPublicMethods ( clazz , filter ) ; |
public class TouchImageView { /** * Performs boundary checking and fixes the image matrix if it
* is out of bounds . */
private void fixTrans ( ) { } } | matrix . getValues ( m ) ; float transX = m [ Matrix . MTRANS_X ] ; float transY = m [ Matrix . MTRANS_Y ] ; float fixTransX = getFixTrans ( transX , viewWidth , getImageWidth ( ) ) ; float fixTransY = getFixTrans ( transY , viewHeight , getImageHeight ( ) ) ; if ( fixTransX != 0 || fixTransY != 0 ) { matrix . postTran... |
public class FeatureWebSecurityCollaboratorImpl { /** * { @ inheritDoc } */
@ Override public RoleSet getRolesForAccessId ( String resourceName , String accessId , String realmName ) { } } | RoleSet roles = null ; AuthorizationTableService authzTable = featureTables . get ( resourceName ) ; if ( authzTable != null ) roles = authzTable . getRolesForAccessId ( resourceName , accessId , realmName ) ; return roles ; |
public class HelpDoclet { /** * Process the classes that have been included by the javadoc process in the rootDoc object .
* @ param rootDoc root structure containing the the set of objects accumulated by the javadoc process */
private void processDocs ( final RootDoc rootDoc ) { } } | this . rootDoc = rootDoc ; // Get a list of all the features and groups that we ' ll actually retain
workUnits = computeWorkUnits ( ) ; final Set < String > uniqueGroups = new HashSet < > ( ) ; final List < Map < String , String > > featureMaps = new ArrayList < > ( ) ; final List < Map < String , String > > groupMaps ... |
public class MPDUtility { /** * This method converts between the duration units representation
* used in the MPP file , and the standard MPX duration units .
* If the supplied units are unrecognised , the units default to days .
* @ param type MPP units
* @ return MPX units */
public static final TimeUnit getDu... | TimeUnit units ; switch ( type & DURATION_UNITS_MASK ) { case 3 : { units = TimeUnit . MINUTES ; break ; } case 4 : { units = TimeUnit . ELAPSED_MINUTES ; break ; } case 5 : { units = TimeUnit . HOURS ; break ; } case 6 : { units = TimeUnit . ELAPSED_HOURS ; break ; } case 8 : { units = TimeUnit . ELAPSED_DAYS ; break ... |
public class Extension { /** * Returns a new collection of all AuthenticationProvider subclasses having
* the given names . If any class does not exist or isn ' t actually a
* subclass of AuthenticationProvider , an exception will be thrown , and
* no further AuthenticationProvider classes will be loaded .
* @ ... | // If no classnames are provided , just return an empty list
if ( names == null ) return Collections . < Class < AuthenticationProvider > > emptyList ( ) ; // Define all auth provider classes
Collection < Class < AuthenticationProvider > > classes = new ArrayList < Class < AuthenticationProvider > > ( names . size ( ) ... |
public class DefaultFeatureForm { /** * Get a string value from the form , and place it in < code > attribute < / code > .
* @ param name attribute name
* @ param attribute attribute to put value
* @ since 1.11.1 */
@ Api public void getValue ( String name , StringAttribute attribute ) { } } | attribute . setValue ( ( String ) formWidget . getValue ( name ) ) ; |
public class BranchCreator { /** * Creates required cadmium branches using the given basename .
* This will also create the source branch . The branches created will be as follows :
* < ul >
* < li > < i > basename < / i > < / li >
* < li > cd - < i > basename < / i > < / li >
* < li > cfg - < i > basename < ... | createNewBranch ( null , basename , empty , log ) ; createNewBranch ( "cd" , basename , empty , log ) ; createNewBranch ( "cfg" , basename , empty , log ) ; |
public class TimeZoneNamesImpl { /** * ( non - Javadoc )
* @ see android . icu . text . TimeZoneNames # getTimeZoneDisplayName ( java . lang . String , android . icu . text . TimeZoneNames . NameType ) */
@ Override public String getTimeZoneDisplayName ( String tzID , NameType type ) { } } | if ( tzID == null || tzID . length ( ) == 0 ) { return null ; } return loadTimeZoneNames ( tzID ) . getName ( type ) ; |
public class ApiModelToGedObjectVisitor { /** * { @ inheritDoc } */
@ Override public void visit ( final ApiPerson person ) { } } | gedObject = new Person ( builder . getRoot ( ) , new ObjectId ( person . getString ( ) ) ) ; new AttributeListHelper ( this ) . addAttributes ( person ) ; |
public class CustomTag { /** * Retrieves attribute name . */
public String getAttributeName ( ) { } } | return ! StringUtils . isEmpty ( attribute ) && attribute . contains ( "." ) ? attribute . substring ( attribute . indexOf ( "." ) + 1 , attribute . length ( ) ) : "" ; |
public class AbstractZKClient { /** * Returns both the data as a byte [ ] as well as the stat ( and sets a watcher if not null ) */
@ Override public ZKData < byte [ ] > getZKByteData ( String path , Watcher watcher ) throws InterruptedException , KeeperException { } } | Stat stat = new Stat ( ) ; return new ZKData < byte [ ] > ( getData ( path , watcher , stat ) , stat ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.