signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class RedisInner { /** * Gets any upgrade notifications for a Redis cache .
* @ param resourceGroupName The name of the resource group .
* @ param name The name of the Redis cache .
* @ param history how many minutes in past to look for upgrade notifications
* @ throws IllegalArgumentException thrown if ... | return listUpgradeNotificationsWithServiceResponseAsync ( resourceGroupName , name , history ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class Processor { /** * Transforms an input file into HTML .
* @ param file
* The File to process .
* @ param safeMode
* Set to < code > true < / code > to escape unsafe HTML tags .
* @ return The processed String .
* @ throws IOException
* if an IO error occurs
* @ see Configuration # DEFAULT */... | return process ( file , Configuration . builder ( ) . setSafeMode ( safeMode ) . build ( ) ) ; |
public class QrCodeCodeWordLocations { /** * Blocks out the location of features in the image . Needed for codeworld location extraction
* @ param numModules
* @ param alignment
* @ param hasVersion */
private void computeFeatureMask ( int numModules , int [ ] alignment , boolean hasVersion ) { } } | // mark alignment patterns + format info
markSquare ( 0 , 0 , 9 ) ; markRectangle ( numModules - 8 , 0 , 9 , 8 ) ; markRectangle ( 0 , numModules - 8 , 8 , 9 ) ; // timing pattern
markRectangle ( 8 , 6 , 1 , numModules - 8 - 8 ) ; markRectangle ( 6 , 8 , numModules - 8 - 8 , 1 ) ; // version info
if ( hasVersion ) { ma... |
public class UriBuilder { /** * Sets the path part of the URI .
* @ param str the path part of the URI
* @ return a reference to the builder */
public UriBuilder setPath ( final String str ) { } } | final String [ ] parts ; if ( str . startsWith ( "/" ) ) { parts = new String [ ] { str } ; } else { final String base = getPath ( ) . toString ( ) ; parts = new String [ ] { base , base . endsWith ( "/" ) ? "" : "/" , str } ; } return setPath ( new GStringImpl ( EMPTY , parts ) ) ; |
public class Anima { /** * Set the query to fix columns with lambda
* @ param functions column lambdas
* @ return Select */
@ SafeVarargs public static < T extends Model , R > Select select ( TypeFunction < T , R > ... functions ) { } } | return select ( Arrays . stream ( functions ) . map ( AnimaUtils :: getLambdaColumnName ) . collect ( joining ( ", " ) ) ) ; |
public class MariaDbConnection { /** * Returns the value of the client info property specified by name . This method may return null
* if the specified client info property has not been set and does not have a default value . This
* method will also return null if the specified client info property name is not supp... | checkConnection ( ) ; if ( ! "ApplicationName" . equals ( name ) && ! "ClientUser" . equals ( name ) && ! "ClientHostname" . equals ( name ) ) { throw new SQLException ( "name must be \"ApplicationName\", \"ClientUser\" or \"ClientHostname\", but was \"" + name + "\"" ) ; } try ( Statement statement = createStatement (... |
public class JobTargetExecutionsInner { /** * Lists the target executions of a job step execution .
* @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal .
* @ param serverName The name of the server .
* ... | ServiceResponse < Page < JobExecutionInner > > response = listByStepSinglePageAsync ( resourceGroupName , serverName , jobAgentName , jobName , jobExecutionId , stepName , createTimeMin , createTimeMax , endTimeMin , endTimeMax , isActive , skip , top ) . toBlocking ( ) . single ( ) ; return new PagedList < JobExecutio... |
public class Caster { /** * casts a Object to a Node List
* @ param o Object to Cast
* @ param defaultValue
* @ return NodeList from Object */
public static NodeList toNodeList ( Object o , NodeList defaultValue ) { } } | // print . ln ( " nodeList : " + o ) ;
if ( o instanceof NodeList ) { return ( NodeList ) o ; } else if ( o instanceof ObjectWrap ) { return toNodeList ( ( ( ObjectWrap ) o ) . getEmbededObject ( defaultValue ) , defaultValue ) ; } return defaultValue ; |
public class ReflectionUtils { /** * Obtain the wrapper type for the given primitive .
* @ param primitiveType The primitive type
* @ return The wrapper type */
public static Class getWrapperType ( Class primitiveType ) { } } | if ( primitiveType . isPrimitive ( ) ) { return PRIMITIVES_TO_WRAPPERS . get ( primitiveType ) ; } return primitiveType ; |
public class CQLTranslator { /** * Builds the element collection value .
* @ param field
* the field
* @ param record
* the record
* @ param metaModel
* the meta model
* @ param attribute
* the attribute
* @ return the string builder */
private StringBuilder buildElementCollectionValue ( Field field ,... | StringBuilder elementCollectionValueBuilder = new StringBuilder ( ) ; EmbeddableType embeddableKey = metaModel . embeddable ( ( ( AbstractAttribute ) attribute ) . getBindableJavaType ( ) ) ; ( ( AbstractAttribute ) attribute ) . getJavaMember ( ) ; Object value = PropertyAccessorHelper . getObject ( record , field ) ;... |
public class MultiPolygon { /** * Return the closest bounding box around the geometry . */
public Bbox getBounds ( ) { } } | Bbox bounds = null ; if ( ! isEmpty ( ) ) { for ( Polygon polygon : polygons ) { if ( bounds == null ) { bounds = polygon . getBounds ( ) ; } else { bounds = bounds . union ( polygon . getBounds ( ) ) ; } } } return bounds ; |
public class DateTimeFormatterBuilder { /** * Causes the next added printer / parser to pad to a fixed width .
* This padding is intended for padding other than zero - padding .
* Zero - padding should be achieved using the appendValue methods .
* During formatting , the decorated element will be output and then ... | if ( padWidth < 1 ) { throw new IllegalArgumentException ( "The pad width must be at least one but was " + padWidth ) ; } active . padNextWidth = padWidth ; active . padNextChar = padChar ; active . valueParserIndex = - 1 ; return this ; |
public class TxUtils { /** * Is the transaction active
* @ param tx The transaction
* @ return True if active ; otherwise false */
public static boolean isActive ( Transaction tx ) { } } | if ( tx == null ) return false ; try { int status = tx . getStatus ( ) ; return status == Status . STATUS_ACTIVE ; } catch ( SystemException error ) { throw new RuntimeException ( "Error during isActive()" , error ) ; } |
public class Response { /** * Attempts to set the Content - Type of the Response based on Request
* headers .
* The Accept header is preferred for negotiation but the Content - Type
* header may also be used if an agreeable engine can not be determined .
* If no Content - Type can not be negotiated then the res... | // prefer the Accept header
if ( "*/*" . equals ( request . getAcceptType ( ) ) ) { // client accepts all types
return this ; } ContentTypeEngine engine = contentTypeEngines . getContentTypeEngine ( request . getAcceptType ( ) ) ; if ( engine != null ) { log . debug ( "Negotiated '{}' from request Accept header" , engi... |
public class RealVoltDB { /** * See comment on { @ link VoltDBInterface # scheduleWork ( Runnable , long , long , TimeUnit ) } vs
* { @ link VoltDBInterface # schedulePriorityWork ( Runnable , long , long , TimeUnit ) } */
@ Override public ScheduledFuture < ? > scheduleWork ( Runnable work , long initialDelay , long... | if ( delay > 0 ) { return m_periodicWorkThread . scheduleWithFixedDelay ( work , initialDelay , delay , unit ) ; } else { return m_periodicWorkThread . schedule ( work , initialDelay , unit ) ; } |
public class SamlRegisteredServiceCachedMetadataEndpoint { /** * Gets cached metadata object .
* @ param serviceId the service id
* @ param entityId the entity id
* @ return the cached metadata object */
@ ReadOperation public Map < String , Object > getCachedMetadataObject ( final String serviceId , @ Nullable f... | try { val registeredService = findRegisteredService ( serviceId ) ; val issuer = StringUtils . defaultIfBlank ( entityId , registeredService . getServiceId ( ) ) ; val criteriaSet = new CriteriaSet ( ) ; criteriaSet . add ( new EntityIdCriterion ( issuer ) ) ; criteriaSet . add ( new EntityRoleCriterion ( SPSSODescript... |
public class TeamServiceImpl { /** * Retrieves all unique scopes
* @ return A data response list of type Scope containing all unique scopes */
@ Override public Iterable < Team > getAllTeams ( ) { } } | // Get all available teams
Iterable < Team > teams = teamRepository . findAll ( ) ; for ( Team team : teams ) { Collector collector = collectorRepository . findOne ( team . getCollectorId ( ) ) ; team . setCollector ( collector ) ; } return teams ; |
public class JavacHandlerUtil { /** * When generating a setter , the setter either returns void ( beanspec ) or Self ( fluent ) .
* This method scans for the { @ code Accessors } annotation to figure that out . */
public static boolean shouldReturnThis ( JavacNode field ) { } } | if ( ( ( ( JCVariableDecl ) field . get ( ) ) . mods . flags & Flags . STATIC ) != 0 ) return false ; AnnotationValues < Accessors > accessors = JavacHandlerUtil . getAccessorsForField ( field ) ; return HandlerUtil . shouldReturnThis0 ( accessors , field . getAst ( ) ) ; |
public class SocketRWChannelSelector { /** * @ see com . ibm . ws . tcpchannel . internal . ChannelSelector # performRequest ( ) */
@ Override protected boolean performRequest ( ) { } } | VirtualConnection vci = null ; boolean completeOperation = true ; TCPBaseRequestContext req = null ; SelectionKey selectedKey = null ; // If we were woken up because we have work to do , do it .
Set < SelectionKey > keySet = selector . selectedKeys ( ) ; Iterator < SelectionKey > selectedIterator = keySet . iterator ( ... |
public class N { /** * Returns an immutable empty < code > ListIterator < / code > if the specified ListIterator is < code > null < / code > , otherwise itself is returned .
* @ param iter
* @ return */
public static < T > ListIterator < T > nullToEmpty ( final ListIterator < T > iter ) { } } | return iter == null ? N . < T > emptyListIterator ( ) : iter ; |
public class BatchDescribeSimulationJobResult { /** * A list of simulation jobs .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setJobs ( java . util . Collection ) } or { @ link # withJobs ( java . util . Collection ) } if you want to override the
* exis... | if ( this . jobs == null ) { setJobs ( new java . util . ArrayList < SimulationJob > ( jobs . length ) ) ; } for ( SimulationJob ele : jobs ) { this . jobs . add ( ele ) ; } return this ; |
public class DecimalFormat { /** * Returns true if rounding - up must be done on { @ code scaledFractionalPartAsInt } ,
* false otherwise .
* This is a utility method that takes correct half - even rounding decision on
* passed fractional value at the scaled decimal point ( 2 digits for currency
* case and 3 fo... | /* exactRoundUp ( ) method is called by fastDoubleFormat ( ) only .
* The precondition expected to be verified by the passed parameters is :
* scaledFractionalPartAsInt = =
* ( int ) ( fractionalPart * fastPathData . fractionalScaleFactor ) .
* This is ensured by fastDoubleFormat ( ) code . */
/* We first calcu... |
public class HttpInboundLink { /** * Send an error message when a generic throwable occurs .
* @ param t */
private void sendErrorMessage ( Throwable t ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Sending a 400 for throwable [" + t + "]" ) ; } sendErrorMessage ( StatusCodes . BAD_REQUEST ) ; |
public class DescribeServicesResult { /** * A JSON - formatted list of AWS services .
* @ return A JSON - formatted list of AWS services . */
public java . util . List < Service > getServices ( ) { } } | if ( services == null ) { services = new com . amazonaws . internal . SdkInternalList < Service > ( ) ; } return services ; |
public class BaseDestinationHandler { private void reallocateTransmissionStreams ( PtoPXmitMsgsItemStream ignoredStream ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "reallocateTransmissionStreams" , ignoredStream ) ; getLocalisationManager ( ) . reallocateTransmissionStreams ( ignoredStream ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc ... |
public class Configuration { /** * Returns an error message for the supplied exception and based on this
* configuration .
* @ see # setDefaultExceptionMessage ( String )
* @ see # setSendExceptionMessage ( boolean )
* @ see # setExceptionToMessage ( Map )
* @ param exception the thrown exception
* @ return... | String message ; if ( getExceptionToMessage ( ) != null ) { message = getExceptionToMessage ( ) . get ( exception . getClass ( ) ) ; if ( StringUtils . hasText ( message ) ) { return message ; } // map entry with a null value
if ( getExceptionToMessage ( ) . containsKey ( exception . getClass ( ) ) ) { return exception... |
public class WSKeyStore { /** * return true if the entry is a key and false if not */
public boolean isKeyEntry ( String alias ) throws KeyStoreException , KeyException { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "isKeyEntry: " + alias ) ; boolean isKey = false ; try { KeyStore jKeyStore = getKeyStore ( false , false ) ; if ( jKeyStore == null ) { throw new KeyStoreException ( "The keystore [" + name + "] is not present in the configura... |
public class FileUtils { /** * Convert a PosixFilePermission set to an integer permissions mode .
* @ param aPermSet A PosixFilePermission set
* @ return A permissions mode integer */
public static int convertToInt ( final Set < PosixFilePermission > aPermSet ) { } } | int result = 0 ; if ( aPermSet . contains ( PosixFilePermission . OWNER_READ ) ) { result = result | 0400 ; } if ( aPermSet . contains ( PosixFilePermission . OWNER_WRITE ) ) { result = result | 0200 ; } if ( aPermSet . contains ( PosixFilePermission . OWNER_EXECUTE ) ) { result = result | 0100 ; } if ( aPermSet . cont... |
public class MuServerBuilder { /** * Creates and starts this server . An exception is thrown if it fails to start .
* @ return The running server . */
public MuServer start ( ) { } } | if ( httpPort < 0 && httpsPort < 0 ) { throw new IllegalArgumentException ( "No ports were configured. Please call MuServerBuilder.withHttpPort(int) or MuServerBuilder.withHttpsPort(int)" ) ; } ServerSettings settings = new ServerSettings ( minimumGzipSize , maxHeadersSize , maxUrlSize , gzipEnabled , mimeTypesToGzip )... |
public class WASCDIAnnotationInjectionProvider { /** * { @ inheritDoc } */
@ Override public void postConstruct ( Object instance , Object creationMetaData ) throws InjectionProviderException { } } | if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { logger . logp ( Level . FINE , CLASS_NAME , "postConstruct(instance)" , "Instance of = " + instance . getClass ( ) . getName ( ) ) ; } if ( isAvailable ) { try { runtimeAnnotationHelper . doDelayedPostConst... |
public class DebugUtil { /** * Invokes a given method of every element in a { @ code java . util . Collection } and prints the results to a { @ code java . io . PrintStream } .
* The method to be invoked must have no formal parameters .
* If an exception is throwed during the method invocation , the element ' s { @... | if ( pPrintStream == null ) { System . err . println ( PRINTSTREAM_IS_NULL_ERROR_MESSAGE ) ; return ; } if ( pCollection == null ) { pPrintStream . println ( COLLECTION_IS_NULL_ERROR_MESSAGE ) ; return ; } else if ( pCollection . isEmpty ( ) ) { pPrintStream . println ( COLLECTION_IS_EMPTY_ERROR_MESSAGE ) ; return ; } ... |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcBoundaryNodeCondition ( ) { } } | if ( ifcBoundaryNodeConditionEClass == null ) { ifcBoundaryNodeConditionEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 51 ) ; } return ifcBoundaryNodeConditionEClass ; |
public class Balanced { /** * Returns the index within this string of the first occurrence of the specified character , similar to String . indexOf ( ) .
* However , any occurrence of the specified character enclosed between balanced parentheses / brackets / braces is ignored .
* @ param text a String
* @ param t... | return indexOf ( text , 0 , text . length ( ) , target , null ) ; |
public class AliasDestinationHandler { /** * ( non - Javadoc )
* @ see com . ibm . ws . sib . processor . impl . interfaces . DestinationHandler # chooseConsumerDispatcher ( ) */
@ Override public ConsumerManager chooseConsumerManager ( SIBUuid12 gatheringTargetUuid , SIBUuid8 fixedMEUuid , HashSet < SIBUuid8 > scope... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "chooseConsumerManager" , new Object [ ] { gatheringTargetUuid , fixedMEUuid , scopedMEs } ) ; // We ' re an alias ( or foreign destination ) so we should never be called with a scoped ME set
if ( scopedMEs != null ) { SIMPE... |
public class QuattroTableModel { /** * { @ inheritDoc } */
@ Override public Object getValueAt ( final int rowIndex , final int columnIndex ) { } } | final Quattro < TL , TR , BL , BR > row = getData ( ) . get ( rowIndex ) ; switch ( columnIndex ) { case 0 : return row . getTopLeft ( ) ; case 1 : return row . getTopRight ( ) ; case 2 : return row . getBottomLeft ( ) ; case 3 : return row . getBottomRight ( ) ; default : return null ; } |
public class AnnoConstruct { /** * Helper to getAnnotationsByType */
private static Class < ? extends Annotation > getContainer ( Class < ? extends Annotation > annoType ) { } } | // Since we can not refer to java . lang . annotation . Repeatable until we are
// bootstrapping with java 8 we need to get the Repeatable annotation using
// reflective invocations instead of just using its type and element method .
if ( REPEATABLE_CLASS != null && VALUE_ELEMENT_METHOD != null ) { // Get the Repeatabl... |
public class OWLValueObject { /** * Builds an instance
* @ param model
* @ param uriClass
* @ param object
* @ return
* @ throws NotYetImplementedException
* @ throws OWLTranslationException */
private static OWLValueObject buildFromClasAndObject ( OWLModel model , OWLURIClass uriClass , Object object ) thr... | // if object is a primitive data type :
if ( object . getClass ( ) . isPrimitive ( ) || object instanceof String ) { return new OWLValueObject ( model , uriClass , model . createDataValue ( object , uriClass . getURI ( ) ) ) ; } // if object uses jenabeans :
if ( ObjectOWLSTranslator . isJenaBean ( object ) ) { try { r... |
public class CmsWorkplaceAppManager { /** * Initializes the additional workplace CSS URIs . < p >
* They will be taken from the module parameter ' workplace - css ' if present in any module . < p >
* @ param moduleManager the module manager instance */
public void initWorkplaceCssUris ( CmsModuleManager moduleManag... | Set < String > cssUris = new HashSet < String > ( ) ; for ( CmsModule module : moduleManager . getAllInstalledModules ( ) ) { String param = module . getParameter ( WORKPLACE_CSS_PARAM ) ; if ( CmsStringUtil . isNotEmptyOrWhitespaceOnly ( param ) ) { cssUris . add ( param ) ; } } File cssFile = new File ( OpenCms . get... |
public class BeanRepository { /** * With a { @ link Provider } it is possible to get an Accessor to a Bean , without initialise the Bean at the time of
* of getting the Accessor .
* @ param cls The Class of the Bean , used in the Configuration of the BeanRepository
* @ param < R > The Type or a super Type of the ... | return providerFor ( beanProviderFor ( cls ) ) ; |
public class IterableExtensions { /** * Applies { @ code procedure } for each element of the given iterable .
* @ param iterable
* the iterable . May not be < code > null < / code > .
* @ param procedure
* the procedure . May not be < code > null < / code > . */
public static < T > void forEach ( Iterable < T >... | IteratorExtensions . forEach ( iterable . iterator ( ) , procedure ) ; |
public class MathUtils { /** * Returns the input value x clamped to the range [ min , max ] . */
public static int clamp ( int x , int min , int max ) { } } | if ( x > max ) return max ; if ( x < min ) return min ; return x ; |
public class CommerceCountryUtil { /** * Returns the first commerce country in the ordered set where groupId = & # 63 ; .
* @ param groupId the group ID
* @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > )
* @ return the first matching commerce country
* @ throw... | return getPersistence ( ) . findByGroupId_First ( groupId , orderByComparator ) ; |
public class TrmMessageFactoryImpl { /** * Create an instance of the appropriate sub - class , e . g . TrmRouteData if
* the inbound message is actually a TRM RouteData Message , for the
* given JMO . A TRM Message of unknown type will be returned as a TrmMessage .
* @ return TrmMessage A TrmMessage of the approp... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createInboundTrmMessage " + messageType ) ; TrmMessage trmMessage = null ; /* Create an instance of the appropriate message subclass */
switch ( messageType ) { case TrmMessageType . ROUTE_DATA_INT : trmMessage = new TrmRou... |
public class GuiceBootstrapModule { /** * Bind bootstrap , configuration and environment objects to be able to use them
* as injectable . */
@ SuppressWarnings ( "deprecation" ) private void bindEnvironment ( ) { } } | bind ( Bootstrap . class ) . toInstance ( bootstrap ( ) ) ; bind ( Environment . class ) . toInstance ( environment ( ) ) ; install ( new ConfigBindingModule ( configuration ( ) , configurationTree ( ) , context . option ( BindConfigurationInterfaces ) ) ) ; |
public class NettyChannelBuilder { /** * Equivalent to using { @ link # negotiationType ( NegotiationType ) } with { @ code PLAINTEXT } or
* { @ code PLAINTEXT _ UPGRADE } .
* @ deprecated use { @ link # usePlaintext ( ) } instead . */
@ Override @ Deprecated public NettyChannelBuilder usePlaintext ( boolean skipNe... | if ( skipNegotiation ) { negotiationType ( NegotiationType . PLAINTEXT ) ; } else { negotiationType ( NegotiationType . PLAINTEXT_UPGRADE ) ; } return this ; |
public class Region { /** * Order this region relative to another . */
@ Override public int compareTo ( Comparable < ? > other ) { } } | if ( other instanceof Region ) { Region r = ( Region ) other ; if ( this . start < r . start ) { return - 1 ; } else if ( this . end > r . end ) { return 1 ; } else { return 0 ; } } else if ( other instanceof Long ) { Long l = ( Long ) other ; if ( l > end ) { return - 1 ; } else if ( l < start ) { return 1 ; } else { ... |
public class NFRuleSet { /** * Formats a long . Selects an appropriate rule and dispatches
* control to it .
* @ param number The number being formatted
* @ param toInsertInto The string where the result is to be placed
* @ param pos The position in toInsertInto where the result of
* this operation is to be i... | if ( recursionCount >= RECURSION_LIMIT ) { throw new IllegalStateException ( "Recursion limit exceeded when applying ruleSet " + name ) ; } NFRule applicableRule = findNormalRule ( number ) ; applicableRule . doFormat ( number , toInsertInto , pos , ++ recursionCount ) ; |
public class Configuration { /** * Get the value of the < code > name < / code > property as a < code > Pattern < / code > .
* If no such property is specified , or if the specified value is not a valid
* < code > Pattern < / code > , then < code > DefaultValue < / code > is returned .
* Note that the returned va... | String valString = get ( name ) ; if ( null == valString || valString . isEmpty ( ) ) { return defaultValue ; } try { return Pattern . compile ( valString ) ; } catch ( PatternSyntaxException pse ) { LOG . warn ( "Regular expression '" + valString + "' for property '" + name + "' not valid. Using default" , pse ) ; ret... |
public class RestrictionsContainer { /** * Methode d ' ajout de la restriction NotEq
* @ param propertyNom de la Propriete
* @ param valueValeur de la propriete
* @ param < Y > Type de valeur
* @ returnConteneur */
public < Y extends Comparable < ? super Y > > RestrictionsContainer addNotEq ( String property , ... | // Ajout de la restriction
restrictions . add ( new NotEq < Y > ( property , value ) ) ; // On retourne le conteneur
return this ; |
public class UnrolledUnsafeCopierBuilder { /** * Constructs a new Copier using the passed in Unsafe instance
* @ param unsafe The sun . misc . Unsafe instance this copier uses
* @ return The new UnsageCopier built with the specific parameters
* @ throws IllegalAccessException
* @ throws InstantiationException
... | checkArgument ( offset >= 0 , "Offset must be set" ) ; checkArgument ( length >= 0 , "Length must be set" ) ; checkNotNull ( unsafe ) ; Class < ? > dynamicType = new ByteBuddy ( ) . subclass ( UnsafeCopier . class ) . method ( named ( "copy" ) ) . intercept ( new CopierImplementation ( offset , length ) ) . make ( ) . ... |
public class RowSchema { /** * Creates a new { @ link RowSchema } from a list of { @ link AccumuloColumnHandle } objects . Does not validate the schema .
* @ param columns Column handles
* @ return Row schema */
public static RowSchema fromColumns ( List < AccumuloColumnHandle > columns ) { } } | RowSchema schema = new RowSchema ( ) ; for ( AccumuloColumnHandle columnHandle : columns ) { schema . addColumn ( columnHandle . getName ( ) , columnHandle . getFamily ( ) , columnHandle . getQualifier ( ) , columnHandle . getType ( ) , columnHandle . isIndexed ( ) ) ; } return schema ; |
public class Files { /** * Use this instead of { @ link FileWriter } because you cannot specify the character encoding with that . */
public static Writer newBufferedUTF8FileWriter ( final String file ) throws UnsupportedEncodingException , FileNotFoundException { } } | return new BufferedWriter ( new OutputStreamWriter ( new FileOutputStream ( file ) , "UTF-8" ) ) ; |
public class S3Util { /** * Use this helper method to generate pre - signed S3 urls . You ' ll need to generate urls for both the put and delete
* http methods . Example : Your AWS Access Key is " abcd " . Your AWS Secret Access Key is " efgh " . You want this node to
* write its information to " / S3 / master / jb... | Map headers = new HashMap ( ) ; if ( method . equalsIgnoreCase ( "PUT" ) ) { headers . put ( "x-amz-acl" , Arrays . asList ( "public-read" ) ) ; } return Utils . generateQueryStringAuthentication ( awsAccessKey , awsSecretAccessKey , method , bucket , key , new HashMap ( ) , headers , expirationDate ) ; |
public class FlinkKafkaProducerBase { /** * Initializes the connection to Kafka . */
@ Override public void open ( Configuration configuration ) { } } | producer = getKafkaProducer ( this . producerConfig ) ; RuntimeContext ctx = getRuntimeContext ( ) ; if ( null != flinkKafkaPartitioner ) { if ( flinkKafkaPartitioner instanceof FlinkKafkaDelegatePartitioner ) { ( ( FlinkKafkaDelegatePartitioner ) flinkKafkaPartitioner ) . setPartitions ( getPartitionsByTopic ( this . ... |
public class Category { /** * This method creates a new logging event and logs the event without further checks .
* @ param fqcn
* Fully - qualified class name of the category or logger instance
* @ param level
* Priority to log
* @ param message
* Message to log
* @ param t
* Exception to log */
protec... | provider . log ( fqcn , null , translatePriority ( level ) , t , message == t ? null : message , ( Object [ ] ) null ) ; |
public class Thing { /** * Removes a property from the map .
* @ param key the key
* @ return this */
public Thing removeStateProperty ( String key ) { } } | if ( ! StringUtils . isBlank ( key ) ) { getDeviceState ( ) . remove ( key ) ; } return this ; |
public class MultiUserChat { /** * Revokes ownership privileges from another user . The occupant that loses ownership
* privileges will become an administrator . Room owners may revoke ownership privileges .
* Some room implementations will not allow to grant ownership privileges to other users .
* @ param jid th... | changeAffiliationByAdmin ( jid , MUCAffiliation . admin , null ) ; |
public class CFEndPointImpl { /** * Assign the value of address based on the String parameter .
* @ param addressString
* @ throws ChannelFrameworkException
* @ throws UnknownHostException */
private void assignAddress ( String addressString ) throws ChannelFrameworkException , UnknownHostException { } } | if ( addressString == null ) { // No address found in properties . No CFEndPoint can be created .
throw new ChannelFrameworkException ( "No address available in properties." ) ; } if ( "*" . equals ( addressString ) ) { // TODO WAS used the node name
this . address = InetAddress . getLocalHost ( ) ; } else { this . add... |
public class Timecode { /** * Sets the object based on a string in the form HH : MM : SS : FF */
public void setCode ( String timecode ) throws Timecode . TimecodeException { } } | clear ( ) ; setHours ( getToken ( timecode , 0 ) ) ; setMinutes ( getToken ( timecode , 1 ) ) ; setSeconds ( getToken ( timecode , 2 ) ) ; setFrames ( getToken ( timecode , 3 ) ) ; if ( useSamples ( ) ) { try { setSamples ( getToken ( timecode , 4 ) ) ; // If we got here , we ' re parsing a AES31 - formatted string . .... |
public class Put { /** * A map of attribute name to attribute values , representing the primary key of the item to be written by
* < code > PutItem < / code > . All of the table ' s primary key attributes must be specified , and their data types must
* match those of the table ' s key schema . If any attributes are... | setItem ( item ) ; return this ; |
public class FileUtil { /** * Rename the file with oldname to newname . If a file with newname already
* exists , it is deleted before the renaming operation proceeds .
* If a file with oldname does not exist , no file will exist after the
* operation . */
private boolean renameOverwrite ( String oldname , String... | boolean deleted = delete ( newname ) ; if ( exists ( oldname ) ) { File file = new File ( oldname ) ; return file . renameTo ( new File ( newname ) ) ; } return deleted ; |
public class StubObject { /** * Create a { @ link StubObject } using the current user ID and the provided
* object ID
* @ param sID
* Object ID
* @ param aCustomAttrs
* Custom attributes . May be < code > null < / code > .
* @ return Never < code > null < / code > . */
@ Nonnull public static StubObject cre... | return new StubObject ( sID , LoggedInUserManager . getInstance ( ) . getCurrentUserID ( ) , aCustomAttrs ) ; |
public class FogbugzManager { /** * Helper method to create API url from Map , with proper encoding .
* @ param params Map with parameters to encode .
* @ return String which represents API URL . */
private String mapToFogbugzUrl ( Map < String , String > params ) throws UnsupportedEncodingException { } } | String output = this . getFogbugzUrl ( ) ; for ( String key : params . keySet ( ) ) { String value = params . get ( key ) ; if ( ! value . isEmpty ( ) ) { output += "&" + URLEncoder . encode ( key , "UTF-8" ) + "=" + URLEncoder . encode ( value , "UTF-8" ) ; } } FogbugzManager . log . info ( "Generated URL to send to F... |
public class JavaParser { /** * src / main / resources / org / drools / compiler / semantics / java / parser / Java . g : 409:1 : interfaceMethodOrFieldRest : ( constantDeclaratorsRest ' ; ' | interfaceMethodDeclaratorRest ) ; */
public final void interfaceMethodOrFieldRest ( ) throws RecognitionException { } } | int interfaceMethodOrFieldRest_StartIndex = input . index ( ) ; try { if ( state . backtracking > 0 && alreadyParsedRule ( input , 30 ) ) { return ; } // src / main / resources / org / drools / compiler / semantics / java / parser / Java . g : 410:5 : ( constantDeclaratorsRest ' ; ' | interfaceMethodDeclaratorRest )
in... |
public class BaseFactoryImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public String createModcaString8FromString ( EDataType eDataType , String initialValue ) { } } | return ( String ) super . createFromString ( eDataType , initialValue ) ; |
public class FilterDriver { /** * Easily supports the Join . To use the setSimpleJoin ,
* you must be a size master data appear in the memory of the task .
* @ param masterLabels label of master data
* @ param masterColumn master column
* @ param dataColumn data column
* @ param masterSeparator separator
* ... | this . conf . setInt ( SimpleJob . READER_TYPE , SimpleJob . SINGLE_COLUMN_JOIN_READER ) ; this . conf . setStrings ( SimpleJob . MASTER_LABELS , masterLabels ) ; this . conf . set ( SimpleJob . JOIN_MASTER_COLUMN , masterColumn ) ; this . conf . set ( SimpleJob . JOIN_DATA_COLUMN , dataColumn ) ; this . masterSeparato... |
public class CPOptionCategoryLocalServiceBaseImpl { /** * Returns a range of all the cp option categories .
* Useful when paginating results . Returns a maximum of < code > end - start < / code > instances . < code > start < / code > and < code > end < / code > are not primary keys , they are indexes in the result se... | return cpOptionCategoryPersistence . findAll ( start , end ) ; |
public class UsersApi { /** * Get User Devices ( asynchronously )
* Retrieve User & # 39 ; s Devices
* @ param userId User ID ( required )
* @ param offset Offset for pagination . ( optional )
* @ param count Desired count of items in the result set ( optional )
* @ param includeProperties Optional . Boolean ... | ProgressResponseBody . ProgressListener progressListener = null ; ProgressRequestBody . ProgressRequestListener progressRequestListener = null ; if ( callback != null ) { progressListener = new ProgressResponseBody . ProgressListener ( ) { @ Override public void update ( long bytesRead , long contentLength , boolean do... |
public class ZoomerCompat { /** * Starts a zoom from 1.0 to ( 1.0 + endZoom ) . That is , to zoom from 100 % to 125 % , endZoom should by 0.25f .
* @ see android . widget . Scroller # startScroll ( int , int , int , int ) */
public void startZoom ( float endZoom ) { } } | mStartRTC = SystemClock . elapsedRealtime ( ) ; mEndZoom = endZoom ; mFinished = false ; mCurrentZoom = 1f ; |
public class AESHelper { /** * Reads a file .
* @ param filePath The file path .
* @ return a byte [ ] The file data .
* @ throws java . io . IOException if an error occurs reading the file or if the file does not exists . */
public static byte [ ] readFile ( String filePath ) throws IOException { } } | byte [ ] buffer = new byte [ ( int ) new File ( filePath ) . length ( ) ] ; BufferedInputStream f = null ; try { f = new BufferedInputStream ( new FileInputStream ( filePath ) ) ; f . read ( buffer ) ; } finally { if ( f != null ) { try { f . close ( ) ; } catch ( final IOException ignored ) { } } } return buffer ; |
public class ObjectStreamClass { /** * Return the java . lang . reflect . Method if class < code > cl < / code > implements
* < code > methodName < / code > . Return null otherwise .
* @ param cl
* a java . lang . Class which to test
* @ return < code > java . lang . reflect . Method < / code > if the class imp... | Class < ? > search = cl ; Method method = null ; while ( search != null ) { try { method = search . getDeclaredMethod ( methodName , ( Class [ ] ) null ) ; if ( search == cl || ( method . getModifiers ( ) & Modifier . PRIVATE ) == 0 ) { method . setAccessible ( true ) ; return method ; } } catch ( NoSuchMethodException... |
public class TupleUtils { /** * Returns a { @ link Predicate } of { @ link Tuple8 } that wraps a predicate of the component values of the tuple
* @ param predicate the component value predicate
* @ param < T1 > the type of the first value
* @ param < T2 > the type of the second value
* @ param < T3 > the type o... | return tuple -> predicate . test ( tuple . getT1 ( ) , tuple . getT2 ( ) , tuple . getT3 ( ) , tuple . getT4 ( ) , tuple . getT5 ( ) , tuple . getT6 ( ) , tuple . getT7 ( ) , tuple . getT8 ( ) ) ; |
public class MercatorProjection { /** * Calculates the absolute pixel position for a tile and tile size relative to origin
* @ param latLong the geographic position .
* @ param tile tile
* @ return the relative pixel position to the origin values ( e . g . for a tile ) */
public static Point getPixelRelativeToTil... | return getPixelRelative ( latLong , tile . mapSize , tile . getOrigin ( ) ) ; |
public class MPP8Reader { /** * This method is used to extract the task hyperlink attributes
* from a block of data and call the appropriate modifier methods
* to configure the specified task object .
* @ param task task instance
* @ param data hyperlink data block */
private void processHyperlinkData ( Task ta... | if ( data != null ) { int offset = 12 ; String hyperlink ; String address ; String subaddress ; offset += 12 ; hyperlink = MPPUtility . getUnicodeString ( data , offset ) ; offset += ( ( hyperlink . length ( ) + 1 ) * 2 ) ; offset += 12 ; address = MPPUtility . getUnicodeString ( data , offset ) ; offset += ( ( address... |
public class JobTracker { /** * Start the JobTracker process . This is used only for debugging . As a rule ,
* JobTracker should be run as part of the DFS Namenode process . */
public static void main ( String argv [ ] ) throws IOException , InterruptedException { } } | StringUtils . startupShutdownMessage ( JobTracker . class , argv , LOG ) ; try { if ( argv . length == 0 ) { JobTracker tracker = startTracker ( new JobConf ( ) ) ; tracker . offerService ( ) ; return ; } if ( "-instance" . equals ( argv [ 0 ] ) && argv . length == 2 ) { int instance = Integer . parseInt ( argv [ 1 ] )... |
public class EvalCacheImpl { public void saveExprValue ( int id , Object value ) { } } | if ( tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "saveExprValue" , "id: " + new Integer ( id ) + ",value: " + value ) ; cacheTag [ id ] = generation ; cacheValue [ id ] = value ; if ( tc . isEntryEnabled ( ) ) tc . exit ( this , cclass , "saveExprValue" ) ; |
public class Vector4d { /** * Add the component - wise multiplication of < code > a * b < / code > to this vector .
* @ param a
* the first multiplicand
* @ param b
* the second multiplicand
* @ return a vector holding the result */
public Vector4d fma ( Vector4dc a , Vector4dc b ) { } } | return fma ( a , b , thisOrNew ( ) ) ; |
public class Report { /** * Add some application info on the report .
* @ param key the key of app info to add
* @ param value the value of app info to add
* @ return the modified report
* @ deprecated use { @ link # addToTab ( String , String , Object ) } instead */
@ Deprecated public Report setAppInfo ( Stri... | diagnostics . app . put ( key , value ) ; return this ; |
public class Condition { /** * Returns a new condition based on the disjunction of the current condition
* and the given condition .
* @ param that given condition . */
public OrCondition or ( Condition that ) { } } | return new OrCondition ( this , that . atomic ( ) ? that : _ ( that ) ) ; |
public class GCHSTImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public boolean eIsSet ( int featureID ) { } } | switch ( featureID ) { case AfplibPackage . GCHST__XPOS : return XPOS_EDEFAULT == null ? xpos != null : ! XPOS_EDEFAULT . equals ( xpos ) ; case AfplibPackage . GCHST__YPOS : return YPOS_EDEFAULT == null ? ypos != null : ! YPOS_EDEFAULT . equals ( ypos ) ; case AfplibPackage . GCHST__CP : return CP_EDEFAULT == null ? c... |
public class SentryClient { /** * Set the tags to extract from the MDC system and set on { @ link io . sentry . event . Event } s , where applicable .
* @ param mdcTags Set of tags to extract from the MDC system */
public void setMdcTags ( Set < String > mdcTags ) { } } | if ( mdcTags == null ) { this . mdcTags = new HashSet < > ( ) ; } else { this . mdcTags = mdcTags ; } |
public class DocumentVersionInfoMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DocumentVersionInfo documentVersionInfo , ProtocolMarshaller protocolMarshaller ) { } } | if ( documentVersionInfo == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( documentVersionInfo . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( documentVersionInfo . getDocumentVersion ( ) , DOCUMENTVERSION_BINDING ) ; proto... |
public class RespokeDirectConnection { /** * Establish a new direct connection instance with the peer connection for the call . This is used internally to the SDK and should not be called directly by your client application . */
public void createDataChannel ( ) { } } | if ( null != callReference ) { RespokeCall call = callReference . get ( ) ; if ( null != call ) { PeerConnection peerConnection = call . getPeerConnection ( ) ; dataChannel = peerConnection . createDataChannel ( "respokeDataChannel" , new DataChannel . Init ( ) ) ; dataChannel . registerObserver ( this ) ; } } |
public class Compiler { /** * Compile a list of compilation units . This method can be called multiple
* times , but it will not compile compilation units that have already been
* compiled .
* @ param names an array of fully qualified template names
* @ return The names of all the sources compiled by this compi... | if ( ! TemplateRepository . isInitialized ( ) ) { return compile0 ( names ) ; } String [ ] compNames = compile0 ( names ) ; ArrayList < String > compList = new ArrayList < String > ( Arrays . asList ( compNames ) ) ; TemplateRepository rep = TemplateRepository . getInstance ( ) ; String [ ] callers = rep . getCallersNe... |
public class UnusedImports { /** * Collects the details of imports .
* @ param aAST node containing the import details */
private void processImport ( DetailAST aAST ) { } } | final FullIdent name = FullIdent . createFullIdentBelow ( aAST ) ; if ( ( name != null ) && ! name . getText ( ) . endsWith ( ".*" ) ) { imports . add ( name ) ; } |
public class AbstractJpaStorage { /** * Get object of type T
* @ param id identity key
* @ param type class of type T
* @ return Instance of type T
* @ throws StorageException if a storage problem occurs while storing a bean */
public < T > T get ( Long id , Class < T > type ) throws StorageException { } } | T rval ; EntityManager entityManager = getActiveEntityManager ( ) ; try { rval = entityManager . find ( type , id ) ; } catch ( Throwable t ) { logger . error ( t . getMessage ( ) , t ) ; throw new StorageException ( t ) ; } return rval ; |
public class BulkSubmissionPublisher { /** * Flush . */
public void flush ( ) { } } | JMLog . debug ( log , "flush" , this . dataList . size ( ) ) ; synchronized ( this . dataList ) { if ( this . dataList . size ( ) > 0 ) { this . listSubmissionPublisher . submit ( this . dataList ) ; this . dataList = new ArrayList < > ( ) ; } } |
public class SecurityActions { /** * Get the input stream for a resource in the context class loader
* @ param name The name of the resource
* @ return The input stream */
static InputStream getResourceAsStream ( final String name ) { } } | if ( System . getSecurityManager ( ) == null ) return Thread . currentThread ( ) . getContextClassLoader ( ) . getResourceAsStream ( name ) ; return AccessController . doPrivileged ( new PrivilegedAction < InputStream > ( ) { public InputStream run ( ) { return Thread . currentThread ( ) . getContextClassLoader ( ) . g... |
public class Canon { /** * Generate the initial invariants for each atom in the { @ code container } .
* The labels use the invariants described in { @ cdk . cite WEI89 } .
* The bits in the low 32 - bits are : { @ code 00000xxxxXXXXeeeeescchhhh }
* where :
* < ul >
* < li > 0 : padding < / li >
* < li > x ... | long [ ] labels = new long [ graph . length ] ; for ( int v = 0 ; v < graph . length ; v ++ ) { IAtom atom = container . getAtom ( v ) ; int deg = graph [ v ] . length ; int impH = implH ( atom ) ; int expH = 0 ; int elem = atomicNumber ( atom ) ; int chg = charge ( atom ) ; // count non - suppressed ( explicit ) hydro... |
public class Expressions { /** * Creates an IsLessThan expression from the given expressions .
* @ param left The left expression .
* @ param right The right expression .
* @ return A new is less than binary expression . */
public static IsLessThan isLessThan ( ComparableExpression < Number > left , ComparableExp... | return new IsLessThan ( left , right ) ; |
public class ModelConstraints { /** * Ensures that the primary / foreign keys referenced by references / collections are present
* in the target type even if generate - table - info = " false " , by evaluating the subtypes
* of the target type .
* @ param modelDef The model
* @ param checkLevel The current chec... | ClassDescriptorDef classDef ; CollectionDescriptorDef collDef ; ReferenceDescriptorDef refDef ; for ( Iterator it = modelDef . getClasses ( ) ; it . hasNext ( ) ; ) { classDef = ( ClassDescriptorDef ) it . next ( ) ; for ( Iterator refIt = classDef . getReferences ( ) ; refIt . hasNext ( ) ; ) { refDef = ( ReferenceDes... |
public class StaleSecurityGroup { /** * Information about the stale inbound rules in the security group .
* @ param staleIpPermissions
* Information about the stale inbound rules in the security group . */
public void setStaleIpPermissions ( java . util . Collection < StaleIpPermission > staleIpPermissions ) { } } | if ( staleIpPermissions == null ) { this . staleIpPermissions = null ; return ; } this . staleIpPermissions = new com . amazonaws . internal . SdkInternalList < StaleIpPermission > ( staleIpPermissions ) ; |
public class AsciiEncoding { /** * Parse an ASCII encoded int from a { @ link CharSequence } .
* @ param cs to parse .
* @ param index at which the number begins .
* @ param length of the encoded number in characters .
* @ return the parsed value . */
public static int parseIntAscii ( final CharSequence cs , fi... | final int endExclusive = index + length ; final int first = cs . charAt ( index ) ; int i = index ; if ( first == MINUS_SIGN ) { i ++ ; } int tally = 0 ; for ( ; i < endExclusive ; i ++ ) { tally = ( tally * 10 ) + AsciiEncoding . getDigit ( i , cs . charAt ( i ) ) ; } if ( first == MINUS_SIGN ) { tally = - tally ; } r... |
public class MultiProcessCluster { /** * Formats the cluster journal . */
public synchronized void formatJournal ( ) throws IOException { } } | if ( mDeployMode == DeployMode . EMBEDDED ) { for ( Master master : mMasters ) { File journalDir = new File ( master . getConf ( ) . get ( PropertyKey . MASTER_JOURNAL_FOLDER ) ) ; FileUtils . deleteDirectory ( journalDir ) ; journalDir . mkdirs ( ) ; } return ; } try ( Closeable c = new ConfigurationRule ( mProperties... |
public class DifferenceEngine { /** * First point of call : if nodes are comparable it compares node values then
* recurses to compare node children .
* @ param control
* @ param test
* @ param listener
* @ param elementQualifier
* @ throws DifferenceFoundException */
protected void compareNode ( Node contr... | boolean comparable = compareNodeBasics ( control , test , listener ) ; boolean isDocumentNode = false ; if ( comparable ) { switch ( control . getNodeType ( ) ) { case Node . ELEMENT_NODE : compareElement ( ( Element ) control , ( Element ) test , listener ) ; break ; case Node . CDATA_SECTION_NODE : case Node . TEXT_N... |
public class TagLoop { /** * write out index loop
* @ param adapter
* @ throws TemplateException */
private void writeOutTypeFromTo ( BytecodeContext bc ) throws TransformerException { } } | ForDoubleVisitor forDoubleVisitor = new ForDoubleVisitor ( ) ; loopVisitor = forDoubleVisitor ; GeneratorAdapter adapter = bc . getAdapter ( ) ; // int from = ( int ) @ from ;
int from = adapter . newLocal ( Types . DOUBLE_VALUE ) ; ExpressionUtil . writeOutSilent ( getAttribute ( "from" ) . getValue ( ) , bc , Express... |
public class SharedBufferAccessor { /** * Removes the { @ code SharedBufferNode } , when the ref is decreased to zero , and also
* decrease the ref of the edge on this node .
* @ param node id of the entry
* @ param sharedBufferNode the node body to be removed
* @ throws Exception Thrown if the system cannot ac... | sharedBuffer . removeEntry ( node ) ; EventId eventId = node . getEventId ( ) ; releaseEvent ( eventId ) ; for ( SharedBufferEdge sharedBufferEdge : sharedBufferNode . getEdges ( ) ) { releaseNode ( sharedBufferEdge . getTarget ( ) ) ; } |
public class CodecSearchTree { /** * Search mtas tree .
* @ param position the position
* @ param in the in
* @ param ref the ref
* @ param objectRefApproxOffset the object ref approx offset
* @ return the array list
* @ throws IOException Signals that an I / O exception has occurred . */
public static Arra... | return searchMtasTree ( position , position , in , ref , objectRefApproxOffset ) ; |
public class FileLogOutput { /** * Calculate the padding space currently required and do reservation if required .
* The amount of padding space will either grow ( eg . when we first startup ) or shrink
* ( eg . when the logbuffer increases in size ) ; also , when the log file size changes !
* The only time it is... | if ( trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "calculatePaddingSpaceTarget" , new Object [ ] { Long . valueOf ( PADDING_SPACE_TARGET ) } ) ; long oldTarget ; synchronized ( paddingSpaceLock ) { oldTarget = PADDING_SPACE_TARGET ; // we could take out sector bytes as they are already reserved , but it... |
public class LoadBalancingRxClient { /** * Look up the client associated with this Server .
* @ param host
* @ param port
* @ return */
protected T getOrCreateRxClient ( Server server ) { } } | T client = rxClientCache . get ( server ) ; if ( client != null ) { return client ; } else { client = createRxClient ( server ) ; client . subscribe ( listener ) ; client . subscribe ( eventSubject ) ; T old = rxClientCache . putIfAbsent ( server , client ) ; if ( old != null ) { return old ; } else { return client ; }... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.