signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class UploadServlet { /** * Process an HTML get or post .
* @ exceptionServletException From inherited class .
* @ exceptionIOException From inherited class . */
public void sendForm ( HttpServletRequest req , HttpServletResponse res , String strReceiveMessage , Properties properties ) throws ServletExceptio... | res . setContentType ( "text/html" ) ; PrintWriter out = res . getWriter ( ) ; out . write ( "<html>" + RETURN + "<head>" + RETURN + "<title>" + this . getTitle ( ) + "</title>" + RETURN + "</head>" + RETURN + "<body>" + RETURN + "<center><b>" + this . getTitle ( ) + "</b></center><p />" + RETURN ) ; String strServletP... |
public class SimpleHTMLTag { /** * Sets a property of the tag by key .
* @ param key Property key
* @ param value Property value
* @ return This tag */
public SimpleHTMLTag setProperty ( String key , String value ) { } } | key = UniformUtils . checkPropertyNameAndLowerCase ( key ) ; if ( properties == null ) { properties = new HashMap < > ( ) ; } properties . put ( key , value ) ; return this ; |
public class CommerceDiscountRuleLocalServiceBaseImpl { /** * Adds the commerce discount rule to the database . Also notifies the appropriate model listeners .
* @ param commerceDiscountRule the commerce discount rule
* @ return the commerce discount rule that was added */
@ Indexable ( type = IndexableType . REIND... | commerceDiscountRule . setNew ( true ) ; return commerceDiscountRulePersistence . update ( commerceDiscountRule ) ; |
public class HttpRequest { /** * 将请求参数转换成Map
* @ param map Map
* @ return Map */
public Map < String , String > getParametersToMap ( Map < String , String > map ) { } } | if ( map == null ) map = new LinkedHashMap < > ( ) ; final Map < String , String > map0 = map ; getParameters ( ) . forEach ( ( k , v ) -> map0 . put ( k , v ) ) ; return map0 ; |
public class SortedBugCollection { /** * Add a BugInstance to this BugCollection . This just calls add ( bugInstance ,
* true ) .
* @ param bugInstance
* the BugInstance
* @ return true if the BugInstance was added , or false if a matching
* BugInstance was already in the BugCollection */
@ Override public bo... | return add ( bugInstance , bugInstance . getFirstVersion ( ) == 0L && bugInstance . getLastVersion ( ) == 0L ) ; |
public class MasterSlave { /** * Open a new connection to a Redis Master - Slave server / servers using the supplied { @ link RedisURI } and the supplied
* { @ link RedisCodec codec } to encode / decode keys .
* This { @ link MasterSlave } performs auto - discovery of nodes using either Redis Sentinel or Master / S... | LettuceAssert . notNull ( redisClient , "RedisClient must not be null" ) ; LettuceAssert . notNull ( codec , "RedisCodec must not be null" ) ; LettuceAssert . notNull ( redisURI , "RedisURI must not be null" ) ; return getConnection ( connectAsyncSentinelOrAutodiscovery ( redisClient , codec , redisURI ) , redisURI ) ; |
public class RulesDefinitionXmlLoader { /** * Loads rules by reading the XML input stream . The input stream is not always closed by the method , so it
* should be handled by the caller .
* @ since 4.3 */
public void load ( RulesDefinition . NewRepository repo , InputStream input , String encoding ) { } } | load ( repo , input , Charset . forName ( encoding ) ) ; |
public class AbstractFunction { /** * Creates a POWER ( base , exponent ) function that returns the value of the given base
* expression power the given exponent expression .
* @ param base The base expression .
* @ param exponent The exponent expression .
* @ return The POWER ( base , exponent ) function . */
... | if ( base == null || exponent == null ) { throw new IllegalArgumentException ( "base or exponent cannot be null." ) ; } return new Expression . FunctionExpression ( "POWER()" , Arrays . asList ( base , exponent ) ) ; |
public class MonitorService { /** * Deletes the given label from the monitor with the given id .
* @ param monitorId The id of the monitor with the label
* @ param label The label to delete
* @ return This object */
public MonitorService deleteLabel ( String monitorId , Label label ) { } } | HTTP . DELETE ( String . format ( "/v1/monitors/%s/labels/%s" , monitorId , label . getKey ( ) ) ) ; return this ; |
public class CommonOps_DDRM { /** * The Kronecker product of two matrices is defined as : < br >
* C < sub > ij < / sub > = a < sub > ij < / sub > B < br >
* where C < sub > ij < / sub > is a sub matrix inside of C & isin ; & real ; < sup > m * k & times ; n * l < / sup > ,
* A & isin ; & real ; < sup > m & times... | int numColsC = A . numCols * B . numCols ; int numRowsC = A . numRows * B . numRows ; if ( C . numCols != numColsC || C . numRows != numRowsC ) { throw new MatrixDimensionException ( "C does not have the expected dimensions" ) ; } // TODO see comment below
// this will work well for small matrices
// but an alternative... |
public class MMDCfgPanel { /** * < editor - fold defaultstate = " collapsed " desc = " Generated Code " > / / GEN - BEGIN : initComponents */
private void initComponents ( ) { } } | java . awt . GridBagConstraints gridBagConstraints ; jScrollPane1 = new javax . swing . JScrollPane ( ) ; jPanel6 = new javax . swing . JPanel ( ) ; jPanel3 = new javax . swing . JPanel ( ) ; jLabel2 = new javax . swing . JLabel ( ) ; spinnerConnectorWidth = new javax . swing . JSpinner ( ) ; jLabel5 = new javax . swin... |
public class CoinEggTradeServiceRaw { /** * TODO : Sort Out Method Grammar */
public CoinEggTradeAdd getCoinEggTradeAdd ( BigDecimal amount , BigDecimal price , String type , String coin ) throws IOException { } } | return coinEggAuthenticated . getTradeAdd ( apiKey , signer , nonceFactory . createValue ( ) , amount , price , type , coin ) ; |
public class CmsLogChannelTable { /** * Adds a container item for the given logger . < p >
* @ param logger the logger for which to generate a container item */
public void addItemForLogger ( Logger logger ) { } } | Item item = m_container . addItem ( logger ) ; if ( item != null ) { item . getItemProperty ( TableColumn . Channel ) . setValue ( logger . getName ( ) ) ; Logger parent = logger . getParent ( ) ; item . getItemProperty ( TableColumn . ParentChannel ) . setValue ( parent != null ? parent . getName ( ) : "none" ) ; item... |
public class BeanTransformer { /** * < p > needTransform . < / p >
* @ param obj a { @ link java . lang . Object } object .
* @ return a boolean . */
protected boolean needTransform ( Object obj ) { } } | Class clazz = obj . getClass ( ) ; return ! clazz . isPrimitive ( ) && ! clazz . getName ( ) . startsWith ( "java." ) ; |
public class JspTaglibSubTask { /** * Describe what the method does
* @ exception XDocletException */
public void execute ( ) throws XDocletException { } } | if ( getJspversion ( ) . equals ( JspVersionTypes . VERSION_1_1 ) ) { setPublicId ( TLD_PUBLICID_1_1 ) ; setSystemId ( TLD_SYSTEMID_1_1 ) ; setDtdURL ( getClass ( ) . getResource ( TLD_DTD_FILE_NAME_1_1 ) ) ; } else { setPublicId ( TLD_PUBLICID_1_2 ) ; setSystemId ( TLD_SYSTEMID_1_2 ) ; setDtdURL ( getClass ( ) . getRe... |
public class EnablingAdapter { /** * Creates and returns an enabler that listens for changes in the
* specified property ( which must be a { @ link Boolean } valued
* property ) and updates the target ' s enabled state accordingly . */
public static PropertyChangeListener getPropChangeEnabler ( String property , JC... | return new PropertyChangeEnabler ( property , target , invert ) ; |
public class ExtendedClassPathClassLoader { /** * Retrieves resource as input stream from a directory or jar in the filesystem .
* @ param fileName
* @ return */
public InputStream getResourceAsStream ( String fileName ) { } } | InputStream retval = super . getResourceAsStream ( fileName ) ; if ( retval == null ) { // String className = this . convertFileNameToClassName ( fileName ) ;
// Object location = classResourceLocations . get ( className ) ;
Object location = this . mixedResourceLocations . get ( fileName ) ; if ( location == null ) { ... |
public class CloudMe { /** * There are 3 main steps to list a folder : - generate the tree view of CloudMe storage - list all the subfolders -
* list all the blobs
* @ param cpath
* @ return CFolderContent
* @ throws CStorageException */
@ Override public CFolderContent listFolder ( final CPath cpath ) throws C... | CMFolder cmRoot = loadFoldersStructure ( ) ; CMFolder cmFolder = cmRoot . getFolder ( cpath ) ; if ( cmFolder == null ) { CMFolder cmParentFolder = cmRoot . getFolder ( cpath . getParent ( ) ) ; if ( cmParentFolder != null ) { CMBlob cmBlob ; try { cmBlob = getBlobByName ( cmParentFolder , cpath . getBaseName ( ) ) ; }... |
public class ImageUtil { /** * Creates a new buffered image with the same sample model and color model as the source image
* but with the new width and height . */
public static BufferedImage createCompatibleImage ( BufferedImage source , int width , int height ) { } } | WritableRaster raster = source . getRaster ( ) . createCompatibleWritableRaster ( width , height ) ; return new BufferedImage ( source . getColorModel ( ) , raster , false , null ) ; |
public class DomainNameMapping { /** * Adds a mapping that maps the specified ( optionally wildcard ) host name to the specified output value .
* < a href = " http : / / en . wikipedia . org / wiki / Wildcard _ DNS _ record " > DNS wildcard < / a > is supported as hostname .
* For example , you can use { @ code * .... | map . put ( normalizeHostname ( checkNotNull ( hostname , "hostname" ) ) , checkNotNull ( output , "output" ) ) ; return this ; |
public class CommerceCountryUtil { /** * Returns the last commerce country in the ordered set where uuid = & # 63 ; .
* @ param uuid the uuid
* @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > )
* @ return the last matching commerce country , or < code > null < / ... | return getPersistence ( ) . fetchByUuid_Last ( uuid , orderByComparator ) ; |
public class StreamUtils { /** * Copy all the bytes from an input stream to an output stream .
* @ param is Stream to read bytes from
* @ param os Stream to write bytes to
* @ throws IOException */
static public void copyStream ( InputStream is , OutputStream os ) throws IOException { } } | copyStream ( is , os , DEFAULT_TRANSFER_BUFFER_SIZE ) ; |
public class CoreOptions { /** * TODO comment */
public static < P extends Parser > ParserOption parser ( final Class < P > parserClass , final ParserSetup < P > setup ) { } } | return new ParserOption ( parserClass , setup ) ; |
public class Etag { /** * 计算输入流的etag
* @ param in 数据输入流
* @ param len 数据流长度
* @ return 数据流的etag值
* @ throws IOException 文件读取异常 */
public static String stream ( InputStream in , long len ) throws IOException { } } | if ( len == 0 ) { return "Fto5o-5ea0sNMlW_75VgGJCv2AcJ" ; } byte [ ] buffer = new byte [ 64 * 1024 ] ; byte [ ] [ ] blocks = new byte [ ( int ) ( ( len + Configuration . BLOCK_SIZE - 1 ) / Configuration . BLOCK_SIZE ) ] [ ] ; for ( int i = 0 ; i < blocks . length ; i ++ ) { long left = len - ( long ) Configuration . BL... |
public class InternalSARLParser { /** * InternalSARL . g : 13153:1 : ruleXPostfixOperation returns [ EObject current = null ] : ( this _ XMemberFeatureCall _ 0 = ruleXMemberFeatureCall ( ( ( ( ) ( ( ruleOpPostfix ) ) ) ) = > ( ( ) ( ( ruleOpPostfix ) ) ) ) ? ) ; */
public final EObject ruleXPostfixOperation ( ) throws ... | EObject current = null ; EObject this_XMemberFeatureCall_0 = null ; enterRule ( ) ; try { // InternalSARL . g : 13159:2 : ( ( this _ XMemberFeatureCall _ 0 = ruleXMemberFeatureCall ( ( ( ( ) ( ( ruleOpPostfix ) ) ) ) = > ( ( ) ( ( ruleOpPostfix ) ) ) ) ? ) )
// InternalSARL . g : 13160:2 : ( this _ XMemberFeatureCall _... |
public class BasicPathFinder { /** * Determines whether the edge can be traversed . This implementation will
* check if the { @ link KamNode } or { @ link KamEdge } have been visited to
* ensure there are no cycles in the resulting paths .
* If the edge can be travered it will be placed on the edge { @ link Stack... | if ( edgeStack . contains ( edge ) ) { return false ; } final KamNode currentNode = nodeStack . peek ( ) ; final KamNode edgeOppositeNode = ( edge . getSourceNode ( ) == currentNode ? edge . getTargetNode ( ) : edge . getSourceNode ( ) ) ; if ( nodeStack . contains ( edgeOppositeNode ) ) { return false ; } nodeStack . ... |
public class PageFlowStack { /** * Internal ( to our framework ) method for seeing whether a given action exists in a page flow that is somewhere in
* the stack . If so , the page flow ' s ModuleConfig is returned . */
ModuleConfig findActionInStack ( String actionPath ) { } } | for ( int i = _stack . size ( ) - 1 ; i >= 0 ; -- i ) { ModuleConfig moduleConfig = ( ( PushedPageFlow ) _stack . elementAt ( i ) ) . getPageFlow ( ) . getModuleConfig ( ) ; if ( moduleConfig . findActionConfig ( actionPath ) != null ) { return moduleConfig ; } } return null ; |
public class MethodDescriptorBenchmark { /** * Foo bar . */
@ Benchmark @ BenchmarkMode ( Mode . SampleTime ) @ OutputTimeUnit ( TimeUnit . NANOSECONDS ) public AsciiString transportSpecific ( ) { } } | AsciiString path ; if ( ( path = ( AsciiString ) imd . geRawMethodName ( method ) ) != null ) { path = new AsciiString ( "/" + method . getFullMethodName ( ) ) ; imd . setRawMethodName ( method , path ) ; } return path ; |
public class ProxiedFileSystemUtils { /** * Create a { @ link FileSystem } that can perform any operations allowed the by the specified userNameToProxyAs . This
* method uses the { @ link # createProxiedFileSystemUsingKeytab ( String , String , Path , URI , Configuration ) } object to perform
* all its work . A spe... | Preconditions . checkArgument ( state . contains ( ConfigurationKeys . FS_PROXY_AS_USER_NAME ) ) ; Preconditions . checkArgument ( state . contains ( ConfigurationKeys . SUPER_USER_NAME_TO_PROXY_AS_OTHERS ) ) ; Preconditions . checkArgument ( state . contains ( ConfigurationKeys . SUPER_USER_KEY_TAB_LOCATION ) ) ; retu... |
public class LoggerWrapper { /** * Delegate to the appropriate method of the underlying logger . */
public void debug ( Marker marker , String format , Object ... argArray ) { } } | if ( ! logger . isDebugEnabled ( marker ) ) return ; if ( instanceofLAL ) { FormattingTuple ft = MessageFormatter . arrayFormat ( format , argArray ) ; ( ( LocationAwareLogger ) logger ) . log ( marker , fqcn , LocationAwareLogger . DEBUG_INT , ft . getMessage ( ) , argArray , ft . getThrowable ( ) ) ; } else { logger ... |
public class AbstractLogger { /** * Log a formatted message at trace level .
* @ param message the message to log
* @ param args the arguments for that message */
public void trace ( String message , Object ... args ) { } } | if ( isDebugEnabled ( ) ) { trace ( String . format ( message , args ) , getThrowable ( args ) ) ; } |
public class ProductSearchClient { /** * Makes changes to a Product resource . Only the ` display _ name ` , ` description ` , and ` labels `
* fields can be updated right now .
* < p > If labels are updated , the change will not be reflected in queries until the next index
* time .
* < p > Possible errors :
... | UpdateProductRequest request = UpdateProductRequest . newBuilder ( ) . setProduct ( product ) . setUpdateMask ( updateMask ) . build ( ) ; return updateProduct ( request ) ; |
public class JNvgraph { /** * Query size and topology information from the graph descriptor */
public static int nvgraphGetGraphStructure ( nvgraphHandle handle , nvgraphGraphDescr descrG , Object topologyData , int [ ] TType ) { } } | return checkResult ( nvgraphGetGraphStructureNative ( handle , descrG , topologyData , TType ) ) ; |
public class ClientUserCodeDeploymentConfig { /** * String jarPath is searched in following order :
* 1 . as absolute path ,
* 2 . as URL ,
* 3 . and in classpath .
* @ param jarPaths add list of jarPaths that will be send to clusters
* @ return this for chaining */
public ClientUserCodeDeploymentConfig setJa... | isNotNull ( jarPaths , "jarPaths" ) ; this . jarPaths . clear ( ) ; this . jarPaths . addAll ( jarPaths ) ; return this ; |
public class DecimalStyle { /** * Converts the input numeric text to the internationalized form using the zero character .
* @ param numericText the text , consisting of digits 0 to 9 , to convert , not null
* @ return the internationalized text , not null */
String convertNumberToI18N ( String numericText ) { } } | if ( zeroDigit == '0' ) { return numericText ; } int diff = zeroDigit - '0' ; char [ ] array = numericText . toCharArray ( ) ; for ( int i = 0 ; i < array . length ; i ++ ) { array [ i ] = ( char ) ( array [ i ] + diff ) ; } return new String ( array ) ; |
public class MediaApi { /** * Set the agent state to Ready
* Set the current agent & # 39 ; s state to Ready on the specified media channel .
* @ param mediatype The media channel . ( required )
* @ param readyForMediaData ( optional )
* @ return ApiSuccessResponse
* @ throws ApiException If fail to call the ... | ApiResponse < ApiSuccessResponse > resp = readyForMediaWithHttpInfo ( mediatype , readyForMediaData ) ; return resp . getData ( ) ; |
public class DocumentDraftSummaryUrl { /** * Get Resource Url for DeleteDocumentDrafts
* @ param documentLists List of document lists that contain documents to delete .
* @ return String Resource Url */
public static MozuUrl deleteDocumentDraftsUrl ( String documentLists ) { } } | UrlFormatter formatter = new UrlFormatter ( "/api/content/documentpublishing/draft?documentLists={documentLists}" ) ; formatter . formatUrl ( "documentLists" , documentLists ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . UrlLocation . TENANT_POD ) ; |
public class XmlConfigurer { /** * Creates basic LSParser instance and sets common
* properties and configuration parameters .
* @ return */
public LSParser createLSParser ( ) { } } | LSParser parser = domImpl . createLSParser ( DOMImplementationLS . MODE_SYNCHRONOUS , null ) ; configureParser ( parser ) ; return parser ; |
public class ClassLoader { /** * Finds all resources of the specified name from the search path used to
* load classes . The resources thus found are returned as an
* { @ link java . util . Enumeration < tt > Enumeration < / tt > } of { @ link
* java . net . URL < tt > URL < / tt > } objects .
* < p > The searc... | ClassLoader system = getSystemClassLoader ( ) ; if ( system == null ) { return getBootstrapResources ( name ) ; } return system . getResources ( name ) ; |
public class AtomicGrowingSparseMatrix { /** * { @ inheritDoc } The length of the returned row vector reflects the size of
* matrix at the time of the call , which may be different from earlier calls
* to { @ link # rows ( ) } */
public SparseDoubleVector getColumnVector ( int column ) { } } | checkIndices ( 0 , column ) ; rowReadLock . lock ( ) ; SparseDoubleVector values = new SparseHashDoubleVector ( rows . get ( ) ) ; for ( int row = 0 ; row < rows . get ( ) ; ++ row ) { AtomicSparseVector rowEntry = getRow ( row , - 1 , false ) ; double value = 0 ; if ( rowEntry != null && ( value = rowEntry . get ( col... |
public class Nfs3 { /** * / * ( non - Javadoc )
* @ see com . emc . ecs . nfsclient . nfs . Nfs # wrapped _ sendWrite ( com . emc . ecs . nfsclient . nfs . NfsWriteRequest , java . lang . Long ) */
public Nfs3WriteResponse wrapped_sendWrite ( NfsWriteRequest request , final Long verifier ) throws IOException { } } | // for async write , all the writes and commit should be sent to
// the same NFS server
String ip = request . isSync ( ) ? _rpcWrapper . chooseIP ( request . getIpKey ( ) ) : _server ; NfsResponseHandler < Nfs3WriteResponse > responseHandler = new NfsResponseHandler < Nfs3WriteResponse > ( ) { protected Nfs3WriteRespon... |
public class OtpInputStream { /** * Read an array of bytes from the stream . The method reads at most len
* bytes from the input stream into offset off of the buffer .
* @ return the number of bytes read .
* @ exception OtpErlangDecodeException
* if the next byte cannot be read . */
public int readN ( final byt... | if ( len == 0 && available ( ) == 0 ) { return 0 ; } final int i = super . read ( abuf , off , len ) ; if ( i < 0 ) { throw new OtpErlangDecodeException ( "Cannot read from input stream" ) ; } return i ; |
public class JDBCStorageConnection { /** * Calculates node data size .
* @ throws RepositoryException
* if a database access error occurs */
public long getNodeDataSize ( String nodeIdentifier ) throws RepositoryException { } } | long dataSize = 0 ; ResultSet result = null ; try { result = findNodeDataSize ( getInternalId ( nodeIdentifier ) ) ; try { if ( result . next ( ) ) { dataSize += result . getLong ( 1 ) ; } } finally { JDBCUtils . freeResources ( result , null , null ) ; } result = findNodePropertiesOnValueStorage ( getInternalId ( node... |
public class ItemRule { /** * Returns a list of string values of this item .
* @ return a list of string values */
public List < String > getValueList ( ) { } } | if ( tokensList == null ) { return null ; } if ( tokensList . isEmpty ( ) ) { return new ArrayList < > ( ) ; } else { List < String > list = new ArrayList < > ( tokensList . size ( ) ) ; for ( Token [ ] tokens : tokensList ) { list . add ( TokenParser . toString ( tokens ) ) ; } return list ; } |
public class StringWalker { /** * Advances this { @ link StringWalker } until the predicate condition is met .
* @ param predicate the predicate
* @ return true , if successful */
public boolean walkUntil ( Predicate < StringWalker > predicate ) { } } | if ( predicate . test ( this ) ) return true ; while ( nextCharacter ( ) ) if ( predicate . test ( this ) ) return true ; return false ; |
public class Job { /** * Finds a job with given dest key or returns null */
public static Job findJobByDest ( final Key destKey ) { } } | Job job = null ; for ( Job current : Job . all ( ) ) { if ( current . dest ( ) . equals ( destKey ) ) { job = current ; break ; } } return job ; |
public class ExecutionItemFactory { /** * Create step execution item for a job reference
* @ param jobIdentifier
* @ param args
* @ param nodeStep
* @ param handler
* @ param keepgoingOnSuccess
* @ return
* @ deprecated */
public static StepExecutionItem createJobRef ( final String jobIdentifier , final S... | return createJobRef ( jobIdentifier , args , nodeStep , handler , keepgoingOnSuccess , null , null , null , null , null , label , false , null , false , false , null , false ) ; |
public class DiagnosticsInner { /** * List Site Detector Responses .
* List Site Detector Responses .
* @ param resourceGroupName Name of the resource group to which the resource belongs .
* @ param siteName Site Name
* @ param slot Slot Name
* @ param serviceCallback the async ServiceCallback to handle succe... | return AzureServiceFuture . fromPageResponse ( listSiteDetectorResponsesSlotSinglePageAsync ( resourceGroupName , siteName , slot ) , new Func1 < String , Observable < ServiceResponse < Page < DetectorResponseInner > > > > ( ) { @ Override public Observable < ServiceResponse < Page < DetectorResponseInner > > > call ( ... |
public class ModelsEngine { /** * Evaluate the shadow map .
* @ param i
* the x axis index .
* @ param j
* the y axis index .
* @ param tmpWR
* the output shadow map .
* @ param demWR
* the elevation map .
* @ param res
* the resolution of the elevation map .
* @ param normalSunVector
* @ param ... | int n = 0 ; double zcompare = - Double . MAX_VALUE ; double dx = ( inverseSunVector [ 0 ] * n ) ; double dy = ( inverseSunVector [ 1 ] * n ) ; int nCols = tmpWR . getWidth ( ) ; int nRows = tmpWR . getHeight ( ) ; int idx = ( int ) Math . round ( i + dx ) ; int jdy = ( int ) Math . round ( j + dy ) ; double vectorToOri... |
public class TypedProperties { /** * Equivalent to { @ link # setBoolean ( String , boolean )
* setBoolean } { @ code ( key . name ( ) , value ) } .
* If { @ code key } is null , nothing is done . */
public void setBoolean ( Enum < ? > key , boolean value ) { } } | if ( key == null ) { return ; } setBoolean ( key . name ( ) , value ) ; |
public class DefaultOptionParser { /** * Handles the following tokens :
* < pre >
* - SV
* - S V
* - S = V
* - S1S2
* - S1S2 V
* - SV1 = V2
* - LV
* - L V
* - L = V
* < / pre >
* @ param token the command line token to handle
* @ throws OptionParserException if option parsing fails */
private ... | if ( token . length ( ) == 1 ) { if ( options . hasShortOption ( token ) ) { handleOption ( options . getOption ( token ) ) ; } else { handleUnknownToken ( currentToken ) ; } return ; } int pos = token . indexOf ( '=' ) ; if ( pos == - 1 ) { // no equal sign found ( - xxx )
if ( options . hasShortOption ( token ) ) { h... |
public class BigIntStringChecksum { /** * Take string as input , and either return an instance or return null .
* @ param bics string in " bigintcs : hhhhh - hhhhh - CCCCC " format
* @ return big integer string checksum object
* OR null if incorrect format , error parsing , etc . */
public static BigIntStringChec... | BigIntStringChecksum ret ; if ( bics == null ) { ret = null ; } else if ( ! startsWithPrefix ( bics ) ) { ret = null ; } else { try { ret = fromString ( bics ) ; // completely test the input : make sure
// asBigInteger will throw a SecretShareException on error
if ( ret . asBigInteger ( ) == null ) { // asBigInteger ( ... |
public class ReportJob { /** * Gets the reportQuery value for this ReportJob .
* @ return reportQuery * Holds the filtering criteria . */
public com . google . api . ads . admanager . axis . v201811 . ReportQuery getReportQuery ( ) { } } | return reportQuery ; |
public class BigtableTableAdminGrpcClient { /** * { @ inheritDoc } */
@ Override public Table modifyColumnFamily ( ModifyColumnFamiliesRequest request ) { } } | return createUnaryListener ( request , modifyColumnFamilyRpc , request . getName ( ) ) . getBlockingResult ( ) ; |
public class Vectors { /** * Creates a copy of a given { @ code IntegerVector } with the same type as the
* original .
* @ param source The { @ code Vector } to copy .
* @ return A copy of { @ code source } with the same type . */
public static IntegerVector copyOf ( IntegerVector source ) { } } | IntegerVector result = null ; if ( source instanceof TernaryVector ) { TernaryVector v = ( TernaryVector ) source ; int [ ] pos = v . positiveDimensions ( ) ; int [ ] neg = v . negativeDimensions ( ) ; result = new TernaryVector ( source . length ( ) , Arrays . copyOf ( pos , pos . length ) , Arrays . copyOf ( neg , ne... |
public class CmsMessageBundleEditorOptions { /** * Initializes the upper left component . Does not show the mode switch . */
private void initUpperLeftComponent ( ) { } } | m_upperLeftComponent = new HorizontalLayout ( ) ; m_upperLeftComponent . setHeight ( "100%" ) ; m_upperLeftComponent . setSpacing ( true ) ; m_upperLeftComponent . setDefaultComponentAlignment ( Alignment . MIDDLE_RIGHT ) ; m_upperLeftComponent . addComponent ( m_languageSwitch ) ; m_upperLeftComponent . addComponent (... |
public class AbstractRemoteClient { /** * { @ inheritDoc }
* @ throws org . openbase . jul . exception . CouldNotPerformException { @ inheritDoc }
* @ throws java . lang . InterruptedException { @ inheritDoc } */
@ Override public < R > R callMethod ( String methodName , long timeout ) throws CouldNotPerformExcepti... | return callMethod ( methodName , null , timeout ) ; |
public class MLChar { /** * Populates the { @ link MLChar } with the { @ link String } value .
* @ param value the String value */
public void set ( String value ) { } } | char [ ] cha = value . toCharArray ( ) ; for ( int i = 0 ; i < getN ( ) && i < value . length ( ) ; i ++ ) { setChar ( cha [ i ] , i ) ; } |
public class Discovery { /** * List collection fields .
* Gets a list of the unique fields ( and their types ) stored in the index .
* @ param listCollectionFieldsOptions the { @ link ListCollectionFieldsOptions } containing the options for the call
* @ return a { @ link ServiceCall } with a response type of { @ ... | Validator . notNull ( listCollectionFieldsOptions , "listCollectionFieldsOptions cannot be null" ) ; String [ ] pathSegments = { "v1/environments" , "collections" , "fields" } ; String [ ] pathParameters = { listCollectionFieldsOptions . environmentId ( ) , listCollectionFieldsOptions . collectionId ( ) } ; RequestBuil... |
public class MtasDataItemDoubleFull { /** * ( non - Javadoc )
* @ see mtas . codec . util . collector . MtasDataItem # getCompareValue1 ( ) */
@ Override public MtasDataItemNumberComparator < Double > getCompareValue1 ( ) { } } | createStats ( ) ; switch ( sortType ) { case CodecUtil . STATS_TYPE_SUM : return new MtasDataItemNumberComparator < > ( stats . getSum ( ) , sortDirection ) ; case CodecUtil . STATS_TYPE_MAX : return new MtasDataItemNumberComparator < > ( stats . getMax ( ) , sortDirection ) ; case CodecUtil . STATS_TYPE_MIN : return n... |
public class HtmlEscapeUtil { /** * Perform an escape operation , based on a Reader , according to the specified level and type and writing the
* result to a Writer .
* Note this reader is going to be read char - by - char , so some kind of buffering might be appropriate if this
* is an inconvenience for the spec... | if ( reader == null ) { return ; } final int level = escapeLevel . getEscapeLevel ( ) ; final boolean useHtml5 = escapeType . getUseHtml5 ( ) ; final boolean useNCRs = escapeType . getUseNCRs ( ) ; final boolean useHexa = escapeType . getUseHexa ( ) ; final HtmlEscapeSymbols symbols = ( useHtml5 ? HtmlEscapeSymbols . H... |
public class InteractiveElement { /** * ( non - Javadoc )
* @ see
* qc . automation . framework . widget . IInteractiveElement # dragAndDrop ( IElement element ) */
@ Override public void dragAndDrop ( IElement element ) throws WidgetException { } } | try { Actions builder = new Actions ( getGUIDriver ( ) . getWrappedDriver ( ) ) ; synchronized ( InteractiveElement . class ) { getGUIDriver ( ) . focus ( ) ; builder . dragAndDrop ( this . getWebElement ( ) , new InteractiveElement ( element . getByLocator ( ) ) . getWebElement ( ) ) . build ( ) . perform ( ) ; } } ca... |
public class TrainingsImpl { /** * Gets the number of images tagged with the provided { tagIds } that have prediction results from
* training for the provided iteration { iterationId } .
* The filtering is on an and / or relationship . For example , if the provided tag ids are for the " Dog " and
* " Cat " tags ,... | return ServiceFuture . fromResponse ( getImagePerformanceCountWithServiceResponseAsync ( projectId , iterationId , getImagePerformanceCountOptionalParameter ) , serviceCallback ) ; |
public class CommerceWarehousePersistenceImpl { /** * Returns a range of all the commerce warehouses where groupId = & # 63 ; and active = & # 63 ; and commerceCountryId = & # 63 ; and primary = & # 63 ; .
* Useful when paginating results . Returns a maximum of < code > end - start < / code > instances . < code > sta... | return findByG_A_C_P ( groupId , active , commerceCountryId , primary , start , end , null ) ; |
public class JsonBuilder { /** * Create a new field with the key and the result of fromObject on the value .
* @ param key key
* @ param value value
* @ return field entry implementation that can be added to a JsonObject */
public static @ Nonnull Entry < String , JsonElement > field ( String key , Object value )... | return field ( key , fromObject ( value ) ) ; |
public class JDBCStoreResource { /** * Returns for the file the input stream .
* @ return input stream of the file with the content
* @ throws EFapsException on error */
@ Override public InputStream read ( ) throws EFapsException { } } | StoreResourceInputStream in = null ; ConnectionResource res = null ; try { res = Context . getThreadContext ( ) . getConnectionResource ( ) ; final Statement stmt = res . createStatement ( ) ; final StringBuffer cmd = new StringBuffer ( ) . append ( "select " ) . append ( JDBCStoreResource . COLNAME_FILECONTENT ) . app... |
public class AbstractCommandLineRunner { /** * Returns true if and only if a source map file should be generated for each module , as opposed
* to one unified map . This is specified by having the source map pattern include the % outname %
* variable . */
@ GwtIncompatible ( "Unnecessary" ) private boolean shouldGe... | return options . sourceMapOutputPath != null && options . sourceMapOutputPath . contains ( "%outname%" ) ; |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EEnum getIfcStateEnum ( ) { } } | if ( ifcStateEnumEEnum == null ) { ifcStateEnumEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 905 ) ; } return ifcStateEnumEEnum ; |
public class ClassDocCatalog { /** * Add the given class to the catalog .
* @ param classdoc the ClassDoc to add to the catelog . */
public void addClassDoc ( ClassDoc classdoc ) { } } | if ( classdoc == null ) { return ; } addClass ( classdoc , allClasses ) ; if ( classdoc . isOrdinaryClass ( ) ) { addClass ( classdoc , ordinaryClasses ) ; } else if ( classdoc . isException ( ) ) { addClass ( classdoc , exceptions ) ; } else if ( classdoc . isEnum ( ) ) { addClass ( classdoc , enums ) ; } else if ( cl... |
public class TaskTracker { /** * Given a TaskCompletionEvent , it checks the store and returns an equivalent
* copy that can be used instead . If not in the store , it adds it to the store
* and returns the same supplied TaskCompletionEvent . If the caller uses the
* stored copy , we have an opportunity to save m... | // Use the store so that we can save memory in simulations where there
// are multiple task trackers in memory
synchronized ( taskCompletionEventsStore ) { WeakReference < TaskCompletionEvent > e = taskCompletionEventsStore . get ( t ) ; // If it ' s not in the store , then put it in
if ( e == null ) { taskCompletionEv... |
public class TextEditsVisitor { /** * Write parameter to output file ( and possibly screen ) .
* @ param toWrite Text to write to file */
protected void write ( String toWrite ) throws IOException { } } | if ( ! okToWrite ) throw new IOException ( "file not open for writing." ) ; if ( printToScreen ) System . out . print ( toWrite ) ; try { fw . write ( toWrite ) ; } catch ( IOException e ) { okToWrite = false ; throw e ; } |
public class IndexedSet { /** * { @ inheritDoc } */
@ Override public int intersectionSize ( Collection < ? extends T > other ) { } } | if ( other == null ) return 0 ; return indices . intersectionSize ( convert ( other ) . indices ) ; |
public class SiliCompressor { /** * Compress the image at with the specified path and return the bitmap data of the compressed image .
* @ param imagePath The path of the image file you wish to compress .
* @ param deleteSourceImage If True will delete the source file
* @ return Compress image bitmap
* @ throws... | File imageFile = new File ( compressImage ( imagePath , new File ( Environment . getExternalStoragePublicDirectory ( Environment . DIRECTORY_PICTURES ) , "Silicompressor/images" ) ) ) ; Uri newImageUri = FileProvider . getUriForFile ( mContext , FILE_PROVIDER_AUTHORITY , imageFile ) ; Bitmap bitmap = MediaStore . Image... |
public class FctBnPublicTradeProcessors { /** * < p > Lazy get PrcCheckOut . < / p >
* @ param pAddParam additional param
* @ return requested PrcCheckOut
* @ throws Exception - an exception */
protected final PrcCheckOut < RS > lazyGetPrcCheckOut ( final Map < String , Object > pAddParam ) throws Exception { } } | String beanName = PrcCheckOut . class . getSimpleName ( ) ; @ SuppressWarnings ( "unchecked" ) PrcCheckOut < RS > proc = ( PrcCheckOut < RS > ) this . processorsMap . get ( beanName ) ; if ( proc == null ) { proc = new PrcCheckOut < RS > ( ) ; proc . setLog ( getLogger ( ) ) ; proc . setSrvOrm ( getSrvOrm ( ) ) ; proc ... |
public class InternalXtextParser { /** * InternalXtext . g : 1270:1 : entryRuleNegatedToken : ruleNegatedToken EOF ; */
public final void entryRuleNegatedToken ( ) throws RecognitionException { } } | try { // InternalXtext . g : 1271:1 : ( ruleNegatedToken EOF )
// InternalXtext . g : 1272:1 : ruleNegatedToken EOF
{ before ( grammarAccess . getNegatedTokenRule ( ) ) ; pushFollow ( FollowSets000 . FOLLOW_1 ) ; ruleNegatedToken ( ) ; state . _fsp -- ; after ( grammarAccess . getNegatedTokenRule ( ) ) ; match ( input ... |
public class NavMesh { /** * Optimize a path by removing segments that arn ' t required
* to reach the end point
* @ param path The path to optimize . Redundant segments will be removed */
private void optimize ( NavPath path ) { } } | int pt = 0 ; while ( pt < path . length ( ) - 2 ) { float sx = path . getX ( pt ) ; float sy = path . getY ( pt ) ; float nx = path . getX ( pt + 2 ) ; float ny = path . getY ( pt + 2 ) ; if ( isClear ( sx , sy , nx , ny , 0.1f ) ) { path . remove ( pt + 1 ) ; } else { pt ++ ; } } |
public class ReflectionUtils { /** * Sets the fields value , first by attempting to call the setter method if it exists and then
* falling back to setting the field directly .
* @ param obj the object instance to set the value on , cannot be < code > null < / code > .
* @ param info the fields reflected info obje... | if ( obj == null ) { throw new IllegalArgumentException ( "obj cannot be null" ) ; } if ( info == null ) { throw new IllegalArgumentException ( "info cannot be null" ) ; } if ( info . getSetter ( ) != null ) { Method setter = info . getSetter ( ) ; setter . setAccessible ( true ) ; try { setter . invoke ( obj , new Obj... |
public class PlaylistSubscriberStream { /** * { @ inheritDoc } */
public void receiveVideo ( boolean receive ) { } } | if ( engine != null ) { boolean receiveVideo = engine . receiveVideo ( receive ) ; if ( ! receiveVideo && receive ) { // video has been re - enabled
seekToCurrentPlayback ( ) ; } } else { log . debug ( "PlayEngine was null, receiveVideo cannot be modified" ) ; } |
public class RunMap { /** * Add a < em > new < / em > build to the map .
* Do not use when loading existing builds ( use { @ link # put ( Integer , Object ) } ) . */
@ Override public R put ( R r ) { } } | // Defense against JENKINS - 23152 and its ilk .
File rootDir = r . getRootDir ( ) ; if ( rootDir . isDirectory ( ) ) { throw new IllegalStateException ( "JENKINS-23152: " + rootDir + " already existed; will not overwrite with " + r ) ; } if ( ! r . getClass ( ) . getName ( ) . equals ( "hudson.matrix.MatrixRun" ) ) { ... |
public class HttpFields { /** * Get multiple field values of the same name as a { @ link QuotedCSV }
* @ param name the case - insensitive field name
* @ param keepQuotes True if the fields are kept quoted
* @ return List the values with OWS stripped */
public List < String > getCSV ( String name , boolean keepQu... | QuotedCSV values = null ; for ( HttpField f : this ) { if ( f . getName ( ) . equalsIgnoreCase ( name ) ) { if ( values == null ) values = new QuotedCSV ( keepQuotes ) ; values . addValue ( f . getValue ( ) ) ; } } return values == null ? Collections . emptyList ( ) : values . getValues ( ) ; |
public class CmsRemovePubLocksDialog { /** * Initializes the session object . < p > */
protected void initObject ( ) { } } | Object o ; if ( CmsStringUtil . isEmpty ( getParamAction ( ) ) || CmsDialog . DIALOG_INITIAL . equals ( getParamAction ( ) ) ) { // this is the initial dialog call
o = new ArrayList ( ) ; ( ( List ) o ) . add ( "/" ) ; } else { // this is not the initial call , get module from session
o = getDialogObject ( ) ; } if ( !... |
public class Utility { /** * Encode a run , possibly a degenerate run ( of < 4 values ) .
* @ param length The length of the run ; must be > 0 & & < = 0xFFFF . */
private static final < T extends Appendable > void encodeRun ( T buffer , short value , int length ) { } } | try { char valueChar = ( char ) value ; if ( length < 4 ) { for ( int j = 0 ; j < length ; ++ j ) { if ( valueChar == ESCAPE ) { buffer . append ( ESCAPE ) ; } buffer . append ( valueChar ) ; } } else { if ( length == ESCAPE ) { if ( valueChar == ESCAPE ) { buffer . append ( ESCAPE ) ; } buffer . append ( valueChar ) ;... |
public class YearSerializer { /** * Override because we have String / Int , NOT String / Array */
@ Override protected void _acceptTimestampVisitor ( JsonFormatVisitorWrapper visitor , JavaType typeHint ) throws JsonMappingException { } } | JsonIntegerFormatVisitor v2 = visitor . expectIntegerFormat ( typeHint ) ; if ( v2 != null ) { v2 . numberType ( JsonParser . NumberType . LONG ) ; } |
public class Document { /** * Returns the count of statements contained within the document .
* @ return int */
public int getStatementCount ( ) { } } | int ret = 0 ; for ( final StatementGroup sg : statementGroups ) { ret += sg . getAllStatements ( ) . size ( ) ; } return ret ; |
public class ValidationErrorMarshaller { /** * Marshall the given parameter object . */
public void marshall ( ValidationError validationError , ProtocolMarshaller protocolMarshaller ) { } } | if ( validationError == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( validationError . getElementPath ( ) , ELEMENTPATH_BINDING ) ; protocolMarshaller . marshall ( validationError . getErrorMessage ( ) , ERRORMESSAGE_BINDING ) ; } catch (... |
public class ParosTableAlert { /** * / * ( non - Javadoc )
* @ see org . parosproxy . paros . db . paros . TableAlert # getAlertList ( ) */
@ Override public Vector < Integer > getAlertList ( ) throws DatabaseException { } } | try { try ( PreparedStatement psReadScan = getConnection ( ) . prepareStatement ( "SELECT " + ALERTID + " FROM " + TABLE_NAME ) ) { Vector < Integer > v = new Vector < > ( ) ; try ( ResultSet rs = psReadScan . executeQuery ( ) ) { while ( rs . next ( ) ) { v . add ( rs . getInt ( ALERTID ) ) ; } } return v ; } } catch ... |
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getGFARC ( ) { } } | if ( gfarcEClass == null ) { gfarcEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 451 ) ; } return gfarcEClass ; |
public class CommonRest { /** * 返回所有实例 curl http : / / 127.0.0.1:8081 / destinations */
@ GetMapping ( "/destinations" ) public List < Map < String , String > > destinations ( ) { } } | List < Map < String , String > > result = new ArrayList < > ( ) ; Set < String > destinations = adapterCanalConfig . DESTINATIONS ; for ( String destination : destinations ) { Map < String , String > resMap = new LinkedHashMap < > ( ) ; boolean status = syncSwitch . status ( destination ) ; String resStatus ; if ( stat... |
public class Response { /** * Removes the specified cookie by name .
* @ param name
* @ return the response */
public Response removeCookie ( String name ) { } } | Cookie cookie = new Cookie ( name , "" ) ; cookie . setSecure ( true ) ; cookie . setMaxAge ( 0 ) ; addCookie ( cookie ) ; return this ; |
public class MapWithProtoValuesSubject { /** * Specifies that extra repeated field elements for these explicitly specified field descriptors
* should be ignored . Sub - fields must be specified explicitly if their extra elements are to be
* ignored as well .
* < p > Use { @ link # ignoringExtraRepeatedFieldElemen... | return usingConfig ( config . ignoringExtraRepeatedFieldElementsOfFieldDescriptors ( fieldDescriptors ) ) ; |
public class CmsLinkRewriter { /** * Decodes a file ' s contents and return the content string and the encoding to use for writing the file
* back to the VFS . < p >
* @ param file the file to decode
* @ return a pair ( content , encoding )
* @ throws CmsException if something goes wrong */
protected CmsPair < ... | String content = null ; String encoding = getConfiguredEncoding ( m_cms , file ) ; I_CmsResourceType resType = OpenCms . getResourceManager ( ) . getResourceType ( file . getTypeId ( ) ) ; if ( resType instanceof CmsResourceTypeJsp ) { content = decode ( file . getContents ( ) , encoding ) ; } else { try { CmsXmlEntity... |
public class StringBuilderFutureAppendable { /** * ( non - Javadoc )
* @ see org . esigate . parser . future . FutureAppendable # performAppends ( int , java . util . concurrent . TimeUnit ) */
@ Override public FutureAppendable performAppends ( int timeout , TimeUnit unit ) throws IOException , HttpErrorPage , Timeo... | return this . futureBuilder . performAppends ( timeout , unit ) ; |
public class FormLayout { /** * Sets the column groups , where each column in a group gets the same group wide width . Each
* group is described by an array of integers that are interpreted as column indices . The
* parameter is an array of such group descriptions . < p >
* < strong > Examples : < / strong > < pr... | int maxColumn = getColumnCount ( ) ; boolean [ ] usedIndices = new boolean [ maxColumn + 1 ] ; for ( int group = 0 ; group < colGroupIndices . length ; group ++ ) { for ( int j = 0 ; j < colGroupIndices [ group ] . length ; j ++ ) { int colIndex = colGroupIndices [ group ] [ j ] ; if ( colIndex < 1 || colIndex > maxCol... |
public class DefaultRedirectResolver { /** * Whether the requested redirect URI " matches " the specified redirect URI . For a URL , this implementation tests if
* the user requested redirect starts with the registered redirect , so it would have the same host and root path if
* it is an HTTP URL . The port , useri... | UriComponents requestedRedirectUri = UriComponentsBuilder . fromUriString ( requestedRedirect ) . build ( ) ; UriComponents registeredRedirectUri = UriComponentsBuilder . fromUriString ( redirectUri ) . build ( ) ; boolean schemeMatch = isEqual ( registeredRedirectUri . getScheme ( ) , requestedRedirectUri . getScheme ... |
public class CompositeAction { /** * Execute sequence of actions .
* @ return true if all actions were successful .
* @ throws IOException on IO error . */
public boolean execute ( ) throws IOException { } } | if ( stopOnError ) { for ( int i = 0 ; i < actions . length ; i ++ ) { if ( ! actions [ i ] . execute ( ) ) { return false ; } } return true ; } else { boolean status = true ; IOException exception = null ; for ( int i = 0 ; i < actions . length ; i ++ ) { try { status &= actions [ i ] . execute ( ) ; } catch ( IOExcep... |
public class RandomUtil { /** * 随机字母或数字 , 固定长度 */
public static String randomStringFixLength ( int length ) { } } | return RandomStringUtils . random ( length , 0 , 0 , true , true , null , threadLocalRandom ( ) ) ; |
public class MutateRowsRequestManager { /** * This is called when all calls to { @ link # onMessage ( MutateRowsResponse ) } are complete .
* @ return { @ link ProcessingStatus } of the accumulated responses - success , invalid , retrable ,
* non - retryable . */
public ProcessingStatus onOK ( ) { } } | // Sanity check to make sure that every mutation received a response .
if ( ! messageIsInvalid ) { for ( int i = 0 ; i < results . length ; i ++ ) { if ( results [ i ] == null ) { messageIsInvalid = true ; break ; } } } // There was a problem in the data found in onMessage ( ) , so fail the RPC .
if ( messageIsInvalid ... |
public class JwwfServer { /** * Starts Jetty server and waits for it
* @ return This JwwfServer */
public JwwfServer startAndJoin ( ) { } } | try { server . start ( ) ; server . join ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } return this ; |
public class AbstractWebSocketSession { /** * { @ inheritDoc } */
@ SuppressWarnings ( "unchecked" ) @ Override public < R > R getNativeSession ( Class < R > requiredType ) { } } | if ( requiredType != null ) { if ( requiredType . isInstance ( this . nativeSession ) ) { return ( R ) this . nativeSession ; } } return null ; |
public class ContentSpec { /** * Set the data that will be appended to the & lt ; book & gt ; . ent file when built .
* @ param entities The data to be appended . */
public void setEntities ( final String entities ) { } } | if ( entities == null && this . entities == null ) { return ; } else if ( entities == null ) { removeChild ( this . entities ) ; this . entities = null ; } else if ( this . entities == null ) { this . entities = new KeyValueNode < String > ( CommonConstants . CS_ENTITIES_TITLE , entities ) ; appendChild ( this . entiti... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.