signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class ProfileManager { /** * Start managing user profile data . Call this method in onResume method of your profile Activity . * @ param subscriber Subscriber for callbacks relevant for UI updates . */ public void resume ( @ NonNull ProfileManagerSubscriber subscriber ) { } }
profileModifier . resume ( subscriber ) ; profileChecker . resume ( subscriber ) ;
public class FormatNumber { /** * Create the internal Formatter instance and perform the formatting . * @ throws JspException if a JSP exception has occurred */ public void doTag ( ) throws JspException { } }
JspTag parentTag = SimpleTagSupport . findAncestorWithClass ( this , IFormattable . class ) ; // if there are errors we need to either add these to the parent AbstractBastTag or report an error . if ( hasErrors ( ) ) { if ( parentTag instanceof IFormattable ) { IFormattable parent = ( IFormattable ) parentTag ; parent ...
public class RRDToolWriter { /** * Generate a RRA line for rrdtool */ private String getRraStr ( ArcDef def ) { } }
return "RRA:" + def . getConsolFun ( ) + ":" + def . getXff ( ) + ":" + def . getSteps ( ) + ":" + def . getRows ( ) ;
public class NormalizationTransliterator { /** * Implements { @ link Transliterator # handleTransliterate } . */ @ Override protected void handleTransliterate ( Replaceable text , Position offsets , boolean isIncremental ) { } }
// start and limit of the input range int start = offsets . start ; int limit = offsets . limit ; if ( start >= limit ) { return ; } /* * Normalize as short chunks at a time as possible even in * bulk mode , so that styled text is minimally disrupted . * In incremental mode , a chunk that ends with offsets . limit ...
public class AbstractMetric { /** * / * [ deutsch ] * < p > Vergleicht Zeiteinheiten absteigend nach ihrer L & auml ; nge . < / p > * @ param u1 first time unit * @ param u2 second time unit * @ return negative , zero or positive if u1 is greater , equal to * or smaller than u2 */ @ Override public int compar...
return Double . compare ( u2 . getLength ( ) , u1 . getLength ( ) ) ; // descending
public class DataWriter { /** * To be called after all threads are done calling { @ link # writePoint ( jsat . classifiers . DataPoint , double ) } . */ public synchronized void finish ( ) throws IOException { } }
synchronized ( out ) { for ( ByteArrayOutputStream baos : all_buffers ) { baos . writeTo ( out ) ; baos . reset ( ) ; } out . flush ( ) ; }
public class CombineWriter { /** * { @ inheritDoc } */ @ Override public void write ( Record record ) throws IOException , InterruptedException { } }
if ( record . isKeyEmpty ( ) ) { record . setKey ( defaultRecord . getKey ( ) ) ; } else { if ( record . getKey ( ) . isGroupingEmpty ( ) && ! record . getKey ( ) . isSortEmpty ( ) ) { record . getKey ( ) . setGrouping ( defaultRecord . getKey ( ) . getGrouping ( ) ) ; } } if ( record . isValueEmpty ( ) ) { record . se...
public class BinaryKey { /** * Determine if the supplied hexadecimal string is potentially a binary key by checking the format of the string . * @ param hexadecimalStr the hexadecimal string ; may be null * @ return true if the supplied string is a properly formatted hexadecimal representation of a binary key , or ...
if ( hexadecimalStr == null ) return false ; // Length is expected to be the same as the digest . . . final int length = hexadecimalStr . length ( ) ; if ( length != ALGORITHM . getHexadecimalStringLength ( ) ) return false ; // The characters all must be hexadecimal digits . . . return StringUtil . isHexString ( hexad...
public class RequestHandler { /** * Checks , for a sub - set of { @ link CouchbaseRequest } , if the current environment has * the necessary feature activated . If not , throws an { @ link ServiceNotAvailableException } . * @ param request the request to check . * @ throws ServiceNotAvailableException if the requ...
if ( request instanceof BinaryRequest && ! config . serviceEnabled ( ServiceType . BINARY ) ) { throw new ServiceNotAvailableException ( "The KeyValue service is not enabled or no node in the cluster " + "supports it." ) ; } else if ( request instanceof ViewRequest && ! config . serviceEnabled ( ServiceType . VIEW ) ) ...
public class MapFileTileSetIDBroker { /** * Copies the ID from the old tileset to the new tileset which is * useful when a tileset is renamed . This is called by the { @ link * RenameTileSet } utility . */ protected boolean renameTileSet ( String oldName , String newName ) { } }
Integer tsid = _map . get ( oldName ) ; if ( tsid != null ) { _map . put ( newName , tsid ) ; // fudge our stored tileset ID so that we flush ourselves when // the rename tool requests that we commit the changes _storedTileSetID -- ; return true ; } else { return false ; }
public class RouteFiltersInner { /** * Creates or updates a route filter in a specified resource group . * @ param resourceGroupName The name of the resource group . * @ param routeFilterName The name of the route filter . * @ param routeFilterParameters Parameters supplied to the create or update route filter op...
return beginCreateOrUpdateWithServiceResponseAsync ( resourceGroupName , routeFilterName , routeFilterParameters ) . toBlocking ( ) . single ( ) . body ( ) ;
public class InjectorShell { /** * The Logger is a special case because it knows the injection point of the injected member . It ' s * the only binding that does this . */ private static void bindLogger ( InjectorImpl injector ) { } }
Key < Logger > key = Key . get ( Logger . class ) ; LoggerFactory loggerFactory = new LoggerFactory ( ) ; injector . state . putBinding ( key , new ProviderInstanceBindingImpl < Logger > ( injector , key , SourceProvider . UNKNOWN_SOURCE , loggerFactory , Scoping . UNSCOPED , loggerFactory , ImmutableSet . < InjectionP...
public class TlvUtil { /** * Method used get Tag value as String * @ param tag * tag type * @ param value * tag value * @ return */ private static String getTagValueAsString ( final ITag tag , final byte [ ] value ) { } }
StringBuilder buf = new StringBuilder ( ) ; switch ( tag . getTagValueType ( ) ) { case TEXT : buf . append ( "=" ) ; buf . append ( new String ( value ) ) ; break ; case NUMERIC : buf . append ( "NUMERIC" ) ; break ; case BINARY : buf . append ( "BINARY" ) ; break ; case MIXED : buf . append ( "=" ) ; buf . append ( g...
public class ICUService { /** * < p > Return a snapshot of the visible IDs for this service . This * set will not change as Factories are added or removed , but the * supported ids will , so there is no guarantee that all and only * the ids in the returned set are visible and supported by the * service in subse...
Set < String > result = getVisibleIDMap ( ) . keySet ( ) ; Key fallbackKey = createKey ( matchID ) ; if ( fallbackKey != null ) { Set < String > temp = new HashSet < String > ( result . size ( ) ) ; for ( String id : result ) { if ( fallbackKey . isFallbackOf ( id ) ) { temp . add ( id ) ; } } result = temp ; } return ...
public class CPDefinitionInventoryLocalServiceBaseImpl { /** * Returns the cp definition inventory matching the UUID and group . * @ param uuid the cp definition inventory ' s UUID * @ param groupId the primary key of the group * @ return the matching cp definition inventory * @ throws PortalException if a matc...
return cpDefinitionInventoryPersistence . findByUUID_G ( uuid , groupId ) ;
public class LinedData { /** * ( non - Javadoc ) * @ see br . com . digilabs . jqplot . data . ChartData # toJsonString ( ) */ public String toJsonString ( ) { } }
JSONArray jsonArray = new JSONArray ( ) ; jsonArray . put ( data ) ; return jsonArray . toString ( ) ;
public class ApitraryDaoSupport { /** * resolveApitraryEntity . * @ param entity * a T object . * @ param < T > * a T object . * @ return a { @ link java . lang . String } object . */ protected < T > String resolveApitraryEntity ( T entity ) { } }
String entityName = ClassUtil . getClassAnnotationValue ( entity . getClass ( ) , Entity . class , "value" , String . class ) ; if ( entityName == null || entityName . isEmpty ( ) ) { entityName = StringUtil . toVerb ( entity . getClass ( ) . getSimpleName ( ) ) ; } return entityName ;
public class AutoScalingGroup { /** * One or more load balancers associated with the group . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setLoadBalancerNames ( java . util . Collection ) } or { @ link # withLoadBalancerNames ( java . util . Collection ) }...
if ( this . loadBalancerNames == null ) { setLoadBalancerNames ( new com . amazonaws . internal . SdkInternalList < String > ( loadBalancerNames . length ) ) ; } for ( String ele : loadBalancerNames ) { this . loadBalancerNames . add ( ele ) ; } return this ;
public class DomUtils { /** * Serializes a DOM . The OutputStream handed over to this method is not closed inside this method . */ static void serialize ( final Document doc , final OutputStream os , final String encoding ) throws TransformerFactoryConfigurationError , TransformerException , IOException { } }
if ( doc == null ) throw new IllegalArgumentException ( "No document provided." ) ; if ( os == null ) throw new IllegalArgumentException ( "No output stream provided" ) ; if ( encoding == null || encoding . isEmpty ( ) ) throw new IllegalArgumentException ( "No encoding provided." ) ; final TransformerFactory transform...
public class ImageScaling { /** * Same as { @ link # squareScaling ( BufferedImage ) } but takes the imageFileName instead of a * { @ code BufferedImage } . * @ param imageFilename * @ return * @ throws IOException */ public BufferedImage squareScaling ( String imageFilename ) throws IOException { } }
// read the image BufferedImage image ; try { // first try reading with the default class image = ImageIO . read ( new File ( imageFilename ) ) ; } catch ( IllegalArgumentException e ) { // if it fails retry with the corrected class // This exception is probably because of a grayscale jpeg image . System . out . printl...
public class HighwayHash { /** * Computes the hash value after all bytes were processed . Invalidates the * state . * NOTE : The 256 - bit HighwayHash algorithm is not yet frozen and subject to change . * @ return array of size 4 containing 256 - bit hash */ public long [ ] finalize256 ( ) { } }
permuteAndUpdate ( ) ; permuteAndUpdate ( ) ; permuteAndUpdate ( ) ; permuteAndUpdate ( ) ; permuteAndUpdate ( ) ; permuteAndUpdate ( ) ; permuteAndUpdate ( ) ; permuteAndUpdate ( ) ; permuteAndUpdate ( ) ; permuteAndUpdate ( ) ; done = true ; long [ ] hash = new long [ 4 ] ; modularReduction ( v1 [ 1 ] + mul1 [ 1 ] , ...
public class BNFHeadersImpl { /** * Method to overlay the new header value onto the older value in the parse * buffers . * @ param elem */ private void overlayValue ( HeaderElement elem ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Overlaying existing header: " + elem . getName ( ) ) ; } int next_index = this . lastCRLFBufferIndex ; int next_pos = this . lastCRLFPosition ; if ( null != elem . nextSequence && ! elem . nextSequence . wasAdded ( ) ) { nex...
public class QualitygatesService { /** * This is part of the internal API . * This is a POST request . * @ see < a href = " https : / / next . sonarqube . com / sonarqube / web _ api / api / qualitygates / update _ condition " > Further information about this action online ( including a response example ) < / a > ...
call ( new PostRequest ( path ( "update_condition" ) ) . setParam ( "error" , request . getError ( ) ) . setParam ( "id" , request . getId ( ) ) . setParam ( "metric" , request . getMetric ( ) ) . setParam ( "op" , request . getOp ( ) ) . setParam ( "organization" , request . getOrganization ( ) ) , UpdateConditionResp...
public class hqlParser { /** * hql . g : 649:1 : collectionExpr : ( ELEMENTS ^ | INDICES ^ ) OPEN ! path CLOSE ! ; */ public final hqlParser . collectionExpr_return collectionExpr ( ) throws RecognitionException { } }
hqlParser . collectionExpr_return retval = new hqlParser . collectionExpr_return ( ) ; retval . start = input . LT ( 1 ) ; CommonTree root_0 = null ; Token ELEMENTS274 = null ; Token INDICES275 = null ; Token OPEN276 = null ; Token CLOSE278 = null ; ParserRuleReturnScope path277 = null ; CommonTree ELEMENTS274_tree = n...
public class JsonUtil { /** * Creates the resource parsed from JSON . * Uses the ' jcr : primaryType ' property from the propertySet to determine * the right primary type for the new node . * Uses the ' jcr : mixinTypes ' property to set up the mixin types of the node * before the other properties are set ( it ...
// determine the new nodes primary type from the properties JsonProperty primaryType = propertiesSet . get ( PropertyUtil . PROP_PRIMARY_TYPE ) ; Resource resource = ResourceUtil . getOrCreateResource ( resolver , path , primaryType != null ? ( String ) primaryType . value : null ) ; if ( resource != null ) { JsonPrope...
public class PropertyUtils { /** * Similar to { @ link PropertyUtils # getPropertyClass ( Class , String ) } but returns the property class for the tail of the given * property path . * @ param clazz bean to be accessed * @ param propertyPath bean ' s fieldName * @ return property class */ public static Class <...
Class < ? > current = clazz ; for ( String propertyName : propertyPath ) { current = getPropertyClass ( current , propertyName ) ; } return current ;
public class Closeables { /** * Creates a closeable iterator from the given iterator that does nothing when close is called . * @ param iterator The iterator to wrap to allow it to become a closeable iterator * @ param < E > The type of the iterators * @ return An iterator that does nothing when closed */ public ...
if ( iterator instanceof CloseableIterator ) { return ( CloseableIterator < E > ) iterator ; } return new IteratorAsCloseableIterator < > ( iterator ) ;
public class ExtensionsInner { /** * Creates an HDInsight cluster extension . * @ param resourceGroupName The name of the resource group . * @ param clusterName The name of the cluster . * @ param extensionName The name of the cluster extension . * @ param parameters The cluster extensions create request . * ...
return createWithServiceResponseAsync ( resourceGroupName , clusterName , extensionName , parameters ) . map ( new Func1 < ServiceResponse < Void > , Void > ( ) { @ Override public Void call ( ServiceResponse < Void > response ) { return response . body ( ) ; } } ) ;
public class DataFlow { /** * Run the { @ code transfer } dataflow analysis over the method , lambda or initializer which is the * leaf of the { @ code path } . * < p > For caching , we make the following assumptions : - if two paths to methods are { @ code equal } , * their control flow graph is the same . - if ...
final ProcessingEnvironment env = JavacProcessingEnvironment . instance ( context ) ; final ControlFlowGraph cfg = cfgCache . getUnchecked ( CfgParams . create ( path , env ) ) ; final AnalysisParams aparams = AnalysisParams . create ( transfer , cfg , env ) ; @ SuppressWarnings ( "unchecked" ) final Analysis < A , S ,...
public class BatchTinCanAPIProvider { /** * Send a batch of LRS statements . MUST BE SCHEDULED ! Failure to properly configure this class * will result in memory leaks . */ public void sendBatch ( ) { } }
LrsStatement statement = null ; List < LrsStatement > list = new ArrayList < LrsStatement > ( ) ; while ( ( statement = statementQueue . poll ( ) ) != null ) { list . add ( statement ) ; } if ( ! list . isEmpty ( ) ) { postStatementList ( list ) ; }
public class SVGParser { /** * Parse a list of Length / Coords */ private static List < Length > parseLengthList ( String val ) throws SVGParseException { } }
if ( val . length ( ) == 0 ) throw new SVGParseException ( "Invalid length list (empty string)" ) ; List < Length > coords = new ArrayList < > ( 1 ) ; TextScanner scan = new TextScanner ( val ) ; scan . skipWhitespace ( ) ; while ( ! scan . empty ( ) ) { float scalar = scan . nextFloat ( ) ; if ( Float . isNaN ( scalar...
public class ArtifactInfoMap { /** * Add a { @ link ArtifactInfo } to the Map * @ param bundleInfo */ public void add ( ArtifactInfo < BundleInfoContext > bundleInfo ) { } }
List < ArtifactInfo < BundleInfoContext > > list = artifacts . get ( bundleInfo . getId ( ) ) ; if ( list == null ) { list = new ArrayList < > ( ) ; artifacts . put ( bundleInfo . getId ( ) , list ) ; } list . add ( bundleInfo ) ; Collections . sort ( list , Collections . reverseOrder ( ) ) ;
public class AbsAAFLur { /** * This is where you build AAF CLient Code . Answer the question " Is principal " bait " in the " pond " */ public boolean fish ( String bait , Permission pond ) { } }
if ( isDebug ( bait ) ) { boolean rv = false ; StringBuilder sb = new StringBuilder ( "Log for " ) ; sb . append ( bait ) ; if ( supports ( bait ) ) { User < PERM > user = getUser ( bait ) ; if ( user == null ) { sb . append ( "\n\tUser is not in Cache" ) ; } else { if ( user . noPerms ( ) ) sb . append ( "\n\tUser has...
public class GrpcServerBuilder { /** * Add a service to this server . * @ param serviceDefinition the service definition of new service * @ return an updated instance of this { @ link GrpcServerBuilder } */ public GrpcServerBuilder addService ( GrpcService serviceDefinition ) { } }
ServerServiceDefinition service = serviceDefinition . getServiceDefinition ( ) ; if ( SecurityUtils . isAuthenticationEnabled ( mConfiguration ) && serviceDefinition . isAuthenticated ( ) ) { // Intercept the service with authenticated user injector . service = ServerInterceptors . intercept ( service , new Authenticat...
public class Fat { /** * Allocate a series of clusters for a new file . * @ param nrClusters when number of clusters to allocate * @ return long * @ throws IOException if there are no free clusters */ public long [ ] allocNew ( int nrClusters ) throws IOException { } }
final long rc [ ] = new long [ nrClusters ] ; rc [ 0 ] = allocNew ( ) ; for ( int i = 1 ; i < nrClusters ; i ++ ) { rc [ i ] = allocAppend ( rc [ i - 1 ] ) ; } return rc ;
public class Ix { /** * Calls the given action just before when the consumer calls next ( ) of this Ix . iterator ( ) . * The result ' s iterator ( ) forwards calls to remove ( ) to this Iterator . * @ param action the action to call for each item * @ return the new Ix instance * @ throws NullPointerException i...
return new IxDoOn < T > ( this , nullCheck ( action , "action is null" ) , IxEmptyAction . instance0 ( ) ) ;
public class CleverTapAPI { /** * Validation */ private ValidationResult popValidationResult ( ) { } }
// really a shift ValidationResult vr = null ; synchronized ( pendingValidationResultsLock ) { try { if ( ! pendingValidationResults . isEmpty ( ) ) { vr = pendingValidationResults . remove ( 0 ) ; } } catch ( Exception e ) { // no - op } } return vr ;
public class ClassNodeUtils { /** * Determine if an explicit ( non - generated ) constructor is in the class . * @ param xform if non null , add an error if an explicit constructor is found * @ param cNode the type of the containing class * @ return true if an explicit ( non - generated ) constructor was found */...
List < ConstructorNode > declaredConstructors = cNode . getDeclaredConstructors ( ) ; for ( ConstructorNode constructorNode : declaredConstructors ) { // allow constructors added by other transforms if flagged as Generated if ( hasAnnotation ( constructorNode , GENERATED_TYPE ) ) { continue ; } if ( xform != null ) { x...
public class None { /** * = = = Functional Methods = = = */ @ SuppressWarnings ( "unchecked" ) @ Override public < O > Option < O > map ( Function < ? super T , ? extends O > mapper ) { } }
return ( Option < O > ) INSTANCE ;
public class WindowsRegistry { /** * Delete given key from registry . * @ param hk the HKEY * @ param key the key to be deleted * @ throws RegistryException when something is not right */ public void deleteKey ( HKey hk , String key ) throws RegistryException { } }
int rc = - 1 ; try { rc = ReflectedMethods . deleteKey ( hk . root ( ) , hk . hex ( ) , key ) ; } catch ( Exception e ) { throw new RegistryException ( "Cannot delete key " + key , e ) ; } if ( rc != RC . SUCCESS ) { throw new RegistryException ( "Cannot delete key " + key + ". Return code is " + rc ) ; }
public class IsANumberValidator { /** * ( non - Javadoc ) * @ see * com . fs . commons . desktop . validation . Validator # validate ( com . fs . commons . desktop . * validation . Problems , java . lang . String , java . lang . Object ) */ @ Override public boolean validate ( final Problems problems , final Stri...
final ParsePosition p = new ParsePosition ( 0 ) ; try { NumberFormat . getNumberInstance ( this . locale == null ? Locale . getDefault ( ) : this . locale ) . parse ( model , p ) ; if ( model . length ( ) != p . getIndex ( ) || p . getErrorIndex ( ) != - 1 ) { problems . add ( ValidationBundle . getMessage ( IsANumberV...
public class XmlUtils { /** * 转MAP * @ param element * @ return * @ author */ public static Map < String , String > toMap ( Element element ) { } }
Map < String , String > rest = new HashMap < String , String > ( ) ; List < Element > els = element . elements ( ) ; for ( Element el : els ) { rest . put ( el . getName ( ) . toLowerCase ( ) , el . getTextTrim ( ) ) ; } return rest ;
public class sslservice_sslciphersuite_binding { /** * Use this API to fetch sslservice _ sslciphersuite _ binding resources of given name . */ public static sslservice_sslciphersuite_binding [ ] get ( nitro_service service , String servicename ) throws Exception { } }
sslservice_sslciphersuite_binding obj = new sslservice_sslciphersuite_binding ( ) ; obj . set_servicename ( servicename ) ; sslservice_sslciphersuite_binding response [ ] = ( sslservice_sslciphersuite_binding [ ] ) obj . get_resources ( service ) ; return response ;
public class ConfigUtils { /** * Return string value at < code > path < / code > if < code > config < / code > has path . If not return an empty string * @ param config in which the path may be present * @ param path key to look for in the config object * @ return string value at < code > path < / code > if < cod...
return getString ( config , path , StringUtils . EMPTY ) ;
public class GenerateConfigurationVisitor { /** * Creates the pipeline , visits all streamable nodes and the creates the ClientBootstrap with the pipeline and * remote address , */ @ Override public Configuration visit ( AstConnectNode connectNode , State state ) { } }
// masking is a no - op by default for each stream state . readUnmasker = Masker . IDENTITY_MASKER ; state . writeMasker = Masker . IDENTITY_MASKER ; state . pipelineAsMap = new LinkedHashMap < > ( ) ; for ( AstStreamableNode streamable : connectNode . getStreamables ( ) ) { streamable . accept ( this , state ) ; } /* ...
public class ResourceUtil { /** * retrieves all children of a sling : resourceType */ public static List < Resource > getChildrenByResourceType ( final Resource resource , String resourceType ) { } }
final ArrayList < Resource > children = new ArrayList < > ( ) ; if ( resource != null ) { for ( final Resource child : resource . getChildren ( ) ) { if ( child . isResourceType ( resourceType ) ) { children . add ( child ) ; } } } return children ;
public class Iterate { /** * Filters a collection into a PartitionIterable based on a predicate . * Example using a Java 8 lambda expression : * < pre > * PartitionIterable & lt ; Person & gt ; newYorkersAndNonNewYorkers = * Iterate . < b > partition < / b > ( people , person - > person . getAddress ( ) . getSt...
if ( iterable instanceof RichIterable < ? > ) { return ( ( RichIterable < T > ) iterable ) . partition ( predicate ) ; } if ( iterable instanceof ArrayList ) { return ArrayListIterate . partition ( ( ArrayList < T > ) iterable , predicate ) ; } if ( iterable instanceof List ) { return ListIterate . partition ( ( List <...
public class Request { /** * Creates a new Request configured to post a GraphObject to a particular graph path , to either create or update the * object at that path . * @ param session * the Session to use , or null ; if non - null , the session must be in an opened state * @ param graphPath * the graph path...
Request request = new Request ( session , graphPath , null , HttpMethod . POST , callback ) ; request . setGraphObject ( graphObject ) ; return request ;
public class ExampleUtils { /** * Returns a Pubsub client builder using the specified { @ link PubsubOptions } . */ private static Pubsub . Builder newPubsubClient ( PubsubOptions options ) { } }
return new Pubsub . Builder ( Transport . getTransport ( ) , Transport . getJsonFactory ( ) , chainHttpRequestInitializer ( options . getGcpCredential ( ) , // Do not log 404 . It clutters the output and is possibly even required by the caller . new RetryHttpRequestInitializer ( ImmutableList . of ( 404 ) ) ) ) . setRo...
public class Discovery { /** * Percentage of queries with an associated event . * The percentage of queries using the * * natural _ language _ query * * parameter that have a corresponding \ " click \ " event * over a specified time window . This metric requires having integrated event tracking in your application ...
String [ ] pathSegments = { "v1/metrics/event_rate" } ; RequestBuilder builder = RequestBuilder . get ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) , pathSegments ) ) ; builder . query ( "version" , versionDate ) ; Map < String , String > sdkHeaders = SdkCommon . getSdkHeaders ( "discovery" , "v1" , "getMetrics...
public class HierarchicalLowestChildDenyOverridesPolicyAlg { /** * Applies the combining rule to the set of policies based on the evaluation * context . * @ param context * the context from the request * @ param parameters * a ( possibly empty ) non - null < code > List < / code > of * < code > CombinerPara...
logger . info ( "Combining using: " + getIdentifier ( ) ) ; boolean atLeastOneError = false ; boolean atLeastOnePermit = false ; Set < Set < ? > > denyObligations = new HashSet < Set < ? > > ( ) ; Status firstIndeterminateStatus = null ; Set < AbstractPolicy > matchedPolicies = new HashSet < AbstractPolicy > ( ) ; Iter...
public class VoltCompiler { /** * Internal method for compiling with and without a project . xml file or DDL files . * @ param projectReader Reader for project file or null if a project file is not used . * @ param jarOutputPath The location to put the finished JAR to . * @ param ddlFilePaths The list of DDL file...
if ( jarOutputPath == null ) { addErr ( "The output jar path is null." ) ; return false ; } InMemoryJarfile jarOutput = compileInternal ( cannonicalDDLIfAny , previousCatalogIfAny , ddlReaderList , jarOutputRet ) ; if ( jarOutput == null ) { return false ; } try { jarOutput . writeToFile ( new File ( jarOutputPath ) ) ...
public class FileIndexBuilder { /** * Appends next record to this index builder and returns this . * @ param recordSize size of record measured in bytes * @ return this */ public FileIndexBuilder appendNextRecord ( long recordSize ) { } }
checkIfDestroyed ( ) ; if ( recordSize < 0 ) throw new IllegalArgumentException ( "Size cannot be negative." ) ; if ( currentRecord == step ) { index . add ( startingByte + currentByte ) ; currentRecord = 0 ; } currentByte += recordSize ; ++ currentRecord ; return this ;
public class DBFUtils { /** * Checks that a byte array contains some specific byte * @ param array The array to search in * @ param value The byte to search for * @ return true if the array contains spcified value */ public static boolean contains ( byte [ ] array , byte value ) { } }
if ( array != null ) { for ( byte data : array ) { if ( data == value ) { return true ; } } } return false ;
public class MetricContext { /** * See { @ link com . codahale . metrics . MetricRegistry # getMeters ( com . codahale . metrics . MetricFilter ) } . * This method will return fully - qualified metric names if the { @ link MetricContext } is configured * to report fully - qualified metric names . */ @ Override publ...
return this . innerMetricContext . getMeters ( filter ) ;
public class CmsLogFileOptionProvider { /** * Gets the log file options . < p > * @ return the log file options */ public static TreeSet < File > getLogFiles ( ) { } }
TreeSet < File > result = new TreeSet < > ( ) ; for ( File file : new File ( CmsLogFileApp . LOG_FOLDER ) . listFiles ( ) ) { result . add ( file ) ; } for ( String dir : getAdditionalLogDirectories ( ) ) { File file = new File ( dir ) ; if ( file . exists ( ) ) { if ( file . isDirectory ( ) ) { for ( File child : file...
public class ApplicationContextHolder { /** * 实现 ApplicationContextAware 接口的回调方法 , 设置上下文环境 * @ param applicationContext ApplicationContext */ @ Override public void setApplicationContext ( ApplicationContext applicationContext ) { } }
if ( context == null ) { synchronized ( ApplicationContextHolder . class ) { if ( context == null ) { ApplicationContextHolder . context = applicationContext ; } } }
public class SarlCompiler { /** * Rename when the super function access is fixed ( https : / / github . com / eclipse / xtext - extras / pull / 411) */ private void convertNullSafeWrapperToPrimitive ( LightweightTypeReference wrapper , LightweightTypeReference primitive , XExpression context , ITreeAppendable appendabl...
// BEGIN Specific final String defaultValue = primitive . isType ( boolean . class ) ? "false" : "0" ; // $ NON - NLS - 1 $ / / $ NON - NLS - 2 $ // END Specific final XExpression normalized = normalizeBlockExpression ( context ) ; if ( normalized instanceof XAbstractFeatureCall && ! ( context . eContainer ( ) instance...
public class DatabaseFullPrunedBlockStore { /** * Create a new store for the given { @ link NetworkParameters } . * @ param params The network . * @ throws BlockStoreException If the store couldn ' t be created . */ private void createNewStore ( NetworkParameters params ) throws BlockStoreException { } }
try { // Set up the genesis block . When we start out fresh , it is by // definition the top of the chain . StoredBlock storedGenesisHeader = new StoredBlock ( params . getGenesisBlock ( ) . cloneAsHeader ( ) , params . getGenesisBlock ( ) . getWork ( ) , 0 ) ; // The coinbase in the genesis block is not spendable . Th...
public class HiCS { /** * Identifies high contrast subspaces in a given full - dimensional database . * @ param relation the relation the HiCS should be evaluated for * @ param subspaceIndex Subspace indexes * @ return a set of high contrast subspaces */ private Set < HiCSSubspace > calculateSubspaces ( Relation ...
final int dbdim = RelationUtil . dimensionality ( relation ) ; FiniteProgress dprog = LOG . isVerbose ( ) ? new FiniteProgress ( "Subspace dimensionality" , dbdim , LOG ) : null ; if ( dprog != null ) { dprog . setProcessed ( 2 , LOG ) ; } TreeSet < HiCSSubspace > subspaceList = new TreeSet < > ( HiCSSubspace . SORT_BY...
public class GoogleHadoopFileSystemBase { /** * Makes the given path and all non - existent parents directories . * Has the semantics of Unix ' mkdir - p ' . * @ param hadoopPath Given path . * @ param permission Permissions to set on the given directory . * @ return true on success , false otherwise . * @ th...
long startTime = System . nanoTime ( ) ; Preconditions . checkArgument ( hadoopPath != null , "hadoopPath must not be null" ) ; checkOpen ( ) ; logger . atFine ( ) . log ( "GHFS.mkdirs: %s, perm: %s" , hadoopPath , permission ) ; URI gcsPath = getGcsPath ( hadoopPath ) ; try { getGcsFs ( ) . mkdirs ( gcsPath ) ; } catc...
public class Matrix4 { /** * Sets this to a scale matrix . * @ return a reference to this matrix , for chaining . */ public Matrix4 setToScale ( IVector3 scale ) { } }
return setToScale ( scale . x ( ) , scale . y ( ) , scale . z ( ) ) ;
public class CATSyncAsynchReader { /** * Sends the message in one transmission back down to our peer . If the messageSlices parameter is * not null then the message has already been encoded and does not need to be done again . This * may be in the case where the message was destined to be sent in chunks but is so s...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "sendEntireMessage" , new Object [ ] { jsMessage , messageSlices } ) ; int msgLen = 0 ; try { CommsServerByteBuffer buffer = poolManager . allocate ( ) ; ConversationState convState = ( ConversationState ) conversatio...
public class CmafGroupSettingsMarshaller { /** * Marshall the given parameter object . */ public void marshall ( CmafGroupSettings cmafGroupSettings , ProtocolMarshaller protocolMarshaller ) { } }
if ( cmafGroupSettings == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( cmafGroupSettings . getBaseUrl ( ) , BASEURL_BINDING ) ; protocolMarshaller . marshall ( cmafGroupSettings . getClientCache ( ) , CLIENTCACHE_BINDING ) ; protocolMarsh...
public class BitcoinTransactionFlinkInputFormat { /** * Saves the current state of the stream * @ return current position in stream * ( non - Javadoc ) * @ see org . apache . flink . api . common . io . CheckpointableInputFormat # getCurrentState ( ) */ @ Override public Tuple2 < Long , Long > getCurrentState ( )...
return new Tuple2 < > ( this . stream . getPos ( ) , this . currentTransactionCounterInBlock ) ;
public class BaseLevel1 { /** * computes a vector - vector dot product . * @ param n number of accessed element * @ param alpha * @ param X an INDArray * @ param Y an INDArray * @ return the vector - vector dot product of X and Y */ @ Override public double dot ( long n , double alpha , INDArray X , INDArray ...
if ( Nd4j . getExecutioner ( ) . getProfilingMode ( ) == OpExecutioner . ProfilingMode . ALL ) OpProfiler . getInstance ( ) . processBlasCall ( false , X , Y ) ; if ( X . isSparse ( ) && ! Y . isSparse ( ) ) { return Nd4j . getSparseBlasWrapper ( ) . level1 ( ) . dot ( n , alpha , X , Y ) ; } else if ( ! X . isSparse (...
public class RESTBaseEntityV1ProxyHandler { /** * Checks the return value and creates a proxy for the content if required . * @ param retValue The value to be returned . * @ return The return value with proxied content . */ private Object checkAndProxyReturnValue ( Object retValue ) { } }
if ( retValue != null && retValue instanceof RESTBaseEntityCollectionV1 ) { // The parent will either be a user defined parent , or the entity itself . final RESTBaseEntityV1 < ? > parent = this . parent == null ? getProxyEntity ( ) : this . parent ; return RESTCollectionProxyFactory . create ( getProviderFactory ( ) ,...
public class PropertyNameResolver { /** * Return the index value from the property expression or - 1. * @ param expression The property expression * @ return The index value or - 1 if the property is not indexed * @ throws IllegalArgumentException If the indexed property is illegally * formed or has an invalid ...
if ( expression == null || expression . length ( ) == 0 ) { return - 1 ; } for ( int i = 0 ; i < expression . length ( ) ; i ++ ) { char c = expression . charAt ( i ) ; if ( c == Nested || c == MappedStart ) { return - 1 ; } else if ( c == IndexedStart ) { int end = expression . indexOf ( IndexedEnd , i ) ; if ( end < ...
public class DatatypeConverter { /** * Print currency . * @ param value currency value * @ return currency value */ public static final BigDecimal printCurrency ( Number value ) { } }
return ( value == null || value . doubleValue ( ) == 0 ? null : new BigDecimal ( value . doubleValue ( ) * 100 ) ) ;
public class AWSSupportClient { /** * Requests a refresh of the Trusted Advisor check that has the specified check ID . Check IDs can be obtained by * calling < a > DescribeTrustedAdvisorChecks < / a > . * < note > * Some checks are refreshed automatically , and they cannot be refreshed by using this operation . ...
request = beforeClientExecution ( request ) ; return executeRefreshTrustedAdvisorCheck ( request ) ;
public class LiteralImpl { /** * Encode this Literal into an ObjectOutput ( used only by Selector . encode ) . */ public void encodeSelf ( ObjectOutput buf ) throws IOException { } }
buf . writeByte ( ( byte ) type ) ; switch ( type ) { case STRING : buf . writeUTF ( ( String ) value ) ; return ; case LONG : buf . writeLong ( ( ( Long ) value ) . longValue ( ) ) ; // was NumericValue return ; case DOUBLE : buf . writeDouble ( ( ( Double ) value ) . doubleValue ( ) ) ; // was NumericValue return ; c...
public class ServiceInstanceQuery { /** * Get a metadata value match regex pattern QueryCriterion . * Add a QueryCriterion to check ServiceInstance has metadata value * match the target regex pattern . * @ param key * the metadata key . * @ param pattern * the target regex pattern that metadata should match...
QueryCriterion c = new PatternQueryCriterion ( key , pattern ) ; addQueryCriterion ( c ) ; return this ;
public class CreationalContextImpl { /** * Destroys dependent instance * @ param instance * @ return true if the instance was destroyed , false otherwise */ public boolean destroyDependentInstance ( T instance ) { } }
synchronized ( dependentInstances ) { for ( Iterator < ContextualInstance < ? > > iterator = dependentInstances . iterator ( ) ; iterator . hasNext ( ) ; ) { ContextualInstance < ? > contextualInstance = iterator . next ( ) ; if ( contextualInstance . getInstance ( ) == instance ) { iterator . remove ( ) ; destroy ( co...
public class SqlValidatorImpl { /** * Return the intended modality of a SELECT or set - op . */ private SqlModality deduceModality ( SqlNode query ) { } }
if ( query instanceof SqlSelect ) { SqlSelect select = ( SqlSelect ) query ; return select . getModifierNode ( SqlSelectKeyword . STREAM ) != null ? SqlModality . STREAM : SqlModality . RELATION ; } else if ( query . getKind ( ) == SqlKind . VALUES ) { return SqlModality . RELATION ; } else { assert query . isA ( SqlKi...
public class AjaxController { /** * Handles request for listing accounts */ @ RequestMapping ( value = "/listGedikStocks" , method = RequestMethod . GET ) public @ ResponseBody ResponseGedikStockList listGedikStocks ( HttpServletResponse response ) { } }
logger . debug ( "Received request to list gedik stocks" ) ; ResponseGedikStockList gedikStockList = null ; try { gedikStockList = gedikStockService . getAllStocks ( ) ; } catch ( IOException e ) { logger . error ( e . getMessage ( ) ) ; e . printStackTrace ( ) ; } return gedikStockList ;
public class Dictionary { /** * Loads the contents of the specified input stream into this dictionary . * @ param input A dictionary file . * @ throws IOException If the specified input stream can not be read . */ protected void loadGrams ( DataInputStream input ) throws IOException { } }
gramSet = new HashSet ( ) ; try { while ( true ) { int gramLength = input . readInt ( ) ; int [ ] words = new int [ gramLength ] ; for ( int wi = 0 ; wi < gramLength ; wi ++ ) { words [ wi ] = input . readInt ( ) ; } gramSet . add ( new NGram ( words ) ) ; } } catch ( EOFException e ) { }
public class CmsJSONSearchConfigurationParser { /** * Helper for reading an optional String value list - returning < code > null < / code > if parsing fails for the whole list , otherwise just skipping unparsable entries . * @ param json The JSON object where the list should be read from . * @ param key The key of ...
List < String > list = null ; try { list = parseMandatoryStringValues ( json , key ) ; } catch ( JSONException e ) { LOG . info ( Messages . get ( ) . getBundle ( ) . key ( Messages . LOG_OPTIONAL_STRING_LIST_MISSING_1 , key ) , e ) ; return null ; } return list ;
public class CClassNode { /** * add _ ctype _ to _ cc _ by _ range / / Encoding out ! */ public void addCTypeByRange ( int ctype , boolean not , ScanEnvironment env , int sbOut , int mbr [ ] ) { } }
int n = mbr [ 0 ] ; int i ; if ( ! not ) { for ( i = 0 ; i < n ; i ++ ) { for ( int j = CR_FROM ( mbr , i ) ; j <= CR_TO ( mbr , i ) ; j ++ ) { if ( j >= sbOut ) { if ( j > CR_FROM ( mbr , i ) ) { addCodeRangeToBuf ( env , j , CR_TO ( mbr , i ) ) ; i ++ ; } // ! goto sb _ end ! , remove duplication ! for ( ; i < n ; i ...
public class WebContainer { /** * Check for the JSR77 runtime , and , if available , use it to register module * and servlet mbeans . As a side effect , assign the mbean registration to * the web module metadata and to the servlet metadata . * The web module container is required for access to the web module desc...
String methodName = "registerMBeans" ; String appName = webModule . getApplicationMetaData ( ) . getName ( ) ; String webAppName = webModule . getName ( ) ; String debugName ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { debugName = appName + " " + webAppName ; } else { debugName = null ...
public class PersonName { /** * 使用词性序列从多个人名中选择一个最佳的 * @ param candidateWords * @ return */ private static List < Word > selectBest ( List < List < Word > > candidateWords ) { } }
if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( "开始从多个识别结果中选择一个最佳的结果:{}" , candidateWords ) ; } Map < List < Word > , Integer > map = new ConcurrentHashMap < > ( ) ; AtomicInteger i = new AtomicInteger ( ) ; candidateWords . stream ( ) . forEach ( candidateWord -> { if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . d...
public class ServiceValidationViewFactory { /** * Register view . * @ param type the type * @ param view the view */ public void registerView ( final String type , final Pair < View , View > view ) { } }
registeredViews . put ( type , view ) ;
public class RelativeToEasterSundayParser { /** * Returns the easter Sunday within the julian chronology . * @ param nYear * The year to retrieve Julian Easter Sunday date * @ return julian easter Sunday */ public static JulianDate getJulianEasterSunday ( final int nYear ) { } }
final int a = nYear % 4 ; final int b = nYear % 7 ; final int c = nYear % 19 ; final int d = ( 19 * c + 15 ) % 30 ; final int e = ( 2 * a + 4 * b - d + 34 ) % 7 ; final int x = d + e + 114 ; final int nMonth = x / 31 ; final int nDay = ( x % 31 ) + 1 ; return JulianDate . of ( nYear , ( nMonth == 3 ? Month . MARCH : Mo...
public class MExtensionFileFilter { /** * Returns the human readable description of this filter . For example : " JPEG and GIF Image Files ( * . jpg , * . gif ) " * @ return String * @ see # setDescription * @ see # setExtensionListInDescription * @ see # isExtensionListInDescription * @ see javax . swing . f...
if ( fullDescription == null ) { final String temp ; if ( description == null || isExtensionListInDescription ( ) ) { final StringBuilder sb = new StringBuilder ( ) ; sb . append ( description == null ? "(" : description + " (" ) ; // build the description from the extension list boolean first = true ; for ( final Stri...
public class PatternBox { /** * Pattern for an EntityReference has distinct PhysicalEntities associated with both left and * right of a Conversion . * @ return the pattern */ public static Pattern modifiedPESimple ( ) { } }
Pattern p = new Pattern ( EntityReference . class , "modified ER" ) ; p . add ( erToPE ( ) , "modified ER" , "first PE" ) ; p . add ( participatesInConv ( ) , "first PE" , "Conversion" ) ; p . add ( new ConversionSide ( ConversionSide . Type . OTHER_SIDE ) , "first PE" , "Conversion" , "second PE" ) ; p . add ( equal (...
public class SCMController { /** * Form to create a change log filter */ @ RequestMapping ( value = "changeLog/fileFilter/{projectId}/create" , method = RequestMethod . GET ) public Form createChangeLogFileFilterForm ( @ SuppressWarnings ( "UnusedParameters" ) @ PathVariable ID projectId ) { } }
return Form . create ( ) . with ( Text . of ( "name" ) . label ( "Name" ) . help ( "Name to use to save the filter." ) ) . with ( Memo . of ( "patterns" ) . label ( "Filter(s)" ) . help ( "List of ANT-like patterns (one per line)." ) ) ;
public class DTMManagerDefault { /** * This method returns the SAX2 parser to use with the InputSource * obtained from this URI . * It may return null if any SAX2 - conformant XML parser can be used , * or if getInputSource ( ) will also return null . The parser must * be free for use ( i . e . , not currently ...
try { XMLReader reader = ( inputSource instanceof SAXSource ) ? ( ( SAXSource ) inputSource ) . getXMLReader ( ) : null ; // If user did not supply a reader , ask for one from the reader manager if ( null == reader ) { if ( m_readerManager == null ) { m_readerManager = XMLReaderManager . getInstance ( ) ; } reader = m_...
public class FacebookAccessTokenJsonExtractor { /** * non standard . examples : < br > * ' { " error " : { " message " : " This authorization code has been * used . " , " type " : " OAuthException " , " code " : 100 , " fbtrace _ id " : " DtxvtGRaxbB " } } ' < br > * ' { " error " : { " message " : " Error valida...
extractParameter ( response , MESSAGE_REGEX_PATTERN , false ) ; throw new FacebookAccessTokenErrorResponse ( extractParameter ( response , MESSAGE_REGEX_PATTERN , false ) , extractParameter ( response , TYPE_REGEX_PATTERN , false ) , extractParameter ( response , CODE_REGEX_PATTERN , false ) , extractParameter ( respon...
public class VoldemortBuildAndPushJob { /** * Get the Json Schema of the input path , assuming the path contains just one * schema version in all files under that path . */ private synchronized JsonSchema getInputPathJsonSchema ( ) throws IOException { } }
if ( inputPathJsonSchema == null ) { // No need to query Hadoop more than once as this shouldn ' t change mid - run , // thus , we can lazily initialize and cache the result . inputPathJsonSchema = HadoopUtils . getSchemaFromPath ( getInputPath ( ) ) ; } return inputPathJsonSchema ;
public class SearchView { /** * Query rewriting . */ private void rewriteQueryFromSuggestion ( int position ) { } }
CharSequence oldQuery = mQueryTextView . getText ( ) ; Cursor c = mSuggestionsAdapter . getCursor ( ) ; if ( c == null ) { return ; } if ( c . moveToPosition ( position ) ) { // Get the new query from the suggestion . CharSequence newQuery = mSuggestionsAdapter . convertToString ( c ) ; if ( newQuery != null ) { // The...
public class StandardQuery { /** * Resets any cached reference to a query executor . If a reference is * available , it is replaced , but a clear reference is not set . */ protected void resetExecutor ( ) throws RepositoryException { } }
if ( mExecutor != null ) { mExecutor = executorFactory ( ) . executor ( mFilter , mOrdering , null ) ; }
public class JCusparse { /** * Description : This routine converts a sparse matrix in CSR storage format * to a dense matrix . */ public static int cusparseScsr2dense ( cusparseHandle handle , int m , int n , cusparseMatDescr descrA , Pointer csrSortedValA , Pointer csrSortedRowPtrA , Pointer csrSortedColIndA , Point...
return checkResult ( cusparseScsr2denseNative ( handle , m , n , descrA , csrSortedValA , csrSortedRowPtrA , csrSortedColIndA , A , lda ) ) ;
public class ELTools { /** * Yields the type of the variable given by an expression . * @ param p _ expression * @ return */ public static Class < ? > getType ( String p_expression ) { } }
Field declaredField = getField ( p_expression ) ; if ( null != declaredField ) { return declaredField . getType ( ) ; } return null ;
public class EntityREST { /** * Delete an entity identified by its GUID . * @ param guid GUID for the entity * @ return EntityMutationResponse */ @ DELETE @ Path ( "/guid/{guid}" ) @ Consumes ( { } }
Servlets . JSON_MEDIA_TYPE , MediaType . APPLICATION_JSON } ) @ Produces ( Servlets . JSON_MEDIA_TYPE ) public EntityMutationResponse deleteByGuid ( @ PathParam ( "guid" ) final String guid ) throws AtlasBaseException { AtlasPerfTracer perf = null ; try { if ( AtlasPerfTracer . isPerfTraceEnabled ( PERF_LOG ) ) { perf ...
public class PowerMock { /** * Creates a strict mock object that supports mocking of final and native * methods . * @ param < T > the type of the mock object * @ param type the type of the mock object * @ param methods optionally what methods to mock * @ return the mock object . */ public static synchronized ...
return doMock ( type , false , new StrictMockStrategy ( ) , null , methods ) ;
public class SystemFunctionSet { /** * @ see org . s1 . objects . Objects # diff ( java . util . Map , java . util . Map ) * @ param old * @ param nw * @ return */ @ MapMethod public List < Map < String , Object > > diff ( Map < String , Object > old , Map < String , Object > nw ) { } }
List < ObjectDiff . DiffBean > l = Objects . diff ( old , nw ) ; List < Map < String , Object > > list = Objects . newArrayList ( ) ; for ( ObjectDiff . DiffBean b : l ) { list . add ( Objects . newHashMap ( String . class , Object . class , "path" , b . getPath ( ) , "old" , b . getOldValue ( ) , "new" , b . getNewVal...
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link FeatureCollectionType } { @ code > } * @ param value * Java instance representing xml element ' s value . * @ return * the new instance of { @ link JAXBElement } { @ code < } { @ link FeatureCollectionType } { ...
return new JAXBElement < FeatureCollectionType > ( _FeatureCollection_QNAME , FeatureCollectionType . class , null , value ) ;
public class UtilizationShell { /** * Displays format of commands . */ private static void printUsage ( ) { } }
String prefix = "Usage: hadoop " + UtilizationShell . class . getSimpleName ( ) ; System . err . println ( prefix ) ; System . err . println ( " [-all]" ) ; System . err . println ( " [-cluster]" ) ; System . err . println ( " [-job]" ) ; System . err . println ( " [-job jobID1 j...
public class gslbservice { /** * Use this API to delete gslbservice of given name . */ public static base_response delete ( nitro_service client , String servicename ) throws Exception { } }
gslbservice deleteresource = new gslbservice ( ) ; deleteresource . servicename = servicename ; return deleteresource . delete_resource ( client ) ;
public class Util { /** * Get an array of { @ link Sequence } s for the passed { @ link EventProcessor } s * @ param processors for which to get the sequences * @ return the array of { @ link Sequence } s */ public static Sequence [ ] getSequencesFor ( final EventProcessor ... processors ) { } }
Sequence [ ] sequences = new Sequence [ processors . length ] ; for ( int i = 0 ; i < sequences . length ; i ++ ) { sequences [ i ] = processors [ i ] . getSequence ( ) ; } return sequences ;
public class DscNodesInner { /** * Retrieve the dsc node identified by node id . * @ param resourceGroupName Name of an Azure Resource group . * @ param automationAccountName The name of the automation account . * @ param nodeId The node id . * @ throws IllegalArgumentException thrown if parameters fail the val...
return getWithServiceResponseAsync ( resourceGroupName , automationAccountName , nodeId ) . toBlocking ( ) . single ( ) . body ( ) ;