signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class AbstractMultiSend { /** * Execute Bulk execution ( send packets by batch of useBatchMultiSendNumber or when max packet is
* reached ) before reading results .
* @ param estimatedParameterCount parameter counter
* @ return prepare result
* @ throws SQLException if any error occur */
private PrepareR... | int totalExecutionNumber = getTotalExecutionNumber ( ) ; SQLException exception = null ; BulkStatus status = new BulkStatus ( ) ; ComStmtPrepare comStmtPrepare = null ; FutureTask < AsyncMultiReadResult > futureReadTask = null ; int requestNumberByBulk ; int paramCount = estimatedParameterCount ; try { do { status . se... |
public class AWSKMSClient { /** * Returns the items you need in order to import key material into AWS KMS from your existing key management
* infrastructure . For more information about importing key material into AWS KMS , see < a
* href = " http : / / docs . aws . amazon . com / kms / latest / developerguide / im... | request = beforeClientExecution ( request ) ; return executeGetParametersForImport ( request ) ; |
public class BeanParserFactory { /** * 注册 { @ link BeanParser }
* @ param supportClasses 该bean parser支持的数据类型 */
public static void registerBeanParser ( BeanParser beanParser , Class < ? > ... supportClasses ) { } } | for ( Class < ? > supportClass : supportClasses ) { typeBeanParserMap . put ( supportClass , beanParser ) ; } |
public class RegisterContainerInstanceRequest { /** * The resources available on the instance .
* @ return The resources available on the instance . */
public java . util . List < Resource > getTotalResources ( ) { } } | if ( totalResources == null ) { totalResources = new com . amazonaws . internal . SdkInternalList < Resource > ( ) ; } return totalResources ; |
public class CollectionModel { /** * Creates a new { @ link CollectionModel } instance by wrapping the given domain class instances into a
* { @ link EntityModel } .
* @ param content must not be { @ literal null } .
* @ return */
@ SuppressWarnings ( "unchecked" ) public static < T extends EntityModel < S > , S ... | Assert . notNull ( content , "Content must not be null!" ) ; ArrayList < T > resources = new ArrayList < > ( ) ; for ( S element : content ) { resources . add ( ( T ) new EntityModel < > ( element ) ) ; } return new CollectionModel < > ( resources ) ; |
public class PRJUtil { /** * Return the content of the PRJ file as a single string
* @ param prjFile
* @ return
* @ throws FileNotFoundException
* @ throws IOException */
private static String readPRJFile ( File prjFile ) throws FileNotFoundException , IOException { } } | try ( FileInputStream fis = new FileInputStream ( prjFile ) ) { BufferedReader r = new BufferedReader ( new InputStreamReader ( fis , Charset . defaultCharset ( ) ) ) ; StringBuilder b = new StringBuilder ( ) ; while ( r . ready ( ) ) { b . append ( r . readLine ( ) ) ; } return b . toString ( ) ; } |
public class DerbyDatabase { /** * This is the Derby specific implementation of an all deletion . Following
* order is used to remove all eFaps specific information :
* < ul >
* < li > remove all foreign keys of the user < / li >
* < li > remove all views of the user < / li >
* < li > remove all tables of the... | final Statement stmtSel = _con . createStatement ( ) ; final Statement stmtExec = _con . createStatement ( ) ; try { // remove all foreign keys
if ( DerbyDatabase . LOG . isInfoEnabled ( ) ) { DerbyDatabase . LOG . info ( "Remove all Foreign Keys" ) ; } ResultSet rs = stmtSel . executeQuery ( DerbyDatabase . SELECT_ALL... |
public class PhoneNumberServiceController { /** * parse and reformat the phone number in all available formats .
* @ param planguage language to use
* @ param pcountry default country
* @ param pphoneNumber phone number to format
* @ return PhoneNumberDataWithFormats */
@ RequestMapping ( value = PhoneNumber . ... | final PhoneNumberDataWithFormats result = new PhoneNumberDataWithFormats ( phoneNumberUtil . parsePhoneNumber ( pphoneNumber , pcountry , LocaleUtil . convertLanguageToLocale ( planguage ) ) ) ; result . setCommonInternational ( phoneNumberUtil . formatCommonInternational ( result ) ) ; result . setCommonNational ( pho... |
public class BookKeeperJournalManager { /** * Check if a path exists in ZooKeeper
* @ param path The ZNode path to check
* @ return True if path exists , false if otherwise
* @ throws IOException If there is an error talking to ZooKeeper */
private boolean zkPathExists ( String path ) throws IOException { } } | try { return zk . exists ( path , false ) != null ; } catch ( KeeperException e ) { keeperException ( "Unrecoverable ZooKeeper error checking if " + path + " exists" , e ) ; } catch ( InterruptedException e ) { interruptedException ( "Interrupted checking if ZooKeeper path " + path + " exists" , e ) ; } return false ; ... |
public class Endpoints { /** * Convert an address string of the form < em > " host : port " < / em > into a { @ link HostAndPort } instance .
* @ param endpoint non - empty address string
* @ return a valid { @ code HostAndPort } instance . Callers can use
* { @ link com . google . common . net . HostAndPort # ge... | HostAndPort hostAndPort = HostAndPort . fromString ( endpoint ) ; String host = hostAndPort . getHostText ( ) ; checkState ( host != null && ! host . isEmpty ( ) , "invalid host" ) ; int Port = hostAndPort . getPort ( ) ; checkState ( Port > 0 , "invalid port" ) ; return hostAndPort ; |
public class ErrorDetectingWrapper { /** * Throw the appropriate exception for the given legacy code and message .
* Always throws , never returns . */
protected void throwCodeAndMessage ( int code , String msg ) { } } | switch ( code ) { case 0 : case 101 : case 102 : case 190 : throw new OAuthException ( msg , "OAuthException" , code , null , null , null ) ; default : throw new ErrorFacebookException ( msg + " (code " + code + ")" , null , code , null , null , null ) ; } |
public class TypeSimplifier { /** * Finds all types that are declared with non private visibility by the given { @ code TypeMirror } ,
* any class in its superclass chain , or any interface it implements . */
private static Set < TypeMirror > nonPrivateDeclaredTypes ( Types typeUtils , TypeMirror type ) { } } | if ( type == null ) { return new TypeMirrorSet ( ) ; } else { Set < TypeMirror > declared = new TypeMirrorSet ( ) ; declared . add ( type ) ; List < TypeElement > nestedTypes = ElementFilter . typesIn ( typeUtils . asElement ( type ) . getEnclosedElements ( ) ) ; for ( TypeElement nestedType : nestedTypes ) { if ( ! ne... |
public class YearMonth { /** * Returns a copy of this year - month with the year field updated .
* YearMonth is immutable , so there are no set methods .
* Instead , this method returns a new instance with the value of
* year changed .
* @ param year the year to set
* @ return a copy of this object with the f... | int [ ] newValues = getValues ( ) ; newValues = getChronology ( ) . year ( ) . set ( this , YEAR , newValues , year ) ; return new YearMonth ( this , newValues ) ; |
public class JdbcClient { @ Override public List < com . enioka . jqm . api . Queue > getQueues ( ) { } } | List < com . enioka . jqm . api . Queue > res = new ArrayList < > ( ) ; DbConn cnx = null ; com . enioka . jqm . api . Queue tmp = null ; try { cnx = getDbSession ( ) ; for ( Queue q : Queue . select ( cnx , "q_select_all" ) ) { tmp = getQueue ( q ) ; res . add ( tmp ) ; } return res ; } catch ( Exception e ) { throw n... |
public class BlobSnippets { /** * [ TARGET reload ( BlobSourceOption . . . ) ] */
public Blob reload ( ) { } } | // [ START reload ]
Blob latestBlob = blob . reload ( BlobSourceOption . generationNotMatch ( ) ) ; if ( latestBlob == null ) { // the blob was not found
} // [ END reload ]
return latestBlob ; |
public class JsonArray { /** * Returns the value at { @ code index } .
* @ throws JsonException if this array has no value at { @ code index } , or if
* that value is the { @ code null } reference . This method returns
* normally if the value is { @ code JsonObject # NULL } . */
public JsonElement get ( int index... | try { JsonElement value = values . get ( index ) ; if ( value == null ) { throw new JsonException ( "Value at " + index + " is null." ) ; } return value ; } catch ( IndexOutOfBoundsException e ) { throw new JsonException ( "Index " + index + " out of range [0.." + values . size ( ) + ")" ) ; } |
public class SSLInformationAssociationHandler { /** * Return the chain of X509 certificates used to negotiate the SSL Session .
* We convert JSSE ' s javax . security . cert . X509Certificate [ ] to servlet ' s java . security . cert . X509Certificate [ ]
* @ param session the javax . net . ssl . SSLSession to use ... | try { javax . security . cert . X509Certificate [ ] javaxCerts = session . getPeerCertificateChain ( ) ; if ( javaxCerts == null || javaxCerts . length == 0 ) { return null ; } X509Certificate [ ] javaCerts = new X509Certificate [ javaxCerts . length ] ; java . security . cert . CertificateFactory cf = java . security ... |
public class Visitors { /** * Visit the supplied { @ link Visitable object } using the supplied { @ link Visitor } , which must be responsible for navigation as
* well as any business logic .
* @ param < GeneralVisitor > the type of visitor
* @ param visitable the top - level object to be visited
* @ param visi... | if ( visitable != null ) visitable . accept ( visitor ) ; return visitor ; |
public class BusItineraryHalt { /** * Replies the distance between the position of this bus itinerary halt
* and the position of the bus stop associated to this bus itinerary
* halt .
* @ return the distance between the position of this bus itinerary halt
* and the position of the bus stop associated to this bu... | final Point2d p1 = getPosition2D ( ) ; if ( p1 != null ) { final BusStop stop = getBusStop ( ) ; if ( stop != null ) { final Point2d p2 = stop . getPosition2D ( ) ; if ( p2 != null ) { return p1 . getDistance ( p2 ) ; } } } return Double . NaN ; |
public class SizedResourcePoolImpl { /** * { @ inheritDoc }
* @ throws IllegalArgumentException { @ inheritDoc } */
@ Override public void validateUpdate ( final ResourcePool newPool ) { } } | super . validateUpdate ( newPool ) ; SizedResourcePool sizedPool = ( SizedResourcePool ) newPool ; // Ensure unit type has not changed
if ( ! this . getUnit ( ) . getClass ( ) . equals ( sizedPool . getUnit ( ) . getClass ( ) ) ) { throw new IllegalArgumentException ( "ResourcePool for " + sizedPool . getType ( ) + " w... |
public class Calendar { /** * utility function for setRelatedYear */
private static int firstIslamicStartYearFromGrego ( int year ) { } } | // ad hoc conversion , improve under # 10752
// rough est for now , ok for grego 1846-2138,
// otherwise occasionally wrong ( for 3 % of years )
int cycle , offset , shift = 0 ; if ( year >= 1977 ) { cycle = ( year - 1977 ) / 65 ; offset = ( year - 1977 ) % 65 ; shift = 2 * cycle + ( ( offset >= 32 ) ? 1 : 0 ) ; } else... |
public class CapacityFactory { /** * Load the incrementer
* @ param incrementer The incrementer metadata to load as class instance
* @ param classLoaderPlugin class loader plugin to use to load class
* @ return The incrementer */
private static CapacityIncrementer loadIncrementer ( Extension incrementer , ClassLo... | Object result = loadExtension ( incrementer , classLoaderPlugin ) ; if ( result != null && result instanceof CapacityIncrementer ) { return ( CapacityIncrementer ) result ; } log . debugf ( "%s wasn't a CapacityIncrementer" , incrementer . getClassName ( ) ) ; return null ; |
public class CmsSecurityManager { /** * Reads all deleted ( historical ) resources below the given path ,
* including the full tree below the path , if required . < p >
* @ param context the current request context
* @ param resource the parent resource to read the resources from
* @ param readTree < code > tru... | CmsDbContext dbc = m_dbContextFactory . getDbContext ( context ) ; List < I_CmsHistoryResource > result = null ; try { boolean isVfsManager = hasRoleForResource ( dbc , dbc . currentUser ( ) , CmsRole . VFS_MANAGER , resource ) ; result = m_driverManager . readDeletedResources ( dbc , resource , readTree , isVfsManager... |
public class A_CmsGroupUsersList { /** * Checks whether users of other OUs should be shown . < p >
* @ return true if users of other OUs should be shown */
protected boolean hasOuDetail ( ) { } } | CmsListMetadata meta = getList ( ) . getMetadata ( ) ; CmsListItemDetails detail = meta . getItemDetailDefinition ( LIST_DETAIL_OTHEROU ) ; return ( detail != null ) && detail . isVisible ( ) ; |
public class ScreenShotLaboratory { /** * Takes screenshot of current browser window .
* Stores 2 files : html of page ( if " savePageSource " option is enabled ) , and ( if possible ) image in PNG format .
* @ param fileName name of file ( without extension ) to store screenshot to .
* @ return the name of last ... | return ifWebDriverStarted ( driver , webDriver -> ifReportsFolderNotNull ( driver . config ( ) , config -> takeScreenShot ( config , webDriver , fileName ) ) ) ; |
public class BBCImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public Object eGet ( int featureID , boolean resolve , boolean coreType ) { } } | switch ( featureID ) { case AfplibPackage . BBC__BCDO_NAME : return getBCdoName ( ) ; case AfplibPackage . BBC__TRIPLETS : return getTriplets ( ) ; } return super . eGet ( featureID , resolve , coreType ) ; |
public class Context { /** * Convenient method to convert java value to its closest representation
* in JavaScript .
* If value is an instance of String , Number , Boolean , Function or
* Scriptable , it is returned as it and will be treated as the corresponding
* JavaScript type of string , number , boolean , ... | if ( value instanceof String || value instanceof Number || value instanceof Boolean || value instanceof Scriptable ) { return value ; } else if ( value instanceof Character ) { return String . valueOf ( ( ( Character ) value ) . charValue ( ) ) ; } else { Context cx = Context . getContext ( ) ; return cx . getWrapFacto... |
public class TotpUtils { /** * Generates a 64 byte ( 512 bit ) secret
* @ return A 64 characters random string based on SecureRandom */
public static String createSecret ( ) { } } | Random random = new SecureRandom ( ) ; StringBuilder buffer = new StringBuilder ( BYTES_SECRET ) ; for ( int i = 0 ; i < BYTES_SECRET ; i ++ ) { int value = random . nextInt ( MAX_CHARACTERS ) ; if ( value < ITERATIONS ) { buffer . append ( ( char ) ( 'A' + value ) ) ; } else { buffer . append ( ( char ) ( '2' + ( valu... |
public class Property_Builder { /** * Adds each element of { @ code elements } to the list to be returned from { @ link
* org . inferred . freebuilder . processor . property . Property # getAccessorAnnotations ( ) } .
* @ return this { @ code Builder } object
* @ throws NullPointerException if { @ code elements }... | if ( ( elements . characteristics ( ) & Spliterator . SIZED ) != 0 ) { long elementsSize = elements . estimateSize ( ) ; if ( elementsSize > 0 && elementsSize <= Integer . MAX_VALUE ) { if ( accessorAnnotations instanceof ImmutableList ) { accessorAnnotations = new ArrayList < > ( accessorAnnotations ) ; } ( ( ArrayLis... |
public class SwitchPreference { /** * Obtains the text , which should be displayed on the preference ' s switch , when it is not
* checked , from a specific typed array .
* @ param typedArray
* The typed array , the text should be obtained from , as an instance of the class { @ link
* TypedArray } . The typed a... | setSwitchTextOff ( typedArray . getText ( R . styleable . SwitchPreference_android_switchTextOff ) ) ; |
public class MtasSpanNotSpans { /** * Collect and check last spans .
* @ param nextSpans1StartPosition the next spans 1 start position
* @ param nextSpans1EndPosition the next spans 1 end position
* @ return true , if successful
* @ throws IOException Signals that an I / O exception has occurred . */
private bo... | // check next
if ( nextSpans1StartPosition == nextSpans2StartPosition && nextSpans1EndPosition == nextSpans2EndPosition ) { return false ; } // check last
if ( nextSpans1StartPosition == lastSpans2StartPosition && ( nextSpans1EndPosition == lastSpans2EndPosition || lastSpans2EndPositions . contains ( nextSpans1EndPosit... |
public class XPath { /** * Given an expression and a context , evaluate the XPath
* and return the result .
* @ param xctxt The execution context .
* @ param contextNode The node that " . " expresses .
* @ param namespaceContext The context in which namespaces in the
* XPath are supposed to be expanded .
* ... | return execute ( xctxt , xctxt . getDTMHandleFromNode ( contextNode ) , namespaceContext ) ; |
public class SarlBehaviorUnitImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public Object eGet ( int featureID , boolean resolve , boolean coreType ) { } } | switch ( featureID ) { case SarlPackage . SARL_BEHAVIOR_UNIT__NAME : return getName ( ) ; case SarlPackage . SARL_BEHAVIOR_UNIT__GUARD : return getGuard ( ) ; case SarlPackage . SARL_BEHAVIOR_UNIT__EXPRESSION : return getExpression ( ) ; } return super . eGet ( featureID , resolve , coreType ) ; |
public class NitrogenRule { /** * Get the number of other elements which affect to the calculation of the nominal mass .
* For example Fe , Co , Hg , Pt , As .
* @ param formula The IMolecularFormula to analyze
* @ return Number of elements */
private int getOthers ( IMolecularFormula formula ) { } } | int number = 0 ; String [ ] elements = { "Co" , "Hg" , "Pt" , "As" } ; for ( int i = 0 ; i < elements . length ; i ++ ) number += MolecularFormulaManipulator . getElementCount ( formula , formula . getBuilder ( ) . newInstance ( IElement . class , elements [ i ] ) ) ; return number ; |
public class Form { /** * Declares that if the < i > from < / i > property changes all
* the properties with < i > to < / i > could change . This is normally used
* if the to < i > to < / i > property is a getter that calculates something that
* depends on the < i > from < / i > in some way .
* @ param from the... | PropertyInterface fromProperty = Keys . getProperty ( from ) ; if ( ! dependencies . containsKey ( fromProperty . getPath ( ) ) ) { dependencies . put ( fromProperty . getPath ( ) , new ArrayList < PropertyInterface > ( ) ) ; } List < PropertyInterface > list = dependencies . get ( fromProperty . getPath ( ) ) ; for ( ... |
public class URIUtils { /** * Hashes a string ( which includes octets ) for a URI hash .
* @ param hash the input hash
* @ param s the string to hash and combine with the input hash
* @ return the resulting hash */
private static int normalizedHash ( int hash , String s ) { } } | int nextHash = 0 ; for ( int index = 0 ; index < s . length ( ) ; index ++ ) { char ch = s . charAt ( index ) ; nextHash = 31 * nextHash + ch ; if ( ch == '%' ) { // hash next 2 characters
index ++ ; nextHash = 31 * nextHash + URIUtils . toLower ( s . charAt ( index ) ) ; index ++ ; nextHash = 31 * nextHash + URIUtils ... |
public class Broadcaster { /** * Start broadcasting .
* Must be called after { @ link Broadcaster # setPreviewDisplay ( io . kickflip . sdk . view . GLCameraView ) } */
@ Override public void startRecording ( ) { } } | super . startRecording ( ) ; mKickflip . startStream ( mConfig . getStream ( ) , new KickflipCallback ( ) { @ Override public void onSuccess ( Response response ) { mCamEncoder . requestThumbnailOnDeltaFrameWithScaling ( 10 , 1 ) ; Log . i ( TAG , "got StartStreamResponse" ) ; checkArgument ( response instanceof HlsStr... |
public class UISelectMany { /** * < p > < span class = " changed _ modified _ 2_0 " > In < / span > addition to the standard
* validation behavior inherited from { @ link UIInput } , ensure that
* any specified values are equal to one of the available options .
* Before comparing each option , coerce the option v... | super . validateValue ( context , value ) ; // Skip validation if it is not necessary
if ( ! isValid ( ) || ( value == null ) ) { return ; } boolean doAddMessage = false ; // Ensure that the values match one of the available options
// Don ' t arrays cast to " Object [ ] " , as we may now be using an array
// of primit... |
public class Hours { /** * Returns a map of indices and { @ link Hour } objects with the open and close time
* @ param day
* the day the map should be returned for
* @ return the map containing the index and the { @ link Hour } object */
public Map < Integer , Hour > getHours ( DayOfWeek day ) { } } | if ( hours . get ( day ) == null ) { return null ; } return Collections . unmodifiableMap ( hours . get ( day ) ) ; |
public class InstrumentationFactory { /** * Attach and load an agent class .
* @ param log Log used if the agent cannot be loaded .
* @ param agentJar absolute path to the agent jar .
* @ param vmClass VirtualMachine . class from tools . jar . */
private static void loadAgent ( Config config , Log log , String ag... | try { // addAttach ( config , log ) ;
// first obtain the PID of the currently - running process
// # # # this relies on the undocumented convention of the
// RuntimeMXBean ' s
// # # # name starting with the PID , but there appears to be no other
// # # # way to obtain the current process ' id , which we need for
// #... |
public class Scope { /** * Check whether scope has child scope with given name and type
* @ param type Child scope type
* @ param name Child scope name
* @ return true if scope has child node with given name and type , false otherwise */
public boolean hasChildScope ( ScopeType type , String name ) { } } | log . debug ( "Has child scope? {} in {}" , name , this ) ; return children . getBasicScope ( type , name ) != null ; |
public class ExcelWriter { /** * 写出数据 , 本方法只是将数据写入Workbook中的Sheet , 并不写出到文件 < br >
* 写出的起始行为当前行号 , 可使用 { @ link # getCurrentRow ( ) } 方法调用 , 根据写出的的行数 , 当前行号自动增加 < br >
* 样式为默认样式 , 可使用 { @ link # getCellStyle ( ) } 方法调用后自定义默认样式
* data中元素支持的类型有 :
* < pre >
* 1 . Iterable , 既元素为一个集合 , 元素被当作一行 , data表示多行 < br >
... | Assert . isFalse ( this . isClosed , "ExcelWriter has been closed!" ) ; boolean isFirst = true ; for ( Object object : data ) { writeRow ( object , isFirst && isWriteKeyAsHead ) ; if ( isFirst ) { isFirst = false ; } } return this ; |
public class CmsSetupBean { /** * Returns js code with array definition for the available component dependencies . < p >
* @ return js code */
public String jsComponentDependencies ( ) { } } | List < CmsSetupComponent > components = CmsCollectionsGenericWrapper . list ( m_components . elementList ( ) ) ; Map < String , List < String > > componentDependencies = buildDepsForAllComponents ( ) ; StringBuffer jsCode = new StringBuffer ( 1024 ) ; jsCode . append ( "\t// an array holding the dependent components fo... |
public class FloatIteratorEx { /** * Lazy evaluation .
* @ param iteratorSupplier
* @ return */
public static FloatIteratorEx of ( final Supplier < ? extends FloatIterator > iteratorSupplier ) { } } | N . checkArgNotNull ( iteratorSupplier , "iteratorSupplier" ) ; return new FloatIteratorEx ( ) { private FloatIterator iter = null ; private FloatIteratorEx iterEx = null ; private boolean isInitialized = false ; @ Override public boolean hasNext ( ) { if ( isInitialized == false ) { init ( ) ; } return iter . hasNext ... |
public class Util { /** * Joins the items in array with a delimiter .
* @ param array array of items to join .
* @ param delimiter delimiter to insert between elements of array .
* @ return string with array elements separated by delimiter . There is no trailing delimiter in the string . */
public static String j... | if ( empty ( array ) ) { return "" ; } StringBuilder sb = new StringBuilder ( ) ; join ( sb , array , delimiter ) ; return sb . toString ( ) ; |
public class SingleThreadEventExecutor { /** * Interrupt the current running { @ link Thread } . */
protected void interruptThread ( ) { } } | Thread currentThread = thread ; if ( currentThread == null ) { interrupted = true ; } else { currentThread . interrupt ( ) ; } |
public class Utility { /** * Get the resource edge id if there is one . Return null if not . */
public static ConceptId getResourceEdgeId ( TransactionOLTP graph , ConceptId conceptId1 , ConceptId conceptId2 ) { } } | if ( mayHaveResourceEdge ( graph , conceptId1 , conceptId2 ) ) { Optional < Concept > firstConcept = graph . stream ( Graql . match ( var ( "x" ) . id ( conceptId1 . getValue ( ) ) , var ( "y" ) . id ( conceptId2 . getValue ( ) ) , var ( "z" ) . rel ( var ( "x" ) ) . rel ( var ( "y" ) ) ) . get ( "z" ) ) . map ( answer... |
public class GFF3EntryWriter { /** * Writes the GFF3 file .
* @ param writer the output stream .
* @ throws IOException is there was an error in writing
* to the output stream . */
public void write ( Writer writer ) throws IOException { } } | GFF3Writer . writeVersionPragma ( writer ) ; GFF3Writer . writeRegionPragma ( writer , entry . getPrimaryAccession ( ) , windowBeginPosition , windowEndPosition ) ; int ID = 0 ; if ( show . contains ( SHOW_GENE ) ) { locusTagGeneMap = new HashMap < String , GFF3Gene > ( ) ; geneNameGeneMap = new HashMap < String , GFF3... |
public class GetRecordsRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( GetRecordsRequest getRecordsRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( getRecordsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getRecordsRequest . getShardIterator ( ) , SHARDITERATOR_BINDING ) ; protocolMarshaller . marshall ( getRecordsRequest . getLimit ( ) , LIMIT_BINDING ) ; } catch ( Exc... |
public class HessianURLConnection { /** * Adds a HTTP header . */
@ Override public void addHeader ( String key , String value ) { } } | _conn . setRequestProperty ( key , value ) ; |
public class PaymentUtils { /** * Formats a monetary amount into a human friendly string . */
static String formatPriceString ( double amount , @ NonNull Currency currency ) { } } | double majorUnitAmount = amount / Math . pow ( 10 , currency . getDefaultFractionDigits ( ) ) ; NumberFormat currencyFormat = NumberFormat . getCurrencyInstance ( ) ; try { DecimalFormatSymbols decimalFormatSymbols = ( ( java . text . DecimalFormat ) currencyFormat ) . getDecimalFormatSymbols ( ) ; decimalFormatSymbols... |
public class LocalityPreservingCooccurrenceSpace { /** * { @ inheritDoc } */
public void processSpace ( Properties properties ) { } } | // Set all of the default properties
int dimensions = 300 ; // Then load any of the user - specified properties
String dimensionsProp = properties . getProperty ( LPCS_DIMENSIONS_PROPERTY ) ; if ( dimensionsProp != null ) { try { dimensions = Integer . parseInt ( dimensionsProp ) ; } catch ( NumberFormatException nfe )... |
public class PowerMockito { /** * Expect calls to private methods .
* @ see PowerMockito # when ( Object ) */
public static < T > WithOrWithoutExpectedArguments < T > when ( Object instance , Method method ) { } } | return new DefaultMethodExpectationSetup < T > ( instance , method ) ; |
public class UpdateGlobalTableRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( UpdateGlobalTableRequest updateGlobalTableRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( updateGlobalTableRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( updateGlobalTableRequest . getGlobalTableName ( ) , GLOBALTABLENAME_BINDING ) ; protocolMarshaller . marshall ( updateGlobalTableRequest . getReplicaUpdates ( )... |
public class PermissionUtil { /** * Checks if one given Role can interact with a 2nd given Role - in a permission sense ( kick / ban / modify perms ) .
* This only checks the Role - Position and does not check the actual permission ( kick / ban / manage _ role / . . . )
* @ param issuer
* The role that tries to i... | Checks . notNull ( issuer , "Issuer Role" ) ; Checks . notNull ( target , "Target Role" ) ; if ( ! issuer . getGuild ( ) . equals ( target . getGuild ( ) ) ) throw new IllegalArgumentException ( "The 2 Roles are not from same Guild!" ) ; return target . getPosition ( ) < issuer . getPosition ( ) ; |
public class PrefixedProperties { /** * Gets the byte array .
* @ param key
* the key
* @ param def
* the def
* @ return the byte array */
public byte [ ] getByteArray ( final String key , final byte [ ] def ) { } } | try { final byte [ ] result = getByteArray ( key ) ; return result != null ? result : def ; } catch ( final NumberFormatException nfe ) { return def ; } |
public class CmsSetupBean { /** * Sets the fullDatabaseKey . < p >
* @ param fullDatabaseKey the fullDatabaseKey to set */
public void setFullDatabaseKey ( String fullDatabaseKey ) { } } | m_fullDatabaseKey = fullDatabaseKey ; String driverPart = fullDatabaseKey . substring ( fullDatabaseKey . lastIndexOf ( "_" ) , fullDatabaseKey . length ( ) ) ; String keyPart = fullDatabaseKey . substring ( 0 , fullDatabaseKey . lastIndexOf ( "_" ) ) ; setDatabase ( keyPart ) ; |
public class IOUtils { /** * Returns all the text at the given URL . */
public static String slurpGBURLNoExceptions ( URL u ) { } } | try { return slurpGBURL ( u ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; return null ; } |
public class IniFile { /** * Returns a map containing all the properties under specified section .
* @ param pstrSection the name of the section for which properties are to be retrieved .
* @ return the map of properties . */
public Map < String , INIProperty > getProperties ( String pstrSection ) { } } | Map < String , INIProperty > hmRet = null ; INISection objSec = null ; objSec = ( INISection ) this . mhmapSections . get ( pstrSection ) ; if ( objSec != null ) { hmRet = objSec . getProperties ( ) ; objSec = null ; } return hmRet ; |
public class DelimitedInputFormat { /** * Configures this input format by reading the path to the file from the configuration and the string that
* defines the record delimiter .
* @ param parameters The configuration object to read the parameters from . */
@ Override public void configure ( Configuration parameter... | super . configure ( parameters ) ; // the if ( ) clauses are to prevent the configure ( ) method from
// overwriting the values set by the setters
if ( Arrays . equals ( delimiter , new byte [ ] { '\n' } ) ) { String delimString = parameters . getString ( RECORD_DELIMITER , null ) ; if ( delimString != null ) { setDeli... |
public class NotationConstructor { /** * TODO */
public Object convertExtension ( Object name , QualifiedName id , Object args , Object dAttrs ) { } } | System . out . println ( "Name @" + name ) ; System . out . println ( "Name @" + id ) ; System . out . println ( "Name @" + args ) ; System . out . println ( "Name @" + dAttrs ) ; // String s = keyword ( ( String ) name ) + " ( " + oldOptionalId ( id ) + args +
// oldOptionalAttributes ( dAttrs ) + " ) " ;
// return s ... |
public class ChannelSftpRunner { /** * Upload a file to the server .
* @ param aSessionProvider
* The JSch session provider . May not be < code > null < / code > .
* @ param nChannelConnectTimeoutMillis
* The channel connection timeout in milliseconds . 0 means infinite .
* @ param aRunnable
* The callback ... | ValueEnforcer . notNull ( aSessionProvider , "SessionProvider" ) ; ValueEnforcer . notNull ( aRunnable , "Runnable" ) ; Session aSession = null ; Channel aChannel = null ; ChannelSftp aSFTPChannel = null ; try { // get session from pool
aSession = aSessionProvider . createSession ( ) ; if ( aSession == null ) throw new... |
public class StoreConfig { /** * Checks the validity of this StoreConfig .
* @ throws InvalidStoreConfigException if any store parameter is found invalid . */
public void validate ( ) throws InvalidStoreConfigException { } } | if ( getSegmentFactory ( ) == null ) { throw new InvalidStoreConfigException ( "Segment factory not found" ) ; } if ( getHashFunction ( ) == null ) { throw new InvalidStoreConfigException ( "Store hash function not found" ) ; } if ( getBatchSize ( ) < StoreParams . BATCH_SIZE_MIN ) { throw new InvalidStoreConfigExcepti... |
public class RegisterWorkerPRequest { /** * Use { @ link # getTotalBytesOnTiersMap ( ) } instead . */
@ java . lang . Deprecated public java . util . Map < java . lang . String , java . lang . Long > getTotalBytesOnTiers ( ) { } } | return getTotalBytesOnTiersMap ( ) ; |
public class DialogPlus { /** * Loop among the views in the hierarchy and assign listener to them */
private void assignClickListenerRecursively ( View parent ) { } } | if ( parent == null ) { return ; } if ( parent instanceof ViewGroup ) { ViewGroup viewGroup = ( ViewGroup ) parent ; int childCount = viewGroup . getChildCount ( ) ; for ( int i = childCount - 1 ; i >= 0 ; i -- ) { View child = viewGroup . getChildAt ( i ) ; assignClickListenerRecursively ( child ) ; } } setClickListen... |
public class WordSegmenter { /** * 对文件进行分词 , 移除停用词
* 可指定其他分词算法
* @ param input 输入文件
* @ param output 输出文件
* @ param segmentationAlgorithm 分词算法
* @ throws Exception */
public static void seg ( File input , File output , SegmentationAlgorithm segmentationAlgorithm ) throws Exception { } } | Utils . seg ( input , output , true , segmentationAlgorithm ) ; |
public class JSONzip { /** * This method is used for testing the implementation of JSONzip . It is not
* suitable for any other purpose . It is used to compare a Compressor and a
* Decompressor , verifying that the data structures that were built during
* zipping and unzipping were the same .
* @ return true if... | JSONzip that = ( JSONzip ) pm ; return this . namehuff . postMortem ( that . namehuff ) && this . namekeep . postMortem ( that . namekeep ) && this . stringkeep . postMortem ( that . stringkeep ) && this . stringhuff . postMortem ( that . stringhuff ) && this . valuekeep . postMortem ( that . valuekeep ) ; |
public class BooleanParameterTypeImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public void eSet ( int featureID , Object newValue ) { } } | switch ( featureID ) { case BpsimPackage . BOOLEAN_PARAMETER_TYPE__VALUE : setValue ( ( Boolean ) newValue ) ; return ; } super . eSet ( featureID , newValue ) ; |
public class SimpleQueryEsSink { /** * ( non - Javadoc )
* @ see com . sematext . ag . sink . Sink # init ( com . sematext . ag . PlayerConfig ) */
@ Override public void init ( PlayerConfig config ) throws InitializationFailedException { } } | super . init ( config ) ; esBaseUrl = config . get ( ES_BASE_URL_KEY ) ; indexName = config . get ( ES_INDEX_NAME_KEY ) ; if ( esBaseUrl == null || "" . equals ( esBaseUrl . trim ( ) ) ) { throw new IllegalArgumentException ( this . getClass ( ) . getName ( ) + " expects configuration property " + ES_BASE_URL_KEY ) ; }... |
public class CmsUserOverviewDialog { /** * Creates the dialog HTML for all defined widgets of the named dialog ( page ) . < p >
* This overwrites the method from the super class to create a layout variation for the widgets . < p >
* @ param dialog the dialog ( page ) to get the HTML for
* @ return the dialog HTML... | StringBuffer result = new StringBuffer ( 1024 ) ; result . append ( createWidgetTableStart ( ) ) ; // show error header once if there were validation errors
result . append ( createWidgetErrorHeader ( ) ) ; int n = ( ! isOverview ( ) ? 3 : 5 ) ; if ( dialog . equals ( PAGES [ 0 ] ) ) { // create the widgets for the fir... |
public class RDateIteratorImpl { /** * Removes duplicates from a list of date values .
* @ param dates the date values ( must be sorted in ascending order )
* @ return a new array if any elements were removed or the original array if
* no elements were removed */
private static DateValue [ ] removeDuplicates ( Da... | int k = 0 ; for ( int i = 1 ; i < dates . length ; ++ i ) { if ( ! dates [ i ] . equals ( dates [ k ] ) ) { dates [ ++ k ] = dates [ i ] ; } } if ( ++ k < dates . length ) { DateValue [ ] uniqueDates = new DateValue [ k ] ; System . arraycopy ( dates , 0 , uniqueDates , 0 , k ) ; return uniqueDates ; } return dates ; |
public class JMElasticsearchBulk { /** * Close bulk processor . */
public void closeBulkProcessor ( ) { } } | Optional . ofNullable ( bulkProcessor ) . filter ( peek ( BulkProcessor :: flush ) ) . ifPresent ( BulkProcessor :: close ) ; |
public class UsersApi { /** * Remove a user .
* Remove the specified user , along with their associated login , places , and DNs . This removes the [ CfgPerson ] ( https : / / docs . genesys . com / Documentation / PSDK / latest / ConfigLayerRef / CfgPerson ) object and any associated [ CfgAgentLogin ] ( https : / / ... | ApiResponse < ApiSuccessResponse > resp = deleteUserWithHttpInfo ( dbid , keepPlaces ) ; return resp . getData ( ) ; |
public class NotOperator { /** * ( non - Javadoc )
* @ see net . timewalker . ffmq4 . common . message . selector . expression . SelectorNode # evaluate ( javax . jms . Message ) */
@ Override public Object evaluate ( Message message ) throws JMSException { } } | Boolean operandValue = operand . evaluateBoolean ( message ) ; if ( operandValue == null ) return null ; return operandValue . booleanValue ( ) ? Boolean . FALSE : Boolean . TRUE ; |
public class ConfigHandler { /** * Load configuration from ddf . ini , or the file name specified by the environment variable DDF _ INI .
* @ return the { @ link Configuration } object loaded
* @ throws Exception
* @ throws ConfigurationException , { @ link IOException } */
@ Override public Configuration loadCon... | Configuration resultConfig = new Configuration ( ) ; if ( ! Utils . localFileExists ( this . getConfigFileName ( ) ) ) { // String configFileName = System . getenv ( ConfigConstant . DDF _ INI _ ENV _ VAR . getValue ( ) ) ;
File file = new File ( this . locateConfigFileName ( this . getConfigDir ( ) , this . getConfigF... |
public class AccountManager { /** * Public for testing */
public Account getAccountForInputText ( String inputText ) { } } | if ( selectedProfile != null ) return selectedProfile ; Account account = pwmProfiles . findAccountByUrl ( inputText ) ; if ( account == null ) return getDefaultAccount ( ) ; return account ; |
public class Sort { /** * Check if the long array is sorted . It loops through the entire long
* array once , checking that the elements are sorted .
* < br >
* < br >
* < i > Runtime : < / i > O ( n )
* @ param longArray the long array to check
* @ return < i > true < / i > if the long array is sorted , el... | for ( int i = 0 ; i < longArray . length - 1 ; i ++ ) { if ( longArray [ i ] > longArray [ i + 1 ] ) { return false ; } } return true ; |
public class CalendarScanListener { /** * Do whatever processing that needs to be done on this file . */
public void moveThisFile ( File fileSource , File fileDestDir , String strDestName ) { } } | fileDestDir . mkdirs ( ) ; String strNewDir = this . getNewCalendarPath ( fileSource ) ; if ( strNewDir != null ) { fileDestDir = new File ( fileDestDir , strNewDir ) ; fileDestDir . mkdirs ( ) ; } File fileDest = new File ( fileDestDir , strDestName ) ; if ( fileSource . renameTo ( fileDest ) ) return ; if ( true ) { ... |
public class PropertyLoader { /** * Concat the given prefixes into one . */
protected String concat ( String first , String second ) { } } | return first == null ? second : String . format ( "%s.%s" , first , second ) ; |
public class RemoteRegistry { /** * Method blocks until the referred registry is not handling any tasks and is currently consistent .
* Note : If you have just modified the registry this method can maybe return immediately if the task is not yet received by the registry controller .
* So you should prefer the futur... | try { while ( true ) { try { waitUntilReadyFuture ( ) . get ( ( JPService . testMode ( ) ? 4 : 300 ) , TimeUnit . SECONDS ) ; break ; } catch ( final TimeoutException ex ) { logger . warn ( "Still waiting for " + getName ( ) ) ; continue ; } } } catch ( final ExecutionException | CancellationException ex ) { throw new ... |
public class ElementHelper { /** * Return a named child relative to a supplied element .
* @ param root the parent DOM element
* @ param name the name of a child element
* @ return the child element of null if the child does not exist */
public static Element getChild ( Element root , String name ) { } } | if ( null == root ) { return null ; } NodeList list = root . getElementsByTagName ( name ) ; int n = list . getLength ( ) ; if ( n < 1 ) { return null ; } return ( Element ) list . item ( 0 ) ; |
public class RuntimeProcessExecutor { /** * Executes the { @ code commandLine } with the Java { @ link Runtime } class in the given { @ link File directory }
* with the provided { @ link Environment } configuration .
* @ param commandLine array of { @ link String } values constituting the program and its runtime ar... | return Runtime . getRuntime ( ) . exec ( commandLine , environment . toAssociativeArray ( ) , directory ) ; |
public class GradleDependencyResolutionHelper { /** * Translate the given { @ link ResolvedDependency resolved dependency } in to a { @ link DependencyDescriptor } reference .
* @ param scope the scope to assign to the descriptor .
* @ param dependency the resolved dependency reference .
* @ return an instance of... | Set < ResolvedArtifact > artifacts = dependency . getModuleArtifacts ( ) ; // Let us use the first artifact ' s type for determining the type .
// I am not sure under what circumstances , would we need to check for multiple artifacts .
String type = "jar" ; String classifier = null ; File file = null ; if ( ! artifacts... |
public class ImgUtil { /** * 彩色转为黑白 < br >
* 此方法并不关闭流
* @ param srcImage 源图像流
* @ param destImageStream 目标图像流
* @ since 3.0.9
* @ throws IORuntimeException IO异常 */
public static void gray ( Image srcImage , ImageOutputStream destImageStream ) throws IORuntimeException { } } | writeJpg ( gray ( srcImage ) , destImageStream ) ; |
public class SheetBindingErrors { /** * 指定したパスのフィールドのクラスタイプを取得する 。
* < p > インスタンスを元に取得するため 、 サブクラスの可能性がある 。 < / p >
* @ since 2.0
* @ param field フィールド名
* @ return クラスタイプ 。 ただし 、 オブジェクトの値がnullの場合は 、 クラスタイプもnullとなる 。 */
public Class < ? > getActualFieldType ( final String field ) { } } | final Object fieldValue = getFieldValue ( field ) ; return fieldValue == null ? null : fieldValue . getClass ( ) ; |
public class CPDefinitionOptionRelPersistenceImpl { /** * Returns the cp definition option rel where CPDefinitionId = & # 63 ; and CPOptionId = & # 63 ; or returns < code > null < / code > if it could not be found , optionally using the finder cache .
* @ param CPDefinitionId the cp definition ID
* @ param CPOption... | Object [ ] finderArgs = new Object [ ] { CPDefinitionId , CPOptionId } ; Object result = null ; if ( retrieveFromCache ) { result = finderCache . getResult ( FINDER_PATH_FETCH_BY_C_C , finderArgs , this ) ; } if ( result instanceof CPDefinitionOptionRel ) { CPDefinitionOptionRel cpDefinitionOptionRel = ( CPDefinitionOp... |
public class AppServiceEnvironmentsInner { /** * Get available SKUs for scaling a worker pool .
* Get available SKUs for scaling a worker pool .
* @ param resourceGroupName Name of the resource group to which the resource belongs .
* @ param name Name of the App Service Environment .
* @ param workerPoolName Na... | return AzureServiceFuture . fromPageResponse ( listWorkerPoolSkusSinglePageAsync ( resourceGroupName , name , workerPoolName ) , new Func1 < String , Observable < ServiceResponse < Page < SkuInfoInner > > > > ( ) { @ Override public Observable < ServiceResponse < Page < SkuInfoInner > > > call ( String nextPageLink ) {... |
public class S3ApplicationCodeLocationDescriptionMarshaller { /** * Marshall the given parameter object . */
public void marshall ( S3ApplicationCodeLocationDescription s3ApplicationCodeLocationDescription , ProtocolMarshaller protocolMarshaller ) { } } | if ( s3ApplicationCodeLocationDescription == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( s3ApplicationCodeLocationDescription . getBucketARN ( ) , BUCKETARN_BINDING ) ; protocolMarshaller . marshall ( s3ApplicationCodeLocationDescription... |
public class crvserver_stats { /** * Use this API to fetch statistics of crvserver _ stats resource of given name . */
public static crvserver_stats get ( nitro_service service , String name ) throws Exception { } } | crvserver_stats obj = new crvserver_stats ( ) ; obj . set_name ( name ) ; crvserver_stats response = ( crvserver_stats ) obj . stat_resource ( service ) ; return response ; |
public class FacetOptions { /** * Append additional field for faceting
* @ param field
* @ return */
public final FacetOptions addFacetOnField ( Field field ) { } } | Assert . notNull ( field , "Cannot facet on null field." ) ; Assert . hasText ( field . getName ( ) , "Cannot facet on field with null/empty fieldname." ) ; this . facetOnFields . add ( field ) ; return this ; |
public class IgnoreRestExtension { /** * do nothing */
@ Override public void visitSpec ( SpecInfo spec ) { } } | if ( spec . getSuperSpec ( ) != null ) visitSpec ( spec . getSuperSpec ( ) ) ; for ( FeatureInfo feature : spec . getFeatures ( ) ) feature . setSkipped ( ! feature . getFeatureMethod ( ) . getReflection ( ) . isAnnotationPresent ( IgnoreRest . class ) ) ; |
public class Rotation { /** * Sets the axis position for this { @ link Rotation } .
* @ param x the x
* @ param y the y
* @ param z the z
* @ return the rotation */
public Rotation offset ( float x , float y , float z ) { } } | offsetX = x ; offsetY = y ; offsetZ = z ; return this ; |
public class CLI { /** * Load the evaluation parameters of the CLI . */
private void loadEvalParameters ( ) { } } | this . evalParser . addArgument ( "-c" , "--component" ) . required ( true ) . choices ( "pos" , "lemma" ) . help ( "Choose component for evaluation" ) ; this . evalParser . addArgument ( "-m" , "--model" ) . required ( true ) . help ( "Choose model" ) ; this . evalParser . addArgument ( "-t" , "--testSet" ) . required... |
public class LookupManagerImpl { /** * { @ inheritDoc } */
@ Override public ServiceInstance queryInstanceByName ( String serviceName , ServiceInstanceQuery query ) throws ServiceException { } } | if ( ! isStarted ) { ServiceDirectoryError error = new ServiceDirectoryError ( ErrorCode . SERVICE_DIRECTORY_MANAGER_FACTORY_CLOSED ) ; throw new ServiceException ( error ) ; } ServiceQueryRRLoadBalancer lb = lbManager . getServiceQueryRRLoadBalancer ( serviceName , query ) ; return lb . vote ( ) ; |
public class BaseFileSystem { /** * { @ inheritDoc } */
public FileEntry put ( DirectoryEntry parent , String name , byte [ ] content ) throws IOException { } } | return put ( parent , name , new ByteArrayInputStream ( content ) ) ; |
public class StepFactory { /** * Step that runs a Hive script on your job flow using the specified Hive version .
* @ param script
* The script to run .
* @ param hiveVersion
* The Hive version to use .
* @ param scriptArgs
* Arguments that get passed to the script .
* @ return HadoopJarStepConfig that ca... | List < String > hiveArgs = new ArrayList < String > ( ) ; hiveArgs . add ( "--hive-versions" ) ; hiveArgs . add ( hiveVersion ) ; hiveArgs . add ( "--run-hive-script" ) ; hiveArgs . add ( "--args" ) ; hiveArgs . add ( "-f" ) ; hiveArgs . add ( script ) ; hiveArgs . addAll ( Arrays . asList ( scriptArgs ) ) ; return new... |
public class ValidationFailureException { private static String toDescription ( FhirContext theCtx , IBaseOperationOutcome theOo ) { } } | StringBuilder b = new StringBuilder ( ) ; b . append ( OperationOutcomeUtil . getFirstIssueDetails ( theCtx , theOo ) ) ; // b . append ( " - " ) ;
// b . append ( theOo . getIssueFirstRep ( ) . getLocationFirstRep ( ) . getValue ( ) ) ;
return b . toString ( ) ; |
public class DrizzleConnection { /** * returns the meta data about the database .
* @ return meta data about the db .
* @ throws SQLException if there is a problem creating the meta data . */
public DatabaseMetaData getMetaData ( ) throws SQLException { } } | return new CommonDatabaseMetaData . Builder ( protocol . getDatabaseType ( ) , this ) . url ( "jdbc:drizzle://" + protocol . getHost ( ) + ":" + protocol . getPort ( ) + "/" + protocol . getDatabase ( ) ) . username ( protocol . getUsername ( ) ) . version ( protocol . getServerVersion ( ) ) . databaseProductName ( pro... |
public class Linker { /** * Validate that the tags of { @ code fields } are unique and in range . */
void validateFields ( Iterable < Field > fields , List < Reserved > reserveds ) { } } | Multimap < Integer , Field > tagToField = LinkedHashMultimap . create ( ) ; Multimap < String , Field > nameToField = LinkedHashMultimap . create ( ) ; for ( Field field : fields ) { int tag = field . tag ( ) ; if ( ! Util . isValidTag ( tag ) ) { withContext ( field ) . addError ( "tag is out of range: %s" , tag ) ; }... |
public class HtmlTree { /** * Generates a Frame tag .
* @ param src the url of the document to be shown in the frame
* @ param name specifies the name of the frame
* @ param title the title for the frame
* @ return an HtmlTree object for the SPAN tag */
public static HtmlTree FRAME ( String src , String name , ... | return FRAME ( src , name , title , null ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.