signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class Vulnerability { /** * Returns the list of references . This is primarily used within the
* generated reports .
* @ param sorted whether the returned list should be sorted
* @ return the list of references */
public List < Reference > getReferences ( boolean sorted ) { } } | final List < Reference > sortedRefs = new ArrayList < > ( this . references ) ; if ( sorted ) { Collections . sort ( sortedRefs ) ; } return sortedRefs ; |
public class SignMgrImpl { /** * 验证密码是否正确
* @ param userPassword
* @ param passwordToBeValidate
* @ return */
public boolean validate ( String userPassword , String passwordToBeValidate ) { } } | String data = SignUtils . createPassword ( passwordToBeValidate ) ; if ( data . equals ( userPassword ) ) { return true ; } else { return false ; } |
public class Cache { /** * 同时将多个 field - value ( 域 - 值 ) 对设置到哈希表 key 中 。
* 此命令会覆盖哈希表中已存在的域 。
* 如果 key 不存在 , 一个空哈希表被创建并执行 HMSET 操作 。 */
public String hmset ( Object key , Map < Object , Object > hash ) { } } | Jedis jedis = getJedis ( ) ; try { Map < byte [ ] , byte [ ] > para = new HashMap < byte [ ] , byte [ ] > ( ) ; for ( Entry < Object , Object > e : hash . entrySet ( ) ) para . put ( fieldToBytes ( e . getKey ( ) ) , valueToBytes ( e . getValue ( ) ) ) ; return jedis . hmset ( keyToBytes ( key ) , para ) ; } finally { ... |
public class JsonObjectDecoder { /** * Override this method if you want to filter the json objects / arrays that get passed through the pipeline . */
@ SuppressWarnings ( "UnusedParameters" ) protected ByteBuf extractObject ( ChannelHandlerContext ctx , ByteBuf buffer , int index , int length ) { } } | return buffer . retainedSlice ( index , length ) ; |
public class ModelGenerator { /** * Creates a model object ( JS code ) based on the provided ModelBean and writes it into
* the response .
* @ param request the http servlet request
* @ param response the http servlet response
* @ param model { @ link ModelBean } describing the model to be generated
* @ param... | OutputConfig outputConfig = new OutputConfig ( ) ; outputConfig . setDebug ( debug ) ; outputConfig . setOutputFormat ( format ) ; writeModel ( request , response , model , outputConfig ) ; |
public class RedGBuilder { /** * Sets the dummy factory
* @ param dummyFactory The dummy factory
* @ return The builder itself
* @ see AbstractRedG # setDummyFactory ( DummyFactory ) */
public RedGBuilder < T > withDummyFactory ( final DummyFactory dummyFactory ) { } } | if ( instance == null ) { throw new IllegalStateException ( "Using the builder after build() was called is not allowed!" ) ; } instance . setDummyFactory ( dummyFactory ) ; return this ; |
public class SourceService { /** * Returns a range of lines as raw db data . User permission is not verified .
* @ param from starts from 1
* @ param toInclusive starts from 1 , must be greater than or equal param { @ code from } */
public Optional < Iterable < DbFileSources . Line > > getLines ( DbSession dbSessio... | return getLines ( dbSession , fileUuid , from , toInclusive , Function . identity ( ) ) ; |
public class IO { /** * Close given InputStream , ignoring any resulting exception .
* @ param inputStream
* the InputStream to close ; may be null ( in which case nothing
* happens ) */
public static void close ( @ CheckForNull InputStream inputStream ) { } } | if ( inputStream == null ) { return ; } try { inputStream . close ( ) ; } catch ( IOException e ) { // Ignore
} |
public class LaxHttpParser { /** * Read up to < tt > " \ n " < / tt > from an ( unchunked ) input stream .
* If the stream ends before the line terminator is found ,
* the last part of the string will still be returned .
* If no input data available , < code > null < / code > is returned .
* @ param inputStream... | LOG . trace ( "enter LaxHttpParser.readLine(InputStream, String)" ) ; byte [ ] rawdata = readRawLine ( inputStream ) ; if ( rawdata == null ) { return null ; } // strip CR and LF from the end
int len = rawdata . length ; int offset = 0 ; if ( len > 0 ) { if ( rawdata [ len - 1 ] == '\n' ) { offset ++ ; if ( len > 1 ) {... |
public class MusicOnHoldApi { /** * Upload WAV file to MOH .
* Upload the specified WAV file to the MOH .
* @ param musicFile The musicFile file for uploading to MOH . ( required )
* @ return SendMOHFilesResponse
* @ throws ApiException If fail to call the API , e . g . server error or cannot deserialize the re... | ApiResponse < SendMOHFilesResponse > resp = sendMOHFilesWithHttpInfo ( musicFile ) ; return resp . getData ( ) ; |
public class AntTaskRunner { /** * < p > execute . < / p >
* @ throws org . apache . tools . ant . BuildException if any . */
public void execute ( ) throws BuildException { } } | try { verboseHeaderToLog ( ) ; List < String > args = buildCommandLine ( ) ; verboseCommandLineToLog ( args ) ; doRun ( args ) ; } catch ( BuildException ex ) { throw ex ; } catch ( Exception ex ) { throw new BuildException ( "AntTaskRunner" , ex ) ; } |
public class SipConnectorService { /** * { @ inheritDoc } */
public synchronized Connector getValue ( ) throws IllegalStateException { } } | final Connector connector = this . connector ; if ( connector == null ) { throw MESSAGES . nullValue ( ) ; } return connector ; |
public class IniFile { /** * save back content to ini file
* @ throws IOException */
public void save ( ) throws IOException { } } | if ( ! file . exists ( ) ) file . createFile ( true ) ; OutputStream out = IOUtil . toBufferedOutputStream ( file . getOutputStream ( ) ) ; Iterator it = sections . keySet ( ) . iterator ( ) ; PrintWriter output = new PrintWriter ( out ) ; try { while ( it . hasNext ( ) ) { String strSection = ( String ) it . next ( ) ... |
public class IsValid { /** * regex check
* @ param pc
* @ param type
* @ param value
* @ param objPattern
* @ return
* @ throws PageException */
public static boolean call ( PageContext pc , String type , Object value , Object objPattern ) throws PageException { } } | type = type . trim ( ) ; if ( ! "regex" . equalsIgnoreCase ( type ) && ! "regular_expression" . equalsIgnoreCase ( type ) ) throw new FunctionException ( pc , "isValid" , 1 , "type" , "wrong attribute count for type [" + type + "]" ) ; return regex ( Caster . toString ( value , null ) , Caster . toString ( objPattern )... |
public class RegexTool { /** * Compiles a regular expression into a java { @ code Pattern } object .
* @ param regex the textual representation of the regular expression
* @ return the { @ code Pattern } object corresponding to the regular expression , or { @ code null } if the expression is
* invalid
* @ since... | try { return Pattern . compile ( regex ) ; } catch ( PatternSyntaxException ex ) { return null ; } |
public class PDBusinessCard { /** * This method clones all values from < code > this < / code > to the passed object .
* All data in the parameter object is overwritten !
* @ param ret
* The target object to clone to . May not be < code > null < / code > . */
public void cloneTo ( @ Nonnull final PDBusinessCard r... | ret . m_aParticipantIdentifier = m_aParticipantIdentifier ; ret . m_aEntities = new CommonsArrayList < > ( m_aEntities , PDBusinessEntity :: getClone ) ; |
public class SchemaFacetMarshaller { /** * Marshall the given parameter object . */
public void marshall ( SchemaFacet schemaFacet , ProtocolMarshaller protocolMarshaller ) { } } | if ( schemaFacet == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( schemaFacet . getSchemaArn ( ) , SCHEMAARN_BINDING ) ; protocolMarshaller . marshall ( schemaFacet . getFacetName ( ) , FACETNAME_BINDING ) ; } catch ( Exception e ) { throw... |
public class InternalXbaseParser { /** * InternalXbase . g : 1283:1 : entryRuleXBooleanLiteral : ruleXBooleanLiteral EOF ; */
public final void entryRuleXBooleanLiteral ( ) throws RecognitionException { } } | try { // InternalXbase . g : 1284:1 : ( ruleXBooleanLiteral EOF )
// InternalXbase . g : 1285:1 : ruleXBooleanLiteral EOF
{ if ( state . backtracking == 0 ) { before ( grammarAccess . getXBooleanLiteralRule ( ) ) ; } pushFollow ( FOLLOW_1 ) ; ruleXBooleanLiteral ( ) ; state . _fsp -- ; if ( state . failed ) return ; if... |
public class ParserUtils { /** * method to skip given amount of bytes in stream
* @ param size
* - size to skip
* @ param input
* - input stream to process
* @ throws IOException
* - in case of IO error */
public static void skip ( long size , InputStream input ) throws IOException { } } | while ( size > 0 ) { size -= input . skip ( size ) ; } |
public class PathFileObject { /** * Create a PathFileObject within a directory , such that the binary name
* can be inferred from the relationship to the parent directory . */
static PathFileObject createDirectoryPathFileObject ( JavacPathFileManager fileManager , final Path path , final Path dir ) { } } | return new PathFileObject ( fileManager , path ) { @ Override String inferBinaryName ( Iterable < ? extends Path > paths ) { return toBinaryName ( dir . relativize ( path ) ) ; } } ; |
public class N1qlParams { /** * Sets the { @ link Document } s resulting of a mutation this query should be consistent with .
* @ param documents the documents returned from a mutation .
* @ return this { @ link N1qlParams } for chaining . */
@ InterfaceStability . Committed public N1qlParams consistentWith ( Docum... | return consistentWith ( MutationState . from ( documents ) ) ; |
public class ClassLoaderLeakPreventorFactory { /** * Add new { @ link I } entry to { @ code map } , taking { @ link MustBeAfter } into account */
private < I > void addConsideringOrder ( Map < String , I > map , I newEntry ) { } } | for ( Map . Entry < String , I > entry : map . entrySet ( ) ) { if ( entry . getValue ( ) instanceof MustBeAfter < ? > ) { final Class < ? extends ClassLoaderPreMortemCleanUp > [ ] existingMustBeAfter = ( ( MustBeAfter < ClassLoaderPreMortemCleanUp > ) entry . getValue ( ) ) . mustBeBeforeMe ( ) ; for ( Class < ? exten... |
public class ModelHelper { /** * Helper to convert retention policy from RPC call to internal representation .
* @ param policy The retention policy from RPC interface .
* @ return New instance of RetentionPolicy . */
public static final RetentionPolicy encode ( final Controller . RetentionPolicy policy ) { } } | // Using default enum type of UNKNOWN ( 0 ) to detect if retention policy has been set or not .
// This is required since proto3 does not have any other way to detect if a field has been set or not .
if ( policy != null && policy . getRetentionType ( ) != Controller . RetentionPolicy . RetentionPolicyType . UNKNOWN ) {... |
public class AbstractCommandLineRunner { /** * Processes the results of the compile job , and returns an error code . */
@ GwtIncompatible ( "Unnecessary" ) int processResults ( Result result , List < JSModule > modules , B options ) throws IOException { } } | if ( config . printPassGraph ) { if ( compiler . getRoot ( ) == null ) { return 1 ; } else { Appendable jsOutput = createDefaultOutput ( ) ; jsOutput . append ( DotFormatter . toDot ( compiler . getPassConfig ( ) . getPassGraph ( ) ) ) ; jsOutput . append ( '\n' ) ; closeAppendable ( jsOutput ) ; return 0 ; } } if ( co... |
public class CpCommand { /** * Copies a list of files or directories specified by srcPaths to the destination specified by
* dstPath . This method is used when the original source path contains wildcards .
* @ param srcPaths a list of files or directories in the Alluxio filesystem
* @ param dstPath the destinatio... | URIStatus dstStatus = null ; try { dstStatus = mFileSystem . getStatus ( dstPath ) ; } catch ( FileDoesNotExistException e ) { // if the destination does not exist , it will be created
} if ( dstStatus != null && ! dstStatus . isFolder ( ) ) { throw new InvalidPathException ( ExceptionMessage . DESTINATION_CANNOT_BE_FI... |
public class Record { /** * Creates a new record with the ID and the types specified ( property { @ code rdf : type } ) , and
* no additional properties .
* @ param id
* the ID of the new record , possibly null in order not to assign it
* @ param types
* the types of the record , assigned to property { @ code... | final Record record = new Record ( id ) ; if ( types . length > 0 ) { record . set ( RDF . TYPE , types ) ; } return record ; |
public class GlobalOperationClient { /** * Retrieves an aggregated list of all operations .
* < p > Sample code :
* < pre > < code >
* try ( GlobalOperationClient globalOperationClient = GlobalOperationClient . create ( ) ) {
* ProjectName project = ProjectName . of ( " [ PROJECT ] " ) ;
* for ( OperationsSco... | AggregatedListGlobalOperationsHttpRequest request = AggregatedListGlobalOperationsHttpRequest . newBuilder ( ) . setProject ( project == null ? null : project . toString ( ) ) . build ( ) ; return aggregatedListGlobalOperations ( request ) ; |
public class CollisionFormulaConfig { /** * Create the formula data from node .
* @ param config The collision formulas descriptor ( must not be < code > null < / code > ) .
* @ return The collision formula data .
* @ throws LionEngineException If error when reading data . */
public static CollisionFormulaConfig ... | final Xml root = new Xml ( config ) ; final Map < String , CollisionFormula > collisions = new HashMap < > ( 0 ) ; for ( final Xml node : root . getChildren ( NODE_FORMULA ) ) { final String name = node . readString ( ATT_NAME ) ; final CollisionFormula collision = createCollision ( node ) ; collisions . put ( name , c... |
public class ByExampleUtil { /** * Construct a join predicate on collection ( eg many to many , List ) */
public < T > List < Predicate > byExampleOnXToMany ( ManagedType < T > mt , Root < T > mtPath , T mtValue , SearchParameters sp , CriteriaBuilder builder ) { } } | List < Predicate > predicates = newArrayList ( ) ; for ( PluralAttribute < ? super T , ? , ? > pa : mt . getPluralAttributes ( ) ) { if ( pa . getCollectionType ( ) == PluralAttribute . CollectionType . LIST ) { List < ? > values = ( List < ? > ) jpaUtil . getValue ( mtValue , mt . getAttribute ( pa . getName ( ) ) ) ;... |
public class DB { /** * Adds a term at the end of the current terms if it does not already exist .
* @ param postId The post id .
* @ param taxonomyTerm The taxonomy term to add .
* @ return Was the term added ?
* @ throws SQLException on database error . */
public boolean addPostTerm ( final long postId , fina... | List < TaxonomyTerm > currTerms = selectPostTerms ( postId , taxonomyTerm . taxonomy ) ; for ( TaxonomyTerm currTerm : currTerms ) { if ( currTerm . term . name . equals ( taxonomyTerm . term . name ) ) { return false ; } } Connection conn = null ; PreparedStatement stmt = null ; Timer . Context ctx = metrics . postTer... |
public class EJBMDOrchestrator { /** * F743-506 */
private static TimerMethodData . AutomaticTimer processAutomaticTimerFromXML ( com . ibm . ws . javaee . dd . ejb . Timer timer ) { } } | TimerSchedule timerSchedule = timer . getSchedule ( ) ; boolean persistent = ! timer . isSetPersistent ( ) || timer . isPersistent ( ) ; ScheduleExpression schedule = new ScheduleExpression ( ) ; String year = timerSchedule . getYear ( ) ; if ( year != null ) { schedule . year ( year ) ; } String month = timerSchedule ... |
public class TypeAnalysis { /** * Get the set of exceptions that can be thrown on given edge . This should
* only be called after the analysis completes .
* @ param edge
* the Edge
* @ return the ExceptionSet */
public ExceptionSet getEdgeExceptionSet ( Edge edge ) { } } | CachedExceptionSet cachedExceptionSet = thrownExceptionSetMap . get ( edge . getSource ( ) ) ; return cachedExceptionSet . getEdgeExceptionSet ( edge ) ; |
public class MethodHandleConstant { /** * Writes the contents of the pool entry . */
@ Override void write ( ByteCodeWriter out ) throws IOException { } } | out . write ( ConstantPool . CP_METHODHANDLE ) ; out . write ( _type . getCode ( ) ) ; out . writeShort ( _entry . getIndex ( ) ) ; |
public class Utils { /** * 文字列が空文字か判定する 。
* @ param str
* @ return */
public static boolean isEmpty ( final String str ) { } } | if ( str == null || str . isEmpty ( ) ) { return true ; } if ( str . length ( ) == 1 ) { return str . charAt ( 0 ) == '\u0000' ; } return false ; |
public class RunScriptProcess { /** * Get the main record for this screen .
* @ return The main record ( or null if none ) . */
public Record getMainRecord ( ) { } } | Record record = super . getMainRecord ( ) ; if ( record == null ) record = new Script ( this ) ; return record ; |
public class CommandLine { /** * Delegates to { @ link # call ( Class , IFactory , PrintStream , PrintStream , Help . Ansi , String . . . ) } with
* { @ code System . err } for diagnostic error messages , and { @ link Help . Ansi # AUTO } .
* @ param callableClass class of the command to call when { @ linkplain # p... | return call ( callableClass , factory , out , System . err , Help . Ansi . AUTO , args ) ; |
public class FlatteningDeserializer { /** * Gets a module wrapping this serializer as an adapter for the Jackson
* ObjectMapper .
* @ param mapper the object mapper for default deserializations
* @ return a simple module to be plugged onto Jackson ObjectMapper . */
public static SimpleModule getModule ( final Obj... | SimpleModule module = new SimpleModule ( ) ; module . setDeserializerModifier ( new BeanDeserializerModifier ( ) { @ Override public JsonDeserializer < ? > modifyDeserializer ( DeserializationConfig config , BeanDescription beanDesc , JsonDeserializer < ? > deserializer ) { if ( beanDesc . getBeanClass ( ) . getAnnotat... |
public class MethodNode { /** * The type descriptor for a method node is a string containing the name of the method , its return type ,
* and its parameter types in a canonical form . For simplicity , I ' m using the format of a Java declaration
* without parameter names .
* @ return the type descriptor */
public... | if ( typeDescriptor == null ) { StringBuilder buf = new StringBuilder ( name . length ( ) + parameters . length * 10 ) ; buf . append ( returnType . getName ( ) ) ; buf . append ( ' ' ) ; buf . append ( name ) ; buf . append ( '(' ) ; for ( int i = 0 ; i < parameters . length ; i ++ ) { if ( i > 0 ) { buf . append ( ",... |
public class AlertPolicyServiceClient { /** * Lists the existing alerting policies for the project .
* < p > Sample code :
* < pre > < code >
* try ( AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient . create ( ) ) {
* ProjectName name = ProjectName . of ( " [ PROJECT ] " ) ;
* for ... | ListAlertPoliciesRequest request = ListAlertPoliciesRequest . newBuilder ( ) . setName ( name == null ? null : name . toString ( ) ) . build ( ) ; return listAlertPolicies ( request ) ; |
public class AWSIotClient { /** * Deletes a registered CA certificate .
* @ param deleteCACertificateRequest
* Input for the DeleteCACertificate operation .
* @ return Result of the DeleteCACertificate operation returned by the service .
* @ throws InvalidRequestException
* The request is not valid .
* @ th... | request = beforeClientExecution ( request ) ; return executeDeleteCACertificate ( request ) ; |
public class LittleEndianDataOutputStream { /** * Writes a string to the underlying output stream as a sequence of
* characters . Each character is written to the data output stream as
* if by the { @ code writeChar } method .
* @ param pString a { @ code String } value to be written .
* @ throws IOException if... | int length = pString . length ( ) ; for ( int i = 0 ; i < length ; i ++ ) { int c = pString . charAt ( i ) ; out . write ( c & 0xFF ) ; out . write ( ( c >>> 8 ) & 0xFF ) ; } bytesWritten += length * 2 ; |
public class HMM { /** * Returns the most likely state sequence given the observation sequence by
* the Viterbi algorithm , which maximizes the probability of
* < code > P ( I | O , HMM ) < / code > . In the calculation , we may get ties . In this
* case , one of them is chosen randomly .
* @ param o an observa... | // The porbability of the most probable path .
double [ ] [ ] trellis = new double [ o . length ] [ numStates ] ; // Backtrace .
int [ ] [ ] psy = new int [ o . length ] [ numStates ] ; // The most likely state sequence .
int [ ] s = new int [ o . length ] ; // forward
for ( int i = 0 ; i < numStates ; i ++ ) { trellis... |
public class Matrix4f { /** * Apply scaling to this matrix by scaling the base axes by the given < code > xyz . x < / code > ,
* < code > xyz . y < / code > and < code > xyz . z < / code > factors , respectively .
* If < code > M < / code > is < code > this < / code > matrix and < code > S < / code > the scaling ma... | return scale ( xyz . x ( ) , xyz . y ( ) , xyz . z ( ) , thisOrNew ( ) ) ; |
public class ApiOvhOrder { /** * Get prices and contracts information
* REST : GET / order / dedicated / server / { serviceName } / ipMigration / { duration }
* @ param ip [ required ] The IP to move to this server
* @ param token [ required ] IP migration token
* @ param serviceName [ required ] The internal n... | String qPath = "/order/dedicated/server/{serviceName}/ipMigration/{duration}" ; StringBuilder sb = path ( qPath , serviceName , duration ) ; query ( sb , "ip" , ip ) ; query ( sb , "token" , token ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhOrder . class ) ; |
public class EquationsBFGS { /** * BFGS inverse hessian update equation that orders the multiplications to minimize the number of operations .
* @ param H symmetric inverse matrix being updated
* @ param s change in state
* @ param y change in gradient
* @ param tempV0 Storage vector of length N
* @ param tem... | double alpha = VectorVectorMult_DDRM . innerProdA ( y , H , y ) ; double p = 1.0 / VectorVectorMult_DDRM . innerProd ( s , y ) ; CommonOps_DDRM . mult ( H , y , tempV0 ) ; CommonOps_DDRM . multTransA ( y , H , tempV1 ) ; VectorVectorMult_DDRM . rank1Update ( - p , H , tempV0 , s ) ; VectorVectorMult_DDRM . rank1Update ... |
public class MigrationUtils { /** * Skips bytes corresponding to serialized states . In flink 1.6 + the states are no longer kept in state . */
static void skipSerializedStates ( DataInputView in ) throws IOException { } } | TypeSerializer < String > nameSerializer = StringSerializer . INSTANCE ; TypeSerializer < State . StateType > stateTypeSerializer = new EnumSerializer < > ( State . StateType . class ) ; TypeSerializer < StateTransitionAction > actionSerializer = new EnumSerializer < > ( StateTransitionAction . class ) ; final int noOf... |
public class Positions { /** * Positions the owner to the top inside its parent . < br >
* Respects the parent padding .
* @ param spacing the spacing
* @ return the int supplier */
public static IntSupplier topAligned ( IChild < ? > owner , int spacing ) { } } | return ( ) -> { return Padding . of ( owner . getParent ( ) ) . top ( ) + spacing ; } ; |
public class BatchImportFindingsResult { /** * The list of the findings that cannot be imported .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setFailedFindings ( java . util . Collection ) } or { @ link # withFailedFindings ( java . util . Collection ) } ... | if ( this . failedFindings == null ) { setFailedFindings ( new java . util . ArrayList < ImportFindingsError > ( failedFindings . length ) ) ; } for ( ImportFindingsError ele : failedFindings ) { this . failedFindings . add ( ele ) ; } return this ; |
public class WxPayApiConfig { /** * 构建查询签约关系的Map
* @ return 查询签约关系的Map */
public Map < String , String > querycontractBuild ( ) { } } | Map < String , String > map = new HashMap < String , String > ( ) ; map . put ( "appid" , getAppId ( ) ) ; map . put ( "mch_id" , getMchId ( ) ) ; if ( StrKit . notBlank ( getPlanId ( ) ) ) { map . put ( "plan_id" , getPlanId ( ) ) ; map . put ( "contract_code" , getContractCode ( ) ) ; } else { map . put ( "contract_i... |
public class ExecutionEnvironment { /** * Creates a { @ link DataSet } that represents the primitive type produced by reading the given file line wise .
* This method is similar to { @ link # readCsvFile ( String ) } with single field , but it produces a DataSet not through
* { @ link org . apache . flink . api . j... | Preconditions . checkNotNull ( filePath , "The file path may not be null." ) ; return new DataSource < > ( this , new PrimitiveInputFormat < > ( new Path ( filePath ) , typeClass ) , TypeExtractor . getForClass ( typeClass ) , Utils . getCallLocationName ( ) ) ; |
public class MetadataFinder { /** * Get the set of metadata providers that can offer metadata for tracks loaded from the specified media .
* @ param sourceMedia the media whose metadata providers are desired , or { @ code null } to get the set of
* metadata providers that can offer metadata for all media .
* @ re... | String key = ( sourceMedia == null ) ? "" : sourceMedia . hashKey ( ) ; Set < MetadataProvider > result = metadataProviders . get ( key ) ; if ( result == null ) { return Collections . emptySet ( ) ; } return Collections . unmodifiableSet ( new HashSet < MetadataProvider > ( result ) ) ; |
public class DateFormatter { /** * Parse some text into a { @ link Date } , according to RFC6265
* @ param txt text to parse
* @ param start the start index inside { @ code txt }
* @ param end the end index inside { @ code txt }
* @ return a { @ link Date } , or null if text couldn ' t be parsed */
public stati... | int length = end - start ; if ( length == 0 ) { return null ; } else if ( length < 0 ) { throw new IllegalArgumentException ( "Can't have end < start" ) ; } else if ( length > 64 ) { throw new IllegalArgumentException ( "Can't parse more than 64 chars," + "looks like a user error or a malformed header" ) ; } return for... |
public class ServicePropertiesUtils { /** * Returns the subset of properties that start with the prefix . The returned
* dictionary will have as keys the original key without the prefix .
* @ param serviceReference service reference ; cannot be null
* @ param prefix property keys prefix ; cannot be null
* @ ret... | final Map < String , Object > subset = new HashMap < > ( ) ; for ( String key : serviceReference . getPropertyKeys ( ) ) { if ( key != null && key . startsWith ( prefix ) && key . trim ( ) . length ( ) > prefix . length ( ) ) { subset . put ( key . substring ( prefix . length ( ) ) , serviceReference . getProperty ( ke... |
public class Symm { /** * Decrypt a password
* Skip Symm . ENC
* @ param password
* @ param os
* @ return
* @ throws IOException */
public long depass ( final String password , final OutputStream os ) throws IOException { } } | int offset = password . startsWith ( ENC ) ? 4 : 0 ; final ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; final ByteArrayInputStream bais = new ByteArrayInputStream ( password . getBytes ( ) , offset , password . length ( ) - offset ) ; exec ( new AESExec ( ) { @ Override public void exec ( AES aes ) thro... |
public class WhiteboxImpl { /** * Concatenate strings .
* @ param stringsToConcatenate the strings to concatenate
* @ return the string */
private static String concatenateStrings ( String ... stringsToConcatenate ) { } } | StringBuilder builder = new StringBuilder ( ) ; final int stringsLength = stringsToConcatenate . length ; for ( int i = 0 ; i < stringsLength ; i ++ ) { if ( i == stringsLength - 1 && stringsLength != 1 ) { builder . append ( " or " ) ; } else if ( i != 0 ) { builder . append ( ", " ) ; } builder . append ( stringsToCo... |
public class LazyField { /** * LazyField is not thread - safe for write access . Synchronizations are needed
* under read / write situations . */
public MessageLite setValue ( MessageLite value ) { } } | MessageLite originalValue = this . value ; this . value = value ; bytes = null ; isDirty = true ; return originalValue ; |
public class ModuleUtils { /** * Attempts to convert a module class name to an instantiate module by applying heuristics to
* construct it .
* It first tries to instantiate the provided class itself as a module , if possible . If it is not
* a module , it looks for an inner class called " Module " ,
* " FromPar... | if ( Module . class . isAssignableFrom ( clazz ) ) { return instantiateModule ( ( Class < ? extends Module > ) clazz , parameters , annotation ) ; } else { // to abbreviate the names of modules in param files , if a class name is provided which
// is not a Module , we check if there is an inner - class named Module whi... |
public class TreeIndexHeader { /** * Writes this header to the specified file . Writes the integer values of
* { @ link # dirCapacity } , { @ link # leafCapacity } , { @ link # dirMinimum } ,
* { @ link # leafMinimum } and { @ link # emptyPagesSize } to the file . */
@ Override public void writeHeader ( RandomAcces... | super . writeHeader ( file ) ; file . writeInt ( this . dirCapacity ) ; file . writeInt ( this . leafCapacity ) ; file . writeInt ( this . dirMinimum ) ; file . writeInt ( this . leafMinimum ) ; file . writeInt ( this . emptyPagesSize ) ; file . writeInt ( this . largestPageID ) ; |
public class TasksImpl { /** * Lists all of the tasks that are associated with the specified job .
* For multi - instance tasks , information such as affinityId , executionInfo and nodeInfo refer to the primary task . Use the list subtasks API to retrieve information about subtasks .
* @ param jobId The ID of the j... | return listSinglePageAsync ( jobId ) . concatMap ( new Func1 < ServiceResponseWithHeaders < Page < CloudTask > , TaskListHeaders > , Observable < ServiceResponseWithHeaders < Page < CloudTask > , TaskListHeaders > > > ( ) { @ Override public Observable < ServiceResponseWithHeaders < Page < CloudTask > , TaskListHeaders... |
public class AsmUtils { /** * Changes the access level for the specified field for a class .
* @ param clazz the clazz
* @ param fieldName the field name
* @ return the field */
public static Field changeFieldAccess ( Class < ? > clazz , String fieldName ) { } } | return changeFieldAccess ( clazz , fieldName , fieldName , false ) ; |
public class PrePopulatedValidationSupport { /** * Add a new CodeSystem resource which will be available to the validator . Note that
* { @ link CodeSystem # getUrl ( ) the URL field ) in this resource must contain a value as this
* value will be used as the logical URL .
* Note that if the URL is a canonical FHI... | Validate . notBlank ( theCodeSystem . getUrl ( ) , "theCodeSystem.getUrl() must not return a value" ) ; addToMap ( theCodeSystem , myCodeSystems , theCodeSystem . getUrl ( ) ) ; |
public class WeakBB { /** * Verify a WBB signature for a certain message
* @ param pk Public key
* @ param sig Signature
* @ param m Message
* @ return True iff valid */
public static boolean weakBBVerify ( ECP2 pk , ECP sig , BIG m ) { } } | ECP2 p = new ECP2 ( ) ; p . copy ( pk ) ; p . add ( IdemixUtils . genG2 . mul ( m ) ) ; p . affine ( ) ; return PAIR . fexp ( PAIR . ate ( p , sig ) ) . equals ( IdemixUtils . genGT ) ; |
public class SheetResourcesImpl { /** * Get a sheet as a PDF file .
* It mirrors to the following Smartsheet REST API method : GET / sheet / { id } with " application / pdf " Accept HTTP
* header
* Exceptions :
* IllegalArgumentException : if outputStream is null
* InvalidRequestException : if there is any pr... | getSheetAsFile ( id , paperSize , outputStream , "application/pdf" ) ; |
public class MDIDesktopPane { /** * Cascade all internal frames , un - iconfying any minimized first */
public void cascadeFrames ( ) { } } | restoreFrames ( ) ; int x = 0 ; int y = 0 ; JInternalFrame allFrames [ ] = getAllFrames ( ) ; manager . setNormalSize ( ) ; int frameHeight = getBounds ( ) . height - 5 - allFrames . length * FRAME_OFFSET ; int frameWidth = getBounds ( ) . width - 5 - allFrames . length * FRAME_OFFSET ; for ( int i = allFrames . length... |
public class CmsEncoder { /** * Decodes HTML entity references like < code > & amp ; # 8364 ; < / code > that are contained in the
* String to a regular character , but only if that character is contained in the given
* encodings charset . < p >
* @ param input the input to decode the HTML entities in
* @ param... | Matcher matcher = ENTITIY_PATTERN . matcher ( input ) ; StringBuffer result = new StringBuffer ( input . length ( ) ) ; Charset charset = Charset . forName ( encoding ) ; CharsetEncoder encoder = charset . newEncoder ( ) ; while ( matcher . find ( ) ) { String entity = matcher . group ( ) ; String value = entity . subs... |
public class Gamma { /** * Regularized Upper / Complementary Incomplete Gamma Function
* Q ( s , x ) = 1 - P ( s , x ) = 1 - < i > < big > & # 8747 ; < / big > < sub > < small > 0 < / small > < / sub > < sup > < small > x < / small > < / sup > e < sup > - t < / sup > t < sup > ( s - 1 ) < / sup > dt < / i > */
public... | if ( s < 0.0 ) { throw new IllegalArgumentException ( "Invalid s: " + s ) ; } if ( x < 0.0 ) { throw new IllegalArgumentException ( "Invalid x: " + x ) ; } double igf = 0.0 ; if ( x != 0.0 ) { if ( x == 1.0 / 0.0 ) { igf = 1.0 ; } else { if ( x < s + 1.0 ) { // Series representation
igf = 1.0 - regularizedIncompleteGam... |
public class VariablesInner { /** * Update a variable .
* @ param resourceGroupName Name of an Azure Resource group .
* @ param automationAccountName The name of the automation account .
* @ param variableName The variable name .
* @ param parameters The parameters supplied to the update variable operation .
... | return updateWithServiceResponseAsync ( resourceGroupName , automationAccountName , variableName , parameters ) . map ( new Func1 < ServiceResponse < VariableInner > , VariableInner > ( ) { @ Override public VariableInner call ( ServiceResponse < VariableInner > response ) { return response . body ( ) ; } } ) ; |
public class PDTWebDateHelper { /** * create a RFC822 representation of a date .
* @ param aDateTime
* Date to print . May be < code > null < / code > .
* @ return the RFC822 represented by the given Date . < code > null < / code > if the
* parameter is < code > null < / code > . */
@ Nullable public static Str... | if ( aDateTime == null ) return null ; return getAsStringRFC822 ( aDateTime . toZonedDateTime ( ) ) ; |
public class Actor { /** * Create an OAuth2 client identifier . A client identified by user - provided identifier .
* @ param clientId the UAA client ID
* @ return the created { @ literal Actor } */
public static Actor client ( String clientId ) { } } | Assert . notNull ( clientId , "clientId must not be null" ) ; return new Actor ( OAUTH_CLIENT , clientId ) ; |
public class StorageWriter { /** * Get the index stream for the specified keyLength , create it if needed */
private DataOutputStream getIndexStream ( int keyLength ) throws IOException { } } | // Resize array if necessary
if ( indexStreams . length <= keyLength ) { indexStreams = Arrays . copyOf ( indexStreams , keyLength + 1 ) ; indexFiles = Arrays . copyOf ( indexFiles , keyLength + 1 ) ; keyCounts = Arrays . copyOf ( keyCounts , keyLength + 1 ) ; maxOffsetLengths = Arrays . copyOf ( maxOffsetLengths , key... |
public class Http2StateUtil { /** * Creates a { @ code HttpCarbonRequest } from HttpRequest .
* @ param httpRequest the HTTPRequest message
* @ param http2SourceHandler the HTTP / 2 source handler
* @ return the CarbonRequest Message created from given HttpRequest */
public static HttpCarbonRequest setupCarbonReq... | ChannelHandlerContext ctx = http2SourceHandler . getChannelHandlerContext ( ) ; HttpCarbonRequest sourceReqCMsg = new HttpCarbonRequest ( httpRequest , new DefaultListener ( ctx ) ) ; sourceReqCMsg . setProperty ( POOLED_BYTE_BUFFER_FACTORY , new PooledDataStreamerFactory ( ctx . alloc ( ) ) ) ; sourceReqCMsg . setProp... |
public class StopReplicationTaskRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( StopReplicationTaskRequest stopReplicationTaskRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( stopReplicationTaskRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( stopReplicationTaskRequest . getReplicationTaskArn ( ) , REPLICATIONTASKARN_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to ma... |
public class AuditEvent { /** * Get a Map of all the initiator keys / values .
* @ return - Map of all the initiator keys / values */
public Map < String , Object > getInitiator ( ) { } } | TreeMap < String , Object > map = new TreeMap < String , Object > ( ) ; synchronized ( eventMap ) { for ( Entry < String , Object > entry : eventMap . entrySet ( ) ) { if ( entry . getKey ( ) . startsWith ( INITIATOR ) ) map . put ( entry . getKey ( ) , entry . getValue ( ) ) ; } } return map ; |
public class LRUCache { /** * Try to get the value from cache .
* If not found , create the value by { @ link MemoizeCache . ValueProvider } and put it into the cache , at last return the value .
* The operation is completed atomically .
* @ param key
* @ param valueProvider provide the value if the associated ... | return map . computeIfAbsent ( key , valueProvider :: provide ) ; |
public class CmsWorkplace { /** * Returns the default html for a workplace page , including setting of DOCTYPE and
* inserting a header with the content - type , allowing the selection of an individual style sheet . < p >
* @ param segment the HTML segment ( START / END )
* @ param title the title of the page , i... | if ( segment == HTML_START ) { StringBuffer result = new StringBuffer ( 512 ) ; result . append ( "<!DOCTYPE html>\n" ) ; result . append ( "<html>\n<head>\n" ) ; if ( title != null ) { result . append ( "<title>" ) ; result . append ( title ) ; result . append ( "</title>\n" ) ; } result . append ( "<meta HTTP-EQUIV=\... |
public class SingleDataProviderContext { /** * Adds the specified data provider to the validator under construction .
* @ param dataProvider Data provider to be added .
* @ return Context allowing further construction of the validator using the DSL . */
public MultipleDataProviderContext < DPO > read ( DataProvider... | if ( dataProvider != null ) { addedDataProviders . add ( dataProvider ) ; } // Change context
return new MultipleDataProviderContext < DPO > ( addedTriggers , addedDataProviders ) ; |
public class SheetRenderer { /** * Encode client behaviors to widget config
* @ param context
* @ param sheet
* @ param wb
* @ throws IOException */
private void encodeBehaviors ( final FacesContext context , final Sheet sheet , final WidgetBuilder wb ) throws IOException { } } | // note we write out the onchange event here so we have the selected
// cell too
final Map < String , List < ClientBehavior > > behaviors = sheet . getClientBehaviors ( ) ; wb . append ( ",behaviors:{" ) ; final String clientId = sheet . getClientId ( ) ; // sort event ( manual since callBack prepends leading comma )
i... |
public class ModelsImpl { /** * Delete an entity role .
* @ param appId The application ID .
* @ param versionId The version ID .
* @ param entityId The entity ID .
* @ param roleId The entity role Id .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ throws ErrorResponseExce... | return deleteEntityRoleWithServiceResponseAsync ( appId , versionId , entityId , roleId ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class DataLoader { /** * Creates new DataLoader with the specified batch loader function and with the provided options
* where the batch loader function returns a list of
* { @ link org . dataloader . Try } objects .
* @ param batchLoadFunction the batch load function to use that uses { @ link org . datalo... | return new DataLoader < > ( ( BatchLoader < K , V > ) batchLoadFunction , options ) ; |
public class JavaScriptCompilerMojo { /** * Checks whether or not the file is minified .
* @ param file the file to check
* @ return { @ code true } if the file is minified , { @ code false } otherwise . This method only check for the file
* extension . */
public boolean isNotMinified ( File file ) { } } | return ! file . getName ( ) . endsWith ( "min.js" ) && ! file . getName ( ) . endsWith ( googleClosureMinifierSuffix + ".js" ) ; |
public class CmsContainerPageCopier { /** * Uses the custom translation table to translate formatter id . < p >
* @ param formatterId the formatter id
* @ return the formatter replacement */
private CmsUUID maybeReplaceFormatter ( CmsUUID formatterId ) { } } | if ( m_customReplacements != null ) { CmsUUID replacement = m_customReplacements . get ( formatterId ) ; if ( replacement != null ) { return replacement ; } } return formatterId ; |
public class FramedGraph { /** * Get a { @ link Vertex } given its unique identifier .
* @ param < V > Framing class annotated with { @ link peapod . annotations . Vertex }
* @ param id The unique identifier of the linked vertex to locate
* @ param clazz a framing class annotated with { @ link peapod . annotation... | Iterator < Vertex > tr = graph . vertices ( id ) ; return tr . hasNext ( ) ? frame ( tr . next ( ) , clazz ) : null ; |
public class TargetQueryRenderer { /** * Prints the short form of the predicate ( by omitting the complete URI and
* replacing it by a prefix name ) . */
private static String getAbbreviatedName ( String uri , PrefixManager pm , boolean insideQuotes ) { } } | return pm . getShortForm ( uri , insideQuotes ) ; |
public class GCCBEZRGImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public boolean eIsSet ( int featureID ) { } } | switch ( featureID ) { case AfplibPackage . GCCBEZRG__XPOS : return XPOS_EDEFAULT == null ? xpos != null : ! XPOS_EDEFAULT . equals ( xpos ) ; case AfplibPackage . GCCBEZRG__YPOS : return YPOS_EDEFAULT == null ? ypos != null : ! YPOS_EDEFAULT . equals ( ypos ) ; } return super . eIsSet ( featureID ) ; |
public class SecureDfuImpl { /** * Sends the Execute operation code and awaits for a return notification containing status code .
* The Execute command will confirm the last chunk of data or the last command that was sent .
* Creating the same object again , instead of executing it allows to retransmitting it in ca... | if ( ! mConnected ) throw new DeviceDisconnectedException ( "Unable to read Checksum: device disconnected" ) ; writeOpCode ( mControlPointCharacteristic , OP_CODE_EXECUTE ) ; final byte [ ] response = readNotificationResponse ( ) ; final int status = getStatusCode ( response , OP_CODE_EXECUTE_KEY ) ; if ( status == Sec... |
public class Boot { /** * Replies the identifier of the boot agent from the system ' s properties . The boot agent is launched with
* { @ link # startJanus ( Class , Object . . . ) } .
* @ return the identifier of the boot agent , or < code > null < / code > if it is unknown .
* @ since 2.0.2.0
* @ see JanusCon... | final String id = JanusConfig . getSystemProperty ( JanusConfig . BOOT_AGENT_ID ) ; if ( id != null && ! id . isEmpty ( ) ) { try { return UUID . fromString ( id ) ; } catch ( Throwable exception ) { } } return null ; |
public class WithoutSpecification { /** * Replaces any interaction with a matched byte code element with a non - static field access on the first
* parameter of the matched element . When matching a non - static field access or method invocation , the
* substituted field is located on the same receiver type as the ... | return replaceWith ( new Substitution . ForFieldAccess . OfMatchedField ( matcher ) ) ; |
public class SplunkDestinationDescriptionMarshaller { /** * Marshall the given parameter object . */
public void marshall ( SplunkDestinationDescription splunkDestinationDescription , ProtocolMarshaller protocolMarshaller ) { } } | if ( splunkDestinationDescription == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( splunkDestinationDescription . getHECEndpoint ( ) , HECENDPOINT_BINDING ) ; protocolMarshaller . marshall ( splunkDestinationDescription . getHECEndpointTyp... |
public class AmazonEC2Client { /** * Assigns one or more IPv6 addresses to the specified network interface . You can specify one or more specific IPv6
* addresses , or you can specify the number of IPv6 addresses to be automatically assigned from within the subnet ' s
* IPv6 CIDR block range . You can assign as man... | request = beforeClientExecution ( request ) ; return executeAssignIpv6Addresses ( request ) ; |
public class SessionForRequest { /** * Finds a session .
* @ param request the Http Request
* @ return A session if found in the request attributes . */
public static Optional < Session > find ( HttpRequest < ? > request ) { } } | return request . getAttributes ( ) . get ( HttpSessionFilter . SESSION_ATTRIBUTE , Session . class ) ; |
public class HelperBase { /** * First character to upper case . */
public String toFirstUpper ( String name ) { } } | if ( name . length ( ) == 0 ) { return name ; } else { return name . substring ( 0 , 1 ) . toUpperCase ( ) + name . substring ( 1 ) ; } |
public class ProjectApi { /** * Delete a project issue .
* < pre > < code > DELETE / projects / : id / issues / : issue _ iid < / code > < / pre >
* @ param projectIdOrPath projectIdOrPath the project in the form of an Integer ( ID ) , String ( path ) , or Project instance , required
* @ param issueId the interna... | Response . Status expectedStatus = ( isApiVersion ( ApiVersion . V3 ) ? Response . Status . OK : Response . Status . NO_CONTENT ) ; delete ( expectedStatus , getDefaultPerPageParam ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "issues" , issueId ) ; |
public class BaseDataSource { /** * Sets properties from a { @ link DriverManager } URL .
* @ param url properties to set */
public void setUrl ( String url ) { } } | Properties p = org . postgresql . Driver . parseURL ( url , null ) ; if ( p == null ) { throw new IllegalArgumentException ( "URL invalid " + url ) ; } for ( PGProperty property : PGProperty . values ( ) ) { if ( ! this . properties . containsKey ( property . getName ( ) ) ) { setProperty ( property , property . get ( ... |
public class StandardBullhornData { /** * { @ inheritDoc } */
@ Override public FileWrapper addFile ( Class < ? extends FileEntity > type , Integer entityId , MultipartFile file , String externalId , FileParams params ) { } } | return this . handleAddFileWithMultipartFile ( type , entityId , file , externalId , params , true ) ; |
public class BucketConfigurationXmlFactory { /** * / * < LifecycleConfiguration >
* < Rule >
* < ID > logs - rule < / ID >
* < Status > Enabled < / Status >
* < Transition >
* < Days > 30 < / Days >
* < StorageClass > GLACIER < / StorageClass >
* < / Transition >
* < Expiration >
* < Days > 365 < / Da... | XmlWriter xml = new XmlWriter ( ) ; xml . start ( "LifecycleConfiguration" ) ; if ( config . getRules ( ) != null ) { for ( Rule rule : config . getRules ( ) ) { writeRule ( xml , rule ) ; } } xml . end ( ) ; return xml . getBytes ( ) ; |
public class UpdateDomainMetadataRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( UpdateDomainMetadataRequest updateDomainMetadataRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( updateDomainMetadataRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( updateDomainMetadataRequest . getFleetArn ( ) , FLEETARN_BINDING ) ; protocolMarshaller . marshall ( updateDomainMetadataRequest . getDomainName ( ) , DOMAIN... |
public class TaskTable { /** * 如果时间匹配则执行相应的Task , 带读锁
* @ param millis 时间毫秒 */
public void executeTaskIfMatch ( long millis ) { } } | final Lock readLock = lock . readLock ( ) ; try { readLock . lock ( ) ; executeTaskIfMatchInternal ( millis ) ; } finally { readLock . unlock ( ) ; } |
public class ResourceBundleELResolver { /** * If the base object is an instance of ResourceBundle , the provided property will first be
* coerced to a String . The Object returned by getObject on the base ResourceBundle will be
* returned . If the base is ResourceBundle , the propertyResolved property of the ELCont... | if ( context == null ) { throw new NullPointerException ( "context is null" ) ; } Object result = null ; if ( isResolvable ( base ) ) { if ( property != null ) { try { result = ( ( ResourceBundle ) base ) . getObject ( property . toString ( ) ) ; } catch ( MissingResourceException e ) { result = "???" + property + "???... |
public class MetaClass { /** * Decode an array encoded as a String . This entails a comma separated value enclosed in brackets
* or parentheses
* @ param encoded The String encoded array
* @ return A String array corresponding to the encoded array */
private static final String [ ] decodeArray ( String encoded ) ... | char [ ] chars = encoded . trim ( ) . toCharArray ( ) ; // - - Parse the String
// ( state )
char quoteCloseChar = ( char ) 0 ; List < StringBuilder > terms = new LinkedList < StringBuilder > ( ) ; StringBuilder current = new StringBuilder ( ) ; // ( start / stop overhead )
int start = 0 ; int end = chars . length ; if... |
public class StoreFactoryImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public ServerState createServerStateFromString ( EDataType eDataType , String initialValue ) { } } | ServerState result = ServerState . get ( initialValue ) ; if ( result == null ) throw new IllegalArgumentException ( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType . getName ( ) + "'" ) ; return result ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.