signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class ReplicationTrigger { /** * Deletes the replica entry with replication disabled . */
boolean tryDeleteReplica ( Storable replica ) throws PersistException { } } | // Prevent trigger from being invoked by deleting replica .
TriggerManager tm = mTriggerManager ; tm . locallyDisableDelete ( ) ; try { return replica . tryDelete ( ) ; } finally { tm . locallyEnableDelete ( ) ; } |
public class ByteAmount { /** * Divides by factor , rounding any remainder . For example 10 bytes / 6 = 1.66 becomes 2 . Use
* caution when dividing and be aware that because of precision lose due to round - off , dividing by
* X and multiplying back by X might not return the initial value .
* @ param factor valu... | checkArgument ( factor != 0 , String . format ( "Can not divide %s by 0" , this ) ) ; return ByteAmount . fromBytes ( Math . round ( value . doubleValue ( ) / factor ) ) ; |
public class SearchFilter { /** * Combine other search filters with this one , using the specific operator .
* @ param new _ filters is a vector of SearchFilter classes to be combined
* @ param op is the logical operator to be used to combine the filters
* @ exception DBException */
public void combine ( Vector n... | // If this is not a logical operator , throw an exception
if ( ( op & LOGICAL_OPER_MASK ) == 0 ) { throw new DBException ( ) ; // Create a new vector consisting of just the filters
// from the SearchFilter classes in new _ filters
} Vector filters = new Vector ( ) ; // Now add in all the nodes of the new filters
for ( ... |
public class TableTreeNode { /** * Adjusts the node count of this node and all parent nodes . Called when nodes are being added / removed from the
* tree .
* @ param delta the change in the node count . */
private void adjustNodeCount ( final int delta ) { } } | for ( TableTreeNode parent = this ; parent != null ; parent = ( TableTreeNode ) parent . getParent ( ) ) { parent . nodeCount += delta ; } |
public class HtmlEscape { /** * Perform an HTML 4 level 1 ( XML - style ) < strong > escape < / strong > operation on a < tt > char [ ] < / tt > input .
* < em > Level 1 < / em > means this method will only escape the five markup - significant characters :
* < tt > & lt ; < / tt > , < tt > & gt ; < / tt > , < tt > ... | escapeHtml ( text , offset , len , writer , HtmlEscapeType . HTML4_NAMED_REFERENCES_DEFAULT_TO_DECIMAL , HtmlEscapeLevel . LEVEL_1_ONLY_MARKUP_SIGNIFICANT ) ; |
public class StandardMessageResponseData { /** * Init Method . */
public void init ( MessageDataParent messageDataParent , String strKey ) { } } | if ( strKey == null ) strKey = STANDARD_MESSAGE_RESPONSE ; super . init ( messageDataParent , strKey ) ; |
public class AllowedComponentsProviderImpl { /** * Get all allowed components for a template ( not respecting any path constraints )
* @ param pageComponentPath Path of template ' s page component
* @ return Set of component paths ( absolute resource types ) */
@ Override public @ NotNull Set < String > getAllowedC... | Resource pageComponentResource = resolver . getResource ( pageComponentPath ) ; if ( pageComponentResource != null ) { Iterable < ParsysConfig > parSysConfigs = parsysConfigManager . getParsysConfigs ( pageComponentResource . getPath ( ) , resolver ) ; SortedSet < String > allowedChildren = new TreeSet < > ( ) ; for ( ... |
public class MenuDrawer { /** * Returns the start position of the indicator .
* @ return The start position of the indicator . */
private int getIndicatorStartPos ( ) { } } | switch ( getPosition ( ) ) { case TOP : return mIndicatorClipRect . left ; case RIGHT : return mIndicatorClipRect . top ; case BOTTOM : return mIndicatorClipRect . left ; default : return mIndicatorClipRect . top ; } |
public class LessModuleBuilder { /** * / * ( non - Javadoc )
* @ see com . ibm . jaggr . core . impl . modulebuilder . text . TextModuleBuilder # build ( java . lang . String , com . ibm . jaggr . core . resource . IResource , javax . servlet . http . HttpServletRequest , java . util . List ) */
@ Override public Mod... | // Manage life span of thread locals used by this module builder
if ( isFeatureDependent ) { threadLocalRequest . set ( request ) ; threadLocalDependentFeatures . set ( null ) ; } try { return super . build ( mid , resource , request , inKeyGens ) ; } finally { if ( isFeatureDependent ) { threadLocalRequest . remove ( ... |
public class CdnConfigurationServiceLocator { /** * For the given interface , get the stub implementation .
* If this service has no port for the given interface ,
* then ServiceException is thrown . */
public java . rmi . Remote getPort ( Class serviceEndpointInterface ) throws javax . xml . rpc . ServiceException... | try { if ( com . google . api . ads . admanager . axis . v201808 . CdnConfigurationServiceInterface . class . isAssignableFrom ( serviceEndpointInterface ) ) { com . google . api . ads . admanager . axis . v201808 . CdnConfigurationServiceSoapBindingStub _stub = new com . google . api . ads . admanager . axis . v201808... |
public class OjbTagsHandler { /** * Processes the template for the object cache of the current class definition .
* @ param template The template
* @ param attributes The attributes of the tag
* @ exception XDocletException if an error occurs
* @ doc . tag type = " block " */
public void forObjectCache ( String... | _curObjectCacheDef = _curClassDef . getObjectCache ( ) ; if ( _curObjectCacheDef != null ) { generate ( template ) ; _curObjectCacheDef = null ; } |
public class SessionResource { /** * Retrieves a resource representing the UserContext associated with the
* AuthenticationProvider having the given identifier .
* @ param authProviderIdentifier
* The unique identifier of the AuthenticationProvider associated with
* the UserContext being retrieved .
* @ retur... | // Pull UserContext defined by the given auth provider identifier
UserContext userContext = session . getUserContext ( authProviderIdentifier ) ; // Return a resource exposing the retrieved UserContext
return userContextResourceFactory . create ( userContext ) ; |
public class ErrorUnmarshallingHandler { /** * An exception was propagated from further up the pipeline ( probably an IO exception of some sort ) . Notify the handler and
* kill the connection . */
@ Override public void exceptionCaught ( final ChannelHandlerContext ctx , final Throwable cause ) throws Exception { } ... | if ( ! notifiedOnFailure ) { notifiedOnFailure = true ; try { responseHandler . onFailure ( new SdkClientException ( "Unable to execute HTTP request." , cause ) ) ; } finally { ctx . channel ( ) . close ( ) ; } } |
public class AbstractMemberWriter { /** * Add the modifier for the member .
* @ param member the member to add the type for
* @ param code the content tree to which the modified will be added */
private void addModifier ( ProgramElementDoc member , Content code ) { } } | if ( member . isProtected ( ) ) { code . addContent ( "protected " ) ; } else if ( member . isPrivate ( ) ) { code . addContent ( "private " ) ; } else if ( ! member . isPublic ( ) ) { // Package private
code . addContent ( configuration . getText ( "doclet.Package_private" ) ) ; code . addContent ( " " ) ; } if ( memb... |
public class AppServiceEnvironmentsInner { /** * Get the used , available , and total worker capacity an App Service Environment .
* Get the used , available , and total worker capacity an App Service Environment .
* @ param nextPageLink The NextLink from the previous successful call to List operation .
* @ throw... | return listCapacitiesNextSinglePageAsync ( nextPageLink ) . concatMap ( new Func1 < ServiceResponse < Page < StampCapacityInner > > , Observable < ServiceResponse < Page < StampCapacityInner > > > > ( ) { @ Override public Observable < ServiceResponse < Page < StampCapacityInner > > > call ( ServiceResponse < Page < St... |
public class BillingGroupMetadataMarshaller { /** * Marshall the given parameter object . */
public void marshall ( BillingGroupMetadata billingGroupMetadata , ProtocolMarshaller protocolMarshaller ) { } } | if ( billingGroupMetadata == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( billingGroupMetadata . getCreationDate ( ) , CREATIONDATE_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: ... |
public class NDArrayMath { /** * The number of vectors
* in each slice of an ndarray .
* @ param arr the array to
* get the number
* of vectors per slice for
* @ return the number of vectors per slice */
public static long matricesPerSlice ( INDArray arr ) { } } | if ( arr . rank ( ) == 3 ) { return 1 ; } else if ( arr . rank ( ) > 3 ) { int ret = 1 ; for ( int i = 1 ; i < arr . rank ( ) - 2 ; i ++ ) { ret *= arr . size ( i ) ; } return ret ; } return arr . size ( - 2 ) ; |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcText ( ) { } } | if ( ifcTextEClass == null ) { ifcTextEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 874 ) ; } return ifcTextEClass ; |
public class ResourceTracker { /** * Go through all the requested resources and find what needs to be released .
* @ return */
public List < ResourceRequest > getResourcesToRelease ( ) { } } | List < ResourceRequest > release = new ArrayList < ResourceRequest > ( ) ; synchronized ( lockObject ) { for ( Integer requestId : setDifference ( requestedResources . keySet ( ) , requestMap . keySet ( ) ) ) { // We update the data structures right away . This assumes that the
// caller will be able to release the res... |
public class ModelSerializer { /** * Load a MultilayerNetwork model from a file
* @ param path path to the model file , to get the computation graph from
* @ return the loaded computation graph
* @ throws IOException */
public static MultiLayerNetwork restoreMultiLayerNetwork ( @ NonNull String path ) throws IOEx... | return restoreMultiLayerNetwork ( new File ( path ) , true ) ; |
public class StringUtils { /** * Joins a collection of values into a delimited list .
* @ param collection the collection of values
* @ param delimiter the delimiter ( e . g . " , " )
* @ param sb the string builder to append onto
* @ param < T > the value class */
public static < T > void join ( Collection < T... | join ( collection , delimiter , sb , new JoinCallback < T > ( ) { public void handle ( StringBuilder sb , T value ) { sb . append ( value ) ; } } ) ; |
public class AbstractBuiltInGrammar { /** * a leading rule for performance reason is added to the tail */
public void addProduction ( Event event , Grammar grammar ) { } } | containers . add ( new SchemaLessProduction ( this , grammar , event , getNumberOfEvents ( ) ) ) ; // pre - calculate count for log2 ( Note : always 2nd level productions
// available )
// Note : BuiltInDocContent and BuiltInFragmentContent do not use this
// variable
this . ec1Length = MethodsBag . getCodingLength ( c... |
public class HeapCache { /** * Remove the object from the cache . */
@ Override public boolean removeIfEquals ( K key , V _value ) { } } | Entry e = lookupEntry ( key ) ; if ( e == null ) { metrics . peekMiss ( ) ; return false ; } synchronized ( e ) { e . waitForProcessing ( ) ; if ( e . isGone ( ) ) { metrics . peekMiss ( ) ; return false ; } boolean f = e . hasFreshData ( clock ) ; if ( f ) { if ( ! e . equalsValue ( _value ) ) { return false ; } } els... |
public class AbstractBeanJsonCreator { /** * Creates an implementation of { @ link AbstractBeanJsonSerializer } for the type given in
* parameter
* @ return the information about the created class
* @ throws com . google . gwt . core . ext . UnableToCompleteException if any .
* @ throws com . github . nmorel . ... | final String simpleClassName = isSerializer ( ) ? mapperInfo . getSimpleSerializerClassName ( ) : mapperInfo . getSimpleDeserializerClassName ( ) ; PrintWriter printWriter = getPrintWriter ( mapperInfo . getPackageName ( ) , simpleClassName ) ; // the class already exists , no need to continue
if ( printWriter == null ... |
public class CommerceAccountOrganizationRelUtil { /** * Returns an ordered range of all the commerce account organization rels .
* Useful when paginating results . Returns a maximum of < code > end - start < / code > instances . < code > start < / code > and < code > end < / code > are not primary keys , they are ind... | return getPersistence ( ) . findAll ( start , end , orderByComparator ) ; |
public class MonitorEndpointHelper { /** * Verify access to a JDBC endpoint by verifying that a specified table is accessible .
* @ param muleContext
* @ param muleJdbcDataSourceName
* @ param tableName */
public static String pingJdbcEndpoint ( MuleContext muleContext , String muleJdbcDataSourceName , String tab... | DataSource ds = JdbcUtil . lookupDataSource ( muleContext , muleJdbcDataSourceName ) ; Connection c = null ; Statement s = null ; ResultSet rs = null ; try { c = ds . getConnection ( ) ; s = c . createStatement ( ) ; rs = s . executeQuery ( "select 1 from " + tableName ) ; } catch ( SQLException e ) { return ERROR_PREF... |
public class DeclaredDependencies { /** * Get the collection of direct dependencies included in this instance .
* @ param includeUnsolved include dependencies that may need further
* @ param includePresolved include the dependencies that do not need further resolution .
* @ return the collection of direct depende... | Set < ArtifactSpec > deps = new LinkedHashSet < > ( ) ; if ( includeUnsolved ) { deps . addAll ( getDirectDeps ( ) ) ; } if ( includePresolved ) { deps . addAll ( presolvedDependencies . getDirectDeps ( ) ) ; } return deps ; |
public class NotEmptyAfterStripValidator { /** * { @ inheritDoc } check if given string is a not empty after strip .
* @ see javax . validation . ConstraintValidator # isValid ( java . lang . Object ,
* javax . validation . ConstraintValidatorContext ) */
@ Override public final boolean isValid ( final Object pvalu... | final String valueAsString = StringUtils . strip ( Objects . toString ( pvalue , null ) , stripcharacters ) ; return StringUtils . isNotEmpty ( valueAsString ) ; |
public class InboundResourceAdapterImpl { /** * A validate method . Don ' t extending for the moment ValidatableMetadata
* @ return true if Ra is valid , false in the other cases */
public boolean validationAsBoolean ( ) { } } | if ( this . getMessageadapter ( ) == null || this . getMessageadapter ( ) . getMessagelisteners ( ) == null || this . getMessageadapter ( ) . getMessagelisteners ( ) . isEmpty ( ) ) return false ; MessageListener mlmd = this . getMessageadapter ( ) . getMessagelisteners ( ) . get ( 0 ) ; if ( mlmd . getMessagelistenerT... |
public class Token { /** * Creates a token that represents a symbol , using a library for the type . */
public static Token newSymbol ( String type , int startLine , int startColumn ) { } } | return new Token ( Types . lookupSymbol ( type ) , type , startLine , startColumn ) ; |
public class SubWriterHolderWriter { /** * Get the summary table .
* @ param mw the writer for the member being documented
* @ param typeElement the te to be documented
* @ param tableContents list of summary table contents
* @ param showTabs true if the table needs to show tabs
* @ return the content tree fo... | Content caption ; if ( showTabs ) { caption = getTableCaption ( mw . methodTypes ) ; generateTableTabTypesScript ( mw . typeMap , mw . methodTypes , "methods" ) ; } else { caption = getTableCaption ( mw . getCaption ( ) ) ; } Content table = ( configuration . isOutputHtml5 ( ) ) ? HtmlTree . TABLE ( HtmlStyle . memberS... |
public class BotmReflectionUtil { /** * Get the public method . < br >
* And it has the flexibly searching so you can specify types of sub - class to argTypes . < br >
* But if overload methods exist , it returns the first - found method . < br >
* And no cache so you should cache it yourself if you call several ... | assertObjectNotNull ( "clazz" , clazz ) ; assertStringNotNullAndNotTrimmedEmpty ( "methodName" , methodName ) ; return findMethod ( clazz , methodName , argTypes , VisibilityType . PUBLIC , true ) ; |
public class LdapUtils { /** * Execute a password modify operation .
* @ param currentDn the current dn
* @ param connectionFactory the connection factory
* @ param oldPassword the old password
* @ param newPassword the new password
* @ param type the type
* @ return true / false */
public static boolean ex... | try ( val modifyConnection = createConnection ( connectionFactory ) ) { if ( ! modifyConnection . getConnectionConfig ( ) . getUseSSL ( ) && ! modifyConnection . getConnectionConfig ( ) . getUseStartTLS ( ) ) { LOGGER . warn ( "Executing password modification op under a non-secure LDAP connection; " + "To modify passwo... |
public class XMLDocument { /** * Create a document from a XMLStreamEvents . */
public static XMLDocument create ( XMLStreamEventsSync stream ) throws XMLException , IOException { } } | XMLDocument doc = new XMLDocument ( ) ; do { switch ( stream . event . type ) { case DOCTYPE : if ( doc . docType != null ) throw new XMLException ( stream . getPosition ( ) , "Unexpected element " , "DOCTYPE" ) ; doc . docType = new XMLDocumentType ( doc , stream . event . text . asString ( ) , stream . event . public... |
public class AfplibFactoryImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public FontResolutionRPuBase createFontResolutionRPuBaseFromString ( EDataType eDataType , String initialValue ) { } } | FontResolutionRPuBase result = FontResolutionRPuBase . get ( initialValue ) ; if ( result == null ) throw new IllegalArgumentException ( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType . getName ( ) + "'" ) ; return result ; |
public class WSJdbcResultSet { /** * Perform any wrapper - specific close logic . This method is called by the default
* WSJdbcObject close method .
* @ param closeWrapperOnly boolean flag to indicate that only wrapper - closure activities
* should be performed , but close of the underlying object is unnecessary ... | // Indicate the result is closed by setting the parent object ' s result set to null .
// This will allow us to be garbage collected .
// - Since we use childWrapper for the first result set ,
// so we first compare childWrapper object .
if ( parentWrapper . childWrapper == this ) { parentWrapper . childWrapper = null ... |
public class DecimalStyle { /** * Returns a copy of the info with a new character that represents the decimal point .
* The character used to represent a decimal point may vary by culture .
* This method specifies the character to use .
* @ param decimalSeparator the character for the decimal point
* @ return a... | if ( decimalSeparator == this . decimalSeparator ) { return this ; } return new DecimalStyle ( zeroDigit , positiveSign , negativeSign , decimalSeparator ) ; |
public class CreateRateBasedRuleRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( CreateRateBasedRuleRequest createRateBasedRuleRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( createRateBasedRuleRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( createRateBasedRuleRequest . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( createRateBasedRuleRequest . getMetricName ( ) , METRICNAME_BINDIN... |
public class ConcurrentConveyor { /** * Drains no more than { @ code limit } items from the queue at the supplied
* index into the supplied collection .
* @ return the number of items drained */
public final int drainTo ( int queueIndex , Collection < ? super E > drain , int limit ) { } } | return drain ( queues [ queueIndex ] , drain , limit ) ; |
public class CmsXmlContentProperty { /** * Merges this object with another one containing default values . < p >
* This method does not modify this object or the object passed as a parameter .
* The resulting object ' s fields will be filled with the values from the default if they ' re null in this object .
* @ ... | return new CmsXmlContentProperty ( firstNotNull ( m_name , defaults . m_name ) , firstNotNull ( m_type , defaults . m_type ) , firstNotNull ( m_visibility , defaults . m_visibility ) , firstNotNull ( m_widget , defaults . m_widget ) , firstNotNull ( m_widgetConfiguration , defaults . m_widgetConfiguration ) , firstNotN... |
public class audit_log { /** * Use this API to fetch filtered set of audit _ log resources .
* filter string should be in JSON format . eg : " vm _ state : DOWN , name : [ a - z ] + " */
public static audit_log [ ] get_filtered ( nitro_service service , String filter ) throws Exception { } } | audit_log obj = new audit_log ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; audit_log [ ] response = ( audit_log [ ] ) obj . getfiltered ( service , option ) ; return response ; |
public class JWT { /** * 基于RS256算法验证
* @ throws InvalidTokenException 如果签名的格式不正确 */
private static boolean verifySignature ( String content , String signed , RSAPublicKey pk ) throws InvalidTokenException { } } | try { byte [ ] signedData = Base64 . urlDecode ( signed ) ; byte [ ] contentData = content . getBytes ( JWT . UTF_8 ) ; Signature signature = Signature . getInstance ( ALG_SHA256WITHRSA ) ; signature . initVerify ( pk ) ; signature . update ( contentData ) ; return signature . verify ( signedData ) ; } catch ( Signatur... |
public class VMCommandLine { /** * Run a new VM with the given class path .
* @ param classToLaunch is the class to launch .
* @ param classpath is the class path to use .
* @ param additionalParams is the list of additional parameters
* @ return the process that is running the new virtual machine , neither < c... | final StringBuilder b = new StringBuilder ( ) ; for ( final File f : classpath ) { if ( b . length ( ) > 0 ) { b . append ( File . pathSeparator ) ; } b . append ( f . getAbsolutePath ( ) ) ; } return launchVMWithClassPath ( classToLaunch , b . toString ( ) , additionalParams ) ; |
public class EstimateKeywordTraffic { /** * Returns the mean of the { @ code microAmount } of the two Money values if neither is null , else
* returns null . */
private static Double calculateMean ( Money minMoney , Money maxMoney ) { } } | if ( minMoney == null || maxMoney == null ) { return null ; } return calculateMean ( minMoney . getMicroAmount ( ) , maxMoney . getMicroAmount ( ) ) ; |
public class Reaction { /** * Sets the coefficient of the products .
* @ param coefficients An array of double ' s containing the coefficients of the products
* @ return true if coefficients have been set .
* @ see # getProductCoefficients */
@ Override public boolean setProductCoefficients ( Double [ ] coefficie... | boolean result = products . setMultipliers ( coefficients ) ; notifyChanged ( ) ; return result ; |
public class RoseScanner { /** * 将要被扫描的普通类地址 ( 比如WEB - INF / classes或target / classes之类的地址 )
* @ param resourceLoader
* @ return
* @ throws IOException
* @ throws URISyntaxException */
public List < ResourceRef > getClassesFolderResources ( ) throws IOException { } } | if ( classesFolderResources == null ) { if ( logger . isInfoEnabled ( ) ) { logger . info ( "[classesFolder] start to found available classes folders ..." ) ; } List < ResourceRef > classesFolderResources = new ArrayList < ResourceRef > ( ) ; Enumeration < URL > founds = resourcePatternResolver . getClassLoader ( ) . g... |
public class Authentication { /** * Execute a login attempt , given a user name and password . If a user has already logged in , a logout will be called
* first .
* @ param userId
* The unique user ID .
* @ param password
* The user ' s password .
* @ param callback
* A possible callback to be executed wh... | if ( this . userId == null ) { loginUser ( userId , password , callback ) ; } else if ( this . userId . equals ( userId ) ) { // Already logged in . . .
return ; } else { GwtCommand command = new GwtCommand ( logoutCommandName ) ; GwtCommandDispatcher . getInstance ( ) . execute ( command , new AbstractCommandCallback ... |
public class UriUtils { /** * Creates a new URL string from the specified base URL and parameters
* encoded in non - form encoding , www - urlencoded .
* @ param baseUrl The base URL excluding parameters .
* @ param params The parameters .
* @ return The full URL string . */
public static String newWwwUrlEncode... | final StringBuilder sb = new StringBuilder ( ) ; sb . append ( baseUrl ) ; sb . append ( getUrlParameters ( params , false ) ) ; return sb . toString ( ) ; |
public class SofaResteasyClientBuilder { /** * 注册jaxrs Provider
* @ return SofaResteasyClientBuilder */
public SofaResteasyClientBuilder registerProvider ( ) { } } | ResteasyProviderFactory providerFactory = getProviderFactory ( ) ; // 注册内置
Set < Class > internalProviderClasses = JAXRSProviderManager . getInternalProviderClasses ( ) ; if ( CommonUtils . isNotEmpty ( internalProviderClasses ) ) { for ( Class providerClass : internalProviderClasses ) { providerFactory . register ( pr... |
public class EigenPowerMethod_DDRM { /** * Test for convergence by seeing if the element with the largest change
* is smaller than the tolerance . In some test cases it alternated between
* the + and - values of the eigen vector . When this happens it seems to have " converged "
* to a non - dominant eigen vector... | double worst = 0 ; double worst2 = 0 ; for ( int j = 0 ; j < A . numRows ; j ++ ) { double val = Math . abs ( q2 . data [ j ] - q0 . data [ j ] ) ; if ( val > worst ) worst = val ; val = Math . abs ( q2 . data [ j ] + q0 . data [ j ] ) ; if ( val > worst2 ) worst2 = val ; } // swap vectors
DMatrixRMaj temp = q0 ; q0 = ... |
public class ColumnMarshaller { /** * Marshall the given parameter object . */
public void marshall ( Column column , ProtocolMarshaller protocolMarshaller ) { } } | if ( column == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( column . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( column . getType ( ) , TYPE_BINDING ) ; protocolMarshaller . marshall ( column . getComment ( ) , COMMENT_... |
public class JvmFormalParameterImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public void setParameterType ( JvmTypeReference newParameterType ) { } } | if ( newParameterType != parameterType ) { NotificationChain msgs = null ; if ( parameterType != null ) msgs = ( ( InternalEObject ) parameterType ) . eInverseRemove ( this , EOPPOSITE_FEATURE_BASE - TypesPackage . JVM_FORMAL_PARAMETER__PARAMETER_TYPE , null , msgs ) ; if ( newParameterType != null ) msgs = ( ( Interna... |
public class GetCampaignsRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( GetCampaignsRequest getCampaignsRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( getCampaignsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getCampaignsRequest . getApplicationId ( ) , APPLICATIONID_BINDING ) ; protocolMarshaller . marshall ( getCampaignsRequest . getPageSize ( ) , PAGESIZE_BINDING ) ; p... |
public class AmazonApiGatewayV2Client { /** * Gets an Integration .
* @ param getIntegrationRequest
* @ return Result of the GetIntegration operation returned by the service .
* @ throws NotFoundException
* The resource specified in the request was not found .
* @ throws TooManyRequestsException
* The clien... | request = beforeClientExecution ( request ) ; return executeGetIntegration ( request ) ; |
public class CloseableIterables { /** * Returns the elements of { @ code unfiltered } that satisfy a predicate . The
* resulting closeable iterable ' s iterator does not support { @ code remove ( ) } . */
public static < T > CloseableIterable < T > filter ( final CloseableIterable < T > iterable , final Predicate < ?... | return wrap ( Iterables . filter ( iterable , filter :: test ) , iterable ) ; |
public class BaseAbilityBot { /** * Invokes the method and retrieves its return { @ link Reply } .
* @ param obj an bot or extension that this method is invoked with
* @ return a { @ link Function } which returns the { @ link Reply } returned by the given method */
private Function < ? super Method , AbilityExtensi... | return method -> { try { return ( AbilityExtension ) method . invoke ( obj ) ; } catch ( IllegalAccessException | InvocationTargetException e ) { BotLogger . error ( "Could not add ability extension" , TAG , e ) ; throw propagate ( e ) ; } } ; |
public class MiniParser { /** * use */
private List < String > splitInternal ( final String input , final boolean splitOnWhitespace , final char separator , final String separatorSet , final int maxSegments ) { } } | if ( input == null ) { return null ; } try { final List < String > segments = new ArrayList < String > ( ) ; StringBuilder buffer = new StringBuilder ( ) ; for ( int index = 0 ; index < input . length ( ) ; index ++ ) { final char c = input . charAt ( index ) ; boolean separatedByWhitespace = false ; if ( splitOnWhites... |
public class MACNumber { /** * Try to determine the primary ethernet address of the machine and
* replies the associated internet addresses .
* @ return the internet addresses of the primary network interface . */
@ Pure public static Collection < InetAddress > getPrimaryAdapterAddresses ( ) { } } | final Enumeration < NetworkInterface > interfaces ; try { interfaces = NetworkInterface . getNetworkInterfaces ( ) ; } catch ( SocketException exception ) { return Collections . emptyList ( ) ; } if ( interfaces != null ) { NetworkInterface inter ; while ( interfaces . hasMoreElements ( ) ) { inter = interfaces . nextE... |
public class HamtPMap { /** * Compare two unsigned integers . */
private static int compareUnsigned ( int left , int right ) { } } | // NOTE : JDK 7 does not have a built - in operation for this , other than casting to longs .
// In JDK 8 it ' s just Integer . compareUnsigned ( left , right ) . For now we emulate it
// by shifting the sign bit away , with a fallback second compare only if needed .
int diff = ( left >>> 2 ) - ( right >>> 2 ) ; return... |
public class AddressDivision { /** * when divisionPrefixLen is null , isAutoSubnets has no effect */
protected static boolean isMaskCompatibleWithRange ( long value , long upperValue , long maskValue , long maxValue ) { } } | if ( value == upperValue || maskValue == maxValue || maskValue == 0 ) { return true ; } // algorithm :
// here we find the highest bit that is part of the range , highestDifferingBitInRange ( ie changes from lower to upper )
// then we find the highest bit in the mask that is 1 that is the same or below highestDifferin... |
public class UIComponent { /** * < p class = " changed _ added _ 2_1 " > For components that need to support
* the concept of transient state , this method will restore any
* state saved on a prior call to { @ link # saveTransientState } . < / p >
* @ since 2.1 */
public void restoreTransientState ( FacesContext ... | boolean forceCreate = ( state != null ) ; TransientStateHelper helper = getTransientStateHelper ( forceCreate ) ; if ( helper != null ) { helper . restoreTransientState ( context , state ) ; } |
public class CollectorSampler { /** * Returns true if spans with this trace ID should be recorded to storage .
* < p > Zipkin v1 allows storage - layer sampling , which can help prevent spikes in traffic from
* overloading the system . Debug spans are always stored .
* < p > This uses only the lower 64 bits of th... | if ( Boolean . TRUE . equals ( debug ) ) return true ; long traceId = HexCodec . lowerHexToUnsignedLong ( hexTraceId ) ; // The absolute value of Long . MIN _ VALUE is larger than a long , so Math . abs returns identity .
// This converts to MAX _ VALUE to avoid always dropping when traceId = = Long . MIN _ VALUE
long ... |
public class DefaultTerminalImpl { /** * Method used to construct value from tag and length
* @ param pTagAndLength
* tag and length value
* @ return tag value in byte */
@ Override public byte [ ] constructValue ( final TagAndLength pTagAndLength ) { } } | byte ret [ ] = new byte [ pTagAndLength . getLength ( ) ] ; byte val [ ] = null ; if ( pTagAndLength . getTag ( ) == EmvTags . TERMINAL_TRANSACTION_QUALIFIERS ) { TerminalTransactionQualifiers terminalQual = new TerminalTransactionQualifiers ( ) ; terminalQual . setContactlessVSDCsupported ( true ) ; terminalQual . set... |
public class TrackerRequestProcessor { /** * Write a { @ link HTTPTrackerErrorMessage } to the response with the given
* HTTP status code .
* @ param status The HTTP status code to return .
* @ param error The error reported by the tracker . */
private void serveError ( Status status , HTTPTrackerErrorMessage err... | requestHandler . serveResponse ( status . getCode ( ) , status . getDescription ( ) , error . getData ( ) ) ; |
public class AbstractXTree { /** * Writes all supernodes to the end of the file . This is only supposed to be
* used for a final saving of an XTree . If another page is added to this tree ,
* the supernodes written to file by this operation are over - written .
* @ return the number of bytes written to file for t... | final PageFile < N > file = super . getFile ( ) ; if ( ! ( file instanceof PersistentPageFile ) ) { throw new IllegalStateException ( "Trying to commit a non-persistent XTree" ) ; } long npid = file . getNextPageID ( ) ; XTreeHeader ph = ( XTreeHeader ) ( ( PersistentPageFile < ? > ) file ) . getHeader ( ) ; long offse... |
public class LocalFileEntityResolver { /** * Resolve the entity . First try to find it locally , then fallback to the network . */
public InputSource resolveEntity ( String publicID , String systemID ) throws SAXException , IOException { } } | InputSource localFileInput = resolveLocalEntity ( systemID ) ; return localFileInput != null ? localFileInput : new InputSource ( systemID ) ; |
public class WstxInputData { /** * Method that can be used to check whether specified character
* is a valid first character of an XML 1.0/1.1 name ; except that
* colon ( : ) is not recognized as a start char here : caller has
* to verify it separately ( since it generally affects namespace
* mapping of a qual... | /* First , let ' s handle 7 - bit ascii range ( identical between xml
* 1.0 and 1.1) */
if ( c <= 0x7A ) { // ' z ' or earlier
if ( c >= 0x61 ) { // ' a ' - ' z ' are ok
return true ; } if ( c < 0x41 ) { // before ' A ' just white space
return false ; } return ( c <= 0x5A ) || ( c == '_' ) ; // ' A ' - ' Z ' and ' _ ... |
public class TypeLibrary { /** * Translates an unqualified name such as ' String ' to ' java . lang . String ' , _ if _ you added ' java . lang . String ' to the library via the { @ code addType } method .
* Also returns the input if it is equal to a fully qualified name added to this type library .
* Returns null ... | if ( unqualifiedToQualifiedMap == null ) { if ( typeReference . equals ( unqualified ) || typeReference . equals ( qualified ) ) return qualified ; for ( Map . Entry < String , String > e : LombokInternalAliasing . ALIASES . entrySet ( ) ) { if ( e . getKey ( ) . equals ( typeReference ) ) return e . getValue ( ) ; } r... |
public class EtcdClient { /** * Deletes the node with the given key from etcd .
* @ param key
* the node ' s key
* @ return the response from etcd with the node
* @ throws EtcdException
* in case etcd returned an error */
public EtcdResponse delete ( final String key ) throws EtcdException { } } | UriComponentsBuilder builder = UriComponentsBuilder . fromUriString ( KEYSPACE ) ; builder . pathSegment ( key ) ; return execute ( builder , HttpMethod . DELETE , null , EtcdResponse . class ) ; |
public class ClassAliasTypeResolverBuilder { /** * Registers mappings between classes and aliases ( ids ) .
* @ param classToId */
public void setClassToId ( final Map < Class < ? > , String > classToId ) { } } | Map < String , Class < ? > > reverseMap = new HashMap < String , Class < ? > > ( ) ; for ( Map . Entry < Class < ? > , String > entry : classToId . entrySet ( ) ) { Assert . notNull ( entry . getKey ( ) , "Class cannot be null: " + entry ) ; Assert . hasText ( entry . getValue ( ) , "Alias (id) cannot be null or contai... |
public class ExpressionUtils { /** * Use { @ link # createAndRegisterExpression ( DynamicJasperDesign , String , CustomExpression ) }
* This deprecated version may cause wrong field values when expression is executed in a group footer
* @ param name
* @ param expression
* @ return */
@ Deprecated public static ... | return createExpression ( name , expression , false ) ; |
public class HttpOutboundServiceContextImpl { /** * This gets the next body buffer asynchronously . If the body is encoded
* or compressed , then the encoding is removed and the " next " buffer
* returned . Null callbacks are not allowed and will trigger a
* NullPointerException .
* If the asynchronous request ... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "getResponseBodyBuffer(async)" ) ; } try { if ( ! checkBodyValidity ( ) || incomingBuffersReady ( ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . exit ( tc , "getResponseBodyBuffer(asyn... |
public class XARecorderRecovery { /** * / * ( non - Javadoc )
* @ see org . csc . phynixx . loggersystem . logrecord . IXARecoderRecovery # close ( ) */
@ Override public synchronized void close ( ) { } } | Set < IXADataRecorder > recoveredXADataRecorders = this . getRecoveredXADataRecorders ( ) ; for ( IXADataRecorder dataRecorder : recoveredXADataRecorders ) { dataRecorder . disqualify ( ) ; } |
public class SubItemUtil { /** * select or unselect all sub itmes underneath an expandable item
* @ param adapter the adapter instance
* @ param header the header who ' s children should be selected or deselected
* @ param select the new selected state of the sub items */
public static < T extends IItem & IExpand... | selectAllSubItems ( adapter , header , select , false , null ) ; |
public class DebugTensorWatch { /** * < pre >
* Name of the node to watch .
* < / pre >
* < code > optional string node _ name = 1 ; < / code > */
public java . lang . String getNodeName ( ) { } } | java . lang . Object ref = nodeName_ ; if ( ref instanceof java . lang . String ) { return ( java . lang . String ) ref ; } else { com . google . protobuf . ByteString bs = ( com . google . protobuf . ByteString ) ref ; java . lang . String s = bs . toStringUtf8 ( ) ; nodeName_ = s ; return s ; } |
public class AbstractWMultiSelectList { /** * Determines which selections have been added in the given request .
* @ param request the current request
* @ return a list of selections that have been added in the given request . */
protected List < ? > getNewSelections ( final Request request ) { } } | String [ ] paramValues = request . getParameterValues ( getId ( ) ) ; if ( paramValues == null || paramValues . length == 0 ) { return NO_SELECTION ; } List < String > values = Arrays . asList ( paramValues ) ; List < Object > newSelections = new ArrayList < > ( values . size ( ) ) ; // Figure out which options have be... |
public class Bidi { /** * / * In the isoRuns array , the first entry is used for text outside of any
* isolate sequence . Higher entries are used for each more deeply nested
* isolate sequence . isoRunLast is the index of the last used entry . The
* openings array is used to note the data of opening brackets not ... | bd . isoRunLast = 0 ; bd . isoRuns [ 0 ] = new IsoRun ( ) ; bd . isoRuns [ 0 ] . start = 0 ; bd . isoRuns [ 0 ] . limit = 0 ; bd . isoRuns [ 0 ] . level = GetParaLevelAt ( 0 ) ; bd . isoRuns [ 0 ] . lastStrong = bd . isoRuns [ 0 ] . lastBase = bd . isoRuns [ 0 ] . contextDir = ( byte ) ( GetParaLevelAt ( 0 ) & 1 ) ; bd... |
public class AutoMlClient { /** * Imports data into a dataset . For Tables this method can only be called on an empty Dataset .
* < p > For Tables : & # 42 ; A
* [ schema _ inference _ version ] [ google . cloud . automl . v1beta1 . InputConfig . params ] parameter must be
* explicitly set . Returns an empty resp... | ImportDataRequest request = ImportDataRequest . newBuilder ( ) . setName ( name ) . setInputConfig ( inputConfig ) . build ( ) ; return importDataAsync ( request ) ; |
public class ApiOvhTelephony { /** * Get this object properties
* REST : GET / telephony / { billingAccount } / ovhPabx / { serviceName } / hunting / agent / { agentId }
* @ param billingAccount [ required ] The name of your billingAccount
* @ param serviceName [ required ]
* @ param agentId [ required ] */
pub... | String qPath = "/telephony/{billingAccount}/ovhPabx/{serviceName}/hunting/agent/{agentId}" ; StringBuilder sb = path ( qPath , billingAccount , serviceName , agentId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhOvhPabxHuntingAgent . class ) ; |
public class JavaParser { /** * src / main / resources / org / drools / compiler / semantics / java / parser / Java . g : 612:1 : annotation : ' @ ' annotationName ( ' ( ' ( elementValuePairs ) ? ' ) ' ) ? ; */
public final void annotation ( ) throws RecognitionException { } } | int annotation_StartIndex = input . index ( ) ; try { if ( state . backtracking > 0 && alreadyParsedRule ( input , 65 ) ) { return ; } // src / main / resources / org / drools / compiler / semantics / java / parser / Java . g : 613:5 : ( ' @ ' annotationName ( ' ( ' ( elementValuePairs ) ? ' ) ' ) ? )
// src / main / r... |
public class InvocationDispatcher { /** * Wrap API to SimpleDtxnInitiator - mostly for the future */
public CreateTransactionResult createTransaction ( final long connectionId , final long txnId , final long uniqueId , final StoredProcedureInvocation invocation , final boolean isReadOnly , final boolean isSinglePartiti... | assert ( ! isSinglePartition || ( partitions . length == 1 ) ) ; final ClientInterfaceHandleManager cihm = m_cihm . get ( connectionId ) ; if ( cihm == null ) { hostLog . rateLimitedLog ( 60 , Level . WARN , null , "InvocationDispatcher.createTransaction request rejected. " + "This is likely due to VoltDB ceasing clien... |
public class MatrixIO { /** * Writes the matrix to the specified output file in the provided format
* @ param matrix the matrix to be written
* @ param output the file in which the matrix should be written
* @ param format the data format in which the matrix ' s data should be
* written
* @ throws IllegalArgu... | if ( matrix . rows ( ) == 0 || matrix . columns ( ) == 0 ) throw new IllegalArgumentException ( "cannot write 0-dimensional matrix" ) ; switch ( format ) { case DENSE_TEXT : { PrintWriter pw = new PrintWriter ( output ) ; for ( int i = 0 ; i < matrix . rows ( ) ; ++ i ) { StringBuffer sb = new StringBuffer ( matrix . c... |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Budget } { @ code > } } */
@ XmlElementDecl ( namespace = "http://schema.intuit.com/finance/v3" , name = "Budget" , substitutionHeadNamespace = "http://schema.intuit.com/finance/v3" , substitutionHeadName = "IntuitObje... | return new JAXBElement < Budget > ( _Budget_QNAME , Budget . class , null , value ) ; |
public class RegisteredServiceAccessStrategyUtils { /** * Ensure service sso access is allowed .
* @ param registeredService the registered service
* @ param service the service
* @ param ticketGrantingTicket the ticket granting ticket */
public static void ensureServiceSsoAccessIsAllowed ( final RegisteredServic... | ensureServiceSsoAccessIsAllowed ( registeredService , service , ticketGrantingTicket , false ) ; |
public class CmsAccessControlList { /** * Calculates the permissions of the given user and his groups from the access control list . < p >
* The permissions are returned as permission string in the format { { + | - } { r | w | v | c | i } } * .
* @ param user the user
* @ param groups the groups of this user
* ... | return getPermissions ( user , groups , roles ) . getPermissionString ( ) ; |
public class JobInProgressTraits { /** * Return a vector of completed TaskInProgress objects */
public Vector < TaskInProgress > reportTasksInProgress ( boolean shouldBeMap , boolean shouldBeComplete ) { } } | Vector < TaskInProgress > results = new Vector < TaskInProgress > ( ) ; TaskInProgress tips [ ] = null ; if ( shouldBeMap ) { tips = maps ; } else { tips = reduces ; } for ( int i = 0 ; i < tips . length ; i ++ ) { if ( tips [ i ] . isComplete ( ) == shouldBeComplete ) { results . add ( tips [ i ] ) ; } } return result... |
public class ImageResolutionImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public void setXResol ( Integer newXResol ) { } } | Integer oldXResol = xResol ; xResol = newXResol ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . IMAGE_RESOLUTION__XRESOL , oldXResol , xResol ) ) ; |
public class Broadcaster { /** * A . ts file was written in the recording directory .
* Use this opportunity to verify the segment is of expected size
* given the target bitrate
* Called on a background thread */
@ Subscribe public void onSegmentWritten ( HlsSegmentWrittenEvent event ) { } } | try { File hlsSegment = event . getSegment ( ) ; queueOrSubmitUpload ( keyForFilename ( hlsSegment . getName ( ) ) , hlsSegment ) ; if ( isKitKat ( ) && mConfig . isAdaptiveBitrate ( ) && isRecording ( ) ) { // Adjust bitrate to match expected filesize
long actualSegmentSizeBytes = hlsSegment . length ( ) ; long expect... |
public class ExposeLinearLayoutManagerEx { /** * If there is a pending scroll position or saved states , updates the anchor info from that
* data and returns true */
private boolean updateAnchorFromPendingDataExpose ( RecyclerView . State state , AnchorInfo anchorInfo ) { } } | if ( state . isPreLayout ( ) || mCurrentPendingScrollPosition == RecyclerView . NO_POSITION ) { return false ; } // validate scroll position
if ( mCurrentPendingScrollPosition < 0 || mCurrentPendingScrollPosition >= state . getItemCount ( ) ) { mCurrentPendingScrollPosition = RecyclerView . NO_POSITION ; mPendingScroll... |
public class SqlLoaderImpl { /** * { @ inheritDoc }
* @ see jp . co . future . uroborosql . store . SqlLoader # setLoadPath ( java . lang . String ) */
@ Override public void setLoadPath ( final String loadPath ) { } } | if ( loadPath == null ) { LOG . warn ( "Use the default value because SQL template path is set to NULL." ) ; LOG . warn ( "Default load path[{}]" , DEFAULT_LOAD_PATH ) ; this . loadPath = DEFAULT_LOAD_PATH ; } else { this . loadPath = loadPath ; } |
public class StorageWriter { /** * Acknowledges operations that were flushed to storage */
private CompletableFuture < Void > acknowledge ( Void ignored ) { } } | checkRunning ( ) ; long traceId = LoggerHelpers . traceEnterWithContext ( log , this . traceObjectId , "acknowledge" ) ; long highestCommittedSeqNo = this . ackCalculator . getHighestCommittedSequenceNumber ( this . processors . values ( ) ) ; long ackSequenceNumber = this . dataSource . getClosestValidTruncationPoint ... |
public class HibernateRepositoryDao { /** * < p > getAllTypes . < / p >
* @ return a { @ link java . util . List } object . */
@ SuppressWarnings ( "unchecked" ) public List < RepositoryType > getAllTypes ( ) { } } | final Criteria crit = sessionService . getSession ( ) . createCriteria ( RepositoryType . class ) ; List < RepositoryType > list = crit . list ( ) ; HibernateLazyInitializer . initCollection ( list ) ; return list ; |
public class SarlFormalParameterImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public boolean eIsSet ( int featureID ) { } } | switch ( featureID ) { case SarlPackage . SARL_FORMAL_PARAMETER__DEFAULT_VALUE : return defaultValue != null ; } return super . eIsSet ( featureID ) ; |
public class MatchConditionOnElements { /** * Removes the pseudo class from the given element .
* @ param e the DOM element
* @ param pseudoClass the pseudo class to be removed */
public void removeMatch ( Element e , PseudoClassType pseudoClass ) { } } | if ( elements != null ) { Set < PseudoClassType > classes = elements . get ( e ) ; if ( classes != null ) classes . remove ( pseudoClass ) ; } |
public class StorageImportDispatcher { /** * Aggregates the api , client , and plan policies into a single ordered list .
* @ param contractBean
* @ param clientInfo */
private List < Policy > aggregateContractPolicies ( ContractBean contractBean , EntityInfo clientInfo ) throws StorageException { } } | List < Policy > policies = new ArrayList < > ( ) ; PolicyType [ ] types = new PolicyType [ ] { PolicyType . Client , PolicyType . Plan , PolicyType . Api } ; for ( PolicyType policyType : types ) { String org , id , ver ; switch ( policyType ) { case Client : { org = clientInfo . organizationId ; id = clientInfo . id ;... |
public class DataIO { /** * Get a slice of rows out of the table matching the time window
* @ param table
* @ param timeCol
* @ param start
* @ param end
* @ return the first and last row that matches the time window start - > end */
public static int [ ] sliceByTime ( CSTable table , int timeCol , Date start... | if ( end . before ( start ) ) { throw new IllegalArgumentException ( "end<start" ) ; } if ( timeCol < 0 ) { throw new IllegalArgumentException ( "timeCol :" + timeCol ) ; } int s = - 1 ; int e = - 1 ; int i = - 1 ; for ( String [ ] col : table . rows ( ) ) { i ++ ; Date d = Conversions . convert ( col [ timeCol ] , Dat... |
public class Matchers { /** * Match in range < tt > start < / tt > , < tt > end < / tt > inclusive
* @ see CharSequenceSliceMatcher # sliceThat ( int , int , Matcher )
* @ param start the slice start , inclusive , can be negative
* @ param end the slice end , inclusive , can be negative
* @ param matcher the ne... | return CharSequenceSliceMatcher . sliceThat ( start , end , matcher ) ; |
public class CollectionUtil { /** * public static String [ ] toStringArray ( Key [ ] keys ) { if ( keys = = null ) return null ; String [ ] arr = new
* String [ keys . length ] ; for ( int i = 0 ; i < keys . length ; i + + ) { arr [ i ] = keys [ i ] . getString ( ) ; } return arr ; } */
public static String getKeyLis... | StringBuilder sb = new StringBuilder ( it . next ( ) . getString ( ) ) ; if ( delimiter . length ( ) == 1 ) { char c = delimiter . charAt ( 0 ) ; while ( it . hasNext ( ) ) { sb . append ( c ) ; sb . append ( it . next ( ) . getString ( ) ) ; } } else { while ( it . hasNext ( ) ) { sb . append ( delimiter ) ; sb . appe... |
public class MultiTable { /** * Read the record that matches this record ' s current key .
* @ exception DBException File exception . */
public boolean seek ( String strSeekSign ) throws DBException { } } | boolean bSuccess = false ; BaseTable table = this . getCurrentTable ( ) ; if ( table != null ) { table . getRecord ( ) . setKeyArea ( this . getRecord ( ) . getDefaultOrder ( ) ) ; bSuccess = table . seek ( strSeekSign ) ; if ( bSuccess ) // Move to first record
this . setCurrentTable ( table ) ; } this . syncCurrentTo... |
public class SovereigntyApi { /** * List sovereignty structures Shows sovereignty data for structures . - - -
* This route is cached for up to 120 seconds
* @ param datasource
* The server name you would like data from ( optional , default to
* tranquility )
* @ param ifNoneMatch
* ETag from a previous requ... | com . squareup . okhttp . Call call = getSovereigntyStructuresValidateBeforeCall ( datasource , ifNoneMatch , null ) ; Type localVarReturnType = new TypeToken < List < SovereigntyStructuresResponse > > ( ) { } . getType ( ) ; return apiClient . execute ( call , localVarReturnType ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.