signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class FullSupportScriptEngine { /** * - - - - - Invocable */ @ Override public Object invokeMethod ( Object thiz , String name , Object ... args ) throws ScriptException , NoSuchMethodException { } }
return ( ( Invocable ) engine ) . invokeMethod ( thiz , name , args ) ;
public class Import { /** * Attempt to filter out the keyvalue * @ param kv { @ link org . apache . hadoop . hbase . KeyValue } on which to apply the filter * @ return < tt > null < / tt > if the key should not be written , otherwise returns the original * { @ link org . apache . hadoop . hbase . KeyValue } * @...
// apply the filter and skip this kv if the filter doesn ' t apply if ( filter != null ) { Filter . ReturnCode code = filter . filterKeyValue ( kv ) ; if ( LOG . isTraceEnabled ( ) ) { LOG . trace ( "Filter returned:" + code + " for the key value:" + kv ) ; } // if its not an accept type , then skip this kv if ( ! ( co...
public class ProducerRequest { /** * read a producer request from buffer * @ param buffer data buffer * @ return parsed producer request */ public static ProducerRequest readFrom ( ByteBuffer buffer ) { } }
String topic = Utils . readShortString ( buffer ) ; int partition = buffer . getInt ( ) ; int messageSetSize = buffer . getInt ( ) ; ByteBuffer messageSetBuffer = buffer . slice ( ) ; messageSetBuffer . limit ( messageSetSize ) ; buffer . position ( buffer . position ( ) + messageSetSize ) ; return new ProducerRequest ...
public class WrappingUtils { /** * Resets the rounding params on the specified rounded drawable , so that no rounding occurs . */ static void resetRoundingParams ( Rounded rounded ) { } }
rounded . setCircle ( false ) ; rounded . setRadius ( 0 ) ; rounded . setBorder ( Color . TRANSPARENT , 0 ) ; rounded . setPadding ( 0 ) ; rounded . setScaleDownInsideBorders ( false ) ; rounded . setPaintFilterBitmap ( false ) ;
public class FhirServerConfigDstu2 { /** * Configure FHIR properties around the the JPA server via this bean */ @ Bean public DaoConfig daoConfig ( ) { } }
DaoConfig retVal = new DaoConfig ( ) ; retVal . setSubscriptionEnabled ( true ) ; retVal . setSubscriptionPollDelay ( 5000 ) ; retVal . setSubscriptionPurgeInactiveAfterMillis ( DateUtils . MILLIS_PER_HOUR ) ; retVal . setAllowMultipleDelete ( true ) ; return retVal ;
public class ResponseBuilder { /** * Sets a { @ link AskForPermissionsConsentCard } card on the response . * @ param permissions permission array * @ return response builder */ public ResponseBuilder withAskForPermissionsConsentCard ( List < String > permissions ) { } }
this . card = AskForPermissionsConsentCard . builder ( ) . withPermissions ( permissions ) . build ( ) ; return this ;
public class Gauge { /** * Defines if the sections will always be visible . * This is currently only used in the IndicatorSkin * @ param VISIBLE */ public void setSectionsAlwaysVisible ( final boolean VISIBLE ) { } }
if ( null == sectionsAlwaysVisible ) { _sectionsAlwaysVisible = VISIBLE ; fireUpdateEvent ( REDRAW_EVENT ) ; } else { sectionsAlwaysVisible . set ( VISIBLE ) ; }
public class WordVectorSerializer { /** * This method saves Word2Vec model into compressed zip file and sends it to output stream * PLEASE NOTE : This method saves FULL model , including syn0 AND syn1 */ public static void writeWord2VecModel ( Word2Vec vectors , File file ) { } }
try ( FileOutputStream fos = new FileOutputStream ( file ) ; BufferedOutputStream stream = new BufferedOutputStream ( fos ) ) { writeWord2VecModel ( vectors , stream ) ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; }
public class CmsLocationSuggestOracle { /** * Adds a location suggestion to the list . < p > * @ param suggestions the suggestions list * @ param address the address */ private static void addSuggestion ( List < LocationSuggestion > suggestions , String address ) { } }
suggestions . add ( new LocationSuggestion ( address ) ) ;
public class AwsUtils { /** * This method returns a complete signed request using HmaSHA256 algorithm * using the " SignatureVersion 2 " scheme . Currently , this method creates * " SignatureVersion 2 " based signed requests ONLY for the HTTP " GET " * method . It ' s the callers the responsibility such as " Acti...
if ( ( requestMethod == null ) || ( protocol == null ) || ( endpoint == null ) || ( requestURI == null ) || ( params == null ) || ( awsAccessKeyId == null ) || ( awsSecretKey == null ) ) { throw new IllegalArgumentException ( "Null parameter passed in" ) ; } params . put ( "AWSAccessKeyId" , awsAccessKeyId ) ; params ....
public class FileEventStore { /** * Gets the directory for events in the given collection . Creates the directory ( and any * necessary parents ) if it does not exist already . * @ param projectId The project ID . * @ param eventCollection The name of the event collection . * @ return The directory for events i...
File collectionDir = new File ( getProjectDir ( projectId , true ) , eventCollection ) ; if ( ! collectionDir . exists ( ) ) { KeenLogging . log ( "Cache directory for event collection '" + eventCollection + "' doesn't exist. Creating it." ) ; if ( ! collectionDir . mkdirs ( ) ) { throw new IOException ( "Could not cre...
public class CharacterRangeImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public Object eGet ( int featureID , boolean resolve , boolean coreType ) { } }
switch ( featureID ) { case XtextPackage . CHARACTER_RANGE__LEFT : return getLeft ( ) ; case XtextPackage . CHARACTER_RANGE__RIGHT : return getRight ( ) ; } return super . eGet ( featureID , resolve , coreType ) ;
public class SQLFileWriter { /** * This method will process the given DiffTask and send it to the specified * output . * @ param task * DiffTask * @ throws ConfigurationException * if problems occurred while initializing the components * @ throws IOException * if problems occurred while writing the output...
try { SQLEncoding [ ] encoding = sqlEncoder . encodeTask ( task ) ; for ( SQLEncoding sql : encoding ) { this . writer . write ( sql . getQuery ( ) + "\r\n" ) ; this . writer . flush ( ) ; } if ( task . getTaskType ( ) == TaskTypes . TASK_FULL || task . getTaskType ( ) == TaskTypes . TASK_PARTIAL_LAST ) { if ( this . s...
public class RTMPConnection { /** * Handle the incoming message . * @ param packet * incoming message packet */ public void handleMessageReceived ( Packet packet ) { } }
if ( log . isTraceEnabled ( ) ) { log . trace ( "handleMessageReceived - {}" , sessionId ) ; } // set the packet expiration time if maxHandlingTimeout is not disabled ( set to 0) if ( maxHandlingTimeout > 0 ) { packet . setExpirationTime ( System . currentTimeMillis ( ) + maxHandlingTimeout ) ; } if ( executor != null ...
public class CompositeFileSystem { /** * { @ inheritDoc } */ public Entry [ ] listEntries ( DirectoryEntry directory ) { } }
Map < String , Entry > result = new TreeMap < String , Entry > ( ) ; for ( FileSystem delegate : delegates ) { Entry [ ] entries = delegate . listEntries ( DefaultDirectoryEntry . equivalent ( delegate , directory ) ) ; if ( entries == null ) { continue ; } for ( Entry entry : entries ) { if ( result . containsKey ( en...
public class Response { /** * Trigger a browser redirect * @ param location Where to redirect */ public void redirect ( String location ) { } }
if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "Redirecting ({} {} to {}" , "Found" , HttpServletResponse . SC_FOUND , location ) ; } try { response . sendRedirect ( location ) ; } catch ( IOException ioException ) { LOG . warn ( "Redirect failure" , ioException ) ; }
public class ResourceUtil { /** * First attempts to open open { @ code name } as a file . On fail attempts to * open resource with name { @ code name } . On fail attempts to open { @ code name } * as a URL . * @ param name name of the file or resource to open * @ return an input stream for reading the opened fi...
if ( name == null ) { throw new IllegalArgumentException ( "'name' must not be null" ) ; } final File file = new File ( name ) ; if ( file . exists ( ) ) { return getStream ( file ) ; } InputStream stream = Thread . currentThread ( ) . getContextClassLoader ( ) . getResourceAsStream ( name ) ; if ( stream != null ) { r...
public class CompositeScore { /** * Returns a new CompositeScore with the filtering remainder replaced and * covering matches recalculated . Other matches are not recalculated . * @ since 1.2 */ public CompositeScore < S > withRemainderFilter ( Filter < S > filter ) { } }
return new CompositeScore < S > ( mFilteringScore . withRemainderFilter ( filter ) , mOrderingScore ) ;
public class DatabaseThreatDetectionPoliciesInner { /** * Creates or updates a database ' s threat detection policy . * @ 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...
return createOrUpdateWithServiceResponseAsync ( resourceGroupName , serverName , databaseName , parameters ) . map ( new Func1 < ServiceResponse < DatabaseSecurityAlertPolicyInner > , DatabaseSecurityAlertPolicyInner > ( ) { @ Override public DatabaseSecurityAlertPolicyInner call ( ServiceResponse < DatabaseSecurityAle...
public class MutableChar { /** * Use the supplied function to perform a lazy transform operation when getValue is called * < pre > * { @ code * MutableChar mutable = MutableChar . fromExternal ( ( ) - > ! this . value , val - > ! this . value ) ; * Mutable < Character > withOverride = mutable . mapOutput ( b - ...
final MutableChar host = this ; return new Mutable < R > ( ) { @ Override public R get ( ) { return fn . apply ( host . get ( ) ) ; } } ;
public class Curve25519 { /** * / * Returns x if a contains the gcd , y if b . * Also , the returned buffer contains the inverse of a mod b , * as 32 - byte signed . * x and y must have 64 bytes space for temporary use . * requires that a [ - 1 ] and b [ - 1 ] are valid memory locations */ private static final ...
int an , bn = 32 , qn , i ; for ( i = 0 ; i < 32 ; i ++ ) x [ i ] = y [ i ] = 0 ; x [ 0 ] = 1 ; an = numsize ( a , 32 ) ; if ( an == 0 ) return y ; /* division by zero */ byte [ ] temp = new byte [ 32 ] ; while ( true ) { qn = bn - an + 1 ; divmod ( temp , b , bn , a , an ) ; bn = numsize ( b , bn ) ; if ( bn == 0 ) re...
public class StreamConduit { /** * Stop pumping the streams . */ private void stop ( ) { } }
finish ( inputThread ) ; try { err . flush ( ) ; } catch ( IOException e ) { // ignore } try { out . flush ( ) ; } catch ( IOException e ) { // ignore } finish ( outputThread ) ; finish ( errorThread ) ;
public class ThrowingBridge { /** * int */ public static PrimitiveIterator . OfInt of ( ThrowingIterator . OfInt < Nothing > itr ) { } }
return of ( itr , Nothing . class ) ;
public class ProviderInfo { /** * Gets weight . * @ return the weight */ public int getWeight ( ) { } }
ProviderStatus status = getStatus ( ) ; if ( status == ProviderStatus . WARMING_UP ) { try { // 还处于预热时间中 Integer warmUpWeight = ( Integer ) getDynamicAttr ( ProviderInfoAttrs . ATTR_WARMUP_WEIGHT ) ; if ( warmUpWeight != null ) { return warmUpWeight ; } } catch ( Exception e ) { return weight ; } } return weight ;
public class JDBC4ResultSet { /** * ResultSet object as a String in the Java programming language . */ @ Override public String getString ( int columnIndex ) throws SQLException { } }
checkColumnBounds ( columnIndex ) ; try { VoltType type = table . getColumnType ( columnIndex - 1 ) ; if ( type == VoltType . STRING ) return table . getString ( columnIndex - 1 ) ; if ( type == VoltType . TIMESTAMP ) return getTimestamp ( columnIndex ) . toString ( ) ; if ( type == VoltType . VARBINARY ) return Encode...
public class DRL6Expressions { /** * src / main / resources / org / drools / compiler / lang / DRL6Expressions . g : 807:1 : not _ key : { . . . } ? = > id = ID ; */ public final void not_key ( ) throws RecognitionException { } }
Token id = null ; try { // src / main / resources / org / drools / compiler / lang / DRL6Expressions . g : 808:5 : ( { . . . } ? = > id = ID ) // src / main / resources / org / drools / compiler / lang / DRL6Expressions . g : 808:12 : { . . . } ? = > id = ID { if ( ! ( ( ( helper . validateIdentifierKey ( DroolsSoftKey...
public class PdfContentByte { /** * Concatenate a matrix to the current transformation matrix . * @ param a an element of the transformation matrix * @ param b an element of the transformation matrix * @ param c an element of the transformation matrix * @ param d an element of the transformation matrix * @ pa...
content . append ( a ) . append ( ' ' ) . append ( b ) . append ( ' ' ) . append ( c ) . append ( ' ' ) ; content . append ( d ) . append ( ' ' ) . append ( e ) . append ( ' ' ) . append ( f ) . append ( " cm" ) . append_i ( separator ) ;
public class ConditionalFunctions { /** * Returned expression results in first non - MISSING , non - Inf number . * Returns MISSING or NULL if a non - number input is encountered first . */ public static Expression ifInf ( Expression expression1 , Expression expression2 , Expression ... others ) { } }
return build ( "IFINF" , expression1 , expression2 , others ) ;
public class InstallRemappedFileMojo { /** * Gets the path of the specified artifact within the local repository . Note that the returned path need not exist * ( yet ) . * @ param artifact The artifact whose local repo path should be determined , must not be < code > null < / code > . * @ return The absolute path...
String path = localRepository . pathOf ( artifact ) ; return new File ( localRepository . getBasedir ( ) , path ) ;
public class VirtualMachineScaleSetsInner { /** * Deletes virtual machines in a VM scale set . * @ param resourceGroupName The name of the resource group . * @ param vmScaleSetName The name of the VM scale set . * @ param instanceIds The virtual machine scale set instance ids . * @ throws IllegalArgumentExcepti...
return deleteInstancesWithServiceResponseAsync ( resourceGroupName , vmScaleSetName , instanceIds ) . toBlocking ( ) . last ( ) . body ( ) ;
public class InnerRankUpdate_DDRB { /** * Performs : < br > * < br > * A = A + & alpha ; B < sup > T < / sup > B * @ param blockLength Size of the block in the block matrix . * @ param alpha scaling factor for right hand side . * @ param A Block aligned submatrix . * @ param B Block aligned submatrix . */ p...
int heightB = B . row1 - B . row0 ; if ( heightB > blockLength ) throw new IllegalArgumentException ( "Height of B cannot be greater than the block length" ) ; int N = B . col1 - B . col0 ; if ( A . col1 - A . col0 != N ) throw new IllegalArgumentException ( "A does not have the expected number of columns based on B's ...
public class ConfigAdminServiceFactory { /** * ( non - Javadoc ) * @ see * org . osgi . framework . ServiceFactory # getService ( org . osgi . framework . Bundle , * org . osgi . framework . ServiceRegistration ) */ @ Override public ConfigurationAdmin getService ( Bundle bundle , ServiceRegistration < Configurat...
ServiceReference < ConfigurationAdmin > reference = registration . getReference ( ) ; ced . setServiceReference ( reference ) ; return new ConfigurationAdminImpl ( this , bundle ) ;
public class DefaultWriteFutureEx { /** * Returns a new { @ link DefaultWriteFuture } which is already marked as ' not written ' . */ public static WriteFutureEx newNotWrittenFuture ( IoSession session , Throwable cause ) { } }
DefaultWriteFutureEx unwrittenFuture = new DefaultWriteFutureEx ( session ) ; unwrittenFuture . setException ( cause ) ; return unwrittenFuture ;
public class Messages { /** * A list of errors that might have been generated from processes on this flow . * @ param errors * A list of errors that might have been generated from processes on this flow . */ public void setErrors ( java . util . Collection < String > errors ) { } }
if ( errors == null ) { this . errors = null ; return ; } this . errors = new java . util . ArrayList < String > ( errors ) ;
public class PDPageContentStreamExt { /** * Set the non - stroking color in the DeviceRGB color space . Range is 0 . . 255. * @ param r * The red value . * @ param g * The green value . * @ param b * The blue value . * @ throws IOException * If an IO error occurs while writing to the stream . * @ thro...
if ( _isOutside255Interval ( r ) || _isOutside255Interval ( g ) || _isOutside255Interval ( b ) ) { throw new IllegalArgumentException ( "Parameters must be within 0..255, but are (" + r + "," + g + "," + b + ")" ) ; } writeOperand ( r / 255f ) ; writeOperand ( g / 255f ) ; writeOperand ( b / 255f ) ; writeOperator ( ( ...
public class JsApiMessageImpl { /** * Add an item to the SystemContext under the given name . * Javadoc description supplied by JsApiMessage interface . */ @ Override public void putSystemContextItem ( String name , Serializable item ) throws IllegalArgumentException , IOException { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "putSystemContextItem" , new Object [ ] { name , item } ) ; /* If we have a non - null name */ if ( name != null ) { /* If we really have an item */ if ( item != null ) { /* If the item is of a JMS supported type , we...
public class AbstractCloseableIteratorCollection { /** * Copied from AbstractCollection since we need to close iterator */ @ Override public boolean retainAll ( Collection < ? > c ) { } }
boolean modified = false ; try ( CloseableIterator < O > it = iterator ( ) ) { while ( it . hasNext ( ) ) { if ( ! c . contains ( it . next ( ) ) ) { it . remove ( ) ; modified = true ; } } return modified ; }
public class ProtobufIDLProxy { /** * Creates the . * @ param reader the reader * @ param debug the debug * @ param path the path * @ return the map * @ throws IOException Signals that an I / O exception has occurred . */ public static Map < String , IDLProxyObject > create ( Reader reader , boolean debug , F...
return create ( reader , debug , path , true ) ;
public class AddOnWrapper { /** * Sets the issues that the newer version of the wrapped add - on or its extensions might have that prevents them from being * run . * The contents should be in HTML . * @ param updateIssues the running issues of the add - on or its extensions , empty if there ' s no issues . * @ ...
Validate . notNull ( updateIssues , "Parameter updateIssues must not be null." ) ; this . updateIssues = updateIssues ; this . addOnUpdateIssues = addOnIssues ;
public class AWSCodePipelineClient { /** * Gets a listing of all the webhooks in this region for this account . The output lists all webhooks and includes * the webhook URL and ARN , as well the configuration for each webhook . * @ param listWebhooksRequest * @ return Result of the ListWebhooks operation returned...
request = beforeClientExecution ( request ) ; return executeListWebhooks ( request ) ;
public class ListNumbers { /** * Tests whether the list contains a equally spaced numbers . * Always returns true if the list was created with { @ link # linearList ( double , double , int ) } * or { @ link # linearListFromRange ( double , double , int ) } . For all other cases , * takes the first and last value ...
if ( listNumber instanceof LinearListDouble || listNumber instanceof LinearListDoubleFromRange ) { return true ; } ListDouble diff = ListMath . subtract ( listNumber , linearListFromRange ( listNumber . getDouble ( 0 ) , listNumber . getDouble ( listNumber . size ( ) - 1 ) , listNumber . size ( ) ) ) ; for ( int i = 0 ...
public class UtilityElf { /** * Create a ThreadPoolExecutor . * @ param queueSize the queue size * @ param threadName the thread name * @ param threadFactory an optional ThreadFactory * @ param policy the RejectedExecutionHandler policy * @ return a ThreadPoolExecutor */ public static ThreadPoolExecutor creat...
if ( threadFactory == null ) { threadFactory = new DefaultThreadFactory ( threadName , true ) ; } LinkedBlockingQueue < Runnable > queue = new LinkedBlockingQueue < > ( queueSize ) ; ThreadPoolExecutor executor = new ThreadPoolExecutor ( 1 /* core */ , 1 /* max */ , 5 /* keepalive */ , SECONDS , queue , threadFactory ,...
public class Timestamp { /** * clean up timestamp argument assuming earliest possible values for missing * or bogus digits . * @ param timestamp String * @ return String */ public static String padStartDateStr ( String timestamp ) { } }
return boundTimestamp ( padDigits ( timestamp , LOWER_TIMESTAMP_LIMIT , UPPER_TIMESTAMP_LIMIT , LOWER_TIMESTAMP_LIMIT ) ) ;
public class OnlineVariance { /** * Adds a value to this variance . If the time between the previous addition * and this addition exceeds the age gap for this object , then the variance * will be reset to 0 before this value is added . * @ param value * the value to add . * @ return the current computed onlin...
long now = System . currentTimeMillis ( ) ; // If more than 15 seconds passed then clear the data since it is // too old at this point . if ( now - this . last_time > this . ageGap ) { this . reset ( ) ; } this . last_time = now ; if ( this . sizeHistory < this . maxHistory ) { this . sum += value ; this . sum_squares ...
public class ScanningQueryEngine { /** * Compute the columns that are defined in the supplied { @ link PlanNode plan node } . If the supplied plan node is not a * { @ link Type # PROJECT project node } , the method finds the first PROJECT node below the given node . * @ param optimizedPlan the optimized plan node i...
final PlanHints hints = context . getHints ( ) ; // Look for which columns to include in the results ; this will be defined by the highest PROJECT node . . . PlanNode project = optimizedPlan ; if ( project . getType ( ) != Type . PROJECT ) { project = optimizedPlan . findAtOrBelow ( Traversal . LEVEL_ORDER , Type . PRO...
public class BalancePlan { /** * Prints data distribution based on report from NameNode */ public static void logDataDistribution ( DatanodeInfo [ ] report ) { } }
if ( LOG . isInfoEnabled ( ) ) { double avgRemaining = computeAvgRemaining ( Arrays . asList ( report ) ) ; StringBuilder msg = new StringBuilder ( "Data distribution report: avgRemaining " + avgRemaining ) ; for ( DatanodeInfo node : report ) { msg . append ( "\n" ) . append ( node . getName ( ) ) ; msg . append ( " r...
public class SqlExecutor { /** * 执行查询语句 < br > * 此方法不会关闭Connection * @ param < T > 处理结果类型 * @ param conn 数据库连接对象 * @ param sql 查询语句 * @ param rsh 结果集处理对象 * @ param params 参数 * @ return 结果对象 * @ throws SQLException SQL执行异常 */ public static < T > T query ( Connection conn , String sql , RsHandler < T > rs...
PreparedStatement ps = null ; try { ps = StatementUtil . prepareStatement ( conn , sql , params ) ; return executeQuery ( ps , rsh ) ; } finally { DbUtil . close ( ps ) ; }
public class VirtualMachineScaleSetsInner { /** * Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set . This operation is only supported for managed disks . * @ param resourceGroupName The name of the resource group . * @ param vmScaleSetName The name of the VM scale set . * ...
return ServiceFuture . fromResponse ( reimageAllWithServiceResponseAsync ( resourceGroupName , vmScaleSetName ) , serviceCallback ) ;
public class ECoordinate { /** * Assigns sin ( angle ) to this coordinate . */ void sin ( ECoordinate angle ) { } }
double sinv = Math . sin ( angle . m_value ) ; double cosv = Math . cos ( angle . m_value ) ; m_value = sinv ; double absv = Math . abs ( sinv ) ; m_eps = ( Math . abs ( cosv ) + absv * 0.5 * angle . m_eps ) * angle . m_eps + epsCoordinate ( ) * absv ;
public class AbstractFilter { /** * Get the globals from the session * @ param req * @ return globals object */ public FilterGlobals getGlobals ( final HttpServletRequest req ) { } }
HttpSession sess = req . getSession ( ) ; if ( sess == null ) { // We ' re screwed return null ; } Object o = sess . getAttribute ( globalsName ) ; FilterGlobals fg ; if ( o == null ) { fg = newFilterGlobals ( ) ; sess . setAttribute ( globalsName , fg ) ; if ( debug ( ) ) { debug ( "Created new FilterGlobals from sess...
public class GPSPointDimensionMarshaller { /** * Marshall the given parameter object . */ public void marshall ( GPSPointDimension gPSPointDimension , ProtocolMarshaller protocolMarshaller ) { } }
if ( gPSPointDimension == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( gPSPointDimension . getCoordinates ( ) , COORDINATES_BINDING ) ; protocolMarshaller . marshall ( gPSPointDimension . getRangeInKilometers ( ) , RANGEINKILOMETERS_BINDI...
public class CmsEditProjectForm { /** * Creates a new project . < p > */ private void createProject ( ) { } }
CmsObject cms = A_CmsUI . getCmsObject ( ) ; try { String name = "/" ; if ( CmsStringUtil . isNotEmptyOrWhitespaceOnly ( m_fieldOU . getValue ( ) ) ) { name = CmsStringUtil . joinPaths ( name , m_fieldOU . getValue ( ) ) ; } if ( CmsStringUtil . isNotEmptyOrWhitespaceOnly ( m_fieldName . getValue ( ) ) ) { name = CmsSt...
public class NamedArgumentDefinition { /** * Return a string with the usage statement for this argument . * @ param allActualArguments { code Map } of all namedArgumentDefinitions for the containing object * @ param pluginDescriptors Collection of { @ code CommandLinePluginDescriptor } objects for the containing ob...
final StringBuilder sb = new StringBuilder ( ) ; sb . append ( "--" ) . append ( getLongName ( ) ) ; if ( ! getShortName ( ) . isEmpty ( ) ) { sb . append ( ",-" ) . append ( getShortName ( ) ) ; } sb . append ( ":" ) . append ( getUnderlyingFieldClass ( ) . getSimpleName ( ) ) ; int labelLength = sb . toString ( ) . l...
public class Utilities { /** * Set value to a variable ( null is forbiden , so set default value ) . * @ param value * is value setted if value is not null . * @ param defValue * is value setted if value is null . * @ return a { link java . lang . String } with the value not null . */ public static String set...
if ( value != null && ! "" . equals ( value ) ) { return value ; } return defValue ;
public class Tooltip { /** * Call the native tooltip method with the given argument . * @ param e the { @ link Element } . * @ param arg the arg */ private void call ( final Element e , final String arg ) { } }
JQuery . jQuery ( e ) . tooltip ( arg ) ;
public class FreeMarkerRequestHandler { /** * Build a freemarker model holding the information associated with the * session . * This model provides : * * The ` locale ` ( of type { @ link Locale } ) . * * The ` resourceBundle ` ( of type { @ link ResourceBundle } ) . * * A function " ` _ ` " that looks up th...
@ SuppressWarnings ( "PMD.UseConcurrentHashMap" ) final Map < String , Object > model = new HashMap < > ( ) ; Locale locale = session . map ( sess -> sess . locale ( ) ) . orElse ( Locale . getDefault ( ) ) ; model . put ( "locale" , locale ) ; final ResourceBundle resourceBundle = resourceBundle ( locale ) ; model . p...
public class DeviceAttributes { /** * < pre > * String representation of device _ type . * < / pre > * < code > optional string device _ type = 2 ; < / code > */ public com . google . protobuf . ByteString getDeviceTypeBytes ( ) { } }
java . lang . Object ref = deviceType_ ; if ( ref instanceof java . lang . String ) { com . google . protobuf . ByteString b = com . google . protobuf . ByteString . copyFromUtf8 ( ( java . lang . String ) ref ) ; deviceType_ = b ; return b ; } else { return ( com . google . protobuf . ByteString ) ref ; }
public class IconicsDrawable { /** * Set the color of the drawable . * @ param colors The color , usually from android . graphics . Color or 0xFF012345. * @ return The current IconicsDrawable for chaining . */ @ NonNull public IconicsDrawable color ( @ NonNull ColorStateList colors ) { } }
if ( colors != null ) { mIconBrush . setColors ( colors ) ; if ( mIconBrush . applyState ( getState ( ) ) ) { invalidateSelf ( ) ; } } return this ;
public class StringUtils { /** * Constructs a String with only spaces up to the specified length . * @ param number an integer value indicating the number of spaces in the String . * @ return a String containing the specified number of spaces . */ public static String getSpaces ( int number ) { } }
Assert . argument ( number >= 0 , "The number [{0}] of desired spaces must be greater than equal to 0" , number ) ; StringBuilder spaces = new StringBuilder ( Math . max ( number , 0 ) ) ; while ( number > 0 ) { int count = Math . min ( SPACES . length - 1 , number ) ; spaces . append ( SPACES [ count ] ) ; number -= c...
public class GZIPArchiveReader { /** * Reads the GZIP entry header ( popluating the entry metadata , except for the CRC ) . * @ param entry the entry where to store the entry metadata ( except for the CRC that is read with the trailer ) . * @ return the number of bytes consumed while reading the header , or - 1 in ...
final GZIPArchive . ReadEntry entry = new GZIPArchive . ReadEntry ( ) ; byte [ ] buffer = headerBuffer ; // local copy for efficiency reasons // ID1 ID2 CM FLG if ( input . read ( buffer , 0 , 4 ) == - 1 ) return null ; if ( buffer [ 0 ] != GZIPArchive . GZIP_START [ 0 ] || buffer [ 1 ] != GZIPArchive . GZIP_START [ 1 ...
public class CloudBigtableScanConfiguration { /** * Converts a { @ link CloudBigtableTableConfiguration } object to a * { @ link CloudBigtableScanConfiguration } that will perform the specified { @ link Scan } on the * table . * @ param config The { @ link CloudBigtableTableConfiguration } object . * @ param sc...
CloudBigtableScanConfiguration . Builder builder = new CloudBigtableScanConfiguration . Builder ( ) ; config . copyConfig ( builder ) ; return builder . withScan ( scan ) . build ( ) ;
public class AFTagAttributes { /** * This method is used exclusively to get the pass through attributes ! * Namespaces http : / / xmlns . jcp . org / jsf / passthrough and http : / / xmlns . jcp . org / jsf / passthrough * Get all TagAttributesImpl for the passed namespace * @ param namespace * namespace to sea...
if ( namespace == null ) namespace = "" ; List < TagAttribute > list = new ArrayList < TagAttribute > ( ) ; for ( TagAttribute a : attrs ) { if ( namespace . equals ( a . getNamespace ( ) ) ) { list . add ( a ) ; } } TagAttribute [ ] result = new TagAttribute [ list . size ( ) ] ; list . toArray ( result ) ; return res...
public class Config { /** * Creates a group analyzer for an area using the selected implementation . * @ param root the root area for separator detection * @ return the created group analyzer */ public static GroupAnalyzer createGroupAnalyzer ( AreaImpl root ) { } }
// return new org . fit . segm . grouping . op . GroupAnalyzerByGrouping ( root ) ; // return new org . fit . segm . grouping . op . GroupAnalyzerBySeparators ( root ) ; // return new org . fit . segm . grouping . op . GroupAnalyzerByGroupingAndSeparators ( root ) ; // return new org . fit . segm . grouping . op . Grou...
public class Unchecked { /** * Wrap a { @ link org . jooq . lambda . fi . util . function . CheckedBiConsumer } in a { @ link BiConsumer } . * Example : * < code > < pre > * map . forEach ( Unchecked . biConsumer ( ( k , v ) - > { * if ( k = = null | | v = = null ) * throw new Exception ( " No nulls allowed i...
return biConsumer ( consumer , THROWABLE_TO_RUNTIME_EXCEPTION ) ;
public class FacebookBatcher { /** * / * ( non - Javadoc ) * @ see com . googlecode . batchfb . Batcher # queryFirst ( java . lang . String , java . lang . Class ) */ @ Override public < T > Later < T > queryFirst ( String fql , Class < T > type ) { } }
return this . getBatchForQuery ( ) . queryFirst ( fql , type ) ;
public class SegmentFelzenszwalbHuttenlocher04 { /** * Finds the root given child . If the child does not point directly to the parent find the parent and make * the child point directly towards it . */ protected int find ( int child ) { } }
int root = graph . data [ child ] ; if ( root == graph . data [ root ] ) return root ; int inputChild = child ; while ( root != child ) { child = root ; root = graph . data [ child ] ; } graph . data [ inputChild ] = root ; return root ;
public class AssertUtils { /** * Checks if the provided String is blank , meaning it is empty or contains whitespace only . * @ param string * the String to check , may be { @ code null } * @ return { @ code true } if the String is blank , false otherwise */ public static final boolean stringIsBlank ( final Strin...
if ( string == null || string . length ( ) == 0 ) { return true ; } int stringLength = string . length ( ) ; for ( int i = 0 ; i < stringLength ; i ++ ) { if ( Character . isWhitespace ( string . charAt ( i ) ) == false ) { return false ; } } return true ;
public class WebContainerBase { /** * { @ inheritDoc } * @ see org . jboss . shrinkwrap . api . container . WebContainer # addAsWebInfResources ( java . lang . Package , java . lang . String [ ] ) */ @ Override public T addAsWebInfResources ( final Package resourcePackage , final String ... resourceNames ) throws Ill...
Validate . notNull ( resourcePackage , "ResourcePackage must be specified" ) ; Validate . notNullAndNoNullValues ( resourceNames , "ResourceNames must be specified and can not container null values" ) ; for ( String resourceName : resourceNames ) { addAsWebInfResource ( resourcePackage , resourceName ) ; } return covar...
public class DefaultAndroidApp { /** * ( non - Javadoc ) * @ see io . selendroid . android . impl . AndroidAppA # getBasePackage ( ) */ @ Override public String getBasePackage ( ) throws AndroidSdkException { } }
if ( mainPackage == null ) { try { mainPackage = extractApkDetails ( "package: name='(.*?)'" ) ; } catch ( ShellCommandException e ) { throw new SelendroidException ( "The base package name of the apk " + apkFile . getName ( ) + " cannot be extracted." ) ; } } return mainPackage ;
public class SibTr { /** * Forward an Warning message event to all registered * < code > TraceEventListener < / code > s if permitted by the Suppressor . * Each < code > TraceEventListener < / code > will then * determine whether to log or ignore the forward event . * @ param tc the non - null < code > TraceCom...
SibMessage . SuppressableWarning ( s , getMEName ( null ) , tc , msgKey , objs ) ;
public class EvenMoreObjects { /** * Configures { @ code builder } using { @ code consumer } and then builds it using { @ code creator } . * @ param builder the builder * @ param consumer the consumer * @ param creator the creator * @ param < B > the builder type * @ param < C > the creator type * @ return ...
return creator . apply ( make ( builder , consumer ) ) ;
public class GeneratorSetDocReader { /** * Returns a { @ link GeneratorSet } instance . */ public IGeneratorSet getGeneratorSet ( ) { } }
SAXParser parser ; try { parser = SAXParserFactory . newInstance ( ) . newSAXParser ( ) ; } catch ( Exception e ) { throw new RuntimeException ( "Can't create SAXParser" , e ) ; } try { parser . parse ( getInputStream ( ) , this ) ; } catch ( SAXParseException spe ) { throw new RuntimeException ( "Error in document at ...
public class PortletDescriptorImpl { /** * If not already created , a new < code > custom - portlet - mode < / code > element will be created and returned . * Otherwise , the first existing < code > custom - portlet - mode < / code > element will be returned . * @ return the instance defined for the element < code ...
List < Node > nodeList = model . get ( "custom-portlet-mode" ) ; if ( nodeList != null && nodeList . size ( ) > 0 ) { return new CustomPortletModeTypeImpl < PortletDescriptor > ( this , "custom-portlet-mode" , model , nodeList . get ( 0 ) ) ; } return createCustomPortletMode ( ) ;
public class Node { /** * Virtualized support for map . get ( ) ; overridden in subclasses . */ Node < K , V > find ( int h , Object k ) { } }
Node < K , V > e = this ; if ( k != null ) { do { K ek ; if ( e . hash == h && ( ( ek = e . key ) == k || ( ek != null && k . equals ( ek ) ) ) ) return e ; } while ( ( e = e . next ) != null ) ; } return null ;
public class EmailSender { /** * Send email with a string content . * @ param to destination email address * @ param subject email subject * @ param content email content * @ throws MessagingException message exception */ public void sendMail ( String to , String subject , String content ) throws MessagingExcep...
Properties props = new Properties ( ) ; props . put ( "mail.smtp.user" , emailConfg . getUser ( ) ) ; props . put ( "mail.smtp.host" , emailConfg . getHost ( ) ) ; props . put ( "mail.smtp.port" , emailConfg . getPort ( ) ) ; props . put ( "mail.smtp.starttls.enable" , "true" ) ; props . put ( "mail.smtp.debug" , email...
public class RestrictedGuacamoleTunnelService { /** * Attempts to add a single instance of the given value to the given * multiset without exceeding the specified maximum number of values . If * the value cannot be added without exceeding the maximum , false is * returned . * @ param < T > * The type of value...
// Repeatedly attempt to add a new value to the given multiset until we // explicitly succeed or explicitly fail while ( true ) { // Get current number of values int count = multiset . count ( value ) ; // Bail out if the maximum has already been reached if ( count >= max && max != 0 ) return false ; // Attempt to add ...
public class ControlHandler { /** * Start a new thread to shutdown the server */ private void stopServer ( ) { } }
// Get current server final Server targetServer = this . getServer ( ) ; // Start a new thread in order to escape the destruction of this Handler // during the stop process . new Thread ( ) { @ Override public void run ( ) { try { targetServer . stop ( ) ; } catch ( Exception e ) { // ignore } } } . start ( ) ;
public class TextBuffer { /** * Similar to { @ link # resetWithEmpty } , but actively marks current * text content to be empty string ( whereas former method leaves * content as undefined ) . */ public void resetWithEmptyString ( ) { } }
mInputBuffer = null ; mInputStart = - 1 ; // indicates shared buffer not used mInputLen = 0 ; mResultString = "" ; mResultArray = null ; if ( mHasSegments ) { clearSegments ( ) ; } mCurrentSize = 0 ;
public class TrackerMeanShiftComaniciu2003 { /** * Searches for the target in the most recent image . * @ param image Most recent image in the sequence */ public void track ( T image ) { } }
// configure the different regions based on size region0 . set ( region ) ; region1 . set ( region ) ; region2 . set ( region ) ; region0 . width *= 1 - scaleChange ; region0 . height *= 1 - scaleChange ; region2 . width *= 1 + scaleChange ; region2 . height *= 1 + scaleChange ; // distance from histogram double distan...
public class BioAssemblyTools { /** * Returns the maximum extend of the biological molecule in the x , y , or z direction . * @ param structure * @ return maximum extend */ public static double getBiologicalMoleculeMaximumExtend ( final Structure structure , List < BiologicalAssemblyTransformation > transformations...
double [ ] [ ] bounds = getBiologicalMoleculeBounds ( structure , transformations ) ; double xMax = Math . abs ( bounds [ 0 ] [ 0 ] - bounds [ 1 ] [ 0 ] ) ; double yMax = Math . abs ( bounds [ 0 ] [ 1 ] - bounds [ 1 ] [ 1 ] ) ; double zMax = Math . abs ( bounds [ 0 ] [ 2 ] - bounds [ 1 ] [ 2 ] ) ; return Math . max ( x...
public class BatchTask { /** * Creates the record readers for the number of inputs as defined by { @ link # getNumTaskInputs ( ) } . * This method requires that the task configuration , the driver , and the user - code class loader are set . */ protected void initInputReaders ( ) throws Exception { } }
final int numInputs = getNumTaskInputs ( ) ; final MutableReader < ? > [ ] inputReaders = new MutableReader < ? > [ numInputs ] ; int currentReaderOffset = 0 ; for ( int i = 0 ; i < numInputs ; i ++ ) { // - - - - - create the input readers - - - - - // in case where a logical input unions multiple physical inputs , cr...
public class Point2i { /** * Convert the given tuple to a real Point2i . * < p > If the given tuple is already a Point2i , it is replied . * @ param tuple the tuple . * @ return the Point2i . * @ since 14.0 */ public static Point2i convert ( Tuple2D < ? > tuple ) { } }
if ( tuple instanceof Point2i ) { return ( Point2i ) tuple ; } return new Point2i ( tuple . getX ( ) , tuple . getY ( ) ) ;
public class IntBuffer { /** * Returns a duplicated buffer that shares its content with this buffer . * < p > The duplicated buffer ' s position , limit , capacity and mark are the same as this buffer . * The duplicated buffer ' s read - only property and byte order are the same as this buffer ' s . * < p > The n...
IntBuffer buf = new IntBuffer ( ( ByteBuffer ) byteBuffer . duplicate ( ) ) ; buf . limit = limit ; buf . position = position ; buf . mark = mark ; return buf ;
public class ResourceObjectIncludeImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public void eUnset ( int featureID ) { } }
switch ( featureID ) { case AfplibPackage . RESOURCE_OBJECT_INCLUDE__OBJ_TYPE : setObjType ( OBJ_TYPE_EDEFAULT ) ; return ; case AfplibPackage . RESOURCE_OBJECT_INCLUDE__OBJ_NAME : setObjName ( OBJ_NAME_EDEFAULT ) ; return ; case AfplibPackage . RESOURCE_OBJECT_INCLUDE__XOBJ_OSET : setXobjOset ( XOBJ_OSET_EDEFAULT ) ; ...
public class Main { /** * Sets whether execution should break when a script exception is thrown . */ public void setBreakOnExceptions ( boolean value ) { } }
dim . setBreakOnExceptions ( value ) ; debugGui . getMenubar ( ) . getBreakOnExceptions ( ) . setSelected ( value ) ;
public class ComponentImpl { /** * will be called after invoking constructor , only invoked by constructor ( component body execution ) * @ param pc * @ param parent * @ throws ApplicationException */ public void afterConstructor ( PageContext pc , Variables parent ) throws ApplicationException { } }
pc . setVariablesScope ( parent ) ; this . afterConstructor = true ; /* * if ( constructorUDFs ! = null ) { Iterator < Entry < Key , UDF > > it = constructorUDFs . entrySet ( ) . iterator ( ) ; * Map . Entry < Key , UDF > entry ; Key key ; UDFPlus udf ; PageSource ps ; while ( it . hasNext ( ) ) { * entry = it . ne...
public class AbstractResult { /** * Computes the sum over all data items . * @ param meter the meter of the mean * @ return the sum of all runs . */ public final double sum ( final AbstractMeter meter ) { } }
checkIfMeterExists ( meter ) ; final AbstractUnivariateStatistic sum = new Sum ( ) ; final CollectionDoubleCollection doubleColl = new CollectionDoubleCollection ( this . meterResults . get ( meter ) ) ; return sum . evaluate ( doubleColl . toArray ( ) , 0 , doubleColl . toArray ( ) . length ) ;
public class LzoTextInputFormat { /** * Index an lzo file to allow the input format to split them into separate map * jobs . * @ param fs * File system that contains the file . * @ param lzoFile * the lzo file to index . * @ throws IOException */ public static void createIndex ( FileSystem fs , Path lzoFile...
Configuration conf = fs . getConf ( ) ; CompressionCodecFactory factory = new CompressionCodecFactory ( fs . getConf ( ) ) ; CompressionCodec codec = factory . getCodec ( lzoFile ) ; ( ( Configurable ) codec ) . setConf ( conf ) ; InputStream lzoIs = null ; FSDataOutputStream os = null ; Path outputFile = new Path ( lz...
public class Strands { /** * This utility method prints a stack - trace into a { @ link java . io . PrintStream } * @ param trace a stack trace ( such as returned from { @ link Strand # getStackTrace ( ) } . * @ param out the { @ link java . io . PrintStream } into which the stack trace will be printed . */ public ...
Strand . printStackTrace ( trace , out ) ;
public class WebServiceRefBindingBuilder { /** * This method will be used to create an instance of a WebServiceRefBinding object * that holds metadata obtained from an @ Resource annotation . The @ Resource annotation * in this case would have been indicating a JAX - WS service type injection . */ static InjectionB...
InjectionBinding < WebServiceRef > binding = null ; WebServiceRef wsRef = createWebServiceRefFromResource ( resource , serviceClass , jndiName ) ; WebServiceRefInfo wsrInfo = WebServiceRefInfoBuilder . buildWebServiceRefInfo ( wsRef , cnsConfig . getClassLoader ( ) ) ; wsrInfo . setClientMetaData ( JaxWsMetaDataManager...
public class DefaultLocaleProvider { /** * Retrieves the serialized XML for the given locale from the classpath . * For example , if the locale is < code > en - US < / code > this method loads * the file < code > / locales - en - US . xml < / code > from the classpath . */ @ Override public String retrieveLocale ( ...
String r = locales . get ( lang ) ; if ( r == null ) { try { URL u = getClass ( ) . getResource ( "/locales-" + lang + ".xml" ) ; if ( u == null ) { throw new IllegalArgumentException ( "Unable to load locale " + lang + ". Make sure you have a file called " + "'/locales-" + lang + ".xml' at the root of your " + "classp...
public class OCP_Sample { /** * tag OCP request - > HTTPMessage */ public static void httpComponent ( HttpPut request , String auth ) { } }
auth = auth + "password" ; request . addHeader ( "Authorization" , Base64 . encodeBase64String ( auth . getBytes ( StandardCharsets . UTF_8 ) ) ) ;
public class PythonStreamExecutionEnvironment { /** * A thin wrapper layer over { @ link StreamExecutionEnvironment # readTextFile ( java . lang . String ) } . * @ param path The path of the file , as a URI ( e . g . , " file : / / / some / local / file " or " hdfs : / / host : port / file / path " ) . * @ return T...
return new PythonDataStream < > ( env . readTextFile ( path ) . map ( new AdapterMap < String > ( ) ) ) ;
public class CheckArg { /** * Asserts that the specified first object is { @ link Object # equals ( Object ) equal to } the specified second object . This method * does take null references into consideration . * @ param < T > * @ param argument The argument to assert equal to < code > object < / code > . * @ p...
if ( argument == null ) { if ( object == null ) return ; // fall through . . . one is null } else { if ( argument . equals ( object ) ) return ; // fall through . . . they are not equal } if ( objectName == null ) objectName = getObjectName ( object ) ; throw new IllegalArgumentException ( CommonI18n . argumentMustBeEq...
public class MethodReturnsConstant { /** * implements the visitor to look for methods that return a constant * @ param seen * the opcode of the currently parsed instruction */ @ Override public void sawOpcode ( int seen ) { } }
boolean sawSBToString = false ; try { stack . precomputation ( this ) ; if ( ( seen >= Const . IRETURN ) && ( seen <= Const . ARETURN ) ) { if ( stack . getStackDepth ( ) > 0 ) { OpcodeStack . Item item = stack . getStackItem ( 0 ) ; Integer register = Integer . valueOf ( item . getRegisterNumber ( ) ) ; Object constan...
public class AbstractArakhneMojo { /** * Join the values with the given joint . * @ param joint the joint . * @ param values the values . * @ return the jointed values */ public static String join ( String joint , String ... values ) { } }
final StringBuilder b = new StringBuilder ( ) ; for ( final String value : values ) { if ( value != null && ! EMPTY_STRING . equals ( value ) ) { if ( b . length ( ) > 0 ) { b . append ( joint ) ; } b . append ( value ) ; } } return b . toString ( ) ;
public class ActivityChooserModel { /** * Gets the index of a the given activity . * @ param activity The activity index . * @ return The index if found , - 1 otherwise . */ public int getActivityIndex ( ResolveInfo activity ) { } }
List < ActivityResolveInfo > activities = mActivites ; final int activityCount = activities . size ( ) ; for ( int i = 0 ; i < activityCount ; i ++ ) { ActivityResolveInfo currentActivity = activities . get ( i ) ; if ( currentActivity . resolveInfo == activity ) { return i ; } } return INVALID_INDEX ;
public class nstcpparam { /** * Use this API to unset the properties of nstcpparam resource . * Properties that need to be unset are specified in args array . */ public static base_response unset ( nitro_service client , nstcpparam resource , String [ ] args ) throws Exception { } }
nstcpparam unsetresource = new nstcpparam ( ) ; return unsetresource . unset_resource ( client , args ) ;
public class ReplicationLinksInner { /** * Sets which replica database is primary by failing over from the current primary replica database . This operation might result in data loss . * @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Reso...
beginFailoverAllowDataLossWithServiceResponseAsync ( resourceGroupName , serverName , databaseName , linkId ) . toBlocking ( ) . single ( ) . body ( ) ;
public class PasswordSpec { /** * Parse a string representation of password spec . * A password spec string should be ` < trait spec > < length spec > ` . * Where " trait spec " should be a composition of * * ` a ` - indicate lowercase letter required * * ` A ` - indicate uppercase letter required * * ` 0 ` -...
char [ ] ca = spec . toCharArray ( ) ; int len = ca . length ; illegalIf ( 0 == len , spec ) ; Builder builder = new Builder ( ) ; StringBuilder minBuf = new StringBuilder ( ) ; StringBuilder maxBuf = new StringBuilder ( ) ; boolean lenSpecStart = false ; boolean minPart = false ; for ( int i = 0 ; i < len ; ++ i ) { c...