signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class LayoutRefiner { /** * Attempt to reduce congestion through rotation of flippable bonds between * congest pairs . * @ param pairs congested pairs of atoms */ void rotate ( Collection < AtomPair > pairs ) { } }
// bond has already been tried in this phase so // don ' t need to test again Set < IBond > tried = new HashSet < > ( ) ; Pair : for ( AtomPair pair : pairs ) { for ( IBond bond : pair . bndAt ) { // only try each bond once per phase and skip if ( ! tried . add ( bond ) ) continue ; if ( bfix . contains ( bond ) ) cont...
public class ExpressionToTypeInfo { /** * Entry method : get expression info * @ param code the expression as a string * @ param state a JShell instance * @ return type information */ public static ExpressionInfo expressionInfo ( String code , JShell state ) { } }
if ( code == null || code . isEmpty ( ) ) { return null ; } try { OuterWrap codeWrap = state . outerMap . wrapInTrialClass ( Wrap . methodReturnWrap ( code ) ) ; AnalyzeTask at = state . taskFactory . new AnalyzeTask ( codeWrap ) ; CompilationUnitTree cu = at . firstCuTree ( ) ; if ( at . hasErrors ( ) || cu == null ) ...
public class UserLoginPasswordOperation { /** * Gets authentication data storage * @ return */ public synchronized AuthStorage getStorage ( ) { } }
if ( storage == null ) { String cls = Objects . get ( config , "storageClass" , LogStorage . class . getName ( ) ) ; try { storage = ( AuthStorage ) Class . forName ( cls ) . newInstance ( ) ; } catch ( Exception e ) { throw S1SystemError . wrap ( e ) ; } } return storage ;
public class CommitRequestHandler { /** * This method attempts to collect all transactions in the epoch that are marked for commit and decides if they can be * committed in active epoch or if it needs to roll the transactions . * @ param event event to process * @ return Completable future which indicates complet...
String scope = event . getScope ( ) ; String stream = event . getStream ( ) ; OperationContext context = streamMetadataStore . createContext ( scope , stream ) ; log . debug ( "Attempting to commit available transactions on stream {}/{}" , event . getScope ( ) , event . getStream ( ) ) ; CompletableFuture < Void > futu...
public class AttributeConfiguration { /** * Set the attribute type with Tango type . * @ param tangoType * @ throws DevFailed * @ see TangoConst for possible values */ public void setTangoType ( final int tangoType , final AttrDataFormat format ) throws DevFailed { } }
setFormat ( format ) ; this . tangoType = tangoType ; enumType = AttributeTangoType . getTypeFromTango ( tangoType ) ; if ( format . equals ( AttrDataFormat . SCALAR ) ) { type = enumType . getType ( ) ; } else if ( format . equals ( AttrDataFormat . SPECTRUM ) ) { type = Array . newInstance ( enumType . getType ( ) , ...
public class Task { /** * Internal method used to locate an remove an item from a list Relations . * @ param relationList list of Relation instances * @ param targetTask target relationship task * @ param type target relationship type * @ param lag target relationship lag * @ return true if a relationship was...
boolean matchFound = false ; for ( Relation relation : relationList ) { if ( relation . getTargetTask ( ) == targetTask ) { if ( relation . getType ( ) == type && relation . getLag ( ) . compareTo ( lag ) == 0 ) { matchFound = relationList . remove ( relation ) ; break ; } } } return matchFound ;
public class DateParser { /** * Truncate the input string after the first occurrence of the * searchString . * @ param input the source string * @ param searchString the string to look for in the source * @ return the truncated string */ private String truncateAt ( final String input , final String searchString...
final int i = input . indexOf ( searchString ) ; if ( i != - 1 ) { return input . substring ( 0 , i ) ; } return input ;
public class SeaGlassTitlePane { /** * Add a property change listener to the root pane . * @ param listener the propertiy change listener to add . */ private void addParentPropertyChangeListener ( PropertyChangeListener listener ) { } }
if ( rootParent instanceof JFrame ) { ( ( JFrame ) rootParent ) . addPropertyChangeListener ( listener ) ; } else if ( rootParent instanceof JDialog ) { ( ( JDialog ) rootParent ) . addPropertyChangeListener ( listener ) ; } rootPane . addPropertyChangeListener ( listener ) ;
public class ConvertImage { /** * Converts a { @ link Planar } into the equivalent { @ link InterleavedU8} * @ param input ( Input ) Planar image that is being converted . Not modified . * @ param output ( Optional ) The output image . If null a new image is created . Modified . * @ return Converted image . */ pu...
if ( output == null ) { output = new InterleavedU8 ( input . width , input . height , input . getNumBands ( ) ) ; } else { output . reshape ( input . width , input . height , input . getNumBands ( ) ) ; } if ( BoofConcurrency . USE_CONCURRENT ) { ImplConvertImage_MT . convertF32U8 ( input , output ) ; } else { ImplConv...
public class ArchiveFormatProcessor { /** * { @ inheritDoc } * @ see org . jboss . shrinkwrap . resolver . spi . format . FormatProcessor # process ( ResolvedArtifact , Class ) */ @ Override public ARCHIVETYPE process ( final MavenResolvedArtifact artifact , final Class < ARCHIVETYPE > returnType ) throws IllegalArgu...
if ( artifact == null ) { throw new IllegalArgumentException ( "Resolution artifact must be specified" ) ; } File file = artifact . asFile ( ) ; if ( file == null ) { throw new IllegalArgumentException ( "Artifact was not resolved" ) ; } return ShrinkWrap . create ( ZipImporter . class , file . getName ( ) ) . importFr...
public class CouchDbClient { /** * Get replication document state for a given replication document ID . * @ param docId The replication document ID * @ return Replication document for { @ code docId } */ public SchedulerDocsResponse . Doc schedulerDoc ( String docId ) { } }
assertNotEmpty ( docId , "docId" ) ; return this . get ( new DatabaseURIHelper ( getBaseUri ( ) ) . path ( "_scheduler" ) . path ( "docs" ) . path ( "_replicator" ) . path ( docId ) . build ( ) , SchedulerDocsResponse . Doc . class ) ;
public class CommercePaymentMethodGroupRelPersistenceImpl { /** * Returns the first commerce payment method group rel in the ordered set where groupId = & # 63 ; and active = & # 63 ; . * @ param groupId the group ID * @ param active the active * @ param orderByComparator the comparator to order the set by ( opti...
CommercePaymentMethodGroupRel commercePaymentMethodGroupRel = fetchByG_A_First ( groupId , active , orderByComparator ) ; if ( commercePaymentMethodGroupRel != null ) { return commercePaymentMethodGroupRel ; } StringBundler msg = new StringBundler ( 6 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "grou...
public class MtasDataLongBasic { /** * ( non - Javadoc ) * @ see * mtas . codec . util . DataCollector . MtasDataCollector # add ( java . lang . String [ ] , * double , long ) */ @ Override public MtasDataCollector < ? , ? > add ( String key , double valueSum , long valueN ) throws IOException { } }
if ( key != null ) { MtasDataCollector < ? , ? > subCollector = add ( key , false ) ; setValue ( newCurrentPosition , Double . valueOf ( valueSum ) . longValue ( ) , valueN , newCurrentExisting ) ; return subCollector ; } else { return null ; }
public class TreeNode { /** * A helper function for the { @ link IntervalTree # remove ( Interval ) } method . * It searches recursively for the base node of a target interval and * removes the interval from the base node , if it is stored there . This is * a more efficient way to remove an interval from the tree...
if ( root == null ) return null ; if ( interval . contains ( root . midpoint ) ) { if ( root . decreasing . remove ( interval ) ) tree . size -- ; root . increasing . remove ( interval ) ; if ( root . increasing . size ( ) == 0 ) { return deleteNode ( root ) ; } } else if ( interval . isLeftOf ( root . midpoint ) ) { r...
public class Model { /** * Sets the minimum and maximum values and the number of minor and major tickmarks of the gauge dial * @ param MIN _ VALUE * @ param MAX _ VALUE * @ param NO _ OF _ MINOR _ TICKS * @ param NO _ OF _ MAJOR _ TICKS */ public void setMinMaxAndNoOfTicks ( final double MIN_VALUE , final doubl...
this . maxNoOfMinorTicks = NO_OF_MINOR_TICKS ; this . maxNoOfMajorTicks = NO_OF_MAJOR_TICKS ; this . minValue = MIN_VALUE ; this . maxValue = MAX_VALUE ; calculate ( ) ;
public class Utility { /** * Replace every occurrence of this string with the new data . * @ param sb The original string . * @ param strOldParam The string to find . * @ param strNewData The data to replace the string with . * @ return The new string . */ public static StringBuilder replace ( StringBuilder sb ...
int iIndex = 0 ; if ( strNewData == null ) strNewData = Constants . BLANK ; while ( ( iIndex = sb . indexOf ( strOldParam , iIndex ) ) != - 1 ) { sb . replace ( iIndex , iIndex + strOldParam . length ( ) , strNewData ) ; iIndex = iIndex + strNewData . length ( ) ; } return sb ;
public class ExampleMain { /** * The Retinas API usage . * @ throws ApiException */ private void retinasApiUsage ( ) throws ApiException { } }
LOG . info ( "The Retinas API usage." ) ; Retinas api = getInfo ( "api.cortical.io" , API_KEY ) ; LOG . info ( "Retinas API: getRetinas" ) ; List < Retina > retinas = api . getAllRetinas ( ) ; for ( Retina retina : retinas ) { LOG . info ( "Retina: Name: " + retina . getRetinaName ( ) + " Description: " + retina . ge...
public class Emitter { /** * syck _ emit _ indent */ public void emitIndent ( ) { } }
Level lvl = currentLevel ( ) ; if ( bufpos == 0 && marker == 0 ) { return ; } if ( lvl . spaces >= 0 ) { byte [ ] spcs = new byte [ lvl . spaces + 2 ] ; spcs [ 0 ] = '\n' ; spcs [ lvl . spaces + 1 ] = 0 ; for ( int i = 0 ; i < lvl . spaces ; i ++ ) { spcs [ i + 1 ] = ' ' ; } write ( Pointer . create ( spcs , 0 ) , lvl ...
public class AbstractJobLauncher { /** * Unlock a completed or failed job . */ private void unlockJob ( ) { } }
if ( this . jobLockOptional . isPresent ( ) ) { try { // Unlock so the next run of the same job can proceed this . jobLockOptional . get ( ) . unlock ( ) ; } catch ( JobLockException ioe ) { LOG . error ( String . format ( "Failed to unlock for job %s: %s" , this . jobContext . getJobId ( ) , ioe ) , ioe ) ; } finally ...
public class GridTable { /** * Reposition to this record Using this bookmark . * @ param Object bookmark Bookmark . * @ param int iHandleType Type of handle ( see getHandle ) . * @ exception FILE _ NOT _ OPEN . * @ return record if found / null - record not found . */ public FieldList setHandle ( Object bookmar...
m_objectID = null ; // No current record m_dataSource = null ; FieldList fieldList = this . getNextTable ( ) . setHandle ( bookmark , iHandleType ) ; if ( fieldList != null ) m_iRecordStatus = DBConstants . RECORD_NORMAL ; else m_iRecordStatus = DBConstants . RECORD_INVALID | DBConstants . RECORD_AT_BOF | DBConstants ....
public class EkstaziAgent { /** * Instrument Surefire classes if they are loaded . This may be * needed if class has been loaded before a surefire is started * ( e . g . , used by another module that does not use Ekstazi ) . * This code should be in another class / place . */ private static void instrumentMaven (...
try { for ( Class < ? > clz : instrumentation . getAllLoadedClasses ( ) ) { String name = clz . getName ( ) ; if ( name . equals ( Names . ABSTRACT_SUREFIRE_MOJO_CLASS_VM ) || name . equals ( Names . SUREFIRE_PLUGIN_VM ) || name . equals ( Names . FAILSAFE_PLUGIN_VM ) || name . equals ( Names . TESTMOJO_VM ) ) { instru...
public class Optional { /** * Invokes action function if value is absent . * @ param action action that invokes if value absent * @ return this { @ code Optional } * @ since 1.1.2 */ @ NotNull public Optional < T > executeIfAbsent ( @ NotNull Runnable action ) { } }
if ( value == null ) action . run ( ) ; return this ;
public class NodeTraverser { /** * depthFirst traversal with a enter / leave phase . * @ param nodeVisitor the visitor of the nodes * @ param root the root node * @ return the accumulation result of this traversal */ public Object depthFirst ( NodeVisitor nodeVisitor , Node root ) { } }
return depthFirst ( nodeVisitor , Collections . singleton ( root ) ) ;
public class Property { /** * set the value type A string ; a property type name ; data type . * @ param type value to set */ public void setType ( String type ) { } }
property . setType ( type ) ; setDynamicAttribute ( null , KeyConstants . _type , type ) ;
public class TopicAccessManager { /** * Check if specific access control is allowed from controller * @ param ctx * @ param topic * @ param controllers * @ return true if at least one specific topicAccessControl exist * @ throws IllegalAccessException */ boolean checkAccessTopicFromController ( UserContext ct...
logger . debug ( "Looking for accessController for topic '{}' from JsTopicAccessController {}" , topic , jsTopicAccessController ) ; JsTopicControls jsTopicControls = jsTopicControlsTools . getJsTopicControlsFromProxyClass ( jsTopicAccessController . getClass ( ) ) ; logger . debug ( "Looking for accessController for t...
public class Logger { /** * Issue a formatted log message with a level of FATAL . * @ param t the throwable * @ param format the format string , as per { @ link String # format ( String , Object . . . ) } * @ param params the parameters */ public void fatalf ( Throwable t , String format , Object ... params ) { }...
doLogf ( Level . FATAL , FQCN , format , params , t ) ;
public class HttpPostMultipartRequestDecoder { /** * Skip control Characters * @ throws NotEnoughDataDecoderException */ private static void skipControlCharacters ( ByteBuf undecodedChunk ) { } }
if ( ! undecodedChunk . hasArray ( ) ) { try { skipControlCharactersStandard ( undecodedChunk ) ; } catch ( IndexOutOfBoundsException e1 ) { throw new NotEnoughDataDecoderException ( e1 ) ; } return ; } SeekAheadOptimize sao = new SeekAheadOptimize ( undecodedChunk ) ; while ( sao . pos < sao . limit ) { char c = ( cha...
public class DynamicByteBuffer { /** * Creates dynamically growing ByteBuffer upto maxSize for named file . * @ param path * @ param maxSize * @ return * @ throws IOException */ public static ByteBuffer create ( Path path , int maxSize ) throws IOException { } }
try ( FileChannel fc = FileChannel . open ( path , READ , WRITE , CREATE ) ) { return fc . map ( FileChannel . MapMode . READ_WRITE , 0 , maxSize ) ; }
public class PrintfMessageParser { /** * VisibleForTesting */ static void unescapePrintf ( StringBuilder out , String message , int start , int end ) { } }
int pos = start ; while ( pos < end ) { if ( message . charAt ( pos ++ ) != '%' ) { continue ; } if ( pos == end ) { // Ignore unexpected trailing ' % ' . break ; } char chr = message . charAt ( pos ) ; if ( chr == '%' ) { // Append the section up to and including the first ' % ' . out . append ( message , start , pos ...
public class CmsLoginHelper { /** * Gets the copyright information HTML . < p > * @ param locale the locale for which to get the copyright info * @ return the copyright info HTML */ public static String getCopyrightHtml ( Locale locale ) { } }
StringBuffer html = new StringBuffer ( ) ; html . append ( "<div style=\"text-align: center; font-size: 10px; white-space: nowrap;\">" ) ; html . append ( "<a href=\"http://www.opencms.org\" target=\"_blank\">OpenCms</a> " ) ; html . append ( Messages . get ( ) . getBundle ( locale ) . key ( Messages . GUI_LOGIN_OPENCM...
public class SimpleNameTokeniser { /** * Tokenises the given name . * @ param name a name * @ return a list of tokens found in the name */ public static List < String > split ( String name ) { } }
List < String > firstPassTokens = tokeniseOnSeparators ( name ) ; List < String > tokens = tokeniseOnLowercaseToUppercase ( firstPassTokens ) ; return tokens ;
public class InventoryResultItem { /** * Contains all the inventory data of the item type . Results include attribute names and values . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setContent ( java . util . Collection ) } or { @ link # withContent ( java...
if ( this . content == null ) { setContent ( new com . amazonaws . internal . SdkInternalList < java . util . Map < String , String > > ( content . length ) ) ; } for ( java . util . Map < String , String > ele : content ) { this . content . add ( ele ) ; } return this ;
public class UntagResourceRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( UntagResourceRequest untagResourceRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( untagResourceRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( untagResourceRequest . getResource ( ) , RESOURCE_BINDING ) ; protocolMarshaller . marshall ( untagResourceRequest . getTagKeys ( ) , TAGKEYS_BINDING ) ; } catch ( ...
public class ClusteredDataGenerator { /** * generates randomly N distinct integers from 0 to Max . * @ param N * number of integers to generate * @ param Max * maximal value of the integers * @ return array containing the integers */ public int [ ] generateClustered ( int N , int Max ) { } }
int [ ] array = new int [ N ] ; fillClustered ( array , 0 , N , 0 , Max ) ; return array ;
public class FileUtil { /** * Android libraries are packaged in AAR files , which is a zip file with a " . aar " * suffix that contains a classes . jar with the classfiles , as well as any Android * resources associated with this library . This method extracts the classes . jar * entry from the AAR file , so it c...
try ( ZipFile zfile = new ZipFile ( aarFile ) ) { File tempDir = FileUtil . createTempDir ( aarFile . getName ( ) ) ; ZipEntry entry = zfile . getEntry ( "classes.jar" ) ; if ( entry == null ) { ErrorUtil . warning ( aarFile . getPath ( ) + " does not have a classes.jar entry" ) ; return aarFile ; } File tmpFile = extr...
public class DefaultGroovyMethods { /** * Finds the first element in the array that matches the given closure condition . * Example : * < pre class = " groovyTestCase " > * def list = [ 1,2,3 ] as Integer [ ] * assert 2 = = list . find { it { @ code > } 1 } * assert null = = list . find { it { @ code > } 5 } ...
BooleanClosureWrapper bcw = new BooleanClosureWrapper ( condition ) ; for ( T element : self ) { if ( bcw . call ( element ) ) { return element ; } } return null ;
public class ExcelExecutor { /** * 构建单元格数据 * @ param data 要写入单元格的数据 * @ return 返回不为空表示能写入 , 并返回单元格数据 , 返回空表示无法写入 */ private Writer < ? > build ( Object data ) { } }
Optional < ExcelDataWriter < ? > > dataBuilder = writers . values ( ) . parallelStream ( ) . filter ( excelData -> excelData . writeable ( data ) ) . limit ( 1 ) . findFirst ( ) ; ExcelDataWriter < ? > writer = dataBuilder . orElseThrow ( ( ) -> new UtilsException ( "数据[" + data + "]没有对应的ExcelDataWriter" ) ) ; return n...
public class LifeCycleHelper { /** * Assigns / injects { @ link Provided } property values to a component . * @ param descriptor * @ param component */ public void assignProvidedProperties ( final ComponentDescriptor < ? > descriptor , final Object component ) { } }
final Set < ProvidedPropertyDescriptor > providedDescriptors = descriptor . getProvidedProperties ( ) ; for ( final ProvidedPropertyDescriptor providedDescriptor : providedDescriptors ) { final InjectionPoint < Object > injectionPoint = new PropertyInjectionPoint ( providedDescriptor , component ) ; final Object value ...
public class MethodUtils { /** * Sets the value of a bean property to an Object . * @ param object the bean to change * @ param setterName the property name or setter method name * @ param args use this arguments * @ throws NoSuchMethodException the no such method exception * @ throws IllegalAccessException t...
int index = setterName . indexOf ( '.' ) ; if ( index > 0 ) { String getterName = setterName . substring ( 0 , index ) ; Object o = invokeGetter ( object , getterName ) ; invokeSetter ( o , setterName . substring ( index + 1 ) , args ) ; } else { if ( ! setterName . startsWith ( "set" ) ) { setterName = "set" + setterN...
public class DefaultKunderaEntity { /** * Bind . * @ param propertiesPath * the properties path * @ param clazz * the clazz * @ throws BindingException * the binding exception */ public static synchronized void bind ( String propertiesPath , Class clazz ) throws BindingException { } }
if ( em == null ) { em = PersistenceService . getEM ( emf , propertiesPath , clazz . getName ( ) ) ; } onBind ( clazz ) ;
public class MapboxOfflineRouter { /** * Removes tiles within / intersected by a bounding box * Note that calling { @ link MapboxOfflineRouter # findRoute ( OfflineRoute , OnOfflineRouteFoundCallback ) } while * { @ link MapboxOfflineRouter # removeTiles ( String , BoundingBox , OnOfflineTilesRemovedCallback ) } co...
offlineNavigator . removeTiles ( new File ( tilePath , version ) . getAbsolutePath ( ) , boundingBox . southwest ( ) , boundingBox . northeast ( ) , callback ) ;
public class ListManagementImageListsImpl { /** * Deletes image list with the list Id equal to list Id passed . * @ param listId List Id of the image list . * @ param serviceCallback the async ServiceCallback to handle successful and failed responses . * @ throws IllegalArgumentException thrown if parameters fail...
return ServiceFuture . fromResponse ( deleteWithServiceResponseAsync ( listId ) , serviceCallback ) ;
public class ItemRef { /** * Attach a listener to run the callback every time the event type occurs for this item . * < pre > * StorageRef storage = new StorageRef ( " your _ app _ key " , " your _ token " ) ; * TableRef tableRef = storage . table ( " your _ table " ) ; * ItemRef itemRef = tableRef . item ( new...
return on ( eventType , onItemSnapshot , null ) ;
public class ExtendedSwidProcessor { /** * Defines product release identifier ( tag : release _ id ) . * @ param releaseId * product release identifier * @ return a reference to this object . */ public ExtendedSwidProcessor setReleaseId ( final String releaseId ) { } }
swidTag . setReleaseId ( new Token ( releaseId , idGenerator . nextId ( ) ) ) ; return this ;
public class CompressionStage { /** * Compress and replace the { @ link Data } content . Note : this stage will return * the same { @ link Data } instance and will modify only its content . * @ param context the { @ link Data } packet * @ return the same packet but with GZIP - compressed content * @ throws Proc...
ByteArrayOutputStream buffer = new ByteArrayOutputStream ( ) ; try ( GZIPOutputStream stream = new GZIPOutputStream ( buffer ) ) { stream . write ( context . getContent ( ) . getImmutableArray ( ) , 0 , context . getContent ( ) . size ( ) ) ; stream . close ( ) ; } catch ( IOException e ) { throw new ProcessingStageExc...
public class Vector { /** * Returns a new vector with the selected elements . * @ param indices the array of indices * @ return the new vector with the selected elements */ public Vector select ( int [ ] indices ) { } }
int newLength = indices . length ; if ( newLength == 0 ) { fail ( "No elements selected." ) ; } Vector result = blankOfLength ( newLength ) ; for ( int i = 0 ; i < newLength ; i ++ ) { result . set ( i , get ( indices [ i ] ) ) ; } return result ;
public class TemplateVariableAwareLinkBuilderSupport { /** * ( non - Javadoc ) * @ see org . springframework . hateoas . core . LinkBuilderSupport # createNewInstance ( org . springframework . web . util . UriComponentsBuilder , java . util . List ) */ @ Override protected final T createNewInstance ( UriComponentsBui...
return createNewInstance ( builder , affordances , variables ) ;
public class VaadinExtensionsConfiguration { /** * Vaadin Http Service * Allow access to HttpRequest / HttpResponse */ @ Bean @ Scope ( value = org . springframework . web . context . WebApplicationContext . SCOPE_REQUEST , proxyMode = ScopedProxyMode . INTERFACES ) HttpService httpService ( ) { } }
return new VaadinHttpService ( ) ;
public class AbstractAdminController { /** * manually resolve of locale . . . to request . useful for path variables * @ param language locale representation as string * @ param request * @ param response */ protected void resolveLocale ( String language , HttpServletRequest request , HttpServletResponse response...
final LocaleEditor localeEditor = new LocaleEditor ( ) ; localeEditor . setAsText ( language ) ; resolveLocale ( ( Locale ) localeEditor . getValue ( ) , request , response ) ;
public class Normalizer { /** * Convenience method . * @ param source Array of characters for determining if it is in a * normalized format * @ param mode normalization format ( Normalizer . NFC , Normalizer . NFD , * Normalizer . NFKC , Normalizer . NFKD ) * @ param options Options for use with exclusion set...
return quickCheck ( source , 0 , source . length , mode , options ) ;
public class AmazonMachineLearningWaiters { /** * Builds a EvaluationAvailable waiter by using custom parameters waiterParameters and other parameters defined in * the waiters specification , and then polls until it determines whether the resource entered the desired state or * not , where polling criteria is bound...
return new WaiterBuilder < DescribeEvaluationsRequest , DescribeEvaluationsResult > ( ) . withSdkFunction ( new DescribeEvaluationsFunction ( client ) ) . withAcceptors ( new EvaluationAvailable . IsCOMPLETEDMatcher ( ) , new EvaluationAvailable . IsFAILEDMatcher ( ) ) . withDefaultPollingStrategy ( new PollingStrategy...
public class DateUtils { /** * 添加小时 * @ param date 日期 * @ param amount 数量 * @ return 添加后的日期 */ public static Date addHour ( Date date , int amount ) { } }
return add ( date , Calendar . HOUR , amount ) ;
public class DAGraph { /** * Copies entries in the source map to target map . * @ param source source map * @ param target target map */ private void merge ( Map < String , NodeT > source , Map < String , NodeT > target ) { } }
for ( Map . Entry < String , NodeT > entry : source . entrySet ( ) ) { String key = entry . getKey ( ) ; if ( ! target . containsKey ( key ) ) { target . put ( key , entry . getValue ( ) ) ; } }
public class DocumentTreeResource { /** * Returns a document path for the given path params . */ private DocumentPath getDocumentPath ( List < PathSegment > params ) { } }
if ( params . isEmpty ( ) ) { return DocumentPath . ROOT ; } else { return DocumentPath . from ( params . stream ( ) . map ( PathSegment :: getPath ) . collect ( Collectors . toList ( ) ) ) ; }
public class ComputeExecutor { /** * Helper method to check whether implicit or attribute types are included in the query scope * @ return true if they exist , false if they don ' t */ private boolean scopeIncludesImplicitOrAttributeTypes ( GraqlCompute query ) { } }
if ( query . in ( ) . isEmpty ( ) ) return false ; return query . in ( ) . stream ( ) . anyMatch ( t -> { Label label = Label . of ( t ) ; SchemaConcept type = tx . getSchemaConcept ( label ) ; return ( type != null && ( type . isAttributeType ( ) || type . isImplicit ( ) ) ) ; } ) ;
public class WxPayApiConfig { /** * 构建查询订单参数 * @ return < Map < String , String > > */ public Map < String , String > orderQueryBuild ( ) { } }
Map < String , String > map = new HashMap < String , String > ( ) ; if ( getPayModel ( ) . equals ( PayModel . SERVICEMODE ) ) { map . put ( "sub_mch_id" , getSubMchId ( ) ) ; map . put ( "sub_appid" , getSubAppId ( ) ) ; } map . put ( "appid" , getAppId ( ) ) ; map . put ( "mch_id" , getMchId ( ) ) ; if ( StrKit . not...
public class XSLTElementDef { /** * Construct an instance of XSLTElementDef . * @ param namespace The Namespace URI , " * " , or null . * @ param name The local name ( without prefix ) , " * " , or null . * @ param nameAlias A potential alias for the name , or null . * @ param elements An array of allowed child...
this . m_namespace = namespace ; this . m_name = name ; this . m_nameAlias = nameAlias ; this . m_elements = elements ; this . m_attributes = attributes ; setElementProcessor ( contentHandler ) ; this . m_classObject = classObject ; if ( hasRequired ( ) && m_elements != null ) { int n = m_elements . length ; for ( int ...
public class Seconds { /** * Obtains a { @ code Seconds } from a text string such as { @ code PTnS } . * This will parse the string produced by { @ code toString ( ) } and other * related formats based on ISO - 8601 { @ code PnDTnHnMnS } . * The string starts with an optional sign , denoted by the ASCII negative ...
Objects . requireNonNull ( text , "text" ) ; Matcher matcher = PATTERN . matcher ( text ) ; if ( matcher . matches ( ) ) { int negate = "-" . equals ( matcher . group ( 1 ) ) ? - 1 : 1 ; String daysStr = matcher . group ( 2 ) ; String hoursStr = matcher . group ( 3 ) ; String minutesStr = matcher . group ( 4 ) ; String...
public class WriteFieldClass { /** * Write the field initialize code */ public void writeFieldInit ( ) { } }
String strClassName ; Record recClassInfo = this . getMainRecord ( ) ; strClassName = recClassInfo . getField ( ClassInfo . CLASS_NAME ) . getString ( ) ; if ( this . readThisMethod ( strClassName ) ) this . writeThisMethod ( CodeType . THICK ) ; else this . writeThisMethod ( CodeType . THICK ) ;
public class ByteArraySerializer { /** * ( non - Javadoc ) * @ see Serializer # deserialize ( byte [ ] , * java . lang . Class ) */ @ SuppressWarnings ( "unchecked" ) @ Override public final < T > T deserialize ( byte [ ] content , Class < T > clazz ) throws SerializerException { } }
if ( byte [ ] . class . equals ( clazz ) ) { return ( T ) content ; } throw new SerializerException ( "Unable to deserialize to type '" + clazz . getName ( ) + "'" ) ;
public class WaitFor { /** * Waits up to the provided wait time for a confirmation present on the page has content equal to the * expected text . This information will be logged and recorded , with a * screenshot for traceability and added debugging support . * @ param expectedConfirmationText the expected text o...
try { double timeTook = popup ( seconds ) ; timeTook = popupEquals ( seconds - timeTook , expectedConfirmationText ) ; checkConfirmationEquals ( expectedConfirmationText , seconds , timeTook ) ; } catch ( TimeoutException e ) { checkConfirmationEquals ( expectedConfirmationText , seconds , seconds ) ; }
public class PhoneIntents { /** * Creates an intent that will open the phone app and enter the given number . Unlike * { @ link # newCallNumberIntent ( String ) } , this does not actually dispatch the call , so it gives the user a chance to * review and edit the number . * @ param phoneNumber the number to dial ...
final Intent intent ; if ( phoneNumber == null || phoneNumber . trim ( ) . length ( ) <= 0 ) { intent = new Intent ( Intent . ACTION_DIAL , Uri . parse ( "tel:" ) ) ; } else { intent = new Intent ( Intent . ACTION_DIAL , Uri . parse ( "tel:" + phoneNumber . replace ( " " , "" ) ) ) ; } return intent ;
public class SyncMembersInner { /** * Creates or updates a sync member . * @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal . * @ param serverName The name of the server . * @ param databaseName The na...
return beginCreateOrUpdateWithServiceResponseAsync ( resourceGroupName , serverName , databaseName , syncGroupName , syncMemberName , parameters ) . toBlocking ( ) . single ( ) . body ( ) ;
public class ConvertDateExtensions { /** * Converts a Date to a Timestamp - object . * @ param date * The date to convert . * @ return The Timestamp from the date . */ public static Timestamp toTimestamp ( final Date date ) { } }
final Calendar cal = new GregorianCalendar ( ) ; cal . setTime ( date ) ; cal . set ( Calendar . HOUR_OF_DAY , 0 ) ; cal . set ( Calendar . MINUTE , 0 ) ; cal . set ( Calendar . SECOND , 0 ) ; cal . set ( Calendar . MILLISECOND , 0 ) ; return new Timestamp ( cal . getTime ( ) . getTime ( ) ) ;
public class S3StorageProvider { /** * Creates a " hidden " space . This space will not be returned by the StorageProvider . getSpaces ( ) method . * It can be accessed using the getSpace * methods . You must know the name of the space in order to * access it . * @ param spaceId The spaceId * @ param expiration...
String bucketName = getHiddenBucketName ( spaceId ) ; try { Bucket bucket = s3Client . createBucket ( bucketName ) ; // Apply lifecycle config to bucket BucketLifecycleConfiguration . Rule expiresRule = new BucketLifecycleConfiguration . Rule ( ) . withId ( "ExpirationRule" ) . withExpirationInDays ( expirationInDays )...
public class CPDisplayLayoutPersistenceImpl { /** * Clears the cache for all cp display layouts . * The { @ link EntityCache } and { @ link FinderCache } are both cleared by this method . */ @ Override public void clearCache ( ) { } }
entityCache . clearCache ( CPDisplayLayoutImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ;
public class ParameterTool { /** * Merges two { @ link ParameterTool } . * @ param other Other { @ link ParameterTool } object * @ return The Merged { @ link ParameterTool } */ public ParameterTool mergeWith ( ParameterTool other ) { } }
final Map < String , String > resultData = new HashMap < > ( data . size ( ) + other . data . size ( ) ) ; resultData . putAll ( data ) ; resultData . putAll ( other . data ) ; final ParameterTool ret = new ParameterTool ( resultData ) ; final HashSet < String > requestedParametersLeft = new HashSet < > ( data . keySet...
public class EntityGroupImpl { /** * Returns the < code > Set < / code > of < code > IGroupMembers < / code > in our member < code > Collection * < / code > and , recursively , in the < code > Collections < / code > of our members . * @ param rslt Set - a Set that members are added to . * @ return Set */ private ...
for ( IGroupMember gm : getChildren ( ) ) { rslt . add ( gm ) ; if ( gm . isGroup ( ) ) { ( ( EntityGroupImpl ) gm ) . primGetAllMembers ( rslt ) ; } } return rslt ;
public class ConnectionManager { /** * not associated with a connection to get reassociated with a valid connection . */ private void associateConnection ( ManagedConnectionFactory mcf , Subject subject , ConnectionRequestInfo cri , Object connection ) throws ResourceException { } }
final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "associateConnection" ) ; UOWCurrent uowCurrent = ( UOWCurrent ) _pm . connectorSvc . transactionManager ; UOWCoordinator uowCoord = uowCurrent == null ? null : uowCurrent . getUOWCo...
public class ExprMacroTable { /** * Returns an expr corresponding to a function call if this table has an entry for { @ code functionName } . * Otherwise , returns null . * @ param functionName function name * @ param args function arguments * @ return expr for this function call , or null */ @ Nullable public ...
final ExprMacro exprMacro = macroMap . get ( StringUtils . toLowerCase ( functionName ) ) ; if ( exprMacro == null ) { return null ; } return exprMacro . apply ( args ) ;
public class BeanQuery { /** * Specify the property of the beans to be compared by the * propertyValueComparator when sorting the result . If there is not a * accessible public read method of the property , the value of the property * passed to the propertyValueComparator will be null . */ public BeanQuery < T > ...
this . comparator = new DelegatedSortOrderableComparator ( new PropertyComparator ( orderByProperty , propertyValueComparator ) ) ; return this ;
public class StorePackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public EClass getRenderEnginePluginConfiguration ( ) { } }
if ( renderEnginePluginConfigurationEClass == null ) { renderEnginePluginConfigurationEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( StorePackage . eNS_URI ) . getEClassifiers ( ) . get ( 14 ) ; } return renderEnginePluginConfigurationEClass ;
public class Connection { /** * Set the connection status . * @ param workInProgress the connection work status . */ public void setJobInProgress ( Boolean workInProgress ) { } }
lastDateInfo = new SimpleDateFormat ( FILENAME_DATE_PATTERN ) . format ( new Date ( ) ) ; this . jobInProgress = workInProgress ;
public class UnProxyClassServices { /** * Get class without proxy CDI based on $ separator * @ param proxyname * @ return * @ throws java . lang . ClassNotFoundException */ String getRealClassname ( String proxyname ) throws ClassNotFoundException { } }
int index = proxyname . indexOf ( '$' ) ; if ( index != - 1 ) { return proxyname . substring ( 0 , index ) ; } else { throw new ClassNotFoundException ( ) ; }
public class CmsColor { /** * Converts the RGB into the HSV . < p > * @ param red value * @ param green value * @ param blue value */ private void RGBtoHSV ( float red , float green , float blue ) { } }
float min = 0 ; float max = 0 ; float delta = 0 ; min = MIN ( red , green , blue ) ; max = MAX ( red , green , blue ) ; m_bri = max ; delta = max - min ; if ( max != 0 ) { m_sat = delta / max ; } else { m_sat = 0 ; m_hue = 0 ; return ; } if ( delta == 0 ) { m_hue = 0 ; return ; } if ( red == max ) { m_hue = ( green - b...
public class RfSessionFactoryImpl { /** * ( non - Javadoc ) * @ see * org . jdiameter . api . app . StateChangeListener # stateChanged ( java . lang . Object , * java . lang . Enum , java . lang . Enum ) */ @ Override @ SuppressWarnings ( "unchecked" ) public void stateChanged ( AppSession source , Enum oldState ...
logger . info ( "Diameter Rf SessionFactory :: stateChanged :: source[{}], oldState[{}], newState[{}]" , new Object [ ] { source , oldState , newState } ) ;
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link BridgePartType } { @ code > } * @ param value * Java instance representing xml element ' s value . * @ return * the new instance of { @ link JAXBElement } { @ code < } { @ link BridgePartType } { @ code > } */ ...
return new JAXBElement < BridgePartType > ( _BridgePart_QNAME , BridgePartType . class , null , value ) ;
public class PactDslRootValue { /** * Value that must be a decimal value */ public static PactDslRootValue decimalType ( ) { } }
PactDslRootValue value = new PactDslRootValue ( ) ; value . generators . addGenerator ( Category . BODY , "" , new RandomDecimalGenerator ( 10 ) ) ; value . setValue ( 100 ) ; value . setMatcher ( new NumberTypeMatcher ( NumberTypeMatcher . NumberType . DECIMAL ) ) ; return value ;
public class RegistrationManagerImpl { /** * { @ inheritDoc } */ @ Override public void unregisterService ( String serviceName , String providerId ) throws ServiceException { } }
ServiceInstanceUtils . validateManagerIsStarted ( isStarted ) ; ServiceInstanceUtils . validateServiceName ( serviceName ) ; ServiceInstanceUtils . validateServiceInstanceID ( providerId ) ; getRegistrationService ( ) . unregisterService ( serviceName , providerId ) ;
public class CodedInput { /** * Read a 32 - bit little - endian integer from the stream . */ public int readRawLittleEndian32 ( ) throws IOException { } }
final byte b1 = readRawByte ( ) ; final byte b2 = readRawByte ( ) ; final byte b3 = readRawByte ( ) ; final byte b4 = readRawByte ( ) ; return ( ( ( int ) b1 & 0xff ) ) | ( ( ( int ) b2 & 0xff ) << 8 ) | ( ( ( int ) b3 & 0xff ) << 16 ) | ( ( ( int ) b4 & 0xff ) << 24 ) ;
public class CmsStaticExportManager { /** * Sets the static export handler class . < p > * @ param handlerClassName the static export handler class name */ public void setLinkSubstitutionHandler ( String handlerClassName ) { } }
try { m_linkSubstitutionHandler = ( I_CmsLinkSubstitutionHandler ) Class . forName ( handlerClassName ) . newInstance ( ) ; } catch ( Exception e ) { // should never happen LOG . error ( e . getLocalizedMessage ( ) , e ) ; }
public class CalendarUtil { /** * Create a XMLGregorianCalendar Without Time Component . * @ param cal The initial Calendar * @ return An XMLGregorianCalendar */ public XMLGregorianCalendar buildXMLGregorianCalendarDate ( Calendar cal ) { } }
XMLGregorianCalendar result = null ; if ( cal != null ) { result = newXMLGregorianCalendar ( cal . get ( Calendar . DAY_OF_MONTH ) , cal . get ( Calendar . MONTH ) + 1 , cal . get ( Calendar . YEAR ) ) ; } return result ;
public class CmsPropertyCustom { /** * Initializes the explorer type settings for the current resource type . < p > */ protected void initExplorerTypeSettings ( ) { } }
try { CmsResource res = getCms ( ) . readResource ( getParamResource ( ) , CmsResourceFilter . ALL ) ; if ( res . isFolder ( ) ) { if ( ! getParamResource ( ) . endsWith ( "/" ) ) { // append folder separator to resource name setParamResource ( getParamResource ( ) + "/" ) ; } } String resTypeName = OpenCms . getResour...
public class SchemaCache { /** * Utility method to get the validator for a given schema using the error * handler provided in the constructor . * @ param aSchema * The schema for which the validator is to be retrieved . May not be * < code > null < / code > . * @ return The validator and never < code > null <...
ValueEnforcer . notNull ( aSchema , "Schema" ) ; final Validator aValidator = aSchema . newValidator ( ) ; aValidator . setErrorHandler ( m_aSchemaFactory . getErrorHandler ( ) ) ; return aValidator ;
public class AbstractElementFactory { /** * This method serializaes object into JSON string * @ param element * @ return */ @ Override public String serialize ( T element ) { } }
String json = null ; try { json = element . toJSON ( ) ; } catch ( Exception e ) { log . error ( "Direct serialization failed, falling back to jackson" ) ; } if ( json == null || json . isEmpty ( ) ) { ObjectMapper mapper = SequenceElement . mapper ( ) ; try { json = mapper . writeValueAsString ( element ) ; } catch ( ...
public class SamlUtil { /** * Returns a { @ link NameID } which is matched to the specified { @ code filter } from the { @ link Response } . */ public static Optional < NameID > getNameId ( Response response , Predicate < NameID > filter ) { } }
return response . getAssertions ( ) . stream ( ) . map ( s -> s . getSubject ( ) . getNameID ( ) ) . filter ( filter ) . findFirst ( ) ;
public class CalendarPath { /** * Method to construct the between expression for date * @ param startValue the start value * @ param endValue the end value * @ return Expression */ public Expression < java . util . Date > between ( java . util . Date startValue , java . util . Date endValue ) { } }
SimpleDateFormat formatter = getDateTimeFormatter ( ) ; String valueString = "'" + formatter . format ( startValue ) . concat ( "Z" ) + "' AND '" + formatter . format ( endValue ) + "'" ; return new Expression < java . util . Date > ( this , Operation . between , valueString ) ;
public class SharedSlot { /** * Removes the given slot from this shared slot . This method Should only be called * through this shared slot ' s { @ link SlotSharingGroupAssignment } * @ param slot slot to be removed from the set of sub slots . * @ return Number of remaining sub slots */ int removeDisposedChildSlo...
if ( ! slot . isReleased ( ) || ! subSlots . remove ( slot ) ) { throw new IllegalArgumentException ( ) ; } return subSlots . size ( ) ;
public class FlowTypeCheck { /** * Type check a sequence of zero or more conditions , such as the requires clause * of a function or method . The environment from each condition is fed into the * following . This means that , in principle , type tests influence both * subsequent conditions and the remainder . The...
for ( Expr e : conditions ) { // Thread environment through from before environment = checkCondition ( e , sign , environment ) ; } return environment ;
public class SubmitterDocumentRepositoryMongoImpl { /** * { @ inheritDoc } */ @ Override public final SubmitterDocument findByFileAndString ( final String filename , final String string ) { } }
final Query searchQuery = new Query ( Criteria . where ( "string" ) . is ( string ) . and ( "filename" ) . is ( filename ) ) ; final SubmitterDocument submitterDocument = mongoTemplate . findOne ( searchQuery , SubmitterDocumentMongo . class ) ; if ( submitterDocument == null ) { return null ; } final Submitter submitt...
public class InvoiceCalculatorUtils { /** * Item adjustments */ public static boolean isInvoiceItemAdjustmentItem ( final InvoiceItem invoiceItem ) { } }
return InvoiceItemType . ITEM_ADJ . equals ( invoiceItem . getInvoiceItemType ( ) ) || InvoiceItemType . REPAIR_ADJ . equals ( invoiceItem . getInvoiceItemType ( ) ) ;
public class AbstractRedisClient { /** * - - - DISCONNECT - - - */ protected Promise disconnect ( ) { } }
if ( group != null ) { try { group . shutdownGracefully ( 1 , 1 , TimeUnit . SECONDS ) . await ( 1 , TimeUnit . SECONDS ) ; } catch ( InterruptedException ignored ) { } finally { group = null ; } } if ( resources != null ) { try { resources . shutdown ( 1 , 1 , TimeUnit . SECONDS ) . await ( 1 , TimeUnit . SECONDS ) ; ...
public class Matrix3x2d { /** * / * ( non - Javadoc ) * @ see org . joml . Matrix3x2dc # get ( com . google . gwt . typedarrays . shared . Float64Array ) */ public Float64Array get ( Float64Array buffer ) { } }
buffer . set ( 0 , m00 ) ; buffer . set ( 1 , m01 ) ; buffer . set ( 2 , m10 ) ; buffer . set ( 3 , m11 ) ; buffer . set ( 4 , m20 ) ; buffer . set ( 5 , m21 ) ; return buffer ;
public class AbstractLIBORCovarianceModel { /** * / * ( non - Javadoc ) * @ see net . finmath . montecarlo . interestrate . models . covariance . LIBORCovarianceModel # getFactorLoading ( double , int , net . finmath . stochastic . RandomVariable [ ] ) */ @ Override public RandomVariable [ ] getFactorLoading ( double...
int timeIndex = timeDiscretization . getTimeIndex ( time ) ; if ( timeIndex < 0 ) { timeIndex = - timeIndex - 2 ; } return getFactorLoading ( timeIndex , component , realizationAtTimeIndex ) ;
public class RESTRegistryService { /** * Returns the registry node which wraps a node of type " exo : registry " ( the whole registry tree ) * @ response * { code } * " entryStream " : the output stream corresponding registry node which wraps a node of type " exo : registry " ( the whole registry tree ) * { cod...
SessionProvider sessionProvider = sessionProviderService . getSessionProvider ( null ) ; try { RegistryNode registryEntry = regService . getRegistry ( sessionProvider ) ; if ( registryEntry != null ) { Node registryNode = registryEntry . getNode ( ) ; NodeIterator registryIterator = registryNode . getNodes ( ) ; Docume...
public class DateField { /** * Set up the default screen control for this field ( Default using a DateConverter ) . * @ param itsLocation Location of this component on screen ( ie . , GridBagConstraint ) . * @ param targetScreen Where to place this component ( ie . , Parent screen or GridBagLayout ) . * @ param c...
converter = new DateConverter ( ( Converter ) converter , DBConstants . DATE_FORMAT ) ; return super . setupDefaultView ( itsLocation , targetScreen , converter , iDisplayFieldDesc , properties ) ;
public class ListWidget { /** * Remove a previously added @ linkplain # addOnItemTouchListener ( OnItemTouchListener ) } * registered } touch notification { @ linkplain OnItemTouchListener listener } . * @ param listener * An implementation of { @ link OnItemTouchListener } * @ return { @ code true } if the lis...
boolean removed = mItemTouchListeners . remove ( listener ) ; Log . d ( Log . SUBSYSTEM . LAYOUT , TAG , "removeOnItemTouchListener listener %s added = %b" , listener , removed ) ; return removed ;
public class NullResourceLocksHolder { /** * Checks if the node can be unlocked using current tokens . * @ param session current session * @ param path node path * @ param tokens tokens * @ throws LockException { @ link LockException } */ public void checkLock ( Session session , String path , List < String > t...
String repoPath = session . getRepository ( ) . hashCode ( ) + "/" + session . getWorkspace ( ) . getName ( ) + "/" + path ; String currentToken = nullResourceLocks . get ( repoPath ) ; if ( currentToken == null ) { return ; } if ( tokens != null ) { for ( String token : tokens ) { if ( token . equals ( currentToken ) ...
public class PlanNode { /** * Remove the node ' s value for this supplied property . * @ param propertyId the property identifier * @ return the value that was removed , or null if there was no property on this node */ public Object removeProperty ( Object propertyId ) { } }
return nodeProperties != null ? nodeProperties . remove ( propertyId ) : null ;
public class RestorePointsInner { /** * Creates a restore point for a data warehouse . * @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal . * @ param serverName The name of the server . * @ param datab...
return createWithServiceResponseAsync ( resourceGroupName , serverName , databaseName , restorePointLabel ) . toBlocking ( ) . last ( ) . body ( ) ;