signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class DiscoverHardcodedIPAddressRuleProvider { /** * if this is a maven file , checks to see if " version " tags match the discovered text ; if the discovered text does match something in a version * tag , it is likely a version , not an IP address * @ param context * @ param model * @ return */ private ...
if ( isMavenFile ( context , model ) ) { Document doc = ( ( XmlFileModel ) model . getFile ( ) ) . asDocument ( ) ; for ( Element elm : $ ( doc ) . find ( "version" ) ) { String text = StringUtils . trim ( $ ( elm ) . text ( ) ) ; if ( StringUtils . equals ( text , model . getSourceSnippit ( ) ) ) { return true ; } } }...
public class Dist { /** * Adds the pipe to the distributor object . */ public void attach ( Pipe pipe ) { } }
// If we are in the middle of sending a message , we ' ll add new pipe // into the list of eligible pipes . Otherwise we add it to the list // of active pipes . if ( more ) { pipes . add ( pipe ) ; Collections . swap ( pipes , eligible , pipes . size ( ) - 1 ) ; eligible ++ ; } else { pipes . add ( pipe ) ; Collections...
public class SocketIOWithTimeout { /** * The contract is similar to { @ link SocketChannel # connect ( SocketAddress ) } * with a timeout . * @ see SocketChannel # connect ( SocketAddress ) * @ param channel - this should be a { @ link SelectableChannel } * @ param endpoint * @ throws IOException */ static vo...
boolean blockingOn = channel . isBlocking ( ) ; if ( blockingOn ) { channel . configureBlocking ( false ) ; } try { if ( channel . connect ( endpoint ) ) { return ; } long timeoutLeft = timeout ; long endTime = ( timeout > 0 ) ? ( System . currentTimeMillis ( ) + timeout ) : 0 ; while ( true ) { // we might have to cal...
public class RubyIO { /** * Closes this IO . */ public void close ( ) { } }
try { raFile . close ( ) ; } catch ( IOException e ) { logger . log ( Level . SEVERE , null , e ) ; throw new RuntimeException ( e ) ; }
public class TextUtil { /** * Remove the accents inside the specified string . * @ param text is the string into which the accents must be removed . * @ return the given string without the accents */ @ Pure public static String removeAccents ( String text ) { } }
final Map < Character , String > map = getAccentTranslationTable ( ) ; if ( ( map == null ) || ( map . isEmpty ( ) ) ) { return text ; } return removeAccents ( text , map ) ;
public class AbstractWComponent { /** * { @ inheritDoc } */ @ Override public void showErrorIndicators ( final List < Diagnostic > diags ) { } }
// Don ' t show indicators if it ' s invisible . if ( isVisible ( ) ) { // Show indicators for this component . showErrorIndicatorsForComponent ( diags ) ; // Show indicators for its children . List < WComponent > children = getComponentModel ( ) . getChildren ( ) ; if ( children != null ) { final int size = children ....
public class HttpHealthCheckedEndpointGroup { /** * Creates a new { @ link HttpHealthCheckedEndpointGroup } instance . * @ deprecated Use { @ link HttpHealthCheckedEndpointGroupBuilder } . */ @ Deprecated public static HttpHealthCheckedEndpointGroup of ( EndpointGroup delegate , String healthCheckPath , Duration heal...
return of ( ClientFactory . DEFAULT , delegate , healthCheckPath , healthCheckRetryInterval ) ;
public class AbstractWebInteraction { /** * Gets the first element . * @ param elems the elems * @ return the first element */ protected WebElement getFirstElement ( Elements elems ) { } }
DocumentWebElement documentWebElement = Iterables . getFirst ( elems . as ( InternalWebElements . class ) . wrappedNativeElements ( ) , null ) ; return documentWebElement == null ? null : documentWebElement . getWrappedWebElement ( ) ;
public class Internal { /** * Sets the time in a raw data table row key * @ param row The row to modify * @ param base _ time The base time to store * @ since 2.3 */ public static void setBaseTime ( final byte [ ] row , int base_time ) { } }
Bytes . setInt ( row , base_time , Const . SALT_WIDTH ( ) + TSDB . metrics_width ( ) ) ;
public class InternalPureXbaseParser { /** * InternalPureXbase . g : 1213:1 : ruleOpAnd returns [ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken ( ) ] : kw = ' & & ' ; */ public final AntlrDatatypeRuleToken ruleOpAnd ( ) throws RecognitionException { } }
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken ( ) ; Token kw = null ; enterRule ( ) ; try { // InternalPureXbase . g : 1219:2 : ( kw = ' & & ' ) // InternalPureXbase . g : 1220:2 : kw = ' & & ' { kw = ( Token ) match ( input , 32 , FOLLOW_2 ) ; if ( state . failed ) return current ; if ( state . backtrack...
public class RaftService { /** * this method is idempotent */ @ Override public ICompletableFuture < Void > forceDestroyCPGroup ( String groupName ) { } }
return invocationManager . invoke ( getMetadataGroupId ( ) , new ForceDestroyRaftGroupOp ( groupName ) ) ;
public class SqlClosureElf { /** * Counts the number of rows for the given query . * @ param clazz the class of the object to query . * @ param clause The conditional part of a SQL where clause . * @ param args The query parameters used to find the list of objects . * @ param < T > the type of object to query ....
return SqlClosure . sqlExecute ( c -> OrmElf . countObjectsFromClause ( c , clazz , clause , args ) ) ;
public class CmsEntity { /** * Sets the given attribute value at the given index . < p > * @ param attributeName the attribute name * @ param value the attribute value * @ param index the value index */ public void setAttributeValue ( String attributeName , CmsEntity value , int index ) { } }
if ( m_simpleAttributes . containsKey ( attributeName ) ) { throw new RuntimeException ( "Attribute already exists with a simple type value." ) ; } if ( ! m_entityAttributes . containsKey ( attributeName ) ) { if ( index != 0 ) { throw new IndexOutOfBoundsException ( ) ; } else { addAttributeValue ( attributeName , val...
public class AbstractBigtableAdmin { /** * { @ inheritDoc } */ @ Override public TableName [ ] listTableNamesByNamespace ( String name ) throws IOException { } }
if ( provideWarningsForNamespaces ( ) ) { LOG . warn ( "listTableNamesByNamespace is a no-op" ) ; return new TableName [ 0 ] ; } else { throw new UnsupportedOperationException ( "listTableNamesByNamespace" ) ; // TODO }
public class ApiOvhHostingprivateDatabase { /** * Get the availables versions for this private database * REST : GET / hosting / privateDatabase / { serviceName } / availableVersions * @ param serviceName [ required ] The internal name of your private database */ public ArrayList < OvhAvailableVersionEnum > service...
String qPath = "/hosting/privateDatabase/{serviceName}/availableVersions" ; StringBuilder sb = path ( qPath , serviceName ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t4 ) ;
public class DefaultMailMessageParser { /** * Returns the target address from the provided mail object . * @ param mailMessage * The mail message with the fax data * @ return The target address * @ throws MessagingException * Any exception while handling the mail message */ protected String getTargetAddress (...
// by default the target address is taken from the mail subject which // is expected to be in the format of : fax : < number > String subject = mailMessage . getSubject ( ) ; String targetAddress = null ; if ( ( subject != null ) && ( subject . startsWith ( "fax:" ) ) && ( subject . length ( ) > 4 ) ) { targetAddress =...
public class Config { /** * Checks if the specified key is defined in this Config file . * @ param key The key of the property to be checked . * @ return { @ code true } if a property with the specified key is found , * { @ code false } otherwise . */ public boolean contains ( String key ) { } }
return onlineProps . getProperty ( key ) != null || offlineProps . getProperty ( key ) != null ;
public class SofaConfigs { /** * 获取配置值 * @ param appName 应用名 * @ param key 配置项 * @ param defaultValue 默认值 * @ return 配置 */ public static String getStringValue ( String appName , String key , String defaultValue ) { } }
String ret = getStringValue0 ( appName , key ) ; return StringUtils . isEmpty ( ret ) ? defaultValue : ret . trim ( ) ;
public class AppenderFile { /** * Merged content of internal log files . * @ param mergedFile Instance of a file to merge logs into . */ private void mergeFiles ( @ NonNull File mergedFile ) throws IOException { } }
Context context = appContextRef . get ( ) ; if ( context != null ) { FileWriter fw ; BufferedWriter bw ; fw = new FileWriter ( mergedFile , true ) ; bw = new BufferedWriter ( fw ) ; File dir = context . getFilesDir ( ) ; for ( int i = 1 ; i <= maxFiles ; i ++ ) { File file = new File ( dir , name ( i ) ) ; if ( file . ...
public class Builder { /** * adds an attribute to the UNIQUE constraint * @ param attribute * @ return */ public Builder add ( Attribute attribute ) { } }
if ( relation != attribute . getRelation ( ) ) throw new IllegalArgumentException ( "Unique Key requires the same table in all attributes: " + relation + " " + attribute ) ; builder . add ( attribute ) ; return this ;
public class ViaCEPClient { /** * Executa a consulta de endereços a partir da UF , localidade e logradouro * @ param uf Unidade Federativa . Precisa ter 2 caracteres . * @ param localidade Localidade ( p . e . município ) . Precisa ter ao menos 3 caracteres . * @ param logradouro Logradouro ( p . e . rua , aven...
if ( uf == null || uf . length ( ) != 2 ) { throw new IllegalArgumentException ( "UF inválida - deve conter 2 caracteres: " + uf ) ; } if ( localidade == null || localidade . length ( ) < 3 ) { throw new IllegalArgumentException ( "Localidade inválida - deve conter pelo menos 3 caracteres: " + localidade ) ; } if ( log...
public class ConfigurationBuilder { /** * Build configuration * @ return result configuration */ @ NotNull @ ObjectiveCName ( "build" ) public Configuration build ( ) { } }
if ( endpoints . size ( ) == 0 ) { throw new RuntimeException ( "Endpoints not set" ) ; } if ( phoneBookProvider == null ) { throw new RuntimeException ( "Phonebook Provider not set" ) ; } if ( apiConfiguration == null ) { throw new RuntimeException ( "Api Configuration not set" ) ; } if ( deviceCategory == null ) { th...
public class SocketBindingJBossASClient { /** * Sets the port number for the named socket binding found in the named socket binding group . * If sysPropName is null , this simply sets the port number explicitly to the given port number . * If sysPropName is not null , this sets the port to the expression " $ { sysP...
String portValue ; if ( sysPropName != null ) { portValue = "${" + sysPropName + ":" + port + "}" ; } else { portValue = String . valueOf ( port ) ; } Address addr = Address . root ( ) . add ( SOCKET_BINDING_GROUP , socketBindingGroupName , SOCKET_BINDING , socketBindingName ) ; ModelNode request = createWriteAttribute...
public class CalendarThinTableModel { /** * Get this item . * Note : There is no guarantee of the mode of this record , if you want to change it , * remember to call makeRowCurrent ( i , true ) . */ public CalendarItem getItem ( int i ) { } }
FieldList item = this . makeRowCurrent ( i , false ) ; int iRowCount = this . getRowCount ( ) ; if ( this . isAppending ( ) ) iRowCount -- ; if ( i >= iRowCount ) return null ; if ( item instanceof CalendarItem ) return ( CalendarItem ) item ; else if ( item != null ) return this . getFieldListProxy ( item ) ; return n...
public class SmilesParser { /** * Handle fragment grouping of a reaction that specifies certain disconnected components * are actually considered a single molecule . Normally used for salts , [ Na + ] . [ OH - ] . * @ param rxn reaction * @ param cxstate state */ private void handleFragmentGrouping ( IReaction rx...
// repartition / merge fragments if ( cxstate . fragGroups != null ) { final int reactant = 1 ; final int agent = 2 ; final int product = 3 ; // note we don ' t use a list for fragmap as the indexes need to stay consistent Map < Integer , IAtomContainer > fragMap = new LinkedHashMap < > ( ) ; Map < IAtomContainer , Int...
public class WriteToBigQuery { /** * Utility to construct an output table reference . */ static TableReference getTable ( String projectId , String datasetId , String tableName ) { } }
TableReference table = new TableReference ( ) ; table . setDatasetId ( datasetId ) ; table . setProjectId ( projectId ) ; table . setTableId ( tableName ) ; return table ;
public class DataObject { /** * Returns The first , in property order , property which is mandatory and is * not set . If all mandatory properties have values , returns null . * @ return */ public String firstMandatoryNullProperty ( ) { } }
for ( String property : model . propertyList ) { if ( model . mandatorySet . contains ( property ) && model . defaultMap . get ( property ) == null && data . get ( property ) == null ) { return property ; } } return firstMandatoryNullProperty ( model . propertyList ) ;
public class HttpHeaderMap { /** * Add the passed header as a number . * @ param sName * Header name . May neither be < code > null < / code > nor empty . * @ param nValue * The value to be set . May not be < code > null < / code > . */ public void addLongHeader ( @ Nonnull @ Nonempty final String sName , final...
_addHeader ( sName , Long . toString ( nValue ) ) ;
public class BatchDetachPolicyMarshaller { /** * Marshall the given parameter object . */ public void marshall ( BatchDetachPolicy batchDetachPolicy , ProtocolMarshaller protocolMarshaller ) { } }
if ( batchDetachPolicy == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( batchDetachPolicy . getPolicyReference ( ) , POLICYREFERENCE_BINDING ) ; protocolMarshaller . marshall ( batchDetachPolicy . getObjectReference ( ) , OBJECTREFERENCE_B...
public class PrimaveraXERFileReader { /** * Reads the XER file table and row structure ready for processing . * @ param is input stream * @ throws MPXJException */ private void processFile ( InputStream is ) throws MPXJException { } }
int line = 1 ; try { // Test the header and extract the separator . If this is successful , // we reset the stream back as far as we can . The design of the // BufferedInputStream class means that we can ' t get back to character // zero , so the first record we will read will get " RMHDR " rather than // " ERMHDR " in...
public class UrlBuilder { /** * Returns full url */ public String buildUrl ( ) { } }
StringBuilder sb = new StringBuilder ( ) ; boolean includePort = true ; if ( null != scheme ) { sb . append ( scheme ) . append ( "://" ) ; includePort = ( port != ( scheme . equals ( "http" ) ? 80 : 443 ) ) ; } if ( null != serverName ) { sb . append ( serverName ) ; if ( includePort && port > 0 ) { sb . append ( ':' ...
public class CsvDozerBeanReader { /** * { @ inheritDoc } */ public void configureBeanMapping ( final Class < ? > clazz , final String [ ] fieldMapping , final Class < ? > [ ] hintTypes ) { } }
dozerBeanMapper . addMapping ( new MappingBuilder ( clazz , fieldMapping , hintTypes ) ) ;
public class FileDefinitionParser { /** * @ param line * @ param br * @ param holderInstance * @ return an integer code * { @ value P _ CODE _ NO } if not recognized , * { @ value P _ CODE _ YES } if it is and { @ value P _ CODE _ CANCEL } otherwise . * @ throws IOException */ private int recognizePropertie...
int result = P_CODE_NO ; String [ ] parts = splitFromInlineComment ( line ) ; String realLine = parts [ 0 ] . trim ( ) ; // Recognize the declaration AbstractBlockHolder holder = null ; StringBuilder sb = new StringBuilder ( ) ; boolean endInstructionReached = false , foundExtraChars = false ; for ( char c : realLine ....
public class AddTypeInformationCallback { /** * Framework - independent approach to setting the type - if possible , by calling the setType ( ) method . * @ param component * @ param type */ private void setType ( UIComponent component , String type ) { } }
Method method ; try { method = component . getClass ( ) . getMethod ( "getType" ) ; if ( null != method ) { Object invoke = method . invoke ( component ) ; if ( invoke != null ) { // is it an PrimeFaces component ? if ( component . getClass ( ) . getName ( ) . equals ( "org.primefaces.component.inputtext.InputText" ) )...
public class SARLFormatter { /** * Format the given SARL agent . * @ param agent the SARL component . * @ param document the document . */ protected void _format ( SarlAgent agent , IFormattableDocument document ) { } }
formatAnnotations ( agent , document , XbaseFormatterPreferenceKeys . newLineAfterClassAnnotations ) ; formatModifiers ( agent , document ) ; final ISemanticRegionsFinder regionFor = this . textRegionExtensions . regionFor ( agent ) ; document . append ( regionFor . keyword ( this . keywords . getAgentKeyword ( ) ) , O...
public class AHCFactory { /** * Creates a AsyncHttpClient object that can be used for talking to elasticsearch * @ param configuration The configuration object containing properties for configuring the http connections * @ param numberOfHostsBeingConnectedTo the number of hosts that are currently known about in the...
AsyncHttpClientConfig . Builder cf = createClientConfig ( configuration ) ; // A Bug exists in the AsyncConnection library that leak permits on a // Connection exception ( i . e . when host not listening . . hard fail ) // So we do not enable connection tracking . Which is fine as the ring // buffer does the job of hav...
public class CopyToModule { /** * Get copy - to map based on map processing . * @ return target to source map of URIs relative to temporary directory */ private Map < FileInfo , FileInfo > getCopyToMap ( ) { } }
final Map < FileInfo , FileInfo > copyToMap = new HashMap < > ( ) ; if ( forceUnique ) { forceUniqueFilter . copyToMap . forEach ( ( dstFi , srcFi ) -> { job . add ( dstFi ) ; copyToMap . put ( dstFi , srcFi ) ; } ) ; } for ( final Map . Entry < URI , URI > e : reader . getCopyToMap ( ) . entrySet ( ) ) { final URI tar...
public class ByteValueArray { @ Override public void write ( DataOutputView out ) throws IOException { } }
out . writeInt ( position ) ; for ( int i = 0 ; i < position ; i ++ ) { out . writeByte ( data [ i ] ) ; }
public class Visualizer { /** * Creates an image of the local entropies of this file . * @ param file * the PE file * @ return image of local entropies * @ throws IOException * if file can not be read */ public BufferedImage createEntropyImage ( File file ) throws IOException { } }
resetAvailabilityFlags ( ) ; this . data = new PEData ( null , null , null , null , null , file ) ; image = new BufferedImage ( fileWidth , height , IMAGE_TYPE ) ; final int MIN_WINDOW_SIZE = 100 ; // bytes to be read at once to calculate local entropy final int windowSize = Math . max ( MIN_WINDOW_SIZE , pixelSize ) ;...
public class GitHubTokenCredentialsCreator { /** * Creates { @ link org . jenkinsci . plugins . plaincredentials . StringCredentials } with previously created GH token . * Adds them to domain extracted from server url ( will be generated if no any exists before ) . * Domain will have domain requirements consists of...
String url = defaultIfBlank ( serverAPIUrl , GITHUB_URL ) ; String description = format ( "GitHub (%s) auto generated token credentials for %s" , url , username ) ; StringCredentialsImpl creds = new StringCredentialsImpl ( CredentialsScope . GLOBAL , UUID . randomUUID ( ) . toString ( ) , description , Secret . fromStr...
public class MapJsonSerializer { /** * < p > serializeValues < / p > * @ param writer a { @ link com . github . nmorel . gwtjackson . client . stream . JsonWriter } object . * @ param values a M object . * @ param ctx a { @ link com . github . nmorel . gwtjackson . client . JsonSerializationContext } object . *...
if ( ! values . isEmpty ( ) ) { Map < K , V > map = values ; if ( ctx . isOrderMapEntriesByKeys ( ) && ! ( values instanceof SortedMap < ? , ? > ) ) { map = new TreeMap < K , V > ( map ) ; } if ( ctx . isWriteNullMapValues ( ) ) { for ( Entry < K , V > entry : map . entrySet ( ) ) { String name = keySerializer . serial...
public class FixedCombinationRules { /** * Combines the responses of the classifiers by using estimating the sum * of the probabilities of their responses . * @ param classifierClassProbabilityMatrix * @ return */ public static AssociativeArray sum ( DataTable2D classifierClassProbabilityMatrix ) { } }
AssociativeArray combinedClassProbabilities = new AssociativeArray ( ) ; for ( Map . Entry < Object , AssociativeArray > entry : classifierClassProbabilityMatrix . entrySet ( ) ) { // Object classifier = entry . getKey ( ) ; AssociativeArray listOfClassProbabilities = entry . getValue ( ) ; for ( Map . Entry < Object ,...
public class dnssoarec { /** * Use this API to fetch filtered set of dnssoarec resources . * filter string should be in JSON format . eg : " port : 80 , servicetype : HTTP " . */ public static dnssoarec [ ] get_filtered ( nitro_service service , String filter ) throws Exception { } }
dnssoarec obj = new dnssoarec ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; dnssoarec [ ] response = ( dnssoarec [ ] ) obj . getfiltered ( service , option ) ; return response ;
public class CreateEntities { /** * < p > Extracts all entity classes in the given set of persistence . xml files an returns a collection thereof . < / p > * @ param persistenceXmlFiles set of persistence . xml files that you want to scan * @ return extracted entity classes */ private static Collection < Class > sc...
DDLGenerator . Profile profile = new DDLGenerator . Profile ( null ) ; profile . addPersistenceFile ( persistenceXmlFiles ) ; return profile . getEntityClasses ( ) ;
public class FilesImpl { /** * Deletes the specified file from the compute node . * @ param poolId The ID of the pool that contains the compute node . * @ param nodeId The ID of the compute node from which you want to delete the file . * @ param filePath The path to the file or directory that you want to delete ....
deleteFromComputeNodeWithServiceResponseAsync ( poolId , nodeId , filePath , recursive , fileDeleteFromComputeNodeOptions ) . toBlocking ( ) . single ( ) . body ( ) ;
public class DataMediaSourceServiceImpl { /** * 添加 */ public void create ( DataMediaSource dataMediaSource ) { } }
Assert . assertNotNull ( dataMediaSource ) ; try { DataMediaSourceDO dataMediaSourceDo = modelToDo ( dataMediaSource ) ; dataMediaSourceDo . setId ( 0L ) ; if ( ! dataMediaSourceDao . checkUnique ( dataMediaSourceDo ) ) { String exceptionCause = "exist the same name source in the database." ; logger . warn ( "WARN ## "...
public class CellFormulaHandler { /** * セルに数式を設定する * @ param field フィールド情報 * @ param config システム情報 * @ param cell セル情報 * @ param targetBean 処理対象のフィールドが定義されているクラスのインスタンス 。 * @ throws ConversionException 数式の解析に失敗した場合 。 */ public void handleFormula ( final FieldAccessor field , final Configuration config , fi...
ArgUtils . notNull ( field , "field" ) ; ArgUtils . notNull ( config , "config" ) ; ArgUtils . notNull ( cell , "cell" ) ; final String evaluatedFormula = createFormulaValue ( config , cell , targetBean ) ; if ( Utils . isEmpty ( evaluatedFormula ) ) { cell . setCellType ( CellType . BLANK ) ; return ; } try { cell . s...
public class OutputChannelMappingMarshaller { /** * Marshall the given parameter object . */ public void marshall ( OutputChannelMapping outputChannelMapping , ProtocolMarshaller protocolMarshaller ) { } }
if ( outputChannelMapping == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( outputChannelMapping . getInputChannels ( ) , INPUTCHANNELS_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON...
public class TagWizardController { /** * Automatically tags all attributes in the current entity using Lucene lexical matching . Stores * the tags in the OntologyTag Repository . * @ param request containing the entityTypeId and selected ontology identifiers * @ return A { @ link Map } containing Attribute name a...
String entityTypeId = request . getEntityTypeId ( ) ; EntityType entityType = dataService . getEntityType ( entityTypeId ) ; List < Ontology > ontologies = ontologyService . getOntologies ( request . getOntologyIds ( ) ) ; Map < Attribute , Hit < OntologyTerm > > autoGeneratedTags = new LinkedHashMap < > ( ) ; entityTy...
public class Vector2dfx { /** * Replies the orientation vector , which is corresponding * to the given angle on a trigonometric circle . * @ param angle is the angle in radians to translate . * @ return the orientation vector which is corresponding to the given angle . */ @ Pure @ Inline ( value = "new Vector2dfx...
Vector2dfx . class } ) public static Vector2dfx toOrientationVector ( double angle ) { return new Vector2dfx ( Math . cos ( angle ) , Math . sin ( angle ) ) ;
public class AdductFormula { /** * Compare to IIsotope . The method doesn ' t compare instance but if they * have the same symbol , natural abundance and exact mass . * @ param isotopeOne The first Isotope to compare * @ param isotopeTwo The second Isotope to compare * @ return True , if both isotope are the sa...
// XXX : floating point comparision ! if ( ! Objects . equals ( isotopeOne . getSymbol ( ) , isotopeTwo . getSymbol ( ) ) ) return false ; if ( ! Objects . equals ( isotopeOne . getNaturalAbundance ( ) , isotopeTwo . getNaturalAbundance ( ) ) ) return false ; if ( ! Objects . equals ( isotopeOne . getExactMass ( ) , is...
public class BatchUpdateDaemon { /** * This invalidates all cache entries in all caches whose template * is specified . * @ param template The Template that is used to to invalidate fragments . * @ param waitOnInvalidation True indicates that this method should * not return until all invalidations have taken ef...
synchronized ( this ) { BatchUpdateList bul = getUpdateList ( cache ) ; bul . invalidateByTemplateEvents . put ( template , new InvalidateByTemplateEvent ( template , CachePerf . LOCAL ) ) ; } if ( waitOnInvalidation ) { wakeUp ( 0 , 0 ) ; }
public class ContentSpecProcessor { /** * Gets a list of child nodes that can be transformed . * @ param childNodes The list of nodes to filter for translatable nodes . * @ return A list of transformable nodes . */ protected List < Node > getTransformableNodes ( final List < Node > childNodes ) { } }
final List < Node > nodes = new LinkedList < Node > ( ) ; for ( final Node childNode : childNodes ) { if ( isTransformableNode ( childNode ) ) { nodes . add ( childNode ) ; } } return nodes ;
public class HttpRequestBuilder { /** * Send the request and log / update metrics for the results . */ @ SuppressWarnings ( "PMD.ExceptionAsFlowControl" ) public HttpResponse send ( ) throws IOException { } }
HttpResponse response = null ; for ( int attempt = 1 ; attempt <= numAttempts ; ++ attempt ) { entry . withAttempt ( attempt ) ; try { response = sendImpl ( ) ; int s = response . status ( ) ; if ( s == 429 || s == 503 ) { // Request is getting throttled , exponentially back off // - 429 client sending too many request...
public class BitmapEncoder { /** * Returns a bitmap that lights up red subpixels at the bottom , green subpixels on the right , and * blue subpixels in bottom - right . */ Bitmap generateGradient ( ) { } }
int [ ] [ ] pixels = new int [ 1080 ] [ 1920 ] ; for ( int y = 0 ; y < 1080 ; y ++ ) { for ( int x = 0 ; x < 1920 ; x ++ ) { int r = ( int ) ( y / 1080f * 255 ) ; int g = ( int ) ( x / 1920f * 255 ) ; int b = ( int ) ( ( Math . hypot ( x , y ) / Math . hypot ( 1080 , 1920 ) ) * 255 ) ; pixels [ y ] [ x ] = r << 16 | g ...
public class XMLTransformTag { /** * Performs the transformation and writes the result to the JSP writer . * @ param in the source document to transform . */ public void transform ( Source pIn ) throws JspException { } }
try { // Create transformer Transformer transformer = TransformerFactory . newInstance ( ) . newTransformer ( getSource ( mStylesheetURI ) ) ; // Store temporary output in a bytearray , as the transformer will // usually try to flush the stream ( illegal operation from a custom // tag ) . ByteArrayOutputStream os = new...
public class KunderaQueryUtils { /** * Checks for where clause . * @ param jpqlExpression * the jpql expression * @ return true , if successful */ public static boolean hasWhereClause ( JPQLExpression jpqlExpression ) { } }
if ( isSelectStatement ( jpqlExpression ) ) { return ( ( SelectStatement ) jpqlExpression . getQueryStatement ( ) ) . hasWhereClause ( ) ; } else if ( isUpdateStatement ( jpqlExpression ) ) { return ( ( UpdateStatement ) jpqlExpression . getQueryStatement ( ) ) . hasWhereClause ( ) ; } if ( isDeleteStatement ( jpqlExpr...
public class UserPreferences { /** * Put . * @ param key the key * @ param value the value * @ see java . util . prefs . Preferences # put ( java . lang . String , java . lang . String ) */ public static void put ( final String key , final String value ) { } }
try { systemRoot . put ( fixKey ( key ) , value ) ; } catch ( final Exception e ) { System . err . print ( e ) ; }
public class ZLoop { /** * socket / FD , cancels ALL of them . */ public void removePoller ( PollItem pollItem ) { } }
Iterator < SPoller > it = pollers . iterator ( ) ; while ( it . hasNext ( ) ) { SPoller p = it . next ( ) ; if ( pollItem . equals ( p . item ) ) { it . remove ( ) ; dirty = true ; } } if ( verbose ) { System . out . printf ( "I: zloop: cancel %s poller (%s, %s)" , pollItem . getSocket ( ) != null ? pollItem . getSocke...
public class TransactionToDispatchableMap { /** * Removes , from the table , the dispatchable corresponding to a local transaction . * @ param clientId The client transaction id corresponding to the dispatchable to * remove * @ return the removed dispatchable or null if no entry could be found for the * specifi...
if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "removeDispatchableForLocalTransaction" , "" + clientId ) ; AbstractFirstLevelMapEntry firstLevelEntry = null ; if ( idToFirstLevelEntryMap . containsKey ( clientId ) ) { firstLevelEntry = ( AbstractFirstLevelMapEntry ) idToFirstLevelEntryMap . get ( clientId )...
public class DiscoveryJerseyProvider { /** * Checks for the { @ link Serializer } annotation for the given class . * @ param entityType The class to be serialized / deserialized . * @ return true if the annotation is present , false otherwise . */ private static boolean isSupportedEntity ( Class < ? > entityType ) ...
try { Annotation annotation = entityType . getAnnotation ( Serializer . class ) ; if ( annotation != null ) { return true ; } } catch ( Throwable th ) { LOGGER . warn ( "Exception in checking for annotations" , th ) ; } return false ;
public class ProposalResponse { /** * getChaincodeActionResponseReadWriteSetInfo get this proposals read write set . * @ return The read write set . See { @ link TxReadWriteSetInfo } * @ throws InvalidArgumentException */ public TxReadWriteSetInfo getChaincodeActionResponseReadWriteSetInfo ( ) throws InvalidArgumen...
if ( isInvalid ( ) ) { throw new InvalidArgumentException ( "Proposal response is invalid." ) ; } try { final ProposalResponsePayloadDeserializer proposalResponsePayloadDeserializer = getProposalResponsePayloadDeserializer ( ) ; TxReadWriteSet txReadWriteSet = proposalResponsePayloadDeserializer . getExtension ( ) . ge...
public class HBaseDataHandler { /** * ( non - Javadoc ) * @ see * com . impetus . client . hbase . admin . DataHandler # readData ( java . lang . String , * java . lang . Class , com . impetus . kundera . metadata . model . EntityMetadata , * java . lang . String , java . util . List ) */ @ Override public List...
List output = null ; Object entity = null ; HTableInterface hTable = null ; hTable = gethTable ( tableName ) ; // Load raw data from HBase MetamodelImpl metaModel = ( MetamodelImpl ) kunderaMetadata . getApplicationMetadata ( ) . getMetamodel ( m . getPersistenceUnit ( ) ) ; AbstractManagedType managedType = ( Abstract...
public class CmsJspObjectValueWrapper { /** * Returns if direct edit is enabled . < p > * @ param cms the current cms context * @ return < code > true < / code > if direct edit is enabled */ static boolean isDirectEditEnabled ( CmsObject cms ) { } }
return ! cms . getRequestContext ( ) . getCurrentProject ( ) . isOnlineProject ( ) && ( cms . getRequestContext ( ) . getAttribute ( CmsGwtConstants . PARAM_DISABLE_DIRECT_EDIT ) == null ) ;
public class MiniTemplatorParser { /** * Returns true the condition is met . */ private boolean evaluateConditionFlags ( String flags ) { } }
int p = 0 ; while ( true ) { p = skipBlanks ( flags , p ) ; if ( p >= flags . length ( ) ) { break ; } boolean complement = false ; if ( flags . charAt ( p ) == '!' ) { complement = true ; p ++ ; } p = skipBlanks ( flags , p ) ; if ( p >= flags . length ( ) ) { break ; } int p0 = p ; p = skipNonBlanks ( flags , p0 + 1 ...
public class MonitorObserver { /** * Inherited from Observer * @ param o * @ param arg */ @ Override public void update ( Observable o , Object arg ) { } }
if ( arg instanceof String ) { lines . add ( ( String ) arg ) ; } if ( arg instanceof List < ? > ) { lines . addAll ( ( List < String > ) arg ) ; } if ( arg instanceof Exception ) { Exception e = ( Exception ) arg ; PresentationManager . getPm ( ) . error ( e ) ; lines . add ( e . getMessage ( ) ) ; }
public class EscapeUtil { /** * Split but return an array which is never null ( but might be empty ) * @ param pArg argument to split * @ param pEscape single character used for escaping * @ param pDelimiter delimiter to use * @ return the splitted string as list or an empty array if the argument was null */ pu...
if ( pArg != null ) { List < String > elements = split ( pArg , pEscape , pDelimiter ) ; return elements . toArray ( new String [ elements . size ( ) ] ) ; } else { return new String [ 0 ] ; }
public class VisibleMemberMap { /** * Return the key to the member map for the given member . */ private Object getMemberKey ( Element element ) { } }
if ( utils . isConstructor ( element ) ) { return utils . getSimpleName ( element ) + utils . flatSignature ( ( ExecutableElement ) element ) ; } else if ( utils . isMethod ( element ) ) { return getClassMember ( ( ExecutableElement ) element ) ; } else if ( utils . isField ( element ) || utils . isEnumConstant ( eleme...
public class CanalEventUtils { /** * 根据entry创建对应的Position对象 */ public static LogPosition createPosition ( Event event , boolean included ) { } }
EntryPosition position = new EntryPosition ( ) ; position . setJournalName ( event . getJournalName ( ) ) ; position . setPosition ( event . getPosition ( ) ) ; position . setTimestamp ( event . getExecuteTime ( ) ) ; position . setIncluded ( included ) ; LogPosition logPosition = new LogPosition ( ) ; logPosition . se...
public class RenamePRequest { /** * < code > optional . alluxio . grpc . file . RenamePOptions options = 3 ; < / code > */ public alluxio . grpc . RenamePOptions getOptions ( ) { } }
return options_ == null ? alluxio . grpc . RenamePOptions . getDefaultInstance ( ) : options_ ;
public class UserProfile { public void setFirstName ( String firstName ) throws IllegalArgumentException { } }
if ( Text . isNull ( firstName ) ) return ; if ( ! this . firstName . equals ( firstName ) ) { this . firstName = firstName ; }
public class Metadata { /** * Adds a new metadata value . * @ param path the path that designates the key . Must be prefixed with a " / " . * @ param value the value . * @ return this metadata object . */ public Metadata add ( String path , String value ) { } }
this . values . add ( this . pathToProperty ( path ) , value ) ; this . addOp ( "add" , path , value ) ; return this ;
public class MarkdownParser { /** * Searching for valid formatting span end * @ param cursor text cursor * @ param spanStart expected span start * @ param limit maximum index in cursor * @ param span span control character * @ return span end , - 1 if not found */ private int findSpanEnd ( TextCursor cursor ,...
for ( int i = spanStart + 1 ; i < limit ; i ++ ) { char c = cursor . text . charAt ( i ) ; if ( c == span ) { // Check prev and next symbols if ( isGoodAnchor ( cursor . text , i + 1 ) && isNotSymbol ( cursor . text , i - 1 , span ) ) { return i + 1 ; } } } return - 1 ;
public class Shape { /** * Get the element wise stride for the * shape info buffer * @ param buffer the buffer to get the element * wise stride from * @ return the element wise stride for the buffer */ public static void setElementWiseStride ( DataBuffer buffer , int elementWiseStride ) { } }
int length2 = shapeInfoLength ( Shape . rank ( buffer ) ) ; // if ( 1 > 0 ) throw new RuntimeException ( " setElementWiseStride called : [ " + elementWiseStride + " ] , buffer : " + buffer ) ; buffer . put ( length2 - 2 , elementWiseStride ) ;
public class TypeUtility { /** * Convert a TypeMirror in a typeName , or classname or whatever . * @ param typeName * the type name * @ return typeName */ public static TypeName typeName ( String typeName ) { } }
TypeName [ ] values = { TypeName . BOOLEAN , TypeName . BYTE , TypeName . CHAR , TypeName . DOUBLE , TypeName . FLOAT , TypeName . INT , TypeName . LONG , TypeName . SHORT , TypeName . VOID } ; for ( TypeName item : values ) { if ( item . toString ( ) . equals ( typeName ) ) { return item ; } } LiteralType literalName ...
public class CacheCore { /** * for internal process use * @ param request < p > * idxMetricName = = null : query all metrics * idxMetricName = = [ ] : query none metric * idxMetricName = = [ a , b , c . . ] : query metric a , b and c , . . * idxComponentInstance = = null : query all components * idxComponen...
LOG . fine ( "received query: " + request . toString ( ) ) ; synchronized ( CacheCore . class ) { List < MetricDatum > response = new LinkedList < > ( ) ; // candidate metric names Set < String > metricNameFilter = request . getMetricNames ( ) ; if ( metricNameFilter == null ) { metricNameFilter = idxMetricName . keySe...
public class Authentication { /** * Login method to authenticate based on the Subject * < ul > * < li > If Security is enabled , it calls the MessagingAuthenticationService * for authenticating < / li > * < li > If Security is disabled , it returns a Unauthenticated Subject < / li > * < / ul > * @ param sub...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , CLASS_NAME + "login" , subject ) ; } Subject result = null ; if ( ! runtimeSecurityService . isMessagingSecure ( ) ) { result = runtimeSecurityService . createUnauthenticatedSubject ( ) ; } else { if ( messagingAuthenticat...
public class SegmentHelper { /** * This method sends a WireCommand to update table entries . * @ param tableName Qualified table name . * @ param entries List of { @ link TableEntry } s to be updated . * @ param delegationToken The token to be presented to the segmentstore . * @ param clientRequestId Request id...
final CompletableFuture < List < KeyVersion > > result = new CompletableFuture < > ( ) ; final Controller . NodeUri uri = getTableUri ( tableName ) ; final WireCommandType type = WireCommandType . UPDATE_TABLE_ENTRIES ; final long requestId = ( clientRequestId == RequestTag . NON_EXISTENT_ID ) ? idGenerator . get ( ) :...
public class ResourceAssignment { /** * Generates timephased costs from timephased work where a single cost rate * applies to the whole assignment . * @ param standardWorkList timephased work * @ param overtimeWorkList timephased work * @ return timephased cost */ private List < TimephasedCost > getTimephasedCo...
List < TimephasedCost > result = new LinkedList < TimephasedCost > ( ) ; // just return an empty list if there is no timephased work passed in if ( standardWorkList == null ) { return result ; } // takes care of the situation where there is no timephased overtime work Iterator < TimephasedWork > overtimeIterator = over...
public class PathExpression { /** * Replace certain XPath patterns , including some predicates , with substrings that are compatible with regular expressions . * @ param expression the input regular expressions string ; may not be null * @ return the regular expression with XPath patterns replaced with regular expr...
assert expression != null ; // replace 2 or more sequential ' | ' characters in an OR expression expression = expression . replaceAll ( "[\\|]{2,}" , "|" ) ; // if there is an empty expression in an OR expression , make the whole segment optional . . . // ( e . g . , " / a / b / ( c | ) / d " = > " a / b ( / ( c ) ) ? ...
public class ElasticSearchRestDAOV5 { /** * Performs an index operation with a retry . * @ param request The index request that we want to perform . * @ param operationDescription The type of operation that we are performing . */ private void indexWithRetry ( final IndexRequest request , final String operationDescr...
try { new RetryUtil < IndexResponse > ( ) . retryOnException ( ( ) -> { try { return elasticSearchClient . index ( request ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } } , null , null , RETRY_COUNT , operationDescription , "indexWithRetry" ) ; } catch ( Exception e ) { Monitors . error ( classNa...
public class ImageLUTIDImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void setLUTID ( Integer newLUTID ) { } }
Integer oldLUTID = lutid ; lutid = newLUTID ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . IMAGE_LUTID__LUTID , oldLUTID , lutid ) ) ;
public class CsvResultSetWriter { /** * { @ inheritDoc } */ public void write ( final ResultSet resultSet ) throws SQLException , IOException { } }
if ( resultSet == null ) { throw new NullPointerException ( "ResultSet cannot be null" ) ; } writeHeaders ( resultSet ) ; // increments row and line number writeContents ( resultSet ) ; // increments row and line number before writing of each row
public class ZealotKhala { /** * 生成带 " OR " 前缀的between区间查询的SQL片段 ( 当某一个值为null时 , 会是大于等于或小于等于的情形 ) . * @ param field 数据库字段 * @ param startValue 开始值 * @ param endValue 结束值 * @ return ZealotKhala实例 */ public ZealotKhala orBetween ( String field , Object startValue , Object endValue ) { } }
return this . doBetween ( ZealotConst . OR_PREFIX , field , startValue , endValue , true ) ;
public class ProcessorConfigurationUtils { /** * Wraps an implementation of { @ link IPreProcessor } into an object that adds some information * required internally ( like e . g . the dialect this processor was registered for ) . * This method is meant for < strong > internal < / strong > use only . * @ param pre...
Validate . notNull ( dialect , "Dialect cannot be null" ) ; if ( preProcessor == null ) { return null ; } return new PreProcessorWrapper ( preProcessor , dialect ) ;
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public EClass getIfcAxis2Placement3D ( ) { } }
if ( ifcAxis2Placement3DEClass == null ) { ifcAxis2Placement3DEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 33 ) ; } return ifcAxis2Placement3DEClass ;
public class AbstractSpreadSheetFlinkFileInputFormat { /** * Read truststore for establishing certificate chain for signature validation * @ param conf * @ throws IOException * @ throws FormatNotUnderstoodException */ private void readTrustStore ( ) throws IOException , FormatNotUnderstoodException { } }
if ( ( ( this . hocr . getSigTruststoreFile ( ) != null ) && ( ! "" . equals ( this . hocr . getSigTruststoreFile ( ) ) ) ) ) { LOG . info ( "Reading truststore to validate certificate chain for signatures" ) ; FlinkKeyStoreManager fksm = new FlinkKeyStoreManager ( ) ; try { fksm . openKeyStore ( new Path ( this . hocr...
public class OverrideBillableRevenueForReconciliationLineItemReport { /** * Runs the example . * @ param adManagerServices the services factory . * @ param session the session . * @ param reconciliationReportId the ID of the reconciliation report . * @ param lineItemId the ID of the line item to retrieve . * ...
// Get the ReconciliationLineItemReportService . ReconciliationLineItemReportServiceInterface reconciliationLineItemReportService = adManagerServices . get ( session , ReconciliationLineItemReportServiceInterface . class ) ; // Create a statement to select a reconciliation line item report . StatementBuilder statementB...
public class PoiChecker { /** * 检查POI包的引入情况 */ public static void checkPoiImport ( ) { } }
try { Class . forName ( "org.apache.poi.ss.usermodel.Workbook" , false , ClassLoaderUtil . getClassLoader ( ) ) ; } catch ( ClassNotFoundException | NoClassDefFoundError e ) { throw new DependencyException ( e , NO_POI_ERROR_MSG ) ; }
public class ListCollectionsResult { /** * Version numbers of the face detection models associated with the collections in the array * < code > CollectionIds < / code > . For example , the value of < code > FaceModelVersions [ 2 ] < / code > is the version number for * the face detection model used by the collectio...
if ( this . faceModelVersions == null ) { setFaceModelVersions ( new java . util . ArrayList < String > ( faceModelVersions . length ) ) ; } for ( String ele : faceModelVersions ) { this . faceModelVersions . add ( ele ) ; } return this ;
public class ApiOvhDedicatedserver { /** * Alter this object properties * REST : PUT / dedicated / server / { serviceName } / serviceMonitoring / { monitoringId } * @ param body [ required ] New object properties * @ param serviceName [ required ] The internal name of your dedicated server * @ param monitoringI...
String qPath = "/dedicated/server/{serviceName}/serviceMonitoring/{monitoringId}" ; StringBuilder sb = path ( qPath , serviceName , monitoringId ) ; exec ( qPath , "PUT" , sb . toString ( ) , body ) ;
public class TextureLoader { /** * Load a texture with a given format from the supplied input stream * @ param format The format of the texture to be loaded ( something like " PNG " or " TGA " ) * @ param in The input stream from which the image data will be read * @ return The newly created texture * @ throws ...
return getTexture ( format , in , false , GL11 . GL_LINEAR ) ;
public class Lanczos { /** * Massage error bounds for very close ritz values by placing a gap between * them . The error bounds are then refined to reflect this . * @ param ritz array to store the ritz values * @ param bnd array to store the error bounds * @ param enough stop flag */ private static int error_bo...
double gapl , gap ; // massage error bounds for very close ritz values int mid = idamax ( step + 1 , bnd , 0 , 1 ) ; for ( int i = ( ( step + 1 ) + ( step - 1 ) ) / 2 ; i >= mid + 1 ; i -= 1 ) { if ( Math . abs ( ritz [ i - 1 ] - ritz [ i ] ) < eps34 * Math . abs ( ritz [ i ] ) ) { if ( bnd [ i ] > tol && bnd [ i - 1 ]...
public class ToUnknownStream { /** * Pass the call on to the underlying handler * @ see org . xml . sax . ext . LexicalHandler # startDTD ( String , String , String ) */ public void startDTD ( String name , String publicId , String systemId ) throws SAXException { } }
m_handler . startDTD ( name , publicId , systemId ) ;
public class InMemoryKsiSignature { /** * This method is used to verify signature consistency . */ private void calculateCalendarHashChainOutput ( ) throws KSIException { } }
ChainResult lastRes = null ; for ( AggregationHashChain chain : aggregationChains ) { if ( lastRes == null ) { lastRes = chain . calculateOutputHash ( 0L ) ; } else { lastRes = chain . calculateOutputHash ( lastRes . getLevel ( ) ) ; } LOGGER . debug ( "Output hash of chain: {} is {}" , chain , lastRes . getOutputHash ...
public class PreauthorizationService { /** * Creates Use either a token or an existing payment to Authorizes the given amount with the given token . * @ param token * The identifier of a token . * @ param amount * Amount ( in cents ) which will be charged . * @ param currency * ISO 4217 formatted currency c...
ValidationUtils . validatesToken ( token ) ; ValidationUtils . validatesAmount ( amount ) ; ValidationUtils . validatesCurrency ( currency ) ; ParameterMap < String , String > params = new ParameterMap < String , String > ( ) ; params . add ( "token" , token ) ; params . add ( "amount" , String . valueOf ( amount ) ) ;...
public class OutboundSSLSelections { /** * Method to check if port numbers match . */ private boolean doesPortMatch ( String connectionObjPort , String remotePort ) { } }
boolean match = false ; if ( remotePort . equalsIgnoreCase ( connectionObjPort ) ) match = true ; return match ;
public class CPDefinitionOptionValueRelPersistenceImpl { /** * Returns the last cp definition option value rel 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 last mat...
CPDefinitionOptionValueRel cpDefinitionOptionValueRel = fetchByGroupId_Last ( groupId , orderByComparator ) ; if ( cpDefinitionOptionValueRel != null ) { return cpDefinitionOptionValueRel ; } StringBundler msg = new StringBundler ( 4 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "groupId=" ) ; msg . ap...
public class ModelModifier { /** * Converts { @ link Type } to { @ link JavaType } . * @ param type object to convert * @ return object converted to { @ link JavaType } */ private JavaType toJavaType ( Type type ) { } }
JavaType typeToFind ; if ( type instanceof JavaType ) { typeToFind = ( JavaType ) type ; } else { typeToFind = _mapper . constructType ( type ) ; } return typeToFind ;
public class BackupRuleMarshaller { /** * Marshall the given parameter object . */ public void marshall ( BackupRule backupRule , ProtocolMarshaller protocolMarshaller ) { } }
if ( backupRule == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( backupRule . getRuleName ( ) , RULENAME_BINDING ) ; protocolMarshaller . marshall ( backupRule . getTargetBackupVaultName ( ) , TARGETBACKUPVAULTNAME_BINDING ) ; protocolMars...