signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class br_broker { /** * < pre >
* Use this operation to modify Unified Repeater Instance .
* < / pre > */
public static br_broker update ( nitro_service client , br_broker resource ) throws Exception { } } | resource . validate ( "modify" ) ; return ( ( br_broker [ ] ) resource . update_resource ( client ) ) [ 0 ] ; |
public class ResourceFormatGeneratorService { /** * Return a generator for a mime type .
* @ param mimeType the MIME type string
* @ return The first matching parser for the mime type
* @ throws UnsupportedFormatException if no generators are available for the MIME type */
public ResourceFormatGenerator getGenera... | // clean up encoding
final String cleanMime ; if ( mimeType . indexOf ( ";" ) > 0 ) { cleanMime = mimeType . substring ( 0 , mimeType . indexOf ( ";" ) ) ; } else { cleanMime = mimeType ; } if ( ! ResourceFormatParserService . validMimeType ( cleanMime ) ) { throw new IllegalArgumentException ( "Invalid MIME type: " + ... |
public class MCWrapper { /** * clear the handle list */
public void clearHandleList ( ) { } } | final boolean isTracingEnabled = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTracingEnabled && tc . isDebugEnabled ( ) ) { Tr . debug ( this , tc , "Clear the McWrapper handlelist for the following MCWrapper: " + this ) ; } // since we know we are only in this method on a destroy or clean up
// of a MCWrapper , ... |
public class Logger { /** * Log . */
public void log ( Level level , String message ) { } } | if ( level . ordinal ( ) < getLevel ( ) ) return ; logMessage ( level , message , null ) ; |
public class TaskClient { /** * Retrieve pending task identified by reference name for a workflow
* @ param workflowId Workflow instance id
* @ param taskReferenceName reference name of the task
* @ return Returns the pending workflow task identified by the reference name */
public Task getPendingTaskForWorkflow ... | Preconditions . checkArgument ( StringUtils . isNotBlank ( workflowId ) , "Workflow id cannot be blank" ) ; Preconditions . checkArgument ( StringUtils . isNotBlank ( taskReferenceName ) , "Task reference name cannot be blank" ) ; TaskServicePb . PendingTaskResponse response = stub . getPendingTaskForWorkflow ( TaskSer... |
public class JobmanagerInfoServlet { /** * Writes Json with a list of currently archived jobs , sorted by time
* @ param wrt
* @ param jobs */
private void writeJsonForArchive ( PrintWriter wrt , List < RecentJobEvent > jobs ) { } } | wrt . write ( "[" ) ; // sort jobs by time
Collections . sort ( jobs , new Comparator < RecentJobEvent > ( ) { @ Override public int compare ( RecentJobEvent o1 , RecentJobEvent o2 ) { if ( o1 . getTimestamp ( ) < o2 . getTimestamp ( ) ) { return 1 ; } else { return - 1 ; } } } ) ; // Loop Jobs
for ( int i = 0 ; i < jo... |
public class DefaultValidatorMessageMixin { /** * { @ inheritDoc } */
@ Override public String lookup ( String key , Object [ ] msgValues ) { } } | String msg = lookup ( key ) ; if ( msg != null ) { msg = MessageFormat . format ( msg , msgValues ) ; } return msg ; |
public class Model { /** * Find model by id and load specific columns only .
* < pre >
* Example :
* User user = User . dao . findByIdLoadColumns ( 123 , " name , age " ) ;
* < / pre >
* @ param idValue the id value of the model
* @ param columns the specific columns to load */
public M findByIdLoadColumns ... | return findByIdLoadColumns ( new Object [ ] { idValue } , columns ) ; |
public class ClusterSizeMonitor { /** * Returns a listener that completes when the minimum number of workers for the cluster has been met .
* Note : caller should not add a listener using the direct executor , as this can delay the
* notifications for other listeners . */
public synchronized ListenableFuture < ? > ... | if ( currentCount >= executionMinCount ) { return immediateFuture ( null ) ; } SettableFuture < ? > future = SettableFuture . create ( ) ; futures . add ( future ) ; // if future does not finish in wait period , complete with an exception
ScheduledFuture < ? > timeoutTask = executor . schedule ( ( ) -> { synchronized (... |
public class WebContainerRequestState { /** * / * ( non - Javadoc )
* @ see javax . servlet . ServletRequest # getAttribute ( java . lang . String ) */
public Object getAttribute ( String arg0 ) { } } | // 321485
if ( _attributes == null ) return null ; if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { // 306998.15
logger . logp ( Level . FINE , CLASS_NAME , "getAttribute" , " name --> " + arg0 ) ; } Object obj = _attributes . get ( arg0 ) ; return obj ; |
public class GVRAnimation { /** * Many animations can take multiple target types : for example ,
* { @ link GVRMaterialAnimation material animations } can work directly with
* { @ link GVRMaterial } targets , but also ' know how ' to get a
* { @ link GVRMaterial } from a { @ link GVRSceneObject } . They can , of ... | for ( Class < ? > type : supported ) { if ( type . isInstance ( target ) ) { return type ; } } // else
throw new IllegalArgumentException ( ) ; |
public class Term { /** * Returns a list of all terms contained by and within this term .
* @ return Non - null list of terms */
public List < Term > getAllTerms ( ) { } } | List < Term > ret = new ArrayList < Term > ( ) ; if ( terms != null ) { ret . addAll ( terms ) ; for ( final Term term : terms ) { ret . addAll ( term . getAllTerms ( ) ) ; } } return ret ; |
public class JMTimeUtil { /** * Gets simple date format .
* @ param dateFormat the date format
* @ param zoneId the zone id
* @ return the simple date format */
public static SimpleDateFormat getSimpleDateFormat ( String dateFormat , String zoneId ) { } } | return JMMap . getOrPutGetNew ( simpleDateFormatMap , buildSimpleDateFormatKey ( dateFormat , zoneId ) , newSimpleDateFormatBuilder . apply ( dateFormat , zoneId ) ) ; |
public class CommerceShipmentPersistenceImpl { /** * Returns all the commerce shipments where groupId = & # 63 ; .
* @ param groupId the group ID
* @ return the matching commerce shipments */
@ Override public List < CommerceShipment > findByGroupId ( long groupId ) { } } | return findByGroupId ( groupId , QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; |
public class InternationalFixedDate { /** * Obtains a { @ code InternationalFixedDate } representing a date in the International fixed calendar
* system from the proleptic - year and day - of - year fields .
* This returns a { @ code InternationalFixedDate } with the specified fields .
* The day must be valid for... | YEAR_RANGE . checkValidValue ( prolepticYear , ChronoField . YEAR_OF_ERA ) ; ChronoField . DAY_OF_YEAR . checkValidValue ( dayOfYear ) ; boolean isLeapYear = INSTANCE . isLeapYear ( prolepticYear ) ; int lastDoy = ( DAYS_IN_YEAR + ( isLeapYear ? 1 : 0 ) ) ; if ( dayOfYear > lastDoy ) { throw new DateTimeException ( "In... |
public class PluginManager { /** * Loads a plugin by the specified plugin directory and put it into the specified holder .
* @ param pluginDirPath the specified plugin directory
* @ param holder the specified holder
* @ return loaded plugin
* @ throws Exception exception */
private AbstractPlugin load ( final S... | final Properties props = new Properties ( ) ; final ServletContext servletContext = AbstractServletListener . getServletContext ( ) ; String plugin = StringUtils . substringAfter ( pluginDirPath , "/plugins" ) ; plugin = plugin . replace ( "/" , "" ) ; final File file = Latkes . getWebFile ( "/plugins/" + plugin + "/pl... |
public class DocumentBuilderImpl { /** * Implements the whole parsing of the XML document . The XML pull parser is
* actually more of a tokenizer , and we are doing a classical recursive
* descent parsing ( the method invokes itself for XML elements ) . Our
* approach to parsing does accept some illegal documents... | int token = parser . getEventType ( ) ; /* * The main parsing loop . The precondition is that we are already on the
* token to be processed . This holds for each iteration of the loop , so
* the inner statements have to ensure that ( in particular the recursive
* call ) . */
while ( token != endToken && token != ... |
public class DefaultDatabus { /** * Implements peek ( ) or poll ( ) based on whether claimTtl is null or non - null . */
private PollResult peekOrPoll ( String subscription , @ Nullable Duration claimTtl , int limit ) { } } | int remaining = limit ; Map < Coordinate , EventList > rawEvents = ImmutableMap . of ( ) ; Map < Coordinate , Item > uniqueItems = Maps . newHashMap ( ) ; boolean isPeek = claimTtl == null ; boolean repeatable = ! isPeek && claimTtl . toMillis ( ) > 0 ; boolean eventsAvailableForNextPoll = false ; boolean noMaxPollTime... |
public class EmailGlobalSettings { /** * Enable or disable javax . mail debugging . By default debugging is disabled .
* @ param bDebug
* < code > true < / code > to enabled debugging , < code > false < / code > to
* disable it . */
@ SuppressFBWarnings ( "LG_LOST_LOGGER_DUE_TO_WEAK_REFERENCE" ) public static voi... | java . util . logging . Logger . getLogger ( "com.sun.mail.smtp" ) . setLevel ( bDebug ? Level . FINEST : Level . INFO ) ; java . util . logging . Logger . getLogger ( "com.sun.mail.smtp.protocol" ) . setLevel ( bDebug ? Level . FINEST : Level . INFO ) ; SystemProperties . setPropertyValue ( "mail.socket.debug" , bDebu... |
public class MatrixIO { /** * Creates a { @ code Matrix } from the data encoded as { @ link
* Format # SVDLIBC _ DENSE _ TEXT } in provided file .
* @ param matrix
* @ param matrixType
* @ return a matrix whose data was specified by the provided file */
private static Matrix readDenseSVDLIBCtext ( File matrix ,... | BufferedReader br = new BufferedReader ( new FileReader ( matrix ) ) ; // Note that according to the formatting , spaces and new lines are
// equivalent . Therefore , someone could just print all of the matrix
// values on a single line .
int rows = - 1 ; int cols = - 1 ; int valuesSeen = 0 ; // REMINDER : possibly use... |
public class SerDeserializers { /** * parses and registers the classes */
private static void registerFromClasspath ( String beanName , String deserName , Map < Class < ? > , SerDeserializer > map ) throws Exception { } } | Class < ? extends Bean > beanClass = Class . forName ( beanName ) . asSubclass ( Bean . class ) ; Class < ? > deserClass = Class . forName ( deserName ) ; Field field = null ; SerDeserializer deser ; try { field = deserClass . getDeclaredField ( "DESERIALIZER" ) ; if ( ! Modifier . isStatic ( field . getModifiers ( ) )... |
public class ntpserver { /** * Use this API to delete ntpserver of given name . */
public static base_response delete ( nitro_service client , String serverip ) throws Exception { } } | ntpserver deleteresource = new ntpserver ( ) ; deleteresource . serverip = serverip ; return deleteresource . delete_resource ( client ) ; |
public class GBSIterator { /** * Find the next key in the index .
* < p > If _ eof is false the iterator has not reached the end of the
* index and we can move forward in the normal way . But if _ eof is
* true then the iterator has hit the end of the index and has lost
* its position . In this case we have to ... | if ( _last1 . key ( ) == null ) throw new RuntimeException ( "Help! In findNext(), _last1.key() == null" ) ; if ( ! _eof ) findNextBeforeEof ( stack ) ; else findNextAfterEof ( stack ) ; |
public class WebSocketSerializer { /** * Deserialize the Response Json String .
* @ param jsonStr
* The Response Json String .
* @ return
* the ResponseDeserializer .
* @ throws JsonParseException
* @ throws JsonMappingException
* @ throws IOException */
public static ResponseDeserializer getResponseDeser... | final ResponsePair p = mapper . readValue ( jsonStr , ResponsePair . class ) ; Response rr = null ; if ( p . getType ( ) != null ) { rr = ( Response ) mapper . readValue ( p . getResponse ( ) , p . getType ( ) ) ; } final Response resp = rr ; return new ResponseDeserializer ( ) { @ Override public ResponseHeader deseri... |
public class BaseScreen { /** * Process the " Login " toolbar command .
* @ return true if successful . */
public boolean onLogout ( ) { } } | App application = this . getTask ( ) . getApplication ( ) ; int iErrorCode = application . login ( this . getTask ( ) , null , null , this . getProperty ( DBParams . DOMAIN ) ) ; if ( iErrorCode != DBConstants . NORMAL_RETURN ) return false ; String strMenu = this . getProperty ( DBParams . HOME ) ; if ( strMenu == nul... |
public class DscCompilationJobsInner { /** * Creates the Dsc compilation job of the configuration .
* @ param resourceGroupName Name of an Azure Resource group .
* @ param automationAccountName The name of the automation account .
* @ param compilationJobId The the DSC configuration Id .
* @ param parameters Th... | return ServiceFuture . fromResponse ( createWithServiceResponseAsync ( resourceGroupName , automationAccountName , compilationJobId , parameters ) , serviceCallback ) ; |
public class Configuration { /** * Check if a UID was already used in any context
* @ param category The category to check
* @ param projectName The project name to check
* @ param uid The UID to validate
* @ return True if the UID is present for at least one version of a project in a category , false otherwise... | if ( uid == null ) { return false ; } else { for ( File versionDirectory : getUidFilesForProject ( category , projectName ) ) { String uidRead = readUid ( new File ( versionDirectory , "latest" ) ) ; if ( uidRead != null && ! uidRead . isEmpty ( ) ) { if ( uidRead . equals ( uid ) ) { return true ; } } } return false ;... |
public class AbsWorker { /** * null not run , false err , true ok */
public Obj work ( Obj cmd ) throws Exception { } } | stopping = false ; return status ( ) . with ( P_STATUS , STATUS_STARTED ) ; |
public class MarkdownDoclet { /** * Process the class documentation .
* @ param doc The class documentation . */
protected void processClass ( ClassDoc doc ) { } } | defaultProcess ( doc , true ) ; for ( MemberDoc member : doc . fields ( ) ) { processMember ( member ) ; } for ( MemberDoc member : doc . constructors ( ) ) { processMember ( member ) ; } for ( MemberDoc member : doc . methods ( ) ) { processMember ( member ) ; } if ( doc instanceof AnnotationTypeDoc ) { for ( MemberDo... |
public class NonBlockingBufferedWriter { /** * Writes a portion of an array of characters .
* Ordinarily this method stores characters from the given array into this
* stream ' s buffer , flushing the buffer to the underlying stream as needed . If
* the requested length is at least as large as the buffer , howeve... | _ensureOpen ( ) ; ValueEnforcer . isArrayOfsLen ( cbuf , nOfs , nLen ) ; if ( nLen == 0 ) return ; if ( nLen >= m_nChars ) { /* * If the request length exceeds the size of the output buffer , flush the
* buffer and then write the data directly . In this way buffered streams
* will cascade harmlessly . */
flushBuffe... |
public class IQRCode { /** * 将指定数据生成二维码图片的BufferedImage
* @ param data 二维码数据
* @ param width 图片的宽
* @ param height 图片的高
* @ return 二维码图片对应的BufferedImage
* @ throws IOException IO异常 */
public static BufferedImage createImg ( String data , int width , int height ) throws IOException { } } | logger . debug ( "生成二维码,要生成的图片的宽为{},高为{}" , width , height ) ; QRCode code = createQRCode ( data , width , height ) ; BufferedImage image = ImageIO . read ( new ByteArrayInputStream ( code . stream ( ) . toByteArray ( ) ) ) ; logger . debug ( "二维码生成成功" ) ; return image ; |
public class ApiOvhHostingweb { /** * Install new database
* REST : POST / hosting / web / { serviceName } / database
* @ param type [ required ] Type you want for your database
* @ param password [ required ] Database password
* @ param user [ required ] Database user name . Must begin with your hosting login ... | String qPath = "/hosting/web/{serviceName}/database" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "capabilitie" , capabilitie ) ; addBody ( o , "password" , password ) ; addBody ( o , "quota" , quota ) ; addBody ( o , "type" , ty... |
public class JumblrException { /** * Pull the message out of the response
* @ param object the parsed response object */
private void extractMessage ( JsonObject object ) { } } | // Prefer to pull the message out of meta
JsonObject meta = object . getAsJsonObject ( "meta" ) ; if ( meta != null ) { JsonPrimitive msg = meta . getAsJsonPrimitive ( "msg" ) ; if ( msg != null ) { this . message = msg . getAsString ( ) ; return ; } } // Fall back on error
JsonPrimitive error = object . getAsJsonPrimi... |
public class PHS398FellowshipSupplementalV1_1Generator { /** * This method used to set data to ResearchTrainingPlan XMLObject from
* DevelopmentProposal */
private ResearchTrainingPlan getResearchTrainingPlan ( ) { } } | ResearchTrainingPlan researchTrainingPlan = ResearchTrainingPlan . Factory . newInstance ( ) ; setHumanSubjectInvolvedAndVertebrateAnimalUsed ( researchTrainingPlan ) ; setQuestionnareAnswerForResearchTrainingPlan ( researchTrainingPlan ) ; setNarrativeDataForResearchTrainingPlan ( researchTrainingPlan ) ; return resea... |
public class HalFormsConfiguration { /** * Translate a { @ link HalFormsConfiguration } into a { @ link HalConfiguration } .
* @ return */
public HalConfiguration toHalConfiguration ( ) { } } | if ( this . getRenderSingleLinks ( ) == RenderSingleLinks . AS_SINGLE ) { return new HalConfiguration ( ) . withRenderSingleLinks ( HalConfiguration . RenderSingleLinks . AS_SINGLE ) ; } if ( this . getRenderSingleLinks ( ) == RenderSingleLinks . AS_ARRAY ) { return new HalConfiguration ( ) . withRenderSingleLinks ( Ha... |
public class CmsContainerpageHandler { /** * Opens the elements info dialog . < p > */
public void openElementsInfo ( ) { } } | CmsResourceInfoDialog . load ( CmsCoreProvider . get ( ) . getStructureId ( ) , true , CmsContainerpageController . get ( ) . getData ( ) . getDetailId ( ) , new HashMap < String , String > ( ) , new CloseHandler < PopupPanel > ( ) { public void onClose ( CloseEvent < PopupPanel > event ) { deactivateCurrentButton ( ) ... |
public class VirtualMachineErrorTerminator { /** * Checks if the throwable or any of the causes in its cause chain are a
* virtual machine error , and if so , terminates the virtual machine . If
* neither the throwable nor any of its causes are a virtual machine error ,
* then does nothing . Useful in the body of... | while ( t != null ) { if ( t instanceof VirtualMachineError ) { VirtualMachineErrorTerminator . terminateVM ( ( VirtualMachineError ) t ) ; } t = t . getCause ( ) ; } |
public class ModelsImpl { /** * Gets information of a regex entity model .
* @ param appId The application ID .
* @ param versionId The version ID .
* @ param regexEntityId The regex entity model ID .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the observable to the... | if ( this . client . endpoint ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.endpoint() is required and cannot be null." ) ; } if ( appId == null ) { throw new IllegalArgumentException ( "Parameter appId is required and cannot be null." ) ; } if ( versionId == null ) { throw new IllegalArgu... |
public class UtlInvBase { /** * < p > Finds ( if need ) line with same tax or creates one . < / p >
* @ param < T > invoice type
* @ param < TL > invoice tax line type
* @ param pReqVars additional param
* @ param pInv invoice
* @ param pInvTxLns invoice tax lines
* @ param pTax tax
* @ param pNeedFind if... | TL itl = null ; // find same line to add amount :
for ( TL tl : pInvTxLns ) { if ( tl . getTax ( ) != null && tl . getTax ( ) . getItsId ( ) . equals ( pTax . getItsId ( ) ) ) { if ( ! pNeedFind ) { throw new Exception ( "Algorithm error!!!" ) ; } itl = tl ; break ; } } // find and enable disabled line :
for ( TL tl : ... |
public class Tags { /** * 删除标签
* @ param id 标签ID */
public void delete ( int id ) { } } | String url = WxEndpoint . get ( "url.tag.delete" ) ; String json = JsonMapper . nonEmptyMapper ( ) . toJson ( new TagWrapper ( id ) ) ; logger . debug ( "delete tag: {}" , json ) ; wxClient . post ( url , json ) ; |
public class DifferentialFunctionClassHolder { /** * Returns the missing tensorflow ops
* @ return */
public Set < String > missingTensorflowOps ( ) { } } | Set < String > copy = new HashSet < > ( tensorflowOpDescriptors . keySet ( ) ) ; copy . removeAll ( tensorFlowNames . keySet ( ) ) ; return copy ; |
public class WriterFactoryImpl { /** * { @ inheritDoc } */
@ Override public FieldWriterImpl getFieldWriter ( ClassWriter classWriter ) { } } | return new FieldWriterImpl ( ( SubWriterHolderWriter ) classWriter , classWriter . getTypeElement ( ) ) ; |
public class CmsLockFilter { /** * Matches the given lock against this filter and the given path . < p >
* @ param rootPath the path to match the lock against
* @ param lock the lock to match
* @ return < code > true < / code > if the given lock matches */
public boolean match ( String rootPath , CmsLock lock ) {... | boolean match = false ; if ( m_includeChildren ) { // safe since rootPath always ends with slash if a folder
match = lock . getResourceName ( ) . startsWith ( rootPath ) ; } if ( ! match && m_includeParents ) { // since parents can only be folders , check it only for folders
if ( lock . getResourceName ( ) . endsWith (... |
public class FileBasedAtomHandler { /** * Return true if specified pathinfo represents URI of service doc . */
@ Override public boolean isAtomServiceURI ( final AtomRequest areq ) { } } | final String [ ] pathInfo = StringUtils . split ( areq . getPathInfo ( ) , "/" ) ; if ( pathInfo . length == 0 ) { return true ; } return false ; |
public class AbstractBoundarySurfaceType { /** * Gets the value of the genericApplicationPropertyOfBoundarySurface property .
* This accessor method returns a reference to the live list ,
* not a snapshot . Therefore any modification you make to the
* returned list will be present inside the JAXB object .
* Thi... | if ( _GenericApplicationPropertyOfBoundarySurface == null ) { _GenericApplicationPropertyOfBoundarySurface = new ArrayList < JAXBElement < Object > > ( ) ; } return this . _GenericApplicationPropertyOfBoundarySurface ; |
public class MacEditorKit { /** * Invoked when the user attempts an invalid operation , such as pasting into
* an uneditable < code > JTextField < / code > that has focus . The default
* implementation beeps . Subclasses that wish different behavior should
* override this and provide the additional feedback .
*... | Toolkit toolkit = null ; if ( component != null ) { toolkit = component . getToolkit ( ) ; } else { toolkit = Toolkit . getDefaultToolkit ( ) ; } toolkit . beep ( ) ; |
public class DestinationManager { /** * This method will check whether a destination is available . */
private boolean isAvailable ( BaseDestinationHandler destinationHandler , DestinationAvailability destinationAvailability ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "isAvailable" , new Object [ ] { destinationHandler , destinationAvailability } ) ; boolean sendAvailable = false ; boolean receiveAvailable = false ; if ( destinationAvailability == DestinationAvailability . SEND || destina... |
public class JniSocketImpl { /** * Closes the socket . */
@ Override public void close ( ) throws IOException { } } | if ( _isClosed . getAndSet ( true ) ) { return ; } _ss = null ; if ( _stream != null ) { _stream . close ( ) ; } // XXX : can ' t be locked because of shutdown
_nativeFd = - 1 ; nativeClose ( _socketFd ) ; |
public class nd6 { /** * Use this API to fetch all the nd6 resources that are configured on netscaler . */
public static nd6 [ ] get ( nitro_service service ) throws Exception { } } | nd6 obj = new nd6 ( ) ; nd6 [ ] response = ( nd6 [ ] ) obj . get_resources ( service ) ; return response ; |
public class OpenViduClient { /** * sender should look like ' username _ streamId ' */
public void unsubscribeFromVideo ( String sender ) throws IOException { } } | JsonObject params = new JsonObject ( ) ; params . addProperty ( UNSUBSCRIBEFROMVIDEO_SENDER_PARAM , sender ) ; client . sendRequest ( UNSUBSCRIBEFROMVIDEO_METHOD , params ) ; |
public class StringUtilities { /** * Returns < CODE > true < / CODE > if the given string matches the given regular expression .
* @ param str The string against which the expression is to be matched
* @ param expr The regular expression to match with the input string
* @ return An object giving the results of th... | return getWildcardMatcher ( str , expr , false ) ; |
public class InternalSARLParser { /** * InternalSARL . g : 12497:1 : entryRuleXEqualityExpression returns [ EObject current = null ] : iv _ ruleXEqualityExpression = ruleXEqualityExpression EOF ; */
public final EObject entryRuleXEqualityExpression ( ) throws RecognitionException { } } | EObject current = null ; EObject iv_ruleXEqualityExpression = null ; try { // InternalSARL . g : 12497:60 : ( iv _ ruleXEqualityExpression = ruleXEqualityExpression EOF )
// InternalSARL . g : 12498:2 : iv _ ruleXEqualityExpression = ruleXEqualityExpression EOF
{ if ( state . backtracking == 0 ) { newCompositeNode ( gr... |
public class Configuration { /** * Given a xml config file specified by a path , return the corresponding json
* object if it exists . */
public JSONObject getJsonConfig ( Path name ) throws IOException , JSONException { } } | String pathString = name . toUri ( ) . getPath ( ) ; String xml = new Path ( pathString ) . getName ( ) ; File jsonFile = new File ( pathString . replace ( xml , MATERIALIZEDJSON ) ) . getAbsoluteFile ( ) ; if ( jsonFile . exists ( ) ) { InputStream in = new BufferedInputStream ( new FileInputStream ( jsonFile ) ) ; if... |
public class SVGIcon { /** * Method starts the rotate animation of the foreground icon .
* @ param fromAngle the rotation angle where the transition should start .
* @ param toAngle the rotation angle where the transition should end .
* @ param cycleCount the number of times the animation should be played ( use A... | stopForegroundIconRotateAnimation ( ) ; foregroundRotateAnimation = Animations . createRotateTransition ( foregroundIcon , fromAngle , toAngle , cycleCount , duration , interpolator , autoReverse ) ; foregroundRotateAnimation . setOnFinished ( event -> foregroundIcon . setRotate ( 0 ) ) ; foregroundRotateAnimation . pl... |
public class DTMException { /** * Initializes the < i > cause < / i > of this throwable to the specified value .
* ( The cause is the throwable that caused this throwable to get thrown . )
* < p > This method can be called at most once . It is generally called from
* within the constructor , or immediately after ... | if ( ( this . containedException == null ) && ( cause != null ) ) { throw new IllegalStateException ( XMLMessages . createXMLMessage ( XMLErrorResources . ER_CANNOT_OVERWRITE_CAUSE , null ) ) ; // " Can ' t overwrite cause " ) ;
} if ( cause == this ) { throw new IllegalArgumentException ( XMLMessages . createXMLMessag... |
public class JmolSymmetryScriptGeneratorH { /** * Returns a Jmol script that colors subunits to highlight the symmetry within a structure
* Different subunits should have a consistent color scheme or different shade of the same colors
* @ return Jmol script */
@ Override public String colorBySymmetry ( ) { } } | List < List < Integer > > units = helixAxisAligner . getHelixLayers ( ) . getByLargestContacts ( ) . getLayerLines ( ) ; units = orientLayerLines ( units ) ; QuatSymmetrySubunits subunits = helixAxisAligner . getSubunits ( ) ; List < Integer > modelNumbers = subunits . getModelNumbers ( ) ; List < String > chainIds = s... |
public class AOPool { /** * Shuts down the pool , exceptions during close will be logged as a warning and not thrown . */
final public void close ( ) { } } | List < C > connsToClose ; synchronized ( poolLock ) { // Prevent any new connections
isClosed = true ; // Find any connections that are available and open
connsToClose = new ArrayList < > ( availableConnections . size ( ) ) ; for ( PooledConnection < C > availableConnection : availableConnections ) { synchronized ( ava... |
public class DBPropertiesUpdate { /** * Insert a new localized Value .
* @ param _ propertyid ID of the Property , the localized value is related to
* @ param _ value Value of the Property
* @ param _ language Language of the property */
private void insertNewLocal ( final long _propertyid , final String _value ,... | try { final Insert insert = new Insert ( DBPropertiesUpdate . TYPE_PROPERTIES_LOCAL ) ; insert . add ( "Value" , _value ) ; insert . add ( "PropertyID" , _propertyid ) ; insert . add ( "LanguageID" , getLanguageId ( _language ) ) ; insert . executeWithoutAccessCheck ( ) ; insert . close ( ) ; } catch ( final EFapsExcep... |
public class FeatureStateBenchmarks { /** * create an in - memory state repository for our feature */
@ Setup ( Level . Trial ) public void setupFeatureManager ( ) { } } | FeatureManager featureManager = new FeatureManagerBuilder ( ) . featureEnums ( ReleaseDateBenchmarkFeature . class ) . stateRepository ( new InMemoryStateRepository ( ) ) . userProvider ( new NoOpUserProvider ( ) ) . build ( ) ; // set up the toggle activation state
StaticFeatureManagerProvider . setFeatureManager ( fe... |
public class FormattableUtils { /** * Handles the common { @ code Formattable } operations of truncate - pad - append ,
* with no ellipsis on precision overflow , and padding width underflow with
* spaces .
* @ param seq the string to handle , not null
* @ param formatter the destination formatter , not null
... | return append ( seq , formatter , flags , width , precision , ' ' , null ) ; |
public class IOState { /** * WebSocket has successfully upgraded , but the end - user onOpen call hasn ' t run yet .
* This is an intermediate state between the RFC ' s { @ link ConnectionState # CONNECTING } and { @ link ConnectionState # OPEN } */
public void onConnected ( ) { } } | ConnectionState event = null ; synchronized ( this ) { if ( this . state != ConnectionState . CONNECTING ) { LOG . debug ( "Unable to set to connected, not in CONNECTING state: {}" , this . state ) ; return ; } this . state = ConnectionState . CONNECTED ; inputAvailable = false ; // cannot read ( yet )
outputAvailable ... |
public class Proxy { /** * Update the proxy status */
public void updateStatus ( ) { } } | String hostaddr = null ; try { hostaddr = InetAddress . getByName ( ip ) . getHostAddress ( ) ; } catch ( UnknownHostException e ) { online = false ; latency = Long . MAX_VALUE ; return ; } int total = 0 ; long totalPing = 0 ; // test ping 4 times
int times = 4 ; while ( total < times ) { total ++ ; long start = System... |
public class DateRangeChooser { /** * Load choices from the named property
* @ param propertyName Name of the property containing the choices . Must be in the acceptable
* format . If the property name is null , loads a default set of choices . */
public void loadChoices ( String propertyName ) { } } | clear ( ) ; if ( propertyName == null || propertyName . isEmpty ( ) ) { addChoice ( "All Dates" , false ) ; addChoice ( "Today|T|T" , false ) ; addChoice ( "Last Week|T|T-7" , false ) ; addChoice ( "Last Month|T|T-30|1" , false ) ; addChoice ( "Last Year|T|T-365" , false ) ; addChoice ( "Last Two Years|T|T-730" , false... |
public class JsonNodeClaim { /** * Helper method to extract a Claim from the given JsonNode tree .
* @ param claimName the Claim to search for .
* @ param tree the JsonNode tree to search the Claim in .
* @ return a valid non - null Claim . */
static Claim extractClaim ( String claimName , Map < String , JsonNode... | JsonNode node = tree . get ( claimName ) ; return claimFromNode ( node , objectReader ) ; |
public class JdbcTemp { /** * same as queryMultiObject ( Collection queryParams , String sqlquery ) but the
* result is a block result , the result ' size is the value of count , and the
* result ' s start poiny is the value of start .
* @ param queryParams
* @ param sqlquery
* @ param start
* @ param count... | Debug . logVerbose ( "[JdonFramework]--> enter queryMultiObject from:" + start + " size:" + count , module ) ; Connection c = null ; PreparedStatement ps = null ; ResultSet rs = null ; List items = new ArrayList ( count ) ; try { c = dataSource . getConnection ( ) ; DbUtil . testConnection ( c ) ; ps = c . prepareState... |
public class JaxRsClientFactory { /** * Register many features at once . Mostly a convenience for DI environments . */
public synchronized JaxRsClientFactory addFeatureMap ( SetMultimap < JaxRsFeatureGroup , Feature > map ) { } } | return addFeatureMap ( Multimaps . asMap ( map ) ) ; |
public class ArrayUtil { /** * 数组中是否包含元素
* @ param < T > 数组元素类型
* @ param array 数组
* @ param value 被检查的元素
* @ return 是否包含 */
public static < T > boolean contains ( T [ ] array , T value ) { } } | return indexOf ( array , value ) > INDEX_NOT_FOUND ; |
public class BNFHeadersImpl { /** * Utility method to parse the header name from the input buffer .
* @ param buff
* @ return boolean ( false means it needs more data , true otherwise )
* @ throws MalformedMessageException */
private boolean parseHeaderName ( WsByteBuffer buff ) throws MalformedMessageException {... | // if we ' re just starting , then skip leading white space characters
// otherwise ignore them ( i . e we might be in the middle of
// " Mozilla / 5.0 ( Win "
if ( null == this . parsedToken ) { if ( ! skipWhiteSpace ( buff ) ) { return false ; } } int start = findCurrentBufferPosition ( buff ) ; int cachestart = this... |
public class VisitorHelper { /** * Returns the value of the given field on the given object .
* @ param object
* the object whose field is to be retrieved .
* @ param field
* the field being retrieved .
* @ return
* the value of the field .
* @ throws VisitorException
* if an error occurs while evaluati... | boolean reprotect = false ; if ( object == null ) { return null ; } try { if ( ! field . isAccessible ( ) ) { field . setAccessible ( true ) ; reprotect = true ; } Object value = field . get ( object ) ; logger . trace ( "field '{}' has value '{}'" , field . getName ( ) , value ) ; return value ; } catch ( IllegalArgum... |
public class Sql { /** * Factory for the PreparedQueryCommand command pattern object allows subclass to supply implementations
* of the command class .
* @ param sql statement to be executed , including optional parameter placeholders ( ? )
* @ param queryParams List of parameter values corresponding to parameter... | return new PreparedQueryCommand ( sql , queryParams ) ; |
public class DivTag { /** * override doTag method */
@ Override public void doTag ( ) throws JspException , IOException { } } | LayoutTag layoutTag = ( LayoutTag ) findAncestorWithClass ( this , LayoutTag . class ) ; if ( layoutTag == null ) { throw new IllegalStateException ( "div tag should be used in a layout tag inside." ) ; } layoutTag . putDiv ( name , TagUtils . toString ( getJspBody ( ) ) ) ; logger . debug ( "div#{} put to layout#{}" ,... |
public class KieServerInstanceManager { /** * helper methods */
protected List < Container > callRemoteKieServerOperation ( ServerTemplate serverTemplate , ContainerSpec containerSpec , RemoteKieServerOperation operation ) { } } | List < Container > containers = new ArrayList < org . kie . server . controller . api . model . runtime . Container > ( ) ; if ( serverTemplate . getServerInstanceKeys ( ) == null || serverTemplate . getServerInstanceKeys ( ) . isEmpty ( ) || containerSpec == null ) { return containers ; } for ( ServerInstanceKey insta... |
public class ProtoTruthMessageDifferencer { /** * Compare the two non - null messages , and return a detailed comparison report . */
DiffResult diffMessages ( Message actual , Message expected ) { } } | checkNotNull ( actual ) ; checkNotNull ( expected ) ; checkArgument ( actual . getDescriptorForType ( ) == expected . getDescriptorForType ( ) , "The actual [%s] and expected [%s] message descriptors do not match." , actual . getDescriptorForType ( ) , expected . getDescriptorForType ( ) ) ; return diffMessages ( actua... |
public class LTieFltConsumerBuilder { /** * Adds full new case for the argument that are of specific classes ( matched by instanceOf , null is a wildcard ) . */
@ Nonnull public < V extends T > LTieFltConsumerBuilder < T > aCase ( Class < V > argC1 , LTieFltConsumer < V > function ) { } } | PartialCase . The pc = partialCaseFactoryMethod ( ( a1 , a2 , a3 ) -> ( argC1 == null || argC1 . isInstance ( a1 ) ) ) ; pc . evaluate ( function ) ; return self ( ) ; |
public class AttackSummaryMarshaller { /** * Marshall the given parameter object . */
public void marshall ( AttackSummary attackSummary , ProtocolMarshaller protocolMarshaller ) { } } | if ( attackSummary == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( attackSummary . getAttackId ( ) , ATTACKID_BINDING ) ; protocolMarshaller . marshall ( attackSummary . getResourceArn ( ) , RESOURCEARN_BINDING ) ; protocolMarshaller . ma... |
public class DataBufferFactoryWrapperConfiguration { /** * Returns a new { @ link DataBufferFactoryWrapper } for { @ link ArmeriaWebServer } and
* { @ link ArmeriaClientHttpConnector } . */
@ Bean @ ConditionalOnMissingBean ( DataBufferFactoryWrapper . class ) public DataBufferFactoryWrapper < ? > armeriaBufferFactor... | if ( dataBufferFactory . isPresent ( ) ) { return new DataBufferFactoryWrapper < > ( dataBufferFactory . get ( ) ) ; } return DataBufferFactoryWrapper . DEFAULT ; |
public class LNDImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public void setSOLid ( Integer newSOLid ) { } } | Integer oldSOLid = soLid ; soLid = newSOLid ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . LND__SO_LID , oldSOLid , soLid ) ) ; |
public class ObjectGraphBuilder { /** * Sets the current ReferenceResolver . < br >
* It will assign DefaultReferenceResolver if null . < br >
* It accepts a ReferenceResolver instance , a String or a Closure . */
public void setReferenceResolver ( final Object referenceResolver ) { } } | if ( referenceResolver instanceof ReferenceResolver ) { this . referenceResolver = ( ReferenceResolver ) referenceResolver ; } else if ( referenceResolver instanceof String ) { this . referenceResolver = new ReferenceResolver ( ) { public String getReferenceFor ( String nodeName ) { return ( String ) referenceResolver ... |
public class AWSDatabaseMigrationServiceClient { /** * Deletes the specified replication instance .
* < note >
* You must delete any migration tasks that are associated with the replication instance before you can delete it .
* < / note >
* @ param deleteReplicationInstanceRequest
* @ return Result of the Del... | request = beforeClientExecution ( request ) ; return executeDeleteReplicationInstance ( request ) ; |
public class SequenceModelResource { /** * Tag the current sentence .
* @ param tokens
* the current sentence
* @ return the array of span sequences */
public Span [ ] seqToSpans ( final String [ ] tokens ) { } } | final Span [ ] origSpans = this . sequenceLabeler . tag ( tokens ) ; final Span [ ] seqSpans = SequenceLabelerME . dropOverlappingSpans ( origSpans ) ; return seqSpans ; |
public class TldVarianceFilter { /** * Performs variance test at the specified rectangle
* @ return true if it passes and false if not */
public boolean checkVariance ( ImageRectangle r ) { } } | double sigma2 = computeVariance ( r . x0 , r . y0 , r . x1 , r . y1 ) ; return sigma2 >= thresholdLower ; |
public class SnorocketOWLReasoner { /** * Returns the identifier for an { @ link OWLClass } . If the owl class is
* anonymous then it returns null .
* @ param oc
* @ return */
private Object getId ( OWLClass oc ) { } } | if ( oc . isAnonymous ( ) ) return null ; String id = oc . toStringID ( ) ; if ( id . equals ( "<" + OWLImporter . THING_IRI + ">" ) || id . equals ( OWLImporter . THING_IRI ) ) { return NamedConcept . TOP ; } else if ( id . equals ( "<" + OWLImporter . NOTHING_IRI + ">" ) || id . equals ( OWLImporter . NOTHING_IRI ) )... |
public class TableFactoryService { /** * Filters for factories with matching context .
* @ return all matching factories */
private static < T > List < TableFactory > filterByContext ( Class < T > factoryClass , Map < String , String > properties , List < TableFactory > foundFactories , List < TableFactory > classFac... | List < TableFactory > matchingFactories = classFactories . stream ( ) . filter ( factory -> { Map < String , String > requestedContext = normalizeContext ( factory ) ; Map < String , String > plainContext = new HashMap < > ( requestedContext ) ; // we remove the version for now until we have the first backwards compati... |
public class CmsSetupXmlHelper { /** * Returns the value in the given xpath of the given xml file . < p >
* @ param xmlFilename the xml config file ( could be relative to the base path )
* @ param xPath the xpath to read ( should select a single node or attribute )
* @ return the value in the given xpath of the g... | return getValue ( getDocument ( xmlFilename ) , xPath ) ; |
public class ElementsExceptionsFactory { /** * Constructs and initializes a new { @ link NoSuchFileException } with the given { @ link Throwable cause }
* and { @ link String message } formatted with the given { @ link Object [ ] arguments } .
* @ param cause { @ link Throwable } identified as the reason this { @ l... | return new NoSuchFileException ( format ( message , args ) , cause ) ; |
public class Sql { /** * A variant of { @ link # eachRow ( String , java . util . List , groovy . lang . Closure , int , int , groovy . lang . Closure ) }
* allowing the named parameters to be supplied in a map .
* @ param sql the sql statement
* @ param map a map containing the named parameters
* @ param offse... | eachRow ( sql , singletonList ( map ) , metaClosure , offset , maxRows , rowClosure ) ; |
public class DeleteFunctionRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DeleteFunctionRequest deleteFunctionRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( deleteFunctionRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deleteFunctionRequest . getApiId ( ) , APIID_BINDING ) ; protocolMarshaller . marshall ( deleteFunctionRequest . getFunctionId ( ) , FUNCTIONID_BINDING ) ; } catch... |
public class Cache { /** * Return the cache as JSON .
* @ param pretty make it pretty
* @ return the string as JSON */
public String asJSON ( boolean pretty ) { } } | JSONSerializer ser = new JSONSerializer ( ) ; Gson gson = new Gson ( ) ; Gson prettyJson = new GsonBuilder ( ) . setPrettyPrinting ( ) . create ( ) ; JsonArray cacheArray = new JsonArray ( ) ; String cacheAsString ; for ( ServiceWrapper s : _cache ) { String json = ser . marshalService ( s ) ; JsonObject jsonService = ... |
public class WebhookMarshaller { /** * Marshall the given parameter object . */
public void marshall ( Webhook webhook , ProtocolMarshaller protocolMarshaller ) { } } | if ( webhook == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( webhook . getUrl ( ) , URL_BINDING ) ; protocolMarshaller . marshall ( webhook . getPayloadUrl ( ) , PAYLOADURL_BINDING ) ; protocolMarshaller . marshall ( webhook . getSecret (... |
public class ResourcePoolsBuilder { /** * Add or replace the { @ link ResourcePool } of { @ link ResourceType } in the returned builder .
* @ param resourcePool the non - { @ code null } resource pool to add / replace
* @ return a new builder with the added pool */
public ResourcePoolsBuilder withReplacing ( Resour... | Map < ResourceType < ? > , ResourcePool > newPools = new HashMap < > ( resourcePools ) ; newPools . put ( resourcePool . getType ( ) , resourcePool ) ; return new ResourcePoolsBuilder ( newPools ) ; |
public class JobsInner { /** * Gets a list of currently existing nodes which were used for the Job execution . The returned information contains the node ID , its public IP and SSH port .
* @ param resourceGroupName Name of the resource group to which the resource belongs .
* @ param workspaceName The name of the w... | ServiceResponse < Page < RemoteLoginInformationInner > > response = listRemoteLoginInformationSinglePageAsync ( resourceGroupName , workspaceName , experimentName , jobName ) . toBlocking ( ) . single ( ) ; return new PagedList < RemoteLoginInformationInner > ( response . body ( ) ) { @ Override public Page < RemoteLog... |
public class Ifc4FactoryImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public String convertIfcTaskDurationEnumToString ( EDataType eDataType , Object instanceValue ) { } } | return instanceValue == null ? null : instanceValue . toString ( ) ; |
public class DruidQuerySignature { /** * Get existing or create new ( if not { @ link DruidQuerySignature # isAggregateSignature } ) { @ link VirtualColumn } for a given
* { @ link DruidExpression } */
@ Nullable public VirtualColumn getOrCreateVirtualColumnForExpression ( PlannerContext plannerContext , DruidExpress... | if ( ! isAggregateSignature && ! virtualColumnsByExpression . containsKey ( expression . getExpression ( ) ) ) { final String virtualColumnName = virtualColumnPrefix + virtualColumnCounter ++ ; final VirtualColumn virtualColumn = expression . toVirtualColumn ( virtualColumnName , Calcites . getValueTypeForSqlTypeName (... |
public class EnvironmentClassLoader { /** * Returns the listeners . */
protected ArrayList < EnvLoaderListener > getEnvironmentListeners ( ) { } } | ArrayList < EnvLoaderListener > listeners ; listeners = new ArrayList < EnvLoaderListener > ( ) ; /* / / add the descendant listeners
if ( _ childListeners ! = null ) {
synchronized ( _ childListenerLock ) {
ClassLoader loader ;
for ( loader = this ; loader ! = null ; loader = loader . getParent ( ) ) {
if ( ... |
public class CPDAvailabilityEstimatePersistenceImpl { /** * Removes the cpd availability estimate where uuid = & # 63 ; and groupId = & # 63 ; from the database .
* @ param uuid the uuid
* @ param groupId the group ID
* @ return the cpd availability estimate that was removed */
@ Override public CPDAvailabilityEs... | CPDAvailabilityEstimate cpdAvailabilityEstimate = findByUUID_G ( uuid , groupId ) ; return remove ( cpdAvailabilityEstimate ) ; |
public class CocoQuery { /** * Open a confirm dialog with title and message
* @ param title
* @ param message */
public void confirm ( final int title , final int message , final DialogInterface . OnClickListener onClickListener ) { } } | final AlertDialog . Builder builder = new AlertDialog . Builder ( getContext ( ) ) ; builder . setTitle ( title ) . setIcon ( android . R . drawable . ic_dialog_info ) . setMessage ( message ) ; builder . setPositiveButton ( android . R . string . ok , new DialogInterface . OnClickListener ( ) { @ Override public void ... |
public class PrcEntitiesPage { /** * < p > Process entity request . < / p >
* @ param pAddParam additional param
* @ param pRequestData Request Data
* @ throws Exception - an exception */
@ Override public final void process ( final Map < String , Object > pAddParam , final IRequestData pRequestData ) throws Exce... | this . srvEntitiesPage . retrievePage ( pAddParam , pRequestData ) ; |
public class DRL5Expressions { /** * src / main / resources / org / drools / compiler / lang / DRL5Expressions . g : 200:1 : annotationElementValuePair [ AnnotationDescr descr ] : key = ID EQUALS _ ASSIGN val = annotationValue ; */
public final void annotationElementValuePair ( AnnotationDescr descr ) throws Recognitio... | Token key = null ; ParserRuleReturnScope val = null ; try { // src / main / resources / org / drools / compiler / lang / DRL5Expressions . g : 201:3 : ( key = ID EQUALS _ ASSIGN val = annotationValue )
// src / main / resources / org / drools / compiler / lang / DRL5Expressions . g : 201:5 : key = ID EQUALS _ ASSIGN va... |
public class TracezZPageHandler { /** * Emits the internal html for a single { @ link SpanData } . */
@ SuppressWarnings ( "deprecation" ) private static void emitSingleSpan ( Formatter formatter , SpanData span ) { } } | Calendar calendar = Calendar . getInstance ( ) ; calendar . setTimeInMillis ( TimeUnit . SECONDS . toMillis ( span . getStartTimestamp ( ) . getSeconds ( ) ) ) ; long microsField = TimeUnit . NANOSECONDS . toMicros ( span . getStartTimestamp ( ) . getNanos ( ) ) ; String elapsedSecondsStr = span . getEndTimestamp ( ) !... |
public class Level { /** * Parse a level name string into a Level .
* The argument string may consist of either a level name
* or an integer value .
* For example :
* < ul >
* < li > " SEVERE "
* < li > " 1000"
* < / ul >
* @ param name string to be parsed
* @ throws NullPointerException if the name i... | // Check that name is not null .
name . length ( ) ; KnownLevel level ; // Look for a known Level with the given non - localized name .
level = KnownLevel . findByName ( name ) ; if ( level != null ) { return level . levelObject ; } // J2ObjC modified : Check for known level names before testing for Integer and throwin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.