signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class AssociationValue { /** * Set the attributes for the associated object . * @ param attributes attributes for associated objects * @ deprecated replaced by { @ link # setAllAttributes ( Map ) } after introduction of nested associations */ @ Deprecated @ SuppressWarnings ( { } }
"rawtypes" , "unchecked" } ) public void setAttributes ( Map < String , PrimitiveAttribute < ? > > attributes ) { if ( ! isPrimitiveOnly ( ) ) { throw new UnsupportedOperationException ( "Primitive API not supported for nested association values" ) ; } this . attributes = ( Map ) attributes ;
public class FodselsnummerValidator { /** * Returns an object that represents a Fodselsnummer . * @ param fodselsnummer * A String containing a Fodselsnummer * @ return A Fodselsnummer instance * @ throws IllegalArgumentException * thrown if String contains an invalid Fodselsnummer */ public static no . bekk ...
validateSyntax ( fodselsnummer ) ; validateIndividnummer ( fodselsnummer ) ; validateDate ( fodselsnummer ) ; validateChecksums ( fodselsnummer ) ; return new no . bekk . bekkopen . person . Fodselsnummer ( fodselsnummer ) ;
public class PriceListUrl { /** * Get Resource Url for GetPriceList * @ param priceListCode The unique code of the price list for which you want to retrieve the details . * @ param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object . This...
UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/storefront/pricelists/{priceListCode}?responseFields={responseFields}" ) ; formatter . formatUrl ( "priceListCode" , priceListCode ) ; formatter . formatUrl ( "responseFields" , responseFields ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , Mo...
public class RemoteMetaDataImpl { /** * Returns the type of the specified column . The method first finds the name * of the field in that column , and then looks up its type in the schema . * @ see org . vanilladb . core . remote . jdbc . RemoteMetaData # getColumnType ( int ) */ @ Override public int getColumnType...
String fldname = getColumnName ( column ) ; return schema . type ( fldname ) . getSqlType ( ) ;
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EClass getMCA ( ) { } }
if ( mcaEClass == null ) { mcaEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 288 ) ; } return mcaEClass ;
public class Counters { /** * Finds and returns the key in the Counter with the largest count . Returning * null if count is empty . * @ param c * The Counter * @ return The key in the Counter with the largest count . */ public static < E > E argmax ( Counter < E > c ) { } }
double max = Double . NEGATIVE_INFINITY ; E argmax = null ; for ( E key : c . keySet ( ) ) { double count = c . getCount ( key ) ; if ( argmax == null || count > max ) { // | | ( count = = max & & // tieBreaker . compare ( key , argmax ) < max = count ; argmax = key ; } } return argmax ;
public class URLUtils { /** * Set the element ID from the path * @ param relativePath path * @ param id element ID * @ return element ID , may be { @ code null } */ public static URI setElementID ( final URI relativePath , final String id ) { } }
String topic = getTopicID ( relativePath ) ; if ( topic != null ) { return setFragment ( relativePath , topic + ( id != null ? SLASH + id : "" ) ) ; } else if ( id == null ) { return stripFragment ( relativePath ) ; } else { throw new IllegalArgumentException ( relativePath . toString ( ) ) ; }
public class PerformanceTracker { /** * Updates the saved jsRoot and resets the size tracking fields accordingly . * @ param jsRoot */ void updateAfterDeserialize ( Node jsRoot ) { } }
// TODO ( bradfordcsmith ) : Restore line counts for inputs and externs . this . jsRoot = jsRoot ; if ( ! tracksAstSize ( ) ) { return ; } this . initAstSize = this . astSize = NodeUtil . countAstSize ( this . jsRoot ) ; if ( ! tracksSize ( ) ) { return ; } PerformanceTrackerCodeSizeEstimator estimator = PerformanceTra...
public class ModbusResponse { /** * Factory method creating the required specialized < tt > ModbusResponse < / tt > * instance . * @ param functionCode the function code of the response as < tt > int < / tt > . * @ return a ModbusResponse instance specific for the given function code . */ public static ModbusResp...
ModbusResponse response ; switch ( functionCode ) { case Modbus . READ_COILS : response = new ReadCoilsResponse ( ) ; break ; case Modbus . READ_INPUT_DISCRETES : response = new ReadInputDiscretesResponse ( ) ; break ; case Modbus . READ_MULTIPLE_REGISTERS : response = new ReadMultipleRegistersResponse ( ) ; break ; ca...
public class Range { /** * Create a two dimensional range < code > 0 . . _ globalWidth * 0 . . _ globalHeight * 0 . . / _ globalDepth < / code > * in groups defined by < code > localWidth < / code > * < code > localHeight < / code > * < code > localDepth < / code > . * Note that for this range to be valid < code > ...
final Range range = new Range ( _device , 3 ) ; range . setGlobalSize_0 ( _globalWidth ) ; range . setLocalSize_0 ( _localWidth ) ; range . setGlobalSize_1 ( _globalHeight ) ; range . setLocalSize_1 ( _localHeight ) ; range . setGlobalSize_2 ( _globalDepth ) ; range . setLocalSize_2 ( _localDepth ) ; range . setValid (...
public class UserLayoutNodeDescription { /** * Add all of common node attributes to the < code > Element < / code > . * @ param node an < code > Element < / code > value */ @ Override public void addNodeAttributes ( Element node ) { } }
node . setAttribute ( "ID" , this . getId ( ) ) ; node . setAttribute ( "name" , this . getName ( ) ) ; node . setAttribute ( "unremovable" , String . valueOf ( this . isUnremovable ( ) ) ) ; node . setAttribute ( "immutable" , String . valueOf ( this . isImmutable ( ) ) ) ; node . setAttribute ( "hidden" , String . va...
public class Util { /** * Compute the maximum of the integer logarithms ( ceil ( log ( x + 1 ) ) of a the * successive differences ( deltas ) of a range of value * @ param initoffset * initial vallue for the computation of the deltas * @ param i * source array * @ param pos * starting position * @ param...
int mask = 0 ; mask |= ( i [ pos ] - initoffset ) ; for ( int k = pos + 1 ; k < pos + length ; ++ k ) { mask |= i [ k ] - i [ k - 1 ] ; } return bits ( mask ) ;
public class Windows { /** * Constructs a list of window of size windowSize . * Note that padding for each window is created as well . * @ param words the words to tokenize and construct windows from * @ param tokenizerFactory tokenizer factory to use * @ return the list of windows for the tokenized string */ p...
Tokenizer tokenizer = tokenizerFactory . create ( words ) ; List < String > list = new ArrayList < > ( ) ; while ( tokenizer . hasMoreTokens ( ) ) list . add ( tokenizer . nextToken ( ) ) ; return windows ( list , 5 ) ;
public class NotificationHubsInner { /** * test send a push notification . * @ param resourceGroupName The name of the resource group . * @ param namespaceName The namespace name . * @ param notificationHubName The notification hub name . * @ throws IllegalArgumentException thrown if parameters fail the validat...
return debugSendWithServiceResponseAsync ( resourceGroupName , namespaceName , notificationHubName ) . map ( new Func1 < ServiceResponse < DebugSendResponseInner > , DebugSendResponseInner > ( ) { @ Override public DebugSendResponseInner call ( ServiceResponse < DebugSendResponseInner > response ) { return response . b...
public class Copiers { /** * 基于 Orika 实现的简单拷贝 , 满足基本需求 * @ param sourceClass 源对象类型 * @ param targetClass 目标对象类型 * @ return copier */ public static < F , T > Copier < F , T > create ( Class < F > sourceClass , Class < T > targetClass ) { } }
return CopierFactory . getOrCreateOrikaCopier ( sourceClass , targetClass ) ;
public class RtfFont { /** * Compares this < code > RtfFont < / code > to either a { @ link com . lowagie . text . Font } or * an < code > RtfFont < / code > . * @ since 2.1.0 */ public int compareTo ( Object object ) { } }
if ( object == null ) { return - 1 ; } if ( object instanceof RtfFont ) { if ( this . getFontName ( ) . compareTo ( ( ( RtfFont ) object ) . getFontName ( ) ) != 0 ) { return 1 ; } else { return super . compareTo ( object ) ; } } else if ( object instanceof Font ) { return super . compareTo ( object ) ; } else { return...
public class TmdbGenres { /** * Get the list of genres for movies or TV * @ param language * @ param sub * @ return * @ throws MovieDbException */ private ResultList < Genre > getGenreList ( String language , MethodSub sub ) throws MovieDbException { } }
TmdbParameters parameters = new TmdbParameters ( ) ; parameters . add ( Param . LANGUAGE , language ) ; URL url = new ApiUrl ( apiKey , MethodBase . GENRE ) . subMethod ( sub ) . buildUrl ( parameters ) ; String webpage = httpTools . getRequest ( url ) ; try { WrapperGenres wrapper = MAPPER . readValue ( webpage , Wrap...
public class IOUtils { /** * helper method for getPDBCharacter and getPDBConservation */ private static String getPDBString ( boolean web , char c1 , char c2 , boolean similar , String m , String sm , String dm , String qg ) { } }
if ( c1 == c2 ) return web ? "<span class=\"m\">" + m + "</span>" : m ; else if ( similar ) return web ? "<span class=\"sm\">" + sm + "</span>" : sm ; else if ( c1 == '-' || c2 == '-' ) return web ? "<span class=\"dm\">" + dm + "</span>" : dm ; else return web ? "<span class=\"qg\">" + qg + "</span>" : qg ;
public class MtasSpanSequenceSpans { /** * Glue . * @ param subMatchesQueue the sub matches queue * @ param subMatchesOptional the sub matches optional * @ param item the item * @ return the list * @ throws IOException Signals that an I / O exception has occurred . */ private List < Match > _glue ( List < Mat...
List < Match > newSubMatchesQueue = new ArrayList < > ( ) ; // no previous queue , only use current item if ( subMatchesQueue . isEmpty ( ) ) { if ( item . filledPosition ) { for ( Integer endPosition : item . queue . get ( item . lowestPosition ) ) { Match m = new Match ( item . lowestPosition , endPosition ) ; if ( !...
public class PlatformBitmapFactory { /** * Creates a bitmap from subset of the source bitmap , * transformed by the optional matrix . It is initialized with the same * density as the original bitmap . * @ param source The bitmap we are subsetting * @ param x The x coordinate of the first pixel in source * @ p...
return createBitmap ( source , x , y , width , height , matrix , filter , null ) ;
public class WindowsProcessOutputHandler { /** * Updates the fax job based on the data from the process output . * @ param faxClientSpi * The fax client SPI * @ param faxJob * The fax job object * @ param processOutput * The process output * @ param faxActionType * The fax action type */ public void upd...
// get output String output = WindowsFaxClientSpiHelper . getOutputPart ( processOutput , Fax4jExeConstants . FAX_JOB_ID_OUTPUT_PREFIX . toString ( ) ) ; if ( output != null ) { // validate fax job ID WindowsFaxClientSpiHelper . validateFaxJobID ( output ) ; // set fax job ID faxJob . setID ( output ) ; }
public class JvmInnerTypeReferenceImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public void eUnset ( int featureID ) { } }
switch ( featureID ) { case TypesPackage . JVM_INNER_TYPE_REFERENCE__OUTER : setOuter ( ( JvmParameterizedTypeReference ) null ) ; return ; } super . eUnset ( featureID ) ;
public class AbstractAppender { /** * Gets the previous entry . */ @ SuppressWarnings ( "unused" ) protected Entry getPrevEntry ( MemberState member ) { } }
long prevIndex = Math . min ( member . getNextIndex ( ) - 1 , context . getLog ( ) . lastIndex ( ) ) ; while ( prevIndex > 0 ) { Entry entry = context . getLog ( ) . get ( prevIndex ) ; if ( entry != null ) { return entry ; } prevIndex -- ; } return null ;
public class PathHelper { /** * Check if the passed file can read and write . If the file already exists , * the file itself is checked . If the file does not exist , the parent * directory * @ param aFile * The file to be checked . May be < code > null < / code > . * @ return < code > true < / code > if the ...
if ( aFile == null ) return false ; // The Files API seem to be slow return FileHelper . canReadAndWriteFile ( aFile . toFile ( ) ) ; // if ( Files . isRegularFile ( aFile ) ) // / / Path exists // if ( ! Files . isReadable ( aFile ) | | ! Files . isWritable ( aFile ) ) // return false ; // else // / / Path does not ex...
public class OidcLoginConfigImpl { /** * { @ inheritDoc } */ @ Override @ FFDCIgnore ( SocialLoginException . class ) public String getTrustStoreRef ( ) { } }
if ( this . sslRefInfo == null ) { SocialLoginService service = socialLoginServiceRef . getService ( ) ; if ( service == null ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Social login service is not available" ) ; } return null ; } sslRefInfo = createSslRefInfoImpl ( service ) ; } try { return sslRefInfo . g...
public class ExternalEntryPointHelper { /** * Based on the input for scanning annotations , look for @ ExternalEntryPoint and get the decorated name from it , if any . * @ param method method to check * @ param scanEntryPointAnnotation annotation * @ return String */ public static String getEntryPointDecoratedNam...
String decoratedName = method . getName ( ) ; if ( scanEntryPointAnnotation ) { // we look at the method level if ( method . isAnnotationPresent ( ExternalEntryPoint . class ) ) { final ExternalEntryPoint externalEntryPoint = method . getAnnotation ( ExternalEntryPoint . class ) ; if ( StringUtils . isNotBlank ( extern...
public class MethodCompiler { /** * Set field in class * < p > Stack : . . . , value = & gt ; . . . * @ param cls * @ param name * @ throws IOException */ public void putField ( Class < ? > cls , String name ) throws IOException { } }
putField ( El . getField ( cls , name ) ) ;
public class MethodsStringConverter { /** * Converts the { @ code String } to an object . * @ param cls the class to convert to , not null * @ param str the string to convert , not null * @ return the converted object , may be null but generally not */ @ Override public T convertFromString ( Class < ? extends T >...
try { return cls . cast ( fromString . invoke ( null , str ) ) ; } catch ( IllegalAccessException ex ) { throw new IllegalStateException ( "Method is not accessible: " + fromString ) ; } catch ( InvocationTargetException ex ) { if ( ex . getCause ( ) instanceof RuntimeException ) { throw ( RuntimeException ) ex . getCa...
public class XReportBreakScreen { /** * Display the start form in input format . * @ param out The out stream . * @ param iPrintOptions The view specific attributes . */ public void printControlEndForm ( PrintWriter out , int iPrintOptions ) { } }
out . println ( Utility . endTag ( XMLTags . CONTROLS ) ) ; if ( ( iPrintOptions & HtmlConstants . FOOTING_SCREEN ) == HtmlConstants . FOOTING_SCREEN ) out . println ( Utility . endTag ( XMLTags . FOOTING ) ) ; else out . println ( Utility . endTag ( XMLTags . HEADING ) ) ;
public class AnnotationTypeFieldWriterImpl { /** * { @ inheritDoc } */ protected Content getNavSummaryLink ( TypeElement typeElement , boolean link ) { } }
if ( link ) { return writer . getHyperLink ( SectionName . ANNOTATION_TYPE_FIELD_SUMMARY , contents . navField ) ; } else { return contents . navField ; }
public class PublicanPODocBookBuilder { /** * TODO Look at how to do editor links for translation builds */ protected void processPOTopicEditorLink ( final BuildData buildData , final SpecTopic specTopic , final Map < String , TranslationDetails > translations ) { } }
// EDITOR LINK if ( buildData . getBuildOptions ( ) . getInsertEditorLinks ( ) ) { final DocBookXMLPreProcessor preProcessor = buildData . getXMLPreProcessor ( ) ; final BaseTopicWrapper < ? > topic = specTopic . getTopic ( ) ; final String editorUrl = topic . getEditorURL ( buildData . getZanataDetails ( ) ) ; if ( ed...
public class MetricRegistry { /** * Concatenates elements to form a dotted name , eliding any null values or empty strings . * @ param name the first element of the name * @ param names the remaining elements of the name * @ return { @ code name } and { @ code names } concatenated by periods */ public static Stri...
final StringBuilder builder = new StringBuilder ( ) ; append ( builder , name ) ; if ( names != null ) { for ( String s : names ) { append ( builder , s ) ; } } return builder . toString ( ) ;
public class SpecializedOps_DDRM { /** * Copies just the upper or lower triangular portion of a matrix . * @ param src Matrix being copied . Not modified . * @ param dst Where just a triangle from src is copied . If null a new one will be created . Modified . * @ param upper If the upper or lower triangle should ...
if ( dst == null ) { dst = new DMatrixRMaj ( src . numRows , src . numCols ) ; } else if ( src . numRows != dst . numRows || src . numCols != dst . numCols ) { throw new IllegalArgumentException ( "src and dst must have the same dimensions." ) ; } if ( upper ) { int N = Math . min ( src . numRows , src . numCols ) ; fo...
public class ArchiveRecord { /** * Skip over this records content . * @ throws IOException */ protected void skip ( ) throws IOException { } }
if ( this . eor ) { return ; } // Read to the end of the body of the record . Exhaust the stream . // Can ' t skip direct to end because underlying stream may be compressed // and we ' re calculating the digest for the record . int r = available ( ) ; while ( r > 0 && ! this . eor ) { skip ( r ) ; r = available ( ) ; }
public class TaskTracker { /** * Start a new task . * All exceptions are handled locally , so that we don ' t mess up the * task tracker . */ private void startNewTask ( TaskInProgress tip ) { } }
try { boolean launched = localizeAndLaunchTask ( tip ) ; if ( ! launched ) { // Free the slot . tip . kill ( true ) ; tip . cleanup ( true ) ; } } catch ( Throwable e ) { String msg = ( "Error initializing " + tip . getTask ( ) . getTaskID ( ) + ":\n" + StringUtils . stringifyException ( e ) ) ; LOG . error ( msg , e )...
public class WeightVectors { /** * Read a set of weight vector from a file in the resources folder in jMetal * @ param filePath The name of file in the resources folder of jMetal * @ return A set of weight vectors */ public static double [ ] [ ] readFromResourcesInJMetal ( String filePath ) { } }
double [ ] [ ] weights ; Vector < double [ ] > listOfWeights = new Vector < > ( ) ; try { InputStream in = WeightVectors . class . getResourceAsStream ( "/" + filePath ) ; InputStreamReader isr = new InputStreamReader ( in ) ; BufferedReader br = new BufferedReader ( isr ) ; int numberOfObjectives = 0 ; int j ; String ...
public class Options { /** * Set an option in this object , based on a String array in the style of * commandline flags . The option is only processed with respect to * options directly known by the Options object . * Some options ( there are many others ; see the source code ) : * < ul > * < li > < code > - ...
if ( args [ i ] . equalsIgnoreCase ( "-PCFG" ) ) { doDep = false ; doPCFG = true ; i ++ ; } else if ( args [ i ] . equalsIgnoreCase ( "-dep" ) ) { doDep = true ; doPCFG = false ; i ++ ; } else if ( args [ i ] . equalsIgnoreCase ( "-factored" ) ) { doDep = true ; doPCFG = true ; testOptions . useFastFactored = false ; i...
public class TableExpandableContentModelExample { /** * Override preparePaintComponent in order to set up the example data the first time that the example is accessed by * each user . * @ param request the request being responded to . */ @ Override protected void preparePaintComponent ( final Request request ) { } ...
super . preparePaintComponent ( request ) ; if ( ! isInitialised ( ) ) { // This model holds the data so would be included on the user session . ExampleExpandableModel data = new ExampleExpandableModel ( ExampleDataUtil . createExampleData ( ) , TravelDocPanel . class ) ; table . setTableModel ( data ) ; setInitialised...
public class VersionSummaryMarshaller { /** * Marshall the given parameter object . */ public void marshall ( VersionSummary versionSummary , ProtocolMarshaller protocolMarshaller ) { } }
if ( versionSummary == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( versionSummary . getApplicationId ( ) , APPLICATIONID_BINDING ) ; protocolMarshaller . marshall ( versionSummary . getCreationTime ( ) , CREATIONTIME_BINDING ) ; protocol...
public class SLP { /** * Creates a new UserAgent with the given configuration ; the UserAgent must be started . * @ param settings the configuration for the UserAgent * @ return a new UserAgent with the given configuration */ public static UserAgent newUserAgent ( Settings settings ) { } }
UserAgent . Factory factory = Factories . newInstance ( settings , Keys . UA_FACTORY_KEY ) ; return factory . newUserAgent ( settings ) ;
public class DDSClient { /** * convenience method to do a http request on url , and return result as a string * @ param url * @ return * @ throws IOException */ private static String fetchHttpResponse ( URL url ) throws IOException { } }
HttpURLConnection conn = null ; try { logger . info ( "fetching from url = " + url ) ; conn = ( HttpURLConnection ) url . openConnection ( ) ; int response = conn . getResponseCode ( ) ; if ( response != HttpURLConnection . HTTP_ACCEPTED ) { String responseContent = IOUtils . toString ( conn . getInputStream ( ) ) ; lo...
public class DataModelFactory { /** * Generates a module regarding the parameters . * @ param name String * @ param version String * @ return Module */ public static Module createModule ( final String name , final String version ) { } }
final Module module = new Module ( ) ; module . setName ( name ) ; module . setVersion ( version ) ; module . setPromoted ( false ) ; return module ;
public class BlockDataHandler { /** * Server only . < br > * Sends the chunks coordinates to the client when they get watched by them . * @ param event the event */ @ SubscribeEvent public void onChunkWatched ( ChunkWatchEvent . Watch event ) { } }
Chunk chunk = event . getPlayer ( ) . world . getChunkFromChunkCoords ( event . getChunk ( ) . x , event . getChunk ( ) . z ) ; for ( HandlerInfo < ? > handlerInfo : handlerInfos . values ( ) ) { ChunkData < ? > chunkData = instance . chunkData ( handlerInfo . identifier , chunk . getWorld ( ) , chunk ) ; if ( chunkDat...
public class PasswordlessLock { /** * Builds a new intent to launch LockActivity with the previously configured options * @ param context a valid Context * @ return the intent to which the user has to call startActivity or startActivityForResult */ @ SuppressWarnings ( "unused" ) public Intent newIntent ( Context c...
Intent lockIntent = new Intent ( context , PasswordlessLockActivity . class ) ; lockIntent . putExtra ( Constants . OPTIONS_EXTRA , options ) ; lockIntent . addFlags ( Intent . FLAG_ACTIVITY_NEW_TASK ) ; return lockIntent ;
public class CardAPI { /** * 更改卡券信息接口 ( 兑换券 ) * @ param accessToken accessToken * @ param updateGift updateGift * @ return result */ public static UpdateResult update ( String accessToken , UpdateGift updateGift ) { } }
return update ( accessToken , JsonUtil . toJSONString ( updateGift ) ) ;
public class JavametricsWebSocket { /** * ( non - Javadoc ) * @ see com . ibm . javametrics . MetricsEmitter # emit ( java . lang . String ) */ public void emit ( String message ) { } }
openSessions . forEach ( ( session ) -> { try { if ( session . isOpen ( ) ) { session . getBasicRemote ( ) . sendText ( message ) ; }
public class FileUtils { /** * Return true only if path is a jar file . * @ param path to a file / dir * @ return true if file with { @ code . jar } ending */ public static boolean isJarFile ( Path path ) { } }
return Files . isRegularFile ( path ) && path . toString ( ) . toLowerCase ( ) . endsWith ( ".jar" ) ;
public class ExtensionInfo { /** * Load an { @ link ExtensionInfo } for a certain class . * @ param className absolute class name * @ param classLoader class loader to access the class * @ return the { @ link ExtensionInfo } , if the class was annotated with an { @ link Extension } , otherwise null */ public stat...
try ( InputStream input = classLoader . getResourceAsStream ( className . replace ( '.' , '/' ) + ".class" ) ) { ExtensionInfo info = new ExtensionInfo ( className ) ; new ClassReader ( input ) . accept ( new ExtensionVisitor ( info ) , ClassReader . SKIP_DEBUG ) ; return info ; } catch ( IOException e ) { log . error ...
public class DataFileCache { /** * Parameter write indicates either an orderly close , or a fast close * without backup . * When false , just closes the file . * When true , writes out all cached rows that have been modified and the * free position pointer for the * . data file and then closes the file . */ pub...
SimpleLog appLog = database . logger . appLog ; try { if ( cacheReadonly ) { if ( dataFile != null ) { dataFile . close ( ) ; dataFile = null ; } return ; } StopWatch sw = new StopWatch ( ) ; appLog . sendLine ( SimpleLog . LOG_NORMAL , "DataFileCache.close(" + write + ") : start" ) ; if ( write ) { cache . saveAll ( )...
public class CanalEmbedSelector { /** * 记录一下message对象 */ private synchronized void dumpMessages ( Message message , String startPosition , String endPosition , int total ) { } }
try { MDC . put ( OtterConstants . splitPipelineSelectLogFileKey , String . valueOf ( pipelineId ) ) ; logger . info ( SEP + "****************************************************" + SEP ) ; logger . info ( MessageDumper . dumpMessageInfo ( message , startPosition , endPosition , total ) ) ; logger . info ( "***********...
public class CmsDriverManager { /** * Returns the correct project id . < p > * @ param dbc the database context * @ return the correct project id */ private CmsUUID getProjectIdForContext ( CmsDbContext dbc ) { } }
CmsUUID projectId = dbc . getProjectId ( ) ; if ( projectId . isNullUUID ( ) ) { projectId = dbc . currentProject ( ) . getUuid ( ) ; } return projectId ;
public class RegisteredResources { /** * Send end to all registered resources * @ param flags * @ return whether we managed to successfully end all the resources */ public boolean distributeEnd ( int flags ) { } }
if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "distributeEnd" , Util . printFlag ( flags ) ) ; boolean result = true ; for ( int i = _resourceObjects . size ( ) ; -- i >= 0 ; ) { final JTAResource resource = _resourceObjects . get ( i ) ; if ( ! sendEnd ( resource , flags ) ) { result = false ; } } if ( _sameRMResou...
public class ArrayListAnalyzer { /** * This method calculates and returns information relating the operation to be performed . * @ param destination destination field to be analyzed * @ param source source field to be analyzed * @ return all information relating the operation to be performed */ public InfoOperati...
Class < ? > dClass = destination . getType ( ) ; Class < ? > sClass = source . getType ( ) ; Class < ? > dItem = null ; Class < ? > sItem = null ; InfoOperation operation = new InfoOperation ( ) . setConversionType ( UNDEFINED ) ; // Array [ ] = Collection < > if ( dClass . isArray ( ) && collectionIsAssignableFrom ( s...
public class NetworkDataReceiverThread2 { /** * Remove any trace writers that are writing to the given window name . * @ param nameCriteria */ public void removeTraceWriter ( String nameCriteria ) { } }
for ( ITraceWriter tw : getTraceWriters ( ) ) { if ( LOG . isDebugEnabled ( ) ) LOG . debug ( "Trying to remove a trace writer. Looking for [" + nameCriteria + "] found [" + tw . getName ( ) + "]" ) ; if ( tw . getName ( ) . equals ( nameCriteria ) ) getTraceWriters ( ) . remove ( tw ) ; }
public class UnconditionalValueDerefDataflowFactory { /** * ( non - Javadoc ) * @ see * edu . umd . cs . findbugs . classfile . IAnalysisEngine # analyze ( edu . umd . cs . findbugs * . classfile . IAnalysisCache , java . lang . Object ) */ @ Override public UnconditionalValueDerefDataflow analyze ( IAnalysisCach...
MethodGen methodGen = getMethodGen ( analysisCache , descriptor ) ; if ( methodGen == null ) { throw new MethodUnprofitableException ( descriptor ) ; } CFG cfg = getCFG ( analysisCache , descriptor ) ; ValueNumberDataflow vnd = getValueNumberDataflow ( analysisCache , descriptor ) ; UnconditionalValueDerefAnalysis anal...
public class CPOptionLocalServiceWrapper { /** * Updates the cp option in the database or adds it if it does not yet exist . Also notifies the appropriate model listeners . * @ param cpOption the cp option * @ return the cp option that was updated */ @ Override public com . liferay . commerce . product . model . CP...
return _cpOptionLocalService . updateCPOption ( cpOption ) ;
public class UtcTimeUtilities { /** * Get String of format : YYYY - MM - DD HH : MM from { @ link DateTime } . * @ param dateTime the { @ link DateTime } . * @ return the date string . */ public static String toStringWithMinutes ( DateTime dateTime ) { } }
String dtStr = dateTime . toString ( withMinutesformatter ) ; return dtStr ;
public class AbstrCFMLExprTransformer { /** * Liest alle folgenden Komentare ein . < br / > * EBNF : < br / > * < code > { ? - " \ n " } " \ n " ; < / code > * @ param data * @ throws TemplateException */ protected void comments ( Data data ) throws TemplateException { } }
data . srcCode . removeSpace ( ) ; while ( comment ( data ) ) { data . srcCode . removeSpace ( ) ; }
public class DialogFragmentUtils { /** * Show { @ link android . support . v4 . app . DialogFragment } with the specified tag on the loader callbacks . * @ param handler the handler , in most case , this handler is the main handler . * @ param manager the manager . * @ param fragment the fragment . * @ param ta...
handler . post ( new Runnable ( ) { @ Override public void run ( ) { fragment . show ( manager , tag ) ; } } ) ;
public class Bot { /** * Method to send a reply back to Slack after receiving an { @ link Event } . * Learn < a href = " https : / / api . slack . com / rtm " > more on sending responses to Slack . < / a > * @ param session websocket session between bot and slack * @ param event received from slack * @ param re...
try { if ( StringUtils . isEmpty ( reply . getType ( ) ) ) { reply . setType ( EventType . MESSAGE . name ( ) . toLowerCase ( ) ) ; } reply . setText ( encode ( reply . getText ( ) ) ) ; if ( reply . getChannel ( ) == null && event . getChannelId ( ) != null ) { reply . setChannel ( event . getChannelId ( ) ) ; } synch...
public class H2DBLock { /** * Obtains a lock on the H2 database . * @ throws H2DBLockException thrown if a lock could not be obtained */ public void lock ( ) throws H2DBLockException { } }
try { final File dir = settings . getDataDirectory ( ) ; lockFile = new File ( dir , "odc.update.lock" ) ; checkState ( ) ; int ctr = 0 ; do { try { if ( ! lockFile . exists ( ) && lockFile . createNewFile ( ) ) { file = new RandomAccessFile ( lockFile , "rw" ) ; lock = file . getChannel ( ) . lock ( ) ; file . writeBy...
public class ClusterHeartbeatManager { /** * Remove the { @ code member } ' s heartbeat timestamps */ void removeMember ( MemberImpl member ) { } }
heartbeatFailureDetector . remove ( member ) ; if ( icmpParallelMode ) { icmpFailureDetector . remove ( member ) ; }
public class FeaturesImpl { /** * Deletes a phraselist feature . * @ param appId The application ID . * @ param versionId The version ID . * @ param phraselistId The ID of the feature to be deleted . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ throws ErrorResponseException...
return deletePhraseListWithServiceResponseAsync ( appId , versionId , phraselistId ) . toBlocking ( ) . single ( ) . body ( ) ;
public class Uris { /** * Returns the raw ( and normalized ) path of the given URI - prefixed with a " / " . This means that an empty path * becomes a single slash . * @ param uri the URI to extract the path from * @ param strict whether or not to do strict escaping * @ return the extracted path */ public stati...
return esc ( strict ) . escapePath ( prependSlash ( Strings . nullToEmpty ( uri . getRawPath ( ) ) ) ) ;
public class CreateFollowResponse { /** * add status message : user identifier invalid * @ param userId * user identifier passed */ public void userIdentifierInvalid ( final String userId ) { } }
this . addStatusMessage ( ProtocolConstants . StatusCodes . Create . Follow . USER_NOT_EXISTING , "there is no user with the identifier \"" + userId + "\". Please provide a valid user identifier." ) ;
public class _PackageInfo { /** * < p > Traverse a directory structure starting at < code > base < / code > , adding * matching files to the specified list . < / p > * @ param classes List of matching classes being accumulated * @ param base Base file from which to recurse * @ param cld ClassLoader being search...
base . listFiles ( new FileFilter ( ) { public boolean accept ( File file ) { if ( file . isDirectory ( ) ) { listFilesRecursive ( classes , file , cld , pckgname + "." + file . getName ( ) ) ; return false ; } if ( ! file . getName ( ) . toLowerCase ( ) . endsWith ( ".class" ) ) { return false ; } String className = f...
public class Types { /** * Get a long value from a buffer at a given index for a given { @ link Encoding } . * @ param buffer from which to read . * @ param index at which he integer should be read . * @ param encoding of the value . * @ return the value of the encoded long . */ public static long getLong ( fin...
switch ( encoding . primitiveType ( ) ) { case CHAR : return buffer . getByte ( index ) ; case INT8 : return buffer . getByte ( index ) ; case INT16 : return buffer . getShort ( index , encoding . byteOrder ( ) ) ; case INT32 : return buffer . getInt ( index , encoding . byteOrder ( ) ) ; case INT64 : return buffer . g...
public class DownloadAction { /** * Store the ETag header from the given response in the { @ link # cachedETagsFile } * @ param host the queried host * @ param file the queried file * @ param response the HTTP response * @ throws IOException if the tag could not be written */ @ SuppressWarnings ( "unchecked" ) ...
// get ETag header Header etagHdr = response . getFirstHeader ( "ETag" ) ; if ( etagHdr == null ) { if ( ! quiet ) { project . getLogger ( ) . warn ( "Server response does not include an " + "entity tag (ETag)." ) ; } return ; } String etag = etagHdr . getValue ( ) ; // handle weak ETags if ( isWeakETag ( etag ) ) { if...
public class DiskTypeId { /** * Returns a disk type identity given the zone identity and the disk type name . */ public static DiskTypeId of ( ZoneId zoneId , String type ) { } }
return new DiskTypeId ( zoneId . getProject ( ) , zoneId . getZone ( ) , type ) ;
public class AbstractServerPredicate { /** * Create an instance from a predicate . */ public static AbstractServerPredicate ofKeyPredicate ( final Predicate < PredicateKey > p ) { } }
return new AbstractServerPredicate ( ) { @ Override @ edu . umd . cs . findbugs . annotations . SuppressWarnings ( value = "NP" ) public boolean apply ( PredicateKey input ) { return p . apply ( input ) ; } } ;
public class PeerEurekaNodes { /** * Checks if the given service url matches the supplied instance * @ param url the service url of the replica node that the check is made . * @ param instance the instance to check the service url against * @ return true , if the url represents the supplied instance , false other...
String hostName = hostFromUrl ( url ) ; String myInfoComparator = instance . getHostName ( ) ; if ( clientConfig . getTransportConfig ( ) . applicationsResolverUseIp ( ) ) { myInfoComparator = instance . getIPAddr ( ) ; } return hostName != null && hostName . equals ( myInfoComparator ) ;
public class EntityUtilities { /** * Finds the matching locale entity from a locale string . * @ param localeProvider * @ param localeString * @ return */ public static LocaleWrapper findLocaleFromString ( final CollectionWrapper < LocaleWrapper > locales , final String localeString ) { } }
if ( localeString == null ) return null ; for ( final LocaleWrapper locale : locales . getItems ( ) ) { if ( localeString . equals ( locale . getValue ( ) ) ) { return locale ; } } return null ;
public class ServiceOptions { /** * Returns the default project ID , or { @ code null } if no default project ID could be found . This * method returns the first available project ID among the following sources : * < ol > * < li > The project ID specified by the GOOGLE _ CLOUD _ PROJECT environment variable * <...
String projectId = System . getProperty ( PROJECT_ENV_NAME , System . getenv ( PROJECT_ENV_NAME ) ) ; if ( projectId == null ) { projectId = System . getProperty ( LEGACY_PROJECT_ENV_NAME , System . getenv ( LEGACY_PROJECT_ENV_NAME ) ) ; } if ( projectId == null ) { projectId = getAppEngineProjectId ( ) ; } if ( projec...
public class Tags { /** * Resolves all the tags IDs asynchronously ( name followed by value ) into a map . * This function is the opposite of { @ link # resolveAll } . * @ param tsdb The TSDB to use for UniqueId lookups . * @ param tags The tag IDs to resolve . * @ return A map mapping tag names to tag values ....
final short name_width = tsdb . tag_names . width ( ) ; final short value_width = tsdb . tag_values . width ( ) ; final short tag_bytes = ( short ) ( name_width + value_width ) ; final HashMap < String , String > result = new HashMap < String , String > ( tags . size ( ) ) ; final ArrayList < Deferred < String > > defe...
public class CrdtSetDelegate { /** * Decodes the given element from a string . * @ param element the element to decode * @ return the decoded element */ protected E decode ( String element ) { } }
return elementSerializer . decode ( BaseEncoding . base16 ( ) . decode ( element ) ) ;
public class HBaseClientTemplate { /** * Create an EntityBatch that can be used to write batches of entities . * @ param entityMapper * The EntityMapper to use to map rows to entities . * @ param writeBufferSize * The buffer size used when writing batches * @ return EntityBatch */ public < E > EntityBatch < E...
return new BaseEntityBatch < E > ( this , entityMapper , pool , tableName , writeBufferSize ) ;
public class DwgFile { /** * Returns the color of the layer of a DWG object * @ param entity DWG object which we want to know its layer color * @ return int Layer color of the DWG object in the Autocad color code */ public int getColorByLayer ( DwgObject entity ) { } }
int colorByLayer = 0 ; int layer = entity . getLayerHandle ( ) ; for ( int j = 0 ; j < layerTable . size ( ) ; j ++ ) { Vector layerTableRecord = ( Vector ) layerTable . get ( j ) ; int lHandle = ( ( Integer ) layerTableRecord . get ( 0 ) ) . intValue ( ) ; if ( lHandle == layer ) { colorByLayer = ( ( Integer ) layerTa...
public class Channel { /** * Not public */ Collection < LifecycleQueryInstalledChaincodeProposalResponse > lifecycleQueryInstalledChaincode ( LifecycleQueryInstalledChaincodeRequest lifecycleQueryInstalledChaincodeRequest , Collection < Peer > peers ) throws InvalidArgumentException , ProposalException { } }
if ( null == lifecycleQueryInstalledChaincodeRequest ) { throw new InvalidArgumentException ( "The lifecycleQueryInstalledChaincodeRequest parameter can not be null." ) ; } checkPeers ( peers ) ; if ( ! isSystemChannel ( ) ) { throw new InvalidArgumentException ( "LifecycleQueryInstalledChaincodes should only be invoke...
public class UIContextHolder { /** * Retrieves the current effective UIContext . Note that this method will return null if called from outside normal * request processing , for example during the intial application UI construction . * @ return the current effective UIContext . */ public static UIContext getCurrent ...
Stack < UIContext > stack = CONTEXT_STACK . get ( ) ; if ( stack == null || stack . isEmpty ( ) ) { return null ; } return getStack ( ) . peek ( ) ;
public class Try { /** * Fail trivially , yielding { @ code x } . * @ param x The result * @ param < F > The type of failure values . * @ param < S > The type of success values . * @ return A computation that yields { @ code x } . */ public static < F , S > TryType < F , S > failure ( final F x ) { } }
return Failure . failure ( x ) ;
public class ShiroWebModuleWith435 { /** * Binds the security manager . Override this method in order to provide your own security manager binding . * By default , a { @ link org . apache . shiro . web . mgt . DefaultWebSecurityManager } is bound as an eager singleton . * @ param bind */ protected void bindWebSecur...
try { bind . toConstructor ( DefaultWebSecurityManager . class . getConstructor ( Collection . class ) ) . asEagerSingleton ( ) ; } catch ( NoSuchMethodException e ) { throw new ConfigurationException ( "This really shouldn't happen. Either something has changed in Shiro, or there's a bug in ShiroModule." , e ) ; }
public class JwtGenerator { /** * Generate a JWT from a map of claims . * @ param claims the map of claims * @ return the created JWT */ public String generate ( final Map < String , Object > claims ) { } }
// claims builder final JWTClaimsSet . Builder builder = new JWTClaimsSet . Builder ( ) ; // add claims for ( final Map . Entry < String , Object > entry : claims . entrySet ( ) ) { builder . claim ( entry . getKey ( ) , entry . getValue ( ) ) ; } if ( this . expirationTime != null ) { builder . expirationTime ( this ....
public class DataPersisterManager { /** * Register a data type with the manager . */ public static void registerDataPersisters ( DataPersister ... dataPersisters ) { } }
// we build the map and replace it to lower the chance of concurrency issues List < DataPersister > newList = new ArrayList < DataPersister > ( ) ; if ( registeredPersisters != null ) { newList . addAll ( registeredPersisters ) ; } for ( DataPersister persister : dataPersisters ) { newList . add ( persister ) ; } regis...
public class DefaultWhenFileSystem { /** * Change the permissions on the file represented by { @ code path } to { @ code perms } , asynchronously . * The permission String takes the form rwxr - x - - - as * specified < a href = " http : / / download . oracle . com / javase / 7 / docs / api / java / nio / file / att...
return adapter . toPromise ( handler -> vertx . fileSystem ( ) . chmod ( path , perms , handler ) ) ;
public class CommercePriceListUserSegmentEntryRelPersistenceImpl { /** * Returns the commerce price list user segment entry rel where uuid = & # 63 ; and groupId = & # 63 ; or returns < code > null < / code > if it could not be found . Uses the finder cache . * @ param uuid the uuid * @ param groupId the group ID ...
return fetchByUUID_G ( uuid , groupId , true ) ;
public class ConfigImpl { /** * Common routine to load text or js plugin delegators * @ param cfg * the config object as a { @ link Scriptable } * @ param name * the name of the plugin delegator selector * @ return the set of plugin delegators for the selector */ protected Set < String > loadPluginDelegators ...
Set < String > result = null ; Object delegators = cfg . get ( name , cfg ) ; if ( delegators != Scriptable . NOT_FOUND && delegators instanceof Scriptable ) { result = new HashSet < String > ( ) ; for ( Object id : ( ( Scriptable ) delegators ) . getIds ( ) ) { if ( id instanceof Number ) { Number i = ( Number ) id ; ...
public class ClientSocket { /** * closes the stream . */ void closeImpl ( ) { } }
ReadStreamOld is = _is ; _is = null ; WriteStreamOld os = _os ; _os = null ; try { if ( is != null ) is . close ( ) ; } catch ( Throwable e ) { log . log ( Level . FINER , e . toString ( ) , e ) ; } try { if ( os != null ) os . close ( ) ; } catch ( Throwable e ) { log . log ( Level . FINER , e . toString ( ) , e ) ; }...
public class QueryParser { /** * src / riemann / Query . g : 32:1 : not : NOT ( WS ) * ( not | primary ) ; */ public final QueryParser . not_return not ( ) throws RecognitionException { } }
QueryParser . not_return retval = new QueryParser . not_return ( ) ; retval . start = input . LT ( 1 ) ; CommonTree root_0 = null ; Token NOT15 = null ; Token WS16 = null ; QueryParser . not_return not17 = null ; QueryParser . primary_return primary18 = null ; CommonTree NOT15_tree = null ; CommonTree WS16_tree = null ...
public class Equ { /** * Create a reverse Polish notation form of the equation * @ param oldTokens a { @ link java . util . Collection } object . * @ return a { @ link java . util . Collection } object . */ protected List < EquPart > rpnize ( final List < EquPart > oldTokens ) { } }
final List < EquPart > _rpn = new Stack < > ( ) ; final Stack < EquPart > ops = new Stack < > ( ) ; Operation leftOp ; Operation rightOp ; for ( final EquPart token : oldTokens ) if ( token instanceof Token ) _rpn . add ( token ) ; else { rightOp = ( Operation ) token ; if ( ops . empty ( ) ) { if ( rightOp . includeIn...
public class CPDefinitionLinkUtil { /** * Returns the last cp definition link in the ordered set where CProductId = & # 63 ; . * @ param CProductId the c product ID * @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > ) * @ return the last matching cp definition lin...
return getPersistence ( ) . fetchByCProductId_Last ( CProductId , orderByComparator ) ;
public class Configuration { /** * Return the input stream to the builder XML . * @ return the input steam to the builder XML . * @ throws FileNotFoundException when the given XML file cannot be found . */ public InputStream getBuilderXML ( ) throws IOException { } }
return builderXMLPath == null ? Configuration . class . getResourceAsStream ( DEFAULT_BUILDER_XML ) : DocFile . createFileForInput ( this , builderXMLPath ) . openInputStream ( ) ;
public class ObjectEnvelopeOrdering { /** * Reorders the object envelopes . The new order is available from the * < code > ordering < / code > property . * @ see # getOrdering ( ) */ public void reorder ( ) { } }
int newOrderIndex = 0 ; long t1 = 0 , t2 = 0 , t3 ; if ( log . isDebugEnabled ( ) ) { t1 = System . currentTimeMillis ( ) ; } newOrder = new Identity [ originalOrder . size ( ) ] ; if ( log . isDebugEnabled ( ) ) log . debug ( "Orginal order: " + originalOrder ) ; // set up the vertex array in the order the envelopes w...
public class CallerUtil { /** * Returns the signature of the method inside the monitored codebase which was last executed . */ public static String getCallerSignature ( ) { } }
if ( Stagemonitor . getPlugin ( CorePlugin . class ) . getIncludePackages ( ) . isEmpty ( ) ) { return null ; } if ( javaLangAccessObject != null ) { return getCallerSignatureSharedSecrets ( ) ; } else { return getCallerSignatureGetStackTrace ( ) ; }
public class FilterLogEventsResult { /** * Indicates which log streams have been searched and whether each has been searched completely . * @ return Indicates which log streams have been searched and whether each has been searched completely . */ public java . util . List < SearchedLogStream > getSearchedLogStreams (...
if ( searchedLogStreams == null ) { searchedLogStreams = new com . amazonaws . internal . SdkInternalList < SearchedLogStream > ( ) ; } return searchedLogStreams ;
public class BackgroundLruEvictionStrategy { /** * Returns true if trace should be printed . */ private boolean isTraceEnabled ( boolean debug ) // d581579 { } }
if ( debug ? tc . isDebugEnabled ( ) : tc . isEntryEnabled ( ) ) { return true ; } if ( ivCache . numSweeps % NUM_SWEEPS_PER_OOMTRACE == 1 && ( debug ? tcOOM . isDebugEnabled ( ) : tcOOM . isEntryEnabled ( ) ) ) { return true ; } return false ;
public class DistributedCache { /** * Returns the relative path of the dir this cache will be localized in * relative path that this cache will be localized in . For * hdfs : / / hostname : port / absolute _ path - - the relative path is * hostname / absolute path - - if it is just / absolute _ path - - then the ...
String host = cache . getHost ( ) ; if ( host == null ) { host = cache . getScheme ( ) ; } if ( host == null ) { URI defaultUri = FileSystem . get ( conf ) . getUri ( ) ; host = defaultUri . getHost ( ) ; if ( host == null ) { host = defaultUri . getScheme ( ) ; } } String path = host + cache . getPath ( ) ; path = pat...
public class MarkupSelectorFilter { /** * Element handling */ boolean matchStandaloneElement ( final boolean blockMatching , final int markupLevel , final int markupBlockIndex , final SelectorElementBuffer elementBuffer ) { } }
checkMarkupLevel ( markupLevel ) ; if ( this . markupSelectorItem . anyLevel ( ) || markupLevel == 0 || ( this . prev != null && this . prev . matchedMarkupLevels [ markupLevel - 1 ] ) ) { // This element has not matched yet , but might match , so we should check this . matchesThisLevel = this . markupSelectorItem . ma...
public class SerializedFormBuilder { /** * Build method description . * @ param node the XML element that specifies which components to document * @ param methodsContentTree content tree to which the documentation will be added */ public void buildMethodDescription ( XMLNode node , Content methodsContentTree ) { } ...
methodWriter . addMemberDescription ( ( MethodDoc ) currentMember , methodsContentTree ) ;
public class PippoSettings { /** * Returns the integer value for the specified name . If the name does not * exist or the value for the name can not be interpreted as an integer , the * defaultValue is returned . * @ param name * @ param defaultValue * @ return name value or defaultValue */ public int getInte...
try { String value = getString ( name , null ) ; if ( ! StringUtils . isNullOrEmpty ( value ) ) { return Integer . parseInt ( value . trim ( ) ) ; } } catch ( NumberFormatException e ) { log . warn ( "Failed to parse integer for " + name + USING_DEFAULT_OF + defaultValue ) ; } return defaultValue ;
public class ClientConnection { /** * Connects to the cluster . */ private CompletableFuture < Connection > connect ( ) { } }
// If the address selector has been reset then reset the connection . if ( selector . state ( ) == AddressSelector . State . RESET && connection != null ) { if ( connectFuture != null ) { return connectFuture ; } CompletableFuture < Connection > future = new OrderedCompletableFuture < > ( ) ; future . whenComplete ( ( ...