signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class FhirTerser { /** * Returns < code > true < / code > if < code > theSource < / code > is in the compartment named < code > theCompartmentName < / code > * belonging to resource < code > theTarget < / code > * @ param theCompartmentName The name of the compartment * @ param theSource The potential memb...
Validate . notBlank ( theCompartmentName , "theCompartmentName must not be null or blank" ) ; Validate . notNull ( theSource , "theSource must not be null" ) ; Validate . notNull ( theTarget , "theTarget must not be null" ) ; Validate . notBlank ( defaultString ( theTarget . getResourceType ( ) ) , "theTarget must have...
public class SliderLayout { /** * start auto cycle . * @ param delay delay time * @ param duration animation duration time . * @ param autoRecover if recover after user touches the slider . */ public void startAutoCycle ( long delay , long duration , boolean autoRecover ) { } }
if ( mCycleTimer != null ) mCycleTimer . cancel ( ) ; if ( mCycleTask != null ) mCycleTask . cancel ( ) ; if ( mResumingTask != null ) mResumingTask . cancel ( ) ; if ( mResumingTimer != null ) mResumingTimer . cancel ( ) ; mSliderDuration = duration ; mCycleTimer = new Timer ( ) ; mAutoRecover = autoRecover ; mCycleTa...
public class JDBCOutputFormat { /** * Configures this JDBCOutputFormat . * @ param parameters * Configuration containing all parameters . */ @ Override public void configure ( Configuration parameters ) { } }
this . driverName = parameters . getString ( DRIVER_KEY , null ) ; this . username = parameters . getString ( USERNAME_KEY , null ) ; this . password = parameters . getString ( PASSWORD_KEY , null ) ; this . dbURL = parameters . getString ( URL_KEY , null ) ; this . query = parameters . getString ( QUERY_KEY , null ) ;...
public class UnionSet { /** * Triggers combining . */ @ Override public Object [ ] toArray ( ) { } }
combine ( ) ; if ( combined == null ) { Set < E > emptySet = java . util . Collections . emptySet ( ) ; return emptySet . toArray ( ) ; } return combined . toArray ( ) ;
public class AuthReplicatedSessionDataFactory { /** * ( non - Javadoc ) * @ see org . jdiameter . common . api . app . IAppSessionDataFactory # getAppSessionData ( java . lang . Class , java . lang . String ) */ @ Override public IAuthSessionData getAppSessionData ( Class < ? extends AppSession > clazz , String sessi...
if ( clazz . equals ( ClientAuthSession . class ) ) { ClientAuthSessionDataReplicatedImpl data = new ClientAuthSessionDataReplicatedImpl ( sessionId , this . mobicentsCluster ) ; return data ; } else if ( clazz . equals ( ServerAuthSession . class ) ) { ServerAuthSessionDataReplicatedImpl data = new ServerAuthSessionDa...
public class ThriftCodecByteCodeGenerator { /** * Define the write method . */ private void defineWriteUnionMethod ( ) { } }
MethodDefinition write = new MethodDefinition ( a ( PUBLIC ) , "write" , null , arg ( "struct" , structType ) , arg ( "protocol" , TProtocol . class ) ) ; classDefinition . addMethod ( write ) ; // TProtocolWriter writer = new TProtocolWriter ( protocol ) ; write . addLocalVariable ( type ( TProtocolWriter . class ) , ...
public class MPCoreUtils { /** * Validates if an url is a valid url address * @ param url url address to validate * @ return */ public static boolean validateUrl ( String url ) { } }
String [ ] schemes = { "https" } ; UrlValidator urlValidator = new UrlValidator ( schemes ) ; return urlValidator . isValid ( url ) ;
public class AnnotatedGenericRowMapper { /** * { @ inheritDoc } */ @ Override public Map < String , ColAttrMapping > getColumnAttributeMappings ( ) { } }
if ( cachedColumnAttributeMappings == null ) { cachedColumnAttributeMappings = new HashMap < > ( ) ; ColumnAttribute [ ] annoMappings = getClass ( ) . getAnnotationsByType ( ColumnAttribute . class ) ; for ( ColumnAttribute colAttr : annoMappings ) { cachedColumnAttributeMappings . put ( colAttr . column ( ) , new ColA...
public class ClassUtility { /** * Extract the last annotation requested found into the class hierarchy . < br / > * Interfaces are not yet supported . * @ param sourceClass the class ( wit its parent classes ) to inspect * @ param annotationClass the annotation to find * @ param < A > the type of the requested ...
A annotation = null ; Class < ? > currentClass = sourceClass ; while ( annotation == null && currentClass != null ) { annotation = currentClass . getAnnotation ( annotationClass ) ; currentClass = currentClass . getSuperclass ( ) ; } return annotation ;
public class Enforcer { /** * deletePermissionForUser deletes a permission for a user or role . * Returns false if the user or role does not have the permission ( aka not affected ) . * @ param user the user . * @ param permission the permission , usually be ( obj , act ) . It is actually the rule without the sub...
List < String > params = new ArrayList < > ( ) ; params . add ( user ) ; Collections . addAll ( params , permission ) ; return removePolicy ( params ) ;
public class LdapConnectionWrapper { /** * Retrieves a list of all groups the user is a member of . * @ param dirContext a DirContext * @ param ldapUser the LdapUser to retrieve group membership for * @ return A list of Strings representing the fully qualified DN of each group * @ throws NamingException if an e...
LOGGER . debug ( "Retrieving groups for: " + ldapUser . getDN ( ) ) ; final List < String > groupDns = new ArrayList < > ( ) ; final String searchFilter = variableSubstitution ( USER_GROUPS_FILTER , ldapUser ) ; final SearchControls sc = new SearchControls ( ) ; sc . setSearchScope ( SearchControls . SUBTREE_SCOPE ) ; ...
public class AWSLambdaAsyncClientFactory { /** * The client returned from a builder . * @ return client object */ @ Refreshable @ Requires ( beans = AWSLambdaConfiguration . class ) AWSLambdaAsync awsLambdaAsyncClient ( ) { } }
AWSLambdaAsyncClientBuilder builder = configuration . getBuilder ( ) ; return builder . build ( ) ;
public class LoggerOnThread { /** * Move the current logfile to a backup name , taking care of any existing * backup files according to the configured limit . */ private void addBackup ( ) { } }
// move the current log file to the newly formatted backup name String newname = this . fileinfo + this . myFormat . format ( new Date ( HttpDispatcher . getApproxTime ( ) ) ) + this . extensioninfo ; File newFile = new File ( newname ) ; renameFile ( this . myFile , newFile ) ; // now see if we need to delete an exist...
public class CompoundMethodChooser { /** * ( non - Javadoc ) * @ see * edu . umd . cs . findbugs . ba . JavaClassAndMethodChooser # choose ( edu . umd . cs . findbugs * . ba . XMethod ) */ @ Override public boolean choose ( XMethod method ) { } }
for ( JavaClassAndMethodChooser chooser : conjunctList ) { if ( ! chooser . choose ( method ) ) { return false ; } } return true ;
public class CodepointHelper { /** * Wrap the string with the specified bidi control * @ param sStr * source string * @ param cChar * source char * @ return The wrapped string */ @ Nullable public static String wrapBidi ( @ Nullable final String sStr , final char cChar ) { } }
switch ( cChar ) { case RLE : return _wrap ( sStr , RLE , PDF ) ; case RLO : return _wrap ( sStr , RLO , PDF ) ; case LRE : return _wrap ( sStr , LRE , PDF ) ; case LRO : return _wrap ( sStr , LRO , PDF ) ; case RLM : return _wrap ( sStr , RLM , RLM ) ; case LRM : return _wrap ( sStr , LRM , LRM ) ; default : return sS...
public class EpicsApi { /** * Get a Pager of all epics of the requested group and its subgroups . * < pre > < code > GitLab Endpoint : GET / groups / : id / epics < / code > < / pre > * @ param groupIdOrPath the group ID , path of the group , or a Group instance holding the group ID or path * @ param authorId ret...
GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "author_id" , authorId ) . withParam ( "labels" , labels ) . withParam ( "order_by" , orderBy ) . withParam ( "sort" , sortOrder ) . withParam ( "search" , search ) ; return ( new Pager < Epic > ( this , Epic . class , itemsPerPage , formData . asMap ( ) , "g...
public class ProviderFactory { /** * Liberty Change for CXF Begin */ public static Object createJsonpProvider ( ) { } }
JsonProvider jsonProvider = AccessController . doPrivileged ( new PrivilegedAction < JsonProvider > ( ) { @ Override public JsonProvider run ( ) { try { Bundle b = FrameworkUtil . getBundle ( ProviderFactory . class ) ; if ( b != null ) { BundleContext bc = b . getBundleContext ( ) ; ServiceReference < JsonProvider > s...
public class FXBindableASTTransformation { /** * Generates a SyntaxErrorMessage based on the current SourceUnit , AnnotationNode , and a specified * error message . * @ param sourceUnit The SourceUnit * @ param node The node that was annotated * @ param msg The error message to display */ private void generateS...
SyntaxException error = new SyntaxException ( msg , node . getLineNumber ( ) , node . getColumnNumber ( ) ) ; sourceUnit . getErrorCollector ( ) . addErrorAndContinue ( new SyntaxErrorMessage ( error , sourceUnit ) ) ;
public class DDUtil { /** * Matches the original getVerticalDropLocation ( Element , int , int , double ) method . < p > */ private static VerticalDropLocation internalGetVerticalDropLocation ( Element element , int offsetHeight , int clientY , double topBottomRatio ) { } }
// Event coordinates are relative to the viewport , element absolute // position is relative to the document . Make element position relative // to viewport by adjusting for viewport scrolling . See # 6021 int elementTop = element . getAbsoluteTop ( ) - Window . getScrollTop ( ) ; int fromTop = clientY - elementTop ; f...
public class WVideo { /** * Sets the alternative text to display when the video clip can not be played . * @ param altText the text to set . */ public void setAltText ( final String altText ) { } }
String currAltText = getAltText ( ) ; if ( ! Objects . equals ( altText , currAltText ) ) { getOrCreateComponentModel ( ) . altText = altText ; }
public class LogoutUserRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( LogoutUserRequest logoutUserRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( logoutUserRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( logoutUserRequest . getAccountId ( ) , ACCOUNTID_BINDING ) ; protocolMarshaller . marshall ( logoutUserRequest . getUserId ( ) , USERID_BINDING ) ; } catch ( Exception...
public class BinaryString { /** * Returns whether this contains ` substring ` or not . * Same to like ' % substring % ' . */ public boolean contains ( final BinaryString substring ) { } }
ensureMaterialized ( ) ; substring . ensureMaterialized ( ) ; if ( substring . sizeInBytes == 0 ) { return true ; } int find = SegmentsUtil . find ( segments , offset , sizeInBytes , substring . segments , substring . offset , substring . sizeInBytes ) ; return find != - 1 ;
public class FacetCheckBoxWidget { /** * TODO : This is an eyesore , Natxo needs to clean this */ @ Override public HandlerRegistration addChangeHandler ( final ChangeHandler changeHandler ) { } }
ValueChangeHandler valueChangeHandler = new ValueChangeHandler ( ) { @ Override public void onValueChange ( ValueChangeEvent valueChangeEvent ) { changeHandler . onChange ( null ) ; } } ; for ( CheckBox checkBox : checkBoxes ) { checkBox . addValueChangeHandler ( valueChangeHandler ) ; } return null ;
public class LogAnalyticsInner { /** * Export logs that show total throttled Api requests for this subscription in the given time window . * @ param location The location upon which virtual - machine - sizes is queried . * @ param parameters Parameters supplied to the LogAnalytics getThrottledRequests Api . * @ t...
return beginExportThrottledRequestsWithServiceResponseAsync ( location , parameters ) . map ( new Func1 < ServiceResponse < LogAnalyticsOperationResultInner > , LogAnalyticsOperationResultInner > ( ) { @ Override public LogAnalyticsOperationResultInner call ( ServiceResponse < LogAnalyticsOperationResultInner > respons...
public class BeanUtils { /** * 将一个Bean的数据装换到另外一个 ( 需实现setter和getter , 以及一个默认无参构造函数 ) * @ param object 一个Bean * @ param clazz 另外一个Bean * @ param < T > 另外Bean类型 * @ return { @ link T } * @ throws InstantiationException 异常 * @ throws IllegalAccessException 异常 * @ throws InvocationTargetException 异常 * @ sin...
return bean2Another ( object , clazz , clazz . newInstance ( ) ) ;
public class Firmata { /** * Send a series of raw bytes over the serial port to a Firmata supported device . * @ param rawBytes byte array to be sent over the SerialPort OutputStream . * @ return True if the bytes were sent . False if the bytes were not sent . */ public synchronized Boolean sendRaw ( byte ... rawBy...
if ( ! start ( ) ) { log . error ( "Firmata library is not connected / started! Cannot send bytes {}" , FirmataHelper . bytesToHexString ( rawBytes ) ) ; return false ; } try { serialPort . getOutputStream ( ) . write ( rawBytes ) ; return true ; } catch ( IOException e ) { log . error ( "Unable to transmit raw bytes t...
public class MethodSimulator { /** * Merges a stored element to the local variables . * @ param index The index of the variable * @ param type The type of the variable or the element ( whatever is more specific ) * @ param element The element to merge */ private void mergeElementStore ( final int index , final St...
// new element must be created for immutability final String elementType = type . equals ( Types . OBJECT ) ? determineLeastSpecificType ( element . getTypes ( ) . toArray ( new String [ element . getTypes ( ) . size ( ) ] ) ) : type ; final Element created = new Element ( elementType ) ; created . merge ( element ) ; ...
public class EnvUtil { /** * Fix path on Windows machines , i . e . convert ' c : \ . . . \ ' to ' / c / . . . . / ' * @ param path path to fix * @ return the fixed path */ public static String fixupPath ( String path ) { } }
// Hack - fix for mounting on Windows where the $ { projectDir } variable and other // contain backslashes and what not . Related to # 188 Pattern pattern = Pattern . compile ( "^(?i)([A-Z]):(.*)$" ) ; Matcher matcher = pattern . matcher ( path ) ; if ( matcher . matches ( ) ) { String result = "/" + matcher . group ( ...
public class BinarySimpleHeap { /** * swap data in node n with data in node m * @ param n index of the node containing a data * @ param m index of the node containing a data */ private void swap ( int n , int m ) { } }
int eM = elements [ m ] ; int eN = elements [ n ] ; elements [ m ] = eN ; elements [ n ] = eM ; positions [ eM ] = n ; positions [ eN ] = m ;
public class ImageSubsamplingImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public void eUnset ( int featureID ) { } }
switch ( featureID ) { case AfplibPackage . IMAGE_SUBSAMPLING__SDFS : getSdfs ( ) . clear ( ) ; return ; } super . eUnset ( featureID ) ;
public class GcloudArgs { /** * Returns { @ code [ - - name , value ] } or { @ code [ ] } if value is null . */ public static List < String > get ( String name , @ Nullable String value ) { } }
return Args . string ( name , value ) ;
public class KernelResolverRepository { /** * Checks whether { @ code featureList } contains a feature with the same name and version as { @ code feature } . * @ param featureList the list of features * @ param feature the feature * @ return { @ code true } if { @ code featureList } contains a feature with the sa...
for ( ProvisioningFeatureDefinition f : featureList ) { if ( hasSameSymbolicNameAndVersion ( feature , f ) ) { return true ; } } return false ;
public class CmsBasicDialog { /** * Initializes the dialog window . < p > * @ param width the dialog width * @ return the window to be used by dialogs */ public static Window prepareWindow ( DialogWidth width ) { } }
Window window = new Window ( ) ; window . setModal ( true ) ; window . setClosable ( true ) ; int pageWidth = Page . getCurrent ( ) . getBrowserWindowWidth ( ) ; if ( ( ( width == DialogWidth . wide ) && ( pageWidth < 810 ) ) || ( ( width == DialogWidth . narrow ) && ( pageWidth < 610 ) ) ) { // in case the available p...
public class Quaterniond { /** * / * ( non - Javadoc ) * @ see org . joml . Quaterniondc # integrate ( double , double , double , double , org . joml . Quaterniond ) */ public Quaterniond integrate ( double dt , double vx , double vy , double vz , Quaterniond dest ) { } }
double thetaX = dt * vx * 0.5 ; double thetaY = dt * vy * 0.5 ; double thetaZ = dt * vz * 0.5 ; double thetaMagSq = thetaX * thetaX + thetaY * thetaY + thetaZ * thetaZ ; double s ; double dqX , dqY , dqZ , dqW ; if ( thetaMagSq * thetaMagSq / 24.0 < 1E-8 ) { dqW = 1.0 - thetaMagSq * 0.5 ; s = 1.0 - thetaMagSq / 6.0 ; }...
public class PortletCachingHeaderUtils { /** * Set the Last - Modified , CacheControl , and Expires headers based on the maxAge , publicScope and * lastModified . * @ param maxAge Maximum age for the content , follows the portlet rules ( - 1 cache forever , 0 * cache never , N cache seconds ) * @ param publicSc...
if ( maxAge != 0 ) { portletResourceOutputHandler . setDateHeader ( "Last-Modified" , lastModified ) ; if ( publicScope ) { portletResourceOutputHandler . setHeader ( "CacheControl" , "public" ) ; } else { portletResourceOutputHandler . setHeader ( "CacheControl" , "private" ) ; } if ( maxAge < 0 ) { // If caching " fo...
public class Traverson { /** * Iterates over pages by following ' next ' links . For every page , a { @ code Traverson } is created and provided as a * parameter to the callback function . * < pre > * next * . . . - - & gt ; HalRepresentation - - & gt ; HalRepresentation * v N item v N item * & lt ; embedde...
paginateAs ( "next" , HalRepresentation . class , embeddedTypeInfo , pageHandler ) ;
public class WaveTypeBase { /** * Return the required method parameter list to handle this WaveType . * @ return the parameter list ( Type1 arg1 , Type2 arg2 . . . ) */ public String getItems ( ) { } }
final StringBuilder sb = new StringBuilder ( ) ; boolean first = true ; for ( final WaveItem < ? > waveItem : items ( ) ) { if ( first ) { first = false ; } else { sb . append ( ", " ) ; } String fullName = waveItem . type ( ) instanceof ParameterizedType ? ( ( ParameterizedType ) waveItem . type ( ) ) . toString ( ) :...
public class JsonBuiltin { /** * - - - IMPLEMENTED PARSER METHODS - - - */ @ Override public Object parse ( String source ) throws Exception { } }
Source s = sources . poll ( ) ; final char [ ] chars = source . toCharArray ( ) ; if ( s == null ) { s = new Source ( chars ) ; } else { s . set ( chars ) ; } final Object result = parseNext ( s ) ; if ( sources . size ( ) > Config . POOL_SIZE ) { return result ; } sources . add ( s ) ; return result ;
public class HomographyInducedStereoLinePt { /** * Specify the fundamental matrix and the camera 2 epipole . * @ param F Fundamental matrix . * @ param e2 Epipole for camera 2 . If null it will be computed internally . */ public void setFundamental ( DMatrixRMaj F , Point3D_F64 e2 ) { } }
this . F = F ; if ( e2 != null ) this . e2 . set ( e2 ) ; else { MultiViewOps . extractEpipoles ( F , new Point3D_F64 ( ) , this . e2 ) ; }
public class ChainWriter { /** * @ see TextInXhtmlEncoder * @ param value the value to be encoded */ public ChainWriter encodeXhtml ( Object value ) throws IOException { } }
if ( value != null ) { if ( value instanceof Writable && ! ( ( Writable ) value ) . isFastToString ( ) ) { // Avoid unnecessary toString calls Coercion . write ( value , textInXhtmlEncoder , out ) ; } else { String str = Coercion . toString ( value ) ; BundleLookupMarkup lookupMarkup ; BundleLookupThreadContext threadC...
public class AzureAsyncOperationPollStrategy { /** * Try to create a new AzureAsyncOperationPollStrategy object that will poll the provided * operation resource URL . If the provided HttpResponse doesn ' t have an Azure - AsyncOperation * header or if the header is empty , then null will be returned . * @ param r...
String urlHeader = getHeader ( httpResponse ) ; URL azureAsyncOperationUrl = null ; if ( urlHeader != null ) { try { azureAsyncOperationUrl = new URL ( urlHeader ) ; } catch ( MalformedURLException ignored ) { } } urlHeader = httpResponse . headerValue ( "Location" ) ; URL locationUrl = null ; if ( urlHeader != null ) ...
public class Matrix3D { /** * Invert this matrix . * @ return true if successful */ @ Override public boolean invert ( ) { } }
double determinant = determinant ( ) ; if ( determinant == 0 ) { return false ; } // first row double t00 = determinant3x3 ( m11 , m12 , m13 , m21 , m22 , m23 , m31 , m32 , m33 ) ; double t01 = - determinant3x3 ( m10 , m12 , m13 , m20 , m22 , m23 , m30 , m32 , m33 ) ; double t02 = determinant3x3 ( m10 , m11 , m13 , m20...
public class MetadataStore { /** * convert Object to String depending on key . * StoreRepository takes only StorageEngine < ByteArray , byte [ ] > and for * persistence on disk we need to convert them to String . < br > * @ param key * @ param value * @ return */ private Versioned < Object > convertStringToOb...
Object valueObject = null ; if ( CLUSTER_KEY . equals ( key ) ) { valueObject = clusterMapper . readCluster ( new StringReader ( value . getValue ( ) ) ) ; } else if ( STORES_KEY . equals ( key ) ) { valueObject = storeMapper . readStoreList ( new StringReader ( value . getValue ( ) ) ) ; } else if ( SERVER_STATE_KEY ....
public class MapUtils { /** * Gets the union of the { @ code keySet ( ) } s of all provided { @ link Maps } s . */ public static < K , V > ImmutableSet < K > allKeys ( final Iterable < ? extends Map < K , V > > maps ) { } }
final ImmutableSet . Builder < K > builder = ImmutableSet . builder ( ) ; for ( final Map < K , V > map : maps ) { builder . addAll ( map . keySet ( ) ) ; } return builder . build ( ) ;
public class HookedXADataSource { @ Override public XAConnection getXAConnection ( ) throws SQLException { } }
final XAConnection xaconn = super . getXAConnection ( ) ; if ( newbornConnectionHook != null ) { newbornConnectionHook . hook ( xaconn ) ; } return xaconn ;
public class VcfUtils { /** * Create a VCFHeader to use with VariantContextWriter . * @ param cohortNames List of cohort names * @ param annotations List of annotations to include in the header * @ param formatFields List of formats * @ param formatFieldsType List of format types * @ param formatFieldsDescr L...
LinkedHashSet < VCFHeaderLine > meta = new LinkedHashSet < > ( ) ; // sample name management AtomicReference < Function < String , String > > sampleNameConverter = new AtomicReference < > ( s -> s ) ; if ( converter != null ) { sampleNameConverter . set ( converter ) ; } Map < String , String > sampleNameMapping = new ...
public class HivePurgerQueryTemplate { /** * If staging table doesn ' t exist , it will create a staging table . */ public static String getCreateTableQuery ( String completeNewTableName , String likeTableDbName , String likeTableName , String location ) { } }
return getCreateTableQuery ( completeNewTableName , likeTableDbName , likeTableName ) + " LOCATION " + PartitionUtils . getQuotedString ( location ) ;
public class JobsImpl { /** * Adds a job to the specified account . * The Batch service supports two ways to control the work done as part of a job . In the first approach , the user specifies a Job Manager task . The Batch service launches this task when it is ready to start the job . The Job Manager task controls a...
return ServiceFuture . fromHeaderResponse ( addWithServiceResponseAsync ( job ) , serviceCallback ) ;
public class DeleteTransitGatewayRouteTableRequest { /** * This method is intended for internal use only . Returns the marshaled request configured with additional * parameters to enable operation dry - run . */ @ Override public Request < DeleteTransitGatewayRouteTableRequest > getDryRunRequest ( ) { } }
Request < DeleteTransitGatewayRouteTableRequest > request = new DeleteTransitGatewayRouteTableRequestMarshaller ( ) . marshall ( this ) ; request . addParameter ( "DryRun" , Boolean . toString ( true ) ) ; return request ;
public class OffsetTime { /** * Obtains an instance of { @ code OffsetTime } from a temporal object . * This obtains an offset time based on the specified temporal . * A { @ code TemporalAccessor } represents an arbitrary set of date and time information , * which this factory converts to an instance of { @ code ...
if ( temporal instanceof OffsetTime ) { return ( OffsetTime ) temporal ; } try { LocalTime time = LocalTime . from ( temporal ) ; ZoneOffset offset = ZoneOffset . from ( temporal ) ; return new OffsetTime ( time , offset ) ; } catch ( DateTimeException ex ) { throw new DateTimeException ( "Unable to obtain OffsetTime f...
public class AsyncWork { /** * Call onready on success , or forward error / cancellation to onErrorAndCancel . */ public final void listenInline ( Listener < T > onready , ISynchronizationPoint < TError > onErrorAndCancel ) { } }
listenInline ( new AsyncWorkListener < T , TError > ( ) { @ Override public void ready ( T result ) { onready . fire ( result ) ; } @ Override public void error ( TError error ) { onErrorAndCancel . error ( error ) ; } @ Override public void cancelled ( CancelException event ) { onErrorAndCancel . cancel ( event ) ; } ...
public class HTMLReporter { /** * Create the index file that sets up the frameset . * @ param outputDirectory The target directory for the generated file ( s ) . */ private void createFrameset ( File outputDirectory ) throws Exception { } }
VelocityContext context = createContext ( ) ; generateFile ( new File ( outputDirectory , INDEX_FILE ) , INDEX_FILE + TEMPLATE_EXTENSION , context ) ;
public class LongArray { /** * Sets the value at position { @ code index } . */ public void set ( int index , long value ) { } }
assert index >= 0 : "index (" + index + ") should >= 0" ; assert index < length : "index (" + index + ") should < length (" + length + ")" ; Platform . putLong ( baseObj , baseOffset + index * WIDTH , value ) ;
public class IndexedSet { /** * Gets a subset of objects with the specified field value . If there is no object with the * specified field value , a newly created empty set is returned . * @ param indexDefinition the field index definition * @ param value the field value to be satisfied * @ param < V > the fiel...
FieldIndex < T , V > index = ( FieldIndex < T , V > ) mIndices . get ( indexDefinition ) ; if ( index == null ) { throw new IllegalStateException ( "the given index isn't defined for this IndexedSet" ) ; } return index . getByField ( value ) ;
public class TransformerHandlerImpl { /** * Filter a start element event . * @ param uri The element ' s Namespace URI , or the empty string . * @ param localName The element ' s local name , or the empty string . * @ param qName The element ' s qualified ( prefixed ) name , or the empty * string . * @ param ...
if ( DEBUG ) System . out . println ( "TransformerHandlerImpl#startElement: " + qName ) ; if ( m_contentHandler != null ) { m_contentHandler . startElement ( uri , localName , qName , atts ) ; }
public class ConnectorProperties { /** * override the Vector add method to not add duplicate entries . That is , entries with the same name . */ @ Override public boolean add ( Object o ) { } }
ConnectorProperty connectorPropertyToAdd = ( ConnectorProperty ) o ; String nameToAdd = connectorPropertyToAdd . getName ( ) ; ConnectorProperty connectorProperty = null ; String name = null ; Enumeration < Object > e = this . elements ( ) ; while ( e . hasMoreElements ( ) ) { connectorProperty = ( ConnectorProperty ) ...
public class LightWeightLinkedSet { /** * Remove and return first element on the linked list of all elements . * @ return first element */ public T pollFirst ( ) { } }
if ( head == null ) { return null ; } T first = head . element ; this . remove ( first ) ; return first ;
public class Portfolio { /** * This method returns the value random variable of the product within the specified model , evaluated at a given evalutationTime . * Note : For a lattice this is often the value conditional to evalutationTime , for a Monte - Carlo simulation this is the ( sum of ) value discounted to eval...
RandomVariable values = new RandomVariableFromDoubleArray ( 0.0 ) ; for ( int productIndex = 0 ; productIndex < products . length ; productIndex ++ ) { RandomVariable valueOfProduct = products [ productIndex ] . getValue ( evaluationTime , model ) ; double weightOfProduct = weights [ productIndex ] ; values = values . ...
public class MessageRetriever { /** * Get and format message string from resource * @ param key selects message from resource * @ param args arguments to be replaced in the message . * @ throws MissingResourceException when the key does not * exist in the properties file . */ public String getText ( String key ...
ResourceBundle bundle = initRB ( ) ; String message = bundle . getString ( key ) ; return MessageFormat . format ( message , args ) ;
public class DeleteFleetRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( DeleteFleetRequest deleteFleetRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( deleteFleetRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deleteFleetRequest . getFleetId ( ) , FLEETID_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMes...
public class CachingXmlDataStore { /** * Tries to read the content of specified cache file and returns them as fallback data store . If the cache file * contains unexpected data the given fallback data store will be returned instead . * @ param reader * data reader to read the given { @ code dataUrl } * @ param...
DataStore fallbackDataStore ; if ( ! isEmpty ( cacheFile , charset ) ) { final URL cacheFileUrl = UrlUtil . toUrl ( cacheFile ) ; try { fallbackDataStore = new CacheFileDataStore ( reader . read ( cacheFileUrl , charset ) , reader , cacheFileUrl , charset ) ; LOG . debug ( MSG_CACHE_FILE_IS_FILLED ) ; } catch ( final R...
public class SCM { /** * Obtains a fresh workspace of the module ( s ) into the specified directory * of the specified machine . * The " update " operation can be performed instead of a fresh checkout if * feasible . * This operation should also capture the information necessary to tag the workspace later . *...
if ( build instanceof AbstractBuild && listener instanceof BuildListener && Util . isOverridden ( SCM . class , getClass ( ) , "checkout" , AbstractBuild . class , Launcher . class , FilePath . class , BuildListener . class , File . class ) ) { if ( changelogFile == null ) { changelogFile = File . createTempFile ( "cha...
public class Matth { /** * Returns the difference of { @ code a } and { @ code b } , provided it does not overflow . * @ throws ArithmeticException if { @ code a - b } overflows in signed { @ code long } arithmetic */ public static long subtractExact ( long a , long b ) { } }
long result = a - b ; checkNoOverflow ( ( a ^ b ) >= 0 | ( a ^ result ) >= 0 ) ; return result ;
public class MySqlCommunication { /** * Restores table content . * @ param tableName table to be restored * @ param tempTableName temporary table name * @ throws SQLException for any issue */ public void restoreTable ( String tableName , String tempTableName ) throws SQLException { } }
LOG . debug ( "Restore table {} from {}" , tableName , tempTableName ) ; try { this . setForeignKeyCheckEnabled ( false ) ; this . truncateTable ( tableName ) ; final String sql = "INSERT INTO " + tableName + " SELECT * FROM " + tempTableName + ";" ; this . executeUpdate ( sql ) ; } finally { this . setForeignKeyCheckE...
public class TaskManagerService { /** * and ( 2 ) enough time has passed since its last execution that it ' s time to run . */ private boolean taskShouldExecute ( Task task , TaskRecord taskRecord ) { } }
String taskID = taskRecord . getTaskID ( ) ; if ( taskRecord . getStatus ( ) == TaskStatus . NEVER_EXECUTED ) { m_logger . debug ( "Task '{}' has never executed" , taskID ) ; return true ; } if ( taskRecord . getStatus ( ) == TaskStatus . IN_PROGRESS ) { m_logger . debug ( "Task '{}' is already being executed" , taskID...
public class SrvI18n { /** * < p > Add message bundles by given language / country names . < / p > * @ param pLangCountries array of language / country names , * e . g . [ " en " , " US " , " ru " , " RU " ] */ public final void add ( final String [ ] pLangCountries ) { } }
if ( pLangCountries != null && pLangCountries . length % 2 == 0 ) { for ( int i = 0 ; i < pLangCountries . length / 2 ; i ++ ) { Locale locale = new Locale ( pLangCountries [ i * 2 ] , pLangCountries [ i * 2 + 1 ] ) ; if ( ! ( messages != null && locale . equals ( Locale . getDefault ( ) ) ) ) { ResourceBundle msgs = n...
public class XmRequestContextInterceptor { /** * { @ inheritDoc } */ @ Override public void afterCompletion ( HttpServletRequest request , HttpServletResponse response , Object handler , Exception ex ) { } }
LOGGER . debug ( "Destroy XM request context" ) ; getXmPrivilegedRequestContext ( ) . destroyCurrentContext ( ) ;
public class HFCACertificateRequest { /** * Get certificates that have been revoked before this date * @ param revokedEnd Revoked before date * @ throws InvalidArgumentException Date can ' t be null */ public void setRevokedEnd ( Date revokedEnd ) throws InvalidArgumentException { } }
if ( revokedEnd == null ) { throw new InvalidArgumentException ( "Date can't be null" ) ; } queryParms . put ( "revoked_end" , Util . dateToString ( revokedEnd ) ) ;
public class CoreService { /** * Start server . */ private void startServer ( ) { } }
if ( mServer . isRunning ( ) ) { String hostAddress = mServer . getInetAddress ( ) . getHostAddress ( ) ; ServerManager . onServerStart ( CoreService . this , hostAddress ) ; } else { mServer . startup ( ) ; }
public class Assembly { /** * Adds a file to your assembly . If the field name specified already exists , it will override the content of the * existing name . * @ param file { @ link File } the file to be uploaded . * @ param name { @ link String } the field name of the file when submitted Transloadit . */ publi...
files . put ( name , file ) ; // remove duplicate key if ( fileStreams . containsKey ( name ) ) { fileStreams . remove ( name ) ; }
public class GradientEditor { /** * Add a new control point */ private void addPoint ( ) { } }
ControlPoint point = new ControlPoint ( Color . white , 0.5f ) ; for ( int i = 0 ; i < list . size ( ) - 1 ; i ++ ) { ControlPoint now = ( ControlPoint ) list . get ( i ) ; ControlPoint next = ( ControlPoint ) list . get ( i + 1 ) ; if ( ( now . pos <= 0.5f ) && ( next . pos >= 0.5f ) ) { list . add ( i + 1 , point ) ;...
public class ReviewsImpl { /** * The reviews created would show up for Reviewers on your team . As Reviewers complete reviewing , results of the Review would be POSTED ( i . e . HTTP POST ) on the specified CallBackEndpoint . * & lt ; h3 & gt ; CallBack Schemas & lt ; / h3 & gt ; * & lt ; h4 & gt ; Review Completio...
return createVideoReviewsWithServiceResponseAsync ( teamName , contentType , createVideoReviewsBody , createVideoReviewsOptionalParameter ) . map ( new Func1 < ServiceResponse < List < String > > , List < String > > ( ) { @ Override public List < String > call ( ServiceResponse < List < String > > response ) { return r...
public class CPRulePersistenceImpl { /** * Returns a range of all the cp rules where groupId = & # 63 ; . * 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 set ...
return findByGroupId ( groupId , start , end , null ) ;
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link AttributesReferenceType } { @ code > } } */ @ XmlElementDecl ( namespace = "urn:oasis:names:tc:xacml:3.0:core:schema:wd-17" , name = "AttributesReference" ) public JAXBElement < AttributesReferenceType > createAttribut...
return new JAXBElement < AttributesReferenceType > ( _AttributesReference_QNAME , AttributesReferenceType . class , null , value ) ;
public class RegExp { /** * Builds a regular expression equivalent to the union of several * ( possibly more than 2 ) terms . In the normal case , this method * applies the binary < code > Union < / code > constructor repeatedly . * If the set of terms contains a single distinct term , the * method returns that...
if ( unionTerms . isEmpty ( ) ) return new None < A > ( ) ; Iterator < RegExp < A > > it = unionTerms . iterator ( ) ; RegExp < A > re = it . next ( ) ; while ( it . hasNext ( ) ) { re = new Union < A > ( re , it . next ( ) ) ; } return re ;
public class BaseRecordOwner { /** * Get the main record for this screen . * @ return The main record ( or null if none ) . */ public Record getMainRecord ( ) { } }
Record record = null ; if ( m_vRecordList != null ) record = m_vRecordList . getMainRecord ( ) ; if ( record == null ) if ( m_taskParent instanceof RecordOwner ) record = ( Record ) ( ( RecordOwner ) m_taskParent ) . getMainRecord ( ) ; // Look thru the parent window now return record ;
public class Scope { /** * 设置全局变量 * 全局作用域是指本次请求的整个 template */ public void setGlobal ( Object key , Object value ) { } }
for ( Scope cur = this ; true ; cur = cur . parent ) { if ( cur . parent == null ) { cur . data . put ( key , value ) ; return ; } }
public class OptionsParamCheckForUpdates { /** * Sets whether or not the " check for updates on start up " is enabled . * @ param checkOnStart { @ code true } if the " check for updates on start up " should be enabled , { @ code false } otherwise . */ public void setCheckOnStart ( boolean checkOnStart ) { } }
this . checkOnStart = checkOnStart ; getConfig ( ) . setProperty ( CHECK_ON_START , checkOnStart ) ; if ( dayLastChecked . length ( ) == 0 ) { dayLastChecked = "Never" ; getConfig ( ) . setProperty ( DAY_LAST_CHECKED , dayLastChecked ) ; }
public class ResourceLoader { /** * Loads a resource as { @ link BufferedReader } . * @ param resource * The resource to be loaded . * @ param encoding * The encoding to use * @ return The reader */ public static BufferedReader getBufferedReader ( final File resource , final String encoding ) throws IOExcepti...
return new BufferedReader ( getInputStreamReader ( resource , encoding ) ) ;
public class Solo { /** * Scrolls a ListView matching the specified index to the bottom . * @ param index the index of the { @ link ListView } to scroll . { @ code 0 } if only one list is available * @ return { @ code true } if more scrolling can be performed */ public boolean scrollListToBottom ( int index ) { } }
if ( config . commandLogging ) { Log . d ( config . commandLoggingTag , "scrollListToBottom(" + index + ")" ) ; } return scroller . scrollList ( waiter . waitForAndGetView ( index , ListView . class ) , Scroller . DOWN , true ) ;
public class PathDescriptorVariableConstraint { /** * Factory method . Tries to split the string of the form < code > x [ = y ] < / code > * where " x " is the constraint type and " y " is the constraint value . All * possible constraint types are located in * { @ link EPathDescriptorVariableConstraintType } . If...
final String sRealValue = StringHelper . trim ( sConstraint ) ; if ( StringHelper . hasNoText ( sRealValue ) ) { LOGGER . warn ( "Empty path descriptor variable constraint is ignored!" ) ; return null ; } // Split in type and value final ICommonsList < String > aParts = StringHelper . getExploded ( '=' , sConstraint , ...
public class LocalDoTask { /** * The main method . * @ param args * the arguments */ public static void main ( String [ ] args ) { } }
// ArrayList < String > tmpArgs = new ArrayList < String > ( Arrays . asList ( args ) ) ; // args = tmpArgs . toArray ( new String [ 0 ] ) ; FlagOption suppressStatusOutOpt = new FlagOption ( "suppressStatusOut" , 'S' , SUPPRESS_STATUS_OUT_MSG ) ; FlagOption suppressResultOutOpt = new FlagOption ( "suppressResultOut" ,...
public class S3RestServiceHandler { /** * TODO ( cc ) : Support automatic abortion after a timeout . */ private void abortMultipartUpload ( String bucket , String object , long uploadId ) throws S3Exception { } }
String bucketPath = parseBucketPath ( AlluxioURI . SEPARATOR + bucket ) ; checkBucketIsAlluxioDirectory ( bucketPath ) ; String objectPath = bucketPath + AlluxioURI . SEPARATOR + object ; AlluxioURI multipartTemporaryDir = new AlluxioURI ( S3RestUtils . getMultipartTemporaryDirForObject ( bucketPath , object ) ) ; chec...
public class XMPPTCPConnection { /** * Add a new Stanza ID acknowledged listener for the given ID . * The listener will be invoked if the stanza with the given ID was acknowledged by the server . It will * automatically be removed after the listener was run . * @ param id the stanza ID . * @ param listener the ...
// Prevent users from adding callbacks that will never get removed if ( ! smWasEnabledAtLeastOnce ) { throw new StreamManagementException . StreamManagementNotEnabledException ( ) ; } // Remove the listener after max . 3 hours final int removeAfterSeconds = Math . min ( getMaxSmResumptionTime ( ) , 3 * 60 * 60 ) ; sche...
public class RippleDrawableICS { /** * Attempts to start an exit animation for the active hotspot . Fails if there is no active * hotspot . */ private void tryRippleExit ( ) { } }
if ( mRipple != null ) { if ( mExitingRipples == null ) { mExitingRipples = new RippleForeground [ MAX_RIPPLES ] ; } mExitingRipples [ mExitingRipplesCount ++ ] = mRipple ; mRipple . exit ( ) ; mRipple = null ; }
public class Matrix4x3f { /** * Pre - multiply a rotation around the Z axis to this matrix by rotating the given amount of radians * about the Z axis and store the result in < code > dest < / code > . * When used with a right - handed coordinate system , the produced rotation will rotate a vector * counter - cloc...
float sin = ( float ) Math . sin ( ang ) ; float cos = ( float ) Math . cosFromSin ( sin , ang ) ; float nm00 = cos * m00 - sin * m01 ; float nm01 = sin * m00 + cos * m01 ; float nm10 = cos * m10 - sin * m11 ; float nm11 = sin * m10 + cos * m11 ; float nm20 = cos * m20 - sin * m21 ; float nm21 = sin * m20 + cos * m21 ;...
public class RDBMServices { /** * Releases database connection . Unlike the underlying connection . close ( ) , this method does not * throw SQLException or any other exception . It will fail silently from the perspective of * calling code , logging errors using Commons Logging . * @ param con a database Connecti...
// If we had failed allocating the connection , insure we don ' t try to count it or close it . // UP - 4446 if ( con != null ) { try { activeConnections . decrementAndGet ( ) ; con . close ( ) ; } catch ( Exception e ) { if ( LOG . isWarnEnabled ( ) ) LOG . warn ( "Error closing Connection: " + con , e ) ; } }
public class CloudFormationSample { /** * Convert a stream into a single , newline separated string */ public static String convertStreamToString ( InputStream in ) throws Exception { } }
BufferedReader reader = new BufferedReader ( new InputStreamReader ( in ) ) ; StringBuilder stringbuilder = new StringBuilder ( ) ; String line = null ; while ( ( line = reader . readLine ( ) ) != null ) { stringbuilder . append ( line + "\n" ) ; } in . close ( ) ; return stringbuilder . toString ( ) ;
public class AbstractEvaluatorToPartitionStrategy { /** * Get an input split to be assigned to this evaluator . * Allocates one if its not already allocated * @ param evaluatorId * @ return a numberedSplit * @ throws RuntimeException * if couldn ' t find any split */ @ Override public NumberedSplit < InputSpl...
synchronized ( evaluatorToSplits ) { if ( evaluatorToSplits . containsKey ( evaluatorId ) ) { LOG . log ( Level . FINE , "Found an already allocated split, {0}" , evaluatorToSplits . toString ( ) ) ; return evaluatorToSplits . get ( evaluatorId ) ; } } // always first try to allocate based on the hostName final String ...
public class MultiException { /** * Throw a MultiException . * If this multi exception is empty then no action is taken . If it * contains a single exception that is thrown , otherwise the this * multi exception is thrown . * @ exception Exception the Error or Exception if nested is 1 , or the * MultiExceptio...
if ( nested == null || nested . isEmpty ( ) ) { return ; } if ( nested . size ( ) == 1 ) { Throwable th = nested . get ( 0 ) ; if ( th instanceof Error ) { throw ( Error ) th ; } if ( th instanceof Exception ) { throw ( Exception ) th ; } } throw this ;
public class PrettyTime { /** * / * [ deutsch ] * < p > Formatiert die gesamte angegebene Dauer . < / p > * < p > Eine lokalisierte Ausgabe ist nur f & uuml ; r die Zeiteinheiten * { @ link CalendarUnit # YEARS } , { @ link CalendarUnit # MONTHS } , * { @ link CalendarUnit # WEEKS } , { @ link CalendarUnit # DA...
return this . print ( duration , width , false , Integer . MAX_VALUE ) ;
public class DockerUtils { /** * Builds a container name . * @ param scopedInstancePath a scoped instance path * @ param applicationName an application name * @ return a non - null string */ public static String buildContainerNameFrom ( String scopedInstancePath , String applicationName ) { } }
String containerName = scopedInstancePath + "_from_" + applicationName ; containerName = containerName . replaceFirst ( "^/" , "" ) . replace ( "/" , "-" ) . replaceAll ( "\\s+" , "_" ) ; // Prevent container names from being too long ( see # 480) if ( containerName . length ( ) > 61 ) containerName = containerName . s...
public class ZoomerCompat { /** * Computes the current zoom level , returning true if the zoom is still active and false if the zoom has finished . * @ see android . widget . Scroller # computeScrollOffset ( ) */ public boolean computeZoom ( ) { } }
if ( mFinished ) { return false ; } long tRTC = SystemClock . elapsedRealtime ( ) - mStartRTC ; if ( tRTC >= mAnimationDurationMillis ) { mFinished = true ; mCurrentZoom = mEndZoom ; return false ; } float t = tRTC * 1f / mAnimationDurationMillis ; mCurrentZoom = mEndZoom * mInterpolator . getInterpolation ( t ) ; retu...
public class CmsListManager { /** * Unlocks the current resource in case it has been locked by previous actions . < p > */ void unlockCurrent ( ) { } }
if ( m_currentResource != null ) { if ( ( m_lockAction != null ) && m_lockAction . getChange ( ) . equals ( LockChange . locked ) ) { CmsLockUtil . tryUnlock ( A_CmsUI . getCmsObject ( ) , m_currentResource ) ; } } m_lockAction = null ;
public class TapConnectionProvider { /** * Add a connection observer . * If connections are already established , your observer will be called with * the address and - 1. * @ param obs the ConnectionObserver you wish to add * @ return true if the observer was added . */ public boolean addObserver ( ConnectionOb...
boolean rv = conn . addObserver ( obs ) ; if ( rv ) { for ( MemcachedNode node : conn . getLocator ( ) . getAll ( ) ) { if ( node . isActive ( ) ) { obs . connectionEstablished ( node . getSocketAddress ( ) , - 1 ) ; } } } return rv ;
public class MutableLong { /** * Use the supplied function to perform a lazy transform operation when getValue is called * < pre > * { @ code * MutableLong mutable = MutableLong . fromExternal ( ( ) - > ! this . value , val - > ! this . value ) ; * Mutable < Long > withOverride = mutable . mapInputToObj ( b - >...
final MutableLong host = this ; return new Mutable < T1 > ( ) { @ Override public Mutable < T1 > set ( final T1 value ) { host . set ( fn . apply ( value ) ) ; return this ; } } ;
public class ByteBufPayload { /** * Static factory method for a text payload . Mainly looks better than " new ByteBufPayload ( data , * metadata ) " * @ param data the data of the payload . * @ param metadata the metadata for the payload . * @ return a payload . */ public static Payload create ( String data , @...
return create ( ByteBufUtil . writeUtf8 ( ByteBufAllocator . DEFAULT , data ) , metadata == null ? null : ByteBufUtil . writeUtf8 ( ByteBufAllocator . DEFAULT , metadata ) ) ;
public class ModelsEngine { /** * Calculate the map of netnumbering . * @ param flowGC the map of flowdirection . * @ param netGC the map of network . * @ param tcaGC the optional map of tca . * @ param tcaThreshold the threshold on the tca . * @ param pointsFC optional feature collection of points in which t...
RegionMap regionMap = CoverageUtilities . getRegionParamsFromGridCoverage ( flowGC ) ; int cols = regionMap . getCols ( ) ; int rows = regionMap . getRows ( ) ; WritableRaster netnumWR = CoverageUtilities . createWritableRaster ( cols , rows , Integer . class , null , null ) ; WritableRandomIter netnumIter = RandomIter...
public class MTable { /** * Get the record count . * Just returns the count of the default key area . * @ return The record count ( or - 1 if unknown ) . */ public int getRecordCount ( FieldTable table ) { } }
int iKeyOrder = table . getRecord ( ) . getDefaultOrder ( ) ; if ( iKeyOrder == - 1 ) iKeyOrder = Constants . MAIN_KEY_AREA ; return this . getPKeyArea ( iKeyOrder ) . getRecordCount ( ) ;
public class UserTransactionRegistryImpl { /** * { @ inheritDoc } */ public void addProvider ( UserTransactionProvider provider ) { } }
if ( provider != null ) { provider . setUserTransactionRegistry ( this ) ; providers . add ( provider ) ; }