signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class BosClient { /** * Initiates a multipart upload and returns an InitiateMultipartUploadResponse * which contains an upload ID . This upload ID associates all the parts in * the specific upload and is used in each of your subsequent uploadPart requests . * You also include this upload ID in the final re...
return this . initiateMultipartUpload ( new InitiateMultipartUploadRequest ( bucketName , key ) ) ;
public class ListWorkersWithQualificationTypeResult { /** * The list of Qualification elements returned by this call . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setQualifications ( java . util . Collection ) } or { @ link # withQualifications ( java . u...
if ( this . qualifications == null ) { setQualifications ( new java . util . ArrayList < Qualification > ( qualifications . length ) ) ; } for ( Qualification ele : qualifications ) { this . qualifications . add ( ele ) ; } return this ;
public class AbstractCypherRuleInterpreterPlugin { /** * Verifies if the given row shall be suppressed . * The primary column is checked if it contains a suppression that matches the * current rule id . * @ param ruleId * The rule id . * @ param row * The row . * @ param primaryColumn * The name of the ...
Object primaryValue = row . get ( primaryColumn ) ; if ( primaryValue != null && Suppress . class . isAssignableFrom ( primaryValue . getClass ( ) ) ) { Suppress suppress = ( Suppress ) primaryValue ; for ( String suppressId : suppress . getSuppressIds ( ) ) { if ( ruleId . equals ( suppressId ) ) { return true ; } } }...
public class Utils { /** * Writes a { @ code T } instance to { @ code dest } using { @ code adapter } . This method can handle * { @ code null } values . When reading this type out of the parcel later , you should use * { @ link # readNullable ( Parcel , TypeAdapter ) } . */ public static < T > void writeNullable (...
if ( value == null ) { dest . writeInt ( 0 ) ; } else { dest . writeInt ( 1 ) ; adapter . writeToParcel ( value , dest , flags ) ; }
public class ADictionary { /** * load all the words in the specified lexicon file into the dictionary * @ param config * @ param dic * @ param file * @ param buffer * @ throws IOException * @ throws FileNotFoundException * @ throws NumberFormatException */ public static void loadWords ( JcsegTaskConfig co...
loadWords ( config , dic , new FileInputStream ( file ) , buffer ) ;
public class Parser { /** * Create a node that can be used to hold lexically scoped variable * definitions ( via let declarations ) . * @ param token the token of the node to create * @ param lineno line number of source * @ return the created node */ protected Scope createScopeNode ( int token , int lineno ) {...
Scope scope = new Scope ( ) ; scope . setType ( token ) ; scope . setLineno ( lineno ) ; return scope ;
public class AmazonEKSClient { /** * Creates an Amazon EKS control plane . * The Amazon EKS control plane consists of control plane instances that run the Kubernetes software , like * < code > etcd < / code > and the API server . The control plane runs in an account managed by AWS , and the Kubernetes API * is ex...
request = beforeClientExecution ( request ) ; return executeCreateCluster ( request ) ;
public class PersistableImpl { /** * Only update the persistent copy of the binary data held within this Persistable . * @ param tran The ObjectManager transaction under which the update of the data is carried out . * @ exception ObjectManagerException * @ throws SevereMessageStoreException */ public void updateD...
updateDataOnly ( tran , store , this ) ;
public class CmsDelete { /** * Performs the delete operation for a single VFS resource . < p > * @ param resource the resource VFS path * @ param deleteOption the delete option for sibling deletion * @ throws CmsException if deleting the resource fails */ protected void performSingleDeleteOperation ( String resou...
// lock resource if autolock is enabled checkLock ( resource ) ; // delete the resource getCms ( ) . deleteResource ( resource , deleteOption ) ;
public class ClassLoaderFinder { /** * Pop the preferred class loader . */ public static void popPreferredClassLoader ( ) { } }
final ClassLoader sysLoader = ClassLoaderFinder . class . getClassLoader ( ) ; if ( ( dynamicLoader == null ) || ( dynamicLoader == sysLoader ) ) { dynamicLoader = null ; final Thread [ ] threads = new Thread [ Thread . activeCount ( ) ] ; Thread . enumerate ( threads ) ; for ( final Thread t : threads ) { if ( t != nu...
public class HttpRequestImpl { /** * ( non - Javadoc ) * @ see com . ibm . wsspi . http . HttpRequest # isTrailersReady ( ) */ @ Override public boolean isTrailersReady ( ) { } }
if ( ! message . isChunkedEncodingSet ( ) || ! message . containsHeader ( HttpHeaderKeys . HDR_TRAILER ) || ( ( HttpBaseMessageImpl ) message ) . getTrailersImpl ( ) != null || ( message . getVersionValue ( ) . getMajor ( ) <= 1 && message . getVersionValue ( ) . getMinor ( ) < 1 ) ) return true ; return false ;
public class BeanBuilder { /** * Add to the qualifiers used for bean creation . * @ param qualifiers the additional qualifiers to use */ public BeanBuilder < T > addQualifiers ( Annotation ... qualifiers ) { } }
this . qualifiers . addAll ( Arrays2 . asSet ( qualifiers ) ) ; return this ;
public class ClassicLayoutManager { /** * If there is a SubReport on a Group , we do the layout here * @ param columnsGroup * @ param jgroup */ protected void layoutGroupSubreports ( DJGroup columnsGroup , JRDesignGroup jgroup ) { } }
log . debug ( "Starting subreport layout..." ) ; JRDesignBand footerBand = ( JRDesignBand ) ( ( JRDesignSection ) jgroup . getGroupFooterSection ( ) ) . getBandsList ( ) . get ( 0 ) ; JRDesignBand headerBand = ( JRDesignBand ) ( ( JRDesignSection ) jgroup . getGroupHeaderSection ( ) ) . getBandsList ( ) . get ( 0 ) ; l...
public class MPD9AbstractReader { /** * Process calendar hours . * @ param calendar parent calendar * @ param row calendar hours data * @ param dayIndex day index */ private void processCalendarHours ( ProjectCalendar calendar , Row row , int dayIndex ) { } }
Day day = Day . getInstance ( dayIndex ) ; boolean working = row . getInt ( "CD_WORKING" ) != 0 ; calendar . setWorkingDay ( day , working ) ; if ( working == true ) { ProjectCalendarHours hours = calendar . addCalendarHours ( day ) ; Date start = row . getDate ( "CD_FROM_TIME1" ) ; Date end = row . getDate ( "CD_TO_TI...
public class ProtobufIDLProxy { /** * Creates the . * @ param reader the reader * @ param debug the debug * @ param path the path * @ param isUniName the is uni name * @ return the map * @ throws IOException Signals that an I / O exception has occurred . */ public static Map < String , IDLProxyObject > crea...
ProtoFile protoFile = ProtoSchemaParser . parse ( DEFAULT_FILE_NAME , reader ) ; List < CodeDependent > cds = new ArrayList < CodeDependent > ( ) ; return doCreate ( protoFile , true , debug , path , false , null , cds , new HashMap < String , String > ( ) , isUniName ) ;
public class DbUtils { /** * Executes and closes the given { @ code preparedStatement } . * @ param preparedStatement * the statement that will be executed and immediately closed * @ throws SQLException * if error occurred while executing the given * { @ code preparedStatement } * @ see PreparedStatement # ...
try { preparedStatement . execute ( ) ; } finally { try { preparedStatement . close ( ) ; } catch ( SQLException e ) { if ( logger . isDebugEnabled ( ) ) { logger . debug ( e . getMessage ( ) , e ) ; } } }
public class Point { /** * Sets the Point to a default , non - empty state . */ void _setToDefault ( ) { } }
resizeAttributes ( m_description . getTotalComponentCount ( ) ) ; Point . attributeCopy ( m_description . _getDefaultPointAttributes ( ) , m_attributes , m_description . getTotalComponentCount ( ) ) ; m_attributes [ 0 ] = NumberUtils . NaN ( ) ; m_attributes [ 1 ] = NumberUtils . NaN ( ) ;
public class IntRange { /** * { @ inheritDoc } */ public Integer getTo ( ) { } }
if ( inclusive == null ) return to ; if ( from <= to ) return inclusive ? to : to - 1 ; return from ;
public class HttpSupport { /** * Convenience method to get file content from < code > multipart / form - data < / code > request . If more than one files with the same * name are submitted , only one is returned . * @ param fieldName name of form field from the < code > multipart / form - data < / code > request co...
for ( FormItem formItem : formItems ) { if ( formItem instanceof org . javalite . activeweb . FileItem && formItem . getFieldName ( ) . equals ( fieldName ) ) { return ( org . javalite . activeweb . FileItem ) formItem ; } } return null ;
public class BaseRunner { /** * Start the Jetty server . */ public void startServer ( ) { } }
server = new Server ( httpPort ) ; server . setHandler ( wrapHandlers ( ) ) ; if ( isWebSocketInClassPath ( ) ) { setupForWebSocket ( ) ; } try { server . start ( ) ; log ( ) . info ( "server started" ) ; Runtime . getRuntime ( ) . addShutdownHook ( new Thread ( new ShutdownRunnable ( ) ) ) ; if ( useStdInShutdown ) { ...
public class StreamingConnectionImpl { /** * Publish will publish to the cluster and wait for an ACK . */ @ Override public void publish ( String subject , byte [ ] data ) throws IOException , InterruptedException , TimeoutException { } }
final BlockingQueue < String > ch = createErrorChannel ( ) ; publish ( subject , data , null , ch ) ; String err ; if ( ! ch . isEmpty ( ) ) { err = ch . take ( ) ; if ( ! err . isEmpty ( ) ) { throw new IOException ( err ) ; } }
public class CmsExtendedWorkflowManager { /** * Checks whether the user for a given CMS context can manage workflow projects . < p > * @ param userCms the user CMS Context * @ return true if this user can manage workflow projects * @ throws CmsException if something goes wrong */ protected boolean isProjectManage...
CmsGroup managerGroup = m_adminCms . readGroup ( getWorkflowProjectManagerGroup ( ) ) ; List < CmsGroup > groups = m_adminCms . getGroupsOfUser ( userCms . getRequestContext ( ) . getCurrentUser ( ) . getName ( ) , false ) ; return groups . contains ( managerGroup ) ;
public class PatternsImpl { /** * Updates a pattern . * @ param appId The application ID . * @ param versionId The version ID . * @ param patternId The pattern ID . * @ param pattern An object representing a pattern . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ return th...
if ( this . client . endpoint ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.endpoint() is required and cannot be null." ) ; } if ( appId == null ) { throw new IllegalArgumentException ( "Parameter appId is required and cannot be null." ) ; } if ( versionId == null ) { throw new IllegalArgu...
public class DisableJSessionIDinUrlApplication { /** * Disable sessionId in the url if it comes from a robot . * @ param webRequest * the web request * @ param httpServletResponse * the http servlet response * @ return the web response */ @ Override protected WebResponse newWebResponse ( final WebRequest webR...
return new ServletWebResponse ( ( ServletWebRequest ) webRequest , httpServletResponse ) { @ Override public String encodeRedirectURL ( final CharSequence url ) { return isRobot ( webRequest ) ? url . toString ( ) : super . encodeRedirectURL ( url ) ; } @ Override public String encodeURL ( final CharSequence url ) { re...
public class DerivedByInsertionFrom { /** * Gets the value of the other property . * This accessor method returns a reference to the live list , * not a snapshot . Therefore any modification you make to the * returned list will be present inside the JAXB object . * This is why there is not a < CODE > set < / CO...
if ( other == null ) { other = new ArrayList < org . openprovenance . prov . model . Other > ( ) ; } return this . other ;
public class VorbisFormatConversionProvider { /** * Returns converted AudioInputStream . * @ param audioInputStream * @ return */ @ Override public AudioInputStream getAudioInputStream ( AudioFormat targetFormat , AudioInputStream audioInputStream ) { } }
if ( isConversionSupported ( targetFormat , audioInputStream . getFormat ( ) ) ) { return new DecodedVorbisAudioInputStream ( targetFormat , audioInputStream ) ; } else { throw new IllegalArgumentException ( "conversion not supported" ) ; }
public class LBiObjLongConsumerBuilder { /** * One of ways of creating builder . This is possibly the least verbose way where compiler should be able to guess the generic parameters . */ @ Nonnull public static < T1 , T2 > LBiObjLongConsumer < T1 , T2 > biObjLongConsumerFrom ( Consumer < LBiObjLongConsumerBuilder < T1 ...
LBiObjLongConsumerBuilder builder = new LBiObjLongConsumerBuilder ( ) ; buildingFunction . accept ( builder ) ; return builder . build ( ) ;
public class DateFormatSymbols { /** * Finds the ResourceBundle containing the date format information for * a specified calendar subclass in a given locale . * The resource bundle name is based on the calendar ' s fully - specified * class name , with " . resources " inserted at the end of the package name * (...
return null ;
public class AbcGrammar { /** * field - userdef - play : : = % x75.3A * WSP userdef header - eol < p > * < tt > u : < / tt > */ Rule FieldUserdefPlay ( ) { } }
return Sequence ( String ( "u:" ) , ZeroOrMore ( WSP ( ) ) . suppressNode ( ) , Userdef ( ) , HeaderEol ( ) ) . label ( FieldUserdefPlay ) ;
public class DbRemoteConfigLoader { /** * 加载adapter配置 */ @ Override public void loadRemoteAdapterConfigs ( ) { } }
try { // 加载远程adapter配置 loadModifiedAdapterConfigs ( ) ; } catch ( Exception e ) { logger . error ( e . getMessage ( ) , e ) ; }
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link ElementaryFunctionsType } { @ code > } } */ @ XmlElementDecl ( namespace = "http://www.w3.org/1998/Math/MathML" , name = "sech" ) public JAXBElement < ElementaryFunctionsType > createSech ( ElementaryFunctionsType valu...
return new JAXBElement < ElementaryFunctionsType > ( _Sech_QNAME , ElementaryFunctionsType . class , null , value ) ;
public class USerializedSet { /** * Returns a range of characters contained in the given serialized * set . * @ param rangeIndex a non - negative integer in the range < code > 0 . . * getSerializedRangeCount ( ) - 1 < / code > * @ param range variable to receive the data in the range * @ return true if rangeI...
if ( rangeIndex < 0 ) { return false ; } if ( array == null ) { array = new char [ 8 ] ; } if ( range == null || range . length < 2 ) { throw new IllegalArgumentException ( ) ; } rangeIndex *= 2 ; /* address start / limit pairs */ if ( rangeIndex < bmpLength ) { range [ 0 ] = array [ rangeIndex ++ ] ; if ( rangeIndex <...
public class UpdateThingGroupsForThingRequest { /** * The groups from which the thing will be removed . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setThingGroupsToRemove ( java . util . Collection ) } or { @ link # withThingGroupsToRemove ( java . util ....
if ( this . thingGroupsToRemove == null ) { setThingGroupsToRemove ( new java . util . ArrayList < String > ( thingGroupsToRemove . length ) ) ; } for ( String ele : thingGroupsToRemove ) { this . thingGroupsToRemove . add ( ele ) ; } return this ;
public class CmsListMetadata { /** * Returns the html code for a list item . < p > * @ param item the list item to render * @ param odd if the position is odd or even * @ param isPrintable if the list is to be printed * @ return html code */ public String htmlItem ( CmsListItem item , boolean odd , boolean isPr...
StringBuffer html = new StringBuffer ( 1024 ) ; html . append ( "<tr " ) ; if ( ! isPrintable ) { html . append ( "class='" ) ; html . append ( odd ? "oddrowbg" : ( getWp ( ) . useNewStyle ( ) ? "evenrowbg" : "evenrowbgnew" ) ) ; html . append ( "'" ) ; } html . append ( ">\n" ) ; Iterator < CmsListColumnDefinition > i...
public class Cluster { /** * Sets the state of the current Ordasity node and notifies others via ZooKeeper . */ private boolean setState ( NodeState to ) { } }
try { NodeInfo myInfo = new NodeInfo ( to . toString ( ) , zk . get ( ) . getSessionId ( ) ) ; byte [ ] encoded = JsonUtil . asJSONBytes ( myInfo ) ; ZKUtils . set ( zk , "/" + name + "/nodes/" + myNodeID , encoded ) ; state . set ( to ) ; return true ; } catch ( Exception e ) { // InterruptedException , IOException LO...
public class Tracy { /** * This method is used to capture annotations which should be sent back to the HTTP client * HttpResponse annotations are created by this method and retrieved using { @ link # getHttpResponseBufferAnnotations } * when the HTTP response header is to be returned as shown in example below < br ...
TracyThreadContext ctx = threadContext . get ( ) ; if ( isValidContext ( ctx ) ) { ctx . annotateOnHttpResponseBuffer ( key ) ; }
public class Api { /** * Update access mode of one or more resources by tag * @ param accessMode The new access mode , " public " or " authenticated " * @ param tag The tag by which to filter applicable resources * @ param options additional options * < ul > * < li > resource _ type - ( default " image " ) - ...
return updateResourcesAccessMode ( accessMode , "tag" , tag , options ) ;
public class Vector3i { /** * Set the value of the specified component of this vector . * @ param component * the component whose value to set , within < code > [ 0 . . 2 ] < / code > * @ param value * the value to set * @ return this * @ throws IllegalArgumentException if < code > component < / code > is n...
switch ( component ) { case 0 : x = value ; break ; case 1 : y = value ; break ; case 2 : z = value ; break ; default : throw new IllegalArgumentException ( ) ; } return this ;
public class Photo { /** * Get an InputStream for the original image . Callers must close the stream upon completion . * @ deprecated * @ see PhotosInterface # getImageAsStream ( Photo , int ) * @ return The InputStream * @ throws IOException */ @ Deprecated public InputStream getOriginalAsStream ( ) throws IOE...
if ( originalFormat != null ) { return getOriginalImageAsStream ( "_o." + originalFormat ) ; } return getOriginalImageAsStream ( DEFAULT_ORIGINAL_IMAGE_SUFFIX ) ;
public class RecursiveXPathBuilder { /** * Establish a namespace context that will be used in for the * XPath . * < p > Without a namespace context ( or with an empty context ) the * XPath expressions will only use local names for elements and * attributes . < / p > * @ param prefix2uri maps from prefix to na...
this . prefix2uri = prefix2uri == null ? Collections . < String , String > emptyMap ( ) : Collections . unmodifiableMap ( prefix2uri ) ;
public class UtilReflection { /** * Store all declared valid interfaces into next . * @ param base The minimum base interface . * @ param currents The current interfaces found . * @ param nexts The next interface to check . */ private static void checkInterfaces ( Class < ? > base , Deque < Class < ? > > currents...
currents . stream ( ) . map ( Class :: getInterfaces ) . forEach ( types -> Arrays . asList ( types ) . stream ( ) . filter ( type -> base . isAssignableFrom ( type ) && ! type . equals ( base ) ) . forEach ( nexts :: add ) ) ;
public class SmsAlertingSbb { /** * implements javax . slee . Sbb Please refer to JSLEE v1.1 Specification , Early * Draft Review Page 54 for further information . < br > * The SLEE invokes this method after a new instance of the SBB abstract * class is created . During this method , an SBB entity has not been as...
this . sbbContext = sbbContext ; try { Context ctx = ( Context ) new InitialContext ( ) . lookup ( "java:comp/env" ) ; smppProvider = ( SmppProvider ) ctx . lookup ( "slee/resources/smpp/3.4/smppinterface" ) ; smppAcif = ( ActivityContextInterfaceFactory ) ctx . lookup ( "slee/resources/smpp/3.4/factoryprovider" ) ; } ...
public class UserLayoutHelperImpl { /** * Resets a users layout for all the users profiles * @ param personAttributes */ @ BasePortalJpaDao . PortalTransactional public void resetUserLayoutAllProfiles ( final IPersonAttributes personAttributes ) { } }
final IPerson person = PersonFactory . createRestrictedPerson ( ) ; person . setAttributes ( personAttributes . getAttributes ( ) ) ; // get the integer uid into the person object without creating any new person data int uid = userIdentityStore . getPortalUID ( person , false ) ; person . setID ( uid ) ; final Hashtabl...
public class Tags { /** * Return a new { @ code Tags } instance containing tags constructed from the specified key / value pairs . * @ param keyValues the key / value pairs to add * @ return a new { @ code Tags } instance */ public static Tags of ( @ Nullable String ... keyValues ) { } }
if ( keyValues == null || keyValues . length == 0 ) { return empty ( ) ; } if ( keyValues . length % 2 == 1 ) { throw new IllegalArgumentException ( "size must be even, it is a set of key=value pairs" ) ; } Tag [ ] tags = new Tag [ keyValues . length / 2 ] ; for ( int i = 0 ; i < keyValues . length ; i += 2 ) { tags [ ...
public class Utils { /** * This stupidity is required because data types of the source and dest * might be different , but they might have the same value . Like , a number * represented as string in one system could be an int in another . That is * valid , but JSON comparison fails for that , so we check if the t...
if ( source == null || source instanceof NullNode ) { if ( dest == null || dest instanceof NullNode ) { return false ; } else { return true ; } } else if ( dest == null || dest instanceof NullNode ) { return true ; } else { String s1 = source . asText ( ) ; String s2 = dest . asText ( ) ; if ( s1 . equals ( s2 ) ) { re...
public class OrchestrationShardingDataSource { /** * Renew sharding data source . * @ param dataSourceChangedEvent data source changed event */ @ Subscribe @ SneakyThrows public final synchronized void renew ( final DataSourceChangedEvent dataSourceChangedEvent ) { } }
dataSource . close ( ) ; dataSource = new ShardingDataSource ( DataSourceConverter . getDataSourceMap ( dataSourceChangedEvent . getDataSourceConfigurations ( ) ) , dataSource . getShardingContext ( ) . getShardingRule ( ) , dataSource . getShardingContext ( ) . getShardingProperties ( ) . getProps ( ) ) ;
public class ApplicationSnapshotConfigurationUpdateMarshaller { /** * Marshall the given parameter object . */ public void marshall ( ApplicationSnapshotConfigurationUpdate applicationSnapshotConfigurationUpdate , ProtocolMarshaller protocolMarshaller ) { } }
if ( applicationSnapshotConfigurationUpdate == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( applicationSnapshotConfigurationUpdate . getSnapshotsEnabledUpdate ( ) , SNAPSHOTSENABLEDUPDATE_BINDING ) ; } catch ( Exception e ) { throw new Sd...
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link PersonType } * { @ code > } */ @ XmlElementDecl ( namespace = "http://www.w3.org/2005/Atom" , name = "author" , scope = FeedType . class ) public JAXBElement < PersonType > createFeedTypeAuthor ( PersonType value ) {...
return new JAXBElement < PersonType > ( ENTRY_TYPE_AUTHOR_QNAME , PersonType . class , FeedType . class , value ) ;
public class UnicodeSetIterator { /** * Returns the next element in the set , either a single code point * or a string . If there are no more elements in the set , return * false . If < tt > codepoint = = IS _ STRING < / tt > , the value is a * string in the < tt > string < / tt > field . Otherwise the value is a...
if ( nextElement <= endElement ) { codepoint = codepointEnd = nextElement ++ ; return true ; } if ( range < endRange ) { loadRange ( ++ range ) ; codepoint = codepointEnd = nextElement ++ ; return true ; } // stringIterator = = null iff there are no string elements remaining if ( stringIterator == null ) { return false...
public class CompletionUtils { /** * Find exported variables from raw graph files ( including malformed ones ) . * * @ param appDirectory the application ' s directory ( can be null ) * @ return a non - null map of exported variables ( key = name , value = default value ) */ public static Map < String , String > fi...
// TreeMap : keys are sorted alphabetically . Map < String , String > result = new TreeMap < > ( ) ; for ( RoboconfTypeBean type : findAllTypes ( appDirectory ) . values ( ) ) { if ( type . exportedVariables . size ( ) > 0 ) result . put ( type . getName ( ) + ".*" , IMPORT_ALL_THE_VARIABLES ) ; for ( Map . Entry < Str...
public class ConnectionWriteCompletedCallback { /** * Switch the ' idle ' flag back to ' true ' , provided that there is no work available . * @ return true iff ' idle ' was set to ' true ' ; false iff there is now work available . * @ throws SIConnectionDroppedException */ private boolean switchToIdle ( ) throws S...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "switchToIdle" ) ; final boolean noMoreWork ; synchronized ( priorityQueue ) { synchronized ( this ) { noMoreWork = ! isWorkAvailable ( ) ; idle = noMoreWork ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc ....
public class LinkerDef { /** * Returns an array of active library sets for this linker definition . */ public LibrarySet [ ] getActiveLibrarySets ( final LinkerDef [ ] defaultProviders , final int index ) { } }
if ( isReference ( ) ) { return ( ( LinkerDef ) getCheckedRef ( LinkerDef . class , "LinkerDef" ) ) . getActiveUserLibrarySets ( defaultProviders , index ) ; } final Project p = getProject ( ) ; final Vector libsets = new Vector ( ) ; for ( int i = index ; i < defaultProviders . length ; i ++ ) { defaultProviders [ i ]...
public class RaftAlgorithm { /** * Transition this server from { @ link Role # CANDIDATE } or { @ link Role # LEADER } to { @ link Role # FOLLOWER } . * < strong > This method is package - private for testing * reasons only ! < / strong > It should < strong > never < / strong > * be called in a non - test context...
long currentTerm = store . getCurrentTerm ( ) ; checkArgument ( currentTerm < newCurrentTerm , "currentTerm:%s newCurrentTerm:%s" , currentTerm , newCurrentTerm ) ; logRoleChange ( newCurrentTerm , role , Role . FOLLOWER ) ; stopHeartbeatTimeout ( ) ; store . setCurrentTerm ( newCurrentTerm ) ; setFollowerState ( newLe...
public class AESFastEngine { /** * Calculate the necessary round keys * The number of calculations depends on key size and block size * AES specified a fixed block size of 128 bits and key sizes 128/192/256 bits * This code is written assuming those are the only possible values */ private int [ ] [ ] generateWork...
int keyLen = key . length ; if ( keyLen < 16 || keyLen > 32 || ( keyLen & 7 ) != 0 ) { throw new IllegalArgumentException ( "Key length not 128/192/256 bits." ) ; } int KC = keyLen >>> 2 ; ROUNDS = KC + 6 ; // This is not always true for the generalized Rijndael that allows larger block sizes int [ ] [ ] W = new int [ ...
public class RegExAnnotator { /** * Performs any startup tasks required by this annotator . This implementation reads the * configuration parameters and compiles the regular expressions . */ public void initialize ( UimaContext aContext ) throws ResourceInitializationException { } }
super . initialize ( aContext ) ; // initialize annotator logger this . logger = getContext ( ) . getLogger ( ) ; // default initialization for number format this . floatNumberFormat = NumberFormat . getNumberInstance ( ) ; this . integerNumberFormat = NumberFormat . getIntegerInstance ( ) ; // create a concept file pa...
public class Annotate { /** * Attribute and store a semantic representation of the annotation tree { @ code tree } into the * tree . attribute field . * @ param tree the tree representing an annotation * @ param expectedAnnotationType the expected ( super ) type of the annotation * @ param env the current env i...
// The attribute might have been entered if it is Target or Repetable // Because TreeCopier does not copy type , redo this if type is null if ( tree . attribute != null && tree . type != null ) return tree . attribute ; List < Pair < MethodSymbol , Attribute > > elems = attributeAnnotationValues ( tree , expectedAnnota...
public class GraphObjectModificationState { /** * Update * relationship * changelog for Verb . create */ public void updateChangeLog ( final Principal user , final Verb verb , final String linkType , final String linkId , final String sourceUuid , final String targetUuid ) { } }
if ( ( Settings . ChangelogEnabled . getValue ( ) || Settings . UserChangelogEnabled . getValue ( ) ) ) { final JsonObject obj = new JsonObject ( ) ; obj . add ( "time" , toElement ( System . currentTimeMillis ( ) ) ) ; obj . add ( "userId" , toElement ( user . getUuid ( ) ) ) ; obj . add ( "userName" , toElement ( use...
public class SftpClient { /** * Create an OutputStream for writing to a remote file . * @ param remotefile * @ return OutputStream * @ throws SftpStatusException * @ throws SshException */ public OutputStream getOutputStream ( String remotefile ) throws SftpStatusException , SshException { } }
String remotePath = resolveRemotePath ( remotefile ) ; return new SftpFileOutputStream ( sftp . openFile ( remotePath , SftpSubsystemChannel . OPEN_CREATE | SftpSubsystemChannel . OPEN_TRUNCATE | SftpSubsystemChannel . OPEN_WRITE ) ) ;
public class CentroidCluster { /** * { @ inheritDoc } */ public void merge ( Cluster < T > other ) { } }
VectorMath . add ( centroid , other . centroid ( ) ) ; for ( T otherDataPoint : other . dataPointValues ( ) ) VectorMath . add ( centroid , otherDataPoint ) ; for ( int i = other . dataPointIds ( ) . nextSetBit ( 0 ) ; i >= 0 ; i = other . dataPointIds ( ) . nextSetBit ( i + 1 ) ) assignments . set ( i ) ;
public class VideoDevice { /** * This method returns a { @ link RGBFrameGrabber } associated with this * video device . Captured frames will be RGB24 - encoded before being handed * out . The video device must support an appropriate image format that v4l4j * can convert to RGB24 . If it does not , this method wil...
return getRGBFrameGrabber ( w , h , input , std , null ) ;
public class PeasyRecyclerView { /** * Remove all added { @ link RecyclerView . ItemDecoration } */ public final void resetItemDecorations ( ) { } }
for ( int i = 0 ; i < getRecyclerView ( ) . getItemDecorationCount ( ) ; i ++ ) { try { getRecyclerView ( ) . removeItemDecoration ( getRecyclerView ( ) . getItemDecorationAt ( i ) ) ; } catch ( Exception ignored ) { } }
public class JFapUtils { /** * Copies up to ' amount ' bytes from ' src ' to ' dst ' . Returns the number of bytes * actually copied . */ public static int copyWsByteBuffer ( WsByteBuffer src , WsByteBuffer dst , int amount ) { } }
int amountCopied = amount ; int dstRemaining = dst . remaining ( ) ; int srcRemaining = src . remaining ( ) ; if ( amountCopied > dstRemaining ) amountCopied = dstRemaining ; if ( amountCopied > srcRemaining ) amountCopied = srcRemaining ; if ( amountCopied > 0 ) { int srcLimit = src . limit ( ) ; src . limit ( src . p...
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EEnum getIDEStructureFLAGS ( ) { } }
if ( ideStructureFLAGSEEnum == null ) { ideStructureFLAGSEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 119 ) ; } return ideStructureFLAGSEEnum ;
public class ContentSpec { /** * Set the publication number for the Content Specification . * @ param pubsNumber The publication number . */ public void setPubsNumber ( final Integer pubsNumber ) { } }
if ( pubsNumber == null && this . pubsNumber == null ) { return ; } else if ( pubsNumber == null ) { removeChild ( this . pubsNumber ) ; this . pubsNumber = null ; } else if ( this . pubsNumber == null ) { this . pubsNumber = new KeyValueNode < Integer > ( CommonConstants . CS_PUBSNUMBER_TITLE , pubsNumber ) ; appendCh...
public class QYTagAPI { /** * 增加标签成员 。 userlist与partylist非必须 , 但不能同时为空 * @ param tagid 目标标签id 。 必填 * @ param users 企业成员ID列表 。 单次请求长度不能超过1000 * @ param partys 企业部门ID列表 。 单次请求长度不能超过100 * @ return 操作结果 */ public AddTagUsersResponse addTagUsers ( Integer tagid , List < String > users , List < Integer > partys ) { }...
BeanUtil . requireNonNull ( tagid , "tagid不能为空!" ) ; if ( ( users == null || users . size ( ) == 0 ) && ( partys == null || partys . size ( ) == 0 ) ) { throw new WeixinException ( "userlist、partylist不能同时为空!" ) ; } if ( users != null && users . size ( ) > 1000 ) { throw new WeixinException ( "userlist单次请求长度不能大于1000" ) ...
public class Metrics { /** * Creates a new counter for a particular class and method for a specific application . * @ param appid the application that invoked the request * @ param clazz the Class to be counted * @ param names one or more unique names to identify the counter - usually a method name * @ return a...
String className = getClassName ( clazz ) ; return getCounter ( App . isRoot ( appid ) ? SYSTEM_METRICS_NAME : appid , className , names ) ;
public class ExpressionResolver { /** * Resolve property of bean . * @ param object * Bean . * @ param propertyNames * Names of properties to resolve recursively . * @ return Value of property . */ public Object resolveProperty ( Object object , List < String > propertyNames ) { } }
// Always wrap base object . Object value = resolver . wrap ( object ) ; for ( String propertyName : propertyNames ) { if ( value == null ) { return null ; } value = resolver . getValue ( elContext , value , propertyName ) ; } return value ;
public class EvaluatorRestartInfo { /** * Creates an { @ link EvaluatorRestartInfo } object that represents the information of an evaluator that * has failed on driver restart . */ public static EvaluatorRestartInfo createFailedEvaluatorInfo ( final String evaluatorId ) { } }
final ResourceRecoverEvent resourceRecoverEvent = ResourceEventImpl . newRecoveryBuilder ( ) . setIdentifier ( evaluatorId ) . build ( ) ; return new EvaluatorRestartInfo ( resourceRecoverEvent , EvaluatorRestartState . FAILED ) ;
public class ComputationGraph { /** * Generate the output for all examples / batches in the input iterator , and concatenate them into a single array . * Can only be used with ComputationGraphs with 1 output * @ param iterator Data to pass through the network * @ return output for all examples in the iterator */ ...
Preconditions . checkArgument ( numOutputArrays == 1 , "Cannot use this method with nets that have more" + " than 1 output array. This network has %s outputs" , numOutputArrays ) ; return output ( iterator ) [ 0 ] ;
public class FSNamesystem { /** * Remove an already decommissioned data node who is neither in include nor * exclude hosts lists from the the list of live or dead nodes . This is used * to not display an already decommssioned data node to the operators . * The operation procedure of making a already decommissione...
// If the include list is empty , any nodes are welcomed and it does not // make sense to exclude any nodes from the cluster . Therefore , no remove . if ( hostsReader . getHosts ( ) . isEmpty ( ) ) { return ; } for ( Iterator < DatanodeDescriptor > it = nodeList . iterator ( ) ; it . hasNext ( ) ; ) { DatanodeDescript...
public class PreconditionUtil { /** * Asserts that a condition is true . If it isn ' t it throws an * { @ link AssertionError } with the given message . * @ param message the identifying message for the { @ link AssertionError } ( * < code > null < / code > okay ) * @ param condition condition to be checked */ ...
verify ( ! condition , message , args ) ;
public class FastItemAdapter { /** * add an array of items at the given position within the existing items * @ param position the global position * @ param items the items to add */ @ SafeVarargs public final FastItemAdapter < Item > add ( int position , Item ... items ) { } }
getItemAdapter ( ) . add ( position , items ) ; return this ;
public class BigSegmentHeader { /** * Use a timer which is more insensitive to jumps in time like GCs and context switches . */ private static boolean tryWriteLockMillis ( long address , long timeInMillis , boolean interruptible ) throws InterruptedException { } }
long lastTime = System . currentTimeMillis ( ) ; registerWait ( address ) ; try { do { if ( LOCK . tryWriteLockAndDeregisterWait ( A , null , address + LOCK_OFFSET ) ) return true ; checkInterrupted ( interruptible ) ; ThreadHints . onSpinWait ( ) ; long now = System . currentTimeMillis ( ) ; if ( now != lastTime ) { l...
public class ConsulClient { /** * Health */ @ Override public Response < List < com . ecwid . consul . v1 . health . model . Check > > getHealthChecksForNode ( String nodeName , QueryParams queryParams ) { } }
return healthClient . getHealthChecksForNode ( nodeName , queryParams ) ;
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public EEnum getIfcCurveInterpolationEnum ( ) { } }
if ( ifcCurveInterpolationEnumEEnum == null ) { ifcCurveInterpolationEnumEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 954 ) ; } return ifcCurveInterpolationEnumEEnum ;
public class ProcessEngineConfigurationImpl { /** * services / / / / / */ protected void initServices ( ) { } }
initService ( repositoryService ) ; initService ( runtimeService ) ; initService ( historyService ) ; initService ( identityService ) ; initService ( taskService ) ; initService ( formService ) ; initService ( managementService ) ; initService ( authorizationService ) ; initService ( caseService ) ; initService ( filte...
public class JettyBootstrap { /** * Add Handler * @ param handler * Jetty Handler * @ return Handler * @ throws JettyBootstrapException * on failed */ public Handler addHandler ( Handler handler ) throws JettyBootstrapException { } }
JettyHandler jettyHandler = new JettyHandler ( ) ; jettyHandler . setHandler ( handler ) ; handlers . addHandler ( handler ) ; return handler ;
public class AntRunBuilder { /** * Multiple build target names to call . * @ param targets */ public AntRunBuilder targets ( String ... targets ) { } }
action . setTargets ( StringUtils . collectionToCommaDelimitedString ( Arrays . asList ( targets ) ) ) ; return this ;
public class ByteVector { /** * Puts an UTF8 string into this byte vector . The byte vector is automatically enlarged if * necessary . The string length is encoded in two bytes before the encoded characters , if there is * space for that ( i . e . if this . length - offset - 2 & gt ; = 0 ) . * @ param stringValue...
int charLength = stringValue . length ( ) ; int byteLength = offset ; for ( int i = offset ; i < charLength ; ++ i ) { char charValue = stringValue . charAt ( i ) ; if ( charValue >= '\u0001' && charValue <= '\u007F' ) { byteLength ++ ; } else if ( charValue <= '\u07FF' ) { byteLength += 2 ; } else { byteLength += 3 ; ...
public class SamlSettingsApi { /** * Upload new metadata . * Adds or updates the specified metadata . * @ param metadataFile The metadata as xml file . ( optional ) * @ param location The region where send metadata . ( optional ) * @ return ApiResponse & lt ; SendMetadataResponse & gt ; * @ throws ApiExceptio...
com . squareup . okhttp . Call call = sendMetadataValidateBeforeCall ( metadataFile , location , null , null ) ; Type localVarReturnType = new TypeToken < SendMetadataResponse > ( ) { } . getType ( ) ; return apiClient . execute ( call , localVarReturnType ) ;
public class WordRefiner { /** * 将一个词拆分成几个 , 返回null表示不能拆分 * @ param word * @ return */ public static List < Word > split ( Word word ) { } }
String value = GENERIC_TRIE . get ( word . getText ( ) ) ; if ( value == null ) { return null ; } List < Word > words = new ArrayList < > ( ) ; for ( String val : value . split ( "\\s+" ) ) { words . add ( new Word ( val ) ) ; } if ( words . isEmpty ( ) ) { return null ; } return words ;
public class ContentTypeHelper { /** * Check whether the given content - type corresponds to " parseable " text . * @ param contentType * the input content - type * @ return true if this represents text or false if not */ public boolean isTextContentType ( String contentType ) { } }
if ( contentType != null ) { String lowerContentType = contentType . toLowerCase ( ) ; for ( String textContentType : this . parsableContentTypes ) { if ( lowerContentType . startsWith ( textContentType ) ) { return true ; } } } return false ;
public class Cluster { /** * Free the specified slot . */ public void freeSlot ( WorkerSlot slot ) { } }
// remove the slot from the existing assignments for ( SchedulerAssignmentImpl assignment : this . assignments . values ( ) ) { if ( assignment . isSlotOccupied ( slot ) ) { assignment . unassignBySlot ( slot ) ; } }
public class GetCurrentMetricDataRequest { /** * The grouping applied to the metrics returned . For example , when grouped by QUEUE , the metrics returned apply to * each queue rather than aggregated for all queues . If you group by CHANNEL , you should include a Channels filter . * The only supported channel is VO...
java . util . ArrayList < String > groupingsCopy = new java . util . ArrayList < String > ( groupings . length ) ; for ( Grouping value : groupings ) { groupingsCopy . add ( value . toString ( ) ) ; } if ( getGroupings ( ) == null ) { setGroupings ( groupingsCopy ) ; } else { getGroupings ( ) . addAll ( groupingsCopy )...
public class AbstractSchemaGenerator { /** * Actual schema generation . It recursively resolves container types . * @ param typeToken Encapsulate the Java type for generating a { @ link Schema } . * @ param knownRecords Set of record names that has the schema already generated . It is used for * recursive class f...
Type type = typeToken . getType ( ) ; Class < ? > rawType = typeToken . getRawType ( ) ; if ( SIMPLE_SCHEMAS . containsKey ( rawType ) ) { return SIMPLE_SCHEMAS . get ( rawType ) ; } // Enum type , simply use all the enum constants for ENUM schema . if ( rawType . isEnum ( ) ) { return Schema . enumWith ( ( Class < Enu...
public class ResponseToRoomImpl { /** * / * ( non - Javadoc ) * @ see com . tvd12 . ezyfox . core . command . ResponseToRoom # ignore ( java . lang . String [ ] ) */ @ Override public ResponseToRoom ignore ( String ... params ) { } }
excludedVars . addAll ( Arrays . asList ( params ) ) ; return this ;
public class SQLDatabaseWriter { /** * This method will process the given DiffTask and send it to the specified * output . * @ param task * DiffTask * @ throws ConfigurationException * if problems occurred while initializing the components * @ throws IOException * if problems occurred while writing the ou...
int i = - 1 ; SQLEncoding [ ] queries = null ; try { queries = sqlEncoder . encodeTask ( task ) ; Statement query ; int size = queries . length ; for ( i = 0 ; i < size ; i ++ ) { query = connection . createStatement ( ) ; query . executeUpdate ( queries [ i ] . getQuery ( ) ) ; query . close ( ) ; } // System . out . ...
public class aaauser_vpnintranetapplication_binding { /** * Use this API to fetch aaauser _ vpnintranetapplication _ binding resources of given name . */ public static aaauser_vpnintranetapplication_binding [ ] get ( nitro_service service , String username ) throws Exception { } }
aaauser_vpnintranetapplication_binding obj = new aaauser_vpnintranetapplication_binding ( ) ; obj . set_username ( username ) ; aaauser_vpnintranetapplication_binding response [ ] = ( aaauser_vpnintranetapplication_binding [ ] ) obj . get_resources ( service ) ; return response ;
public class ProxyQueueConversationGroupImpl { /** * Creates a new asynchronous consumer proxy queue for this group . * @ throws SIResourceException * @ throws SIResourceException * @ throws SIIncorrectCallException * @ throws SIIncorrectCallException * @ throws SIErrorException * @ throws SIConnectionUnava...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createAsynchConsumerProxyQueue" ) ; short id = nextId ( ) ; // begin D249096 AsynchConsumerProxyQueue proxyQueue = null ; if ( oc == null ) { proxyQueue = new NonReadAheadSessionProxyQueueImpl ( this , id , conversation ) ;...
public class ExternalServiceAlertConditionService { /** * Returns the set of alert conditions for the given policy id and name . * @ param policyId The id of the alert policy to return the conditions for * @ param name The name of the conditions * @ return The set of alert conditions */ public Collection < Extern...
List < ExternalServiceAlertCondition > ret = new ArrayList < ExternalServiceAlertCondition > ( ) ; Collection < ExternalServiceAlertCondition > conditions = list ( policyId ) ; for ( ExternalServiceAlertCondition condition : conditions ) { if ( condition . getName ( ) . equals ( name ) ) ret . add ( condition ) ; } ret...
public class FeatureWebSecurityConfigImpl { /** * { @ inheritDoc } */ @ Override public boolean getSSORequiresSSL ( ) { } }
WebAppSecurityConfig globalConfig = WebAppSecurityCollaboratorImpl . getGlobalWebAppSecurityConfig ( ) ; if ( globalConfig != null ) return WebAppSecurityCollaboratorImpl . getGlobalWebAppSecurityConfig ( ) . getSSORequiresSSL ( ) ; else return ssoRequiresSSL ;
public class HelpTopic { /** * Returns true if the topic is considered a duplicate . * @ param topic Topic to compare . * @ return True if a duplicate . */ public boolean isDuplicate ( HelpTopic topic ) { } }
return ObjectUtils . equals ( url , topic . url ) && compareTo ( topic ) == 0 ;
public class CharacterParser { public boolean isPunctuator ( Character character ) { } }
Integer code = Character . codePointAt ( character . toString ( ) , 0 ) ; switch ( code ) { case 46 : // . dot case 40 : // ( open bracket case 41 : // ) close bracket case 59 : // ; semicolon case 44 : // , comma case 123 : // { open curly brace case 125 : // } close curly brace case 91 : case 93 : case 58 : case 63 :...
public class WeightedLinkClustering { /** * Computes the similarity of the graph ' s edges and merges them until the * specified number of clusters has been reached . * @ param numClusters the number of clusters to return */ public < E extends WeightedEdge > MultiMap < Integer , Integer > cluster ( final WeightedGr...
if ( props . getProperty ( KEEP_WEIGHT_VECTORS_PROPERTY ) != null ) keepWeightVectors = Boolean . parseBoolean ( props . getProperty ( KEEP_WEIGHT_VECTORS_PROPERTY ) ) ; vertexToWeightVector . clear ( ) ; return super . cluster ( graph , numClusters , props ) ;
public class SymmetryTools { /** * Method that converts a repeats symmetric alignment into an alignment of * whole structures . * Example : if the structure has repeats A , B and C , the original alignment * is A - B - C , and the returned alignment is ABC - BCA - CAB . * @ param symm * CeSymmResult * @ ret...
if ( ! symm . isRefined ( ) ) throw new IllegalArgumentException ( "The symmetry result " + "is not refined, repeats cannot be defined" ) ; MultipleAlignment full = symm . getMultipleAlignment ( ) . clone ( ) ; for ( int str = 1 ; str < full . size ( ) ; str ++ ) { // Create a new Block with swapped AlignRes ( move fir...
public class CmsRelationFilter { /** * Returns an extended filter with the given type restriction . < p > * @ param type the relation type to filter * @ return an extended filter with the given type restriction */ public CmsRelationFilter filterType ( CmsRelationType type ) { } }
CmsRelationFilter filter = ( CmsRelationFilter ) clone ( ) ; filter . m_types . add ( type ) ; return filter ;
public class GitkitClient { /** * Gets out - of - band response . Used by oob endpoint for ResetPassword and ChangeEmail operation . * The web site needs to send user an email containing the oobUrl in the response . The user needs * to click the oobUrl to finish the operation . * @ param req http request for the ...
try { String action = req . getParameter ( "action" ) ; if ( "resetPassword" . equals ( action ) ) { String oobLink = buildOobLink ( buildPasswordResetRequest ( req ) , action ) ; return new OobResponse ( req . getParameter ( "email" ) , null , oobLink , OobAction . RESET_PASSWORD ) ; } else if ( "changeEmail" . equals...
public class SequenceSchema { /** * Infers a sequence schema based * on the record * @ param record the record to infer the schema based on * @ return the inferred sequence schema */ public static SequenceSchema inferSequenceMulti ( List < List < List < Writable > > > record ) { } }
SequenceSchema . Builder builder = new SequenceSchema . Builder ( ) ; int minSequenceLength = record . get ( 0 ) . size ( ) ; int maxSequenceLength = record . get ( 0 ) . size ( ) ; for ( int i = 0 ; i < record . size ( ) ; i ++ ) { if ( record . get ( i ) instanceof DoubleWritable ) builder . addColumnDouble ( String ...
public class ExportDataSource { /** * set the runnable task that is to be executed on mastership designation * @ param toBeRunOnMastership a { @ link @ Runnable } task * @ param runEveryWhere Set if connector " replicated " property is set to true Like replicated table , every * replicated export stream is its ow...
Preconditions . checkNotNull ( toBeRunOnMastership , "mastership runnable is null" ) ; m_onMastership = toBeRunOnMastership ; // If connector " replicated " property is set to true then every // replicated export stream is its own master if ( m_runEveryWhere ) { // export stream for run - everywhere clients doesn ' t n...
public class AsyncMutateInBuilder { /** * Set both a persistence and a replication durability constraints for the whole mutation . * @ param persistTo the persistence durability constraint to observe . * @ param replicateTo the replication durability constraint to observe . * @ return this builder for chaining . ...
this . persistTo = persistTo ; this . replicateTo = replicateTo ; return this ;