signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class AbstractCLA { /** * { @ inheritDoc } */ @ Override public E getValue ( final int index ) { } }
if ( index < 0 || values == null || values . size ( ) == 0 ) if ( defaultValues != null && defaultValues . size ( ) > index ) { if ( index < 0 ) return defaultValues . get ( 0 ) ; return defaultValues . get ( index ) ; } if ( index >= 0 ) if ( values . size ( ) > index ) return values . get ( index ) ; return null ;
public class MessageBirdClient { /** * Send a Lookup request * @ param phoneNumber phone number is for viewing lookup * @ return Lookup * @ throws UnauthorizedException if client is unauthorized * @ throws GeneralException general exception */ public Lookup viewLookup ( final BigInteger phoneNumber ) throws Una...
if ( phoneNumber == null ) { throw new IllegalArgumentException ( "PhoneNumber must be specified." ) ; } final Lookup lookup = new Lookup ( phoneNumber ) ; return this . viewLookup ( lookup ) ;
public class JavolutionTranscoderFactory { /** * Gets / creates a single instance of { @ link JavolutionTranscoder } . We need to have a single * instance so that { @ link XMLFormat } s are not created twice which would lead to errors . * @ param manager the manager that will be passed to the transcoder . * @ ret...
if ( _transcoder == null ) { final CustomXMLFormat < ? > [ ] customFormats = loadCustomFormats ( manager ) ; _transcoder = new JavolutionTranscoder ( manager , _copyCollectionsForSerialization , customFormats ) ; } return _transcoder ;
public class ApiOvhXdsl { /** * Get this object properties * REST : GET / xdsl / { serviceName } / lines / { number } * @ param serviceName [ required ] The internal name of your XDSL offer * @ param number [ required ] The number of the line */ public net . minidev . ovh . api . xdsl . OvhLine serviceName_lines_...
String qPath = "/xdsl/{serviceName}/lines/{number}" ; StringBuilder sb = path ( qPath , serviceName , number ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , net . minidev . ovh . api . xdsl . OvhLine . class ) ;
public class AbstractFileTypeAnalyzer { /** * Determines if the file can be analyzed by the analyzer . * @ param pathname the path to the file * @ return true if the file can be analyzed by the given analyzer ; otherwise * false */ @ Override public boolean accept ( File pathname ) { } }
final FileFilter filter = getFileFilter ( ) ; boolean accepted = false ; if ( null == filter ) { LOGGER . error ( "The '{}' analyzer is misconfigured and does not have a file filter; it will be disabled" , getName ( ) ) ; } else if ( this . isEnabled ( ) ) { accepted = filter . accept ( pathname ) ; if ( accepted ) { f...
public class HostAvailabilityListener { /** * If less than minHosts are left , calls stopJob . * @ param numHosts the minimum number of hosts before this will call dataMovementMangaer . stopJob ( batcher ) * @ return this instance ( for method chaining ) */ public HostAvailabilityListener withMinHosts ( int numHost...
if ( moveMgr . getConnectionType ( ) == DatabaseClient . ConnectionType . GATEWAY ) { if ( numHosts != 1 ) { throw new IllegalArgumentException ( "numHosts must be 1 when using only the primary host for the connection" ) ; } } else { if ( numHosts <= 0 ) throw new IllegalArgumentException ( "numHosts must be > 0" ) ; /...
public class DirectoryConnection { /** * Close the Directory Connection . * It is thread safe . * @ throws IOException * the IOException in closing . */ public synchronized void close ( ) throws IOException { } }
if ( getStatus ( ) . equals ( ConnectionStatus . CLOSED ) ) { return ; } if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( "Closing client for session: 0x" + getSessionId ( ) ) ; } connectRun . set ( false ) ; try { clientSocket . cleanup ( ) ; } catch ( Exception e ) { LOGGER . warn ( "Close the WSDirectorySocket ...
public class CmsSearchIndex { /** * Checks if the OpenCms resource referenced by the result document can be read * by the user of the given OpenCms context . * Returns the referenced < code > CmsResource < / code > or < code > null < / code > if * the user is not permitted to read the resource . < p > * @ param...
try { CmsObject clone = OpenCms . initCmsObject ( cms ) ; clone . getRequestContext ( ) . setSiteRoot ( "" ) ; return clone . readResource ( doc . getPath ( ) , filter ) ; } catch ( CmsException e ) { // Do nothing } return null ;
public class HttpServerReefEventHandler { /** * Write a String to HTTP Response . */ private void writeResponse ( final HttpServletResponse response , final String data ) throws IOException { } }
final byte [ ] outputBody = data . getBytes ( StandardCharsets . UTF_8 ) ; response . getOutputStream ( ) . write ( outputBody ) ;
public class TrieIterator { /** * Internal block value calculations * Performs calculations on a data block to find codepoints in m _ nextBlock _ * that has the same value . * Will call checkBlockDetail ( ) if highlevel check fails . * Note m _ * _ variables at this point is the next codepoint whose value * h...
int currentBlock = m_nextBlock_ ; m_nextBlock_ = m_trie_ . m_index_ [ m_nextIndex_ ] << Trie . INDEX_STAGE_2_SHIFT_ ; if ( m_nextBlock_ == currentBlock && ( m_nextCodepoint_ - m_currentCodepoint_ ) >= DATA_BLOCK_LENGTH_ ) { // the block is the same as the previous one , filled with // currentValue m_nextCodepoint_ += D...
public class DelegatingProxyFactory { /** * Create a proxy using given classloader and interfaces * @ param classLoader Class loader * @ param interfaces Interfaces to implement * @ return Proxy */ public Object newProxy ( ClassLoader classLoader , Class < ? > ... interfaces ) { } }
return Proxy . newProxyInstance ( classLoader , interfaces , this ) ;
public class Pointers { /** * Atomically add the specified { @ link Pointer } instance ( s ) to an array known to the given updator . * @ param holder the object that holds the array ; may not be null * @ param updater the updator of the array ; may not be null * @ param cursor the cursor that the pointers will f...
long currentPosition = 0L ; Pointer [ ] updatedPointers ; Pointer [ ] currentPointers ; do { currentPointers = updater . get ( holder ) ; updatedPointers = copyOf ( currentPointers , currentPointers . length + pointersToAdd . length ) ; if ( cursor != null ) currentPosition = cursor . getCurrent ( ) ; int index = curre...
public class AbstractApi { /** * Wraps an exception in a GitLabApiException if needed . * @ param thrown the exception that should be wrapped * @ return either the untouched GitLabApiException or a new GitLabApiExceptin wrapping a non - GitLabApiException */ protected GitLabApiException handle ( Exception thrown ) ...
if ( thrown instanceof GitLabApiException ) { return ( ( GitLabApiException ) thrown ) ; } return ( new GitLabApiException ( thrown ) ) ;
public class JBossModuleLoader { /** * Construct the Module dependency graph of a module loader where each vertex is the module name * @ return a mutable snapshot of the underlying dependency */ public DirectedGraph < ModuleId , DefaultEdge > getModuleNameGraph ( ) { } }
SimpleDirectedGraph < ModuleId , DefaultEdge > graph = new SimpleDirectedGraph < ModuleId , DefaultEdge > ( DefaultEdge . class ) ; Map < ModuleId , ModuleIdentifier > moduleIdentifiers = getLatestRevisionIds ( ) ; GraphUtils . addAllVertices ( graph , moduleIdentifiers . keySet ( ) ) ; for ( Entry < ModuleId , ModuleI...
public class ConfigArgP { /** * Loads properties from the passed input stream * @ param source The name of the source the properties are being loaded from * @ param is The input stream to load from * @ return the loaded properties */ protected static Properties loadConfig ( String source , InputStream is ) { } }
try { Properties p = new Properties ( ) ; p . load ( is ) ; // trim the value as it may have trailing white - space Set < String > keys = p . stringPropertyNames ( ) ; for ( String key : keys ) { p . setProperty ( key , p . getProperty ( key ) . trim ( ) ) ; } return p ; } catch ( IllegalArgumentException iae ) { throw...
public class NNStorage { /** * Return a property that was stored in an earlier version of HDFS . * This should only be used during upgrades . */ String getDeprecatedProperty ( String prop ) { } }
assert getLayoutVersion ( ) > FSConstants . LAYOUT_VERSION : "getDeprecatedProperty should only be done when loading " + "storage from past versions during upgrade." ; return deprecatedProperties . get ( prop ) ;
public class Executor { /** * Check if executor is ready to accept tasks . * This method becomes the critical one since 1.536 , which introduces the * on - demand creation of executor threads . Callers should use * this method instead of { @ link # isAlive ( ) } , which would be incorrect for * non - started th...
lock . readLock ( ) . lock ( ) ; try { return ! started || asynchronousExecution != null || isAlive ( ) ; } finally { lock . readLock ( ) . unlock ( ) ; }
public class ChunkedHashStore { /** * Returns an iterator over the chunks of this chunked hash store . * < p > Note that at each iteration part of the state of this chunked hash store * is reused . Thus , after each call to { @ code next ( ) } the previously returned * { @ link Chunk } will be no longer valid . P...
if ( closed ) throw new IllegalStateException ( "This " + getClass ( ) . getSimpleName ( ) + " has been closed " ) ; try { flushAll ( ) ; } catch ( final IOException e ) { throw new RuntimeException ( e ) ; } int m = 0 ; for ( int i = 0 ; i < virtualDiskChunks ; i ++ ) { int s = 0 ; for ( int j = 0 ; j < diskChunkStep ...
public class OnePhaseResourceImpl { /** * The resource manager can forget all knowledge of the transaction . * Only allowed because commit _ one _ phase may return heuristic */ public final void forget ( ) throws XAException { } }
if ( tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "forget" , _resource ) ; Tr . exit ( tc , "forget" ) ; }
public class CmsXmlPageFactory { /** * Factory method to unmarshal ( read ) a XML page instance from a OpenCms VFS file * that contains XML data . < p > * @ param cms the current cms object * @ param file the file with the XML data to unmarshal * @ return a XML page instance unmarshalled from the provided file ...
return CmsXmlPageFactory . unmarshal ( cms , file , true ) ;
public class BusStop { /** * Remove a hub reference . * @ param hub the hub . */ void removeBusHub ( BusHub hub ) { } }
if ( this . hubs != null ) { this . hubs . remove ( hub ) ; if ( this . hubs . isEmpty ( ) ) { this . hubs = null ; } }
public class NoChildren { /** * Returns an empty < code > Iterator < / code > . * @ return an empty < code > Iterator < / code > */ public Iterator iterator ( ) { } }
return new Iterator ( ) { public boolean hasNext ( ) { return false ; } public Object next ( ) { return null ; } public void remove ( ) { throw new UnsupportedOperationException ( ) ; } } ;
public class KeyVaultClientImpl { /** * Deletes a key of any type from storage in Azure Key Vault . The delete key operation cannot be used to remove individual versions of a key . This operation removes the cryptographic material associated with the key , which means the key is not usable for Sign / Verify , Wrap / Un...
return deleteKeyWithServiceResponseAsync ( vaultBaseUrl , keyName ) . map ( new Func1 < ServiceResponse < KeyBundle > , KeyBundle > ( ) { @ Override public KeyBundle call ( ServiceResponse < KeyBundle > response ) { return response . body ( ) ; } } ) ;
public class FutureResultImpl { /** * Set the failure . Any handler will be called , if there is one */ @ Override public FutureResultImpl < T > setFailure ( Throwable throwable ) { } }
this . throwable = throwable ; failed = true ; checkCallHandler ( ) ; return this ;
public class PortableNavigatorContext { /** * When we advance in the token navigation we need to re - initialise the class definition with the coordinates * of the new portable object in the context of which we will be navigating further . */ void advanceContextToNextPortableToken ( int factoryId , int classId , int ...
cd = serializer . setupPositionAndDefinition ( in , factoryId , classId , version ) ; initFinalPositionAndOffset ( in , cd ) ;
public class ApiOvhMe { /** * Get this object properties * REST : GET / me / withdrawal / { withdrawalId } * @ param withdrawalId [ required ] */ public OvhWithdrawal withdrawal_withdrawalId_GET ( String withdrawalId ) throws IOException { } }
String qPath = "/me/withdrawal/{withdrawalId}" ; StringBuilder sb = path ( qPath , withdrawalId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhWithdrawal . class ) ;
public class Clock { /** * Calling this method will check the current time against all Alarm * objects in alarms . The Alarm object will fire events in case the * time is after the alarm time . * @ param TIME */ private void checkAlarms ( final ZonedDateTime TIME ) { } }
alarmsToRemove . clear ( ) ; for ( Alarm alarm : alarms ) { final ZonedDateTime ALARM_TIME = alarm . getTime ( ) ; switch ( alarm . getRepetition ( ) ) { case ONCE : if ( TIME . isAfter ( ALARM_TIME ) ) { if ( alarm . isArmed ( ) ) { fireAlarmEvent ( new AlarmEvent ( Clock . this , alarm ) ) ; alarm . executeCommand ( ...
public class ConfigManager { /** * Helper function to reloadJsonConfig ( ) . Parses the JSON Object * corresponding to the key " TYPES " . * @ throws JSONException */ private void loadLocalityWaits ( JSONObject json , Map < ResourceType , Long > newTypeToNodeWait , Map < ResourceType , Long > newTypeToRackWait ) th...
Iterator < String > keys = json . keys ( ) ; while ( keys . hasNext ( ) ) { String key = keys . next ( ) ; if ( ! json . isNull ( key ) ) { for ( ResourceType type : TYPES ) { if ( key . equals ( "nodeLocalityWait" + type ) ) { long val = Long . parseLong ( json . getString ( key ) ) ; newTypeToNodeWait . put ( type , ...
public class MarkLogicRepositoryConnection { /** * overload for prepareTupleQuery * @ param queryLanguage * @ param queryString * @ return MarkLogicTupleQuery * @ throws RepositoryException * @ throws MalformedQueryException */ @ Override public MarkLogicTupleQuery prepareTupleQuery ( QueryLanguage queryLangu...
return prepareTupleQuery ( queryLanguage , queryString , null ) ;
public class CSL { /** * Generates a bibliography for the registered citations . Depending * on the selection mode selects , includes , or excludes bibliography * items whose fields and field values match the fields and field values * from the given example item data objects . * @ param mode the selection mode ...
return makeBibliography ( mode , selection , null ) ;
public class HourGlass { /** * Move slots on each tasktracker between two clusters such that their share * of the slots meets the target share . * @ param clusters Two clusters * @ throws IOException */ private void doMoveSlots ( Cluster clusters [ ] ) throws IOException { } }
// Obtain the new status of the clusters clusters [ 0 ] . updateClusterStatus ( ) ; clusters [ 1 ] . updateClusterStatus ( ) ; // Compute the target shares of the clusters updateShares ( clusters ) ; TaskTrackerStatus taskTrackers [ ] = new TaskTrackerStatus [ 2 ] ; int currentTasks [ ] = new int [ 2 ] ; int maxTasks [...
public class FileManager { /** * Writes default file to real file * The default file would be a file that can be packaged along with the code , from which a real file ( say a * properties file for example ) can be loaded . This is useful because there are files ( like property files0 that * cannot be shipped with...
try { Files . copy ( Paths . get ( defaultFilePath ) , Paths . get ( realFilePath ) , StandardCopyOption . REPLACE_EXISTING ) ; return true ; } catch ( IOException e ) { error ( "Unable to write to copy Properties-File" , e ) ; return false ; }
public class AnnotatedValueResolver { /** * Creates a new { @ link AnnotatedValueResolver } instance if the specified { @ code annotatedElement } is * a component of { @ link AnnotatedHttpService } . * @ param annotatedElement an element which is annotated with a value specifier such as { @ link Param } and * { @...
requireNonNull ( annotatedElement , "annotatedElement" ) ; requireNonNull ( typeElement , "typeElement" ) ; requireNonNull ( type , "type" ) ; requireNonNull ( pathParams , "pathParams" ) ; requireNonNull ( objectResolvers , "objectResolvers" ) ; final String description = findDescription ( annotatedElement ) ; final P...
public class RestUriVariablesFactory { /** * Returns the uri variables needed for a " search " request minus query * @ param entityInfo * @ param fieldSet * @ param params * @ return all uriVariables needed for the api call */ public Map < String , String > getUriVariablesForSearchWithPost ( BullhornEntityInfo ...
Map < String , String > uriVariables = params . getParameterMap ( ) ; this . addCommonUriVariables ( fieldSet , entityInfo , uriVariables ) ; return uriVariables ;
public class ServersInner { /** * Creates or updates a new server . * @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal . * @ param serverName The name of the server . * @ param parameters The required ...
return createOrUpdateWithServiceResponseAsync ( resourceGroupName , serverName , parameters ) . map ( new Func1 < ServiceResponse < ServerInner > , ServerInner > ( ) { @ Override public ServerInner call ( ServiceResponse < ServerInner > response ) { return response . body ( ) ; } } ) ;
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public EClass getIfcCableFittingType ( ) { } }
if ( ifcCableFittingTypeEClass == null ) { ifcCableFittingTypeEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 74 ) ; } return ifcCableFittingTypeEClass ;
public class ClassWriterImpl { /** * { @ inheritDoc } */ @ Override public void addInterfaceUsageInfo ( Content classInfoTree ) { } }
if ( ! utils . isInterface ( typeElement ) ) { return ; } if ( typeElement . getQualifiedName ( ) . toString ( ) . equals ( "java.lang.Cloneable" ) || typeElement . getQualifiedName ( ) . toString ( ) . equals ( "java.io.Serializable" ) ) { return ; // Don ' t generate the list , too big } Set < TypeElement > implcl = ...
public class ScriptableObject { /** * Returns true if the named property is defined . * @ param name the name of the property * @ param start the object in which the lookup began * @ return true if and only if the property was found in the object */ @ Override public boolean has ( String name , Scriptable start )...
return null != slotMap . query ( name , 0 ) ;
public class JettyBoot { protected void browseOnDesktopIfNeeds ( final URI uri ) { } }
if ( ! browseOnDesktop ) { return ; } final java . awt . Desktop desktop = java . awt . Desktop . getDesktop ( ) ; try { desktop . browse ( uri ) ; } catch ( IOException e ) { throw new IllegalStateException ( "Failed to browse the URI: " + uri , e ) ; }
public class FTPFileSystem { /** * A stream obtained via this call must be closed before using other APIs of * this class or else the invocation will block . */ @ Override public FSDataOutputStream create ( Path file , FsPermission permission , boolean overwrite , int bufferSize , short replication , long blockSize ,...
final FTPClient client = connect ( ) ; Path workDir = new Path ( client . printWorkingDirectory ( ) ) ; Path absolute = makeAbsolute ( workDir , file ) ; if ( exists ( client , file ) ) { if ( overwrite ) { delete ( client , file ) ; } else { disconnect ( client ) ; throw new IOException ( "File already exists: " + fil...
public class Parsing { /** * tokenizes text into raw text chunks interspersed with expression chunks */ public static List < Token > tokenize ( String warpRawText , EvaluatorCompiler compiler ) throws ExpressionCompileException { } }
ArrayList < Token > tokens = new ArrayList < Token > ( ) ; // simple state machine to iterate the text and break it up into chunks char [ ] characters = warpRawText . toCharArray ( ) ; StringBuilder token = new StringBuilder ( ) ; TokenizerState state = TokenizerState . READING_TEXT ; for ( int i = 0 ; i < characters ....
public class MediaApi { /** * Set the focus time of interaction * Set the focus time to the specified interaction . * @ param mediatype media - type of interaction ( required ) * @ param id id of interaction ( required ) * @ param setFocusTimeData Request parameters . ( required ) * @ return ApiSuccessRespons...
ApiResponse < ApiSuccessResponse > resp = setFocusTimeMediaWithHttpInfo ( mediatype , id , setFocusTimeData ) ; return resp . getData ( ) ;
public class JCudaDriver { /** * Sets device memory . * < pre > * CUresult cuMemsetD2D8Async ( * CUdeviceptr dstDevice , * size _ t dstPitch , * unsigned char uc , * size _ t Width , * size _ t Height , * CUstream hStream ) * < / pre > * < div > * < p > Sets device memory . Sets the 2D memory * ...
return checkResult ( cuMemsetD2D8AsyncNative ( dstDevice , dstPitch , uc , Width , Height , hStream ) ) ;
public class Drawer { /** * method to replace a previous set header * @ param view * @ param padding * @ param divider * @ param height */ public void setHeader ( @ NonNull View view , boolean padding , boolean divider , DimenHolder height ) { } }
mDrawerBuilder . getHeaderAdapter ( ) . clear ( ) ; if ( padding ) { mDrawerBuilder . getHeaderAdapter ( ) . add ( new ContainerDrawerItem ( ) . withView ( view ) . withDivider ( divider ) . withHeight ( height ) . withViewPosition ( ContainerDrawerItem . Position . TOP ) ) ; } else { mDrawerBuilder . getHeaderAdapter ...
public class TypicalLoginAssist { /** * Do save remember - me key to cookie . * @ param userEntity The selected entity of login user . ( NotNull ) * @ param userBean The user bean saved in session . ( NotNull ) * @ param expireDays The expire days of both access token and cookie value . * @ param cookieKey The ...
logger . debug ( "...Saving remember-me key to cookie: key={}" , cookieKey ) ; final String value = buildRememberMeCookieValue ( userEntity , userBean , expireDays ) ; final int expireSeconds = expireDays * 60 * 60 * 24 ; // cookie ' s expire , same as access token cookieManager . setCookieCiphered ( cookieKey , value ...
public class AbstractYamlConfigBuilder { /** * Imports external YAML documents into the provided main YAML document . * Since the YAML configuration uses mappings , in order to keep the * configuration defined in the main YAML document the imported * document ( the source ) will be actually merged into the main ...
YamlMapping rootAsMapping = asMapping ( imdgRoot ) ; YamlSequence importSeq = rootAsMapping . childAsSequence ( ConfigSections . IMPORT . name ) ; if ( importSeq == null || importSeq . childCount ( ) == 0 ) { return ; } for ( YamlNode importNode : importSeq . children ( ) ) { String resource = asScalar ( importNode ) ....
public class SocketUtility { /** * Get a free server port that can be used . * Several preferred port numbers can be specified . * @ param tryOthers If all preferred ports are occupied , try other free ports or not . * @ param portspreferred port numbers * @ returnA free port number , or zero if not found or ex...
for ( int port : ports ) { if ( isServerPortFree ( port ) ) { return port ; } } return tryOthers ? getFreeServerPort ( ) : 0 ;
public class FirstMLastConverter { /** * Add this component to the components displaying this field . * @ param Object sField The screen component . . either a awt . Component or a ScreenField . */ public void addComponent ( Object screenField ) { } }
// Set up the dependencies if ( m_iNamePrefix != null ) m_recThis . getField ( m_iNamePrefix ) . addComponent ( screenField ) ; m_recThis . getField ( m_iNameFirst ) . addComponent ( screenField ) ; if ( m_iNameMiddle != null ) m_recThis . getField ( m_iNameMiddle ) . addComponent ( screenField ) ; m_recThis . getField...
public class Aggregations { /** * Returns an aggregation to calculate the { @ link java . math . BigInteger } sum * of all supplied values . < br / > * This aggregation is similar to : < pre > SELECT SUM ( value ) FROM x < / pre > * @ param < Key > the input key type * @ param < Value > the supplied value type ...
return new AggregationAdapter ( new BigIntegerSumAggregation < Key , Value > ( ) ) ;
public class PrefMapRegion { /** * Preference */ @ Override public void apply ( MapTile map ) { } }
final MapTileTransition mapTransition = map . getFeature ( MapTileTransition . class ) ; final double tw = map . getTileWidth ( ) ; final double th = map . getTileHeight ( ) ; final int sx = area . getInTileX ( ) ; final int sy = area . getInTileY ( ) ; final int ex = UtilMath . clamp ( area . getInTileWidth ( ) , 0 , ...
public class AWSGreengrassClient { /** * Lists the versions of a core definition . * @ param listCoreDefinitionVersionsRequest * @ return Result of the ListCoreDefinitionVersions operation returned by the service . * @ throws BadRequestException * invalid request * @ sample AWSGreengrass . ListCoreDefinitionV...
request = beforeClientExecution ( request ) ; return executeListCoreDefinitionVersions ( request ) ;
public class MoneyFormatterBuilder { /** * Appends the specified printer and parser to this builder . * Either the printer or parser must be non - null . * @ param printer the printer to append , null makes the formatter unable to print * @ param parser the parser to append , null makes the formatter unable to pa...
printers . add ( printer ) ; parsers . add ( parser ) ; return this ;
public class GroovyScriptMessageBuilder { /** * Builds an automatic Groovy MarkupBuilder script with given script body . * @ param scriptData * @ return */ private String buildMarkupBuilderScript ( String scriptData ) { } }
try { ClassLoader parent = GroovyScriptMessageBuilder . class . getClassLoader ( ) ; GroovyClassLoader loader = new GroovyClassLoader ( parent ) ; Class < ? > groovyClass = loader . parseClass ( TemplateBasedScriptBuilder . fromTemplateResource ( scriptTemplateResource ) . withCode ( scriptData ) . build ( ) ) ; if ( g...
public class ImplicitNullabilityCheck { /** * Crawls the JSDoc of the given node to find any names in JSDoc * that are implicitly null . */ @ Override public void visit ( final NodeTraversal t , final Node n , final Node p ) { } }
final JSDocInfo info = n . getJSDocInfo ( ) ; if ( info == null ) { return ; } final JSTypeRegistry registry = compiler . getTypeRegistry ( ) ; final List < Node > thrownTypes = transform ( info . getThrownTypes ( ) , new Function < JSTypeExpression , Node > ( ) { @ Override public Node apply ( JSTypeExpression expr ) ...
public class Strman { /** * Replace all occurrences of ' search ' value to ' newvalue ' . Uses String replace method . * @ param value The input * @ param search The String to search * @ param newValue The String to replace * @ param caseSensitive whether search should be case sensitive or not * @ return Stri...
validate ( value , NULL_STRING_PREDICATE , NULL_STRING_MSG_SUPPLIER ) ; validate ( search , NULL_STRING_PREDICATE , NULL_STRING_MSG_SUPPLIER ) ; if ( caseSensitive ) { return value . replace ( search , newValue ) ; } return Pattern . compile ( search , Pattern . CASE_INSENSITIVE ) . matcher ( value ) . replaceAll ( Mat...
public class OAuth20DefaultTokenGenerator { /** * Add ticket to registry . * @ param ticket the ticket * @ param ticketGrantingTicket the ticket granting ticket */ protected void addTicketToRegistry ( final Ticket ticket , final TicketGrantingTicket ticketGrantingTicket ) { } }
LOGGER . debug ( "Adding ticket [{}] to registry" , ticket ) ; this . ticketRegistry . addTicket ( ticket ) ; if ( ticketGrantingTicket != null ) { LOGGER . debug ( "Updating parent ticket-granting ticket [{}]" , ticketGrantingTicket ) ; this . ticketRegistry . updateTicket ( ticketGrantingTicket ) ; }
public class CmsADEManager { /** * Returns the permission info for the given resource . < p > * @ param cms the cms context * @ param resource the resource * @ param contextPath the context path * @ return the permission info * @ throws CmsException if checking the permissions fails */ public CmsPermissionInf...
boolean hasView = cms . hasPermissions ( resource , CmsPermissionSet . ACCESS_VIEW , false , CmsResourceFilter . ALL . addRequireVisible ( ) ) ; boolean hasWrite = false ; if ( hasView ) { try { I_CmsResourceType type = OpenCms . getResourceManager ( ) . getResourceType ( resource . getTypeId ( ) ) ; CmsExplorerTypeSet...
public class Collector { /** * Process the configuration and create the relevant tasks * Target is also initialized using the information provided in the configuration */ private void configure ( Map < String , Object > configuration ) throws IOException { } }
List < TaskConfig > configList = new ArrayList < TaskConfig > ( ) ; configList . addAll ( parseConfig ( configuration ) ) ; for ( TaskConfig taskConfig : configList ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Task config " + this , taskConfig ) ; } if ( taskConfig...
public class JpaConfigHelper { public static String jpaCascade ( PackageImportAdder importAdder , CascadeGetter ... cascadeGetters ) { } }
if ( cascadeGetters == null ) { return "" ; } // we look for the first non empty conf . // not that it could be a NONE conf = > user does not want any cascade . for ( CascadeGetter cascadeGetter : cascadeGetters ) { if ( cascadeGetter != null ) { List < Cascade > cascadeConf = cascadeGetter . getCascades ( ) ; if ( cas...
public class CommonOps_DDF3 { /** * Returns the value of the element in the vector that has the minimum value . < br > * < br > * Min { a < sub > i < / sub > } for all < br > * @ param a A matrix . Not modified . * @ return The value of element in the vector with the minimum value . */ public static double elem...
double min = a . a1 ; if ( a . a2 < min ) min = a . a2 ; if ( a . a3 < min ) min = a . a3 ; return min ;
public class EJBMDOrchestrator { /** * Perform metadata processing for a bean that is being deferred . */ public void processDeferredBMD ( BeanMetaData bmd ) throws EJBConfigurationException , ContainerException { } }
final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "processDeferredBMD: " + bmd . j2eeName ) ; // F743-506 - Process automatic timers . This always needs to be // done regardless of deferred EJB initialization . if ( bmd . ivInitData . ivTi...
public class InternalSARLParser { /** * InternalSARL . g : 9794:1 : ruleMethodModifier returns [ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken ( ) ] : ( kw = ' def ' | kw = ' override ' ) ; */ public final AntlrDatatypeRuleToken ruleMethodModifier ( ) throws RecognitionException { } }
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken ( ) ; Token kw = null ; enterRule ( ) ; try { // InternalSARL . g : 9800:2 : ( ( kw = ' def ' | kw = ' override ' ) ) // InternalSARL . g : 9801:2 : ( kw = ' def ' | kw = ' override ' ) { // InternalSARL . g : 9801:2 : ( kw = ' def ' | kw = ' override ' ) int ...
public class JsonRecordAvroSchemaToAvroConverter { /** * Ignore input schema and parse in Avro schema from config */ @ Override public Schema convertSchema ( SI inputSchema , WorkUnitState workUnit ) throws SchemaConversionException { } }
Preconditions . checkArgument ( workUnit . contains ( ConfigurationKeys . CONVERTER_AVRO_SCHEMA_KEY ) ) ; this . schema = new Schema . Parser ( ) . parse ( workUnit . getProp ( ConfigurationKeys . CONVERTER_AVRO_SCHEMA_KEY ) ) ; return this . schema ;
public class AdductFormula { /** * Returns an Iterator for looping over all isotopes in this adduct formula . * @ return An Iterator with the isotopes in this adduct formula */ @ Override public Iterable < IIsotope > isotopes ( ) { } }
return new Iterable < IIsotope > ( ) { @ Override public Iterator < IIsotope > iterator ( ) { return isotopesList ( ) . iterator ( ) ; } } ;
public class StandardCoercionManager { /** * Returns a coercer from values of rhsType to values of lhsType if one exists . * I tried to write a reasonable spec in the comments below that indicate exactly * what should coerce to what . * @ param lhsType the type to coerce to * @ param rhsType the type to coerce ...
// Anything can be coerced to a string if ( JavaTypes . STRING ( ) == lhsType && ! ( rhsType instanceof IErrorType ) ) { if ( JavaTypes . pCHAR ( ) . equals ( rhsType ) || JavaTypes . CHARACTER ( ) . equals ( rhsType ) ) { return NonWarningStringCoercer . instance ( ) ; } else { return StringCoercer . instance ( ) ; } ...
public class UserResources { /** * OAuth2.0 UserInfo reference implementation to get logged in user information using the access token * @ param req The Http Request with authorization header * @ return User Information Json Object */ @ GET @ Produces ( MediaType . APPLICATION_JSON ) @ Path ( "/userinfo" ) @ Descri...
String userName = findUserByToken ( req ) ; PrincipalUser user = _uService . findUserByUsername ( userName ) ; return PrincipalUserDto . transformToDto ( user ) ;
public class ElemForEach { /** * Execute the xsl : for - each transformation * @ param transformer non - null reference to the the current transform - time state . * @ throws TransformerException */ public void execute ( TransformerImpl transformer ) throws TransformerException { } }
transformer . pushCurrentTemplateRuleIsNull ( true ) ; try { transformSelectedNodes ( transformer ) ; } finally { transformer . popCurrentTemplateRuleIsNull ( ) ; }
public class QCParser { /** * Parse out a URI string and get a GuacamoleConfiguration * from that string , or an exception if the parsing fails . * @ param uri * The string form of the URI to be parsed . * @ return * A GuacamoleConfiguration generated using the information * provided by the user in the URI ...
// Parse the provided String into a URI object . URI qcUri ; try { qcUri = new URI ( uri ) ; if ( ! qcUri . isAbsolute ( ) ) throw new QuickConnectException ( "URI must be absolute." , "QUICKCONNECT.ERROR_NOT_ABSOLUTE_URI" ) ; } catch ( URISyntaxException e ) { throw new QuickConnectException ( "Invalid URI Syntax" , "...
public class JschUtil { /** * 执行Shell命令 * @ param session Session会话 * @ param cmd 命令 * @ param charset 发送和读取内容的编码 * @ param errStream 错误信息输出到的位置 * @ return { @ link ChannelExec } * @ since 4.3.1 */ public static String exec ( Session session , String cmd , Charset charset , OutputStream errStream ) { } }
if ( null == charset ) { charset = CharsetUtil . CHARSET_UTF_8 ; } ChannelExec channel = ( ChannelExec ) openChannel ( session , ChannelType . EXEC ) ; channel . setCommand ( StrUtil . bytes ( cmd , charset ) ) ; channel . setInputStream ( null ) ; channel . setErrStream ( errStream ) ; InputStream in = null ; try { in...
public class SecurityActions { /** * Creates a new instance of the specified { @ link Class } using the specified construction arguments . Casts and * returns as the specified expected type * @ param < T > * @ param clazz * @ param argumentTypes * @ param arguments * @ param expectedType * @ return */ sta...
// Precondition checks if ( clazz == null ) { throw new IllegalArgumentException ( "Class must be specified" ) ; } if ( argumentTypes == null ) { throw new IllegalArgumentException ( "ArgumentTypes must be specified. Use empty array if no arguments" ) ; } if ( arguments == null ) { throw new IllegalArgumentException ( ...
public class MatchConditionOnElements { /** * Assigns a pseudo class to the given element name . Element names are case - insensitive . * Multiple pseudo classes may be assigned to a single element name . * @ param name the element name * @ param pseudoClass the pseudo class to be assigned */ public void addMatch...
if ( names == null ) names = new HashMap < String , Set < PseudoClassType > > ( ) ; Set < PseudoClassType > classes = names . get ( name ) ; if ( classes == null ) { classes = new HashSet < PseudoClassType > ( 2 ) ; names . put ( name , classes ) ; } classes . add ( pseudoClass ) ;
public class ClockWindows { /** * ~ Methoden - - - - - */ @ Override ChronoInterval < PlainTime > newInterval ( Boundary < PlainTime > start , Boundary < PlainTime > end ) { } }
return ClockIntervalFactory . INSTANCE . between ( start , end ) ;
public class ParameterizedTypeReference { /** * / * @ Nullable */ private JvmTypeReference getSuperType ( JvmType rawType , boolean interfaceType , JvmType thisType , RecursionGuard < JvmType > guard ) { } }
if ( thisType == rawType || ! interfaceType && thisType . eClass ( ) == TypesPackage . Literals . JVM_GENERIC_TYPE && ( ( JvmGenericType ) thisType ) . isInterface ( ) ) { return null ; } if ( ! guard . tryNext ( thisType ) ) { return null ; } if ( thisType . eClass ( ) == TypesPackage . Literals . JVM_TYPE_PARAMETER )...
public class DockerRule { /** * ' Dockerfile ' as String based on sratch for placing plugins . */ public String generateDockerfileFor ( Map < String , File > plugins ) throws IOException { } }
StringBuilder builder = new StringBuilder ( ) ; builder . append ( "FROM scratch" ) . append ( NL ) . append ( "MAINTAINER Kanstantsin Shautsou <kanstantsin.sha@gmail.com>" ) . append ( NL ) . append ( "COPY ./ /" ) . append ( NL ) . append ( "VOLUME /usr/share/jenkins/ref" ) . append ( NL ) ; for ( Map . Entry < Strin...
public class JSMin { /** * action - - do something ! What you do is determined by the argument : 1 * Output A . Copy B to A . Get the next B . 2 Copy B to A . Get the next B . * ( Delete A ) . 3 Get the next B . ( Delete B ) . action treats a string as a * single character . Wow ! action recognizes a regular expr...
switch ( d ) { case 1 : out . write ( theA ) ; case 2 : theA = theB ; if ( theA == '\'' || theA == '"' ) { for ( ; ; ) { out . write ( theA ) ; theA = get ( ) ; if ( theA == theB ) { break ; } if ( theA <= '\n' ) { throw new UnterminatedStringLiteralException ( ) ; } if ( theA == '\\' ) { out . write ( theA ) ; theA = ...
public class RTMPProtocolEncoder { /** * Encode message . * @ param header * RTMP message header * @ param message * RTMP message ( event ) * @ return Encoded message data */ public IoBuffer encodeMessage ( Header header , IRTMPEvent message ) { } }
IServiceCall call = null ; switch ( header . getDataType ( ) ) { case TYPE_CHUNK_SIZE : return encodeChunkSize ( ( ChunkSize ) message ) ; case TYPE_INVOKE : log . trace ( "Invoke {}" , message ) ; call = ( ( Invoke ) message ) . getCall ( ) ; if ( call != null ) { log . debug ( "{}" , call . toString ( ) ) ; Object [ ...
public class MathUtil { /** * Return a string representation of the given line . */ public static String lineToString ( int x0 , int y0 , int x1 , int y1 ) { } }
return "(" + x0 + ", " + y0 + ") -> (" + x1 + ", " + y1 + ")" ;
public class Scope { /** * Sets parent scope */ public void setParentScope ( Scope parentScope ) { } }
this . parentScope = parentScope ; this . top = parentScope == null ? ( ScriptNode ) this : parentScope . top ;
public class PolicyParser { /** * Schema Factory is not thread safe * @ return */ private static Schema getSchema ( InputStream schemaStream ) throws SAXException { } }
Schema result ; synchronized ( SCHEMA_FACTORY ) { result = SCHEMA_FACTORY . newSchema ( new StreamSource ( schemaStream ) ) ; } return result ;
public class ALTaskTextViewerPanel { /** * Updates the preview table based on the information given by preview . * @ param preview the new information used to update the table */ public void setText ( Preview preview ) { } }
Point p = this . scrollPaneTable . getViewport ( ) . getViewPosition ( ) ; previewTableModel . setPreview ( preview ) ; SwingUtilities . invokeLater ( new Runnable ( ) { boolean structureChanged = previewTableModel . structureChanged ( ) ; public void run ( ) { if ( ! scrollPaneTable . isVisible ( ) ) { topWrapper . re...
public class LogPackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EClass getProjectDeleted ( ) { } }
if ( projectDeletedEClass == null ) { projectDeletedEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( LogPackage . eNS_URI ) . getEClassifiers ( ) . get ( 17 ) ; } return projectDeletedEClass ;
public class DefaultSqlConfig { /** * データソース名を指定してSqlConfigを取得する * @ param dataSourceName データソース名 * @ param autoCommit 自動コミットの指定 * @ param readOnly 読み取り専用モードの指定 * @ param transactionIsolation トランザクション隔離レベルの指定 * @ return SqlConfigオブジェクト */ public static SqlConfig getConfig ( final String dataSourceName ...
DataSourceConnectionSupplierImpl connectionSupplier = new DataSourceConnectionSupplierImpl ( dataSourceName ) ; connectionSupplier . setDefaultAutoCommit ( autoCommit ) ; connectionSupplier . setDefaultReadOnly ( readOnly ) ; connectionSupplier . setDefaultTransactionIsolation ( transactionIsolation ) ; return new Defa...
public class DraweeView { /** * Use this method only when using this class as an ordinary ImageView . * @ deprecated Use { @ link # setController ( DraweeController ) } instead . */ @ Override @ Deprecated public void setImageBitmap ( Bitmap bm ) { } }
init ( getContext ( ) ) ; mDraweeHolder . setController ( null ) ; super . setImageBitmap ( bm ) ;
public class UrlConnectionPostTransport { /** * { @ inheritDoc } */ @ Override public < T > T sendRequest ( final Request msg , final ScepResponseHandler < T > handler ) throws TransportException { } }
if ( ! PkiOperationRequest . class . isAssignableFrom ( msg . getClass ( ) ) ) { throw new IllegalArgumentException ( "POST transport may not be used for " + msg . getOperation ( ) + " messages." ) ; } URL url = getUrl ( msg . getOperation ( ) ) ; HttpURLConnection conn ; try { conn = ( HttpURLConnection ) url . openCo...
public class HttpFields { /** * Set a field . * @ param name the name of the field * @ param value the value of the field . If null the field is cleared . */ public String put ( String name , String value ) { } }
if ( value == null ) return remove ( name ) ; FieldInfo info = getFieldInfo ( name ) ; Field field = getField ( info , false ) ; // Look for value to replace . if ( field != null ) { String old = ( field . _version == _version ) ? field . _value : null ; field . reset ( value , _version ) ; field = field . _next ; whil...
public class AbstractLauncher { /** * Sets the application class name for Java / Scala applications . * @ param mainClass Application ' s main class . * @ return This launcher . */ public T setMainClass ( String mainClass ) { } }
checkNotNull ( mainClass , "mainClass" ) ; builder . mainClass = mainClass ; return self ( ) ;
public class LambdaMatcher { /** * A variant of argLambda ( Predicate ) for lambdas declaring checked exceptions . */ @ Incubating public static < T > T argLambdaThrowing ( ThrowingPredicate < T > throwingLambda , String description ) { } }
return argThat ( new LambdaMatcher < > ( throwingLambda . uncheck ( ) , description ) ) ;
public class SecStrucCalc { /** * Two nonoverlapping stretches of three residues each , i - 1 , i , i + 1 and * j - 1 , j , j + 1 , form either a parallel or antiparallel bridge , depending on * which of two basic patterns is matched . We assign a bridge between * residues i and j if there are two H bonds charact...
// Get the interator of contacts Iterator < AtomContact > myIter = contactSet . iterator ( ) ; List < Pair < Integer > > outList = new ArrayList < Pair < Integer > > ( ) ; // Now iterate through this while ( myIter . hasNext ( ) ) { // Get the next atom contact AtomContact ac = myIter . next ( ) ; Group g1 = ac . getPa...
public class DispatcherServlet { /** * Get method from request . * @ param request * @ return */ protected String getMethod ( HttpServletRequest request ) { } }
String uri = request . getRequestURI ( ) ; String q = uri . substring ( ( request . getContextPath ( ) + request . getServletPath ( ) ) . length ( ) + 1 ) ; int i = q . indexOf ( "." ) ; String method = null ; if ( i > 0 ) { method = q . substring ( i + 1 ) ; } return method ;
public class LdapSpnegoKnownClientSystemsFilterAction { /** * Searches the ldap instance for the attribute value . * @ param remoteIp the remote ip * @ return true / false */ @ SneakyThrows protected boolean executeSearchForSpnegoAttribute ( final String remoteIp ) { } }
val remoteHostName = getRemoteHostName ( remoteIp ) ; LOGGER . debug ( "Resolved remote hostname [{}] based on ip [{}]" , remoteHostName , remoteIp ) ; try ( val connection = createConnection ( ) ) { val searchOperation = new SearchOperation ( connection ) ; this . searchRequest . getSearchFilter ( ) . setParameter ( "...
public class ColorPalettePreference { /** * Obtains the number of columns , which should be used to preview colors in the preference ' s * dialog , from a specific typed array . * @ param typedArray * The typed array , the number of columns should be obtained from , as an instance of the * class { @ link TypedA...
int defaultValue = getContext ( ) . getResources ( ) . getInteger ( R . integer . color_palette_preference_default_number_of_columns ) ; setNumberOfColumns ( typedArray . getInteger ( R . styleable . ColorPalettePreference_android_numColumns , defaultValue ) ) ;
public class ResponseHandler { /** * Handles a rendered response to the client by sending the rendered body from the response object * @ param exchange The Undertow HttpServerExchange * @ param response The response object */ protected void handleRenderedResponse ( HttpServerExchange exchange , Response response ) ...
exchange . setStatusCode ( response . getStatusCode ( ) ) ; Server . headers ( ) . entrySet ( ) . stream ( ) . filter ( entry -> StringUtils . isNotBlank ( entry . getValue ( ) ) ) . forEach ( entry -> exchange . getResponseHeaders ( ) . add ( entry . getKey ( ) . toHttpString ( ) , entry . getValue ( ) ) ) ; exchange ...
public class EmbeddableComponentManager { /** * Add */ @ Override public < T > void registerComponent ( ComponentDescriptor < T > componentDescriptor ) throws ComponentRepositoryException { } }
registerComponent ( componentDescriptor , null ) ;
public class JsonRtnUtil { /** * return request is success by JsonRtn object * @ param jsonRtn * @ return */ public static boolean isSuccess ( JsonRtn jsonRtn ) { } }
if ( jsonRtn == null ) { return false ; } String errCode = jsonRtn . getErrCode ( ) ; if ( StringUtils . isEmpty ( errCode ) || StringUtils . equals ( WECHAT_JSON_RTN_SUCCESS_CODE , errCode ) ) { return true ; } return false ;
public class ConfigImpl { /** * / * ( non - Javadoc ) * @ see com . ibm . jaggr . service . config . IConfig # locateModuleResource ( java . lang . String ) */ @ Override public URI locateModuleResource ( String mid , boolean isJavaScript ) { } }
Location location = null ; String remainder = null ; // Now see if mid matches exactly a path if ( getPaths ( ) . containsKey ( mid ) ) { location = getPaths ( ) . get ( mid ) ; } // If the module is a package name , then resolve to the packag main id if ( location == null && getPackages ( ) . containsKey ( mid ) ) { m...
public class AdminDevice { /** * Send logs to a device * @ param argin * @ throws DevFailed */ @ Command ( name = "AddLoggingTarget" , inTypeDesc = "Str[i]=Device-name. Str[i+1]=Target-type::Target-name" ) public void addLoggingTarget ( final String [ ] argin ) throws DevFailed { } }
if ( argin . length % 2 != 0 ) { throw DevFailedUtils . newDevFailed ( INPUT_ERROR , "argin must be of even size" ) ; } for ( int i = 0 ; i < argin . length - 1 ; i = i + 2 ) { final String deviceName = argin [ i ] ; final String [ ] config = argin [ i + 1 ] . split ( LoggingManager . LOGGING_TARGET_SEPARATOR ) ; if ( ...
public class EventGridClientImpl { /** * Publishes a batch of events to an Azure Event Grid topic . * @ param topicHostname The host name of the topic , e . g . topic1 . westus2-1 . eventgrid . azure . net * @ param events An array of events to be published to Event Grid . * @ throws IllegalArgumentException thro...
if ( topicHostname == null ) { throw new IllegalArgumentException ( "Parameter topicHostname is required and cannot be null." ) ; } if ( events == null ) { throw new IllegalArgumentException ( "Parameter events is required and cannot be null." ) ; } if ( this . apiVersion ( ) == null ) { throw new IllegalArgumentExcept...
public class ThreadLocalHttpConnectionManager { /** * @ see HttpConnectionManager # getConnectionWithTimeout ( HostConfiguration , long ) * @ since 3.0 */ public HttpConnection getConnectionWithTimeout ( final HostConfiguration hostConfiguration , final long timeout ) { } }
final ConnectionInfo ci = getConnectionInfo ( ) ; HttpConnection httpConnection = ci . conn ; // make sure the host and proxy are correct for this connection // close it and set the values if they are not if ( httpConnection == null || ! finishLastResponse ( httpConnection ) || ! hostConfiguration . hostEquals ( httpCo...
public class StructureTools { /** * Returns and array of all non - Hydrogen atoms in the given Structure , * optionally including HET atoms or not . Waters are not included . * @ param s * @ param hetAtoms * if true HET atoms are included in array , if false they are not * @ return */ public static final Atom...
AtomIterator iter = new AtomIterator ( s ) ; return getAllNonHAtomArray ( s , hetAtoms , iter ) ;
public class Multiplexing { /** * Multiplexes an iterable of iterators into a single iterator . The * iteration stops when every source iterator is empty . E . g : * < code > * roundrobinLongest ( [ 1,2 ] , [ 4 ] ) - > [ of 1 , of 4 , of 2 , empty ] * < / code > * @ param < E > the element type * @ param < ...
dbc . precondition ( iterators != null , "cannot roundrobinLongest a null iterable" ) ; final Iterator < I > iterator = iterators . iterator ( ) ; return new RoundrobinLongestIterator < E > ( iterator ) ;