signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class ResourceIndexImpl { /** * { @ inheritDoc } */
public void add ( Triple triple , boolean flush ) throws IOException , TrippiException { } } | _writer . add ( triple , flush ) ; |
public class NumberExpression { /** * Create a cast to String expression
* @ see java . lang . Object # toString ( )
* @ return string representation */
public StringExpression stringValue ( ) { } } | if ( stringCast == null ) { stringCast = Expressions . stringOperation ( Ops . STRING_CAST , mixin ) ; } return stringCast ; |
public class BasicSqlQueryParser { /** * Remove all leading and trailing single - quotes , double - quotes , or square brackets from the supplied text . If multiple ,
* properly - paired quotes or brackets are found , they will all be removed .
* @ param text the input text ; may not be null
* @ param position th... | return removeBracketsAndQuotes ( text , true , position ) ; |
public class ModuleDotGraph { /** * Returns a Graph containing only requires transitive edges
* with transitive reduction . */
public Graph < String > requiresTransitiveGraph ( Configuration cf , Set < String > roots ) { } } | Deque < String > deque = new ArrayDeque < > ( roots ) ; Set < String > visited = new HashSet < > ( ) ; Graph . Builder < String > builder = new Graph . Builder < > ( ) ; while ( deque . peek ( ) != null ) { String mn = deque . pop ( ) ; if ( visited . contains ( mn ) ) continue ; visited . add ( mn ) ; builder . addNod... |
public class InMemoryMessageStore { /** * ( non - Javadoc )
* @ see net . timewalker . ffmq4 . local . destination . store . impl . AbstractMessageStore # storeMessage ( net . timewalker . ffmq4 . common . message . AbstractMessage , int ) */
@ Override protected int storeMessage ( AbstractMessage message , int previ... | return ( ( InMemoryLinkedDataStore ) dataStore ) . store ( message , previousHandle ) ; |
public class ManagedChannelImpl { /** * Must be run from syncContext */
private void maybeTerminateChannel ( ) { } } | if ( terminated ) { return ; } if ( shutdown . get ( ) && subchannels . isEmpty ( ) && oobChannels . isEmpty ( ) ) { channelLogger . log ( ChannelLogLevel . INFO , "Terminated" ) ; channelz . removeRootChannel ( this ) ; terminated = true ; terminatedLatch . countDown ( ) ; executorPool . returnObject ( executor ) ; ba... |
public class AutoRegisterActionServlet { /** * Last chance to handle an unhandled action URI .
* @ return < code > true < / code > if this method handled it ( by forwarding somewhere or writing to the response ) . */
protected boolean processUnhandledAction ( HttpServletRequest request , HttpServletResponse response ... | return false ; |
public class CeSymm { /** * Analyze the symmetries of the input Atom array using the provided
* parameters .
* @ param atoms
* representative Atom array of the Structure
* @ param param
* CeSymmParameters bean
* @ return CeSymmResult
* @ throws StructureException */
public static CeSymmResult analyze ( At... | if ( atoms . length < 1 ) throw new IllegalArgumentException ( "Empty Atom array given." ) ; // If the SSE information is needed , we calculate it if the user did not
if ( params . getSSEThreshold ( ) > 0 ) { Structure s = atoms [ 0 ] . getGroup ( ) . getChain ( ) . getStructure ( ) ; if ( SecStrucTools . getSecStrucIn... |
public class PortMapping { /** * Return the content of the mapping as an array with all specifications as given
* @ return port mappings as JSON array or null if no mappings exist */
public JsonArray toJson ( ) { } } | Map < String , Integer > portMap = getContainerPortToHostPortMap ( ) ; if ( portMap . isEmpty ( ) ) { return null ; } JsonArray ret = new JsonArray ( ) ; Map < String , String > bindToMap = getBindToHostMap ( ) ; for ( Map . Entry < String , Integer > entry : portMap . entrySet ( ) ) { JsonObject mapping = new JsonObje... |
public class SearchCommService { /** * Execute a search by criterion command .
* @ param criterion criterion
* @ param mapWidget map widget
* @ param onFinished callback
* @ param onError
* callback to execute in case of error , optional use null if you
* don ' t need it */
public static void searchByCriter... | FeatureSearchRequest request = new FeatureSearchRequest ( ) ; request . setMapCrs ( mapWidget . getMapModel ( ) . getCrs ( ) ) ; request . setCriterion ( criterion ) ; request . setLayerFilters ( getLayerFiltersForCriterion ( criterion , mapWidget . getMapModel ( ) ) ) ; request . setFeatureIncludes ( featureIncludes )... |
public class StreamableHashMap { /** * Writes our custom streamable fields . */
public void writeObject ( ObjectOutputStream out ) throws IOException { } } | int ecount = size ( ) ; out . writeInt ( ecount ) ; for ( Map . Entry < K , V > entry : entrySet ( ) ) { out . writeObject ( entry . getKey ( ) ) ; out . writeObject ( entry . getValue ( ) ) ; } |
public class Task { /** * Adds an Task - based continuation to this task that will be scheduled using the executor ,
* returning a new task that completes after the task returned by the continuation has completed . */
public < TContinuationResult > Task < TContinuationResult > continueWithTask ( final Continuation < ... | boolean completed ; final bolts . TaskCompletionSource < TContinuationResult > tcs = new bolts . TaskCompletionSource < > ( ) ; synchronized ( lock ) { completed = this . isCompleted ( ) ; if ( ! completed ) { this . continuations . add ( new Continuation < TResult , Void > ( ) { @ Override public Void then ( Task < TR... |
public class DefaultCommunicationClientImpl { /** * 直接提交一个异步任务 */
public Future submit ( Runnable call ) { } } | Assert . notNull ( this . factory , "No factory specified" ) ; return executor . submit ( call ) ; |
public class DistributedStoreManager { protected void sleepAfterWrite ( StoreTransaction txh , MaskedTimestamp mustPass ) throws BackendException { } } | assert mustPass . getDeletionTime ( times ) < mustPass . getAdditionTime ( times ) ; try { times . sleepPast ( mustPass . getAdditionTimeInstant ( times ) ) ; } catch ( InterruptedException e ) { throw new PermanentBackendException ( "Unexpected interrupt" , e ) ; } |
public class DFSOutputStream { /** * Closes this output stream and releases any system
* resources associated with this stream . */
private synchronized void closeInternal ( ) throws IOException { } } | dfsClient . checkOpen ( ) ; isClosed ( ) ; try { eventStartWrite ( ) ; flushBuffer ( true , false ) ; // flush from all upper layers
eventCloseAfterFlushBuffer ( ) ; // Mark that this packet is the last packet in block .
// If there are no outstanding packets and the last packet
// was not the last one in the current b... |
public class ClassPathScanHandler { /** * 扫描包
* @ param basePackage 基础包
* @ param recursive 是否递归搜索子包
* @ return Set */
public Set < Class < ? > > getPackageAllClasses ( String basePackage , boolean recursive ) { } } | Set < Class < ? > > classes = new LinkedHashSet < Class < ? > > ( ) ; String packageName = basePackage ; if ( packageName . endsWith ( "." ) ) { packageName = packageName . substring ( 0 , packageName . lastIndexOf ( '.' ) ) ; } String package2Path = packageName . replace ( '.' , '/' ) ; Enumeration < URL > dirs ; try ... |
public class DatastoreUtils { /** * Converts the given list of model objects to an array of native Entity objects .
* @ param entities
* the model objects to convert .
* @ param entityManager
* the entity manager
* @ param intent
* the intent of marshalling
* @ return the equivalent Entity array */
static... | Entity [ ] nativeEntities = new Entity [ entities . size ( ) ] ; for ( int i = 0 ; i < entities . size ( ) ; i ++ ) { nativeEntities [ i ] = ( Entity ) Marshaller . marshal ( entityManager , entities . get ( i ) , intent ) ; } return nativeEntities ; |
public class RestEventManager { /** * { @ inheritDoc } */
@ Override public Collection < Response > getResponses ( String earliest ) { } } | GenericType < Collection < Response > > responseType = new GenericType < Collection < Response > > ( ) { } ; Collection < Response > responses = target . path ( "api" ) . path ( "v1.0" ) . path ( "responses" ) . queryParam ( "earliest" , earliest ) . request ( ) . header ( clientApplicationIdName , clientApplicationIdV... |
public class DefaultGroovyMethods { /** * Implements the setAt ( int idx ) method for primitive type arrays .
* @ param self an object
* @ param idx the index of interest
* @ param newValue the new value to be put into the index of interest
* @ return the added value
* @ since 1.5.0 */
protected static Object... | Array . set ( self , normaliseIndex ( idx , Array . getLength ( self ) ) , newValue ) ; return newValue ; |
public class FullyQualifiedNameImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public void setFQName ( String newFQName ) { } } | String oldFQName = fqName ; fqName = newFQName ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . FULLY_QUALIFIED_NAME__FQ_NAME , oldFQName , fqName ) ) ; |
public class DULogEntry { /** * Removes the given attribute from the set of managed attributes .
* @ param attribute Attribute to remove .
* @ return if the set of managed attributes was modified ; < br >
* < code > false < / code > otherwise .
* @ throws LockingException if the corresponding field is locked < ... | if ( isFieldLocked ( EntryField . DATA ) ) { if ( dataUsage . containsKey ( attribute ) ) { throw new LockingException ( EntryField . DATA ) ; } return false ; } else { return dataUsage . remove ( attribute ) != null ; } |
public class TwitterImpl { /** * / * Saved Searches Resources */
@ Override public ResponseList < SavedSearch > getSavedSearches ( ) throws TwitterException { } } | return factory . createSavedSearchList ( get ( conf . getRestBaseURL ( ) + "saved_searches/list.json" ) ) ; |
public class hqlParser { /** * hql . g : 356:1 : ascendingOrDescending : ( ( a = ' asc ' | a = ' ascending ' ) - > ^ ( ASCENDING [ $ a . getText ( ) ] ) | ( d = ' desc ' | d = ' descending ' ) - > ^ ( DESCENDING [ $ d . getText ( ) ] ) ) ; */
public final hqlParser . ascendingOrDescending_return ascendingOrDescending (... | hqlParser . ascendingOrDescending_return retval = new hqlParser . ascendingOrDescending_return ( ) ; retval . start = input . LT ( 1 ) ; CommonTree root_0 = null ; Token a = null ; Token d = null ; CommonTree a_tree = null ; CommonTree d_tree = null ; RewriteRuleTokenStream stream_134 = new RewriteRuleTokenStream ( ada... |
public class Operators { /** * returns Object covering both Double and Boolean return types */
static Object doubleBinaryOperation ( double lhs , double rhs , int kind ) throws UtilEvalError { } } | switch ( kind ) { // arithmetic
case PLUS : if ( lhs > 0d && ( Double . MAX_VALUE - lhs ) < rhs ) break ; return lhs + rhs ; case MINUS : if ( lhs < 0d && ( - Double . MAX_VALUE - lhs ) > - rhs ) break ; return lhs - rhs ; case STAR : if ( lhs != 0 && Double . MAX_VALUE / lhs < rhs ) break ; return lhs * rhs ; case SLA... |
public class Shape { /** * Check if the shape passed is entirely contained within
* this shape .
* @ param other The other shape to test against this one
* @ return True if the other shape supplied is entirely contained
* within this one . */
public boolean contains ( Shape other ) { } } | if ( other . intersects ( this ) ) { return false ; } for ( int i = 0 ; i < other . getPointCount ( ) ; i ++ ) { float [ ] pt = other . getPoint ( i ) ; if ( ! contains ( pt [ 0 ] , pt [ 1 ] ) ) { return false ; } } return true ; |
public class MapsInner { /** * Creates or updates an integration account map .
* @ param resourceGroupName The resource group name .
* @ param integrationAccountName The integration account name .
* @ param mapName The integration account map name .
* @ param map The integration account map .
* @ throws Illeg... | return createOrUpdateWithServiceResponseAsync ( resourceGroupName , integrationAccountName , mapName , map ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class UnionNodeImpl { /** * Has at least two children */
private IQTree liftBindingFromLiftedChildren ( ImmutableList < IQTree > liftedChildren , VariableGenerator variableGenerator , IQProperties currentIQProperties ) { } } | /* * Cannot lift anything if some children do not have a construction node */
if ( liftedChildren . stream ( ) . anyMatch ( c -> ! ( c . getRootNode ( ) instanceof ConstructionNode ) ) ) return iqFactory . createNaryIQTree ( this , liftedChildren , currentIQProperties . declareLifted ( ) ) ; ImmutableSubstitution < Imm... |
public class VisitorHelper { /** * Return the type descriptor for the given type name .
* @ param typeName The full qualified name of the type ( e . g . java . lang . Object ) . */
TypeCache . CachedType resolveType ( String fullQualifiedName , TypeCache . CachedType < ? extends ClassFileDescriptor > dependentType ) ... | TypeCache . CachedType cachedType = getTypeResolver ( ) . resolve ( fullQualifiedName , scannerContext ) ; if ( ! dependentType . equals ( cachedType ) ) { dependentType . addDependency ( cachedType . getTypeDescriptor ( ) ) ; } return cachedType ; |
public class InMemoryRateLimiterRegistry { /** * { @ inheritDoc } */
@ Override public RateLimiter rateLimiter ( String name , String configName ) { } } | return computeIfAbsent ( name , ( ) -> RateLimiter . of ( name , getConfiguration ( configName ) . orElseThrow ( ( ) -> new ConfigurationNotFoundException ( configName ) ) ) ) ; |
public class CmsConfigurationManager { /** * Creates the XML document build from the provided configuration . < p >
* @ param configuration the configuration to build the XML for
* @ return the XML document build from the provided configuration */
public Document generateXml ( I_CmsXmlConfiguration configuration ) ... | // create a new document
Document result = DocumentHelper . createDocument ( ) ; // set the document type
DOMDocumentType docType = new DOMDocumentType ( ) ; docType . setElementName ( N_ROOT ) ; docType . setSystemID ( configuration . getDtdUrlPrefix ( ) + configuration . getDtdFilename ( ) ) ; result . setDocType ( d... |
public class StrSubstitutor { /** * Replaces all the occurrences of variables with their matching values
* from the resolver using the given source builder as a template .
* The builder is not altered by this method .
* @ param source the builder to use as a template , not changed , null returns null
* @ return... | if ( source == null ) { return null ; } final StrBuilder buf = new StrBuilder ( source . length ( ) ) . append ( source ) ; substitute ( buf , 0 , buf . length ( ) ) ; return buf . toString ( ) ; |
public class DiagnosticsInner { /** * Get Diagnostics Category .
* Get Diagnostics Category .
* @ param resourceGroupName Name of the resource group to which the resource belongs .
* @ param siteName Site Name
* @ param diagnosticCategory Diagnostic Category
* @ throws IllegalArgumentException thrown if param... | if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( siteName == null ) { throw new IllegalArgumentException ( "Parameter siteName is required and cannot be null." ) ; } if ( diagnosticCategory == null ) { throw new IllegalArgum... |
public class ServerFilter { /** * Method allow to find servers with specified power state of target servers
* @ param states is a list target server power states
* @ return { @ link GroupFilter } */
public ServerFilter powerStates ( PowerState ... states ) { } } | allItemsNotNull ( states , "Power states" ) ; predicate = predicate . and ( combine ( s -> s . getDetails ( ) . getPowerState ( ) , in ( map ( states , PowerState :: getCode ) ) ) ) ; return this ; |
public class DirectoryScanner { /** * Util method that allow to scan all files in a folder . Works in cooperation with { @ link # setFileFilter ( FileFilter ) } or
* { @ link # setFileExtensionToFilter ( String . . . ) }
* @ param directoryToScan
* @ return */
public ArrayList < File > scanAllFiles ( File directo... | CumulativeFileScannerObserver fileScanner = new CumulativeFileScannerObserver ( ) ; DirectoryScanner directoryScanner = new DirectoryScanner ( fileScanner ) ; for ( FileScannerObserver fileScannerObserver : fileScanners ) { directoryScanner . addFileScanner ( fileScannerObserver ) ; } directoryScanner . setFileFilter (... |
public class SourceParams { /** * Create parameters necessary to create a SEPA debit source
* @ param name The full name of the account holder .
* @ param iban The IBAN number for the bank account that you wish to debit .
* @ param email The full email address of the owner ( optional ) .
* @ param addressLine1 ... | final SourceParams params = new SourceParams ( ) . setType ( Source . SEPA_DEBIT ) . setCurrency ( Source . EURO ) ; final AbstractMap < String , Object > address = new HashMap < > ( ) ; address . put ( FIELD_LINE_1 , addressLine1 ) ; address . put ( FIELD_CITY , city ) ; address . put ( FIELD_POSTAL_CODE , postalCode ... |
public class ACE { /** * A GUID ( 16 bytes ) that identifies the type of child object that can inherit the ACE . Inheritance is also
* controlled by the inheritance flags in the ACE _ HEADER , as well as by any protection against inheritance placed on
* the child objects . This field is valid only if the ACE _ INHE... | return this . inheritedObjectType == null || this . inheritedObjectType . length == 0 ? null : Arrays . copyOf ( this . inheritedObjectType , this . inheritedObjectType . length ) ; |
public class ProjectApi { /** * Get a Stream of project users . This Stream includes all project members and all users assigned to project parent groups .
* < pre > < code > GET / projects / : id / users < / code > < / pre >
* @ param projectIdOrPath projectIdOrPath the project in the form of an Integer ( ID ) , St... | return ( getProjectUsers ( projectIdOrPath , null , getDefaultPerPage ( ) ) . stream ( ) ) ; |
public class OptimizerNode { /** * Computes all the interesting properties that are relevant to this node . The interesting
* properties are a union of the interesting properties on each outgoing connection .
* However , if two interesting properties on the outgoing connections overlap ,
* the interesting propert... | List < DagConnection > conns = getOutgoingConnections ( ) ; if ( conns . size ( ) == 0 ) { // no incoming , we have none ourselves
this . intProps = new InterestingProperties ( ) ; } else { this . intProps = conns . get ( 0 ) . getInterestingProperties ( ) . clone ( ) ; for ( int i = 1 ; i < conns . size ( ) ; i ++ ) {... |
public class DANameFactory { /** * Crée un objet DAName à partir d ' un DATypeKind représentant un type primitif
* TOIMPROVE : DAName for each DATypeKind with flag primitive = true can be
* cached into a Map and used as constants
* @ param kind un { @ link DATypeKind } primitif
* @ return a { @ link fr . jav... | checkArgument ( kind . isPrimitive ( ) ) ; return from ( kind . name ( ) . toLowerCase ( Locale . US ) ) ; |
public class AbstractPropositionDefinitionCheckedVisitor { /** * Processes a collection of proposition definitions .
* @ param propositionDefinitions
* a { @ link Collection < PropositionDefinition > } .
* @ throws ProtempaException
* if an error occurs .
* @ see org . protempa . PropositionDefinitionCheckedV... | for ( PropositionDefinition def : propositionDefinitions ) { def . acceptChecked ( this ) ; } |
public class Table { /** * Moves the data from table to table .
* The colindex argument is the index of the column that was
* added or removed . The adjust argument is { - 1 | 0 | + 1} */
void moveData ( Session session , Table from , int colindex , int adjust ) { } } | Object colvalue = null ; ColumnSchema column = null ; if ( adjust >= 0 && colindex != - 1 ) { column = getColumn ( colindex ) ; colvalue = column . getDefaultValue ( session ) ; } PersistentStore store = session . sessionData . getRowStore ( this ) ; try { RowIterator it = from . rowIterator ( session ) ; while ( it . ... |
public class Timer { /** * Creates a work item and puts it on the work queue for requesting a
* timeout to be started .
* @ param timeoutTime
* how long this timeout is for in milliseconds .
* @ param _ callback
* the routine to be called when / if the timeout triggers
* @ param _ future
* attachment to b... | TimerWorkItem wi = new TimerWorkItem ( timeoutTime , _callback , _future , _future . getReuseCount ( ) ) ; _future . setTimeoutWorkItem ( wi ) ; // put this to the Timer ' s work queue . Use the queue that the Timer
// thread is not using .
if ( ( this . queueToUse == 1 ) || ( numQueues == 1 ) ) { synchronized ( this .... |
public class UpdateTrafficAdjustments { /** * Runs the example .
* @ param adManagerServices the services factory .
* @ param session the session .
* @ param adjustmentId the ID of the adjustment to update .
* @ throws ApiException if the API request failed with one or more service errors .
* @ throws RemoteE... | // Get the adjustment service .
AdjustmentServiceInterface adjustmentService = adManagerServices . get ( session , AdjustmentServiceInterface . class ) ; // Create a statement to only select a single traffic forecast adjustment by ID .
StatementBuilder statementBuilder = new StatementBuilder ( ) . where ( "id = :id" ) ... |
public class SolverWorldModelInterface { /** * Deletes an Identifier and all of its Attributes from the world model . All
* data for the Identifier will be removed permanently . Callers may also
* wish to consider expiring the Identifier instead .
* @ param identifier
* the Identifier to delete
* @ return { @... | if ( identifier == null ) { log . error ( "Unable to delete a null Identifier value." ) ; return false ; } if ( this . originString == null ) { log . error ( "Origin has not been set. Cannot delete Identifiers without a valid origin." ) ; return false ; } DeleteIdentifierMessage message = new DeleteIdentifierMessage (... |
public class AbstractJanitor { /** * Dump a thread
* @ param t The thread
* @ return The stack trace */
private String dumpQueuedThread ( Thread t ) { } } | StringBuilder sb = new StringBuilder ( ) ; // Header
sb = sb . append ( "Queued thread: " ) ; sb = sb . append ( t . getName ( ) ) ; sb = sb . append ( newLine ) ; // Body
StackTraceElement [ ] stes = SecurityActions . getStackTrace ( t ) ; if ( stes != null ) { for ( StackTraceElement ste : stes ) { sb = sb . append (... |
public class CronDescriptor { /** * Provide description for hours , minutes and seconds .
* @ param fields - fields to describe ;
* @ return description - String */
public String describeHHmmss ( final Map < CronFieldName , CronField > fields ) { } } | return DescriptionStrategyFactory . hhMMssInstance ( resourceBundle , fields . containsKey ( CronFieldName . HOUR ) ? fields . get ( CronFieldName . HOUR ) . getExpression ( ) : null , fields . containsKey ( CronFieldName . MINUTE ) ? fields . get ( CronFieldName . MINUTE ) . getExpression ( ) : null , fields . contain... |
public class KriptonRequestBodyConverter { /** * / * ( non - Javadoc )
* @ see retrofit2 . Converter # convert ( java . lang . Object ) */
@ Override public RequestBody convert ( T value ) throws IOException { } } | Buffer buffer = new Buffer ( ) ; try { binderContext . serialize ( value , buffer . outputStream ( ) ) ; return RequestBody . create ( MEDIA_TYPE , buffer . readByteString ( ) ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; return null ; } finally { buffer . close ( ) ; } |
public class NotifyQuery { /** * @ Override
* public int partitionHash ( Object [ ] args )
* if ( _ keyExpr = = null ) {
* return - 1;
* return _ keyExpr . partitionHash ( args ) ; */
@ Override public void exec ( Result < Object > result , Object [ ] args ) { } } | TableKelp tableKelp = _table . getTableKelp ( ) ; RowCursor minCursor = tableKelp . cursor ( ) ; RowCursor maxCursor = tableKelp . cursor ( ) ; minCursor . clear ( ) ; maxCursor . setKeyMax ( ) ; _whereKraken . fillMinCursor ( minCursor , args ) ; _whereKraken . fillMaxCursor ( minCursor , args ) ; // QueryKelp whereKe... |
public class DescribeAppsRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DescribeAppsRequest describeAppsRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( describeAppsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( describeAppsRequest . getStackId ( ) , STACKID_BINDING ) ; protocolMarshaller . marshall ( describeAppsRequest . getAppIds ( ) , APPIDS_BINDING ) ; } catch ( Excepti... |
public class OrderManager { /** * Execute a new Order
* @ param order
* @ return
* @ throws Exception */
private boolean placeOrderOrderOnAPI ( final BitfinexNewOrder order ) throws Exception { } } | final CountDownLatch waitLatch = new CountDownLatch ( 1 ) ; final Consumer < BitfinexSubmittedOrder > ordercallback = ( o ) -> { if ( Objects . equals ( o . getClientId ( ) , order . getClientId ( ) ) ) { waitLatch . countDown ( ) ; } |
public class JournalRecovery { /** * Start the recovery process
* @ return the new block count of the store , or - 1 if unchanged
* @ throws JournalException */
public int recover ( ) throws JournalException { } } | int newBlockCount = - 1 ; log . warn ( "[" + baseName + "] Recovery required for data store : found " + journalFiles . length + " journal file(s)" ) ; for ( int i = 0 ; i < journalFiles . length ; i ++ ) newBlockCount = recoverFromJournalFile ( journalFiles [ i ] ) ; return newBlockCount ; |
public class Log4j2Helper { /** * 使用自定义properties插件替换log4j2的指定context中的内置 { @ link org . apache . logging . log4j . core . config . PropertiesPlugin properties插件 } ( log4j2使用 )
* @ param pluginClazz 插件class
* @ param context 要替换配置的context , 可以使用LogManager . getContext ( ) 获取 */
public static void reconfigLog4j2 ( C... | Configuration configuration = ReflectUtil . getFieldValue ( context , "configuration" ) ; PluginManager manager = ReflectUtil . getFieldValue ( configuration , "pluginManager" ) ; PluginType < ? > pluginType = manager . getPluginType ( "properties" ) ; ReflectUtil . setFieldValue ( pluginType , "pluginClass" , pluginCl... |
public class TextToSpeech { /** * Add a custom word .
* Adds a single word and its translation to the specified custom voice model . Adding a new translation for a word
* that already exists in a custom model overwrites the word ' s existing translation . A custom model can contain no
* more than 20,000 entries .... | Validator . notNull ( addWordOptions , "addWordOptions cannot be null" ) ; String [ ] pathSegments = { "v1/customizations" , "words" } ; String [ ] pathParameters = { addWordOptions . customizationId ( ) , addWordOptions . word ( ) } ; RequestBuilder builder = RequestBuilder . put ( RequestBuilder . constructHttpUrl ( ... |
public class CollisionCategoryConfig { /** * Create the collision category data from node ( should only be used to display names , as real content is
* < code > null < / code > , mainly UI specific to not have dependency on { @ link MapTileCollision } ) .
* @ param root The node root reference ( must not be < code ... | Check . notNull ( root ) ; final Collection < Xml > childrenCategory = root . getChildren ( NODE_CATEGORY ) ; final Collection < CollisionCategory > categories = new ArrayList < > ( childrenCategory . size ( ) ) ; for ( final Xml node : childrenCategory ) { final Collection < Xml > childrenGroup = node . getChildren ( ... |
public class Parcels { /** * Wraps the input ` @ Parcel ` annotated class with a ` Parcelable ` wrapper .
* @ throws ParcelerRuntimeException if there was an error looking up the wrapped Parceler $ Parcels class .
* @ param inputType specific type to parcel
* @ param input Parcel
* @ return Parcelable wrapper *... | if ( input == null ) { return null ; } ParcelableFactory parcelableFactory = REPOSITORY . get ( inputType ) ; return parcelableFactory . buildParcelable ( input ) ; |
public class AwsSecurityFindingFilters { /** * The parent process ID .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setProcessParentPid ( java . util . Collection ) } or { @ link # withProcessParentPid ( java . util . Collection ) } if you
* want to over... | if ( this . processParentPid == null ) { setProcessParentPid ( new java . util . ArrayList < NumberFilter > ( processParentPid . length ) ) ; } for ( NumberFilter ele : processParentPid ) { this . processParentPid . add ( ele ) ; } return this ; |
public class VersionHistoryImpl { /** * { @ inheritDoc } */
public void addVersionLabel ( String versionName , String label , boolean moveLabel ) throws VersionException , RepositoryException { } } | checkValid ( ) ; JCRName jcrLabelName = locationFactory . parseJCRName ( label ) ; InternalQName labelQName = jcrLabelName . getInternalName ( ) ; NodeData labels = getVersionLabelsData ( ) ; List < PropertyData > labelsList = dataManager . getChildPropertiesData ( labels ) ; for ( PropertyData prop : labelsList ) { if... |
public class ProcessTask { /** * Implements the callable interface .
* @ return this object
* @ throws Exception thrown if there is an exception ; note that any
* UpdateExceptions are simply added to the tasks exception collection */
@ Override public ProcessTask call ( ) throws Exception { } } | try { processFiles ( ) ; } catch ( UpdateException ex ) { this . exception = ex ; } finally { settings . cleanup ( false ) ; } return this ; |
public class SyncMapPermission { /** * Create a SyncMapPermissionUpdater to execute update .
* @ param pathServiceSid Sync Service Instance SID .
* @ param pathMapSid Sync Map SID or unique name .
* @ param pathIdentity Identity of the user to whom the Sync Map Permission
* applies .
* @ param read Read acces... | return new SyncMapPermissionUpdater ( pathServiceSid , pathMapSid , pathIdentity , read , write , manage ) ; |
public class FilenameInputFormat { /** * Return a RecordReader which returns 1 record : the file path from
* the InputSplit . */
public RecordReader < Text , Text > getRecordReader ( InputSplit genericSplit , JobConf job , Reporter reporter ) throws IOException { } } | reporter . setStatus ( genericSplit . toString ( ) ) ; FileSplit split = ( FileSplit ) genericSplit ; final Path file = split . getPath ( ) ; return new RecordReader < Text , Text > ( ) { boolean done = false ; public void close ( ) { } public Text createKey ( ) { return new Text ( ) ; } public Text createValue ( ) { r... |
public class HttpUtil { /** * parse the given http query string
* @ param queryString the standard http query string
* @ param hasPath whether the query string contains uri
* @ return the parsed json object . if the given query string is empty then an empty json object is returned . */
public static JSONObject pa... | JSONObject uriParameters = new JSONObject ( ) ; if ( queryString == null ) return uriParameters ; QueryStringDecoder queryStringDecoder = new QueryStringDecoder ( queryString , hasPath ) ; Map < String , List < String > > parameters = queryStringDecoder . parameters ( ) ; parameters . forEach ( ( key , values ) -> { if... |
public class MD5Utils { /** * Gets the MD5 hashcode of an input stream . */
public static byte [ ] md5 ( InputStream in ) throws IOException { } } | MD5InputStream md5in = new MD5InputStream ( in ) ; byte [ ] trashBuffer = BufferManager . getBytes ( ) ; try { while ( md5in . read ( trashBuffer , 0 , BufferManager . BUFFER_SIZE ) != - 1 ) { // Intentional empty block
} } finally { BufferManager . release ( trashBuffer , false ) ; } return md5in . hash ( ) ; |
public class BackupEnginesInner { /** * The backup management servers registered to a Recovery Services vault . This returns a pageable list of servers .
* @ param vaultName The name of the Recovery Services vault .
* @ param resourceGroupName The name of the resource group associated with the Recovery Services vau... | ServiceResponse < Page < BackupEngineBaseResourceInner > > response = getSinglePageAsync ( vaultName , resourceGroupName ) . toBlocking ( ) . single ( ) ; return new PagedList < BackupEngineBaseResourceInner > ( response . body ( ) ) { @ Override public Page < BackupEngineBaseResourceInner > nextPage ( String nextPageL... |
public class AccountsInner { /** * Creates the specified Data Lake Analytics account . This supplies the user with computation services for Data Lake Analytics workloads .
* @ param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account . the account will be associated wi... | return ServiceFuture . fromResponse ( beginCreateWithServiceResponseAsync ( resourceGroupName , name , parameters ) , serviceCallback ) ; |
public class StateCompiler { /** * Enumerates all the fields in this state interface .
* @ param clazz a subclass of AccumulatorState
* @ param fieldTypes a map of field name and Type
* @ return list of state fields . Ordering is guaranteed to be stable , and have all primitive fields at the beginning . */
privat... | ImmutableList . Builder < StateField > builder = ImmutableList . builder ( ) ; final Set < Class < ? > > primitiveClasses = ImmutableSet . of ( byte . class , boolean . class , long . class , double . class , int . class ) ; Set < Class < ? > > supportedClasses = getSupportedFieldTypes ( ) ; for ( Method method : clazz... |
public class CmsJspImageBean { /** * Returns a lazy initialized Map that provides access to ratio scaled instances of this image bean . < p >
* @ return a lazy initialized Map that provides access to ratio scaled instances of this image bean */
public Map < String , CmsJspImageBean > getScaleRatio ( ) { } } | if ( m_scaleRatio == null ) { m_scaleRatio = CmsCollectionsGenericWrapper . createLazyMap ( new CmsScaleRatioTransformer ( ) ) ; } return m_scaleRatio ; |
public class EntryStream { /** * Returns a { @ link StreamEx } consisting of the results of applying the
* given function to the keys and values of this stream .
* This is an < a href = " package - summary . html # StreamOps " > intermediate < / a >
* operation .
* @ param < R > The element type of the new stre... | return this . < R > map ( toFunction ( mapper ) ) ; |
public class Matrix4x3d { /** * Apply a translation to this matrix by translating by the given number of
* units in x , y and z .
* If < code > M < / code > is < code > this < / code > matrix and < code > T < / code > the translation
* matrix , then the new matrix will be < code > M * T < / code > . So when
* t... | return translate ( offset . x ( ) , offset . y ( ) , offset . z ( ) ) ; |
public class JobClient { /** * Get a { @ link BufferedReader } to read the taskLog by lines .
* @ param taskLogUrl The URL of the taskLog location
* @ return A { @ link BufferedReader } to read the taskLog by lines
* @ throws IOException Will throw this if we cannot get the reader for 5 mins */
private static Buf... | FutureTask < BufferedReader > task = new FutureTask < BufferedReader > ( new Callable < BufferedReader > ( ) { @ Override public BufferedReader call ( ) throws IOException { URLConnection connection = taskLogUrl . openConnection ( ) ; BufferedReader input = new BufferedReader ( new InputStreamReader ( connection . getI... |
public class ServletRESTRequestWithParams { /** * ( non - Javadoc )
* @ see com . ibm . wsspi . rest . handler . RESTRequest # getContentType ( ) */
@ Override public String getContentType ( ) { } } | ServletRESTRequestImpl ret = castRequest ( ) ; if ( ret != null ) return ret . getContentType ( ) ; return null ; |
public class ApplicationMetadata { /** * Sets the clazz to pu map .
* @ param map
* the map */
public void setClazzToPuMap ( Map < String , List < String > > map ) { } } | if ( clazzToPuMap == null ) { this . clazzToPuMap = map ; } else { clazzToPuMap . putAll ( map ) ; } |
public class ProcessClosurePrimitives { /** * Verifies that a provide method call has exactly one argument , and that it ' s a string literal
* and that the contents of the string are valid JS tokens . Reports a compile error if it doesn ' t .
* @ return Whether the argument checked out okay */
private boolean veri... | if ( ! verifyLastArgumentIsString ( methodName , arg ) ) { return false ; } if ( ! NodeUtil . isValidQualifiedName ( compiler . getOptions ( ) . getLanguageIn ( ) . toFeatureSet ( ) , arg . getString ( ) ) ) { compiler . report ( JSError . make ( arg , INVALID_PROVIDE_ERROR , arg . getString ( ) , compiler . getOptions... |
public class SortedCellTable { /** * Sets the table ' s data provider list and sorts the table based on the
* column given in { @ link SortedCellTable # setInitialSortColumn ( Column ) }
* @ param list */
public void setList ( List < T > list ) { } } | dataProvider . getList ( ) . clear ( ) ; if ( list != null ) { for ( T t : list ) { dataProvider . getList ( ) . add ( t ) ; } } // Do a first - time sort based on which column was set in
// setInitialSortColumn ( )
if ( initialSortColumn != null ) { Collections . sort ( dataProvider . getList ( ) , new Comparator < T ... |
public class CmsImportExportUserDialog { /** * Get selected roles list . < p >
* @ param parent layout
* @ param importCase boolean
* @ return List of roles */
private List < CmsRole > getRolesList ( VerticalLayout parent , boolean importCase ) { } } | List < CmsRole > res = new ArrayList < CmsRole > ( ) ; CmsEditableGroup editableGroup = importCase ? m_importRolesGroup : m_exportRolesGroup ; for ( I_CmsEditableGroupRow row : editableGroup . getRows ( ) ) { res . add ( ( ( ComboBox < CmsRole > ) row . getComponent ( ) ) . getValue ( ) ) ; } return res ; |
public class AbstractHttpRequest { /** * Creates an HTTP connection .
* Optionally checks for proxy parameters and creates a proxied connection
* using the system properties : " hellosign . proxy . url " - the URL of the HTTP
* proxy " hellosign . proxy . port " - the port of the HTTP proxy
* @ param url String... | HttpURLConnection conn = null ; Proxy proxy = null ; String proxyUrlStr = System . getProperty ( "hellosign.proxy.url" ) ; String proxyPortStr = System . getProperty ( "hellosign.proxy.port" ) ; Integer proxyPort = 80 ; // Default to port 80
if ( proxyPortStr != null ) { proxyPort = Integer . parseInt ( proxyPortStr ) ... |
public class JSDocInfoBuilder { /** * Records a type for { @ code @ this } annotation .
* @ return { @ code true } if the type was recorded and
* { @ code false } if it is invalid or if it collided with { @ code @ enum } or
* { @ code @ type } annotations */
public boolean recordThisType ( JSTypeExpression type )... | if ( type != null && ! hasAnySingletonTypeTags ( ) && ! currentInfo . hasThisType ( ) ) { currentInfo . setThisType ( type ) ; populated = true ; return true ; } else { return false ; } |
public class ConnectionPool { /** * Signals that a new segment should be activated . */
final void signalActivateSegment ( ) throws SQLException { } } | /* Note that ' offer ' does so only if it can be done
immediately without exceeding the queue capacity .
The queue capacity is ' 1 ' , so this means that
signals may be ignored . Either way , this message
will never block . */
if ( segmentSignalQueue != null ) { segmentSignalQueue . offer ( ACTIVATE_SEGMENT_SIG... |
public class ArbitrateConfigUtils { /** * 获取对应Node的zk集群列表配置 */
public static List < String > getServerAddrs ( ) { } } | Node node = ArbitrateConfigRegistry . getConfig ( ) . currentNode ( ) ; if ( node != null ) { String addr = StringUtils . join ( node . getParameters ( ) . getZkCluster ( ) . getServerList ( ) , ',' ) ; return Arrays . asList ( addr ) ; } else { return new ArrayList < String > ( ) ; } |
public class AtomixCluster { /** * Builds a member location provider . */
@ SuppressWarnings ( "unchecked" ) protected static NodeDiscoveryProvider buildLocationProvider ( ClusterConfig config ) { } } | NodeDiscoveryConfig discoveryProviderConfig = config . getDiscoveryConfig ( ) ; if ( discoveryProviderConfig != null ) { return discoveryProviderConfig . getType ( ) . newProvider ( discoveryProviderConfig ) ; } if ( config . getMulticastConfig ( ) . isEnabled ( ) ) { return new MulticastDiscoveryProvider ( new Multica... |
public class GVRSensor { /** * Send a sensor event to the owner of this sensor . */
private void sendSensorEvent ( GVRPicker . GVRPickedObject collision , boolean over ) { } } | SensorEvent event = SensorEvent . obtain ( ) ; final IEventReceiver ownerCopy = getOwnerObject ( ) ; GVRCursorController controller ; if ( collision . picker == null ) { collision . picker = mHit . picker ; } else if ( over ) { mHit = collision ; } controller = collision . picker . getController ( ) ; if ( controller !... |
public class WorkflowsInner { /** * Updates a workflow .
* @ param resourceGroupName The resource group name .
* @ param workflowName The workflow name .
* @ param workflow The workflow .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the observable to the WorkflowInne... | return updateWithServiceResponseAsync ( resourceGroupName , workflowName , workflow ) . map ( new Func1 < ServiceResponse < WorkflowInner > , WorkflowInner > ( ) { @ Override public WorkflowInner call ( ServiceResponse < WorkflowInner > response ) { return response . body ( ) ; } } ) ; |
public class InetAddressUtils { /** * Gets by name .
* @ param urlAddr the host
* @ return the by name */
public static InetAddress getByName ( final String urlAddr ) { } } | try { val url = new URL ( urlAddr ) ; return InetAddress . getByName ( url . getHost ( ) ) ; } catch ( final Exception e ) { LOGGER . trace ( "Host name could not be determined automatically." , e ) ; } return null ; |
public class HttpRule { /** * < pre >
* The custom pattern is used for specifying an HTTP method that is not
* included in the ` pattern ` field , such as HEAD , or " * " to leave the
* HTTP method unspecified for this rule . The wild - card rule is useful
* for services that provide content to Web ( HTML ) cli... | if ( patternCase_ == 8 ) { return ( com . google . api . CustomHttpPattern ) pattern_ ; } return com . google . api . CustomHttpPattern . getDefaultInstance ( ) ; |
public class JBBPMapper { /** * Map a structure to a class instance .
* @ param rootStructure a structure to be mapped , must not be null
* @ param mappingClassInstance a class instance to be destination for map
* operations , must not be null
* @ param customFieldProcessor a custom field processor to provide c... | return map ( rootStructure , mappingClassInstance , customFieldProcessor , 0 ) ; |
public class SearchOperationsImpl { /** * Extract feature string ( encoded in base 64 ) given an image file or url .
* @ param uploadSearchParams the upload search parameters , must contain a image file or a url
* @ return the feature response string result */
@ Override public FeatureResponseResult extractFeature ... | try { ViSearchHttpResponse response = getPostImageSearchHttpResponse ( uploadSearchParams , ENDPOINT_EXTRACT_FEATURE ) ; return getFeatureResponseResult ( response ) ; } catch ( InternalViSearchException e ) { return new FeatureResponseResult ( e . getMessage ( ) , e . getCause ( ) , e . getServerRawResponse ( ) ) ; } |
public class LDAPController { /** * Gets the form to update a mapping */
@ RequestMapping ( value = "ldap-mapping/{id}/update" , method = RequestMethod . GET ) public Form getMappingUpdateForm ( @ PathVariable ID id ) { } } | securityService . checkGlobalFunction ( AccountGroupManagement . class ) ; return accountGroupMappingService . getMapping ( LDAPExtensionFeature . LDAP_GROUP_MAPPING , id ) . asForm ( accountService . getAccountGroups ( ) ) ; |
public class UIComponentClassicTagBase { /** * The pageContext ' s request scope map is used to hold a stack of JSP tag objects seen so far , so that a new tag can
* find the parent tag that encloses it . Access to the parent tag is used to find the parent UIComponent for the
* component associated with this tag pl... | Stack < UIComponentClassicTagBase > stack = getStack ( pageContext ) ; int size = stack . size ( ) ; stack . remove ( size - 1 ) ; if ( size <= 1 ) { pageContext . removeAttribute ( COMPONENT_STACK_ATTR , PageContext . REQUEST_SCOPE ) ; } |
public class OsiamConnector { /** * Create a client .
* @ param client the client to create
* @ param accessToken the access token used to access the service
* @ return The created client
* @ throws UnauthorizedException if the accessToken is not valid
* @ throws ConnectionInitializationException if the conne... | return getAuthService ( ) . createClient ( client , accessToken ) ; |
public class ImmediateExpressions { /** * Delegates to { @ link org . hamcrest . Matchers # not ( org . hamcrest . Matcher ) } . */
public static < S > Matcher < S > not ( Matcher < S > matcher ) { } } | return Matchers . not ( matcher ) ; |
public class EndpointUtils { /** * Get the list of all eureka service urls from properties file for the eureka client to talk to .
* @ param clientConfig the clientConfig to use
* @ param instanceZone The zone in which the client resides
* @ param preferSameZone true if we have to prefer the same zone as the clie... | Map < String , List < String > > orderedUrls = new LinkedHashMap < > ( ) ; String region = getRegion ( clientConfig ) ; String [ ] availZones = clientConfig . getAvailabilityZones ( clientConfig . getRegion ( ) ) ; if ( availZones == null || availZones . length == 0 ) { availZones = new String [ 1 ] ; availZones [ 0 ] ... |
public class DatabaseAdminClientSnippets { /** * [ VARIABLE my _ database _ id ] */
public Database createDatabase ( String instanceId , String databaseId ) { } } | // [ START createDatabase ]
OperationFuture < Database , CreateDatabaseMetadata > op = dbAdminClient . createDatabase ( instanceId , databaseId , Arrays . asList ( "CREATE TABLE Singers (\n" + " SingerId INT64 NOT NULL,\n" + " FirstName STRING(1024),\n" + " LastName STRING(1024),\n" + " SingerInfo BYTES(MAX)\n... |
public class SoapServlet { /** * Original API ( Defaults to using MessageFactory . newInstance ( ) , i . e . SOAP
* 1.1)
* @ param code
* @ param message
* @ return Soap fault as string
* @ throws SOAPException
* @ throws TransformerException */
protected String createSoapFaultResponse ( String code , Strin... | return createSoapFaultResponse ( SOAPConstants . SOAP_1_1_PROTOCOL , code , message ) ; |
public class IbvCQ { /** * - - - - - oo - verbs */
public SVCPollCq poll ( IbvWC [ ] wcList , int ne ) throws IOException { } } | return verbs . pollCQ ( this , wcList , ne ) ; |
public class TemplateClassCache { /** * Retrieve java source and bytecode if template content has not changed
* @ param tc */
public void loadTemplateClass ( TemplateClass tc ) { } } | if ( ! readEnabled ( ) ) { return ; } InputStream is = null ; try { File f = getCacheFile ( tc ) ; if ( ! f . exists ( ) || ! f . canRead ( ) ) return ; is = new BufferedInputStream ( new FileInputStream ( f ) ) ; // - - - check hash
int offset = 0 ; int read ; StringBuilder hash = new StringBuilder ( ) ; while ( ( rea... |
public class Style { /** * Convert string to dash .
* @ param dashPattern the string to convert .
* @ return the dash array or null , if conversion failed . */
public static float [ ] dashFromString ( String dashPattern ) { } } | if ( dashPattern . trim ( ) . length ( ) > 0 ) { String [ ] split = dashPattern . split ( "," ) ; if ( split . length > 1 ) { float [ ] dash = new float [ split . length ] ; for ( int i = 0 ; i < split . length ; i ++ ) { try { float tmpDash = Float . parseFloat ( split [ i ] . trim ( ) ) ; dash [ i ] = tmpDash ; } cat... |
public class DefaultAlertService { /** * ~ Methods * * * * * */
private void _initializeObjectMapper ( ) { } } | SimpleModule module = new SimpleModule ( ) ; module . addSerializer ( Alert . class , new Alert . Serializer ( ) ) ; module . addSerializer ( Trigger . class , new Trigger . Serializer ( ) ) ; module . addSerializer ( Notification . class , new Notification . Serializer ( ) ) ; module . addSerializer ( PrincipalUser . ... |
public class URLTool { /** * Parse a query string into a map of key - value pairs .
* @ param query query string to be parsed
* @ return a mapping of parameter names to values suitable e . g . to pass into { @ link EscapeTool # url ( Map ) } */
public Map < String , List < String > > parseQuery ( String query ) { }... | Map < String , List < String > > queryParams = new LinkedHashMap < > ( ) ; if ( query != null ) { for ( NameValuePair params : URLEncodedUtils . parse ( query , StandardCharsets . UTF_8 ) ) { String name = params . getName ( ) ; List < String > values = queryParams . get ( name ) ; if ( values == null ) { values = new ... |
public class CMAESUtils { /** * tql2 */
private static double specificShift ( int idx , int n , double [ ] d , double [ ] e ) { } } | double g = d [ idx ] ; double p = ( d [ idx + 1 ] - g ) / ( 2.0 * e [ idx ] ) ; double r = hypot ( p , 1.0 ) ; if ( p < 0 ) { r = - r ; } d [ idx ] = e [ idx ] / ( p + r ) ; d [ idx + 1 ] = e [ idx ] * ( p + r ) ; double h = g - d [ idx ] ; for ( int i = idx + 2 ; i < n ; i ++ ) { d [ i ] -= h ; } return h ; |
public class WildcardFileFilter { /** * Checks to see if the filename matches one of the wildcards .
* @ param file the file to check
* @ return true if the filename matches one of the wildcards */
@ Override public boolean accept ( File file ) { } } | String name = file . getName ( ) ; if ( FilenameUtils . wildcardMatch ( name , wildcards , caseSensitivity ) ) { return true ; } return false ; |
public class SnapshotDaemon { /** * Make this SnapshotDaemon responsible for generating snapshots */
public ListenableFuture < Void > mayGoActiveOrInactive ( final SnapshotSchedule schedule ) { } } | return m_es . submit ( new Callable < Void > ( ) { @ Override public Void call ( ) throws Exception { makeActivePrivate ( schedule ) ; return null ; } } ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.