signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class Slf4jAdapter { /** * { @ inheritDoc } */
@ Override public void error ( final MessageItem messageItem , final Object ... parameters ) { } } | if ( getLogger ( ) . isErrorEnabled ( messageItem . getMarker ( ) ) ) { getLogger ( ) . error ( messageItem . getMarker ( ) , messageItem . getText ( parameters ) ) ; } throwError ( messageItem , null , parameters ) ; |
public class ApiOvhSupport { /** * Create a new ticket
* REST : POST / support / tickets / create
* @ param product [ required ] Ticket message product
* @ param category [ required ] Ticket message category
* @ param type [ required ] Ticket type ( criticalIntervention requires VIP support level )
* @ param ... | String qPath = "/support/tickets/create" ; StringBuilder sb = path ( qPath ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "body" , body ) ; addBody ( o , "category" , category ) ; addBody ( o , "product" , product ) ; addBody ( o , "serviceName" , serviceName ) ; addBody ( o , "... |
public class LettuceCdiExtension { /** * Implementation of a an observer which registers beans to the CDI container for the detected RedisURIs .
* The repository beans are associated to the EntityManagers using their qualifiers .
* @ param beanManager The BeanManager instance . */
void afterBeanDiscovery ( @ Observ... | int counter = 0 ; for ( Entry < Set < Annotation > , Bean < RedisURI > > entry : redisUris . entrySet ( ) ) { Bean < RedisURI > redisUri = entry . getValue ( ) ; Set < Annotation > qualifiers = entry . getKey ( ) ; String clientBeanName = RedisClient . class . getSimpleName ( ) ; String clusterClientBeanName = RedisClu... |
public class Pattern { /** * Parse a string containing a SQL - style pattern
* @ param pattern the string containing the pattern
* @ param escaped true if the string employs an escape character
* @ param escape the escape character ( ignored if ! escaped )
* @ return an Object representing the result of the par... | char [ ] accum = new char [ pattern . length ( ) ] ; int finger = 0 ; List tokens = new ArrayList ( ) ; boolean trivial = true ; for ( int i = 0 ; i < pattern . length ( ) ; i ++ ) { char c = pattern . charAt ( i ) ; if ( c == sqlMatchOne ) { finger = flush ( accum , finger , tokens ) ; tokens . add ( matchOne ) ; triv... |
public class ThreadUtils { /** * A null - safe method for getting the Thread ' s name .
* @ param thread the Thread from which the name is returned .
* @ return a String indicating the name of the specified Thread or null if the Thread is null .
* @ see java . lang . Thread # getName ( ) */
@ NullSafe public stat... | return ( thread != null ? thread . getName ( ) : null ) ; |
public class ReflectionUtils { /** * Get target object field value
* @ param target target object
* @ param fieldName field name
* @ param < T > field type
* @ return field value */
public static < T > T getFieldValue ( Object target , String fieldName ) { } } | try { Field field = target . getClass ( ) . getDeclaredField ( fieldName ) ; field . setAccessible ( true ) ; @ SuppressWarnings ( "unchecked" ) T returnValue = ( T ) field . get ( target ) ; return returnValue ; } catch ( NoSuchFieldException e ) { throw handleException ( fieldName , e ) ; } catch ( IllegalAccessExcep... |
public class ConsumerSessionImpl { /** * Gets the forwardScanning setting
* ( Used for MQ - like behaviour )
* @ return the forwardScanning property of the session */
public boolean getForwardScanning ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getForwardScanning" ) ; SibTr . exit ( tc , "getForwardScanning" , Boolean . valueOf ( _forwardScanning ) ) ; } return _forwardScanning ; |
public class IotHubResourcesInner { /** * Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container . For more information , see : https : / / docs . microsoft . com / azure / iot - hub / iot - hub - devguide - identity - registry # import - and - export - device - identities... | return exportDevicesWithServiceResponseAsync ( resourceGroupName , resourceName , exportDevicesParameters ) . map ( new Func1 < ServiceResponse < JobResponseInner > , JobResponseInner > ( ) { @ Override public JobResponseInner call ( ServiceResponse < JobResponseInner > response ) { return response . body ( ) ; } } ) ; |
public class Action { /** * Creates a composite action which contains all passed actions and
* executes them in the same order . */
public static Action composite ( final Collection < Applicable > applicables ) { } } | return new Action ( input -> { for ( Applicable action : applicables ) { action . apply ( input ) ; } return input ; } ) ; |
public class ClassFile { /** * Recurse depth - first so order of declaring types is correct . */
private static void appendDeclaringTypes ( TypeReference typeRef , char innerClassDelimiter , StringBuilder sb ) { } } | TypeReference declaringType = typeRef . getDeclaringType ( ) ; if ( declaringType != null ) { appendDeclaringTypes ( declaringType , innerClassDelimiter , sb ) ; sb . append ( declaringType . getSimpleName ( ) ) ; sb . append ( innerClassDelimiter ) ; } |
public class MetaFilter { /** * Creates a MetaMatcher based on the filter content .
* @ param filterAsString the String representation of the filter
* @ param metaMatchers the Map of custom MetaMatchers
* @ return A MetaMatcher used to match the filter content */
protected MetaMatcher createMetaMatcher ( String f... | for ( String key : metaMatchers . keySet ( ) ) { if ( filterAsString . startsWith ( key ) ) { return metaMatchers . get ( key ) ; } } if ( filterAsString . startsWith ( GROOVY ) ) { return new GroovyMetaMatcher ( ) ; } return new DefaultMetaMatcher ( ) ; |
public class DefaultGroovyMethods { /** * Overloads the left shift operator to provide an easy way to append
* objects to a SortedSet .
* < pre class = " groovyTestCase " > def set = [ 1,2 ] as SortedSet
* set & lt ; & lt ; 3
* assert set = = [ 1,2,3 ] as SortedSet < / pre >
* @ param self a SortedSet
* @ p... | return ( SortedSet < T > ) leftShift ( ( Collection < T > ) self , value ) ; |
public class MarkLogicClientImpl { /** * set databaseclient and instantate related managers
* @ param databaseClient */
private void setDatabaseClient ( DatabaseClient databaseClient ) { } } | this . databaseClient = databaseClient ; this . sparqlManager = getDatabaseClient ( ) . newSPARQLQueryManager ( ) ; this . graphManager = getDatabaseClient ( ) . newGraphManager ( ) ; |
public class Style { /** * Parse padding with string like ' [ 10,10,10,10 ] '
* @ param paddingString */
public void setPadding ( @ Nullable String paddingString ) { } } | if ( ! TextUtils . isEmpty ( paddingString ) ) { // remove leading and ending ' [ ' ' ] '
try { paddingString = paddingString . trim ( ) . substring ( 1 , paddingString . length ( ) - 1 ) ; String paddingStringArray [ ] = paddingString . split ( "," ) ; int size = paddingStringArray . length > 4 ? 4 : paddingStringArra... |
public class AddKeyValueStrength { /** * Adds the reference strength methods for the key or value . */
private void addStrength ( String collectName , String queueName , TypeName type ) { } } | context . cache . addMethod ( MethodSpec . methodBuilder ( queueName ) . addModifiers ( context . protectedFinalModifiers ( ) ) . returns ( type ) . addStatement ( "return $N" , queueName ) . build ( ) ) ; context . cache . addField ( FieldSpec . builder ( type , queueName , Modifier . FINAL ) . initializer ( "new $T()... |
public class ContractsApi { /** * Get corporation contract bids Lists bids on a particular auction contract
* - - - This route is cached for up to 3600 seconds SSO Scope :
* esi - contracts . read _ corporation _ contracts . v1
* @ param contractId
* ID of a contract ( required )
* @ param corporationId
* A... | com . squareup . okhttp . Call call = getCorporationsCorporationIdContractsContractIdBidsValidateBeforeCall ( contractId , corporationId , datasource , ifNoneMatch , page , token , null ) ; Type localVarReturnType = new TypeToken < List < CorporationContractsBidsResponse > > ( ) { } . getType ( ) ; return apiClient . e... |
public class Controller { /** * Returns the value of a request parameter and convert to Integer with a default value if it is null .
* @ param name a String specifying the name of the parameter
* @ return a Integer representing the single value of the parameter */
public Integer getParaToInt ( String name , Integer... | return toInt ( request . getParameter ( name ) , defaultValue ) ; |
public class ClassResource { /** * Get the table name . */
public String getTableNames ( boolean bAddQuotes ) { } } | return ( m_tableName == null ) ? Record . formatTableNames ( CLASS_RESOURCE_FILE , bAddQuotes ) : super . getTableNames ( bAddQuotes ) ; |
public class UserEntity { /** * Set the roles assigned to the current user .
* @ param inRoles A list of roles to be assigned to the user . */
@ Override public void setRoles ( List < RoleEntity > inRoles ) { } } | if ( inRoles == null ) { this . roles = new ArrayList < > ( ) ; } else { this . roles = new ArrayList < > ( inRoles ) ; } this . roles = inRoles ; |
public class ExpressRouteGatewaysInner { /** * Creates or updates a ExpressRoute gateway in a specified resource group .
* @ param resourceGroupName The name of the resource group .
* @ param expressRouteGatewayName The name of the ExpressRoute gateway .
* @ param putExpressRouteGatewayParameters Parameters requi... | return createOrUpdateWithServiceResponseAsync ( resourceGroupName , expressRouteGatewayName , putExpressRouteGatewayParameters ) . map ( new Func1 < ServiceResponse < ExpressRouteGatewayInner > , ExpressRouteGatewayInner > ( ) { @ Override public ExpressRouteGatewayInner call ( ServiceResponse < ExpressRouteGatewayInne... |
public class InfluxDBImpl { /** * { @ inheritDoc } */
@ Override public void query ( final Query query , final int chunkSize , final BiConsumer < Cancellable , QueryResult > onNext ) { } } | query ( query , chunkSize , onNext , ( ) -> { } ) ; |
public class DescribeKeyPairsResult { /** * Information about the key pairs .
* @ return Information about the key pairs . */
public java . util . List < KeyPairInfo > getKeyPairs ( ) { } } | if ( keyPairs == null ) { keyPairs = new com . amazonaws . internal . SdkInternalList < KeyPairInfo > ( ) ; } return keyPairs ; |
public class Transform2D { /** * Concatenates this transform with a scaling transformation .
* < p > This function is equivalent to :
* < pre >
* this = this * [ s 0 0 ]
* [ 0 s 0 ]
* [ 0 0 1 ]
* < / pre >
* @ param scale the scaling factor . */
public void scale ( double scale ) { } } | this . m00 *= scale ; this . m11 *= scale ; this . m01 *= scale ; this . m10 *= scale ; |
public class DescribeCapacityReservationsResult { /** * Information about the Capacity Reservations .
* @ return Information about the Capacity Reservations . */
public java . util . List < CapacityReservation > getCapacityReservations ( ) { } } | if ( capacityReservations == null ) { capacityReservations = new com . amazonaws . internal . SdkInternalList < CapacityReservation > ( ) ; } return capacityReservations ; |
public class SecurityActions { /** * Get a Subject instance
* @ param subjectFactory The subject factory
* @ param domain The domain
* @ param mcf The ManagedConnectionFactory
* @ return The instance */
static Subject createSubject ( final SubjectFactory subjectFactory , final String domain , final ManagedConne... | if ( System . getSecurityManager ( ) == null ) { Subject subject = subjectFactory . createSubject ( domain ) ; Set < PasswordCredential > s = getPasswordCredentials ( subject ) ; if ( s != null && ! s . isEmpty ( ) ) { for ( PasswordCredential pc : s ) { pc . setManagedConnectionFactory ( mcf ) ; } } return subject ; }... |
public class XlsWorkbook { /** * Sets the cell attributes from the given column .
* @ param cellFormat The dell to set the attributes on
* @ param column The column definition to take the attributes from */
public void setCellFormatAttributes ( WritableCellFormat cellFormat , FileColumn column ) { } } | try { if ( cellFormat != null && column != null ) { Alignment a = Alignment . GENERAL ; short align = column . getAlign ( ) ; if ( align == FileColumn . ALIGN_CENTRE ) a = Alignment . CENTRE ; else if ( align == FileColumn . ALIGN_LEFT ) a = Alignment . LEFT ; else if ( align == FileColumn . ALIGN_RIGHT ) a = Alignment... |
public class AsynchronousRequest { /** * For more info on WvW ranks API go < a href = " https : / / wiki . guildwars2 . com / wiki / API : 2 / wvw / ranks " > here < / a > < br / >
* Give user the access to { @ link Callback # onResponse ( Call , Response ) } and { @ link Callback # onFailure ( Call , Throwable ) } m... | gw2API . getAllWvWRankIDs ( ) . enqueue ( callback ) ; |
public class UnionPayApi { /** * 后台请求返回String
* @ param reqData
* 请求参数
* @ return { String } */
public static String backRequest ( Map < String , String > reqData ) { } } | return HttpUtils . post ( SDKConfig . getConfig ( ) . getBackRequestUrl ( ) , reqData ) ; |
public class GCCBEZRGImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public void eSet ( int featureID , Object newValue ) { } } | switch ( featureID ) { case AfplibPackage . GCCBEZRG__XPOS : setXPOS ( ( Integer ) newValue ) ; return ; case AfplibPackage . GCCBEZRG__YPOS : setYPOS ( ( Integer ) newValue ) ; return ; } super . eSet ( featureID , newValue ) ; |
public class JMElasticsearchIndex { /** * Send data async action future .
* @ param jsonSource the json source
* @ param index the index
* @ param type the type
* @ param id the id
* @ return the action future */
public ActionFuture < IndexResponse > sendDataAsync ( String jsonSource , String index , String t... | return indexQueryAsync ( buildIndexRequest ( jsonSource , index , type , id ) ) ; |
public class NumberUtils { /** * < p > Convert a < code > String < / code > to a < code > float < / code > , returning a
* default value if the conversion fails . < / p >
* < p > If the string < code > str < / code > is < code > null < / code > , the default
* value is returned . < / p >
* < pre >
* NumberUti... | if ( str == null ) { return defaultValue ; } try { return Float . parseFloat ( str ) ; } catch ( final NumberFormatException nfe ) { return defaultValue ; } |
public class IntStreamEx { /** * Returns an infinite sequential ordered { @ code IntStreamEx } produced by
* iterative application of a function { @ code f } to an initial element
* { @ code seed } , producing a stream consisting of { @ code seed } ,
* { @ code f ( seed ) } , { @ code f ( f ( seed ) ) } , etc .
... | return iterate ( seed , x -> true , f ) ; |
public class MathUtils { /** * How much of the variance is NOT explained by the regression
* @ param predictedValues predicted values
* @ param targetAttribute data for target attribute
* @ return the sum squares of regression */
public static double ssError ( double [ ] predictedValues , double [ ] targetAttribu... | double ret = 0 ; for ( int i = 0 ; i < predictedValues . length ; i ++ ) { ret += Math . pow ( targetAttribute [ i ] - predictedValues [ i ] , 2 ) ; } return ret ; |
public class V1Annotation { /** * exposed for conversion */
public static V1Annotation create ( long timestamp , String value , @ Nullable Endpoint endpoint ) { } } | return new V1Annotation ( timestamp , value , endpoint ) ; |
public class RocksDBIncrementalRestoreOperation { /** * This recreates the new working directory of the recovered RocksDB instance and links / copies the contents from
* a local state . */
private void restoreInstanceDirectoryFromPath ( Path source , String instanceRocksDBPath ) throws IOException { } } | FileSystem fileSystem = source . getFileSystem ( ) ; final FileStatus [ ] fileStatuses = fileSystem . listStatus ( source ) ; if ( fileStatuses == null ) { throw new IOException ( "Cannot list file statues. Directory " + source + " does not exist." ) ; } for ( FileStatus fileStatus : fileStatuses ) { final Path filePat... |
public class GoogleCodingConvention { /** * { @ inheritDoc }
* < p > This enforces the Google const name convention , that the first character
* after the last $ must be an upper - case letter and all subsequent letters
* must be upper case . The name must be at least 2 characters long .
* < p > Examples :
* ... | if ( name . length ( ) <= 1 ) { return false ; } // In compiled code , ' $ ' is often a namespace delimiter . To allow inlining
// of namespaced constants , we strip off any namespaces here .
int pos = name . lastIndexOf ( '$' ) ; if ( pos >= 0 ) { name = name . substring ( pos + 1 ) ; if ( name . isEmpty ( ) ) { retur... |
public class NodeFilter { /** * { @ inheritDoc } */
@ Override public final boolean filter ( ) { } } | return ( getNode ( ) . getKind ( ) == IConstants . ELEMENT || getNode ( ) . getKind ( ) == IConstants . TEXT ) ; |
public class EntityBeanTypeImpl { /** * If not already created , a new < code > security - role - ref < / code > element will be created and returned .
* Otherwise , the first existing < code > security - role - ref < / code > element will be returned .
* @ return the instance defined for the element < code > secur... | List < Node > nodeList = childNode . get ( "security-role-ref" ) ; if ( nodeList != null && nodeList . size ( ) > 0 ) { return new SecurityRoleRefTypeImpl < EntityBeanType < T > > ( this , "security-role-ref" , childNode , nodeList . get ( 0 ) ) ; } return createSecurityRoleRef ( ) ; |
public class WebApplicationExceptionMapper { /** * Maps an unhandled { @ link WebApplicationException } to a { @ link Response } .
* @ param exception the { @ link WebApplicationException } that was not handled
* @ return a { @ link Response } object with a status of the { @ link WebApplicationException } or 500
... | Response response = exception . getResponse ( ) ; int code = response == null ? INTERNAL_SERVER_ERROR . getStatusCode ( ) : response . getStatus ( ) ; if ( code >= 400 && code < 500 ) { logger . warn ( "An unhandled exception was thrown." , exception ) ; } else if ( code >= 500 ) { logger . error ( "An unhandled except... |
public class CmsDriverManager { /** * Reads all property objects mapped to a specified resource from the database . < p >
* All properties in the result List will be in frozen ( read only ) state , so you can ' t change the values . < p >
* Returns an empty list if no properties are found at all . < p >
* @ param... | // check if we have the result already cached
CmsUUID projectId = getProjectIdForContext ( dbc ) ; String cacheKey = getCacheKey ( CACHE_ALL_PROPERTIES , search , projectId , resource . getRootPath ( ) ) ; List < CmsProperty > properties = m_monitor . getCachedPropertyList ( cacheKey ) ; if ( ( properties == null ) || ... |
public class FibonacciHeap { /** * Cuts this entry from its parent and adds it to the root list , and then
* does the same for its parent , and so on up the tree .
* Runtime : O ( log n ) */
private void cutAndMakeRoot ( Entry entry ) { } } | Entry oParent = entry . oParent ; if ( oParent == null ) return ; // already a root
oParent . degree -- ; entry . isMarked = false ; // update parent ' s ` oFirstChild ` pointer
Entry oFirstChild = oParent . oFirstChild ; assert oFirstChild != null ; if ( oFirstChild . equals ( entry ) ) { if ( oParent . degree == 0 ) ... |
public class ExceptionMasker { /** * long */
public LongConsumer mask ( ThrowingLongConsumer < ? extends X > consumer ) { } } | Objects . requireNonNull ( consumer ) ; return l -> maskException ( ( ) -> consumer . accept ( l ) ) ; |
public class HttpServlets { /** * 附加消息内容 。
* @ param request
* 请求
* @ param message
* 消息内容 */
public static void addMessage ( final HttpServletRequest request , final String message ) { } } | StringBuilder sb = ( StringBuilder ) request . getAttribute ( MESSAGE_KEY ) ; if ( sb == null ) { sb = new StringBuilder ( ) ; request . setAttribute ( MESSAGE_KEY , sb ) ; } sb . append ( message ) ; |
public class Flipper { /** * Performs on the nested function swapping former and latter formal
* parameters .
* @ param former the former formal parameter used as latter in the nested
* function
* @ param latter the latter formal parameter used as former in the nested
* function
* @ return the result of the... | return function . apply ( latter , former ) ; |
public class TaskInProgress { /** * Indicate that one of the taskids in this TaskInProgress
* has successfully completed ! */
public void completed ( TaskAttemptID taskid ) { } } | // Record that this taskid is complete
completedTask ( taskid , TaskStatus . State . SUCCEEDED ) ; // Note the successful taskid
setSuccessfulTaskid ( taskid ) ; // Now that the TIP is complete , the other speculative
// subtasks will be closed when the owning tasktracker
// reports in and calls shouldClose ( ) on this... |
public class ImmutableList { /** * Patches the current list . Patching a list first takes the first < code > index < / code > elements
* then concatenates it with < code > replacements < / code > and then concatenates it with the
* original list dropping < code > index + patchLength < / code > elements . < p > A vi... | return this . take ( index ) . append ( replacements ) . append ( this . drop ( index + patchLength ) ) ; |
public class StreamInterceptingTunnel { /** * Intercept all data received along the stream having the given index ,
* writing that data to the given OutputStream . The OutputStream will
* automatically be closed when the stream ends . If there is no such
* stream , then the OutputStream will be closed immediately... | // Log beginning of intercepted stream
logger . debug ( "Intercepting output stream #{} of tunnel \"{}\"." , index , getUUID ( ) ) ; try { outputStreamFilter . interceptStream ( index , new BufferedOutputStream ( stream ) ) ; } // Log end of intercepted stream
finally { logger . debug ( "Intercepted output stream #{} o... |
public class CancelSpotInstanceRequestsResult { /** * One or more Spot Instance requests .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setCancelledSpotInstanceRequests ( java . util . Collection ) } or
* { @ link # withCancelledSpotInstanceRequests ( ja... | if ( this . cancelledSpotInstanceRequests == null ) { setCancelledSpotInstanceRequests ( new com . amazonaws . internal . SdkInternalList < CancelledSpotInstanceRequest > ( cancelledSpotInstanceRequests . length ) ) ; } for ( CancelledSpotInstanceRequest ele : cancelledSpotInstanceRequests ) { this . cancelledSpotInsta... |
public class AbstractSpreadSheetDocumentRecordWriter { /** * Reads the ( private ) key and certificate from keystore to sign
* @ param conf
* @ throws OfficeWriterException
* @ throws IOException */
private void readSigningKeyAndCertificate ( Configuration conf ) throws OfficeWriterException , IOException { } } | if ( ( this . howc . getSigKeystoreFile ( ) != null ) && ( ! "" . equals ( this . howc . getSigKeystoreFile ( ) ) ) ) { LOG . info ( "Signing document" ) ; if ( ( this . howc . getSigKeystoreAlias ( ) == null ) || ( "" . equals ( this . howc . getSigKeystoreAlias ( ) ) ) ) { LOG . error ( "Keystore alias for signature ... |
public class BeanPersistenceDelegate { /** * PersistenceDelegate . initialize ( ) */
protected void initialize ( Class < ? > type , Object oldInstance , Object newInstance , Encoder out ) { } } | // Get the bean and associated beanInfo for the source instance
ControlBean control = ( ControlBean ) oldInstance ; BeanInfo beanInfo ; try { beanInfo = Introspector . getBeanInfo ( control . getClass ( ) ) ; } catch ( IntrospectionException ie ) { throw new ControlException ( "Unable to locate BeanInfo" , ie ) ; } // ... |
public class InternalXbaseWithAnnotationsParser { /** * InternalXbaseWithAnnotations . g : 1188:1 : ruleXRelationalExpression returns [ EObject current = null ] : ( this _ XOtherOperatorExpression _ 0 = ruleXOtherOperatorExpression ( ( ( ( ( ( ) ' instanceof ' ) ) = > ( ( ) otherlv _ 2 = ' instanceof ' ) ) ( ( lv _ typ... | EObject current = null ; Token otherlv_2 = null ; EObject this_XOtherOperatorExpression_0 = null ; EObject lv_type_3_0 = null ; EObject lv_rightOperand_6_0 = null ; enterRule ( ) ; try { // InternalXbaseWithAnnotations . g : 1194:2 : ( ( this _ XOtherOperatorExpression _ 0 = ruleXOtherOperatorExpression ( ( ( ( ( ( ) '... |
public class ShutdownHook { /** * Start async deletion using background script
* @ throws IOException */
private void startAsyncDelete ( ) throws IOException { } } | Runtime rt = Runtime . getRuntime ( ) ; File scriptFile = null ; if ( platformType == SelfExtractUtils . PlatformType_UNIX ) { scriptFile = writeCleanupFile ( SelfExtractUtils . PlatformType_UNIX ) ; rt . exec ( "chmod 750 " + scriptFile . getAbsolutePath ( ) ) ; rt . exec ( "sh -c " + scriptFile . getAbsolutePath ( ) ... |
public class BadiCalendar { /** * / * [ deutsch ]
* < p > Erzeugt ein neues Badi - Datum im ersten Hauptzyklus ( gregorianische Jahre 1844-2204 ) . < / p >
* @ param vahid 19 - year - cycle ( in range 1-19)
* @ param yearOfVahid year in range 1-19
* @ param month Badi month
* @ param day day in range 1-19
*... | return BadiCalendar . ofComplete ( 1 , vahid , yearOfVahid , month , day ) ; |
public class FighterParser { /** * Parse a sherdog page
* @ param doc Jsoup document of the sherdog page
* @ throws IOException if connecting to sherdog fails */
@ Override public Fighter parseDocument ( Document doc ) throws IOException { } } | Fighter fighter = new Fighter ( ) ; fighter . setSherdogUrl ( ParserUtils . getSherdogPageUrl ( doc ) ) ; logger . info ( "Refreshing fighter {}" , fighter . getSherdogUrl ( ) ) ; try { Elements name = doc . select ( ".bio_fighter h1 span.fn" ) ; fighter . setName ( name . get ( 0 ) . html ( ) ) ; } catch ( Exception e... |
public class ListUtil { /** * return last element of the list
* @ param list
* @ param delimiter
* @ param ignoreEmpty
* @ return returns the last Element of a list */
public static String last ( String list , String delimiter , boolean ignoreEmpty ) { } } | if ( StringUtil . isEmpty ( list ) ) return "" ; int len = list . length ( ) ; char [ ] del ; if ( StringUtil . isEmpty ( delimiter ) ) { del = new char [ ] { ',' } ; } else del = delimiter . toCharArray ( ) ; int index ; int x ; while ( true ) { index = - 1 ; for ( int i = 0 ; i < del . length ; i ++ ) { x = list . la... |
public class Hex { /** * Converts a hexadecimal character to an integer .
* @ param ch
* A character to convert to an integer digit
* @ param index
* The index of the character in the source
* @ return An integer
* @ throws DecoderException
* Thrown if ch is an illegal hex character */
protected static in... | final int digit = Character . digit ( ch , 16 ) ; if ( digit == - 1 ) { throw new IllegalArgumentException ( "Illegal hexadecimal character " + ch + " at index " + index ) ; } return digit ; |
public class L2CacheRepositoryDecorator { /** * Retrieves a batch of Entity IDs .
* < p > If currently in transaction , splits the ids into those that have been dirtied in the current
* transaction and those that have been left untouched . The untouched ids are loaded through the
* cache , the dirtied ids are loa... | String entityTypeId = getEntityType ( ) . getId ( ) ; Multimap < Boolean , Object > partitionedIds = Multimaps . index ( ids , id -> transactionInformation . isEntityDirty ( EntityKey . create ( entityTypeId , id ) ) ) ; Collection < Object > cleanIds = partitionedIds . get ( false ) ; Collection < Object > dirtyIds = ... |
public class LocalNetworkGatewaysInner { /** * Creates or updates a local network gateway in the specified resource group .
* @ param resourceGroupName The name of the resource group .
* @ param localNetworkGatewayName The name of the local network gateway .
* @ param parameters Parameters supplied to the create ... | return ServiceFuture . fromResponse ( beginCreateOrUpdateWithServiceResponseAsync ( resourceGroupName , localNetworkGatewayName , parameters ) , serviceCallback ) ; |
public class X509Utils { /** * Saves the certificate to the file system . If the destination filename
* ends with the pem extension , the certificate is written in the PEM format ,
* otherwise the certificate is written in the DER format .
* @ param cert
* @ param targetFile */
public static void saveCertificat... | File folder = targetFile . getAbsoluteFile ( ) . getParentFile ( ) ; if ( ! folder . exists ( ) ) { folder . mkdirs ( ) ; } File tmpFile = new File ( folder , Long . toHexString ( System . currentTimeMillis ( ) ) + ".tmp" ) ; try { boolean asPem = targetFile . getName ( ) . toLowerCase ( ) . endsWith ( ".pem" ) ; if ( ... |
public class JavaGenerator { private MethodSpec newBuilder ( NameAllocator nameAllocator , MessageType message ) { } } | NameAllocator localNameAllocator = nameAllocator . clone ( ) ; String builderName = localNameAllocator . newName ( "builder" ) ; ClassName javaType = ( ClassName ) typeName ( message . type ( ) ) ; ClassName builderJavaType = javaType . nestedClass ( "Builder" ) ; MethodSpec . Builder result = MethodSpec . methodBuilde... |
public class NetUtils { /** * Handle the transition from pairs of attributes specifying a host and port
* to a single colon separated one .
* @ param conf the configuration to check
* @ param oldBindAddressName the old address attribute name
* @ param oldPortName the old port attribute name
* @ param newBindA... | String oldAddr = conf . get ( oldBindAddressName ) ; int oldPort = conf . getInt ( oldPortName , 0 ) ; String newAddrPort = conf . get ( newBindAddressName ) ; if ( oldAddr == null && oldPort == 0 ) { return toIpPort ( createSocketAddr ( newAddrPort ) ) ; } InetSocketAddress newAddr = NetUtils . createSocketAddr ( newA... |
public class PaymentKit { /** * urlEncode
* @ param src
* 微信参数
* @ return String
* @ throws UnsupportedEncodingException
* 编码错误 */
public static String urlEncode ( String src ) throws UnsupportedEncodingException { } } | return URLEncoder . encode ( src , Charsets . UTF_8 . name ( ) ) . replace ( "+" , "%20" ) ; |
public class FastTimeZone { /** * Gets a TimeZone with GMT offsets . A GMT offset must be either ' Z ' , or ' UTC ' , or match
* < em > ( GMT ) ? hh ? ( : ? mm ? ) ? < / em > , where h and m are digits representing hours and minutes .
* @ param pattern The GMT offset
* @ return A TimeZone with offset from GMT or ... | if ( "Z" . equals ( pattern ) || "UTC" . equals ( pattern ) ) { return GREENWICH ; } final Matcher m = GMT_PATTERN . matcher ( pattern ) ; if ( m . matches ( ) ) { final int hours = parseInt ( m . group ( 2 ) ) ; final int minutes = parseInt ( m . group ( 4 ) ) ; if ( hours == 0 && minutes == 0 ) { return GREENWICH ; }... |
public class PeepholeReplaceKnownMethods { /** * Try to evaluate known Numeric methods
* parseInt ( ) , parseFloat ( ) */
private Node tryFoldKnownNumericMethods ( Node subtree , Node callTarget ) { } } | checkArgument ( subtree . isCall ( ) ) ; if ( isASTNormalized ( ) ) { // check if this is a call on a string method
// then dispatch to specific folding method .
String functionNameString = callTarget . getString ( ) ; Node firstArgument = callTarget . getNext ( ) ; if ( ( firstArgument != null ) && ( firstArgument . i... |
public class DirectMappingEngine { /** * NOT THREAD - SAFE ( not reentrant ) */
private BootstrappingResults bootstrapMappingAndOntology ( String baseIRI , Optional < SQLPPMapping > inputPPMapping , Optional < OWLOntology > inputOntology ) throws MappingBootstrappingException { } } | this . baseIRI = fixBaseURI ( baseIRI ) ; try { SQLPPMapping newPPMapping = extractPPMapping ( inputPPMapping ) ; OWLOntology ontology = inputOntology . isPresent ( ) ? inputOntology . get ( ) : OWLManager . createOWLOntologyManager ( ) . createOntology ( IRI . create ( baseIRI ) ) ; // update ontology
OWLOntologyManag... |
public class AbstractListPreference { /** * Obtains the item color of the preference ' s dialog from a specific typed array .
* @ param typedArray
* The typed array , the item color should be obtained from , as an instance of the class
* { @ link TypedArray } . The typed array may not be null */
private void obta... | setDialogItemColor ( typedArray . getColor ( R . styleable . AbstractListPreference_dialogItemColor , - 1 ) ) ; |
public class StringUtils { /** * < p > Abbreviates a String using ellipses . This will turn
* " Now is the time for all good men " into " Now is the time for . . . " < / p >
* < p > Specifically : < / p >
* < ul >
* < li > If the number of characters in { @ code str } is less than or equal to
* { @ code maxWi... | final String defaultAbbrevMarker = "..." ; return abbreviate ( str , defaultAbbrevMarker , 0 , maxWidth ) ; |
public class TransformMojo { /** * Writes mappings to file in Sling compatible JSON format .
* @ param i18nMap mappings
* @ param targetfile target file
* @ param selectedOutputFormat Output format
* @ throws IOException
* @ throws JSONException */
private void writeTargetI18nFile ( SlingI18nMap i18nMap , Fil... | if ( selectedOutputFormat == OutputFormat . XML ) { FileUtils . fileWrite ( targetfile , CharEncoding . UTF_8 , i18nMap . getI18nXmlString ( ) ) ; } else if ( selectedOutputFormat == OutputFormat . PROPERTIES ) { FileUtils . fileWrite ( targetfile , CharEncoding . ISO_8859_1 , i18nMap . getI18nPropertiesString ( ) ) ; ... |
public class MediaType { /** * Returns the media type sectors .
* @ param text The media type text .
* @ return String array with the sectors of the media type . */
private static String [ ] sectors ( final String text ) { } } | return new EnglishLowerCase ( MediaType . split ( text ) [ 0 ] ) . string ( ) . split ( "/" , 2 ) ; |
public class AstUtil { /** * Tells you if the expression is a method call for a certain method name with a certain
* number of arguments .
* @ param expression
* the ( potentially ) method call
* @ param methodName
* the name of the method expected
* @ param numArguments
* number of expected arguments
*... | if ( expression instanceof MethodCallExpression && AstUtil . isMethodNamed ( ( MethodCallExpression ) expression , methodName ) ) { int arity = AstUtil . getMethodArguments ( expression ) . size ( ) ; if ( arity >= ( Integer ) numArguments . getFrom ( ) && arity <= ( Integer ) numArguments . getTo ( ) ) { return true ;... |
public class InteropFramework { /** * A method to connect to a URL and follow redirects if any .
* @ param theURL a URL to connect to
* @ return a { @ link URLConnection }
* @ throws IOException if connection cannot be opened and no response is received . */
public URLConnection connectWithRedirect ( URL theURL )... | URLConnection conn = null ; String accept_header = buildAcceptHeader ( ) ; int redirect_count = 0 ; boolean done = false ; while ( ! done ) { if ( theURL . getProtocol ( ) . equals ( "file" ) ) { return null ; } Boolean isHttp = ( theURL . getProtocol ( ) . equals ( "http" ) || theURL . getProtocol ( ) . equals ( "http... |
public class DescribeWorkspaceImagesRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DescribeWorkspaceImagesRequest describeWorkspaceImagesRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( describeWorkspaceImagesRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( describeWorkspaceImagesRequest . getImageIds ( ) , IMAGEIDS_BINDING ) ; protocolMarshaller . marshall ( describeWorkspaceImagesRequest . getNextToken ( ) ... |
public class Aggregation { /** * Returns a { @ link StreamSupplier } of the records retrieved from aggregation for the specified query .
* @ param < T > type of output objects
* @ param query query
* @ param outputClass class of output records
* @ return supplier that streams query results */
@ Override public ... | checkArgument ( iterate ( queryClassLoader , Objects :: nonNull , ClassLoader :: getParent ) . anyMatch ( isEqual ( classLoader ) ) , "Unrelated queryClassLoader" ) ; List < String > fields = getMeasures ( ) . stream ( ) . filter ( query . getMeasures ( ) :: contains ) . collect ( toList ( ) ) ; List < AggregationChunk... |
public class AWSDeviceFarmClient { /** * Updates the network profile with specific settings .
* @ param updateNetworkProfileRequest
* @ return Result of the UpdateNetworkProfile operation returned by the service .
* @ throws ArgumentException
* An invalid argument was specified .
* @ throws NotFoundException ... | request = beforeClientExecution ( request ) ; return executeUpdateNetworkProfile ( request ) ; |
public class CompoundConstraint { /** * Add the list of constraints to the set of constraints aggregated by this
* compound constraint .
* @ param constraints
* the list of constraints to add
* @ return A reference to this , to support chaining . */
public CompoundConstraint addAll ( List constraints ) { } } | Algorithms . instance ( ) . forEach ( constraints , new Block ( ) { protected void handle ( Object o ) { add ( ( Constraint ) o ) ; } } ) ; return this ; |
public class Range { /** * Clamp an int to a min / max value .
* @ param n The value to be clamped
* @ param min The minimum
* @ param max The maximum
* @ return The value passed in , or minimum if n & lt ; minimum , or maximum if n & gt ; maximum */
public static int clamp ( int n , int min , int max ) { } } | if ( n < min ) return min ; if ( n > max ) return max ; return n ; |
public class DenseTensorBuilder { /** * Increment algorithm for the case where both tensors have the same set of
* dimensions .
* @ param other
* @ param multiplier */
private void simpleIncrement ( TensorBase other , double multiplier ) { } } | Preconditions . checkArgument ( Arrays . equals ( other . getDimensionNumbers ( ) , getDimensionNumbers ( ) ) ) ; if ( other instanceof DenseTensorBase ) { double [ ] otherTensorValues = ( ( DenseTensorBase ) other ) . values ; Preconditions . checkArgument ( otherTensorValues . length == values . length ) ; int length... |
public class AbstractExtractionCondition { /** * { @ inheritDoc }
* @ see jp . co . future . uroborosql . fluent . ExtractionCondition # isNull ( java . lang . String ) */
@ SuppressWarnings ( "unchecked" ) @ Override public T isNull ( final String col ) { } } | context ( ) . param ( CaseFormat . CAMEL_CASE . convert ( col ) , new IsNull ( col ) ) ; this . useOperator = true ; return ( T ) this ; |
public class JsonMapper { /** * Adds a serializer to this mapper . Allows a user to alter the serialization behavior for a certain type .
* @ param classToMap the class to map
* @ param classSerializer the serializer
* @ param < T > the type of objects that will be serialized by the given serializer */
public < T... | setNewObjectMapper ( ) ; // Is this right , setting a new object mapper on each add operation ?
SimpleModule mod = new SimpleModule ( "GeolatteCommonModule-" + classSerializer . getClass ( ) . getSimpleName ( ) ) ; mod . addSerializer ( classToMap , classSerializer ) ; mapper . registerModule ( mod ) ; |
public class Convolution { /** * Pooling 2d implementation
* @ param img
* @ param kh
* @ param kw
* @ param sy
* @ param sx
* @ param ph
* @ param pw
* @ param dh
* @ param dw
* @ param isSameMode
* @ param type
* @ param extra optional argument . I . e . used in pnorm pooling .
* @ param vir... | Pooling2D pooling = Pooling2D . builder ( ) . arrayInputs ( new INDArray [ ] { img } ) . arrayOutputs ( new INDArray [ ] { out } ) . config ( Pooling2DConfig . builder ( ) . dH ( dh ) . dW ( dw ) . extra ( extra ) . kH ( kh ) . kW ( kw ) . pH ( ph ) . pW ( pw ) . isSameMode ( isSameMode ) . sH ( sy ) . sW ( sx ) . virt... |
public class CollectionUtils { /** * Counts the number of elements in the { @ link Iterable } collection . If { @ link Iterable } is null or contains
* no elements , then count will be 0 . If the { @ link Iterable } is a { @ link Collection } , then { @ link Collection # size ( ) }
* is returned , otherwise the ele... | return iterable instanceof Collection ? ( ( Collection ) iterable ) . size ( ) : count ( iterable , ( element ) -> true ) ; |
public class DefaultNodeManager { /** * Handles a file upload . */
private void handleUpload ( AsyncFile file , String address , Handler < AsyncResult < Void > > doneHandler ) { } } | vertx . eventBus ( ) . registerHandler ( address , handleUpload ( file , address ) , doneHandler ) ; |
public class DockerAssemblyManager { /** * Create an docker tar archive from the given configuration which can be send to the Docker host for
* creating the image .
* @ param imageName Name of the image to create ( used for creating build directories )
* @ param params Mojos parameters ( used for finding the dire... | final BuildDirs buildDirs = createBuildDirs ( imageName , params ) ; final AssemblyConfiguration assemblyConfig = buildConfig . getAssemblyConfiguration ( ) ; final List < ArchiverCustomizer > archiveCustomizers = new ArrayList < > ( ) ; // Build up assembly . In dockerfile mode this must be added explicitly in the Doc... |
public class ShakeRenderer { /** * Decode to be used to implement an AJAX version of TabView . This methods
* receives and processes input made by the user . More specifically , it
* ckecks whether the user has interacted with the current b : tabView . The
* default implementation simply stores the input value in... | TabView tabView = ( TabView ) component ; decodeBehaviors ( context , tabView ) ; String clientId = tabView . getClientId ( context ) ; String activeIndexId = clientId . replace ( ":" , "_" ) + "_activeIndex" ; String activeIndexValue = ( String ) context . getExternalContext ( ) . getRequestParameterMap ( ) . get ( ac... |
public class SuperstepBarrier { /** * Barrier will release the waiting thread if an event occurs . */
@ Override public void onEvent ( TaskEvent event ) { } } | if ( event instanceof TerminationEvent ) { terminationSignaled = true ; } else if ( event instanceof AllWorkersDoneEvent ) { AllWorkersDoneEvent wde = ( AllWorkersDoneEvent ) event ; aggregatorNames = wde . getAggregatorNames ( ) ; aggregates = wde . getAggregates ( userCodeClassLoader ) ; } else { throw new IllegalArg... |
public class RateThisApp { /** * Store install date .
* Install date is retrieved from package manager if possible .
* @ param context
* @ param editor */
private static void storeInstallDate ( final Context context , SharedPreferences . Editor editor ) { } } | Date installDate = new Date ( ) ; if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . GINGERBREAD ) { PackageManager packMan = context . getPackageManager ( ) ; try { PackageInfo pkgInfo = packMan . getPackageInfo ( context . getPackageName ( ) , 0 ) ; installDate = new Date ( pkgInfo . firstInstallTime ) ; } cat... |
public class Tags { /** * Parse a string representing a tag . A tag string should have the format { @ code key = value } .
* Whitespace at the ends of the key and value will be removed . Both the key and value must
* have at least one character .
* @ param tagString string with encoded tag
* @ return tag parsed... | String k ; String v ; int eqIndex = tagString . indexOf ( "=" ) ; if ( eqIndex < 0 ) { throw new IllegalArgumentException ( "key and value must be separated by '='" ) ; } k = tagString . substring ( 0 , eqIndex ) . trim ( ) ; v = tagString . substring ( eqIndex + 1 , tagString . length ( ) ) . trim ( ) ; return newTag ... |
public class UidManager { /** * Helper to print the cells in a given family for a given row , if any .
* @ param row The row to print .
* @ param family Only cells in this family ( if any ) will be printed .
* @ param formard If true , this row contains a forward mapping ( name to ID ) .
* Otherwise the row is ... | if ( null == row || row . isEmpty ( ) ) { return false ; } final byte [ ] key = row . get ( 0 ) . key ( ) ; String name = formard ? CliUtils . fromBytes ( key ) : null ; String id = formard ? null : Arrays . toString ( key ) ; boolean printed = false ; for ( final KeyValue kv : row ) { if ( ! Bytes . equals ( kv . fami... |
public class PluginManager { /** * Returns a complete classpath for all loaded plugins */
public String getCompleteClassPath ( ) { } } | StringBuilder sb = new StringBuilder ( ) ; if ( baseClassPath != null ) { sb . append ( baseClassPath + File . pathSeparator ) ; } for ( Class < ? extends Plugin > pluginClass : implementations . keySet ( ) ) { Set < PluginContext > set = implementations . get ( pluginClass ) ; for ( PluginContext pluginContext : set )... |
public class StringIterate { /** * Converts a string of tokens separated by the specified separator to a { @ link MutableList } . */
public static MutableList < String > trimmedTokensToList ( String string , String separator ) { } } | return StringIterate . trimStringList ( StringIterate . tokensToList ( string , separator ) ) ; |
public class VariantContextConverter { /** * Assumes that ori is in the form " POS : REF : ALT _ 0 ( , ALT _ N ) * : ALT _ IDX " .
* @ param ori
* @ return */
protected static Integer getOriginalPosition ( String [ ] ori ) { } } | if ( ori != null && ori . length == 4 ) { return Integer . parseInt ( ori [ 0 ] ) ; } return null ; |
public class IssueManager { /** * DEPRECATED . use category . delete ( ) instead
* deletes an { @ link IssueCategory } . < br >
* @ param category the { @ link IssueCategory } .
* @ throws RedmineAuthenticationException thrown in case something went wrong while trying to login
* @ throws RedmineException thrown... | transport . deleteObject ( IssueCategory . class , Integer . toString ( category . getId ( ) ) ) ; |
public class LdaGibbsSampler { /** * Driver with example data .
* @ param args
* @ throws IOException */
public static void main ( String [ ] args ) throws IOException { } } | String infile = "../example-data/data-lda.txt" ; String stopwordfile = "../models/stopwords/stopwords.txt" ; BufferedReader in = new BufferedReader ( new InputStreamReader ( new FileInputStream ( infile ) , "utf8" ) ) ; // BufferedWriter out = new BufferedWriter ( new OutputStreamWriter ( new FileOutputStream (
// outf... |
public class MBeanServers { /** * Fetch Jolokia MBeanServer when it gets registered , remove it if being unregistered
* @ param notification notification emitted
* @ param handback not used here */
public synchronized void handleNotification ( Notification notification , Object handback ) { } } | String type = notification . getType ( ) ; if ( REGISTRATION_NOTIFICATION . equals ( type ) ) { jolokiaMBeanServer = lookupJolokiaMBeanServer ( ) ; // We need to add the listener provided during construction time to add the Jolokia MBeanServer
// so that it is kept updated , too .
if ( jolokiaMBeanServerListener != nul... |
public class ConstructorBuilder { /** * Build the signature .
* @ param node the XML element that specifies which components to document
* @ param constructorDocTree the content tree to which the documentation will be added */
public void buildSignature ( XMLNode node , Content constructorDocTree ) { } } | constructorDocTree . addContent ( writer . getSignature ( ( ConstructorDoc ) constructors . get ( currentConstructorIndex ) ) ) ; |
public class GetSlotTypeVersionsRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( GetSlotTypeVersionsRequest getSlotTypeVersionsRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( getSlotTypeVersionsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getSlotTypeVersionsRequest . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( getSlotTypeVersionsRequest . getNextToken ( ) , NEXTTOKEN_BINDING ... |
public class GetObjectRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( GetObjectRequest getObjectRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( getObjectRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getObjectRequest . getPath ( ) , PATH_BINDING ) ; protocolMarshaller . marshall ( getObjectRequest . getRange ( ) , RANGE_BINDING ) ; } catch ( Exception e ) { throw ne... |
public class CaptchaValidateController { /** * parameter _ captcha need to be availabe in request
* @ return
* @ throws Exception */
@ GET @ Path ( "validate" ) public boolean validate ( @ Context HttpServletRequest request ) throws Exception { } } | return captchaEngine . validate ( request ) ; |
public class Unchecked { /** * Wrap a { @ link CheckedComparator } in a { @ link Comparator } with a custom handler for checked exceptions . */
public static < T > Comparator < T > comparator ( CheckedComparator < T > comparator , Consumer < Throwable > handler ) { } } | return ( t1 , t2 ) -> { try { return comparator . compare ( t1 , t2 ) ; } catch ( Throwable e ) { handler . accept ( e ) ; throw new IllegalStateException ( "Exception handler must throw a RuntimeException" , e ) ; } } ; |
public class MutableFst { /** * Deletes a state ;
* @ param state the state to delete */
private void deleteState ( MutableState state ) { } } | if ( state . getId ( ) == this . start . getId ( ) ) { throw new IllegalArgumentException ( "Cannot delete start state." ) ; } // we ' re going to " compact " all of the nulls out and remap state ids at the end
this . states . set ( state . getId ( ) , null ) ; if ( isUsingStateSymbols ( ) ) { stateSymbols . remove ( s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.