signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class ConvolutionUtils { /** * Get heigh / width / channels as length 3 int [ ] from the InputType
* @ param inputType Input type to get
* @ return Length */
public static int [ ] getHWDFromInputType ( InputType inputType ) { } } | int inH ; int inW ; int inDepth ; // FIXME : int cast
if ( inputType instanceof InputType . InputTypeConvolutional ) { InputType . InputTypeConvolutional conv = ( InputType . InputTypeConvolutional ) inputType ; inH = ( int ) conv . getHeight ( ) ; inW = ( int ) conv . getWidth ( ) ; inDepth = ( int ) conv . getChannel... |
public class ObjectManager { /** * Change the maximum active transactrions that the ObjectManager will allow to start . If this call reduces the
* maximum then existing transactions continue but no new ones are allowed until the total has fallen below the new
* maximum .
* @ param maximumActiveTransactions to set... | if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "setMaximumActiveTransactions" , new Object [ ] { new Integer ( maximumActiveTransactions ) , transaction } ) ; transaction . lock ( objectManagerState ) ; objectManagerState . maximumActiveTransactions = maximumActiv... |
public class URLStreamHandler { /** * Compares the host components of two URLs .
* @ param u1 the URL of the first host to compare
* @ param u2 the URL of the second host to compare
* @ return { @ code true } if and only if they
* are equal , { @ code false } otherwise .
* @ since 1.3 */
protected boolean hos... | // Android - changed : Don ' t compare the InetAddresses of the hosts .
if ( u1 . getHost ( ) != null && u2 . getHost ( ) != null ) return u1 . getHost ( ) . equalsIgnoreCase ( u2 . getHost ( ) ) ; else return u1 . getHost ( ) == null && u2 . getHost ( ) == null ; |
public class KDTree { /** * Query for nearest neighbor . Returns the distance and point
* @ param point the point to query for
* @ return */
public Pair < Double , INDArray > nn ( INDArray point ) { } } | return nn ( root , point , rect , Double . POSITIVE_INFINITY , null , 0 ) ; |
public class ParosTableTag { /** * / * ( non - Javadoc )
* @ see org . parosproxy . paros . db . paros . TableTag # getTagsForHistoryID ( long ) */
@ Override public synchronized List < RecordTag > getTagsForHistoryID ( long historyId ) throws DatabaseException { } } | try { List < RecordTag > result = new ArrayList < > ( ) ; psGetTagsForHistoryId . setLong ( 1 , historyId ) ; try ( ResultSet rs = psGetTagsForHistoryId . executeQuery ( ) ) { while ( rs . next ( ) ) { result . add ( new RecordTag ( rs . getLong ( TAGID ) , rs . getLong ( TAGID ) , rs . getString ( TAG ) ) ) ; } } retu... |
public class AsyncTwitterImpl { /** * implementation for AsyncOAuthSupport */
@ Override public void getOAuthRequestTokenAsync ( ) { } } | getDispatcher ( ) . invokeLater ( new AsyncTask ( OAUTH_REQUEST_TOKEN , listeners ) { @ Override public void invoke ( List < TwitterListener > listeners ) throws TwitterException { RequestToken token = twitter . getOAuthRequestToken ( ) ; for ( TwitterListener listener : listeners ) { try { listener . gotOAuthRequestTo... |
public class Vector4d { /** * / * ( non - Javadoc )
* @ see org . joml . Vector4dc # angle ( org . joml . Vector4dc ) */
public double angle ( Vector4dc v ) { } } | double cos = angleCos ( v ) ; // This is because sometimes cos goes above 1 or below - 1 because of lost precision
cos = cos < 1 ? cos : 1 ; cos = cos > - 1 ? cos : - 1 ; return Math . acos ( cos ) ; |
public class br_app_by_wan_volume { /** * < pre >
* Performs generic data validation for the operation to be performed
* < / pre > */
protected void validate ( String operationType ) throws Exception { } } | super . validate ( operationType ) ; MPSString id_validator = new MPSString ( ) ; id_validator . validate ( operationType , id , "\"id\"" ) ; MPSIPAddress ip_address_validator = new MPSIPAddress ( ) ; ip_address_validator . validate ( operationType , ip_address , "\"ip_address\"" ) ; MPSString app_name_validator = new ... |
public class WarBuilder { /** * Builds a WAR from the given option .
* @ return file URI referencing the WAR in a temporary directory */
public URI buildWar ( ) { } } | if ( option . getName ( ) == null ) { option . name ( UUID . randomUUID ( ) . toString ( ) ) ; } processClassPath ( ) ; try { File webResourceDir = getWebResourceDir ( ) ; File probeWar = new File ( tempDir , option . getName ( ) + ".war" ) ; ZipBuilder builder = new ZipBuilder ( probeWar ) ; for ( String library : opt... |
public class EhCachePlugin { /** * You can use this method to manually register a { @ link CacheManager } that should be monitored by stagemonitor .
* Example :
* < pre >
* Stagemonitor . getPlugin ( EhCachePlugin . class ) . monitorCaches ( yourCacheManager ) ;
* < / pre >
* @ param cacheManager The CacheMan... | if ( cacheManager == null ) { logger . warn ( "EhCache can't be monitored; CacheManager is null" ) ; return ; } for ( String cacheName : cacheManager . getCacheNames ( ) ) { monitorCache ( cacheManager . getCache ( cacheName ) ) ; } |
public class UserApi { /** * Get currently authenticated user .
* < pre > < code > GitLab Endpoint : GET / user < / code > < / pre >
* @ return the User instance for the currently authenticated user
* @ throws GitLabApiException if any exception occurs */
public User getCurrentUser ( ) throws GitLabApiException {... | Response response = get ( Response . Status . OK , null , "user" ) ; return ( response . readEntity ( User . class ) ) ; |
public class CDIUtils { /** * Creates an object of the service class
* @ param serviceClass the service class
* @ return the serviceClass object */
public static < S > S prepareInstance ( Class < ? extends S > serviceClass ) { } } | try { final Constructor < ? extends S > constructor = serviceClass . getDeclaredConstructor ( ) ; AccessController . doPrivileged ( new PrivilegedAction < Void > ( ) { @ Override public Void run ( ) { constructor . setAccessible ( true ) ; return null ; } } ) ; return constructor . newInstance ( ) ; } catch ( LinkageEr... |
public class ShapeType { /** * Determine the ShapeType for the id .
* @ param id The id to search for .
* @ return The ShapeType for the id . */
public static ShapeType forID ( int id ) { } } | ShapeType t ; switch ( id ) { case 0 : t = NULL ; break ; case 1 : t = POINT ; break ; case 11 : t = POINTZ ; break ; case 21 : t = POINTM ; break ; case 3 : t = ARC ; break ; case 13 : t = ARCZ ; break ; case 23 : t = ARCM ; break ; case 5 : t = POLYGON ; break ; case 15 : t = POLYGONZ ; break ; case 25 : t = POLYGONM... |
public class StandaloneDeploymentFinder { /** * - - - - - deployment methods */
public void loadDeployments ( ) { } } | Operation op = new Operation . Builder ( READ_CHILDREN_RESOURCES_OPERATION , ResourceAddress . ROOT ) . param ( CHILD_TYPE , "deployment" ) . param ( INCLUDE_RUNTIME , true ) . param ( RECURSIVE , true ) . build ( ) ; dispatcher . execute ( new DMRAction ( op ) , new AsyncCallback < DMRResponse > ( ) { @ Override publi... |
public class Sheet { /** * Updates the row var for iterations over the list . The var value will be updated to the value for the specified rowKey .
* @ param context the FacesContext against which to the row var is set . Passed for performance
* @ param rowKey the rowKey string */
public void setRowVar ( final Face... | if ( context == null ) { return ; } if ( rowKey == null ) { context . getExternalContext ( ) . getRequestMap ( ) . remove ( getVar ( ) ) ; } else { final Object value = getRowMap ( ) . get ( rowKey ) ; context . getExternalContext ( ) . getRequestMap ( ) . put ( getVar ( ) , value ) ; } |
public class PipelineManager { /** * Delete all data store entities corresponding to the given pipeline .
* @ param pipelineHandle The handle of the pipeline to be deleted
* @ param force If this parameter is not { @ code true } then this method will
* throw an { @ link IllegalStateException } if the specified pi... | checkNonEmpty ( pipelineHandle , "pipelineHandle" ) ; Key key = KeyFactory . createKey ( JobRecord . DATA_STORE_KIND , pipelineHandle ) ; backEnd . deletePipeline ( key , force , async ) ; |
public class DialogPageUtils { /** * Add a message monitor . Each monitor will have its
* { @ link Messagable # setMessage ( Message ) } method called whenever the MESSAGE
* property on the dialog page changes .
* @ param dialogPage
* to monitor
* @ param monitor
* to add */
public static void addMessageMon... | dialogPage . addPropertyChangeListener ( Messagable . MESSAGE_PROPERTY , new MessageHandler ( monitor ) ) ; |
public class KBeamArcEagerParser { /** * Needs Conll 2006 format
* @ param inputFile
* @ param outputFile
* @ param rootFirst
* @ param beamWidth
* @ throws Exception */
public void parseConllFileNoParallel ( String inputFile , String outputFile , boolean rootFirst , int beamWidth , boolean labeled , boolean ... | CoNLLReader reader = new CoNLLReader ( inputFile ) ; boolean addScore = false ; if ( scorePath . trim ( ) . length ( ) > 0 ) addScore = true ; ArrayList < Float > scoreList = new ArrayList < Float > ( ) ; long start = System . currentTimeMillis ( ) ; int allArcs = 0 ; int size = 0 ; BufferedWriter writer = new Buffered... |
public class Neo4JGraph { /** * Executes the given statement on the current { @ link Graph } instance . WARNING : There is no
* guarantee that the results are confined within the current { @ link Neo4JReadPartition } .
* @ param statement The CYPHER statement .
* @ param parameters The CYPHER statement parameters... | Objects . requireNonNull ( statement , "statement cannot be null" ) ; Objects . requireNonNull ( parameters , "parameters cannot be null" ) ; // use overloaded method
return execute ( new Statement ( statement , parameters ) ) ; |
public class IoUtils { /** * Returns a list of the unique values in { @ code columnNumber } of
* { @ code filename } . The columns of { @ code filename } are delimited
* by { @ code delimiter } .
* @ param filename
* @ param columnNumber
* @ param delimiter
* @ return */
public static List < String > readUn... | Set < String > values = Sets . newHashSet ( readColumnFromDelimitedFile ( filename , columnNumber , delimiter ) ) ; return Lists . newArrayList ( values ) ; |
public class EntityDrivenAction { /** * 导入信息 */
public String importData ( ) { } } | TransferResult tr = new TransferResult ( ) ; EntityImporter importer = buildEntityImporter ( ) ; if ( null == importer ) { return forward ( "/components/importData/error" ) ; } try { configImporter ( importer ) ; importer . transfer ( tr ) ; put ( "importer" , importer ) ; put ( "importResult" , tr ) ; if ( tr . hasErr... |
public class vpnsessionpolicy { /** * Use this API to add vpnsessionpolicy . */
public static base_response add ( nitro_service client , vpnsessionpolicy resource ) throws Exception { } } | vpnsessionpolicy addresource = new vpnsessionpolicy ( ) ; addresource . name = resource . name ; addresource . rule = resource . rule ; addresource . action = resource . action ; return addresource . add_resource ( client ) ; |
public class RepresentationModel { /** * Returns all { @ link Link } s with the given relation .
* @ param relation must not be { @ literal null } .
* @ return the links in a { @ link List } */
public List < Link > getLinks ( String relation ) { } } | Assert . hasText ( relation , "Link relation must not be null or empty!" ) ; return links . stream ( ) . filter ( link -> link . hasRel ( relation ) ) . collect ( Collectors . toList ( ) ) ; |
public class JsApiMessageImpl { /** * Helper method used by the main Message Property methods to obtain the
* non - JMS - valid Property items in the form of a map .
* The method has package level visibility as it is used by JsJmsMessageImpl ,
* JsSdoMessageimpl and MQJsJmsMessageEncoderImpl .
* @ return A JsMs... | if ( otherUserPropertyMap == null ) { List < String > keys = ( List < String > ) getApi ( ) . getField ( JsApiAccess . OTHERPROPERTY_NAME ) ; List < Object > values = ( List < Object > ) getApi ( ) . getField ( JsApiAccess . OTHERPROPERTY_VALUE ) ; otherUserPropertyMap = new JsMsgMap ( keys , values ) ; } return otherU... |
public class AdministrationDao { /** * Writes the counted nodes and the used operators back to the staging area . */
private void writeAmountOfNodesBack ( List < ExampleQuery > exampleQueries ) { } } | String sqlTemplate = "UPDATE _" + EXAMPLE_QUERIES_TAB + " SET nodes=?, used_ops=CAST(? AS text[]) WHERE example_query=?;" ; for ( ExampleQuery eQ : exampleQueries ) { getJdbcTemplate ( ) . update ( sqlTemplate , eQ . getNodes ( ) , eQ . getUsedOperators ( ) , eQ . getExampleQuery ( ) ) ; } |
public class GenerateParseInfoVisitor { /** * Private helper for appendImmutableList ( ) and appendImmutableSortedSet ( ) .
* @ param ilb The builder for the code .
* @ param creationFunctionSnippet Code snippet for the qualified name of the list or set creation
* function ( without trailing parentheses ) .
* @... | if ( itemSnippets . isEmpty ( ) ) { ilb . appendLineStart ( creationFunctionSnippet , "()" ) ; } else { ilb . appendLine ( creationFunctionSnippet , "(" ) ; boolean isFirst = true ; for ( String item : itemSnippets ) { if ( isFirst ) { isFirst = false ; } else { ilb . appendLineEnd ( "," ) ; } ilb . appendLineStart ( "... |
public class JoinDomainRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( JoinDomainRequest joinDomainRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( joinDomainRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( joinDomainRequest . getGatewayARN ( ) , GATEWAYARN_BINDING ) ; protocolMarshaller . marshall ( joinDomainRequest . getDomainName ( ) , DOMAINNAME_BINDING ) ; protocolM... |
public class VirtualHostImpl { /** * Given a new shiny inbound connection , figure out which HttpContainer
* will handle the inbound request , and return a Runnable that should
* be used to dispatch the work .
* @ param inboundConnection
* @ return the Runnable that should be queued for execution to handle the ... | String requestUri = inboundConnection . getRequest ( ) . getURI ( ) ; Runnable requestHandler = null ; // Find the container that can handle this URI .
// The first to return a non - null wins
for ( HttpContainerContext ctx : httpContainers ) { requestHandler = ctx . container . createRunnableHandler ( inboundConnectio... |
public class PageLeafImpl { /** * Sends a write - request to the sequence writer for the page .
* Called in the TableServerImpl thread . */
@ Override @ InService ( PageServiceImpl . class ) void writeImpl ( TableKelp table , PageServiceImpl pageServiceImpl , TableWriterService readWrite , SegmentStream sOut , long o... | Objects . requireNonNull ( sOut ) ; // System . out . println ( " WIMPL : " + this + " " + Long . toHexString ( System . identityHashCode ( this ) ) + " " + _ stub ) ;
if ( saveLength <= 0 || oldSequence != sOut . getSequence ( ) || _stub == null || ! _stub . allowDelta ( ) ) { PageLeafImpl newPage ; if ( ! isDirty ( )... |
public class AWSOpsWorksClient { /** * Stops a specified stack .
* < b > Required Permissions < / b > : To use this action , an IAM user must have a Manage permissions level for the stack ,
* or an attached policy that explicitly grants permissions . For more information on user permissions , see < a
* href = " h... | request = beforeClientExecution ( request ) ; return executeStopStack ( request ) ; |
public class Locations { /** * All { @ link Location locations } in the classpath that match the supplied package .
* @ param pkg the package to look for within the classpath
* @ return { @ link Location Locations } of all paths that match the supplied package */
@ PublicAPI ( usage = ACCESS ) public static Set < L... | ImmutableSet . Builder < Location > result = ImmutableSet . builder ( ) ; for ( Location location : getLocationsOf ( asResourceName ( pkg ) ) ) { result . add ( location ) ; } return result . build ( ) ; |
public class TopologyContextImpl { /** * Gets the index of this task id in getComponentTasks ( getThisComponentId ( ) ) .
* An example use case for this method is determining which task
* accesses which resource in a distributed resource to ensure an even distribution . */
public int getThisTaskIndex ( ) { } } | List < Integer > allTasks = getComponentTasks ( getThisComponentId ( ) ) ; int retVal = 0 ; for ( Integer tsk : allTasks ) { if ( tsk < myTaskId ) { retVal ++ ; } } return retVal ; |
public class CacheArgumentServices { /** * Compute the part of cache key that depends of arguments
* @ param keys : key from annotation
* @ param jsonArgs : actual args
* @ param paramNames : parameter name of concern method
* @ return */
String computeSpecifiedArgPart ( String [ ] keys , List < String > jsonAr... | StringBuilder sb = new StringBuilder ( "[" ) ; boolean first = true ; for ( String key : keys ) { if ( ! first ) { sb . append ( "," ) ; } first = false ; String [ ] path = key . split ( "\\." ) ; logger . debug ( "Process '{}' : {} token(s)" , key , path . length ) ; String paramName = path [ 0 ] ; int idx = paramName... |
public class MongoDB { /** * Returns an instance of the specified target class with the property values from the specified JSON String .
* @ param targetClass < code > Bson . class < / code > , < code > Document . class < / code > , < code > BasicBSONObject . class < / code > , < code > BasicDBObject . class < / code... | if ( targetClass . equals ( Bson . class ) || targetClass . equals ( Document . class ) ) { final Document doc = new Document ( ) ; jsonParser . readString ( doc , json ) ; return ( T ) doc ; } else if ( targetClass . equals ( BasicBSONObject . class ) ) { final BasicBSONObject result = new BasicBSONObject ( ) ; jsonPa... |
public class SipResourceAdaptor { /** * ( non - Javadoc )
* @ see javax . slee . resource . ResourceAdaptor # raConfigurationUpdate ( javax . slee . resource . ConfigProperties ) */
public void raConfigurationUpdate ( ConfigProperties properties ) { } } | try { Set < String > oldTransports = new HashSet < String > ( this . transports ) ; raConfigure ( properties ) ; } catch ( Throwable ex ) { String msg = "error while updating RA configuration" ; tracer . severe ( msg , ex ) ; throw new RuntimeException ( msg , ex ) ; } |
public class CharsetEncoder { /** * Changes this encoder ' s action for malformed - input errors . < / p >
* < p > This method invokes the { @ link # implOnMalformedInput
* implOnMalformedInput } method , passing the new action . < / p >
* @ param newAction The new action ; must not be < tt > null < / tt >
* @ ... | if ( newAction == null ) throw new IllegalArgumentException ( "Null action" ) ; malformedInputAction = newAction ; implOnMalformedInput ( newAction ) ; return this ; |
public class RpcWrapper { /** * Decide whether to retry or throw an exception .
* @ param e
* The exception .
* @ param attemptNumber
* The number of attempts so far .
* @ throws IOException */
private void handleRpcException ( RpcException e , int attemptNumber ) throws IOException { } } | String messageStart ; if ( ! ( e . getStatus ( ) . equals ( RpcStatus . NETWORK_ERROR ) ) ) { messageStart = "rpc" ; } else { // check whether to retry
if ( attemptNumber + 1 < _maximumRetries ) { try { int waitTime = _retryWait * ( attemptNumber + 1 ) ; Thread . sleep ( waitTime ) ; } catch ( InterruptedException ie )... |
public class DiskFileItem { /** * A convenience method to write an uploaded item to disk . The client code is
* not concerned with whether or not the item is stored in memory , or on disk
* in a temporary location . They just want to write the uploaded item to a
* file .
* This implementation first attempts to ... | ValueEnforcer . notNull ( aDstFile , "DstFile" ) ; if ( isInMemory ( ) ) return SimpleFileIO . writeFile ( aDstFile , directGet ( ) ) ; final File aOutputFile = getStoreLocation ( ) ; if ( aOutputFile != null ) { // Save the length of the file
m_nSize = aOutputFile . length ( ) ; /* * The uploaded file is being stored ... |
public class ServletEnvironment { /** * Set a mime mapping .
* @ param extension Extension
* @ param type Mime type */
public void addMimeMapping ( String extension , String type ) { } } | handler . getMimeTypes ( ) . addMimeMapping ( extension , type ) ; |
public class Parser { /** * A { @ link Parser } that runs { @ code this } parser for at least { @ code min } times and up to { @ code max } times , with
* all the return values ignored . */
public final Parser < Void > skipTimes ( int min , int max ) { } } | Checks . checkMinMax ( min , max ) ; return new SkipTimesParser ( this , min , max ) ; |
public class KeyArea { /** * Initialize the class .
* @ param record The parent record .
* @ param iKeyDup The type of key ( UNIQUE / NOT _ UNIQUE / SECONDARY ) .
* @ param strKeyName The name of this key ( default to first fieldnameKEY ) . */
public void init ( Rec record , int iKeyDup , String strKeyName ) { } ... | super . init ( record , iKeyDup , strKeyName ) ; m_iKeyActualLength = 0 ; // Actual Byte length
m_iKeyByteLength = 0 ; // Key length ( 0-64 bytes ) ( including trailer bytes ) |
public class PdfGState { /** * Determines the behavior of overlapping glyphs within a text object
* in the transparent imaging model .
* @ param v */
public void setTextKnockout ( boolean v ) { } } | put ( PdfName . TK , v ? PdfBoolean . PDFTRUE : PdfBoolean . PDFFALSE ) ; |
public class I18nTool { /** * Uses { @ link SimpleDateFormat } to translate the supplied { @ link
* Long } or { @ link Date } argument into a formatted date string using
* the locale appropriate to the current request . */
public String date ( String format , Object arg ) { } } | Date when = massageDate ( arg ) ; if ( when == null ) { return format ; } SimpleDateFormat fmt = new SimpleDateFormat ( format , getLocale ( ) ) ; return fmt . format ( when ) ; |
public class ModelsImpl { /** * Deletes a regex entity model from the application .
* @ param appId The application ID .
* @ param versionId The version ID .
* @ param regexEntityId The regex entity extractor ID .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the obse... | return deleteRegexEntityModelWithServiceResponseAsync ( appId , versionId , regexEntityId ) . map ( new Func1 < ServiceResponse < OperationStatus > , OperationStatus > ( ) { @ Override public OperationStatus call ( ServiceResponse < OperationStatus > response ) { return response . body ( ) ; } } ) ; |
public class BitZMarketDataServiceRaw { /** * 获取每种交易对的信息
* @ param currencyPairs
* @ throws IOException */
public BitZSymbolList getSymbolList ( CurrencyPair ... currencyPairs ) throws IOException { } } | List < String > symbolList = new ArrayList < > ( currencyPairs . length ) ; Arrays . stream ( currencyPairs ) . forEach ( currencyPair -> symbolList . add ( BitZUtils . toPairString ( currencyPair ) ) ) ; String symbols = symbolList . stream ( ) . collect ( Collectors . joining ( "," ) ) ; return bitz . getSymbolList (... |
public class DevLockManager { boolean isLockedByMe ( final DeviceProxy deviceProxy ) throws DevFailed { } } | final LockerInfo info = getLockerInfo ( deviceProxy ) ; return info . isMe ( ) ; |
public class SignalRsInner { /** * Create a new SignalR service and update an exiting SignalR service .
* @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal .
* @ param resourceName The name of the SignalR... | return ServiceFuture . fromResponse ( beginCreateOrUpdateWithServiceResponseAsync ( resourceGroupName , resourceName , parameters ) , serviceCallback ) ; |
public class AbstractDoclet { /** * Generate the class files for single classes specified on the command line .
* @ param classtree the data structure representing the class tree . */
private void generateClassFiles ( ClassTree classtree ) { } } | String [ ] packageNames = configuration . classDocCatalog . packageNames ( ) ; for ( String packageName : packageNames ) { generateClassFiles ( configuration . classDocCatalog . allClasses ( packageName ) , classtree ) ; } |
public class PolicyStatesInner { /** * Summarizes policy states for the subscription level policy set definition .
* @ param subscriptionId Microsoft Azure subscription ID .
* @ param policySetDefinitionName Policy set definition name .
* @ throws IllegalArgumentException thrown if parameters fail the validation ... | return summarizeForPolicySetDefinitionWithServiceResponseAsync ( subscriptionId , policySetDefinitionName ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class SetStatusRequest { /** * The IDs of the objects . The corresponding objects can be either physical or components , but not a mix of both
* types .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setObjectIds ( java . util . Collection ) } or { ... | if ( this . objectIds == null ) { setObjectIds ( new com . amazonaws . internal . SdkInternalList < String > ( objectIds . length ) ) ; } for ( String ele : objectIds ) { this . objectIds . add ( ele ) ; } return this ; |
public class WSConnectionRequestInfoImpl { /** * Determine if the result set holdability property matches . It is considered to match if
* - Both holdability values are unspecified .
* - Both holdability values are the same value .
* - One of the holdability values is unspecified and the other CRI requested the d... | // At least one of the CRIs should know the default value .
int defaultValue = defaultHoldability == 0 ? cri . defaultHoldability : defaultHoldability ; return ivHoldability == cri . ivHoldability || ivHoldability == 0 && match ( defaultValue , cri . ivHoldability ) || cri . ivHoldability == 0 && match ( ivHoldability ... |
public class BESecurityConfig { /** * Add empty sDep and method configurations given by the map if they are
* not already already defined . */
public void addEmptyConfigs ( Map < String , List < String > > pidToMethodList ) { } } | Iterator < String > pIter = pidToMethodList . keySet ( ) . iterator ( ) ; while ( pIter . hasNext ( ) ) { String sDepPID = pIter . next ( ) ; // add the sDep indicated by the key if it doesn ' t exist
ServiceDeploymentRoleConfig sDepRoleConfig = m_sDepConfigs . get ( sDepPID ) ; if ( sDepRoleConfig == null ) { sDepRole... |
public class SoyProtoValue { /** * it if we can */
private ProtoClass clazz ( ) { } } | ProtoClass localClazz = clazz ; if ( localClazz == null ) { localClazz = classCache . getUnchecked ( proto . getDescriptorForType ( ) ) ; clazz = localClazz ; } return localClazz ; |
public class ParagraphBuilder { /** * Create a link in the current paragraph .
* @ param text the text
* @ param file the destination
* @ return this for fluent style */
public ParagraphBuilder link ( final String text , final File file ) { } } | final ParagraphElement paragraphElement = Link . create ( text , file ) ; this . paragraphElements . add ( paragraphElement ) ; return this ; |
public class RecyclerView { /** * Offset the bounds of all child views by < code > dy < / code > pixels .
* Useful for implementing simple scrolling in { @ link com . twotoasters . android . support . v7 . widget . RecyclerView . LayoutManager LayoutManagers } .
* @ param dy Vertical pixel offset to apply to the bo... | final int childCount = getChildCount ( ) ; for ( int i = 0 ; i < childCount ; i ++ ) { getChildAt ( i ) . offsetTopAndBottom ( dy ) ; } |
public class RangeSliceResponseResolver { /** * ( this is not currently an issue since we don ' t do read repair for range queries . ) */
public Iterable < Row > resolve ( ) { } } | ArrayList < RowIterator > iters = new ArrayList < RowIterator > ( responses . size ( ) ) ; int n = 0 ; for ( MessageIn < RangeSliceReply > response : responses ) { RangeSliceReply reply = response . payload ; n = Math . max ( n , reply . rows . size ( ) ) ; iters . add ( new RowIterator ( reply . rows . iterator ( ) , ... |
public class SQLiteDatabase { /** * Runs ' pragma integrity _ check ' on the given database ( and all the attached databases )
* and returns true if the given database ( and all its attached databases ) pass integrity _ check ,
* false otherwise .
* If the result is false , then this method logs the errors report... | acquireReference ( ) ; try { List < Pair < String , String > > attachedDbs = null ; try { attachedDbs = getAttachedDbs ( ) ; if ( attachedDbs == null ) { throw new IllegalStateException ( "databaselist for: " + getPath ( ) + " couldn't " + "be retrieved. probably because the database is closed" ) ; } } catch ( com . co... |
public class HttpOutboundLink { /** * Initialize this object .
* @ param inVC
* @ param channel */
public void init ( VirtualConnection inVC , HttpOutboundChannel channel ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Init on link: " + this + " " + inVC ) ; } super . init ( inVC ) ; this . myChannel = channel ; this . bIsActive = true ; setEnableReconnect ( this . myChannel . getHttpConfig ( ) . allowsRetries ( ) ) ; setAllowReconnect ( t... |
public class SObject { /** * deprecated
* @ see # of ( String , File , String . . . ) */
@ Deprecated public static SObject valueOf ( String key , InputStream is , String ... attrs ) { } } | return of ( key , is , attrs ) ; |
public class Context { /** * Determines whether a particular context is valid for the end of a block of a particular content
* kind . */
public final boolean isValidEndContextForContentKind ( SanitizedContentKind contentKind ) { } } | if ( templateNestDepth != 0 ) { return false ; } switch ( contentKind ) { case CSS : return state == HtmlContext . CSS && elType == ElementType . NONE ; case HTML : return state == HtmlContext . HTML_PCDATA && elType == ElementType . NONE ; case ATTRIBUTES : // Allow any html attribute context or html tag this . HTML _... |
public class PersonGroupPersonsImpl { /** * Add a representative face to a person for identification . The input face is specified as an image with a targetFace rectangle .
* @ param personGroupId Id referencing a particular person group .
* @ param personId Id referencing a particular person .
* @ param image An... | return addPersonFaceFromStreamWithServiceResponseAsync ( personGroupId , personId , image , addPersonFaceFromStreamOptionalParameter ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class AdditionalPropertiesDeserializer { /** * Gets a module wrapping this serializer as an adapter for the Jackson
* ObjectMapper .
* @ param mapper the object mapper for default deserializations
* @ return a simple module to be plugged onto Jackson ObjectMapper . */
public static SimpleModule getModule (... | SimpleModule module = new SimpleModule ( ) ; module . setDeserializerModifier ( new BeanDeserializerModifier ( ) { @ Override public JsonDeserializer < ? > modifyDeserializer ( DeserializationConfig config , BeanDescription beanDesc , JsonDeserializer < ? > deserializer ) { for ( Class < ? > c : TypeToken . of ( beanDe... |
public class CmsContainerpageController { /** * Checks for container elements that are no longer present within the DOM . < p > */
public void cleanUpContainers ( ) { } } | List < String > removed = new ArrayList < String > ( ) ; for ( Entry < String , CmsContainerPageContainer > entry : m_targetContainers . entrySet ( ) ) { if ( ! RootPanel . getBodyElement ( ) . isOrHasChild ( entry . getValue ( ) . getElement ( ) ) ) { removed . add ( entry . getKey ( ) ) ; } } for ( String containerId... |
public class EventSubscriptionsInner { /** * List all regional event subscriptions under an Azure subscription .
* List all event subscriptions from the given location under a specific Azure subscription .
* @ param location Name of the location
* @ throws IllegalArgumentException thrown if parameters fail the va... | return listRegionalBySubscriptionWithServiceResponseAsync ( location ) . map ( new Func1 < ServiceResponse < List < EventSubscriptionInner > > , List < EventSubscriptionInner > > ( ) { @ Override public List < EventSubscriptionInner > call ( ServiceResponse < List < EventSubscriptionInner > > response ) { return respon... |
public class NonBlockingBufferedInputStream { /** * Check to make sure that underlying input stream has not been nulled out due
* to close ; if not return it ; */
@ Nonnull private InputStream _getInIfOpen ( ) throws IOException { } } | final InputStream ret = in ; if ( ret == null ) throw new IOException ( "Stream closed" ) ; return ret ; |
public class Label { /** * Returns the text this label is displaying . Multi - line labels will have their text concatenated with \ n , even if
* they were originally set using multi - line text having \ r \ n as line terminators .
* @ return String of the text this label is displaying */
public synchronized String... | if ( lines . length == 0 ) { return "" ; } StringBuilder bob = new StringBuilder ( lines [ 0 ] ) ; for ( int i = 1 ; i < lines . length ; i ++ ) { bob . append ( "\n" ) . append ( lines [ i ] ) ; } return bob . toString ( ) ; |
public class DescribeServicesRequest { /** * A JSON - formatted list of service codes available for AWS services .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setServiceCodeList ( java . util . Collection ) } or { @ link # withServiceCodeList ( java . uti... | if ( this . serviceCodeList == null ) { setServiceCodeList ( new com . amazonaws . internal . SdkInternalList < String > ( serviceCodeList . length ) ) ; } for ( String ele : serviceCodeList ) { this . serviceCodeList . add ( ele ) ; } return this ; |
public class CmsJspActionElement { /** * Include a named sub - element with parameters from the OpenCms VFS , same as
* using the < code > & lt ; cms : include file = " * * * " element = " * * * " / & gt ; < / code > tag
* with parameters in the tag body . < p >
* The parameter map should be a map where the keys ... | if ( isNotInitialized ( ) ) { return ; } Map < String , String [ ] > modParameterMap = null ; if ( parameterMap != null ) { try { modParameterMap = new HashMap < String , String [ ] > ( parameterMap . size ( ) ) ; // ensure parameters are always of type String [ ] not just String
Iterator < ? > i = parameterMap . entry... |
public class Cnf { /** * If the given disjunction consists of a single assertion , returns the
* equivalent assertion . Otherwise , return null . */
public static IAssertion toAssertion ( IDisjunct disjunct ) { } } | return disjunct . getAssertionCount ( ) == 1 ? disjunct . getAssertions ( ) . next ( ) : null ; |
public class PhysicalTable { /** * Move this Field ' s data to the record area ( Override this for non - standard buffers ) .
* Warning : Check to make sure the field . isSelected ( ) before moving data !
* @ param field The field to move the current data to .
* @ exception DBException File exception . */
public ... | ( ( BaseBuffer ) this . getHandle ( DBConstants . DATA_SOURCE_HANDLE ) ) . addNextField ( ( FieldInfo ) field ) ; |
public class RootEngine { /** * { @ link RootEngine } 接口 . 调用此方法判断并处理请求 . 如果本引擎能够找到该请求相应的控制器方法处理 , 则启动整个调用过程 ,
* 并最终渲染页面到客户端 ;
* @ param request
* @ param response
* @ return
* @ throws ServletException */
@ Override public Object execute ( Rose rose ) throws Throwable { } } | InvocationBean inv = rose . getInvocation ( ) ; ServletRequest request = inv . getRequest ( ) ; if ( request . getCharacterEncoding ( ) == null ) { request . setCharacterEncoding ( "UTF-8" ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "set request.characterEncoding by default:" + request . getCharacterEncod... |
public class EventServiceImpl { /** * { @ inheritDoc }
* Handles an asynchronous remote event with a { @ link RemoteEventProcessor } . The
* processor may determine the thread which will handle the event . If the execution is rejected ,
* the rejection count is increased and a failure is logged . The event proces... | try { eventExecutor . execute ( new RemoteEventProcessor ( this , packet ) ) ; } catch ( RejectedExecutionException e ) { rejectedCount . inc ( ) ; if ( eventExecutor . isLive ( ) ) { Connection conn = packet . getConn ( ) ; String endpoint = conn . getEndPoint ( ) != null ? conn . getEndPoint ( ) . toString ( ) : conn... |
public class ReceiveMessageBuilder { /** * Expect this message payload as model object which is mapped to a character sequence
* using the default object to json mapper before validation is performed .
* @ param payload
* @ param objectMapper
* @ return */
public T payload ( Object payload , ObjectMapper object... | try { setPayload ( objectMapper . writer ( ) . writeValueAsString ( payload ) ) ; } catch ( JsonProcessingException e ) { throw new CitrusRuntimeException ( "Failed to map object graph for message payload" , e ) ; } return self ; |
public class OpenHelperManager { /** * Call the constructor on our helper class . */
private static OrmLiteSqliteOpenHelper constructHelper ( Context context , Class < ? extends OrmLiteSqliteOpenHelper > openHelperClass ) { } } | Constructor < ? > constructor ; try { constructor = openHelperClass . getConstructor ( Context . class ) ; } catch ( Exception e ) { throw new IllegalStateException ( "Could not find public constructor that has a single (Context) argument for helper class " + openHelperClass , e ) ; } try { return ( OrmLiteSqliteOpenHe... |
public class FeatureResolverImpl { /** * This method is passed a list of features to check against the auto features . For each auto feature , the method checks to see if the capability
* statement has been satisfied by any of the other features in the list . If so , it is add to the list of features to process .
*... | Set < String > autoFeaturesToProcess = new HashSet < String > ( ) ; Set < ProvisioningFeatureDefinition > filteredFeatureDefs = new HashSet < ProvisioningFeatureDefinition > ( kernelFeatures ) ; for ( String feature : result ) { filteredFeatureDefs . add ( selectionContext . getRepository ( ) . getFeature ( feature ) )... |
public class EtcdClient { /** * Build url with key and url params */
private URI buildUriWithKeyAndParams ( String key , Map < String , String > params ) { } } | StringBuilder sb = new StringBuilder ( ) ; sb . append ( URI_PREFIX ) ; if ( key . startsWith ( "/" ) ) { key = key . substring ( 1 ) ; } for ( String token : Splitter . on ( "/" ) . split ( key ) ) { sb . append ( "/" ) . append ( urlEscape ( token ) ) ; } if ( params != null ) { sb . append ( "?" ) ; for ( String str... |
public class Math { /** * Scales each column of a matrix to range [ lo , hi ] .
* @ param lo lower limit of range
* @ param hi upper limit of range */
public static void scale ( double [ ] [ ] x , double lo , double hi ) { } } | int n = x . length ; int p = x [ 0 ] . length ; double [ ] min = colMin ( x ) ; double [ ] max = colMax ( x ) ; for ( int j = 0 ; j < p ; j ++ ) { double scale = max [ j ] - min [ j ] ; if ( ! Math . isZero ( scale ) ) { for ( int i = 0 ; i < n ; i ++ ) { x [ i ] [ j ] = ( x [ i ] [ j ] - min [ j ] ) / scale ; } } else... |
public class SymmetricDifferenceMatcher { /** * Matches A objects to T targets . Each A is mapped to subset of items . Each
* match is passed to consumer . Map is traversed as long as there are matches .
* Each match will remove targets mappings .
* @ param < A >
* @ param samples
* @ param consumer */
public... | Map < A , Collection < I > > m = new HashMap < > ( samples ) ; boolean cont = true ; while ( cont ) { cont = false ; Iterator < Entry < A , Collection < I > > > iterator = m . entrySet ( ) . iterator ( ) ; while ( iterator . hasNext ( ) ) { Entry < A , Collection < I > > e = iterator . next ( ) ; T match = match ( e . ... |
public class AESFastEngine { /** * initialise an AES cipher .
* @ param forEncryption whether or not we are for encryption .
* @ param params the parameters required to set up the cipher .
* @ throws IllegalArgumentException if the params argument is
* inappropriate . */
public void init ( boolean forEncryption... | WorkingKey = generateWorkingKey ( params . getKey ( ) , forEncryption ) ; this . forEncryption = forEncryption ; |
public class FileTag { /** * write to the source file
* @ param attributes
* @ param mode
* @ param acl
* @ param serverPassword , booleancreatePath
* @ throws PageException */
public static void actionTouch ( PageContext pageContext , SecurityManager securityManager , Resource file , String serverPassword , ... | checkFile ( pageContext , securityManager , file , serverPassword , createPath , true , true , true ) ; setACL ( pageContext , file , acl ) ; try { ResourceUtil . touch ( file ) ; } catch ( IOException e ) { throw new ApplicationException ( "can't touch file " + file . getAbsolutePath ( ) , e . getMessage ( ) ) ; } set... |
public class Counters { /** * This method does not check entries for NAN or INFINITY values in the
* doubles returned . It also only iterates over the counter with the smallest
* number of keys to help speed up computation . Pair this method with
* normalizing your counters before hand and you have a reasonably q... | double dotProd = 0.0 ; int size1 = c1 . size ( ) ; int size2 = c2 . size ( ) ; if ( size1 < size2 ) { for ( E key : c1 . keySet ( ) ) { double count1 = c1 . getCount ( key ) ; if ( count1 != 0.0 ) { double count2 = c2 . getCount ( key ) ; if ( count2 != 0.0 ) dotProd += ( count1 * count2 ) ; } } } else { for ( E key : ... |
public class ProducerSequenceFactory { /** * encoded cache multiplex - > encoded cache - > ( disk cache ) - > ( webp transcode )
* @ param inputProducer producer providing the input to the transcode
* @ return encoded cache multiplex to webp transcode sequence */
private Producer < EncodedImage > newEncodedCacheMul... | if ( WebpSupportStatus . sIsWebpSupportRequired && ( ! mWebpSupportEnabled || WebpSupportStatus . sWebpBitmapFactory == null ) ) { inputProducer = mProducerFactory . newWebpTranscodeProducer ( inputProducer ) ; } if ( mDiskCacheEnabled ) { inputProducer = newDiskCacheSequence ( inputProducer ) ; } EncodedMemoryCachePro... |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link ArithType } { @ code > } } */
@ XmlElementDecl ( namespace = "http://www.w3.org/1998/Math/MathML" , name = "root" ) public JAXBElement < ArithType > createRoot ( ArithType value ) { } } | return new JAXBElement < ArithType > ( _Root_QNAME , ArithType . class , null , value ) ; |
public class DescribeVpcAttributeRequest { /** * This method is intended for internal use only . Returns the marshaled request configured with additional
* parameters to enable operation dry - run . */
@ Override public Request < DescribeVpcAttributeRequest > getDryRunRequest ( ) { } } | Request < DescribeVpcAttributeRequest > request = new DescribeVpcAttributeRequestMarshaller ( ) . marshall ( this ) ; request . addParameter ( "DryRun" , Boolean . toString ( true ) ) ; return request ; |
public class XmlUtils { /** * Return list of content Strings of all child elements with given tag name .
* @ param elem
* @ param childTagName
* @ return List */
public static List getChildTextList ( Element elem , String childTagName ) { } } | NodeList nodeList = elem . getElementsByTagName ( childTagName ) ; int len = nodeList . getLength ( ) ; if ( len == 0 ) { return Collections . EMPTY_LIST ; } List list = new ArrayList ( len ) ; for ( int i = 0 ; i < len ; i ++ ) { list . add ( getElementText ( ( Element ) nodeList . item ( i ) ) ) ; } return list ; |
public class JDBDT { /** * Dump the contents of a data set .
* @ param data Data set .
* @ param out Output stream . */
public static void dump ( DataSet data , PrintStream out ) { } } | try ( Log log = Log . create ( out ) ) { log . write ( CallInfo . create ( ) , data ) ; } |
public class XCastedExpressionImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public Object eGet ( int featureID , boolean resolve , boolean coreType ) { } } | switch ( featureID ) { case XbasePackage . XCASTED_EXPRESSION__TYPE : return getType ( ) ; case XbasePackage . XCASTED_EXPRESSION__TARGET : return getTarget ( ) ; } return super . eGet ( featureID , resolve , coreType ) ; |
public class SM2 { /** * 初始化 < br >
* 私钥和公钥同时为空时生成一对新的私钥和公钥 < br >
* 私钥和公钥可以单独传入一个 , 如此则只能使用此钥匙来做加密 ( 签名 ) 或者解密 ( 校验 )
* @ param privateKey 私钥
* @ param publicKey 公钥
* @ return this */
public SM2 init ( PrivateKey privateKey , PublicKey publicKey ) { } } | return this . init ( ALGORITHM_SM2 , privateKey , publicKey ) ; |
public class appflowparam { /** * Use this API to update appflowparam . */
public static base_response update ( nitro_service client , appflowparam resource ) throws Exception { } } | appflowparam updateresource = new appflowparam ( ) ; updateresource . templaterefresh = resource . templaterefresh ; updateresource . appnamerefresh = resource . appnamerefresh ; updateresource . flowrecordinterval = resource . flowrecordinterval ; updateresource . udppmtu = resource . udppmtu ; updateresource . httpur... |
public class Util { /** * Checks whether two internet addresses are on the same subnet .
* @ param prefixLength the number of bits within an address that identify the network
* @ param address1 the first address to be compared
* @ param address2 the second address to be compared
* @ return true if both addresse... | if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Comparing address " + address1 . getHostAddress ( ) + " with " + address2 . getHostAddress ( ) + ", prefixLength=" + prefixLength ) ; } long prefixMask = 0xffffffffL & ( - 1 << ( 32 - prefixLength ) ) ; return ( addressToLong ( address1 ) & prefixMask ) == ( addres... |
public class StringUtils { /** * Creates a string consisting of " count " occurrences of char " c " .
* @ param c the character to repeat
* @ param count the number of times to repeat the character
* @ param sb the character sequence to append the characters to */
public static void repeat ( char c , int count , ... | for ( int i = 0 ; i < count ; i ++ ) { sb . append ( c ) ; } |
public class BatchCoordinator { /** * Operations to do after all subthreads finished their work on index
* @ param backend */
private void afterBatch ( BatchBackend backend ) { } } | IndexedTypeSet targetedTypes = searchFactoryImplementor . getIndexedTypesPolymorphic ( rootIndexedTypes ) ; if ( this . optimizeAtEnd ) { backend . optimize ( targetedTypes ) ; } backend . flush ( targetedTypes ) ; |
public class DefaultCatalogCache { /** * This is a contract between the TenantCatalogCacheLoader and the DefaultCatalogCache */
private CacheLoaderArgument initializeCacheLoaderArgument ( final boolean filterTemplateCatalog ) { } } | final LoaderCallback loaderCallback = new LoaderCallback ( ) { @ Override public Catalog loadCatalog ( final List < String > catalogXMLs , final Long tenantRecordId ) throws CatalogApiException { return loader . load ( catalogXMLs , filterTemplateCatalog , tenantRecordId ) ; } } ; final Object [ ] args = new Object [ 1... |
public class Matrix4x3d { /** * Apply rotation of < code > angles . y < / code > radians about the Y axis , followed by a rotation of < code > angles . x < / code > radians about the X axis and
* followed by a rotation of < code > angles . z < / code > radians about the Z axis .
* When used with a right - handed co... | return rotateYXZ ( angles . y , angles . x , angles . z ) ; |
public class Actor { /** * The message delivered after the { @ code Actor } has been restarted by its supervisor due to an exception .
* Override to implement .
* @ param reason the { @ code Throwable } cause of the supervision restart */
protected void afterRestart ( final Throwable reason ) { } } | // override for specific recovery
logger ( ) . log ( "Default after restart recovery after: " + reason . getMessage ( ) , reason ) ; lifeCycle . beforeStart ( this ) ; |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "http://www.ibm.com/websphere/wim" , name = "businessCategory" ) public JAXBElement < String > createBusinessCategory ( String value ) { } } | return new JAXBElement < String > ( _BusinessCategory_QNAME , String . class , null , value ) ; |
public class HyperionClient { /** * Set the keep alive configuration to use for this client .
* @ param keepAliveConfiguration The keep alive configuration */
public void setKeepAliveConfiguration ( KeepAliveConfiguration keepAliveConfiguration ) { } } | if ( keepAliveConfiguration != null ) client . setConnectionPool ( new ConnectionPool ( keepAliveConfiguration . getMaxIdleConnections ( ) , keepAliveConfiguration . getKeepAliveDurationMs ( ) ) ) ; |
public class LongStreamEx { /** * Returns a stream consisting of the elements of this stream sorted
* according to the given comparator . Stream elements are boxed before
* passing to the comparator .
* For ordered streams , the sort is stable . For unordered streams , no
* stability guarantees are made .
* T... | return new LongStreamEx ( stream ( ) . boxed ( ) . sorted ( comparator ) . mapToLong ( Long :: longValue ) , context ) ; |
public class vpnglobal_authenticationlocalpolicy_binding { /** * Use this API to fetch a vpnglobal _ authenticationlocalpolicy _ binding resources . */
public static vpnglobal_authenticationlocalpolicy_binding [ ] get ( nitro_service service ) throws Exception { } } | vpnglobal_authenticationlocalpolicy_binding obj = new vpnglobal_authenticationlocalpolicy_binding ( ) ; vpnglobal_authenticationlocalpolicy_binding response [ ] = ( vpnglobal_authenticationlocalpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; |
public class ObjectStreamUtil { /** * Converts a byte array to a serializable object . */
public static Object bytesToObject ( byte [ ] bytes ) throws IOException , ClassNotFoundException { } } | ByteArrayInputStream bais = new ByteArrayInputStream ( bytes ) ; ObjectInputStream is = new ObjectInputStream ( bais ) ; return is . readObject ( ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.