signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class Streams { /** * Attempt to transform this Stream to the same type as the supplied Monoid , using supplied function
* Then use Monoid to reduce values
* @ param mapper Function to transform Monad type
* @ param reducer Monoid to reduce values
* @ return Reduce result */
public final static < T , R >... | return reducer . foldLeft ( stream . map ( mapper ) ) ; |
public class StreamImplTee { /** * Reads the next chunk from the stream in non - blocking mode .
* @ param buffer byte array receiving the data .
* @ param offset starting offset into the array .
* @ param length number of bytes to read .
* @ return the number of bytes read , - 1 on end of file , or 0 on timeou... | int sublen = getDelegate ( ) . readTimeout ( buffer , offset , length , timeout ) ; if ( sublen > 0 ) { logStream ( ) . write ( buffer , offset , sublen ) ; } return sublen ; |
public class LocomotiveConfig { /** * Url that automated tests will be testing .
* @ return If a base url is provided it ' ll return the base url + path , otherwise it ' ll fallback to the normal url params . */
@ Override public String url ( ) { } } | String url = "" ; if ( ! StringUtils . isEmpty ( baseUrl ( ) ) ) { url = baseUrl ( ) + path ( ) ; } else { if ( ! StringUtils . isEmpty ( properties . getProperty ( Constants . DEFAULT_PROPERTY_URL ) ) ) { url = properties . getProperty ( Constants . DEFAULT_PROPERTY_URL ) ; } if ( testConfig != null && ( ! StringUtils... |
public class InMemoryLookupTable { /** * Iterate on the given 2 vocab words
* @ param w1 the first word to iterate on
* @ param w2 the second word to iterate on
* @ param nextRandom next random for sampling */
@ Override @ Deprecated public void iterateSample ( T w1 , T w2 , AtomicLong nextRandom , double alpha )... | if ( w2 == null || w2 . getIndex ( ) < 0 || w1 . getIndex ( ) == w2 . getIndex ( ) || w1 . getLabel ( ) . equals ( "STOP" ) || w2 . getLabel ( ) . equals ( "STOP" ) || w1 . getLabel ( ) . equals ( "UNK" ) || w2 . getLabel ( ) . equals ( "UNK" ) ) return ; // current word vector
INDArray l1 = this . syn0 . slice ( w2 . ... |
public class HierarchicalUriComponents { /** * expanding */
@ Override protected HierarchicalUriComponents expandInternal ( UriTemplateVariables uriVariables ) { } } | Assert . state ( ! this . encoded , "Cannot expand an already encoded UriComponents object" ) ; String expandedScheme = expandUriComponent ( getScheme ( ) , uriVariables ) ; String expandedUserInfo = expandUriComponent ( this . userInfo , uriVariables ) ; String expandedHost = expandUriComponent ( this . host , uriVari... |
public class I18NConnector { /** * Returns the value for this label ussing the getThreadLocaleLanguage
* @ param section
* @ param idInSection
* @ return */
public static String getLabel ( Class < ? > clazz , String label ) { } } | Language language = getThreadLocalLanguage ( null ) ; if ( language == null ) { return label ; } else { return getLabel ( language , clazz . getName ( ) , label ) ; } |
public class AppServiceEnvironmentsInner { /** * Get metric definitions for a multi - role pool of an App Service Environment .
* Get metric definitions for a multi - role pool of an App Service Environment .
* @ param resourceGroupName Name of the resource group to which the resource belongs .
* @ param name Nam... | return AzureServiceFuture . fromPageResponse ( listMultiRoleMetricDefinitionsSinglePageAsync ( resourceGroupName , name ) , new Func1 < String , Observable < ServiceResponse < Page < ResourceMetricDefinitionInner > > > > ( ) { @ Override public Observable < ServiceResponse < Page < ResourceMetricDefinitionInner > > > c... |
public class ApiOvhEmailexchange { /** * Get this object properties
* REST : GET / email / exchange / { organizationName } / service / { exchangeService } / externalContact / { externalEmailAddress }
* @ param organizationName [ required ] The internal name of your exchange organization
* @ param exchangeService ... | String qPath = "/email/exchange/{organizationName}/service/{exchangeService}/externalContact/{externalEmailAddress}" ; StringBuilder sb = path ( qPath , organizationName , exchangeService , externalEmailAddress ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhExchangeEx... |
public class CmsHtmlImport { /** * Validates a filename for OpenCms . < p >
* This method checks if there are any illegal characters in the filename and modifies them
* if necessary . In addition it ensures that no duplicate filenames are created . < p >
* @ param filename the filename to validate
* @ return a ... | // if its an external filename , use it directly
if ( isExternal ( filename ) ) { return filename ; } // check if this resource name does already exist
// if so add a postfix to the name
int postfix = 1 ; boolean found = true ; String validFilename = filename ; // if we are not in overwrite mode , we must find a valid ... |
public class ExqlPatternImpl { /** * 进行简单测试 */
public static void main ( String ... args ) throws Exception { } } | // 编译下列语句
ExqlPattern pattern = ExqlPatternImpl . compile ( "SELECT #(:expr1.length()), :expr2.class.name," + " ##(:expr3) WHERE #if(:expr4) {e = :expr4} #else {e IS NULL}" + "#for(variant in :expr5.bytes) { AND c = :variant}" // NL
+ " GROUP BY #!(:expr1) ASC {expr3}" ) ; ExqlContext context = new ExqlContextImpl ( ) ... |
public class FactoryDenseOpticalFlow { /** * Compute optical flow using { @ link PyramidKltTracker } .
* @ see DenseOpticalFlowKlt
* @ param configKlt Configuration for KLT . If null then default values are used .
* @ param radius Radius of square region .
* @ param inputType Type of input image .
* @ param d... | if ( configKlt == null ) configKlt = new PkltConfig ( ) ; if ( derivType == null ) { derivType = GImageDerivativeOps . getDerivativeType ( inputType ) ; } int numLayers = configKlt . pyramidScaling . length ; ImageType < I > imagetype = ImageType . single ( inputType ) ; PyramidDiscrete < I > pyramidA = FactoryPyramid ... |
public class PDPageContentStreamExt { /** * Draws the given Form XObject at the current location .
* @ param form
* Form XObject
* @ throws IOException
* if the content stream could not be written
* @ throws IllegalStateException
* If the method was called within a text block . */
public void drawForm ( fin... | if ( inTextMode ) { throw new IllegalStateException ( "Error: drawForm is not allowed within a text block." ) ; } writeOperand ( resources . add ( form ) ) ; writeOperator ( ( byte ) 'D' , ( byte ) 'o' ) ; |
public class Storage { /** * Factory method to create a new storage backed by a hashtable .
* @ param < K >
* @ param < V >
* @ return */
public static < K , V > Storage < K , V > createHashtableStorage ( ) { } } | return new Storage < K , V > ( new MapStorageWrapper < K , V > ( new HashMap < K , V > ( ) ) ) ; |
public class UIContextImpl { /** * Reserved for internal framework use . Sets a framework attribute .
* @ param name the attribute name .
* @ param value the attribute value . */
@ Override public void setFwkAttribute ( final String name , final Object value ) { } } | if ( attribMap == null ) { attribMap = new HashMap < > ( ) ; } attribMap . put ( name , value ) ; |
public class StreamService { /** * { @ inheritDoc } */
public void play ( Boolean dontStop ) { } } | log . debug ( "Play without stop: {}" , dontStop ) ; if ( ! dontStop ) { IConnection conn = Red5 . getConnectionLocal ( ) ; if ( conn instanceof IStreamCapableConnection ) { IStreamCapableConnection streamConn = ( IStreamCapableConnection ) conn ; Number streamId = conn . getStreamId ( ) ; IClientStream stream = stream... |
public class SymbolOptions { /** * Set the LatLng of the symbol , which represents the location of the symbol on the map
* @ param latLng the location of the symbol in a longitude and latitude pair
* @ return this */
public SymbolOptions withLatLng ( LatLng latLng ) { } } | geometry = Point . fromLngLat ( latLng . getLongitude ( ) , latLng . getLatitude ( ) ) ; return this ; |
public class AmazonPinpointClient { /** * Update an Voice channel
* @ param updateVoiceChannelRequest
* @ return Result of the UpdateVoiceChannel operation returned by the service .
* @ throws BadRequestException
* 400 response
* @ throws InternalServerErrorException
* 500 response
* @ throws ForbiddenExc... | request = beforeClientExecution ( request ) ; return executeUpdateVoiceChannel ( request ) ; |
public class SSLComponent { /** * TODO bug in bnd requires setting service */
@ Reference ( service = RepertoireConfigService . class , cardinality = ReferenceCardinality . MULTIPLE , policy = ReferencePolicy . DYNAMIC , target = "(id=*)" ) protected synchronized void setRepertoire ( RepertoireConfigService config ) { ... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Adding repertoire: " + config . getAlias ( ) ) ; } Map < String , Object > properties = config . getProperties ( ) ; repertoireMap . put ( config . getAlias ( ) , config ) ; repertoirePIDMap . put ( config . getPID ( ) , con... |
public class HttpResponseBodyDecoder { /** * Checks the response status code is considered as error .
* @ param httpResponse the response to check
* @ param decodeData the response metadata
* @ return true if the response status code is considered as error , false otherwise . */
static boolean isErrorStatus ( Htt... | final int [ ] expectedStatuses = decodeData . expectedStatusCodes ( ) ; if ( expectedStatuses != null ) { return ! contains ( expectedStatuses , httpResponse . statusCode ( ) ) ; } else { return httpResponse . statusCode ( ) / 100 != 2 ; } |
public class AlignedBox3f { /** * Change the frame of the box .
* @ param x
* @ param y
* @ param z
* @ param sizex
* @ param sizey
* @ param sizez */
@ Override public void set ( double x , double y , double z , double sizex , double sizey , double sizez ) { } } | setFromCorners ( x , y , z , x + sizex , y + sizey , z + sizez ) ; |
public class Parser { /** * Parse the value and return a new instance of RECORD .
* For this method to work the RECORD class may NOT be an inner class . */
public RECORD parse ( final String value ) throws DissectionFailure , InvalidDissectorException , MissingDissectorsException { } } | assembleDissectors ( ) ; final Parsable < RECORD > parsable = createParsable ( ) ; if ( parsable == null ) { return null ; } parsable . setRootDissection ( rootType , value ) ; return parse ( parsable ) . getRecord ( ) ; |
public class SortWorker { /** * Write the provided pointer at the specified index .
* ( Assumes limit on buffer is correctly set )
* ( Position of the buffer changed ) */
private void writePointer ( int index , ByteBuffer pointer ) { } } | int limit = memoryBuffer . limit ( ) ; int pos = memoryBuffer . position ( ) ; int pointerOffset = computePointerOffset ( index ) ; memoryBuffer . limit ( pointerOffset + POINTER_SIZE_BYTES ) ; memoryBuffer . position ( pointerOffset ) ; memoryBuffer . put ( pointer ) ; memoryBuffer . limit ( limit ) ; memoryBuffer . p... |
public class AWSDatabaseMigrationServiceClient { /** * Applies a pending maintenance action to a resource ( for example , to a replication instance ) .
* @ param applyPendingMaintenanceActionRequest
* @ return Result of the ApplyPendingMaintenanceAction operation returned by the service .
* @ throws ResourceNotFo... | request = beforeClientExecution ( request ) ; return executeApplyPendingMaintenanceAction ( request ) ; |
public class UnprocessedAccountMarshaller { /** * Marshall the given parameter object . */
public void marshall ( UnprocessedAccount unprocessedAccount , ProtocolMarshaller protocolMarshaller ) { } } | if ( unprocessedAccount == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( unprocessedAccount . getAccountId ( ) , ACCOUNTID_BINDING ) ; protocolMarshaller . marshall ( unprocessedAccount . getResult ( ) , RESULT_BINDING ) ; } catch ( Except... |
public class AbstractRoxConfigurableClientMojo { /** * Apply the internal setup for the plugin
* @ throws MojoExecutionException Throws when error occurred in the clean plugin */
@ Override protected void setup ( ) throws MojoExecutionException { } } | if ( verbose ) { getLog ( ) . info ( "Rox configuration is generated" ) ; } // Check if the ROX configuration is available
if ( roxActive && roxConfig != null ) { // Check the ROX configuration file
if ( ! roxConfig . exists ( ) || ! roxConfig . isFile ( ) || ! roxConfig . getAbsolutePath ( ) . endsWith ( ".yml" ) ) { ... |
public class hostcpu { /** * < pre >
* Converts API response of bulk operation into object and returns the object array in case of get request .
* < / pre > */
protected base_resource [ ] get_nitro_bulk_response ( nitro_service service , String response ) throws Exception { } } | hostcpu_responses result = ( hostcpu_responses ) service . get_payload_formatter ( ) . string_to_resource ( hostcpu_responses . class , response ) ; if ( result . errorcode != 0 ) { if ( result . errorcode == SESSION_NOT_EXISTS ) service . clear_session ( ) ; throw new nitro_exception ( result . message , result . erro... |
public class Client { /** * Generates an invite link for a user that you have already created in your OneLogin account .
* @ param email
* Set to the email address of the user that you want to generate an invite link for .
* @ return String with the link
* @ throws OAuthSystemException - if there is a IOExcepti... | cleanError ( ) ; prepareToken ( ) ; OneloginURLConnectionClient httpClient = new OneloginURLConnectionClient ( ) ; OAuthClient oAuthClient = new OAuthClient ( httpClient ) ; URIBuilder url = new URIBuilder ( settings . getURL ( Constants . GENERATE_INVITE_LINK_URL ) ) ; OAuthClientRequest bearerRequest = new OAuthBeare... |
public class PathResourceManager { /** * Returns true is some element of path inside base path is a symlink . */
private SymlinkResult getSymlinkBase ( final String base , final Path file ) throws IOException { } } | int nameCount = file . getNameCount ( ) ; Path root = fileSystem . getPath ( base ) ; int rootCount = root . getNameCount ( ) ; Path f = file ; for ( int i = nameCount - 1 ; i >= 0 ; i -- ) { if ( Files . isSymbolicLink ( f ) ) { return new SymlinkResult ( i + 1 > rootCount , f ) ; } f = f . getParent ( ) ; } return nu... |
public class FiniteMapObligation { /** * idx in set dom m */
private List < PMultipleBind > getSetBindList ( ILexNameToken finmap , ILexNameToken findex ) { } } | AMapDomainUnaryExp domExp = new AMapDomainUnaryExp ( ) ; domExp . setType ( new ABooleanBasicType ( ) ) ; domExp . setExp ( getVarExp ( finmap ) ) ; return getMultipleSetBindList ( domExp , findex ) ; |
public class SelectStatement { /** * Used by ModificationStatement for CAS operations */
void processColumnFamily ( ByteBuffer key , ColumnFamily cf , QueryOptions options , long now , Selection . ResultSetBuilder result ) throws InvalidRequestException { } } | CFMetaData cfm = cf . metadata ( ) ; ByteBuffer [ ] keyComponents = null ; if ( cfm . getKeyValidator ( ) instanceof CompositeType ) { keyComponents = ( ( CompositeType ) cfm . getKeyValidator ( ) ) . split ( key ) ; } else { keyComponents = new ByteBuffer [ ] { key } ; } Iterator < Cell > cells = cf . getSortedColumns... |
public class Lexer { private Token doctype ( ) { } } | String val = scan1 ( "^!!! *([^\\n]+)?" ) ; if ( StringUtils . isNotBlank ( val ) ) { throw new JadeLexerException ( "`!!!` is deprecated, you must now use `doctype`" , filename , getLineno ( ) , templateLoader ) ; } Matcher matcher = scanner . getMatcherForPattern ( "^(?:doctype) *([^\\n]+)?" ) ; if ( matcher . find (... |
public class XsdEmitter { /** * Create an XML schema minInclusive facet .
* @ param minInclusive the value to set
* @ return an XML schema minInclusive facet */
protected XmlSchemaMinInclusiveFacet createMinInclusiveFacet ( final String minInclusive ) { } } | XmlSchemaMinInclusiveFacet xmlSchemaMinInclusiveFacet = new XmlSchemaMinInclusiveFacet ( ) ; xmlSchemaMinInclusiveFacet . setValue ( minInclusive ) ; return xmlSchemaMinInclusiveFacet ; |
public class SignalExternalWorkflowExecutionInitiatedEventAttributesMarshaller { /** * Marshall the given parameter object . */
public void marshall ( SignalExternalWorkflowExecutionInitiatedEventAttributes signalExternalWorkflowExecutionInitiatedEventAttributes , ProtocolMarshaller protocolMarshaller ) { } } | if ( signalExternalWorkflowExecutionInitiatedEventAttributes == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( signalExternalWorkflowExecutionInitiatedEventAttributes . getWorkflowId ( ) , WORKFLOWID_BINDING ) ; protocolMarshaller . marshal... |
public class Event { /** * Replies if the event was emitted by an entity with the given identifier .
* @ param entityId the identifier of the emitter to test .
* @ return < code > true < / code > if the given event was emitted by
* an entity with the given identifier ; otherwise < code > false < / code > .
* @ ... | final Address iSource = getSource ( ) ; return ( entityId != null ) && ( iSource != null ) && entityId . equals ( iSource . getUUID ( ) ) ; |
public class SrvAddTheFirstUser { /** * < p > Change user password . < / p >
* @ param pUserName User Name
* @ param pPassw User password
* @ param pPasswOld User password old
* @ return if changed ( if there is user with old password )
* @ throws Exception - an exception */
@ Override public final boolean ch... | String query = "select USERTOMCAT.ITSUSER from USERTOMCAT where ITSUSER='" + pUserName + "' and ITSPASSWORD='" + pPasswOld + "';" ; IRecordSet < RS > recordSet = null ; try { this . srvDatabase . setIsAutocommit ( false ) ; this . srvDatabase . setTransactionIsolation ( ISrvDatabase . TRANSACTION_READ_UNCOMMITTED ) ; t... |
public class CmsHelpTemplateBean { /** * Returns the HTML for the head frame of the online help . < p >
* @ return the HTML for the head frame of the online help */
public String displayHead ( ) { } } | StringBuffer result = new StringBuffer ( 2048 ) ; int buttonStyle = getSettings ( ) . getUserSettings ( ) . getWorkplaceButtonStyle ( ) ; // change to online project to allow exporting
try { getJsp ( ) . getRequestContext ( ) . setCurrentProject ( m_onlineProject ) ; String resourcePath = getJsp ( ) . link ( "/system/m... |
public class ByteAccessor { /** * ( non - Javadoc )
* @ see
* com . impetus . kundera . property . PropertyAccessor # fromString ( java . lang . String */
@ Override public Byte fromString ( Class targetClass , String s ) { } } | try { if ( s == null ) { return null ; } Byte b = new Byte ( s ) ; return b ; } catch ( NumberFormatException e ) { log . error ( "Number fromat exception, Caused by {}." , e ) ; throw new PropertyAccessException ( e ) ; } |
public class JSConsumerClassifications { /** * Retrieve the number of classifications specified in the current set .
* @ return */
public int getNumberOfClasses ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getNumberOfClasses" ) ; SibTr . exit ( tc , "getNumberOfClasses" , Integer . valueOf ( numberOfClasses ) ) ; } return numberOfClasses ; |
public class CmsDecorationMap { /** * Fills the decoration map with values from the decoation file . < p >
* @ param cms the CmsObject
* @ param res the decoration file
* @ return decoration map , using decoration as key and decoration description as value
* @ throws CmsException if something goes wrong */
priv... | if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( Messages . get ( ) . getBundle ( ) . key ( Messages . LOG_DECORATION_MAP_FILL_MAP_2 , m_name , m_decoratorDefinition ) ) ; } Map < String , CmsDecorationObject > decMap = new HashMap < String , CmsDecorationObject > ( ) ; // upgrade the resource to get the file content
Cm... |
public class ConfigurationReader { /** * Parses the cache parameter section .
* @ param node
* Reference to the current used xml node
* @ param config
* Reference to the ConfigSettings */
private void parseCacheConfig ( final Node node , final ConfigSettings config ) { } } | String name ; Long lValue ; Node nnode ; NodeList list = node . getChildNodes ( ) ; int length = list . getLength ( ) ; for ( int i = 0 ; i < length ; i ++ ) { nnode = list . item ( i ) ; name = nnode . getNodeName ( ) . toUpperCase ( ) ; if ( name . equals ( KEY_LIMIT_TASK_SIZE_REVISIONS ) ) { lValue = Long . parseLon... |
public class ConnectionManager { /** * Finds or opens a client to talk to the dbserver on the specified player , incrementing its use count .
* @ param targetPlayer the player number whose database needs to be interacted with
* @ param description a short description of the task being performed for error reporting ... | Client result = openClients . get ( targetPlayer ) ; if ( result == null ) { // We need to open a new connection .
final DeviceAnnouncement deviceAnnouncement = DeviceFinder . getInstance ( ) . getLatestAnnouncementFrom ( targetPlayer ) ; if ( deviceAnnouncement == null ) { throw new IllegalStateException ( "Player " +... |
public class DecoderCache { /** * Populates the cache . */
private static void populateCache ( ) { } } | if ( cache == null ) { cache = new LinkedHashMap < > ( ) ; logger . info ( "IDataDecoders found:" ) ; ServiceLoader < IDataDecoder > loader = ServiceLoader . load ( IDataDecoder . class ) ; // Logging .
for ( IDataDecoder discoveredDecoder : loader ) { String name = discoveredDecoder . getClass ( ) . getCanonicalName (... |
public class DbPipe { public String getStringValue ( String name ) { } } | // Check if datum exists for name
DbDatum datum = getDatum ( name ) ; if ( datum == null ) return null ; // Else get string value
String [ ] array = datum . extractStringArray ( ) ; String str = "" ; for ( int i = 0 ; i < array . length ; i ++ ) { str += array [ i ] ; if ( i < array . length - 1 ) str += "\n" ; } retur... |
public class TreeWithIDSearcher { /** * Fill all items with the same ID by linearly scanning of the tree .
* @ param < KEYTYPE >
* tree ID type
* @ param < DATATYPE >
* tree data type
* @ param < ITEMTYPE >
* tree item type
* @ param aTree
* The tree to search . May not be < code > null < / code > .
*... | return findAllItemsWithIDRecursive ( aTree . getRootItem ( ) , aSearchID ) ; |
public class AStar { /** * Run the A * algorithm assuming that the graph is oriented is
* an orientation tool was passed to the constructor .
* < p > The orientation of the graph may also be overridden by the implementations
* of the { @ link AStarNode A * nodes } .
* @ param startPoint is the starting point . ... | final List < AStarNode < ST , PT > > closeList ; fireAlgorithmStart ( startPoint , endPoint ) ; // Run A *
closeList = findPath ( startPoint , endPoint ) ; if ( closeList == null || closeList . isEmpty ( ) ) { return null ; } fireAlgorithmEnd ( closeList ) ; // Create the path
return createPath ( startPoint , endPoint ... |
public class ApiOvhPrice { /** * Get price of anti - DDos Pro option
* REST : GET / price / dedicated / server / antiDDoSPro / { commercialRange }
* @ param commercialRange [ required ] commercial range of your dedicated server */
public OvhPrice dedicated_server_antiDDoSPro_commercialRange_GET ( net . minidev . ov... | String qPath = "/price/dedicated/server/antiDDoSPro/{commercialRange}" ; StringBuilder sb = path ( qPath , commercialRange ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhPrice . class ) ; |
public class TargetableInterceptor { /** * { @ inheritDoc } */
@ Override public void paint ( final RenderContext renderContext ) { } } | ComponentWithContext target = WebUtilities . getComponentById ( targetId , true ) ; if ( target == null ) { throw new SystemException ( "No target component found for id " + targetId ) ; } UIContextHolder . pushContext ( target . getContext ( ) ) ; try { super . paint ( renderContext ) ; } finally { UIContextHolder . p... |
public class Indicator { /** * Sets the color definition that is used to visualize the on state of the symbol
* @ param ON _ COLOR */
public void setOnColor ( final ColorDef ON_COLOR ) { } } | onColor = ON_COLOR ; init ( getInnerBounds ( ) . width , getInnerBounds ( ) . height ) ; repaint ( getInnerBounds ( ) ) ; |
public class AddressTemplate { /** * - - - - - resolve */
public ResourceAddress resolve ( String ... wildcards ) { } } | return resolve ( new StatementContext ( ) { @ Override public String get ( String key ) { return null ; } @ Override public String [ ] getTuple ( String key ) { return null ; } @ Override public String resolve ( String key ) { return null ; } @ Override public String [ ] resolveTuple ( String key ) { return null ; } @ ... |
public class UserServiceImpl { /** * { @ inheritDoc }
* 安全考虑 , password 属性为 null 。 < / p > */
public User get ( String loginname , String password ) { } } | Connection conn = null ; User user = null ; if ( loginname == null || password == null ) return null ; String cryptpassword = MD5 . encodeString ( password , null ) ; try { conn = ConnectionUtils . getConnection ( ) ; user = userDAO . get ( conn , loginname , cryptpassword ) ; } catch ( SQLException e ) { logger . erro... |
public class SparkDataValidation { /** * Validate DataSet objects saved to the specified directory on HDFS by attempting to load them and checking their
* contents . Assumes DataSets were saved using { @ link org . nd4j . linalg . dataset . DataSet # save ( OutputStream ) } . < br >
* This method ( optionally ) add... | return validateDataSets ( sc , path , true , false , featuresShape , labelsShape ) ; |
public class ArrayUtils { /** * 将给定数组转换成Set 。 注意 : 相同hashCode的元素将只保留一个 。 Convert given array to a set .
* @ param array 源数组 。 source array .
* @ return 一个保留所有唯一元素的Set 。 a set have all unique element of array . */
public static < T > Set < T > toSet ( final T [ ] array ) { } } | if ( isNotEmpty ( array ) ) { Set < T > set = new HashSet < T > ( array . length ) ; for ( T element : array ) { set . add ( element ) ; } return set ; } else { return new HashSet < T > ( 0 ) ; } |
public class SyndFeedInput { /** * Builds SyndFeedImpl from an JDOM document .
* @ param document JDOM document to read to create the SyndFeedImpl .
* @ return the SyndFeedImpl read from the JDOM document .
* @ throws IllegalArgumentException thrown if feed type could not be understood by any of the
* underlyin... | return new SyndFeedImpl ( feedInput . build ( document ) , preserveWireFeed ) ; |
public class NDArrayIndex { /** * Given an array of indexes
* return the number of new axis elements
* in teh array
* @ param axes the indexes to get the number
* of new axes for
* @ return the number of new axis elements in the given array */
public static int numNewAxis ( INDArrayIndex ... axes ) { } } | int ret = 0 ; for ( INDArrayIndex index : axes ) if ( index instanceof NewAxis ) ret ++ ; return ret ; |
public class ExternalEntryPointHelper { /** * Deeply finds all the attributes of the supplied class
* @ param parameterType Type of parameter
* @ param typeBlacklist blackList by type
* @ param nameBlacklist blackList by name
* @ param maxDeepLevel How deep should algorithm go in the object
* @ return List */... | return getInternalEntryPointParametersRecursively ( parameterType , typeBlacklist , nameBlacklist , null , 1 , maxDeepLevel ) ; |
public class ListProtectionsResult { /** * The array of enabled < a > Protection < / a > objects .
* @ param protections
* The array of enabled < a > Protection < / a > objects . */
public void setProtections ( java . util . Collection < Protection > protections ) { } } | if ( protections == null ) { this . protections = null ; return ; } this . protections = new java . util . ArrayList < Protection > ( protections ) ; |
public class ExperimentsInner { /** * Gets information about an Experiment .
* @ param resourceGroupName Name of the resource group to which the resource belongs .
* @ param workspaceName The name of the workspace . Workspace names can only contain a combination of alphanumeric characters along with dash ( - ) and ... | return getWithServiceResponseAsync ( resourceGroupName , workspaceName , experimentName ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class AbstractLifeCycleManager { /** * Builds the right handler depending on the current instance ' s state .
* @ param instance an instance
* @ param appName the application name
* @ param messagingClient the messaging client
* @ return a non - null manager to update the instance ' s life cycle */
publi... | AbstractLifeCycleManager result ; switch ( instance . getStatus ( ) ) { case DEPLOYED_STARTED : result = new DeployedStarted ( appName , messagingClient ) ; break ; case DEPLOYED_STOPPED : result = new DeployedStopped ( appName , messagingClient ) ; break ; case NOT_DEPLOYED : result = new NotDeployed ( appName , messa... |
public class RegexReplacer { /** * Compiles if not compiled . Replaces found string by using attached replacers .
* < p > This method is thread safe :
* @ param text
* @ return */
public String replace ( CharSequence text ) { } } | StringBuilder sb = new StringBuilder ( ) ; replace ( sb , text ) ; return sb . toString ( ) ; |
public class CollectionPrefetcher { /** * associate the batched Children with their owner object loop over children */
protected void associateBatched ( Collection owners , Collection children ) { } } | CollectionDescriptor cds = getCollectionDescriptor ( ) ; PersistentField field = cds . getPersistentField ( ) ; PersistenceBroker pb = getBroker ( ) ; Class ownerTopLevelClass = pb . getTopLevelClass ( getOwnerClassDescriptor ( ) . getClassOfObject ( ) ) ; Class collectionClass = cds . getCollectionClass ( ) ; // this ... |
public class ICUService { /** * Convenience override of getDisplayNames ( ULocale , Comparator , String ) that
* uses null for the comparator , and null for the matchID . */
public SortedMap < String , String > getDisplayNames ( ULocale locale ) { } } | return getDisplayNames ( locale , null , null ) ; |
public class Word2VecExamples { /** * Loads a model and allows user to find similar words */
public static void loadModel ( ) throws IOException , TException , UnknownWordException { } } | final Word2VecModel model ; try ( ProfilingTimer timer = ProfilingTimer . create ( LOG , "Loading model" ) ) { String json = Common . readFileToString ( new File ( "text8.model" ) ) ; model = Word2VecModel . fromThrift ( ThriftUtils . deserializeJson ( new Word2VecModelThrift ( ) , json ) ) ; } interact ( model . forSe... |
public class ModMessageManager { /** * Checks if parameters passed match the parameteres required for the { @ link Method } .
* @ param method the method
* @ param data the data
* @ return true , if successful */
private static boolean checkParameters ( Method method , Object ... data ) { } } | Parameter [ ] parameters = method . getParameters ( ) ; if ( ArrayUtils . isEmpty ( data ) && parameters . length != 0 ) return false ; if ( parameters . length != data . length ) return false ; for ( int i = 0 ; i < parameters . length ; i ++ ) { Class < ? > paramClass = parameters [ i ] . getType ( ) ; if ( data [ i ... |
public class ListDevicePoolsResult { /** * Information about the device pools .
* @ param devicePools
* Information about the device pools . */
public void setDevicePools ( java . util . Collection < DevicePool > devicePools ) { } } | if ( devicePools == null ) { this . devicePools = null ; return ; } this . devicePools = new java . util . ArrayList < DevicePool > ( devicePools ) ; |
public class DefaultGroovyMethods { /** * Returns a List containing the items from the List but with duplicates removed
* using the natural ordering of the items to determine uniqueness .
* < pre class = " groovyTestCase " >
* def letters = [ ' c ' , ' a ' , ' t ' , ' s ' , ' a ' , ' t ' , ' h ' , ' a ' , ' t ' ]... | return toUnique ( self , ( Comparator < T > ) null ) ; |
public class CassandraSchemaManager { /** * Gets the column family properties .
* @ param tableInfo
* the table info
* @ return the column family properties */
private Properties getColumnFamilyProperties ( TableInfo tableInfo ) { } } | if ( tables != null ) { for ( Table table : tables ) { if ( table != null && table . getName ( ) != null && table . getName ( ) . equalsIgnoreCase ( tableInfo . getTableName ( ) ) ) { return table . getProperties ( ) ; } } } return null ; |
public class CmsUploadPropertyDialog { /** * Action to display the dialog content for the previous resource . < p > */
protected void actionBack ( ) { } } | if ( m_dialogIndex <= 0 ) { return ; } m_dialogIndex -- ; m_uploadPropertyPanel . getPropertyEditor ( ) . getForm ( ) . validateAndSubmit ( ) ; m_nextAction = new Runnable ( ) { public void run ( ) { loadDialogBean ( m_resources . get ( m_dialogIndex ) ) ; } } ; |
public class MetricValues { /** * Obtains the { @ code HashCode } for the contents of { @ code value } .
* @ param value a { @ code MetricValue } to be signed
* @ return the { @ code HashCode } corresponding to { @ code value } */
public static HashCode sign ( MetricValue value ) { } } | Hasher h = Hashing . md5 ( ) . newHasher ( ) ; return putMetricValue ( h , value ) . hash ( ) ; |
public class Table { /** * Returns only the columns whose names are given in the input array */
public List < CategoricalColumn < ? > > categoricalColumns ( String ... columnNames ) { } } | List < CategoricalColumn < ? > > columns = new ArrayList < > ( ) ; for ( String columnName : columnNames ) { columns . add ( categoricalColumn ( columnName ) ) ; } return columns ; |
public class CGCSGIDImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public void setGCSGID ( Integer newGCSGID ) { } } | Integer oldGCSGID = gcsgid ; gcsgid = newGCSGID ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . CGCSGID__GCSGID , oldGCSGID , gcsgid ) ) ; |
public class JMTimeUtil { /** * Gets time .
* @ param epochTimestamp the epoch timestamp
* @ param dateTimeFormatter the date time formatter
* @ param zoneId the zone id
* @ return the time */
public static String getTime ( long epochTimestamp , DateTimeFormatter dateTimeFormatter , ZoneId zoneId ) { } } | return ZonedDateTime . ofInstant ( Instant . ofEpochMilli ( epochTimestamp ) , zoneId ) . format ( dateTimeFormatter ) ; |
public class RequestParameters { /** * Appends a list of values to the list for a parameter .
* @ param namethe parameter
* @ param valuesthe values to add to the list */
public void add ( String name , String ... values ) { } } | if ( containsKey ( name ) ) { List < String > list = get ( name ) ; for ( String value : values ) { list . add ( value ) ; } } else { put ( name , values ) ; } |
public class AfplibFactoryImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public PGPRGPGorient createPGPRGPGorientFromString ( EDataType eDataType , String initialValue ) { } } | PGPRGPGorient result = PGPRGPGorient . get ( initialValue ) ; if ( result == null ) throw new IllegalArgumentException ( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType . getName ( ) + "'" ) ; return result ; |
public class DRL6Expressions { /** * src / main / resources / org / drools / compiler / lang / DRL6Expressions . g : 273:1 : exclusiveOrExpression returns [ BaseDescr result ] : left = andExpression ( XOR right = andExpression ) * ; */
public final BaseDescr exclusiveOrExpression ( ) throws RecognitionException { } } | BaseDescr result = null ; BaseDescr left = null ; BaseDescr right = null ; try { // src / main / resources / org / drools / compiler / lang / DRL6Expressions . g : 274:3 : ( left = andExpression ( XOR right = andExpression ) * )
// src / main / resources / org / drools / compiler / lang / DRL6Expressions . g : 274:5 : ... |
public class ServletRegistrationComponent { /** * The method to use when all the dependencies are resolved .
* It means iPojo guarantees that both the manager and the HTTP
* service are not null .
* @ throws Exception in case of critical error */
public void starting ( ) throws Exception { } } | this . logger . fine ( "iPojo registers REST and icons servlets related to Roboconf's DM." ) ; // Create the REST application with its resources .
// The scheduler may be null , it is optional .
this . app = new RestApplication ( this . manager ) ; this . app . setScheduler ( this . scheduler ) ; this . app . setMavenR... |
public class Privacy { /** * CHECKSTYLE : ON */
@ Override protected IQChildElementXmlStringBuilder getIQChildElementBuilder ( IQChildElementXmlStringBuilder buf ) { } } | buf . rightAngleBracket ( ) ; // CHECKSTYLE : OFF
// Add the active tag
if ( this . isDeclineActiveList ( ) ) { buf . append ( "<active/>" ) ; } else { if ( this . getActiveName ( ) != null ) { buf . append ( "<active name=\"" ) . escape ( getActiveName ( ) ) . append ( "\"/>" ) ; } } // Add the default tag
if ( this .... |
public class TEEJBInvocationInfo { /** * This is called by the EJB container server code to write a
* EJB method call postinvoke begins record to the trace log , if enabled . */
public static void tracePostInvokeBegins ( EJSDeployedSupport s , EJSWrapperBase wrapper ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { StringBuffer sbuf = new StringBuffer ( ) ; sbuf . append ( MthdPostInvokeEntry_Type_Str ) . append ( DataDelimiter ) . append ( MthdPostInvokeEntry_Type ) . append ( DataDelimiter ) ; writeDeployedSupportInfo ( s , sbuf , wrapper , null ) ; Tr... |
public class ListDeploymentJobsRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( ListDeploymentJobsRequest listDeploymentJobsRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( listDeploymentJobsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( listDeploymentJobsRequest . getFilters ( ) , FILTERS_BINDING ) ; protocolMarshaller . marshall ( listDeploymentJobsRequest . getNextToken ( ) , NEXTTOKEN_BINDI... |
public class ReloadableType { /** * Load a new version of this type , using the specified suffix to tag the newly generated artifact class names .
* @ param versionsuffix the String suffix to append to classnames being created for the reloaded class
* @ param newbytedata the class bytes for the new version of this ... | javaMethodCache = null ; if ( GlobalConfiguration . verboseMode && log . isLoggable ( Level . INFO ) ) { log . info ( "Loading new version of " + slashedtypename + ", identifying suffix " + versionsuffix + ", new data length is " + newbytedata . length + "bytes" ) ; } // If we find our parent classloader has a weavingT... |
public class PropertyUtils { /** * Get all getters of this class , includes inherited methods , but excludes
* static methods . Methods marked as @ JsonIgnore are put to as null .
* @ param clazz
* @ return */
static Map < String , Method > getAllGetters ( Class < ? > clazz ) { } } | Map < String , Method > methods = new HashMap < String , Method > ( ) ; while ( ! clazz . equals ( Object . class ) ) { for ( Method m : clazz . getDeclaredMethods ( ) ) { if ( Modifier . isStatic ( m . getModifiers ( ) ) ) { continue ; } String propertyName = getGetterName ( m ) ; if ( shouldIgnore ( m ) ) { methods .... |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link AbstractPositionalAccuracyType } { @ code > }
* @ param value
* Java instance representing xml element ' s value .
* @ return
* the new instance of { @ link JAXBElement } { @ code < } { @ link AbstractPositiona... | return new JAXBElement < AbstractPositionalAccuracyType > ( __PositionalAccuracy_QNAME , AbstractPositionalAccuracyType . class , null , value ) ; |
public class EventSubscriptionsInner { /** * Delete an event subscription .
* Delete an existing event subscription .
* @ param scope The scope of the event subscription . The scope can be a subscription , or a resource group , or a top level resource belonging to a resource provider namespace , or an EventGrid top... | return ServiceFuture . fromResponse ( beginDeleteWithServiceResponseAsync ( scope , eventSubscriptionName ) , serviceCallback ) ; |
public class Autoboxer { /** * Convert a wrapper class instance to a specified primitive equivalent . */
private void unbox ( Expression expr , PrimitiveType primitiveType ) { } } | TypeElement boxedClass = findBoxedSuperclass ( expr . getTypeMirror ( ) ) ; if ( primitiveType == null && boxedClass != null ) { primitiveType = typeUtil . unboxedType ( boxedClass . asType ( ) ) ; } if ( primitiveType == null ) { return ; } ExecutableElement valueMethod = ElementUtil . findMethod ( boxedClass , TypeUt... |
public class R2RMLParser { /** * method that trims a string of all its double apostrophes from beginning
* and end
* @ param string
* - to be trimmed
* @ return the string without any quotes */
private String trim ( String string ) { } } | while ( string . startsWith ( "\"" ) && string . endsWith ( "\"" ) ) { string = string . substring ( 1 , string . length ( ) - 1 ) ; } return string ; |
public class StreamEx { /** * Creates a new { @ code EntryStream } populated from entries of maps produced
* by supplied mapper function which is applied to the every element of this
* stream .
* This is an < a href = " package - summary . html # StreamOps " > intermediate < / a >
* operation .
* @ param < K ... | return new EntryStream < > ( stream ( ) . flatMap ( e -> { Map < K , V > s = mapper . apply ( e ) ; return s == null ? null : s . entrySet ( ) . stream ( ) ; } ) , context ) ; |
public class EntityManagerFactory { /** * Creates and returns HttpTransportOptions from the given connection parameters .
* @ param parameters
* the connection parameters
* @ return the HttpTransportOptions */
private static HttpTransportOptions getHttpTransportOptions ( ConnectionParameters parameters ) { } } | HttpTransportOptions . Builder httpOptionsBuilder = HttpTransportOptions . newBuilder ( ) ; httpOptionsBuilder . setConnectTimeout ( parameters . getConnectionTimeout ( ) ) ; httpOptionsBuilder . setReadTimeout ( parameters . getReadTimeout ( ) ) ; HttpTransportFactory httpTransportFactory = parameters . getHttpTranspo... |
public class DataEncoder { /** * Encodes the given byte array for use when there is only a single
* nullable property , whose type is a byte array .
* @ param prefixPadding amount of extra bytes to allocate at start of encoded byte array
* @ param suffixPadding amount of extra bytes to allocate at end of encoded ... | if ( prefixPadding <= 0 && suffixPadding <= 0 ) { if ( value == null ) { return new byte [ ] { NULL_BYTE_HIGH } ; } int length = value . length ; if ( length == 0 ) { return new byte [ ] { NOT_NULL_BYTE_HIGH } ; } byte [ ] dst = new byte [ 1 + length ] ; dst [ 0 ] = NOT_NULL_BYTE_HIGH ; System . arraycopy ( value , 0 ,... |
public class MatchParserImpl { /** * | Term PlusMinus Expression */
final public Selector Expression ( ) throws ParseException { } } | Selector left , right = null ; int op = - 1 ; left = Term ( ) ; switch ( ( jj_ntk == - 1 ) ? jj_ntk ( ) : jj_ntk ) { case 7 : case 8 : op = PlusMinus ( ) ; right = Expression ( ) ; break ; default : jj_la1 [ 5 ] = jj_gen ; ; } if ( right == null ) { if ( true ) return left ; } else { if ( true ) return new OperatorImpl... |
public class AddShoppingCampaignForShowcaseAds { /** * Runs the example .
* @ param adWordsServices the services factory .
* @ param session the session .
* @ param budgetId the budget ID to use for the new campaign .
* @ param merchantId the Merchant Center ID for the new campaign .
* @ throws ApiException i... | Campaign campaign = createCampaign ( adWordsServices , session , budgetId , merchantId ) ; System . out . printf ( "Campaign with name '%s' and ID %d was added.%n" , campaign . getName ( ) , campaign . getId ( ) ) ; AdGroup adGroup = createAdGroup ( adWordsServices , session , campaign ) ; System . out . printf ( "Ad g... |
public class GuideTree { /** * Returns the distance matrix used to construct this guide tree . The scores have been normalized .
* @ return the distance matrix used to construct this guide tree */
public double [ ] [ ] getDistanceMatrix ( ) { } } | double [ ] [ ] matrix = new double [ distances . getSize ( ) ] [ distances . getSize ( ) ] ; for ( int i = 0 ; i < matrix . length ; i ++ ) { for ( int j = i + 1 ; j < matrix . length ; j ++ ) { matrix [ i ] [ j ] = matrix [ j ] [ i ] = distances . getValue ( i , j ) ; } } return matrix ; |
public class StartFaceDetectionRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( StartFaceDetectionRequest startFaceDetectionRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( startFaceDetectionRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( startFaceDetectionRequest . getVideo ( ) , VIDEO_BINDING ) ; protocolMarshaller . marshall ( startFaceDetectionRequest . getClientRequestToken ( ) , CLIENTREQU... |
public class DataSerializer { /** * Get component type of a ( multidimensional ) array or any other object .
* @ param object Object ( e . g . a multidimensional array ) .
* @ return Component type ( e . g . int , Boolean . class , String . class , double ,
* etc . ) . */
public static final Class < ? > getCompon... | Class < ? > result = object . getClass ( ) . getComponentType ( ) ; while ( result . isArray ( ) ) { result = result . getComponentType ( ) ; } return result ; |
public class Spider { /** * Filters the seed list using the current fetch filters , preventing any non - valid seed from being accessed .
* @ see # seedList
* @ see FetchFilter
* @ see SpiderController # getFetchFilters ( )
* @ since 2.5.0 */
private void fetchFilterSeeds ( ) { } } | if ( seedList == null || seedList . isEmpty ( ) ) { return ; } for ( Iterator < URI > it = seedList . iterator ( ) ; it . hasNext ( ) ; ) { URI seed = it . next ( ) ; for ( FetchFilter filter : controller . getFetchFilters ( ) ) { FetchStatus filterReason = filter . checkFilter ( seed ) ; if ( filterReason != FetchStat... |
public class RollupInterval { /** * Calculates the number of intervals in a given span for the rollup
* interval and makes sure we have table names . It also sets the table byte
* arrays .
* @ return The number of intervals in the span
* @ throws IllegalArgumentException if milliseconds were passed in the inter... | if ( temporal_table_name == null || temporal_table_name . isEmpty ( ) ) { throw new IllegalArgumentException ( "The rollup table cannot be null or empty" ) ; } temporal_table = temporal_table_name . getBytes ( Const . ASCII_CHARSET ) ; if ( groupby_table_name == null || groupby_table_name . isEmpty ( ) ) { throw new Il... |
public class AstNodeFactory { /** * Sets the mixin type property for an { @ link AstNode }
* @ param node the node to set the property on ; may not be null
* @ param type the mixin type { @ link String } ; may not be null */
public void setType ( AstNode node , String type ) { } } | CheckArg . isNotNull ( node , "node" ) ; CheckArg . isNotNull ( type , "parent" ) ; node . setProperty ( JCR_MIXIN_TYPES , type ) ; |
public class AWSCognitoIdentityProviderClient { /** * Returns a unique generated shared secret key code for the user account . The request takes an access token or a
* session string , but not both .
* @ param associateSoftwareTokenRequest
* @ return Result of the AssociateSoftwareToken operation returned by the ... | request = beforeClientExecution ( request ) ; return executeAssociateSoftwareToken ( request ) ; |
public class KinesisProxy { /** * { @ inheritDoc } */
@ Override public GetRecordsResult getRecords ( String shardIterator , int maxRecordsToGet ) throws InterruptedException { } } | final GetRecordsRequest getRecordsRequest = new GetRecordsRequest ( ) ; getRecordsRequest . setShardIterator ( shardIterator ) ; getRecordsRequest . setLimit ( maxRecordsToGet ) ; GetRecordsResult getRecordsResult = null ; int retryCount = 0 ; while ( retryCount <= getRecordsMaxRetries && getRecordsResult == null ) { t... |
public class WebsocketSession { /** * Method to send normal response .
* @ param response response
* @ return mono void */
public Mono < Void > send ( GatewayMessage response ) { } } | return Mono . defer ( ( ) -> outbound . sendObject ( Mono . just ( response ) . map ( codec :: encode ) . map ( TextWebSocketFrame :: new ) ) . then ( ) . doOnSuccessOrError ( ( avoid , th ) -> logSend ( response , th ) ) ) ; |
public class AggregateResourceIdentifierMarshaller { /** * Marshall the given parameter object . */
public void marshall ( AggregateResourceIdentifier aggregateResourceIdentifier , ProtocolMarshaller protocolMarshaller ) { } } | if ( aggregateResourceIdentifier == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( aggregateResourceIdentifier . getSourceAccountId ( ) , SOURCEACCOUNTID_BINDING ) ; protocolMarshaller . marshall ( aggregateResourceIdentifier . getSourceReg... |
public class Vectors { /** * Copies all of the values from one { @ code Vector } into another . After the
* operation , all of the values in { @ code dest } will be the same as that of
* { @ code source } . The legnth of { @ code dest } must be as long as the length
* of { @ code source } . Once completed { @ cod... | for ( int i = 0 ; i < source . length ( ) ; ++ i ) dest . set ( i , source . getValue ( i ) . doubleValue ( ) ) ; return dest ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.